* keyboard.c (parse_modifiers_uncached, parse_modifiers):
[emacs.git] / autogen / configure
blob47b760c2dd82ca884dcdda4d29833b318065651c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 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 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='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_header_list=
595 gl_getopt_required=POSIX
596 gl_getopt_required=POSIX
597 ac_func_list=
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 WINDOW_SUPPORT
607 TOOLTIP_SUPPORT
608 MOUSE_SUPPORT
609 LIB_GCC
610 LD_FIRSTFLAG
611 LD_SWITCH_SYSTEM_TEMACS
612 POST_ALLOC_OBJ
613 PRE_ALLOC_OBJ
614 CYGWIN_OBJ
615 RALLOC_OBJ
616 OLDXMENU_DEPS
617 LIBX_OTHER
618 LIBXMENU
619 OLDXMENU
620 OLDXMENU_TARGET
621 LIBXT_OTHER
622 TOOLKIT_LIBW
623 WIDGET_OBJ
624 XOBJ
625 XMENU_OBJ
626 FONT_OBJ
627 OTHER_FILES
628 GNU_OBJC_CFLAGS
629 ns_appsrc
630 ns_appresdir
631 ns_appbindir
632 ns_appdir
633 S_FILE
634 M_FILE
635 X_TOOLKIT_TYPE
636 C_SWITCH_X_SYSTEM
637 C_SWITCH_X_SITE
638 LD_SWITCH_X_SITE
639 gameuser
640 gamedir
641 bitmapdir
642 archlibdir
643 etcdir
644 x_default_search_path
645 lisppath
646 locallisppath
647 lispdir
648 srcdir
649 canonical
650 configuration
651 version
652 KRB4LIB
653 DESLIB
654 KRB5LIB
655 CRYPTOLIB
656 COM_ERRLIB
657 LIBRESOLV
658 LIBHESIOD
659 TERMCAP_OBJ
660 LIBS_TERMCAP
661 LIBGNU_LTLIBDEPS
662 LIBGNU_LIBDEPS
663 gltests_WITNESS
664 HAVE_UNISTD_H
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
666 NEXT_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
671 NEXT_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
673 NEXT_SYS_STAT_H
674 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
675 NEXT_STDLIB_H
676 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
677 NEXT_STDIO_H
678 REPLACE_VSPRINTF
679 REPLACE_VSNPRINTF
680 REPLACE_VPRINTF
681 REPLACE_VFPRINTF
682 REPLACE_VDPRINTF
683 REPLACE_VASPRINTF
684 REPLACE_TMPFILE
685 REPLACE_STDIO_WRITE_FUNCS
686 REPLACE_SPRINTF
687 REPLACE_SNPRINTF
688 REPLACE_RENAMEAT
689 REPLACE_RENAME
690 REPLACE_REMOVE
691 REPLACE_PRINTF
692 REPLACE_POPEN
693 REPLACE_PERROR
694 REPLACE_OBSTACK_PRINTF
695 REPLACE_GETLINE
696 REPLACE_GETDELIM
697 REPLACE_FTELLO
698 REPLACE_FTELL
699 REPLACE_FSEEKO
700 REPLACE_FSEEK
701 REPLACE_FREOPEN
702 REPLACE_FPURGE
703 REPLACE_FPRINTF
704 REPLACE_FOPEN
705 REPLACE_FFLUSH
706 REPLACE_FCLOSE
707 REPLACE_DPRINTF
708 HAVE_VDPRINTF
709 HAVE_VASPRINTF
710 HAVE_RENAMEAT
711 HAVE_FTELLO
712 HAVE_FSEEKO
713 HAVE_DPRINTF
714 HAVE_DECL_VSNPRINTF
715 HAVE_DECL_SNPRINTF
716 HAVE_DECL_OBSTACK_PRINTF
717 HAVE_DECL_GETLINE
718 HAVE_DECL_GETDELIM
719 HAVE_DECL_FTELLO
720 HAVE_DECL_FSEEKO
721 HAVE_DECL_FPURGE
722 GNULIB_VSPRINTF_POSIX
723 GNULIB_VSNPRINTF
724 GNULIB_VPRINTF_POSIX
725 GNULIB_VPRINTF
726 GNULIB_VFPRINTF_POSIX
727 GNULIB_VFPRINTF
728 GNULIB_VDPRINTF
729 GNULIB_VASPRINTF
730 GNULIB_TMPFILE
731 GNULIB_STDIO_H_SIGPIPE
732 GNULIB_SPRINTF_POSIX
733 GNULIB_SNPRINTF
734 GNULIB_RENAMEAT
735 GNULIB_RENAME
736 GNULIB_REMOVE
737 GNULIB_PUTS
738 GNULIB_PUTCHAR
739 GNULIB_PUTC
740 GNULIB_PRINTF_POSIX
741 GNULIB_PRINTF
742 GNULIB_POPEN
743 GNULIB_PERROR
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
746 GNULIB_GETLINE
747 GNULIB_GETDELIM
748 GNULIB_FWRITE
749 GNULIB_FTELLO
750 GNULIB_FTELL
751 GNULIB_FSEEKO
752 GNULIB_FSEEK
753 GNULIB_FREOPEN
754 GNULIB_FPUTS
755 GNULIB_FPUTC
756 GNULIB_FPURGE
757 GNULIB_FPRINTF_POSIX
758 GNULIB_FPRINTF
759 GNULIB_FOPEN
760 GNULIB_FFLUSH
761 GNULIB_FCLOSE
762 GNULIB_DPRINTF
763 STDINT_H
764 WINT_T_SUFFIX
765 WCHAR_T_SUFFIX
766 SIG_ATOMIC_T_SUFFIX
767 SIZE_T_SUFFIX
768 PTRDIFF_T_SUFFIX
769 HAVE_SIGNED_WINT_T
770 HAVE_SIGNED_WCHAR_T
771 HAVE_SIGNED_SIG_ATOMIC_T
772 BITSIZEOF_WINT_T
773 BITSIZEOF_WCHAR_T
774 BITSIZEOF_SIG_ATOMIC_T
775 BITSIZEOF_SIZE_T
776 BITSIZEOF_PTRDIFF_T
777 HAVE_SYS_BITYPES_H
778 HAVE_SYS_INTTYPES_H
779 HAVE_STDINT_H
780 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
781 NEXT_STDINT_H
782 HAVE_SYS_TYPES_H
783 HAVE_INTTYPES_H
784 HAVE_WCHAR_H
785 HAVE_UNSIGNED_LONG_LONG_INT
786 HAVE_LONG_LONG_INT
787 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
788 NEXT_STDDEF_H
789 STDDEF_H
790 HAVE_WCHAR_T
791 REPLACE_NULL
792 HAVE__BOOL
793 STDBOOL_H
794 APPLE_UNIVERSAL_BUILD
795 REPLACE_TIMEGM
796 REPLACE_NANOSLEEP
797 REPLACE_MKTIME
798 REPLACE_LOCALTIME_R
799 HAVE_TIMEGM
800 HAVE_STRPTIME
801 HAVE_NANOSLEEP
802 HAVE_DECL_LOCALTIME_R
803 GNULIB_TIME_R
804 GNULIB_TIMEGM
805 GNULIB_STRPTIME
806 GNULIB_NANOSLEEP
807 GNULIB_MKTIME
808 REPLACE_UTIMENSAT
809 REPLACE_STAT
810 REPLACE_MKNOD
811 REPLACE_MKFIFO
812 REPLACE_MKDIR
813 REPLACE_LSTAT
814 REPLACE_FUTIMENS
815 REPLACE_FSTATAT
816 REPLACE_FSTAT
817 HAVE_UTIMENSAT
818 HAVE_MKNODAT
819 HAVE_MKNOD
820 HAVE_MKFIFOAT
821 HAVE_MKFIFO
822 HAVE_MKDIRAT
823 HAVE_LSTAT
824 HAVE_LCHMOD
825 HAVE_FUTIMENS
826 HAVE_FSTATAT
827 HAVE_FCHMODAT
828 GNULIB_UTIMENSAT
829 GNULIB_STAT
830 GNULIB_MKNODAT
831 GNULIB_MKNOD
832 GNULIB_MKFIFOAT
833 GNULIB_MKFIFO
834 GNULIB_MKDIRAT
835 GNULIB_LSTAT
836 GNULIB_LCHMOD
837 GNULIB_FUTIMENS
838 GNULIB_FSTATAT
839 GNULIB_FCHMODAT
840 LTLIBINTL
841 LIBINTL
842 GETOPT_H
843 HAVE_GETOPT_H
844 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
845 NEXT_GETOPT_H
846 PRAGMA_COLUMNS
847 PRAGMA_SYSTEM_HEADER
848 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
849 INCLUDE_NEXT
850 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
851 UNISTD_H_HAVE_WINSOCK2_H
852 REPLACE_WRITE
853 REPLACE_USLEEP
854 REPLACE_UNLINKAT
855 REPLACE_UNLINK
856 REPLACE_TTYNAME_R
857 REPLACE_SYMLINK
858 REPLACE_SLEEP
859 REPLACE_RMDIR
860 REPLACE_READLINK
861 REPLACE_PWRITE
862 REPLACE_PREAD
863 REPLACE_LSEEK
864 REPLACE_LINKAT
865 REPLACE_LINK
866 REPLACE_LCHOWN
867 REPLACE_GETPAGESIZE
868 REPLACE_GETGROUPS
869 REPLACE_GETLOGIN_R
870 REPLACE_GETDOMAINNAME
871 REPLACE_GETCWD
872 REPLACE_FCHOWNAT
873 REPLACE_DUP2
874 REPLACE_DUP
875 REPLACE_CLOSE
876 REPLACE_CHOWN
877 HAVE_SYS_PARAM_H
878 HAVE_OS_H
879 HAVE_DECL_TTYNAME_R
880 HAVE_DECL_GETUSERSHELL
881 HAVE_DECL_GETPAGESIZE
882 HAVE_DECL_GETLOGIN_R
883 HAVE_DECL_GETDOMAINNAME
884 HAVE_DECL_FCHDIR
885 HAVE_DECL_ENVIRON
886 HAVE_USLEEP
887 HAVE_UNLINKAT
888 HAVE_SYMLINKAT
889 HAVE_SYMLINK
890 HAVE_SLEEP
891 HAVE_READLINKAT
892 HAVE_READLINK
893 HAVE_PWRITE
894 HAVE_PREAD
895 HAVE_PIPE2
896 HAVE_PIPE
897 HAVE_LINKAT
898 HAVE_LINK
899 HAVE_LCHOWN
900 HAVE_GETPAGESIZE
901 HAVE_GETLOGIN
902 HAVE_GETHOSTNAME
903 HAVE_GETGROUPS
904 HAVE_GETDTABLESIZE
905 HAVE_FTRUNCATE
906 HAVE_FSYNC
907 HAVE_FCHOWNAT
908 HAVE_FCHDIR
909 HAVE_FACCESSAT
910 HAVE_EUIDACCESS
911 HAVE_DUP3
912 HAVE_DUP2
913 HAVE_CHOWN
914 GNULIB_WRITE
915 GNULIB_USLEEP
916 GNULIB_UNLINKAT
917 GNULIB_UNLINK
918 GNULIB_UNISTD_H_SIGPIPE
919 GNULIB_UNISTD_H_GETOPT
920 GNULIB_TTYNAME_R
921 GNULIB_SYMLINKAT
922 GNULIB_SYMLINK
923 GNULIB_SLEEP
924 GNULIB_RMDIR
925 GNULIB_READLINKAT
926 GNULIB_READLINK
927 GNULIB_PWRITE
928 GNULIB_PREAD
929 GNULIB_PIPE2
930 GNULIB_PIPE
931 GNULIB_LSEEK
932 GNULIB_LINKAT
933 GNULIB_LINK
934 GNULIB_LCHOWN
935 GNULIB_GETUSERSHELL
936 GNULIB_GETPAGESIZE
937 GNULIB_GETLOGIN_R
938 GNULIB_GETLOGIN
939 GNULIB_GETHOSTNAME
940 GNULIB_GETGROUPS
941 GNULIB_GETDTABLESIZE
942 GNULIB_GETDOMAINNAME
943 GNULIB_GETCWD
944 GNULIB_FTRUNCATE
945 GNULIB_FSYNC
946 GNULIB_FCHOWNAT
947 GNULIB_FCHDIR
948 GNULIB_FACCESSAT
949 GNULIB_EUIDACCESS
950 GNULIB_ENVIRON
951 GNULIB_DUP3
952 GNULIB_DUP2
953 GNULIB_CLOSE
954 GNULIB_CHOWN
955 GETLOADAVG_LIBS
956 REPLACE_WCTOMB
957 REPLACE_UNSETENV
958 REPLACE_STRTOD
959 REPLACE_SETENV
960 REPLACE_REALPATH
961 REPLACE_REALLOC
962 REPLACE_PUTENV
963 REPLACE_MKSTEMP
964 REPLACE_MBTOWC
965 REPLACE_MALLOC
966 REPLACE_CANONICALIZE_FILE_NAME
967 REPLACE_CALLOC
968 HAVE_DECL_UNSETENV
969 HAVE_UNLOCKPT
970 HAVE_SYS_LOADAVG_H
971 HAVE_STRUCT_RANDOM_DATA
972 HAVE_STRTOULL
973 HAVE_STRTOLL
974 HAVE_STRTOD
975 HAVE_DECL_SETENV
976 HAVE_SETENV
977 HAVE_RPMATCH
978 HAVE_REALPATH
979 HAVE_RANDOM_R
980 HAVE_RANDOM_H
981 HAVE_PTSNAME
982 HAVE_MKSTEMPS
983 HAVE_MKSTEMP
984 HAVE_MKOSTEMPS
985 HAVE_MKOSTEMP
986 HAVE_MKDTEMP
987 HAVE_GRANTPT
988 HAVE_GETSUBOPT
989 HAVE_DECL_GETLOADAVG
990 HAVE_CANONICALIZE_FILE_NAME
991 HAVE_ATOLL
992 HAVE__EXIT
993 GNULIB_WCTOMB
994 GNULIB_UNSETENV
995 GNULIB_UNLOCKPT
996 GNULIB_SYSTEM_POSIX
997 GNULIB_STRTOULL
998 GNULIB_STRTOLL
999 GNULIB_STRTOD
1000 GNULIB_SETENV
1001 GNULIB_RPMATCH
1002 GNULIB_REALPATH
1003 GNULIB_REALLOC_POSIX
1004 GNULIB_RANDOM_R
1005 GNULIB_PUTENV
1006 GNULIB_PTSNAME
1007 GNULIB_MKSTEMPS
1008 GNULIB_MKSTEMP
1009 GNULIB_MKOSTEMPS
1010 GNULIB_MKOSTEMP
1011 GNULIB_MKDTEMP
1012 GNULIB_MBTOWC
1013 GNULIB_MALLOC_POSIX
1014 GNULIB_GRANTPT
1015 GNULIB_GETSUBOPT
1016 GNULIB_GETLOADAVG
1017 GNULIB_CANONICALIZE_FILE_NAME
1018 GNULIB_CALLOC_POSIX
1019 GNULIB_ATOLL
1020 GNULIB__EXIT
1021 GL_COND_LIBTOOL_FALSE
1022 GL_COND_LIBTOOL_TRUE
1023 BLESSMAIL_TARGET
1024 LIBS_MAIL
1025 liblockfile
1026 ALLOCA
1027 LIBXML2_LIBS
1028 LIBXML2_CFLAGS
1029 LIBXSM
1030 LIBGPM
1031 LIBGIF
1032 LIBTIFF
1033 LIBPNG
1034 LIBJPEG
1035 LIBXPM
1036 M17N_FLT_LIBS
1037 M17N_FLT_CFLAGS
1038 LIBOTF_LIBS
1039 LIBOTF_CFLAGS
1040 FREETYPE_LIBS
1041 FREETYPE_CFLAGS
1042 XFT_LIBS
1043 XFT_CFLAGS
1044 FONTCONFIG_LIBS
1045 FONTCONFIG_CFLAGS
1046 LIBXMU
1047 LIBXTR6
1048 LIBGNUTLS_LIBS
1049 LIBGNUTLS_CFLAGS
1050 LIBSELINUX_LIBS
1051 GCONF_LIBS
1052 GCONF_CFLAGS
1053 DBUS_OBJ
1054 DBUS_LIBS
1055 DBUS_CFLAGS
1056 GTK_OBJ
1057 GTK_LIBS
1058 GTK_CFLAGS
1059 IMAGEMAGICK_LIBS
1060 IMAGEMAGICK_CFLAGS
1061 RSVG_LIBS
1062 RSVG_CFLAGS
1063 VMLIMIT_OBJ
1064 GMALLOC_OBJ
1065 HAVE_XSERVER
1066 LIB_STANDARD
1067 NS_SUPPORT
1068 NS_OBJC_OBJ
1069 NS_OBJ
1070 TEMACS_LDFLAGS2
1071 LD_SWITCH_X_SITE_AUX_RPATH
1072 LD_SWITCH_X_SITE_AUX
1073 XMKMF
1074 DEPFLAGS
1075 MKDEPDIR
1076 CFLAGS_SOUND
1077 ALSA_LIBS
1078 ALSA_CFLAGS
1079 PKG_CONFIG
1080 LIBSOUND
1081 START_FILES
1082 LIB_MATH
1083 CRT_DIR
1084 LIBS_SYSTEM
1085 C_SWITCH_SYSTEM
1086 UNEXEC_OBJ
1087 C_SWITCH_MACHINE
1088 LD_SWITCH_SYSTEM
1089 CANNOT_DUMP
1090 HAVE_MAKEINFO
1091 GZIP_PROG
1092 INSTALL_INFO
1093 C_WARNINGS_SWITCH
1094 EGREP
1095 GREP
1097 RANLIB
1098 am__fastdepCC_FALSE
1099 am__fastdepCC_TRUE
1100 CCDEPMODE
1101 AMDEPBACKSLASH
1102 AMDEP_FALSE
1103 AMDEP_TRUE
1104 am__quote
1105 am__include
1106 DEPDIR
1107 OBJEXT
1108 EXEEXT
1109 ac_ct_CC
1110 CPPFLAGS
1111 LDFLAGS
1112 CFLAGS
1114 host_os
1115 host_vendor
1116 host_cpu
1117 host
1118 build_os
1119 build_vendor
1120 build_cpu
1121 build
1122 PROFILING_CFLAGS
1123 MAINT
1124 GZIP_INFO
1125 am__untar
1126 am__tar
1127 AMTAR
1128 am__leading_dot
1129 SET_MAKE
1131 mkdir_p
1132 MKDIR_P
1133 INSTALL_STRIP_PROGRAM
1134 STRIP
1135 install_sh
1136 MAKEINFO
1137 AUTOHEADER
1138 AUTOMAKE
1139 AUTOCONF
1140 ACLOCAL
1141 VERSION
1142 PACKAGE
1143 CYGPATH_W
1144 am__isrc
1145 INSTALL_DATA
1146 INSTALL_SCRIPT
1147 INSTALL_PROGRAM
1148 target_alias
1149 host_alias
1150 build_alias
1151 LIBS
1152 ECHO_T
1153 ECHO_N
1154 ECHO_C
1155 DEFS
1156 mandir
1157 localedir
1158 libdir
1159 psdir
1160 pdfdir
1161 dvidir
1162 htmldir
1163 infodir
1164 docdir
1165 oldincludedir
1166 includedir
1167 localstatedir
1168 sharedstatedir
1169 sysconfdir
1170 datadir
1171 datarootdir
1172 libexecdir
1173 sbindir
1174 bindir
1175 program_transform_name
1176 prefix
1177 exec_prefix
1178 PACKAGE_URL
1179 PACKAGE_BUGREPORT
1180 PACKAGE_STRING
1181 PACKAGE_VERSION
1182 PACKAGE_TARNAME
1183 PACKAGE_NAME
1184 PATH_SEPARATOR
1185 SHELL'
1186 ac_subst_files='deps_frag
1187 ns_frag'
1188 ac_user_opts='
1189 enable_option_checking
1190 with_pop
1191 with_kerberos
1192 with_kerberos5
1193 with_hesiod
1194 with_mmdf
1195 with_mail_unlink
1196 with_mailhost
1197 with_sound
1198 with_sync_input
1199 with_x_toolkit
1200 with_xpm
1201 with_jpeg
1202 with_tiff
1203 with_gif
1204 with_png
1205 with_rsvg
1206 with_xml2
1207 with_imagemagick
1208 with_xft
1209 with_libotf
1210 with_m17n_flt
1211 with_toolkit_scroll_bars
1212 with_xaw3d
1213 with_xim
1214 with_ns
1215 with_gpm
1216 with_dbus
1217 with_gconf
1218 with_selinux
1219 with_gnutls
1220 with_makeinfo
1221 with_compress_info
1222 with_pkg_config_prog
1223 with_crt_dir
1224 with_gameuser
1225 with_gnustep_conf
1226 enable_ns_self_contained
1227 enable_asserts
1228 enable_maintainer_mode
1229 enable_locallisppath
1230 enable_checking
1231 enable_use_lisp_union_type
1232 enable_profiling
1233 enable_autodepend
1234 enable_dependency_tracking
1235 enable_largefile
1236 with_x
1238 ac_precious_vars='build_alias
1239 host_alias
1240 target_alias
1242 CFLAGS
1243 LDFLAGS
1244 LIBS
1245 CPPFLAGS
1247 XMKMF'
1250 # Initialize some variables set by options.
1251 ac_init_help=
1252 ac_init_version=false
1253 ac_unrecognized_opts=
1254 ac_unrecognized_sep=
1255 # The variables have the same names as the options, with
1256 # dashes changed to underlines.
1257 cache_file=/dev/null
1258 exec_prefix=NONE
1259 no_create=
1260 no_recursion=
1261 prefix=NONE
1262 program_prefix=NONE
1263 program_suffix=NONE
1264 program_transform_name=s,x,x,
1265 silent=
1266 site=
1267 srcdir=
1268 verbose=
1269 x_includes=NONE
1270 x_libraries=NONE
1272 # Installation directory options.
1273 # These are left unexpanded so users can "make install exec_prefix=/foo"
1274 # and all the variables that are supposed to be based on exec_prefix
1275 # by default will actually change.
1276 # Use braces instead of parens because sh, perl, etc. also accept them.
1277 # (The list follows the same order as the GNU Coding Standards.)
1278 bindir='${exec_prefix}/bin'
1279 sbindir='${exec_prefix}/sbin'
1280 libexecdir='${exec_prefix}/libexec'
1281 datarootdir='${prefix}/share'
1282 datadir='${datarootdir}'
1283 sysconfdir='${prefix}/etc'
1284 sharedstatedir='${prefix}/com'
1285 localstatedir='${prefix}/var'
1286 includedir='${prefix}/include'
1287 oldincludedir='/usr/include'
1288 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1289 infodir='${datarootdir}/info'
1290 htmldir='${docdir}'
1291 dvidir='${docdir}'
1292 pdfdir='${docdir}'
1293 psdir='${docdir}'
1294 libdir='${exec_prefix}/lib'
1295 localedir='${datarootdir}/locale'
1296 mandir='${datarootdir}/man'
1298 ac_prev=
1299 ac_dashdash=
1300 for ac_option
1302 # If the previous option needs an argument, assign it.
1303 if test -n "$ac_prev"; then
1304 eval $ac_prev=\$ac_option
1305 ac_prev=
1306 continue
1309 case $ac_option in
1310 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1311 *) ac_optarg=yes ;;
1312 esac
1314 # Accept the important Cygnus configure options, so we can diagnose typos.
1316 case $ac_dashdash$ac_option in
1318 ac_dashdash=yes ;;
1320 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1321 ac_prev=bindir ;;
1322 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1323 bindir=$ac_optarg ;;
1325 -build | --build | --buil | --bui | --bu)
1326 ac_prev=build_alias ;;
1327 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1328 build_alias=$ac_optarg ;;
1330 -cache-file | --cache-file | --cache-fil | --cache-fi \
1331 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1332 ac_prev=cache_file ;;
1333 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1334 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1335 cache_file=$ac_optarg ;;
1337 --config-cache | -C)
1338 cache_file=config.cache ;;
1340 -datadir | --datadir | --datadi | --datad)
1341 ac_prev=datadir ;;
1342 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1343 datadir=$ac_optarg ;;
1345 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1346 | --dataroo | --dataro | --datar)
1347 ac_prev=datarootdir ;;
1348 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1349 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1350 datarootdir=$ac_optarg ;;
1352 -disable-* | --disable-*)
1353 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356 as_fn_error "invalid feature name: $ac_useropt"
1357 ac_useropt_orig=$ac_useropt
1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1361 "enable_$ac_useropt"
1362 "*) ;;
1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1364 ac_unrecognized_sep=', ';;
1365 esac
1366 eval enable_$ac_useropt=no ;;
1368 -docdir | --docdir | --docdi | --doc | --do)
1369 ac_prev=docdir ;;
1370 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1371 docdir=$ac_optarg ;;
1373 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1374 ac_prev=dvidir ;;
1375 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1376 dvidir=$ac_optarg ;;
1378 -enable-* | --enable-*)
1379 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382 as_fn_error "invalid feature name: $ac_useropt"
1383 ac_useropt_orig=$ac_useropt
1384 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1387 "enable_$ac_useropt"
1388 "*) ;;
1389 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1390 ac_unrecognized_sep=', ';;
1391 esac
1392 eval enable_$ac_useropt=\$ac_optarg ;;
1394 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1395 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1396 | --exec | --exe | --ex)
1397 ac_prev=exec_prefix ;;
1398 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1399 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1400 | --exec=* | --exe=* | --ex=*)
1401 exec_prefix=$ac_optarg ;;
1403 -gas | --gas | --ga | --g)
1404 # Obsolete; use --with-gas.
1405 with_gas=yes ;;
1407 -help | --help | --hel | --he | -h)
1408 ac_init_help=long ;;
1409 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1410 ac_init_help=recursive ;;
1411 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1412 ac_init_help=short ;;
1414 -host | --host | --hos | --ho)
1415 ac_prev=host_alias ;;
1416 -host=* | --host=* | --hos=* | --ho=*)
1417 host_alias=$ac_optarg ;;
1419 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1420 ac_prev=htmldir ;;
1421 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1422 | --ht=*)
1423 htmldir=$ac_optarg ;;
1425 -includedir | --includedir | --includedi | --included | --include \
1426 | --includ | --inclu | --incl | --inc)
1427 ac_prev=includedir ;;
1428 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1429 | --includ=* | --inclu=* | --incl=* | --inc=*)
1430 includedir=$ac_optarg ;;
1432 -infodir | --infodir | --infodi | --infod | --info | --inf)
1433 ac_prev=infodir ;;
1434 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1435 infodir=$ac_optarg ;;
1437 -libdir | --libdir | --libdi | --libd)
1438 ac_prev=libdir ;;
1439 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1440 libdir=$ac_optarg ;;
1442 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1443 | --libexe | --libex | --libe)
1444 ac_prev=libexecdir ;;
1445 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1446 | --libexe=* | --libex=* | --libe=*)
1447 libexecdir=$ac_optarg ;;
1449 -localedir | --localedir | --localedi | --localed | --locale)
1450 ac_prev=localedir ;;
1451 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1452 localedir=$ac_optarg ;;
1454 -localstatedir | --localstatedir | --localstatedi | --localstated \
1455 | --localstate | --localstat | --localsta | --localst | --locals)
1456 ac_prev=localstatedir ;;
1457 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1458 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1459 localstatedir=$ac_optarg ;;
1461 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1462 ac_prev=mandir ;;
1463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1464 mandir=$ac_optarg ;;
1466 -nfp | --nfp | --nf)
1467 # Obsolete; use --without-fp.
1468 with_fp=no ;;
1470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1471 | --no-cr | --no-c | -n)
1472 no_create=yes ;;
1474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1476 no_recursion=yes ;;
1478 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1479 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1480 | --oldin | --oldi | --old | --ol | --o)
1481 ac_prev=oldincludedir ;;
1482 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1483 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1484 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1485 oldincludedir=$ac_optarg ;;
1487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1488 ac_prev=prefix ;;
1489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1490 prefix=$ac_optarg ;;
1492 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1493 | --program-pre | --program-pr | --program-p)
1494 ac_prev=program_prefix ;;
1495 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1496 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1497 program_prefix=$ac_optarg ;;
1499 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1500 | --program-suf | --program-su | --program-s)
1501 ac_prev=program_suffix ;;
1502 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1503 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1504 program_suffix=$ac_optarg ;;
1506 -program-transform-name | --program-transform-name \
1507 | --program-transform-nam | --program-transform-na \
1508 | --program-transform-n | --program-transform- \
1509 | --program-transform | --program-transfor \
1510 | --program-transfo | --program-transf \
1511 | --program-trans | --program-tran \
1512 | --progr-tra | --program-tr | --program-t)
1513 ac_prev=program_transform_name ;;
1514 -program-transform-name=* | --program-transform-name=* \
1515 | --program-transform-nam=* | --program-transform-na=* \
1516 | --program-transform-n=* | --program-transform-=* \
1517 | --program-transform=* | --program-transfor=* \
1518 | --program-transfo=* | --program-transf=* \
1519 | --program-trans=* | --program-tran=* \
1520 | --progr-tra=* | --program-tr=* | --program-t=*)
1521 program_transform_name=$ac_optarg ;;
1523 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1524 ac_prev=pdfdir ;;
1525 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1526 pdfdir=$ac_optarg ;;
1528 -psdir | --psdir | --psdi | --psd | --ps)
1529 ac_prev=psdir ;;
1530 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1531 psdir=$ac_optarg ;;
1533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1534 | -silent | --silent | --silen | --sile | --sil)
1535 silent=yes ;;
1537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1538 ac_prev=sbindir ;;
1539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1540 | --sbi=* | --sb=*)
1541 sbindir=$ac_optarg ;;
1543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1545 | --sharedst | --shareds | --shared | --share | --shar \
1546 | --sha | --sh)
1547 ac_prev=sharedstatedir ;;
1548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1551 | --sha=* | --sh=*)
1552 sharedstatedir=$ac_optarg ;;
1554 -site | --site | --sit)
1555 ac_prev=site ;;
1556 -site=* | --site=* | --sit=*)
1557 site=$ac_optarg ;;
1559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1560 ac_prev=srcdir ;;
1561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1562 srcdir=$ac_optarg ;;
1564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1565 | --syscon | --sysco | --sysc | --sys | --sy)
1566 ac_prev=sysconfdir ;;
1567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1569 sysconfdir=$ac_optarg ;;
1571 -target | --target | --targe | --targ | --tar | --ta | --t)
1572 ac_prev=target_alias ;;
1573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1574 target_alias=$ac_optarg ;;
1576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1577 verbose=yes ;;
1579 -version | --version | --versio | --versi | --vers | -V)
1580 ac_init_version=: ;;
1582 -with-* | --with-*)
1583 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1584 # Reject names that are not valid shell variable names.
1585 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1586 as_fn_error "invalid package name: $ac_useropt"
1587 ac_useropt_orig=$ac_useropt
1588 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1589 case $ac_user_opts in
1591 "with_$ac_useropt"
1592 "*) ;;
1593 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1594 ac_unrecognized_sep=', ';;
1595 esac
1596 eval with_$ac_useropt=\$ac_optarg ;;
1598 -without-* | --without-*)
1599 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1600 # Reject names that are not valid shell variable names.
1601 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1602 as_fn_error "invalid package name: $ac_useropt"
1603 ac_useropt_orig=$ac_useropt
1604 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1605 case $ac_user_opts in
1607 "with_$ac_useropt"
1608 "*) ;;
1609 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1610 ac_unrecognized_sep=', ';;
1611 esac
1612 eval with_$ac_useropt=no ;;
1614 --x)
1615 # Obsolete; use --with-x.
1616 with_x=yes ;;
1618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1619 | --x-incl | --x-inc | --x-in | --x-i)
1620 ac_prev=x_includes ;;
1621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1623 x_includes=$ac_optarg ;;
1625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1627 ac_prev=x_libraries ;;
1628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1630 x_libraries=$ac_optarg ;;
1632 -*) as_fn_error "unrecognized option: \`$ac_option'
1633 Try \`$0 --help' for more information."
1636 *=*)
1637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1638 # Reject names that are not valid shell variable names.
1639 case $ac_envvar in #(
1640 '' | [0-9]* | *[!_$as_cr_alnum]* )
1641 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1642 esac
1643 eval $ac_envvar=\$ac_optarg
1644 export $ac_envvar ;;
1647 # FIXME: should be removed in autoconf 3.0.
1648 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1650 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1654 esac
1655 done
1657 if test -n "$ac_prev"; then
1658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1659 as_fn_error "missing argument to $ac_option"
1662 if test -n "$ac_unrecognized_opts"; then
1663 case $enable_option_checking in
1664 no) ;;
1665 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1666 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1667 esac
1670 # Check all directory arguments for consistency.
1671 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1672 datadir sysconfdir sharedstatedir localstatedir includedir \
1673 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1674 libdir localedir mandir
1676 eval ac_val=\$$ac_var
1677 # Remove trailing slashes.
1678 case $ac_val in
1679 */ )
1680 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1681 eval $ac_var=\$ac_val;;
1682 esac
1683 # Be sure to have absolute directory names.
1684 case $ac_val in
1685 [\\/$]* | ?:[\\/]* ) continue;;
1686 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1687 esac
1688 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1689 done
1691 # There might be people who depend on the old broken behavior: `$host'
1692 # used to hold the argument of --host etc.
1693 # FIXME: To remove some day.
1694 build=$build_alias
1695 host=$host_alias
1696 target=$target_alias
1698 # FIXME: To remove some day.
1699 if test "x$host_alias" != x; then
1700 if test "x$build_alias" = x; then
1701 cross_compiling=maybe
1702 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1703 If a cross compiler is detected then cross compile mode will be used." >&2
1704 elif test "x$build_alias" != "x$host_alias"; then
1705 cross_compiling=yes
1709 ac_tool_prefix=
1710 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1712 test "$silent" = yes && exec 6>/dev/null
1715 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1716 ac_ls_di=`ls -di .` &&
1717 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1718 as_fn_error "working directory cannot be determined"
1719 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1720 as_fn_error "pwd does not report name of working directory"
1723 # Find the source files, if location was not specified.
1724 if test -z "$srcdir"; then
1725 ac_srcdir_defaulted=yes
1726 # Try the directory containing this script, then the parent directory.
1727 ac_confdir=`$as_dirname -- "$as_myself" ||
1728 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1729 X"$as_myself" : 'X\(//\)[^/]' \| \
1730 X"$as_myself" : 'X\(//\)$' \| \
1731 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1732 $as_echo X"$as_myself" |
1733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1734 s//\1/
1737 /^X\(\/\/\)[^/].*/{
1738 s//\1/
1741 /^X\(\/\/\)$/{
1742 s//\1/
1745 /^X\(\/\).*/{
1746 s//\1/
1749 s/.*/./; q'`
1750 srcdir=$ac_confdir
1751 if test ! -r "$srcdir/$ac_unique_file"; then
1752 srcdir=..
1754 else
1755 ac_srcdir_defaulted=no
1757 if test ! -r "$srcdir/$ac_unique_file"; then
1758 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1759 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1761 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1762 ac_abs_confdir=`(
1763 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1764 pwd)`
1765 # When building in place, set srcdir=.
1766 if test "$ac_abs_confdir" = "$ac_pwd"; then
1767 srcdir=.
1769 # Remove unnecessary trailing slashes from srcdir.
1770 # Double slashes in file names in object file debugging info
1771 # mess up M-x gdb in Emacs.
1772 case $srcdir in
1773 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1774 esac
1775 for ac_var in $ac_precious_vars; do
1776 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1777 eval ac_env_${ac_var}_value=\$${ac_var}
1778 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1779 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1780 done
1783 # Report the --help message.
1785 if test "$ac_init_help" = "long"; then
1786 # Omit some internal or obsolete options to make the list less imposing.
1787 # This message is too long to be a string in the A/UX 3.1 sh.
1788 cat <<_ACEOF
1789 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1791 Usage: $0 [OPTION]... [VAR=VALUE]...
1793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1794 VAR=VALUE. See below for descriptions of some of the useful variables.
1796 Defaults for the options are specified in brackets.
1798 Configuration:
1799 -h, --help display this help and exit
1800 --help=short display options specific to this package
1801 --help=recursive display the short help of all the included packages
1802 -V, --version display version information and exit
1803 -q, --quiet, --silent do not print \`checking...' messages
1804 --cache-file=FILE cache test results in FILE [disabled]
1805 -C, --config-cache alias for \`--cache-file=config.cache'
1806 -n, --no-create do not create output files
1807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1809 Installation directories:
1810 --prefix=PREFIX install architecture-independent files in PREFIX
1811 [$ac_default_prefix]
1812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1813 [PREFIX]
1815 By default, \`make install' will install all the files in
1816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1818 for instance \`--prefix=\$HOME'.
1820 For better control, use the options below.
1822 Fine tuning of the installation directories:
1823 --bindir=DIR user executables [EPREFIX/bin]
1824 --sbindir=DIR system admin executables [EPREFIX/sbin]
1825 --libexecdir=DIR program executables [EPREFIX/libexec]
1826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1829 --libdir=DIR object code libraries [EPREFIX/lib]
1830 --includedir=DIR C header files [PREFIX/include]
1831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1832 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1833 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1834 --infodir=DIR info documentation [DATAROOTDIR/info]
1835 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1836 --mandir=DIR man documentation [DATAROOTDIR/man]
1837 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1838 --htmldir=DIR html documentation [DOCDIR]
1839 --dvidir=DIR dvi documentation [DOCDIR]
1840 --pdfdir=DIR pdf documentation [DOCDIR]
1841 --psdir=DIR ps documentation [DOCDIR]
1842 _ACEOF
1844 cat <<\_ACEOF
1846 Program names:
1847 --program-prefix=PREFIX prepend PREFIX to installed program names
1848 --program-suffix=SUFFIX append SUFFIX to installed program names
1849 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1851 X features:
1852 --x-includes=DIR X include files are in DIR
1853 --x-libraries=DIR X library files are in DIR
1855 System types:
1856 --build=BUILD configure for building on BUILD [guessed]
1857 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1858 _ACEOF
1861 if test -n "$ac_init_help"; then
1862 case $ac_init_help in
1863 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1864 esac
1865 cat <<\_ACEOF
1867 Optional Features:
1868 --disable-option-checking ignore unrecognized --enable/--with options
1869 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1870 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1871 --disable-ns-self-contained
1872 disable self contained build under NeXTstep
1873 --enable-asserts compile code with asserts enabled
1874 --enable-maintainer-mode
1875 enable make rules and dependencies not useful (and
1876 sometimes confusing) to the casual installer
1877 --enable-locallisppath=PATH
1878 directories Emacs should search for lisp files
1879 specific to this site
1880 --enable-checking[=LIST]
1881 enable expensive run-time checks. With LIST, enable
1882 only specific categories of checks. Categories are:
1883 all,yes,no. Flags are: stringbytes, stringoverrun,
1884 stringfreelist, xmallocoverrun, conslist
1885 --enable-use-lisp-union-type
1886 use a union for the Lisp_Object data type. This is
1887 only useful for development for catching certain
1888 types of bugs.
1889 --enable-profiling build emacs with profiling support. This might not
1890 work on all platforms
1891 --enable-autodepend automatically generate dependencies to .h-files.
1892 Requires GNU Make and Gcc. Enabled if GNU Make and
1893 Gcc is found
1894 --disable-dependency-tracking speeds up one-time build
1895 --enable-dependency-tracking do not reject slow dependency extractors
1896 --disable-largefile omit support for large files
1898 Optional Packages:
1899 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1900 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1901 --without-pop don't support POP mail retrieval with movemail
1902 --with-kerberos support Kerberos-authenticated POP
1903 --with-kerberos5 support Kerberos version 5 authenticated POP
1904 --with-hesiod support Hesiod to get the POP server host
1905 --with-mmdf support MMDF mailboxes
1906 --with-mail-unlink unlink, rather than empty, mail spool after reading
1907 --with-mailhost=HOSTNAME
1908 string giving default POP mail host
1909 --without-sound don't compile with sound support
1910 --without-sync-input process async input synchronously
1911 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1912 lucid or athena, motif, no)
1913 --without-xpm don't compile with XPM image support
1914 --without-jpeg don't compile with JPEG image support
1915 --without-tiff don't compile with TIFF image support
1916 --without-gif don't compile with GIF image support
1917 --without-png don't compile with PNG image support
1918 --without-rsvg don't compile with SVG image support
1919 --without-xml2 don't compile with XML parsing support
1920 --without-imagemagick don't compile with ImageMagick image support
1921 --without-xft don't use XFT for anti aliased fonts
1922 --without-libotf don't use libotf for OpenType font support
1923 --without-m17n-flt don't use m17n-flt for text shaping
1924 --without-toolkit-scroll-bars
1925 don't use Motif or Xaw3d scroll bars
1926 --without-xaw3d don't use Xaw3d
1927 --without-xim don't use X11 XIM
1928 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1929 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1930 console
1931 --without-dbus don't compile with D-Bus support
1932 --without-gconf don't compile with GConf support
1933 --without-selinux don't compile with SELinux support
1934 --without-gnutls don't use -lgnutls for SSL/TLS support
1935 --without-makeinfo don't require makeinfo for building manuals
1936 --without-compress-info don't compress the installed Info pages
1937 --with-pkg-config-prog=PATH
1938 path to pkg-config for finding GTK and librsvg
1939 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1940 /usr/lib, or /usr/lib64 on some platforms.
1941 --with-gameuser=USER user for shared game score files
1942 --with-gnustep-conf=PATH
1943 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1944 or /etc/GNUstep/GNUstep.conf
1945 --with-x use the X Window System
1947 Some influential environment variables:
1948 CC C compiler command
1949 CFLAGS C compiler flags
1950 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1951 nonstandard directory <lib dir>
1952 LIBS libraries to pass to the linker, e.g. -l<library>
1953 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1954 you have headers in a nonstandard directory <include dir>
1955 CPP C preprocessor
1956 XMKMF Path to xmkmf, Makefile generator for X Window System
1958 Use these variables to override the choices made by `configure' or to help
1959 it to find libraries and programs with nonstandard names/locations.
1961 Report bugs to the package provider.
1962 _ACEOF
1963 ac_status=$?
1966 if test "$ac_init_help" = "recursive"; then
1967 # If there are subdirs, report their specific --help.
1968 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1969 test -d "$ac_dir" ||
1970 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1971 continue
1972 ac_builddir=.
1974 case "$ac_dir" in
1975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1977 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1978 # A ".." for each directory in $ac_dir_suffix.
1979 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1980 case $ac_top_builddir_sub in
1981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1983 esac ;;
1984 esac
1985 ac_abs_top_builddir=$ac_pwd
1986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1987 # for backward compatibility:
1988 ac_top_builddir=$ac_top_build_prefix
1990 case $srcdir in
1991 .) # We are building in place.
1992 ac_srcdir=.
1993 ac_top_srcdir=$ac_top_builddir_sub
1994 ac_abs_top_srcdir=$ac_pwd ;;
1995 [\\/]* | ?:[\\/]* ) # Absolute name.
1996 ac_srcdir=$srcdir$ac_dir_suffix;
1997 ac_top_srcdir=$srcdir
1998 ac_abs_top_srcdir=$srcdir ;;
1999 *) # Relative name.
2000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2001 ac_top_srcdir=$ac_top_build_prefix$srcdir
2002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2003 esac
2004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2006 cd "$ac_dir" || { ac_status=$?; continue; }
2007 # Check for guested configure.
2008 if test -f "$ac_srcdir/configure.gnu"; then
2009 echo &&
2010 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2011 elif test -f "$ac_srcdir/configure"; then
2012 echo &&
2013 $SHELL "$ac_srcdir/configure" --help=recursive
2014 else
2015 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2016 fi || ac_status=$?
2017 cd "$ac_pwd" || { ac_status=$?; break; }
2018 done
2021 test -n "$ac_init_help" && exit $ac_status
2022 if $ac_init_version; then
2023 cat <<\_ACEOF
2024 emacs configure 24.0.50
2025 generated by GNU Autoconf 2.65
2027 Copyright (C) 2009 Free Software Foundation, Inc.
2028 This configure script is free software; the Free Software Foundation
2029 gives unlimited permission to copy, distribute and modify it.
2030 _ACEOF
2031 exit
2034 ## ------------------------ ##
2035 ## Autoconf initialization. ##
2036 ## ------------------------ ##
2038 # ac_fn_c_try_compile LINENO
2039 # --------------------------
2040 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2041 ac_fn_c_try_compile ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 rm -f conftest.$ac_objext
2045 if { { ac_try="$ac_compile"
2046 case "(($ac_try" in
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_compile") 2>conftest.err
2053 ac_status=$?
2054 if test -s conftest.err; then
2055 grep -v '^ *+' conftest.err >conftest.er1
2056 cat conftest.er1 >&5
2057 mv -f conftest.er1 conftest.err
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; } && {
2061 test -z "$ac_c_werror_flag" ||
2062 test ! -s conftest.err
2063 } && test -s conftest.$ac_objext; then :
2064 ac_retval=0
2065 else
2066 $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2069 ac_retval=1
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072 as_fn_set_status $ac_retval
2074 } # ac_fn_c_try_compile
2076 # ac_fn_c_try_cpp LINENO
2077 # ----------------------
2078 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2079 ac_fn_c_try_cpp ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 if { { ac_try="$ac_cpp conftest.$ac_ext"
2083 case "(($ac_try" in
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2086 esac
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2090 ac_status=$?
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } >/dev/null && {
2098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2100 }; then :
2101 ac_retval=0
2102 else
2103 $as_echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2106 ac_retval=1
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2109 as_fn_set_status $ac_retval
2111 } # ac_fn_c_try_cpp
2113 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2114 # -------------------------------------------------------
2115 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2116 # the include files in INCLUDES and setting the cache variable VAR
2117 # accordingly.
2118 ac_fn_c_check_header_mongrel ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2125 $as_echo_n "(cached) " >&6
2127 eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 else
2131 # Is the header compilable?
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2133 $as_echo_n "checking $2 usability... " >&6; }
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2137 #include <$2>
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 ac_header_compiler=yes
2141 else
2142 ac_header_compiler=no
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2146 $as_echo "$ac_header_compiler" >&6; }
2148 # Is the header present?
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2150 $as_echo_n "checking $2 presence... " >&6; }
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2153 #include <$2>
2154 _ACEOF
2155 if ac_fn_c_try_cpp "$LINENO"; then :
2156 ac_header_preproc=yes
2157 else
2158 ac_header_preproc=no
2160 rm -f conftest.err conftest.$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2162 $as_echo "$ac_header_preproc" >&6; }
2164 # So? What about this header?
2165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2166 yes:no: )
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2168 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2172 no:yes:* )
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2174 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2176 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2178 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2180 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2182 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2184 esac
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
2189 else
2190 eval "$3=\$ac_header_compiler"
2192 eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2198 } # ac_fn_c_check_header_mongrel
2200 # ac_fn_c_try_run LINENO
2201 # ----------------------
2202 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2203 # that executables *can* be run.
2204 ac_fn_c_try_run ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if { { ac_try="$ac_link"
2208 case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211 esac
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214 (eval "$ac_link") 2>&5
2215 ac_status=$?
2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2218 { { case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2221 esac
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_try") 2>&5
2225 ac_status=$?
2226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; }; }; then :
2228 ac_retval=0
2229 else
2230 $as_echo "$as_me: program exited with status $ac_status" >&5
2231 $as_echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2234 ac_retval=$ac_status
2236 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2238 as_fn_set_status $ac_retval
2240 } # ac_fn_c_try_run
2242 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2243 # -------------------------------------------------------
2244 # Tests whether HEADER exists and can be compiled using the include files in
2245 # INCLUDES, setting the cache variable VAR accordingly.
2246 ac_fn_c_check_header_compile ()
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2257 #include <$2>
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 eval "$3=yes"
2261 else
2262 eval "$3=no"
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 eval ac_res=\$$3
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271 } # ac_fn_c_check_header_compile
2273 # ac_fn_c_try_link LINENO
2274 # -----------------------
2275 # Try to link conftest.$ac_ext, and return whether this succeeded.
2276 ac_fn_c_try_link ()
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 rm -f conftest.$ac_objext conftest$ac_exeext
2280 if { { ac_try="$ac_link"
2281 case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2284 esac
2285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_link") 2>conftest.err
2288 ac_status=$?
2289 if test -s conftest.err; then
2290 grep -v '^ *+' conftest.err >conftest.er1
2291 cat conftest.er1 >&5
2292 mv -f conftest.er1 conftest.err
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; } && {
2296 test -z "$ac_c_werror_flag" ||
2297 test ! -s conftest.err
2298 } && test -s conftest$ac_exeext && {
2299 test "$cross_compiling" = yes ||
2300 $as_test_x conftest$ac_exeext
2301 }; then :
2302 ac_retval=0
2303 else
2304 $as_echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 ac_retval=1
2309 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2310 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2311 # interfere with the next link command; also delete a directory that is
2312 # left behind by Apple's compiler. We do this before executing the actions.
2313 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2314 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 as_fn_set_status $ac_retval
2317 } # ac_fn_c_try_link
2319 # ac_fn_c_check_decl LINENO SYMBOL VAR
2320 # ------------------------------------
2321 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2322 ac_fn_c_check_decl ()
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2326 $as_echo_n "checking whether $2 is declared... " >&6; }
2327 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2328 $as_echo_n "(cached) " >&6
2329 else
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2334 main ()
2336 #ifndef $2
2337 (void) $2;
2338 #endif
2341 return 0;
2343 _ACEOF
2344 if ac_fn_c_try_compile "$LINENO"; then :
2345 eval "$3=yes"
2346 else
2347 eval "$3=no"
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 eval ac_res=\$$3
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2356 } # ac_fn_c_check_decl
2358 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2359 # ----------------------------------------------
2360 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2361 ac_fn_c_check_header_preproc ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2371 #include <$2>
2372 _ACEOF
2373 if ac_fn_c_try_cpp "$LINENO"; then :
2374 eval "$3=yes"
2375 else
2376 eval "$3=no"
2378 rm -f conftest.err conftest.$ac_ext
2380 eval ac_res=\$$3
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385 } # ac_fn_c_check_header_preproc
2387 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2388 # ----------------------------------------------------
2389 # Tries to find if the field MEMBER exists in type AGGR, after including
2390 # INCLUDES, setting cache variable VAR accordingly.
2391 ac_fn_c_check_member ()
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2395 $as_echo_n "checking for $2.$3... " >&6; }
2396 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2403 main ()
2405 static $2 ac_aggr;
2406 if (ac_aggr.$3)
2407 return 0;
2409 return 0;
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413 eval "$4=yes"
2414 else
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2419 main ()
2421 static $2 ac_aggr;
2422 if (sizeof ac_aggr.$3)
2423 return 0;
2425 return 0;
2427 _ACEOF
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429 eval "$4=yes"
2430 else
2431 eval "$4=no"
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 eval ac_res=\$$4
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 } # ac_fn_c_check_member
2444 # ac_fn_c_check_func LINENO FUNC VAR
2445 # ----------------------------------
2446 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2447 ac_fn_c_check_func ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451 $as_echo_n "checking for $2... " >&6; }
2452 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2457 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2459 #define $2 innocuous_$2
2461 /* System header to define __stub macros and hopefully few prototypes,
2462 which can conflict with char $2 (); below.
2463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464 <limits.h> exists even on freestanding compilers. */
2466 #ifdef __STDC__
2467 # include <limits.h>
2468 #else
2469 # include <assert.h>
2470 #endif
2472 #undef $2
2474 /* Override any GCC internal prototype to avoid an error.
2475 Use char because int might match the return type of a GCC
2476 builtin and then its argument prototype would still apply. */
2477 #ifdef __cplusplus
2478 extern "C"
2479 #endif
2480 char $2 ();
2481 /* The GNU C library defines this for functions which it implements
2482 to always fail with ENOSYS. Some functions are actually named
2483 something starting with __ and the normal name is an alias. */
2484 #if defined __stub_$2 || defined __stub___$2
2485 choke me
2486 #endif
2489 main ()
2491 return $2 ();
2493 return 0;
2495 _ACEOF
2496 if ac_fn_c_try_link "$LINENO"; then :
2497 eval "$3=yes"
2498 else
2499 eval "$3=no"
2501 rm -f core conftest.err conftest.$ac_objext \
2502 conftest$ac_exeext conftest.$ac_ext
2504 eval ac_res=\$$3
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 $as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509 } # ac_fn_c_check_func
2511 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2512 # -------------------------------------------
2513 # Tests whether TYPE exists after having included INCLUDES, setting cache
2514 # variable VAR accordingly.
2515 ac_fn_c_check_type ()
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 eval "$3=no"
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2528 main ()
2530 if (sizeof ($2))
2531 return 0;
2533 return 0;
2535 _ACEOF
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2541 main ()
2543 if (sizeof (($2)))
2544 return 0;
2546 return 0;
2548 _ACEOF
2549 if ac_fn_c_try_compile "$LINENO"; then :
2551 else
2552 eval "$3=yes"
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 eval ac_res=\$$3
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560 $as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 } # ac_fn_c_check_type
2565 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2566 # --------------------------------------------
2567 # Tries to find the compile-time value of EXPR in a program that includes
2568 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2569 # computed
2570 ac_fn_c_compute_int ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 if test "$cross_compiling" = yes; then
2574 # Depending upon the size, compute the lo and hi bounds.
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2579 main ()
2581 static int test_array [1 - 2 * !(($2) >= 0)];
2582 test_array [0] = 0
2585 return 0;
2587 _ACEOF
2588 if ac_fn_c_try_compile "$LINENO"; then :
2589 ac_lo=0 ac_mid=0
2590 while :; do
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2595 main ()
2597 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2598 test_array [0] = 0
2601 return 0;
2603 _ACEOF
2604 if ac_fn_c_try_compile "$LINENO"; then :
2605 ac_hi=$ac_mid; break
2606 else
2607 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2608 if test $ac_lo -le $ac_mid; then
2609 ac_lo= ac_hi=
2610 break
2612 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 done
2616 else
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2621 main ()
2623 static int test_array [1 - 2 * !(($2) < 0)];
2624 test_array [0] = 0
2627 return 0;
2629 _ACEOF
2630 if ac_fn_c_try_compile "$LINENO"; then :
2631 ac_hi=-1 ac_mid=-1
2632 while :; do
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2637 main ()
2639 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2640 test_array [0] = 0
2643 return 0;
2645 _ACEOF
2646 if ac_fn_c_try_compile "$LINENO"; then :
2647 ac_lo=$ac_mid; break
2648 else
2649 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2650 if test $ac_mid -le $ac_hi; then
2651 ac_lo= ac_hi=
2652 break
2654 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 done
2658 else
2659 ac_lo= ac_hi=
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 # Binary search between lo and hi bounds.
2665 while test "x$ac_lo" != "x$ac_hi"; do
2666 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2671 main ()
2673 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2674 test_array [0] = 0
2677 return 0;
2679 _ACEOF
2680 if ac_fn_c_try_compile "$LINENO"; then :
2681 ac_hi=$ac_mid
2682 else
2683 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 done
2687 case $ac_lo in #((
2688 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2689 '') ac_retval=1 ;;
2690 esac
2691 else
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2695 static long int longval () { return $2; }
2696 static unsigned long int ulongval () { return $2; }
2697 #include <stdio.h>
2698 #include <stdlib.h>
2700 main ()
2703 FILE *f = fopen ("conftest.val", "w");
2704 if (! f)
2705 return 1;
2706 if (($2) < 0)
2708 long int i = longval ();
2709 if (i != ($2))
2710 return 1;
2711 fprintf (f, "%ld", i);
2713 else
2715 unsigned long int i = ulongval ();
2716 if (i != ($2))
2717 return 1;
2718 fprintf (f, "%lu", i);
2720 /* Do not output a trailing newline, as this causes \r\n confusion
2721 on some platforms. */
2722 return ferror (f) || fclose (f) != 0;
2725 return 0;
2727 _ACEOF
2728 if ac_fn_c_try_run "$LINENO"; then :
2729 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2730 else
2731 ac_retval=1
2733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2734 conftest.$ac_objext conftest.beam conftest.$ac_ext
2735 rm -f conftest.val
2738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2739 as_fn_set_status $ac_retval
2741 } # ac_fn_c_compute_int
2742 cat >config.log <<_ACEOF
2743 This file contains any messages produced by compilers while
2744 running configure, to aid debugging if configure makes a mistake.
2746 It was created by emacs $as_me 24.0.50, which was
2747 generated by GNU Autoconf 2.65. Invocation command line was
2749 $ $0 $@
2751 _ACEOF
2752 exec 5>>config.log
2754 cat <<_ASUNAME
2755 ## --------- ##
2756 ## Platform. ##
2757 ## --------- ##
2759 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2760 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2761 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2762 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2763 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2765 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2766 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2768 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2769 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2770 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2771 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2772 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2773 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2774 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2776 _ASUNAME
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 $as_echo "PATH: $as_dir"
2784 done
2785 IFS=$as_save_IFS
2787 } >&5
2789 cat >&5 <<_ACEOF
2792 ## ----------- ##
2793 ## Core tests. ##
2794 ## ----------- ##
2796 _ACEOF
2799 # Keep a trace of the command line.
2800 # Strip out --no-create and --no-recursion so they do not pile up.
2801 # Strip out --silent because we don't want to record it for future runs.
2802 # Also quote any args containing shell meta-characters.
2803 # Make two passes to allow for proper duplicate-argument suppression.
2804 ac_configure_args=
2805 ac_configure_args0=
2806 ac_configure_args1=
2807 ac_must_keep_next=false
2808 for ac_pass in 1 2
2810 for ac_arg
2812 case $ac_arg in
2813 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2815 | -silent | --silent | --silen | --sile | --sil)
2816 continue ;;
2817 *\'*)
2818 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2819 esac
2820 case $ac_pass in
2821 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2823 as_fn_append ac_configure_args1 " '$ac_arg'"
2824 if test $ac_must_keep_next = true; then
2825 ac_must_keep_next=false # Got value, back to normal.
2826 else
2827 case $ac_arg in
2828 *=* | --config-cache | -C | -disable-* | --disable-* \
2829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2831 | -with-* | --with-* | -without-* | --without-* | --x)
2832 case "$ac_configure_args0 " in
2833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2834 esac
2836 -* ) ac_must_keep_next=true ;;
2837 esac
2839 as_fn_append ac_configure_args " '$ac_arg'"
2841 esac
2842 done
2843 done
2844 { ac_configure_args0=; unset ac_configure_args0;}
2845 { ac_configure_args1=; unset ac_configure_args1;}
2847 # When interrupted or exit'd, cleanup temporary files, and complete
2848 # config.log. We remove comments because anyway the quotes in there
2849 # would cause problems or look ugly.
2850 # WARNING: Use '\'' to represent an apostrophe within the trap.
2851 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2852 trap 'exit_status=$?
2853 # Save into config.log some information that might help in debugging.
2855 echo
2857 cat <<\_ASBOX
2858 ## ---------------- ##
2859 ## Cache variables. ##
2860 ## ---------------- ##
2861 _ASBOX
2862 echo
2863 # The following way of writing the cache mishandles newlines in values,
2865 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2866 eval ac_val=\$$ac_var
2867 case $ac_val in #(
2868 *${as_nl}*)
2869 case $ac_var in #(
2870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2872 esac
2873 case $ac_var in #(
2874 _ | IFS | as_nl) ;; #(
2875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2876 *) { eval $ac_var=; unset $ac_var;} ;;
2877 esac ;;
2878 esac
2879 done
2880 (set) 2>&1 |
2881 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2882 *${as_nl}ac_space=\ *)
2883 sed -n \
2884 "s/'\''/'\''\\\\'\'''\''/g;
2885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2886 ;; #(
2888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2890 esac |
2891 sort
2893 echo
2895 cat <<\_ASBOX
2896 ## ----------------- ##
2897 ## Output variables. ##
2898 ## ----------------- ##
2899 _ASBOX
2900 echo
2901 for ac_var in $ac_subst_vars
2903 eval ac_val=\$$ac_var
2904 case $ac_val in
2905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2906 esac
2907 $as_echo "$ac_var='\''$ac_val'\''"
2908 done | sort
2909 echo
2911 if test -n "$ac_subst_files"; then
2912 cat <<\_ASBOX
2913 ## ------------------- ##
2914 ## File substitutions. ##
2915 ## ------------------- ##
2916 _ASBOX
2917 echo
2918 for ac_var in $ac_subst_files
2920 eval ac_val=\$$ac_var
2921 case $ac_val in
2922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2923 esac
2924 $as_echo "$ac_var='\''$ac_val'\''"
2925 done | sort
2926 echo
2929 if test -s confdefs.h; then
2930 cat <<\_ASBOX
2931 ## ----------- ##
2932 ## confdefs.h. ##
2933 ## ----------- ##
2934 _ASBOX
2935 echo
2936 cat confdefs.h
2937 echo
2939 test "$ac_signal" != 0 &&
2940 $as_echo "$as_me: caught signal $ac_signal"
2941 $as_echo "$as_me: exit $exit_status"
2942 } >&5
2943 rm -f core *.core core.conftest.* &&
2944 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2945 exit $exit_status
2947 for ac_signal in 1 2 13 15; do
2948 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2949 done
2950 ac_signal=0
2952 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2953 rm -f -r conftest* confdefs.h
2955 $as_echo "/* confdefs.h */" > confdefs.h
2957 # Predefined preprocessor variables.
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_NAME "$PACKAGE_NAME"
2961 _ACEOF
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2965 _ACEOF
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2969 _ACEOF
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_STRING "$PACKAGE_STRING"
2973 _ACEOF
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2977 _ACEOF
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_URL "$PACKAGE_URL"
2981 _ACEOF
2984 # Let the site file select an alternate cache file if it wants to.
2985 # Prefer an explicitly selected file to automatically selected ones.
2986 ac_site_file1=NONE
2987 ac_site_file2=NONE
2988 if test -n "$CONFIG_SITE"; then
2989 ac_site_file1=$CONFIG_SITE
2990 elif test "x$prefix" != xNONE; then
2991 ac_site_file1=$prefix/share/config.site
2992 ac_site_file2=$prefix/etc/config.site
2993 else
2994 ac_site_file1=$ac_default_prefix/share/config.site
2995 ac_site_file2=$ac_default_prefix/etc/config.site
2997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2999 test "x$ac_site_file" = xNONE && continue
3000 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3003 sed 's/^/| /' "$ac_site_file" >&5
3004 . "$ac_site_file"
3006 done
3008 if test -r "$cache_file"; then
3009 # Some versions of bash will fail to source /dev/null (special files
3010 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3011 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3013 $as_echo "$as_me: loading cache $cache_file" >&6;}
3014 case $cache_file in
3015 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3016 *) . "./$cache_file";;
3017 esac
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3021 $as_echo "$as_me: creating cache $cache_file" >&6;}
3022 >$cache_file
3025 as_fn_append ac_header_list " stdlib.h"
3026 as_fn_append ac_header_list " unistd.h"
3027 as_fn_append ac_header_list " sys/param.h"
3028 gl_getopt_required=GNU
3029 as_fn_append ac_header_list " getopt.h"
3030 as_fn_append ac_func_list " lstat"
3031 as_fn_append ac_func_list " alarm"
3032 as_fn_append ac_func_list " readlink"
3033 as_fn_append ac_header_list " sys/socket.h"
3034 as_fn_append ac_header_list " wchar.h"
3035 as_fn_append ac_header_list " stdint.h"
3036 as_fn_append ac_func_list " tzset"
3037 as_fn_append ac_func_list " symlink"
3038 as_fn_append ac_header_list " sys/stat.h"
3039 as_fn_append ac_header_list " sys/time.h"
3040 as_fn_append ac_func_list " localtime_r"
3041 # Check that the precious variables saved in the cache have kept the same
3042 # value.
3043 ac_cache_corrupted=false
3044 for ac_var in $ac_precious_vars; do
3045 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3046 eval ac_new_set=\$ac_env_${ac_var}_set
3047 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3048 eval ac_new_val=\$ac_env_${ac_var}_value
3049 case $ac_old_set,$ac_new_set in
3050 set,)
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3052 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3053 ac_cache_corrupted=: ;;
3054 ,set)
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3056 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3057 ac_cache_corrupted=: ;;
3058 ,);;
3060 if test "x$ac_old_val" != "x$ac_new_val"; then
3061 # differences in whitespace do not lead to failure.
3062 ac_old_val_w=`echo x $ac_old_val`
3063 ac_new_val_w=`echo x $ac_new_val`
3064 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3066 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3067 ac_cache_corrupted=:
3068 else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3070 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3071 eval $ac_var=\$ac_old_val
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3074 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3076 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3077 fi;;
3078 esac
3079 # Pass precious variables to config.status.
3080 if test "$ac_new_set" = set; then
3081 case $ac_new_val in
3082 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3083 *) ac_arg=$ac_var=$ac_new_val ;;
3084 esac
3085 case " $ac_configure_args " in
3086 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3087 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3088 esac
3090 done
3091 if $ac_cache_corrupted; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3095 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3096 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3098 ## -------------------- ##
3099 ## Main body of script. ##
3100 ## -------------------- ##
3102 ac_ext=c
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3112 am__api_version='1.11'
3114 ac_aux_dir=
3115 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3116 for ac_t in install-sh install.sh shtool; do
3117 if test -f "$ac_dir/$ac_t"; then
3118 ac_aux_dir=$ac_dir
3119 ac_install_sh="$ac_aux_dir/$ac_t -c"
3120 break 2
3122 done
3123 done
3124 if test -z "$ac_aux_dir"; then
3125 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3128 # These three variables are undocumented and unsupported,
3129 # and are intended to be withdrawn in a future Autoconf release.
3130 # They can cause serious problems if a builder's source tree is in a directory
3131 # whose full name contains unusual characters.
3132 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3133 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3134 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3137 # Find a good install program. We prefer a C program (faster),
3138 # so one script is as good as another. But avoid the broken or
3139 # incompatible versions:
3140 # SysV /etc/install, /usr/sbin/install
3141 # SunOS /usr/etc/install
3142 # IRIX /sbin/install
3143 # AIX /bin/install
3144 # AmigaOS /C/install, which installs bootblocks on floppy discs
3145 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3146 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3147 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3148 # OS/2's system install, which has a completely different semantic
3149 # ./install, which can be erroneously created by make from ./install.sh.
3150 # Reject install programs that cannot install multiple files.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3152 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3153 if test -z "$INSTALL"; then
3154 if test "${ac_cv_path_install+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 # Account for people who put trailing slashes in PATH elements.
3163 case $as_dir/ in #((
3164 ./ | .// | /[cC]/* | \
3165 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3166 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3167 /usr/ucb/* ) ;;
3169 # OSF1 and SCO ODT 3.0 have their own names for install.
3170 # Don't use installbsd from OSF since it installs stuff as root
3171 # by default.
3172 for ac_prog in ginstall scoinst install; do
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3175 if test $ac_prog = install &&
3176 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3177 # AIX install. It has an incompatible calling convention.
3179 elif test $ac_prog = install &&
3180 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3181 # program-specific install script used by HP pwplus--don't use.
3183 else
3184 rm -rf conftest.one conftest.two conftest.dir
3185 echo one > conftest.one
3186 echo two > conftest.two
3187 mkdir conftest.dir
3188 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3189 test -s conftest.one && test -s conftest.two &&
3190 test -s conftest.dir/conftest.one &&
3191 test -s conftest.dir/conftest.two
3192 then
3193 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3194 break 3
3198 done
3199 done
3201 esac
3203 done
3204 IFS=$as_save_IFS
3206 rm -rf conftest.one conftest.two conftest.dir
3209 if test "${ac_cv_path_install+set}" = set; then
3210 INSTALL=$ac_cv_path_install
3211 else
3212 # As a last resort, use the slow shell script. Don't cache a
3213 # value for INSTALL within a source directory, because that will
3214 # break other packages using the cache if that directory is
3215 # removed, or if the value is a relative name.
3216 INSTALL=$ac_install_sh
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3220 $as_echo "$INSTALL" >&6; }
3222 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3223 # It thinks the first close brace ends the variable substitution.
3224 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3226 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3228 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3231 $as_echo_n "checking whether build environment is sane... " >&6; }
3232 # Just in case
3233 sleep 1
3234 echo timestamp > conftest.file
3235 # Reject unsafe characters in $srcdir or the absolute working directory
3236 # name. Accept space and tab only in the latter.
3237 am_lf='
3239 case `pwd` in
3240 *[\\\"\#\$\&\'\`$am_lf]*)
3241 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3242 esac
3243 case $srcdir in
3244 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3245 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3246 esac
3248 # Do `set' in a subshell so we don't clobber the current shell's
3249 # arguments. Must try -L first in case configure is actually a
3250 # symlink; some systems play weird games with the mod time of symlinks
3251 # (eg FreeBSD returns the mod time of the symlink's containing
3252 # directory).
3253 if (
3254 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3255 if test "$*" = "X"; then
3256 # -L didn't work.
3257 set X `ls -t "$srcdir/configure" conftest.file`
3259 rm -f conftest.file
3260 if test "$*" != "X $srcdir/configure conftest.file" \
3261 && test "$*" != "X conftest.file $srcdir/configure"; then
3263 # If neither matched, then we have a broken ls. This can happen
3264 # if, for instance, CONFIG_SHELL is bash and it inherits a
3265 # broken ls alias from the environment. This has actually
3266 # happened. Such a system could not be considered "sane".
3267 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3268 alias in your environment" "$LINENO" 5
3271 test "$2" = conftest.file
3273 then
3274 # Ok.
3276 else
3277 as_fn_error "newly created file is older than distributed files!
3278 Check your system clock" "$LINENO" 5
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3282 test "$program_prefix" != NONE &&
3283 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3284 # Use a double $ so make ignores it.
3285 test "$program_suffix" != NONE &&
3286 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3287 # Double any \ or $.
3288 # By default was `s,x,x', remove it if useless.
3289 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3290 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3292 # expand $ac_aux_dir to an absolute path
3293 am_aux_dir=`cd $ac_aux_dir && pwd`
3295 if test x"${MISSING+set}" != xset; then
3296 case $am_aux_dir in
3297 *\ * | *\ *)
3298 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3300 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3301 esac
3303 # Use eval to expand $SHELL
3304 if eval "$MISSING --run true"; then
3305 am_missing_run="$MISSING --run "
3306 else
3307 am_missing_run=
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3309 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3312 if test x"${install_sh}" != xset; then
3313 case $am_aux_dir in
3314 *\ * | *\ *)
3315 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3317 install_sh="\${SHELL} $am_aux_dir/install-sh"
3318 esac
3321 # Installed binaries are usually stripped using `strip' when the user
3322 # run `make install-strip'. However `strip' might not be the right
3323 # tool to use in cross-compilation environments, therefore Automake
3324 # will honor the `STRIP' environment variable to overrule this program.
3325 if test "$cross_compiling" != no; then
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}strip; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_STRIP+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$STRIP"; then
3335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3348 done
3349 done
3350 IFS=$as_save_IFS
3354 STRIP=$ac_cv_prog_STRIP
3355 if test -n "$STRIP"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3357 $as_echo "$STRIP" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_STRIP"; then
3366 ac_ct_STRIP=$STRIP
3367 # Extract the first word of "strip", so it can be a program name with args.
3368 set dummy strip; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$ac_ct_STRIP"; then
3375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_ac_ct_STRIP="strip"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3388 done
3389 done
3390 IFS=$as_save_IFS
3394 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3395 if test -n "$ac_ct_STRIP"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3397 $as_echo "$ac_ct_STRIP" >&6; }
3398 else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_STRIP" = x; then
3404 STRIP=":"
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 STRIP=$ac_ct_STRIP
3414 else
3415 STRIP="$ac_cv_prog_STRIP"
3419 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3422 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3423 if test -z "$MKDIR_P"; then
3424 if test "${ac_cv_path_mkdir+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_prog in mkdir gmkdir; do
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3435 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3436 'mkdir (GNU coreutils) '* | \
3437 'mkdir (coreutils) '* | \
3438 'mkdir (fileutils) '4.1*)
3439 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3440 break 3;;
3441 esac
3442 done
3443 done
3444 done
3445 IFS=$as_save_IFS
3449 test -d ./--version && rmdir ./--version
3450 if test "${ac_cv_path_mkdir+set}" = set; then
3451 MKDIR_P="$ac_cv_path_mkdir -p"
3452 else
3453 # As a last resort, use the slow shell script. Don't cache a
3454 # value for MKDIR_P within a source directory, because that will
3455 # break other packages using the cache if that directory is
3456 # removed, or if the value is a relative name.
3457 MKDIR_P="$ac_install_sh -d"
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3461 $as_echo "$MKDIR_P" >&6; }
3464 mkdir_p="$MKDIR_P"
3465 case $mkdir_p in
3466 [\\/$]* | ?:[\\/]*) ;;
3467 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3468 esac
3470 for ac_prog in gawk mawk nawk awk
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy $ac_prog; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if test "${ac_cv_prog_AWK+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 if test -n "$AWK"; then
3480 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 ac_cv_prog_AWK="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3493 done
3494 done
3495 IFS=$as_save_IFS
3499 AWK=$ac_cv_prog_AWK
3500 if test -n "$AWK"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3502 $as_echo "$AWK" >&6; }
3503 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3509 test -n "$AWK" && break
3510 done
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3513 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3514 set x ${MAKE-make}
3515 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3516 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 cat >conftest.make <<\_ACEOF
3520 SHELL = /bin/sh
3521 all:
3522 @echo '@@@%%%=$(MAKE)=@@@%%%'
3523 _ACEOF
3524 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3525 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3526 *@@@%%%=?*=@@@%%%*)
3527 eval ac_cv_prog_make_${ac_make}_set=yes;;
3529 eval ac_cv_prog_make_${ac_make}_set=no;;
3530 esac
3531 rm -f conftest.make
3533 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3535 $as_echo "yes" >&6; }
3536 SET_MAKE=
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 SET_MAKE="MAKE=${MAKE-make}"
3543 rm -rf .tst 2>/dev/null
3544 mkdir .tst 2>/dev/null
3545 if test -d .tst; then
3546 am__leading_dot=.
3547 else
3548 am__leading_dot=_
3550 rmdir .tst 2>/dev/null
3552 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3553 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3554 # is not polluted with repeated "-I."
3555 am__isrc=' -I$(srcdir)'
3556 # test to see if srcdir already configured
3557 if test -f $srcdir/config.status; then
3558 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3562 # test whether we have cygpath
3563 if test -z "$CYGPATH_W"; then
3564 if (cygpath --version) >/dev/null 2>/dev/null; then
3565 CYGPATH_W='cygpath -w'
3566 else
3567 CYGPATH_W=echo
3572 # Define the identity of the package.
3573 PACKAGE='emacs'
3574 VERSION='24.0.50'
3577 cat >>confdefs.h <<_ACEOF
3578 #define PACKAGE "$PACKAGE"
3579 _ACEOF
3582 cat >>confdefs.h <<_ACEOF
3583 #define VERSION "$VERSION"
3584 _ACEOF
3586 # Some tools Automake needs.
3588 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3591 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3594 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3597 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3600 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3602 # We need awk for the "check" target. The system "awk" is bad on
3603 # some platforms.
3604 # Always define AMTAR for backward compatibility.
3606 AMTAR=${AMTAR-"${am_missing_run}tar"}
3608 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3617 lispdir='${datadir}/emacs/${version}/lisp'
3618 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3619 '${datadir}/emacs/site-lisp'
3620 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3621 etcdir='${datadir}/emacs/${version}/etc'
3622 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3623 docdir='${datadir}/emacs/${version}/etc'
3624 gamedir='${localstatedir}/games/emacs'
3629 # Check whether --with-pop was given.
3630 if test "${with_pop+set}" = set; then :
3631 withval=$with_pop;
3632 else
3633 with_pop=yes
3636 if test "$with_pop" = yes; then
3637 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3642 # Check whether --with-kerberos was given.
3643 if test "${with_kerberos+set}" = set; then :
3644 withval=$with_kerberos;
3645 else
3646 with_kerberos=no
3649 if test "$with_kerberos" != no; then
3650 $as_echo "#define KERBEROS 1" >>confdefs.h
3655 # Check whether --with-kerberos5 was given.
3656 if test "${with_kerberos5+set}" = set; then :
3657 withval=$with_kerberos5;
3658 else
3659 with_kerberos5=no
3662 if test "${with_kerberos5}" != no; then
3663 if test "${with_kerberos}" = no; then
3664 with_kerberos=yes
3665 $as_echo "#define KERBEROS 1" >>confdefs.h
3669 $as_echo "#define KERBEROS5 1" >>confdefs.h
3674 # Check whether --with-hesiod was given.
3675 if test "${with_hesiod+set}" = set; then :
3676 withval=$with_hesiod;
3677 else
3678 with_hesiod=no
3681 if test "$with_hesiod" != no; then
3683 $as_echo "#define HESIOD 1" >>confdefs.h
3688 # Check whether --with-mmdf was given.
3689 if test "${with_mmdf+set}" = set; then :
3690 withval=$with_mmdf;
3691 else
3692 with_mmdf=no
3695 if test "$with_mmdf" != no; then
3697 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3702 # Check whether --with-mail-unlink was given.
3703 if test "${with_mail_unlink+set}" = set; then :
3704 withval=$with_mail_unlink;
3705 else
3706 with_mail_unlink=no
3709 if test "$with_mail_unlink" != no; then
3711 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3716 # Check whether --with-mailhost was given.
3717 if test "${with_mailhost+set}" = set; then :
3718 withval=$with_mailhost;
3719 cat >>confdefs.h <<_ACEOF
3720 #define MAILHOST "$withval"
3721 _ACEOF
3727 # Check whether --with-sound was given.
3728 if test "${with_sound+set}" = set; then :
3729 withval=$with_sound;
3730 else
3731 with_sound=yes
3736 # Check whether --with-sync-input was given.
3737 if test "${with_sync_input+set}" = set; then :
3738 withval=$with_sync_input;
3739 else
3740 with_sync_input=yes
3743 if test "$with_sync_input" = yes; then
3745 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3750 # Check whether --with-x-toolkit was given.
3751 if test "${with_x_toolkit+set}" = set; then :
3752 withval=$with_x_toolkit; case "${withval}" in
3753 y | ye | yes ) val=gtk ;;
3754 n | no ) val=no ;;
3755 l | lu | luc | luci | lucid ) val=lucid ;;
3756 a | at | ath | athe | athen | athena ) val=athena ;;
3757 m | mo | mot | moti | motif ) val=motif ;;
3758 g | gt | gtk ) val=gtk ;;
3759 gtk3 ) val=gtk3 ;;
3761 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3762 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3763 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3765 esac
3766 with_x_toolkit=$val
3772 # Check whether --with-xpm was given.
3773 if test "${with_xpm+set}" = set; then :
3774 withval=$with_xpm;
3775 else
3776 with_xpm=yes
3780 # Check whether --with-jpeg was given.
3781 if test "${with_jpeg+set}" = set; then :
3782 withval=$with_jpeg;
3783 else
3784 with_jpeg=yes
3788 # Check whether --with-tiff was given.
3789 if test "${with_tiff+set}" = set; then :
3790 withval=$with_tiff;
3791 else
3792 with_tiff=yes
3796 # Check whether --with-gif was given.
3797 if test "${with_gif+set}" = set; then :
3798 withval=$with_gif;
3799 else
3800 with_gif=yes
3804 # Check whether --with-png was given.
3805 if test "${with_png+set}" = set; then :
3806 withval=$with_png;
3807 else
3808 with_png=yes
3812 # Check whether --with-rsvg was given.
3813 if test "${with_rsvg+set}" = set; then :
3814 withval=$with_rsvg;
3815 else
3816 with_rsvg=yes
3820 # Check whether --with-xml2 was given.
3821 if test "${with_xml2+set}" = set; then :
3822 withval=$with_xml2;
3823 else
3824 with_xml2=yes
3828 # Check whether --with-imagemagick was given.
3829 if test "${with_imagemagick+set}" = set; then :
3830 withval=$with_imagemagick;
3831 else
3832 with_imagemagick=yes
3837 # Check whether --with-xft was given.
3838 if test "${with_xft+set}" = set; then :
3839 withval=$with_xft;
3840 else
3841 with_xft=yes
3845 # Check whether --with-libotf was given.
3846 if test "${with_libotf+set}" = set; then :
3847 withval=$with_libotf;
3848 else
3849 with_libotf=yes
3853 # Check whether --with-m17n-flt was given.
3854 if test "${with_m17n_flt+set}" = set; then :
3855 withval=$with_m17n_flt;
3856 else
3857 with_m17n_flt=yes
3862 # Check whether --with-toolkit-scroll-bars was given.
3863 if test "${with_toolkit_scroll_bars+set}" = set; then :
3864 withval=$with_toolkit_scroll_bars;
3865 else
3866 with_toolkit_scroll_bars=yes
3870 # Check whether --with-xaw3d was given.
3871 if test "${with_xaw3d+set}" = set; then :
3872 withval=$with_xaw3d;
3873 else
3874 with_xaw3d=yes
3878 # Check whether --with-xim was given.
3879 if test "${with_xim+set}" = set; then :
3880 withval=$with_xim;
3881 else
3882 with_xim=yes
3886 # Check whether --with-ns was given.
3887 if test "${with_ns+set}" = set; then :
3888 withval=$with_ns;
3889 else
3890 with_ns=no
3895 # Check whether --with-gpm was given.
3896 if test "${with_gpm+set}" = set; then :
3897 withval=$with_gpm;
3898 else
3899 with_gpm=yes
3903 # Check whether --with-dbus was given.
3904 if test "${with_dbus+set}" = set; then :
3905 withval=$with_dbus;
3906 else
3907 with_dbus=yes
3911 # Check whether --with-gconf was given.
3912 if test "${with_gconf+set}" = set; then :
3913 withval=$with_gconf;
3914 else
3915 with_gconf=yes
3919 # Check whether --with-selinux was given.
3920 if test "${with_selinux+set}" = set; then :
3921 withval=$with_selinux;
3922 else
3923 with_selinux=yes
3927 # Check whether --with-gnutls was given.
3928 if test "${with_gnutls+set}" = set; then :
3929 withval=$with_gnutls;
3930 else
3931 with_gnutls=yes
3935 ## For the times when you want to build Emacs but don't have
3936 ## a suitable makeinfo, and can live without the manuals.
3938 # Check whether --with-makeinfo was given.
3939 if test "${with_makeinfo+set}" = set; then :
3940 withval=$with_makeinfo;
3941 else
3942 with_makeinfo=yes
3946 ## This is an option because I do not know if all info/man support
3947 ## compressed files, nor how to test if they do so.
3949 # Check whether --with-compress-info was given.
3950 if test "${with_compress_info+set}" = set; then :
3951 withval=$with_compress_info;
3952 else
3953 with_compress_info=yes
3956 if test $with_compress_info = yes; then
3957 GZIP_INFO=yes
3958 else
3959 GZIP_INFO=
3964 # Check whether --with-pkg-config-prog was given.
3965 if test "${with_pkg_config_prog+set}" = set; then :
3966 withval=$with_pkg_config_prog;
3969 if test "X${with_pkg_config_prog}" != X; then
3970 if test "${with_pkg_config_prog}" != yes; then
3971 PKG_CONFIG="${with_pkg_config_prog}"
3975 CRT_DIR=
3977 # Check whether --with-crt-dir was given.
3978 if test "${with_crt_dir+set}" = set; then :
3979 withval=$with_crt_dir;
3982 CRT_DIR="${with_crt_dir}"
3985 # Check whether --with-gameuser was given.
3986 if test "${with_gameuser+set}" = set; then :
3987 withval=$with_gameuser;
3990 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3991 && gameuser="${with_gameuser}"
3992 test "X$gameuser" = X && gameuser=games
3995 # Check whether --with-gnustep-conf was given.
3996 if test "${with_gnustep_conf+set}" = set; then :
3997 withval=$with_gnustep_conf;
4000 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4001 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4002 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4003 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4005 # Check whether --enable-ns-self-contained was given.
4006 if test "${enable_ns_self_contained+set}" = set; then :
4007 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4008 else
4009 EN_NS_SELF_CONTAINED=yes
4013 # Check whether --enable-asserts was given.
4014 if test "${enable_asserts+set}" = set; then :
4015 enableval=$enable_asserts; USE_XASSERTS=$enableval
4016 else
4017 USE_XASSERTS=no
4021 # Check whether --enable-maintainer-mode was given.
4022 if test "${enable_maintainer_mode+set}" = set; then :
4023 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4024 else
4025 USE_MAINTAINER_MODE=yes
4028 if test $USE_MAINTAINER_MODE = yes; then
4029 MAINT=
4030 else
4031 MAINT=#
4035 # Check whether --enable-locallisppath was given.
4036 if test "${enable_locallisppath+set}" = set; then :
4037 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4038 locallisppath=
4039 elif test "${enableval}" != "yes"; then
4040 locallisppath=${enableval}
4045 # Check whether --enable-checking was given.
4046 if test "${enable_checking+set}" = set; then :
4047 enableval=$enable_checking; ac_checking_flags="${enableval}"
4050 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4051 for check in $ac_checking_flags
4053 case $check in
4054 # these set all the flags to specific states
4055 yes) ac_enable_checking=1 ;;
4056 no) ac_enable_checking= ;
4057 ac_gc_check_stringbytes= ;
4058 ac_gc_check_string_overrun= ;
4059 ac_gc_check_string_free_list= ;
4060 ac_xmalloc_overrun= ;
4061 ac_gc_check_cons_list= ;;
4062 all) ac_enable_checking=1 ;
4063 ac_gc_check_stringbytes=1 ;
4064 ac_gc_check_string_overrun=1 ;
4065 ac_gc_check_string_free_list=1 ;
4066 ac_xmalloc_overrun=1 ;
4067 ac_gc_check_cons_list=1 ;;
4068 # these enable particular checks
4069 stringbytes) ac_gc_check_stringbytes=1 ;;
4070 stringoverrun) ac_gc_check_string_overrun=1 ;;
4071 stringfreelist) ac_gc_check_string_free_list=1 ;;
4072 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4073 conslist) ac_gc_check_cons_list=1 ;;
4074 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4075 esac
4076 done
4077 IFS="$ac_save_IFS"
4079 if test x$ac_enable_checking != x ; then
4081 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4084 if test x$ac_gc_check_stringbytes != x ; then
4086 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4089 if test x$ac_gc_check_stringoverrun != x ; then
4091 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4094 if test x$ac_gc_check_string_free_list != x ; then
4096 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4099 if test x$ac_xmalloc_overrun != x ; then
4101 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4104 if test x$ac_gc_check_cons_list != x ; then
4106 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4110 # Check whether --enable-use-lisp-union-type was given.
4111 if test "${enable_use_lisp_union_type+set}" = set; then :
4112 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4114 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4121 # Check whether --enable-profiling was given.
4122 if test "${enable_profiling+set}" = set; then :
4123 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4126 if test x$ac_enable_profiling != x ; then
4127 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4128 else
4129 PROFILING_CFLAGS=
4133 # Check whether --enable-autodepend was given.
4134 if test "${enable_autodepend+set}" = set; then :
4135 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4136 else
4137 ac_enable_autodepend=yes
4141 #### Make srcdir absolute, if it isn't already. It's important to
4142 #### avoid running the path through pwd unnecessarily, since pwd can
4143 #### give you automounter prefixes, which can go away. We do all this
4144 #### so Emacs can find its files when run uninstalled.
4145 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4146 unset CDPATH
4147 case "${srcdir}" in
4148 /* ) ;;
4150 ## We may be able to use the $PWD environment variable to make this
4151 ## absolute. But sometimes PWD is inaccurate.
4152 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4153 ## but that tested only for a well-formed and valid PWD,
4154 ## it did not object when PWD was well-formed and valid but just wrong.
4155 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4156 then
4157 srcdir="$PWD"
4158 else
4159 srcdir="`(cd ${srcdir}; pwd)`"
4162 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4163 esac
4165 #### Check if the source directory already has a configured system in it.
4166 if test `pwd` != `(cd ${srcdir} && pwd)` \
4167 && test -f "${srcdir}/src/config.h" ; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4169 as a build directory right now; it has been configured in its own
4170 right. To configure in another directory as well, you MUST
4171 use GNU make. If you do not have GNU make, then you must
4172 now do \`make distclean' in ${srcdir},
4173 and then run $0 again." >&5
4174 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4175 as a build directory right now; it has been configured in its own
4176 right. To configure in another directory as well, you MUST
4177 use GNU make. If you do not have GNU make, then you must
4178 now do \`make distclean' in ${srcdir},
4179 and then run $0 again." >&2;}
4182 #### Given the configuration name, set machfile and opsysfile to the
4183 #### names of the m/*.h and s/*.h files we should use.
4185 ### Canonicalize the configuration name.
4187 # Make sure we can run config.sub.
4188 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4189 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4192 $as_echo_n "checking build system type... " >&6; }
4193 if test "${ac_cv_build+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 ac_build_alias=$build_alias
4197 test "x$ac_build_alias" = x &&
4198 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4199 test "x$ac_build_alias" = x &&
4200 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4201 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4202 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4206 $as_echo "$ac_cv_build" >&6; }
4207 case $ac_cv_build in
4208 *-*-*) ;;
4209 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4210 esac
4211 build=$ac_cv_build
4212 ac_save_IFS=$IFS; IFS='-'
4213 set x $ac_cv_build
4214 shift
4215 build_cpu=$1
4216 build_vendor=$2
4217 shift; shift
4218 # Remember, the first character of IFS is used to create $*,
4219 # except with old shells:
4220 build_os=$*
4221 IFS=$ac_save_IFS
4222 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4226 $as_echo_n "checking host system type... " >&6; }
4227 if test "${ac_cv_host+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test "x$host_alias" = x; then
4231 ac_cv_host=$ac_cv_build
4232 else
4233 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4234 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4239 $as_echo "$ac_cv_host" >&6; }
4240 case $ac_cv_host in
4241 *-*-*) ;;
4242 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4243 esac
4244 host=$ac_cv_host
4245 ac_save_IFS=$IFS; IFS='-'
4246 set x $ac_cv_host
4247 shift
4248 host_cpu=$1
4249 host_vendor=$2
4250 shift; shift
4251 # Remember, the first character of IFS is used to create $*,
4252 # except with old shells:
4253 host_os=$*
4254 IFS=$ac_save_IFS
4255 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4258 canonical=$host
4259 configuration=${host_alias-${build_alias-$host}}
4263 ### If you add support for a new configuration, add code to this
4264 ### switch statement to recognize your configuration name and select
4265 ### the appropriate operating system and machine description files.
4267 ### You would hope that you could choose an m/*.h file pretty much
4268 ### based on the machine portion of the configuration name, and an s/*.h
4269 ### file based on the operating system portion. However, it turns out
4270 ### that each m/*.h file is pretty manufacturer-specific - for
4271 ### example mips.h is MIPS
4272 ### So we basically have to have a special case for each
4273 ### configuration name.
4275 ### As far as handling version numbers on operating systems is
4276 ### concerned, make sure things will fail in a fixable way. If
4277 ### /etc/MACHINES doesn't say anything about version numbers, be
4278 ### prepared to handle anything reasonably. If version numbers
4279 ### matter, be sure /etc/MACHINES says something about it.
4281 machine='' opsys='' unported=no
4282 case "${canonical}" in
4284 ## GNU/Linux ports
4285 *-*-linux-gnu*)
4286 opsys=gnu-linux
4287 case ${canonical} in
4288 alpha*) machine=alpha ;;
4289 s390-*) machine=ibms390 ;;
4290 s390x-*) machine=ibms390x ;;
4291 powerpc*) machine=macppc ;;
4292 sparc*) machine=sparc ;;
4293 ia64*) machine=ia64 ;;
4294 m68k*) machine=m68k ;;
4295 x86_64*) machine=amdx86-64 ;;
4296 esac
4299 ## FreeBSD ports
4300 *-*-freebsd* )
4301 opsys=freebsd
4302 case "${canonical}" in
4303 alpha*) machine=alpha ;;
4304 amd64-*|x86_64-*) machine=amdx86-64 ;;
4305 ia64-*) machine=ia64 ;;
4306 i[3456]86-*) machine=intel386 ;;
4307 powerpc-*) machine=macppc ;;
4308 sparc-*) machine=sparc ;;
4309 sparc64-*) machine=sparc ;;
4310 esac
4313 ## FreeBSD kernel + glibc based userland
4314 *-*-kfreebsd*gnu* )
4315 opsys=gnu-kfreebsd
4316 case "${canonical}" in
4317 alpha*) machine=alpha ;;
4318 amd64-*|x86_64-*) machine=amdx86-64 ;;
4319 ia64-*) machine=ia64 ;;
4320 i[3456]86-*) machine=intel386 ;;
4321 powerpc-*) machine=macppc ;;
4322 sparc-*) machine=sparc ;;
4323 sparc64-*) machine=sparc ;;
4324 esac
4327 ## NetBSD ports
4328 *-*-netbsd* )
4329 opsys=netbsd
4330 case "${canonical}" in
4331 alpha*) machine=alpha ;;
4332 x86_64-*) machine=amdx86-64 ;;
4333 i[3456]86-*) machine=intel386 ;;
4334 m68k-*) machine=m68k ;;
4335 powerpc-*) machine=macppc ;;
4336 sparc*-) machine=sparc ;;
4337 vax-*) machine=vax ;;
4338 esac
4341 ## OpenBSD ports
4342 *-*-openbsd* )
4343 opsys=openbsd
4344 case "${canonical}" in
4345 alpha*) machine=alpha ;;
4346 x86_64-*) machine=amdx86-64 ;;
4347 i386-*) machine=intel386 ;;
4348 powerpc-*) machine=macppc ;;
4349 sparc*) machine=sparc ;;
4350 vax-*) machine=vax ;;
4351 esac
4354 ## Apple Darwin / Mac OS X
4355 *-apple-darwin* )
4356 case "${canonical}" in
4357 i[3456]86-* ) machine=intel386 ;;
4358 powerpc-* ) machine=macppc ;;
4359 x86_64-* ) machine=amdx86-64 ;;
4360 * ) unported=yes ;;
4361 esac
4362 opsys=darwin
4363 # Define CPP as follows to make autoconf work correctly.
4364 CPP="${CC-cc} -E -no-cpp-precomp"
4365 # Use fink packages if available.
4366 if test -d /sw/include && test -d /sw/lib; then
4367 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4368 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4369 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4373 ## HP 9000 series 700 and 800, running HP/UX
4374 hppa*-hp-hpux10.2* )
4375 opsys=hpux10-20
4377 hppa*-hp-hpux1[1-9]* )
4378 opsys=hpux11
4379 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4382 ia64*-hp-hpux1[1-9]* )
4383 machine=hp800 opsys=hpux11
4384 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4385 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4386 CANNOT_DUMP=yes
4389 hppa*-*-linux-gnu* )
4390 machine=hp800 opsys=gnu-linux
4393 ## IBM machines
4394 rs6000-ibm-aix4.[23]* )
4395 machine=ibmrs6000 opsys=aix4-2
4397 powerpc-ibm-aix4.[23]* )
4398 machine=ibmrs6000 opsys=aix4-2
4400 rs6000-ibm-aix[56]* )
4401 machine=ibmrs6000 opsys=aix4-2
4403 powerpc-ibm-aix[56]* )
4404 machine=ibmrs6000 opsys=aix4-2
4407 ## Silicon Graphics machines
4408 ## Iris 4D
4409 mips-sgi-irix6.5 )
4410 machine=iris4d opsys=irix6-5
4411 # Without defining _LANGUAGE_C, things get masked out in the headers
4412 # so that, for instance, grepping for `free' in stdlib.h fails and
4413 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4414 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4415 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4418 ## Suns
4419 *-sun-solaris* \
4420 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4421 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4422 case "${canonical}" in
4423 i[3456]86-*-* ) machine=intel386 ;;
4424 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4425 sparc* ) machine=sparc ;;
4426 * ) unported=yes ;;
4427 esac
4428 case "${canonical}" in
4429 *-sunos5.6* | *-solaris2.6* )
4430 opsys=sol2-6
4431 NON_GNU_CPP=/usr/ccs/lib/cpp
4432 RANLIB="ar -ts"
4434 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4435 opsys=sol2-6
4436 emacs_check_sunpro_c=yes
4437 NON_GNU_CPP=/usr/ccs/lib/cpp
4439 *-sunos5* | *-solaris* )
4440 opsys=sol2-10
4441 emacs_check_sunpro_c=yes
4442 NON_GNU_CPP=/usr/ccs/lib/cpp
4444 esac
4445 ## Watch out for a compiler that we know will not work.
4446 case "${canonical}" in
4447 *-solaris* | *-sunos5* )
4448 if [ "x$CC" = x/usr/ucb/cc ]; then
4449 ## /usr/ucb/cc doesn't work;
4450 ## we should find some other compiler that does work.
4451 unset CC
4454 *) ;;
4455 esac
4458 ## Intel 386 machines where we don't care about the manufacturer.
4459 i[3456]86-*-* )
4460 machine=intel386
4461 case "${canonical}" in
4462 *-cygwin ) opsys=cygwin ;;
4463 *-darwin* ) opsys=darwin
4464 CPP="${CC-cc} -E -no-cpp-precomp"
4466 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4467 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4468 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4469 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4470 esac
4474 unported=yes
4476 esac
4478 ### If the code above didn't choose an operating system, just choose
4479 ### an operating system based on the configuration name. You really
4480 ### only want to use this when you have no idea what the right
4481 ### operating system is; if you know what operating systems a machine
4482 ### runs, it's cleaner to make it explicit in the case statement
4483 ### above.
4484 if test x"${opsys}" = x; then
4485 case "${canonical}" in
4486 *-gnu* ) opsys=gnu ;;
4488 unported=yes
4490 esac
4495 if test $unported = yes; then
4496 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4497 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4500 if test -n "$machine"; then
4501 machfile="m/${machine}.h"
4502 else
4503 machfile=
4505 opsysfile="s/${opsys}.h"
4508 #### Choose a compiler.
4509 test -n "$CC" && cc_specified=yes
4511 # Save the value of CFLAGS that the user specified.
4512 SPECIFIED_CFLAGS="$CFLAGS"
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519 if test -n "$ac_tool_prefix"; then
4520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4521 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_CC+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$CC"; then
4528 ac_cv_prog_CC="$CC" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 CC=$ac_cv_prog_CC
4548 if test -n "$CC"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4550 $as_echo "$CC" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4558 if test -z "$ac_cv_prog_CC"; then
4559 ac_ct_CC=$CC
4560 # Extract the first word of "gcc", so it can be a program name with args.
4561 set dummy gcc; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$ac_ct_CC"; then
4568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_ac_ct_CC="gcc"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4583 IFS=$as_save_IFS
4587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4588 if test -n "$ac_ct_CC"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4590 $as_echo "$ac_ct_CC" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4596 if test "x$ac_ct_CC" = x; then
4597 CC=""
4598 else
4599 case $cross_compiling:$ac_tool_warned in
4600 yes:)
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4603 ac_tool_warned=yes ;;
4604 esac
4605 CC=$ac_ct_CC
4607 else
4608 CC="$ac_cv_prog_CC"
4611 if test -z "$CC"; then
4612 if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4614 set dummy ${ac_tool_prefix}cc; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_CC+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$CC"; then
4621 ac_cv_prog_CC="$CC" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_CC="${ac_tool_prefix}cc"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4634 done
4635 done
4636 IFS=$as_save_IFS
4640 CC=$ac_cv_prog_CC
4641 if test -n "$CC"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4643 $as_echo "$CC" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4652 if test -z "$CC"; then
4653 # Extract the first word of "cc", so it can be a program name with args.
4654 set dummy cc; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_CC+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test -n "$CC"; then
4661 ac_cv_prog_CC="$CC" # Let the user override the test.
4662 else
4663 ac_prog_rejected=no
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4672 ac_prog_rejected=yes
4673 continue
4675 ac_cv_prog_CC="cc"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4679 done
4680 done
4681 IFS=$as_save_IFS
4683 if test $ac_prog_rejected = yes; then
4684 # We found a bogon in the path, so make sure we never use it.
4685 set dummy $ac_cv_prog_CC
4686 shift
4687 if test $# != 0; then
4688 # We chose a different compiler from the bogus one.
4689 # However, it has the same basename, so the bogon will be chosen
4690 # first if we set CC to just the basename; use the full file name.
4691 shift
4692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4697 CC=$ac_cv_prog_CC
4698 if test -n "$CC"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4700 $as_echo "$CC" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4708 if test -z "$CC"; then
4709 if test -n "$ac_tool_prefix"; then
4710 for ac_prog in cl.exe
4712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_prog_CC+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 if test -n "$CC"; then
4720 ac_cv_prog_CC="$CC" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4733 done
4734 done
4735 IFS=$as_save_IFS
4739 CC=$ac_cv_prog_CC
4740 if test -n "$CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4742 $as_echo "$CC" >&6; }
4743 else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4749 test -n "$CC" && break
4750 done
4752 if test -z "$CC"; then
4753 ac_ct_CC=$CC
4754 for ac_prog in cl.exe
4756 # Extract the first word of "$ac_prog", so it can be a program name with args.
4757 set dummy $ac_prog; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -n "$ac_ct_CC"; then
4764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_ac_ct_CC="$ac_prog"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4777 done
4778 done
4779 IFS=$as_save_IFS
4783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4784 if test -n "$ac_ct_CC"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4786 $as_echo "$ac_ct_CC" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4793 test -n "$ac_ct_CC" && break
4794 done
4796 if test "x$ac_ct_CC" = x; then
4797 CC=""
4798 else
4799 case $cross_compiling:$ac_tool_warned in
4800 yes:)
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803 ac_tool_warned=yes ;;
4804 esac
4805 CC=$ac_ct_CC
4812 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4814 as_fn_error "no acceptable C compiler found in \$PATH
4815 See \`config.log' for more details." "$LINENO" 5; }
4817 # Provide some information about the compiler.
4818 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4819 set X $ac_compile
4820 ac_compiler=$2
4821 for ac_option in --version -v -V -qversion; do
4822 { { ac_try="$ac_compiler $ac_option >&5"
4823 case "(($ac_try" in
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4826 esac
4827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4828 $as_echo "$ac_try_echo"; } >&5
4829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4830 ac_status=$?
4831 if test -s conftest.err; then
4832 sed '10a\
4833 ... rest of stderr output deleted ...
4834 10q' conftest.err >conftest.er1
4835 cat conftest.er1 >&5
4837 rm -f conftest.er1 conftest.err
4838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4839 test $ac_status = 0; }
4840 done
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4846 main ()
4850 return 0;
4852 _ACEOF
4853 ac_clean_files_save=$ac_clean_files
4854 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4855 # Try to create an executable without -o first, disregard a.out.
4856 # It will help us diagnose broken compilers, and finding out an intuition
4857 # of exeext.
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4859 $as_echo_n "checking whether the C compiler works... " >&6; }
4860 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4862 # The possible output files:
4863 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4865 ac_rmfiles=
4866 for ac_file in $ac_files
4868 case $ac_file in
4869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4870 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4871 esac
4872 done
4873 rm -f $ac_rmfiles
4875 if { { ac_try="$ac_link_default"
4876 case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879 esac
4880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881 $as_echo "$ac_try_echo"; } >&5
4882 (eval "$ac_link_default") 2>&5
4883 ac_status=$?
4884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885 test $ac_status = 0; }; then :
4886 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4887 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4888 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4889 # so that the user can short-circuit this test for compilers unknown to
4890 # Autoconf.
4891 for ac_file in $ac_files ''
4893 test -f "$ac_file" || continue
4894 case $ac_file in
4895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4897 [ab].out )
4898 # We found the default executable, but exeext='' is most
4899 # certainly right.
4900 break;;
4901 *.* )
4902 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4903 then :; else
4904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4906 # We set ac_cv_exeext here because the later test for it is not
4907 # safe: cross compilers may not add the suffix if given an `-o'
4908 # argument, so we may need to know it at that point already.
4909 # Even if this section looks crufty: it has the advantage of
4910 # actually working.
4911 break;;
4913 break;;
4914 esac
4915 done
4916 test "$ac_cv_exeext" = no && ac_cv_exeext=
4918 else
4919 ac_file=''
4921 if test -z "$ac_file"; then :
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 $as_echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4929 { as_fn_set_status 77
4930 as_fn_error "C compiler cannot create executables
4931 See \`config.log' for more details." "$LINENO" 5; }; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4934 $as_echo "yes" >&6; }
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4937 $as_echo_n "checking for C compiler default output file name... " >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4939 $as_echo "$ac_file" >&6; }
4940 ac_exeext=$ac_cv_exeext
4942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4943 ac_clean_files=$ac_clean_files_save
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4945 $as_echo_n "checking for suffix of executables... " >&6; }
4946 if { { ac_try="$ac_link"
4947 case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950 esac
4951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4952 $as_echo "$ac_try_echo"; } >&5
4953 (eval "$ac_link") 2>&5
4954 ac_status=$?
4955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4956 test $ac_status = 0; }; then :
4957 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4958 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4959 # work properly (i.e., refer to `conftest.exe'), while it won't with
4960 # `rm'.
4961 for ac_file in conftest.exe conftest conftest.*; do
4962 test -f "$ac_file" || continue
4963 case $ac_file in
4964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4965 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4966 break;;
4967 * ) break;;
4968 esac
4969 done
4970 else
4971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4973 as_fn_error "cannot compute suffix of executables: cannot compile and link
4974 See \`config.log' for more details." "$LINENO" 5; }
4976 rm -f conftest conftest$ac_cv_exeext
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4978 $as_echo "$ac_cv_exeext" >&6; }
4980 rm -f conftest.$ac_ext
4981 EXEEXT=$ac_cv_exeext
4982 ac_exeext=$EXEEXT
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 #include <stdio.h>
4987 main ()
4989 FILE *f = fopen ("conftest.out", "w");
4990 return ferror (f) || fclose (f) != 0;
4993 return 0;
4995 _ACEOF
4996 ac_clean_files="$ac_clean_files conftest.out"
4997 # Check that the compiler produces executables we can run. If not, either
4998 # the compiler is broken, or we cross compile.
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5000 $as_echo_n "checking whether we are cross compiling... " >&6; }
5001 if test "$cross_compiling" != yes; then
5002 { { ac_try="$ac_link"
5003 case "(($ac_try" in
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5006 esac
5007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5008 $as_echo "$ac_try_echo"; } >&5
5009 (eval "$ac_link") 2>&5
5010 ac_status=$?
5011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5012 test $ac_status = 0; }
5013 if { ac_try='./conftest$ac_cv_exeext'
5014 { { case "(($ac_try" in
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5017 esac
5018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5019 $as_echo "$ac_try_echo"; } >&5
5020 (eval "$ac_try") 2>&5
5021 ac_status=$?
5022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5023 test $ac_status = 0; }; }; then
5024 cross_compiling=no
5025 else
5026 if test "$cross_compiling" = maybe; then
5027 cross_compiling=yes
5028 else
5029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5031 as_fn_error "cannot run C compiled programs.
5032 If you meant to cross compile, use \`--host'.
5033 See \`config.log' for more details." "$LINENO" 5; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5038 $as_echo "$cross_compiling" >&6; }
5040 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5041 ac_clean_files=$ac_clean_files_save
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5043 $as_echo_n "checking for suffix of object files... " >&6; }
5044 if test "${ac_cv_objext+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5051 main ()
5055 return 0;
5057 _ACEOF
5058 rm -f conftest.o conftest.obj
5059 if { { ac_try="$ac_compile"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5065 $as_echo "$ac_try_echo"; } >&5
5066 (eval "$ac_compile") 2>&5
5067 ac_status=$?
5068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5069 test $ac_status = 0; }; then :
5070 for ac_file in conftest.o conftest.obj conftest.*; do
5071 test -f "$ac_file" || continue;
5072 case $ac_file in
5073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5074 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5075 break;;
5076 esac
5077 done
5078 else
5079 $as_echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084 as_fn_error "cannot compute suffix of object files: cannot compile
5085 See \`config.log' for more details." "$LINENO" 5; }
5087 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5090 $as_echo "$ac_cv_objext" >&6; }
5091 OBJEXT=$ac_cv_objext
5092 ac_objext=$OBJEXT
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5094 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5095 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5102 main ()
5104 #ifndef __GNUC__
5105 choke me
5106 #endif
5109 return 0;
5111 _ACEOF
5112 if ac_fn_c_try_compile "$LINENO"; then :
5113 ac_compiler_gnu=yes
5114 else
5115 ac_compiler_gnu=no
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5122 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5123 if test $ac_compiler_gnu = yes; then
5124 GCC=yes
5125 else
5126 GCC=
5128 ac_test_CFLAGS=${CFLAGS+set}
5129 ac_save_CFLAGS=$CFLAGS
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5131 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5132 if test "${ac_cv_prog_cc_g+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 ac_save_c_werror_flag=$ac_c_werror_flag
5136 ac_c_werror_flag=yes
5137 ac_cv_prog_cc_g=no
5138 CFLAGS="-g"
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5143 main ()
5147 return 0;
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"; then :
5151 ac_cv_prog_cc_g=yes
5152 else
5153 CFLAGS=""
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5158 main ()
5162 return 0;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5167 else
5168 ac_c_werror_flag=$ac_save_c_werror_flag
5169 CFLAGS="-g"
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5174 main ()
5178 return 0;
5180 _ACEOF
5181 if ac_fn_c_try_compile "$LINENO"; then :
5182 ac_cv_prog_cc_g=yes
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189 ac_c_werror_flag=$ac_save_c_werror_flag
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5192 $as_echo "$ac_cv_prog_cc_g" >&6; }
5193 if test "$ac_test_CFLAGS" = set; then
5194 CFLAGS=$ac_save_CFLAGS
5195 elif test $ac_cv_prog_cc_g = yes; then
5196 if test "$GCC" = yes; then
5197 CFLAGS="-g -O2"
5198 else
5199 CFLAGS="-g"
5201 else
5202 if test "$GCC" = yes; then
5203 CFLAGS="-O2"
5204 else
5205 CFLAGS=
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5209 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5210 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 ac_cv_prog_cc_c89=no
5214 ac_save_CC=$CC
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #include <stdarg.h>
5218 #include <stdio.h>
5219 #include <sys/types.h>
5220 #include <sys/stat.h>
5221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5222 struct buf { int x; };
5223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5224 static char *e (p, i)
5225 char **p;
5226 int i;
5228 return p[i];
5230 static char *f (char * (*g) (char **, int), char **p, ...)
5232 char *s;
5233 va_list v;
5234 va_start (v,p);
5235 s = g (p, va_arg (v,int));
5236 va_end (v);
5237 return s;
5240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5241 function prototypes and stuff, but not '\xHH' hex character constants.
5242 These don't provoke an error unfortunately, instead are silently treated
5243 as 'x'. The following induces an error, until -std is added to get
5244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5245 array size at least. It's necessary to write '\x00'==0 to get something
5246 that's true only with -std. */
5247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5250 inside strings and character constants. */
5251 #define FOO(x) 'x'
5252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5254 int test (int i, double x);
5255 struct s1 {int (*f) (int a);};
5256 struct s2 {int (*f) (double a);};
5257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5258 int argc;
5259 char **argv;
5261 main ()
5263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5265 return 0;
5267 _ACEOF
5268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5269 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5271 CC="$ac_save_CC $ac_arg"
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273 ac_cv_prog_cc_c89=$ac_arg
5275 rm -f core conftest.err conftest.$ac_objext
5276 test "x$ac_cv_prog_cc_c89" != "xno" && break
5277 done
5278 rm -f conftest.$ac_ext
5279 CC=$ac_save_CC
5282 # AC_CACHE_VAL
5283 case "x$ac_cv_prog_cc_c89" in
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5286 $as_echo "none needed" >&6; } ;;
5287 xno)
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5289 $as_echo "unsupported" >&6; } ;;
5291 CC="$CC $ac_cv_prog_cc_c89"
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5293 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5294 esac
5295 if test "x$ac_cv_prog_cc_c89" != xno; then :
5299 ac_ext=c
5300 ac_cpp='$CPP $CPPFLAGS'
5301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304 DEPDIR="${am__leading_dot}deps"
5306 ac_config_commands="$ac_config_commands depfiles"
5309 am_make=${MAKE-make}
5310 cat > confinc << 'END'
5311 am__doit:
5312 @echo this is the am__doit target
5313 .PHONY: am__doit
5315 # If we don't find an include directive, just comment out the code.
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5317 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5318 am__include="#"
5319 am__quote=
5320 _am_result=none
5321 # First try GNU make style include.
5322 echo "include confinc" > confmf
5323 # Ignore all kinds of additional output from `make'.
5324 case `$am_make -s -f confmf 2> /dev/null` in #(
5325 *the\ am__doit\ target*)
5326 am__include=include
5327 am__quote=
5328 _am_result=GNU
5330 esac
5331 # Now try BSD make style include.
5332 if test "$am__include" = "#"; then
5333 echo '.include "confinc"' > confmf
5334 case `$am_make -s -f confmf 2> /dev/null` in #(
5335 *the\ am__doit\ target*)
5336 am__include=.include
5337 am__quote="\""
5338 _am_result=BSD
5340 esac
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5345 $as_echo "$_am_result" >&6; }
5346 rm -f confinc confmf
5348 # Check whether --enable-dependency-tracking was given.
5349 if test "${enable_dependency_tracking+set}" = set; then :
5350 enableval=$enable_dependency_tracking;
5353 if test "x$enable_dependency_tracking" != xno; then
5354 am_depcomp="$ac_aux_dir/depcomp"
5355 AMDEPBACKSLASH='\'
5357 if test "x$enable_dependency_tracking" != xno; then
5358 AMDEP_TRUE=
5359 AMDEP_FALSE='#'
5360 else
5361 AMDEP_TRUE='#'
5362 AMDEP_FALSE=
5367 depcc="$CC" am_compiler_list=
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5370 $as_echo_n "checking dependency style of $depcc... " >&6; }
5371 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5375 # We make a subdir and do the tests there. Otherwise we can end up
5376 # making bogus files that we don't know about and never remove. For
5377 # instance it was reported that on HP-UX the gcc test will end up
5378 # making a dummy file named `D' -- because `-MD' means `put the output
5379 # in D'.
5380 mkdir conftest.dir
5381 # Copy depcomp to subdir because otherwise we won't find it if we're
5382 # using a relative directory.
5383 cp "$am_depcomp" conftest.dir
5384 cd conftest.dir
5385 # We will build objects and dependencies in a subdirectory because
5386 # it helps to detect inapplicable dependency modes. For instance
5387 # both Tru64's cc and ICC support -MD to output dependencies as a
5388 # side effect of compilation, but ICC will put the dependencies in
5389 # the current directory while Tru64 will put them in the object
5390 # directory.
5391 mkdir sub
5393 am_cv_CC_dependencies_compiler_type=none
5394 if test "$am_compiler_list" = ""; then
5395 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5397 am__universal=false
5398 case " $depcc " in #(
5399 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5400 esac
5402 for depmode in $am_compiler_list; do
5403 # Setup a source with many dependencies, because some compilers
5404 # like to wrap large dependency lists on column 80 (with \), and
5405 # we should not choose a depcomp mode which is confused by this.
5407 # We need to recreate these files for each test, as the compiler may
5408 # overwrite some of them when testing with obscure command lines.
5409 # This happens at least with the AIX C compiler.
5410 : > sub/conftest.c
5411 for i in 1 2 3 4 5 6; do
5412 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5413 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5414 # Solaris 8's {/usr,}/bin/sh.
5415 touch sub/conftst$i.h
5416 done
5417 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5419 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5420 # mode. It turns out that the SunPro C++ compiler does not properly
5421 # handle `-M -o', and we need to detect this. Also, some Intel
5422 # versions had trouble with output in subdirs
5423 am__obj=sub/conftest.${OBJEXT-o}
5424 am__minus_obj="-o $am__obj"
5425 case $depmode in
5426 gcc)
5427 # This depmode causes a compiler race in universal mode.
5428 test "$am__universal" = false || continue
5430 nosideeffect)
5431 # after this tag, mechanisms are not by side-effect, so they'll
5432 # only be used when explicitly requested
5433 if test "x$enable_dependency_tracking" = xyes; then
5434 continue
5435 else
5436 break
5439 msvisualcpp | msvcmsys)
5440 # This compiler won't grok `-c -o', but also, the minuso test has
5441 # not run yet. These depmodes are late enough in the game, and
5442 # so weak that their functioning should not be impacted.
5443 am__obj=conftest.${OBJEXT-o}
5444 am__minus_obj=
5446 none) break ;;
5447 esac
5448 if depmode=$depmode \
5449 source=sub/conftest.c object=$am__obj \
5450 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5451 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5452 >/dev/null 2>conftest.err &&
5453 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5454 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5455 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5456 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5457 # icc doesn't choke on unknown options, it will just issue warnings
5458 # or remarks (even with -Werror). So we grep stderr for any message
5459 # that says an option was ignored or not supported.
5460 # When given -MP, icc 7.0 and 7.1 complain thusly:
5461 # icc: Command line warning: ignoring option '-M'; no argument required
5462 # The diagnosis changed in icc 8.0:
5463 # icc: Command line remark: option '-MP' not supported
5464 if (grep 'ignoring option' conftest.err ||
5465 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5466 am_cv_CC_dependencies_compiler_type=$depmode
5467 break
5470 done
5472 cd ..
5473 rm -rf conftest.dir
5474 else
5475 am_cv_CC_dependencies_compiler_type=none
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5480 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5481 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5484 test "x$enable_dependency_tracking" != xno \
5485 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5486 am__fastdepCC_TRUE=
5487 am__fastdepCC_FALSE='#'
5488 else
5489 am__fastdepCC_TRUE='#'
5490 am__fastdepCC_FALSE=
5494 if test "x$CC" != xcc; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5496 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5499 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5501 set dummy $CC; ac_cc=`$as_echo "$2" |
5502 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5503 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5510 main ()
5514 return 0;
5516 _ACEOF
5517 # Make sure it works both with $CC and with simple cc.
5518 # We do the test twice because some compilers refuse to overwrite an
5519 # existing .o file with -o, though they will create one.
5520 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5521 rm -f conftest2.*
5522 if { { case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525 esac
5526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5527 $as_echo "$ac_try_echo"; } >&5
5528 (eval "$ac_try") 2>&5
5529 ac_status=$?
5530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5531 test $ac_status = 0; } &&
5532 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5535 esac
5536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5537 $as_echo "$ac_try_echo"; } >&5
5538 (eval "$ac_try") 2>&5
5539 ac_status=$?
5540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5541 test $ac_status = 0; };
5542 then
5543 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5544 if test "x$CC" != xcc; then
5545 # Test first that cc exists at all.
5546 if { ac_try='cc -c conftest.$ac_ext >&5'
5547 { { case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550 esac
5551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5552 $as_echo "$ac_try_echo"; } >&5
5553 (eval "$ac_try") 2>&5
5554 ac_status=$?
5555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5556 test $ac_status = 0; }; }; then
5557 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5558 rm -f conftest2.*
5559 if { { case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564 $as_echo "$ac_try_echo"; } >&5
5565 (eval "$ac_try") 2>&5
5566 ac_status=$?
5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5568 test $ac_status = 0; } &&
5569 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5574 $as_echo "$ac_try_echo"; } >&5
5575 (eval "$ac_try") 2>&5
5576 ac_status=$?
5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578 test $ac_status = 0; };
5579 then
5580 # cc works too.
5582 else
5583 # cc exists but doesn't like -o.
5584 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5588 else
5589 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5591 rm -f core conftest*
5594 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5596 $as_echo "yes" >&6; }
5597 else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5601 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5605 # FIXME: we rely on the cache variable name because
5606 # there is no other way.
5607 set dummy $CC
5608 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5609 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5610 if test "$am_t" != yes; then
5611 # Losing compiler, so override with the script.
5612 # FIXME: It is wrong to rewrite CC.
5613 # But if we don't then we get into trouble of one sort or another.
5614 # A longer-term fix would be to have automake use am__CC in this case,
5615 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5616 CC="$am_aux_dir/compile $CC"
5621 # Initialize gnulib right after verifying that the C compiler works.
5622 if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$RANLIB"; then
5631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5650 RANLIB=$ac_cv_prog_RANLIB
5651 if test -n "$RANLIB"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5653 $as_echo "$RANLIB" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5661 if test -z "$ac_cv_prog_RANLIB"; then
5662 ac_ct_RANLIB=$RANLIB
5663 # Extract the first word of "ranlib", so it can be a program name with args.
5664 set dummy ranlib; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test -n "$ac_ct_RANLIB"; then
5671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_ac_ct_RANLIB="ranlib"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5684 done
5685 done
5686 IFS=$as_save_IFS
5690 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5691 if test -n "$ac_ct_RANLIB"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5693 $as_echo "$ac_ct_RANLIB" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5699 if test "x$ac_ct_RANLIB" = x; then
5700 RANLIB=":"
5701 else
5702 case $cross_compiling:$ac_tool_warned in
5703 yes:)
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706 ac_tool_warned=yes ;;
5707 esac
5708 RANLIB=$ac_ct_RANLIB
5710 else
5711 RANLIB="$ac_cv_prog_RANLIB"
5715 ac_ext=c
5716 ac_cpp='$CPP $CPPFLAGS'
5717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5721 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5722 # On Suns, sometimes $CPP names a directory.
5723 if test -n "$CPP" && test -d "$CPP"; then
5724 CPP=
5726 if test -z "$CPP"; then
5727 if test "${ac_cv_prog_CPP+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 # Double quotes because CPP needs to be expanded
5731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5733 ac_preproc_ok=false
5734 for ac_c_preproc_warn_flag in '' yes
5736 # Use a header file that comes with gcc, so configuring glibc
5737 # with a fresh cross-compiler works.
5738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5739 # <limits.h> exists even on freestanding compilers.
5740 # On the NeXT, cc -E runs the code through the compiler's parser,
5741 # not just through cpp. "Syntax error" is here to catch this case.
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 #ifdef __STDC__
5745 # include <limits.h>
5746 #else
5747 # include <assert.h>
5748 #endif
5749 Syntax error
5750 _ACEOF
5751 if ac_fn_c_try_cpp "$LINENO"; then :
5753 else
5754 # Broken: fails on valid input.
5755 continue
5757 rm -f conftest.err conftest.$ac_ext
5759 # OK, works on sane cases. Now check whether nonexistent headers
5760 # can be detected and how.
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #include <ac_nonexistent.h>
5764 _ACEOF
5765 if ac_fn_c_try_cpp "$LINENO"; then :
5766 # Broken: success on invalid input.
5767 continue
5768 else
5769 # Passes both tests.
5770 ac_preproc_ok=:
5771 break
5773 rm -f conftest.err conftest.$ac_ext
5775 done
5776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5777 rm -f conftest.err conftest.$ac_ext
5778 if $ac_preproc_ok; then :
5779 break
5782 done
5783 ac_cv_prog_CPP=$CPP
5786 CPP=$ac_cv_prog_CPP
5787 else
5788 ac_cv_prog_CPP=$CPP
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5791 $as_echo "$CPP" >&6; }
5792 ac_preproc_ok=false
5793 for ac_c_preproc_warn_flag in '' yes
5795 # Use a header file that comes with gcc, so configuring glibc
5796 # with a fresh cross-compiler works.
5797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5798 # <limits.h> exists even on freestanding compilers.
5799 # On the NeXT, cc -E runs the code through the compiler's parser,
5800 # not just through cpp. "Syntax error" is here to catch this case.
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 #ifdef __STDC__
5804 # include <limits.h>
5805 #else
5806 # include <assert.h>
5807 #endif
5808 Syntax error
5809 _ACEOF
5810 if ac_fn_c_try_cpp "$LINENO"; then :
5812 else
5813 # Broken: fails on valid input.
5814 continue
5816 rm -f conftest.err conftest.$ac_ext
5818 # OK, works on sane cases. Now check whether nonexistent headers
5819 # can be detected and how.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #include <ac_nonexistent.h>
5823 _ACEOF
5824 if ac_fn_c_try_cpp "$LINENO"; then :
5825 # Broken: success on invalid input.
5826 continue
5827 else
5828 # Passes both tests.
5829 ac_preproc_ok=:
5830 break
5832 rm -f conftest.err conftest.$ac_ext
5834 done
5835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5836 rm -f conftest.err conftest.$ac_ext
5837 if $ac_preproc_ok; then :
5839 else
5840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5842 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5843 See \`config.log' for more details." "$LINENO" 5; }
5846 ac_ext=c
5847 ac_cpp='$CPP $CPPFLAGS'
5848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5854 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5855 if test "${ac_cv_path_GREP+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -z "$GREP"; then
5859 ac_path_GREP_found=false
5860 # Loop through the user's path and test for each of PROGNAME-LIST
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_prog in grep ggrep; do
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5869 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5870 # Check for GNU ac_path_GREP and select it if it is found.
5871 # Check for GNU $ac_path_GREP
5872 case `"$ac_path_GREP" --version 2>&1` in
5873 *GNU*)
5874 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5876 ac_count=0
5877 $as_echo_n 0123456789 >"conftest.in"
5878 while :
5880 cat "conftest.in" "conftest.in" >"conftest.tmp"
5881 mv "conftest.tmp" "conftest.in"
5882 cp "conftest.in" "conftest.nl"
5883 $as_echo 'GREP' >> "conftest.nl"
5884 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5886 as_fn_arith $ac_count + 1 && ac_count=$as_val
5887 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5888 # Best one so far, save it but keep looking for a better one
5889 ac_cv_path_GREP="$ac_path_GREP"
5890 ac_path_GREP_max=$ac_count
5892 # 10*(2^10) chars as input seems more than enough
5893 test $ac_count -gt 10 && break
5894 done
5895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5896 esac
5898 $ac_path_GREP_found && break 3
5899 done
5900 done
5901 done
5902 IFS=$as_save_IFS
5903 if test -z "$ac_cv_path_GREP"; then
5904 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5906 else
5907 ac_cv_path_GREP=$GREP
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5912 $as_echo "$ac_cv_path_GREP" >&6; }
5913 GREP="$ac_cv_path_GREP"
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5917 $as_echo_n "checking for egrep... " >&6; }
5918 if test "${ac_cv_path_EGREP+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5922 then ac_cv_path_EGREP="$GREP -E"
5923 else
5924 if test -z "$EGREP"; then
5925 ac_path_EGREP_found=false
5926 # Loop through the user's path and test for each of PROGNAME-LIST
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_prog in egrep; do
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5935 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5936 # Check for GNU ac_path_EGREP and select it if it is found.
5937 # Check for GNU $ac_path_EGREP
5938 case `"$ac_path_EGREP" --version 2>&1` in
5939 *GNU*)
5940 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5942 ac_count=0
5943 $as_echo_n 0123456789 >"conftest.in"
5944 while :
5946 cat "conftest.in" "conftest.in" >"conftest.tmp"
5947 mv "conftest.tmp" "conftest.in"
5948 cp "conftest.in" "conftest.nl"
5949 $as_echo 'EGREP' >> "conftest.nl"
5950 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5952 as_fn_arith $ac_count + 1 && ac_count=$as_val
5953 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5954 # Best one so far, save it but keep looking for a better one
5955 ac_cv_path_EGREP="$ac_path_EGREP"
5956 ac_path_EGREP_max=$ac_count
5958 # 10*(2^10) chars as input seems more than enough
5959 test $ac_count -gt 10 && break
5960 done
5961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5962 esac
5964 $ac_path_EGREP_found && break 3
5965 done
5966 done
5967 done
5968 IFS=$as_save_IFS
5969 if test -z "$ac_cv_path_EGREP"; then
5970 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5972 else
5973 ac_cv_path_EGREP=$EGREP
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5979 $as_echo "$ac_cv_path_EGREP" >&6; }
5980 EGREP="$ac_cv_path_EGREP"
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5984 $as_echo_n "checking for ANSI C header files... " >&6; }
5985 if test "${ac_cv_header_stdc+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990 #include <stdlib.h>
5991 #include <stdarg.h>
5992 #include <string.h>
5993 #include <float.h>
5996 main ()
6000 return 0;
6002 _ACEOF
6003 if ac_fn_c_try_compile "$LINENO"; then :
6004 ac_cv_header_stdc=yes
6005 else
6006 ac_cv_header_stdc=no
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 if test $ac_cv_header_stdc = yes; then
6011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <string.h>
6016 _ACEOF
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "memchr" >/dev/null 2>&1; then :
6020 else
6021 ac_cv_header_stdc=no
6023 rm -f conftest*
6027 if test $ac_cv_header_stdc = yes; then
6028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #include <stdlib.h>
6033 _ACEOF
6034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035 $EGREP "free" >/dev/null 2>&1; then :
6037 else
6038 ac_cv_header_stdc=no
6040 rm -f conftest*
6044 if test $ac_cv_header_stdc = yes; then
6045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6046 if test "$cross_compiling" = yes; then :
6048 else
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <ctype.h>
6052 #include <stdlib.h>
6053 #if ((' ' & 0x0FF) == 0x020)
6054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6056 #else
6057 # define ISLOWER(c) \
6058 (('a' <= (c) && (c) <= 'i') \
6059 || ('j' <= (c) && (c) <= 'r') \
6060 || ('s' <= (c) && (c) <= 'z'))
6061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6062 #endif
6064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6066 main ()
6068 int i;
6069 for (i = 0; i < 256; i++)
6070 if (XOR (islower (i), ISLOWER (i))
6071 || toupper (i) != TOUPPER (i))
6072 return 2;
6073 return 0;
6075 _ACEOF
6076 if ac_fn_c_try_run "$LINENO"; then :
6078 else
6079 ac_cv_header_stdc=no
6081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6082 conftest.$ac_objext conftest.beam conftest.$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6088 $as_echo "$ac_cv_header_stdc" >&6; }
6089 if test $ac_cv_header_stdc = yes; then
6091 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6095 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6096 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6097 inttypes.h stdint.h unistd.h
6098 do :
6099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6102 eval as_val=\$$as_ac_Header
6103 if test "x$as_val" = x""yes; then :
6104 cat >>confdefs.h <<_ACEOF
6105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6106 _ACEOF
6110 done
6116 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6117 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6118 MINIX=yes
6119 else
6120 MINIX=
6124 if test "$MINIX" = yes; then
6126 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6129 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6132 $as_echo "#define _MINIX 1" >>confdefs.h
6136 case "$host_os" in
6137 hpux*)
6139 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6142 esac
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6146 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6147 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6153 # define __EXTENSIONS__ 1
6154 $ac_includes_default
6156 main ()
6160 return 0;
6162 _ACEOF
6163 if ac_fn_c_try_compile "$LINENO"; then :
6164 ac_cv_safe_to_define___extensions__=yes
6165 else
6166 ac_cv_safe_to_define___extensions__=no
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6171 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6172 test $ac_cv_safe_to_define___extensions__ = yes &&
6173 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6175 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6177 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6179 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6181 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6192 # Code from module arg-nonnull:
6193 # Code from module c++defs:
6194 # Code from module crypto/md5:
6195 # Code from module dosname:
6196 # Code from module dtoastr:
6197 # Code from module extensions:
6199 # Code from module filemode:
6200 # Code from module getloadavg:
6201 # Code from module getopt-gnu:
6202 # Code from module getopt-posix:
6203 # Code from module gettext-h:
6204 # Code from module ignore-value:
6205 # Code from module include_next:
6206 # Code from module intprops:
6207 # Code from module lstat:
6208 # Code from module mktime:
6209 # Code from module multiarch:
6210 # Code from module readlink:
6211 # Code from module socklen:
6212 # Code from module stat:
6213 # Code from module stdbool:
6214 # Code from module stddef:
6215 # Code from module stdint:
6216 # Code from module stdio:
6217 # Code from module stdlib:
6218 # Code from module strftime:
6219 # Code from module symlink:
6220 # Code from module sys_stat:
6221 # Code from module time:
6222 # Code from module time_r:
6223 # Code from module unistd:
6224 # Code from module warn-on-use:
6227 # On Suns, sometimes $CPP names a directory.
6228 if test -n "$CPP" && test -d "$CPP"; then
6229 CPP=
6232 ## If not using gcc, and on Solaris, and no CPP specified, see if
6233 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6234 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6235 test x"$CPP" = x; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6237 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6238 if test "${emacs_cv_sunpro_c+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6245 main ()
6247 #ifndef __SUNPRO_C
6248 fail;
6249 #endif
6252 return 0;
6254 _ACEOF
6255 if ac_fn_c_try_link "$LINENO"; then :
6256 emacs_cv_sunpro_c=yes
6257 else
6258 emacs_cv_sunpro_c=no
6260 rm -f core conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6265 $as_echo "$emacs_cv_sunpro_c" >&6; }
6267 if test x"$emacs_cv_sunpro_c" = xyes; then
6268 NON_GNU_CPP="$CC -E -Xs"
6272 #### Some systems specify a CPP to use unless we are using GCC.
6273 #### Now that we know whether we are using GCC, we can decide whether
6274 #### to use that one.
6275 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6276 then
6277 CPP="$NON_GNU_CPP"
6280 #### Some systems specify a CC to use unless we are using GCC.
6281 #### Now that we know whether we are using GCC, we can decide whether
6282 #### to use that one.
6283 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6284 test x$cc_specified != xyes
6285 then
6286 CC="$NON_GNU_CC"
6289 if test x$GCC = xyes; then
6290 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6291 else
6292 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6295 ### Use -Wdeclaration-after-statement if the compiler supports it
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6297 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6298 SAVE_CFLAGS="$CFLAGS"
6299 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6304 main ()
6308 return 0;
6310 _ACEOF
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312 has_option=yes
6313 else
6314 has_option=no
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 if test $has_option = yes; then
6318 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6321 $as_echo "$has_option" >&6; }
6322 CFLAGS="$SAVE_CFLAGS"
6323 unset has_option
6324 unset SAVE_CFLAGS
6326 ### Use -Wold-style-definition if the compiler supports it
6327 # This can be removed when conversion to standard C is finished.
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6329 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6330 SAVE_CFLAGS="$CFLAGS"
6331 CFLAGS="$CFLAGS -Wold-style-definition"
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6336 main ()
6340 return 0;
6342 _ACEOF
6343 if ac_fn_c_try_compile "$LINENO"; then :
6344 has_option=yes
6345 else
6346 has_option=no
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 if test $has_option = yes; then
6350 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6353 $as_echo "$has_option" >&6; }
6354 CFLAGS="$SAVE_CFLAGS"
6355 unset has_option
6356 unset SAVE_CFLAGS
6358 ### Use -Wimplicit-function-declaration if the compiler supports it
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6360 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6361 SAVE_CFLAGS="$CFLAGS"
6362 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6367 main ()
6371 return 0;
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 has_option=yes
6376 else
6377 has_option=no
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 if test $has_option = yes; then
6381 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6384 $as_echo "$has_option" >&6; }
6385 CFLAGS="$SAVE_CFLAGS"
6386 unset has_option
6387 unset SAVE_CFLAGS
6392 #### Some other nice autoconf tests.
6394 ac_ext=c
6395 ac_cpp='$CPP $CPPFLAGS'
6396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6400 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6401 # On Suns, sometimes $CPP names a directory.
6402 if test -n "$CPP" && test -d "$CPP"; then
6403 CPP=
6405 if test -z "$CPP"; then
6406 if test "${ac_cv_prog_CPP+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 # Double quotes because CPP needs to be expanded
6410 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6412 ac_preproc_ok=false
6413 for ac_c_preproc_warn_flag in '' yes
6415 # Use a header file that comes with gcc, so configuring glibc
6416 # with a fresh cross-compiler works.
6417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6418 # <limits.h> exists even on freestanding compilers.
6419 # On the NeXT, cc -E runs the code through the compiler's parser,
6420 # not just through cpp. "Syntax error" is here to catch this case.
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #ifdef __STDC__
6424 # include <limits.h>
6425 #else
6426 # include <assert.h>
6427 #endif
6428 Syntax error
6429 _ACEOF
6430 if ac_fn_c_try_cpp "$LINENO"; then :
6432 else
6433 # Broken: fails on valid input.
6434 continue
6436 rm -f conftest.err conftest.$ac_ext
6438 # OK, works on sane cases. Now check whether nonexistent headers
6439 # can be detected and how.
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #include <ac_nonexistent.h>
6443 _ACEOF
6444 if ac_fn_c_try_cpp "$LINENO"; then :
6445 # Broken: success on invalid input.
6446 continue
6447 else
6448 # Passes both tests.
6449 ac_preproc_ok=:
6450 break
6452 rm -f conftest.err conftest.$ac_ext
6454 done
6455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6456 rm -f conftest.err conftest.$ac_ext
6457 if $ac_preproc_ok; then :
6458 break
6461 done
6462 ac_cv_prog_CPP=$CPP
6465 CPP=$ac_cv_prog_CPP
6466 else
6467 ac_cv_prog_CPP=$CPP
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6470 $as_echo "$CPP" >&6; }
6471 ac_preproc_ok=false
6472 for ac_c_preproc_warn_flag in '' yes
6474 # Use a header file that comes with gcc, so configuring glibc
6475 # with a fresh cross-compiler works.
6476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6477 # <limits.h> exists even on freestanding compilers.
6478 # On the NeXT, cc -E runs the code through the compiler's parser,
6479 # not just through cpp. "Syntax error" is here to catch this case.
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6482 #ifdef __STDC__
6483 # include <limits.h>
6484 #else
6485 # include <assert.h>
6486 #endif
6487 Syntax error
6488 _ACEOF
6489 if ac_fn_c_try_cpp "$LINENO"; then :
6491 else
6492 # Broken: fails on valid input.
6493 continue
6495 rm -f conftest.err conftest.$ac_ext
6497 # OK, works on sane cases. Now check whether nonexistent headers
6498 # can be detected and how.
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 #include <ac_nonexistent.h>
6502 _ACEOF
6503 if ac_fn_c_try_cpp "$LINENO"; then :
6504 # Broken: success on invalid input.
6505 continue
6506 else
6507 # Passes both tests.
6508 ac_preproc_ok=:
6509 break
6511 rm -f conftest.err conftest.$ac_ext
6513 done
6514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6515 rm -f conftest.err conftest.$ac_ext
6516 if $ac_preproc_ok; then :
6518 else
6519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6521 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6522 See \`config.log' for more details." "$LINENO" 5; }
6525 ac_ext=c
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6532 if test "x$RANLIB" = x; then
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$RANLIB"; then
6542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6555 done
6556 done
6557 IFS=$as_save_IFS
6561 RANLIB=$ac_cv_prog_RANLIB
6562 if test -n "$RANLIB"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6564 $as_echo "$RANLIB" >&6; }
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6572 if test -z "$ac_cv_prog_RANLIB"; then
6573 ac_ct_RANLIB=$RANLIB
6574 # Extract the first word of "ranlib", so it can be a program name with args.
6575 set dummy ranlib; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 if test -n "$ac_ct_RANLIB"; then
6582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_ac_ct_RANLIB="ranlib"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6595 done
6596 done
6597 IFS=$as_save_IFS
6601 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6602 if test -n "$ac_ct_RANLIB"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6604 $as_echo "$ac_ct_RANLIB" >&6; }
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6610 if test "x$ac_ct_RANLIB" = x; then
6611 RANLIB=":"
6612 else
6613 case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619 RANLIB=$ac_ct_RANLIB
6621 else
6622 RANLIB="$ac_cv_prog_RANLIB"
6627 ## Although we're running on an amd64 kernel, we're actually compiling for
6628 ## the x86 architecture. The user should probably have provided an
6629 ## explicit --build to `configure', but if everything else than the kernel
6630 ## is running in i386 mode, we can help them out.
6631 if test "$machine" = "amdx86-64"; then
6632 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6633 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6637 if test "$ac_cv_have_decl_i386" = "yes"; then
6638 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6639 machine=intel386
6640 machfile="m/${machine}.h"
6644 # Extract the first word of "install-info", so it can be a program name with args.
6645 set dummy install-info; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 case $INSTALL_INFO in
6652 [\\/]* | ?:[\\/]*)
6653 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6667 done
6668 done
6669 IFS=$as_save_IFS
6672 esac
6674 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6675 if test -n "$INSTALL_INFO"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6677 $as_echo "$INSTALL_INFO" >&6; }
6678 else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6684 # Extract the first word of "install-info", so it can be a program name with args.
6685 set dummy install-info; ac_word=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 case $INSTALL_INFO in
6692 [\\/]* | ?:[\\/]*)
6693 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in /usr/sbin
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6707 done
6708 done
6709 IFS=$as_save_IFS
6712 esac
6714 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6715 if test -n "$INSTALL_INFO"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6717 $as_echo "$INSTALL_INFO" >&6; }
6718 else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6724 # Extract the first word of "install-info", so it can be a program name with args.
6725 set dummy install-info; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 case $INSTALL_INFO in
6732 [\\/]* | ?:[\\/]*)
6733 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in /sbin
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6747 done
6748 done
6749 IFS=$as_save_IFS
6751 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6753 esac
6755 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6756 if test -n "$INSTALL_INFO"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6758 $as_echo "$INSTALL_INFO" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6765 # Extract the first word of "gzip", so it can be a program name with args.
6766 set dummy gzip; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 case $GZIP_PROG in
6773 [\\/]* | ?:[\\/]*)
6774 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6788 done
6789 done
6790 IFS=$as_save_IFS
6793 esac
6795 GZIP_PROG=$ac_cv_path_GZIP_PROG
6796 if test -n "$GZIP_PROG"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6798 $as_echo "$GZIP_PROG" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6807 ## Need makeinfo >= 4.6 (?) to build the manuals.
6808 # Extract the first word of "makeinfo", so it can be a program name with args.
6809 set dummy makeinfo; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 case $MAKEINFO in
6816 [\\/]* | ?:[\\/]*)
6817 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6831 done
6832 done
6833 IFS=$as_save_IFS
6835 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6837 esac
6839 MAKEINFO=$ac_cv_path_MAKEINFO
6840 if test -n "$MAKEINFO"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6842 $as_echo "$MAKEINFO" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6849 if test "$MAKEINFO" != "no" && \
6850 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
6851 MAKEINFO=no
6854 ## Makeinfo is unusual. For a released Emacs, the manuals are
6855 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6856 ## therefore in the category of "special tools" not normally required, which
6857 ## configure does not have to check for (eg autoconf itself).
6858 ## In a Bazaar checkout on the other hand, the manuals are not included.
6859 ## So makeinfo is a requirement to build from Bazaar, and configure
6860 ## should test for it as it does for any other build requirement.
6861 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6862 ## with pre-built manuals, from a Bazaar checkout.
6863 HAVE_MAKEINFO=yes
6865 if test "$MAKEINFO" = "no"; then
6866 MAKEINFO=makeinfo
6867 if test "x${with_makeinfo}" = "xno"; then
6868 HAVE_MAKEINFO=no
6869 elif test ! -e $srcdir/info/emacs; then
6870 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
6871 source tree does not seem to have pre-built manuals in the \`info' directory.
6872 Either install a suitable version of makeinfo, or re-run configure
6873 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6879 if test x$GCC = xyes; then
6880 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6881 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6882 else
6883 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6884 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6888 late_LDFLAGS=$LDFLAGS
6889 if test x$GCC = xyes; then
6890 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6891 else
6892 LDFLAGS="$LDFLAGS -znocombreloc"
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6896 $as_echo_n "checking for -znocombreloc... " >&6; }
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6901 main ()
6905 return 0;
6907 _ACEOF
6908 if ac_fn_c_try_link "$LINENO"; then :
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6910 $as_echo "yes" >&6; }
6911 else
6912 LDFLAGS=$late_LDFLAGS
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6916 rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6920 # The value of CPP is a quoted variable reference, so we need to do this
6921 # to get its actual value...
6922 CPP=`eval "echo $CPP"`
6925 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6926 case "$opsys" in
6927 your-opsys-here) CANNOT_DUMP=yes ;;
6928 esac
6930 test "$CANNOT_DUMP" = "yes" && \
6932 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6938 UNEXEC_OBJ=unexelf.o
6939 case "$opsys" in
6940 # MSDOS uses unexcoff.o
6941 # MSWindows uses unexw32.o
6942 aix4-2)
6943 UNEXEC_OBJ=unexaix.o
6945 cygwin)
6946 UNEXEC_OBJ=unexcw.o
6948 darwin)
6949 UNEXEC_OBJ=unexmacosx.o
6951 hpux10-20 | hpux11)
6952 UNEXEC_OBJ=unexhp9k800.o
6954 sol2-10)
6955 # Use the Solaris dldump() function, called from unexsol.c, to dump
6956 # emacs, instead of the generic ELF dump code found in unexelf.c.
6957 # The resulting binary has a complete symbol table, and is better
6958 # for debugging and other observability tools (debuggers, pstack, etc).
6960 # If you encounter a problem using dldump(), please consider sending
6961 # a message to the OpenSolaris tools-linking mailing list:
6962 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6964 # It is likely that dldump() works with older Solaris too, but this has
6965 # not been tested, so for now this change is for Solaris 10 or newer.
6966 UNEXEC_OBJ=unexsol.o
6968 esac
6970 LD_SWITCH_SYSTEM=
6971 case "$opsys" in
6972 freebsd)
6973 ## Let `ld' find image libs and similar things in /usr/local/lib.
6974 ## The system compiler, GCC, has apparently been modified to not
6975 ## look there, contrary to what a stock GCC would do.
6976 LD_SWITCH_SYSTEM=-L/usr/local/lib
6979 gnu-linux)
6980 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6981 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6984 netbsd)
6985 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6988 openbsd)
6989 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6990 ## otherwise Emacs dumps core on elf systems.
6991 LD_SWITCH_SYSTEM="-Z"
6993 esac
6996 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6998 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6999 ## which has not been defined yet. When this was handled with cpp,
7000 ## it was expanded to null when configure sourced the s/*.h file.
7001 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7002 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7003 ## (or somesuch), but because it is supposed to go at the _front_
7004 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7005 ## Compare with the gnu-linux case below, which added to the end
7006 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7007 ## LD_SWITCH_SYSTEM_TEMACS.
7008 case "$opsys" in
7009 netbsd|openbsd)
7010 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7011 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7012 esac
7015 C_SWITCH_MACHINE=
7016 if test "$machine" = "alpha"; then
7017 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7018 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7022 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7023 ## With ELF, make sure that all common symbols get allocated to in the
7024 ## data section. Otherwise, the dump of temacs may miss variables in
7025 ## the shared library that have been initialized. For example, with
7026 ## GNU libc, __malloc_initialized would normally be resolved to the
7027 ## shared library's .bss section, which is fatal.
7028 if test "x$GCC" = "xyes"; then
7029 C_SWITCH_MACHINE="-fno-common"
7030 else
7031 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7033 else
7034 UNEXEC_OBJ=unexalpha.o
7041 C_SWITCH_SYSTEM=
7042 ## Some programs in src produce warnings saying certain subprograms
7043 ## are too complex and need a MAXMEM value greater than 2000 for
7044 ## additional optimization. --nils@exp-math.uni-essen.de
7045 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7046 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7047 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7048 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7052 LIBS_SYSTEM=
7053 case "$opsys" in
7054 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7055 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7057 freebsd) LIBS_SYSTEM="-lutil" ;;
7059 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7061 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7063 ## Motif needs -lgen.
7064 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7065 esac
7069 ### Make sure subsequent tests use flags consistent with the build flags.
7071 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7072 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7073 else
7074 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7077 # Check whether --enable-largefile was given.
7078 if test "${enable_largefile+set}" = set; then :
7079 enableval=$enable_largefile;
7082 if test "$enable_largefile" != no; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7085 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7086 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 ac_cv_sys_largefile_CC=no
7090 if test "$GCC" != yes; then
7091 ac_save_CC=$CC
7092 while :; do
7093 # IRIX 6.2 and later do not support large files by default,
7094 # so use the C compiler's -n32 option if that helps.
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <sys/types.h>
7098 /* Check that off_t can represent 2**63 - 1 correctly.
7099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7100 since some C++ compilers masquerading as C compilers
7101 incorrectly reject 9223372036854775807. */
7102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7104 && LARGE_OFF_T % 2147483647 == 1)
7105 ? 1 : -1];
7107 main ()
7111 return 0;
7113 _ACEOF
7114 if ac_fn_c_try_compile "$LINENO"; then :
7115 break
7117 rm -f core conftest.err conftest.$ac_objext
7118 CC="$CC -n32"
7119 if ac_fn_c_try_compile "$LINENO"; then :
7120 ac_cv_sys_largefile_CC=' -n32'; break
7122 rm -f core conftest.err conftest.$ac_objext
7123 break
7124 done
7125 CC=$ac_save_CC
7126 rm -f conftest.$ac_ext
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7130 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7131 if test "$ac_cv_sys_largefile_CC" != no; then
7132 CC=$CC$ac_cv_sys_largefile_CC
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7136 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7137 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 while :; do
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 #include <sys/types.h>
7144 /* Check that off_t can represent 2**63 - 1 correctly.
7145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7146 since some C++ compilers masquerading as C compilers
7147 incorrectly reject 9223372036854775807. */
7148 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7150 && LARGE_OFF_T % 2147483647 == 1)
7151 ? 1 : -1];
7153 main ()
7157 return 0;
7159 _ACEOF
7160 if ac_fn_c_try_compile "$LINENO"; then :
7161 ac_cv_sys_file_offset_bits=no; break
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7166 #define _FILE_OFFSET_BITS 64
7167 #include <sys/types.h>
7168 /* Check that off_t can represent 2**63 - 1 correctly.
7169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7170 since some C++ compilers masquerading as C compilers
7171 incorrectly reject 9223372036854775807. */
7172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7174 && LARGE_OFF_T % 2147483647 == 1)
7175 ? 1 : -1];
7177 main ()
7181 return 0;
7183 _ACEOF
7184 if ac_fn_c_try_compile "$LINENO"; then :
7185 ac_cv_sys_file_offset_bits=64; break
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188 ac_cv_sys_file_offset_bits=unknown
7189 break
7190 done
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7193 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7194 case $ac_cv_sys_file_offset_bits in #(
7195 no | unknown) ;;
7197 cat >>confdefs.h <<_ACEOF
7198 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7199 _ACEOF
7201 esac
7202 rm -rf conftest*
7203 if test $ac_cv_sys_file_offset_bits = unknown; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7205 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7206 if test "${ac_cv_sys_large_files+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 while :; do
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #include <sys/types.h>
7213 /* Check that off_t can represent 2**63 - 1 correctly.
7214 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7215 since some C++ compilers masquerading as C compilers
7216 incorrectly reject 9223372036854775807. */
7217 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7218 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7219 && LARGE_OFF_T % 2147483647 == 1)
7220 ? 1 : -1];
7222 main ()
7226 return 0;
7228 _ACEOF
7229 if ac_fn_c_try_compile "$LINENO"; then :
7230 ac_cv_sys_large_files=no; break
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 #define _LARGE_FILES 1
7236 #include <sys/types.h>
7237 /* Check that off_t can represent 2**63 - 1 correctly.
7238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7239 since some C++ compilers masquerading as C compilers
7240 incorrectly reject 9223372036854775807. */
7241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7243 && LARGE_OFF_T % 2147483647 == 1)
7244 ? 1 : -1];
7246 main ()
7250 return 0;
7252 _ACEOF
7253 if ac_fn_c_try_compile "$LINENO"; then :
7254 ac_cv_sys_large_files=1; break
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 ac_cv_sys_large_files=unknown
7258 break
7259 done
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7262 $as_echo "$ac_cv_sys_large_files" >&6; }
7263 case $ac_cv_sys_large_files in #(
7264 no | unknown) ;;
7266 cat >>confdefs.h <<_ACEOF
7267 #define _LARGE_FILES $ac_cv_sys_large_files
7268 _ACEOF
7270 esac
7271 rm -rf conftest*
7277 ## If user specified a crt-dir, use that unconditionally.
7278 if test "X$CRT_DIR" = "X"; then
7280 case "$canonical" in
7281 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7282 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7283 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7284 ## For anything else (eg /usr/lib32), it is up the user to specify
7285 ## the location (bug#5655).
7286 ## Test for crtn.o, not just the directory, because sometimes the
7287 ## directory exists but does not have the relevant files (bug#1287).
7288 ## FIXME better to test for binary compatibility somehow.
7289 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7292 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7293 esac
7295 case "$opsys" in
7296 hpux10-20) CRT_DIR=/lib ;;
7297 esac
7299 ## Default is /usr/lib.
7300 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7302 else
7304 ## Some platforms don't use any of these files, so it is not
7305 ## appropriate to put this test outside the if block.
7306 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7307 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7313 LIB_MATH=-lm
7314 LIB_STANDARD=
7315 START_FILES=
7317 case $opsys in
7318 cygwin )
7319 LIB_MATH=
7320 START_FILES='pre-crt0.o'
7322 darwin )
7323 ## Adding -lm confuses the dynamic linker, so omit it.
7324 LIB_MATH=
7325 START_FILES='pre-crt0.o'
7327 freebsd )
7328 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7329 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7331 gnu-linux | gnu-kfreebsd )
7332 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7333 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7335 hpux10-20 | hpux11 )
7336 LIB_STANDARD=-lc
7337 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7339 netbsd | openbsd )
7340 if test -f $CRT_DIR/crti.o; then
7341 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7342 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7343 else
7344 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7345 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7348 esac
7356 if test "${with_sound}" != "no"; then
7357 # Sound support for GNU/Linux and the free BSDs.
7358 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7359 do :
7360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7361 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7362 eval as_val=\$$as_ac_Header
7363 if test "x$as_val" = x""yes; then :
7364 cat >>confdefs.h <<_ACEOF
7365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7366 _ACEOF
7367 have_sound_header=yes
7370 done
7372 # Emulation library used on NetBSD.
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7374 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7375 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 ac_check_lib_save_LIBS=$LIBS
7379 LIBS="-lossaudio $LIBS"
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7383 /* Override any GCC internal prototype to avoid an error.
7384 Use char because int might match the return type of a GCC
7385 builtin and then its argument prototype would still apply. */
7386 #ifdef __cplusplus
7387 extern "C"
7388 #endif
7389 char _oss_ioctl ();
7391 main ()
7393 return _oss_ioctl ();
7395 return 0;
7397 _ACEOF
7398 if ac_fn_c_try_link "$LINENO"; then :
7399 ac_cv_lib_ossaudio__oss_ioctl=yes
7400 else
7401 ac_cv_lib_ossaudio__oss_ioctl=no
7403 rm -f core conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
7405 LIBS=$ac_check_lib_save_LIBS
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7408 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7409 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7410 LIBSOUND=-lossaudio
7411 else
7412 LIBSOUND=
7417 ALSA_REQUIRED=1.0.0
7418 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7420 succeeded=no
7422 # Extract the first word of "pkg-config", so it can be a program name with args.
7423 set dummy pkg-config; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 case $PKG_CONFIG in
7430 [\\/]* | ?:[\\/]*)
7431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7445 done
7446 done
7447 IFS=$as_save_IFS
7449 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7451 esac
7453 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7454 if test -n "$PKG_CONFIG"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7456 $as_echo "$PKG_CONFIG" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7464 if test "$PKG_CONFIG" = "no" ; then
7465 HAVE_ALSA=no
7466 else
7467 PKG_CONFIG_MIN_VERSION=0.9.0
7468 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7470 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7472 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7474 $as_echo "yes" >&6; }
7475 succeeded=yes
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7478 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7479 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7481 $as_echo "$ALSA_CFLAGS" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7484 $as_echo_n "checking ALSA_LIBS... " >&6; }
7485 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7487 $as_echo "$ALSA_LIBS" >&6; }
7488 else
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 ALSA_CFLAGS=""
7492 ALSA_LIBS=""
7493 ## If we have a custom action on failure, don't print errors, but
7494 ## do set a variable so people can do so.
7495 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7501 else
7502 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7503 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7507 if test $succeeded = yes; then
7508 HAVE_ALSA=yes
7509 else
7510 HAVE_ALSA=no
7513 if test $HAVE_ALSA = yes; then
7514 SAVE_CFLAGS="$CFLAGS"
7515 SAVE_LDFLAGS="$LDFLAGS"
7516 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7517 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #include <asoundlib.h>
7522 main ()
7524 snd_lib_error_set_handler (0);
7526 return 0;
7528 _ACEOF
7529 if ac_fn_c_try_compile "$LINENO"; then :
7530 emacs_alsa_normal=yes
7531 else
7532 emacs_alsa_normal=no
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 if test "$emacs_alsa_normal" != yes; then
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538 #include <alsa/asoundlib.h>
7540 main ()
7542 snd_lib_error_set_handler (0);
7544 return 0;
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 emacs_alsa_subdir=yes
7549 else
7550 emacs_alsa_subdir=no
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 if test "$emacs_alsa_subdir" != yes; then
7554 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7556 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7559 CFLAGS="$SAVE_CFLAGS"
7560 LDFLAGS="$SAVE_LDFLAGS"
7561 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7562 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7564 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7568 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7569 case "$opsys" in
7570 gnu-linux|freebsd|netbsd)
7572 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7575 esac
7581 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7582 linux/version.h sys/systeminfo.h limits.h \
7583 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7584 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7585 sys/utsname.h pwd.h utmp.h dirent.h util.h
7586 do :
7587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7588 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7589 eval as_val=\$$as_ac_Header
7590 if test "x$as_val" = x""yes; then :
7591 cat >>confdefs.h <<_ACEOF
7592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7593 _ACEOF
7597 done
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7601 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #include <sys/personality.h>
7606 main ()
7608 personality (PER_LINUX32)
7610 return 0;
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 emacs_cv_personality_linux32=yes
7615 else
7616 emacs_cv_personality_linux32=no
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7620 $as_echo "$emacs_cv_personality_linux32" >&6; }
7622 if test $emacs_cv_personality_linux32 = yes; then
7624 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7628 for ac_header in term.h
7629 do :
7630 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7631 if test "x$ac_cv_header_term_h" = x""yes; then :
7632 cat >>confdefs.h <<_ACEOF
7633 #define HAVE_TERM_H 1
7634 _ACEOF
7638 done
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7641 $as_echo_n "checking for ANSI C header files... " >&6; }
7642 if test "${ac_cv_header_stdc+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 #include <stdlib.h>
7648 #include <stdarg.h>
7649 #include <string.h>
7650 #include <float.h>
7653 main ()
7657 return 0;
7659 _ACEOF
7660 if ac_fn_c_try_compile "$LINENO"; then :
7661 ac_cv_header_stdc=yes
7662 else
7663 ac_cv_header_stdc=no
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 if test $ac_cv_header_stdc = yes; then
7668 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7671 #include <string.h>
7673 _ACEOF
7674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7675 $EGREP "memchr" >/dev/null 2>&1; then :
7677 else
7678 ac_cv_header_stdc=no
7680 rm -f conftest*
7684 if test $ac_cv_header_stdc = yes; then
7685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 #include <stdlib.h>
7690 _ACEOF
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 $EGREP "free" >/dev/null 2>&1; then :
7694 else
7695 ac_cv_header_stdc=no
7697 rm -f conftest*
7701 if test $ac_cv_header_stdc = yes; then
7702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7703 if test "$cross_compiling" = yes; then :
7705 else
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7708 #include <ctype.h>
7709 #include <stdlib.h>
7710 #if ((' ' & 0x0FF) == 0x020)
7711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7713 #else
7714 # define ISLOWER(c) \
7715 (('a' <= (c) && (c) <= 'i') \
7716 || ('j' <= (c) && (c) <= 'r') \
7717 || ('s' <= (c) && (c) <= 'z'))
7718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7719 #endif
7721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7723 main ()
7725 int i;
7726 for (i = 0; i < 256; i++)
7727 if (XOR (islower (i), ISLOWER (i))
7728 || toupper (i) != TOUPPER (i))
7729 return 2;
7730 return 0;
7732 _ACEOF
7733 if ac_fn_c_try_run "$LINENO"; then :
7735 else
7736 ac_cv_header_stdc=no
7738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7739 conftest.$ac_objext conftest.beam conftest.$ac_ext
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7745 $as_echo "$ac_cv_header_stdc" >&6; }
7746 if test $ac_cv_header_stdc = yes; then
7748 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7753 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7754 if test "${ac_cv_header_time+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 #include <sys/types.h>
7760 #include <sys/time.h>
7761 #include <time.h>
7764 main ()
7766 if ((struct tm *) 0)
7767 return 0;
7769 return 0;
7771 _ACEOF
7772 if ac_fn_c_try_compile "$LINENO"; then :
7773 ac_cv_header_time=yes
7774 else
7775 ac_cv_header_time=no
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7780 $as_echo "$ac_cv_header_time" >&6; }
7781 if test $ac_cv_header_time = yes; then
7783 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7787 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7788 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
7789 ac_have_decl=1
7790 else
7791 ac_have_decl=0
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7796 _ACEOF
7798 if test $ac_cv_have_decl_sys_siglist != yes; then
7799 # For Tru64, at least:
7800 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7801 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
7802 ac_have_decl=1
7803 else
7804 ac_have_decl=0
7807 cat >>confdefs.h <<_ACEOF
7808 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7809 _ACEOF
7811 if test $ac_cv_have_decl___sys_siglist = yes; then
7813 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7818 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7819 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824 #include <sys/types.h>
7825 #include <sys/wait.h>
7826 #ifndef WEXITSTATUS
7827 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7828 #endif
7829 #ifndef WIFEXITED
7830 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7831 #endif
7834 main ()
7836 int s;
7837 wait (&s);
7838 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7840 return 0;
7842 _ACEOF
7843 if ac_fn_c_try_compile "$LINENO"; then :
7844 ac_cv_header_sys_wait_h=yes
7845 else
7846 ac_cv_header_sys_wait_h=no
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7851 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7852 if test $ac_cv_header_sys_wait_h = yes; then
7854 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7860 $as_echo_n "checking for struct utimbuf... " >&6; }
7861 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 #ifdef TIME_WITH_SYS_TIME
7867 #include <sys/time.h>
7868 #include <time.h>
7869 #else
7870 #ifdef HAVE_SYS_TIME_H
7871 #include <sys/time.h>
7872 #else
7873 #include <time.h>
7874 #endif
7875 #endif
7876 #ifdef HAVE_UTIME_H
7877 #include <utime.h>
7878 #endif
7880 main ()
7882 static struct utimbuf x; x.actime = x.modtime;
7884 return 0;
7886 _ACEOF
7887 if ac_fn_c_try_compile "$LINENO"; then :
7888 emacs_cv_struct_utimbuf=yes
7889 else
7890 emacs_cv_struct_utimbuf=no
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7895 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7896 if test $emacs_cv_struct_utimbuf = yes; then
7898 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7903 $as_echo_n "checking return type of signal handlers... " >&6; }
7904 if test "${ac_cv_type_signal+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 #include <sys/types.h>
7910 #include <signal.h>
7913 main ()
7915 return *(signal (0, 0)) (0) == 1;
7917 return 0;
7919 _ACEOF
7920 if ac_fn_c_try_compile "$LINENO"; then :
7921 ac_cv_type_signal=int
7922 else
7923 ac_cv_type_signal=void
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7928 $as_echo "$ac_cv_type_signal" >&6; }
7930 cat >>confdefs.h <<_ACEOF
7931 #define RETSIGTYPE $ac_cv_type_signal
7932 _ACEOF
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7937 $as_echo_n "checking for speed_t... " >&6; }
7938 if test "${emacs_cv_speed_t+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 #include <termios.h>
7945 main ()
7947 speed_t x = 1;
7949 return 0;
7951 _ACEOF
7952 if ac_fn_c_try_compile "$LINENO"; then :
7953 emacs_cv_speed_t=yes
7954 else
7955 emacs_cv_speed_t=no
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7960 $as_echo "$emacs_cv_speed_t" >&6; }
7961 if test $emacs_cv_speed_t = yes; then
7963 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7968 $as_echo_n "checking for struct timeval... " >&6; }
7969 if test "${emacs_cv_struct_timeval+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7971 else
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7974 #ifdef TIME_WITH_SYS_TIME
7975 #include <sys/time.h>
7976 #include <time.h>
7977 #else
7978 #ifdef HAVE_SYS_TIME_H
7979 #include <sys/time.h>
7980 #else
7981 #include <time.h>
7982 #endif
7983 #endif
7985 main ()
7987 static struct timeval x; x.tv_sec = x.tv_usec;
7989 return 0;
7991 _ACEOF
7992 if ac_fn_c_try_compile "$LINENO"; then :
7993 emacs_cv_struct_timeval=yes
7994 else
7995 emacs_cv_struct_timeval=no
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8000 $as_echo "$emacs_cv_struct_timeval" >&6; }
8001 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8002 if test $emacs_cv_struct_timeval = yes; then
8004 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8009 $as_echo_n "checking for struct exception... " >&6; }
8010 if test "${emacs_cv_struct_exception+set}" = set; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8015 #include <math.h>
8017 main ()
8019 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8021 return 0;
8023 _ACEOF
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025 emacs_cv_struct_exception=yes
8026 else
8027 emacs_cv_struct_exception=no
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8032 $as_echo "$emacs_cv_struct_exception" >&6; }
8033 HAVE_EXCEPTION=$emacs_cv_struct_exception
8034 if test $emacs_cv_struct_exception != yes; then
8036 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8040 for ac_header in net/if.h
8041 do :
8042 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8043 #if HAVE_SYS_SOCKET_H
8044 #include <sys/socket.h>
8045 #endif
8047 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8048 cat >>confdefs.h <<_ACEOF
8049 #define HAVE_NET_IF_H 1
8050 _ACEOF
8054 done
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8058 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8059 if test "${ac_cv_struct_tm+set}" = set; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 #include <sys/types.h>
8065 #include <time.h>
8068 main ()
8070 struct tm tm;
8071 int *p = &tm.tm_sec;
8072 return !p;
8074 return 0;
8076 _ACEOF
8077 if ac_fn_c_try_compile "$LINENO"; then :
8078 ac_cv_struct_tm=time.h
8079 else
8080 ac_cv_struct_tm=sys/time.h
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8085 $as_echo "$ac_cv_struct_tm" >&6; }
8086 if test $ac_cv_struct_tm = sys/time.h; then
8088 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8092 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8093 #include <$ac_cv_struct_tm>
8096 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8098 cat >>confdefs.h <<_ACEOF
8099 #define HAVE_STRUCT_TM_TM_ZONE 1
8100 _ACEOF
8105 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8107 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8109 else
8110 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8112 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8113 ac_have_decl=1
8114 else
8115 ac_have_decl=0
8118 cat >>confdefs.h <<_ACEOF
8119 #define HAVE_DECL_TZNAME $ac_have_decl
8120 _ACEOF
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8123 $as_echo_n "checking for tzname... " >&6; }
8124 if test "${ac_cv_var_tzname+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 #include <time.h>
8130 #if !HAVE_DECL_TZNAME
8131 extern char *tzname[];
8132 #endif
8135 main ()
8137 return tzname[0][0];
8139 return 0;
8141 _ACEOF
8142 if ac_fn_c_try_link "$LINENO"; then :
8143 ac_cv_var_tzname=yes
8144 else
8145 ac_cv_var_tzname=no
8147 rm -f core conftest.err conftest.$ac_objext \
8148 conftest$ac_exeext conftest.$ac_ext
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8151 $as_echo "$ac_cv_var_tzname" >&6; }
8152 if test $ac_cv_var_tzname = yes; then
8154 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8159 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8161 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8163 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8167 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8168 #if HAVE_SYS_SOCKET_H
8169 #include <sys/socket.h>
8170 #endif
8171 #if HAVE_NET_IF_H
8172 #include <net/if.h>
8173 #endif
8175 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8177 cat >>confdefs.h <<_ACEOF
8178 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8179 _ACEOF
8183 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8184 #if HAVE_SYS_SOCKET_H
8185 #include <sys/socket.h>
8186 #endif
8187 #if HAVE_NET_IF_H
8188 #include <net/if.h>
8189 #endif
8191 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8195 _ACEOF
8199 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8200 #if HAVE_SYS_SOCKET_H
8201 #include <sys/socket.h>
8202 #endif
8203 #if HAVE_NET_IF_H
8204 #include <net/if.h>
8205 #endif
8207 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8209 cat >>confdefs.h <<_ACEOF
8210 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8211 _ACEOF
8215 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8216 #if HAVE_SYS_SOCKET_H
8217 #include <sys/socket.h>
8218 #endif
8219 #if HAVE_NET_IF_H
8220 #include <net/if.h>
8221 #endif
8223 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8225 cat >>confdefs.h <<_ACEOF
8226 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8227 _ACEOF
8231 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8232 #if HAVE_SYS_SOCKET_H
8233 #include <sys/socket.h>
8234 #endif
8235 #if HAVE_NET_IF_H
8236 #include <net/if.h>
8237 #endif
8239 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8241 cat >>confdefs.h <<_ACEOF
8242 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8243 _ACEOF
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8251 $as_echo_n "checking for function prototypes... " >&6; }
8252 if test "$ac_cv_prog_cc_c89" != no; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8254 $as_echo "yes" >&6; }
8256 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8259 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8261 else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8267 $as_echo_n "checking for working volatile... " >&6; }
8268 if test "${ac_cv_c_volatile+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8275 main ()
8278 volatile int x;
8279 int * volatile y = (int *) 0;
8280 return !x && !y;
8282 return 0;
8284 _ACEOF
8285 if ac_fn_c_try_compile "$LINENO"; then :
8286 ac_cv_c_volatile=yes
8287 else
8288 ac_cv_c_volatile=no
8290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8293 $as_echo "$ac_cv_c_volatile" >&6; }
8294 if test $ac_cv_c_volatile = no; then
8296 $as_echo "#define volatile /**/" >>confdefs.h
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8301 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8302 if test "${ac_cv_c_const+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8309 main ()
8311 /* FIXME: Include the comments suggested by Paul. */
8312 #ifndef __cplusplus
8313 /* Ultrix mips cc rejects this. */
8314 typedef int charset[2];
8315 const charset cs;
8316 /* SunOS 4.1.1 cc rejects this. */
8317 char const *const *pcpcc;
8318 char **ppc;
8319 /* NEC SVR4.0.2 mips cc rejects this. */
8320 struct point {int x, y;};
8321 static struct point const zero = {0,0};
8322 /* AIX XL C 1.02.0.0 rejects this.
8323 It does not let you subtract one const X* pointer from another in
8324 an arm of an if-expression whose if-part is not a constant
8325 expression */
8326 const char *g = "string";
8327 pcpcc = &g + (g ? g-g : 0);
8328 /* HPUX 7.0 cc rejects these. */
8329 ++pcpcc;
8330 ppc = (char**) pcpcc;
8331 pcpcc = (char const *const *) ppc;
8332 { /* SCO 3.2v4 cc rejects this. */
8333 char *t;
8334 char const *s = 0 ? (char *) 0 : (char const *) 0;
8336 *t++ = 0;
8337 if (s) return 0;
8339 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8340 int x[] = {25, 17};
8341 const int *foo = &x[0];
8342 ++foo;
8344 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8345 typedef const int *iptr;
8346 iptr p = 0;
8347 ++p;
8349 { /* AIX XL C 1.02.0.0 rejects this saying
8350 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8351 struct s { int j; const int *ap[3]; };
8352 struct s *b; b->j = 5;
8354 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8355 const int foo = 10;
8356 if (!foo) return 0;
8358 return !cs[0] && !zero.x;
8359 #endif
8362 return 0;
8364 _ACEOF
8365 if ac_fn_c_try_compile "$LINENO"; then :
8366 ac_cv_c_const=yes
8367 else
8368 ac_cv_c_const=no
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8373 $as_echo "$ac_cv_c_const" >&6; }
8374 if test $ac_cv_c_const = no; then
8376 $as_echo "#define const /**/" >>confdefs.h
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8381 $as_echo_n "checking for void * support... " >&6; }
8382 if test "${emacs_cv_void_star+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8389 main ()
8391 void * foo;
8393 return 0;
8395 _ACEOF
8396 if ac_fn_c_try_compile "$LINENO"; then :
8397 emacs_cv_void_star=yes
8398 else
8399 emacs_cv_void_star=no
8401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8404 $as_echo "$emacs_cv_void_star" >&6; }
8405 if test $emacs_cv_void_star = yes; then
8406 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8408 else
8409 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8414 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8415 if test "${ac_cv_c_bigendian+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 ac_cv_c_bigendian=unknown
8419 # See if we're dealing with a universal compiler.
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #ifndef __APPLE_CC__
8423 not a universal capable compiler
8424 #endif
8425 typedef int dummy;
8427 _ACEOF
8428 if ac_fn_c_try_compile "$LINENO"; then :
8430 # Check for potential -arch flags. It is not universal unless
8431 # there are at least two -arch flags with different values.
8432 ac_arch=
8433 ac_prev=
8434 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8435 if test -n "$ac_prev"; then
8436 case $ac_word in
8437 i?86 | x86_64 | ppc | ppc64)
8438 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8439 ac_arch=$ac_word
8440 else
8441 ac_cv_c_bigendian=universal
8442 break
8445 esac
8446 ac_prev=
8447 elif test "x$ac_word" = "x-arch"; then
8448 ac_prev=arch
8450 done
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 if test $ac_cv_c_bigendian = unknown; then
8454 # See if sys/param.h defines the BYTE_ORDER macro.
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #include <sys/types.h>
8458 #include <sys/param.h>
8461 main ()
8463 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8464 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8465 && LITTLE_ENDIAN)
8466 bogus endian macros
8467 #endif
8470 return 0;
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474 # It does; now see whether it defined to BIG_ENDIAN or not.
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8477 #include <sys/types.h>
8478 #include <sys/param.h>
8481 main ()
8483 #if BYTE_ORDER != BIG_ENDIAN
8484 not big endian
8485 #endif
8488 return 0;
8490 _ACEOF
8491 if ac_fn_c_try_compile "$LINENO"; then :
8492 ac_cv_c_bigendian=yes
8493 else
8494 ac_cv_c_bigendian=no
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 if test $ac_cv_c_bigendian = unknown; then
8501 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <limits.h>
8507 main ()
8509 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8510 bogus endian macros
8511 #endif
8514 return 0;
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518 # It does; now see whether it defined to _BIG_ENDIAN or not.
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 #include <limits.h>
8524 main ()
8526 #ifndef _BIG_ENDIAN
8527 not big endian
8528 #endif
8531 return 0;
8533 _ACEOF
8534 if ac_fn_c_try_compile "$LINENO"; then :
8535 ac_cv_c_bigendian=yes
8536 else
8537 ac_cv_c_bigendian=no
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 if test $ac_cv_c_bigendian = unknown; then
8544 # Compile a test program.
8545 if test "$cross_compiling" = yes; then :
8546 # Try to guess by grepping values from an object file.
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 short int ascii_mm[] =
8550 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8551 short int ascii_ii[] =
8552 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8553 int use_ascii (int i) {
8554 return ascii_mm[i] + ascii_ii[i];
8556 short int ebcdic_ii[] =
8557 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8558 short int ebcdic_mm[] =
8559 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8560 int use_ebcdic (int i) {
8561 return ebcdic_mm[i] + ebcdic_ii[i];
8563 extern int foo;
8566 main ()
8568 return use_ascii (foo) == use_ebcdic (foo);
8570 return 0;
8572 _ACEOF
8573 if ac_fn_c_try_compile "$LINENO"; then :
8574 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8575 ac_cv_c_bigendian=yes
8577 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8578 if test "$ac_cv_c_bigendian" = unknown; then
8579 ac_cv_c_bigendian=no
8580 else
8581 # finding both strings is unlikely to happen, but who knows?
8582 ac_cv_c_bigendian=unknown
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 else
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590 $ac_includes_default
8592 main ()
8595 /* Are we little or big endian? From Harbison&Steele. */
8596 union
8598 long int l;
8599 char c[sizeof (long int)];
8600 } u;
8601 u.l = 1;
8602 return u.c[sizeof (long int) - 1] == 1;
8605 return 0;
8607 _ACEOF
8608 if ac_fn_c_try_run "$LINENO"; then :
8609 ac_cv_c_bigendian=no
8610 else
8611 ac_cv_c_bigendian=yes
8613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8614 conftest.$ac_objext conftest.beam conftest.$ac_ext
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8620 $as_echo "$ac_cv_c_bigendian" >&6; }
8621 case $ac_cv_c_bigendian in #(
8622 yes)
8623 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8624 ;; #(
8626 ;; #(
8627 universal)
8629 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8631 ;; #(
8633 as_fn_error "unknown endianness
8634 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8635 esac
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8639 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8640 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 char __attribute__ ((__aligned__ (1 << 3))) c;
8647 main ()
8651 return 0;
8653 _ACEOF
8654 if ac_fn_c_try_compile "$LINENO"; then :
8655 emacs_cv_attribute_aligned=yes
8656 else
8657 emacs_cv_attribute_aligned=no
8659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8662 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8663 if test $emacs_cv_attribute_aligned = yes; then
8665 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8670 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8671 set x ${MAKE-make}
8672 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8673 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 cat >conftest.make <<\_ACEOF
8677 SHELL = /bin/sh
8678 all:
8679 @echo '@@@%%%=$(MAKE)=@@@%%%'
8680 _ACEOF
8681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8682 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8683 *@@@%%%=?*=@@@%%%*)
8684 eval ac_cv_prog_make_${ac_make}_set=yes;;
8686 eval ac_cv_prog_make_${ac_make}_set=no;;
8687 esac
8688 rm -f conftest.make
8690 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8692 $as_echo "yes" >&6; }
8693 SET_MAKE=
8694 else
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8697 SET_MAKE="MAKE=${MAKE-make}"
8701 DEPFLAGS=
8702 MKDEPDIR=":"
8703 deps_frag=deps.mk
8704 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8706 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8707 HAVE_GNU_MAKE=no
8708 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8709 if test "x$testval" != x; then
8710 HAVE_GNU_MAKE=yes
8711 else
8712 ac_enable_autodepend=no
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8715 $as_echo "$HAVE_GNU_MAKE" >&6; }
8716 if test $HAVE_GNU_MAKE = yes; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8718 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8719 SAVE_CFLAGS="$CFLAGS"
8720 CFLAGS="$CFLAGS -MMD -MF deps.d"
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8725 main ()
8729 return 0;
8731 _ACEOF
8732 if ac_fn_c_try_compile "$LINENO"; then :
8734 else
8735 ac_enable_autodepend=no
8737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738 CFLAGS="$SAVE_CFLAGS"
8739 test -f deps.d || ac_enable_autodepend=no
8740 rm -rf deps.d
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8742 $as_echo "$ac_enable_autodepend" >&6; }
8744 if test $ac_enable_autodepend = yes; then
8745 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8746 ## In parallel builds, another make might create depdir between
8747 ## the first test and mkdir, so stick another test on the end.
8748 ## Or use install-sh -d? mkdir -p is not portable.
8749 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8750 deps_frag=autodeps.mk
8753 deps_frag=$srcdir/src/$deps_frag
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8760 $as_echo_n "checking for long file names... " >&6; }
8761 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 ac_cv_sys_long_file_names=yes
8765 # Test for long file names in all the places we know might matter:
8766 # . the current directory, where building will happen
8767 # $prefix/lib where we will be installing things
8768 # $exec_prefix/lib likewise
8769 # $TMPDIR if set, where it might want to write temporary files
8770 # /tmp where it might want to write temporary files
8771 # /var/tmp likewise
8772 # /usr/tmp likewise
8773 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8774 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8775 # in the usual case where exec_prefix is '${prefix}'.
8776 case $ac_dir in #(
8777 . | /* | ?:[\\/]*) ;; #(
8778 *) continue;;
8779 esac
8780 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8781 ac_xdir=$ac_dir/cf$$
8782 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8783 ac_tf1=$ac_xdir/conftest9012345
8784 ac_tf2=$ac_xdir/conftest9012346
8785 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8786 ac_cv_sys_long_file_names=no
8787 rm -f -r "$ac_xdir" 2>/dev/null
8788 test $ac_cv_sys_long_file_names = no && break
8789 done
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8792 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8793 if test $ac_cv_sys_long_file_names = yes; then
8795 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8800 #### Choose a window system.
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8803 $as_echo_n "checking for X... " >&6; }
8806 # Check whether --with-x was given.
8807 if test "${with_x+set}" = set; then :
8808 withval=$with_x;
8811 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8812 if test "x$with_x" = xno; then
8813 # The user explicitly disabled X.
8814 have_x=disabled
8815 else
8816 case $x_includes,$x_libraries in #(
8817 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
8818 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 # One or both of the vars are not set, and there is no cached value.
8822 ac_x_includes=no ac_x_libraries=no
8823 rm -f -r conftest.dir
8824 if mkdir conftest.dir; then
8825 cd conftest.dir
8826 cat >Imakefile <<'_ACEOF'
8827 incroot:
8828 @echo incroot='${INCROOT}'
8829 usrlibdir:
8830 @echo usrlibdir='${USRLIBDIR}'
8831 libdir:
8832 @echo libdir='${LIBDIR}'
8833 _ACEOF
8834 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8836 for ac_var in incroot usrlibdir libdir; do
8837 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8838 done
8839 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8840 for ac_extension in a so sl dylib la dll; do
8841 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8842 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8843 ac_im_usrlibdir=$ac_im_libdir; break
8845 done
8846 # Screen out bogus values from the imake configuration. They are
8847 # bogus both because they are the default anyway, and because
8848 # using them would break gcc on systems where it needs fixed includes.
8849 case $ac_im_incroot in
8850 /usr/include) ac_x_includes= ;;
8851 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8852 esac
8853 case $ac_im_usrlibdir in
8854 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8855 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8856 esac
8858 cd ..
8859 rm -f -r conftest.dir
8862 # Standard set of common directories for X headers.
8863 # Check X11 before X11Rn because it is often a symlink to the current release.
8864 ac_x_header_dirs='
8865 /usr/X11/include
8866 /usr/X11R7/include
8867 /usr/X11R6/include
8868 /usr/X11R5/include
8869 /usr/X11R4/include
8871 /usr/include/X11
8872 /usr/include/X11R7
8873 /usr/include/X11R6
8874 /usr/include/X11R5
8875 /usr/include/X11R4
8877 /usr/local/X11/include
8878 /usr/local/X11R7/include
8879 /usr/local/X11R6/include
8880 /usr/local/X11R5/include
8881 /usr/local/X11R4/include
8883 /usr/local/include/X11
8884 /usr/local/include/X11R7
8885 /usr/local/include/X11R6
8886 /usr/local/include/X11R5
8887 /usr/local/include/X11R4
8889 /usr/X386/include
8890 /usr/x386/include
8891 /usr/XFree86/include/X11
8893 /usr/include
8894 /usr/local/include
8895 /usr/unsupported/include
8896 /usr/athena/include
8897 /usr/local/x11r5/include
8898 /usr/lpp/Xamples/include
8900 /usr/openwin/include
8901 /usr/openwin/share/include'
8903 if test "$ac_x_includes" = no; then
8904 # Guess where to find include files, by looking for Xlib.h.
8905 # First, try using that file with no special directory specified.
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 #include <X11/Xlib.h>
8909 _ACEOF
8910 if ac_fn_c_try_cpp "$LINENO"; then :
8911 # We can compile using X headers with no special include directory.
8912 ac_x_includes=
8913 else
8914 for ac_dir in $ac_x_header_dirs; do
8915 if test -r "$ac_dir/X11/Xlib.h"; then
8916 ac_x_includes=$ac_dir
8917 break
8919 done
8921 rm -f conftest.err conftest.$ac_ext
8922 fi # $ac_x_includes = no
8924 if test "$ac_x_libraries" = no; then
8925 # Check for the libraries.
8926 # See if we find them without any special options.
8927 # Don't add to $LIBS permanently.
8928 ac_save_LIBS=$LIBS
8929 LIBS="-lX11 $LIBS"
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include <X11/Xlib.h>
8934 main ()
8936 XrmInitialize ()
8938 return 0;
8940 _ACEOF
8941 if ac_fn_c_try_link "$LINENO"; then :
8942 LIBS=$ac_save_LIBS
8943 # We can link X programs with no special library path.
8944 ac_x_libraries=
8945 else
8946 LIBS=$ac_save_LIBS
8947 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8949 # Don't even attempt the hair of trying to link an X program!
8950 for ac_extension in a so sl dylib la dll; do
8951 if test -r "$ac_dir/libX11.$ac_extension"; then
8952 ac_x_libraries=$ac_dir
8953 break 2
8955 done
8956 done
8958 rm -f core conftest.err conftest.$ac_objext \
8959 conftest$ac_exeext conftest.$ac_ext
8960 fi # $ac_x_libraries = no
8962 case $ac_x_includes,$ac_x_libraries in #(
8963 no,* | *,no | *\'*)
8964 # Didn't find X, or a directory has "'" in its name.
8965 ac_cv_have_x="have_x=no";; #(
8967 # Record where we found X for the cache.
8968 ac_cv_have_x="have_x=yes\
8969 ac_x_includes='$ac_x_includes'\
8970 ac_x_libraries='$ac_x_libraries'"
8971 esac
8973 ;; #(
8974 *) have_x=yes;;
8975 esac
8976 eval "$ac_cv_have_x"
8977 fi # $with_x != no
8979 if test "$have_x" != yes; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8981 $as_echo "$have_x" >&6; }
8982 no_x=yes
8983 else
8984 # If each of the values was on the command line, it overrides each guess.
8985 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8986 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8987 # Update the cache value to reflect the command line values.
8988 ac_cv_have_x="have_x=yes\
8989 ac_x_includes='$x_includes'\
8990 ac_x_libraries='$x_libraries'"
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8992 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8995 if test "$no_x" = yes; then
8996 window_system=none
8997 else
8998 window_system=x11
9001 ## Workaround for bug in autoconf <= 2.62.
9002 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9003 ## No need to do anything special for these standard directories.
9004 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9006 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9010 LD_SWITCH_X_SITE_AUX=
9011 LD_SWITCH_X_SITE_AUX_RPATH=
9012 if test "${x_libraries}" != NONE; then
9013 if test -n "${x_libraries}"; then
9014 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9015 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9016 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9018 x_default_search_path=""
9019 x_search_path=${x_libraries}
9020 if test -z "${x_search_path}"; then
9021 x_search_path=/usr/lib
9023 for x_library in `echo ${x_search_path}: | \
9024 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9025 x_search_path="\
9026 ${x_library}/X11/%L/%T/%N%C%S:\
9027 ${x_library}/X11/%l/%T/%N%C%S:\
9028 ${x_library}/X11/%T/%N%C%S:\
9029 ${x_library}/X11/%L/%T/%N%S:\
9030 ${x_library}/X11/%l/%T/%N%S:\
9031 ${x_library}/X11/%T/%N%S"
9032 if test x"${x_default_search_path}" = x; then
9033 x_default_search_path=${x_search_path}
9034 else
9035 x_default_search_path="${x_search_path}:${x_default_search_path}"
9037 done
9042 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9043 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9046 if test x"${x_includes}" = x; then
9047 bitmapdir=/usr/include/X11/bitmaps
9048 else
9049 # accumulate include directories that have X11 bitmap subdirectories
9050 bmd_acc="dummyval"
9051 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9052 if test -d "${bmd}/X11/bitmaps"; then
9053 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9055 if test -d "${bmd}/bitmaps"; then
9056 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9058 done
9059 if test ${bmd_acc} != "dummyval"; then
9060 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9064 HAVE_NS=no
9065 NS_IMPL_COCOA=no
9066 NS_IMPL_GNUSTEP=no
9067 tmp_CPPFLAGS="$CPPFLAGS"
9068 tmp_CFLAGS="$CFLAGS"
9069 CPPFLAGS="$CPPFLAGS -x objective-c"
9070 CFLAGS="$CFLAGS -x objective-c"
9071 TEMACS_LDFLAGS2="\${LDFLAGS}"
9072 if test "${with_ns}" != no; then
9073 if test "${opsys}" = darwin; then
9074 NS_IMPL_COCOA=yes
9075 ns_appdir=`pwd`/nextstep/Emacs.app
9076 ns_appbindir=${ns_appdir}/Contents/MacOS/
9077 ns_appresdir=${ns_appdir}/Contents/Resources
9078 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9079 elif test -f $GNUSTEP_CONFIG_FILE; then
9080 NS_IMPL_GNUSTEP=yes
9081 ns_appdir=`pwd`/nextstep/Emacs.app
9082 ns_appbindir=${ns_appdir}/
9083 ns_appresdir=${ns_appdir}/Resources
9084 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9085 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9086 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9087 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9088 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9089 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9090 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9091 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9092 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9093 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9094 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9095 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9096 LIB_STANDARD=
9097 START_FILES=
9098 TEMACS_LDFLAGS2=
9100 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9101 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9102 HAVE_NS=yes
9103 else
9104 as_fn_error "\`--with-ns' was specified, but the include
9105 files are missing or cannot be compiled." "$LINENO" 5
9109 NS_HAVE_NSINTEGER=yes
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 #include <Foundation/NSObjCRuntime.h>
9114 main ()
9116 NSInteger i;
9118 return 0;
9120 _ACEOF
9121 if ac_fn_c_try_compile "$LINENO"; then :
9122 ns_have_nsinteger=yes
9123 else
9124 ns_have_nsinteger=no
9126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127 if test $ns_have_nsinteger = no; then
9128 NS_HAVE_NSINTEGER=no
9133 ns_frag=/dev/null
9134 NS_OBJ=
9135 NS_OBJC_OBJ=
9136 NS_SUPPORT=
9137 if test "${HAVE_NS}" = yes; then
9138 window_system=nextstep
9139 with_xft=no
9140 # set up packaging dirs
9141 exec_prefix=${ns_appbindir}
9142 libexecdir=${ns_appbindir}/libexec
9143 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9144 prefix=${ns_appresdir}
9146 ns_frag=$srcdir/src/ns.mk
9147 NS_OBJ="fontset.o fringe.o image.o"
9148 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9149 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9151 CFLAGS="$tmp_CFLAGS"
9152 CPPFLAGS="$tmp_CPPFLAGS"
9159 case "${window_system}" in
9160 x11 )
9161 HAVE_X_WINDOWS=yes
9162 HAVE_X11=yes
9163 case "${with_x_toolkit}" in
9164 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9165 motif ) USE_X_TOOLKIT=MOTIF ;;
9166 gtk ) with_gtk=yes
9167 USE_X_TOOLKIT=none ;;
9168 gtk3 ) with_gtk3=yes
9169 USE_X_TOOLKIT=none ;;
9170 no ) USE_X_TOOLKIT=none ;;
9171 * ) USE_X_TOOLKIT=maybe ;;
9172 esac
9174 nextstep | none )
9175 HAVE_X_WINDOWS=no
9176 HAVE_X11=no
9177 USE_X_TOOLKIT=none
9179 esac
9181 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9182 # Extract the first word of "X", so it can be a program name with args.
9183 set dummy X; ac_word=$2
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185 $as_echo_n "checking for $ac_word... " >&6; }
9186 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 if test -n "$HAVE_XSERVER"; then
9190 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9191 else
9192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193 for as_dir in $PATH
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9199 ac_cv_prog_HAVE_XSERVER="true"
9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 break 2
9203 done
9204 done
9205 IFS=$as_save_IFS
9207 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9210 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9211 if test -n "$HAVE_XSERVER"; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9213 $as_echo "$HAVE_XSERVER" >&6; }
9214 else
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 $as_echo "no" >&6; }
9220 if test "$HAVE_XSERVER" = true ||
9221 test -n "$DISPLAY" ||
9222 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9223 as_fn_error "You seem to be running X, but no X development libraries
9224 were found. You should install the relevant development files for X
9225 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9226 sure you have development files for image handling, i.e.
9227 tiff, gif, jpeg, png and xpm.
9228 If you are sure you want Emacs compiled without X window support, pass
9229 --without-x
9230 to configure." "$LINENO" 5
9234 ### If we're using X11, we should use the X menu package.
9235 HAVE_MENUS=no
9236 case ${HAVE_X11} in
9237 yes ) HAVE_MENUS=yes ;;
9238 esac
9240 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9241 # Assume not, until told otherwise.
9242 GNU_MALLOC=yes
9243 doug_lea_malloc=yes
9244 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9245 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9247 else
9248 doug_lea_malloc=no
9251 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9252 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9254 else
9255 doug_lea_malloc=no
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9259 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9260 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 extern void (* __after_morecore_hook)();
9267 main ()
9269 __after_morecore_hook = 0
9271 return 0;
9273 _ACEOF
9274 if ac_fn_c_try_link "$LINENO"; then :
9275 emacs_cv_var___after_morecore_hook=yes
9276 else
9277 emacs_cv_var___after_morecore_hook=no
9279 rm -f core conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9283 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9284 if test $emacs_cv_var___after_morecore_hook = no; then
9285 doug_lea_malloc=no
9289 system_malloc=no
9290 case "$opsys" in
9291 ## darwin ld insists on the use of malloc routines in the System framework.
9292 darwin|sol2-10) system_malloc=yes ;;
9293 esac
9295 if test "${system_malloc}" = "yes"; then
9297 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9299 GNU_MALLOC=no
9300 GNU_MALLOC_reason="
9301 (The GNU allocators don't work with this system configuration.)"
9302 GMALLOC_OBJ=
9303 VMLIMIT_OBJ=
9304 else
9305 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9306 VMLIMIT_OBJ=vm-limit.o
9311 if test "$doug_lea_malloc" = "yes" ; then
9312 if test "$GNU_MALLOC" = yes ; then
9313 GNU_MALLOC_reason="
9314 (Using Doug Lea's new malloc from the GNU C Library.)"
9317 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9320 ## Use mmap directly for allocating larger buffers.
9321 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9322 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9323 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9324 case "$opsys" in
9325 gnu*) REL_ALLOC=no ;;
9326 esac
9329 if test x"${REL_ALLOC}" = x; then
9330 REL_ALLOC=${GNU_MALLOC}
9333 use_mmap_for_buffers=no
9334 case "$opsys" in
9335 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9336 esac
9341 for ac_header in $ac_header_list
9342 do :
9343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9346 eval as_val=\$$as_ac_Header
9347 if test "x$as_val" = x""yes; then :
9348 cat >>confdefs.h <<_ACEOF
9349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9350 _ACEOF
9354 done
9363 for ac_func in getpagesize
9364 do :
9365 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9366 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9367 cat >>confdefs.h <<_ACEOF
9368 #define HAVE_GETPAGESIZE 1
9369 _ACEOF
9372 done
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9375 $as_echo_n "checking for working mmap... " >&6; }
9376 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 if test "$cross_compiling" = yes; then :
9380 ac_cv_func_mmap_fixed_mapped=no
9381 else
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 $ac_includes_default
9385 /* malloc might have been renamed as rpl_malloc. */
9386 #undef malloc
9388 /* Thanks to Mike Haertel and Jim Avera for this test.
9389 Here is a matrix of mmap possibilities:
9390 mmap private not fixed
9391 mmap private fixed at somewhere currently unmapped
9392 mmap private fixed at somewhere already mapped
9393 mmap shared not fixed
9394 mmap shared fixed at somewhere currently unmapped
9395 mmap shared fixed at somewhere already mapped
9396 For private mappings, we should verify that changes cannot be read()
9397 back from the file, nor mmap's back from the file at a different
9398 address. (There have been systems where private was not correctly
9399 implemented like the infamous i386 svr4.0, and systems where the
9400 VM page cache was not coherent with the file system buffer cache
9401 like early versions of FreeBSD and possibly contemporary NetBSD.)
9402 For shared mappings, we should conversely verify that changes get
9403 propagated back to all the places they're supposed to be.
9405 Grep wants private fixed already mapped.
9406 The main things grep needs to know about mmap are:
9407 * does it exist and is it safe to write into the mmap'd area
9408 * how to use it (BSD variants) */
9410 #include <fcntl.h>
9411 #include <sys/mman.h>
9413 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9414 char *malloc ();
9415 #endif
9417 /* This mess was copied from the GNU getpagesize.h. */
9418 #ifndef HAVE_GETPAGESIZE
9419 # ifdef _SC_PAGESIZE
9420 # define getpagesize() sysconf(_SC_PAGESIZE)
9421 # else /* no _SC_PAGESIZE */
9422 # ifdef HAVE_SYS_PARAM_H
9423 # include <sys/param.h>
9424 # ifdef EXEC_PAGESIZE
9425 # define getpagesize() EXEC_PAGESIZE
9426 # else /* no EXEC_PAGESIZE */
9427 # ifdef NBPG
9428 # define getpagesize() NBPG * CLSIZE
9429 # ifndef CLSIZE
9430 # define CLSIZE 1
9431 # endif /* no CLSIZE */
9432 # else /* no NBPG */
9433 # ifdef NBPC
9434 # define getpagesize() NBPC
9435 # else /* no NBPC */
9436 # ifdef PAGESIZE
9437 # define getpagesize() PAGESIZE
9438 # endif /* PAGESIZE */
9439 # endif /* no NBPC */
9440 # endif /* no NBPG */
9441 # endif /* no EXEC_PAGESIZE */
9442 # else /* no HAVE_SYS_PARAM_H */
9443 # define getpagesize() 8192 /* punt totally */
9444 # endif /* no HAVE_SYS_PARAM_H */
9445 # endif /* no _SC_PAGESIZE */
9447 #endif /* no HAVE_GETPAGESIZE */
9450 main ()
9452 char *data, *data2, *data3;
9453 const char *cdata2;
9454 int i, pagesize;
9455 int fd, fd2;
9457 pagesize = getpagesize ();
9459 /* First, make a file with some known garbage in it. */
9460 data = (char *) malloc (pagesize);
9461 if (!data)
9462 return 1;
9463 for (i = 0; i < pagesize; ++i)
9464 *(data + i) = rand ();
9465 umask (0);
9466 fd = creat ("conftest.mmap", 0600);
9467 if (fd < 0)
9468 return 2;
9469 if (write (fd, data, pagesize) != pagesize)
9470 return 3;
9471 close (fd);
9473 /* Next, check that the tail of a page is zero-filled. File must have
9474 non-zero length, otherwise we risk SIGBUS for entire page. */
9475 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9476 if (fd2 < 0)
9477 return 4;
9478 cdata2 = "";
9479 if (write (fd2, cdata2, 1) != 1)
9480 return 5;
9481 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9482 if (data2 == MAP_FAILED)
9483 return 6;
9484 for (i = 0; i < pagesize; ++i)
9485 if (*(data2 + i))
9486 return 7;
9487 close (fd2);
9488 if (munmap (data2, pagesize))
9489 return 8;
9491 /* Next, try to mmap the file at a fixed address which already has
9492 something else allocated at it. If we can, also make sure that
9493 we see the same garbage. */
9494 fd = open ("conftest.mmap", O_RDWR);
9495 if (fd < 0)
9496 return 9;
9497 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9498 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9499 return 10;
9500 for (i = 0; i < pagesize; ++i)
9501 if (*(data + i) != *(data2 + i))
9502 return 11;
9504 /* Finally, make sure that changes to the mapped area do not
9505 percolate back to the file as seen by read(). (This is a bug on
9506 some variants of i386 svr4.0.) */
9507 for (i = 0; i < pagesize; ++i)
9508 *(data2 + i) = *(data2 + i) + 1;
9509 data3 = (char *) malloc (pagesize);
9510 if (!data3)
9511 return 12;
9512 if (read (fd, data3, pagesize) != pagesize)
9513 return 13;
9514 for (i = 0; i < pagesize; ++i)
9515 if (*(data + i) != *(data3 + i))
9516 return 14;
9517 close (fd);
9518 return 0;
9520 _ACEOF
9521 if ac_fn_c_try_run "$LINENO"; then :
9522 ac_cv_func_mmap_fixed_mapped=yes
9523 else
9524 ac_cv_func_mmap_fixed_mapped=no
9526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9527 conftest.$ac_objext conftest.beam conftest.$ac_ext
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9532 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9533 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9535 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9538 rm -f conftest.mmap conftest.txt
9540 if test $use_mmap_for_buffers = yes; then
9542 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9544 REL_ALLOC=no
9547 LIBS="$LIBS_SYSTEM $LIBS"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9550 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9551 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9553 else
9554 ac_check_lib_save_LIBS=$LIBS
9555 LIBS="-ldnet $LIBS"
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9559 /* Override any GCC internal prototype to avoid an error.
9560 Use char because int might match the return type of a GCC
9561 builtin and then its argument prototype would still apply. */
9562 #ifdef __cplusplus
9563 extern "C"
9564 #endif
9565 char dnet_ntoa ();
9567 main ()
9569 return dnet_ntoa ();
9571 return 0;
9573 _ACEOF
9574 if ac_fn_c_try_link "$LINENO"; then :
9575 ac_cv_lib_dnet_dnet_ntoa=yes
9576 else
9577 ac_cv_lib_dnet_dnet_ntoa=no
9579 rm -f core conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext conftest.$ac_ext
9581 LIBS=$ac_check_lib_save_LIBS
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9584 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9585 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9586 cat >>confdefs.h <<_ACEOF
9587 #define HAVE_LIBDNET 1
9588 _ACEOF
9590 LIBS="-ldnet $LIBS"
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9596 $as_echo_n "checking for main in -lXbsd... " >&6; }
9597 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 ac_check_lib_save_LIBS=$LIBS
9601 LIBS="-lXbsd $LIBS"
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9607 main ()
9609 return main ();
9611 return 0;
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"; then :
9615 ac_cv_lib_Xbsd_main=yes
9616 else
9617 ac_cv_lib_Xbsd_main=no
9619 rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9621 LIBS=$ac_check_lib_save_LIBS
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9624 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9625 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9626 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9631 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9632 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 ac_check_lib_save_LIBS=$LIBS
9636 LIBS="-lpthreads $LIBS"
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 char cma_open ();
9648 main ()
9650 return cma_open ();
9652 return 0;
9654 _ACEOF
9655 if ac_fn_c_try_link "$LINENO"; then :
9656 ac_cv_lib_pthreads_cma_open=yes
9657 else
9658 ac_cv_lib_pthreads_cma_open=no
9660 rm -f core conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9662 LIBS=$ac_check_lib_save_LIBS
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9665 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9666 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9667 cat >>confdefs.h <<_ACEOF
9668 #define HAVE_LIBPTHREADS 1
9669 _ACEOF
9671 LIBS="-lpthreads $LIBS"
9676 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9677 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9678 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9679 ## added to LIBS in configure would never contain the pthreads part,
9680 ## but the value used in Makefiles might. FIXME?
9682 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9683 ## be harmless on older versions of X where it happens to exist.
9684 test "$opsys" = "aix4-2" && \
9685 test $ac_cv_lib_pthreads_cma_open = yes && \
9686 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9689 case ${host_os} in
9690 aix*)
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9692 $as_echo_n "checking for -bbigtoc option... " >&6; }
9693 if test "${gdb_cv_bigtoc+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9697 case $GCC in
9698 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9699 *) gdb_cv_bigtoc=-bbigtoc ;;
9700 esac
9702 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9707 main ()
9709 int i;
9711 return 0;
9713 _ACEOF
9714 if ac_fn_c_try_link "$LINENO"; then :
9716 else
9717 gdb_cv_bigtoc=
9719 rm -f core conftest.err conftest.$ac_objext \
9720 conftest$ac_exeext conftest.$ac_ext
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9724 $as_echo "$gdb_cv_bigtoc" >&6; }
9726 esac
9728 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9729 # used for the tests that follow. We set them back to REAL_CFLAGS and
9730 # REAL_CPPFLAGS later on.
9732 REAL_CFLAGS="$CFLAGS"
9733 REAL_CPPFLAGS="$CPPFLAGS"
9735 if test "${HAVE_X11}" = "yes"; then
9736 DEFS="$C_SWITCH_X_SITE $DEFS"
9737 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9738 LIBS="-lX11 $LIBS"
9739 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9740 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9742 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9743 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9744 # but it's more convenient here to set LD_RUN_PATH
9745 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9746 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9747 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9748 export LD_RUN_PATH
9751 if test "${opsys}" = "gnu-linux"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9753 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9758 main ()
9760 XOpenDisplay ("foo");
9762 return 0;
9764 _ACEOF
9765 if ac_fn_c_try_link "$LINENO"; then :
9766 xlinux_first_failure=no
9767 else
9768 xlinux_first_failure=yes
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 if test "${xlinux_first_failure}" = "yes"; then
9773 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9774 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9775 OLD_CPPFLAGS="$CPPFLAGS"
9776 OLD_LIBS="$LIBS"
9777 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9778 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9779 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9780 LIBS="$LIBS -b i486-linuxaout"
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9785 main ()
9787 XOpenDisplay ("foo");
9789 return 0;
9791 _ACEOF
9792 if ac_fn_c_try_link "$LINENO"; then :
9793 xlinux_second_failure=no
9794 else
9795 xlinux_second_failure=yes
9797 rm -f core conftest.err conftest.$ac_objext \
9798 conftest$ac_exeext conftest.$ac_ext
9799 if test "${xlinux_second_failure}" = "yes"; then
9800 # If we get the same failure with -b, there is no use adding -b.
9801 # So take it out. This plays safe.
9802 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9803 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9804 CPPFLAGS="$OLD_CPPFLAGS"
9805 LIBS="$OLD_LIBS"
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9808 else
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9810 $as_echo "yes" >&6; }
9812 else
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 $as_echo "no" >&6; }
9818 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9819 # header files included from there.
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9821 $as_echo_n "checking for Xkb... " >&6; }
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824 #include <X11/Xlib.h>
9825 #include <X11/XKBlib.h>
9827 main ()
9829 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9831 return 0;
9833 _ACEOF
9834 if ac_fn_c_try_link "$LINENO"; then :
9835 emacs_xkb=yes
9836 else
9837 emacs_xkb=no
9839 rm -f core conftest.err conftest.$ac_objext \
9840 conftest$ac_exeext conftest.$ac_ext
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9842 $as_echo "$emacs_xkb" >&6; }
9843 if test $emacs_xkb = yes; then
9845 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9849 for ac_func in XrmSetDatabase XScreenResourceString \
9850 XScreenNumberOfScreen XSetWMProtocols
9851 do :
9852 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9853 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9854 eval as_val=\$$as_ac_var
9855 if test "x$as_val" = x""yes; then :
9856 cat >>confdefs.h <<_ACEOF
9857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9858 _ACEOF
9861 done
9865 if test "${window_system}" = "x11"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9867 $as_echo_n "checking X11 version 6... " >&6; }
9868 if test "${emacs_cv_x11_version_6+set}" = set; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9873 #include <X11/Xlib.h>
9875 main ()
9877 #if XlibSpecificationRelease < 6
9878 fail;
9879 #endif
9882 return 0;
9884 _ACEOF
9885 if ac_fn_c_try_link "$LINENO"; then :
9886 emacs_cv_x11_version_6=yes
9887 else
9888 emacs_cv_x11_version_6=no
9890 rm -f core conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9894 if test $emacs_cv_x11_version_6 = yes; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9896 $as_echo "6 or newer" >&6; }
9898 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9901 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9903 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9904 ## XIM support.
9905 case "$opsys" in
9906 sol2-*) : ;;
9908 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9911 esac
9912 else
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9914 $as_echo "before 6" >&6; }
9919 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9920 HAVE_RSVG=no
9921 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9922 if test "${with_rsvg}" != "no"; then
9923 RSVG_REQUIRED=2.11.0
9924 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9927 succeeded=no
9929 # Extract the first word of "pkg-config", so it can be a program name with args.
9930 set dummy pkg-config; ac_word=$2
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932 $as_echo_n "checking for $ac_word... " >&6; }
9933 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 case $PKG_CONFIG in
9937 [\\/]* | ?:[\\/]*)
9938 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9942 for as_dir in $PATH
9944 IFS=$as_save_IFS
9945 test -z "$as_dir" && as_dir=.
9946 for ac_exec_ext in '' $ac_executable_extensions; do
9947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950 break 2
9952 done
9953 done
9954 IFS=$as_save_IFS
9956 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9958 esac
9960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9961 if test -n "$PKG_CONFIG"; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9963 $as_echo "$PKG_CONFIG" >&6; }
9964 else
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9971 if test "$PKG_CONFIG" = "no" ; then
9973 else
9974 PKG_CONFIG_MIN_VERSION=0.9.0
9975 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9977 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9979 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9981 $as_echo "yes" >&6; }
9982 succeeded=yes
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9985 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9986 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9988 $as_echo "$RSVG_CFLAGS" >&6; }
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9991 $as_echo_n "checking RSVG_LIBS... " >&6; }
9992 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9994 $as_echo "$RSVG_LIBS" >&6; }
9995 else
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
9998 RSVG_CFLAGS=""
9999 RSVG_LIBS=""
10000 ## If we have a custom action on failure, don't print errors, but
10001 ## do set a variable so people can do so.
10002 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10008 else
10009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10014 if test $succeeded = yes; then
10015 HAVE_RSVG=yes
10016 else
10023 if test $HAVE_RSVG = yes; then
10025 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10027 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10028 LIBS="$RSVG_LIBS $LIBS"
10033 HAVE_IMAGEMAGICK=no
10034 if test "${HAVE_X11}" = "yes"; then
10035 if test "${with_imagemagick}" != "no"; then
10036 IMAGEMAGICK_MODULE="Wand"
10038 succeeded=no
10040 # Extract the first word of "pkg-config", so it can be a program name with args.
10041 set dummy pkg-config; ac_word=$2
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 case $PKG_CONFIG in
10048 [\\/]* | ?:[\\/]*)
10049 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10059 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 break 2
10063 done
10064 done
10065 IFS=$as_save_IFS
10067 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10069 esac
10071 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10072 if test -n "$PKG_CONFIG"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10074 $as_echo "$PKG_CONFIG" >&6; }
10075 else
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10082 if test "$PKG_CONFIG" = "no" ; then
10084 else
10085 PKG_CONFIG_MIN_VERSION=0.9.0
10086 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10088 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10090 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10092 $as_echo "yes" >&6; }
10093 succeeded=yes
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10096 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10097 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10099 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10102 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10103 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10105 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10106 else
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10109 IMAGEMAGICK_CFLAGS=""
10110 IMAGEMAGICK_LIBS=""
10111 ## If we have a custom action on failure, don't print errors, but
10112 ## do set a variable so people can do so.
10113 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10119 else
10120 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10121 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10125 if test $succeeded = yes; then
10126 HAVE_IMAGEMAGICK=yes
10127 else
10134 if test $HAVE_IMAGEMAGICK = yes; then
10136 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10138 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10139 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10140 for ac_func in MagickExportImagePixels
10141 do :
10142 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10143 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10144 cat >>confdefs.h <<_ACEOF
10145 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10146 _ACEOF
10149 done
10156 HAVE_GTK=no
10157 if test "${with_gtk3}" = "yes"; then
10158 GLIB_REQUIRED=2.28
10159 GTK_REQUIRED=3.0
10160 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10163 succeeded=no
10165 # Extract the first word of "pkg-config", so it can be a program name with args.
10166 set dummy pkg-config; ac_word=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 case $PKG_CONFIG in
10173 [\\/]* | ?:[\\/]*)
10174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178 for as_dir in $PATH
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
10182 for ac_exec_ext in '' $ac_executable_extensions; do
10183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10186 break 2
10188 done
10189 done
10190 IFS=$as_save_IFS
10192 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10194 esac
10196 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10197 if test -n "$PKG_CONFIG"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10199 $as_echo "$PKG_CONFIG" >&6; }
10200 else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10207 if test "$PKG_CONFIG" = "no" ; then
10208 pkg_check_gtk=no
10209 else
10210 PKG_CONFIG_MIN_VERSION=0.9.0
10211 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10213 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10215 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10217 $as_echo "yes" >&6; }
10218 succeeded=yes
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10221 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10222 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10224 $as_echo "$GTK_CFLAGS" >&6; }
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10227 $as_echo_n "checking GTK_LIBS... " >&6; }
10228 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10230 $as_echo "$GTK_LIBS" >&6; }
10231 else
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10234 GTK_CFLAGS=""
10235 GTK_LIBS=""
10236 ## If we have a custom action on failure, don't print errors, but
10237 ## do set a variable so people can do so.
10238 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10244 else
10245 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10246 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10250 if test $succeeded = yes; then
10251 pkg_check_gtk=yes
10252 else
10253 pkg_check_gtk=no
10256 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10257 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10260 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10264 if test "$pkg_check_gtk" != "yes"; then
10265 HAVE_GTK=no
10266 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10267 GLIB_REQUIRED=2.6
10268 GTK_REQUIRED=2.6
10269 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10272 succeeded=no
10274 # Extract the first word of "pkg-config", so it can be a program name with args.
10275 set dummy pkg-config; ac_word=$2
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277 $as_echo_n "checking for $ac_word... " >&6; }
10278 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10279 $as_echo_n "(cached) " >&6
10280 else
10281 case $PKG_CONFIG in
10282 [\\/]* | ?:[\\/]*)
10283 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 break 2
10297 done
10298 done
10299 IFS=$as_save_IFS
10301 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10303 esac
10305 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10306 if test -n "$PKG_CONFIG"; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10308 $as_echo "$PKG_CONFIG" >&6; }
10309 else
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; }
10316 if test "$PKG_CONFIG" = "no" ; then
10317 pkg_check_gtk=no
10318 else
10319 PKG_CONFIG_MIN_VERSION=0.9.0
10320 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10322 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10324 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10326 $as_echo "yes" >&6; }
10327 succeeded=yes
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10330 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10331 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10333 $as_echo "$GTK_CFLAGS" >&6; }
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10336 $as_echo_n "checking GTK_LIBS... " >&6; }
10337 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10339 $as_echo "$GTK_LIBS" >&6; }
10340 else
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; }
10343 GTK_CFLAGS=""
10344 GTK_LIBS=""
10345 ## If we have a custom action on failure, don't print errors, but
10346 ## do set a variable so people can do so.
10347 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10353 else
10354 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10355 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10359 if test $succeeded = yes; then
10360 pkg_check_gtk=yes
10361 else
10362 pkg_check_gtk=no
10365 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10366 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10371 GTK_OBJ=
10372 if test x"$pkg_check_gtk" = xyes; then
10376 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10377 CFLAGS="$CFLAGS $GTK_CFLAGS"
10378 LIBS="$GTK_LIBS $LIBS"
10379 GTK_COMPILES=no
10380 for ac_func in gtk_main
10381 do :
10382 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10383 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10384 cat >>confdefs.h <<_ACEOF
10385 #define HAVE_GTK_MAIN 1
10386 _ACEOF
10387 GTK_COMPILES=yes
10389 done
10391 if test "${GTK_COMPILES}" != "yes"; then
10392 if test "$USE_X_TOOLKIT" != "maybe"; then
10393 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10395 else
10396 HAVE_GTK=yes
10398 $as_echo "#define USE_GTK 1" >>confdefs.h
10400 GTK_OBJ=gtkutil.o
10401 USE_X_TOOLKIT=none
10402 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10406 closing open displays. This is no problem if you just use
10407 one display, but if you use more than one and close one of them
10408 Emacs may crash." >&5
10409 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10410 closing open displays. This is no problem if you just use
10411 one display, but if you use more than one and close one of them
10412 Emacs may crash." >&2;}
10413 sleep 3
10421 if test "${HAVE_GTK}" = "yes"; then
10423 if test "$with_toolkit_scroll_bars" != no; then
10424 with_toolkit_scroll_bars=yes
10427 HAVE_GTK_FILE_SELECTION=no
10428 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10429 #include <gtk/gtk.h>
10431 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10432 HAVE_GTK_FILE_SELECTION=yes
10433 else
10434 HAVE_GTK_FILE_SELECTION=no
10437 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10438 for ac_func in gtk_file_selection_new
10439 do :
10440 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10441 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10442 cat >>confdefs.h <<_ACEOF
10443 #define HAVE_GTK_FILE_SELECTION_NEW 1
10444 _ACEOF
10447 done
10451 HAVE_GTK_AND_PTHREAD=no
10452 for ac_header in pthread.h
10453 do :
10454 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10455 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10456 cat >>confdefs.h <<_ACEOF
10457 #define HAVE_PTHREAD_H 1
10458 _ACEOF
10462 done
10464 if test "$ac_cv_header_pthread_h"; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10466 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10467 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 ac_check_lib_save_LIBS=$LIBS
10471 LIBS="-lpthread $LIBS"
10472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10475 /* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10478 #ifdef __cplusplus
10479 extern "C"
10480 #endif
10481 char pthread_self ();
10483 main ()
10485 return pthread_self ();
10487 return 0;
10489 _ACEOF
10490 if ac_fn_c_try_link "$LINENO"; then :
10491 ac_cv_lib_pthread_pthread_self=yes
10492 else
10493 ac_cv_lib_pthread_pthread_self=no
10495 rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LIBS=$ac_check_lib_save_LIBS
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10500 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10501 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10502 HAVE_GTK_AND_PTHREAD=yes
10506 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10507 case "${canonical}" in
10508 *-hpux*) ;;
10509 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10510 esac
10512 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10516 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10517 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10518 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10519 gtk_orientable_set_orientation
10520 do :
10521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10522 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10523 eval as_val=\$$as_ac_var
10524 if test "x$as_val" = x""yes; then :
10525 cat >>confdefs.h <<_ACEOF
10526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10527 _ACEOF
10530 done
10535 HAVE_DBUS=no
10536 DBUS_OBJ=
10537 if test "${with_dbus}" = "yes"; then
10539 succeeded=no
10541 # Extract the first word of "pkg-config", so it can be a program name with args.
10542 set dummy pkg-config; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 $as_echo_n "checking for $ac_word... " >&6; }
10545 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 case $PKG_CONFIG in
10549 [\\/]* | ?:[\\/]*)
10550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554 for as_dir in $PATH
10556 IFS=$as_save_IFS
10557 test -z "$as_dir" && as_dir=.
10558 for ac_exec_ext in '' $ac_executable_extensions; do
10559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 break 2
10564 done
10565 done
10566 IFS=$as_save_IFS
10568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10570 esac
10572 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10573 if test -n "$PKG_CONFIG"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10575 $as_echo "$PKG_CONFIG" >&6; }
10576 else
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }
10583 if test "$PKG_CONFIG" = "no" ; then
10584 HAVE_DBUS=no
10585 else
10586 PKG_CONFIG_MIN_VERSION=0.9.0
10587 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10589 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10591 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10593 $as_echo "yes" >&6; }
10594 succeeded=yes
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10597 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10598 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10600 $as_echo "$DBUS_CFLAGS" >&6; }
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10603 $as_echo_n "checking DBUS_LIBS... " >&6; }
10604 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10606 $as_echo "$DBUS_LIBS" >&6; }
10607 else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 DBUS_CFLAGS=""
10611 DBUS_LIBS=""
10612 ## If we have a custom action on failure, don't print errors, but
10613 ## do set a variable so people can do so.
10614 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10620 else
10621 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10622 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10626 if test $succeeded = yes; then
10627 HAVE_DBUS=yes
10628 else
10629 HAVE_DBUS=no
10632 if test "$HAVE_DBUS" = yes; then
10633 LIBS="$LIBS $DBUS_LIBS"
10635 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10637 for ac_func in dbus_watch_get_unix_fd
10638 do :
10639 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10640 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10641 cat >>confdefs.h <<_ACEOF
10642 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10643 _ACEOF
10646 done
10648 DBUS_OBJ=dbusbind.o
10653 HAVE_GCONF=no
10654 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10656 succeeded=no
10658 # Extract the first word of "pkg-config", so it can be a program name with args.
10659 set dummy pkg-config; ac_word=$2
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661 $as_echo_n "checking for $ac_word... " >&6; }
10662 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 case $PKG_CONFIG in
10666 [\\/]* | ?:[\\/]*)
10667 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10677 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10681 done
10682 done
10683 IFS=$as_save_IFS
10685 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10687 esac
10689 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10690 if test -n "$PKG_CONFIG"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10692 $as_echo "$PKG_CONFIG" >&6; }
10693 else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10700 if test "$PKG_CONFIG" = "no" ; then
10701 HAVE_GCONF=no
10702 else
10703 PKG_CONFIG_MIN_VERSION=0.9.0
10704 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10706 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10708 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10710 $as_echo "yes" >&6; }
10711 succeeded=yes
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10714 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10715 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10717 $as_echo "$GCONF_CFLAGS" >&6; }
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10720 $as_echo_n "checking GCONF_LIBS... " >&6; }
10721 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10723 $as_echo "$GCONF_LIBS" >&6; }
10724 else
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726 $as_echo "no" >&6; }
10727 GCONF_CFLAGS=""
10728 GCONF_LIBS=""
10729 ## If we have a custom action on failure, don't print errors, but
10730 ## do set a variable so people can do so.
10731 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10737 else
10738 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10739 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10743 if test $succeeded = yes; then
10744 HAVE_GCONF=yes
10745 else
10746 HAVE_GCONF=no
10749 if test "$HAVE_GCONF" = yes; then
10751 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10753 for ac_func in g_type_init
10754 do :
10755 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10756 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10757 cat >>confdefs.h <<_ACEOF
10758 #define HAVE_G_TYPE_INIT 1
10759 _ACEOF
10762 done
10767 HAVE_LIBSELINUX=no
10768 LIBSELINUX_LIBS=
10769 if test "${with_selinux}" = "yes"; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10771 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10772 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10775 ac_check_lib_save_LIBS=$LIBS
10776 LIBS="-lselinux $LIBS"
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10780 /* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10783 #ifdef __cplusplus
10784 extern "C"
10785 #endif
10786 char lgetfilecon ();
10788 main ()
10790 return lgetfilecon ();
10792 return 0;
10794 _ACEOF
10795 if ac_fn_c_try_link "$LINENO"; then :
10796 ac_cv_lib_selinux_lgetfilecon=yes
10797 else
10798 ac_cv_lib_selinux_lgetfilecon=no
10800 rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10805 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10806 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10807 HAVE_LIBSELINUX=yes
10808 else
10809 HAVE_LIBSELINUX=no
10812 if test "$HAVE_LIBSELINUX" = yes; then
10814 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10816 LIBSELINUX_LIBS=-lselinux
10821 HAVE_GNUTLS=no
10822 if test "${with_gnutls}" = "yes" ; then
10824 succeeded=no
10826 # Extract the first word of "pkg-config", so it can be a program name with args.
10827 set dummy pkg-config; ac_word=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829 $as_echo_n "checking for $ac_word... " >&6; }
10830 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 case $PKG_CONFIG in
10834 [\\/]* | ?:[\\/]*)
10835 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10849 done
10850 done
10851 IFS=$as_save_IFS
10853 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10855 esac
10857 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10858 if test -n "$PKG_CONFIG"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10860 $as_echo "$PKG_CONFIG" >&6; }
10861 else
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10868 if test "$PKG_CONFIG" = "no" ; then
10869 HAVE_GNUTLS=no
10870 else
10871 PKG_CONFIG_MIN_VERSION=0.9.0
10872 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10874 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10876 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10878 $as_echo "yes" >&6; }
10879 succeeded=yes
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10882 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10883 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10885 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10888 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10889 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10891 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10892 else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10895 LIBGNUTLS_CFLAGS=""
10896 LIBGNUTLS_LIBS=""
10897 ## If we have a custom action on failure, don't print errors, but
10898 ## do set a variable so people can do so.
10899 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10905 else
10906 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10907 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10911 if test $succeeded = yes; then
10912 HAVE_GNUTLS=yes
10913 else
10914 HAVE_GNUTLS=no
10917 if test "${HAVE_GNUTLS}" = "yes"; then
10919 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10926 HAVE_XAW3D=no
10927 LUCID_LIBW=
10928 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10929 if test "$with_xaw3d" != no; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10931 $as_echo_n "checking for xaw3d... " >&6; }
10932 if test "${emacs_cv_xaw3d+set}" = set; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10938 #include <X11/Intrinsic.h>
10939 #include <X11/Xaw3d/Simple.h>
10941 main ()
10945 return 0;
10947 _ACEOF
10948 if ac_fn_c_try_link "$LINENO"; then :
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10950 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10951 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 ac_check_lib_save_LIBS=$LIBS
10955 LIBS="-lXaw3d $LIBS"
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10959 /* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 char XawScrollbarSetThumb ();
10967 main ()
10969 return XawScrollbarSetThumb ();
10971 return 0;
10973 _ACEOF
10974 if ac_fn_c_try_link "$LINENO"; then :
10975 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10976 else
10977 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10979 rm -f core conftest.err conftest.$ac_objext \
10980 conftest$ac_exeext conftest.$ac_ext
10981 LIBS=$ac_check_lib_save_LIBS
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10984 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10985 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
10986 emacs_cv_xaw3d=yes
10987 else
10988 emacs_cv_xaw3d=no
10991 else
10992 emacs_cv_xaw3d=no
10994 rm -f core conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
10998 else
10999 emacs_cv_xaw3d=no
11001 if test $emacs_cv_xaw3d = yes; then
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11003 $as_echo "yes; using Lucid toolkit" >&6; }
11004 USE_X_TOOLKIT=LUCID
11005 HAVE_XAW3D=yes
11006 LUCID_LIBW=-lXaw3d
11008 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11010 else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 $as_echo "no" >&6; }
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11014 $as_echo_n "checking for libXaw... " >&6; }
11015 if test "${emacs_cv_xaw+set}" = set; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11021 #include <X11/Intrinsic.h>
11022 #include <X11/Xaw/Simple.h>
11024 main ()
11028 return 0;
11030 _ACEOF
11031 if ac_fn_c_try_link "$LINENO"; then :
11032 emacs_cv_xaw=yes
11033 else
11034 emacs_cv_xaw=no
11036 rm -f core conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11040 if test $emacs_cv_xaw = yes; then
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11042 $as_echo "yes; using Lucid toolkit" >&6; }
11043 USE_X_TOOLKIT=LUCID
11044 LUCID_LIBW=-lXaw
11045 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11046 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11049 $as_echo "no; do not use toolkit by default" >&6; }
11050 USE_X_TOOLKIT=none
11055 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11057 LIBXTR6=
11058 if test "${USE_X_TOOLKIT}" != "none"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11060 $as_echo_n "checking X11 toolkit version... " >&6; }
11061 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066 #include <X11/Intrinsic.h>
11068 main ()
11070 #if XtSpecificationRelease < 6
11071 fail;
11072 #endif
11075 return 0;
11077 _ACEOF
11078 if ac_fn_c_try_link "$LINENO"; then :
11079 emacs_cv_x11_toolkit_version_6=yes
11080 else
11081 emacs_cv_x11_toolkit_version_6=no
11083 rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11087 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11088 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11090 $as_echo "6 or newer" >&6; }
11092 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11094 LIBXTR6="-lSM -lICE"
11095 case "$opsys" in
11096 ## Use libw.a along with X11R6 Xt.
11097 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11098 esac
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11101 $as_echo "before 6" >&6; }
11104 OLDLIBS="$LIBS"
11105 if test x$HAVE_X11XTR6 = xyes; then
11106 LIBS="-lXt -lSM -lICE $LIBS"
11107 else
11108 LIBS="-lXt $LIBS"
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11111 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11112 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 ac_check_lib_save_LIBS=$LIBS
11116 LIBS="-lXmu $LIBS"
11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11120 /* Override any GCC internal prototype to avoid an error.
11121 Use char because int might match the return type of a GCC
11122 builtin and then its argument prototype would still apply. */
11123 #ifdef __cplusplus
11124 extern "C"
11125 #endif
11126 char XmuConvertStandardSelection ();
11128 main ()
11130 return XmuConvertStandardSelection ();
11132 return 0;
11134 _ACEOF
11135 if ac_fn_c_try_link "$LINENO"; then :
11136 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11137 else
11138 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11140 rm -f core conftest.err conftest.$ac_objext \
11141 conftest$ac_exeext conftest.$ac_ext
11142 LIBS=$ac_check_lib_save_LIBS
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11145 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11146 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11147 cat >>confdefs.h <<_ACEOF
11148 #define HAVE_LIBXMU 1
11149 _ACEOF
11151 LIBS="-lXmu $LIBS"
11155 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11159 LIBXMU=-lXmu
11160 case $opsys in
11161 ## These systems don't supply Xmu.
11162 hpux* | aix4-2 )
11163 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11165 esac
11168 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11169 if test "${HAVE_X11}" = "yes"; then
11170 if test "${USE_X_TOOLKIT}" != "none"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11172 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11173 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 ac_check_lib_save_LIBS=$LIBS
11177 LIBS="-lXext $LIBS"
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11181 /* Override any GCC internal prototype to avoid an error.
11182 Use char because int might match the return type of a GCC
11183 builtin and then its argument prototype would still apply. */
11184 #ifdef __cplusplus
11185 extern "C"
11186 #endif
11187 char XShapeQueryExtension ();
11189 main ()
11191 return XShapeQueryExtension ();
11193 return 0;
11195 _ACEOF
11196 if ac_fn_c_try_link "$LINENO"; then :
11197 ac_cv_lib_Xext_XShapeQueryExtension=yes
11198 else
11199 ac_cv_lib_Xext_XShapeQueryExtension=no
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_lib_save_LIBS
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11206 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11207 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11208 cat >>confdefs.h <<_ACEOF
11209 #define HAVE_LIBXEXT 1
11210 _ACEOF
11212 LIBS="-lXext $LIBS"
11219 LIBXP=
11220 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11222 $as_echo_n "checking for Motif version 2.1... " >&6; }
11223 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 #include <Xm/Xm.h>
11230 main ()
11232 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11233 int x = 5;
11234 #else
11235 Motif version prior to 2.1.
11236 #endif
11238 return 0;
11240 _ACEOF
11241 if ac_fn_c_try_compile "$LINENO"; then :
11242 emacs_cv_motif_version_2_1=yes
11243 else
11244 emacs_cv_motif_version_2_1=no
11246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11249 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11250 if test $emacs_cv_motif_version_2_1 = yes; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11252 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11253 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 ac_check_lib_save_LIBS=$LIBS
11257 LIBS="-lXp $LIBS"
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11261 /* Override any GCC internal prototype to avoid an error.
11262 Use char because int might match the return type of a GCC
11263 builtin and then its argument prototype would still apply. */
11264 #ifdef __cplusplus
11265 extern "C"
11266 #endif
11267 char XpCreateContext ();
11269 main ()
11271 return XpCreateContext ();
11273 return 0;
11275 _ACEOF
11276 if ac_fn_c_try_link "$LINENO"; then :
11277 ac_cv_lib_Xp_XpCreateContext=yes
11278 else
11279 ac_cv_lib_Xp_XpCreateContext=no
11281 rm -f core conftest.err conftest.$ac_objext \
11282 conftest$ac_exeext conftest.$ac_ext
11283 LIBS=$ac_check_lib_save_LIBS
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11286 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11287 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11288 LIBXP=-lXp
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11293 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11294 if test "${emacs_cv_lesstif+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 # We put this in CFLAGS temporarily to precede other -I options
11298 # that might be in CFLAGS temporarily.
11299 # We put this in CPPFLAGS where it precedes the other -I options.
11300 OLD_CPPFLAGS=$CPPFLAGS
11301 OLD_CFLAGS=$CFLAGS
11302 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11303 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11306 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11308 main ()
11310 int x = 5;
11312 return 0;
11314 _ACEOF
11315 if ac_fn_c_try_compile "$LINENO"; then :
11316 emacs_cv_lesstif=yes
11317 else
11318 emacs_cv_lesstif=no
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11323 $as_echo "$emacs_cv_lesstif" >&6; }
11324 if test $emacs_cv_lesstif = yes; then
11325 # Make sure this -I option remains in CPPFLAGS after it is set
11326 # back to REAL_CPPFLAGS.
11327 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11328 # have those other -I options anyway. Ultimately, having this
11329 # directory ultimately in CPPFLAGS will be enough.
11330 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11331 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11332 else
11333 CFLAGS=$OLD_CFLAGS
11334 CPPFLAGS=$OLD_CPPFLAGS
11340 USE_TOOLKIT_SCROLL_BARS=no
11341 if test "${with_toolkit_scroll_bars}" != "no"; then
11342 if test "${USE_X_TOOLKIT}" != "none"; then
11343 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11344 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11346 HAVE_XAW3D=no
11347 USE_TOOLKIT_SCROLL_BARS=yes
11348 elif test "${HAVE_XAW3D}" = "yes"; then
11349 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11351 USE_TOOLKIT_SCROLL_BARS=yes
11353 elif test "${HAVE_GTK}" = "yes"; then
11354 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11356 USE_TOOLKIT_SCROLL_BARS=yes
11357 elif test "${HAVE_NS}" = "yes"; then
11358 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11360 USE_TOOLKIT_SCROLL_BARS=yes
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11367 #include <X11/Xlib.h>
11368 #include <X11/Xresource.h>
11370 main ()
11372 XIMProc callback;
11374 return 0;
11376 _ACEOF
11377 if ac_fn_c_try_compile "$LINENO"; then :
11378 HAVE_XIM=yes
11380 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11382 else
11383 HAVE_XIM=no
11385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388 if test "${with_xim}" != "no"; then
11390 $as_echo "#define USE_XIM 1" >>confdefs.h
11395 if test "${HAVE_XIM}" != "no"; then
11396 late_CFLAGS=$CFLAGS
11397 if test "$GCC" = yes; then
11398 CFLAGS="$CFLAGS --pedantic-errors"
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11403 #include <X11/Xlib.h>
11404 #include <X11/Xresource.h>
11406 main ()
11408 Display *display;
11409 XrmDatabase db;
11410 char *res_name;
11411 char *res_class;
11412 XIMProc callback;
11413 XPointer *client_data;
11414 #ifndef __GNUC__
11415 /* If we're not using GCC, it's probably not XFree86, and this is
11416 probably right, but we can't use something like --pedantic-errors. */
11417 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11418 char*, XIMProc, XPointer*);
11419 #endif
11420 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11421 client_data);
11423 return 0;
11425 _ACEOF
11426 if ac_fn_c_try_compile "$LINENO"; then :
11427 emacs_cv_arg6_star=yes
11429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11430 if test "$emacs_cv_arg6_star" = yes; then
11431 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11433 else
11434 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11437 CFLAGS=$late_CFLAGS
11440 ### Start of font-backend (under any platform) section.
11441 # (nothing here yet -- this is a placeholder)
11442 ### End of font-backend (under any platform) section.
11444 ### Start of font-backend (under X11) section.
11445 if test "${HAVE_X11}" = "yes"; then
11447 succeeded=no
11449 # Extract the first word of "pkg-config", so it can be a program name with args.
11450 set dummy pkg-config; ac_word=$2
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11452 $as_echo_n "checking for $ac_word... " >&6; }
11453 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 case $PKG_CONFIG in
11457 [\\/]* | ?:[\\/]*)
11458 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11472 done
11473 done
11474 IFS=$as_save_IFS
11476 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11478 esac
11480 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11481 if test -n "$PKG_CONFIG"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11483 $as_echo "$PKG_CONFIG" >&6; }
11484 else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11491 if test "$PKG_CONFIG" = "no" ; then
11492 HAVE_FC=no
11493 else
11494 PKG_CONFIG_MIN_VERSION=0.9.0
11495 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11497 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11499 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11501 $as_echo "yes" >&6; }
11502 succeeded=yes
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11505 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11506 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11508 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11511 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11512 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11514 $as_echo "$FONTCONFIG_LIBS" >&6; }
11515 else
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517 $as_echo "no" >&6; }
11518 FONTCONFIG_CFLAGS=""
11519 FONTCONFIG_LIBS=""
11520 ## If we have a custom action on failure, don't print errors, but
11521 ## do set a variable so people can do so.
11522 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11528 else
11529 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11530 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11534 if test $succeeded = yes; then
11535 HAVE_FC=yes
11536 else
11537 HAVE_FC=no
11541 ## Use -lXft if available, unless `--with-xft=no'.
11542 HAVE_XFT=maybe
11543 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11544 with_xft="no";
11546 if test "x${with_xft}" != "xno"; then
11549 succeeded=no
11551 # Extract the first word of "pkg-config", so it can be a program name with args.
11552 set dummy pkg-config; ac_word=$2
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11554 $as_echo_n "checking for $ac_word... " >&6; }
11555 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 case $PKG_CONFIG in
11559 [\\/]* | ?:[\\/]*)
11560 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11570 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11574 done
11575 done
11576 IFS=$as_save_IFS
11578 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11580 esac
11582 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11583 if test -n "$PKG_CONFIG"; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11585 $as_echo "$PKG_CONFIG" >&6; }
11586 else
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 $as_echo "no" >&6; }
11593 if test "$PKG_CONFIG" = "no" ; then
11594 HAVE_XFT=no
11595 else
11596 PKG_CONFIG_MIN_VERSION=0.9.0
11597 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11599 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11601 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11603 $as_echo "yes" >&6; }
11604 succeeded=yes
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11607 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11608 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11610 $as_echo "$XFT_CFLAGS" >&6; }
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11613 $as_echo_n "checking XFT_LIBS... " >&6; }
11614 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11616 $as_echo "$XFT_LIBS" >&6; }
11617 else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11620 XFT_CFLAGS=""
11621 XFT_LIBS=""
11622 ## If we have a custom action on failure, don't print errors, but
11623 ## do set a variable so people can do so.
11624 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11630 else
11631 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11632 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11636 if test $succeeded = yes; then
11638 else
11639 HAVE_XFT=no
11642 ## Because xftfont.c uses XRenderQueryExtension, we also
11643 ## need to link to -lXrender.
11644 HAVE_XRENDER=no
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11646 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11647 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 ac_check_lib_save_LIBS=$LIBS
11651 LIBS="-lXrender $LIBS"
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11655 /* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11658 #ifdef __cplusplus
11659 extern "C"
11660 #endif
11661 char XRenderQueryExtension ();
11663 main ()
11665 return XRenderQueryExtension ();
11667 return 0;
11669 _ACEOF
11670 if ac_fn_c_try_link "$LINENO"; then :
11671 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11672 else
11673 ac_cv_lib_Xrender_XRenderQueryExtension=no
11675 rm -f core conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11677 LIBS=$ac_check_lib_save_LIBS
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11680 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11681 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11682 HAVE_XRENDER=yes
11685 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11686 OLD_CPPFLAGS="$CPPFLAGS"
11687 OLD_CFLAGS="$CFLAGS"
11688 OLD_LIBS="$LIBS"
11689 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11690 CFLAGS="$CFLAGS $XFT_CFLAGS"
11691 XFT_LIBS="-lXrender $XFT_LIBS"
11692 LIBS="$XFT_LIBS $LIBS"
11693 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11694 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11696 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11697 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 ac_check_lib_save_LIBS=$LIBS
11701 LIBS="-lXft $XFT_LIBS $LIBS"
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11705 /* Override any GCC internal prototype to avoid an error.
11706 Use char because int might match the return type of a GCC
11707 builtin and then its argument prototype would still apply. */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 char XftFontOpen ();
11713 main ()
11715 return XftFontOpen ();
11717 return 0;
11719 _ACEOF
11720 if ac_fn_c_try_link "$LINENO"; then :
11721 ac_cv_lib_Xft_XftFontOpen=yes
11722 else
11723 ac_cv_lib_Xft_XftFontOpen=no
11725 rm -f core conftest.err conftest.$ac_objext \
11726 conftest$ac_exeext conftest.$ac_ext
11727 LIBS=$ac_check_lib_save_LIBS
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11730 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11731 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11732 HAVE_XFT=yes
11739 if test "${HAVE_XFT}" = "yes"; then
11741 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11744 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11745 else
11746 CPPFLAGS="$OLD_CPPFLAGS"
11747 CFLAGS="$OLD_CFLAGS"
11748 LIBS="$OLD_LIBS"
11749 fi # "${HAVE_XFT}" = "yes"
11750 fi # "$HAVE_XFT" != no
11751 fi # "x${with_xft}" != "xno"
11753 ## We used to allow building with FreeType and without Xft.
11754 ## However, the ftx font backend driver is not in good shape.
11755 if test "$HAVE_XFT" != "yes"; then
11756 HAVE_XFT=no
11757 HAVE_FREETYPE=no
11758 else
11760 succeeded=no
11762 # Extract the first word of "pkg-config", so it can be a program name with args.
11763 set dummy pkg-config; ac_word=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 case $PKG_CONFIG in
11770 [\\/]* | ?:[\\/]*)
11771 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11781 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 break 2
11785 done
11786 done
11787 IFS=$as_save_IFS
11789 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11791 esac
11793 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11794 if test -n "$PKG_CONFIG"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11796 $as_echo "$PKG_CONFIG" >&6; }
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11804 if test "$PKG_CONFIG" = "no" ; then
11805 HAVE_FREETYPE=no
11806 else
11807 PKG_CONFIG_MIN_VERSION=0.9.0
11808 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11810 $as_echo_n "checking for freetype2... " >&6; }
11812 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11814 $as_echo "yes" >&6; }
11815 succeeded=yes
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11818 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11819 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11821 $as_echo "$FREETYPE_CFLAGS" >&6; }
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11824 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11825 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11827 $as_echo "$FREETYPE_LIBS" >&6; }
11828 else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11831 FREETYPE_CFLAGS=""
11832 FREETYPE_LIBS=""
11833 ## If we have a custom action on failure, don't print errors, but
11834 ## do set a variable so people can do so.
11835 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11841 else
11842 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11843 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11847 if test $succeeded = yes; then
11848 HAVE_FREETYPE=yes
11849 else
11850 HAVE_FREETYPE=no
11854 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11857 HAVE_LIBOTF=no
11858 if test "${HAVE_FREETYPE}" = "yes"; then
11860 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11862 if test "${with_libotf}" != "no"; then
11864 succeeded=no
11866 # Extract the first word of "pkg-config", so it can be a program name with args.
11867 set dummy pkg-config; ac_word=$2
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869 $as_echo_n "checking for $ac_word... " >&6; }
11870 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 case $PKG_CONFIG in
11874 [\\/]* | ?:[\\/]*)
11875 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879 for as_dir in $PATH
11881 IFS=$as_save_IFS
11882 test -z "$as_dir" && as_dir=.
11883 for ac_exec_ext in '' $ac_executable_extensions; do
11884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11885 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 break 2
11889 done
11890 done
11891 IFS=$as_save_IFS
11893 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11895 esac
11897 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11898 if test -n "$PKG_CONFIG"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11900 $as_echo "$PKG_CONFIG" >&6; }
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11908 if test "$PKG_CONFIG" = "no" ; then
11909 HAVE_LIBOTF=no
11910 else
11911 PKG_CONFIG_MIN_VERSION=0.9.0
11912 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11914 $as_echo_n "checking for libotf... " >&6; }
11916 if $PKG_CONFIG --exists "libotf" 2>&5; then
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11918 $as_echo "yes" >&6; }
11919 succeeded=yes
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11922 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11923 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11925 $as_echo "$LIBOTF_CFLAGS" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11928 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11929 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11931 $as_echo "$LIBOTF_LIBS" >&6; }
11932 else
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11935 LIBOTF_CFLAGS=""
11936 LIBOTF_LIBS=""
11937 ## If we have a custom action on failure, don't print errors, but
11938 ## do set a variable so people can do so.
11939 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11945 else
11946 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11947 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11951 if test $succeeded = yes; then
11952 HAVE_LIBOTF=yes
11953 else
11954 HAVE_LIBOTF=no
11957 if test "$HAVE_LIBOTF" = "yes"; then
11959 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11962 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11963 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
11965 else
11966 ac_check_lib_save_LIBS=$LIBS
11967 LIBS="-lotf $LIBS"
11968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11971 /* Override any GCC internal prototype to avoid an error.
11972 Use char because int might match the return type of a GCC
11973 builtin and then its argument prototype would still apply. */
11974 #ifdef __cplusplus
11975 extern "C"
11976 #endif
11977 char OTF_get_variation_glyphs ();
11979 main ()
11981 return OTF_get_variation_glyphs ();
11983 return 0;
11985 _ACEOF
11986 if ac_fn_c_try_link "$LINENO"; then :
11987 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11988 else
11989 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11991 rm -f core conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11996 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11997 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11998 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11999 else
12000 HAVE_OTF_GET_VARIATION_GLYPHS=no
12003 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12005 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12012 HAVE_M17N_FLT=no
12013 if test "${HAVE_LIBOTF}" = yes; then
12014 if test "${with_m17n_flt}" != "no"; then
12016 succeeded=no
12018 # Extract the first word of "pkg-config", so it can be a program name with args.
12019 set dummy pkg-config; ac_word=$2
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021 $as_echo_n "checking for $ac_word... " >&6; }
12022 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 case $PKG_CONFIG in
12026 [\\/]* | ?:[\\/]*)
12027 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12037 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12039 break 2
12041 done
12042 done
12043 IFS=$as_save_IFS
12045 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12047 esac
12049 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12050 if test -n "$PKG_CONFIG"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12052 $as_echo "$PKG_CONFIG" >&6; }
12053 else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12060 if test "$PKG_CONFIG" = "no" ; then
12061 HAVE_M17N_FLT=no
12062 else
12063 PKG_CONFIG_MIN_VERSION=0.9.0
12064 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12066 $as_echo_n "checking for m17n-flt... " >&6; }
12068 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12070 $as_echo "yes" >&6; }
12071 succeeded=yes
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12074 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12075 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12077 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12080 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12081 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12083 $as_echo "$M17N_FLT_LIBS" >&6; }
12084 else
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12087 M17N_FLT_CFLAGS=""
12088 M17N_FLT_LIBS=""
12089 ## If we have a custom action on failure, don't print errors, but
12090 ## do set a variable so people can do so.
12091 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12097 else
12098 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12099 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12103 if test $succeeded = yes; then
12104 HAVE_M17N_FLT=yes
12105 else
12106 HAVE_M17N_FLT=no
12109 if test "$HAVE_M17N_FLT" = "yes"; then
12111 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12116 else
12117 HAVE_XFT=no
12118 HAVE_FREETYPE=no
12119 HAVE_LIBOTF=no
12120 HAVE_M17N_FLT=no
12123 ### End of font-backend (under X11) section.
12134 ### Use -lXpm if available, unless `--with-xpm=no'.
12135 HAVE_XPM=no
12136 LIBXPM=
12137 if test "${HAVE_X11}" = "yes"; then
12138 if test "${with_xpm}" != "no"; then
12139 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12140 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12142 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12143 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 ac_check_lib_save_LIBS=$LIBS
12147 LIBS="-lXpm -lX11 $LIBS"
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12151 /* Override any GCC internal prototype to avoid an error.
12152 Use char because int might match the return type of a GCC
12153 builtin and then its argument prototype would still apply. */
12154 #ifdef __cplusplus
12155 extern "C"
12156 #endif
12157 char XpmReadFileToPixmap ();
12159 main ()
12161 return XpmReadFileToPixmap ();
12163 return 0;
12165 _ACEOF
12166 if ac_fn_c_try_link "$LINENO"; then :
12167 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12168 else
12169 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12171 rm -f core conftest.err conftest.$ac_objext \
12172 conftest$ac_exeext conftest.$ac_ext
12173 LIBS=$ac_check_lib_save_LIBS
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12176 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12177 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12178 HAVE_XPM=yes
12184 if test "${HAVE_XPM}" = "yes"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12186 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12189 #include "X11/xpm.h"
12190 #ifndef XpmReturnAllocPixels
12191 no_return_alloc_pixels
12192 #endif
12194 _ACEOF
12195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12196 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12197 HAVE_XPM=no
12198 else
12199 HAVE_XPM=yes
12201 rm -f conftest*
12204 if test "${HAVE_XPM}" = "yes"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12206 $as_echo "yes" >&6; }
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12214 if test "${HAVE_XPM}" = "yes"; then
12216 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12218 LIBXPM=-lXpm
12223 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12224 HAVE_JPEG=no
12225 LIBJPEG=
12226 if test "${HAVE_X11}" = "yes"; then
12227 if test "${with_jpeg}" != "no"; then
12228 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12229 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12231 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12232 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-ljpeg $LIBS"
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char jpeg_destroy_compress ();
12248 main ()
12250 return jpeg_destroy_compress ();
12252 return 0;
12254 _ACEOF
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12257 else
12258 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12265 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12266 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12267 HAVE_JPEG=yes
12275 if test "${HAVE_JPEG}" = "yes"; then
12276 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280 #include <jpeglib.h>
12281 version=JPEG_LIB_VERSION
12283 _ACEOF
12284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12285 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12286 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12288 else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12290 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12291 HAVE_JPEG=no
12293 rm -f conftest*
12296 if test "${HAVE_JPEG}" = "yes"; then
12297 LIBJPEG=-ljpeg
12302 ### Use -lpng if available, unless `--with-png=no'.
12303 HAVE_PNG=no
12304 LIBPNG=
12305 if test "${HAVE_X11}" = "yes"; then
12306 if test "${with_png}" != "no"; then
12307 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12308 # in /usr/include/libpng.
12309 for ac_header in png.h libpng/png.h
12310 do :
12311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12312 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12313 eval as_val=\$$as_ac_Header
12314 if test "x$as_val" = x""yes; then :
12315 cat >>confdefs.h <<_ACEOF
12316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317 _ACEOF
12321 done
12323 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12325 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12326 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-lpng -lz -lm $LIBS"
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12337 #ifdef __cplusplus
12338 extern "C"
12339 #endif
12340 char png_get_channels ();
12342 main ()
12344 return png_get_channels ();
12346 return 0;
12348 _ACEOF
12349 if ac_fn_c_try_link "$LINENO"; then :
12350 ac_cv_lib_png_png_get_channels=yes
12351 else
12352 ac_cv_lib_png_png_get_channels=no
12354 rm -f core conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
12356 LIBS=$ac_check_lib_save_LIBS
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12359 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12360 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12361 HAVE_PNG=yes
12367 if test "${HAVE_PNG}" = "yes"; then
12369 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12371 LIBPNG="-lpng -lz -lm"
12376 ### Use -ltiff if available, unless `--with-tiff=no'.
12377 HAVE_TIFF=no
12378 LIBTIFF=
12379 if test "${HAVE_X11}" = "yes"; then
12380 if test "${with_tiff}" != "no"; then
12381 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12382 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12383 tifflibs="-lz -lm"
12384 # At least one tiff package requires the jpeg library.
12385 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12387 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12388 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 ac_check_lib_save_LIBS=$LIBS
12392 LIBS="-ltiff $tifflibs $LIBS"
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char TIFFGetVersion ();
12404 main ()
12406 return TIFFGetVersion ();
12408 return 0;
12410 _ACEOF
12411 if ac_fn_c_try_link "$LINENO"; then :
12412 ac_cv_lib_tiff_TIFFGetVersion=yes
12413 else
12414 ac_cv_lib_tiff_TIFFGetVersion=no
12416 rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12421 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12422 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12423 HAVE_TIFF=yes
12431 if test "${HAVE_TIFF}" = "yes"; then
12433 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12435 LIBTIFF=-ltiff
12440 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12441 HAVE_GIF=no
12442 LIBGIF=
12443 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12444 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12445 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12446 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12447 # Earlier versions can crash Emacs.
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12449 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12450 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453 ac_check_lib_save_LIBS=$LIBS
12454 LIBS="-lgif $LIBS"
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12458 /* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12461 #ifdef __cplusplus
12462 extern "C"
12463 #endif
12464 char EGifPutExtensionLast ();
12466 main ()
12468 return EGifPutExtensionLast ();
12470 return 0;
12472 _ACEOF
12473 if ac_fn_c_try_link "$LINENO"; then :
12474 ac_cv_lib_gif_EGifPutExtensionLast=yes
12475 else
12476 ac_cv_lib_gif_EGifPutExtensionLast=no
12478 rm -f core conftest.err conftest.$ac_objext \
12479 conftest$ac_exeext conftest.$ac_ext
12480 LIBS=$ac_check_lib_save_LIBS
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12483 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12484 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12485 HAVE_GIF=yes
12486 else
12487 HAVE_GIF=maybe
12494 if test "$HAVE_GIF" = yes; then
12495 LIBGIF=-lgif
12496 elif test "$HAVE_GIF" = maybe; then
12497 # If gif_lib.h but no libgif, try libungif.
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12499 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12500 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 ac_check_lib_save_LIBS=$LIBS
12504 LIBS="-lungif $LIBS"
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12508 /* Override any GCC internal prototype to avoid an error.
12509 Use char because int might match the return type of a GCC
12510 builtin and then its argument prototype would still apply. */
12511 #ifdef __cplusplus
12512 extern "C"
12513 #endif
12514 char EGifPutExtensionLast ();
12516 main ()
12518 return EGifPutExtensionLast ();
12520 return 0;
12522 _ACEOF
12523 if ac_fn_c_try_link "$LINENO"; then :
12524 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12525 else
12526 ac_cv_lib_ungif_EGifPutExtensionLast=no
12528 rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12530 LIBS=$ac_check_lib_save_LIBS
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12533 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12534 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12535 HAVE_GIF=yes
12536 else
12537 HAVE_GIF=no
12540 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12543 if test "${HAVE_GIF}" = "yes"; then
12545 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12551 if test "${HAVE_X11}" = "yes"; then
12552 MISSING=""
12553 WITH_NO=""
12554 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12555 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12556 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12557 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12558 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12559 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12560 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12561 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12562 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12563 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12565 if test "X${MISSING}" != X; then
12566 as_fn_error "The following required libraries were not found:
12567 $MISSING
12568 Maybe some development libraries/packages are missing?
12569 If you don't want to link with them give
12570 $WITH_NO
12571 as options to configure" "$LINENO" 5
12575 ### Use -lgpm if available, unless `--with-gpm=no'.
12576 HAVE_GPM=no
12577 LIBGPM=
12578 MOUSE_SUPPORT=
12579 if test "${with_gpm}" != "no"; then
12580 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12581 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12583 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12584 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-lgpm $LIBS"
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12592 /* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12595 #ifdef __cplusplus
12596 extern "C"
12597 #endif
12598 char Gpm_Open ();
12600 main ()
12602 return Gpm_Open ();
12604 return 0;
12606 _ACEOF
12607 if ac_fn_c_try_link "$LINENO"; then :
12608 ac_cv_lib_gpm_Gpm_Open=yes
12609 else
12610 ac_cv_lib_gpm_Gpm_Open=no
12612 rm -f core conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12617 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12618 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12619 HAVE_GPM=yes
12626 if test "${HAVE_GPM}" = "yes"; then
12628 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12630 LIBGPM=-lgpm
12631 ## May be reset below.
12632 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12637 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12638 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12640 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12646 C_SWITCH_X_SYSTEM=
12647 ### Use NeXTstep API to implement GUI.
12648 if test "${HAVE_NS}" = "yes"; then
12650 $as_echo "#define HAVE_NS 1" >>confdefs.h
12652 if test "${NS_IMPL_COCOA}" = "yes"; then
12654 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12656 GNU_OBJC_CFLAGS=
12658 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12660 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12662 # See also .m.o rule in Makefile.in */
12663 # FIXME: are all these flags really needed? Document here why. */
12664 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12665 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12667 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12669 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12672 # We also have mouse menus.
12673 HAVE_MENUS=yes
12674 OTHER_FILES=ns-app
12678 ### Use session management (-lSM -lICE) if available
12679 HAVE_X_SM=no
12680 LIBXSM=
12681 if test "${HAVE_X11}" = "yes"; then
12682 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12683 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12685 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12686 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 ac_check_lib_save_LIBS=$LIBS
12690 LIBS="-lSM -lICE $LIBS"
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12694 /* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12697 #ifdef __cplusplus
12698 extern "C"
12699 #endif
12700 char SmcOpenConnection ();
12702 main ()
12704 return SmcOpenConnection ();
12706 return 0;
12708 _ACEOF
12709 if ac_fn_c_try_link "$LINENO"; then :
12710 ac_cv_lib_SM_SmcOpenConnection=yes
12711 else
12712 ac_cv_lib_SM_SmcOpenConnection=no
12714 rm -f core conftest.err conftest.$ac_objext \
12715 conftest$ac_exeext conftest.$ac_ext
12716 LIBS=$ac_check_lib_save_LIBS
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12719 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12720 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12721 HAVE_X_SM=yes
12728 if test "${HAVE_X_SM}" = "yes"; then
12730 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12732 LIBXSM="-lSM -lICE"
12733 case "$LIBS" in
12734 *-lSM*) ;;
12735 *) LIBS="$LIBXSM $LIBS" ;;
12736 esac
12741 ### Use libxml (-lxml2) if available
12742 if test "${with_xml2}" != "no"; then
12743 ### I'm not sure what the version number should be, so I just guessed.
12745 succeeded=no
12747 # Extract the first word of "pkg-config", so it can be a program name with args.
12748 set dummy pkg-config; ac_word=$2
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12750 $as_echo_n "checking for $ac_word... " >&6; }
12751 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 case $PKG_CONFIG in
12755 [\\/]* | ?:[\\/]*)
12756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12760 for as_dir in $PATH
12762 IFS=$as_save_IFS
12763 test -z "$as_dir" && as_dir=.
12764 for ac_exec_ext in '' $ac_executable_extensions; do
12765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12766 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12768 break 2
12770 done
12771 done
12772 IFS=$as_save_IFS
12774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12776 esac
12778 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12779 if test -n "$PKG_CONFIG"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12781 $as_echo "$PKG_CONFIG" >&6; }
12782 else
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12789 if test "$PKG_CONFIG" = "no" ; then
12790 HAVE_LIBXML2=no
12791 else
12792 PKG_CONFIG_MIN_VERSION=0.9.0
12793 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12795 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12797 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12799 $as_echo "yes" >&6; }
12800 succeeded=yes
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12803 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12804 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12806 $as_echo "$LIBXML2_CFLAGS" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12809 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12810 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12812 $as_echo "$LIBXML2_LIBS" >&6; }
12813 else
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12816 LIBXML2_CFLAGS=""
12817 LIBXML2_LIBS=""
12818 ## If we have a custom action on failure, don't print errors, but
12819 ## do set a variable so people can do so.
12820 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12826 else
12827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12832 if test $succeeded = yes; then
12833 HAVE_LIBXML2=yes
12834 else
12835 HAVE_LIBXML2=no
12838 if test "${HAVE_LIBXML2}" = "yes"; then
12839 LIBS="$LIBXML2_LIBS $LIBS"
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12841 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12842 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12845 ac_check_lib_save_LIBS=$LIBS
12846 LIBS="-lxml2 $LIBS"
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12850 /* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 char htmlReadMemory ();
12858 main ()
12860 return htmlReadMemory ();
12862 return 0;
12864 _ACEOF
12865 if ac_fn_c_try_link "$LINENO"; then :
12866 ac_cv_lib_xml2_htmlReadMemory=yes
12867 else
12868 ac_cv_lib_xml2_htmlReadMemory=no
12870 rm -f core conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
12872 LIBS=$ac_check_lib_save_LIBS
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12875 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12876 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12877 HAVE_LIBXML2=yes
12878 else
12879 HAVE_LIBXML2=no
12882 if test "${HAVE_LIBXML2}" = "yes"; then
12884 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12886 else
12887 LIBXML2_LIBS=""
12888 LIBXML2_CFLAGS=""
12895 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12897 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12898 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12903 #include <netdb.h>
12905 main ()
12907 return h_errno;
12909 return 0;
12911 _ACEOF
12912 if ac_fn_c_try_link "$LINENO"; then :
12913 emacs_cv_netdb_declares_h_errno=yes
12914 else
12915 emacs_cv_netdb_declares_h_errno=no
12917 rm -f core conftest.err conftest.$ac_objext \
12918 conftest$ac_exeext conftest.$ac_ext
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12921 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12922 if test $emacs_cv_netdb_declares_h_errno = yes; then
12924 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12928 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12929 # for constant arguments. Useless!
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12931 $as_echo_n "checking for working alloca.h... " >&6; }
12932 if test "${ac_cv_working_alloca_h+set}" = set; then :
12933 $as_echo_n "(cached) " >&6
12934 else
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937 #include <alloca.h>
12939 main ()
12941 char *p = (char *) alloca (2 * sizeof (int));
12942 if (p) return 0;
12944 return 0;
12946 _ACEOF
12947 if ac_fn_c_try_link "$LINENO"; then :
12948 ac_cv_working_alloca_h=yes
12949 else
12950 ac_cv_working_alloca_h=no
12952 rm -f core conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12956 $as_echo "$ac_cv_working_alloca_h" >&6; }
12957 if test $ac_cv_working_alloca_h = yes; then
12959 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12964 $as_echo_n "checking for alloca... " >&6; }
12965 if test "${ac_cv_func_alloca_works+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12967 else
12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969 /* end confdefs.h. */
12970 #ifdef __GNUC__
12971 # define alloca __builtin_alloca
12972 #else
12973 # ifdef _MSC_VER
12974 # include <malloc.h>
12975 # define alloca _alloca
12976 # else
12977 # ifdef HAVE_ALLOCA_H
12978 # include <alloca.h>
12979 # else
12980 # ifdef _AIX
12981 #pragma alloca
12982 # else
12983 # ifndef alloca /* predefined by HP cc +Olibcalls */
12984 char *alloca ();
12985 # endif
12986 # endif
12987 # endif
12988 # endif
12989 #endif
12992 main ()
12994 char *p = (char *) alloca (1);
12995 if (p) return 0;
12997 return 0;
12999 _ACEOF
13000 if ac_fn_c_try_link "$LINENO"; then :
13001 ac_cv_func_alloca_works=yes
13002 else
13003 ac_cv_func_alloca_works=no
13005 rm -f core conftest.err conftest.$ac_objext \
13006 conftest$ac_exeext conftest.$ac_ext
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13009 $as_echo "$ac_cv_func_alloca_works" >&6; }
13011 if test $ac_cv_func_alloca_works = yes; then
13013 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13015 else
13016 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13017 # that cause trouble. Some versions do not even contain alloca or
13018 # contain a buggy version. If you still want to use their alloca,
13019 # use ar to extract alloca.o from them instead of compiling alloca.c.
13021 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13023 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13027 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13028 if test "${ac_cv_os_cray+set}" = set; then :
13029 $as_echo_n "(cached) " >&6
13030 else
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 #if defined CRAY && ! defined CRAY2
13034 webecray
13035 #else
13036 wenotbecray
13037 #endif
13039 _ACEOF
13040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13041 $EGREP "webecray" >/dev/null 2>&1; then :
13042 ac_cv_os_cray=yes
13043 else
13044 ac_cv_os_cray=no
13046 rm -f conftest*
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13050 $as_echo "$ac_cv_os_cray" >&6; }
13051 if test $ac_cv_os_cray = yes; then
13052 for ac_func in _getb67 GETB67 getb67; do
13053 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13054 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13055 eval as_val=\$$as_ac_var
13056 if test "x$as_val" = x""yes; then :
13058 cat >>confdefs.h <<_ACEOF
13059 #define CRAY_STACKSEG_END $ac_func
13060 _ACEOF
13062 break
13065 done
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13069 $as_echo_n "checking stack direction for C alloca... " >&6; }
13070 if test "${ac_cv_c_stack_direction+set}" = set; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073 if test "$cross_compiling" = yes; then :
13074 ac_cv_c_stack_direction=0
13075 else
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13078 $ac_includes_default
13080 find_stack_direction ()
13082 static char *addr = 0;
13083 auto char dummy;
13084 if (addr == 0)
13086 addr = &dummy;
13087 return find_stack_direction ();
13089 else
13090 return (&dummy > addr) ? 1 : -1;
13094 main ()
13096 return find_stack_direction () < 0;
13098 _ACEOF
13099 if ac_fn_c_try_run "$LINENO"; then :
13100 ac_cv_c_stack_direction=1
13101 else
13102 ac_cv_c_stack_direction=-1
13104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13105 conftest.$ac_objext conftest.beam conftest.$ac_ext
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13110 $as_echo "$ac_cv_c_stack_direction" >&6; }
13111 cat >>confdefs.h <<_ACEOF
13112 #define STACK_DIRECTION $ac_cv_c_stack_direction
13113 _ACEOF
13119 if test x"$ac_cv_func_alloca_works" != xyes; then
13120 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
13123 # fmod, logb, and frexp are found in -lm on most systems.
13124 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13126 $as_echo_n "checking for sqrt in -lm... " >&6; }
13127 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
13129 else
13130 ac_check_lib_save_LIBS=$LIBS
13131 LIBS="-lm $LIBS"
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 char sqrt ();
13143 main ()
13145 return sqrt ();
13147 return 0;
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 ac_cv_lib_m_sqrt=yes
13152 else
13153 ac_cv_lib_m_sqrt=no
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13160 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13161 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13162 cat >>confdefs.h <<_ACEOF
13163 #define HAVE_LIBM 1
13164 _ACEOF
13166 LIBS="-lm $LIBS"
13171 # Check for mail-locking functions in a "mail" library. Probably this should
13172 # have the same check as for liblockfile below.
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13174 $as_echo_n "checking for maillock in -lmail... " >&6; }
13175 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 ac_check_lib_save_LIBS=$LIBS
13179 LIBS="-lmail $LIBS"
13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13183 /* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13186 #ifdef __cplusplus
13187 extern "C"
13188 #endif
13189 char maillock ();
13191 main ()
13193 return maillock ();
13195 return 0;
13197 _ACEOF
13198 if ac_fn_c_try_link "$LINENO"; then :
13199 ac_cv_lib_mail_maillock=yes
13200 else
13201 ac_cv_lib_mail_maillock=no
13203 rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 LIBS=$ac_check_lib_save_LIBS
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13208 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13209 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13210 have_mail=yes
13211 else
13212 have_mail=no
13215 if test $have_mail = yes; then
13216 LIBS_MAIL=-lmail
13217 LIBS="$LIBS_MAIL $LIBS"
13219 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13221 else
13222 LIBS_MAIL=
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13225 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13226 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 ac_check_lib_save_LIBS=$LIBS
13230 LIBS="-llockfile $LIBS"
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13234 /* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
13237 #ifdef __cplusplus
13238 extern "C"
13239 #endif
13240 char maillock ();
13242 main ()
13244 return maillock ();
13246 return 0;
13248 _ACEOF
13249 if ac_fn_c_try_link "$LINENO"; then :
13250 ac_cv_lib_lockfile_maillock=yes
13251 else
13252 ac_cv_lib_lockfile_maillock=no
13254 rm -f core conftest.err conftest.$ac_objext \
13255 conftest$ac_exeext conftest.$ac_ext
13256 LIBS=$ac_check_lib_save_LIBS
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13259 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13260 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13261 have_lockfile=yes
13262 else
13263 have_lockfile=no
13266 if test $have_lockfile = yes; then
13267 LIBS_MAIL=-llockfile
13268 LIBS="$LIBS_MAIL $LIBS"
13270 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13272 else
13273 # If we have the shared liblockfile, assume we must use it for mail
13274 # locking (e.g. Debian). If we couldn't link against liblockfile
13275 # (no liblockfile.a installed), ensure that we don't need to.
13276 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13277 set dummy liblockfile.so; ac_word=$2
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279 $as_echo_n "checking for $ac_word... " >&6; }
13280 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13281 $as_echo_n "(cached) " >&6
13282 else
13283 if test -n "$liblockfile"; then
13284 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13285 else
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13288 for as_dir in $as_dummy
13290 IFS=$as_save_IFS
13291 test -z "$as_dir" && as_dir=.
13292 for ac_exec_ext in '' $ac_executable_extensions; do
13293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13294 ac_cv_prog_liblockfile="yes"
13295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13296 break 2
13298 done
13299 done
13300 IFS=$as_save_IFS
13302 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13305 liblockfile=$ac_cv_prog_liblockfile
13306 if test -n "$liblockfile"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13308 $as_echo "$liblockfile" >&6; }
13309 else
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13315 if test $ac_cv_prog_liblockfile = yes; then
13316 as_fn_error "Shared liblockfile found but can't link against it.
13317 This probably means that movemail could lose mail.
13318 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13321 for ac_func in touchlock
13322 do :
13323 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13324 if test "x$ac_cv_func_touchlock" = x""yes; then :
13325 cat >>confdefs.h <<_ACEOF
13326 #define HAVE_TOUCHLOCK 1
13327 _ACEOF
13330 done
13332 for ac_header in maillock.h
13333 do :
13334 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13335 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13336 cat >>confdefs.h <<_ACEOF
13337 #define HAVE_MAILLOCK_H 1
13338 _ACEOF
13342 done
13346 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13347 ## interlock access to the mail spool. The alternative is a lock file named
13348 ## /usr/spool/mail/$USER.lock.
13349 mail_lock=no
13350 case "$opsys" in
13351 aix4-2) mail_lock="lockf" ;;
13353 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13355 ## On GNU/Linux systems, both methods are used by various mail programs.
13356 ## I assume most people are using newer mailers that have heard of flock.
13357 ## Change this if you need to.
13358 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13359 ## configure gets the right answers, and that means *NOT* using flock.
13360 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13361 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13362 ## Debian maintainer hasn't provided a clean fix for Emacs.
13363 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13364 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13365 ## correct logic. -- fx
13366 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13367 ## liblockfile is a Free Software replacement for libmail, used on
13368 ## Debian systems and elsewhere. -rfr.
13369 gnu-*)
13370 mail_lock="flock"
13371 if test $have_mail = yes || test $have_lockfile = yes; then
13372 test $ac_cv_header_maillock_h = yes && mail_lock=no
13375 esac
13377 BLESSMAIL_TARGET=
13378 case "$mail_lock" in
13379 flock)
13380 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13383 lockf)
13384 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13387 *) BLESSMAIL_TARGET="need-blessmail" ;;
13388 esac
13392 for ac_func in gethostname getdomainname dup2 \
13393 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13394 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13395 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13396 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13397 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13398 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13399 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13400 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13401 cfmakeraw cfsetspeed isnan copysign __executable_start
13402 do :
13403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13404 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13405 eval as_val=\$$as_ac_var
13406 if test "x$as_val" = x""yes; then :
13407 cat >>confdefs.h <<_ACEOF
13408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13409 _ACEOF
13412 done
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13416 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13417 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13424 main ()
13426 __builtin_unwind_init ();
13428 return 0;
13430 _ACEOF
13431 if ac_fn_c_try_link "$LINENO"; then :
13432 emacs_cv_func___builtin_unwind_init=yes
13433 else
13434 emacs_cv_func___builtin_unwind_init=no
13436 rm -f core conftest.err conftest.$ac_objext \
13437 conftest$ac_exeext conftest.$ac_ext
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13440 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13441 if test $emacs_cv_func___builtin_unwind_init = yes; then
13443 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13447 for ac_header in sys/un.h
13448 do :
13449 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13450 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13451 cat >>confdefs.h <<_ACEOF
13452 #define HAVE_SYS_UN_H 1
13453 _ACEOF
13457 done
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13461 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13462 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13463 $as_echo_n "(cached) " >&6
13464 else
13465 while :; do
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468 #include <sys/types.h> /* for off_t */
13469 #include <stdio.h>
13471 main ()
13473 int (*fp) (FILE *, off_t, int) = fseeko;
13474 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13476 return 0;
13478 _ACEOF
13479 if ac_fn_c_try_link "$LINENO"; then :
13480 ac_cv_sys_largefile_source=no; break
13482 rm -f core conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13486 #define _LARGEFILE_SOURCE 1
13487 #include <sys/types.h> /* for off_t */
13488 #include <stdio.h>
13490 main ()
13492 int (*fp) (FILE *, off_t, int) = fseeko;
13493 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13495 return 0;
13497 _ACEOF
13498 if ac_fn_c_try_link "$LINENO"; then :
13499 ac_cv_sys_largefile_source=1; break
13501 rm -f core conftest.err conftest.$ac_objext \
13502 conftest$ac_exeext conftest.$ac_ext
13503 ac_cv_sys_largefile_source=unknown
13504 break
13505 done
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13508 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13509 case $ac_cv_sys_largefile_source in #(
13510 no | unknown) ;;
13512 cat >>confdefs.h <<_ACEOF
13513 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13514 _ACEOF
13516 esac
13517 rm -rf conftest*
13519 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13520 # in glibc 2.1.3, but that breaks too many other things.
13521 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13522 if test $ac_cv_sys_largefile_source != unknown; then
13524 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13530 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13531 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13532 $as_echo_n "(cached) " >&6
13533 else
13534 # Use it with a single arg.
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537 $ac_includes_default
13539 main ()
13541 getpgrp (0);
13543 return 0;
13545 _ACEOF
13546 if ac_fn_c_try_compile "$LINENO"; then :
13547 ac_cv_func_getpgrp_void=no
13548 else
13549 ac_cv_func_getpgrp_void=yes
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13555 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13556 if test $ac_cv_func_getpgrp_void = yes; then
13558 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13563 # Configure gnulib.
13574 LIBC_FATAL_STDERR_=1
13575 export LIBC_FATAL_STDERR_
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13579 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13580 if test "${ac_cv_c_bigendian+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13582 else
13583 ac_cv_c_bigendian=unknown
13584 # See if we're dealing with a universal compiler.
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587 #ifndef __APPLE_CC__
13588 not a universal capable compiler
13589 #endif
13590 typedef int dummy;
13592 _ACEOF
13593 if ac_fn_c_try_compile "$LINENO"; then :
13595 # Check for potential -arch flags. It is not universal unless
13596 # there are at least two -arch flags with different values.
13597 ac_arch=
13598 ac_prev=
13599 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13600 if test -n "$ac_prev"; then
13601 case $ac_word in
13602 i?86 | x86_64 | ppc | ppc64)
13603 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13604 ac_arch=$ac_word
13605 else
13606 ac_cv_c_bigendian=universal
13607 break
13610 esac
13611 ac_prev=
13612 elif test "x$ac_word" = "x-arch"; then
13613 ac_prev=arch
13615 done
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618 if test $ac_cv_c_bigendian = unknown; then
13619 # See if sys/param.h defines the BYTE_ORDER macro.
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 #include <sys/types.h>
13623 #include <sys/param.h>
13626 main ()
13628 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13629 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13630 && LITTLE_ENDIAN)
13631 bogus endian macros
13632 #endif
13635 return 0;
13637 _ACEOF
13638 if ac_fn_c_try_compile "$LINENO"; then :
13639 # It does; now see whether it defined to BIG_ENDIAN or not.
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 #include <sys/types.h>
13643 #include <sys/param.h>
13646 main ()
13648 #if BYTE_ORDER != BIG_ENDIAN
13649 not big endian
13650 #endif
13653 return 0;
13655 _ACEOF
13656 if ac_fn_c_try_compile "$LINENO"; then :
13657 ac_cv_c_bigendian=yes
13658 else
13659 ac_cv_c_bigendian=no
13661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 if test $ac_cv_c_bigendian = unknown; then
13666 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13669 #include <limits.h>
13672 main ()
13674 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13675 bogus endian macros
13676 #endif
13679 return 0;
13681 _ACEOF
13682 if ac_fn_c_try_compile "$LINENO"; then :
13683 # It does; now see whether it defined to _BIG_ENDIAN or not.
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13686 #include <limits.h>
13689 main ()
13691 #ifndef _BIG_ENDIAN
13692 not big endian
13693 #endif
13696 return 0;
13698 _ACEOF
13699 if ac_fn_c_try_compile "$LINENO"; then :
13700 ac_cv_c_bigendian=yes
13701 else
13702 ac_cv_c_bigendian=no
13704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 if test $ac_cv_c_bigendian = unknown; then
13709 # Compile a test program.
13710 if test "$cross_compiling" = yes; then :
13711 # Try to guess by grepping values from an object file.
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13714 short int ascii_mm[] =
13715 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13716 short int ascii_ii[] =
13717 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13718 int use_ascii (int i) {
13719 return ascii_mm[i] + ascii_ii[i];
13721 short int ebcdic_ii[] =
13722 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13723 short int ebcdic_mm[] =
13724 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13725 int use_ebcdic (int i) {
13726 return ebcdic_mm[i] + ebcdic_ii[i];
13728 extern int foo;
13731 main ()
13733 return use_ascii (foo) == use_ebcdic (foo);
13735 return 0;
13737 _ACEOF
13738 if ac_fn_c_try_compile "$LINENO"; then :
13739 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13740 ac_cv_c_bigendian=yes
13742 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13743 if test "$ac_cv_c_bigendian" = unknown; then
13744 ac_cv_c_bigendian=no
13745 else
13746 # finding both strings is unlikely to happen, but who knows?
13747 ac_cv_c_bigendian=unknown
13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13752 else
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13755 $ac_includes_default
13757 main ()
13760 /* Are we little or big endian? From Harbison&Steele. */
13761 union
13763 long int l;
13764 char c[sizeof (long int)];
13765 } u;
13766 u.l = 1;
13767 return u.c[sizeof (long int) - 1] == 1;
13770 return 0;
13772 _ACEOF
13773 if ac_fn_c_try_run "$LINENO"; then :
13774 ac_cv_c_bigendian=no
13775 else
13776 ac_cv_c_bigendian=yes
13778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13779 conftest.$ac_objext conftest.beam conftest.$ac_ext
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13785 $as_echo "$ac_cv_c_bigendian" >&6; }
13786 case $ac_cv_c_bigendian in #(
13787 yes)
13788 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13789 ;; #(
13791 ;; #(
13792 universal)
13794 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13796 ;; #(
13798 as_fn_error "unknown endianness
13799 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13800 esac
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13804 $as_echo_n "checking for inline... " >&6; }
13805 if test "${ac_cv_c_inline+set}" = set; then :
13806 $as_echo_n "(cached) " >&6
13807 else
13808 ac_cv_c_inline=no
13809 for ac_kw in inline __inline__ __inline; do
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13812 #ifndef __cplusplus
13813 typedef int foo_t;
13814 static $ac_kw foo_t static_foo () {return 0; }
13815 $ac_kw foo_t foo () {return 0; }
13816 #endif
13818 _ACEOF
13819 if ac_fn_c_try_compile "$LINENO"; then :
13820 ac_cv_c_inline=$ac_kw
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 test "$ac_cv_c_inline" != no && break
13824 done
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13828 $as_echo "$ac_cv_c_inline" >&6; }
13830 case $ac_cv_c_inline in
13831 inline | yes) ;;
13833 case $ac_cv_c_inline in
13834 no) ac_val=;;
13835 *) ac_val=$ac_cv_c_inline;;
13836 esac
13837 cat >>confdefs.h <<_ACEOF
13838 #ifndef __cplusplus
13839 #define inline $ac_val
13840 #endif
13841 _ACEOF
13843 esac
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13847 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13848 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13849 $as_echo_n "(cached) " >&6
13850 else
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 /* On HP-UX before 11.23, strtold returns a struct instead of
13854 long double. Reject implementations like that, by requiring
13855 compatibility with the C99 prototype. */
13856 #include <stdlib.h>
13857 static long double (*p) (char const *, char **) = strtold;
13858 static long double
13859 test (char const *nptr, char **endptr)
13861 long double r;
13862 r = strtold (nptr, endptr);
13863 return r;
13866 main ()
13868 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13870 return 0;
13872 _ACEOF
13873 if ac_fn_c_try_link "$LINENO"; then :
13874 gl_cv_func_c99_strtold=yes
13875 else
13876 gl_cv_func_c99_strtold=no
13878 rm -f core conftest.err conftest.$ac_objext \
13879 conftest$ac_exeext conftest.$ac_ext
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13882 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13883 if test $gl_cv_func_c99_strtold = yes; then
13885 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13890 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13891 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13892 $as_echo_n "(cached) " >&6
13893 else
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13897 #include <sys/types.h>
13898 #include <sys/stat.h>
13900 main ()
13902 struct stat s; s.st_dm_mode;
13904 return 0;
13906 _ACEOF
13907 if ac_fn_c_try_compile "$LINENO"; then :
13908 ac_cv_struct_st_dm_mode=yes
13909 else
13910 ac_cv_struct_st_dm_mode=no
13912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13915 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13917 if test $ac_cv_struct_st_dm_mode = yes; then
13919 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13924 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13925 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
13926 ac_have_decl=1
13927 else
13928 ac_have_decl=0
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_DECL_STRMODE $ac_have_decl
13933 _ACEOF
13936 GNULIB__EXIT=0;
13937 GNULIB_ATOLL=0;
13938 GNULIB_CALLOC_POSIX=0;
13939 GNULIB_CANONICALIZE_FILE_NAME=0;
13940 GNULIB_GETLOADAVG=0;
13941 GNULIB_GETSUBOPT=0;
13942 GNULIB_GRANTPT=0;
13943 GNULIB_MALLOC_POSIX=0;
13944 GNULIB_MBTOWC=0;
13945 GNULIB_MKDTEMP=0;
13946 GNULIB_MKOSTEMP=0;
13947 GNULIB_MKOSTEMPS=0;
13948 GNULIB_MKSTEMP=0;
13949 GNULIB_MKSTEMPS=0;
13950 GNULIB_PTSNAME=0;
13951 GNULIB_PUTENV=0;
13952 GNULIB_RANDOM_R=0;
13953 GNULIB_REALLOC_POSIX=0;
13954 GNULIB_REALPATH=0;
13955 GNULIB_RPMATCH=0;
13956 GNULIB_SETENV=0;
13957 GNULIB_STRTOD=0;
13958 GNULIB_STRTOLL=0;
13959 GNULIB_STRTOULL=0;
13960 GNULIB_SYSTEM_POSIX=0;
13961 GNULIB_UNLOCKPT=0;
13962 GNULIB_UNSETENV=0;
13963 GNULIB_WCTOMB=0;
13964 HAVE__EXIT=1;
13965 HAVE_ATOLL=1;
13966 HAVE_CANONICALIZE_FILE_NAME=1;
13967 HAVE_DECL_GETLOADAVG=1;
13968 HAVE_GETSUBOPT=1;
13969 HAVE_GRANTPT=1;
13970 HAVE_MKDTEMP=1;
13971 HAVE_MKOSTEMP=1;
13972 HAVE_MKOSTEMPS=1;
13973 HAVE_MKSTEMP=1;
13974 HAVE_MKSTEMPS=1;
13975 HAVE_PTSNAME=1;
13976 HAVE_RANDOM_H=1;
13977 HAVE_RANDOM_R=1;
13978 HAVE_REALPATH=1;
13979 HAVE_RPMATCH=1;
13980 HAVE_SETENV=1;
13981 HAVE_DECL_SETENV=1;
13982 HAVE_STRTOD=1;
13983 HAVE_STRTOLL=1;
13984 HAVE_STRTOULL=1;
13985 HAVE_STRUCT_RANDOM_DATA=1;
13986 HAVE_SYS_LOADAVG_H=0;
13987 HAVE_UNLOCKPT=1;
13988 HAVE_DECL_UNSETENV=1;
13989 REPLACE_CALLOC=0;
13990 REPLACE_CANONICALIZE_FILE_NAME=0;
13991 REPLACE_MALLOC=0;
13992 REPLACE_MBTOWC=0;
13993 REPLACE_MKSTEMP=0;
13994 REPLACE_PUTENV=0;
13995 REPLACE_REALLOC=0;
13996 REPLACE_REALPATH=0;
13997 REPLACE_SETENV=0;
13998 REPLACE_STRTOD=0;
13999 REPLACE_UNSETENV=0;
14000 REPLACE_WCTOMB=0;
14003 GNULIB_CHOWN=0;
14004 GNULIB_CLOSE=0;
14005 GNULIB_DUP2=0;
14006 GNULIB_DUP3=0;
14007 GNULIB_ENVIRON=0;
14008 GNULIB_EUIDACCESS=0;
14009 GNULIB_FACCESSAT=0;
14010 GNULIB_FCHDIR=0;
14011 GNULIB_FCHOWNAT=0;
14012 GNULIB_FSYNC=0;
14013 GNULIB_FTRUNCATE=0;
14014 GNULIB_GETCWD=0;
14015 GNULIB_GETDOMAINNAME=0;
14016 GNULIB_GETDTABLESIZE=0;
14017 GNULIB_GETGROUPS=0;
14018 GNULIB_GETHOSTNAME=0;
14019 GNULIB_GETLOGIN=0;
14020 GNULIB_GETLOGIN_R=0;
14021 GNULIB_GETPAGESIZE=0;
14022 GNULIB_GETUSERSHELL=0;
14023 GNULIB_LCHOWN=0;
14024 GNULIB_LINK=0;
14025 GNULIB_LINKAT=0;
14026 GNULIB_LSEEK=0;
14027 GNULIB_PIPE=0;
14028 GNULIB_PIPE2=0;
14029 GNULIB_PREAD=0;
14030 GNULIB_PWRITE=0;
14031 GNULIB_READLINK=0;
14032 GNULIB_READLINKAT=0;
14033 GNULIB_RMDIR=0;
14034 GNULIB_SLEEP=0;
14035 GNULIB_SYMLINK=0;
14036 GNULIB_SYMLINKAT=0;
14037 GNULIB_TTYNAME_R=0;
14038 GNULIB_UNISTD_H_GETOPT=0;
14039 GNULIB_UNISTD_H_SIGPIPE=0;
14040 GNULIB_UNLINK=0;
14041 GNULIB_UNLINKAT=0;
14042 GNULIB_USLEEP=0;
14043 GNULIB_WRITE=0;
14044 HAVE_CHOWN=1;
14045 HAVE_DUP2=1;
14046 HAVE_DUP3=1;
14047 HAVE_EUIDACCESS=1;
14048 HAVE_FACCESSAT=1;
14049 HAVE_FCHDIR=1;
14050 HAVE_FCHOWNAT=1;
14051 HAVE_FSYNC=1;
14052 HAVE_FTRUNCATE=1;
14053 HAVE_GETDTABLESIZE=1;
14054 HAVE_GETGROUPS=1;
14055 HAVE_GETHOSTNAME=1;
14056 HAVE_GETLOGIN=1;
14057 HAVE_GETPAGESIZE=1;
14058 HAVE_LCHOWN=1;
14059 HAVE_LINK=1;
14060 HAVE_LINKAT=1;
14061 HAVE_PIPE=1;
14062 HAVE_PIPE2=1;
14063 HAVE_PREAD=1;
14064 HAVE_PWRITE=1;
14065 HAVE_READLINK=1;
14066 HAVE_READLINKAT=1;
14067 HAVE_SLEEP=1;
14068 HAVE_SYMLINK=1;
14069 HAVE_SYMLINKAT=1;
14070 HAVE_UNLINKAT=1;
14071 HAVE_USLEEP=1;
14072 HAVE_DECL_ENVIRON=1;
14073 HAVE_DECL_FCHDIR=1;
14074 HAVE_DECL_GETDOMAINNAME=1;
14075 HAVE_DECL_GETLOGIN_R=1;
14076 HAVE_DECL_GETPAGESIZE=1;
14077 HAVE_DECL_GETUSERSHELL=1;
14078 HAVE_DECL_TTYNAME_R=1;
14079 HAVE_OS_H=0;
14080 HAVE_SYS_PARAM_H=0;
14081 REPLACE_CHOWN=0;
14082 REPLACE_CLOSE=0;
14083 REPLACE_DUP=0;
14084 REPLACE_DUP2=0;
14085 REPLACE_FCHOWNAT=0;
14086 REPLACE_GETCWD=0;
14087 REPLACE_GETDOMAINNAME=0;
14088 REPLACE_GETLOGIN_R=0;
14089 REPLACE_GETGROUPS=0;
14090 REPLACE_GETPAGESIZE=0;
14091 REPLACE_LCHOWN=0;
14092 REPLACE_LINK=0;
14093 REPLACE_LINKAT=0;
14094 REPLACE_LSEEK=0;
14095 REPLACE_PREAD=0;
14096 REPLACE_PWRITE=0;
14097 REPLACE_READLINK=0;
14098 REPLACE_RMDIR=0;
14099 REPLACE_SLEEP=0;
14100 REPLACE_SYMLINK=0;
14101 REPLACE_TTYNAME_R=0;
14102 REPLACE_UNLINK=0;
14103 REPLACE_UNLINKAT=0;
14104 REPLACE_USLEEP=0;
14105 REPLACE_WRITE=0;
14106 UNISTD_H_HAVE_WINSOCK2_H=0;
14107 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14113 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14114 if test "${gl_cv_have_include_next+set}" = set; then :
14115 $as_echo_n "(cached) " >&6
14116 else
14117 rm -rf conftestd1a conftestd1b conftestd2
14118 mkdir conftestd1a conftestd1b conftestd2
14119 cat <<EOF > conftestd1a/conftest.h
14120 #define DEFINED_IN_CONFTESTD1
14121 #include_next <conftest.h>
14122 #ifdef DEFINED_IN_CONFTESTD2
14123 int foo;
14124 #else
14125 #error "include_next doesn't work"
14126 #endif
14128 cat <<EOF > conftestd1b/conftest.h
14129 #define DEFINED_IN_CONFTESTD1
14130 #include <stdio.h>
14131 #include_next <conftest.h>
14132 #ifdef DEFINED_IN_CONFTESTD2
14133 int foo;
14134 #else
14135 #error "include_next doesn't work"
14136 #endif
14138 cat <<EOF > conftestd2/conftest.h
14139 #ifndef DEFINED_IN_CONFTESTD1
14140 #error "include_next test doesn't work"
14141 #endif
14142 #define DEFINED_IN_CONFTESTD2
14144 gl_save_CPPFLAGS="$CPPFLAGS"
14145 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 #include <conftest.h>
14149 _ACEOF
14150 if ac_fn_c_try_compile "$LINENO"; then :
14151 gl_cv_have_include_next=yes
14152 else
14153 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h. */
14156 #include <conftest.h>
14157 _ACEOF
14158 if ac_fn_c_try_compile "$LINENO"; then :
14159 gl_cv_have_include_next=buggy
14160 else
14161 gl_cv_have_include_next=no
14163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 CPPFLAGS="$gl_save_CPPFLAGS"
14168 rm -rf conftestd1a conftestd1b conftestd2
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14172 $as_echo "$gl_cv_have_include_next" >&6; }
14173 PRAGMA_SYSTEM_HEADER=
14174 if test $gl_cv_have_include_next = yes; then
14175 INCLUDE_NEXT=include_next
14176 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14177 if test -n "$GCC"; then
14178 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14180 else
14181 if test $gl_cv_have_include_next = buggy; then
14182 INCLUDE_NEXT=include
14183 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14184 else
14185 INCLUDE_NEXT=include
14186 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14193 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14194 if test "${gl_cv_pragma_columns+set}" = set; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14200 #ifdef __TANDEM
14201 choke me
14202 #endif
14204 _ACEOF
14205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14206 $EGREP "choke me" >/dev/null 2>&1; then :
14207 gl_cv_pragma_columns=yes
14208 else
14209 gl_cv_pragma_columns=no
14211 rm -f conftest*
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14216 $as_echo "$gl_cv_pragma_columns" >&6; }
14217 if test $gl_cv_pragma_columns = yes; then
14218 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14219 else
14220 PRAGMA_COLUMNS=
14239 if test $gl_cv_have_include_next = yes; then
14240 gl_cv_next_getopt_h='<'getopt.h'>'
14241 else
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14243 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14244 if test "${gl_cv_next_getopt_h+set}" = set; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14248 if test $ac_cv_header_getopt_h = yes; then
14251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14253 #include <getopt.h>
14255 _ACEOF
14256 case "$host_os" in
14257 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14258 *) gl_absname_cpp="$ac_cpp" ;;
14259 esac
14260 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14261 sed -n '\#/getopt.h#{
14262 s#.*"\(.*/getopt.h\)".*#\1#
14263 s#^/[^/]#//&#
14266 }'`'"'
14267 else
14268 gl_cv_next_getopt_h='<'getopt.h'>'
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14274 $as_echo "$gl_cv_next_getopt_h" >&6; }
14276 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14278 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14280 gl_next_as_first_directive='<'getopt.h'>'
14281 else
14282 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14283 gl_next_as_first_directive=$gl_cv_next_getopt_h
14285 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14290 if test $ac_cv_header_getopt_h = yes; then
14291 HAVE_GETOPT_H=1
14292 else
14293 HAVE_GETOPT_H=0
14297 gl_replace_getopt=
14299 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14300 for ac_header in getopt.h
14301 do :
14302 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14303 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14304 cat >>confdefs.h <<_ACEOF
14305 #define HAVE_GETOPT_H 1
14306 _ACEOF
14308 else
14309 gl_replace_getopt=yes
14312 done
14316 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14317 for ac_func in getopt_long_only
14318 do :
14319 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14320 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14321 cat >>confdefs.h <<_ACEOF
14322 #define HAVE_GETOPT_LONG_ONLY 1
14323 _ACEOF
14325 else
14326 gl_replace_getopt=yes
14328 done
14332 if test -z "$gl_replace_getopt"; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14334 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14335 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14341 #include <unistd.h>
14343 main ()
14345 int *p = &optreset; return optreset;
14347 return 0;
14349 _ACEOF
14350 if ac_fn_c_try_compile "$LINENO"; then :
14351 gl_optind_min=1
14352 else
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14355 #include <getopt.h>
14357 main ()
14359 return !getopt_clip;
14361 return 0;
14363 _ACEOF
14364 if ac_fn_c_try_compile "$LINENO"; then :
14365 gl_optind_min=1
14366 else
14367 gl_optind_min=0
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 gl_save_CPPFLAGS=$CPPFLAGS
14374 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14375 if test "$cross_compiling" = yes; then :
14376 case "$host_os" in
14377 mingw*) gl_cv_func_getopt_posix="guessing no";;
14378 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14379 *) gl_cv_func_getopt_posix="guessing yes";;
14380 esac
14382 else
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14386 #include <unistd.h>
14387 #include <stdlib.h>
14388 #include <string.h>
14391 main ()
14394 int argc = 0;
14395 char *argv[10];
14396 int c;
14398 argv[argc++] = "program";
14399 argv[argc++] = "-a";
14400 argv[argc++] = "foo";
14401 argv[argc++] = "bar";
14402 argv[argc] = NULL;
14403 optind = OPTIND_MIN;
14404 opterr = 0;
14406 c = getopt (argc, argv, "ab");
14407 if (!(c == 'a'))
14408 return 1;
14409 c = getopt (argc, argv, "ab");
14410 if (!(c == -1))
14411 return 2;
14412 if (!(optind == 2))
14413 return 3;
14415 /* Some internal state exists at this point. */
14417 int argc = 0;
14418 char *argv[10];
14419 int c;
14421 argv[argc++] = "program";
14422 argv[argc++] = "donald";
14423 argv[argc++] = "-p";
14424 argv[argc++] = "billy";
14425 argv[argc++] = "duck";
14426 argv[argc++] = "-a";
14427 argv[argc++] = "bar";
14428 argv[argc] = NULL;
14429 optind = OPTIND_MIN;
14430 opterr = 0;
14432 c = getopt (argc, argv, "+abp:q:");
14433 if (!(c == -1))
14434 return 4;
14435 if (!(strcmp (argv[0], "program") == 0))
14436 return 5;
14437 if (!(strcmp (argv[1], "donald") == 0))
14438 return 6;
14439 if (!(strcmp (argv[2], "-p") == 0))
14440 return 7;
14441 if (!(strcmp (argv[3], "billy") == 0))
14442 return 8;
14443 if (!(strcmp (argv[4], "duck") == 0))
14444 return 9;
14445 if (!(strcmp (argv[5], "-a") == 0))
14446 return 10;
14447 if (!(strcmp (argv[6], "bar") == 0))
14448 return 11;
14449 if (!(optind == 1))
14450 return 12;
14452 /* Detect MacOS 10.5, AIX 7.1 bug. */
14454 char *argv[3] = { "program", "-ab", NULL };
14455 optind = OPTIND_MIN;
14456 opterr = 0;
14457 if (getopt (2, argv, "ab:") != 'a')
14458 return 13;
14459 if (getopt (2, argv, "ab:") != '?')
14460 return 14;
14461 if (optopt != 'b')
14462 return 15;
14463 if (optind != 2)
14464 return 16;
14467 return 0;
14470 _ACEOF
14471 if ac_fn_c_try_run "$LINENO"; then :
14472 gl_cv_func_getopt_posix=yes
14473 else
14474 gl_cv_func_getopt_posix=no
14476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14477 conftest.$ac_objext conftest.beam conftest.$ac_ext
14480 CPPFLAGS=$gl_save_CPPFLAGS
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14484 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14485 case "$gl_cv_func_getopt_posix" in
14486 *no) gl_replace_getopt=yes ;;
14487 esac
14490 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14492 $as_echo_n "checking for working GNU getopt function... " >&6; }
14493 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14494 $as_echo_n "(cached) " >&6
14495 else
14496 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14497 # optstring is necessary for programs like m4 that have POSIX-mandated
14498 # semantics for supporting options interspersed with files.
14499 # Also, since getopt_long is a GNU extension, we require optind=0.
14500 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14501 # so take care to revert to the correct (non-)export state.
14502 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14503 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14504 xx) gl_had_POSIXLY_CORRECT=exported ;;
14505 x) gl_had_POSIXLY_CORRECT=yes ;;
14506 *) gl_had_POSIXLY_CORRECT= ;;
14507 esac
14508 POSIXLY_CORRECT=1
14509 export POSIXLY_CORRECT
14510 if test "$cross_compiling" = yes; then :
14511 case $host_os:$ac_cv_have_decl_optreset in
14512 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14513 *:yes) gl_cv_func_getopt_gnu=no;;
14514 *) gl_cv_func_getopt_gnu=yes;;
14515 esac
14517 else
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 #include <getopt.h>
14521 #include <stddef.h>
14522 #include <string.h>
14525 main ()
14528 int result = 0;
14529 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14530 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14531 OSF/1 5.1, Solaris 10. */
14533 char *myargv[3];
14534 myargv[0] = "conftest";
14535 myargv[1] = "-+";
14536 myargv[2] = 0;
14537 opterr = 0;
14538 if (getopt (2, myargv, "+a") != '?')
14539 result |= 1;
14541 /* This code succeeds on glibc 2.8, mingw,
14542 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14543 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14545 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14547 optind = 1;
14548 if (getopt (4, argv, "p::") != 'p')
14549 result |= 2;
14550 else if (optarg != NULL)
14551 result |= 4;
14552 else if (getopt (4, argv, "p::") != -1)
14553 result |= 6;
14554 else if (optind != 2)
14555 result |= 8;
14557 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14559 char *argv[] = { "program", "foo", "-p", NULL };
14560 optind = 0;
14561 if (getopt (3, argv, "-p") != 1)
14562 result |= 16;
14563 else if (getopt (3, argv, "-p") != 'p')
14564 result |= 32;
14566 /* This code fails on glibc 2.11. */
14568 char *argv[] = { "program", "-b", "-a", NULL };
14569 optind = opterr = 0;
14570 if (getopt (3, argv, "+:a:b") != 'b')
14571 result |= 64;
14572 else if (getopt (3, argv, "+:a:b") != ':')
14573 result |= 64;
14575 return result;
14578 return 0;
14580 _ACEOF
14581 if ac_fn_c_try_run "$LINENO"; then :
14582 gl_cv_func_getopt_gnu=yes
14583 else
14584 gl_cv_func_getopt_gnu=no
14586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14587 conftest.$ac_objext conftest.beam conftest.$ac_ext
14590 case $gl_had_POSIXLY_CORRECT in
14591 exported) ;;
14592 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14593 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14594 esac
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14598 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14599 if test "$gl_cv_func_getopt_gnu" = "no"; then
14600 gl_replace_getopt=yes
14604 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14605 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14606 ac_have_decl=1
14607 else
14608 ac_have_decl=0
14611 cat >>confdefs.h <<_ACEOF
14612 #define HAVE_DECL_GETENV $ac_have_decl
14613 _ACEOF
14620 if test -n "$gl_replace_getopt"; then :
14624 GETOPT_H=getopt.h
14626 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14630 GNULIB_UNISTD_H_GETOPT=1
14639 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14649 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14660 GNULIB_FCHMODAT=0;
14661 GNULIB_FSTATAT=0;
14662 GNULIB_FUTIMENS=0;
14663 GNULIB_LCHMOD=0;
14664 GNULIB_LSTAT=0;
14665 GNULIB_MKDIRAT=0;
14666 GNULIB_MKFIFO=0;
14667 GNULIB_MKFIFOAT=0;
14668 GNULIB_MKNOD=0;
14669 GNULIB_MKNODAT=0;
14670 GNULIB_STAT=0;
14671 GNULIB_UTIMENSAT=0;
14672 HAVE_FCHMODAT=1;
14673 HAVE_FSTATAT=1;
14674 HAVE_FUTIMENS=1;
14675 HAVE_LCHMOD=1;
14676 HAVE_LSTAT=1;
14677 HAVE_MKDIRAT=1;
14678 HAVE_MKFIFO=1;
14679 HAVE_MKFIFOAT=1;
14680 HAVE_MKNOD=1;
14681 HAVE_MKNODAT=1;
14682 HAVE_UTIMENSAT=1;
14683 REPLACE_FSTAT=0;
14684 REPLACE_FSTATAT=0;
14685 REPLACE_FUTIMENS=0;
14686 REPLACE_LSTAT=0;
14687 REPLACE_MKDIR=0;
14688 REPLACE_MKFIFO=0;
14689 REPLACE_MKNOD=0;
14690 REPLACE_STAT=0;
14691 REPLACE_UTIMENSAT=0;
14696 for ac_func in $ac_func_list
14697 do :
14698 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14699 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14700 eval as_val=\$$as_ac_var
14701 if test "x$as_val" = x""yes; then :
14702 cat >>confdefs.h <<_ACEOF
14703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14704 _ACEOF
14707 done
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14713 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14714 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14715 $as_echo_n "(cached) " >&6
14716 else
14717 rm -f conftest.sym conftest.file
14718 echo >conftest.file
14719 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14720 if test "$cross_compiling" = yes; then :
14721 # When cross-compiling, be pessimistic so we will end up using the
14722 # replacement version of lstat that checks for trailing slashes and
14723 # calls lstat a second time when necessary.
14724 ac_cv_func_lstat_dereferences_slashed_symlink=no
14726 else
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729 $ac_includes_default
14731 main ()
14733 struct stat sbuf;
14734 /* Linux will dereference the symlink and fail, as required by
14735 POSIX. That is better in the sense that it means we will not
14736 have to compile and use the lstat wrapper. */
14737 return lstat ("conftest.sym/", &sbuf) == 0;
14740 return 0;
14742 _ACEOF
14743 if ac_fn_c_try_run "$LINENO"; then :
14744 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14745 else
14746 ac_cv_func_lstat_dereferences_slashed_symlink=no
14748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14749 conftest.$ac_objext conftest.beam conftest.$ac_ext
14752 else
14753 # If the 'ln -s' command failed, then we probably don't even
14754 # have an lstat function.
14755 ac_cv_func_lstat_dereferences_slashed_symlink=no
14757 rm -f conftest.sym conftest.file
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14761 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14762 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14764 cat >>confdefs.h <<_ACEOF
14765 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14766 _ACEOF
14768 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14777 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14782 GNULIB_MKTIME=0;
14783 GNULIB_NANOSLEEP=0;
14784 GNULIB_STRPTIME=0;
14785 GNULIB_TIMEGM=0;
14786 GNULIB_TIME_R=0;
14787 HAVE_DECL_LOCALTIME_R=1;
14788 HAVE_NANOSLEEP=1;
14789 HAVE_STRPTIME=1;
14790 HAVE_TIMEGM=1;
14791 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14792 REPLACE_MKTIME=GNULIB_PORTCHECK;
14793 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14794 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14799 gl_cv_c_multiarch=no
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802 #ifndef __APPLE_CC__
14803 not a universal capable compiler
14804 #endif
14805 typedef int dummy;
14807 _ACEOF
14808 if ac_fn_c_try_compile "$LINENO"; then :
14810 arch=
14811 prev=
14812 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14813 if test -n "$prev"; then
14814 case $word in
14815 i?86 | x86_64 | ppc | ppc64)
14816 if test -z "$arch" || test "$arch" = "$word"; then
14817 arch="$word"
14818 else
14819 gl_cv_c_multiarch=yes
14822 esac
14823 prev=
14824 else
14825 if test "x$word" = "x-arch"; then
14826 prev=arch
14829 done
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 if test $gl_cv_c_multiarch = yes; then
14834 APPLE_UNIVERSAL_BUILD=1
14835 else
14836 APPLE_UNIVERSAL_BUILD=0
14845 if test $ac_cv_header_sys_socket_h = no; then
14846 for ac_header in ws2tcpip.h
14847 do :
14848 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14849 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
14850 cat >>confdefs.h <<_ACEOF
14851 #define HAVE_WS2TCPIP_H 1
14852 _ACEOF
14856 done
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14861 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14862 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14868 #include <stdbool.h>
14869 #ifndef bool
14870 "error: bool is not defined"
14871 #endif
14872 #ifndef false
14873 "error: false is not defined"
14874 #endif
14875 #if false
14876 "error: false is not 0"
14877 #endif
14878 #ifndef true
14879 "error: true is not defined"
14880 #endif
14881 #if true != 1
14882 "error: true is not 1"
14883 #endif
14884 #ifndef __bool_true_false_are_defined
14885 "error: __bool_true_false_are_defined is not defined"
14886 #endif
14888 struct s { _Bool s: 1; _Bool t; } s;
14890 char a[true == 1 ? 1 : -1];
14891 char b[false == 0 ? 1 : -1];
14892 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14893 char d[(bool) 0.5 == true ? 1 : -1];
14894 /* See body of main program for 'e'. */
14895 char f[(_Bool) 0.0 == false ? 1 : -1];
14896 char g[true];
14897 char h[sizeof (_Bool)];
14898 char i[sizeof s.t];
14899 enum { j = false, k = true, l = false * true, m = true * 256 };
14900 /* The following fails for
14901 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14902 _Bool n[m];
14903 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14904 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14905 /* Catch a bug in an HP-UX C compiler. See
14906 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14907 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14909 _Bool q = true;
14910 _Bool *pq = &q;
14913 main ()
14916 bool e = &s;
14917 *pq |= q;
14918 *pq |= ! q;
14919 /* Refer to every declared value, to avoid compiler optimizations. */
14920 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14921 + !m + !n + !o + !p + !q + !pq);
14924 return 0;
14926 _ACEOF
14927 if ac_fn_c_try_compile "$LINENO"; then :
14928 ac_cv_header_stdbool_h=yes
14929 else
14930 ac_cv_header_stdbool_h=no
14932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14935 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14936 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14937 if test "x$ac_cv_type__Bool" = x""yes; then :
14939 cat >>confdefs.h <<_ACEOF
14940 #define HAVE__BOOL 1
14941 _ACEOF
14948 REPLACE_NULL=0;
14949 HAVE_WCHAR_T=1;
14950 STDDEF_H='';
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14954 $as_echo_n "checking for wchar_t... " >&6; }
14955 if test "${gt_cv_c_wchar_t+set}" = set; then :
14956 $as_echo_n "(cached) " >&6
14957 else
14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14960 #include <stddef.h>
14961 wchar_t foo = (wchar_t)'\0';
14963 main ()
14967 return 0;
14969 _ACEOF
14970 if ac_fn_c_try_compile "$LINENO"; then :
14971 gt_cv_c_wchar_t=yes
14972 else
14973 gt_cv_c_wchar_t=no
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14978 $as_echo "$gt_cv_c_wchar_t" >&6; }
14979 if test $gt_cv_c_wchar_t = yes; then
14981 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14987 $as_echo_n "checking for unsigned long long int... " >&6; }
14988 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14989 $as_echo_n "(cached) " >&6
14990 else
14991 ac_cv_type_unsigned_long_long_int=yes
14992 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14996 /* For now, do not test the preprocessor; as of 2007 there are too many
14997 implementations with broken preprocessors. Perhaps this can
14998 be revisited in 2012. In the meantime, code should not expect
14999 #if to work with literals wider than 32 bits. */
15000 /* Test literals. */
15001 long long int ll = 9223372036854775807ll;
15002 long long int nll = -9223372036854775807LL;
15003 unsigned long long int ull = 18446744073709551615ULL;
15004 /* Test constant expressions. */
15005 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15006 ? 1 : -1)];
15007 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15008 ? 1 : -1)];
15009 int i = 63;
15011 main ()
15013 /* Test availability of runtime routines for shift and division. */
15014 long long int llmax = 9223372036854775807ll;
15015 unsigned long long int ullmax = 18446744073709551615ull;
15016 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15017 | (llmax / ll) | (llmax % ll)
15018 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15019 | (ullmax / ull) | (ullmax % ull));
15021 return 0;
15024 _ACEOF
15025 if ac_fn_c_try_link "$LINENO"; then :
15027 else
15028 ac_cv_type_unsigned_long_long_int=no
15030 rm -f core conftest.err conftest.$ac_objext \
15031 conftest$ac_exeext conftest.$ac_ext
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15035 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15036 if test $ac_cv_type_unsigned_long_long_int = yes; then
15038 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15045 $as_echo_n "checking for long long int... " >&6; }
15046 if test "${ac_cv_type_long_long_int+set}" = set; then :
15047 $as_echo_n "(cached) " >&6
15048 else
15049 ac_cv_type_long_long_int=yes
15050 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15051 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
15052 if test $ac_cv_type_long_long_int = yes; then
15053 if test "$cross_compiling" = yes; then :
15055 else
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15058 #include <limits.h>
15059 #ifndef LLONG_MAX
15060 # define HALF \
15061 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15062 # define LLONG_MAX (HALF - 1 + HALF)
15063 #endif
15065 main ()
15067 long long int n = 1;
15068 int i;
15069 for (i = 0; ; i++)
15071 long long int m = n << i;
15072 if (m >> i != n)
15073 return 1;
15074 if (LLONG_MAX / 2 < m)
15075 break;
15077 return 0;
15079 return 0;
15081 _ACEOF
15082 if ac_fn_c_try_run "$LINENO"; then :
15084 else
15085 ac_cv_type_long_long_int=no
15087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15088 conftest.$ac_objext conftest.beam conftest.$ac_ext
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15095 $as_echo "$ac_cv_type_long_long_int" >&6; }
15096 if test $ac_cv_type_long_long_int = yes; then
15098 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15107 GNULIB_DPRINTF=0;
15108 GNULIB_FCLOSE=0;
15109 GNULIB_FFLUSH=0;
15110 GNULIB_FOPEN=0;
15111 GNULIB_FPRINTF=0;
15112 GNULIB_FPRINTF_POSIX=0;
15113 GNULIB_FPURGE=0;
15114 GNULIB_FPUTC=0;
15115 GNULIB_FPUTS=0;
15116 GNULIB_FREOPEN=0;
15117 GNULIB_FSEEK=0;
15118 GNULIB_FSEEKO=0;
15119 GNULIB_FTELL=0;
15120 GNULIB_FTELLO=0;
15121 GNULIB_FWRITE=0;
15122 GNULIB_GETDELIM=0;
15123 GNULIB_GETLINE=0;
15124 GNULIB_OBSTACK_PRINTF=0;
15125 GNULIB_OBSTACK_PRINTF_POSIX=0;
15126 GNULIB_PERROR=0;
15127 GNULIB_POPEN=0;
15128 GNULIB_PRINTF=0;
15129 GNULIB_PRINTF_POSIX=0;
15130 GNULIB_PUTC=0;
15131 GNULIB_PUTCHAR=0;
15132 GNULIB_PUTS=0;
15133 GNULIB_REMOVE=0;
15134 GNULIB_RENAME=0;
15135 GNULIB_RENAMEAT=0;
15136 GNULIB_SNPRINTF=0;
15137 GNULIB_SPRINTF_POSIX=0;
15138 GNULIB_STDIO_H_SIGPIPE=0;
15139 GNULIB_TMPFILE=0;
15140 GNULIB_VASPRINTF=0;
15141 GNULIB_VDPRINTF=0;
15142 GNULIB_VFPRINTF=0;
15143 GNULIB_VFPRINTF_POSIX=0;
15144 GNULIB_VPRINTF=0;
15145 GNULIB_VPRINTF_POSIX=0;
15146 GNULIB_VSNPRINTF=0;
15147 GNULIB_VSPRINTF_POSIX=0;
15148 HAVE_DECL_FPURGE=1;
15149 HAVE_DECL_FSEEKO=1;
15150 HAVE_DECL_FTELLO=1;
15151 HAVE_DECL_GETDELIM=1;
15152 HAVE_DECL_GETLINE=1;
15153 HAVE_DECL_OBSTACK_PRINTF=1;
15154 HAVE_DECL_SNPRINTF=1;
15155 HAVE_DECL_VSNPRINTF=1;
15156 HAVE_DPRINTF=1;
15157 HAVE_FSEEKO=1;
15158 HAVE_FTELLO=1;
15159 HAVE_RENAMEAT=1;
15160 HAVE_VASPRINTF=1;
15161 HAVE_VDPRINTF=1;
15162 REPLACE_DPRINTF=0;
15163 REPLACE_FCLOSE=0;
15164 REPLACE_FFLUSH=0;
15165 REPLACE_FOPEN=0;
15166 REPLACE_FPRINTF=0;
15167 REPLACE_FPURGE=0;
15168 REPLACE_FREOPEN=0;
15169 REPLACE_FSEEK=0;
15170 REPLACE_FSEEKO=0;
15171 REPLACE_FTELL=0;
15172 REPLACE_FTELLO=0;
15173 REPLACE_GETDELIM=0;
15174 REPLACE_GETLINE=0;
15175 REPLACE_OBSTACK_PRINTF=0;
15176 REPLACE_PERROR=0;
15177 REPLACE_POPEN=0;
15178 REPLACE_PRINTF=0;
15179 REPLACE_REMOVE=0;
15180 REPLACE_RENAME=0;
15181 REPLACE_RENAMEAT=0;
15182 REPLACE_SNPRINTF=0;
15183 REPLACE_SPRINTF=0;
15184 REPLACE_STDIO_WRITE_FUNCS=0;
15185 REPLACE_TMPFILE=0;
15186 REPLACE_VASPRINTF=0;
15187 REPLACE_VDPRINTF=0;
15188 REPLACE_VFPRINTF=0;
15189 REPLACE_VPRINTF=0;
15190 REPLACE_VSNPRINTF=0;
15191 REPLACE_VSPRINTF=0;
15194 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15196 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
15198 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15208 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15209 if test "${ac_cv_header_stat_broken+set}" = set; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214 #include <sys/types.h>
15215 #include <sys/stat.h>
15217 #if defined S_ISBLK && defined S_IFDIR
15218 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15219 #endif
15221 #if defined S_ISBLK && defined S_IFCHR
15222 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15223 #endif
15225 #if defined S_ISLNK && defined S_IFREG
15226 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15227 #endif
15229 #if defined S_ISSOCK && defined S_IFREG
15230 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15231 #endif
15233 _ACEOF
15234 if ac_fn_c_try_compile "$LINENO"; then :
15235 ac_cv_header_stat_broken=no
15236 else
15237 ac_cv_header_stat_broken=yes
15239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15242 $as_echo "$ac_cv_header_stat_broken" >&6; }
15243 if test $ac_cv_header_stat_broken = yes; then
15245 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15252 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15253 if test "${ac_cv_c_restrict+set}" = set; then :
15254 $as_echo_n "(cached) " >&6
15255 else
15256 ac_cv_c_restrict=no
15257 # The order here caters to the fact that C++ does not require restrict.
15258 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15261 typedef int * int_ptr;
15262 int foo (int_ptr $ac_kw ip) {
15263 return ip[0];
15266 main ()
15268 int s[1];
15269 int * $ac_kw t = s;
15270 t[0] = 0;
15271 return foo(t)
15273 return 0;
15275 _ACEOF
15276 if ac_fn_c_try_compile "$LINENO"; then :
15277 ac_cv_c_restrict=$ac_kw
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 test "$ac_cv_c_restrict" != no && break
15281 done
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15285 $as_echo "$ac_cv_c_restrict" >&6; }
15287 case $ac_cv_c_restrict in
15288 restrict) ;;
15289 no) $as_echo "#define restrict /**/" >>confdefs.h
15291 *) cat >>confdefs.h <<_ACEOF
15292 #define restrict $ac_cv_c_restrict
15293 _ACEOF
15295 esac
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15302 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15303 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
15304 $as_echo_n "(cached) " >&6
15305 else
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15308 #include <time.h>
15311 main ()
15313 static struct timespec x; x.tv_sec = x.tv_nsec;
15315 return 0;
15317 _ACEOF
15318 if ac_fn_c_try_compile "$LINENO"; then :
15319 gl_cv_sys_struct_timespec_in_time_h=yes
15320 else
15321 gl_cv_sys_struct_timespec_in_time_h=no
15323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15326 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15328 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15329 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15330 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15331 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15332 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15333 else
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15335 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15336 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
15337 $as_echo_n "(cached) " >&6
15338 else
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341 #include <sys/time.h>
15344 main ()
15346 static struct timespec x; x.tv_sec = x.tv_nsec;
15348 return 0;
15350 _ACEOF
15351 if ac_fn_c_try_compile "$LINENO"; then :
15352 gl_cv_sys_struct_timespec_in_sys_time_h=yes
15353 else
15354 gl_cv_sys_struct_timespec_in_sys_time_h=no
15356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15359 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15360 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15361 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15362 else
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15364 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15365 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
15366 $as_echo_n "(cached) " >&6
15367 else
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15370 #include <pthread.h>
15373 main ()
15375 static struct timespec x; x.tv_sec = x.tv_nsec;
15377 return 0;
15379 _ACEOF
15380 if ac_fn_c_try_compile "$LINENO"; then :
15381 gl_cv_sys_struct_timespec_in_pthread_h=yes
15382 else
15383 gl_cv_sys_struct_timespec_in_pthread_h=no
15385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15388 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15389 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15390 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15409 if test $gl_cv_have_include_next = yes; then
15410 gl_cv_next_time_h='<'time.h'>'
15411 else
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15413 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15414 if test "${gl_cv_next_time_h+set}" = set; then :
15415 $as_echo_n "(cached) " >&6
15416 else
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15420 #include <time.h>
15422 _ACEOF
15423 case "$host_os" in
15424 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15425 *) gl_absname_cpp="$ac_cpp" ;;
15426 esac
15427 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15428 sed -n '\#/time.h#{
15429 s#.*"\(.*/time.h\)".*#\1#
15430 s#^/[^/]#//&#
15433 }'`'"'
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15438 $as_echo "$gl_cv_next_time_h" >&6; }
15440 NEXT_TIME_H=$gl_cv_next_time_h
15442 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15444 gl_next_as_first_directive='<'time.h'>'
15445 else
15446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15447 gl_next_as_first_directive=$gl_cv_next_time_h
15449 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15456 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15457 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
15458 ac_have_decl=1
15459 else
15460 ac_have_decl=0
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15465 _ACEOF
15470 if false; then
15471 GL_COND_LIBTOOL_TRUE=
15472 GL_COND_LIBTOOL_FALSE='#'
15473 else
15474 GL_COND_LIBTOOL_TRUE='#'
15475 GL_COND_LIBTOOL_FALSE=
15478 gl_cond_libtool=false
15479 gl_libdeps=
15480 gl_ltlibdeps=
15481 gl_m4_base='m4'
15491 gl_source_base='lib'
15492 # Code from module arg-nonnull:
15493 # Code from module c++defs:
15494 # Code from module crypto/md5:
15504 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15511 # Code from module dosname:
15512 # Code from module dtoastr:
15514 # Code from module extensions:
15515 # Code from module filemode:
15526 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15530 # Code from module getloadavg:
15533 # Persuade glibc <stdlib.h> to declare getloadavg().
15536 # Make sure getloadavg.c is where it belongs, at configure-time.
15537 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15538 as_fn_error "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15540 gl_save_LIBS=$LIBS
15542 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15543 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15544 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15545 if test "x$ac_cv_func_getloadavg" = x""yes; then :
15547 else
15548 gl_have_func=no
15550 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15551 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15552 # to get the right answer into the cache.
15553 # For kstat on solaris, we need to test for libelf and libkvm to force the
15554 # definition of SVR4 below.
15555 if test $gl_have_func = no; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15557 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15558 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15559 $as_echo_n "(cached) " >&6
15560 else
15561 ac_check_lib_save_LIBS=$LIBS
15562 LIBS="-lelf $LIBS"
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15566 /* Override any GCC internal prototype to avoid an error.
15567 Use char because int might match the return type of a GCC
15568 builtin and then its argument prototype would still apply. */
15569 #ifdef __cplusplus
15570 extern "C"
15571 #endif
15572 char elf_begin ();
15574 main ()
15576 return elf_begin ();
15578 return 0;
15580 _ACEOF
15581 if ac_fn_c_try_link "$LINENO"; then :
15582 ac_cv_lib_elf_elf_begin=yes
15583 else
15584 ac_cv_lib_elf_elf_begin=no
15586 rm -f core conftest.err conftest.$ac_objext \
15587 conftest$ac_exeext conftest.$ac_ext
15588 LIBS=$ac_check_lib_save_LIBS
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15591 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15592 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
15593 LIBS="-lelf $LIBS"
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15597 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15598 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15599 $as_echo_n "(cached) " >&6
15600 else
15601 ac_check_lib_save_LIBS=$LIBS
15602 LIBS="-lkvm $LIBS"
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15606 /* Override any GCC internal prototype to avoid an error.
15607 Use char because int might match the return type of a GCC
15608 builtin and then its argument prototype would still apply. */
15609 #ifdef __cplusplus
15610 extern "C"
15611 #endif
15612 char kvm_open ();
15614 main ()
15616 return kvm_open ();
15618 return 0;
15620 _ACEOF
15621 if ac_fn_c_try_link "$LINENO"; then :
15622 ac_cv_lib_kvm_kvm_open=yes
15623 else
15624 ac_cv_lib_kvm_kvm_open=no
15626 rm -f core conftest.err conftest.$ac_objext \
15627 conftest$ac_exeext conftest.$ac_ext
15628 LIBS=$ac_check_lib_save_LIBS
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15631 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15632 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
15633 LIBS="-lkvm $LIBS"
15636 # Check for the 4.4BSD definition of getloadavg.
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15638 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15639 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15640 $as_echo_n "(cached) " >&6
15641 else
15642 ac_check_lib_save_LIBS=$LIBS
15643 LIBS="-lutil $LIBS"
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15647 /* Override any GCC internal prototype to avoid an error.
15648 Use char because int might match the return type of a GCC
15649 builtin and then its argument prototype would still apply. */
15650 #ifdef __cplusplus
15651 extern "C"
15652 #endif
15653 char getloadavg ();
15655 main ()
15657 return getloadavg ();
15659 return 0;
15661 _ACEOF
15662 if ac_fn_c_try_link "$LINENO"; then :
15663 ac_cv_lib_util_getloadavg=yes
15664 else
15665 ac_cv_lib_util_getloadavg=no
15667 rm -f core conftest.err conftest.$ac_objext \
15668 conftest$ac_exeext conftest.$ac_ext
15669 LIBS=$ac_check_lib_save_LIBS
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15672 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15673 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
15674 LIBS="-lutil $LIBS" gl_have_func=yes
15679 if test $gl_have_func = no; then
15680 # There is a commonly available library for RS/6000 AIX.
15681 # Since it is not a standard part of AIX, it might be installed locally.
15682 gl_getloadavg_LIBS=$LIBS
15683 LIBS="-L/usr/local/lib $LIBS"
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15685 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15686 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15687 $as_echo_n "(cached) " >&6
15688 else
15689 ac_check_lib_save_LIBS=$LIBS
15690 LIBS="-lgetloadavg $LIBS"
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15694 /* Override any GCC internal prototype to avoid an error.
15695 Use char because int might match the return type of a GCC
15696 builtin and then its argument prototype would still apply. */
15697 #ifdef __cplusplus
15698 extern "C"
15699 #endif
15700 char getloadavg ();
15702 main ()
15704 return getloadavg ();
15706 return 0;
15708 _ACEOF
15709 if ac_fn_c_try_link "$LINENO"; then :
15710 ac_cv_lib_getloadavg_getloadavg=yes
15711 else
15712 ac_cv_lib_getloadavg_getloadavg=no
15714 rm -f core conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15716 LIBS=$ac_check_lib_save_LIBS
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15719 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15720 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
15721 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15722 else
15723 LIBS=$gl_getloadavg_LIBS
15728 # Set up the replacement function if necessary.
15729 if test $gl_have_func = no; then
15738 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15741 # Figure out what our getloadavg.c needs.
15743 # Solaris has libkstat which does not require root.
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15745 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15746 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15747 $as_echo_n "(cached) " >&6
15748 else
15749 ac_check_lib_save_LIBS=$LIBS
15750 LIBS="-lkstat $LIBS"
15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15754 /* Override any GCC internal prototype to avoid an error.
15755 Use char because int might match the return type of a GCC
15756 builtin and then its argument prototype would still apply. */
15757 #ifdef __cplusplus
15758 extern "C"
15759 #endif
15760 char kstat_open ();
15762 main ()
15764 return kstat_open ();
15766 return 0;
15768 _ACEOF
15769 if ac_fn_c_try_link "$LINENO"; then :
15770 ac_cv_lib_kstat_kstat_open=yes
15771 else
15772 ac_cv_lib_kstat_kstat_open=no
15774 rm -f core conftest.err conftest.$ac_objext \
15775 conftest$ac_exeext conftest.$ac_ext
15776 LIBS=$ac_check_lib_save_LIBS
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15779 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15780 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
15781 cat >>confdefs.h <<_ACEOF
15782 #define HAVE_LIBKSTAT 1
15783 _ACEOF
15785 LIBS="-lkstat $LIBS"
15789 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15791 # On HPUX9, an unprivileged user can get load averages this way.
15792 if test $gl_have_func = no; then
15793 for ac_func in pstat_getdynamic
15794 do :
15795 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15796 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
15797 cat >>confdefs.h <<_ACEOF
15798 #define HAVE_PSTAT_GETDYNAMIC 1
15799 _ACEOF
15800 gl_have_func=yes
15802 done
15806 # AIX has libperfstat which does not require root
15807 if test $gl_have_func = no; then
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15809 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15810 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15811 $as_echo_n "(cached) " >&6
15812 else
15813 ac_check_lib_save_LIBS=$LIBS
15814 LIBS="-lperfstat $LIBS"
15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15818 /* Override any GCC internal prototype to avoid an error.
15819 Use char because int might match the return type of a GCC
15820 builtin and then its argument prototype would still apply. */
15821 #ifdef __cplusplus
15822 extern "C"
15823 #endif
15824 char perfstat_cpu_total ();
15826 main ()
15828 return perfstat_cpu_total ();
15830 return 0;
15832 _ACEOF
15833 if ac_fn_c_try_link "$LINENO"; then :
15834 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15835 else
15836 ac_cv_lib_perfstat_perfstat_cpu_total=no
15838 rm -f core conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
15840 LIBS=$ac_check_lib_save_LIBS
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15843 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15844 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
15845 cat >>confdefs.h <<_ACEOF
15846 #define HAVE_LIBPERFSTAT 1
15847 _ACEOF
15849 LIBS="-lperfstat $LIBS"
15853 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15856 if test $gl_have_func = no; then
15857 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15858 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
15859 gl_have_func=yes
15861 $as_echo "#define DGUX 1" >>confdefs.h
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15864 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15865 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 ac_check_lib_save_LIBS=$LIBS
15869 LIBS="-ldgc $LIBS"
15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15873 /* Override any GCC internal prototype to avoid an error.
15874 Use char because int might match the return type of a GCC
15875 builtin and then its argument prototype would still apply. */
15876 #ifdef __cplusplus
15877 extern "C"
15878 #endif
15879 char dg_sys_info ();
15881 main ()
15883 return dg_sys_info ();
15885 return 0;
15887 _ACEOF
15888 if ac_fn_c_try_link "$LINENO"; then :
15889 ac_cv_lib_dgc_dg_sys_info=yes
15890 else
15891 ac_cv_lib_dgc_dg_sys_info=no
15893 rm -f core conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
15895 LIBS=$ac_check_lib_save_LIBS
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15898 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15899 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
15900 cat >>confdefs.h <<_ACEOF
15901 #define HAVE_LIBDGC 1
15902 _ACEOF
15904 LIBS="-ldgc $LIBS"
15913 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15914 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15915 # Irix 4.0.5F has the header but not the library.
15916 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15917 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15918 gl_have_func=yes
15920 $as_echo "#define SVR4 1" >>confdefs.h
15924 if test $gl_have_func = no; then
15925 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15926 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
15927 gl_have_func=yes
15929 $as_echo "#define UMAX 1" >>confdefs.h
15932 $as_echo "#define UMAX4_3 1" >>confdefs.h
15939 if test $gl_have_func = no; then
15940 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15941 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
15942 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15949 if test $gl_have_func = no; then
15950 for ac_header in mach/mach.h
15951 do :
15952 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15953 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
15954 cat >>confdefs.h <<_ACEOF
15955 #define HAVE_MACH_MACH_H 1
15956 _ACEOF
15960 done
15964 for ac_header in nlist.h
15965 do :
15966 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15967 if test "x$ac_cv_header_nlist_h" = x""yes; then :
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_NLIST_H 1
15970 _ACEOF
15971 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15973 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
15975 cat >>confdefs.h <<_ACEOF
15976 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15977 _ACEOF
15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15984 #include <nlist.h>
15986 main ()
15988 struct nlist x;
15989 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15990 x.n_un.n_name = "";
15991 #else
15992 x.n_name = "";
15993 #endif
15995 return 0;
15997 _ACEOF
15998 if ac_fn_c_try_link "$LINENO"; then :
16000 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
16003 rm -f core conftest.err conftest.$ac_objext \
16004 conftest$ac_exeext conftest.$ac_ext
16008 done
16014 if test "x$gl_save_LIBS" = x; then
16015 GETLOADAVG_LIBS=$LIBS
16016 else
16017 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
16019 LIBS=$gl_save_LIBS
16022 # Test whether the system declares getloadavg. Solaris has the function
16023 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
16024 for ac_header in sys/loadavg.h
16025 do :
16026 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
16027 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
16028 cat >>confdefs.h <<_ACEOF
16029 #define HAVE_SYS_LOADAVG_H 1
16030 _ACEOF
16034 done
16036 if test $ac_cv_header_sys_loadavg_h = yes; then
16037 HAVE_SYS_LOADAVG_H=1
16038 else
16039 HAVE_SYS_LOADAVG_H=0
16041 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16042 # include <sys/loadavg.h>
16043 #endif
16044 #include <stdlib.h>
16046 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
16048 else
16049 HAVE_DECL_GETLOADAVG=0
16056 GNULIB_GETLOADAVG=1
16060 # Code from module getopt-gnu:
16067 # Code from module getopt-posix:
16073 if test -n "$gl_replace_getopt"; then :
16077 GETOPT_H=getopt.h
16079 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16083 GNULIB_UNISTD_H_GETOPT=1
16092 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
16102 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
16112 # Code from module gettext-h:
16115 # Code from module ignore-value:
16117 # Code from module include_next:
16118 # Code from module intprops:
16119 # Code from module lstat:
16123 if test $ac_cv_func_lstat = yes; then
16125 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
16126 REPLACE_LSTAT=1
16128 # Prerequisites of lib/lstat.c.
16130 else
16131 HAVE_LSTAT=0
16137 GNULIB_LSTAT=1
16141 # Code from module mktime:
16147 if test $APPLE_UNIVERSAL_BUILD = 1; then
16148 # A universal build on Apple MacOS X platforms.
16149 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
16150 # But we need a configuration result that is valid in both modes.
16151 ac_cv_func_working_mktime=no
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
16154 $as_echo_n "checking for working mktime... " >&6; }
16155 if test "${ac_cv_func_working_mktime+set}" = set; then :
16156 $as_echo_n "(cached) " >&6
16157 else
16158 if test "$cross_compiling" = yes; then :
16159 ac_cv_func_working_mktime=no
16160 else
16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16163 /* Test program from Paul Eggert and Tony Leneis. */
16164 #include <limits.h>
16165 #include <stdlib.h>
16166 #include <time.h>
16168 #ifdef HAVE_UNISTD_H
16169 # include <unistd.h>
16170 #endif
16172 #ifndef HAVE_ALARM
16173 # define alarm(X) /* empty */
16174 #endif
16176 /* Work around redefinition to rpl_putenv by other config tests. */
16177 #undef putenv
16179 static time_t time_t_max;
16180 static time_t time_t_min;
16182 /* Values we'll use to set the TZ environment variable. */
16183 static char *tz_strings[] = {
16184 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16185 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16187 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16189 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16190 Based on a problem report from Andreas Jaeger. */
16191 static int
16192 spring_forward_gap ()
16194 /* glibc (up to about 1998-10-07) failed this test. */
16195 struct tm tm;
16197 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16198 instead of "TZ=America/Vancouver" in order to detect the bug even
16199 on systems that don't support the Olson extension, or don't have the
16200 full zoneinfo tables installed. */
16201 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16203 tm.tm_year = 98;
16204 tm.tm_mon = 3;
16205 tm.tm_mday = 5;
16206 tm.tm_hour = 2;
16207 tm.tm_min = 0;
16208 tm.tm_sec = 0;
16209 tm.tm_isdst = -1;
16210 return mktime (&tm) != (time_t) -1;
16213 static int
16214 mktime_test1 (time_t now)
16216 struct tm *lt;
16217 return ! (lt = localtime (&now)) || mktime (lt) == now;
16220 static int
16221 mktime_test (time_t now)
16223 return (mktime_test1 (now)
16224 && mktime_test1 ((time_t) (time_t_max - now))
16225 && mktime_test1 ((time_t) (time_t_min + now)));
16228 static int
16229 irix_6_4_bug ()
16231 /* Based on code from Ariel Faigon. */
16232 struct tm tm;
16233 tm.tm_year = 96;
16234 tm.tm_mon = 3;
16235 tm.tm_mday = 0;
16236 tm.tm_hour = 0;
16237 tm.tm_min = 0;
16238 tm.tm_sec = 0;
16239 tm.tm_isdst = -1;
16240 mktime (&tm);
16241 return tm.tm_mon == 2 && tm.tm_mday == 31;
16244 static int
16245 bigtime_test (int j)
16247 struct tm tm;
16248 time_t now;
16249 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16250 now = mktime (&tm);
16251 if (now != (time_t) -1)
16253 struct tm *lt = localtime (&now);
16254 if (! (lt
16255 && lt->tm_year == tm.tm_year
16256 && lt->tm_mon == tm.tm_mon
16257 && lt->tm_mday == tm.tm_mday
16258 && lt->tm_hour == tm.tm_hour
16259 && lt->tm_min == tm.tm_min
16260 && lt->tm_sec == tm.tm_sec
16261 && lt->tm_yday == tm.tm_yday
16262 && lt->tm_wday == tm.tm_wday
16263 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16264 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16265 return 0;
16267 return 1;
16270 static int
16271 year_2050_test ()
16273 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16274 ignoring leap seconds. */
16275 unsigned long int answer = 2527315200UL;
16277 struct tm tm;
16278 time_t t;
16279 tm.tm_year = 2050 - 1900;
16280 tm.tm_mon = 2 - 1;
16281 tm.tm_mday = 1;
16282 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16283 tm.tm_isdst = -1;
16285 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16286 instead of "TZ=America/Vancouver" in order to detect the bug even
16287 on systems that don't support the Olson extension, or don't have the
16288 full zoneinfo tables installed. */
16289 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16291 t = mktime (&tm);
16293 /* Check that the result is either a failure, or close enough
16294 to the correct answer that we can assume the discrepancy is
16295 due to leap seconds. */
16296 return (t == (time_t) -1
16297 || (0 < t && answer - 120 <= t && t <= answer + 120));
16301 main ()
16303 int result = 0;
16304 time_t t, delta;
16305 int i, j;
16306 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16307 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16309 /* This test makes some buggy mktime implementations loop.
16310 Give up after 60 seconds; a mktime slower than that
16311 isn't worth using anyway. */
16312 alarm (60);
16314 time_t_max = (! time_t_signed
16315 ? (time_t) -1
16316 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16317 * 2 + 1));
16318 time_t_min = (! time_t_signed
16319 ? (time_t) 0
16320 : time_t_signed_magnitude
16321 ? ~ (time_t) 0
16322 : ~ time_t_max);
16324 delta = time_t_max / 997; /* a suitable prime number */
16325 for (i = 0; i < N_STRINGS; i++)
16327 if (tz_strings[i])
16328 putenv (tz_strings[i]);
16330 for (t = 0; t <= time_t_max - delta; t += delta)
16331 if (! mktime_test (t))
16332 result |= 1;
16333 if (! (mktime_test ((time_t) 1)
16334 && mktime_test ((time_t) (60 * 60))
16335 && mktime_test ((time_t) (60 * 60 * 24))))
16336 result |= 2;
16338 for (j = 1; ; j <<= 1)
16339 if (! bigtime_test (j))
16340 result |= 4;
16341 else if (INT_MAX / 2 < j)
16342 break;
16343 if (! bigtime_test (INT_MAX))
16344 result |= 8;
16346 if (! irix_6_4_bug ())
16347 result |= 16;
16348 if (! spring_forward_gap ())
16349 result |= 32;
16350 if (! year_2050_test ())
16351 result |= 64;
16352 return result;
16354 _ACEOF
16355 if ac_fn_c_try_run "$LINENO"; then :
16356 ac_cv_func_working_mktime=yes
16357 else
16358 ac_cv_func_working_mktime=no
16360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16361 conftest.$ac_objext conftest.beam conftest.$ac_ext
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16366 $as_echo "$ac_cv_func_working_mktime" >&6; }
16367 if test $ac_cv_func_working_mktime = no; then
16376 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
16380 if test $ac_cv_func_working_mktime = no; then
16381 REPLACE_MKTIME=1
16385 else
16386 REPLACE_MKTIME=0
16392 GNULIB_MKTIME=1
16396 # Code from module multiarch:
16398 # Code from module readlink:
16402 if test $ac_cv_func_readlink = no; then
16403 HAVE_READLINK=0
16412 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16417 else
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16419 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16420 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16421 $as_echo_n "(cached) " >&6
16422 else
16423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h. */
16425 #include <unistd.h>
16426 /* Cause compilation failure if original declaration has wrong type. */
16427 ssize_t readlink (const char *, char *, size_t);
16429 main ()
16433 return 0;
16435 _ACEOF
16436 if ac_fn_c_try_compile "$LINENO"; then :
16437 gl_cv_decl_readlink_works=yes
16438 else
16439 gl_cv_decl_readlink_works=no
16441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16444 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16446 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16447 if test "${gl_cv_func_readlink_works+set}" = set; then :
16448 $as_echo_n "(cached) " >&6
16449 else
16450 # We have readlink, so assume ln -s works.
16451 ln -s conftest.no-such conftest.link
16452 ln -s conftest.link conftest.lnk2
16453 if test "$cross_compiling" = yes; then :
16454 gl_cv_func_readlink_works="guessing no"
16455 else
16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16458 #include <unistd.h>
16461 main ()
16463 char buf[20];
16464 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16466 return 0;
16468 _ACEOF
16469 if ac_fn_c_try_run "$LINENO"; then :
16470 gl_cv_func_readlink_works=yes
16471 else
16472 gl_cv_func_readlink_works=no
16474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16475 conftest.$ac_objext conftest.beam conftest.$ac_ext
16478 rm -f conftest.link conftest.lnk2
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16481 $as_echo "$gl_cv_func_readlink_works" >&6; }
16482 if test "$gl_cv_func_readlink_works" != yes; then
16484 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16486 REPLACE_READLINK=1
16495 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16497 elif test "$gl_cv_decl_readlink_works" != yes; then
16498 REPLACE_READLINK=1
16507 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16515 GNULIB_READLINK=1
16519 # Code from module socklen:
16520 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16521 /* <sys/types.h> is not needed according to POSIX, but the
16522 <sys/socket.h> in i386-unknown-freebsd4.10 and
16523 powerpc-apple-darwin5.5 required it. */
16524 #include <sys/types.h>
16525 #if HAVE_SYS_SOCKET_H
16526 # include <sys/socket.h>
16527 #elif HAVE_WS2TCPIP_H
16528 # include <ws2tcpip.h>
16529 #endif
16532 if test "x$ac_cv_type_socklen_t" = x""yes; then :
16534 else
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16536 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16537 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
16538 $as_echo_n "(cached) " >&6
16539 else
16540 # Systems have either "struct sockaddr *" or
16541 # "void *" as the second argument to getpeername
16542 gl_cv_socklen_t_equiv=
16543 for arg2 in "struct sockaddr" void; do
16544 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16547 #include <sys/types.h>
16548 #include <sys/socket.h>
16550 int getpeername (int, $arg2 *, $t *);
16552 main ()
16554 $t len;
16555 getpeername (0, 0, &len);
16557 return 0;
16559 _ACEOF
16560 if ac_fn_c_try_compile "$LINENO"; then :
16561 gl_cv_socklen_t_equiv="$t"
16563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564 test "$gl_cv_socklen_t_equiv" != "" && break
16565 done
16566 test "$gl_cv_socklen_t_equiv" != "" && break
16567 done
16571 if test "$gl_cv_socklen_t_equiv" = ""; then
16572 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16575 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16577 cat >>confdefs.h <<_ACEOF
16578 #define socklen_t $gl_cv_socklen_t_equiv
16579 _ACEOF
16583 # Code from module stat:
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16588 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16589 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16590 $as_echo_n "(cached) " >&6
16591 else
16592 if test "$cross_compiling" = yes; then :
16593 case $host_os in
16594 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16595 *) gl_cv_func_stat_dir_slash="guessing yes";;
16596 esac
16597 else
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 #include <sys/stat.h>
16603 main ()
16605 struct stat st; return stat (".", &st) != stat ("./", &st);
16607 return 0;
16609 _ACEOF
16610 if ac_fn_c_try_run "$LINENO"; then :
16611 gl_cv_func_stat_dir_slash=yes
16612 else
16613 gl_cv_func_stat_dir_slash=no
16615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16616 conftest.$ac_objext conftest.beam conftest.$ac_ext
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16621 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16623 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16624 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16625 $as_echo_n "(cached) " >&6
16626 else
16627 touch conftest.tmp
16628 # Assume that if we have lstat, we can also check symlinks.
16629 if test $ac_cv_func_lstat = yes; then
16630 ln -s conftest.tmp conftest.lnk
16632 if test "$cross_compiling" = yes; then :
16633 gl_cv_func_stat_file_slash="guessing no"
16634 else
16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636 /* end confdefs.h. */
16637 #include <sys/stat.h>
16640 main ()
16642 int result = 0;
16643 struct stat st;
16644 if (!stat ("conftest.tmp/", &st))
16645 result |= 1;
16646 #if HAVE_LSTAT
16647 if (!stat ("conftest.lnk/", &st))
16648 result |= 2;
16649 #endif
16650 return result;
16653 return 0;
16655 _ACEOF
16656 if ac_fn_c_try_run "$LINENO"; then :
16657 gl_cv_func_stat_file_slash=yes
16658 else
16659 gl_cv_func_stat_file_slash=no
16661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16662 conftest.$ac_objext conftest.beam conftest.$ac_ext
16665 rm -f conftest.tmp conftest.lnk
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16668 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16669 case $gl_cv_func_stat_dir_slash in
16670 *no) REPLACE_STAT=1
16672 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16674 esac
16675 case $gl_cv_func_stat_file_slash in
16676 *no) REPLACE_STAT=1
16678 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16680 esac
16681 if test $REPLACE_STAT = 1; then
16690 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16698 GNULIB_STAT=1
16702 # Code from module stdbool:
16706 # Define two additional variables used in the Makefile substitution.
16708 if test "$ac_cv_header_stdbool_h" = yes; then
16709 STDBOOL_H=''
16710 else
16711 STDBOOL_H='stdbool.h'
16715 if test "$ac_cv_type__Bool" = yes; then
16716 HAVE__BOOL=1
16717 else
16718 HAVE__BOOL=0
16722 # Code from module stddef:
16726 if test $gt_cv_c_wchar_t = no; then
16727 HAVE_WCHAR_T=0
16728 STDDEF_H=stddef.h
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16731 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16732 if test "${gl_cv_decl_null_works+set}" = set; then :
16733 $as_echo_n "(cached) " >&6
16734 else
16735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736 /* end confdefs.h. */
16737 #include <stddef.h>
16738 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16741 main ()
16745 return 0;
16747 _ACEOF
16748 if ac_fn_c_try_compile "$LINENO"; then :
16749 gl_cv_decl_null_works=yes
16750 else
16751 gl_cv_decl_null_works=no
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16756 $as_echo "$gl_cv_decl_null_works" >&6; }
16757 if test $gl_cv_decl_null_works = no; then
16758 REPLACE_NULL=1
16759 STDDEF_H=stddef.h
16761 if test -n "$STDDEF_H"; then
16770 if test $gl_cv_have_include_next = yes; then
16771 gl_cv_next_stddef_h='<'stddef.h'>'
16772 else
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16774 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16775 if test "${gl_cv_next_stddef_h+set}" = set; then :
16776 $as_echo_n "(cached) " >&6
16777 else
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 #include <stddef.h>
16783 _ACEOF
16784 case "$host_os" in
16785 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16786 *) gl_absname_cpp="$ac_cpp" ;;
16787 esac
16788 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16789 sed -n '\#/stddef.h#{
16790 s#.*"\(.*/stddef.h\)".*#\1#
16791 s#^/[^/]#//&#
16794 }'`'"'
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16799 $as_echo "$gl_cv_next_stddef_h" >&6; }
16801 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16803 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16804 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16805 gl_next_as_first_directive='<'stddef.h'>'
16806 else
16807 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16808 gl_next_as_first_directive=$gl_cv_next_stddef_h
16810 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16817 # Code from module stdint:
16821 if test $ac_cv_type_long_long_int = yes; then
16822 HAVE_LONG_LONG_INT=1
16823 else
16824 HAVE_LONG_LONG_INT=0
16828 if test $ac_cv_type_unsigned_long_long_int = yes; then
16829 HAVE_UNSIGNED_LONG_LONG_INT=1
16830 else
16831 HAVE_UNSIGNED_LONG_LONG_INT=0
16836 if test $ac_cv_header_wchar_h = yes; then
16837 HAVE_WCHAR_H=1
16838 else
16839 HAVE_WCHAR_H=0
16843 if test $ac_cv_header_inttypes_h = yes; then
16844 HAVE_INTTYPES_H=1
16845 else
16846 HAVE_INTTYPES_H=0
16850 if test $ac_cv_header_sys_types_h = yes; then
16851 HAVE_SYS_TYPES_H=1
16852 else
16853 HAVE_SYS_TYPES_H=0
16866 if test $gl_cv_have_include_next = yes; then
16867 gl_cv_next_stdint_h='<'stdint.h'>'
16868 else
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16870 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16871 if test "${gl_cv_next_stdint_h+set}" = set; then :
16872 $as_echo_n "(cached) " >&6
16873 else
16875 if test $ac_cv_header_stdint_h = yes; then
16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16880 #include <stdint.h>
16882 _ACEOF
16883 case "$host_os" in
16884 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16885 *) gl_absname_cpp="$ac_cpp" ;;
16886 esac
16887 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16888 sed -n '\#/stdint.h#{
16889 s#.*"\(.*/stdint.h\)".*#\1#
16890 s#^/[^/]#//&#
16893 }'`'"'
16894 else
16895 gl_cv_next_stdint_h='<'stdint.h'>'
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16901 $as_echo "$gl_cv_next_stdint_h" >&6; }
16903 NEXT_STDINT_H=$gl_cv_next_stdint_h
16905 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16906 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16907 gl_next_as_first_directive='<'stdint.h'>'
16908 else
16909 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16910 gl_next_as_first_directive=$gl_cv_next_stdint_h
16912 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16917 if test $ac_cv_header_stdint_h = yes; then
16918 HAVE_STDINT_H=1
16919 else
16920 HAVE_STDINT_H=0
16924 if test $ac_cv_header_stdint_h = yes; then
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16926 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16927 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16928 $as_echo_n "(cached) " >&6
16929 else
16930 gl_cv_header_working_stdint_h=no
16931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16932 /* end confdefs.h. */
16935 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16936 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16937 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16938 #include <stdint.h>
16939 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16940 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16941 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16942 #endif
16945 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16946 included before <wchar.h>. */
16947 #include <stddef.h>
16948 #include <signal.h>
16949 #if HAVE_WCHAR_H
16950 # include <stdio.h>
16951 # include <time.h>
16952 # include <wchar.h>
16953 #endif
16956 #ifdef INT8_MAX
16957 int8_t a1 = INT8_MAX;
16958 int8_t a1min = INT8_MIN;
16959 #endif
16960 #ifdef INT16_MAX
16961 int16_t a2 = INT16_MAX;
16962 int16_t a2min = INT16_MIN;
16963 #endif
16964 #ifdef INT32_MAX
16965 int32_t a3 = INT32_MAX;
16966 int32_t a3min = INT32_MIN;
16967 #endif
16968 #ifdef INT64_MAX
16969 int64_t a4 = INT64_MAX;
16970 int64_t a4min = INT64_MIN;
16971 #endif
16972 #ifdef UINT8_MAX
16973 uint8_t b1 = UINT8_MAX;
16974 #else
16975 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16976 #endif
16977 #ifdef UINT16_MAX
16978 uint16_t b2 = UINT16_MAX;
16979 #endif
16980 #ifdef UINT32_MAX
16981 uint32_t b3 = UINT32_MAX;
16982 #endif
16983 #ifdef UINT64_MAX
16984 uint64_t b4 = UINT64_MAX;
16985 #endif
16986 int_least8_t c1 = INT8_C (0x7f);
16987 int_least8_t c1max = INT_LEAST8_MAX;
16988 int_least8_t c1min = INT_LEAST8_MIN;
16989 int_least16_t c2 = INT16_C (0x7fff);
16990 int_least16_t c2max = INT_LEAST16_MAX;
16991 int_least16_t c2min = INT_LEAST16_MIN;
16992 int_least32_t c3 = INT32_C (0x7fffffff);
16993 int_least32_t c3max = INT_LEAST32_MAX;
16994 int_least32_t c3min = INT_LEAST32_MIN;
16995 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16996 int_least64_t c4max = INT_LEAST64_MAX;
16997 int_least64_t c4min = INT_LEAST64_MIN;
16998 uint_least8_t d1 = UINT8_C (0xff);
16999 uint_least8_t d1max = UINT_LEAST8_MAX;
17000 uint_least16_t d2 = UINT16_C (0xffff);
17001 uint_least16_t d2max = UINT_LEAST16_MAX;
17002 uint_least32_t d3 = UINT32_C (0xffffffff);
17003 uint_least32_t d3max = UINT_LEAST32_MAX;
17004 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17005 uint_least64_t d4max = UINT_LEAST64_MAX;
17006 int_fast8_t e1 = INT_FAST8_MAX;
17007 int_fast8_t e1min = INT_FAST8_MIN;
17008 int_fast16_t e2 = INT_FAST16_MAX;
17009 int_fast16_t e2min = INT_FAST16_MIN;
17010 int_fast32_t e3 = INT_FAST32_MAX;
17011 int_fast32_t e3min = INT_FAST32_MIN;
17012 int_fast64_t e4 = INT_FAST64_MAX;
17013 int_fast64_t e4min = INT_FAST64_MIN;
17014 uint_fast8_t f1 = UINT_FAST8_MAX;
17015 uint_fast16_t f2 = UINT_FAST16_MAX;
17016 uint_fast32_t f3 = UINT_FAST32_MAX;
17017 uint_fast64_t f4 = UINT_FAST64_MAX;
17018 #ifdef INTPTR_MAX
17019 intptr_t g = INTPTR_MAX;
17020 intptr_t gmin = INTPTR_MIN;
17021 #endif
17022 #ifdef UINTPTR_MAX
17023 uintptr_t h = UINTPTR_MAX;
17024 #endif
17025 intmax_t i = INTMAX_MAX;
17026 uintmax_t j = UINTMAX_MAX;
17028 #include <limits.h> /* for CHAR_BIT */
17029 #define TYPE_MINIMUM(t) \
17030 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17031 #define TYPE_MAXIMUM(t) \
17032 ((t) ((t) 0 < (t) -1 \
17033 ? (t) -1 \
17034 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17035 struct s {
17036 int check_PTRDIFF:
17037 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17038 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17039 ? 1 : -1;
17040 /* Detect bug in FreeBSD 6.0 / ia64. */
17041 int check_SIG_ATOMIC:
17042 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17043 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17044 ? 1 : -1;
17045 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17046 int check_WCHAR:
17047 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17048 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17049 ? 1 : -1;
17050 /* Detect bug in mingw. */
17051 int check_WINT:
17052 WINT_MIN == TYPE_MINIMUM (wint_t)
17053 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17054 ? 1 : -1;
17056 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17057 int check_UINT8_C:
17058 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17059 int check_UINT16_C:
17060 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17062 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17063 #ifdef UINT8_MAX
17064 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17065 #endif
17066 #ifdef UINT16_MAX
17067 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17068 #endif
17069 #ifdef UINT32_MAX
17070 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17071 #endif
17072 #ifdef UINT64_MAX
17073 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17074 #endif
17075 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17076 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17077 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17078 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17079 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17080 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17081 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17082 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17083 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17084 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17085 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17089 main ()
17093 return 0;
17095 _ACEOF
17096 if ac_fn_c_try_compile "$LINENO"; then :
17097 if test "$cross_compiling" = yes; then :
17098 gl_cv_header_working_stdint_h=yes
17100 else
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17105 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17106 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17107 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17108 #include <stdint.h>
17111 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17112 included before <wchar.h>. */
17113 #include <stddef.h>
17114 #include <signal.h>
17115 #if HAVE_WCHAR_H
17116 # include <stdio.h>
17117 # include <time.h>
17118 # include <wchar.h>
17119 #endif
17122 #include <stdio.h>
17123 #include <string.h>
17124 #define MVAL(macro) MVAL1(macro)
17125 #define MVAL1(expression) #expression
17126 static const char *macro_values[] =
17128 #ifdef INT8_MAX
17129 MVAL (INT8_MAX),
17130 #endif
17131 #ifdef INT16_MAX
17132 MVAL (INT16_MAX),
17133 #endif
17134 #ifdef INT32_MAX
17135 MVAL (INT32_MAX),
17136 #endif
17137 #ifdef INT64_MAX
17138 MVAL (INT64_MAX),
17139 #endif
17140 #ifdef UINT8_MAX
17141 MVAL (UINT8_MAX),
17142 #endif
17143 #ifdef UINT16_MAX
17144 MVAL (UINT16_MAX),
17145 #endif
17146 #ifdef UINT32_MAX
17147 MVAL (UINT32_MAX),
17148 #endif
17149 #ifdef UINT64_MAX
17150 MVAL (UINT64_MAX),
17151 #endif
17152 NULL
17156 main ()
17159 const char **mv;
17160 for (mv = macro_values; *mv != NULL; mv++)
17162 const char *value = *mv;
17163 /* Test whether it looks like a cast expression. */
17164 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17165 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17166 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17167 || strncmp (value, "((int)"/*)*/, 6) == 0
17168 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17169 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17170 return mv - macro_values + 1;
17172 return 0;
17175 return 0;
17177 _ACEOF
17178 if ac_fn_c_try_run "$LINENO"; then :
17179 gl_cv_header_working_stdint_h=yes
17181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17182 conftest.$ac_objext conftest.beam conftest.$ac_ext
17187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17191 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17193 if test "$gl_cv_header_working_stdint_h" = yes; then
17194 STDINT_H=
17195 else
17196 for ac_header in sys/inttypes.h sys/bitypes.h
17197 do :
17198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17199 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17200 eval as_val=\$$as_ac_Header
17201 if test "x$as_val" = x""yes; then :
17202 cat >>confdefs.h <<_ACEOF
17203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17204 _ACEOF
17208 done
17210 if test $ac_cv_header_sys_inttypes_h = yes; then
17211 HAVE_SYS_INTTYPES_H=1
17212 else
17213 HAVE_SYS_INTTYPES_H=0
17216 if test $ac_cv_header_sys_bitypes_h = yes; then
17217 HAVE_SYS_BITYPES_H=1
17218 else
17219 HAVE_SYS_BITYPES_H=0
17225 if test $APPLE_UNIVERSAL_BUILD = 0; then
17228 for gltype in ptrdiff_t size_t ; do
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17230 $as_echo_n "checking for bit size of $gltype... " >&6; }
17231 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17232 $as_echo_n "(cached) " >&6
17233 else
17234 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17235 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17236 included before <wchar.h>. */
17237 #include <stddef.h>
17238 #include <signal.h>
17239 #if HAVE_WCHAR_H
17240 # include <stdio.h>
17241 # include <time.h>
17242 # include <wchar.h>
17243 #endif
17245 #include <limits.h>"; then :
17247 else
17248 result=unknown
17251 eval gl_cv_bitsizeof_${gltype}=\$result
17254 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17256 $as_echo "$ac_res" >&6; }
17257 eval result=\$gl_cv_bitsizeof_${gltype}
17258 if test $result = unknown; then
17259 result=0
17261 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17262 cat >>confdefs.h <<_ACEOF
17263 #define BITSIZEOF_${GLTYPE} $result
17264 _ACEOF
17266 eval BITSIZEOF_${GLTYPE}=\$result
17267 done
17273 for gltype in sig_atomic_t wchar_t wint_t ; do
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17275 $as_echo_n "checking for bit size of $gltype... " >&6; }
17276 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17277 $as_echo_n "(cached) " >&6
17278 else
17279 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17280 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17281 included before <wchar.h>. */
17282 #include <stddef.h>
17283 #include <signal.h>
17284 #if HAVE_WCHAR_H
17285 # include <stdio.h>
17286 # include <time.h>
17287 # include <wchar.h>
17288 #endif
17290 #include <limits.h>"; then :
17292 else
17293 result=unknown
17296 eval gl_cv_bitsizeof_${gltype}=\$result
17299 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17301 $as_echo "$ac_res" >&6; }
17302 eval result=\$gl_cv_bitsizeof_${gltype}
17303 if test $result = unknown; then
17304 result=0
17306 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17307 cat >>confdefs.h <<_ACEOF
17308 #define BITSIZEOF_${GLTYPE} $result
17309 _ACEOF
17311 eval BITSIZEOF_${GLTYPE}=\$result
17312 done
17317 for gltype in sig_atomic_t wchar_t wint_t ; do
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17319 $as_echo_n "checking whether $gltype is signed... " >&6; }
17320 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17321 $as_echo_n "(cached) " >&6
17322 else
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17326 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17327 included before <wchar.h>. */
17328 #include <stddef.h>
17329 #include <signal.h>
17330 #if HAVE_WCHAR_H
17331 # include <stdio.h>
17332 # include <time.h>
17333 # include <wchar.h>
17334 #endif
17336 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17338 main ()
17342 return 0;
17344 _ACEOF
17345 if ac_fn_c_try_compile "$LINENO"; then :
17346 result=yes
17347 else
17348 result=no
17350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17351 eval gl_cv_type_${gltype}_signed=\$result
17354 eval ac_res=\$gl_cv_type_${gltype}_signed
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17356 $as_echo "$ac_res" >&6; }
17357 eval result=\$gl_cv_type_${gltype}_signed
17358 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17359 if test "$result" = yes; then
17360 cat >>confdefs.h <<_ACEOF
17361 #define HAVE_SIGNED_${GLTYPE} 1
17362 _ACEOF
17364 eval HAVE_SIGNED_${GLTYPE}=1
17365 else
17366 eval HAVE_SIGNED_${GLTYPE}=0
17368 done
17371 gl_cv_type_ptrdiff_t_signed=yes
17372 gl_cv_type_size_t_signed=no
17373 if test $APPLE_UNIVERSAL_BUILD = 0; then
17376 for gltype in ptrdiff_t size_t ; do
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17378 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17379 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17380 $as_echo_n "(cached) " >&6
17381 else
17382 eval gl_cv_type_${gltype}_suffix=no
17383 eval result=\$gl_cv_type_${gltype}_signed
17384 if test "$result" = yes; then
17385 glsufu=
17386 else
17387 glsufu=u
17389 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17390 case $glsuf in
17391 '') gltype1='int';;
17392 l) gltype1='long int';;
17393 ll) gltype1='long long int';;
17394 i64) gltype1='__int64';;
17395 u) gltype1='unsigned int';;
17396 ul) gltype1='unsigned long int';;
17397 ull) gltype1='unsigned long long int';;
17398 ui64)gltype1='unsigned __int64';;
17399 esac
17400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401 /* end confdefs.h. */
17403 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17404 included before <wchar.h>. */
17405 #include <stddef.h>
17406 #include <signal.h>
17407 #if HAVE_WCHAR_H
17408 # include <stdio.h>
17409 # include <time.h>
17410 # include <wchar.h>
17411 #endif
17413 extern $gltype foo;
17414 extern $gltype1 foo;
17416 main ()
17420 return 0;
17422 _ACEOF
17423 if ac_fn_c_try_compile "$LINENO"; then :
17424 eval gl_cv_type_${gltype}_suffix=\$glsuf
17426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427 eval result=\$gl_cv_type_${gltype}_suffix
17428 test "$result" != no && break
17429 done
17431 eval ac_res=\$gl_cv_type_${gltype}_suffix
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17433 $as_echo "$ac_res" >&6; }
17434 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17435 eval result=\$gl_cv_type_${gltype}_suffix
17436 test "$result" = no && result=
17437 eval ${GLTYPE}_SUFFIX=\$result
17438 cat >>confdefs.h <<_ACEOF
17439 #define ${GLTYPE}_SUFFIX $result
17440 _ACEOF
17442 done
17448 for gltype in sig_atomic_t wchar_t wint_t ; do
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17450 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17451 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17452 $as_echo_n "(cached) " >&6
17453 else
17454 eval gl_cv_type_${gltype}_suffix=no
17455 eval result=\$gl_cv_type_${gltype}_signed
17456 if test "$result" = yes; then
17457 glsufu=
17458 else
17459 glsufu=u
17461 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17462 case $glsuf in
17463 '') gltype1='int';;
17464 l) gltype1='long int';;
17465 ll) gltype1='long long int';;
17466 i64) gltype1='__int64';;
17467 u) gltype1='unsigned int';;
17468 ul) gltype1='unsigned long int';;
17469 ull) gltype1='unsigned long long int';;
17470 ui64)gltype1='unsigned __int64';;
17471 esac
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17475 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17476 included before <wchar.h>. */
17477 #include <stddef.h>
17478 #include <signal.h>
17479 #if HAVE_WCHAR_H
17480 # include <stdio.h>
17481 # include <time.h>
17482 # include <wchar.h>
17483 #endif
17485 extern $gltype foo;
17486 extern $gltype1 foo;
17488 main ()
17492 return 0;
17494 _ACEOF
17495 if ac_fn_c_try_compile "$LINENO"; then :
17496 eval gl_cv_type_${gltype}_suffix=\$glsuf
17498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17499 eval result=\$gl_cv_type_${gltype}_suffix
17500 test "$result" != no && break
17501 done
17503 eval ac_res=\$gl_cv_type_${gltype}_suffix
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17505 $as_echo "$ac_res" >&6; }
17506 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17507 eval result=\$gl_cv_type_${gltype}_suffix
17508 test "$result" = no && result=
17509 eval ${GLTYPE}_SUFFIX=\$result
17510 cat >>confdefs.h <<_ACEOF
17511 #define ${GLTYPE}_SUFFIX $result
17512 _ACEOF
17514 done
17518 STDINT_H=stdint.h
17522 # Code from module stdio:
17534 if test $gl_cv_have_include_next = yes; then
17535 gl_cv_next_stdio_h='<'stdio.h'>'
17536 else
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17538 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17539 if test "${gl_cv_next_stdio_h+set}" = set; then :
17540 $as_echo_n "(cached) " >&6
17541 else
17543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544 /* end confdefs.h. */
17545 #include <stdio.h>
17547 _ACEOF
17548 case "$host_os" in
17549 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17550 *) gl_absname_cpp="$ac_cpp" ;;
17551 esac
17552 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17553 sed -n '\#/stdio.h#{
17554 s#.*"\(.*/stdio.h\)".*#\1#
17555 s#^/[^/]#//&#
17558 }'`'"'
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17563 $as_echo "$gl_cv_next_stdio_h" >&6; }
17565 NEXT_STDIO_H=$gl_cv_next_stdio_h
17567 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17568 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17569 gl_next_as_first_directive='<'stdio.h'>'
17570 else
17571 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17572 gl_next_as_first_directive=$gl_cv_next_stdio_h
17574 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17579 GNULIB_FPRINTF=1
17580 GNULIB_PRINTF=1
17581 GNULIB_VFPRINTF=1
17582 GNULIB_VPRINTF=1
17583 GNULIB_FPUTC=1
17584 GNULIB_PUTC=1
17585 GNULIB_PUTCHAR=1
17586 GNULIB_FPUTS=1
17587 GNULIB_PUTS=1
17588 GNULIB_FWRITE=1
17593 # Code from module stdlib:
17604 if test $gl_cv_have_include_next = yes; then
17605 gl_cv_next_stdlib_h='<'stdlib.h'>'
17606 else
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17608 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17609 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17610 $as_echo_n "(cached) " >&6
17611 else
17613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17614 /* end confdefs.h. */
17615 #include <stdlib.h>
17617 _ACEOF
17618 case "$host_os" in
17619 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17620 *) gl_absname_cpp="$ac_cpp" ;;
17621 esac
17622 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17623 sed -n '\#/stdlib.h#{
17624 s#.*"\(.*/stdlib.h\)".*#\1#
17625 s#^/[^/]#//&#
17628 }'`'"'
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17633 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17635 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17637 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17638 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17639 gl_next_as_first_directive='<'stdlib.h'>'
17640 else
17641 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17642 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17644 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17652 # Code from module strftime:
17663 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
17666 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17674 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17678 # Code from module symlink:
17682 if test $ac_cv_func_symlink = no; then
17683 HAVE_SYMLINK=0
17692 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17694 else
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17696 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17697 if test "${gl_cv_func_symlink_works+set}" = set; then :
17698 $as_echo_n "(cached) " >&6
17699 else
17700 if test "$cross_compiling" = yes; then :
17701 gl_cv_func_symlink_works="guessing no"
17702 else
17703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h. */
17705 #include <unistd.h>
17708 main ()
17710 int result = 0;
17711 if (!symlink ("a", "conftest.link/"))
17712 result |= 1;
17713 if (symlink ("conftest.f", "conftest.lnk2"))
17714 result |= 2;
17715 else if (!symlink ("a", "conftest.lnk2/"))
17716 result |= 4;
17717 return result;
17720 return 0;
17722 _ACEOF
17723 if ac_fn_c_try_run "$LINENO"; then :
17724 gl_cv_func_symlink_works=yes
17725 else
17726 gl_cv_func_symlink_works=no
17728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17729 conftest.$ac_objext conftest.beam conftest.$ac_ext
17732 rm -f conftest.f conftest.link conftest.lnk2
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17735 $as_echo "$gl_cv_func_symlink_works" >&6; }
17736 if test "$gl_cv_func_symlink_works" != yes; then
17737 REPLACE_SYMLINK=1
17746 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17754 GNULIB_SYMLINK=1
17758 # Code from module sys_stat:
17775 if test $gl_cv_have_include_next = yes; then
17776 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17777 else
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17779 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17780 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17781 $as_echo_n "(cached) " >&6
17782 else
17784 if test $ac_cv_header_sys_stat_h = yes; then
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 #include <sys/stat.h>
17791 _ACEOF
17792 case "$host_os" in
17793 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17794 *) gl_absname_cpp="$ac_cpp" ;;
17795 esac
17796 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17797 sed -n '\#/sys/stat.h#{
17798 s#.*"\(.*/sys/stat.h\)".*#\1#
17799 s#^/[^/]#//&#
17802 }'`'"'
17803 else
17804 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17810 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17812 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17814 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17815 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17816 gl_next_as_first_directive='<'sys/stat.h'>'
17817 else
17818 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17819 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17821 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17827 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17828 #include <sys/stat.h>
17830 if test "x$ac_cv_type_nlink_t" = x""yes; then :
17832 else
17834 $as_echo "#define nlink_t int" >>confdefs.h
17842 # Code from module time:
17846 # Code from module time_r:
17854 if test $ac_cv_have_decl_localtime_r = no; then
17855 HAVE_DECL_LOCALTIME_R=0
17859 if test $ac_cv_func_localtime_r = yes; then
17860 HAVE_LOCALTIME_R=1
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17862 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17863 if test "${gl_cv_time_r_posix+set}" = set; then :
17864 $as_echo_n "(cached) " >&6
17865 else
17866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h. */
17868 #include <time.h>
17870 main ()
17872 /* We don't need to append 'restrict's to the argument types,
17873 even though the POSIX signature has the 'restrict's,
17874 since C99 says they can't affect type compatibility. */
17875 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17876 if (ptr) return 0;
17877 /* Check the return type is a pointer.
17878 On HP-UX 10 it is 'int'. */
17879 *localtime_r (0, 0);
17881 return 0;
17884 _ACEOF
17885 if ac_fn_c_try_compile "$LINENO"; then :
17886 gl_cv_time_r_posix=yes
17887 else
17888 gl_cv_time_r_posix=no
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17894 $as_echo "$gl_cv_time_r_posix" >&6; }
17895 if test $gl_cv_time_r_posix = yes; then
17896 REPLACE_LOCALTIME_R=0
17897 else
17898 REPLACE_LOCALTIME_R=1
17900 else
17901 HAVE_LOCALTIME_R=0
17903 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
17912 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
17922 GNULIB_TIME_R=1
17926 # Code from module unistd:
17940 if test $gl_cv_have_include_next = yes; then
17941 gl_cv_next_unistd_h='<'unistd.h'>'
17942 else
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17944 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17945 if test "${gl_cv_next_unistd_h+set}" = set; then :
17946 $as_echo_n "(cached) " >&6
17947 else
17949 if test $ac_cv_header_unistd_h = yes; then
17952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17953 /* end confdefs.h. */
17954 #include <unistd.h>
17956 _ACEOF
17957 case "$host_os" in
17958 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17959 *) gl_absname_cpp="$ac_cpp" ;;
17960 esac
17961 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17962 sed -n '\#/unistd.h#{
17963 s#.*"\(.*/unistd.h\)".*#\1#
17964 s#^/[^/]#//&#
17967 }'`'"'
17968 else
17969 gl_cv_next_unistd_h='<'unistd.h'>'
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17975 $as_echo "$gl_cv_next_unistd_h" >&6; }
17977 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17979 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17980 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17981 gl_next_as_first_directive='<'unistd.h'>'
17982 else
17983 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17984 gl_next_as_first_directive=$gl_cv_next_unistd_h
17986 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17991 if test $ac_cv_header_unistd_h = yes; then
17992 HAVE_UNISTD_H=1
17993 else
17994 HAVE_UNISTD_H=0
18000 # Code from module warn-on-use:
18001 # End of code from modules
18011 gltests_libdeps=
18012 gltests_ltlibdeps=
18022 gl_source_base='tests'
18023 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
18025 gl_module_indicator_condition=$gltests_WITNESS
18035 LIBGNU_LIBDEPS="$gl_libdeps"
18037 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18041 # UNIX98 PTYs.
18042 for ac_func in grantpt
18043 do :
18044 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
18045 if test "x$ac_cv_func_grantpt" = x""yes; then :
18046 cat >>confdefs.h <<_ACEOF
18047 #define HAVE_GRANTPT 1
18048 _ACEOF
18051 done
18054 # PTY-related GNU extensions.
18055 for ac_func in getpt
18056 do :
18057 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
18058 if test "x$ac_cv_func_getpt" = x""yes; then :
18059 cat >>confdefs.h <<_ACEOF
18060 #define HAVE_GETPT 1
18061 _ACEOF
18064 done
18067 # Check this now, so that we will NOT find the above functions in ncurses.
18068 # That is because we have not set up to link ncurses in lib-src.
18069 # It's better to believe a function is not available
18070 # than to expect to find it in ncurses.
18071 # Also we need tputs and friends to be able to build at all.
18072 have_tputs_et_al=true
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18074 $as_echo_n "checking for library containing tputs... " >&6; }
18075 if test "${ac_cv_search_tputs+set}" = set; then :
18076 $as_echo_n "(cached) " >&6
18077 else
18078 ac_func_search_save_LIBS=$LIBS
18079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h. */
18082 /* Override any GCC internal prototype to avoid an error.
18083 Use char because int might match the return type of a GCC
18084 builtin and then its argument prototype would still apply. */
18085 #ifdef __cplusplus
18086 extern "C"
18087 #endif
18088 char tputs ();
18090 main ()
18092 return tputs ();
18094 return 0;
18096 _ACEOF
18097 for ac_lib in '' ncurses terminfo termcap; do
18098 if test -z "$ac_lib"; then
18099 ac_res="none required"
18100 else
18101 ac_res=-l$ac_lib
18102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18104 if ac_fn_c_try_link "$LINENO"; then :
18105 ac_cv_search_tputs=$ac_res
18107 rm -f core conftest.err conftest.$ac_objext \
18108 conftest$ac_exeext
18109 if test "${ac_cv_search_tputs+set}" = set; then :
18110 break
18112 done
18113 if test "${ac_cv_search_tputs+set}" = set; then :
18115 else
18116 ac_cv_search_tputs=no
18118 rm conftest.$ac_ext
18119 LIBS=$ac_func_search_save_LIBS
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
18122 $as_echo "$ac_cv_search_tputs" >&6; }
18123 ac_res=$ac_cv_search_tputs
18124 if test "$ac_res" != no; then :
18125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18127 else
18128 have_tputs_et_al=false
18131 if test "$have_tputs_et_al" != true; then
18132 as_fn_error "I couldn't find termcap functions (tputs and friends).
18133 Maybe some development libraries/packages are missing? Try installing
18134 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
18136 # Must define this when any termcap library is found.
18138 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18140 ## FIXME This was the cpp logic, but I am not sure it is right.
18141 ## The above test has not necessarily found libncurses.
18142 HAVE_LIBNCURSES=yes
18144 ## Use terminfo instead of termcap?
18145 ## Note only system files NOT using terminfo are:
18146 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
18147 ## darwin|gnu without ncurses.
18148 TERMINFO=no
18149 LIBS_TERMCAP=
18150 case "$opsys" in
18151 ## cygwin: Fewer environment variables to go wrong, more terminal types.
18152 ## hpux10-20: Use the system provided termcap(3) library.
18153 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
18154 ## is necessary. Otherwise Emacs dumps core when run -nw.
18155 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
18157 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
18158 ## The ncurses library has been moved out of the System framework in
18159 ## Mac OS X 10.2. So if configure detects it, set the command-line
18160 ## option to use it.
18161 darwin|gnu*)
18162 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
18163 if test "x$HAVE_LIBNCURSES" = "xyes"; then
18164 TERMINFO=yes
18165 LIBS_TERMCAP="-lncurses"
18169 freebsd)
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
18171 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
18172 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
18173 $as_echo_n "(cached) " >&6
18174 else
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18177 #include <osreldate.h>
18179 main ()
18181 #if __FreeBSD_version < 400000
18182 fail;
18183 #endif
18186 return 0;
18188 _ACEOF
18189 if ac_fn_c_try_link "$LINENO"; then :
18190 emacs_cv_freebsd_terminfo=yes
18191 else
18192 emacs_cv_freebsd_terminfo=no
18194 rm -f core conftest.err conftest.$ac_objext \
18195 conftest$ac_exeext conftest.$ac_ext
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
18200 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
18202 if test $emacs_cv_freebsd_terminfo = yes; then
18203 TERMINFO=yes
18204 LIBS_TERMCAP="-lncurses"
18205 else
18206 LIBS_TERMCAP="-ltermcap"
18210 netbsd)
18211 if test $ac_cv_search_tputs = -lterminfo; then
18212 TERMINFO=yes
18213 LIBS_TERMCAP="-lterminfo"
18214 else
18215 LIBS_TERMCAP="-ltermcap"
18219 esac
18221 case "$opsys" in
18222 ## hpux: Make sure we get select from libc rather than from libcurses
18223 ## because libcurses on HPUX 10.10 has a broken version of select.
18224 ## We used to use -lc -lcurses, but this may be cleaner.
18225 hpux*) LIBS_TERMCAP="-ltermcap" ;;
18227 openbsd) LIBS_TERMCAP="-lncurses" ;;
18229 ## Must use system termcap, if we use any termcap. It does special things.
18230 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
18231 esac
18233 TERMCAP_OBJ=tparam.o
18234 if test $TERMINFO = yes; then
18236 $as_echo "#define TERMINFO 1" >>confdefs.h
18239 ## Default used to be -ltermcap. Add a case above if need something else.
18240 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
18242 TERMCAP_OBJ=terminfo.o
18248 # Do we have res_init, for detecting changes in /etc/resolv.conf?
18249 resolv=no
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18252 #include <netinet/in.h>
18253 #include <arpa/nameser.h>
18254 #include <resolv.h>
18256 main ()
18258 return res_init();
18260 return 0;
18262 _ACEOF
18263 if ac_fn_c_try_link "$LINENO"; then :
18264 have_res_init=yes
18265 else
18266 have_res_init=no
18268 rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18270 if test "$have_res_init" = no; then
18271 OLIBS="$LIBS"
18272 LIBS="$LIBS -lresolv"
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
18274 $as_echo_n "checking for res_init with -lresolv... " >&6; }
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277 #include <netinet/in.h>
18278 #include <arpa/nameser.h>
18279 #include <resolv.h>
18281 main ()
18283 return res_init();
18285 return 0;
18287 _ACEOF
18288 if ac_fn_c_try_link "$LINENO"; then :
18289 have_res_init=yes
18290 else
18291 have_res_init=no
18293 rm -f core conftest.err conftest.$ac_objext \
18294 conftest$ac_exeext conftest.$ac_ext
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18296 $as_echo "$have_res_init" >&6; }
18297 if test "$have_res_init" = yes ; then
18298 resolv=yes
18300 LIBS="$OLIBS"
18303 if test "$have_res_init" = yes; then
18305 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18309 # Do we need the Hesiod library to provide the support routines?
18310 LIBHESIOD=
18311 if test "$with_hesiod" != no ; then
18312 # Don't set $LIBS here -- see comments above. FIXME which comments?
18313 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
18314 if test "x$ac_cv_func_res_send" = x""yes; then :
18316 else
18317 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
18318 if test "x$ac_cv_func___res_send" = x""yes; then :
18320 else
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18322 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18323 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
18324 $as_echo_n "(cached) " >&6
18325 else
18326 ac_check_lib_save_LIBS=$LIBS
18327 LIBS="-lresolv $LIBS"
18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h. */
18331 /* Override any GCC internal prototype to avoid an error.
18332 Use char because int might match the return type of a GCC
18333 builtin and then its argument prototype would still apply. */
18334 #ifdef __cplusplus
18335 extern "C"
18336 #endif
18337 char res_send ();
18339 main ()
18341 return res_send ();
18343 return 0;
18345 _ACEOF
18346 if ac_fn_c_try_link "$LINENO"; then :
18347 ac_cv_lib_resolv_res_send=yes
18348 else
18349 ac_cv_lib_resolv_res_send=no
18351 rm -f core conftest.err conftest.$ac_objext \
18352 conftest$ac_exeext conftest.$ac_ext
18353 LIBS=$ac_check_lib_save_LIBS
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18356 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18357 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
18358 resolv=yes
18359 else
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18361 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18362 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
18363 $as_echo_n "(cached) " >&6
18364 else
18365 ac_check_lib_save_LIBS=$LIBS
18366 LIBS="-lresolv $LIBS"
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18370 /* Override any GCC internal prototype to avoid an error.
18371 Use char because int might match the return type of a GCC
18372 builtin and then its argument prototype would still apply. */
18373 #ifdef __cplusplus
18374 extern "C"
18375 #endif
18376 char __res_send ();
18378 main ()
18380 return __res_send ();
18382 return 0;
18384 _ACEOF
18385 if ac_fn_c_try_link "$LINENO"; then :
18386 ac_cv_lib_resolv___res_send=yes
18387 else
18388 ac_cv_lib_resolv___res_send=no
18390 rm -f core conftest.err conftest.$ac_objext \
18391 conftest$ac_exeext conftest.$ac_ext
18392 LIBS=$ac_check_lib_save_LIBS
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18395 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18396 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
18397 resolv=yes
18406 if test "$resolv" = yes ; then
18407 RESOLVLIB=-lresolv
18408 else
18409 RESOLVLIB=
18411 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18412 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
18414 else
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18416 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18417 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
18418 $as_echo_n "(cached) " >&6
18419 else
18420 ac_check_lib_save_LIBS=$LIBS
18421 LIBS="-lhesiod $RESOLVLIB $LIBS"
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18425 /* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18428 #ifdef __cplusplus
18429 extern "C"
18430 #endif
18431 char hes_getmailhost ();
18433 main ()
18435 return hes_getmailhost ();
18437 return 0;
18439 _ACEOF
18440 if ac_fn_c_try_link "$LINENO"; then :
18441 ac_cv_lib_hesiod_hes_getmailhost=yes
18442 else
18443 ac_cv_lib_hesiod_hes_getmailhost=no
18445 rm -f core conftest.err conftest.$ac_objext \
18446 conftest$ac_exeext conftest.$ac_ext
18447 LIBS=$ac_check_lib_save_LIBS
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18450 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18451 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
18452 hesiod=yes
18453 else
18460 if test x"$hesiod" = xyes; then
18462 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18464 LIBHESIOD=-lhesiod
18469 # Do we need libresolv (due to res_init or Hesiod)?
18470 if test "$resolv" = yes ; then
18472 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18474 LIBRESOLV=-lresolv
18475 else
18476 LIBRESOLV=
18480 # These tell us which Kerberos-related libraries to use.
18481 COM_ERRLIB=
18482 CRYPTOLIB=
18483 KRB5LIB=
18484 DESLIB=
18485 KRB4LIB=
18487 if test "${with_kerberos}" != no; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18489 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18490 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18492 else
18493 ac_check_lib_save_LIBS=$LIBS
18494 LIBS="-lcom_err $LIBS"
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18501 #ifdef __cplusplus
18502 extern "C"
18503 #endif
18504 char com_err ();
18506 main ()
18508 return com_err ();
18510 return 0;
18512 _ACEOF
18513 if ac_fn_c_try_link "$LINENO"; then :
18514 ac_cv_lib_com_err_com_err=yes
18515 else
18516 ac_cv_lib_com_err_com_err=no
18518 rm -f core conftest.err conftest.$ac_objext \
18519 conftest$ac_exeext conftest.$ac_ext
18520 LIBS=$ac_check_lib_save_LIBS
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18523 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18524 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
18525 have_com_err=yes
18526 else
18527 have_com_err=no
18530 if test $have_com_err = yes; then
18531 COM_ERRLIB=-lcom_err
18532 LIBS="$COM_ERRLIB $LIBS"
18534 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18538 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18539 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
18540 $as_echo_n "(cached) " >&6
18541 else
18542 ac_check_lib_save_LIBS=$LIBS
18543 LIBS="-lcrypto $LIBS"
18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h. */
18547 /* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18550 #ifdef __cplusplus
18551 extern "C"
18552 #endif
18553 char mit_des_cbc_encrypt ();
18555 main ()
18557 return mit_des_cbc_encrypt ();
18559 return 0;
18561 _ACEOF
18562 if ac_fn_c_try_link "$LINENO"; then :
18563 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18564 else
18565 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18567 rm -f core conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18572 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18573 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
18574 have_crypto=yes
18575 else
18576 have_crypto=no
18579 if test $have_crypto = yes; then
18580 CRYPTOLIB=-lcrypto
18581 LIBS="$CRYPTOLIB $LIBS"
18583 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18587 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18588 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
18589 $as_echo_n "(cached) " >&6
18590 else
18591 ac_check_lib_save_LIBS=$LIBS
18592 LIBS="-lk5crypto $LIBS"
18593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18594 /* end confdefs.h. */
18596 /* Override any GCC internal prototype to avoid an error.
18597 Use char because int might match the return type of a GCC
18598 builtin and then its argument prototype would still apply. */
18599 #ifdef __cplusplus
18600 extern "C"
18601 #endif
18602 char mit_des_cbc_encrypt ();
18604 main ()
18606 return mit_des_cbc_encrypt ();
18608 return 0;
18610 _ACEOF
18611 if ac_fn_c_try_link "$LINENO"; then :
18612 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18613 else
18614 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18616 rm -f core conftest.err conftest.$ac_objext \
18617 conftest$ac_exeext conftest.$ac_ext
18618 LIBS=$ac_check_lib_save_LIBS
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18621 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18622 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
18623 have_k5crypto=yes
18624 else
18625 have_k5crypto=no
18628 if test $have_k5crypto = yes; then
18629 CRYPTOLIB=-lk5crypto
18630 LIBS="$CRYPTOLIB $LIBS"
18632 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18636 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18637 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
18638 $as_echo_n "(cached) " >&6
18639 else
18640 ac_check_lib_save_LIBS=$LIBS
18641 LIBS="-lkrb5 $LIBS"
18642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h. */
18645 /* Override any GCC internal prototype to avoid an error.
18646 Use char because int might match the return type of a GCC
18647 builtin and then its argument prototype would still apply. */
18648 #ifdef __cplusplus
18649 extern "C"
18650 #endif
18651 char krb5_init_context ();
18653 main ()
18655 return krb5_init_context ();
18657 return 0;
18659 _ACEOF
18660 if ac_fn_c_try_link "$LINENO"; then :
18661 ac_cv_lib_krb5_krb5_init_context=yes
18662 else
18663 ac_cv_lib_krb5_krb5_init_context=no
18665 rm -f core conftest.err conftest.$ac_objext \
18666 conftest$ac_exeext conftest.$ac_ext
18667 LIBS=$ac_check_lib_save_LIBS
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18670 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18671 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
18672 have_krb5=yes
18673 else
18674 have_krb5=no
18677 if test $have_krb5=yes; then
18678 KRB5LIB=-lkrb5
18679 LIBS="$KRB5LIB $LIBS"
18681 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18684 if test "${with_kerberos5}" = no; then
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18686 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18687 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
18688 $as_echo_n "(cached) " >&6
18689 else
18690 ac_check_lib_save_LIBS=$LIBS
18691 LIBS="-ldes425 $LIBS"
18692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18693 /* end confdefs.h. */
18695 /* Override any GCC internal prototype to avoid an error.
18696 Use char because int might match the return type of a GCC
18697 builtin and then its argument prototype would still apply. */
18698 #ifdef __cplusplus
18699 extern "C"
18700 #endif
18701 char des_cbc_encrypt ();
18703 main ()
18705 return des_cbc_encrypt ();
18707 return 0;
18709 _ACEOF
18710 if ac_fn_c_try_link "$LINENO"; then :
18711 ac_cv_lib_des425_des_cbc_encrypt=yes
18712 else
18713 ac_cv_lib_des425_des_cbc_encrypt=no
18715 rm -f core conftest.err conftest.$ac_objext \
18716 conftest$ac_exeext conftest.$ac_ext
18717 LIBS=$ac_check_lib_save_LIBS
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18720 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18721 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
18722 have_des425=yes
18723 else
18724 have_des425=no
18727 if test $have_des425 = yes; then
18728 DESLIB=-ldes425
18729 LIBS="$DESLIB $LIBS"
18731 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18733 else
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18735 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18736 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
18737 $as_echo_n "(cached) " >&6
18738 else
18739 ac_check_lib_save_LIBS=$LIBS
18740 LIBS="-ldes $LIBS"
18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18747 #ifdef __cplusplus
18748 extern "C"
18749 #endif
18750 char des_cbc_encrypt ();
18752 main ()
18754 return des_cbc_encrypt ();
18756 return 0;
18758 _ACEOF
18759 if ac_fn_c_try_link "$LINENO"; then :
18760 ac_cv_lib_des_des_cbc_encrypt=yes
18761 else
18762 ac_cv_lib_des_des_cbc_encrypt=no
18764 rm -f core conftest.err conftest.$ac_objext \
18765 conftest$ac_exeext conftest.$ac_ext
18766 LIBS=$ac_check_lib_save_LIBS
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18769 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18770 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
18771 have_des=yes
18772 else
18773 have_des=no
18776 if test $have_des = yes; then
18777 DESLIB=-ldes
18778 LIBS="$DESLIB $LIBS"
18780 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18785 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18786 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
18787 $as_echo_n "(cached) " >&6
18788 else
18789 ac_check_lib_save_LIBS=$LIBS
18790 LIBS="-lkrb4 $LIBS"
18791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18792 /* end confdefs.h. */
18794 /* Override any GCC internal prototype to avoid an error.
18795 Use char because int might match the return type of a GCC
18796 builtin and then its argument prototype would still apply. */
18797 #ifdef __cplusplus
18798 extern "C"
18799 #endif
18800 char krb_get_cred ();
18802 main ()
18804 return krb_get_cred ();
18806 return 0;
18808 _ACEOF
18809 if ac_fn_c_try_link "$LINENO"; then :
18810 ac_cv_lib_krb4_krb_get_cred=yes
18811 else
18812 ac_cv_lib_krb4_krb_get_cred=no
18814 rm -f core conftest.err conftest.$ac_objext \
18815 conftest$ac_exeext conftest.$ac_ext
18816 LIBS=$ac_check_lib_save_LIBS
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18819 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18820 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
18821 have_krb4=yes
18822 else
18823 have_krb4=no
18826 if test $have_krb4 = yes; then
18827 KRB4LIB=-lkrb4
18828 LIBS="$KRB4LIB $LIBS"
18830 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18832 else
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18834 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18835 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
18836 $as_echo_n "(cached) " >&6
18837 else
18838 ac_check_lib_save_LIBS=$LIBS
18839 LIBS="-lkrb $LIBS"
18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841 /* end confdefs.h. */
18843 /* Override any GCC internal prototype to avoid an error.
18844 Use char because int might match the return type of a GCC
18845 builtin and then its argument prototype would still apply. */
18846 #ifdef __cplusplus
18847 extern "C"
18848 #endif
18849 char krb_get_cred ();
18851 main ()
18853 return krb_get_cred ();
18855 return 0;
18857 _ACEOF
18858 if ac_fn_c_try_link "$LINENO"; then :
18859 ac_cv_lib_krb_krb_get_cred=yes
18860 else
18861 ac_cv_lib_krb_krb_get_cred=no
18863 rm -f core conftest.err conftest.$ac_objext \
18864 conftest$ac_exeext conftest.$ac_ext
18865 LIBS=$ac_check_lib_save_LIBS
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18868 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18869 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
18870 have_krb=yes
18871 else
18872 have_krb=no
18875 if test $have_krb = yes; then
18876 KRB4LIB=-lkrb
18877 LIBS="$KRB4LIB $LIBS"
18879 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18885 if test "${with_kerberos5}" != no; then
18886 for ac_header in krb5.h
18887 do :
18888 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18889 if test "x$ac_cv_header_krb5_h" = x""yes; then :
18890 cat >>confdefs.h <<_ACEOF
18891 #define HAVE_KRB5_H 1
18892 _ACEOF
18893 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18895 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
18897 cat >>confdefs.h <<_ACEOF
18898 #define HAVE_KRB5_ERROR_TEXT 1
18899 _ACEOF
18903 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18905 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
18907 cat >>confdefs.h <<_ACEOF
18908 #define HAVE_KRB5_ERROR_E_TEXT 1
18909 _ACEOF
18916 done
18918 else
18919 for ac_header in des.h
18920 do :
18921 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18922 if test "x$ac_cv_header_des_h" = x""yes; then :
18923 cat >>confdefs.h <<_ACEOF
18924 #define HAVE_DES_H 1
18925 _ACEOF
18927 else
18928 for ac_header in kerberosIV/des.h
18929 do :
18930 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18931 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
18932 cat >>confdefs.h <<_ACEOF
18933 #define HAVE_KERBEROSIV_DES_H 1
18934 _ACEOF
18936 else
18937 for ac_header in kerberos/des.h
18938 do :
18939 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18940 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
18941 cat >>confdefs.h <<_ACEOF
18942 #define HAVE_KERBEROS_DES_H 1
18943 _ACEOF
18947 done
18951 done
18955 done
18957 for ac_header in krb.h
18958 do :
18959 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18960 if test "x$ac_cv_header_krb_h" = x""yes; then :
18961 cat >>confdefs.h <<_ACEOF
18962 #define HAVE_KRB_H 1
18963 _ACEOF
18965 else
18966 for ac_header in kerberosIV/krb.h
18967 do :
18968 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18969 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
18970 cat >>confdefs.h <<_ACEOF
18971 #define HAVE_KERBEROSIV_KRB_H 1
18972 _ACEOF
18974 else
18975 for ac_header in kerberos/krb.h
18976 do :
18977 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18978 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
18979 cat >>confdefs.h <<_ACEOF
18980 #define HAVE_KERBEROS_KRB_H 1
18981 _ACEOF
18985 done
18989 done
18993 done
18996 for ac_header in com_err.h
18997 do :
18998 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18999 if test "x$ac_cv_header_com_err_h" = x""yes; then :
19000 cat >>confdefs.h <<_ACEOF
19001 #define HAVE_COM_ERR_H 1
19002 _ACEOF
19006 done
19016 # Solaris requires -lintl if you want strerror (which calls dgettext)
19017 # to return localized messages.
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19019 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19020 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
19021 $as_echo_n "(cached) " >&6
19022 else
19023 ac_check_lib_save_LIBS=$LIBS
19024 LIBS="-lintl $LIBS"
19025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19026 /* end confdefs.h. */
19028 /* Override any GCC internal prototype to avoid an error.
19029 Use char because int might match the return type of a GCC
19030 builtin and then its argument prototype would still apply. */
19031 #ifdef __cplusplus
19032 extern "C"
19033 #endif
19034 char dgettext ();
19036 main ()
19038 return dgettext ();
19040 return 0;
19042 _ACEOF
19043 if ac_fn_c_try_link "$LINENO"; then :
19044 ac_cv_lib_intl_dgettext=yes
19045 else
19046 ac_cv_lib_intl_dgettext=no
19048 rm -f core conftest.err conftest.$ac_objext \
19049 conftest$ac_exeext conftest.$ac_ext
19050 LIBS=$ac_check_lib_save_LIBS
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19053 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19054 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
19055 cat >>confdefs.h <<_ACEOF
19056 #define HAVE_LIBINTL 1
19057 _ACEOF
19059 LIBS="-lintl $LIBS"
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19065 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19066 if test "${emacs_cv_localtime_cache+set}" = set; then :
19067 $as_echo_n "(cached) " >&6
19068 else
19069 if test x$ac_cv_func_tzset = xyes; then
19070 if test "$cross_compiling" = yes; then :
19071 # If we have tzset, assume the worst when cross-compiling.
19072 emacs_cv_localtime_cache=yes
19073 else
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h. */
19076 #include <time.h>
19077 char TZ_GMT0[] = "TZ=GMT0";
19078 char TZ_PST8[] = "TZ=PST8";
19079 main()
19081 time_t now = time ((time_t *) 0);
19082 int hour_GMT0, hour_unset;
19083 if (putenv (TZ_GMT0) != 0)
19084 exit (1);
19085 hour_GMT0 = localtime (&now)->tm_hour;
19086 unsetenv("TZ");
19087 hour_unset = localtime (&now)->tm_hour;
19088 if (putenv (TZ_PST8) != 0)
19089 exit (1);
19090 if (localtime (&now)->tm_hour == hour_GMT0)
19091 exit (1);
19092 unsetenv("TZ");
19093 if (localtime (&now)->tm_hour != hour_unset)
19094 exit (1);
19095 exit (0);
19097 _ACEOF
19098 if ac_fn_c_try_run "$LINENO"; then :
19099 emacs_cv_localtime_cache=no
19100 else
19101 emacs_cv_localtime_cache=yes
19103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19104 conftest.$ac_objext conftest.beam conftest.$ac_ext
19107 else
19108 # If we lack tzset, report that localtime does not cache TZ,
19109 # since we can't invalidate the cache if we don't have tzset.
19110 emacs_cv_localtime_cache=no
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19114 $as_echo "$emacs_cv_localtime_cache" >&6; }
19115 if test $emacs_cv_localtime_cache = yes; then
19117 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
19121 if test "x$HAVE_TIMEVAL" = xyes; then
19122 for ac_func in gettimeofday
19123 do :
19124 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19125 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
19126 cat >>confdefs.h <<_ACEOF
19127 #define HAVE_GETTIMEOFDAY 1
19128 _ACEOF
19131 done
19133 if test $ac_cv_func_gettimeofday = yes; then
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
19135 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
19136 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
19137 $as_echo_n "(cached) " >&6
19138 else
19139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19140 /* end confdefs.h. */
19142 #ifdef TIME_WITH_SYS_TIME
19143 #include <sys/time.h>
19144 #include <time.h>
19145 #else
19146 #ifdef HAVE_SYS_TIME_H
19147 #include <sys/time.h>
19148 #else
19149 #include <time.h>
19150 #endif
19151 #endif
19153 main ()
19155 struct timeval time;
19156 gettimeofday (&time, 0);
19158 return 0;
19160 _ACEOF
19161 if ac_fn_c_try_compile "$LINENO"; then :
19162 emacs_cv_gettimeofday_two_arguments=yes
19163 else
19164 emacs_cv_gettimeofday_two_arguments=no
19166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
19169 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
19170 if test $emacs_cv_gettimeofday_two_arguments = no; then
19172 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
19178 ok_so_far=yes
19179 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
19180 if test "x$ac_cv_func_socket" = x""yes; then :
19182 else
19183 ok_so_far=no
19186 if test $ok_so_far = yes; then
19187 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19188 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
19190 else
19191 ok_so_far=no
19196 if test $ok_so_far = yes; then
19197 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
19198 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
19200 else
19201 ok_so_far=no
19206 if test $ok_so_far = yes; then
19208 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
19212 if test -f /usr/lpp/X11/bin/smt.exp; then
19214 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
19219 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
19220 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19222 $as_echo "yes" >&6; }
19224 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
19226 else
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228 $as_echo "no" >&6; }
19231 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19232 if test "x$ac_cv_type_pid_t" = x""yes; then :
19234 else
19236 cat >>confdefs.h <<_ACEOF
19237 #define pid_t int
19238 _ACEOF
19242 for ac_header in vfork.h
19243 do :
19244 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19245 if test "x$ac_cv_header_vfork_h" = x""yes; then :
19246 cat >>confdefs.h <<_ACEOF
19247 #define HAVE_VFORK_H 1
19248 _ACEOF
19252 done
19254 for ac_func in fork vfork
19255 do :
19256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19258 eval as_val=\$$as_ac_var
19259 if test "x$as_val" = x""yes; then :
19260 cat >>confdefs.h <<_ACEOF
19261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19262 _ACEOF
19265 done
19267 if test "x$ac_cv_func_fork" = xyes; then
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19269 $as_echo_n "checking for working fork... " >&6; }
19270 if test "${ac_cv_func_fork_works+set}" = set; then :
19271 $as_echo_n "(cached) " >&6
19272 else
19273 if test "$cross_compiling" = yes; then :
19274 ac_cv_func_fork_works=cross
19275 else
19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h. */
19278 $ac_includes_default
19280 main ()
19283 /* By Ruediger Kuhlmann. */
19284 return fork () < 0;
19287 return 0;
19289 _ACEOF
19290 if ac_fn_c_try_run "$LINENO"; then :
19291 ac_cv_func_fork_works=yes
19292 else
19293 ac_cv_func_fork_works=no
19295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19296 conftest.$ac_objext conftest.beam conftest.$ac_ext
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19301 $as_echo "$ac_cv_func_fork_works" >&6; }
19303 else
19304 ac_cv_func_fork_works=$ac_cv_func_fork
19306 if test "x$ac_cv_func_fork_works" = xcross; then
19307 case $host in
19308 *-*-amigaos* | *-*-msdosdjgpp*)
19309 # Override, as these systems have only a dummy fork() stub
19310 ac_cv_func_fork_works=no
19313 ac_cv_func_fork_works=yes
19315 esac
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19317 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19319 ac_cv_func_vfork_works=$ac_cv_func_vfork
19320 if test "x$ac_cv_func_vfork" = xyes; then
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19322 $as_echo_n "checking for working vfork... " >&6; }
19323 if test "${ac_cv_func_vfork_works+set}" = set; then :
19324 $as_echo_n "(cached) " >&6
19325 else
19326 if test "$cross_compiling" = yes; then :
19327 ac_cv_func_vfork_works=cross
19328 else
19329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h. */
19331 /* Thanks to Paul Eggert for this test. */
19332 $ac_includes_default
19333 #include <sys/wait.h>
19334 #ifdef HAVE_VFORK_H
19335 # include <vfork.h>
19336 #endif
19337 /* On some sparc systems, changes by the child to local and incoming
19338 argument registers are propagated back to the parent. The compiler
19339 is told about this with #include <vfork.h>, but some compilers
19340 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19341 static variable whose address is put into a register that is
19342 clobbered by the vfork. */
19343 static void
19344 #ifdef __cplusplus
19345 sparc_address_test (int arg)
19346 # else
19347 sparc_address_test (arg) int arg;
19348 #endif
19350 static pid_t child;
19351 if (!child) {
19352 child = vfork ();
19353 if (child < 0) {
19354 perror ("vfork");
19355 _exit(2);
19357 if (!child) {
19358 arg = getpid();
19359 write(-1, "", 0);
19360 _exit (arg);
19366 main ()
19368 pid_t parent = getpid ();
19369 pid_t child;
19371 sparc_address_test (0);
19373 child = vfork ();
19375 if (child == 0) {
19376 /* Here is another test for sparc vfork register problems. This
19377 test uses lots of local variables, at least as many local
19378 variables as main has allocated so far including compiler
19379 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19380 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19381 reuse the register of parent for one of the local variables,
19382 since it will think that parent can't possibly be used any more
19383 in this routine. Assigning to the local variable will thus
19384 munge parent in the parent process. */
19385 pid_t
19386 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19387 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19388 /* Convince the compiler that p..p7 are live; otherwise, it might
19389 use the same hardware register for all 8 local variables. */
19390 if (p != p1 || p != p2 || p != p3 || p != p4
19391 || p != p5 || p != p6 || p != p7)
19392 _exit(1);
19394 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19395 from child file descriptors. If the child closes a descriptor
19396 before it execs or exits, this munges the parent's descriptor
19397 as well. Test for this by closing stdout in the child. */
19398 _exit(close(fileno(stdout)) != 0);
19399 } else {
19400 int status;
19401 struct stat st;
19403 while (wait(&status) != child)
19405 return (
19406 /* Was there some problem with vforking? */
19407 child < 0
19409 /* Did the child fail? (This shouldn't happen.) */
19410 || status
19412 /* Did the vfork/compiler bug occur? */
19413 || parent != getpid()
19415 /* Did the file descriptor bug occur? */
19416 || fstat(fileno(stdout), &st) != 0
19420 _ACEOF
19421 if ac_fn_c_try_run "$LINENO"; then :
19422 ac_cv_func_vfork_works=yes
19423 else
19424 ac_cv_func_vfork_works=no
19426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19427 conftest.$ac_objext conftest.beam conftest.$ac_ext
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19432 $as_echo "$ac_cv_func_vfork_works" >&6; }
19435 if test "x$ac_cv_func_fork_works" = xcross; then
19436 ac_cv_func_vfork_works=$ac_cv_func_vfork
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19438 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19441 if test "x$ac_cv_func_vfork_works" = xyes; then
19443 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19445 else
19447 $as_echo "#define vfork fork" >>confdefs.h
19450 if test "x$ac_cv_func_fork_works" = xyes; then
19452 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19458 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19459 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
19460 $as_echo_n "(cached) " >&6
19461 else
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19464 #include <langinfo.h>
19466 main ()
19468 char* cs = nl_langinfo(CODESET);
19470 return 0;
19472 _ACEOF
19473 if ac_fn_c_try_link "$LINENO"; then :
19474 emacs_cv_langinfo_codeset=yes
19475 else
19476 emacs_cv_langinfo_codeset=no
19478 rm -f core conftest.err conftest.$ac_objext \
19479 conftest$ac_exeext conftest.$ac_ext
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19483 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19484 if test $emacs_cv_langinfo_codeset = yes; then
19486 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19490 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19491 if test "x$ac_cv_type_size_t" = x""yes; then :
19493 cat >>confdefs.h <<_ACEOF
19494 #define HAVE_SIZE_T 1
19495 _ACEOF
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19502 $as_echo_n "checking for mbstate_t... " >&6; }
19503 if test "${ac_cv_type_mbstate_t+set}" = set; then :
19504 $as_echo_n "(cached) " >&6
19505 else
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19508 $ac_includes_default
19509 # include <wchar.h>
19511 main ()
19513 mbstate_t x; return sizeof x;
19515 return 0;
19517 _ACEOF
19518 if ac_fn_c_try_compile "$LINENO"; then :
19519 ac_cv_type_mbstate_t=yes
19520 else
19521 ac_cv_type_mbstate_t=no
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19526 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19527 if test $ac_cv_type_mbstate_t = yes; then
19529 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19531 else
19533 $as_echo "#define mbstate_t int" >>confdefs.h
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19538 $as_echo_n "checking for C restricted array declarations... " >&6; }
19539 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
19540 $as_echo_n "(cached) " >&6
19541 else
19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19544 void fred (int x[__restrict]);
19546 main ()
19550 return 0;
19552 _ACEOF
19553 if ac_fn_c_try_compile "$LINENO"; then :
19554 emacs_cv_c_restrict_arr=yes
19555 else
19556 emacs_cv_c_restrict_arr=no
19558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19561 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19562 if test "$emacs_cv_c_restrict_arr" = yes; then
19564 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19570 # Set up the CFLAGS for real compilation, so we can substitute it.
19571 CFLAGS="$REAL_CFLAGS"
19572 CPPFLAGS="$REAL_CPPFLAGS"
19574 ## Hack to detect a buggy GCC version.
19575 if test "x$GCC" = xyes \
19576 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19577 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
19578 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
19579 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19582 version=$PACKAGE_VERSION
19584 ### Specify what sort of things we'll be editing into Makefile and config.h.
19585 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19588 ## Unused?
19609 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19610 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19611 ## end of LIBX_BASE, but nothing ever set it.
19616 ## Used in lwlib/Makefile.in.
19618 if test -n "${machfile}"; then
19619 M_FILE="\$(srcdir)/${machfile}"
19620 else
19621 M_FILE=
19623 S_FILE="\$(srcdir)/${opsysfile}"
19634 cat >>confdefs.h <<_ACEOF
19635 #define EMACS_CONFIGURATION "${canonical}"
19636 _ACEOF
19639 cat >>confdefs.h <<_ACEOF
19640 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19641 _ACEOF
19643 if test -n "$machfile"; then
19645 cat >>confdefs.h <<_ACEOF
19646 #define config_machfile "${machfile}"
19647 _ACEOF
19651 cat >>confdefs.h <<_ACEOF
19652 #define config_opsysfile "${opsysfile}"
19653 _ACEOF
19656 XMENU_OBJ=
19657 XOBJ=
19658 FONT_OBJ=
19659 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19661 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19663 XMENU_OBJ=xmenu.o
19664 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19665 FONT_OBJ=xfont.o
19666 if test "$HAVE_XFT" = "yes"; then
19667 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19668 elif test "$HAVE_FREETYPE" = "yes"; then
19669 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
19677 WIDGET_OBJ=
19678 MOTIF_LIBW=
19679 if test "${USE_X_TOOLKIT}" != "none" ; then
19680 WIDGET_OBJ=widget.o
19682 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19684 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19686 $as_echo "#define USE_LUCID 1" >>confdefs.h
19688 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19690 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19692 MOTIF_LIBW=-lXm
19693 case "$opsys" in
19694 gnu-linux)
19695 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19696 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
19699 unixware)
19700 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19701 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19702 MOTIF_LIBW="MOTIF_LIBW -lXimp"
19705 aix4-2)
19706 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19707 MOTIF_LIBW="$MOTIF_LIBW -li18n"
19709 esac
19710 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
19715 TOOLKIT_LIBW=
19716 case "$USE_X_TOOLKIT" in
19717 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
19718 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
19719 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
19720 esac
19723 if test "$USE_X_TOOLKIT" = "none"; then
19724 LIBXT_OTHER="\$(LIBXSM)"
19725 OLDXMENU_TARGET="really-oldXMenu"
19726 else
19727 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19728 OLDXMENU_TARGET="really-lwlib"
19732 ## The X Menu stuff is present in the X10 distribution, but missing
19733 ## from X11. If we have X10, just use the installed library;
19734 ## otherwise, use our own copy.
19735 if test "${HAVE_X11}" = "yes" ; then
19737 $as_echo "#define HAVE_X11 1" >>confdefs.h
19740 if test "$USE_X_TOOLKIT" = "none"; then
19741 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
19742 else
19743 OLDXMENU="\${lwlibdir}/liblw.a"
19745 LIBXMENU="\$(OLDXMENU)"
19746 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
19747 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
19748 else
19749 ## For a syntactically valid Makefile; not actually used for anything.
19750 ## See comments in src/Makefile.in.
19751 OLDXMENU=nothing
19752 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19753 if test "${HAVE_X_WINDOWS}" = "yes"; then
19754 LIBXMENU="-lXMenu"
19755 else
19756 LIBXMENU=
19758 LIBX_OTHER=
19759 OLDXMENU_DEPS=
19762 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
19763 OLDXMENU_TARGET=
19764 OLDXMENU=nothing
19765 LIBXMENU=
19766 OLDXMENU_DEPS=
19775 if test "${HAVE_MENUS}" = "yes" ; then
19777 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19781 if test "${GNU_MALLOC}" = "yes" ; then
19783 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19787 RALLOC_OBJ=
19788 if test "${REL_ALLOC}" = "yes" ; then
19790 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19793 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
19797 if test "$opsys" = "cygwin"; then
19798 CYGWIN_OBJ="sheap.o"
19799 ## Cygwin differs because of its unexec().
19800 PRE_ALLOC_OBJ=
19801 POST_ALLOC_OBJ=lastfile.o
19802 else
19803 CYGWIN_OBJ=
19804 PRE_ALLOC_OBJ=lastfile.o
19805 POST_ALLOC_OBJ=
19812 case "$opsys" in
19813 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19815 darwin)
19816 ## The -headerpad option tells ld (see man page) to leave room at the
19817 ## end of the header for adding load commands. Needed for dumping.
19818 ## 0x690 is the total size of 30 segment load commands (at 56
19819 ## each); under Cocoa 31 commands are required.
19820 if test "$HAVE_NS" = "yes"; then
19821 libs_nsgui="-framework AppKit"
19822 headerpad_extra=6C8
19823 else
19824 libs_nsgui=
19825 headerpad_extra=690
19827 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19829 ## This is here because src/Makefile.in did some extra fiddling around
19830 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19831 ## #ifndef LD_SWITCH_SYSTEM
19832 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19833 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19834 ## not using gcc, darwin system not on an alpha (ie darwin, since
19835 ## darwin + alpha does not occur).
19836 ## Because this was done in src/Makefile.in, the resulting part of
19837 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19838 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19839 ## rather than LD_SWITCH_SYSTEM.
19840 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19841 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19844 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19845 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19846 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19847 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19848 ## had different values in configure (in ac_link) and src/Makefile.in.
19849 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19850 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19852 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19853 esac
19855 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19856 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19862 LD_FIRSTFLAG=
19863 ORDINARY_LINK=
19864 case "$opsys" in
19865 ## gnu: GNU needs its own crt0.
19866 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19868 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19869 ## library search parth, i.e. it won't search /usr/lib for libc and
19870 ## friends. Using -nostartfiles instead avoids this problem, and
19871 ## will also work on earlier NetBSD releases.
19872 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19874 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19875 ## MkLinux/LinuxPPC needs this.
19876 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19877 gnu-*)
19878 case "$machine" in
19879 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19880 esac
19882 esac
19885 if test "x$ORDINARY_LINK" = "xyes"; then
19887 LD_FIRSTFLAG=""
19889 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19892 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19893 ## freebsd, gnu-* not on macppc|ibms390x.
19894 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19896 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19897 ## places that are difficult to figure out at make time. Fortunately,
19898 ## these same versions allow you to pass arbitrary flags on to the
19899 ## linker, so there is no reason not to use it as a linker.
19901 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19902 ## searching for libraries in its internal directories, so we have to
19903 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19904 LD_FIRSTFLAG="-nostdlib"
19907 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19908 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19913 ## FIXME? The logic here is not precisely the same as that above.
19914 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19915 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19916 LIB_GCC=
19917 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19919 case "$opsys" in
19920 freebsd|netbsd|openbsd) LIB_GCC= ;;
19922 gnu-*)
19923 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19924 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19925 case $host_cpu in
19926 arm*)
19927 LIB_GCC="-lgcc_s"
19930 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19931 ## immediately undefine it again and redefine it to empty.
19932 ## Was the C_SWITCH_X_SITE part really necessary?
19933 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19934 LIB_GCC=
19936 esac
19939 ## Ask GCC where to find libgcc.a.
19940 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19941 esac
19945 TOOLTIP_SUPPORT=
19946 WINDOW_SUPPORT=
19947 ## If we're using X11/GNUstep, define some consequences.
19948 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19950 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19953 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19955 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19956 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19958 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19959 test "$HAVE_X_WINDOWS" = "yes" && \
19960 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19970 #### Report on what we decided to do.
19971 #### Report GTK as a toolkit, even if it doesn't use Xt.
19972 #### It makes printing result more understandable as using GTK sets
19973 #### toolkit_scroll_bars to yes by default.
19974 if test "${HAVE_GTK}" = "yes"; then
19975 USE_X_TOOLKIT=GTK
19978 and_machfile=
19979 if test -n "$machfile"; then
19980 and_machfile=" and \`${machfile}'"
19983 echo "
19984 Configured for \`${canonical}'.
19986 Where should the build process find the source code? ${srcdir}
19987 What operating system and machine description files should Emacs use?
19988 \`${opsysfile}'${and_machfile}
19989 What compiler should emacs be built with? ${CC} ${CFLAGS}
19990 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19991 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19992 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19993 What window system should Emacs use? ${window_system}
19994 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19996 if test -n "${x_includes}"; then
19997 echo " Where do we find X Windows header files? ${x_includes}"
19998 else
19999 echo " Where do we find X Windows header files? Standard dirs"
20001 if test -n "${x_libraries}"; then
20002 echo " Where do we find X Windows libraries? ${x_libraries}"
20003 else
20004 echo " Where do we find X Windows libraries? Standard dirs"
20007 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20008 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20009 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20010 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20011 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
20012 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20013 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
20014 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
20016 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
20017 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
20018 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
20019 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
20020 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
20021 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
20023 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
20024 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
20025 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
20026 echo " Does Emacs use -lxft? ${HAVE_XFT}"
20028 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20029 echo
20031 if test $USE_XASSERTS = yes; then
20032 echo " Compiling with asserts turned on."
20033 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
20036 echo
20038 if test "$HAVE_NS" = "yes"; then
20039 echo
20040 echo "You must run \"make install\" in order to test the built application.
20041 The installed application will go to nextstep/Emacs.app and can be
20042 run or moved from there."
20043 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20044 echo "The application will be fully self-contained."
20045 else
20046 echo "The lisp resources for the application will be installed under ${prefix}.
20047 You may need to run \"make install\" with sudo. The application will fail
20048 to run if these resources are not installed."
20050 echo
20054 # Remove any trailing slashes in these variables.
20055 test "${prefix}" != NONE &&
20056 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20057 test "${exec_prefix}" != NONE &&
20058 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20060 ac_config_files="$ac_config_files Makefile lib/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 test/automated/Makefile"
20063 ac_config_commands="$ac_config_commands mkdirs"
20066 ac_config_commands="$ac_config_commands epaths"
20069 ac_config_commands="$ac_config_commands gdbinit"
20072 cat >confcache <<\_ACEOF
20073 # This file is a shell script that caches the results of configure
20074 # tests run on this system so they can be shared between configure
20075 # scripts and configure runs, see configure's option --config-cache.
20076 # It is not useful on other systems. If it contains results you don't
20077 # want to keep, you may remove or edit it.
20079 # config.status only pays attention to the cache file if you give it
20080 # the --recheck option to rerun configure.
20082 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20083 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20084 # following values.
20086 _ACEOF
20088 # The following way of writing the cache mishandles newlines in values,
20089 # but we know of no workaround that is simple, portable, and efficient.
20090 # So, we kill variables containing newlines.
20091 # Ultrix sh set writes to stderr and can't be redirected directly,
20092 # and sets the high bit in the cache file unless we assign to the vars.
20094 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20095 eval ac_val=\$$ac_var
20096 case $ac_val in #(
20097 *${as_nl}*)
20098 case $ac_var in #(
20099 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20100 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20101 esac
20102 case $ac_var in #(
20103 _ | IFS | as_nl) ;; #(
20104 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20105 *) { eval $ac_var=; unset $ac_var;} ;;
20106 esac ;;
20107 esac
20108 done
20110 (set) 2>&1 |
20111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20112 *${as_nl}ac_space=\ *)
20113 # `set' does not quote correctly, so add quotes: double-quote
20114 # substitution turns \\\\ into \\, and sed turns \\ into \.
20115 sed -n \
20116 "s/'/'\\\\''/g;
20117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20118 ;; #(
20120 # `set' quotes correctly as required by POSIX, so do not add quotes.
20121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20123 esac |
20124 sort
20126 sed '
20127 /^ac_cv_env_/b end
20128 t clear
20129 :clear
20130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20131 t end
20132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20133 :end' >>confcache
20134 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20135 if test -w "$cache_file"; then
20136 test "x$cache_file" != "x/dev/null" &&
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20138 $as_echo "$as_me: updating cache $cache_file" >&6;}
20139 cat confcache >$cache_file
20140 else
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20142 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20145 rm -f confcache
20147 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20148 # Let make expand exec_prefix.
20149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20151 DEFS=-DHAVE_CONFIG_H
20153 ac_libobjs=
20154 ac_ltlibobjs=
20155 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20156 # 1. Remove the extension, and $U if already installed.
20157 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20158 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20160 # will be set to the directory where LIBOBJS objects are built.
20161 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20162 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20163 done
20164 LIBOBJS=$ac_libobjs
20166 LTLIBOBJS=$ac_ltlibobjs
20169 if test -n "$EXEEXT"; then
20170 am__EXEEXT_TRUE=
20171 am__EXEEXT_FALSE='#'
20172 else
20173 am__EXEEXT_TRUE='#'
20174 am__EXEEXT_FALSE=
20177 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20178 as_fn_error "conditional \"AMDEP\" was never defined.
20179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20181 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20182 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20186 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20187 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
20188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20192 gl_libobjs=
20193 gl_ltlibobjs=
20194 if test -n "$gl_LIBOBJS"; then
20195 # Remove the extension.
20196 sed_drop_objext='s/\.o$//;s/\.obj$//'
20197 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20198 gl_libobjs="$gl_libobjs $i.$ac_objext"
20199 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
20200 done
20202 gl_LIBOBJS=$gl_libobjs
20204 gl_LTLIBOBJS=$gl_ltlibobjs
20208 gltests_libobjs=
20209 gltests_ltlibobjs=
20210 if test -n "$gltests_LIBOBJS"; then
20211 # Remove the extension.
20212 sed_drop_objext='s/\.o$//;s/\.obj$//'
20213 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20214 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
20215 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
20216 done
20218 gltests_LIBOBJS=$gltests_libobjs
20220 gltests_LTLIBOBJS=$gltests_ltlibobjs
20224 : ${CONFIG_STATUS=./config.status}
20225 ac_write_fail=0
20226 ac_clean_files_save=$ac_clean_files
20227 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20229 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20230 as_write_fail=0
20231 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20232 #! $SHELL
20233 # Generated by $as_me.
20234 # Run this file to recreate the current configuration.
20235 # Compiler output produced by configure, useful for debugging
20236 # configure, is in config.log if it exists.
20238 debug=false
20239 ac_cs_recheck=false
20240 ac_cs_silent=false
20242 SHELL=\${CONFIG_SHELL-$SHELL}
20243 export SHELL
20244 _ASEOF
20245 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20246 ## -------------------- ##
20247 ## M4sh Initialization. ##
20248 ## -------------------- ##
20250 # Be more Bourne compatible
20251 DUALCASE=1; export DUALCASE # for MKS sh
20252 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20253 emulate sh
20254 NULLCMD=:
20255 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20256 # is contrary to our usage. Disable this feature.
20257 alias -g '${1+"$@"}'='"$@"'
20258 setopt NO_GLOB_SUBST
20259 else
20260 case `(set -o) 2>/dev/null` in #(
20261 *posix*) :
20262 set -o posix ;; #(
20263 *) :
20265 esac
20269 as_nl='
20271 export as_nl
20272 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20273 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20274 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20275 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20276 # Prefer a ksh shell builtin over an external printf program on Solaris,
20277 # but without wasting forks for bash or zsh.
20278 if test -z "$BASH_VERSION$ZSH_VERSION" \
20279 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20280 as_echo='print -r --'
20281 as_echo_n='print -rn --'
20282 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20283 as_echo='printf %s\n'
20284 as_echo_n='printf %s'
20285 else
20286 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20287 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20288 as_echo_n='/usr/ucb/echo -n'
20289 else
20290 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20291 as_echo_n_body='eval
20292 arg=$1;
20293 case $arg in #(
20294 *"$as_nl"*)
20295 expr "X$arg" : "X\\(.*\\)$as_nl";
20296 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20297 esac;
20298 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20300 export as_echo_n_body
20301 as_echo_n='sh -c $as_echo_n_body as_echo'
20303 export as_echo_body
20304 as_echo='sh -c $as_echo_body as_echo'
20307 # The user is always right.
20308 if test "${PATH_SEPARATOR+set}" != set; then
20309 PATH_SEPARATOR=:
20310 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20311 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20312 PATH_SEPARATOR=';'
20317 # IFS
20318 # We need space, tab and new line, in precisely that order. Quoting is
20319 # there to prevent editors from complaining about space-tab.
20320 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20321 # splitting by setting IFS to empty value.)
20322 IFS=" "" $as_nl"
20324 # Find who we are. Look in the path if we contain no directory separator.
20325 case $0 in #((
20326 *[\\/]* ) as_myself=$0 ;;
20327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20328 for as_dir in $PATH
20330 IFS=$as_save_IFS
20331 test -z "$as_dir" && as_dir=.
20332 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20333 done
20334 IFS=$as_save_IFS
20337 esac
20338 # We did not find ourselves, most probably we were run as `sh COMMAND'
20339 # in which case we are not to be found in the path.
20340 if test "x$as_myself" = x; then
20341 as_myself=$0
20343 if test ! -f "$as_myself"; then
20344 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20345 exit 1
20348 # Unset variables that we do not need and which cause bugs (e.g. in
20349 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20350 # suppresses any "Segmentation fault" message there. '((' could
20351 # trigger a bug in pdksh 5.2.14.
20352 for as_var in BASH_ENV ENV MAIL MAILPATH
20353 do eval test x\${$as_var+set} = xset \
20354 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20355 done
20356 PS1='$ '
20357 PS2='> '
20358 PS4='+ '
20360 # NLS nuisances.
20361 LC_ALL=C
20362 export LC_ALL
20363 LANGUAGE=C
20364 export LANGUAGE
20366 # CDPATH.
20367 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20370 # as_fn_error ERROR [LINENO LOG_FD]
20371 # ---------------------------------
20372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20374 # script with status $?, using 1 if that was 0.
20375 as_fn_error ()
20377 as_status=$?; test $as_status -eq 0 && as_status=1
20378 if test "$3"; then
20379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20382 $as_echo "$as_me: error: $1" >&2
20383 as_fn_exit $as_status
20384 } # as_fn_error
20387 # as_fn_set_status STATUS
20388 # -----------------------
20389 # Set $? to STATUS, without forking.
20390 as_fn_set_status ()
20392 return $1
20393 } # as_fn_set_status
20395 # as_fn_exit STATUS
20396 # -----------------
20397 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20398 as_fn_exit ()
20400 set +e
20401 as_fn_set_status $1
20402 exit $1
20403 } # as_fn_exit
20405 # as_fn_unset VAR
20406 # ---------------
20407 # Portably unset VAR.
20408 as_fn_unset ()
20410 { eval $1=; unset $1;}
20412 as_unset=as_fn_unset
20413 # as_fn_append VAR VALUE
20414 # ----------------------
20415 # Append the text in VALUE to the end of the definition contained in VAR. Take
20416 # advantage of any shell optimizations that allow amortized linear growth over
20417 # repeated appends, instead of the typical quadratic growth present in naive
20418 # implementations.
20419 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20420 eval 'as_fn_append ()
20422 eval $1+=\$2
20424 else
20425 as_fn_append ()
20427 eval $1=\$$1\$2
20429 fi # as_fn_append
20431 # as_fn_arith ARG...
20432 # ------------------
20433 # Perform arithmetic evaluation on the ARGs, and store the result in the
20434 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20435 # must be portable across $(()) and expr.
20436 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20437 eval 'as_fn_arith ()
20439 as_val=$(( $* ))
20441 else
20442 as_fn_arith ()
20444 as_val=`expr "$@" || test $? -eq 1`
20446 fi # as_fn_arith
20449 if expr a : '\(a\)' >/dev/null 2>&1 &&
20450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20451 as_expr=expr
20452 else
20453 as_expr=false
20456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20457 as_basename=basename
20458 else
20459 as_basename=false
20462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20463 as_dirname=dirname
20464 else
20465 as_dirname=false
20468 as_me=`$as_basename -- "$0" ||
20469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20470 X"$0" : 'X\(//\)$' \| \
20471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20472 $as_echo X/"$0" |
20473 sed '/^.*\/\([^/][^/]*\)\/*$/{
20474 s//\1/
20477 /^X\/\(\/\/\)$/{
20478 s//\1/
20481 /^X\/\(\/\).*/{
20482 s//\1/
20485 s/.*/./; q'`
20487 # Avoid depending upon Character Ranges.
20488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20491 as_cr_digits='0123456789'
20492 as_cr_alnum=$as_cr_Letters$as_cr_digits
20494 ECHO_C= ECHO_N= ECHO_T=
20495 case `echo -n x` in #(((((
20496 -n*)
20497 case `echo 'xy\c'` in
20498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20499 xy) ECHO_C='\c';;
20500 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20501 ECHO_T=' ';;
20502 esac;;
20504 ECHO_N='-n';;
20505 esac
20507 rm -f conf$$ conf$$.exe conf$$.file
20508 if test -d conf$$.dir; then
20509 rm -f conf$$.dir/conf$$.file
20510 else
20511 rm -f conf$$.dir
20512 mkdir conf$$.dir 2>/dev/null
20514 if (echo >conf$$.file) 2>/dev/null; then
20515 if ln -s conf$$.file conf$$ 2>/dev/null; then
20516 as_ln_s='ln -s'
20517 # ... but there are two gotchas:
20518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20520 # In both cases, we have to default to `cp -p'.
20521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20522 as_ln_s='cp -p'
20523 elif ln conf$$.file conf$$ 2>/dev/null; then
20524 as_ln_s=ln
20525 else
20526 as_ln_s='cp -p'
20528 else
20529 as_ln_s='cp -p'
20531 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20532 rmdir conf$$.dir 2>/dev/null
20535 # as_fn_mkdir_p
20536 # -------------
20537 # Create "$as_dir" as a directory, including parents if necessary.
20538 as_fn_mkdir_p ()
20541 case $as_dir in #(
20542 -*) as_dir=./$as_dir;;
20543 esac
20544 test -d "$as_dir" || eval $as_mkdir_p || {
20545 as_dirs=
20546 while :; do
20547 case $as_dir in #(
20548 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20549 *) as_qdir=$as_dir;;
20550 esac
20551 as_dirs="'$as_qdir' $as_dirs"
20552 as_dir=`$as_dirname -- "$as_dir" ||
20553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20554 X"$as_dir" : 'X\(//\)[^/]' \| \
20555 X"$as_dir" : 'X\(//\)$' \| \
20556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20557 $as_echo X"$as_dir" |
20558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20559 s//\1/
20562 /^X\(\/\/\)[^/].*/{
20563 s//\1/
20566 /^X\(\/\/\)$/{
20567 s//\1/
20570 /^X\(\/\).*/{
20571 s//\1/
20574 s/.*/./; q'`
20575 test -d "$as_dir" && break
20576 done
20577 test -z "$as_dirs" || eval "mkdir $as_dirs"
20578 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20581 } # as_fn_mkdir_p
20582 if mkdir -p . 2>/dev/null; then
20583 as_mkdir_p='mkdir -p "$as_dir"'
20584 else
20585 test -d ./-p && rmdir ./-p
20586 as_mkdir_p=false
20589 if test -x / >/dev/null 2>&1; then
20590 as_test_x='test -x'
20591 else
20592 if ls -dL / >/dev/null 2>&1; then
20593 as_ls_L_option=L
20594 else
20595 as_ls_L_option=
20597 as_test_x='
20598 eval sh -c '\''
20599 if test -d "$1"; then
20600 test -d "$1/.";
20601 else
20602 case $1 in #(
20603 -*)set "./$1";;
20604 esac;
20605 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20606 ???[sx]*):;;*)false;;esac;fi
20607 '\'' sh
20610 as_executable_p=$as_test_x
20612 # Sed expression to map a string onto a valid CPP name.
20613 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20615 # Sed expression to map a string onto a valid variable name.
20616 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20619 exec 6>&1
20620 ## ----------------------------------- ##
20621 ## Main body of $CONFIG_STATUS script. ##
20622 ## ----------------------------------- ##
20623 _ASEOF
20624 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20627 # Save the log message, to keep $0 and so on meaningful, and to
20628 # report actual input values of CONFIG_FILES etc. instead of their
20629 # values after options handling.
20630 ac_log="
20631 This file was extended by emacs $as_me 24.0.50, which was
20632 generated by GNU Autoconf 2.65. Invocation command line was
20634 CONFIG_FILES = $CONFIG_FILES
20635 CONFIG_HEADERS = $CONFIG_HEADERS
20636 CONFIG_LINKS = $CONFIG_LINKS
20637 CONFIG_COMMANDS = $CONFIG_COMMANDS
20638 $ $0 $@
20640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20643 _ACEOF
20645 case $ac_config_files in *"
20646 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20647 esac
20649 case $ac_config_headers in *"
20650 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20651 esac
20654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20655 # Files that config.status was made for.
20656 config_files="$ac_config_files"
20657 config_headers="$ac_config_headers"
20658 config_commands="$ac_config_commands"
20660 _ACEOF
20662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20663 ac_cs_usage="\
20664 \`$as_me' instantiates files and other configuration actions
20665 from templates according to the current configuration. Unless the files
20666 and actions are specified as TAGs, all are instantiated by default.
20668 Usage: $0 [OPTION]... [TAG]...
20670 -h, --help print this help, then exit
20671 -V, --version print version number and configuration settings, then exit
20672 --config print configuration, then exit
20673 -q, --quiet, --silent
20674 do not print progress messages
20675 -d, --debug don't remove temporary files
20676 --recheck update $as_me by reconfiguring in the same conditions
20677 --file=FILE[:TEMPLATE]
20678 instantiate the configuration file FILE
20679 --header=FILE[:TEMPLATE]
20680 instantiate the configuration header FILE
20682 Configuration files:
20683 $config_files
20685 Configuration headers:
20686 $config_headers
20688 Configuration commands:
20689 $config_commands
20691 Report bugs to the package provider."
20693 _ACEOF
20694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20695 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20696 ac_cs_version="\\
20697 emacs config.status 24.0.50
20698 configured by $0, generated by GNU Autoconf 2.65,
20699 with options \\"\$ac_cs_config\\"
20701 Copyright (C) 2009 Free Software Foundation, Inc.
20702 This config.status script is free software; the Free Software Foundation
20703 gives unlimited permission to copy, distribute and modify it."
20705 ac_pwd='$ac_pwd'
20706 srcdir='$srcdir'
20707 INSTALL='$INSTALL'
20708 MKDIR_P='$MKDIR_P'
20709 AWK='$AWK'
20710 test -n "\$AWK" || AWK=awk
20711 _ACEOF
20713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20714 # The default lists apply if the user does not specify any file.
20715 ac_need_defaults=:
20716 while test $# != 0
20718 case $1 in
20719 --*=*)
20720 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20721 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20722 ac_shift=:
20725 ac_option=$1
20726 ac_optarg=$2
20727 ac_shift=shift
20729 esac
20731 case $ac_option in
20732 # Handling of the options.
20733 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20734 ac_cs_recheck=: ;;
20735 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20736 $as_echo "$ac_cs_version"; exit ;;
20737 --config | --confi | --conf | --con | --co | --c )
20738 $as_echo "$ac_cs_config"; exit ;;
20739 --debug | --debu | --deb | --de | --d | -d )
20740 debug=: ;;
20741 --file | --fil | --fi | --f )
20742 $ac_shift
20743 case $ac_optarg in
20744 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20745 esac
20746 as_fn_append CONFIG_FILES " '$ac_optarg'"
20747 ac_need_defaults=false;;
20748 --header | --heade | --head | --hea )
20749 $ac_shift
20750 case $ac_optarg in
20751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20752 esac
20753 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20754 ac_need_defaults=false;;
20755 --he | --h)
20756 # Conflict between --help and --header
20757 as_fn_error "ambiguous option: \`$1'
20758 Try \`$0 --help' for more information.";;
20759 --help | --hel | -h )
20760 $as_echo "$ac_cs_usage"; exit ;;
20761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20763 ac_cs_silent=: ;;
20765 # This is an error.
20766 -*) as_fn_error "unrecognized option: \`$1'
20767 Try \`$0 --help' for more information." ;;
20769 *) as_fn_append ac_config_targets " $1"
20770 ac_need_defaults=false ;;
20772 esac
20773 shift
20774 done
20776 ac_configure_extra_args=
20778 if $ac_cs_silent; then
20779 exec 6>/dev/null
20780 ac_configure_extra_args="$ac_configure_extra_args --silent"
20783 _ACEOF
20784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20785 if \$ac_cs_recheck; then
20786 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20787 shift
20788 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20789 CONFIG_SHELL='$SHELL'
20790 export CONFIG_SHELL
20791 exec "\$@"
20794 _ACEOF
20795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20796 exec 5>>config.log
20798 echo
20799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20800 ## Running $as_me. ##
20801 _ASBOX
20802 $as_echo "$ac_log"
20803 } >&5
20805 _ACEOF
20806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20808 # INIT-COMMANDS
20810 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20811 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20813 _ACEOF
20815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20817 # Handling of arguments.
20818 for ac_config_target in $ac_config_targets
20820 case $ac_config_target in
20821 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20822 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20823 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20824 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20825 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20826 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20827 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20828 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20829 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20830 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20831 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20832 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20833 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20834 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
20835 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
20836 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
20837 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
20838 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
20840 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20841 esac
20842 done
20845 # If the user did not use the arguments to specify the items to instantiate,
20846 # then the envvar interface is used. Set only those that are not.
20847 # We use the long form for the default assignment because of an extremely
20848 # bizarre bug on SunOS 4.1.3.
20849 if $ac_need_defaults; then
20850 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20851 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20852 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20855 # Have a temporary directory for convenience. Make it in the build tree
20856 # simply because there is no reason against having it here, and in addition,
20857 # creating and moving files from /tmp can sometimes cause problems.
20858 # Hook for its removal unless debugging.
20859 # Note that there is a small window in which the directory will not be cleaned:
20860 # after its creation but before its name has been assigned to `$tmp'.
20861 $debug ||
20863 tmp=
20864 trap 'exit_status=$?
20865 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20867 trap 'as_fn_exit 1' 1 2 13 15
20869 # Create a (secure) tmp directory for tmp files.
20872 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20873 test -n "$tmp" && test -d "$tmp"
20874 } ||
20876 tmp=./conf$$-$RANDOM
20877 (umask 077 && mkdir "$tmp")
20878 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20880 # Set up the scripts for CONFIG_FILES section.
20881 # No need to generate them if there are no CONFIG_FILES.
20882 # This happens for instance with `./config.status config.h'.
20883 if test -n "$CONFIG_FILES"; then
20885 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20886 ac_cs_awk_getline=:
20887 ac_cs_awk_pipe_init=
20888 ac_cs_awk_read_file='
20889 while ((getline aline < (F[key])) > 0)
20890 print(aline)
20891 close(F[key])'
20892 ac_cs_awk_pipe_fini=
20893 else
20894 ac_cs_awk_getline=false
20895 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20896 ac_cs_awk_read_file='
20897 print "|#_!!_#|"
20898 print "cat " F[key] " &&"
20899 '$ac_cs_awk_pipe_init
20900 # The final `:' finishes the AND list.
20901 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20903 ac_cr=`echo X | tr X '\015'`
20904 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20905 # But we know of no other shell where ac_cr would be empty at this
20906 # point, so we can use a bashism as a fallback.
20907 if test "x$ac_cr" = x; then
20908 eval ac_cr=\$\'\\r\'
20910 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20911 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20912 ac_cs_awk_cr='\r'
20913 else
20914 ac_cs_awk_cr=$ac_cr
20917 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20918 _ACEOF
20920 # Create commands to substitute file output variables.
20922 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20923 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20924 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20925 echo "_ACAWK" &&
20926 echo "_ACEOF"
20927 } >conf$$files.sh &&
20928 . ./conf$$files.sh ||
20929 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20930 rm -f conf$$files.sh
20933 echo "cat >conf$$subs.awk <<_ACEOF" &&
20934 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20935 echo "_ACEOF"
20936 } >conf$$subs.sh ||
20937 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20938 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20939 ac_delim='%!_!# '
20940 for ac_last_try in false false false false false :; do
20941 . ./conf$$subs.sh ||
20942 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20944 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20945 if test $ac_delim_n = $ac_delim_num; then
20946 break
20947 elif $ac_last_try; then
20948 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20949 else
20950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20952 done
20953 rm -f conf$$subs.sh
20955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20956 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20957 _ACEOF
20958 sed -n '
20960 s/^/S["/; s/!.*/"]=/
20963 s/^[^!]*!//
20964 :repl
20965 t repl
20966 s/'"$ac_delim"'$//
20967 t delim
20970 s/\(.\{148\}\)..*/\1/
20971 t more1
20972 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20975 b repl
20976 :more1
20977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20980 s/.\{148\}//
20981 t nl
20982 :delim
20984 s/\(.\{148\}\)..*/\1/
20985 t more2
20986 s/["\\]/\\&/g; s/^/"/; s/$/"/
20989 :more2
20990 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20993 s/.\{148\}//
20994 t delim
20995 ' <conf$$subs.awk | sed '
20996 /^[^""]/{
20998 s/\n//
21000 ' >>$CONFIG_STATUS || ac_write_fail=1
21001 rm -f conf$$subs.awk
21002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21003 _ACAWK
21004 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21005 for (key in S) S_is_set[key] = 1
21006 FS = "\a"
21007 \$ac_cs_awk_pipe_init
21010 line = $ 0
21011 nfields = split(line, field, "@")
21012 substed = 0
21013 len = length(field[1])
21014 for (i = 2; i < nfields; i++) {
21015 key = field[i]
21016 keylen = length(key)
21017 if (S_is_set[key]) {
21018 value = S[key]
21019 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21020 len += length(value) + length(field[++i])
21021 substed = 1
21022 } else
21023 len += 1 + keylen
21025 if (nfields == 3 && !substed) {
21026 key = field[2]
21027 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21028 \$ac_cs_awk_read_file
21029 next
21032 print line
21034 \$ac_cs_awk_pipe_fini
21035 _ACAWK
21036 _ACEOF
21037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21038 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21039 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21040 else
21042 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21043 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21044 _ACEOF
21046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21048 # trailing colons and then remove the whole line if VPATH becomes empty
21049 # (actually we leave an empty line to preserve line numbers).
21050 if test "x$srcdir" = x.; then
21051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21052 s/:*\$(srcdir):*/:/
21053 s/:*\${srcdir}:*/:/
21054 s/:*@srcdir@:*/:/
21055 s/^\([^=]*=[ ]*\):*/\1/
21056 s/:*$//
21057 s/^[^=]*=[ ]*$//
21061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21062 fi # test -n "$CONFIG_FILES"
21064 # Set up the scripts for CONFIG_HEADERS section.
21065 # No need to generate them if there are no CONFIG_HEADERS.
21066 # This happens for instance with `./config.status Makefile'.
21067 if test -n "$CONFIG_HEADERS"; then
21068 cat >"$tmp/defines.awk" <<\_ACAWK ||
21069 BEGIN {
21070 _ACEOF
21072 # Transform confdefs.h into an awk script `defines.awk', embedded as
21073 # here-document in config.status, that substitutes the proper values into
21074 # config.h.in to produce config.h.
21076 # Create a delimiter string that does not exist in confdefs.h, to ease
21077 # handling of long lines.
21078 ac_delim='%!_!# '
21079 for ac_last_try in false false :; do
21080 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21081 if test -z "$ac_t"; then
21082 break
21083 elif $ac_last_try; then
21084 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21085 else
21086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21088 done
21090 # For the awk script, D is an array of macro values keyed by name,
21091 # likewise P contains macro parameters if any. Preserve backslash
21092 # newline sequences.
21094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21095 sed -n '
21096 s/.\{148\}/&'"$ac_delim"'/g
21097 t rset
21098 :rset
21099 s/^[ ]*#[ ]*define[ ][ ]*/ /
21100 t def
21102 :def
21103 s/\\$//
21104 t bsnl
21105 s/["\\]/\\&/g
21106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21107 D["\1"]=" \3"/p
21108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21110 :bsnl
21111 s/["\\]/\\&/g
21112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21113 D["\1"]=" \3\\\\\\n"\\/p
21114 t cont
21115 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21116 t cont
21118 :cont
21120 s/.\{148\}/&'"$ac_delim"'/g
21121 t clear
21122 :clear
21123 s/\\$//
21124 t bsnlc
21125 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21127 :bsnlc
21128 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21129 b cont
21130 ' <confdefs.h | sed '
21131 s/'"$ac_delim"'/"\\\
21132 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21135 for (key in D) D_is_set[key] = 1
21136 FS = "\a"
21138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21139 line = \$ 0
21140 split(line, arg, " ")
21141 if (arg[1] == "#") {
21142 defundef = arg[2]
21143 mac1 = arg[3]
21144 } else {
21145 defundef = substr(arg[1], 2)
21146 mac1 = arg[2]
21148 split(mac1, mac2, "(") #)
21149 macro = mac2[1]
21150 prefix = substr(line, 1, index(line, defundef) - 1)
21151 if (D_is_set[macro]) {
21152 # Preserve the white space surrounding the "#".
21153 print prefix "define", macro P[macro] D[macro]
21154 next
21155 } else {
21156 # Replace #undef with comments. This is necessary, for example,
21157 # in the case of _POSIX_SOURCE, which is predefined and required
21158 # on some systems where configure will not decide to define it.
21159 if (defundef == "undef") {
21160 print "/*", prefix defundef, macro, "*/"
21161 next
21165 { print }
21166 _ACAWK
21167 _ACEOF
21168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21169 as_fn_error "could not setup config headers machinery" "$LINENO" 5
21170 fi # test -n "$CONFIG_HEADERS"
21173 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21174 shift
21175 for ac_tag
21177 case $ac_tag in
21178 :[FHLC]) ac_mode=$ac_tag; continue;;
21179 esac
21180 case $ac_mode$ac_tag in
21181 :[FHL]*:*);;
21182 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21183 :[FH]-) ac_tag=-:-;;
21184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21185 esac
21186 ac_save_IFS=$IFS
21187 IFS=:
21188 set x $ac_tag
21189 IFS=$ac_save_IFS
21190 shift
21191 ac_file=$1
21192 shift
21194 case $ac_mode in
21195 :L) ac_source=$1;;
21196 :[FH])
21197 ac_file_inputs=
21198 for ac_f
21200 case $ac_f in
21201 -) ac_f="$tmp/stdin";;
21202 *) # Look for the file first in the build tree, then in the source tree
21203 # (if the path is not absolute). The absolute path cannot be DOS-style,
21204 # because $ac_f cannot contain `:'.
21205 test -f "$ac_f" ||
21206 case $ac_f in
21207 [\\/$]*) false;;
21208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21209 esac ||
21210 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21211 esac
21212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21213 as_fn_append ac_file_inputs " '$ac_f'"
21214 done
21216 # Let's still pretend it is `configure' which instantiates (i.e., don't
21217 # use $as_me), people would be surprised to read:
21218 # /* config.h. Generated by config.status. */
21219 configure_input='Generated from '`
21220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21221 `' by configure.'
21222 if test x"$ac_file" != x-; then
21223 configure_input="$ac_file. $configure_input"
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21225 $as_echo "$as_me: creating $ac_file" >&6;}
21227 # Neutralize special characters interpreted by sed in replacement strings.
21228 case $configure_input in #(
21229 *\&* | *\|* | *\\* )
21230 ac_sed_conf_input=`$as_echo "$configure_input" |
21231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21232 *) ac_sed_conf_input=$configure_input;;
21233 esac
21235 case $ac_tag in
21236 *:-:* | *:-) cat >"$tmp/stdin" \
21237 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21238 esac
21240 esac
21242 ac_dir=`$as_dirname -- "$ac_file" ||
21243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21244 X"$ac_file" : 'X\(//\)[^/]' \| \
21245 X"$ac_file" : 'X\(//\)$' \| \
21246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21247 $as_echo X"$ac_file" |
21248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21249 s//\1/
21252 /^X\(\/\/\)[^/].*/{
21253 s//\1/
21256 /^X\(\/\/\)$/{
21257 s//\1/
21260 /^X\(\/\).*/{
21261 s//\1/
21264 s/.*/./; q'`
21265 as_dir="$ac_dir"; as_fn_mkdir_p
21266 ac_builddir=.
21268 case "$ac_dir" in
21269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21272 # A ".." for each directory in $ac_dir_suffix.
21273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21274 case $ac_top_builddir_sub in
21275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21277 esac ;;
21278 esac
21279 ac_abs_top_builddir=$ac_pwd
21280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21281 # for backward compatibility:
21282 ac_top_builddir=$ac_top_build_prefix
21284 case $srcdir in
21285 .) # We are building in place.
21286 ac_srcdir=.
21287 ac_top_srcdir=$ac_top_builddir_sub
21288 ac_abs_top_srcdir=$ac_pwd ;;
21289 [\\/]* | ?:[\\/]* ) # Absolute name.
21290 ac_srcdir=$srcdir$ac_dir_suffix;
21291 ac_top_srcdir=$srcdir
21292 ac_abs_top_srcdir=$srcdir ;;
21293 *) # Relative name.
21294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21295 ac_top_srcdir=$ac_top_build_prefix$srcdir
21296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21297 esac
21298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21301 case $ac_mode in
21304 # CONFIG_FILE
21307 case $INSTALL in
21308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21310 esac
21311 ac_MKDIR_P=$MKDIR_P
21312 case $MKDIR_P in
21313 [\\/$]* | ?:[\\/]* ) ;;
21314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21315 esac
21316 _ACEOF
21318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21319 # If the template does not know about datarootdir, expand it.
21320 # FIXME: This hack should be removed a few years after 2.60.
21321 ac_datarootdir_hack=; ac_datarootdir_seen=
21322 ac_sed_dataroot='
21323 /datarootdir/ {
21327 /@datadir@/p
21328 /@docdir@/p
21329 /@infodir@/p
21330 /@localedir@/p
21331 /@mandir@/p'
21332 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21333 *datarootdir*) ac_datarootdir_seen=yes;;
21334 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21336 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21337 _ACEOF
21338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21339 ac_datarootdir_hack='
21340 s&@datadir@&$datadir&g
21341 s&@docdir@&$docdir&g
21342 s&@infodir@&$infodir&g
21343 s&@localedir@&$localedir&g
21344 s&@mandir@&$mandir&g
21345 s&\\\${datarootdir}&$datarootdir&g' ;;
21346 esac
21347 _ACEOF
21349 # Neutralize VPATH when `$srcdir' = `.'.
21350 # Shell code in configure.ac might set extrasub.
21351 # FIXME: do we really want to maintain this feature?
21352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21353 ac_sed_extra="$ac_vpsub
21354 $extrasub
21355 _ACEOF
21356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21359 s|@configure_input@|$ac_sed_conf_input|;t t
21360 s&@top_builddir@&$ac_top_builddir_sub&;t t
21361 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21362 s&@srcdir@&$ac_srcdir&;t t
21363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21364 s&@top_srcdir@&$ac_top_srcdir&;t t
21365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21366 s&@builddir@&$ac_builddir&;t t
21367 s&@abs_builddir@&$ac_abs_builddir&;t t
21368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21369 s&@INSTALL@&$ac_INSTALL&;t t
21370 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21371 $ac_datarootdir_hack
21373 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21374 if $ac_cs_awk_getline; then
21375 $AWK -f "$tmp/subs.awk"
21376 else
21377 $AWK -f "$tmp/subs.awk" | $SHELL
21378 fi >$tmp/out \
21379 || as_fn_error "could not create $ac_file" "$LINENO" 5
21381 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21382 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21385 which seems to be undefined. Please make sure it is defined." >&5
21386 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21387 which seems to be undefined. Please make sure it is defined." >&2;}
21389 rm -f "$tmp/stdin"
21390 case $ac_file in
21391 -) cat "$tmp/out" && rm -f "$tmp/out";;
21392 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21393 esac \
21394 || as_fn_error "could not create $ac_file" "$LINENO" 5
21398 # CONFIG_HEADER
21400 if test x"$ac_file" != x-; then
21402 $as_echo "/* $configure_input */" \
21403 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21404 } >"$tmp/config.h" \
21405 || as_fn_error "could not create $ac_file" "$LINENO" 5
21406 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21408 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21409 else
21410 rm -f "$ac_file"
21411 mv "$tmp/config.h" "$ac_file" \
21412 || as_fn_error "could not create $ac_file" "$LINENO" 5
21414 else
21415 $as_echo "/* $configure_input */" \
21416 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21417 || as_fn_error "could not create -" "$LINENO" 5
21419 # Compute "$ac_file"'s index in $config_headers.
21420 _am_arg="$ac_file"
21421 _am_stamp_count=1
21422 for _am_header in $config_headers :; do
21423 case $_am_header in
21424 $_am_arg | $_am_arg:* )
21425 break ;;
21427 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21428 esac
21429 done
21430 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21431 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21432 X"$_am_arg" : 'X\(//\)[^/]' \| \
21433 X"$_am_arg" : 'X\(//\)$' \| \
21434 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21435 $as_echo X"$_am_arg" |
21436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21437 s//\1/
21440 /^X\(\/\/\)[^/].*/{
21441 s//\1/
21444 /^X\(\/\/\)$/{
21445 s//\1/
21448 /^X\(\/\).*/{
21449 s//\1/
21452 s/.*/./; q'`/stamp-h$_am_stamp_count
21455 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21456 $as_echo "$as_me: executing $ac_file commands" >&6;}
21458 esac
21461 case $ac_file$ac_mode in
21462 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21463 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21464 # are listed without --file. Let's play safe and only enable the eval
21465 # if we detect the quoting.
21466 case $CONFIG_FILES in
21467 *\'*) eval set x "$CONFIG_FILES" ;;
21468 *) set x $CONFIG_FILES ;;
21469 esac
21470 shift
21471 for mf
21473 # Strip MF so we end up with the name of the file.
21474 mf=`echo "$mf" | sed -e 's/:.*$//'`
21475 # Check whether this is an Automake generated Makefile or not.
21476 # We used to match only the files named `Makefile.in', but
21477 # some people rename them; so instead we look at the file content.
21478 # Grep'ing the first line is not enough: some people post-process
21479 # each Makefile.in and add a new line on top of each file to say so.
21480 # Grep'ing the whole file is not good either: AIX grep has a line
21481 # limit of 2048, but all sed's we know have understand at least 4000.
21482 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21483 dirpart=`$as_dirname -- "$mf" ||
21484 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21485 X"$mf" : 'X\(//\)[^/]' \| \
21486 X"$mf" : 'X\(//\)$' \| \
21487 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21488 $as_echo X"$mf" |
21489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21490 s//\1/
21493 /^X\(\/\/\)[^/].*/{
21494 s//\1/
21497 /^X\(\/\/\)$/{
21498 s//\1/
21501 /^X\(\/\).*/{
21502 s//\1/
21505 s/.*/./; q'`
21506 else
21507 continue
21509 # Extract the definition of DEPDIR, am__include, and am__quote
21510 # from the Makefile without running `make'.
21511 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21512 test -z "$DEPDIR" && continue
21513 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21514 test -z "am__include" && continue
21515 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21516 # When using ansi2knr, U may be empty or an underscore; expand it
21517 U=`sed -n 's/^U = //p' < "$mf"`
21518 # Find all dependency output files, they are included files with
21519 # $(DEPDIR) in their names. We invoke sed twice because it is the
21520 # simplest approach to changing $(DEPDIR) to its actual value in the
21521 # expansion.
21522 for file in `sed -n "
21523 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21524 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21525 # Make sure the directory exists.
21526 test -f "$dirpart/$file" && continue
21527 fdir=`$as_dirname -- "$file" ||
21528 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21529 X"$file" : 'X\(//\)[^/]' \| \
21530 X"$file" : 'X\(//\)$' \| \
21531 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21532 $as_echo X"$file" |
21533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21534 s//\1/
21537 /^X\(\/\/\)[^/].*/{
21538 s//\1/
21541 /^X\(\/\/\)$/{
21542 s//\1/
21545 /^X\(\/\).*/{
21546 s//\1/
21549 s/.*/./; q'`
21550 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21551 # echo "creating $dirpart/$file"
21552 echo '# dummy' > "$dirpart/$file"
21553 done
21554 done
21557 "mkdirs":C)
21558 for dir in etc lisp ; do
21559 test -d ${dir} || mkdir ${dir}
21560 done
21562 "epaths":C)
21563 echo creating src/epaths.h
21564 ${MAKE-make} epaths-force
21566 "gdbinit":C)
21567 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21568 echo creating src/.gdbinit
21569 echo source $srcdir/src/.gdbinit > src/.gdbinit
21573 esac
21574 done # for ac_tag
21577 as_fn_exit 0
21578 _ACEOF
21579 ac_clean_files=$ac_clean_files_save
21581 test $ac_write_fail = 0 ||
21582 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21585 # configure is writing to config.log, and then calls config.status.
21586 # config.status does its own redirection, appending to config.log.
21587 # Unfortunately, on DOS this fails, as config.log is still kept open
21588 # by configure, so config.status won't be able to write to it; its
21589 # output is simply discarded. So we exec the FD to /dev/null,
21590 # effectively closing config.log, so it can be properly (re)opened and
21591 # appended to by config.status. When coming back to configure, we
21592 # need to make the FD available again.
21593 if test "$no_create" != yes; then
21594 ac_cs_success=:
21595 ac_config_status_args=
21596 test "$silent" = yes &&
21597 ac_config_status_args="$ac_config_status_args --quiet"
21598 exec 5>/dev/null
21599 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21600 exec 5>>config.log
21601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21602 # would make configure fail if this is the last instruction.
21603 $ac_cs_success || as_fn_exit $?
21605 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21607 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}