Allow Emacs on w32 to build against and work with GnuTLS 3.x.
[emacs.git] / autogen / configure
blob325df38a2dfe230f4f8c1e847ded454770d10c87
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.92.
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.92'
553 PACKAGE_STRING='emacs 24.0.92'
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 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
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 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 LIBGNU_LTLIBDEPS
611 LIBGNU_LIBDEPS
612 gltests_WITNESS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
625 gl_GNULIB_ENABLED_dosname_FALSE
626 gl_GNULIB_ENABLED_dosname_TRUE
627 LTLIBINTL
628 LIBINTL
629 HAVE_UNISTD_H
630 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
631 NEXT_UNISTD_H
632 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
633 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
634 TIME_H_DEFINES_STRUCT_TIMESPEC
635 NEXT_AS_FIRST_DIRECTIVE_TIME_H
636 NEXT_TIME_H
637 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
638 NEXT_SYS_STAT_H
639 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
640 NEXT_STDLIB_H
641 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
642 NEXT_STDIO_H
643 REPLACE_VSPRINTF
644 REPLACE_VSNPRINTF
645 REPLACE_VPRINTF
646 REPLACE_VFPRINTF
647 REPLACE_VDPRINTF
648 REPLACE_VASPRINTF
649 REPLACE_TMPFILE
650 REPLACE_STDIO_WRITE_FUNCS
651 REPLACE_STDIO_READ_FUNCS
652 REPLACE_SPRINTF
653 REPLACE_SNPRINTF
654 REPLACE_RENAMEAT
655 REPLACE_RENAME
656 REPLACE_REMOVE
657 REPLACE_PRINTF
658 REPLACE_POPEN
659 REPLACE_PERROR
660 REPLACE_OBSTACK_PRINTF
661 REPLACE_GETLINE
662 REPLACE_GETDELIM
663 REPLACE_FTELLO
664 REPLACE_FTELL
665 REPLACE_FSEEKO
666 REPLACE_FSEEK
667 REPLACE_FREOPEN
668 REPLACE_FPURGE
669 REPLACE_FPRINTF
670 REPLACE_FOPEN
671 REPLACE_FFLUSH
672 REPLACE_FDOPEN
673 REPLACE_FCLOSE
674 REPLACE_DPRINTF
675 HAVE_VDPRINTF
676 HAVE_VASPRINTF
677 HAVE_RENAMEAT
678 HAVE_POPEN
679 HAVE_PCLOSE
680 HAVE_FTELLO
681 HAVE_FSEEKO
682 HAVE_DPRINTF
683 HAVE_DECL_VSNPRINTF
684 HAVE_DECL_SNPRINTF
685 HAVE_DECL_OBSTACK_PRINTF
686 HAVE_DECL_GETLINE
687 HAVE_DECL_GETDELIM
688 HAVE_DECL_FTELLO
689 HAVE_DECL_FSEEKO
690 HAVE_DECL_FPURGE
691 GNULIB_VSPRINTF_POSIX
692 GNULIB_VSNPRINTF
693 GNULIB_VPRINTF_POSIX
694 GNULIB_VPRINTF
695 GNULIB_VFPRINTF_POSIX
696 GNULIB_VFPRINTF
697 GNULIB_VDPRINTF
698 GNULIB_VSCANF
699 GNULIB_VFSCANF
700 GNULIB_VASPRINTF
701 GNULIB_TMPFILE
702 GNULIB_STDIO_H_SIGPIPE
703 GNULIB_STDIO_H_NONBLOCKING
704 GNULIB_SPRINTF_POSIX
705 GNULIB_SNPRINTF
706 GNULIB_SCANF
707 GNULIB_RENAMEAT
708 GNULIB_RENAME
709 GNULIB_REMOVE
710 GNULIB_PUTS
711 GNULIB_PUTCHAR
712 GNULIB_PUTC
713 GNULIB_PRINTF_POSIX
714 GNULIB_PRINTF
715 GNULIB_POPEN
716 GNULIB_PERROR
717 GNULIB_PCLOSE
718 GNULIB_OBSTACK_PRINTF_POSIX
719 GNULIB_OBSTACK_PRINTF
720 GNULIB_GETS
721 GNULIB_GETLINE
722 GNULIB_GETDELIM
723 GNULIB_GETCHAR
724 GNULIB_GETC
725 GNULIB_FWRITE
726 GNULIB_FTELLO
727 GNULIB_FTELL
728 GNULIB_FSEEKO
729 GNULIB_FSEEK
730 GNULIB_FSCANF
731 GNULIB_FREOPEN
732 GNULIB_FREAD
733 GNULIB_FPUTS
734 GNULIB_FPUTC
735 GNULIB_FPURGE
736 GNULIB_FPRINTF_POSIX
737 GNULIB_FPRINTF
738 GNULIB_FOPEN
739 GNULIB_FGETS
740 GNULIB_FGETC
741 GNULIB_FFLUSH
742 GNULIB_FDOPEN
743 GNULIB_FCLOSE
744 GNULIB_DPRINTF
745 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
746 NEXT_STDDEF_H
747 GL_GENERATE_STDDEF_H_FALSE
748 GL_GENERATE_STDDEF_H_TRUE
749 STDDEF_H
750 HAVE_WCHAR_T
751 REPLACE_NULL
752 HAVE__BOOL
753 GL_GENERATE_STDBOOL_H_FALSE
754 GL_GENERATE_STDBOOL_H_TRUE
755 STDBOOL_H
756 GL_GENERATE_STDARG_H_FALSE
757 GL_GENERATE_STDARG_H_TRUE
758 STDARG_H
759 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
760 NEXT_STDARG_H
761 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
762 NEXT_SIGNAL_H
763 REPLACE_RAISE
764 REPLACE_PTHREAD_SIGMASK
765 HAVE_SIGHANDLER_T
766 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
767 HAVE_STRUCT_SIGACTION_SA_SIGACTION
768 HAVE_SIGACTION
769 HAVE_SIGINFO_T
770 HAVE_SIGSET_T
771 HAVE_RAISE
772 HAVE_PTHREAD_SIGMASK
773 HAVE_POSIX_SIGNALBLOCKING
774 GNULIB_SIGACTION
775 GNULIB_SIGPROCMASK
776 GNULIB_SIGNAL_H_SIGPIPE
777 GNULIB_RAISE
778 GNULIB_PTHREAD_SIGMASK
779 LIB_PTHREAD_SIGMASK
780 REPLACE_TIMEGM
781 REPLACE_NANOSLEEP
782 REPLACE_MKTIME
783 REPLACE_LOCALTIME_R
784 HAVE_TIMEGM
785 HAVE_STRPTIME
786 HAVE_NANOSLEEP
787 HAVE_DECL_LOCALTIME_R
788 GNULIB_TIME_R
789 GNULIB_TIMEGM
790 GNULIB_STRPTIME
791 GNULIB_NANOSLEEP
792 GNULIB_MKTIME
793 REPLACE_UTIMENSAT
794 REPLACE_STAT
795 REPLACE_MKNOD
796 REPLACE_MKFIFO
797 REPLACE_MKDIR
798 REPLACE_LSTAT
799 REPLACE_FUTIMENS
800 REPLACE_FSTATAT
801 REPLACE_FSTAT
802 HAVE_UTIMENSAT
803 HAVE_MKNODAT
804 HAVE_MKNOD
805 HAVE_MKFIFOAT
806 HAVE_MKFIFO
807 HAVE_MKDIRAT
808 HAVE_LSTAT
809 HAVE_LCHMOD
810 HAVE_FUTIMENS
811 HAVE_FSTATAT
812 HAVE_FCHMODAT
813 GNULIB_UTIMENSAT
814 GNULIB_STAT
815 GNULIB_MKNODAT
816 GNULIB_MKNOD
817 GNULIB_MKFIFOAT
818 GNULIB_MKFIFO
819 GNULIB_MKDIRAT
820 GNULIB_LSTAT
821 GNULIB_LCHMOD
822 GNULIB_FUTIMENS
823 GNULIB_FSTATAT
824 GNULIB_FSTAT
825 GNULIB_FCHMODAT
826 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
827 NEXT_INTTYPES_H
828 UINT64_MAX_EQ_ULONG_MAX
829 UINT32_MAX_LT_UINTMAX_MAX
830 PRIPTR_PREFIX
831 PRI_MACROS_BROKEN
832 INT64_MAX_EQ_LONG_MAX
833 INT32_MAX_LT_INTMAX_MAX
834 HAVE_DECL_STRTOUMAX
835 HAVE_DECL_STRTOIMAX
836 HAVE_DECL_IMAXDIV
837 HAVE_DECL_IMAXABS
838 GNULIB_STRTOUMAX
839 GNULIB_STRTOIMAX
840 GNULIB_IMAXDIV
841 GNULIB_IMAXABS
842 GL_GENERATE_STDINT_H_FALSE
843 GL_GENERATE_STDINT_H_TRUE
844 STDINT_H
845 WINT_T_SUFFIX
846 WCHAR_T_SUFFIX
847 SIG_ATOMIC_T_SUFFIX
848 SIZE_T_SUFFIX
849 PTRDIFF_T_SUFFIX
850 HAVE_SIGNED_WINT_T
851 HAVE_SIGNED_WCHAR_T
852 HAVE_SIGNED_SIG_ATOMIC_T
853 BITSIZEOF_WINT_T
854 BITSIZEOF_WCHAR_T
855 BITSIZEOF_SIG_ATOMIC_T
856 BITSIZEOF_SIZE_T
857 BITSIZEOF_PTRDIFF_T
858 APPLE_UNIVERSAL_BUILD
859 HAVE_SYS_BITYPES_H
860 HAVE_SYS_INTTYPES_H
861 HAVE_STDINT_H
862 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
863 NEXT_STDINT_H
864 HAVE_SYS_TYPES_H
865 HAVE_INTTYPES_H
866 HAVE_WCHAR_H
867 HAVE_UNSIGNED_LONG_LONG_INT
868 HAVE_LONG_LONG_INT
869 GETOPT_H
870 HAVE_GETOPT_H
871 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
872 NEXT_GETOPT_H
873 PRAGMA_COLUMNS
874 PRAGMA_SYSTEM_HEADER
875 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
876 INCLUDE_NEXT
877 GETLOADAVG_LIBS
878 REPLACE_WCTOMB
879 REPLACE_UNSETENV
880 REPLACE_STRTOD
881 REPLACE_SETENV
882 REPLACE_REALPATH
883 REPLACE_REALLOC
884 REPLACE_PUTENV
885 REPLACE_MKSTEMP
886 REPLACE_MBTOWC
887 REPLACE_MALLOC
888 REPLACE_CANONICALIZE_FILE_NAME
889 REPLACE_CALLOC
890 HAVE_DECL_UNSETENV
891 HAVE_UNLOCKPT
892 HAVE_SYS_LOADAVG_H
893 HAVE_STRUCT_RANDOM_DATA
894 HAVE_STRTOULL
895 HAVE_STRTOLL
896 HAVE_STRTOD
897 HAVE_DECL_SETENV
898 HAVE_SETENV
899 HAVE_RPMATCH
900 HAVE_REALPATH
901 HAVE_RANDOM_R
902 HAVE_RANDOM_H
903 HAVE_PTSNAME
904 HAVE_MKSTEMPS
905 HAVE_MKSTEMP
906 HAVE_MKOSTEMPS
907 HAVE_MKOSTEMP
908 HAVE_MKDTEMP
909 HAVE_GRANTPT
910 HAVE_GETSUBOPT
911 HAVE_DECL_GETLOADAVG
912 HAVE_CANONICALIZE_FILE_NAME
913 HAVE_ATOLL
914 HAVE__EXIT
915 GNULIB_WCTOMB
916 GNULIB_UNSETENV
917 GNULIB_UNLOCKPT
918 GNULIB_SYSTEM_POSIX
919 GNULIB_STRTOULL
920 GNULIB_STRTOLL
921 GNULIB_STRTOD
922 GNULIB_SETENV
923 GNULIB_RPMATCH
924 GNULIB_REALPATH
925 GNULIB_REALLOC_POSIX
926 GNULIB_RANDOM_R
927 GNULIB_PUTENV
928 GNULIB_PTSNAME
929 GNULIB_MKSTEMPS
930 GNULIB_MKSTEMP
931 GNULIB_MKOSTEMPS
932 GNULIB_MKOSTEMP
933 GNULIB_MKDTEMP
934 GNULIB_MBTOWC
935 GNULIB_MALLOC_POSIX
936 GNULIB_GRANTPT
937 GNULIB_GETSUBOPT
938 GNULIB_GETLOADAVG
939 GNULIB_CANONICALIZE_FILE_NAME
940 GNULIB_CALLOC_POSIX
941 GNULIB_ATOLL
942 GNULIB__EXIT
943 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
944 UNISTD_H_HAVE_WINSOCK2_H
945 REPLACE_WRITE
946 REPLACE_USLEEP
947 REPLACE_UNLINKAT
948 REPLACE_UNLINK
949 REPLACE_TTYNAME_R
950 REPLACE_SYMLINK
951 REPLACE_SLEEP
952 REPLACE_RMDIR
953 REPLACE_READLINK
954 REPLACE_READ
955 REPLACE_PWRITE
956 REPLACE_PREAD
957 REPLACE_LSEEK
958 REPLACE_LINKAT
959 REPLACE_LINK
960 REPLACE_LCHOWN
961 REPLACE_GETPAGESIZE
962 REPLACE_GETGROUPS
963 REPLACE_GETLOGIN_R
964 REPLACE_GETDOMAINNAME
965 REPLACE_GETCWD
966 REPLACE_FCHOWNAT
967 REPLACE_DUP2
968 REPLACE_DUP
969 REPLACE_CLOSE
970 REPLACE_CHOWN
971 HAVE_SYS_PARAM_H
972 HAVE_OS_H
973 HAVE_DECL_TTYNAME_R
974 HAVE_DECL_GETUSERSHELL
975 HAVE_DECL_GETPAGESIZE
976 HAVE_DECL_GETLOGIN_R
977 HAVE_DECL_GETDOMAINNAME
978 HAVE_DECL_FDATASYNC
979 HAVE_DECL_FCHDIR
980 HAVE_DECL_ENVIRON
981 HAVE_USLEEP
982 HAVE_UNLINKAT
983 HAVE_SYMLINKAT
984 HAVE_SYMLINK
985 HAVE_SLEEP
986 HAVE_READLINKAT
987 HAVE_READLINK
988 HAVE_PWRITE
989 HAVE_PREAD
990 HAVE_PIPE2
991 HAVE_PIPE
992 HAVE_LINKAT
993 HAVE_LINK
994 HAVE_LCHOWN
995 HAVE_GROUP_MEMBER
996 HAVE_GETPAGESIZE
997 HAVE_GETLOGIN
998 HAVE_GETHOSTNAME
999 HAVE_GETGROUPS
1000 HAVE_GETDTABLESIZE
1001 HAVE_FTRUNCATE
1002 HAVE_FSYNC
1003 HAVE_FDATASYNC
1004 HAVE_FCHOWNAT
1005 HAVE_FCHDIR
1006 HAVE_FACCESSAT
1007 HAVE_EUIDACCESS
1008 HAVE_DUP3
1009 HAVE_DUP2
1010 HAVE_CHOWN
1011 GNULIB_WRITE
1012 GNULIB_USLEEP
1013 GNULIB_UNLINKAT
1014 GNULIB_UNLINK
1015 GNULIB_UNISTD_H_SIGPIPE
1016 GNULIB_UNISTD_H_NONBLOCKING
1017 GNULIB_UNISTD_H_GETOPT
1018 GNULIB_TTYNAME_R
1019 GNULIB_SYMLINKAT
1020 GNULIB_SYMLINK
1021 GNULIB_SLEEP
1022 GNULIB_RMDIR
1023 GNULIB_READLINKAT
1024 GNULIB_READLINK
1025 GNULIB_READ
1026 GNULIB_PWRITE
1027 GNULIB_PREAD
1028 GNULIB_PIPE2
1029 GNULIB_PIPE
1030 GNULIB_LSEEK
1031 GNULIB_LINKAT
1032 GNULIB_LINK
1033 GNULIB_LCHOWN
1034 GNULIB_GROUP_MEMBER
1035 GNULIB_GETUSERSHELL
1036 GNULIB_GETPAGESIZE
1037 GNULIB_GETLOGIN_R
1038 GNULIB_GETLOGIN
1039 GNULIB_GETHOSTNAME
1040 GNULIB_GETGROUPS
1041 GNULIB_GETDTABLESIZE
1042 GNULIB_GETDOMAINNAME
1043 GNULIB_GETCWD
1044 GNULIB_FTRUNCATE
1045 GNULIB_FSYNC
1046 GNULIB_FDATASYNC
1047 GNULIB_FCHOWNAT
1048 GNULIB_FCHDIR
1049 GNULIB_FACCESSAT
1050 GNULIB_EUIDACCESS
1051 GNULIB_ENVIRON
1052 GNULIB_DUP3
1053 GNULIB_DUP2
1054 GNULIB_DUP
1055 GNULIB_CLOSE
1056 GNULIB_CHOWN
1057 GNULIB_CHDIR
1058 GL_GENERATE_ALLOCA_H_FALSE
1059 GL_GENERATE_ALLOCA_H_TRUE
1060 ALLOCA_H
1061 ALLOCA
1062 GL_COND_LIBTOOL_FALSE
1063 GL_COND_LIBTOOL_TRUE
1064 POST_ALLOC_OBJ
1065 PRE_ALLOC_OBJ
1066 CYGWIN_OBJ
1067 RALLOC_OBJ
1068 OLDXMENU_DEPS
1069 LIBX_OTHER
1070 LIBXMENU
1071 OLDXMENU
1072 OLDXMENU_TARGET
1073 LIBXT_OTHER
1074 TOOLKIT_LIBW
1075 WIDGET_OBJ
1076 XOBJ
1077 XMENU_OBJ
1078 FONT_OBJ
1079 OTHER_FILES
1080 GNU_OBJC_CFLAGS
1081 ns_appsrc
1082 ns_appresdir
1083 ns_appbindir
1084 ns_appdir
1085 S_FILE
1086 M_FILE
1087 X_TOOLKIT_TYPE
1088 C_SWITCH_X_SYSTEM
1089 C_SWITCH_X_SITE
1090 LD_SWITCH_X_SITE
1091 gameuser
1092 gamedir
1093 bitmapdir
1094 archlibdir
1095 etcdir
1096 x_default_search_path
1097 lisppath
1098 locallisppath
1099 lispdir
1100 srcdir
1101 canonical
1102 configuration
1103 version
1104 KRB4LIB
1105 DESLIB
1106 KRB5LIB
1107 CRYPTOLIB
1108 COM_ERRLIB
1109 LIBRESOLV
1110 LIBHESIOD
1111 TERMCAP_OBJ
1112 LIBS_TERMCAP
1113 BLESSMAIL_TARGET
1114 LIBS_MAIL
1115 liblockfile
1116 LIBXML2_LIBS
1117 LIBXML2_CFLAGS
1118 LIBXSM
1119 LIBGPM
1120 LIBGIF
1121 LIBTIFF
1122 LIBPNG
1123 LIBJPEG
1124 LIBXPM
1125 M17N_FLT_LIBS
1126 M17N_FLT_CFLAGS
1127 LIBOTF_LIBS
1128 LIBOTF_CFLAGS
1129 FREETYPE_LIBS
1130 FREETYPE_CFLAGS
1131 XFT_LIBS
1132 XFT_CFLAGS
1133 FONTCONFIG_LIBS
1134 FONTCONFIG_CFLAGS
1135 LIBXMU
1136 LIBXTR6
1137 LIBGNUTLS_LIBS
1138 LIBGNUTLS_CFLAGS
1139 LIBSELINUX_LIBS
1140 SETTINGS_LIBS
1141 SETTINGS_CFLAGS
1142 GCONF_LIBS
1143 GCONF_CFLAGS
1144 GSETTINGS_LIBS
1145 GSETTINGS_CFLAGS
1146 DBUS_OBJ
1147 DBUS_LIBS
1148 DBUS_CFLAGS
1149 GTK_OBJ
1150 GTK_LIBS
1151 GTK_CFLAGS
1152 IMAGEMAGICK_LIBS
1153 IMAGEMAGICK_CFLAGS
1154 RSVG_LIBS
1155 RSVG_CFLAGS
1156 LIB_PTHREAD
1157 VMLIMIT_OBJ
1158 GMALLOC_OBJ
1159 HAVE_XSERVER
1160 LIB_STANDARD
1161 NS_OBJC_OBJ
1162 NS_OBJ
1163 TEMACS_LDFLAGS2
1164 LD_SWITCH_X_SITE_AUX_RPATH
1165 LD_SWITCH_X_SITE_AUX
1166 XMKMF
1167 DEPFLAGS
1168 MKDEPDIR
1169 CFLAGS_SOUND
1170 ALSA_LIBS
1171 ALSA_CFLAGS
1172 PKG_CONFIG
1173 LIBSOUND
1174 CRT_DIR
1175 START_FILES
1176 LIB_MATH
1177 LIBS_SYSTEM
1178 C_SWITCH_SYSTEM
1179 UNEXEC_OBJ
1180 C_SWITCH_MACHINE
1181 LD_SWITCH_SYSTEM
1182 CANNOT_DUMP
1183 HAVE_MAKEINFO
1184 GZIP_PROG
1185 INSTALL_INFO
1186 C_WARNINGS_SWITCH
1187 RANLIB
1188 ARFLAGS
1190 EGREP
1191 GREP
1193 am__fastdepCC_FALSE
1194 am__fastdepCC_TRUE
1195 CCDEPMODE
1196 AMDEPBACKSLASH
1197 AMDEP_FALSE
1198 AMDEP_TRUE
1199 am__quote
1200 am__include
1201 DEPDIR
1202 OBJEXT
1203 EXEEXT
1204 ac_ct_CC
1205 CPPFLAGS
1206 LDFLAGS
1207 CFLAGS
1209 host_os
1210 host_vendor
1211 host_cpu
1212 host
1213 build_os
1214 build_vendor
1215 build_cpu
1216 build
1217 PROFILING_CFLAGS
1218 MAINT
1219 GZIP_INFO
1220 cache_file
1221 am__untar
1222 am__tar
1223 AMTAR
1224 am__leading_dot
1225 SET_MAKE
1227 mkdir_p
1228 MKDIR_P
1229 INSTALL_STRIP_PROGRAM
1230 STRIP
1231 install_sh
1232 MAKEINFO
1233 AUTOHEADER
1234 AUTOMAKE
1235 AUTOCONF
1236 ACLOCAL
1237 VERSION
1238 PACKAGE
1239 CYGPATH_W
1240 am__isrc
1241 INSTALL_DATA
1242 INSTALL_SCRIPT
1243 INSTALL_PROGRAM
1244 target_alias
1245 host_alias
1246 build_alias
1247 LIBS
1248 ECHO_T
1249 ECHO_N
1250 ECHO_C
1251 DEFS
1252 mandir
1253 localedir
1254 libdir
1255 psdir
1256 pdfdir
1257 dvidir
1258 htmldir
1259 infodir
1260 docdir
1261 oldincludedir
1262 includedir
1263 localstatedir
1264 sharedstatedir
1265 sysconfdir
1266 datadir
1267 datarootdir
1268 libexecdir
1269 sbindir
1270 bindir
1271 program_transform_name
1272 prefix
1273 exec_prefix
1274 PACKAGE_URL
1275 PACKAGE_BUGREPORT
1276 PACKAGE_STRING
1277 PACKAGE_VERSION
1278 PACKAGE_TARNAME
1279 PACKAGE_NAME
1280 PATH_SEPARATOR
1281 SHELL'
1282 ac_subst_files='deps_frag
1283 lisp_frag
1284 ns_frag'
1285 ac_user_opts='
1286 enable_option_checking
1287 with_pop
1288 with_kerberos
1289 with_kerberos5
1290 with_hesiod
1291 with_mmdf
1292 with_mail_unlink
1293 with_mailhost
1294 with_sound
1295 with_sync_input
1296 with_x_toolkit
1297 with_wide_int
1298 with_xpm
1299 with_jpeg
1300 with_tiff
1301 with_gif
1302 with_png
1303 with_rsvg
1304 with_xml2
1305 with_imagemagick
1306 with_xft
1307 with_libotf
1308 with_m17n_flt
1309 with_toolkit_scroll_bars
1310 with_xaw3d
1311 with_xim
1312 with_ns
1313 with_gpm
1314 with_dbus
1315 with_gconf
1316 with_gsettings
1317 with_selinux
1318 with_gnutls
1319 with_makeinfo
1320 with_compress_info
1321 with_pkg_config_prog
1322 with_crt_dir
1323 with_gameuser
1324 with_gnustep_conf
1325 enable_ns_self_contained
1326 enable_asserts
1327 enable_maintainer_mode
1328 enable_locallisppath
1329 enable_checking
1330 enable_use_lisp_union_type
1331 enable_profiling
1332 enable_autodepend
1333 enable_dependency_tracking
1334 enable_largefile
1335 with_x
1337 ac_precious_vars='build_alias
1338 host_alias
1339 target_alias
1341 CFLAGS
1342 LDFLAGS
1343 LIBS
1344 CPPFLAGS
1346 XMKMF'
1349 # Initialize some variables set by options.
1350 ac_init_help=
1351 ac_init_version=false
1352 ac_unrecognized_opts=
1353 ac_unrecognized_sep=
1354 # The variables have the same names as the options, with
1355 # dashes changed to underlines.
1356 cache_file=/dev/null
1357 exec_prefix=NONE
1358 no_create=
1359 no_recursion=
1360 prefix=NONE
1361 program_prefix=NONE
1362 program_suffix=NONE
1363 program_transform_name=s,x,x,
1364 silent=
1365 site=
1366 srcdir=
1367 verbose=
1368 x_includes=NONE
1369 x_libraries=NONE
1371 # Installation directory options.
1372 # These are left unexpanded so users can "make install exec_prefix=/foo"
1373 # and all the variables that are supposed to be based on exec_prefix
1374 # by default will actually change.
1375 # Use braces instead of parens because sh, perl, etc. also accept them.
1376 # (The list follows the same order as the GNU Coding Standards.)
1377 bindir='${exec_prefix}/bin'
1378 sbindir='${exec_prefix}/sbin'
1379 libexecdir='${exec_prefix}/libexec'
1380 datarootdir='${prefix}/share'
1381 datadir='${datarootdir}'
1382 sysconfdir='${prefix}/etc'
1383 sharedstatedir='${prefix}/com'
1384 localstatedir='${prefix}/var'
1385 includedir='${prefix}/include'
1386 oldincludedir='/usr/include'
1387 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1388 infodir='${datarootdir}/info'
1389 htmldir='${docdir}'
1390 dvidir='${docdir}'
1391 pdfdir='${docdir}'
1392 psdir='${docdir}'
1393 libdir='${exec_prefix}/lib'
1394 localedir='${datarootdir}/locale'
1395 mandir='${datarootdir}/man'
1397 ac_prev=
1398 ac_dashdash=
1399 for ac_option
1401 # If the previous option needs an argument, assign it.
1402 if test -n "$ac_prev"; then
1403 eval $ac_prev=\$ac_option
1404 ac_prev=
1405 continue
1408 case $ac_option in
1409 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1410 *) ac_optarg=yes ;;
1411 esac
1413 # Accept the important Cygnus configure options, so we can diagnose typos.
1415 case $ac_dashdash$ac_option in
1417 ac_dashdash=yes ;;
1419 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1420 ac_prev=bindir ;;
1421 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1422 bindir=$ac_optarg ;;
1424 -build | --build | --buil | --bui | --bu)
1425 ac_prev=build_alias ;;
1426 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1427 build_alias=$ac_optarg ;;
1429 -cache-file | --cache-file | --cache-fil | --cache-fi \
1430 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1431 ac_prev=cache_file ;;
1432 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1433 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1434 cache_file=$ac_optarg ;;
1436 --config-cache | -C)
1437 cache_file=config.cache ;;
1439 -datadir | --datadir | --datadi | --datad)
1440 ac_prev=datadir ;;
1441 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1442 datadir=$ac_optarg ;;
1444 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1445 | --dataroo | --dataro | --datar)
1446 ac_prev=datarootdir ;;
1447 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1448 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1449 datarootdir=$ac_optarg ;;
1451 -disable-* | --disable-*)
1452 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1453 # Reject names that are not valid shell variable names.
1454 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1455 as_fn_error "invalid feature name: $ac_useropt"
1456 ac_useropt_orig=$ac_useropt
1457 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1458 case $ac_user_opts in
1460 "enable_$ac_useropt"
1461 "*) ;;
1462 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1463 ac_unrecognized_sep=', ';;
1464 esac
1465 eval enable_$ac_useropt=no ;;
1467 -docdir | --docdir | --docdi | --doc | --do)
1468 ac_prev=docdir ;;
1469 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1470 docdir=$ac_optarg ;;
1472 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1473 ac_prev=dvidir ;;
1474 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1475 dvidir=$ac_optarg ;;
1477 -enable-* | --enable-*)
1478 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1479 # Reject names that are not valid shell variable names.
1480 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1481 as_fn_error "invalid feature name: $ac_useropt"
1482 ac_useropt_orig=$ac_useropt
1483 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1484 case $ac_user_opts in
1486 "enable_$ac_useropt"
1487 "*) ;;
1488 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1489 ac_unrecognized_sep=', ';;
1490 esac
1491 eval enable_$ac_useropt=\$ac_optarg ;;
1493 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1494 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1495 | --exec | --exe | --ex)
1496 ac_prev=exec_prefix ;;
1497 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1498 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1499 | --exec=* | --exe=* | --ex=*)
1500 exec_prefix=$ac_optarg ;;
1502 -gas | --gas | --ga | --g)
1503 # Obsolete; use --with-gas.
1504 with_gas=yes ;;
1506 -help | --help | --hel | --he | -h)
1507 ac_init_help=long ;;
1508 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1509 ac_init_help=recursive ;;
1510 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1511 ac_init_help=short ;;
1513 -host | --host | --hos | --ho)
1514 ac_prev=host_alias ;;
1515 -host=* | --host=* | --hos=* | --ho=*)
1516 host_alias=$ac_optarg ;;
1518 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1519 ac_prev=htmldir ;;
1520 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1521 | --ht=*)
1522 htmldir=$ac_optarg ;;
1524 -includedir | --includedir | --includedi | --included | --include \
1525 | --includ | --inclu | --incl | --inc)
1526 ac_prev=includedir ;;
1527 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1528 | --includ=* | --inclu=* | --incl=* | --inc=*)
1529 includedir=$ac_optarg ;;
1531 -infodir | --infodir | --infodi | --infod | --info | --inf)
1532 ac_prev=infodir ;;
1533 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1534 infodir=$ac_optarg ;;
1536 -libdir | --libdir | --libdi | --libd)
1537 ac_prev=libdir ;;
1538 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1539 libdir=$ac_optarg ;;
1541 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1542 | --libexe | --libex | --libe)
1543 ac_prev=libexecdir ;;
1544 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1545 | --libexe=* | --libex=* | --libe=*)
1546 libexecdir=$ac_optarg ;;
1548 -localedir | --localedir | --localedi | --localed | --locale)
1549 ac_prev=localedir ;;
1550 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1551 localedir=$ac_optarg ;;
1553 -localstatedir | --localstatedir | --localstatedi | --localstated \
1554 | --localstate | --localstat | --localsta | --localst | --locals)
1555 ac_prev=localstatedir ;;
1556 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1557 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1558 localstatedir=$ac_optarg ;;
1560 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1561 ac_prev=mandir ;;
1562 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1563 mandir=$ac_optarg ;;
1565 -nfp | --nfp | --nf)
1566 # Obsolete; use --without-fp.
1567 with_fp=no ;;
1569 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1570 | --no-cr | --no-c | -n)
1571 no_create=yes ;;
1573 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1574 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1575 no_recursion=yes ;;
1577 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1578 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1579 | --oldin | --oldi | --old | --ol | --o)
1580 ac_prev=oldincludedir ;;
1581 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1582 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1583 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1584 oldincludedir=$ac_optarg ;;
1586 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1587 ac_prev=prefix ;;
1588 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1589 prefix=$ac_optarg ;;
1591 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1592 | --program-pre | --program-pr | --program-p)
1593 ac_prev=program_prefix ;;
1594 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1595 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1596 program_prefix=$ac_optarg ;;
1598 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1599 | --program-suf | --program-su | --program-s)
1600 ac_prev=program_suffix ;;
1601 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1602 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1603 program_suffix=$ac_optarg ;;
1605 -program-transform-name | --program-transform-name \
1606 | --program-transform-nam | --program-transform-na \
1607 | --program-transform-n | --program-transform- \
1608 | --program-transform | --program-transfor \
1609 | --program-transfo | --program-transf \
1610 | --program-trans | --program-tran \
1611 | --progr-tra | --program-tr | --program-t)
1612 ac_prev=program_transform_name ;;
1613 -program-transform-name=* | --program-transform-name=* \
1614 | --program-transform-nam=* | --program-transform-na=* \
1615 | --program-transform-n=* | --program-transform-=* \
1616 | --program-transform=* | --program-transfor=* \
1617 | --program-transfo=* | --program-transf=* \
1618 | --program-trans=* | --program-tran=* \
1619 | --progr-tra=* | --program-tr=* | --program-t=*)
1620 program_transform_name=$ac_optarg ;;
1622 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1623 ac_prev=pdfdir ;;
1624 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1625 pdfdir=$ac_optarg ;;
1627 -psdir | --psdir | --psdi | --psd | --ps)
1628 ac_prev=psdir ;;
1629 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1630 psdir=$ac_optarg ;;
1632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1633 | -silent | --silent | --silen | --sile | --sil)
1634 silent=yes ;;
1636 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1637 ac_prev=sbindir ;;
1638 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1639 | --sbi=* | --sb=*)
1640 sbindir=$ac_optarg ;;
1642 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1643 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1644 | --sharedst | --shareds | --shared | --share | --shar \
1645 | --sha | --sh)
1646 ac_prev=sharedstatedir ;;
1647 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1648 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1649 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1650 | --sha=* | --sh=*)
1651 sharedstatedir=$ac_optarg ;;
1653 -site | --site | --sit)
1654 ac_prev=site ;;
1655 -site=* | --site=* | --sit=*)
1656 site=$ac_optarg ;;
1658 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1659 ac_prev=srcdir ;;
1660 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1661 srcdir=$ac_optarg ;;
1663 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1664 | --syscon | --sysco | --sysc | --sys | --sy)
1665 ac_prev=sysconfdir ;;
1666 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1667 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1668 sysconfdir=$ac_optarg ;;
1670 -target | --target | --targe | --targ | --tar | --ta | --t)
1671 ac_prev=target_alias ;;
1672 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1673 target_alias=$ac_optarg ;;
1675 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1676 verbose=yes ;;
1678 -version | --version | --versio | --versi | --vers | -V)
1679 ac_init_version=: ;;
1681 -with-* | --with-*)
1682 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1683 # Reject names that are not valid shell variable names.
1684 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1685 as_fn_error "invalid package name: $ac_useropt"
1686 ac_useropt_orig=$ac_useropt
1687 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1688 case $ac_user_opts in
1690 "with_$ac_useropt"
1691 "*) ;;
1692 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1693 ac_unrecognized_sep=', ';;
1694 esac
1695 eval with_$ac_useropt=\$ac_optarg ;;
1697 -without-* | --without-*)
1698 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1699 # Reject names that are not valid shell variable names.
1700 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1701 as_fn_error "invalid package name: $ac_useropt"
1702 ac_useropt_orig=$ac_useropt
1703 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1704 case $ac_user_opts in
1706 "with_$ac_useropt"
1707 "*) ;;
1708 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1709 ac_unrecognized_sep=', ';;
1710 esac
1711 eval with_$ac_useropt=no ;;
1713 --x)
1714 # Obsolete; use --with-x.
1715 with_x=yes ;;
1717 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1718 | --x-incl | --x-inc | --x-in | --x-i)
1719 ac_prev=x_includes ;;
1720 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1721 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1722 x_includes=$ac_optarg ;;
1724 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1725 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1726 ac_prev=x_libraries ;;
1727 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1728 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1729 x_libraries=$ac_optarg ;;
1731 -*) as_fn_error "unrecognized option: \`$ac_option'
1732 Try \`$0 --help' for more information."
1735 *=*)
1736 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1737 # Reject names that are not valid shell variable names.
1738 case $ac_envvar in #(
1739 '' | [0-9]* | *[!_$as_cr_alnum]* )
1740 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1741 esac
1742 eval $ac_envvar=\$ac_optarg
1743 export $ac_envvar ;;
1746 # FIXME: should be removed in autoconf 3.0.
1747 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1748 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1749 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1750 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1753 esac
1754 done
1756 if test -n "$ac_prev"; then
1757 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1758 as_fn_error "missing argument to $ac_option"
1761 if test -n "$ac_unrecognized_opts"; then
1762 case $enable_option_checking in
1763 no) ;;
1764 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1765 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1766 esac
1769 # Check all directory arguments for consistency.
1770 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1771 datadir sysconfdir sharedstatedir localstatedir includedir \
1772 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1773 libdir localedir mandir
1775 eval ac_val=\$$ac_var
1776 # Remove trailing slashes.
1777 case $ac_val in
1778 */ )
1779 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1780 eval $ac_var=\$ac_val;;
1781 esac
1782 # Be sure to have absolute directory names.
1783 case $ac_val in
1784 [\\/$]* | ?:[\\/]* ) continue;;
1785 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1786 esac
1787 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1788 done
1790 # There might be people who depend on the old broken behavior: `$host'
1791 # used to hold the argument of --host etc.
1792 # FIXME: To remove some day.
1793 build=$build_alias
1794 host=$host_alias
1795 target=$target_alias
1797 # FIXME: To remove some day.
1798 if test "x$host_alias" != x; then
1799 if test "x$build_alias" = x; then
1800 cross_compiling=maybe
1801 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1802 If a cross compiler is detected then cross compile mode will be used." >&2
1803 elif test "x$build_alias" != "x$host_alias"; then
1804 cross_compiling=yes
1808 ac_tool_prefix=
1809 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1811 test "$silent" = yes && exec 6>/dev/null
1814 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1815 ac_ls_di=`ls -di .` &&
1816 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1817 as_fn_error "working directory cannot be determined"
1818 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1819 as_fn_error "pwd does not report name of working directory"
1822 # Find the source files, if location was not specified.
1823 if test -z "$srcdir"; then
1824 ac_srcdir_defaulted=yes
1825 # Try the directory containing this script, then the parent directory.
1826 ac_confdir=`$as_dirname -- "$as_myself" ||
1827 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1828 X"$as_myself" : 'X\(//\)[^/]' \| \
1829 X"$as_myself" : 'X\(//\)$' \| \
1830 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1831 $as_echo X"$as_myself" |
1832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1833 s//\1/
1836 /^X\(\/\/\)[^/].*/{
1837 s//\1/
1840 /^X\(\/\/\)$/{
1841 s//\1/
1844 /^X\(\/\).*/{
1845 s//\1/
1848 s/.*/./; q'`
1849 srcdir=$ac_confdir
1850 if test ! -r "$srcdir/$ac_unique_file"; then
1851 srcdir=..
1853 else
1854 ac_srcdir_defaulted=no
1856 if test ! -r "$srcdir/$ac_unique_file"; then
1857 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1858 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1860 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1861 ac_abs_confdir=`(
1862 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1863 pwd)`
1864 # When building in place, set srcdir=.
1865 if test "$ac_abs_confdir" = "$ac_pwd"; then
1866 srcdir=.
1868 # Remove unnecessary trailing slashes from srcdir.
1869 # Double slashes in file names in object file debugging info
1870 # mess up M-x gdb in Emacs.
1871 case $srcdir in
1872 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1873 esac
1874 for ac_var in $ac_precious_vars; do
1875 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1876 eval ac_env_${ac_var}_value=\$${ac_var}
1877 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1878 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1879 done
1882 # Report the --help message.
1884 if test "$ac_init_help" = "long"; then
1885 # Omit some internal or obsolete options to make the list less imposing.
1886 # This message is too long to be a string in the A/UX 3.1 sh.
1887 cat <<_ACEOF
1888 \`configure' configures emacs 24.0.92 to adapt to many kinds of systems.
1890 Usage: $0 [OPTION]... [VAR=VALUE]...
1892 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1893 VAR=VALUE. See below for descriptions of some of the useful variables.
1895 Defaults for the options are specified in brackets.
1897 Configuration:
1898 -h, --help display this help and exit
1899 --help=short display options specific to this package
1900 --help=recursive display the short help of all the included packages
1901 -V, --version display version information and exit
1902 -q, --quiet, --silent do not print \`checking...' messages
1903 --cache-file=FILE cache test results in FILE [disabled]
1904 -C, --config-cache alias for \`--cache-file=config.cache'
1905 -n, --no-create do not create output files
1906 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1908 Installation directories:
1909 --prefix=PREFIX install architecture-independent files in PREFIX
1910 [$ac_default_prefix]
1911 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1912 [PREFIX]
1914 By default, \`make install' will install all the files in
1915 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1916 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1917 for instance \`--prefix=\$HOME'.
1919 For better control, use the options below.
1921 Fine tuning of the installation directories:
1922 --bindir=DIR user executables [EPREFIX/bin]
1923 --sbindir=DIR system admin executables [EPREFIX/sbin]
1924 --libexecdir=DIR program executables [EPREFIX/libexec]
1925 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1926 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1927 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1928 --libdir=DIR object code libraries [EPREFIX/lib]
1929 --includedir=DIR C header files [PREFIX/include]
1930 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1931 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1932 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1933 --infodir=DIR info documentation [DATAROOTDIR/info]
1934 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1935 --mandir=DIR man documentation [DATAROOTDIR/man]
1936 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1937 --htmldir=DIR html documentation [DOCDIR]
1938 --dvidir=DIR dvi documentation [DOCDIR]
1939 --pdfdir=DIR pdf documentation [DOCDIR]
1940 --psdir=DIR ps documentation [DOCDIR]
1941 _ACEOF
1943 cat <<\_ACEOF
1945 Program names:
1946 --program-prefix=PREFIX prepend PREFIX to installed program names
1947 --program-suffix=SUFFIX append SUFFIX to installed program names
1948 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1950 X features:
1951 --x-includes=DIR X include files are in DIR
1952 --x-libraries=DIR X library files are in DIR
1954 System types:
1955 --build=BUILD configure for building on BUILD [guessed]
1956 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1957 _ACEOF
1960 if test -n "$ac_init_help"; then
1961 case $ac_init_help in
1962 short | recursive ) echo "Configuration of emacs 24.0.92:";;
1963 esac
1964 cat <<\_ACEOF
1966 Optional Features:
1967 --disable-option-checking ignore unrecognized --enable/--with options
1968 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1969 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1970 --disable-ns-self-contained
1971 disable self contained build under NeXTstep
1972 --enable-asserts compile code with asserts enabled
1973 --disable-maintainer-mode
1974 disable make rules and dependencies not useful (and
1975 sometimes confusing) to the casual installer
1976 --enable-locallisppath=PATH
1977 directories Emacs should search for lisp files
1978 specific to this site
1979 --enable-checking[=LIST]
1980 enable expensive run-time checks. With LIST, enable
1981 only specific categories of checks. Categories are:
1982 all,yes,no. Flags are: stringbytes, stringoverrun,
1983 stringfreelist, xmallocoverrun, conslist
1984 --enable-use-lisp-union-type
1985 use a union for the Lisp_Object data type. This is
1986 only useful for development for catching certain
1987 types of bugs.
1988 --enable-profiling build emacs with profiling support. This might not
1989 work on all platforms
1990 --enable-autodepend automatically generate dependencies to .h-files.
1991 Requires GNU Make and Gcc. Enabled if GNU Make and
1992 Gcc is found
1993 --disable-dependency-tracking speeds up one-time build
1994 --enable-dependency-tracking do not reject slow dependency extractors
1995 --disable-largefile omit support for large files
1997 Optional Packages:
1998 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1999 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2000 --without-pop don't support POP mail retrieval with movemail
2001 --with-kerberos support Kerberos-authenticated POP
2002 --with-kerberos5 support Kerberos version 5 authenticated POP
2003 --with-hesiod support Hesiod to get the POP server host
2004 --with-mmdf support MMDF mailboxes
2005 --with-mail-unlink unlink, rather than empty, mail spool after reading
2006 --with-mailhost=HOSTNAME
2007 string giving default POP mail host
2008 --without-sound don't compile with sound support
2009 --without-sync-input process async input synchronously
2010 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2011 lucid or athena, motif, no)
2012 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2013 --without-xpm don't compile with XPM image support
2014 --without-jpeg don't compile with JPEG image support
2015 --without-tiff don't compile with TIFF image support
2016 --without-gif don't compile with GIF image support
2017 --without-png don't compile with PNG image support
2018 --without-rsvg don't compile with SVG image support
2019 --without-xml2 don't compile with XML parsing support
2020 --without-imagemagick don't compile with ImageMagick image support
2021 --without-xft don't use XFT for anti aliased fonts
2022 --without-libotf don't use libotf for OpenType font support
2023 --without-m17n-flt don't use m17n-flt for text shaping
2024 --without-toolkit-scroll-bars
2025 don't use Motif or Xaw3d scroll bars
2026 --without-xaw3d don't use Xaw3d
2027 --without-xim don't use X11 XIM
2028 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2029 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2030 console
2031 --without-dbus don't compile with D-Bus support
2032 --without-gconf don't compile with GConf support
2033 --without-gsettings don't compile with GSettings support
2034 --without-selinux don't compile with SELinux support
2035 --without-gnutls don't use -lgnutls for SSL/TLS support
2036 --without-makeinfo don't require makeinfo for building manuals
2037 --without-compress-info don't compress the installed Info pages
2038 --with-pkg-config-prog=PATH
2039 path to pkg-config for finding GTK and librsvg
2040 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2041 /usr/lib, or /usr/lib64 on some platforms.
2042 --with-gameuser=USER user for shared game score files
2043 --with-gnustep-conf=PATH
2044 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2045 or /etc/GNUstep/GNUstep.conf
2046 --with-x use the X Window System
2048 Some influential environment variables:
2049 CC C compiler command
2050 CFLAGS C compiler flags
2051 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2052 nonstandard directory <lib dir>
2053 LIBS libraries to pass to the linker, e.g. -l<library>
2054 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2055 you have headers in a nonstandard directory <include dir>
2056 CPP C preprocessor
2057 XMKMF Path to xmkmf, Makefile generator for X Window System
2059 Use these variables to override the choices made by `configure' or to help
2060 it to find libraries and programs with nonstandard names/locations.
2062 Report bugs to the package provider.
2063 _ACEOF
2064 ac_status=$?
2067 if test "$ac_init_help" = "recursive"; then
2068 # If there are subdirs, report their specific --help.
2069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2070 test -d "$ac_dir" ||
2071 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2072 continue
2073 ac_builddir=.
2075 case "$ac_dir" in
2076 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2078 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2079 # A ".." for each directory in $ac_dir_suffix.
2080 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2081 case $ac_top_builddir_sub in
2082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2084 esac ;;
2085 esac
2086 ac_abs_top_builddir=$ac_pwd
2087 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2088 # for backward compatibility:
2089 ac_top_builddir=$ac_top_build_prefix
2091 case $srcdir in
2092 .) # We are building in place.
2093 ac_srcdir=.
2094 ac_top_srcdir=$ac_top_builddir_sub
2095 ac_abs_top_srcdir=$ac_pwd ;;
2096 [\\/]* | ?:[\\/]* ) # Absolute name.
2097 ac_srcdir=$srcdir$ac_dir_suffix;
2098 ac_top_srcdir=$srcdir
2099 ac_abs_top_srcdir=$srcdir ;;
2100 *) # Relative name.
2101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2102 ac_top_srcdir=$ac_top_build_prefix$srcdir
2103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2104 esac
2105 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2107 cd "$ac_dir" || { ac_status=$?; continue; }
2108 # Check for guested configure.
2109 if test -f "$ac_srcdir/configure.gnu"; then
2110 echo &&
2111 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2112 elif test -f "$ac_srcdir/configure"; then
2113 echo &&
2114 $SHELL "$ac_srcdir/configure" --help=recursive
2115 else
2116 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2117 fi || ac_status=$?
2118 cd "$ac_pwd" || { ac_status=$?; break; }
2119 done
2122 test -n "$ac_init_help" && exit $ac_status
2123 if $ac_init_version; then
2124 cat <<\_ACEOF
2125 emacs configure 24.0.92
2126 generated by GNU Autoconf 2.65
2128 Copyright (C) 2009 Free Software Foundation, Inc.
2129 This configure script is free software; the Free Software Foundation
2130 gives unlimited permission to copy, distribute and modify it.
2131 _ACEOF
2132 exit
2135 ## ------------------------ ##
2136 ## Autoconf initialization. ##
2137 ## ------------------------ ##
2139 # ac_fn_c_try_compile LINENO
2140 # --------------------------
2141 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2142 ac_fn_c_try_compile ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 rm -f conftest.$ac_objext
2146 if { { ac_try="$ac_compile"
2147 case "(($ac_try" in
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2150 esac
2151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152 $as_echo "$ac_try_echo"; } >&5
2153 (eval "$ac_compile") 2>conftest.err
2154 ac_status=$?
2155 if test -s conftest.err; then
2156 grep -v '^ *+' conftest.err >conftest.er1
2157 cat conftest.er1 >&5
2158 mv -f conftest.er1 conftest.err
2160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2161 test $ac_status = 0; } && {
2162 test -z "$ac_c_werror_flag" ||
2163 test ! -s conftest.err
2164 } && test -s conftest.$ac_objext; then :
2165 ac_retval=0
2166 else
2167 $as_echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2170 ac_retval=1
2172 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 as_fn_set_status $ac_retval
2175 } # ac_fn_c_try_compile
2177 # ac_fn_c_try_cpp LINENO
2178 # ----------------------
2179 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2180 ac_fn_c_try_cpp ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 if { { ac_try="$ac_cpp conftest.$ac_ext"
2184 case "(($ac_try" in
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2187 esac
2188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2189 $as_echo "$ac_try_echo"; } >&5
2190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2191 ac_status=$?
2192 if test -s conftest.err; then
2193 grep -v '^ *+' conftest.err >conftest.er1
2194 cat conftest.er1 >&5
2195 mv -f conftest.er1 conftest.err
2197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198 test $ac_status = 0; } >/dev/null && {
2199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2200 test ! -s conftest.err
2201 }; then :
2202 ac_retval=0
2203 else
2204 $as_echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2207 ac_retval=1
2209 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2210 as_fn_set_status $ac_retval
2212 } # ac_fn_c_try_cpp
2214 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2215 # -------------------------------------------------------
2216 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2217 # the include files in INCLUDES and setting the cache variable VAR
2218 # accordingly.
2219 ac_fn_c_check_header_mongrel ()
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2226 $as_echo_n "(cached) " >&6
2228 eval ac_res=\$$3
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231 else
2232 # Is the header compilable?
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2234 $as_echo_n "checking $2 usability... " >&6; }
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2238 #include <$2>
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241 ac_header_compiler=yes
2242 else
2243 ac_header_compiler=no
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2247 $as_echo "$ac_header_compiler" >&6; }
2249 # Is the header present?
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2251 $as_echo_n "checking $2 presence... " >&6; }
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 #include <$2>
2255 _ACEOF
2256 if ac_fn_c_try_cpp "$LINENO"; then :
2257 ac_header_preproc=yes
2258 else
2259 ac_header_preproc=no
2261 rm -f conftest.err conftest.$ac_ext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2263 $as_echo "$ac_header_preproc" >&6; }
2265 # So? What about this header?
2266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2267 yes:no: )
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2269 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2271 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2273 no:yes:* )
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2275 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2277 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2279 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2281 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2283 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2285 esac
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2287 $as_echo_n "checking for $2... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2290 else
2291 eval "$3=\$ac_header_compiler"
2293 eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2297 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2299 } # ac_fn_c_check_header_mongrel
2301 # ac_fn_c_try_run LINENO
2302 # ----------------------
2303 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2304 # that executables *can* be run.
2305 ac_fn_c_try_run ()
2307 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308 if { { ac_try="$ac_link"
2309 case "(($ac_try" in
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2312 esac
2313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314 $as_echo "$ac_try_echo"; } >&5
2315 (eval "$ac_link") 2>&5
2316 ac_status=$?
2317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2319 { { case "(($ac_try" in
2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321 *) ac_try_echo=$ac_try;;
2322 esac
2323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2324 $as_echo "$ac_try_echo"; } >&5
2325 (eval "$ac_try") 2>&5
2326 ac_status=$?
2327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2328 test $ac_status = 0; }; }; then :
2329 ac_retval=0
2330 else
2331 $as_echo "$as_me: program exited with status $ac_status" >&5
2332 $as_echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 ac_retval=$ac_status
2337 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2338 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2339 as_fn_set_status $ac_retval
2341 } # ac_fn_c_try_run
2343 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2344 # -------------------------------------------------------
2345 # Tests whether HEADER exists and can be compiled using the include files in
2346 # INCLUDES, setting the cache variable VAR accordingly.
2347 ac_fn_c_check_header_compile ()
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2351 $as_echo_n "checking for $2... " >&6; }
2352 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2353 $as_echo_n "(cached) " >&6
2354 else
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2358 #include <$2>
2359 _ACEOF
2360 if ac_fn_c_try_compile "$LINENO"; then :
2361 eval "$3=yes"
2362 else
2363 eval "$3=no"
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367 eval ac_res=\$$3
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372 } # ac_fn_c_check_header_compile
2374 # ac_fn_c_try_link LINENO
2375 # -----------------------
2376 # Try to link conftest.$ac_ext, and return whether this succeeded.
2377 ac_fn_c_try_link ()
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 rm -f conftest.$ac_objext conftest$ac_exeext
2381 if { { ac_try="$ac_link"
2382 case "(($ac_try" in
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2385 esac
2386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387 $as_echo "$ac_try_echo"; } >&5
2388 (eval "$ac_link") 2>conftest.err
2389 ac_status=$?
2390 if test -s conftest.err; then
2391 grep -v '^ *+' conftest.err >conftest.er1
2392 cat conftest.er1 >&5
2393 mv -f conftest.er1 conftest.err
2395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2396 test $ac_status = 0; } && {
2397 test -z "$ac_c_werror_flag" ||
2398 test ! -s conftest.err
2399 } && test -s conftest$ac_exeext && {
2400 test "$cross_compiling" = yes ||
2401 $as_test_x conftest$ac_exeext
2402 }; then :
2403 ac_retval=0
2404 else
2405 $as_echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2408 ac_retval=1
2410 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2411 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2412 # interfere with the next link command; also delete a directory that is
2413 # left behind by Apple's compiler. We do this before executing the actions.
2414 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2416 as_fn_set_status $ac_retval
2418 } # ac_fn_c_try_link
2420 # ac_fn_c_check_decl LINENO SYMBOL VAR
2421 # ------------------------------------
2422 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2423 ac_fn_c_check_decl ()
2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2427 $as_echo_n "checking whether $2 is declared... " >&6; }
2428 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2429 $as_echo_n "(cached) " >&6
2430 else
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2435 main ()
2437 #ifndef $2
2438 (void) $2;
2439 #endif
2442 return 0;
2444 _ACEOF
2445 if ac_fn_c_try_compile "$LINENO"; then :
2446 eval "$3=yes"
2447 else
2448 eval "$3=no"
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 eval ac_res=\$$3
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2457 } # ac_fn_c_check_decl
2459 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2460 # ----------------------------------------------
2461 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2462 ac_fn_c_check_header_preproc ()
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2466 $as_echo_n "checking for $2... " >&6; }
2467 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471 /* end confdefs.h. */
2472 #include <$2>
2473 _ACEOF
2474 if ac_fn_c_try_cpp "$LINENO"; then :
2475 eval "$3=yes"
2476 else
2477 eval "$3=no"
2479 rm -f conftest.err conftest.$ac_ext
2481 eval ac_res=\$$3
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2483 $as_echo "$ac_res" >&6; }
2484 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2486 } # ac_fn_c_check_header_preproc
2488 # ac_fn_c_check_func LINENO FUNC VAR
2489 # ----------------------------------
2490 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2491 ac_fn_c_check_func ()
2493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2495 $as_echo_n "checking for $2... " >&6; }
2496 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2501 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2503 #define $2 innocuous_$2
2505 /* System header to define __stub macros and hopefully few prototypes,
2506 which can conflict with char $2 (); below.
2507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2508 <limits.h> exists even on freestanding compilers. */
2510 #ifdef __STDC__
2511 # include <limits.h>
2512 #else
2513 # include <assert.h>
2514 #endif
2516 #undef $2
2518 /* Override any GCC internal prototype to avoid an error.
2519 Use char because int might match the return type of a GCC
2520 builtin and then its argument prototype would still apply. */
2521 #ifdef __cplusplus
2522 extern "C"
2523 #endif
2524 char $2 ();
2525 /* The GNU C library defines this for functions which it implements
2526 to always fail with ENOSYS. Some functions are actually named
2527 something starting with __ and the normal name is an alias. */
2528 #if defined __stub_$2 || defined __stub___$2
2529 choke me
2530 #endif
2533 main ()
2535 return $2 ();
2537 return 0;
2539 _ACEOF
2540 if ac_fn_c_try_link "$LINENO"; then :
2541 eval "$3=yes"
2542 else
2543 eval "$3=no"
2545 rm -f core conftest.err conftest.$ac_objext \
2546 conftest$ac_exeext conftest.$ac_ext
2548 eval ac_res=\$$3
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 $as_echo "$ac_res" >&6; }
2551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553 } # ac_fn_c_check_func
2555 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2556 # ----------------------------------------------------
2557 # Tries to find if the field MEMBER exists in type AGGR, after including
2558 # INCLUDES, setting cache variable VAR accordingly.
2559 ac_fn_c_check_member ()
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2563 $as_echo_n "checking for $2.$3... " >&6; }
2564 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2571 main ()
2573 static $2 ac_aggr;
2574 if (ac_aggr.$3)
2575 return 0;
2577 return 0;
2579 _ACEOF
2580 if ac_fn_c_try_compile "$LINENO"; then :
2581 eval "$4=yes"
2582 else
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2587 main ()
2589 static $2 ac_aggr;
2590 if (sizeof ac_aggr.$3)
2591 return 0;
2593 return 0;
2595 _ACEOF
2596 if ac_fn_c_try_compile "$LINENO"; then :
2597 eval "$4=yes"
2598 else
2599 eval "$4=no"
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 eval ac_res=\$$4
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2610 } # ac_fn_c_check_member
2612 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2613 # -------------------------------------------
2614 # Tests whether TYPE exists after having included INCLUDES, setting cache
2615 # variable VAR accordingly.
2616 ac_fn_c_check_type ()
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2620 $as_echo_n "checking for $2... " >&6; }
2621 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 eval "$3=no"
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h. */
2629 main ()
2631 if (sizeof ($2))
2632 return 0;
2634 return 0;
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2642 main ()
2644 if (sizeof (($2)))
2645 return 0;
2647 return 0;
2649 _ACEOF
2650 if ac_fn_c_try_compile "$LINENO"; then :
2652 else
2653 eval "$3=yes"
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 eval ac_res=\$$3
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664 } # ac_fn_c_check_type
2666 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2667 # --------------------------------------------
2668 # Tries to find the compile-time value of EXPR in a program that includes
2669 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2670 # computed
2671 ac_fn_c_compute_int ()
2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674 if test "$cross_compiling" = yes; then
2675 # Depending upon the size, compute the lo and hi bounds.
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2680 main ()
2682 static int test_array [1 - 2 * !(($2) >= 0)];
2683 test_array [0] = 0
2686 return 0;
2688 _ACEOF
2689 if ac_fn_c_try_compile "$LINENO"; then :
2690 ac_lo=0 ac_mid=0
2691 while :; do
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2696 main ()
2698 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2699 test_array [0] = 0
2702 return 0;
2704 _ACEOF
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706 ac_hi=$ac_mid; break
2707 else
2708 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2709 if test $ac_lo -le $ac_mid; then
2710 ac_lo= ac_hi=
2711 break
2713 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 done
2717 else
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2722 main ()
2724 static int test_array [1 - 2 * !(($2) < 0)];
2725 test_array [0] = 0
2728 return 0;
2730 _ACEOF
2731 if ac_fn_c_try_compile "$LINENO"; then :
2732 ac_hi=-1 ac_mid=-1
2733 while :; do
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2738 main ()
2740 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2741 test_array [0] = 0
2744 return 0;
2746 _ACEOF
2747 if ac_fn_c_try_compile "$LINENO"; then :
2748 ac_lo=$ac_mid; break
2749 else
2750 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2751 if test $ac_mid -le $ac_hi; then
2752 ac_lo= ac_hi=
2753 break
2755 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758 done
2759 else
2760 ac_lo= ac_hi=
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 # Binary search between lo and hi bounds.
2766 while test "x$ac_lo" != "x$ac_hi"; do
2767 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769 /* end confdefs.h. */
2772 main ()
2774 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2775 test_array [0] = 0
2778 return 0;
2780 _ACEOF
2781 if ac_fn_c_try_compile "$LINENO"; then :
2782 ac_hi=$ac_mid
2783 else
2784 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787 done
2788 case $ac_lo in #((
2789 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2790 '') ac_retval=1 ;;
2791 esac
2792 else
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2796 static long int longval () { return $2; }
2797 static unsigned long int ulongval () { return $2; }
2798 #include <stdio.h>
2799 #include <stdlib.h>
2801 main ()
2804 FILE *f = fopen ("conftest.val", "w");
2805 if (! f)
2806 return 1;
2807 if (($2) < 0)
2809 long int i = longval ();
2810 if (i != ($2))
2811 return 1;
2812 fprintf (f, "%ld", i);
2814 else
2816 unsigned long int i = ulongval ();
2817 if (i != ($2))
2818 return 1;
2819 fprintf (f, "%lu", i);
2821 /* Do not output a trailing newline, as this causes \r\n confusion
2822 on some platforms. */
2823 return ferror (f) || fclose (f) != 0;
2826 return 0;
2828 _ACEOF
2829 if ac_fn_c_try_run "$LINENO"; then :
2830 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2831 else
2832 ac_retval=1
2834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2835 conftest.$ac_objext conftest.beam conftest.$ac_ext
2836 rm -f conftest.val
2839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2840 as_fn_set_status $ac_retval
2842 } # ac_fn_c_compute_int
2843 cat >config.log <<_ACEOF
2844 This file contains any messages produced by compilers while
2845 running configure, to aid debugging if configure makes a mistake.
2847 It was created by emacs $as_me 24.0.92, which was
2848 generated by GNU Autoconf 2.65. Invocation command line was
2850 $ $0 $@
2852 _ACEOF
2853 exec 5>>config.log
2855 cat <<_ASUNAME
2856 ## --------- ##
2857 ## Platform. ##
2858 ## --------- ##
2860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2867 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2869 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2870 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2872 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2873 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2874 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2875 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2877 _ASUNAME
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 $as_echo "PATH: $as_dir"
2885 done
2886 IFS=$as_save_IFS
2888 } >&5
2890 cat >&5 <<_ACEOF
2893 ## ----------- ##
2894 ## Core tests. ##
2895 ## ----------- ##
2897 _ACEOF
2900 # Keep a trace of the command line.
2901 # Strip out --no-create and --no-recursion so they do not pile up.
2902 # Strip out --silent because we don't want to record it for future runs.
2903 # Also quote any args containing shell meta-characters.
2904 # Make two passes to allow for proper duplicate-argument suppression.
2905 ac_configure_args=
2906 ac_configure_args0=
2907 ac_configure_args1=
2908 ac_must_keep_next=false
2909 for ac_pass in 1 2
2911 for ac_arg
2913 case $ac_arg in
2914 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2916 | -silent | --silent | --silen | --sile | --sil)
2917 continue ;;
2918 *\'*)
2919 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2920 esac
2921 case $ac_pass in
2922 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2924 as_fn_append ac_configure_args1 " '$ac_arg'"
2925 if test $ac_must_keep_next = true; then
2926 ac_must_keep_next=false # Got value, back to normal.
2927 else
2928 case $ac_arg in
2929 *=* | --config-cache | -C | -disable-* | --disable-* \
2930 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2931 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2932 | -with-* | --with-* | -without-* | --without-* | --x)
2933 case "$ac_configure_args0 " in
2934 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2935 esac
2937 -* ) ac_must_keep_next=true ;;
2938 esac
2940 as_fn_append ac_configure_args " '$ac_arg'"
2942 esac
2943 done
2944 done
2945 { ac_configure_args0=; unset ac_configure_args0;}
2946 { ac_configure_args1=; unset ac_configure_args1;}
2948 # When interrupted or exit'd, cleanup temporary files, and complete
2949 # config.log. We remove comments because anyway the quotes in there
2950 # would cause problems or look ugly.
2951 # WARNING: Use '\'' to represent an apostrophe within the trap.
2952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2953 trap 'exit_status=$?
2954 # Save into config.log some information that might help in debugging.
2956 echo
2958 cat <<\_ASBOX
2959 ## ---------------- ##
2960 ## Cache variables. ##
2961 ## ---------------- ##
2962 _ASBOX
2963 echo
2964 # The following way of writing the cache mishandles newlines in values,
2966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2967 eval ac_val=\$$ac_var
2968 case $ac_val in #(
2969 *${as_nl}*)
2970 case $ac_var in #(
2971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2973 esac
2974 case $ac_var in #(
2975 _ | IFS | as_nl) ;; #(
2976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2977 *) { eval $ac_var=; unset $ac_var;} ;;
2978 esac ;;
2979 esac
2980 done
2981 (set) 2>&1 |
2982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2983 *${as_nl}ac_space=\ *)
2984 sed -n \
2985 "s/'\''/'\''\\\\'\'''\''/g;
2986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2987 ;; #(
2989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2991 esac |
2992 sort
2994 echo
2996 cat <<\_ASBOX
2997 ## ----------------- ##
2998 ## Output variables. ##
2999 ## ----------------- ##
3000 _ASBOX
3001 echo
3002 for ac_var in $ac_subst_vars
3004 eval ac_val=\$$ac_var
3005 case $ac_val in
3006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3007 esac
3008 $as_echo "$ac_var='\''$ac_val'\''"
3009 done | sort
3010 echo
3012 if test -n "$ac_subst_files"; then
3013 cat <<\_ASBOX
3014 ## ------------------- ##
3015 ## File substitutions. ##
3016 ## ------------------- ##
3017 _ASBOX
3018 echo
3019 for ac_var in $ac_subst_files
3021 eval ac_val=\$$ac_var
3022 case $ac_val in
3023 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3024 esac
3025 $as_echo "$ac_var='\''$ac_val'\''"
3026 done | sort
3027 echo
3030 if test -s confdefs.h; then
3031 cat <<\_ASBOX
3032 ## ----------- ##
3033 ## confdefs.h. ##
3034 ## ----------- ##
3035 _ASBOX
3036 echo
3037 cat confdefs.h
3038 echo
3040 test "$ac_signal" != 0 &&
3041 $as_echo "$as_me: caught signal $ac_signal"
3042 $as_echo "$as_me: exit $exit_status"
3043 } >&5
3044 rm -f core *.core core.conftest.* &&
3045 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3046 exit $exit_status
3048 for ac_signal in 1 2 13 15; do
3049 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3050 done
3051 ac_signal=0
3053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3054 rm -f -r conftest* confdefs.h
3056 $as_echo "/* confdefs.h */" > confdefs.h
3058 # Predefined preprocessor variables.
3060 cat >>confdefs.h <<_ACEOF
3061 #define PACKAGE_NAME "$PACKAGE_NAME"
3062 _ACEOF
3064 cat >>confdefs.h <<_ACEOF
3065 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3066 _ACEOF
3068 cat >>confdefs.h <<_ACEOF
3069 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3070 _ACEOF
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE_STRING "$PACKAGE_STRING"
3074 _ACEOF
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3078 _ACEOF
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_URL "$PACKAGE_URL"
3082 _ACEOF
3085 # Let the site file select an alternate cache file if it wants to.
3086 # Prefer an explicitly selected file to automatically selected ones.
3087 ac_site_file1=NONE
3088 ac_site_file2=NONE
3089 if test -n "$CONFIG_SITE"; then
3090 ac_site_file1=$CONFIG_SITE
3091 elif test "x$prefix" != xNONE; then
3092 ac_site_file1=$prefix/share/config.site
3093 ac_site_file2=$prefix/etc/config.site
3094 else
3095 ac_site_file1=$ac_default_prefix/share/config.site
3096 ac_site_file2=$ac_default_prefix/etc/config.site
3098 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3100 test "x$ac_site_file" = xNONE && continue
3101 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3103 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3104 sed 's/^/| /' "$ac_site_file" >&5
3105 . "$ac_site_file"
3107 done
3109 if test -r "$cache_file"; then
3110 # Some versions of bash will fail to source /dev/null (special files
3111 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3112 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3114 $as_echo "$as_me: loading cache $cache_file" >&6;}
3115 case $cache_file in
3116 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3117 *) . "./$cache_file";;
3118 esac
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3122 $as_echo "$as_me: creating cache $cache_file" >&6;}
3123 >$cache_file
3126 as_fn_append ac_header_list " stdlib.h"
3127 as_fn_append ac_header_list " unistd.h"
3128 as_fn_append ac_header_list " sys/param.h"
3129 as_fn_append ac_func_list " readlinkat"
3130 gl_getopt_required=GNU
3131 as_fn_append ac_header_list " getopt.h"
3132 as_fn_append ac_header_list " wchar.h"
3133 as_fn_append ac_header_list " stdint.h"
3134 as_fn_append ac_header_list " inttypes.h"
3135 as_fn_append ac_func_list " lstat"
3136 as_fn_append ac_func_list " alarm"
3137 as_fn_append ac_func_list " pthread_sigmask"
3138 as_fn_append ac_func_list " readlink"
3139 as_fn_append ac_header_list " sys/socket.h"
3140 as_fn_append ac_func_list " tzset"
3141 as_fn_append ac_func_list " strtoimax"
3142 as_fn_append ac_func_list " strtoumax"
3143 as_fn_append ac_func_list " symlink"
3144 as_fn_append ac_header_list " sys/stat.h"
3145 as_fn_append ac_header_list " sys/time.h"
3146 as_fn_append ac_func_list " localtime_r"
3147 # Check that the precious variables saved in the cache have kept the same
3148 # value.
3149 ac_cache_corrupted=false
3150 for ac_var in $ac_precious_vars; do
3151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3152 eval ac_new_set=\$ac_env_${ac_var}_set
3153 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3154 eval ac_new_val=\$ac_env_${ac_var}_value
3155 case $ac_old_set,$ac_new_set in
3156 set,)
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3158 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3159 ac_cache_corrupted=: ;;
3160 ,set)
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3162 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3163 ac_cache_corrupted=: ;;
3164 ,);;
3166 if test "x$ac_old_val" != "x$ac_new_val"; then
3167 # differences in whitespace do not lead to failure.
3168 ac_old_val_w=`echo x $ac_old_val`
3169 ac_new_val_w=`echo x $ac_new_val`
3170 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3172 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3173 ac_cache_corrupted=:
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3176 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3177 eval $ac_var=\$ac_old_val
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3180 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3182 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3183 fi;;
3184 esac
3185 # Pass precious variables to config.status.
3186 if test "$ac_new_set" = set; then
3187 case $ac_new_val in
3188 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3189 *) ac_arg=$ac_var=$ac_new_val ;;
3190 esac
3191 case " $ac_configure_args " in
3192 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3193 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3194 esac
3196 done
3197 if $ac_cache_corrupted; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3201 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3202 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3204 ## -------------------- ##
3205 ## Main body of script. ##
3206 ## -------------------- ##
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3218 ac_aux_dir=
3219 for ac_dir in build-aux "$srcdir"/build-aux; do
3220 for ac_t in install-sh install.sh shtool; do
3221 if test -f "$ac_dir/$ac_t"; then
3222 ac_aux_dir=$ac_dir
3223 ac_install_sh="$ac_aux_dir/$ac_t -c"
3224 break 2
3226 done
3227 done
3228 if test -z "$ac_aux_dir"; then
3229 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3232 # These three variables are undocumented and unsupported,
3233 # and are intended to be withdrawn in a future Autoconf release.
3234 # They can cause serious problems if a builder's source tree is in a directory
3235 # whose full name contains unusual characters.
3236 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3237 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3238 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3241 am__api_version='1.11'
3243 # Find a good install program. We prefer a C program (faster),
3244 # so one script is as good as another. But avoid the broken or
3245 # incompatible versions:
3246 # SysV /etc/install, /usr/sbin/install
3247 # SunOS /usr/etc/install
3248 # IRIX /sbin/install
3249 # AIX /bin/install
3250 # AmigaOS /C/install, which installs bootblocks on floppy discs
3251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3254 # OS/2's system install, which has a completely different semantic
3255 # ./install, which can be erroneously created by make from ./install.sh.
3256 # Reject install programs that cannot install multiple files.
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3258 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3259 if test -z "$INSTALL"; then
3260 if test "${ac_cv_path_install+set}" = set; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 # Account for people who put trailing slashes in PATH elements.
3269 case $as_dir/ in #((
3270 ./ | .// | /[cC]/* | \
3271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3272 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3273 /usr/ucb/* ) ;;
3275 # OSF1 and SCO ODT 3.0 have their own names for install.
3276 # Don't use installbsd from OSF since it installs stuff as root
3277 # by default.
3278 for ac_prog in ginstall scoinst install; do
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3281 if test $ac_prog = install &&
3282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3283 # AIX install. It has an incompatible calling convention.
3285 elif test $ac_prog = install &&
3286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3287 # program-specific install script used by HP pwplus--don't use.
3289 else
3290 rm -rf conftest.one conftest.two conftest.dir
3291 echo one > conftest.one
3292 echo two > conftest.two
3293 mkdir conftest.dir
3294 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3295 test -s conftest.one && test -s conftest.two &&
3296 test -s conftest.dir/conftest.one &&
3297 test -s conftest.dir/conftest.two
3298 then
3299 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3300 break 3
3304 done
3305 done
3307 esac
3309 done
3310 IFS=$as_save_IFS
3312 rm -rf conftest.one conftest.two conftest.dir
3315 if test "${ac_cv_path_install+set}" = set; then
3316 INSTALL=$ac_cv_path_install
3317 else
3318 # As a last resort, use the slow shell script. Don't cache a
3319 # value for INSTALL within a source directory, because that will
3320 # break other packages using the cache if that directory is
3321 # removed, or if the value is a relative name.
3322 INSTALL=$ac_install_sh
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3326 $as_echo "$INSTALL" >&6; }
3328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3329 # It thinks the first close brace ends the variable substitution.
3330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3337 $as_echo_n "checking whether build environment is sane... " >&6; }
3338 # Just in case
3339 sleep 1
3340 echo timestamp > conftest.file
3341 # Reject unsafe characters in $srcdir or the absolute working directory
3342 # name. Accept space and tab only in the latter.
3343 am_lf='
3345 case `pwd` in
3346 *[\\\"\#\$\&\'\`$am_lf]*)
3347 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3348 esac
3349 case $srcdir in
3350 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3351 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3352 esac
3354 # Do `set' in a subshell so we don't clobber the current shell's
3355 # arguments. Must try -L first in case configure is actually a
3356 # symlink; some systems play weird games with the mod time of symlinks
3357 # (eg FreeBSD returns the mod time of the symlink's containing
3358 # directory).
3359 if (
3360 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3361 if test "$*" = "X"; then
3362 # -L didn't work.
3363 set X `ls -t "$srcdir/configure" conftest.file`
3365 rm -f conftest.file
3366 if test "$*" != "X $srcdir/configure conftest.file" \
3367 && test "$*" != "X conftest.file $srcdir/configure"; then
3369 # If neither matched, then we have a broken ls. This can happen
3370 # if, for instance, CONFIG_SHELL is bash and it inherits a
3371 # broken ls alias from the environment. This has actually
3372 # happened. Such a system could not be considered "sane".
3373 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3374 alias in your environment" "$LINENO" 5
3377 test "$2" = conftest.file
3379 then
3380 # Ok.
3382 else
3383 as_fn_error "newly created file is older than distributed files!
3384 Check your system clock" "$LINENO" 5
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3387 $as_echo "yes" >&6; }
3388 test "$program_prefix" != NONE &&
3389 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3390 # Use a double $ so make ignores it.
3391 test "$program_suffix" != NONE &&
3392 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3393 # Double any \ or $.
3394 # By default was `s,x,x', remove it if useless.
3395 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3396 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3398 # expand $ac_aux_dir to an absolute path
3399 am_aux_dir=`cd $ac_aux_dir && pwd`
3401 if test x"${MISSING+set}" != xset; then
3402 case $am_aux_dir in
3403 *\ * | *\ *)
3404 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3406 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3407 esac
3409 # Use eval to expand $SHELL
3410 if eval "$MISSING --run true"; then
3411 am_missing_run="$MISSING --run "
3412 else
3413 am_missing_run=
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3415 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3418 if test x"${install_sh}" != xset; then
3419 case $am_aux_dir in
3420 *\ * | *\ *)
3421 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3423 install_sh="\${SHELL} $am_aux_dir/install-sh"
3424 esac
3427 # Installed binaries are usually stripped using `strip' when the user
3428 # run `make install-strip'. However `strip' might not be the right
3429 # tool to use in cross-compilation environments, therefore Automake
3430 # will honor the `STRIP' environment variable to overrule this program.
3431 if test "$cross_compiling" != no; then
3432 if test -n "$ac_tool_prefix"; then
3433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3434 set dummy ${ac_tool_prefix}strip; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if test "${ac_cv_prog_STRIP+set}" = set; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test -n "$STRIP"; then
3441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3454 done
3455 done
3456 IFS=$as_save_IFS
3460 STRIP=$ac_cv_prog_STRIP
3461 if test -n "$STRIP"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3463 $as_echo "$STRIP" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3471 if test -z "$ac_cv_prog_STRIP"; then
3472 ac_ct_STRIP=$STRIP
3473 # Extract the first word of "strip", so it can be a program name with args.
3474 set dummy strip; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 if test -n "$ac_ct_STRIP"; then
3481 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 ac_cv_prog_ac_ct_STRIP="strip"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3494 done
3495 done
3496 IFS=$as_save_IFS
3500 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3501 if test -n "$ac_ct_STRIP"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3503 $as_echo "$ac_ct_STRIP" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3509 if test "x$ac_ct_STRIP" = x; then
3510 STRIP=":"
3511 else
3512 case $cross_compiling:$ac_tool_warned in
3513 yes:)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned=yes ;;
3517 esac
3518 STRIP=$ac_ct_STRIP
3520 else
3521 STRIP="$ac_cv_prog_STRIP"
3525 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3528 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3529 if test -z "$MKDIR_P"; then
3530 if test "${ac_cv_path_mkdir+set}" = set; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_prog in mkdir gmkdir; do
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3541 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3542 'mkdir (GNU coreutils) '* | \
3543 'mkdir (coreutils) '* | \
3544 'mkdir (fileutils) '4.1*)
3545 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3546 break 3;;
3547 esac
3548 done
3549 done
3550 done
3551 IFS=$as_save_IFS
3555 test -d ./--version && rmdir ./--version
3556 if test "${ac_cv_path_mkdir+set}" = set; then
3557 MKDIR_P="$ac_cv_path_mkdir -p"
3558 else
3559 # As a last resort, use the slow shell script. Don't cache a
3560 # value for MKDIR_P within a source directory, because that will
3561 # break other packages using the cache if that directory is
3562 # removed, or if the value is a relative name.
3563 MKDIR_P="$ac_install_sh -d"
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3567 $as_echo "$MKDIR_P" >&6; }
3570 mkdir_p="$MKDIR_P"
3571 case $mkdir_p in
3572 [\\/$]* | ?:[\\/]*) ;;
3573 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3574 esac
3576 for ac_prog in gawk mawk nawk awk
3578 # Extract the first word of "$ac_prog", so it can be a program name with args.
3579 set dummy $ac_prog; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if test "${ac_cv_prog_AWK+set}" = set; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 if test -n "$AWK"; then
3586 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3595 ac_cv_prog_AWK="$ac_prog"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3599 done
3600 done
3601 IFS=$as_save_IFS
3605 AWK=$ac_cv_prog_AWK
3606 if test -n "$AWK"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3608 $as_echo "$AWK" >&6; }
3609 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3615 test -n "$AWK" && break
3616 done
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3619 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3620 set x ${MAKE-make}
3621 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3622 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 cat >conftest.make <<\_ACEOF
3626 SHELL = /bin/sh
3627 all:
3628 @echo '@@@%%%=$(MAKE)=@@@%%%'
3629 _ACEOF
3630 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3631 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3632 *@@@%%%=?*=@@@%%%*)
3633 eval ac_cv_prog_make_${ac_make}_set=yes;;
3635 eval ac_cv_prog_make_${ac_make}_set=no;;
3636 esac
3637 rm -f conftest.make
3639 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3641 $as_echo "yes" >&6; }
3642 SET_MAKE=
3643 else
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3646 SET_MAKE="MAKE=${MAKE-make}"
3649 rm -rf .tst 2>/dev/null
3650 mkdir .tst 2>/dev/null
3651 if test -d .tst; then
3652 am__leading_dot=.
3653 else
3654 am__leading_dot=_
3656 rmdir .tst 2>/dev/null
3658 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3659 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3660 # is not polluted with repeated "-I."
3661 am__isrc=' -I$(srcdir)'
3662 # test to see if srcdir already configured
3663 if test -f $srcdir/config.status; then
3664 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3668 # test whether we have cygpath
3669 if test -z "$CYGPATH_W"; then
3670 if (cygpath --version) >/dev/null 2>/dev/null; then
3671 CYGPATH_W='cygpath -w'
3672 else
3673 CYGPATH_W=echo
3678 # Define the identity of the package.
3679 PACKAGE='emacs'
3680 VERSION='24.0.92'
3683 cat >>confdefs.h <<_ACEOF
3684 #define PACKAGE "$PACKAGE"
3685 _ACEOF
3688 cat >>confdefs.h <<_ACEOF
3689 #define VERSION "$VERSION"
3690 _ACEOF
3692 # Some tools Automake needs.
3694 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3697 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3700 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3703 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3706 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3708 # We need awk for the "check" target. The system "awk" is bad on
3709 # some platforms.
3710 # Always define AMTAR for backward compatibility.
3712 AMTAR=${AMTAR-"${am_missing_run}tar"}
3714 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3723 lispdir='${datadir}/emacs/${version}/lisp'
3724 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3725 '${datadir}/emacs/site-lisp'
3726 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3727 etcdir='${datadir}/emacs/${version}/etc'
3728 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3729 docdir='${datadir}/emacs/${version}/etc'
3730 gamedir='${localstatedir}/games/emacs'
3735 # Check whether --with-pop was given.
3736 if test "${with_pop+set}" = set; then :
3737 withval=$with_pop;
3738 else
3739 with_pop=yes
3742 if test "$with_pop" = yes; then
3743 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3748 # Check whether --with-kerberos was given.
3749 if test "${with_kerberos+set}" = set; then :
3750 withval=$with_kerberos;
3751 else
3752 with_kerberos=no
3755 if test "$with_kerberos" != no; then
3756 $as_echo "#define KERBEROS 1" >>confdefs.h
3761 # Check whether --with-kerberos5 was given.
3762 if test "${with_kerberos5+set}" = set; then :
3763 withval=$with_kerberos5;
3764 else
3765 with_kerberos5=no
3768 if test "${with_kerberos5}" != no; then
3769 if test "${with_kerberos}" = no; then
3770 with_kerberos=yes
3771 $as_echo "#define KERBEROS 1" >>confdefs.h
3775 $as_echo "#define KERBEROS5 1" >>confdefs.h
3780 # Check whether --with-hesiod was given.
3781 if test "${with_hesiod+set}" = set; then :
3782 withval=$with_hesiod;
3783 else
3784 with_hesiod=no
3787 if test "$with_hesiod" != no; then
3789 $as_echo "#define HESIOD 1" >>confdefs.h
3794 # Check whether --with-mmdf was given.
3795 if test "${with_mmdf+set}" = set; then :
3796 withval=$with_mmdf;
3797 else
3798 with_mmdf=no
3801 if test "$with_mmdf" != no; then
3803 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3808 # Check whether --with-mail-unlink was given.
3809 if test "${with_mail_unlink+set}" = set; then :
3810 withval=$with_mail_unlink;
3811 else
3812 with_mail_unlink=no
3815 if test "$with_mail_unlink" != no; then
3817 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3822 # Check whether --with-mailhost was given.
3823 if test "${with_mailhost+set}" = set; then :
3824 withval=$with_mailhost;
3825 cat >>confdefs.h <<_ACEOF
3826 #define MAILHOST "$withval"
3827 _ACEOF
3833 # Check whether --with-sound was given.
3834 if test "${with_sound+set}" = set; then :
3835 withval=$with_sound;
3836 else
3837 with_sound=yes
3842 # Check whether --with-sync-input was given.
3843 if test "${with_sync_input+set}" = set; then :
3844 withval=$with_sync_input;
3845 else
3846 with_sync_input=yes
3849 if test "$with_sync_input" = yes; then
3851 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3856 # Check whether --with-x-toolkit was given.
3857 if test "${with_x_toolkit+set}" = set; then :
3858 withval=$with_x_toolkit; case "${withval}" in
3859 y | ye | yes ) val=gtk ;;
3860 n | no ) val=no ;;
3861 l | lu | luc | luci | lucid ) val=lucid ;;
3862 a | at | ath | athe | athen | athena ) val=athena ;;
3863 m | mo | mot | moti | motif ) val=motif ;;
3864 g | gt | gtk ) val=gtk ;;
3865 gtk3 ) val=gtk3 ;;
3867 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3868 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3869 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3871 esac
3872 with_x_toolkit=$val
3878 # Check whether --with-wide-int was given.
3879 if test "${with_wide_int+set}" = set; then :
3880 withval=$with_wide_int;
3881 else
3882 with_wide_int=no
3885 if test "$with_wide_int" = yes; then
3887 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3892 # Check whether --with-xpm was given.
3893 if test "${with_xpm+set}" = set; then :
3894 withval=$with_xpm;
3895 else
3896 with_xpm=yes
3900 # Check whether --with-jpeg was given.
3901 if test "${with_jpeg+set}" = set; then :
3902 withval=$with_jpeg;
3903 else
3904 with_jpeg=yes
3908 # Check whether --with-tiff was given.
3909 if test "${with_tiff+set}" = set; then :
3910 withval=$with_tiff;
3911 else
3912 with_tiff=yes
3916 # Check whether --with-gif was given.
3917 if test "${with_gif+set}" = set; then :
3918 withval=$with_gif;
3919 else
3920 with_gif=yes
3924 # Check whether --with-png was given.
3925 if test "${with_png+set}" = set; then :
3926 withval=$with_png;
3927 else
3928 with_png=yes
3932 # Check whether --with-rsvg was given.
3933 if test "${with_rsvg+set}" = set; then :
3934 withval=$with_rsvg;
3935 else
3936 with_rsvg=yes
3940 # Check whether --with-xml2 was given.
3941 if test "${with_xml2+set}" = set; then :
3942 withval=$with_xml2;
3943 else
3944 with_xml2=yes
3948 # Check whether --with-imagemagick was given.
3949 if test "${with_imagemagick+set}" = set; then :
3950 withval=$with_imagemagick;
3951 else
3952 with_imagemagick=yes
3957 # Check whether --with-xft was given.
3958 if test "${with_xft+set}" = set; then :
3959 withval=$with_xft;
3960 else
3961 with_xft=yes
3965 # Check whether --with-libotf was given.
3966 if test "${with_libotf+set}" = set; then :
3967 withval=$with_libotf;
3968 else
3969 with_libotf=yes
3973 # Check whether --with-m17n-flt was given.
3974 if test "${with_m17n_flt+set}" = set; then :
3975 withval=$with_m17n_flt;
3976 else
3977 with_m17n_flt=yes
3982 # Check whether --with-toolkit-scroll-bars was given.
3983 if test "${with_toolkit_scroll_bars+set}" = set; then :
3984 withval=$with_toolkit_scroll_bars;
3985 else
3986 with_toolkit_scroll_bars=yes
3990 # Check whether --with-xaw3d was given.
3991 if test "${with_xaw3d+set}" = set; then :
3992 withval=$with_xaw3d;
3993 else
3994 with_xaw3d=yes
3998 # Check whether --with-xim was given.
3999 if test "${with_xim+set}" = set; then :
4000 withval=$with_xim;
4001 else
4002 with_xim=yes
4006 # Check whether --with-ns was given.
4007 if test "${with_ns+set}" = set; then :
4008 withval=$with_ns;
4009 else
4010 with_ns=no
4015 # Check whether --with-gpm was given.
4016 if test "${with_gpm+set}" = set; then :
4017 withval=$with_gpm;
4018 else
4019 with_gpm=yes
4023 # Check whether --with-dbus was given.
4024 if test "${with_dbus+set}" = set; then :
4025 withval=$with_dbus;
4026 else
4027 with_dbus=yes
4031 # Check whether --with-gconf was given.
4032 if test "${with_gconf+set}" = set; then :
4033 withval=$with_gconf;
4034 else
4035 with_gconf=yes
4039 # Check whether --with-gsettings was given.
4040 if test "${with_gsettings+set}" = set; then :
4041 withval=$with_gsettings;
4042 else
4043 with_gsettings=yes
4047 # Check whether --with-selinux was given.
4048 if test "${with_selinux+set}" = set; then :
4049 withval=$with_selinux;
4050 else
4051 with_selinux=yes
4055 # Check whether --with-gnutls was given.
4056 if test "${with_gnutls+set}" = set; then :
4057 withval=$with_gnutls;
4058 else
4059 with_gnutls=yes
4063 ## For the times when you want to build Emacs but don't have
4064 ## a suitable makeinfo, and can live without the manuals.
4066 # Check whether --with-makeinfo was given.
4067 if test "${with_makeinfo+set}" = set; then :
4068 withval=$with_makeinfo;
4069 else
4070 with_makeinfo=yes
4074 ## Makefile.in needs the cache file name.
4077 ## This is an option because I do not know if all info/man support
4078 ## compressed files, nor how to test if they do so.
4080 # Check whether --with-compress-info was given.
4081 if test "${with_compress_info+set}" = set; then :
4082 withval=$with_compress_info;
4083 else
4084 with_compress_info=yes
4087 if test $with_compress_info = yes; then
4088 GZIP_INFO=yes
4089 else
4090 GZIP_INFO=
4095 # Check whether --with-pkg-config-prog was given.
4096 if test "${with_pkg_config_prog+set}" = set; then :
4097 withval=$with_pkg_config_prog;
4100 if test "X${with_pkg_config_prog}" != X; then
4101 if test "${with_pkg_config_prog}" != yes; then
4102 PKG_CONFIG="${with_pkg_config_prog}"
4106 CRT_DIR=
4108 # Check whether --with-crt-dir was given.
4109 if test "${with_crt_dir+set}" = set; then :
4110 withval=$with_crt_dir;
4113 CRT_DIR="${with_crt_dir}"
4116 # Check whether --with-gameuser was given.
4117 if test "${with_gameuser+set}" = set; then :
4118 withval=$with_gameuser;
4121 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4122 && gameuser="${with_gameuser}"
4123 test "X$gameuser" = X && gameuser=games
4126 # Check whether --with-gnustep-conf was given.
4127 if test "${with_gnustep_conf+set}" = set; then :
4128 withval=$with_gnustep_conf;
4131 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4132 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4133 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4134 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4136 # Check whether --enable-ns-self-contained was given.
4137 if test "${enable_ns_self_contained+set}" = set; then :
4138 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4139 else
4140 EN_NS_SELF_CONTAINED=yes
4144 # Check whether --enable-asserts was given.
4145 if test "${enable_asserts+set}" = set; then :
4146 enableval=$enable_asserts; USE_XASSERTS=$enableval
4147 else
4148 USE_XASSERTS=no
4152 # Check whether --enable-maintainer-mode was given.
4153 if test "${enable_maintainer_mode+set}" = set; then :
4154 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4155 else
4156 USE_MAINTAINER_MODE=yes
4159 if test $USE_MAINTAINER_MODE = yes; then
4160 MAINT=
4161 else
4162 MAINT=#
4166 # Check whether --enable-locallisppath was given.
4167 if test "${enable_locallisppath+set}" = set; then :
4168 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4169 locallisppath=
4170 elif test "${enableval}" != "yes"; then
4171 locallisppath=${enableval}
4176 # Check whether --enable-checking was given.
4177 if test "${enable_checking+set}" = set; then :
4178 enableval=$enable_checking; ac_checking_flags="${enableval}"
4181 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4182 for check in $ac_checking_flags
4184 case $check in
4185 # these set all the flags to specific states
4186 yes) ac_enable_checking=1 ;;
4187 no) ac_enable_checking= ;
4188 ac_gc_check_stringbytes= ;
4189 ac_gc_check_string_overrun= ;
4190 ac_gc_check_string_free_list= ;
4191 ac_xmalloc_overrun= ;
4192 ac_gc_check_cons_list= ;;
4193 all) ac_enable_checking=1 ;
4194 ac_gc_check_stringbytes=1 ;
4195 ac_gc_check_string_overrun=1 ;
4196 ac_gc_check_string_free_list=1 ;
4197 ac_xmalloc_overrun=1 ;
4198 ac_gc_check_cons_list=1 ;;
4199 # these enable particular checks
4200 stringbytes) ac_gc_check_stringbytes=1 ;;
4201 stringoverrun) ac_gc_check_string_overrun=1 ;;
4202 stringfreelist) ac_gc_check_string_free_list=1 ;;
4203 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4204 conslist) ac_gc_check_cons_list=1 ;;
4205 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4206 esac
4207 done
4208 IFS="$ac_save_IFS"
4210 if test x$ac_enable_checking != x ; then
4212 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4215 if test x$ac_gc_check_stringbytes != x ; then
4217 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4220 if test x$ac_gc_check_string_overrun != x ; then
4222 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4225 if test x$ac_gc_check_string_free_list != x ; then
4227 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4230 if test x$ac_xmalloc_overrun != x ; then
4232 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4235 if test x$ac_gc_check_cons_list != x ; then
4237 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4241 # Check whether --enable-use-lisp-union-type was given.
4242 if test "${enable_use_lisp_union_type+set}" = set; then :
4243 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4245 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4252 # Check whether --enable-profiling was given.
4253 if test "${enable_profiling+set}" = set; then :
4254 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4257 if test x$ac_enable_profiling != x ; then
4258 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4259 else
4260 PROFILING_CFLAGS=
4264 # Check whether --enable-autodepend was given.
4265 if test "${enable_autodepend+set}" = set; then :
4266 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4267 else
4268 ac_enable_autodepend=yes
4272 #### Make srcdir absolute, if it isn't already. It's important to
4273 #### avoid running the path through pwd unnecessarily, since pwd can
4274 #### give you automounter prefixes, which can go away. We do all this
4275 #### so Emacs can find its files when run uninstalled.
4276 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4277 unset CDPATH
4278 case "${srcdir}" in
4279 /* ) ;;
4281 ## We may be able to use the $PWD environment variable to make this
4282 ## absolute. But sometimes PWD is inaccurate.
4283 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4284 ## but that tested only for a well-formed and valid PWD,
4285 ## it did not object when PWD was well-formed and valid but just wrong.
4286 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4287 then
4288 srcdir="$PWD"
4289 else
4290 srcdir="`(cd ${srcdir}; pwd)`"
4293 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4294 esac
4296 #### Given the configuration name, set machfile and opsysfile to the
4297 #### names of the m/*.h and s/*.h files we should use.
4299 ### Canonicalize the configuration name.
4301 # Make sure we can run config.sub.
4302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4303 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4306 $as_echo_n "checking build system type... " >&6; }
4307 if test "${ac_cv_build+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 ac_build_alias=$build_alias
4311 test "x$ac_build_alias" = x &&
4312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4313 test "x$ac_build_alias" = x &&
4314 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4316 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4320 $as_echo "$ac_cv_build" >&6; }
4321 case $ac_cv_build in
4322 *-*-*) ;;
4323 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4324 esac
4325 build=$ac_cv_build
4326 ac_save_IFS=$IFS; IFS='-'
4327 set x $ac_cv_build
4328 shift
4329 build_cpu=$1
4330 build_vendor=$2
4331 shift; shift
4332 # Remember, the first character of IFS is used to create $*,
4333 # except with old shells:
4334 build_os=$*
4335 IFS=$ac_save_IFS
4336 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4340 $as_echo_n "checking host system type... " >&6; }
4341 if test "${ac_cv_host+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test "x$host_alias" = x; then
4345 ac_cv_host=$ac_cv_build
4346 else
4347 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4348 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4353 $as_echo "$ac_cv_host" >&6; }
4354 case $ac_cv_host in
4355 *-*-*) ;;
4356 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4357 esac
4358 host=$ac_cv_host
4359 ac_save_IFS=$IFS; IFS='-'
4360 set x $ac_cv_host
4361 shift
4362 host_cpu=$1
4363 host_vendor=$2
4364 shift; shift
4365 # Remember, the first character of IFS is used to create $*,
4366 # except with old shells:
4367 host_os=$*
4368 IFS=$ac_save_IFS
4369 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4372 canonical=$host
4373 configuration=${host_alias-${build_alias-$host}}
4377 ### If you add support for a new configuration, add code to this
4378 ### switch statement to recognize your configuration name and select
4379 ### the appropriate operating system and machine description files.
4381 ### You would hope that you could choose an m/*.h file pretty much
4382 ### based on the machine portion of the configuration name, and an s/*.h
4383 ### file based on the operating system portion. However, it turns out
4384 ### that each m/*.h file is pretty manufacturer-specific - for
4385 ### example mips.h is MIPS
4386 ### So we basically have to have a special case for each
4387 ### configuration name.
4389 ### As far as handling version numbers on operating systems is
4390 ### concerned, make sure things will fail in a fixable way. If
4391 ### /etc/MACHINES doesn't say anything about version numbers, be
4392 ### prepared to handle anything reasonably. If version numbers
4393 ### matter, be sure /etc/MACHINES says something about it.
4395 machine='' opsys='' unported=no
4396 case "${canonical}" in
4398 ## GNU/Linux and similar ports
4399 *-*-linux* )
4400 opsys=gnu-linux
4401 case ${canonical} in
4402 alpha*) machine=alpha ;;
4403 s390x-*) machine=ibms390x ;;
4404 powerpc*) machine=macppc ;;
4405 sparc*) machine=sparc ;;
4406 ia64*) machine=ia64 ;;
4407 m68k*) machine=m68k ;;
4408 x86_64*) machine=amdx86-64 ;;
4409 esac
4412 ## FreeBSD ports
4413 *-*-freebsd* )
4414 opsys=freebsd
4415 case "${canonical}" in
4416 alpha*) machine=alpha ;;
4417 amd64-*|x86_64-*) machine=amdx86-64 ;;
4418 ia64-*) machine=ia64 ;;
4419 i[3456]86-*) machine=intel386 ;;
4420 powerpc-*) machine=macppc ;;
4421 sparc-*) machine=sparc ;;
4422 sparc64-*) machine=sparc ;;
4423 esac
4426 ## FreeBSD kernel + glibc based userland
4427 *-*-kfreebsd*gnu* )
4428 opsys=gnu-kfreebsd
4429 case "${canonical}" in
4430 alpha*) machine=alpha ;;
4431 amd64-*|x86_64-*) machine=amdx86-64 ;;
4432 ia64-*) machine=ia64 ;;
4433 i[3456]86-*) machine=intel386 ;;
4434 powerpc-*) machine=macppc ;;
4435 sparc-*) machine=sparc ;;
4436 sparc64-*) machine=sparc ;;
4437 esac
4440 ## NetBSD ports
4441 *-*-netbsd* )
4442 opsys=netbsd
4443 case "${canonical}" in
4444 alpha*) machine=alpha ;;
4445 x86_64-*) machine=amdx86-64 ;;
4446 i[3456]86-*) machine=intel386 ;;
4447 m68k-*) machine=m68k ;;
4448 powerpc-*) machine=macppc ;;
4449 sparc*-) machine=sparc ;;
4450 vax-*) machine=vax ;;
4451 esac
4454 ## OpenBSD ports
4455 *-*-openbsd* )
4456 opsys=openbsd
4457 case "${canonical}" in
4458 alpha*) machine=alpha ;;
4459 x86_64-*) machine=amdx86-64 ;;
4460 i386-*) machine=intel386 ;;
4461 powerpc-*) machine=macppc ;;
4462 sparc*) machine=sparc ;;
4463 vax-*) machine=vax ;;
4464 esac
4467 ## Apple Darwin / Mac OS X
4468 *-apple-darwin* )
4469 case "${canonical}" in
4470 i[3456]86-* ) machine=intel386 ;;
4471 powerpc-* ) machine=macppc ;;
4472 x86_64-* ) machine=amdx86-64 ;;
4473 * ) unported=yes ;;
4474 esac
4475 opsys=darwin
4476 # Define CPP as follows to make autoconf work correctly.
4477 CPP="${CC-cc} -E -no-cpp-precomp"
4478 # Use fink packages if available.
4479 if test -d /sw/include && test -d /sw/lib; then
4480 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4481 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4482 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4486 ## HP 9000 series 700 and 800, running HP/UX
4487 hppa*-hp-hpux10.2* )
4488 opsys=hpux10-20
4490 hppa*-hp-hpux1[1-9]* )
4491 opsys=hpux11
4492 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4495 ## IBM machines
4496 rs6000-ibm-aix4.[23]* )
4497 machine=ibmrs6000 opsys=aix4-2
4499 powerpc-ibm-aix4.[23]* )
4500 machine=ibmrs6000 opsys=aix4-2
4502 rs6000-ibm-aix[56]* )
4503 machine=ibmrs6000 opsys=aix4-2
4505 powerpc-ibm-aix[56]* )
4506 machine=ibmrs6000 opsys=aix4-2
4509 ## Silicon Graphics machines
4510 ## Iris 4D
4511 mips-sgi-irix6.5 )
4512 opsys=irix6-5
4513 # Without defining _LANGUAGE_C, things get masked out in the headers
4514 # so that, for instance, grepping for `free' in stdlib.h fails and
4515 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4516 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4517 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4520 ## Suns
4521 *-sun-solaris* \
4522 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4523 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4524 case "${canonical}" in
4525 i[3456]86-*-* ) machine=intel386 ;;
4526 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4527 sparc* ) machine=sparc ;;
4528 * ) unported=yes ;;
4529 esac
4530 case "${canonical}" in
4531 *-sunos5.6* | *-solaris2.6* )
4532 opsys=sol2-6
4533 NON_GNU_CPP=/usr/ccs/lib/cpp
4534 RANLIB="ar -ts"
4536 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4537 opsys=sol2-6
4538 emacs_check_sunpro_c=yes
4539 NON_GNU_CPP=/usr/ccs/lib/cpp
4541 *-sunos5* | *-solaris* )
4542 opsys=sol2-10
4543 emacs_check_sunpro_c=yes
4544 NON_GNU_CPP=/usr/ccs/lib/cpp
4546 esac
4547 ## Watch out for a compiler that we know will not work.
4548 case "${canonical}" in
4549 *-solaris* | *-sunos5* )
4550 if [ "x$CC" = x/usr/ucb/cc ]; then
4551 ## /usr/ucb/cc doesn't work;
4552 ## we should find some other compiler that does work.
4553 unset CC
4556 *) ;;
4557 esac
4560 ## Intel 386 machines where we don't care about the manufacturer.
4561 i[3456]86-*-* )
4562 machine=intel386
4563 case "${canonical}" in
4564 *-cygwin ) opsys=cygwin ;;
4565 *-darwin* ) opsys=darwin
4566 CPP="${CC-cc} -E -no-cpp-precomp"
4568 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4569 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4570 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4571 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4572 esac
4576 unported=yes
4578 esac
4580 ### If the code above didn't choose an operating system, just choose
4581 ### an operating system based on the configuration name. You really
4582 ### only want to use this when you have no idea what the right
4583 ### operating system is; if you know what operating systems a machine
4584 ### runs, it's cleaner to make it explicit in the case statement
4585 ### above.
4586 if test x"${opsys}" = x; then
4587 case "${canonical}" in
4588 *-gnu* ) opsys=gnu ;;
4590 unported=yes
4592 esac
4597 if test $unported = yes; then
4598 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4599 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4602 if test -n "$machine"; then
4603 machfile="m/${machine}.h"
4604 else
4605 machfile=
4607 opsysfile="s/${opsys}.h"
4610 #### Choose a compiler.
4611 test -n "$CC" && cc_specified=yes
4613 # Save the value of CFLAGS that the user specified.
4614 SPECIFIED_CFLAGS="$CFLAGS"
4616 ac_ext=c
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621 if test -n "$ac_tool_prefix"; then
4622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4623 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625 $as_echo_n "checking for $ac_word... " >&6; }
4626 if test "${ac_cv_prog_CC+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 if test -n "$CC"; then
4630 ac_cv_prog_CC="$CC" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4643 done
4644 done
4645 IFS=$as_save_IFS
4649 CC=$ac_cv_prog_CC
4650 if test -n "$CC"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4652 $as_echo "$CC" >&6; }
4653 else
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4660 if test -z "$ac_cv_prog_CC"; then
4661 ac_ct_CC=$CC
4662 # Extract the first word of "gcc", so it can be a program name with args.
4663 set dummy gcc; ac_word=$2
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 if test -n "$ac_ct_CC"; then
4670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_ac_ct_CC="gcc"
4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4683 done
4684 done
4685 IFS=$as_save_IFS
4689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4690 if test -n "$ac_ct_CC"; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4692 $as_echo "$ac_ct_CC" >&6; }
4693 else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4698 if test "x$ac_ct_CC" = x; then
4699 CC=""
4700 else
4701 case $cross_compiling:$ac_tool_warned in
4702 yes:)
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4705 ac_tool_warned=yes ;;
4706 esac
4707 CC=$ac_ct_CC
4709 else
4710 CC="$ac_cv_prog_CC"
4713 if test -z "$CC"; then
4714 if test -n "$ac_tool_prefix"; then
4715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4716 set dummy ${ac_tool_prefix}cc; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if test "${ac_cv_prog_CC+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 if test -n "$CC"; then
4723 ac_cv_prog_CC="$CC" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_CC="${ac_tool_prefix}cc"
4733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4736 done
4737 done
4738 IFS=$as_save_IFS
4742 CC=$ac_cv_prog_CC
4743 if test -n "$CC"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4745 $as_echo "$CC" >&6; }
4746 else
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748 $as_echo "no" >&6; }
4754 if test -z "$CC"; then
4755 # Extract the first word of "cc", so it can be a program name with args.
4756 set dummy cc; ac_word=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if test "${ac_cv_prog_CC+set}" = set; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 if test -n "$CC"; then
4763 ac_cv_prog_CC="$CC" # Let the user override the test.
4764 else
4765 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4774 ac_prog_rejected=yes
4775 continue
4777 ac_cv_prog_CC="cc"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4781 done
4782 done
4783 IFS=$as_save_IFS
4785 if test $ac_prog_rejected = yes; then
4786 # We found a bogon in the path, so make sure we never use it.
4787 set dummy $ac_cv_prog_CC
4788 shift
4789 if test $# != 0; then
4790 # We chose a different compiler from the bogus one.
4791 # However, it has the same basename, so the bogon will be chosen
4792 # first if we set CC to just the basename; use the full file name.
4793 shift
4794 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4799 CC=$ac_cv_prog_CC
4800 if test -n "$CC"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4802 $as_echo "$CC" >&6; }
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4810 if test -z "$CC"; then
4811 if test -n "$ac_tool_prefix"; then
4812 for ac_prog in cl.exe
4814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_CC+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$CC"; then
4822 ac_cv_prog_CC="$CC" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4841 CC=$ac_cv_prog_CC
4842 if test -n "$CC"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4844 $as_echo "$CC" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4851 test -n "$CC" && break
4852 done
4854 if test -z "$CC"; then
4855 ac_ct_CC=$CC
4856 for ac_prog in cl.exe
4858 # Extract the first word of "$ac_prog", so it can be a program name with args.
4859 set dummy $ac_prog; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 if test -n "$ac_ct_CC"; then
4866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_ac_ct_CC="$ac_prog"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4879 done
4880 done
4881 IFS=$as_save_IFS
4885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4886 if test -n "$ac_ct_CC"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4888 $as_echo "$ac_ct_CC" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4895 test -n "$ac_ct_CC" && break
4896 done
4898 if test "x$ac_ct_CC" = x; then
4899 CC=""
4900 else
4901 case $cross_compiling:$ac_tool_warned in
4902 yes:)
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905 ac_tool_warned=yes ;;
4906 esac
4907 CC=$ac_ct_CC
4914 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4916 as_fn_error "no acceptable C compiler found in \$PATH
4917 See \`config.log' for more details." "$LINENO" 5; }
4919 # Provide some information about the compiler.
4920 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4921 set X $ac_compile
4922 ac_compiler=$2
4923 for ac_option in --version -v -V -qversion; do
4924 { { ac_try="$ac_compiler $ac_option >&5"
4925 case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928 esac
4929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4930 $as_echo "$ac_try_echo"; } >&5
4931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4932 ac_status=$?
4933 if test -s conftest.err; then
4934 sed '10a\
4935 ... rest of stderr output deleted ...
4936 10q' conftest.err >conftest.er1
4937 cat conftest.er1 >&5
4939 rm -f conftest.er1 conftest.err
4940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4941 test $ac_status = 0; }
4942 done
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4948 main ()
4952 return 0;
4954 _ACEOF
4955 ac_clean_files_save=$ac_clean_files
4956 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4957 # Try to create an executable without -o first, disregard a.out.
4958 # It will help us diagnose broken compilers, and finding out an intuition
4959 # of exeext.
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4961 $as_echo_n "checking whether the C compiler works... " >&6; }
4962 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4964 # The possible output files:
4965 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4967 ac_rmfiles=
4968 for ac_file in $ac_files
4970 case $ac_file in
4971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4972 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4973 esac
4974 done
4975 rm -f $ac_rmfiles
4977 if { { ac_try="$ac_link_default"
4978 case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981 esac
4982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4983 $as_echo "$ac_try_echo"; } >&5
4984 (eval "$ac_link_default") 2>&5
4985 ac_status=$?
4986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; }; then :
4988 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4989 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4990 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4991 # so that the user can short-circuit this test for compilers unknown to
4992 # Autoconf.
4993 for ac_file in $ac_files ''
4995 test -f "$ac_file" || continue
4996 case $ac_file in
4997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4999 [ab].out )
5000 # We found the default executable, but exeext='' is most
5001 # certainly right.
5002 break;;
5003 *.* )
5004 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5005 then :; else
5006 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5008 # We set ac_cv_exeext here because the later test for it is not
5009 # safe: cross compilers may not add the suffix if given an `-o'
5010 # argument, so we may need to know it at that point already.
5011 # Even if this section looks crufty: it has the advantage of
5012 # actually working.
5013 break;;
5015 break;;
5016 esac
5017 done
5018 test "$ac_cv_exeext" = no && ac_cv_exeext=
5020 else
5021 ac_file=''
5023 if test -z "$ac_file"; then :
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 $as_echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
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_set_status 77
5032 as_fn_error "C compiler cannot create executables
5033 See \`config.log' for more details." "$LINENO" 5; }; }
5034 else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5036 $as_echo "yes" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5039 $as_echo_n "checking for C compiler default output file name... " >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5041 $as_echo "$ac_file" >&6; }
5042 ac_exeext=$ac_cv_exeext
5044 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5045 ac_clean_files=$ac_clean_files_save
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5047 $as_echo_n "checking for suffix of executables... " >&6; }
5048 if { { ac_try="$ac_link"
5049 case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052 esac
5053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5054 $as_echo "$ac_try_echo"; } >&5
5055 (eval "$ac_link") 2>&5
5056 ac_status=$?
5057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5058 test $ac_status = 0; }; then :
5059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5060 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5061 # work properly (i.e., refer to `conftest.exe'), while it won't with
5062 # `rm'.
5063 for ac_file in conftest.exe conftest conftest.*; do
5064 test -f "$ac_file" || continue
5065 case $ac_file in
5066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5068 break;;
5069 * ) break;;
5070 esac
5071 done
5072 else
5073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5075 as_fn_error "cannot compute suffix of executables: cannot compile and link
5076 See \`config.log' for more details." "$LINENO" 5; }
5078 rm -f conftest conftest$ac_cv_exeext
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5080 $as_echo "$ac_cv_exeext" >&6; }
5082 rm -f conftest.$ac_ext
5083 EXEEXT=$ac_cv_exeext
5084 ac_exeext=$EXEEXT
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087 #include <stdio.h>
5089 main ()
5091 FILE *f = fopen ("conftest.out", "w");
5092 return ferror (f) || fclose (f) != 0;
5095 return 0;
5097 _ACEOF
5098 ac_clean_files="$ac_clean_files conftest.out"
5099 # Check that the compiler produces executables we can run. If not, either
5100 # the compiler is broken, or we cross compile.
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5102 $as_echo_n "checking whether we are cross compiling... " >&6; }
5103 if test "$cross_compiling" != yes; then
5104 { { ac_try="$ac_link"
5105 case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108 esac
5109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5110 $as_echo "$ac_try_echo"; } >&5
5111 (eval "$ac_link") 2>&5
5112 ac_status=$?
5113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5114 test $ac_status = 0; }
5115 if { ac_try='./conftest$ac_cv_exeext'
5116 { { case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119 esac
5120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5121 $as_echo "$ac_try_echo"; } >&5
5122 (eval "$ac_try") 2>&5
5123 ac_status=$?
5124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5125 test $ac_status = 0; }; }; then
5126 cross_compiling=no
5127 else
5128 if test "$cross_compiling" = maybe; then
5129 cross_compiling=yes
5130 else
5131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5133 as_fn_error "cannot run C compiled programs.
5134 If you meant to cross compile, use \`--host'.
5135 See \`config.log' for more details." "$LINENO" 5; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5140 $as_echo "$cross_compiling" >&6; }
5142 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5143 ac_clean_files=$ac_clean_files_save
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5145 $as_echo_n "checking for suffix of object files... " >&6; }
5146 if test "${ac_cv_objext+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5153 main ()
5157 return 0;
5159 _ACEOF
5160 rm -f conftest.o conftest.obj
5161 if { { ac_try="$ac_compile"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167 $as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_compile") 2>&5
5169 ac_status=$?
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; }; then :
5172 for ac_file in conftest.o conftest.obj conftest.*; do
5173 test -f "$ac_file" || continue;
5174 case $ac_file in
5175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5177 break;;
5178 esac
5179 done
5180 else
5181 $as_echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5186 as_fn_error "cannot compute suffix of object files: cannot compile
5187 See \`config.log' for more details." "$LINENO" 5; }
5189 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5192 $as_echo "$ac_cv_objext" >&6; }
5193 OBJEXT=$ac_cv_objext
5194 ac_objext=$OBJEXT
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5196 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5197 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5204 main ()
5206 #ifndef __GNUC__
5207 choke me
5208 #endif
5211 return 0;
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"; then :
5215 ac_compiler_gnu=yes
5216 else
5217 ac_compiler_gnu=no
5219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5224 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5225 if test $ac_compiler_gnu = yes; then
5226 GCC=yes
5227 else
5228 GCC=
5230 ac_test_CFLAGS=${CFLAGS+set}
5231 ac_save_CFLAGS=$CFLAGS
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5233 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5234 if test "${ac_cv_prog_cc_g+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 ac_save_c_werror_flag=$ac_c_werror_flag
5238 ac_c_werror_flag=yes
5239 ac_cv_prog_cc_g=no
5240 CFLAGS="-g"
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5245 main ()
5249 return 0;
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 ac_cv_prog_cc_g=yes
5254 else
5255 CFLAGS=""
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5260 main ()
5264 return 0;
5266 _ACEOF
5267 if ac_fn_c_try_compile "$LINENO"; then :
5269 else
5270 ac_c_werror_flag=$ac_save_c_werror_flag
5271 CFLAGS="-g"
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5276 main ()
5280 return 0;
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284 ac_cv_prog_cc_g=yes
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 ac_c_werror_flag=$ac_save_c_werror_flag
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5294 $as_echo "$ac_cv_prog_cc_g" >&6; }
5295 if test "$ac_test_CFLAGS" = set; then
5296 CFLAGS=$ac_save_CFLAGS
5297 elif test $ac_cv_prog_cc_g = yes; then
5298 if test "$GCC" = yes; then
5299 CFLAGS="-g -O2"
5300 else
5301 CFLAGS="-g"
5303 else
5304 if test "$GCC" = yes; then
5305 CFLAGS="-O2"
5306 else
5307 CFLAGS=
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5311 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5312 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 ac_cv_prog_cc_c89=no
5316 ac_save_CC=$CC
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5319 #include <stdarg.h>
5320 #include <stdio.h>
5321 #include <sys/types.h>
5322 #include <sys/stat.h>
5323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5324 struct buf { int x; };
5325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5326 static char *e (p, i)
5327 char **p;
5328 int i;
5330 return p[i];
5332 static char *f (char * (*g) (char **, int), char **p, ...)
5334 char *s;
5335 va_list v;
5336 va_start (v,p);
5337 s = g (p, va_arg (v,int));
5338 va_end (v);
5339 return s;
5342 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5343 function prototypes and stuff, but not '\xHH' hex character constants.
5344 These don't provoke an error unfortunately, instead are silently treated
5345 as 'x'. The following induces an error, until -std is added to get
5346 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5347 array size at least. It's necessary to write '\x00'==0 to get something
5348 that's true only with -std. */
5349 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5351 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5352 inside strings and character constants. */
5353 #define FOO(x) 'x'
5354 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5356 int test (int i, double x);
5357 struct s1 {int (*f) (int a);};
5358 struct s2 {int (*f) (double a);};
5359 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5360 int argc;
5361 char **argv;
5363 main ()
5365 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5367 return 0;
5369 _ACEOF
5370 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5371 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5373 CC="$ac_save_CC $ac_arg"
5374 if ac_fn_c_try_compile "$LINENO"; then :
5375 ac_cv_prog_cc_c89=$ac_arg
5377 rm -f core conftest.err conftest.$ac_objext
5378 test "x$ac_cv_prog_cc_c89" != "xno" && break
5379 done
5380 rm -f conftest.$ac_ext
5381 CC=$ac_save_CC
5384 # AC_CACHE_VAL
5385 case "x$ac_cv_prog_cc_c89" in
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5388 $as_echo "none needed" >&6; } ;;
5389 xno)
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5391 $as_echo "unsupported" >&6; } ;;
5393 CC="$CC $ac_cv_prog_cc_c89"
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5395 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5396 esac
5397 if test "x$ac_cv_prog_cc_c89" != xno; then :
5401 ac_ext=c
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406 DEPDIR="${am__leading_dot}deps"
5408 ac_config_commands="$ac_config_commands depfiles"
5411 am_make=${MAKE-make}
5412 cat > confinc << 'END'
5413 am__doit:
5414 @echo this is the am__doit target
5415 .PHONY: am__doit
5417 # If we don't find an include directive, just comment out the code.
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5419 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5420 am__include="#"
5421 am__quote=
5422 _am_result=none
5423 # First try GNU make style include.
5424 echo "include confinc" > confmf
5425 # Ignore all kinds of additional output from `make'.
5426 case `$am_make -s -f confmf 2> /dev/null` in #(
5427 *the\ am__doit\ target*)
5428 am__include=include
5429 am__quote=
5430 _am_result=GNU
5432 esac
5433 # Now try BSD make style include.
5434 if test "$am__include" = "#"; then
5435 echo '.include "confinc"' > confmf
5436 case `$am_make -s -f confmf 2> /dev/null` in #(
5437 *the\ am__doit\ target*)
5438 am__include=.include
5439 am__quote="\""
5440 _am_result=BSD
5442 esac
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5447 $as_echo "$_am_result" >&6; }
5448 rm -f confinc confmf
5450 # Check whether --enable-dependency-tracking was given.
5451 if test "${enable_dependency_tracking+set}" = set; then :
5452 enableval=$enable_dependency_tracking;
5455 if test "x$enable_dependency_tracking" != xno; then
5456 am_depcomp="$ac_aux_dir/depcomp"
5457 AMDEPBACKSLASH='\'
5459 if test "x$enable_dependency_tracking" != xno; then
5460 AMDEP_TRUE=
5461 AMDEP_FALSE='#'
5462 else
5463 AMDEP_TRUE='#'
5464 AMDEP_FALSE=
5469 depcc="$CC" am_compiler_list=
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5472 $as_echo_n "checking dependency style of $depcc... " >&6; }
5473 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5477 # We make a subdir and do the tests there. Otherwise we can end up
5478 # making bogus files that we don't know about and never remove. For
5479 # instance it was reported that on HP-UX the gcc test will end up
5480 # making a dummy file named `D' -- because `-MD' means `put the output
5481 # in D'.
5482 mkdir conftest.dir
5483 # Copy depcomp to subdir because otherwise we won't find it if we're
5484 # using a relative directory.
5485 cp "$am_depcomp" conftest.dir
5486 cd conftest.dir
5487 # We will build objects and dependencies in a subdirectory because
5488 # it helps to detect inapplicable dependency modes. For instance
5489 # both Tru64's cc and ICC support -MD to output dependencies as a
5490 # side effect of compilation, but ICC will put the dependencies in
5491 # the current directory while Tru64 will put them in the object
5492 # directory.
5493 mkdir sub
5495 am_cv_CC_dependencies_compiler_type=none
5496 if test "$am_compiler_list" = ""; then
5497 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5499 am__universal=false
5500 case " $depcc " in #(
5501 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5502 esac
5504 for depmode in $am_compiler_list; do
5505 # Setup a source with many dependencies, because some compilers
5506 # like to wrap large dependency lists on column 80 (with \), and
5507 # we should not choose a depcomp mode which is confused by this.
5509 # We need to recreate these files for each test, as the compiler may
5510 # overwrite some of them when testing with obscure command lines.
5511 # This happens at least with the AIX C compiler.
5512 : > sub/conftest.c
5513 for i in 1 2 3 4 5 6; do
5514 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5515 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5516 # Solaris 8's {/usr,}/bin/sh.
5517 touch sub/conftst$i.h
5518 done
5519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5521 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5522 # mode. It turns out that the SunPro C++ compiler does not properly
5523 # handle `-M -o', and we need to detect this. Also, some Intel
5524 # versions had trouble with output in subdirs
5525 am__obj=sub/conftest.${OBJEXT-o}
5526 am__minus_obj="-o $am__obj"
5527 case $depmode in
5528 gcc)
5529 # This depmode causes a compiler race in universal mode.
5530 test "$am__universal" = false || continue
5532 nosideeffect)
5533 # after this tag, mechanisms are not by side-effect, so they'll
5534 # only be used when explicitly requested
5535 if test "x$enable_dependency_tracking" = xyes; then
5536 continue
5537 else
5538 break
5541 msvisualcpp | msvcmsys)
5542 # This compiler won't grok `-c -o', but also, the minuso test has
5543 # not run yet. These depmodes are late enough in the game, and
5544 # so weak that their functioning should not be impacted.
5545 am__obj=conftest.${OBJEXT-o}
5546 am__minus_obj=
5548 none) break ;;
5549 esac
5550 if depmode=$depmode \
5551 source=sub/conftest.c object=$am__obj \
5552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5553 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5554 >/dev/null 2>conftest.err &&
5555 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5556 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5557 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5558 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5559 # icc doesn't choke on unknown options, it will just issue warnings
5560 # or remarks (even with -Werror). So we grep stderr for any message
5561 # that says an option was ignored or not supported.
5562 # When given -MP, icc 7.0 and 7.1 complain thusly:
5563 # icc: Command line warning: ignoring option '-M'; no argument required
5564 # The diagnosis changed in icc 8.0:
5565 # icc: Command line remark: option '-MP' not supported
5566 if (grep 'ignoring option' conftest.err ||
5567 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5568 am_cv_CC_dependencies_compiler_type=$depmode
5569 break
5572 done
5574 cd ..
5575 rm -rf conftest.dir
5576 else
5577 am_cv_CC_dependencies_compiler_type=none
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5582 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5583 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5586 test "x$enable_dependency_tracking" != xno \
5587 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5588 am__fastdepCC_TRUE=
5589 am__fastdepCC_FALSE='#'
5590 else
5591 am__fastdepCC_TRUE='#'
5592 am__fastdepCC_FALSE=
5596 if test "x$CC" != xcc; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5598 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5601 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5603 set dummy $CC; ac_cc=`$as_echo "$2" |
5604 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5605 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5612 main ()
5616 return 0;
5618 _ACEOF
5619 # Make sure it works both with $CC and with simple cc.
5620 # We do the test twice because some compilers refuse to overwrite an
5621 # existing .o file with -o, though they will create one.
5622 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5623 rm -f conftest2.*
5624 if { { case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627 esac
5628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5629 $as_echo "$ac_try_echo"; } >&5
5630 (eval "$ac_try") 2>&5
5631 ac_status=$?
5632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633 test $ac_status = 0; } &&
5634 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5639 $as_echo "$ac_try_echo"; } >&5
5640 (eval "$ac_try") 2>&5
5641 ac_status=$?
5642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5643 test $ac_status = 0; };
5644 then
5645 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5646 if test "x$CC" != xcc; then
5647 # Test first that cc exists at all.
5648 if { ac_try='cc -c conftest.$ac_ext >&5'
5649 { { case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652 esac
5653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5654 $as_echo "$ac_try_echo"; } >&5
5655 (eval "$ac_try") 2>&5
5656 ac_status=$?
5657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5658 test $ac_status = 0; }; }; then
5659 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5660 rm -f conftest2.*
5661 if { { case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664 esac
5665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5666 $as_echo "$ac_try_echo"; } >&5
5667 (eval "$ac_try") 2>&5
5668 ac_status=$?
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; } &&
5671 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674 esac
5675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5676 $as_echo "$ac_try_echo"; } >&5
5677 (eval "$ac_try") 2>&5
5678 ac_status=$?
5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680 test $ac_status = 0; };
5681 then
5682 # cc works too.
5684 else
5685 # cc exists but doesn't like -o.
5686 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5690 else
5691 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5693 rm -f core conftest*
5696 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698 $as_echo "yes" >&6; }
5699 else
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5703 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5707 # FIXME: we rely on the cache variable name because
5708 # there is no other way.
5709 set dummy $CC
5710 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5711 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5712 if test "$am_t" != yes; then
5713 # Losing compiler, so override with the script.
5714 # FIXME: It is wrong to rewrite CC.
5715 # But if we don't then we get into trouble of one sort or another.
5716 # A longer-term fix would be to have automake use am__CC in this case,
5717 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5718 CC="$am_aux_dir/compile $CC"
5723 # Initialize gnulib right after verifying that the C compiler works.
5725 ac_ext=c
5726 ac_cpp='$CPP $CPPFLAGS'
5727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5731 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5732 # On Suns, sometimes $CPP names a directory.
5733 if test -n "$CPP" && test -d "$CPP"; then
5734 CPP=
5736 if test -z "$CPP"; then
5737 if test "${ac_cv_prog_CPP+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 # Double quotes because CPP needs to be expanded
5741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5743 ac_preproc_ok=false
5744 for ac_c_preproc_warn_flag in '' yes
5746 # Use a header file that comes with gcc, so configuring glibc
5747 # with a fresh cross-compiler works.
5748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5749 # <limits.h> exists even on freestanding compilers.
5750 # On the NeXT, cc -E runs the code through the compiler's parser,
5751 # not just through cpp. "Syntax error" is here to catch this case.
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754 #ifdef __STDC__
5755 # include <limits.h>
5756 #else
5757 # include <assert.h>
5758 #endif
5759 Syntax error
5760 _ACEOF
5761 if ac_fn_c_try_cpp "$LINENO"; then :
5763 else
5764 # Broken: fails on valid input.
5765 continue
5767 rm -f conftest.err conftest.$ac_ext
5769 # OK, works on sane cases. Now check whether nonexistent headers
5770 # can be detected and how.
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <ac_nonexistent.h>
5774 _ACEOF
5775 if ac_fn_c_try_cpp "$LINENO"; then :
5776 # Broken: success on invalid input.
5777 continue
5778 else
5779 # Passes both tests.
5780 ac_preproc_ok=:
5781 break
5783 rm -f conftest.err conftest.$ac_ext
5785 done
5786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787 rm -f conftest.err conftest.$ac_ext
5788 if $ac_preproc_ok; then :
5789 break
5792 done
5793 ac_cv_prog_CPP=$CPP
5796 CPP=$ac_cv_prog_CPP
5797 else
5798 ac_cv_prog_CPP=$CPP
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5801 $as_echo "$CPP" >&6; }
5802 ac_preproc_ok=false
5803 for ac_c_preproc_warn_flag in '' yes
5805 # Use a header file that comes with gcc, so configuring glibc
5806 # with a fresh cross-compiler works.
5807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5808 # <limits.h> exists even on freestanding compilers.
5809 # On the NeXT, cc -E runs the code through the compiler's parser,
5810 # not just through cpp. "Syntax error" is here to catch this case.
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 #ifdef __STDC__
5814 # include <limits.h>
5815 #else
5816 # include <assert.h>
5817 #endif
5818 Syntax error
5819 _ACEOF
5820 if ac_fn_c_try_cpp "$LINENO"; then :
5822 else
5823 # Broken: fails on valid input.
5824 continue
5826 rm -f conftest.err conftest.$ac_ext
5828 # OK, works on sane cases. Now check whether nonexistent headers
5829 # can be detected and how.
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #include <ac_nonexistent.h>
5833 _ACEOF
5834 if ac_fn_c_try_cpp "$LINENO"; then :
5835 # Broken: success on invalid input.
5836 continue
5837 else
5838 # Passes both tests.
5839 ac_preproc_ok=:
5840 break
5842 rm -f conftest.err conftest.$ac_ext
5844 done
5845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5846 rm -f conftest.err conftest.$ac_ext
5847 if $ac_preproc_ok; then :
5849 else
5850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5853 See \`config.log' for more details." "$LINENO" 5; }
5856 ac_ext=c
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5864 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5865 if test "${ac_cv_path_GREP+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 if test -z "$GREP"; then
5869 ac_path_GREP_found=false
5870 # Loop through the user's path and test for each of PROGNAME-LIST
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_prog in grep ggrep; do
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5879 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5880 # Check for GNU ac_path_GREP and select it if it is found.
5881 # Check for GNU $ac_path_GREP
5882 case `"$ac_path_GREP" --version 2>&1` in
5883 *GNU*)
5884 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5886 ac_count=0
5887 $as_echo_n 0123456789 >"conftest.in"
5888 while :
5890 cat "conftest.in" "conftest.in" >"conftest.tmp"
5891 mv "conftest.tmp" "conftest.in"
5892 cp "conftest.in" "conftest.nl"
5893 $as_echo 'GREP' >> "conftest.nl"
5894 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5896 as_fn_arith $ac_count + 1 && ac_count=$as_val
5897 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5898 # Best one so far, save it but keep looking for a better one
5899 ac_cv_path_GREP="$ac_path_GREP"
5900 ac_path_GREP_max=$ac_count
5902 # 10*(2^10) chars as input seems more than enough
5903 test $ac_count -gt 10 && break
5904 done
5905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5906 esac
5908 $ac_path_GREP_found && break 3
5909 done
5910 done
5911 done
5912 IFS=$as_save_IFS
5913 if test -z "$ac_cv_path_GREP"; then
5914 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5916 else
5917 ac_cv_path_GREP=$GREP
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5922 $as_echo "$ac_cv_path_GREP" >&6; }
5923 GREP="$ac_cv_path_GREP"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5927 $as_echo_n "checking for egrep... " >&6; }
5928 if test "${ac_cv_path_EGREP+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5932 then ac_cv_path_EGREP="$GREP -E"
5933 else
5934 if test -z "$EGREP"; then
5935 ac_path_EGREP_found=false
5936 # Loop through the user's path and test for each of PROGNAME-LIST
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_prog in egrep; do
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5945 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5946 # Check for GNU ac_path_EGREP and select it if it is found.
5947 # Check for GNU $ac_path_EGREP
5948 case `"$ac_path_EGREP" --version 2>&1` in
5949 *GNU*)
5950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5952 ac_count=0
5953 $as_echo_n 0123456789 >"conftest.in"
5954 while :
5956 cat "conftest.in" "conftest.in" >"conftest.tmp"
5957 mv "conftest.tmp" "conftest.in"
5958 cp "conftest.in" "conftest.nl"
5959 $as_echo 'EGREP' >> "conftest.nl"
5960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5962 as_fn_arith $ac_count + 1 && ac_count=$as_val
5963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5964 # Best one so far, save it but keep looking for a better one
5965 ac_cv_path_EGREP="$ac_path_EGREP"
5966 ac_path_EGREP_max=$ac_count
5968 # 10*(2^10) chars as input seems more than enough
5969 test $ac_count -gt 10 && break
5970 done
5971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5972 esac
5974 $ac_path_EGREP_found && break 3
5975 done
5976 done
5977 done
5978 IFS=$as_save_IFS
5979 if test -z "$ac_cv_path_EGREP"; then
5980 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5982 else
5983 ac_cv_path_EGREP=$EGREP
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5989 $as_echo "$ac_cv_path_EGREP" >&6; }
5990 EGREP="$ac_cv_path_EGREP"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5996 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5997 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6004 #ifdef __ACK__
6005 Amsterdam
6006 #endif
6008 _ACEOF
6009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6011 gl_cv_c_amsterdam_compiler=yes
6012 else
6013 gl_cv_c_amsterdam_compiler=no
6015 rm -f conftest*
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6020 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6021 if test -z "$AR"; then
6022 if test $gl_cv_c_amsterdam_compiler = yes; then
6023 AR='cc -c.a'
6024 if test -z "$ARFLAGS"; then
6025 ARFLAGS='-o'
6027 else
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}ar; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_AR+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$AR"; then
6037 ac_cv_prog_AR="$AR" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_AR="${ac_tool_prefix}ar"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6050 done
6051 done
6052 IFS=$as_save_IFS
6056 AR=$ac_cv_prog_AR
6057 if test -n "$AR"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6059 $as_echo "$AR" >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6067 if test -z "$ac_cv_prog_AR"; then
6068 ac_ct_AR=$AR
6069 # Extract the first word of "ar", so it can be a program name with args.
6070 set dummy ar; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -n "$ac_ct_AR"; then
6077 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_ac_ct_AR="ar"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6090 done
6091 done
6092 IFS=$as_save_IFS
6096 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6097 if test -n "$ac_ct_AR"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6099 $as_echo "$ac_ct_AR" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6105 if test "x$ac_ct_AR" = x; then
6106 AR="ar"
6107 else
6108 case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6113 esac
6114 AR=$ac_ct_AR
6116 else
6117 AR="$ac_cv_prog_AR"
6120 if test -z "$ARFLAGS"; then
6121 ARFLAGS='cru'
6124 else
6125 if test -z "$ARFLAGS"; then
6126 ARFLAGS='cru'
6131 if test -z "$RANLIB"; then
6132 if test $gl_cv_c_amsterdam_compiler = yes; then
6133 RANLIB=':'
6134 else
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 if test -n "$RANLIB"; then
6144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6157 done
6158 done
6159 IFS=$as_save_IFS
6163 RANLIB=$ac_cv_prog_RANLIB
6164 if test -n "$RANLIB"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6166 $as_echo "$RANLIB" >&6; }
6167 else
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6174 if test -z "$ac_cv_prog_RANLIB"; then
6175 ac_ct_RANLIB=$RANLIB
6176 # Extract the first word of "ranlib", so it can be a program name with args.
6177 set dummy ranlib; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 if test -n "$ac_ct_RANLIB"; then
6184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_RANLIB="ranlib"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6197 done
6198 done
6199 IFS=$as_save_IFS
6203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6204 if test -n "$ac_ct_RANLIB"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6206 $as_echo "$ac_ct_RANLIB" >&6; }
6207 else
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6212 if test "x$ac_ct_RANLIB" = x; then
6213 RANLIB=":"
6214 else
6215 case $cross_compiling:$ac_tool_warned in
6216 yes:)
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219 ac_tool_warned=yes ;;
6220 esac
6221 RANLIB=$ac_ct_RANLIB
6223 else
6224 RANLIB="$ac_cv_prog_RANLIB"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6232 $as_echo_n "checking for ANSI C header files... " >&6; }
6233 if test "${ac_cv_header_stdc+set}" = set; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238 #include <stdlib.h>
6239 #include <stdarg.h>
6240 #include <string.h>
6241 #include <float.h>
6244 main ()
6248 return 0;
6250 _ACEOF
6251 if ac_fn_c_try_compile "$LINENO"; then :
6252 ac_cv_header_stdc=yes
6253 else
6254 ac_cv_header_stdc=no
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 if test $ac_cv_header_stdc = yes; then
6259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <string.h>
6264 _ACEOF
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 $EGREP "memchr" >/dev/null 2>&1; then :
6268 else
6269 ac_cv_header_stdc=no
6271 rm -f conftest*
6275 if test $ac_cv_header_stdc = yes; then
6276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279 #include <stdlib.h>
6281 _ACEOF
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "free" >/dev/null 2>&1; then :
6285 else
6286 ac_cv_header_stdc=no
6288 rm -f conftest*
6292 if test $ac_cv_header_stdc = yes; then
6293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294 if test "$cross_compiling" = yes; then :
6296 else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 #include <ctype.h>
6300 #include <stdlib.h>
6301 #if ((' ' & 0x0FF) == 0x020)
6302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6304 #else
6305 # define ISLOWER(c) \
6306 (('a' <= (c) && (c) <= 'i') \
6307 || ('j' <= (c) && (c) <= 'r') \
6308 || ('s' <= (c) && (c) <= 'z'))
6309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6310 #endif
6312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6314 main ()
6316 int i;
6317 for (i = 0; i < 256; i++)
6318 if (XOR (islower (i), ISLOWER (i))
6319 || toupper (i) != TOUPPER (i))
6320 return 2;
6321 return 0;
6323 _ACEOF
6324 if ac_fn_c_try_run "$LINENO"; then :
6326 else
6327 ac_cv_header_stdc=no
6329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6330 conftest.$ac_objext conftest.beam conftest.$ac_ext
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6336 $as_echo "$ac_cv_header_stdc" >&6; }
6337 if test $ac_cv_header_stdc = yes; then
6339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6345 inttypes.h stdint.h unistd.h
6346 do :
6347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6350 eval as_val=\$$as_ac_Header
6351 if test "x$as_val" = x""yes; then :
6352 cat >>confdefs.h <<_ACEOF
6353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6354 _ACEOF
6358 done
6364 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6365 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6366 MINIX=yes
6367 else
6368 MINIX=
6372 if test "$MINIX" = yes; then
6374 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6377 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6380 $as_echo "#define _MINIX 1" >>confdefs.h
6384 case "$host_os" in
6385 hpux*)
6387 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6390 esac
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6394 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6395 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6401 # define __EXTENSIONS__ 1
6402 $ac_includes_default
6404 main ()
6408 return 0;
6410 _ACEOF
6411 if ac_fn_c_try_compile "$LINENO"; then :
6412 ac_cv_safe_to_define___extensions__=yes
6413 else
6414 ac_cv_safe_to_define___extensions__=no
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6419 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6420 test $ac_cv_safe_to_define___extensions__ = yes &&
6421 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6423 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6425 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6427 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6429 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6431 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6440 # Check whether --enable-largefile was given.
6441 if test "${enable_largefile+set}" = set; then :
6442 enableval=$enable_largefile;
6445 if test "$enable_largefile" != no; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6448 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6449 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 ac_cv_sys_largefile_CC=no
6453 if test "$GCC" != yes; then
6454 ac_save_CC=$CC
6455 while :; do
6456 # IRIX 6.2 and later do not support large files by default,
6457 # so use the C compiler's -n32 option if that helps.
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #include <sys/types.h>
6461 /* Check that off_t can represent 2**63 - 1 correctly.
6462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6463 since some C++ compilers masquerading as C compilers
6464 incorrectly reject 9223372036854775807. */
6465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6467 && LARGE_OFF_T % 2147483647 == 1)
6468 ? 1 : -1];
6470 main ()
6474 return 0;
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 break
6480 rm -f core conftest.err conftest.$ac_objext
6481 CC="$CC -n32"
6482 if ac_fn_c_try_compile "$LINENO"; then :
6483 ac_cv_sys_largefile_CC=' -n32'; break
6485 rm -f core conftest.err conftest.$ac_objext
6486 break
6487 done
6488 CC=$ac_save_CC
6489 rm -f conftest.$ac_ext
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6493 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6494 if test "$ac_cv_sys_largefile_CC" != no; then
6495 CC=$CC$ac_cv_sys_largefile_CC
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6499 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6500 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 while :; do
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506 #include <sys/types.h>
6507 /* Check that off_t can represent 2**63 - 1 correctly.
6508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6509 since some C++ compilers masquerading as C compilers
6510 incorrectly reject 9223372036854775807. */
6511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6513 && LARGE_OFF_T % 2147483647 == 1)
6514 ? 1 : -1];
6516 main ()
6520 return 0;
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524 ac_cv_sys_file_offset_bits=no; break
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 #define _FILE_OFFSET_BITS 64
6530 #include <sys/types.h>
6531 /* Check that off_t can represent 2**63 - 1 correctly.
6532 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6533 since some C++ compilers masquerading as C compilers
6534 incorrectly reject 9223372036854775807. */
6535 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6537 && LARGE_OFF_T % 2147483647 == 1)
6538 ? 1 : -1];
6540 main ()
6544 return 0;
6546 _ACEOF
6547 if ac_fn_c_try_compile "$LINENO"; then :
6548 ac_cv_sys_file_offset_bits=64; break
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 ac_cv_sys_file_offset_bits=unknown
6552 break
6553 done
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6556 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6557 case $ac_cv_sys_file_offset_bits in #(
6558 no | unknown) ;;
6560 cat >>confdefs.h <<_ACEOF
6561 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6562 _ACEOF
6564 esac
6565 rm -rf conftest*
6566 if test $ac_cv_sys_file_offset_bits = unknown; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6568 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6569 if test "${ac_cv_sys_large_files+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 while :; do
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <sys/types.h>
6576 /* Check that off_t can represent 2**63 - 1 correctly.
6577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6578 since some C++ compilers masquerading as C compilers
6579 incorrectly reject 9223372036854775807. */
6580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6582 && LARGE_OFF_T % 2147483647 == 1)
6583 ? 1 : -1];
6585 main ()
6589 return 0;
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"; then :
6593 ac_cv_sys_large_files=no; break
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #define _LARGE_FILES 1
6599 #include <sys/types.h>
6600 /* Check that off_t can represent 2**63 - 1 correctly.
6601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6602 since some C++ compilers masquerading as C compilers
6603 incorrectly reject 9223372036854775807. */
6604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6606 && LARGE_OFF_T % 2147483647 == 1)
6607 ? 1 : -1];
6609 main ()
6613 return 0;
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 ac_cv_sys_large_files=1; break
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 ac_cv_sys_large_files=unknown
6621 break
6622 done
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6625 $as_echo "$ac_cv_sys_large_files" >&6; }
6626 case $ac_cv_sys_large_files in #(
6627 no | unknown) ;;
6629 cat >>confdefs.h <<_ACEOF
6630 #define _LARGE_FILES $ac_cv_sys_large_files
6631 _ACEOF
6633 esac
6634 rm -rf conftest*
6640 case $ac_cv_prog_cc_stdc in #(
6641 no) :
6642 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6643 *) :
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6645 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6646 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 ac_cv_prog_cc_c99=no
6650 ac_save_CC=$CC
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 #include <stdarg.h>
6654 #include <stdbool.h>
6655 #include <stdlib.h>
6656 #include <wchar.h>
6657 #include <stdio.h>
6659 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6660 #define debug(...) fprintf (stderr, __VA_ARGS__)
6661 #define showlist(...) puts (#__VA_ARGS__)
6662 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6663 static void
6664 test_varargs_macros (void)
6666 int x = 1234;
6667 int y = 5678;
6668 debug ("Flag");
6669 debug ("X = %d\n", x);
6670 showlist (The first, second, and third items.);
6671 report (x>y, "x is %d but y is %d", x, y);
6674 // Check long long types.
6675 #define BIG64 18446744073709551615ull
6676 #define BIG32 4294967295ul
6677 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6678 #if !BIG_OK
6679 your preprocessor is broken;
6680 #endif
6681 #if BIG_OK
6682 #else
6683 your preprocessor is broken;
6684 #endif
6685 static long long int bignum = -9223372036854775807LL;
6686 static unsigned long long int ubignum = BIG64;
6688 struct incomplete_array
6690 int datasize;
6691 double data[];
6694 struct named_init {
6695 int number;
6696 const wchar_t *name;
6697 double average;
6700 typedef const char *ccp;
6702 static inline int
6703 test_restrict (ccp restrict text)
6705 // See if C++-style comments work.
6706 // Iterate through items via the restricted pointer.
6707 // Also check for declarations in for loops.
6708 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6709 continue;
6710 return 0;
6713 // Check varargs and va_copy.
6714 static void
6715 test_varargs (const char *format, ...)
6717 va_list args;
6718 va_start (args, format);
6719 va_list args_copy;
6720 va_copy (args_copy, args);
6722 const char *str;
6723 int number;
6724 float fnumber;
6726 while (*format)
6728 switch (*format++)
6730 case 's': // string
6731 str = va_arg (args_copy, const char *);
6732 break;
6733 case 'd': // int
6734 number = va_arg (args_copy, int);
6735 break;
6736 case 'f': // float
6737 fnumber = va_arg (args_copy, double);
6738 break;
6739 default:
6740 break;
6743 va_end (args_copy);
6744 va_end (args);
6748 main ()
6751 // Check bool.
6752 _Bool success = false;
6754 // Check restrict.
6755 if (test_restrict ("String literal") == 0)
6756 success = true;
6757 char *restrict newvar = "Another string";
6759 // Check varargs.
6760 test_varargs ("s, d' f .", "string", 65, 34.234);
6761 test_varargs_macros ();
6763 // Check flexible array members.
6764 struct incomplete_array *ia =
6765 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6766 ia->datasize = 10;
6767 for (int i = 0; i < ia->datasize; ++i)
6768 ia->data[i] = i * 1.234;
6770 // Check named initializers.
6771 struct named_init ni = {
6772 .number = 34,
6773 .name = L"Test wide string",
6774 .average = 543.34343,
6777 ni.number = 58;
6779 int dynamic_array[ni.number];
6780 dynamic_array[ni.number - 1] = 543;
6782 // work around unused variable warnings
6783 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6784 || dynamic_array[ni.number - 1] != 543);
6787 return 0;
6789 _ACEOF
6790 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6792 CC="$ac_save_CC $ac_arg"
6793 if ac_fn_c_try_compile "$LINENO"; then :
6794 ac_cv_prog_cc_c99=$ac_arg
6796 rm -f core conftest.err conftest.$ac_objext
6797 test "x$ac_cv_prog_cc_c99" != "xno" && break
6798 done
6799 rm -f conftest.$ac_ext
6800 CC=$ac_save_CC
6803 # AC_CACHE_VAL
6804 case "x$ac_cv_prog_cc_c99" in
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6807 $as_echo "none needed" >&6; } ;;
6808 xno)
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6810 $as_echo "unsupported" >&6; } ;;
6812 CC="$CC $ac_cv_prog_cc_c99"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6814 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6815 esac
6816 if test "x$ac_cv_prog_cc_c99" != xno; then :
6817 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6820 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6821 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 ac_cv_prog_cc_c89=no
6825 ac_save_CC=$CC
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #include <stdarg.h>
6829 #include <stdio.h>
6830 #include <sys/types.h>
6831 #include <sys/stat.h>
6832 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6833 struct buf { int x; };
6834 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6835 static char *e (p, i)
6836 char **p;
6837 int i;
6839 return p[i];
6841 static char *f (char * (*g) (char **, int), char **p, ...)
6843 char *s;
6844 va_list v;
6845 va_start (v,p);
6846 s = g (p, va_arg (v,int));
6847 va_end (v);
6848 return s;
6851 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6852 function prototypes and stuff, but not '\xHH' hex character constants.
6853 These don't provoke an error unfortunately, instead are silently treated
6854 as 'x'. The following induces an error, until -std is added to get
6855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6856 array size at least. It's necessary to write '\x00'==0 to get something
6857 that's true only with -std. */
6858 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6860 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6861 inside strings and character constants. */
6862 #define FOO(x) 'x'
6863 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6865 int test (int i, double x);
6866 struct s1 {int (*f) (int a);};
6867 struct s2 {int (*f) (double a);};
6868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6869 int argc;
6870 char **argv;
6872 main ()
6874 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6876 return 0;
6878 _ACEOF
6879 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6882 CC="$ac_save_CC $ac_arg"
6883 if ac_fn_c_try_compile "$LINENO"; then :
6884 ac_cv_prog_cc_c89=$ac_arg
6886 rm -f core conftest.err conftest.$ac_objext
6887 test "x$ac_cv_prog_cc_c89" != "xno" && break
6888 done
6889 rm -f conftest.$ac_ext
6890 CC=$ac_save_CC
6893 # AC_CACHE_VAL
6894 case "x$ac_cv_prog_cc_c89" in
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6897 $as_echo "none needed" >&6; } ;;
6898 xno)
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6900 $as_echo "unsupported" >&6; } ;;
6902 CC="$CC $ac_cv_prog_cc_c89"
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6904 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6905 esac
6906 if test "x$ac_cv_prog_cc_c89" != xno; then :
6907 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6908 else
6909 ac_cv_prog_cc_stdc=no
6914 esac
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6916 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6917 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6921 case $ac_cv_prog_cc_stdc in #(
6922 no) :
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6924 $as_echo "unsupported" >&6; } ;; #(
6925 '') :
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6927 $as_echo "none needed" >&6; } ;; #(
6928 *) :
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6930 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6931 esac
6935 # Code from module alloca-opt:
6936 # Code from module allocator:
6937 # Code from module careadlinkat:
6938 # Code from module crypto/md5:
6939 # Code from module crypto/sha1:
6940 # Code from module crypto/sha256:
6941 # Code from module crypto/sha512:
6942 # Code from module dosname:
6943 # Code from module dtoastr:
6944 # Code from module dup2:
6945 # Code from module extensions:
6947 # Code from module filemode:
6948 # Code from module getloadavg:
6949 # Code from module getopt-gnu:
6950 # Code from module getopt-posix:
6951 # Code from module gettext-h:
6952 # Code from module ignore-value:
6953 # Code from module include_next:
6954 # Code from module intprops:
6955 # Code from module inttypes-incomplete:
6956 # Code from module largefile:
6958 # Code from module lstat:
6959 # Code from module mktime:
6960 # Code from module multiarch:
6961 # Code from module nocrash:
6962 # Code from module pthread_sigmask:
6963 # Code from module readlink:
6964 # Code from module signal-h:
6965 # Code from module sigprocmask:
6966 # Code from module snippet/_Noreturn:
6967 # Code from module snippet/arg-nonnull:
6968 # Code from module snippet/c++defs:
6969 # Code from module snippet/warn-on-use:
6970 # Code from module socklen:
6971 # Code from module ssize_t:
6972 # Code from module stat:
6973 # Code from module stdarg:
6977 # Code from module stdbool:
6978 # Code from module stddef:
6979 # Code from module stdint:
6980 # Code from module stdio:
6981 # Code from module stdlib:
6982 # Code from module strftime:
6983 # Code from module strtoimax:
6984 # Code from module strtoll:
6985 # Code from module strtoull:
6986 # Code from module strtoumax:
6987 # Code from module symlink:
6988 # Code from module sys_stat:
6989 # Code from module time:
6990 # Code from module time_r:
6991 # Code from module u64:
6992 # Code from module unistd:
6993 # Code from module verify:
6996 # On Suns, sometimes $CPP names a directory.
6997 if test -n "$CPP" && test -d "$CPP"; then
6998 CPP=
7001 ## If not using gcc, and on Solaris, and no CPP specified, see if
7002 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7003 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7004 test x"$CPP" = x; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7006 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7007 if test "${emacs_cv_sunpro_c+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7014 main ()
7016 #ifndef __SUNPRO_C
7017 fail;
7018 #endif
7021 return 0;
7023 _ACEOF
7024 if ac_fn_c_try_link "$LINENO"; then :
7025 emacs_cv_sunpro_c=yes
7026 else
7027 emacs_cv_sunpro_c=no
7029 rm -f core conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7034 $as_echo "$emacs_cv_sunpro_c" >&6; }
7036 if test x"$emacs_cv_sunpro_c" = xyes; then
7037 NON_GNU_CPP="$CC -E -Xs"
7041 #### Some systems specify a CPP to use unless we are using GCC.
7042 #### Now that we know whether we are using GCC, we can decide whether
7043 #### to use that one.
7044 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7045 then
7046 CPP="$NON_GNU_CPP"
7049 #### Some systems specify a CC to use unless we are using GCC.
7050 #### Now that we know whether we are using GCC, we can decide whether
7051 #### to use that one.
7052 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7053 test x$cc_specified != xyes
7054 then
7055 CC="$NON_GNU_CC"
7058 if test x$GCC = xyes; then
7059 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7060 else
7061 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7064 ### Use -Wdeclaration-after-statement if the compiler supports it
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7066 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7067 SAVE_CFLAGS="$CFLAGS"
7068 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7073 main ()
7077 return 0;
7079 _ACEOF
7080 if ac_fn_c_try_compile "$LINENO"; then :
7081 has_option=yes
7082 else
7083 has_option=no
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 if test $has_option = yes; then
7087 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7090 $as_echo "$has_option" >&6; }
7091 CFLAGS="$SAVE_CFLAGS"
7092 unset has_option
7093 unset SAVE_CFLAGS
7095 ### Use -Wold-style-definition if the compiler supports it
7096 # This can be removed when conversion to standard C is finished.
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7098 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7099 SAVE_CFLAGS="$CFLAGS"
7100 CFLAGS="$CFLAGS -Wold-style-definition"
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7105 main ()
7109 return 0;
7111 _ACEOF
7112 if ac_fn_c_try_compile "$LINENO"; then :
7113 has_option=yes
7114 else
7115 has_option=no
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118 if test $has_option = yes; then
7119 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7122 $as_echo "$has_option" >&6; }
7123 CFLAGS="$SAVE_CFLAGS"
7124 unset has_option
7125 unset SAVE_CFLAGS
7127 ### Use -Wimplicit-function-declaration if the compiler supports it
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7129 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7130 SAVE_CFLAGS="$CFLAGS"
7131 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7136 main ()
7140 return 0;
7142 _ACEOF
7143 if ac_fn_c_try_compile "$LINENO"; then :
7144 has_option=yes
7145 else
7146 has_option=no
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 if test $has_option = yes; then
7150 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7153 $as_echo "$has_option" >&6; }
7154 CFLAGS="$SAVE_CFLAGS"
7155 unset has_option
7156 unset SAVE_CFLAGS
7161 #### Some other nice autoconf tests.
7163 ac_ext=c
7164 ac_cpp='$CPP $CPPFLAGS'
7165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7169 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7170 # On Suns, sometimes $CPP names a directory.
7171 if test -n "$CPP" && test -d "$CPP"; then
7172 CPP=
7174 if test -z "$CPP"; then
7175 if test "${ac_cv_prog_CPP+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 # Double quotes because CPP needs to be expanded
7179 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7181 ac_preproc_ok=false
7182 for ac_c_preproc_warn_flag in '' yes
7184 # Use a header file that comes with gcc, so configuring glibc
7185 # with a fresh cross-compiler works.
7186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7187 # <limits.h> exists even on freestanding compilers.
7188 # On the NeXT, cc -E runs the code through the compiler's parser,
7189 # not just through cpp. "Syntax error" is here to catch this case.
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #ifdef __STDC__
7193 # include <limits.h>
7194 #else
7195 # include <assert.h>
7196 #endif
7197 Syntax error
7198 _ACEOF
7199 if ac_fn_c_try_cpp "$LINENO"; then :
7201 else
7202 # Broken: fails on valid input.
7203 continue
7205 rm -f conftest.err conftest.$ac_ext
7207 # OK, works on sane cases. Now check whether nonexistent headers
7208 # can be detected and how.
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 #include <ac_nonexistent.h>
7212 _ACEOF
7213 if ac_fn_c_try_cpp "$LINENO"; then :
7214 # Broken: success on invalid input.
7215 continue
7216 else
7217 # Passes both tests.
7218 ac_preproc_ok=:
7219 break
7221 rm -f conftest.err conftest.$ac_ext
7223 done
7224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7225 rm -f conftest.err conftest.$ac_ext
7226 if $ac_preproc_ok; then :
7227 break
7230 done
7231 ac_cv_prog_CPP=$CPP
7234 CPP=$ac_cv_prog_CPP
7235 else
7236 ac_cv_prog_CPP=$CPP
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7239 $as_echo "$CPP" >&6; }
7240 ac_preproc_ok=false
7241 for ac_c_preproc_warn_flag in '' yes
7243 # Use a header file that comes with gcc, so configuring glibc
7244 # with a fresh cross-compiler works.
7245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7246 # <limits.h> exists even on freestanding compilers.
7247 # On the NeXT, cc -E runs the code through the compiler's parser,
7248 # not just through cpp. "Syntax error" is here to catch this case.
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #ifdef __STDC__
7252 # include <limits.h>
7253 #else
7254 # include <assert.h>
7255 #endif
7256 Syntax error
7257 _ACEOF
7258 if ac_fn_c_try_cpp "$LINENO"; then :
7260 else
7261 # Broken: fails on valid input.
7262 continue
7264 rm -f conftest.err conftest.$ac_ext
7266 # OK, works on sane cases. Now check whether nonexistent headers
7267 # can be detected and how.
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270 #include <ac_nonexistent.h>
7271 _ACEOF
7272 if ac_fn_c_try_cpp "$LINENO"; then :
7273 # Broken: success on invalid input.
7274 continue
7275 else
7276 # Passes both tests.
7277 ac_preproc_ok=:
7278 break
7280 rm -f conftest.err conftest.$ac_ext
7282 done
7283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7284 rm -f conftest.err conftest.$ac_ext
7285 if $ac_preproc_ok; then :
7287 else
7288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7290 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7291 See \`config.log' for more details." "$LINENO" 5; }
7294 ac_ext=c
7295 ac_cpp='$CPP $CPPFLAGS'
7296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301 if test "x$RANLIB" = x; then
7302 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 if test -n "$RANLIB"; then
7311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7324 done
7325 done
7326 IFS=$as_save_IFS
7330 RANLIB=$ac_cv_prog_RANLIB
7331 if test -n "$RANLIB"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7333 $as_echo "$RANLIB" >&6; }
7334 else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7341 if test -z "$ac_cv_prog_RANLIB"; then
7342 ac_ct_RANLIB=$RANLIB
7343 # Extract the first word of "ranlib", so it can be a program name with args.
7344 set dummy ranlib; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 if test -n "$ac_ct_RANLIB"; then
7351 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_prog_ac_ct_RANLIB="ranlib"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7364 done
7365 done
7366 IFS=$as_save_IFS
7370 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7371 if test -n "$ac_ct_RANLIB"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7373 $as_echo "$ac_ct_RANLIB" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7379 if test "x$ac_ct_RANLIB" = x; then
7380 RANLIB=":"
7381 else
7382 case $cross_compiling:$ac_tool_warned in
7383 yes:)
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7386 ac_tool_warned=yes ;;
7387 esac
7388 RANLIB=$ac_ct_RANLIB
7390 else
7391 RANLIB="$ac_cv_prog_RANLIB"
7396 ## Although we're running on an amd64 kernel, we're actually compiling for
7397 ## the x86 architecture. The user should probably have provided an
7398 ## explicit --build to `configure', but if everything else than the kernel
7399 ## is running in i386 mode, we can help them out.
7400 if test "$machine" = "amdx86-64"; then
7401 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7402 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7406 if test "$ac_cv_have_decl_i386" = "yes"; then
7407 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7408 machine=intel386
7409 machfile="m/${machine}.h"
7413 # Extract the first word of "install-info", so it can be a program name with args.
7414 set dummy install-info; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 case $INSTALL_INFO in
7421 [\\/]* | ?:[\\/]*)
7422 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7436 done
7437 done
7438 IFS=$as_save_IFS
7441 esac
7443 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7444 if test -n "$INSTALL_INFO"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7446 $as_echo "$INSTALL_INFO" >&6; }
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7453 # Extract the first word of "install-info", so it can be a program name with args.
7454 set dummy install-info; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 case $INSTALL_INFO in
7461 [\\/]* | ?:[\\/]*)
7462 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in /usr/sbin
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7476 done
7477 done
7478 IFS=$as_save_IFS
7481 esac
7483 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7484 if test -n "$INSTALL_INFO"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7486 $as_echo "$INSTALL_INFO" >&6; }
7487 else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7493 # Extract the first word of "install-info", so it can be a program name with args.
7494 set dummy install-info; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 case $INSTALL_INFO in
7501 [\\/]* | ?:[\\/]*)
7502 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in /sbin
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7516 done
7517 done
7518 IFS=$as_save_IFS
7520 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7522 esac
7524 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7525 if test -n "$INSTALL_INFO"; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7527 $as_echo "$INSTALL_INFO" >&6; }
7528 else
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530 $as_echo "no" >&6; }
7534 # Extract the first word of "gzip", so it can be a program name with args.
7535 set dummy gzip; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 case $GZIP_PROG in
7542 [\\/]* | ?:[\\/]*)
7543 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7557 done
7558 done
7559 IFS=$as_save_IFS
7562 esac
7564 GZIP_PROG=$ac_cv_path_GZIP_PROG
7565 if test -n "$GZIP_PROG"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7567 $as_echo "$GZIP_PROG" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7576 ## Need makeinfo >= 4.6 (?) to build the manuals.
7577 # Extract the first word of "makeinfo", so it can be a program name with args.
7578 set dummy makeinfo; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 case $MAKEINFO in
7585 [\\/]* | ?:[\\/]*)
7586 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7600 done
7601 done
7602 IFS=$as_save_IFS
7604 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7606 esac
7608 MAKEINFO=$ac_cv_path_MAKEINFO
7609 if test -n "$MAKEINFO"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7611 $as_echo "$MAKEINFO" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7618 if test "$MAKEINFO" != "no" && \
7619 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
7620 MAKEINFO=no
7623 ## Makeinfo is unusual. For a released Emacs, the manuals are
7624 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7625 ## therefore in the category of "special tools" not normally required, which
7626 ## configure does not have to check for (eg autoconf itself).
7627 ## In a Bazaar checkout on the other hand, the manuals are not included.
7628 ## So makeinfo is a requirement to build from Bazaar, and configure
7629 ## should test for it as it does for any other build requirement.
7630 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7631 ## with pre-built manuals, from a Bazaar checkout.
7632 HAVE_MAKEINFO=yes
7634 if test "$MAKEINFO" = "no"; then
7635 MAKEINFO=makeinfo
7636 if test "x${with_makeinfo}" = "xno"; then
7637 HAVE_MAKEINFO=no
7638 elif test ! -e $srcdir/info/emacs; then
7639 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7640 source tree does not seem to have pre-built manuals in the \`info' directory.
7641 Either install a suitable version of makeinfo, or re-run configure
7642 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7648 if test x$GCC = xyes; then
7649 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7650 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7651 else
7652 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7653 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7657 late_LDFLAGS=$LDFLAGS
7658 if test x$GCC = xyes; then
7659 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7660 else
7661 LDFLAGS="$LDFLAGS -znocombreloc"
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7665 $as_echo_n "checking for -znocombreloc... " >&6; }
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7670 main ()
7674 return 0;
7676 _ACEOF
7677 if ac_fn_c_try_link "$LINENO"; then :
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7679 $as_echo "yes" >&6; }
7680 else
7681 LDFLAGS=$late_LDFLAGS
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7685 rm -f core conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7689 # The value of CPP is a quoted variable reference, so we need to do this
7690 # to get its actual value...
7691 CPP=`eval "echo $CPP"`
7694 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7695 case "$opsys" in
7696 your-opsys-here) CANNOT_DUMP=yes ;;
7697 esac
7699 test "$CANNOT_DUMP" = "yes" && \
7701 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7707 UNEXEC_OBJ=unexelf.o
7708 case "$opsys" in
7709 # MSDOS uses unexcoff.o
7710 # MSWindows uses unexw32.o
7711 aix4-2)
7712 UNEXEC_OBJ=unexaix.o
7714 cygwin)
7715 UNEXEC_OBJ=unexcw.o
7717 darwin)
7718 UNEXEC_OBJ=unexmacosx.o
7720 hpux10-20 | hpux11)
7721 UNEXEC_OBJ=unexhp9k800.o
7723 sol2-10)
7724 # Use the Solaris dldump() function, called from unexsol.c, to dump
7725 # emacs, instead of the generic ELF dump code found in unexelf.c.
7726 # The resulting binary has a complete symbol table, and is better
7727 # for debugging and other observability tools (debuggers, pstack, etc).
7729 # If you encounter a problem using dldump(), please consider sending
7730 # a message to the OpenSolaris tools-linking mailing list:
7731 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7733 # It is likely that dldump() works with older Solaris too, but this has
7734 # not been tested, so for now this change is for Solaris 10 or newer.
7735 UNEXEC_OBJ=unexsol.o
7737 esac
7739 LD_SWITCH_SYSTEM=
7740 case "$opsys" in
7741 freebsd)
7742 ## Let `ld' find image libs and similar things in /usr/local/lib.
7743 ## The system compiler, GCC, has apparently been modified to not
7744 ## look there, contrary to what a stock GCC would do.
7745 LD_SWITCH_SYSTEM=-L/usr/local/lib
7748 gnu-linux)
7749 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7750 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7753 netbsd)
7754 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7757 openbsd)
7758 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7759 ## otherwise Emacs dumps core on elf systems.
7760 LD_SWITCH_SYSTEM="-Z"
7762 esac
7765 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7767 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7768 ## which has not been defined yet. When this was handled with cpp,
7769 ## it was expanded to null when configure sourced the s/*.h file.
7770 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7771 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7772 ## (or somesuch), but because it is supposed to go at the _front_
7773 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7774 ## Compare with the gnu-linux case below, which added to the end
7775 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7776 ## LD_SWITCH_SYSTEM_TEMACS.
7777 case "$opsys" in
7778 netbsd|openbsd)
7779 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7780 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7781 esac
7784 C_SWITCH_MACHINE=
7785 if test "$machine" = "alpha"; then
7786 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7787 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7791 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7792 ## With ELF, make sure that all common symbols get allocated to in the
7793 ## data section. Otherwise, the dump of temacs may miss variables in
7794 ## the shared library that have been initialized. For example, with
7795 ## GNU libc, __malloc_initialized would normally be resolved to the
7796 ## shared library's .bss section, which is fatal.
7797 if test "x$GCC" = "xyes"; then
7798 C_SWITCH_MACHINE="-fno-common"
7799 else
7800 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7802 else
7803 UNEXEC_OBJ=unexalpha.o
7810 C_SWITCH_SYSTEM=
7811 ## Some programs in src produce warnings saying certain subprograms
7812 ## are too complex and need a MAXMEM value greater than 2000 for
7813 ## additional optimization. --nils@exp-math.uni-essen.de
7814 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7815 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7816 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7817 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7821 LIBS_SYSTEM=
7822 case "$opsys" in
7823 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7824 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7826 freebsd) LIBS_SYSTEM="-lutil" ;;
7828 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7830 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7832 ## Motif needs -lgen.
7833 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7834 esac
7838 ### Make sure subsequent tests use flags consistent with the build flags.
7840 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7841 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7842 else
7843 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7846 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7848 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7851 # Check whether --enable-largefile was given.
7852 if test "${enable_largefile+set}" = set; then :
7853 enableval=$enable_largefile;
7856 if test "$enable_largefile" != no; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7859 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7860 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 ac_cv_sys_largefile_CC=no
7864 if test "$GCC" != yes; then
7865 ac_save_CC=$CC
7866 while :; do
7867 # IRIX 6.2 and later do not support large files by default,
7868 # so use the C compiler's -n32 option if that helps.
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 #include <sys/types.h>
7872 /* Check that off_t can represent 2**63 - 1 correctly.
7873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7874 since some C++ compilers masquerading as C compilers
7875 incorrectly reject 9223372036854775807. */
7876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7878 && LARGE_OFF_T % 2147483647 == 1)
7879 ? 1 : -1];
7881 main ()
7885 return 0;
7887 _ACEOF
7888 if ac_fn_c_try_compile "$LINENO"; then :
7889 break
7891 rm -f core conftest.err conftest.$ac_objext
7892 CC="$CC -n32"
7893 if ac_fn_c_try_compile "$LINENO"; then :
7894 ac_cv_sys_largefile_CC=' -n32'; break
7896 rm -f core conftest.err conftest.$ac_objext
7897 break
7898 done
7899 CC=$ac_save_CC
7900 rm -f conftest.$ac_ext
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7904 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7905 if test "$ac_cv_sys_largefile_CC" != no; then
7906 CC=$CC$ac_cv_sys_largefile_CC
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7910 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7911 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 while :; do
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7917 #include <sys/types.h>
7918 /* Check that off_t can represent 2**63 - 1 correctly.
7919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7920 since some C++ compilers masquerading as C compilers
7921 incorrectly reject 9223372036854775807. */
7922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7924 && LARGE_OFF_T % 2147483647 == 1)
7925 ? 1 : -1];
7927 main ()
7931 return 0;
7933 _ACEOF
7934 if ac_fn_c_try_compile "$LINENO"; then :
7935 ac_cv_sys_file_offset_bits=no; break
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 #define _FILE_OFFSET_BITS 64
7941 #include <sys/types.h>
7942 /* Check that off_t can represent 2**63 - 1 correctly.
7943 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7944 since some C++ compilers masquerading as C compilers
7945 incorrectly reject 9223372036854775807. */
7946 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7947 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7948 && LARGE_OFF_T % 2147483647 == 1)
7949 ? 1 : -1];
7951 main ()
7955 return 0;
7957 _ACEOF
7958 if ac_fn_c_try_compile "$LINENO"; then :
7959 ac_cv_sys_file_offset_bits=64; break
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 ac_cv_sys_file_offset_bits=unknown
7963 break
7964 done
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7967 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7968 case $ac_cv_sys_file_offset_bits in #(
7969 no | unknown) ;;
7971 cat >>confdefs.h <<_ACEOF
7972 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7973 _ACEOF
7975 esac
7976 rm -rf conftest*
7977 if test $ac_cv_sys_file_offset_bits = unknown; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7979 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7980 if test "${ac_cv_sys_large_files+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 while :; do
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #include <sys/types.h>
7987 /* Check that off_t can represent 2**63 - 1 correctly.
7988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7989 since some C++ compilers masquerading as C compilers
7990 incorrectly reject 9223372036854775807. */
7991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7993 && LARGE_OFF_T % 2147483647 == 1)
7994 ? 1 : -1];
7996 main ()
8000 return 0;
8002 _ACEOF
8003 if ac_fn_c_try_compile "$LINENO"; then :
8004 ac_cv_sys_large_files=no; break
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 #define _LARGE_FILES 1
8010 #include <sys/types.h>
8011 /* Check that off_t can represent 2**63 - 1 correctly.
8012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8013 since some C++ compilers masquerading as C compilers
8014 incorrectly reject 9223372036854775807. */
8015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8017 && LARGE_OFF_T % 2147483647 == 1)
8018 ? 1 : -1];
8020 main ()
8024 return 0;
8026 _ACEOF
8027 if ac_fn_c_try_compile "$LINENO"; then :
8028 ac_cv_sys_large_files=1; break
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 ac_cv_sys_large_files=unknown
8032 break
8033 done
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8036 $as_echo "$ac_cv_sys_large_files" >&6; }
8037 case $ac_cv_sys_large_files in #(
8038 no | unknown) ;;
8040 cat >>confdefs.h <<_ACEOF
8041 #define _LARGE_FILES $ac_cv_sys_large_files
8042 _ACEOF
8044 esac
8045 rm -rf conftest*
8053 LIB_MATH=-lm
8054 LIB_STANDARD=
8055 START_FILES=
8057 case $opsys in
8058 cygwin )
8059 LIB_MATH=
8060 START_FILES='pre-crt0.o'
8062 darwin )
8063 ## Adding -lm confuses the dynamic linker, so omit it.
8064 LIB_MATH=
8065 START_FILES='pre-crt0.o'
8067 freebsd )
8068 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8069 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8071 gnu-linux | gnu-kfreebsd )
8072 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8073 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8075 hpux10-20 | hpux11 )
8076 LIB_STANDARD=-lc
8077 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8079 netbsd | openbsd )
8080 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8081 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8083 esac
8088 crt_files=
8090 for file in x $LIB_STANDARD $START_FILES; do
8091 case "$file" in
8092 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8093 esac
8094 done
8096 if test "x$crt_files" != x; then
8098 ## If user specified a crt-dir, use that unconditionally.
8099 crt_gcc=no
8101 if test "X$CRT_DIR" = "X"; then
8103 CRT_DIR=/usr/lib # default
8105 case "$canonical" in
8106 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8107 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8108 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8109 ## For anything else (eg /usr/lib32), it is up the user to specify
8110 ## the location (bug#5655).
8111 ## Test for crtn.o, not just the directory, because sometimes the
8112 ## directory exists but does not have the relevant files (bug#1287).
8113 ## FIXME better to test for binary compatibility somehow.
8114 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8117 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8118 esac
8120 case "$opsys" in
8121 hpux10-20) CRT_DIR=/lib ;;
8122 esac
8124 test "x${GCC}" = xyes && crt_gcc=yes
8126 fi # CRT_DIR = ""
8128 crt_missing=
8130 for file in $crt_files; do
8132 ## If we're using gcc, try to determine it automatically by asking
8133 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8134 ## system-dependent default from above.]
8135 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8137 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8138 case "$crt_file" in
8139 */*)
8140 CRT_DIR=`$as_dirname -- "$crt_file" ||
8141 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8142 X"$crt_file" : 'X\(//\)[^/]' \| \
8143 X"$crt_file" : 'X\(//\)$' \| \
8144 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8145 $as_echo X"$crt_file" |
8146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8147 s//\1/
8150 /^X\(\/\/\)[^/].*/{
8151 s//\1/
8154 /^X\(\/\/\)$/{
8155 s//\1/
8158 /^X\(\/\).*/{
8159 s//\1/
8162 s/.*/./; q'`
8164 esac
8167 crt_gcc=no
8169 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8170 done # $crt_files
8172 test "x$crt_missing" = x || \
8173 as_fn_error "Required file(s) not found:$crt_missing
8174 Try using the --with-crt-dir option." "$LINENO" 5
8176 fi # crt_files != ""
8180 case $opsys in
8181 netbsd | openbsd )
8182 if test -f $CRT_DIR/crti.o; then
8184 test -f $CRT_DIR/crtn.o || \
8185 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8187 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8188 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8191 esac
8197 if test "${with_sound}" != "no"; then
8198 # Sound support for GNU/Linux and the free BSDs.
8199 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8200 do :
8201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8202 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8203 eval as_val=\$$as_ac_Header
8204 if test "x$as_val" = x""yes; then :
8205 cat >>confdefs.h <<_ACEOF
8206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8207 _ACEOF
8208 have_sound_header=yes
8211 done
8213 # Emulation library used on NetBSD.
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8215 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8216 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 ac_check_lib_save_LIBS=$LIBS
8220 LIBS="-lossaudio $LIBS"
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8224 /* Override any GCC internal prototype to avoid an error.
8225 Use char because int might match the return type of a GCC
8226 builtin and then its argument prototype would still apply. */
8227 #ifdef __cplusplus
8228 extern "C"
8229 #endif
8230 char _oss_ioctl ();
8232 main ()
8234 return _oss_ioctl ();
8236 return 0;
8238 _ACEOF
8239 if ac_fn_c_try_link "$LINENO"; then :
8240 ac_cv_lib_ossaudio__oss_ioctl=yes
8241 else
8242 ac_cv_lib_ossaudio__oss_ioctl=no
8244 rm -f core conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8246 LIBS=$ac_check_lib_save_LIBS
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8249 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8250 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8251 LIBSOUND=-lossaudio
8252 else
8253 LIBSOUND=
8258 ALSA_REQUIRED=1.0.0
8259 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8261 succeeded=no
8263 # Extract the first word of "pkg-config", so it can be a program name with args.
8264 set dummy pkg-config; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 case $PKG_CONFIG in
8271 [\\/]* | ?:[\\/]*)
8272 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 break 2
8286 done
8287 done
8288 IFS=$as_save_IFS
8290 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8292 esac
8294 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8295 if test -n "$PKG_CONFIG"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8297 $as_echo "$PKG_CONFIG" >&6; }
8298 else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8305 if test "$PKG_CONFIG" = "no" ; then
8306 HAVE_ALSA=no
8307 else
8308 PKG_CONFIG_MIN_VERSION=0.9.0
8309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8311 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8313 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8315 $as_echo "yes" >&6; }
8316 succeeded=yes
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8319 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8320 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8322 $as_echo "$ALSA_CFLAGS" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8325 $as_echo_n "checking ALSA_LIBS... " >&6; }
8326 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8328 $as_echo "$ALSA_LIBS" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8332 ALSA_CFLAGS=""
8333 ALSA_LIBS=""
8334 ## If we have a custom action on failure, don't print errors, but
8335 ## do set a variable so people can do so.
8336 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8342 else
8343 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8344 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8348 if test $succeeded = yes; then
8349 HAVE_ALSA=yes
8350 else
8351 HAVE_ALSA=no
8354 if test $HAVE_ALSA = yes; then
8355 SAVE_CFLAGS="$CFLAGS"
8356 SAVE_LIBS="$LIBS"
8357 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8358 LIBS="$ALSA_LIBS $LIBS"
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8361 #include <asoundlib.h>
8363 main ()
8365 snd_lib_error_set_handler (0);
8367 return 0;
8369 _ACEOF
8370 if ac_fn_c_try_compile "$LINENO"; then :
8371 emacs_alsa_normal=yes
8372 else
8373 emacs_alsa_normal=no
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 if test "$emacs_alsa_normal" != yes; then
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379 #include <alsa/asoundlib.h>
8381 main ()
8383 snd_lib_error_set_handler (0);
8385 return 0;
8387 _ACEOF
8388 if ac_fn_c_try_compile "$LINENO"; then :
8389 emacs_alsa_subdir=yes
8390 else
8391 emacs_alsa_subdir=no
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 if test "$emacs_alsa_subdir" != yes; then
8395 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8397 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8400 CFLAGS="$SAVE_CFLAGS"
8401 LIBS="$SAVE_LIBS"
8402 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8403 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8405 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8409 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8410 case "$opsys" in
8411 gnu-linux|freebsd|netbsd)
8413 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8416 esac
8422 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8423 linux/version.h sys/systeminfo.h \
8424 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8425 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8426 sys/utsname.h pwd.h utmp.h dirent.h util.h
8427 do :
8428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8429 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8430 eval as_val=\$$as_ac_Header
8431 if test "x$as_val" = x""yes; then :
8432 cat >>confdefs.h <<_ACEOF
8433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8434 _ACEOF
8438 done
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8442 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445 #include <sys/personality.h>
8447 main ()
8449 personality (PER_LINUX32)
8451 return 0;
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"; then :
8455 emacs_cv_personality_linux32=yes
8456 else
8457 emacs_cv_personality_linux32=no
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8461 $as_echo "$emacs_cv_personality_linux32" >&6; }
8463 if test $emacs_cv_personality_linux32 = yes; then
8465 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8469 for ac_header in term.h
8470 do :
8471 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8472 if test "x$ac_cv_header_term_h" = x""yes; then :
8473 cat >>confdefs.h <<_ACEOF
8474 #define HAVE_TERM_H 1
8475 _ACEOF
8479 done
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8482 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8483 if test "${ac_cv_header_time+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include <sys/types.h>
8489 #include <sys/time.h>
8490 #include <time.h>
8493 main ()
8495 if ((struct tm *) 0)
8496 return 0;
8498 return 0;
8500 _ACEOF
8501 if ac_fn_c_try_compile "$LINENO"; then :
8502 ac_cv_header_time=yes
8503 else
8504 ac_cv_header_time=no
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8509 $as_echo "$ac_cv_header_time" >&6; }
8510 if test $ac_cv_header_time = yes; then
8512 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8516 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8517 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8518 ac_have_decl=1
8519 else
8520 ac_have_decl=0
8523 cat >>confdefs.h <<_ACEOF
8524 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8525 _ACEOF
8527 if test $ac_cv_have_decl_sys_siglist != yes; then
8528 # For Tru64, at least:
8529 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8530 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8531 ac_have_decl=1
8532 else
8533 ac_have_decl=0
8536 cat >>confdefs.h <<_ACEOF
8537 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8538 _ACEOF
8540 if test $ac_cv_have_decl___sys_siglist = yes; then
8542 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8547 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8548 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 #include <sys/types.h>
8554 #include <sys/wait.h>
8555 #ifndef WEXITSTATUS
8556 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8557 #endif
8558 #ifndef WIFEXITED
8559 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8560 #endif
8563 main ()
8565 int s;
8566 wait (&s);
8567 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8569 return 0;
8571 _ACEOF
8572 if ac_fn_c_try_compile "$LINENO"; then :
8573 ac_cv_header_sys_wait_h=yes
8574 else
8575 ac_cv_header_sys_wait_h=no
8577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8580 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8581 if test $ac_cv_header_sys_wait_h = yes; then
8583 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8589 $as_echo_n "checking for struct utimbuf... " >&6; }
8590 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595 #ifdef TIME_WITH_SYS_TIME
8596 #include <sys/time.h>
8597 #include <time.h>
8598 #else
8599 #ifdef HAVE_SYS_TIME_H
8600 #include <sys/time.h>
8601 #else
8602 #include <time.h>
8603 #endif
8604 #endif
8605 #ifdef HAVE_UTIME_H
8606 #include <utime.h>
8607 #endif
8609 main ()
8611 static struct utimbuf x; x.actime = x.modtime;
8613 return 0;
8615 _ACEOF
8616 if ac_fn_c_try_compile "$LINENO"; then :
8617 emacs_cv_struct_utimbuf=yes
8618 else
8619 emacs_cv_struct_utimbuf=no
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8624 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8625 if test $emacs_cv_struct_utimbuf = yes; then
8627 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8632 $as_echo_n "checking for speed_t... " >&6; }
8633 if test "${emacs_cv_speed_t+set}" = set; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 #include <termios.h>
8640 main ()
8642 speed_t x = 1;
8644 return 0;
8646 _ACEOF
8647 if ac_fn_c_try_compile "$LINENO"; then :
8648 emacs_cv_speed_t=yes
8649 else
8650 emacs_cv_speed_t=no
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8655 $as_echo "$emacs_cv_speed_t" >&6; }
8656 if test $emacs_cv_speed_t = yes; then
8658 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8663 $as_echo_n "checking for struct timeval... " >&6; }
8664 if test "${emacs_cv_struct_timeval+set}" = set; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 #ifdef TIME_WITH_SYS_TIME
8670 #include <sys/time.h>
8671 #include <time.h>
8672 #else
8673 #ifdef HAVE_SYS_TIME_H
8674 #include <sys/time.h>
8675 #else
8676 #include <time.h>
8677 #endif
8678 #endif
8680 main ()
8682 static struct timeval x; x.tv_sec = x.tv_usec;
8684 return 0;
8686 _ACEOF
8687 if ac_fn_c_try_compile "$LINENO"; then :
8688 emacs_cv_struct_timeval=yes
8689 else
8690 emacs_cv_struct_timeval=no
8692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8695 $as_echo "$emacs_cv_struct_timeval" >&6; }
8696 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8697 if test $emacs_cv_struct_timeval = yes; then
8699 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8704 $as_echo_n "checking for struct exception... " >&6; }
8705 if test "${emacs_cv_struct_exception+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710 #include <math.h>
8712 main ()
8714 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8716 return 0;
8718 _ACEOF
8719 if ac_fn_c_try_compile "$LINENO"; then :
8720 emacs_cv_struct_exception=yes
8721 else
8722 emacs_cv_struct_exception=no
8724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8727 $as_echo "$emacs_cv_struct_exception" >&6; }
8728 HAVE_EXCEPTION=$emacs_cv_struct_exception
8729 if test $emacs_cv_struct_exception != yes; then
8731 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8735 for ac_header in sys/socket.h
8736 do :
8737 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8738 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8739 cat >>confdefs.h <<_ACEOF
8740 #define HAVE_SYS_SOCKET_H 1
8741 _ACEOF
8745 done
8747 for ac_header in net/if.h
8748 do :
8749 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8750 #if HAVE_SYS_SOCKET_H
8751 #include <sys/socket.h>
8752 #endif
8754 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8755 cat >>confdefs.h <<_ACEOF
8756 #define HAVE_NET_IF_H 1
8757 _ACEOF
8761 done
8763 for ac_header in ifaddrs.h
8764 do :
8765 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8766 #if HAVE_SYS_SOCKET_H
8767 #include <sys/socket.h>
8768 #endif
8770 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8771 cat >>confdefs.h <<_ACEOF
8772 #define HAVE_IFADDRS_H 1
8773 _ACEOF
8777 done
8779 for ac_header in net/if_dl.h
8780 do :
8781 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8782 #if HAVE_SYS_SOCKET_H
8783 #include <sys/socket.h>
8784 #endif
8786 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8787 cat >>confdefs.h <<_ACEOF
8788 #define HAVE_NET_IF_DL_H 1
8789 _ACEOF
8793 done
8795 for ac_func in getifaddrs freeifaddrs
8796 do :
8797 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8798 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8799 eval as_val=\$$as_ac_var
8800 if test "x$as_val" = x""yes; then :
8801 cat >>confdefs.h <<_ACEOF
8802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8803 _ACEOF
8806 done
8809 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8810 #if HAVE_SYS_SOCKET_H
8811 #include <sys/socket.h>
8812 #endif
8813 #if HAVE_NET_IF_H
8814 #include <net/if.h>
8815 #endif
8817 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8819 cat >>confdefs.h <<_ACEOF
8820 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8821 _ACEOF
8825 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8826 #if HAVE_SYS_SOCKET_H
8827 #include <sys/socket.h>
8828 #endif
8829 #if HAVE_NET_IF_H
8830 #include <net/if.h>
8831 #endif
8833 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8835 cat >>confdefs.h <<_ACEOF
8836 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8837 _ACEOF
8841 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8842 #if HAVE_SYS_SOCKET_H
8843 #include <sys/socket.h>
8844 #endif
8845 #if HAVE_NET_IF_H
8846 #include <net/if.h>
8847 #endif
8849 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8851 cat >>confdefs.h <<_ACEOF
8852 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8853 _ACEOF
8857 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8858 #if HAVE_SYS_SOCKET_H
8859 #include <sys/socket.h>
8860 #endif
8861 #if HAVE_NET_IF_H
8862 #include <net/if.h>
8863 #endif
8865 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8867 cat >>confdefs.h <<_ACEOF
8868 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8869 _ACEOF
8873 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8874 #if HAVE_SYS_SOCKET_H
8875 #include <sys/socket.h>
8876 #endif
8877 #if HAVE_NET_IF_H
8878 #include <net/if.h>
8879 #endif
8881 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8883 cat >>confdefs.h <<_ACEOF
8884 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8885 _ACEOF
8889 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8890 #if HAVE_SYS_SOCKET_H
8891 #include <sys/socket.h>
8892 #endif
8893 #if HAVE_NET_IF_H
8894 #include <net/if.h>
8895 #endif
8897 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8899 cat >>confdefs.h <<_ACEOF
8900 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8901 _ACEOF
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8909 $as_echo_n "checking for function prototypes... " >&6; }
8910 if test "$ac_cv_prog_cc_c89" != no; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8912 $as_echo "yes" >&6; }
8914 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8917 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8919 else
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8925 $as_echo_n "checking for working volatile... " >&6; }
8926 if test "${ac_cv_c_volatile+set}" = set; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8933 main ()
8936 volatile int x;
8937 int * volatile y = (int *) 0;
8938 return !x && !y;
8940 return 0;
8942 _ACEOF
8943 if ac_fn_c_try_compile "$LINENO"; then :
8944 ac_cv_c_volatile=yes
8945 else
8946 ac_cv_c_volatile=no
8948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8951 $as_echo "$ac_cv_c_volatile" >&6; }
8952 if test $ac_cv_c_volatile = no; then
8954 $as_echo "#define volatile /**/" >>confdefs.h
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8959 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8960 if test "${ac_cv_c_const+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8967 main ()
8969 /* FIXME: Include the comments suggested by Paul. */
8970 #ifndef __cplusplus
8971 /* Ultrix mips cc rejects this. */
8972 typedef int charset[2];
8973 const charset cs;
8974 /* SunOS 4.1.1 cc rejects this. */
8975 char const *const *pcpcc;
8976 char **ppc;
8977 /* NEC SVR4.0.2 mips cc rejects this. */
8978 struct point {int x, y;};
8979 static struct point const zero = {0,0};
8980 /* AIX XL C 1.02.0.0 rejects this.
8981 It does not let you subtract one const X* pointer from another in
8982 an arm of an if-expression whose if-part is not a constant
8983 expression */
8984 const char *g = "string";
8985 pcpcc = &g + (g ? g-g : 0);
8986 /* HPUX 7.0 cc rejects these. */
8987 ++pcpcc;
8988 ppc = (char**) pcpcc;
8989 pcpcc = (char const *const *) ppc;
8990 { /* SCO 3.2v4 cc rejects this. */
8991 char *t;
8992 char const *s = 0 ? (char *) 0 : (char const *) 0;
8994 *t++ = 0;
8995 if (s) return 0;
8997 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8998 int x[] = {25, 17};
8999 const int *foo = &x[0];
9000 ++foo;
9002 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9003 typedef const int *iptr;
9004 iptr p = 0;
9005 ++p;
9007 { /* AIX XL C 1.02.0.0 rejects this saying
9008 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9009 struct s { int j; const int *ap[3]; };
9010 struct s *b; b->j = 5;
9012 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9013 const int foo = 10;
9014 if (!foo) return 0;
9016 return !cs[0] && !zero.x;
9017 #endif
9020 return 0;
9022 _ACEOF
9023 if ac_fn_c_try_compile "$LINENO"; then :
9024 ac_cv_c_const=yes
9025 else
9026 ac_cv_c_const=no
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9031 $as_echo "$ac_cv_c_const" >&6; }
9032 if test $ac_cv_c_const = no; then
9034 $as_echo "#define const /**/" >>confdefs.h
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9039 $as_echo_n "checking for void * support... " >&6; }
9040 if test "${emacs_cv_void_star+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9047 main ()
9049 void * foo;
9051 return 0;
9053 _ACEOF
9054 if ac_fn_c_try_compile "$LINENO"; then :
9055 emacs_cv_void_star=yes
9056 else
9057 emacs_cv_void_star=no
9059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9062 $as_echo "$emacs_cv_void_star" >&6; }
9063 if test $emacs_cv_void_star = yes; then
9064 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9066 else
9067 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9072 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9073 if test "${ac_cv_c_bigendian+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 ac_cv_c_bigendian=unknown
9077 # See if we're dealing with a universal compiler.
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 #ifndef __APPLE_CC__
9081 not a universal capable compiler
9082 #endif
9083 typedef int dummy;
9085 _ACEOF
9086 if ac_fn_c_try_compile "$LINENO"; then :
9088 # Check for potential -arch flags. It is not universal unless
9089 # there are at least two -arch flags with different values.
9090 ac_arch=
9091 ac_prev=
9092 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9093 if test -n "$ac_prev"; then
9094 case $ac_word in
9095 i?86 | x86_64 | ppc | ppc64)
9096 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9097 ac_arch=$ac_word
9098 else
9099 ac_cv_c_bigendian=universal
9100 break
9103 esac
9104 ac_prev=
9105 elif test "x$ac_word" = "x-arch"; then
9106 ac_prev=arch
9108 done
9110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9111 if test $ac_cv_c_bigendian = unknown; then
9112 # See if sys/param.h defines the BYTE_ORDER macro.
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 #include <sys/types.h>
9116 #include <sys/param.h>
9119 main ()
9121 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9122 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9123 && LITTLE_ENDIAN)
9124 bogus endian macros
9125 #endif
9128 return 0;
9130 _ACEOF
9131 if ac_fn_c_try_compile "$LINENO"; then :
9132 # It does; now see whether it defined to BIG_ENDIAN or not.
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #include <sys/types.h>
9136 #include <sys/param.h>
9139 main ()
9141 #if BYTE_ORDER != BIG_ENDIAN
9142 not big endian
9143 #endif
9146 return 0;
9148 _ACEOF
9149 if ac_fn_c_try_compile "$LINENO"; then :
9150 ac_cv_c_bigendian=yes
9151 else
9152 ac_cv_c_bigendian=no
9154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158 if test $ac_cv_c_bigendian = unknown; then
9159 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 #include <limits.h>
9165 main ()
9167 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9168 bogus endian macros
9169 #endif
9172 return 0;
9174 _ACEOF
9175 if ac_fn_c_try_compile "$LINENO"; then :
9176 # It does; now see whether it defined to _BIG_ENDIAN or not.
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179 #include <limits.h>
9182 main ()
9184 #ifndef _BIG_ENDIAN
9185 not big endian
9186 #endif
9189 return 0;
9191 _ACEOF
9192 if ac_fn_c_try_compile "$LINENO"; then :
9193 ac_cv_c_bigendian=yes
9194 else
9195 ac_cv_c_bigendian=no
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 if test $ac_cv_c_bigendian = unknown; then
9202 # Compile a test program.
9203 if test "$cross_compiling" = yes; then :
9204 # Try to guess by grepping values from an object file.
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 short int ascii_mm[] =
9208 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9209 short int ascii_ii[] =
9210 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9211 int use_ascii (int i) {
9212 return ascii_mm[i] + ascii_ii[i];
9214 short int ebcdic_ii[] =
9215 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9216 short int ebcdic_mm[] =
9217 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9218 int use_ebcdic (int i) {
9219 return ebcdic_mm[i] + ebcdic_ii[i];
9221 extern int foo;
9224 main ()
9226 return use_ascii (foo) == use_ebcdic (foo);
9228 return 0;
9230 _ACEOF
9231 if ac_fn_c_try_compile "$LINENO"; then :
9232 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9233 ac_cv_c_bigendian=yes
9235 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9236 if test "$ac_cv_c_bigendian" = unknown; then
9237 ac_cv_c_bigendian=no
9238 else
9239 # finding both strings is unlikely to happen, but who knows?
9240 ac_cv_c_bigendian=unknown
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 else
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 $ac_includes_default
9250 main ()
9253 /* Are we little or big endian? From Harbison&Steele. */
9254 union
9256 long int l;
9257 char c[sizeof (long int)];
9258 } u;
9259 u.l = 1;
9260 return u.c[sizeof (long int) - 1] == 1;
9263 return 0;
9265 _ACEOF
9266 if ac_fn_c_try_run "$LINENO"; then :
9267 ac_cv_c_bigendian=no
9268 else
9269 ac_cv_c_bigendian=yes
9271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9272 conftest.$ac_objext conftest.beam conftest.$ac_ext
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9278 $as_echo "$ac_cv_c_bigendian" >&6; }
9279 case $ac_cv_c_bigendian in #(
9280 yes)
9281 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9282 ;; #(
9284 ;; #(
9285 universal)
9287 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9289 ;; #(
9291 as_fn_error "unknown endianness
9292 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9293 esac
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9297 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9298 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 char __attribute__ ((__aligned__ (1 << 3))) c;
9305 main ()
9309 return 0;
9311 _ACEOF
9312 if ac_fn_c_try_compile "$LINENO"; then :
9313 emacs_cv_attribute_aligned=yes
9314 else
9315 emacs_cv_attribute_aligned=no
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9320 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9321 if test $emacs_cv_attribute_aligned = yes; then
9323 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9328 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9329 set x ${MAKE-make}
9330 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9331 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9334 cat >conftest.make <<\_ACEOF
9335 SHELL = /bin/sh
9336 all:
9337 @echo '@@@%%%=$(MAKE)=@@@%%%'
9338 _ACEOF
9339 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9340 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9341 *@@@%%%=?*=@@@%%%*)
9342 eval ac_cv_prog_make_${ac_make}_set=yes;;
9344 eval ac_cv_prog_make_${ac_make}_set=no;;
9345 esac
9346 rm -f conftest.make
9348 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9350 $as_echo "yes" >&6; }
9351 SET_MAKE=
9352 else
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9355 SET_MAKE="MAKE=${MAKE-make}"
9359 DEPFLAGS=
9360 MKDEPDIR=":"
9361 deps_frag=deps.mk
9362 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9364 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9365 HAVE_GNU_MAKE=no
9366 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9367 if test "x$testval" != x; then
9368 HAVE_GNU_MAKE=yes
9369 else
9370 ac_enable_autodepend=no
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9373 $as_echo "$HAVE_GNU_MAKE" >&6; }
9374 if test $HAVE_GNU_MAKE = yes; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9376 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9377 SAVE_CFLAGS="$CFLAGS"
9378 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9383 main ()
9387 return 0;
9389 _ACEOF
9390 if ac_fn_c_try_compile "$LINENO"; then :
9392 else
9393 ac_enable_autodepend=no
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396 CFLAGS="$SAVE_CFLAGS"
9397 test -f deps.d || ac_enable_autodepend=no
9398 rm -rf deps.d
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9400 $as_echo "$ac_enable_autodepend" >&6; }
9402 if test $ac_enable_autodepend = yes; then
9403 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9404 ## In parallel builds, another make might create depdir between
9405 ## the first test and mkdir, so stick another test on the end.
9406 ## Or use install-sh -d? mkdir -p is not portable.
9407 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9408 deps_frag=autodeps.mk
9411 deps_frag=$srcdir/src/$deps_frag
9417 lisp_frag=$srcdir/src/lisp.mk
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9422 $as_echo_n "checking for long file names... " >&6; }
9423 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 ac_cv_sys_long_file_names=yes
9427 # Test for long file names in all the places we know might matter:
9428 # . the current directory, where building will happen
9429 # $prefix/lib where we will be installing things
9430 # $exec_prefix/lib likewise
9431 # $TMPDIR if set, where it might want to write temporary files
9432 # /tmp where it might want to write temporary files
9433 # /var/tmp likewise
9434 # /usr/tmp likewise
9435 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9436 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9437 # in the usual case where exec_prefix is '${prefix}'.
9438 case $ac_dir in #(
9439 . | /* | ?:[\\/]*) ;; #(
9440 *) continue;;
9441 esac
9442 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9443 ac_xdir=$ac_dir/cf$$
9444 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9445 ac_tf1=$ac_xdir/conftest9012345
9446 ac_tf2=$ac_xdir/conftest9012346
9447 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9448 ac_cv_sys_long_file_names=no
9449 rm -f -r "$ac_xdir" 2>/dev/null
9450 test $ac_cv_sys_long_file_names = no && break
9451 done
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9454 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9455 if test $ac_cv_sys_long_file_names = yes; then
9457 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9462 #### Choose a window system.
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9465 $as_echo_n "checking for X... " >&6; }
9468 # Check whether --with-x was given.
9469 if test "${with_x+set}" = set; then :
9470 withval=$with_x;
9473 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9474 if test "x$with_x" = xno; then
9475 # The user explicitly disabled X.
9476 have_x=disabled
9477 else
9478 case $x_includes,$x_libraries in #(
9479 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9480 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 # One or both of the vars are not set, and there is no cached value.
9484 ac_x_includes=no ac_x_libraries=no
9485 rm -f -r conftest.dir
9486 if mkdir conftest.dir; then
9487 cd conftest.dir
9488 cat >Imakefile <<'_ACEOF'
9489 incroot:
9490 @echo incroot='${INCROOT}'
9491 usrlibdir:
9492 @echo usrlibdir='${USRLIBDIR}'
9493 libdir:
9494 @echo libdir='${LIBDIR}'
9495 _ACEOF
9496 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9497 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9498 for ac_var in incroot usrlibdir libdir; do
9499 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9500 done
9501 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9502 for ac_extension in a so sl dylib la dll; do
9503 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9504 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9505 ac_im_usrlibdir=$ac_im_libdir; break
9507 done
9508 # Screen out bogus values from the imake configuration. They are
9509 # bogus both because they are the default anyway, and because
9510 # using them would break gcc on systems where it needs fixed includes.
9511 case $ac_im_incroot in
9512 /usr/include) ac_x_includes= ;;
9513 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9514 esac
9515 case $ac_im_usrlibdir in
9516 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9517 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9518 esac
9520 cd ..
9521 rm -f -r conftest.dir
9524 # Standard set of common directories for X headers.
9525 # Check X11 before X11Rn because it is often a symlink to the current release.
9526 ac_x_header_dirs='
9527 /usr/X11/include
9528 /usr/X11R7/include
9529 /usr/X11R6/include
9530 /usr/X11R5/include
9531 /usr/X11R4/include
9533 /usr/include/X11
9534 /usr/include/X11R7
9535 /usr/include/X11R6
9536 /usr/include/X11R5
9537 /usr/include/X11R4
9539 /usr/local/X11/include
9540 /usr/local/X11R7/include
9541 /usr/local/X11R6/include
9542 /usr/local/X11R5/include
9543 /usr/local/X11R4/include
9545 /usr/local/include/X11
9546 /usr/local/include/X11R7
9547 /usr/local/include/X11R6
9548 /usr/local/include/X11R5
9549 /usr/local/include/X11R4
9551 /usr/X386/include
9552 /usr/x386/include
9553 /usr/XFree86/include/X11
9555 /usr/include
9556 /usr/local/include
9557 /usr/unsupported/include
9558 /usr/athena/include
9559 /usr/local/x11r5/include
9560 /usr/lpp/Xamples/include
9562 /usr/openwin/include
9563 /usr/openwin/share/include'
9565 if test "$ac_x_includes" = no; then
9566 # Guess where to find include files, by looking for Xlib.h.
9567 # First, try using that file with no special directory specified.
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570 #include <X11/Xlib.h>
9571 _ACEOF
9572 if ac_fn_c_try_cpp "$LINENO"; then :
9573 # We can compile using X headers with no special include directory.
9574 ac_x_includes=
9575 else
9576 for ac_dir in $ac_x_header_dirs; do
9577 if test -r "$ac_dir/X11/Xlib.h"; then
9578 ac_x_includes=$ac_dir
9579 break
9581 done
9583 rm -f conftest.err conftest.$ac_ext
9584 fi # $ac_x_includes = no
9586 if test "$ac_x_libraries" = no; then
9587 # Check for the libraries.
9588 # See if we find them without any special options.
9589 # Don't add to $LIBS permanently.
9590 ac_save_LIBS=$LIBS
9591 LIBS="-lX11 $LIBS"
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 #include <X11/Xlib.h>
9596 main ()
9598 XrmInitialize ()
9600 return 0;
9602 _ACEOF
9603 if ac_fn_c_try_link "$LINENO"; then :
9604 LIBS=$ac_save_LIBS
9605 # We can link X programs with no special library path.
9606 ac_x_libraries=
9607 else
9608 LIBS=$ac_save_LIBS
9609 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9611 # Don't even attempt the hair of trying to link an X program!
9612 for ac_extension in a so sl dylib la dll; do
9613 if test -r "$ac_dir/libX11.$ac_extension"; then
9614 ac_x_libraries=$ac_dir
9615 break 2
9617 done
9618 done
9620 rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
9622 fi # $ac_x_libraries = no
9624 case $ac_x_includes,$ac_x_libraries in #(
9625 no,* | *,no | *\'*)
9626 # Didn't find X, or a directory has "'" in its name.
9627 ac_cv_have_x="have_x=no";; #(
9629 # Record where we found X for the cache.
9630 ac_cv_have_x="have_x=yes\
9631 ac_x_includes='$ac_x_includes'\
9632 ac_x_libraries='$ac_x_libraries'"
9633 esac
9635 ;; #(
9636 *) have_x=yes;;
9637 esac
9638 eval "$ac_cv_have_x"
9639 fi # $with_x != no
9641 if test "$have_x" != yes; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9643 $as_echo "$have_x" >&6; }
9644 no_x=yes
9645 else
9646 # If each of the values was on the command line, it overrides each guess.
9647 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9648 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9649 # Update the cache value to reflect the command line values.
9650 ac_cv_have_x="have_x=yes\
9651 ac_x_includes='$x_includes'\
9652 ac_x_libraries='$x_libraries'"
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9654 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9657 if test "$no_x" = yes; then
9658 window_system=none
9659 else
9660 window_system=x11
9663 ## Workaround for bug in autoconf <= 2.62.
9664 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9665 ## No need to do anything special for these standard directories.
9666 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9668 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9672 LD_SWITCH_X_SITE_AUX=
9673 LD_SWITCH_X_SITE_AUX_RPATH=
9674 if test "${x_libraries}" != NONE; then
9675 if test -n "${x_libraries}"; then
9676 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9677 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9678 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9680 x_default_search_path=""
9681 x_search_path=${x_libraries}
9682 if test -z "${x_search_path}"; then
9683 x_search_path=/usr/lib
9685 for x_library in `echo ${x_search_path}: | \
9686 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9687 x_search_path="\
9688 ${x_library}/X11/%L/%T/%N%C%S:\
9689 ${x_library}/X11/%l/%T/%N%C%S:\
9690 ${x_library}/X11/%T/%N%C%S:\
9691 ${x_library}/X11/%L/%T/%N%S:\
9692 ${x_library}/X11/%l/%T/%N%S:\
9693 ${x_library}/X11/%T/%N%S"
9694 if test x"${x_default_search_path}" = x; then
9695 x_default_search_path=${x_search_path}
9696 else
9697 x_default_search_path="${x_search_path}:${x_default_search_path}"
9699 done
9704 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9705 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9708 if test x"${x_includes}" = x; then
9709 bitmapdir=/usr/include/X11/bitmaps
9710 else
9711 # accumulate include directories that have X11 bitmap subdirectories
9712 bmd_acc="dummyval"
9713 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9714 if test -d "${bmd}/X11/bitmaps"; then
9715 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9717 if test -d "${bmd}/bitmaps"; then
9718 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9720 done
9721 if test ${bmd_acc} != "dummyval"; then
9722 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9726 HAVE_NS=no
9727 NS_IMPL_COCOA=no
9728 NS_IMPL_GNUSTEP=no
9729 tmp_CPPFLAGS="$CPPFLAGS"
9730 tmp_CFLAGS="$CFLAGS"
9731 CPPFLAGS="$CPPFLAGS -x objective-c"
9732 CFLAGS="$CFLAGS -x objective-c"
9733 TEMACS_LDFLAGS2="\${LDFLAGS}"
9734 GNU_OBJC_CFLAGS=
9735 if test "${with_ns}" != no; then
9736 if test "${opsys}" = darwin; then
9737 NS_IMPL_COCOA=yes
9738 ns_appdir=`pwd`/nextstep/Emacs.app
9739 ns_appbindir=${ns_appdir}/Contents/MacOS/
9740 ns_appresdir=${ns_appdir}/Contents/Resources
9741 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9742 elif test -f $GNUSTEP_CONFIG_FILE; then
9743 NS_IMPL_GNUSTEP=yes
9744 ns_appdir=`pwd`/nextstep/Emacs.app
9745 ns_appbindir=${ns_appdir}/
9746 ns_appresdir=${ns_appdir}/Resources
9747 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9748 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9749 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9750 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9751 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9752 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9753 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9754 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9755 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9756 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9757 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9758 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9759 LIB_STANDARD=
9760 START_FILES=
9761 TEMACS_LDFLAGS2=
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9763 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9764 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 #include <GNUstepBase/GSConfig.h>
9771 main ()
9773 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9775 #else
9776 fail;
9777 #endif
9779 return 0;
9781 _ACEOF
9782 if ac_fn_c_try_compile "$LINENO"; then :
9783 emacs_cv_objc_exceptions=yes
9784 else
9785 emacs_cv_objc_exceptions=no
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9790 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9791 if test $emacs_cv_objc_exceptions = yes; then
9793 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9795 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9799 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9801 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9802 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9803 HAVE_NS=yes
9804 else
9805 as_fn_error "\`--with-ns' was specified, but the include
9806 files are missing or cannot be compiled." "$LINENO" 5
9810 NS_HAVE_NSINTEGER=yes
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 #include <Foundation/NSObjCRuntime.h>
9815 main ()
9817 NSInteger i;
9819 return 0;
9821 _ACEOF
9822 if ac_fn_c_try_compile "$LINENO"; then :
9823 ns_have_nsinteger=yes
9824 else
9825 ns_have_nsinteger=no
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828 if test $ns_have_nsinteger = no; then
9829 NS_HAVE_NSINTEGER=no
9834 ns_frag=/dev/null
9835 NS_OBJ=
9836 NS_OBJC_OBJ=
9837 if test "${HAVE_NS}" = yes; then
9838 window_system=nextstep
9839 with_xft=no
9840 # set up packaging dirs
9841 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9842 prefix=${ns_appresdir}
9843 exec_prefix=${ns_appbindir}
9844 libexecdir=${ns_appbindir}/libexec
9846 ns_frag=$srcdir/src/ns.mk
9847 NS_OBJ="fontset.o fringe.o image.o"
9848 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9850 CFLAGS="$tmp_CFLAGS"
9851 CPPFLAGS="$tmp_CPPFLAGS"
9857 case "${window_system}" in
9858 x11 )
9859 HAVE_X_WINDOWS=yes
9860 HAVE_X11=yes
9861 case "${with_x_toolkit}" in
9862 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9863 motif ) USE_X_TOOLKIT=MOTIF ;;
9864 gtk ) with_gtk=yes
9865 USE_X_TOOLKIT=none ;;
9866 gtk3 ) with_gtk3=yes
9867 USE_X_TOOLKIT=none ;;
9868 no ) USE_X_TOOLKIT=none ;;
9869 * ) USE_X_TOOLKIT=maybe ;;
9870 esac
9872 nextstep | none )
9873 HAVE_X_WINDOWS=no
9874 HAVE_X11=no
9875 USE_X_TOOLKIT=none
9877 esac
9879 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9880 # Extract the first word of "X", so it can be a program name with args.
9881 set dummy X; ac_word=$2
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883 $as_echo_n "checking for $ac_word... " >&6; }
9884 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 if test -n "$HAVE_XSERVER"; then
9888 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9889 else
9890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891 for as_dir in $PATH
9893 IFS=$as_save_IFS
9894 test -z "$as_dir" && as_dir=.
9895 for ac_exec_ext in '' $ac_executable_extensions; do
9896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9897 ac_cv_prog_HAVE_XSERVER="true"
9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9899 break 2
9901 done
9902 done
9903 IFS=$as_save_IFS
9905 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9908 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9909 if test -n "$HAVE_XSERVER"; then
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9911 $as_echo "$HAVE_XSERVER" >&6; }
9912 else
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914 $as_echo "no" >&6; }
9918 if test "$HAVE_XSERVER" = true ||
9919 test -n "$DISPLAY" ||
9920 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9921 as_fn_error "You seem to be running X, but no X development libraries
9922 were found. You should install the relevant development files for X
9923 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9924 sure you have development files for image handling, i.e.
9925 tiff, gif, jpeg, png and xpm.
9926 If you are sure you want Emacs compiled without X window support, pass
9927 --without-x
9928 to configure." "$LINENO" 5
9932 ### If we're using X11, we should use the X menu package.
9933 HAVE_MENUS=no
9934 case ${HAVE_X11} in
9935 yes ) HAVE_MENUS=yes ;;
9936 esac
9938 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9939 # Assume not, until told otherwise.
9940 GNU_MALLOC=yes
9941 doug_lea_malloc=yes
9942 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9943 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9945 else
9946 doug_lea_malloc=no
9949 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9950 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9952 else
9953 doug_lea_malloc=no
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9957 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9958 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9963 extern void (* __after_morecore_hook)();
9965 main ()
9967 __after_morecore_hook = 0
9969 return 0;
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"; then :
9973 emacs_cv_var___after_morecore_hook=yes
9974 else
9975 emacs_cv_var___after_morecore_hook=no
9977 rm -f core conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9981 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9982 if test $emacs_cv_var___after_morecore_hook = no; then
9983 doug_lea_malloc=no
9987 system_malloc=no
9988 case "$opsys" in
9989 ## darwin ld insists on the use of malloc routines in the System framework.
9990 darwin|sol2-10) system_malloc=yes ;;
9991 esac
9993 if test "${system_malloc}" = "yes"; then
9995 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9997 GNU_MALLOC=no
9998 GNU_MALLOC_reason="
9999 (The GNU allocators don't work with this system configuration.)"
10000 GMALLOC_OBJ=
10001 VMLIMIT_OBJ=
10002 else
10003 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10004 VMLIMIT_OBJ=vm-limit.o
10009 if test "$doug_lea_malloc" = "yes" ; then
10010 if test "$GNU_MALLOC" = yes ; then
10011 GNU_MALLOC_reason="
10012 (Using Doug Lea's new malloc from the GNU C Library.)"
10015 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10018 ## Use mmap directly for allocating larger buffers.
10019 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10020 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10021 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10022 case "$opsys" in
10023 gnu*) REL_ALLOC=no ;;
10024 esac
10027 if test x"${REL_ALLOC}" = x; then
10028 REL_ALLOC=${GNU_MALLOC}
10031 use_mmap_for_buffers=no
10032 case "$opsys" in
10033 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10034 esac
10039 for ac_header in $ac_header_list
10040 do :
10041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10042 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10044 eval as_val=\$$as_ac_Header
10045 if test "x$as_val" = x""yes; then :
10046 cat >>confdefs.h <<_ACEOF
10047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10048 _ACEOF
10052 done
10061 for ac_func in getpagesize
10062 do :
10063 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10064 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10065 cat >>confdefs.h <<_ACEOF
10066 #define HAVE_GETPAGESIZE 1
10067 _ACEOF
10070 done
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10073 $as_echo_n "checking for working mmap... " >&6; }
10074 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10075 $as_echo_n "(cached) " >&6
10076 else
10077 if test "$cross_compiling" = yes; then :
10078 ac_cv_func_mmap_fixed_mapped=no
10079 else
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082 $ac_includes_default
10083 /* malloc might have been renamed as rpl_malloc. */
10084 #undef malloc
10086 /* Thanks to Mike Haertel and Jim Avera for this test.
10087 Here is a matrix of mmap possibilities:
10088 mmap private not fixed
10089 mmap private fixed at somewhere currently unmapped
10090 mmap private fixed at somewhere already mapped
10091 mmap shared not fixed
10092 mmap shared fixed at somewhere currently unmapped
10093 mmap shared fixed at somewhere already mapped
10094 For private mappings, we should verify that changes cannot be read()
10095 back from the file, nor mmap's back from the file at a different
10096 address. (There have been systems where private was not correctly
10097 implemented like the infamous i386 svr4.0, and systems where the
10098 VM page cache was not coherent with the file system buffer cache
10099 like early versions of FreeBSD and possibly contemporary NetBSD.)
10100 For shared mappings, we should conversely verify that changes get
10101 propagated back to all the places they're supposed to be.
10103 Grep wants private fixed already mapped.
10104 The main things grep needs to know about mmap are:
10105 * does it exist and is it safe to write into the mmap'd area
10106 * how to use it (BSD variants) */
10108 #include <fcntl.h>
10109 #include <sys/mman.h>
10111 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10112 char *malloc ();
10113 #endif
10115 /* This mess was copied from the GNU getpagesize.h. */
10116 #ifndef HAVE_GETPAGESIZE
10117 # ifdef _SC_PAGESIZE
10118 # define getpagesize() sysconf(_SC_PAGESIZE)
10119 # else /* no _SC_PAGESIZE */
10120 # ifdef HAVE_SYS_PARAM_H
10121 # include <sys/param.h>
10122 # ifdef EXEC_PAGESIZE
10123 # define getpagesize() EXEC_PAGESIZE
10124 # else /* no EXEC_PAGESIZE */
10125 # ifdef NBPG
10126 # define getpagesize() NBPG * CLSIZE
10127 # ifndef CLSIZE
10128 # define CLSIZE 1
10129 # endif /* no CLSIZE */
10130 # else /* no NBPG */
10131 # ifdef NBPC
10132 # define getpagesize() NBPC
10133 # else /* no NBPC */
10134 # ifdef PAGESIZE
10135 # define getpagesize() PAGESIZE
10136 # endif /* PAGESIZE */
10137 # endif /* no NBPC */
10138 # endif /* no NBPG */
10139 # endif /* no EXEC_PAGESIZE */
10140 # else /* no HAVE_SYS_PARAM_H */
10141 # define getpagesize() 8192 /* punt totally */
10142 # endif /* no HAVE_SYS_PARAM_H */
10143 # endif /* no _SC_PAGESIZE */
10145 #endif /* no HAVE_GETPAGESIZE */
10148 main ()
10150 char *data, *data2, *data3;
10151 const char *cdata2;
10152 int i, pagesize;
10153 int fd, fd2;
10155 pagesize = getpagesize ();
10157 /* First, make a file with some known garbage in it. */
10158 data = (char *) malloc (pagesize);
10159 if (!data)
10160 return 1;
10161 for (i = 0; i < pagesize; ++i)
10162 *(data + i) = rand ();
10163 umask (0);
10164 fd = creat ("conftest.mmap", 0600);
10165 if (fd < 0)
10166 return 2;
10167 if (write (fd, data, pagesize) != pagesize)
10168 return 3;
10169 close (fd);
10171 /* Next, check that the tail of a page is zero-filled. File must have
10172 non-zero length, otherwise we risk SIGBUS for entire page. */
10173 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10174 if (fd2 < 0)
10175 return 4;
10176 cdata2 = "";
10177 if (write (fd2, cdata2, 1) != 1)
10178 return 5;
10179 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10180 if (data2 == MAP_FAILED)
10181 return 6;
10182 for (i = 0; i < pagesize; ++i)
10183 if (*(data2 + i))
10184 return 7;
10185 close (fd2);
10186 if (munmap (data2, pagesize))
10187 return 8;
10189 /* Next, try to mmap the file at a fixed address which already has
10190 something else allocated at it. If we can, also make sure that
10191 we see the same garbage. */
10192 fd = open ("conftest.mmap", O_RDWR);
10193 if (fd < 0)
10194 return 9;
10195 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10196 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10197 return 10;
10198 for (i = 0; i < pagesize; ++i)
10199 if (*(data + i) != *(data2 + i))
10200 return 11;
10202 /* Finally, make sure that changes to the mapped area do not
10203 percolate back to the file as seen by read(). (This is a bug on
10204 some variants of i386 svr4.0.) */
10205 for (i = 0; i < pagesize; ++i)
10206 *(data2 + i) = *(data2 + i) + 1;
10207 data3 = (char *) malloc (pagesize);
10208 if (!data3)
10209 return 12;
10210 if (read (fd, data3, pagesize) != pagesize)
10211 return 13;
10212 for (i = 0; i < pagesize; ++i)
10213 if (*(data + i) != *(data3 + i))
10214 return 14;
10215 close (fd);
10216 return 0;
10218 _ACEOF
10219 if ac_fn_c_try_run "$LINENO"; then :
10220 ac_cv_func_mmap_fixed_mapped=yes
10221 else
10222 ac_cv_func_mmap_fixed_mapped=no
10224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10225 conftest.$ac_objext conftest.beam conftest.$ac_ext
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10230 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10231 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10233 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10236 rm -f conftest.mmap conftest.txt
10238 if test $use_mmap_for_buffers = yes; then
10240 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10242 REL_ALLOC=no
10245 LIBS="$LIBS_SYSTEM $LIBS"
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10248 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10249 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 ac_check_lib_save_LIBS=$LIBS
10253 LIBS="-ldnet $LIBS"
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10257 /* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 char dnet_ntoa ();
10265 main ()
10267 return dnet_ntoa ();
10269 return 0;
10271 _ACEOF
10272 if ac_fn_c_try_link "$LINENO"; then :
10273 ac_cv_lib_dnet_dnet_ntoa=yes
10274 else
10275 ac_cv_lib_dnet_dnet_ntoa=no
10277 rm -f core conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10282 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10283 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10284 cat >>confdefs.h <<_ACEOF
10285 #define HAVE_LIBDNET 1
10286 _ACEOF
10288 LIBS="-ldnet $LIBS"
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10294 $as_echo_n "checking for main in -lXbsd... " >&6; }
10295 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 ac_check_lib_save_LIBS=$LIBS
10299 LIBS="-lXbsd $LIBS"
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10305 main ()
10307 return main ();
10309 return 0;
10311 _ACEOF
10312 if ac_fn_c_try_link "$LINENO"; then :
10313 ac_cv_lib_Xbsd_main=yes
10314 else
10315 ac_cv_lib_Xbsd_main=no
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10322 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10323 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10324 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10328 LIB_PTHREAD=
10329 for ac_header in pthread.h
10330 do :
10331 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10332 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10333 cat >>confdefs.h <<_ACEOF
10334 #define HAVE_PTHREAD_H 1
10335 _ACEOF
10339 done
10341 if test "$ac_cv_header_pthread_h"; then
10342 if test "$GMALLOC_OBJ" = gmalloc.o; then
10343 emacs_pthread_function=pthread_atfork
10344 else
10345 emacs_pthread_function=pthread_self
10347 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10349 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10350 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 ac_check_lib_save_LIBS=$LIBS
10354 LIBS="-lpthread $LIBS"
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10358 /* Override any GCC internal prototype to avoid an error.
10359 Use char because int might match the return type of a GCC
10360 builtin and then its argument prototype would still apply. */
10361 #ifdef __cplusplus
10362 extern "C"
10363 #endif
10364 char $emacs_pthread_function ();
10366 main ()
10368 return $emacs_pthread_function ();
10370 return 0;
10372 _ACEOF
10373 if ac_fn_c_try_link "$LINENO"; then :
10374 eval "$as_ac_Lib=yes"
10375 else
10376 eval "$as_ac_Lib=no"
10378 rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_check_lib_save_LIBS
10382 eval ac_res=\$$as_ac_Lib
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10384 $as_echo "$ac_res" >&6; }
10385 eval as_val=\$$as_ac_Lib
10386 if test "x$as_val" = x""yes; then :
10387 HAVE_PTHREAD=yes
10391 if test "$HAVE_PTHREAD" = yes; then
10392 case "${canonical}" in
10393 *-hpux*) ;;
10394 *) LIB_PTHREAD="-lpthread"
10395 LIBS="$LIB_PTHREAD $LIBS" ;;
10396 esac
10398 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10404 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10405 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 ac_check_lib_save_LIBS=$LIBS
10409 LIBS="-lpthreads $LIBS"
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10416 #ifdef __cplusplus
10417 extern "C"
10418 #endif
10419 char cma_open ();
10421 main ()
10423 return cma_open ();
10425 return 0;
10427 _ACEOF
10428 if ac_fn_c_try_link "$LINENO"; then :
10429 ac_cv_lib_pthreads_cma_open=yes
10430 else
10431 ac_cv_lib_pthreads_cma_open=no
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LIBS=$ac_check_lib_save_LIBS
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10438 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10439 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10440 cat >>confdefs.h <<_ACEOF
10441 #define HAVE_LIBPTHREADS 1
10442 _ACEOF
10444 LIBS="-lpthreads $LIBS"
10449 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10450 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10451 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10452 ## added to LIBS in configure would never contain the pthreads part,
10453 ## but the value used in Makefiles might. FIXME?
10455 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10456 ## be harmless on older versions of X where it happens to exist.
10457 test "$opsys" = "aix4-2" && \
10458 test $ac_cv_lib_pthreads_cma_open = yes && \
10459 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10462 case ${host_os} in
10463 aix*)
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10465 $as_echo_n "checking for -bbigtoc option... " >&6; }
10466 if test "${gdb_cv_bigtoc+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10470 case $GCC in
10471 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10472 *) gdb_cv_bigtoc=-bbigtoc ;;
10473 esac
10475 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10480 main ()
10482 int i;
10484 return 0;
10486 _ACEOF
10487 if ac_fn_c_try_link "$LINENO"; then :
10489 else
10490 gdb_cv_bigtoc=
10492 rm -f core conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10497 $as_echo "$gdb_cv_bigtoc" >&6; }
10499 esac
10501 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10502 # used for the tests that follow. We set them back to REAL_CFLAGS and
10503 # REAL_CPPFLAGS later on.
10505 REAL_CFLAGS="$CFLAGS"
10506 REAL_CPPFLAGS="$CPPFLAGS"
10508 if test "${HAVE_X11}" = "yes"; then
10509 DEFS="$C_SWITCH_X_SITE $DEFS"
10510 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10511 LIBS="-lX11 $LIBS"
10512 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10513 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10515 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10516 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10517 # but it's more convenient here to set LD_RUN_PATH
10518 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10519 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10520 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10521 export LD_RUN_PATH
10524 if test "${opsys}" = "gnu-linux"; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10526 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10531 main ()
10533 XOpenDisplay ("foo");
10535 return 0;
10537 _ACEOF
10538 if ac_fn_c_try_link "$LINENO"; then :
10539 xgnu_linux_first_failure=no
10540 else
10541 xgnu_linux_first_failure=yes
10543 rm -f core conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10545 if test "${xgnu_linux_first_failure}" = "yes"; then
10546 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10547 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10548 OLD_CPPFLAGS="$CPPFLAGS"
10549 OLD_LIBS="$LIBS"
10550 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10551 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10552 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10553 LIBS="$LIBS -b i486-linuxaout"
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10558 main ()
10560 XOpenDisplay ("foo");
10562 return 0;
10564 _ACEOF
10565 if ac_fn_c_try_link "$LINENO"; then :
10566 xgnu_linux_second_failure=no
10567 else
10568 xgnu_linux_second_failure=yes
10570 rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 if test "${xgnu_linux_second_failure}" = "yes"; then
10573 # If we get the same failure with -b, there is no use adding -b.
10574 # So take it out. This plays safe.
10575 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10576 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10577 CPPFLAGS="$OLD_CPPFLAGS"
10578 LIBS="$OLD_LIBS"
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; }
10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10583 $as_echo "yes" >&6; }
10585 else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587 $as_echo "no" >&6; }
10591 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10592 # header files included from there.
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10594 $as_echo_n "checking for Xkb... " >&6; }
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #include <X11/Xlib.h>
10598 #include <X11/XKBlib.h>
10600 main ()
10602 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10604 return 0;
10606 _ACEOF
10607 if ac_fn_c_try_link "$LINENO"; then :
10608 emacs_xkb=yes
10609 else
10610 emacs_xkb=no
10612 rm -f core conftest.err conftest.$ac_objext \
10613 conftest$ac_exeext conftest.$ac_ext
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10615 $as_echo "$emacs_xkb" >&6; }
10616 if test $emacs_xkb = yes; then
10618 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10622 for ac_func in XrmSetDatabase XScreenResourceString \
10623 XScreenNumberOfScreen XSetWMProtocols
10624 do :
10625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10626 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10627 eval as_val=\$$as_ac_var
10628 if test "x$as_val" = x""yes; then :
10629 cat >>confdefs.h <<_ACEOF
10630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10631 _ACEOF
10634 done
10638 if test "${window_system}" = "x11"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10640 $as_echo_n "checking X11 version 6... " >&6; }
10641 if test "${emacs_cv_x11_version_6+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 #include <X11/Xlib.h>
10648 main ()
10650 #if XlibSpecificationRelease < 6
10651 fail;
10652 #endif
10655 return 0;
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"; then :
10659 emacs_cv_x11_version_6=yes
10660 else
10661 emacs_cv_x11_version_6=no
10663 rm -f core conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10667 if test $emacs_cv_x11_version_6 = yes; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10669 $as_echo "6 or newer" >&6; }
10671 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10674 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10676 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10677 ## XIM support.
10678 case "$opsys" in
10679 sol2-*) : ;;
10681 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10684 esac
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10687 $as_echo "before 6" >&6; }
10692 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10693 HAVE_RSVG=no
10694 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10695 if test "${with_rsvg}" != "no"; then
10696 RSVG_REQUIRED=2.11.0
10697 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10700 succeeded=no
10702 # Extract the first word of "pkg-config", so it can be a program name with args.
10703 set dummy pkg-config; ac_word=$2
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10705 $as_echo_n "checking for $ac_word... " >&6; }
10706 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10708 else
10709 case $PKG_CONFIG in
10710 [\\/]* | ?:[\\/]*)
10711 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715 for as_dir in $PATH
10717 IFS=$as_save_IFS
10718 test -z "$as_dir" && as_dir=.
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10721 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10723 break 2
10725 done
10726 done
10727 IFS=$as_save_IFS
10729 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10731 esac
10733 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10734 if test -n "$PKG_CONFIG"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10736 $as_echo "$PKG_CONFIG" >&6; }
10737 else
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10744 if test "$PKG_CONFIG" = "no" ; then
10746 else
10747 PKG_CONFIG_MIN_VERSION=0.9.0
10748 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10750 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10752 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10754 $as_echo "yes" >&6; }
10755 succeeded=yes
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10758 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10759 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10761 $as_echo "$RSVG_CFLAGS" >&6; }
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10764 $as_echo_n "checking RSVG_LIBS... " >&6; }
10765 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10767 $as_echo "$RSVG_LIBS" >&6; }
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10771 RSVG_CFLAGS=""
10772 RSVG_LIBS=""
10773 ## If we have a custom action on failure, don't print errors, but
10774 ## do set a variable so people can do so.
10775 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10781 else
10782 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10783 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10787 if test $succeeded = yes; then
10788 HAVE_RSVG=yes
10789 else
10796 if test $HAVE_RSVG = yes; then
10798 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10800 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10801 LIBS="$RSVG_LIBS $LIBS"
10806 HAVE_IMAGEMAGICK=no
10807 if test "${HAVE_X11}" = "yes"; then
10808 if test "${with_imagemagick}" != "no"; then
10809 ## 6.2.8 is the earliest version known to work, but earlier versions
10810 ## might work - let us know if you find one.
10811 ## 6.0.7 does not work. See bug#7955.
10812 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10814 succeeded=no
10816 # Extract the first word of "pkg-config", so it can be a program name with args.
10817 set dummy pkg-config; ac_word=$2
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819 $as_echo_n "checking for $ac_word... " >&6; }
10820 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 case $PKG_CONFIG in
10824 [\\/]* | ?:[\\/]*)
10825 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829 for as_dir in $PATH
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10835 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10839 done
10840 done
10841 IFS=$as_save_IFS
10843 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10845 esac
10847 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10848 if test -n "$PKG_CONFIG"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10850 $as_echo "$PKG_CONFIG" >&6; }
10851 else
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10858 if test "$PKG_CONFIG" = "no" ; then
10860 else
10861 PKG_CONFIG_MIN_VERSION=0.9.0
10862 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10864 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10866 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10868 $as_echo "yes" >&6; }
10869 succeeded=yes
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10872 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10873 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10875 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10878 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10879 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10881 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10882 else
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 $as_echo "no" >&6; }
10885 IMAGEMAGICK_CFLAGS=""
10886 IMAGEMAGICK_LIBS=""
10887 ## If we have a custom action on failure, don't print errors, but
10888 ## do set a variable so people can do so.
10889 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10895 else
10896 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10897 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10901 if test $succeeded = yes; then
10902 HAVE_IMAGEMAGICK=yes
10903 else
10910 if test $HAVE_IMAGEMAGICK = yes; then
10912 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10914 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10915 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10916 for ac_func in MagickExportImagePixels
10917 do :
10918 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10919 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10920 cat >>confdefs.h <<_ACEOF
10921 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10922 _ACEOF
10925 done
10932 HAVE_GTK=no
10933 GTK_OBJ=
10934 if test "${with_gtk3}" = "yes"; then
10935 GLIB_REQUIRED=2.28
10936 GTK_REQUIRED=3.0
10937 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10940 succeeded=no
10942 # Extract the first word of "pkg-config", so it can be a program name with args.
10943 set dummy pkg-config; ac_word=$2
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 $as_echo_n "checking for $ac_word... " >&6; }
10946 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 case $PKG_CONFIG in
10950 [\\/]* | ?:[\\/]*)
10951 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10961 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10965 done
10966 done
10967 IFS=$as_save_IFS
10969 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10971 esac
10973 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10974 if test -n "$PKG_CONFIG"; then
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10976 $as_echo "$PKG_CONFIG" >&6; }
10977 else
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979 $as_echo "no" >&6; }
10984 if test "$PKG_CONFIG" = "no" ; then
10985 pkg_check_gtk=no
10986 else
10987 PKG_CONFIG_MIN_VERSION=0.9.0
10988 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10990 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10992 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10994 $as_echo "yes" >&6; }
10995 succeeded=yes
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10998 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10999 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11001 $as_echo "$GTK_CFLAGS" >&6; }
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11004 $as_echo_n "checking GTK_LIBS... " >&6; }
11005 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11007 $as_echo "$GTK_LIBS" >&6; }
11008 else
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11011 GTK_CFLAGS=""
11012 GTK_LIBS=""
11013 ## If we have a custom action on failure, don't print errors, but
11014 ## do set a variable so people can do so.
11015 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11021 else
11022 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11023 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11027 if test $succeeded = yes; then
11028 pkg_check_gtk=yes
11029 else
11030 pkg_check_gtk=no
11033 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11034 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11037 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11039 GTK_OBJ=emacsgtkfixed.o
11042 if test "$pkg_check_gtk" != "yes"; then
11043 HAVE_GTK=no
11044 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11045 GLIB_REQUIRED=2.10
11046 GTK_REQUIRED=2.10
11047 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11050 succeeded=no
11052 # Extract the first word of "pkg-config", so it can be a program name with args.
11053 set dummy pkg-config; ac_word=$2
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055 $as_echo_n "checking for $ac_word... " >&6; }
11056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 case $PKG_CONFIG in
11060 [\\/]* | ?:[\\/]*)
11061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11075 done
11076 done
11077 IFS=$as_save_IFS
11079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11081 esac
11083 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11084 if test -n "$PKG_CONFIG"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11086 $as_echo "$PKG_CONFIG" >&6; }
11087 else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11094 if test "$PKG_CONFIG" = "no" ; then
11095 pkg_check_gtk=no
11096 else
11097 PKG_CONFIG_MIN_VERSION=0.9.0
11098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11100 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11102 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11104 $as_echo "yes" >&6; }
11105 succeeded=yes
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11108 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11109 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11111 $as_echo "$GTK_CFLAGS" >&6; }
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11114 $as_echo_n "checking GTK_LIBS... " >&6; }
11115 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11117 $as_echo "$GTK_LIBS" >&6; }
11118 else
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; }
11121 GTK_CFLAGS=""
11122 GTK_LIBS=""
11123 ## If we have a custom action on failure, don't print errors, but
11124 ## do set a variable so people can do so.
11125 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11131 else
11132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11137 if test $succeeded = yes; then
11138 pkg_check_gtk=yes
11139 else
11140 pkg_check_gtk=no
11143 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11144 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11149 if test x"$pkg_check_gtk" = xyes; then
11153 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11154 CFLAGS="$CFLAGS $GTK_CFLAGS"
11155 LIBS="$GTK_LIBS $LIBS"
11156 GTK_COMPILES=no
11157 for ac_func in gtk_main
11158 do :
11159 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11160 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11161 cat >>confdefs.h <<_ACEOF
11162 #define HAVE_GTK_MAIN 1
11163 _ACEOF
11164 GTK_COMPILES=yes
11166 done
11168 if test "${GTK_COMPILES}" != "yes"; then
11169 if test "$USE_X_TOOLKIT" != "maybe"; then
11170 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11172 else
11173 HAVE_GTK=yes
11175 $as_echo "#define USE_GTK 1" >>confdefs.h
11177 GTK_OBJ="gtkutil.o $GTK_OBJ"
11178 USE_X_TOOLKIT=none
11179 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11183 closing open displays. This is no problem if you just use
11184 one display, but if you use more than one and close one of them
11185 Emacs may crash." >&5
11186 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11187 closing open displays. This is no problem if you just use
11188 one display, but if you use more than one and close one of them
11189 Emacs may crash." >&2;}
11190 sleep 3
11198 if test "${HAVE_GTK}" = "yes"; then
11200 if test "$with_toolkit_scroll_bars" != no; then
11201 with_toolkit_scroll_bars=yes
11204 HAVE_GTK_FILE_SELECTION=no
11205 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11206 #include <gtk/gtk.h>
11208 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11209 HAVE_GTK_FILE_SELECTION=yes
11210 else
11211 HAVE_GTK_FILE_SELECTION=no
11214 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11215 for ac_func in gtk_file_selection_new
11216 do :
11217 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11218 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11219 cat >>confdefs.h <<_ACEOF
11220 #define HAVE_GTK_FILE_SELECTION_NEW 1
11221 _ACEOF
11224 done
11229 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11230 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11231 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11232 gtk_orientable_set_orientation \
11233 gtk_window_set_has_resize_grip
11234 do :
11235 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11236 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11237 eval as_val=\$$as_ac_var
11238 if test "x$as_val" = x""yes; then :
11239 cat >>confdefs.h <<_ACEOF
11240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11241 _ACEOF
11244 done
11248 HAVE_DBUS=no
11249 DBUS_OBJ=
11250 if test "${with_dbus}" = "yes"; then
11252 succeeded=no
11254 # Extract the first word of "pkg-config", so it can be a program name with args.
11255 set dummy pkg-config; ac_word=$2
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257 $as_echo_n "checking for $ac_word... " >&6; }
11258 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 case $PKG_CONFIG in
11262 [\\/]* | ?:[\\/]*)
11263 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11273 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11275 break 2
11277 done
11278 done
11279 IFS=$as_save_IFS
11281 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11283 esac
11285 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11286 if test -n "$PKG_CONFIG"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11288 $as_echo "$PKG_CONFIG" >&6; }
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11296 if test "$PKG_CONFIG" = "no" ; then
11297 HAVE_DBUS=no
11298 else
11299 PKG_CONFIG_MIN_VERSION=0.9.0
11300 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11302 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11304 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11306 $as_echo "yes" >&6; }
11307 succeeded=yes
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11310 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11311 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11313 $as_echo "$DBUS_CFLAGS" >&6; }
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11316 $as_echo_n "checking DBUS_LIBS... " >&6; }
11317 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11319 $as_echo "$DBUS_LIBS" >&6; }
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11323 DBUS_CFLAGS=""
11324 DBUS_LIBS=""
11325 ## If we have a custom action on failure, don't print errors, but
11326 ## do set a variable so people can do so.
11327 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11333 else
11334 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11335 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11339 if test $succeeded = yes; then
11340 HAVE_DBUS=yes
11341 else
11342 HAVE_DBUS=no
11345 if test "$HAVE_DBUS" = yes; then
11346 LIBS="$LIBS $DBUS_LIBS"
11348 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11350 for ac_func in dbus_watch_get_unix_fd
11351 do :
11352 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11353 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11354 cat >>confdefs.h <<_ACEOF
11355 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11356 _ACEOF
11359 done
11361 DBUS_OBJ=dbusbind.o
11366 HAVE_GSETTINGS=no
11367 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11369 succeeded=no
11371 # Extract the first word of "pkg-config", so it can be a program name with args.
11372 set dummy pkg-config; ac_word=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 case $PKG_CONFIG in
11379 [\\/]* | ?:[\\/]*)
11380 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11394 done
11395 done
11396 IFS=$as_save_IFS
11398 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11400 esac
11402 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11403 if test -n "$PKG_CONFIG"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11405 $as_echo "$PKG_CONFIG" >&6; }
11406 else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11413 if test "$PKG_CONFIG" = "no" ; then
11414 HAVE_GSETTINGS=no
11415 else
11416 PKG_CONFIG_MIN_VERSION=0.9.0
11417 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11419 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11421 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11423 $as_echo "yes" >&6; }
11424 succeeded=yes
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11427 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11428 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11430 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11433 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11434 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11436 $as_echo "$GSETTINGS_LIBS" >&6; }
11437 else
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11440 GSETTINGS_CFLAGS=""
11441 GSETTINGS_LIBS=""
11442 ## If we have a custom action on failure, don't print errors, but
11443 ## do set a variable so people can do so.
11444 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11450 else
11451 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11452 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11456 if test $succeeded = yes; then
11457 HAVE_GSETTINGS=yes
11458 else
11459 HAVE_GSETTINGS=no
11462 if test "$HAVE_GSETTINGS" = "yes"; then
11464 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11466 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11467 SETTINGS_LIBS="$GSETTINGS_LIBS"
11471 HAVE_GCONF=no
11472 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11474 succeeded=no
11476 # Extract the first word of "pkg-config", so it can be a program name with args.
11477 set dummy pkg-config; ac_word=$2
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 $as_echo_n "checking for $ac_word... " >&6; }
11480 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 case $PKG_CONFIG in
11484 [\\/]* | ?:[\\/]*)
11485 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11495 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 break 2
11499 done
11500 done
11501 IFS=$as_save_IFS
11503 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11505 esac
11507 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11508 if test -n "$PKG_CONFIG"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11510 $as_echo "$PKG_CONFIG" >&6; }
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11518 if test "$PKG_CONFIG" = "no" ; then
11519 HAVE_GCONF=no
11520 else
11521 PKG_CONFIG_MIN_VERSION=0.9.0
11522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11524 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11526 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11528 $as_echo "yes" >&6; }
11529 succeeded=yes
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11532 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11533 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11535 $as_echo "$GCONF_CFLAGS" >&6; }
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11538 $as_echo_n "checking GCONF_LIBS... " >&6; }
11539 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11541 $as_echo "$GCONF_LIBS" >&6; }
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11545 GCONF_CFLAGS=""
11546 GCONF_LIBS=""
11547 ## If we have a custom action on failure, don't print errors, but
11548 ## do set a variable so people can do so.
11549 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11555 else
11556 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11557 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11561 if test $succeeded = yes; then
11562 HAVE_GCONF=yes
11563 else
11564 HAVE_GCONF=no
11567 if test "$HAVE_GCONF" = yes; then
11569 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11571 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11572 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11576 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11577 SAVE_CFLAGS="$CFLAGS"
11578 SAVE_LIBS="$LIBS"
11579 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11580 LIBS="$SETTINGS_LIBS $LIBS"
11581 for ac_func in g_type_init
11582 do :
11583 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11584 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11585 cat >>confdefs.h <<_ACEOF
11586 #define HAVE_G_TYPE_INIT 1
11587 _ACEOF
11590 done
11592 CFLAGS="$SAVE_CFLAGS"
11593 LIBS="$SAVE_LIBS"
11599 HAVE_LIBSELINUX=no
11600 LIBSELINUX_LIBS=
11601 if test "${with_selinux}" = "yes"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11603 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11604 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-lselinux $LIBS"
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11612 /* Override any GCC internal prototype to avoid an error.
11613 Use char because int might match the return type of a GCC
11614 builtin and then its argument prototype would still apply. */
11615 #ifdef __cplusplus
11616 extern "C"
11617 #endif
11618 char lgetfilecon ();
11620 main ()
11622 return lgetfilecon ();
11624 return 0;
11626 _ACEOF
11627 if ac_fn_c_try_link "$LINENO"; then :
11628 ac_cv_lib_selinux_lgetfilecon=yes
11629 else
11630 ac_cv_lib_selinux_lgetfilecon=no
11632 rm -f core conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11637 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11638 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11639 HAVE_LIBSELINUX=yes
11640 else
11641 HAVE_LIBSELINUX=no
11644 if test "$HAVE_LIBSELINUX" = yes; then
11646 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11648 LIBSELINUX_LIBS=-lselinux
11653 HAVE_GNUTLS=no
11654 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11655 if test "${with_gnutls}" = "yes" ; then
11657 succeeded=no
11659 # Extract the first word of "pkg-config", so it can be a program name with args.
11660 set dummy pkg-config; ac_word=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 case $PKG_CONFIG in
11667 [\\/]* | ?:[\\/]*)
11668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 break 2
11682 done
11683 done
11684 IFS=$as_save_IFS
11686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11688 esac
11690 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11691 if test -n "$PKG_CONFIG"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11693 $as_echo "$PKG_CONFIG" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11701 if test "$PKG_CONFIG" = "no" ; then
11702 HAVE_GNUTLS=no
11703 else
11704 PKG_CONFIG_MIN_VERSION=0.9.0
11705 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11707 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11709 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; }
11712 succeeded=yes
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11715 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11716 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11718 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11721 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11722 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11724 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11728 LIBGNUTLS_CFLAGS=""
11729 LIBGNUTLS_LIBS=""
11730 ## If we have a custom action on failure, don't print errors, but
11731 ## do set a variable so people can do so.
11732 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11738 else
11739 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11740 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11744 if test $succeeded = yes; then
11745 HAVE_GNUTLS=yes
11746 else
11747 HAVE_GNUTLS=no
11750 if test "${HAVE_GNUTLS}" = "yes"; then
11752 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11756 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11757 LIBS="$LIBGNUTLS_LIBS $LIBS"
11758 for ac_func in gnutls_certificate_set_verify_function
11759 do :
11760 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11761 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11762 cat >>confdefs.h <<_ACEOF
11763 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11764 _ACEOF
11765 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11767 done
11770 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11772 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11780 HAVE_XAW3D=no
11781 LUCID_LIBW=
11782 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11783 if test "$with_xaw3d" != no; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11785 $as_echo_n "checking for xaw3d... " >&6; }
11786 if test "${emacs_cv_xaw3d+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11792 #include <X11/Intrinsic.h>
11793 #include <X11/Xaw3d/Simple.h>
11795 main ()
11799 return 0;
11801 _ACEOF
11802 if ac_fn_c_try_link "$LINENO"; then :
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11804 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11805 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11806 $as_echo_n "(cached) " >&6
11807 else
11808 ac_check_lib_save_LIBS=$LIBS
11809 LIBS="-lXaw3d $LIBS"
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11813 /* Override any GCC internal prototype to avoid an error.
11814 Use char because int might match the return type of a GCC
11815 builtin and then its argument prototype would still apply. */
11816 #ifdef __cplusplus
11817 extern "C"
11818 #endif
11819 char XawScrollbarSetThumb ();
11821 main ()
11823 return XawScrollbarSetThumb ();
11825 return 0;
11827 _ACEOF
11828 if ac_fn_c_try_link "$LINENO"; then :
11829 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11830 else
11831 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11833 rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11835 LIBS=$ac_check_lib_save_LIBS
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11838 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11839 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11840 emacs_cv_xaw3d=yes
11841 else
11842 emacs_cv_xaw3d=no
11845 else
11846 emacs_cv_xaw3d=no
11848 rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11852 else
11853 emacs_cv_xaw3d=no
11855 if test $emacs_cv_xaw3d = yes; then
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11857 $as_echo "yes; using Lucid toolkit" >&6; }
11858 USE_X_TOOLKIT=LUCID
11859 HAVE_XAW3D=yes
11860 LUCID_LIBW=-lXaw3d
11862 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11868 $as_echo_n "checking for libXaw... " >&6; }
11869 if test "${emacs_cv_xaw+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11875 #include <X11/Intrinsic.h>
11876 #include <X11/Xaw/Simple.h>
11878 main ()
11882 return 0;
11884 _ACEOF
11885 if ac_fn_c_try_link "$LINENO"; then :
11886 emacs_cv_xaw=yes
11887 else
11888 emacs_cv_xaw=no
11890 rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11894 if test $emacs_cv_xaw = yes; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11896 $as_echo "yes; using Lucid toolkit" >&6; }
11897 USE_X_TOOLKIT=LUCID
11898 LUCID_LIBW=-lXaw
11899 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11900 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11901 else
11902 as_fn_error "No X toolkit could be found.
11903 If you are sure you want Emacs compiled without an X toolkit, pass
11904 --with-x-toolkit=no
11905 to configure. Otherwise, install the development libraries for the toolkit
11906 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11911 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11913 LIBXTR6=
11914 if test "${USE_X_TOOLKIT}" != "none"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11916 $as_echo_n "checking X11 toolkit version... " >&6; }
11917 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922 #include <X11/Intrinsic.h>
11924 main ()
11926 #if XtSpecificationRelease < 6
11927 fail;
11928 #endif
11931 return 0;
11933 _ACEOF
11934 if ac_fn_c_try_link "$LINENO"; then :
11935 emacs_cv_x11_toolkit_version_6=yes
11936 else
11937 emacs_cv_x11_toolkit_version_6=no
11939 rm -f core conftest.err conftest.$ac_objext \
11940 conftest$ac_exeext conftest.$ac_ext
11943 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11944 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11946 $as_echo "6 or newer" >&6; }
11948 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11950 LIBXTR6="-lSM -lICE"
11951 case "$opsys" in
11952 ## Use libw.a along with X11R6 Xt.
11953 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11954 esac
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11957 $as_echo "before 6" >&6; }
11960 OLDLIBS="$LIBS"
11961 if test x$HAVE_X11XTR6 = xyes; then
11962 LIBS="-lXt -lSM -lICE $LIBS"
11963 else
11964 LIBS="-lXt $LIBS"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11967 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11968 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 ac_check_lib_save_LIBS=$LIBS
11972 LIBS="-lXmu $LIBS"
11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h. */
11976 /* Override any GCC internal prototype to avoid an error.
11977 Use char because int might match the return type of a GCC
11978 builtin and then its argument prototype would still apply. */
11979 #ifdef __cplusplus
11980 extern "C"
11981 #endif
11982 char XmuConvertStandardSelection ();
11984 main ()
11986 return XmuConvertStandardSelection ();
11988 return 0;
11990 _ACEOF
11991 if ac_fn_c_try_link "$LINENO"; then :
11992 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11993 else
11994 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11996 rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12001 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12002 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12003 cat >>confdefs.h <<_ACEOF
12004 #define HAVE_LIBXMU 1
12005 _ACEOF
12007 LIBS="-lXmu $LIBS"
12011 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12015 LIBXMU=-lXmu
12016 case $opsys in
12017 ## These systems don't supply Xmu.
12018 hpux* | aix4-2 )
12019 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12021 esac
12024 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12025 if test "${HAVE_X11}" = "yes"; then
12026 if test "${USE_X_TOOLKIT}" != "none"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12028 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12029 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 ac_check_lib_save_LIBS=$LIBS
12033 LIBS="-lXext $LIBS"
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 char XShapeQueryExtension ();
12045 main ()
12047 return XShapeQueryExtension ();
12049 return 0;
12051 _ACEOF
12052 if ac_fn_c_try_link "$LINENO"; then :
12053 ac_cv_lib_Xext_XShapeQueryExtension=yes
12054 else
12055 ac_cv_lib_Xext_XShapeQueryExtension=no
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12062 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12063 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12064 cat >>confdefs.h <<_ACEOF
12065 #define HAVE_LIBXEXT 1
12066 _ACEOF
12068 LIBS="-lXext $LIBS"
12075 LIBXP=
12076 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12078 $as_echo_n "checking for Motif version 2.1... " >&6; }
12079 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 #include <Xm/Xm.h>
12086 main ()
12088 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12089 int x = 5;
12090 #else
12091 Motif version prior to 2.1.
12092 #endif
12094 return 0;
12096 _ACEOF
12097 if ac_fn_c_try_compile "$LINENO"; then :
12098 emacs_cv_motif_version_2_1=yes
12099 else
12100 emacs_cv_motif_version_2_1=no
12102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12105 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12106 if test $emacs_cv_motif_version_2_1 = yes; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12108 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12109 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 ac_check_lib_save_LIBS=$LIBS
12113 LIBS="-lXp $LIBS"
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12117 /* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
12120 #ifdef __cplusplus
12121 extern "C"
12122 #endif
12123 char XpCreateContext ();
12125 main ()
12127 return XpCreateContext ();
12129 return 0;
12131 _ACEOF
12132 if ac_fn_c_try_link "$LINENO"; then :
12133 ac_cv_lib_Xp_XpCreateContext=yes
12134 else
12135 ac_cv_lib_Xp_XpCreateContext=no
12137 rm -f core conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12139 LIBS=$ac_check_lib_save_LIBS
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12142 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12143 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12144 LIBXP=-lXp
12147 else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12149 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12150 if test "${emacs_cv_lesstif+set}" = set; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 # We put this in CFLAGS temporarily to precede other -I options
12154 # that might be in CFLAGS temporarily.
12155 # We put this in CPPFLAGS where it precedes the other -I options.
12156 OLD_CPPFLAGS=$CPPFLAGS
12157 OLD_CFLAGS=$CFLAGS
12158 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12159 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12162 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12164 main ()
12166 int x = 5;
12168 return 0;
12170 _ACEOF
12171 if ac_fn_c_try_compile "$LINENO"; then :
12172 emacs_cv_lesstif=yes
12173 else
12174 emacs_cv_lesstif=no
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12179 $as_echo "$emacs_cv_lesstif" >&6; }
12180 if test $emacs_cv_lesstif = yes; then
12181 # Make sure this -I option remains in CPPFLAGS after it is set
12182 # back to REAL_CPPFLAGS.
12183 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12184 # have those other -I options anyway. Ultimately, having this
12185 # directory ultimately in CPPFLAGS will be enough.
12186 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12187 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12188 else
12189 CFLAGS=$OLD_CFLAGS
12190 CPPFLAGS=$OLD_CPPFLAGS
12196 USE_TOOLKIT_SCROLL_BARS=no
12197 if test "${with_toolkit_scroll_bars}" != "no"; then
12198 if test "${USE_X_TOOLKIT}" != "none"; then
12199 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12200 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12202 HAVE_XAW3D=no
12203 USE_TOOLKIT_SCROLL_BARS=yes
12204 elif test "${HAVE_XAW3D}" = "yes"; then
12205 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12207 USE_TOOLKIT_SCROLL_BARS=yes
12209 elif test "${HAVE_GTK}" = "yes"; then
12210 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12212 USE_TOOLKIT_SCROLL_BARS=yes
12213 elif test "${HAVE_NS}" = "yes"; then
12214 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12216 USE_TOOLKIT_SCROLL_BARS=yes
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12223 #include <X11/Xlib.h>
12224 #include <X11/Xresource.h>
12226 main ()
12228 XIMProc callback;
12230 return 0;
12232 _ACEOF
12233 if ac_fn_c_try_compile "$LINENO"; then :
12234 HAVE_XIM=yes
12236 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12238 else
12239 HAVE_XIM=no
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244 if test "${with_xim}" != "no"; then
12246 $as_echo "#define USE_XIM 1" >>confdefs.h
12251 if test "${HAVE_XIM}" != "no"; then
12252 late_CFLAGS=$CFLAGS
12253 if test "$GCC" = yes; then
12254 CFLAGS="$CFLAGS --pedantic-errors"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12259 #include <X11/Xlib.h>
12260 #include <X11/Xresource.h>
12262 main ()
12264 Display *display;
12265 XrmDatabase db;
12266 char *res_name;
12267 char *res_class;
12268 XIMProc callback;
12269 XPointer *client_data;
12270 #ifndef __GNUC__
12271 /* If we're not using GCC, it's probably not XFree86, and this is
12272 probably right, but we can't use something like --pedantic-errors. */
12273 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12274 char*, XIMProc, XPointer*);
12275 #endif
12276 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12277 client_data);
12279 return 0;
12281 _ACEOF
12282 if ac_fn_c_try_compile "$LINENO"; then :
12283 emacs_cv_arg6_star=yes
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12286 if test "$emacs_cv_arg6_star" = yes; then
12287 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12289 else
12290 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12293 CFLAGS=$late_CFLAGS
12296 ### Start of font-backend (under any platform) section.
12297 # (nothing here yet -- this is a placeholder)
12298 ### End of font-backend (under any platform) section.
12300 ### Start of font-backend (under X11) section.
12301 if test "${HAVE_X11}" = "yes"; then
12303 succeeded=no
12305 # Extract the first word of "pkg-config", so it can be a program name with args.
12306 set dummy pkg-config; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 case $PKG_CONFIG in
12313 [\\/]* | ?:[\\/]*)
12314 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12320 IFS=$as_save_IFS
12321 test -z "$as_dir" && as_dir=.
12322 for ac_exec_ext in '' $ac_executable_extensions; do
12323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12324 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326 break 2
12328 done
12329 done
12330 IFS=$as_save_IFS
12332 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12334 esac
12336 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12337 if test -n "$PKG_CONFIG"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12339 $as_echo "$PKG_CONFIG" >&6; }
12340 else
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12347 if test "$PKG_CONFIG" = "no" ; then
12348 HAVE_FC=no
12349 else
12350 PKG_CONFIG_MIN_VERSION=0.9.0
12351 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12353 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12355 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12357 $as_echo "yes" >&6; }
12358 succeeded=yes
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12361 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12362 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12364 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12367 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12368 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12370 $as_echo "$FONTCONFIG_LIBS" >&6; }
12371 else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12374 FONTCONFIG_CFLAGS=""
12375 FONTCONFIG_LIBS=""
12376 ## If we have a custom action on failure, don't print errors, but
12377 ## do set a variable so people can do so.
12378 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12384 else
12385 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12386 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12390 if test $succeeded = yes; then
12391 HAVE_FC=yes
12392 else
12393 HAVE_FC=no
12397 ## Use -lXft if available, unless `--with-xft=no'.
12398 HAVE_XFT=maybe
12399 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12400 with_xft="no";
12402 if test "x${with_xft}" != "xno"; then
12405 succeeded=no
12407 # Extract the first word of "pkg-config", so it can be a program name with args.
12408 set dummy pkg-config; ac_word=$2
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410 $as_echo_n "checking for $ac_word... " >&6; }
12411 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 case $PKG_CONFIG in
12415 [\\/]* | ?:[\\/]*)
12416 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12426 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 break 2
12430 done
12431 done
12432 IFS=$as_save_IFS
12434 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12436 esac
12438 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12439 if test -n "$PKG_CONFIG"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12441 $as_echo "$PKG_CONFIG" >&6; }
12442 else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12449 if test "$PKG_CONFIG" = "no" ; then
12450 HAVE_XFT=no
12451 else
12452 PKG_CONFIG_MIN_VERSION=0.9.0
12453 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12455 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12457 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12459 $as_echo "yes" >&6; }
12460 succeeded=yes
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12463 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12464 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12466 $as_echo "$XFT_CFLAGS" >&6; }
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12469 $as_echo_n "checking XFT_LIBS... " >&6; }
12470 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12472 $as_echo "$XFT_LIBS" >&6; }
12473 else
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475 $as_echo "no" >&6; }
12476 XFT_CFLAGS=""
12477 XFT_LIBS=""
12478 ## If we have a custom action on failure, don't print errors, but
12479 ## do set a variable so people can do so.
12480 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12486 else
12487 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12488 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12492 if test $succeeded = yes; then
12494 else
12495 HAVE_XFT=no
12498 ## Because xftfont.c uses XRenderQueryExtension, we also
12499 ## need to link to -lXrender.
12500 HAVE_XRENDER=no
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12502 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12503 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
12505 else
12506 ac_check_lib_save_LIBS=$LIBS
12507 LIBS="-lXrender $LIBS"
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12511 /* Override any GCC internal prototype to avoid an error.
12512 Use char because int might match the return type of a GCC
12513 builtin and then its argument prototype would still apply. */
12514 #ifdef __cplusplus
12515 extern "C"
12516 #endif
12517 char XRenderQueryExtension ();
12519 main ()
12521 return XRenderQueryExtension ();
12523 return 0;
12525 _ACEOF
12526 if ac_fn_c_try_link "$LINENO"; then :
12527 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12528 else
12529 ac_cv_lib_Xrender_XRenderQueryExtension=no
12531 rm -f core conftest.err conftest.$ac_objext \
12532 conftest$ac_exeext conftest.$ac_ext
12533 LIBS=$ac_check_lib_save_LIBS
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12536 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12537 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12538 HAVE_XRENDER=yes
12541 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12542 OLD_CPPFLAGS="$CPPFLAGS"
12543 OLD_CFLAGS="$CFLAGS"
12544 OLD_LIBS="$LIBS"
12545 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12546 CFLAGS="$CFLAGS $XFT_CFLAGS"
12547 XFT_LIBS="-lXrender $XFT_LIBS"
12548 LIBS="$XFT_LIBS $LIBS"
12549 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12550 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12552 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12553 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 ac_check_lib_save_LIBS=$LIBS
12557 LIBS="-lXft $XFT_LIBS $LIBS"
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12561 /* Override any GCC internal prototype to avoid an error.
12562 Use char because int might match the return type of a GCC
12563 builtin and then its argument prototype would still apply. */
12564 #ifdef __cplusplus
12565 extern "C"
12566 #endif
12567 char XftFontOpen ();
12569 main ()
12571 return XftFontOpen ();
12573 return 0;
12575 _ACEOF
12576 if ac_fn_c_try_link "$LINENO"; then :
12577 ac_cv_lib_Xft_XftFontOpen=yes
12578 else
12579 ac_cv_lib_Xft_XftFontOpen=no
12581 rm -f core conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext conftest.$ac_ext
12583 LIBS=$ac_check_lib_save_LIBS
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12586 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12587 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12588 HAVE_XFT=yes
12595 if test "${HAVE_XFT}" = "yes"; then
12597 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12600 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12601 else
12602 CPPFLAGS="$OLD_CPPFLAGS"
12603 CFLAGS="$OLD_CFLAGS"
12604 LIBS="$OLD_LIBS"
12605 fi # "${HAVE_XFT}" = "yes"
12606 fi # "$HAVE_XFT" != no
12607 fi # "x${with_xft}" != "xno"
12609 ## We used to allow building with FreeType and without Xft.
12610 ## However, the ftx font backend driver is not in good shape.
12611 if test "$HAVE_XFT" != "yes"; then
12612 HAVE_XFT=no
12613 HAVE_FREETYPE=no
12614 else
12616 succeeded=no
12618 # Extract the first word of "pkg-config", so it can be a program name with args.
12619 set dummy pkg-config; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 case $PKG_CONFIG in
12626 [\\/]* | ?:[\\/]*)
12627 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631 for as_dir in $PATH
12633 IFS=$as_save_IFS
12634 test -z "$as_dir" && as_dir=.
12635 for ac_exec_ext in '' $ac_executable_extensions; do
12636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12637 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12639 break 2
12641 done
12642 done
12643 IFS=$as_save_IFS
12645 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12647 esac
12649 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12650 if test -n "$PKG_CONFIG"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12652 $as_echo "$PKG_CONFIG" >&6; }
12653 else
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12660 if test "$PKG_CONFIG" = "no" ; then
12661 HAVE_FREETYPE=no
12662 else
12663 PKG_CONFIG_MIN_VERSION=0.9.0
12664 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12666 $as_echo_n "checking for freetype2... " >&6; }
12668 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12670 $as_echo "yes" >&6; }
12671 succeeded=yes
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12674 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12675 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12677 $as_echo "$FREETYPE_CFLAGS" >&6; }
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12680 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12681 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12683 $as_echo "$FREETYPE_LIBS" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687 FREETYPE_CFLAGS=""
12688 FREETYPE_LIBS=""
12689 ## If we have a custom action on failure, don't print errors, but
12690 ## do set a variable so people can do so.
12691 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12697 else
12698 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12699 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12703 if test $succeeded = yes; then
12704 HAVE_FREETYPE=yes
12705 else
12706 HAVE_FREETYPE=no
12710 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12713 HAVE_LIBOTF=no
12714 if test "${HAVE_FREETYPE}" = "yes"; then
12716 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12718 if test "${with_libotf}" != "no"; then
12720 succeeded=no
12722 # Extract the first word of "pkg-config", so it can be a program name with args.
12723 set dummy pkg-config; ac_word=$2
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725 $as_echo_n "checking for $ac_word... " >&6; }
12726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12729 case $PKG_CONFIG in
12730 [\\/]* | ?:[\\/]*)
12731 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743 break 2
12745 done
12746 done
12747 IFS=$as_save_IFS
12749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12751 esac
12753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12754 if test -n "$PKG_CONFIG"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12756 $as_echo "$PKG_CONFIG" >&6; }
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12764 if test "$PKG_CONFIG" = "no" ; then
12765 HAVE_LIBOTF=no
12766 else
12767 PKG_CONFIG_MIN_VERSION=0.9.0
12768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12770 $as_echo_n "checking for libotf... " >&6; }
12772 if $PKG_CONFIG --exists "libotf" 2>&5; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12775 succeeded=yes
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12778 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12779 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12781 $as_echo "$LIBOTF_CFLAGS" >&6; }
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12784 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12785 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12787 $as_echo "$LIBOTF_LIBS" >&6; }
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12791 LIBOTF_CFLAGS=""
12792 LIBOTF_LIBS=""
12793 ## If we have a custom action on failure, don't print errors, but
12794 ## do set a variable so people can do so.
12795 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12801 else
12802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12807 if test $succeeded = yes; then
12808 HAVE_LIBOTF=yes
12809 else
12810 HAVE_LIBOTF=no
12813 if test "$HAVE_LIBOTF" = "yes"; then
12815 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12818 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12819 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 ac_check_lib_save_LIBS=$LIBS
12823 LIBS="-lotf $LIBS"
12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12827 /* Override any GCC internal prototype to avoid an error.
12828 Use char because int might match the return type of a GCC
12829 builtin and then its argument prototype would still apply. */
12830 #ifdef __cplusplus
12831 extern "C"
12832 #endif
12833 char OTF_get_variation_glyphs ();
12835 main ()
12837 return OTF_get_variation_glyphs ();
12839 return 0;
12841 _ACEOF
12842 if ac_fn_c_try_link "$LINENO"; then :
12843 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12844 else
12845 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12847 rm -f core conftest.err conftest.$ac_objext \
12848 conftest$ac_exeext conftest.$ac_ext
12849 LIBS=$ac_check_lib_save_LIBS
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12852 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12853 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12854 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12855 else
12856 HAVE_OTF_GET_VARIATION_GLYPHS=no
12859 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12861 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12868 HAVE_M17N_FLT=no
12869 if test "${HAVE_LIBOTF}" = yes; then
12870 if test "${with_m17n_flt}" != "no"; then
12872 succeeded=no
12874 # Extract the first word of "pkg-config", so it can be a program name with args.
12875 set dummy pkg-config; ac_word=$2
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877 $as_echo_n "checking for $ac_word... " >&6; }
12878 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 case $PKG_CONFIG in
12882 [\\/]* | ?:[\\/]*)
12883 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $PATH
12889 IFS=$as_save_IFS
12890 test -z "$as_dir" && as_dir=.
12891 for ac_exec_ext in '' $ac_executable_extensions; do
12892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12893 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12895 break 2
12897 done
12898 done
12899 IFS=$as_save_IFS
12901 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12903 esac
12905 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12906 if test -n "$PKG_CONFIG"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12908 $as_echo "$PKG_CONFIG" >&6; }
12909 else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12916 if test "$PKG_CONFIG" = "no" ; then
12917 HAVE_M17N_FLT=no
12918 else
12919 PKG_CONFIG_MIN_VERSION=0.9.0
12920 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12922 $as_echo_n "checking for m17n-flt... " >&6; }
12924 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12926 $as_echo "yes" >&6; }
12927 succeeded=yes
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12930 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12931 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12933 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12936 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12937 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12939 $as_echo "$M17N_FLT_LIBS" >&6; }
12940 else
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12943 M17N_FLT_CFLAGS=""
12944 M17N_FLT_LIBS=""
12945 ## If we have a custom action on failure, don't print errors, but
12946 ## do set a variable so people can do so.
12947 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12953 else
12954 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12955 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12959 if test $succeeded = yes; then
12960 HAVE_M17N_FLT=yes
12961 else
12962 HAVE_M17N_FLT=no
12965 if test "$HAVE_M17N_FLT" = "yes"; then
12967 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12972 else
12973 HAVE_XFT=no
12974 HAVE_FREETYPE=no
12975 HAVE_LIBOTF=no
12976 HAVE_M17N_FLT=no
12979 ### End of font-backend (under X11) section.
12990 ### Use -lXpm if available, unless `--with-xpm=no'.
12991 HAVE_XPM=no
12992 LIBXPM=
12993 if test "${HAVE_X11}" = "yes"; then
12994 if test "${with_xpm}" != "no"; then
12995 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12996 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12998 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12999 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 ac_check_lib_save_LIBS=$LIBS
13003 LIBS="-lXpm -lX11 $LIBS"
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13007 /* Override any GCC internal prototype to avoid an error.
13008 Use char because int might match the return type of a GCC
13009 builtin and then its argument prototype would still apply. */
13010 #ifdef __cplusplus
13011 extern "C"
13012 #endif
13013 char XpmReadFileToPixmap ();
13015 main ()
13017 return XpmReadFileToPixmap ();
13019 return 0;
13021 _ACEOF
13022 if ac_fn_c_try_link "$LINENO"; then :
13023 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13024 else
13025 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13027 rm -f core conftest.err conftest.$ac_objext \
13028 conftest$ac_exeext conftest.$ac_ext
13029 LIBS=$ac_check_lib_save_LIBS
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13032 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13033 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13034 HAVE_XPM=yes
13040 if test "${HAVE_XPM}" = "yes"; then
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13042 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13045 #include "X11/xpm.h"
13046 #ifndef XpmReturnAllocPixels
13047 no_return_alloc_pixels
13048 #endif
13050 _ACEOF
13051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13052 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13053 HAVE_XPM=no
13054 else
13055 HAVE_XPM=yes
13057 rm -f conftest*
13060 if test "${HAVE_XPM}" = "yes"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062 $as_echo "yes" >&6; }
13063 else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13070 if test "${HAVE_XPM}" = "yes"; then
13072 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13074 LIBXPM=-lXpm
13079 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13080 HAVE_JPEG=no
13081 LIBJPEG=
13082 if test "${HAVE_X11}" = "yes"; then
13083 if test "${with_jpeg}" != "no"; then
13084 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13085 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13087 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13088 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 ac_check_lib_save_LIBS=$LIBS
13092 LIBS="-ljpeg $LIBS"
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13096 /* Override any GCC internal prototype to avoid an error.
13097 Use char because int might match the return type of a GCC
13098 builtin and then its argument prototype would still apply. */
13099 #ifdef __cplusplus
13100 extern "C"
13101 #endif
13102 char jpeg_destroy_compress ();
13104 main ()
13106 return jpeg_destroy_compress ();
13108 return 0;
13110 _ACEOF
13111 if ac_fn_c_try_link "$LINENO"; then :
13112 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13113 else
13114 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13116 rm -f core conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
13118 LIBS=$ac_check_lib_save_LIBS
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13121 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13122 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13123 HAVE_JPEG=yes
13131 if test "${HAVE_JPEG}" = "yes"; then
13132 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 #include <jpeglib.h>
13137 version=JPEG_LIB_VERSION
13139 _ACEOF
13140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13141 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13142 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13144 else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13146 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13147 HAVE_JPEG=no
13149 rm -f conftest*
13152 if test "${HAVE_JPEG}" = "yes"; then
13153 LIBJPEG=-ljpeg
13158 ### Use -lpng if available, unless `--with-png=no'.
13159 HAVE_PNG=no
13160 LIBPNG=
13161 if test "${HAVE_X11}" = "yes"; then
13162 if test "${with_png}" != "no"; then
13163 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13164 # in /usr/include/libpng.
13165 for ac_header in png.h libpng/png.h
13166 do :
13167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13168 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13169 eval as_val=\$$as_ac_Header
13170 if test "x$as_val" = x""yes; then :
13171 cat >>confdefs.h <<_ACEOF
13172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13173 _ACEOF
13177 done
13179 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13181 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13182 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 ac_check_lib_save_LIBS=$LIBS
13186 LIBS="-lpng -lz -lm $LIBS"
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13190 /* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13193 #ifdef __cplusplus
13194 extern "C"
13195 #endif
13196 char png_get_channels ();
13198 main ()
13200 return png_get_channels ();
13202 return 0;
13204 _ACEOF
13205 if ac_fn_c_try_link "$LINENO"; then :
13206 ac_cv_lib_png_png_get_channels=yes
13207 else
13208 ac_cv_lib_png_png_get_channels=no
13210 rm -f core conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13212 LIBS=$ac_check_lib_save_LIBS
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13215 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13216 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13217 HAVE_PNG=yes
13223 if test "${HAVE_PNG}" = "yes"; then
13225 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13227 LIBPNG="-lpng -lz -lm"
13232 ### Use -ltiff if available, unless `--with-tiff=no'.
13233 HAVE_TIFF=no
13234 LIBTIFF=
13235 if test "${HAVE_X11}" = "yes"; then
13236 if test "${with_tiff}" != "no"; then
13237 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13238 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13239 tifflibs="-lz -lm"
13240 # At least one tiff package requires the jpeg library.
13241 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13243 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13244 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13245 $as_echo_n "(cached) " >&6
13246 else
13247 ac_check_lib_save_LIBS=$LIBS
13248 LIBS="-ltiff $tifflibs $LIBS"
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13252 /* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13255 #ifdef __cplusplus
13256 extern "C"
13257 #endif
13258 char TIFFGetVersion ();
13260 main ()
13262 return TIFFGetVersion ();
13264 return 0;
13266 _ACEOF
13267 if ac_fn_c_try_link "$LINENO"; then :
13268 ac_cv_lib_tiff_TIFFGetVersion=yes
13269 else
13270 ac_cv_lib_tiff_TIFFGetVersion=no
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274 LIBS=$ac_check_lib_save_LIBS
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13277 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13278 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13279 HAVE_TIFF=yes
13287 if test "${HAVE_TIFF}" = "yes"; then
13289 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13291 LIBTIFF=-ltiff
13296 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13297 HAVE_GIF=no
13298 LIBGIF=
13299 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13300 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13301 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13302 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13303 # Earlier versions can crash Emacs.
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13305 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13306 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 ac_check_lib_save_LIBS=$LIBS
13310 LIBS="-lgif $LIBS"
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13314 /* Override any GCC internal prototype to avoid an error.
13315 Use char because int might match the return type of a GCC
13316 builtin and then its argument prototype would still apply. */
13317 #ifdef __cplusplus
13318 extern "C"
13319 #endif
13320 char EGifPutExtensionLast ();
13322 main ()
13324 return EGifPutExtensionLast ();
13326 return 0;
13328 _ACEOF
13329 if ac_fn_c_try_link "$LINENO"; then :
13330 ac_cv_lib_gif_EGifPutExtensionLast=yes
13331 else
13332 ac_cv_lib_gif_EGifPutExtensionLast=no
13334 rm -f core conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13336 LIBS=$ac_check_lib_save_LIBS
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13339 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13340 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13341 HAVE_GIF=yes
13342 else
13343 HAVE_GIF=maybe
13350 if test "$HAVE_GIF" = yes; then
13351 LIBGIF=-lgif
13352 elif test "$HAVE_GIF" = maybe; then
13353 # If gif_lib.h but no libgif, try libungif.
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13355 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13356 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13357 $as_echo_n "(cached) " >&6
13358 else
13359 ac_check_lib_save_LIBS=$LIBS
13360 LIBS="-lungif $LIBS"
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13367 #ifdef __cplusplus
13368 extern "C"
13369 #endif
13370 char EGifPutExtensionLast ();
13372 main ()
13374 return EGifPutExtensionLast ();
13376 return 0;
13378 _ACEOF
13379 if ac_fn_c_try_link "$LINENO"; then :
13380 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13381 else
13382 ac_cv_lib_ungif_EGifPutExtensionLast=no
13384 rm -f core conftest.err conftest.$ac_objext \
13385 conftest$ac_exeext conftest.$ac_ext
13386 LIBS=$ac_check_lib_save_LIBS
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13389 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13390 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13391 HAVE_GIF=yes
13392 else
13393 HAVE_GIF=no
13396 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13399 if test "${HAVE_GIF}" = "yes"; then
13401 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13407 if test "${HAVE_X11}" = "yes"; then
13408 MISSING=""
13409 WITH_NO=""
13410 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13411 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13412 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13413 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13414 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13415 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13416 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13417 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13418 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13419 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13421 if test "X${MISSING}" != X; then
13422 as_fn_error "The following required libraries were not found:
13423 $MISSING
13424 Maybe some development libraries/packages are missing?
13425 If you don't want to link with them give
13426 $WITH_NO
13427 as options to configure" "$LINENO" 5
13431 ### Use -lgpm if available, unless `--with-gpm=no'.
13432 HAVE_GPM=no
13433 LIBGPM=
13434 if test "${with_gpm}" != "no"; then
13435 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13436 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13438 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13439 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 ac_check_lib_save_LIBS=$LIBS
13443 LIBS="-lgpm $LIBS"
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13447 /* Override any GCC internal prototype to avoid an error.
13448 Use char because int might match the return type of a GCC
13449 builtin and then its argument prototype would still apply. */
13450 #ifdef __cplusplus
13451 extern "C"
13452 #endif
13453 char Gpm_Open ();
13455 main ()
13457 return Gpm_Open ();
13459 return 0;
13461 _ACEOF
13462 if ac_fn_c_try_link "$LINENO"; then :
13463 ac_cv_lib_gpm_Gpm_Open=yes
13464 else
13465 ac_cv_lib_gpm_Gpm_Open=no
13467 rm -f core conftest.err conftest.$ac_objext \
13468 conftest$ac_exeext conftest.$ac_ext
13469 LIBS=$ac_check_lib_save_LIBS
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13472 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13473 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13474 HAVE_GPM=yes
13481 if test "${HAVE_GPM}" = "yes"; then
13483 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13485 LIBGPM=-lgpm
13490 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13491 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13493 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13499 C_SWITCH_X_SYSTEM=
13500 ### Use NeXTstep API to implement GUI.
13501 if test "${HAVE_NS}" = "yes"; then
13503 $as_echo "#define HAVE_NS 1" >>confdefs.h
13505 if test "${NS_IMPL_COCOA}" = "yes"; then
13507 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13510 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13512 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13514 # See also .m.o rule in Makefile.in */
13515 # FIXME: are all these flags really needed? Document here why. */
13516 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13517 ## Extra CFLAGS applied to src/*.m files.
13518 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13520 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13522 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13525 # We also have mouse menus.
13526 HAVE_MENUS=yes
13527 OTHER_FILES=ns-app
13531 ### Use session management (-lSM -lICE) if available
13532 HAVE_X_SM=no
13533 LIBXSM=
13534 if test "${HAVE_X11}" = "yes"; then
13535 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13536 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13538 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13539 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13540 $as_echo_n "(cached) " >&6
13541 else
13542 ac_check_lib_save_LIBS=$LIBS
13543 LIBS="-lSM -lICE $LIBS"
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13547 /* Override any GCC internal prototype to avoid an error.
13548 Use char because int might match the return type of a GCC
13549 builtin and then its argument prototype would still apply. */
13550 #ifdef __cplusplus
13551 extern "C"
13552 #endif
13553 char SmcOpenConnection ();
13555 main ()
13557 return SmcOpenConnection ();
13559 return 0;
13561 _ACEOF
13562 if ac_fn_c_try_link "$LINENO"; then :
13563 ac_cv_lib_SM_SmcOpenConnection=yes
13564 else
13565 ac_cv_lib_SM_SmcOpenConnection=no
13567 rm -f core conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569 LIBS=$ac_check_lib_save_LIBS
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13572 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13573 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13574 HAVE_X_SM=yes
13581 if test "${HAVE_X_SM}" = "yes"; then
13583 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13585 LIBXSM="-lSM -lICE"
13586 case "$LIBS" in
13587 *-lSM*) ;;
13588 *) LIBS="$LIBXSM $LIBS" ;;
13589 esac
13594 ### Use libxml (-lxml2) if available
13595 HAVE_LIBXML2=no
13596 if test "${with_xml2}" != "no"; then
13597 ### I'm not sure what the version number should be, so I just guessed.
13599 succeeded=no
13601 # Extract the first word of "pkg-config", so it can be a program name with args.
13602 set dummy pkg-config; ac_word=$2
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604 $as_echo_n "checking for $ac_word... " >&6; }
13605 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13606 $as_echo_n "(cached) " >&6
13607 else
13608 case $PKG_CONFIG in
13609 [\\/]* | ?:[\\/]*)
13610 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13620 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13624 done
13625 done
13626 IFS=$as_save_IFS
13628 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13630 esac
13632 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13633 if test -n "$PKG_CONFIG"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13635 $as_echo "$PKG_CONFIG" >&6; }
13636 else
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638 $as_echo "no" >&6; }
13643 if test "$PKG_CONFIG" = "no" ; then
13644 HAVE_LIBXML2=no
13645 else
13646 PKG_CONFIG_MIN_VERSION=0.9.0
13647 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13649 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13651 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13653 $as_echo "yes" >&6; }
13654 succeeded=yes
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13657 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13658 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13660 $as_echo "$LIBXML2_CFLAGS" >&6; }
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13663 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13664 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13666 $as_echo "$LIBXML2_LIBS" >&6; }
13667 else
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669 $as_echo "no" >&6; }
13670 LIBXML2_CFLAGS=""
13671 LIBXML2_LIBS=""
13672 ## If we have a custom action on failure, don't print errors, but
13673 ## do set a variable so people can do so.
13674 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13680 else
13681 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13682 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13686 if test $succeeded = yes; then
13687 HAVE_LIBXML2=yes
13688 else
13689 HAVE_LIBXML2=no
13692 if test "${HAVE_LIBXML2}" = "yes"; then
13693 LIBS="$LIBXML2_LIBS $LIBS"
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13695 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13696 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 ac_check_lib_save_LIBS=$LIBS
13700 LIBS="-lxml2 $LIBS"
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 /* Override any GCC internal prototype to avoid an error.
13705 Use char because int might match the return type of a GCC
13706 builtin and then its argument prototype would still apply. */
13707 #ifdef __cplusplus
13708 extern "C"
13709 #endif
13710 char htmlReadMemory ();
13712 main ()
13714 return htmlReadMemory ();
13716 return 0;
13718 _ACEOF
13719 if ac_fn_c_try_link "$LINENO"; then :
13720 ac_cv_lib_xml2_htmlReadMemory=yes
13721 else
13722 ac_cv_lib_xml2_htmlReadMemory=no
13724 rm -f core conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 LIBS=$ac_check_lib_save_LIBS
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13729 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13730 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13731 HAVE_LIBXML2=yes
13732 else
13733 HAVE_LIBXML2=no
13736 if test "${HAVE_LIBXML2}" = "yes"; then
13738 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13740 else
13741 LIBXML2_LIBS=""
13742 LIBXML2_CFLAGS=""
13749 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13751 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13752 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757 #include <netdb.h>
13759 main ()
13761 return h_errno;
13763 return 0;
13765 _ACEOF
13766 if ac_fn_c_try_link "$LINENO"; then :
13767 emacs_cv_netdb_declares_h_errno=yes
13768 else
13769 emacs_cv_netdb_declares_h_errno=no
13771 rm -f core conftest.err conftest.$ac_objext \
13772 conftest$ac_exeext conftest.$ac_ext
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13775 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13776 if test $emacs_cv_netdb_declares_h_errno = yes; then
13778 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13782 # fmod, logb, and frexp are found in -lm on most systems.
13783 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13785 $as_echo_n "checking for sqrt in -lm... " >&6; }
13786 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13789 ac_check_lib_save_LIBS=$LIBS
13790 LIBS="-lm $LIBS"
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13797 #ifdef __cplusplus
13798 extern "C"
13799 #endif
13800 char sqrt ();
13802 main ()
13804 return sqrt ();
13806 return 0;
13808 _ACEOF
13809 if ac_fn_c_try_link "$LINENO"; then :
13810 ac_cv_lib_m_sqrt=yes
13811 else
13812 ac_cv_lib_m_sqrt=no
13814 rm -f core conftest.err conftest.$ac_objext \
13815 conftest$ac_exeext conftest.$ac_ext
13816 LIBS=$ac_check_lib_save_LIBS
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13819 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13820 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13821 cat >>confdefs.h <<_ACEOF
13822 #define HAVE_LIBM 1
13823 _ACEOF
13825 LIBS="-lm $LIBS"
13830 # Check for mail-locking functions in a "mail" library. Probably this should
13831 # have the same check as for liblockfile below.
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13833 $as_echo_n "checking for maillock in -lmail... " >&6; }
13834 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 ac_check_lib_save_LIBS=$LIBS
13838 LIBS="-lmail $LIBS"
13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13845 #ifdef __cplusplus
13846 extern "C"
13847 #endif
13848 char maillock ();
13850 main ()
13852 return maillock ();
13854 return 0;
13856 _ACEOF
13857 if ac_fn_c_try_link "$LINENO"; then :
13858 ac_cv_lib_mail_maillock=yes
13859 else
13860 ac_cv_lib_mail_maillock=no
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 LIBS=$ac_check_lib_save_LIBS
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13867 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13868 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13869 have_mail=yes
13870 else
13871 have_mail=no
13874 if test $have_mail = yes; then
13875 LIBS_MAIL=-lmail
13876 LIBS="$LIBS_MAIL $LIBS"
13878 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13880 else
13881 LIBS_MAIL=
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13884 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13885 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 ac_check_lib_save_LIBS=$LIBS
13889 LIBS="-llockfile $LIBS"
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13893 /* Override any GCC internal prototype to avoid an error.
13894 Use char because int might match the return type of a GCC
13895 builtin and then its argument prototype would still apply. */
13896 #ifdef __cplusplus
13897 extern "C"
13898 #endif
13899 char maillock ();
13901 main ()
13903 return maillock ();
13905 return 0;
13907 _ACEOF
13908 if ac_fn_c_try_link "$LINENO"; then :
13909 ac_cv_lib_lockfile_maillock=yes
13910 else
13911 ac_cv_lib_lockfile_maillock=no
13913 rm -f core conftest.err conftest.$ac_objext \
13914 conftest$ac_exeext conftest.$ac_ext
13915 LIBS=$ac_check_lib_save_LIBS
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13918 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13919 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13920 have_lockfile=yes
13921 else
13922 have_lockfile=no
13925 if test $have_lockfile = yes; then
13926 LIBS_MAIL=-llockfile
13927 LIBS="$LIBS_MAIL $LIBS"
13929 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13931 else
13932 # If we have the shared liblockfile, assume we must use it for mail
13933 # locking (e.g. Debian). If we couldn't link against liblockfile
13934 # (no liblockfile.a installed), ensure that we don't need to.
13935 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13936 set dummy liblockfile.so; ac_word=$2
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13938 $as_echo_n "checking for $ac_word... " >&6; }
13939 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 if test -n "$liblockfile"; then
13943 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13944 else
13945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13946 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13947 for as_dir in $as_dummy
13949 IFS=$as_save_IFS
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
13952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13953 ac_cv_prog_liblockfile="yes"
13954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955 break 2
13957 done
13958 done
13959 IFS=$as_save_IFS
13961 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13964 liblockfile=$ac_cv_prog_liblockfile
13965 if test -n "$liblockfile"; then
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13967 $as_echo "$liblockfile" >&6; }
13968 else
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970 $as_echo "no" >&6; }
13974 if test $ac_cv_prog_liblockfile = yes; then
13975 as_fn_error "Shared liblockfile found but can't link against it.
13976 This probably means that movemail could lose mail.
13977 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13980 for ac_func in touchlock
13981 do :
13982 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13983 if test "x$ac_cv_func_touchlock" = x""yes; then :
13984 cat >>confdefs.h <<_ACEOF
13985 #define HAVE_TOUCHLOCK 1
13986 _ACEOF
13989 done
13991 for ac_header in maillock.h
13992 do :
13993 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13994 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13995 cat >>confdefs.h <<_ACEOF
13996 #define HAVE_MAILLOCK_H 1
13997 _ACEOF
14001 done
14005 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14006 ## interlock access to the mail spool. The alternative is a lock file named
14007 ## /usr/spool/mail/$USER.lock.
14008 mail_lock=no
14009 case "$opsys" in
14010 aix4-2) mail_lock="lockf" ;;
14012 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14014 ## On GNU/Linux systems, both methods are used by various mail programs.
14015 ## I assume most people are using newer mailers that have heard of flock.
14016 ## Change this if you need to.
14017 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14018 ## configure gets the right answers, and that means *NOT* using flock.
14019 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14020 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14021 ## Debian maintainer hasn't provided a clean fix for Emacs.
14022 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14023 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14024 ## correct logic. -- fx
14025 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14026 ## liblockfile is a Free Software replacement for libmail, used on
14027 ## Debian systems and elsewhere. -rfr.
14028 gnu-*)
14029 mail_lock="flock"
14030 if test $have_mail = yes || test $have_lockfile = yes; then
14031 test $ac_cv_header_maillock_h = yes && mail_lock=no
14034 esac
14036 BLESSMAIL_TARGET=
14037 case "$mail_lock" in
14038 flock)
14039 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14042 lockf)
14043 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14046 *) BLESSMAIL_TARGET="need-blessmail" ;;
14047 esac
14051 for ac_func in gethostname getdomainname \
14052 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14053 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14054 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14055 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14056 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14057 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14058 gai_strerror mkstemp getline getdelim mremap fsync sync \
14059 difftime mempcpy mblen mbrlen posix_memalign \
14060 cfmakeraw cfsetspeed copysign __executable_start
14061 do :
14062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14063 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14064 eval as_val=\$$as_ac_var
14065 if test "x$as_val" = x""yes; then :
14066 cat >>confdefs.h <<_ACEOF
14067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14068 _ACEOF
14071 done
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14075 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14076 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14083 main ()
14085 __builtin_unwind_init ();
14087 return 0;
14089 _ACEOF
14090 if ac_fn_c_try_link "$LINENO"; then :
14091 emacs_cv_func___builtin_unwind_init=yes
14092 else
14093 emacs_cv_func___builtin_unwind_init=no
14095 rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14099 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14100 if test $emacs_cv_func___builtin_unwind_init = yes; then
14102 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14106 for ac_header in sys/un.h
14107 do :
14108 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14109 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14110 cat >>confdefs.h <<_ACEOF
14111 #define HAVE_SYS_UN_H 1
14112 _ACEOF
14116 done
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14120 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14121 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124 while :; do
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 #include <sys/types.h> /* for off_t */
14128 #include <stdio.h>
14130 main ()
14132 int (*fp) (FILE *, off_t, int) = fseeko;
14133 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14135 return 0;
14137 _ACEOF
14138 if ac_fn_c_try_link "$LINENO"; then :
14139 ac_cv_sys_largefile_source=no; break
14141 rm -f core conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 #define _LARGEFILE_SOURCE 1
14146 #include <sys/types.h> /* for off_t */
14147 #include <stdio.h>
14149 main ()
14151 int (*fp) (FILE *, off_t, int) = fseeko;
14152 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14154 return 0;
14156 _ACEOF
14157 if ac_fn_c_try_link "$LINENO"; then :
14158 ac_cv_sys_largefile_source=1; break
14160 rm -f core conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14162 ac_cv_sys_largefile_source=unknown
14163 break
14164 done
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14167 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14168 case $ac_cv_sys_largefile_source in #(
14169 no | unknown) ;;
14171 cat >>confdefs.h <<_ACEOF
14172 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14173 _ACEOF
14175 esac
14176 rm -rf conftest*
14178 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14179 # in glibc 2.1.3, but that breaks too many other things.
14180 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14181 if test $ac_cv_sys_largefile_source != unknown; then
14183 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14189 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14190 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14191 $as_echo_n "(cached) " >&6
14192 else
14193 # Use it with a single arg.
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 $ac_includes_default
14198 main ()
14200 getpgrp (0);
14202 return 0;
14204 _ACEOF
14205 if ac_fn_c_try_compile "$LINENO"; then :
14206 ac_cv_func_getpgrp_void=no
14207 else
14208 ac_cv_func_getpgrp_void=yes
14210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14214 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14215 if test $ac_cv_func_getpgrp_void = yes; then
14217 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14222 # UNIX98 PTYs.
14223 for ac_func in grantpt
14224 do :
14225 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14226 if test "x$ac_cv_func_grantpt" = x""yes; then :
14227 cat >>confdefs.h <<_ACEOF
14228 #define HAVE_GRANTPT 1
14229 _ACEOF
14232 done
14235 # PTY-related GNU extensions.
14236 for ac_func in getpt
14237 do :
14238 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14239 if test "x$ac_cv_func_getpt" = x""yes; then :
14240 cat >>confdefs.h <<_ACEOF
14241 #define HAVE_GETPT 1
14242 _ACEOF
14245 done
14248 # Check this now, so that we will NOT find the above functions in ncurses.
14249 # That is because we have not set up to link ncurses in lib-src.
14250 # It's better to believe a function is not available
14251 # than to expect to find it in ncurses.
14252 # Also we need tputs and friends to be able to build at all.
14253 have_tputs_et_al=true
14254 # Maybe curses should be tried earlier?
14255 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14257 $as_echo_n "checking for library containing tputs... " >&6; }
14258 if test "${ac_cv_search_tputs+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 ac_func_search_save_LIBS=$LIBS
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14265 /* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14268 #ifdef __cplusplus
14269 extern "C"
14270 #endif
14271 char tputs ();
14273 main ()
14275 return tputs ();
14277 return 0;
14279 _ACEOF
14280 for ac_lib in '' ncurses terminfo termcap curses; do
14281 if test -z "$ac_lib"; then
14282 ac_res="none required"
14283 else
14284 ac_res=-l$ac_lib
14285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14287 if ac_fn_c_try_link "$LINENO"; then :
14288 ac_cv_search_tputs=$ac_res
14290 rm -f core conftest.err conftest.$ac_objext \
14291 conftest$ac_exeext
14292 if test "${ac_cv_search_tputs+set}" = set; then :
14293 break
14295 done
14296 if test "${ac_cv_search_tputs+set}" = set; then :
14298 else
14299 ac_cv_search_tputs=no
14301 rm conftest.$ac_ext
14302 LIBS=$ac_func_search_save_LIBS
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14305 $as_echo "$ac_cv_search_tputs" >&6; }
14306 ac_res=$ac_cv_search_tputs
14307 if test "$ac_res" != no; then :
14308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14310 else
14311 have_tputs_et_al=false
14314 if test "$have_tputs_et_al" != true; then
14315 as_fn_error "The required function \`tputs' was not found in any library.
14316 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14317 Please try installing whichever of these libraries is most appropriate
14318 for your system, together with its header files.
14319 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14321 # Must define this when any termcap library is found.
14323 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14325 ## FIXME This was the cpp logic, but I am not sure it is right.
14326 ## The above test has not necessarily found libncurses.
14327 HAVE_LIBNCURSES=yes
14329 ## Use terminfo instead of termcap?
14330 ## Note only system files NOT using terminfo are:
14331 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14332 ## darwin|gnu without ncurses.
14333 TERMINFO=no
14334 LIBS_TERMCAP=
14335 case "$opsys" in
14336 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14337 ## hpux10-20: Use the system provided termcap(3) library.
14338 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14339 ## is necessary. Otherwise Emacs dumps core when run -nw.
14340 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14342 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14343 ## The ncurses library has been moved out of the System framework in
14344 ## Mac OS X 10.2. So if configure detects it, set the command-line
14345 ## option to use it.
14346 darwin|gnu*)
14347 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14348 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14349 TERMINFO=yes
14350 LIBS_TERMCAP="-lncurses"
14354 freebsd)
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14356 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14357 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14358 $as_echo_n "(cached) " >&6
14359 else
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14362 #include <osreldate.h>
14364 main ()
14366 #if __FreeBSD_version < 400000
14367 fail;
14368 #endif
14371 return 0;
14373 _ACEOF
14374 if ac_fn_c_try_link "$LINENO"; then :
14375 emacs_cv_freebsd_terminfo=yes
14376 else
14377 emacs_cv_freebsd_terminfo=no
14379 rm -f core conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14385 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14387 if test $emacs_cv_freebsd_terminfo = yes; then
14388 TERMINFO=yes
14389 LIBS_TERMCAP="-lncurses"
14390 else
14391 LIBS_TERMCAP="-ltermcap"
14395 netbsd)
14396 if test $ac_cv_search_tputs = -lterminfo; then
14397 TERMINFO=yes
14398 LIBS_TERMCAP="-lterminfo"
14399 else
14400 LIBS_TERMCAP="-ltermcap"
14404 esac
14406 case "$opsys" in
14407 ## hpux: Make sure we get select from libc rather than from libcurses
14408 ## because libcurses on HPUX 10.10 has a broken version of select.
14409 ## We used to use -lc -lcurses, but this may be cleaner.
14410 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14412 openbsd) LIBS_TERMCAP="-lncurses" ;;
14414 ## Must use system termcap, if we use any termcap. It does special things.
14415 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14416 esac
14418 TERMCAP_OBJ=tparam.o
14419 if test $TERMINFO = yes; then
14421 $as_echo "#define TERMINFO 1" >>confdefs.h
14424 ## Default used to be -ltermcap. Add a case above if need something else.
14425 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14427 TERMCAP_OBJ=terminfo.o
14433 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14434 resolv=no
14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h. */
14437 #include <netinet/in.h>
14438 #include <arpa/nameser.h>
14439 #include <resolv.h>
14441 main ()
14443 return res_init();
14445 return 0;
14447 _ACEOF
14448 if ac_fn_c_try_link "$LINENO"; then :
14449 have_res_init=yes
14450 else
14451 have_res_init=no
14453 rm -f core conftest.err conftest.$ac_objext \
14454 conftest$ac_exeext conftest.$ac_ext
14455 if test "$have_res_init" = no; then
14456 OLIBS="$LIBS"
14457 LIBS="$LIBS -lresolv"
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14459 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 #include <netinet/in.h>
14463 #include <arpa/nameser.h>
14464 #include <resolv.h>
14466 main ()
14468 return res_init();
14470 return 0;
14472 _ACEOF
14473 if ac_fn_c_try_link "$LINENO"; then :
14474 have_res_init=yes
14475 else
14476 have_res_init=no
14478 rm -f core conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14481 $as_echo "$have_res_init" >&6; }
14482 if test "$have_res_init" = yes ; then
14483 resolv=yes
14485 LIBS="$OLIBS"
14488 if test "$have_res_init" = yes; then
14490 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14494 # Do we need the Hesiod library to provide the support routines?
14495 LIBHESIOD=
14496 if test "$with_hesiod" != no ; then
14497 # Don't set $LIBS here -- see comments above. FIXME which comments?
14498 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14499 if test "x$ac_cv_func_res_send" = x""yes; then :
14501 else
14502 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14503 if test "x$ac_cv_func___res_send" = x""yes; then :
14505 else
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14507 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14508 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14509 $as_echo_n "(cached) " >&6
14510 else
14511 ac_check_lib_save_LIBS=$LIBS
14512 LIBS="-lresolv $LIBS"
14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h. */
14516 /* Override any GCC internal prototype to avoid an error.
14517 Use char because int might match the return type of a GCC
14518 builtin and then its argument prototype would still apply. */
14519 #ifdef __cplusplus
14520 extern "C"
14521 #endif
14522 char res_send ();
14524 main ()
14526 return res_send ();
14528 return 0;
14530 _ACEOF
14531 if ac_fn_c_try_link "$LINENO"; then :
14532 ac_cv_lib_resolv_res_send=yes
14533 else
14534 ac_cv_lib_resolv_res_send=no
14536 rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LIBS=$ac_check_lib_save_LIBS
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14541 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14542 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14543 resolv=yes
14544 else
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14546 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14547 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14548 $as_echo_n "(cached) " >&6
14549 else
14550 ac_check_lib_save_LIBS=$LIBS
14551 LIBS="-lresolv $LIBS"
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14555 /* Override any GCC internal prototype to avoid an error.
14556 Use char because int might match the return type of a GCC
14557 builtin and then its argument prototype would still apply. */
14558 #ifdef __cplusplus
14559 extern "C"
14560 #endif
14561 char __res_send ();
14563 main ()
14565 return __res_send ();
14567 return 0;
14569 _ACEOF
14570 if ac_fn_c_try_link "$LINENO"; then :
14571 ac_cv_lib_resolv___res_send=yes
14572 else
14573 ac_cv_lib_resolv___res_send=no
14575 rm -f core conftest.err conftest.$ac_objext \
14576 conftest$ac_exeext conftest.$ac_ext
14577 LIBS=$ac_check_lib_save_LIBS
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14580 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14581 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14582 resolv=yes
14591 if test "$resolv" = yes ; then
14592 RESOLVLIB=-lresolv
14593 else
14594 RESOLVLIB=
14596 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14597 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14599 else
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14601 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14602 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14603 $as_echo_n "(cached) " >&6
14604 else
14605 ac_check_lib_save_LIBS=$LIBS
14606 LIBS="-lhesiod $RESOLVLIB $LIBS"
14607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14610 /* Override any GCC internal prototype to avoid an error.
14611 Use char because int might match the return type of a GCC
14612 builtin and then its argument prototype would still apply. */
14613 #ifdef __cplusplus
14614 extern "C"
14615 #endif
14616 char hes_getmailhost ();
14618 main ()
14620 return hes_getmailhost ();
14622 return 0;
14624 _ACEOF
14625 if ac_fn_c_try_link "$LINENO"; then :
14626 ac_cv_lib_hesiod_hes_getmailhost=yes
14627 else
14628 ac_cv_lib_hesiod_hes_getmailhost=no
14630 rm -f core conftest.err conftest.$ac_objext \
14631 conftest$ac_exeext conftest.$ac_ext
14632 LIBS=$ac_check_lib_save_LIBS
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14635 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14636 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14637 hesiod=yes
14638 else
14645 if test x"$hesiod" = xyes; then
14647 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14649 LIBHESIOD=-lhesiod
14654 # Do we need libresolv (due to res_init or Hesiod)?
14655 if test "$resolv" = yes ; then
14657 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14659 LIBRESOLV=-lresolv
14660 else
14661 LIBRESOLV=
14665 # These tell us which Kerberos-related libraries to use.
14666 COM_ERRLIB=
14667 CRYPTOLIB=
14668 KRB5LIB=
14669 DESLIB=
14670 KRB4LIB=
14672 if test "${with_kerberos}" != no; then
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14674 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14675 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14676 $as_echo_n "(cached) " >&6
14677 else
14678 ac_check_lib_save_LIBS=$LIBS
14679 LIBS="-lcom_err $LIBS"
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14683 /* Override any GCC internal prototype to avoid an error.
14684 Use char because int might match the return type of a GCC
14685 builtin and then its argument prototype would still apply. */
14686 #ifdef __cplusplus
14687 extern "C"
14688 #endif
14689 char com_err ();
14691 main ()
14693 return com_err ();
14695 return 0;
14697 _ACEOF
14698 if ac_fn_c_try_link "$LINENO"; then :
14699 ac_cv_lib_com_err_com_err=yes
14700 else
14701 ac_cv_lib_com_err_com_err=no
14703 rm -f core conftest.err conftest.$ac_objext \
14704 conftest$ac_exeext conftest.$ac_ext
14705 LIBS=$ac_check_lib_save_LIBS
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14708 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14709 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14710 have_com_err=yes
14711 else
14712 have_com_err=no
14715 if test $have_com_err = yes; then
14716 COM_ERRLIB=-lcom_err
14717 LIBS="$COM_ERRLIB $LIBS"
14719 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14723 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14724 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14725 $as_echo_n "(cached) " >&6
14726 else
14727 ac_check_lib_save_LIBS=$LIBS
14728 LIBS="-lcrypto $LIBS"
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14732 /* Override any GCC internal prototype to avoid an error.
14733 Use char because int might match the return type of a GCC
14734 builtin and then its argument prototype would still apply. */
14735 #ifdef __cplusplus
14736 extern "C"
14737 #endif
14738 char mit_des_cbc_encrypt ();
14740 main ()
14742 return mit_des_cbc_encrypt ();
14744 return 0;
14746 _ACEOF
14747 if ac_fn_c_try_link "$LINENO"; then :
14748 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14749 else
14750 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14752 rm -f core conftest.err conftest.$ac_objext \
14753 conftest$ac_exeext conftest.$ac_ext
14754 LIBS=$ac_check_lib_save_LIBS
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14757 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14758 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14759 have_crypto=yes
14760 else
14761 have_crypto=no
14764 if test $have_crypto = yes; then
14765 CRYPTOLIB=-lcrypto
14766 LIBS="$CRYPTOLIB $LIBS"
14768 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14772 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14773 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14774 $as_echo_n "(cached) " >&6
14775 else
14776 ac_check_lib_save_LIBS=$LIBS
14777 LIBS="-lk5crypto $LIBS"
14778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14781 /* Override any GCC internal prototype to avoid an error.
14782 Use char because int might match the return type of a GCC
14783 builtin and then its argument prototype would still apply. */
14784 #ifdef __cplusplus
14785 extern "C"
14786 #endif
14787 char mit_des_cbc_encrypt ();
14789 main ()
14791 return mit_des_cbc_encrypt ();
14793 return 0;
14795 _ACEOF
14796 if ac_fn_c_try_link "$LINENO"; then :
14797 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14798 else
14799 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14801 rm -f core conftest.err conftest.$ac_objext \
14802 conftest$ac_exeext conftest.$ac_ext
14803 LIBS=$ac_check_lib_save_LIBS
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14806 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14807 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14808 have_k5crypto=yes
14809 else
14810 have_k5crypto=no
14813 if test $have_k5crypto = yes; then
14814 CRYPTOLIB=-lk5crypto
14815 LIBS="$CRYPTOLIB $LIBS"
14817 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14821 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14822 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14825 ac_check_lib_save_LIBS=$LIBS
14826 LIBS="-lkrb5 $LIBS"
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14830 /* Override any GCC internal prototype to avoid an error.
14831 Use char because int might match the return type of a GCC
14832 builtin and then its argument prototype would still apply. */
14833 #ifdef __cplusplus
14834 extern "C"
14835 #endif
14836 char krb5_init_context ();
14838 main ()
14840 return krb5_init_context ();
14842 return 0;
14844 _ACEOF
14845 if ac_fn_c_try_link "$LINENO"; then :
14846 ac_cv_lib_krb5_krb5_init_context=yes
14847 else
14848 ac_cv_lib_krb5_krb5_init_context=no
14850 rm -f core conftest.err conftest.$ac_objext \
14851 conftest$ac_exeext conftest.$ac_ext
14852 LIBS=$ac_check_lib_save_LIBS
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14855 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14856 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14857 have_krb5=yes
14858 else
14859 have_krb5=no
14862 if test $have_krb5=yes; then
14863 KRB5LIB=-lkrb5
14864 LIBS="$KRB5LIB $LIBS"
14866 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14869 if test "${with_kerberos5}" = no; then
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14871 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14872 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 ac_check_lib_save_LIBS=$LIBS
14876 LIBS="-ldes425 $LIBS"
14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14880 /* Override any GCC internal prototype to avoid an error.
14881 Use char because int might match the return type of a GCC
14882 builtin and then its argument prototype would still apply. */
14883 #ifdef __cplusplus
14884 extern "C"
14885 #endif
14886 char des_cbc_encrypt ();
14888 main ()
14890 return des_cbc_encrypt ();
14892 return 0;
14894 _ACEOF
14895 if ac_fn_c_try_link "$LINENO"; then :
14896 ac_cv_lib_des425_des_cbc_encrypt=yes
14897 else
14898 ac_cv_lib_des425_des_cbc_encrypt=no
14900 rm -f core conftest.err conftest.$ac_objext \
14901 conftest$ac_exeext conftest.$ac_ext
14902 LIBS=$ac_check_lib_save_LIBS
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14905 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14906 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14907 have_des425=yes
14908 else
14909 have_des425=no
14912 if test $have_des425 = yes; then
14913 DESLIB=-ldes425
14914 LIBS="$DESLIB $LIBS"
14916 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14918 else
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14920 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14921 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14922 $as_echo_n "(cached) " >&6
14923 else
14924 ac_check_lib_save_LIBS=$LIBS
14925 LIBS="-ldes $LIBS"
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14929 /* Override any GCC internal prototype to avoid an error.
14930 Use char because int might match the return type of a GCC
14931 builtin and then its argument prototype would still apply. */
14932 #ifdef __cplusplus
14933 extern "C"
14934 #endif
14935 char des_cbc_encrypt ();
14937 main ()
14939 return des_cbc_encrypt ();
14941 return 0;
14943 _ACEOF
14944 if ac_fn_c_try_link "$LINENO"; then :
14945 ac_cv_lib_des_des_cbc_encrypt=yes
14946 else
14947 ac_cv_lib_des_des_cbc_encrypt=no
14949 rm -f core conftest.err conftest.$ac_objext \
14950 conftest$ac_exeext conftest.$ac_ext
14951 LIBS=$ac_check_lib_save_LIBS
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14954 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14955 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14956 have_des=yes
14957 else
14958 have_des=no
14961 if test $have_des = yes; then
14962 DESLIB=-ldes
14963 LIBS="$DESLIB $LIBS"
14965 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14970 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14971 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14972 $as_echo_n "(cached) " >&6
14973 else
14974 ac_check_lib_save_LIBS=$LIBS
14975 LIBS="-lkrb4 $LIBS"
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14979 /* Override any GCC internal prototype to avoid an error.
14980 Use char because int might match the return type of a GCC
14981 builtin and then its argument prototype would still apply. */
14982 #ifdef __cplusplus
14983 extern "C"
14984 #endif
14985 char krb_get_cred ();
14987 main ()
14989 return krb_get_cred ();
14991 return 0;
14993 _ACEOF
14994 if ac_fn_c_try_link "$LINENO"; then :
14995 ac_cv_lib_krb4_krb_get_cred=yes
14996 else
14997 ac_cv_lib_krb4_krb_get_cred=no
14999 rm -f core conftest.err conftest.$ac_objext \
15000 conftest$ac_exeext conftest.$ac_ext
15001 LIBS=$ac_check_lib_save_LIBS
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15004 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15005 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15006 have_krb4=yes
15007 else
15008 have_krb4=no
15011 if test $have_krb4 = yes; then
15012 KRB4LIB=-lkrb4
15013 LIBS="$KRB4LIB $LIBS"
15015 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15017 else
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15019 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15020 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15021 $as_echo_n "(cached) " >&6
15022 else
15023 ac_check_lib_save_LIBS=$LIBS
15024 LIBS="-lkrb $LIBS"
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15028 /* Override any GCC internal prototype to avoid an error.
15029 Use char because int might match the return type of a GCC
15030 builtin and then its argument prototype would still apply. */
15031 #ifdef __cplusplus
15032 extern "C"
15033 #endif
15034 char krb_get_cred ();
15036 main ()
15038 return krb_get_cred ();
15040 return 0;
15042 _ACEOF
15043 if ac_fn_c_try_link "$LINENO"; then :
15044 ac_cv_lib_krb_krb_get_cred=yes
15045 else
15046 ac_cv_lib_krb_krb_get_cred=no
15048 rm -f core conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15050 LIBS=$ac_check_lib_save_LIBS
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15053 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15054 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15055 have_krb=yes
15056 else
15057 have_krb=no
15060 if test $have_krb = yes; then
15061 KRB4LIB=-lkrb
15062 LIBS="$KRB4LIB $LIBS"
15064 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15070 if test "${with_kerberos5}" != no; then
15071 for ac_header in krb5.h
15072 do :
15073 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15074 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15075 cat >>confdefs.h <<_ACEOF
15076 #define HAVE_KRB5_H 1
15077 _ACEOF
15078 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15080 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15082 cat >>confdefs.h <<_ACEOF
15083 #define HAVE_KRB5_ERROR_TEXT 1
15084 _ACEOF
15088 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15090 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15092 cat >>confdefs.h <<_ACEOF
15093 #define HAVE_KRB5_ERROR_E_TEXT 1
15094 _ACEOF
15101 done
15103 else
15104 for ac_header in des.h
15105 do :
15106 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15107 if test "x$ac_cv_header_des_h" = x""yes; then :
15108 cat >>confdefs.h <<_ACEOF
15109 #define HAVE_DES_H 1
15110 _ACEOF
15112 else
15113 for ac_header in kerberosIV/des.h
15114 do :
15115 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15116 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15117 cat >>confdefs.h <<_ACEOF
15118 #define HAVE_KERBEROSIV_DES_H 1
15119 _ACEOF
15121 else
15122 for ac_header in kerberos/des.h
15123 do :
15124 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15125 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15126 cat >>confdefs.h <<_ACEOF
15127 #define HAVE_KERBEROS_DES_H 1
15128 _ACEOF
15132 done
15136 done
15140 done
15142 for ac_header in krb.h
15143 do :
15144 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15145 if test "x$ac_cv_header_krb_h" = x""yes; then :
15146 cat >>confdefs.h <<_ACEOF
15147 #define HAVE_KRB_H 1
15148 _ACEOF
15150 else
15151 for ac_header in kerberosIV/krb.h
15152 do :
15153 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15154 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15155 cat >>confdefs.h <<_ACEOF
15156 #define HAVE_KERBEROSIV_KRB_H 1
15157 _ACEOF
15159 else
15160 for ac_header in kerberos/krb.h
15161 do :
15162 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15163 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15164 cat >>confdefs.h <<_ACEOF
15165 #define HAVE_KERBEROS_KRB_H 1
15166 _ACEOF
15170 done
15174 done
15178 done
15181 for ac_header in com_err.h
15182 do :
15183 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15184 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15185 cat >>confdefs.h <<_ACEOF
15186 #define HAVE_COM_ERR_H 1
15187 _ACEOF
15191 done
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15202 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15203 if test "${emacs_cv_localtime_cache+set}" = set; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15206 if test x$ac_cv_func_tzset = xyes; then
15207 if test "$cross_compiling" = yes; then :
15208 # If we have tzset, assume the worst when cross-compiling.
15209 emacs_cv_localtime_cache=yes
15210 else
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 #include <time.h>
15214 char TZ_GMT0[] = "TZ=GMT0";
15215 char TZ_PST8[] = "TZ=PST8";
15216 main()
15218 time_t now = time ((time_t *) 0);
15219 int hour_GMT0, hour_unset;
15220 if (putenv (TZ_GMT0) != 0)
15221 exit (1);
15222 hour_GMT0 = localtime (&now)->tm_hour;
15223 unsetenv("TZ");
15224 hour_unset = localtime (&now)->tm_hour;
15225 if (putenv (TZ_PST8) != 0)
15226 exit (1);
15227 if (localtime (&now)->tm_hour == hour_GMT0)
15228 exit (1);
15229 unsetenv("TZ");
15230 if (localtime (&now)->tm_hour != hour_unset)
15231 exit (1);
15232 exit (0);
15234 _ACEOF
15235 if ac_fn_c_try_run "$LINENO"; then :
15236 emacs_cv_localtime_cache=no
15237 else
15238 emacs_cv_localtime_cache=yes
15240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15241 conftest.$ac_objext conftest.beam conftest.$ac_ext
15244 else
15245 # If we lack tzset, report that localtime does not cache TZ,
15246 # since we can't invalidate the cache if we don't have tzset.
15247 emacs_cv_localtime_cache=no
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15251 $as_echo "$emacs_cv_localtime_cache" >&6; }
15252 if test $emacs_cv_localtime_cache = yes; then
15254 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15258 if test "x$HAVE_TIMEVAL" = xyes; then
15259 for ac_func in gettimeofday
15260 do :
15261 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15262 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15263 cat >>confdefs.h <<_ACEOF
15264 #define HAVE_GETTIMEOFDAY 1
15265 _ACEOF
15268 done
15270 if test $ac_cv_func_gettimeofday = yes; then
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15272 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15273 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15274 $as_echo_n "(cached) " >&6
15275 else
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15279 #ifdef TIME_WITH_SYS_TIME
15280 #include <sys/time.h>
15281 #include <time.h>
15282 #else
15283 #ifdef HAVE_SYS_TIME_H
15284 #include <sys/time.h>
15285 #else
15286 #include <time.h>
15287 #endif
15288 #endif
15290 main ()
15292 struct timeval time;
15293 gettimeofday (&time, 0);
15295 return 0;
15297 _ACEOF
15298 if ac_fn_c_try_compile "$LINENO"; then :
15299 emacs_cv_gettimeofday_two_arguments=yes
15300 else
15301 emacs_cv_gettimeofday_two_arguments=no
15303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15306 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15307 if test $emacs_cv_gettimeofday_two_arguments = no; then
15309 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15315 ok_so_far=yes
15316 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15317 if test "x$ac_cv_func_socket" = x""yes; then :
15319 else
15320 ok_so_far=no
15323 if test $ok_so_far = yes; then
15324 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15325 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15327 else
15328 ok_so_far=no
15333 if test $ok_so_far = yes; then
15334 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15335 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15337 else
15338 ok_so_far=no
15343 if test $ok_so_far = yes; then
15345 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15349 if test -f /usr/lpp/X11/bin/smt.exp; then
15351 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15356 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15357 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15359 $as_echo "yes" >&6; }
15361 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15363 else
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365 $as_echo "no" >&6; }
15368 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15369 if test "x$ac_cv_type_pid_t" = x""yes; then :
15371 else
15373 cat >>confdefs.h <<_ACEOF
15374 #define pid_t int
15375 _ACEOF
15379 for ac_header in vfork.h
15380 do :
15381 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15382 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15383 cat >>confdefs.h <<_ACEOF
15384 #define HAVE_VFORK_H 1
15385 _ACEOF
15389 done
15391 for ac_func in fork vfork
15392 do :
15393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15394 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15395 eval as_val=\$$as_ac_var
15396 if test "x$as_val" = x""yes; then :
15397 cat >>confdefs.h <<_ACEOF
15398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15399 _ACEOF
15402 done
15404 if test "x$ac_cv_func_fork" = xyes; then
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15406 $as_echo_n "checking for working fork... " >&6; }
15407 if test "${ac_cv_func_fork_works+set}" = set; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15410 if test "$cross_compiling" = yes; then :
15411 ac_cv_func_fork_works=cross
15412 else
15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15415 $ac_includes_default
15417 main ()
15420 /* By Ruediger Kuhlmann. */
15421 return fork () < 0;
15424 return 0;
15426 _ACEOF
15427 if ac_fn_c_try_run "$LINENO"; then :
15428 ac_cv_func_fork_works=yes
15429 else
15430 ac_cv_func_fork_works=no
15432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15433 conftest.$ac_objext conftest.beam conftest.$ac_ext
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15438 $as_echo "$ac_cv_func_fork_works" >&6; }
15440 else
15441 ac_cv_func_fork_works=$ac_cv_func_fork
15443 if test "x$ac_cv_func_fork_works" = xcross; then
15444 case $host in
15445 *-*-amigaos* | *-*-msdosdjgpp*)
15446 # Override, as these systems have only a dummy fork() stub
15447 ac_cv_func_fork_works=no
15450 ac_cv_func_fork_works=yes
15452 esac
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15454 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15456 ac_cv_func_vfork_works=$ac_cv_func_vfork
15457 if test "x$ac_cv_func_vfork" = xyes; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15459 $as_echo_n "checking for working vfork... " >&6; }
15460 if test "${ac_cv_func_vfork_works+set}" = set; then :
15461 $as_echo_n "(cached) " >&6
15462 else
15463 if test "$cross_compiling" = yes; then :
15464 ac_cv_func_vfork_works=cross
15465 else
15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468 /* Thanks to Paul Eggert for this test. */
15469 $ac_includes_default
15470 #include <sys/wait.h>
15471 #ifdef HAVE_VFORK_H
15472 # include <vfork.h>
15473 #endif
15474 /* On some sparc systems, changes by the child to local and incoming
15475 argument registers are propagated back to the parent. The compiler
15476 is told about this with #include <vfork.h>, but some compilers
15477 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15478 static variable whose address is put into a register that is
15479 clobbered by the vfork. */
15480 static void
15481 #ifdef __cplusplus
15482 sparc_address_test (int arg)
15483 # else
15484 sparc_address_test (arg) int arg;
15485 #endif
15487 static pid_t child;
15488 if (!child) {
15489 child = vfork ();
15490 if (child < 0) {
15491 perror ("vfork");
15492 _exit(2);
15494 if (!child) {
15495 arg = getpid();
15496 write(-1, "", 0);
15497 _exit (arg);
15503 main ()
15505 pid_t parent = getpid ();
15506 pid_t child;
15508 sparc_address_test (0);
15510 child = vfork ();
15512 if (child == 0) {
15513 /* Here is another test for sparc vfork register problems. This
15514 test uses lots of local variables, at least as many local
15515 variables as main has allocated so far including compiler
15516 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15517 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15518 reuse the register of parent for one of the local variables,
15519 since it will think that parent can't possibly be used any more
15520 in this routine. Assigning to the local variable will thus
15521 munge parent in the parent process. */
15522 pid_t
15523 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15524 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15525 /* Convince the compiler that p..p7 are live; otherwise, it might
15526 use the same hardware register for all 8 local variables. */
15527 if (p != p1 || p != p2 || p != p3 || p != p4
15528 || p != p5 || p != p6 || p != p7)
15529 _exit(1);
15531 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15532 from child file descriptors. If the child closes a descriptor
15533 before it execs or exits, this munges the parent's descriptor
15534 as well. Test for this by closing stdout in the child. */
15535 _exit(close(fileno(stdout)) != 0);
15536 } else {
15537 int status;
15538 struct stat st;
15540 while (wait(&status) != child)
15542 return (
15543 /* Was there some problem with vforking? */
15544 child < 0
15546 /* Did the child fail? (This shouldn't happen.) */
15547 || status
15549 /* Did the vfork/compiler bug occur? */
15550 || parent != getpid()
15552 /* Did the file descriptor bug occur? */
15553 || fstat(fileno(stdout), &st) != 0
15557 _ACEOF
15558 if ac_fn_c_try_run "$LINENO"; then :
15559 ac_cv_func_vfork_works=yes
15560 else
15561 ac_cv_func_vfork_works=no
15563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15564 conftest.$ac_objext conftest.beam conftest.$ac_ext
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15569 $as_echo "$ac_cv_func_vfork_works" >&6; }
15572 if test "x$ac_cv_func_fork_works" = xcross; then
15573 ac_cv_func_vfork_works=$ac_cv_func_vfork
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15575 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15578 if test "x$ac_cv_func_vfork_works" = xyes; then
15580 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15582 else
15584 $as_echo "#define vfork fork" >>confdefs.h
15587 if test "x$ac_cv_func_fork_works" = xyes; then
15589 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15594 for ac_func in snprintf
15595 do :
15596 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15597 if test "x$ac_cv_func_snprintf" = x""yes; then :
15598 cat >>confdefs.h <<_ACEOF
15599 #define HAVE_SNPRINTF 1
15600 _ACEOF
15603 done
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15607 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15608 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15609 $as_echo_n "(cached) " >&6
15610 else
15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15613 #include <langinfo.h>
15615 main ()
15617 char* cs = nl_langinfo(CODESET);
15619 return 0;
15621 _ACEOF
15622 if ac_fn_c_try_link "$LINENO"; then :
15623 emacs_cv_langinfo_codeset=yes
15624 else
15625 emacs_cv_langinfo_codeset=no
15627 rm -f core conftest.err conftest.$ac_objext \
15628 conftest$ac_exeext conftest.$ac_ext
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15632 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15633 if test $emacs_cv_langinfo_codeset = yes; then
15635 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15640 $as_echo_n "checking for mbstate_t... " >&6; }
15641 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15642 $as_echo_n "(cached) " >&6
15643 else
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15646 $ac_includes_default
15647 # include <wchar.h>
15649 main ()
15651 mbstate_t x; return sizeof x;
15653 return 0;
15655 _ACEOF
15656 if ac_fn_c_try_compile "$LINENO"; then :
15657 ac_cv_type_mbstate_t=yes
15658 else
15659 ac_cv_type_mbstate_t=no
15661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15664 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15665 if test $ac_cv_type_mbstate_t = yes; then
15667 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15669 else
15671 $as_echo "#define mbstate_t int" >>confdefs.h
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15676 $as_echo_n "checking for C restricted array declarations... " >&6; }
15677 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15678 $as_echo_n "(cached) " >&6
15679 else
15680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h. */
15682 void fred (int x[__restrict]);
15684 main ()
15688 return 0;
15690 _ACEOF
15691 if ac_fn_c_try_compile "$LINENO"; then :
15692 emacs_cv_c_restrict_arr=yes
15693 else
15694 emacs_cv_c_restrict_arr=no
15696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15699 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15700 if test "$emacs_cv_c_restrict_arr" = yes; then
15702 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15707 # Set up the CFLAGS for real compilation, so we can substitute it.
15708 CFLAGS="$REAL_CFLAGS"
15709 CPPFLAGS="$REAL_CPPFLAGS"
15711 ## Hack to detect a buggy GCC version.
15712 if test "x$GCC" = xyes \
15713 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15714 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15715 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15716 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15719 version=$PACKAGE_VERSION
15721 ### Specify what sort of things we'll be editing into Makefile and config.h.
15722 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15725 ## Unused?
15746 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15747 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15748 ## end of LIBX_BASE, but nothing ever set it.
15753 ## Used in lwlib/Makefile.in.
15755 if test -n "${machfile}"; then
15756 M_FILE="\$(srcdir)/${machfile}"
15757 else
15758 M_FILE=
15760 S_FILE="\$(srcdir)/${opsysfile}"
15771 cat >>confdefs.h <<_ACEOF
15772 #define EMACS_CONFIGURATION "${canonical}"
15773 _ACEOF
15776 cat >>confdefs.h <<_ACEOF
15777 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15778 _ACEOF
15780 if test -n "$machfile"; then
15782 cat >>confdefs.h <<_ACEOF
15783 #define config_machfile "${machfile}"
15784 _ACEOF
15788 cat >>confdefs.h <<_ACEOF
15789 #define config_opsysfile "${opsysfile}"
15790 _ACEOF
15793 XMENU_OBJ=
15794 XOBJ=
15795 FONT_OBJ=
15796 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15798 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15800 XMENU_OBJ=xmenu.o
15801 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15802 FONT_OBJ=xfont.o
15803 if test "$HAVE_XFT" = "yes"; then
15804 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15805 elif test "$HAVE_FREETYPE" = "yes"; then
15806 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15814 WIDGET_OBJ=
15815 MOTIF_LIBW=
15816 if test "${USE_X_TOOLKIT}" != "none" ; then
15817 WIDGET_OBJ=widget.o
15819 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15821 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15823 $as_echo "#define USE_LUCID 1" >>confdefs.h
15825 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15827 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15829 MOTIF_LIBW=-lXm
15830 case "$opsys" in
15831 gnu-linux)
15832 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15833 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15836 unixware)
15837 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15838 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15839 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15842 aix4-2)
15843 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15844 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15846 esac
15847 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15852 TOOLKIT_LIBW=
15853 case "$USE_X_TOOLKIT" in
15854 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15855 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15856 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15857 esac
15860 if test "$USE_X_TOOLKIT" = "none"; then
15861 LIBXT_OTHER="\$(LIBXSM)"
15862 OLDXMENU_TARGET="really-oldXMenu"
15863 else
15864 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15865 OLDXMENU_TARGET="really-lwlib"
15869 ## The X Menu stuff is present in the X10 distribution, but missing
15870 ## from X11. If we have X10, just use the installed library;
15871 ## otherwise, use our own copy.
15872 if test "${HAVE_X11}" = "yes" ; then
15874 $as_echo "#define HAVE_X11 1" >>confdefs.h
15877 if test "$USE_X_TOOLKIT" = "none"; then
15878 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15879 else
15880 OLDXMENU="\${lwlibdir}/liblw.a"
15882 LIBXMENU="\$(OLDXMENU)"
15883 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15884 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15885 else
15886 ## For a syntactically valid Makefile; not actually used for anything.
15887 ## See comments in src/Makefile.in.
15888 OLDXMENU=nothing
15889 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15890 if test "${HAVE_X_WINDOWS}" = "yes"; then
15891 LIBXMENU="-lXMenu"
15892 else
15893 LIBXMENU=
15895 LIBX_OTHER=
15896 OLDXMENU_DEPS=
15899 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15900 OLDXMENU_TARGET=
15901 OLDXMENU=nothing
15902 LIBXMENU=
15903 OLDXMENU_DEPS=
15912 if test "${HAVE_MENUS}" = "yes" ; then
15914 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15918 if test "${GNU_MALLOC}" = "yes" ; then
15920 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15924 RALLOC_OBJ=
15925 if test "${REL_ALLOC}" = "yes" ; then
15927 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15930 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15934 if test "$opsys" = "cygwin"; then
15935 CYGWIN_OBJ="sheap.o"
15936 ## Cygwin differs because of its unexec().
15937 PRE_ALLOC_OBJ=
15938 POST_ALLOC_OBJ=lastfile.o
15939 else
15940 CYGWIN_OBJ=
15941 PRE_ALLOC_OBJ=lastfile.o
15942 POST_ALLOC_OBJ=
15948 # Configure gnulib here, now that we know LIBS.
15960 LIBC_FATAL_STDERR_=1
15961 export LIBC_FATAL_STDERR_
15963 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15964 # for constant arguments. Useless!
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15966 $as_echo_n "checking for working alloca.h... " >&6; }
15967 if test "${ac_cv_working_alloca_h+set}" = set; then :
15968 $as_echo_n "(cached) " >&6
15969 else
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15972 #include <alloca.h>
15974 main ()
15976 char *p = (char *) alloca (2 * sizeof (int));
15977 if (p) return 0;
15979 return 0;
15981 _ACEOF
15982 if ac_fn_c_try_link "$LINENO"; then :
15983 ac_cv_working_alloca_h=yes
15984 else
15985 ac_cv_working_alloca_h=no
15987 rm -f core conftest.err conftest.$ac_objext \
15988 conftest$ac_exeext conftest.$ac_ext
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15991 $as_echo "$ac_cv_working_alloca_h" >&6; }
15992 if test $ac_cv_working_alloca_h = yes; then
15994 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15999 $as_echo_n "checking for alloca... " >&6; }
16000 if test "${ac_cv_func_alloca_works+set}" = set; then :
16001 $as_echo_n "(cached) " >&6
16002 else
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16005 #ifdef __GNUC__
16006 # define alloca __builtin_alloca
16007 #else
16008 # ifdef _MSC_VER
16009 # include <malloc.h>
16010 # define alloca _alloca
16011 # else
16012 # ifdef HAVE_ALLOCA_H
16013 # include <alloca.h>
16014 # else
16015 # ifdef _AIX
16016 #pragma alloca
16017 # else
16018 # ifndef alloca /* predefined by HP cc +Olibcalls */
16019 char *alloca ();
16020 # endif
16021 # endif
16022 # endif
16023 # endif
16024 #endif
16027 main ()
16029 char *p = (char *) alloca (1);
16030 if (p) return 0;
16032 return 0;
16034 _ACEOF
16035 if ac_fn_c_try_link "$LINENO"; then :
16036 ac_cv_func_alloca_works=yes
16037 else
16038 ac_cv_func_alloca_works=no
16040 rm -f core conftest.err conftest.$ac_objext \
16041 conftest$ac_exeext conftest.$ac_ext
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16044 $as_echo "$ac_cv_func_alloca_works" >&6; }
16046 if test $ac_cv_func_alloca_works = yes; then
16048 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16050 else
16051 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16052 # that cause trouble. Some versions do not even contain alloca or
16053 # contain a buggy version. If you still want to use their alloca,
16054 # use ar to extract alloca.o from them instead of compiling alloca.c.
16060 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16062 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16066 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16067 if test "${ac_cv_os_cray+set}" = set; then :
16068 $as_echo_n "(cached) " >&6
16069 else
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16072 #if defined CRAY && ! defined CRAY2
16073 webecray
16074 #else
16075 wenotbecray
16076 #endif
16078 _ACEOF
16079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16080 $EGREP "webecray" >/dev/null 2>&1; then :
16081 ac_cv_os_cray=yes
16082 else
16083 ac_cv_os_cray=no
16085 rm -f conftest*
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16089 $as_echo "$ac_cv_os_cray" >&6; }
16090 if test $ac_cv_os_cray = yes; then
16091 for ac_func in _getb67 GETB67 getb67; do
16092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16093 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16094 eval as_val=\$$as_ac_var
16095 if test "x$as_val" = x""yes; then :
16097 cat >>confdefs.h <<_ACEOF
16098 #define CRAY_STACKSEG_END $ac_func
16099 _ACEOF
16101 break
16104 done
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16108 $as_echo_n "checking stack direction for C alloca... " >&6; }
16109 if test "${ac_cv_c_stack_direction+set}" = set; then :
16110 $as_echo_n "(cached) " >&6
16111 else
16112 if test "$cross_compiling" = yes; then :
16113 ac_cv_c_stack_direction=0
16114 else
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h. */
16117 $ac_includes_default
16119 find_stack_direction (int *addr, int depth)
16121 int dir, dummy = 0;
16122 if (! addr)
16123 addr = &dummy;
16124 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16125 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16126 return dir + dummy;
16130 main (int argc, char **argv)
16132 return find_stack_direction (0, argc + !argv + 20) < 0;
16134 _ACEOF
16135 if ac_fn_c_try_run "$LINENO"; then :
16136 ac_cv_c_stack_direction=1
16137 else
16138 ac_cv_c_stack_direction=-1
16140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16141 conftest.$ac_objext conftest.beam conftest.$ac_ext
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16146 $as_echo "$ac_cv_c_stack_direction" >&6; }
16147 cat >>confdefs.h <<_ACEOF
16148 #define STACK_DIRECTION $ac_cv_c_stack_direction
16149 _ACEOF
16157 for ac_func in $ac_func_list
16158 do :
16159 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16160 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16161 eval as_val=\$$as_ac_var
16162 if test "x$as_val" = x""yes; then :
16163 cat >>confdefs.h <<_ACEOF
16164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16165 _ACEOF
16168 done
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16174 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16175 if test "${ac_cv_c_bigendian+set}" = set; then :
16176 $as_echo_n "(cached) " >&6
16177 else
16178 ac_cv_c_bigendian=unknown
16179 # See if we're dealing with a universal compiler.
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16182 #ifndef __APPLE_CC__
16183 not a universal capable compiler
16184 #endif
16185 typedef int dummy;
16187 _ACEOF
16188 if ac_fn_c_try_compile "$LINENO"; then :
16190 # Check for potential -arch flags. It is not universal unless
16191 # there are at least two -arch flags with different values.
16192 ac_arch=
16193 ac_prev=
16194 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16195 if test -n "$ac_prev"; then
16196 case $ac_word in
16197 i?86 | x86_64 | ppc | ppc64)
16198 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16199 ac_arch=$ac_word
16200 else
16201 ac_cv_c_bigendian=universal
16202 break
16205 esac
16206 ac_prev=
16207 elif test "x$ac_word" = "x-arch"; then
16208 ac_prev=arch
16210 done
16212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213 if test $ac_cv_c_bigendian = unknown; then
16214 # See if sys/param.h defines the BYTE_ORDER macro.
16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216 /* end confdefs.h. */
16217 #include <sys/types.h>
16218 #include <sys/param.h>
16221 main ()
16223 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16224 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16225 && LITTLE_ENDIAN)
16226 bogus endian macros
16227 #endif
16230 return 0;
16232 _ACEOF
16233 if ac_fn_c_try_compile "$LINENO"; then :
16234 # It does; now see whether it defined to BIG_ENDIAN or not.
16235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16236 /* end confdefs.h. */
16237 #include <sys/types.h>
16238 #include <sys/param.h>
16241 main ()
16243 #if BYTE_ORDER != BIG_ENDIAN
16244 not big endian
16245 #endif
16248 return 0;
16250 _ACEOF
16251 if ac_fn_c_try_compile "$LINENO"; then :
16252 ac_cv_c_bigendian=yes
16253 else
16254 ac_cv_c_bigendian=no
16256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260 if test $ac_cv_c_bigendian = unknown; then
16261 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16264 #include <limits.h>
16267 main ()
16269 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16270 bogus endian macros
16271 #endif
16274 return 0;
16276 _ACEOF
16277 if ac_fn_c_try_compile "$LINENO"; then :
16278 # It does; now see whether it defined to _BIG_ENDIAN or not.
16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16281 #include <limits.h>
16284 main ()
16286 #ifndef _BIG_ENDIAN
16287 not big endian
16288 #endif
16291 return 0;
16293 _ACEOF
16294 if ac_fn_c_try_compile "$LINENO"; then :
16295 ac_cv_c_bigendian=yes
16296 else
16297 ac_cv_c_bigendian=no
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16303 if test $ac_cv_c_bigendian = unknown; then
16304 # Compile a test program.
16305 if test "$cross_compiling" = yes; then :
16306 # Try to guess by grepping values from an object file.
16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308 /* end confdefs.h. */
16309 short int ascii_mm[] =
16310 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16311 short int ascii_ii[] =
16312 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16313 int use_ascii (int i) {
16314 return ascii_mm[i] + ascii_ii[i];
16316 short int ebcdic_ii[] =
16317 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16318 short int ebcdic_mm[] =
16319 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16320 int use_ebcdic (int i) {
16321 return ebcdic_mm[i] + ebcdic_ii[i];
16323 extern int foo;
16326 main ()
16328 return use_ascii (foo) == use_ebcdic (foo);
16330 return 0;
16332 _ACEOF
16333 if ac_fn_c_try_compile "$LINENO"; then :
16334 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16335 ac_cv_c_bigendian=yes
16337 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16338 if test "$ac_cv_c_bigendian" = unknown; then
16339 ac_cv_c_bigendian=no
16340 else
16341 # finding both strings is unlikely to happen, but who knows?
16342 ac_cv_c_bigendian=unknown
16346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16347 else
16348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16349 /* end confdefs.h. */
16350 $ac_includes_default
16352 main ()
16355 /* Are we little or big endian? From Harbison&Steele. */
16356 union
16358 long int l;
16359 char c[sizeof (long int)];
16360 } u;
16361 u.l = 1;
16362 return u.c[sizeof (long int) - 1] == 1;
16365 return 0;
16367 _ACEOF
16368 if ac_fn_c_try_run "$LINENO"; then :
16369 ac_cv_c_bigendian=no
16370 else
16371 ac_cv_c_bigendian=yes
16373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16374 conftest.$ac_objext conftest.beam conftest.$ac_ext
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16380 $as_echo "$ac_cv_c_bigendian" >&6; }
16381 case $ac_cv_c_bigendian in #(
16382 yes)
16383 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16384 ;; #(
16386 ;; #(
16387 universal)
16389 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16391 ;; #(
16393 as_fn_error "unknown endianness
16394 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16395 esac
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16399 $as_echo_n "checking for inline... " >&6; }
16400 if test "${ac_cv_c_inline+set}" = set; then :
16401 $as_echo_n "(cached) " >&6
16402 else
16403 ac_cv_c_inline=no
16404 for ac_kw in inline __inline__ __inline; do
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h. */
16407 #ifndef __cplusplus
16408 typedef int foo_t;
16409 static $ac_kw foo_t static_foo () {return 0; }
16410 $ac_kw foo_t foo () {return 0; }
16411 #endif
16413 _ACEOF
16414 if ac_fn_c_try_compile "$LINENO"; then :
16415 ac_cv_c_inline=$ac_kw
16417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16418 test "$ac_cv_c_inline" != no && break
16419 done
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16423 $as_echo "$ac_cv_c_inline" >&6; }
16425 case $ac_cv_c_inline in
16426 inline | yes) ;;
16428 case $ac_cv_c_inline in
16429 no) ac_val=;;
16430 *) ac_val=$ac_cv_c_inline;;
16431 esac
16432 cat >>confdefs.h <<_ACEOF
16433 #ifndef __cplusplus
16434 #define inline $ac_val
16435 #endif
16436 _ACEOF
16438 esac
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16442 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16443 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16444 $as_echo_n "(cached) " >&6
16445 else
16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16448 /* On HP-UX before 11.23, strtold returns a struct instead of
16449 long double. Reject implementations like that, by requiring
16450 compatibility with the C99 prototype. */
16451 #include <stdlib.h>
16452 static long double (*p) (char const *, char **) = strtold;
16453 static long double
16454 test (char const *nptr, char **endptr)
16456 long double r;
16457 r = strtold (nptr, endptr);
16458 return r;
16461 main ()
16463 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16465 return 0;
16467 _ACEOF
16468 if ac_fn_c_try_link "$LINENO"; then :
16469 gl_cv_func_c99_strtold=yes
16470 else
16471 gl_cv_func_c99_strtold=no
16473 rm -f core conftest.err conftest.$ac_objext \
16474 conftest$ac_exeext conftest.$ac_ext
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16477 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16478 if test $gl_cv_func_c99_strtold = yes; then
16480 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16485 GNULIB_CHDIR=0;
16486 GNULIB_CHOWN=0;
16487 GNULIB_CLOSE=0;
16488 GNULIB_DUP=0;
16489 GNULIB_DUP2=0;
16490 GNULIB_DUP3=0;
16491 GNULIB_ENVIRON=0;
16492 GNULIB_EUIDACCESS=0;
16493 GNULIB_FACCESSAT=0;
16494 GNULIB_FCHDIR=0;
16495 GNULIB_FCHOWNAT=0;
16496 GNULIB_FDATASYNC=0;
16497 GNULIB_FSYNC=0;
16498 GNULIB_FTRUNCATE=0;
16499 GNULIB_GETCWD=0;
16500 GNULIB_GETDOMAINNAME=0;
16501 GNULIB_GETDTABLESIZE=0;
16502 GNULIB_GETGROUPS=0;
16503 GNULIB_GETHOSTNAME=0;
16504 GNULIB_GETLOGIN=0;
16505 GNULIB_GETLOGIN_R=0;
16506 GNULIB_GETPAGESIZE=0;
16507 GNULIB_GETUSERSHELL=0;
16508 GNULIB_GROUP_MEMBER=0;
16509 GNULIB_LCHOWN=0;
16510 GNULIB_LINK=0;
16511 GNULIB_LINKAT=0;
16512 GNULIB_LSEEK=0;
16513 GNULIB_PIPE=0;
16514 GNULIB_PIPE2=0;
16515 GNULIB_PREAD=0;
16516 GNULIB_PWRITE=0;
16517 GNULIB_READ=0;
16518 GNULIB_READLINK=0;
16519 GNULIB_READLINKAT=0;
16520 GNULIB_RMDIR=0;
16521 GNULIB_SLEEP=0;
16522 GNULIB_SYMLINK=0;
16523 GNULIB_SYMLINKAT=0;
16524 GNULIB_TTYNAME_R=0;
16525 GNULIB_UNISTD_H_GETOPT=0;
16526 GNULIB_UNISTD_H_NONBLOCKING=0;
16527 GNULIB_UNISTD_H_SIGPIPE=0;
16528 GNULIB_UNLINK=0;
16529 GNULIB_UNLINKAT=0;
16530 GNULIB_USLEEP=0;
16531 GNULIB_WRITE=0;
16532 HAVE_CHOWN=1;
16533 HAVE_DUP2=1;
16534 HAVE_DUP3=1;
16535 HAVE_EUIDACCESS=1;
16536 HAVE_FACCESSAT=1;
16537 HAVE_FCHDIR=1;
16538 HAVE_FCHOWNAT=1;
16539 HAVE_FDATASYNC=1;
16540 HAVE_FSYNC=1;
16541 HAVE_FTRUNCATE=1;
16542 HAVE_GETDTABLESIZE=1;
16543 HAVE_GETGROUPS=1;
16544 HAVE_GETHOSTNAME=1;
16545 HAVE_GETLOGIN=1;
16546 HAVE_GETPAGESIZE=1;
16547 HAVE_GROUP_MEMBER=1;
16548 HAVE_LCHOWN=1;
16549 HAVE_LINK=1;
16550 HAVE_LINKAT=1;
16551 HAVE_PIPE=1;
16552 HAVE_PIPE2=1;
16553 HAVE_PREAD=1;
16554 HAVE_PWRITE=1;
16555 HAVE_READLINK=1;
16556 HAVE_READLINKAT=1;
16557 HAVE_SLEEP=1;
16558 HAVE_SYMLINK=1;
16559 HAVE_SYMLINKAT=1;
16560 HAVE_UNLINKAT=1;
16561 HAVE_USLEEP=1;
16562 HAVE_DECL_ENVIRON=1;
16563 HAVE_DECL_FCHDIR=1;
16564 HAVE_DECL_FDATASYNC=1;
16565 HAVE_DECL_GETDOMAINNAME=1;
16566 HAVE_DECL_GETLOGIN_R=1;
16567 HAVE_DECL_GETPAGESIZE=1;
16568 HAVE_DECL_GETUSERSHELL=1;
16569 HAVE_DECL_TTYNAME_R=1;
16570 HAVE_OS_H=0;
16571 HAVE_SYS_PARAM_H=0;
16572 REPLACE_CHOWN=0;
16573 REPLACE_CLOSE=0;
16574 REPLACE_DUP=0;
16575 REPLACE_DUP2=0;
16576 REPLACE_FCHOWNAT=0;
16577 REPLACE_GETCWD=0;
16578 REPLACE_GETDOMAINNAME=0;
16579 REPLACE_GETLOGIN_R=0;
16580 REPLACE_GETGROUPS=0;
16581 REPLACE_GETPAGESIZE=0;
16582 REPLACE_LCHOWN=0;
16583 REPLACE_LINK=0;
16584 REPLACE_LINKAT=0;
16585 REPLACE_LSEEK=0;
16586 REPLACE_PREAD=0;
16587 REPLACE_PWRITE=0;
16588 REPLACE_READ=0;
16589 REPLACE_READLINK=0;
16590 REPLACE_RMDIR=0;
16591 REPLACE_SLEEP=0;
16592 REPLACE_SYMLINK=0;
16593 REPLACE_TTYNAME_R=0;
16594 REPLACE_UNLINK=0;
16595 REPLACE_UNLINKAT=0;
16596 REPLACE_USLEEP=0;
16597 REPLACE_WRITE=0;
16598 UNISTD_H_HAVE_WINSOCK2_H=0;
16599 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16603 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16604 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16605 $as_echo_n "(cached) " >&6
16606 else
16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h. */
16610 #include <sys/types.h>
16611 #include <sys/stat.h>
16613 main ()
16615 struct stat s; s.st_dm_mode;
16617 return 0;
16619 _ACEOF
16620 if ac_fn_c_try_compile "$LINENO"; then :
16621 ac_cv_struct_st_dm_mode=yes
16622 else
16623 ac_cv_struct_st_dm_mode=no
16625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16628 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16630 if test $ac_cv_struct_st_dm_mode = yes; then
16632 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16637 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16638 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16639 ac_have_decl=1
16640 else
16641 ac_have_decl=0
16644 cat >>confdefs.h <<_ACEOF
16645 #define HAVE_DECL_STRMODE $ac_have_decl
16646 _ACEOF
16649 GNULIB__EXIT=0;
16650 GNULIB_ATOLL=0;
16651 GNULIB_CALLOC_POSIX=0;
16652 GNULIB_CANONICALIZE_FILE_NAME=0;
16653 GNULIB_GETLOADAVG=0;
16654 GNULIB_GETSUBOPT=0;
16655 GNULIB_GRANTPT=0;
16656 GNULIB_MALLOC_POSIX=0;
16657 GNULIB_MBTOWC=0;
16658 GNULIB_MKDTEMP=0;
16659 GNULIB_MKOSTEMP=0;
16660 GNULIB_MKOSTEMPS=0;
16661 GNULIB_MKSTEMP=0;
16662 GNULIB_MKSTEMPS=0;
16663 GNULIB_PTSNAME=0;
16664 GNULIB_PUTENV=0;
16665 GNULIB_RANDOM_R=0;
16666 GNULIB_REALLOC_POSIX=0;
16667 GNULIB_REALPATH=0;
16668 GNULIB_RPMATCH=0;
16669 GNULIB_SETENV=0;
16670 GNULIB_STRTOD=0;
16671 GNULIB_STRTOLL=0;
16672 GNULIB_STRTOULL=0;
16673 GNULIB_SYSTEM_POSIX=0;
16674 GNULIB_UNLOCKPT=0;
16675 GNULIB_UNSETENV=0;
16676 GNULIB_WCTOMB=0;
16677 HAVE__EXIT=1;
16678 HAVE_ATOLL=1;
16679 HAVE_CANONICALIZE_FILE_NAME=1;
16680 HAVE_DECL_GETLOADAVG=1;
16681 HAVE_GETSUBOPT=1;
16682 HAVE_GRANTPT=1;
16683 HAVE_MKDTEMP=1;
16684 HAVE_MKOSTEMP=1;
16685 HAVE_MKOSTEMPS=1;
16686 HAVE_MKSTEMP=1;
16687 HAVE_MKSTEMPS=1;
16688 HAVE_PTSNAME=1;
16689 HAVE_RANDOM_H=1;
16690 HAVE_RANDOM_R=1;
16691 HAVE_REALPATH=1;
16692 HAVE_RPMATCH=1;
16693 HAVE_SETENV=1;
16694 HAVE_DECL_SETENV=1;
16695 HAVE_STRTOD=1;
16696 HAVE_STRTOLL=1;
16697 HAVE_STRTOULL=1;
16698 HAVE_STRUCT_RANDOM_DATA=1;
16699 HAVE_SYS_LOADAVG_H=0;
16700 HAVE_UNLOCKPT=1;
16701 HAVE_DECL_UNSETENV=1;
16702 REPLACE_CALLOC=0;
16703 REPLACE_CANONICALIZE_FILE_NAME=0;
16704 REPLACE_MALLOC=0;
16705 REPLACE_MBTOWC=0;
16706 REPLACE_MKSTEMP=0;
16707 REPLACE_PUTENV=0;
16708 REPLACE_REALLOC=0;
16709 REPLACE_REALPATH=0;
16710 REPLACE_SETENV=0;
16711 REPLACE_STRTOD=0;
16712 REPLACE_UNSETENV=0;
16713 REPLACE_WCTOMB=0;
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16718 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16719 if test "${gl_cv_have_include_next+set}" = set; then :
16720 $as_echo_n "(cached) " >&6
16721 else
16722 rm -rf conftestd1a conftestd1b conftestd2
16723 mkdir conftestd1a conftestd1b conftestd2
16724 cat <<EOF > conftestd1a/conftest.h
16725 #define DEFINED_IN_CONFTESTD1
16726 #include_next <conftest.h>
16727 #ifdef DEFINED_IN_CONFTESTD2
16728 int foo;
16729 #else
16730 #error "include_next doesn't work"
16731 #endif
16733 cat <<EOF > conftestd1b/conftest.h
16734 #define DEFINED_IN_CONFTESTD1
16735 #include <stdio.h>
16736 #include_next <conftest.h>
16737 #ifdef DEFINED_IN_CONFTESTD2
16738 int foo;
16739 #else
16740 #error "include_next doesn't work"
16741 #endif
16743 cat <<EOF > conftestd2/conftest.h
16744 #ifndef DEFINED_IN_CONFTESTD1
16745 #error "include_next test doesn't work"
16746 #endif
16747 #define DEFINED_IN_CONFTESTD2
16749 gl_save_CPPFLAGS="$CPPFLAGS"
16750 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753 #include <conftest.h>
16754 _ACEOF
16755 if ac_fn_c_try_compile "$LINENO"; then :
16756 gl_cv_have_include_next=yes
16757 else
16758 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16761 #include <conftest.h>
16762 _ACEOF
16763 if ac_fn_c_try_compile "$LINENO"; then :
16764 gl_cv_have_include_next=buggy
16765 else
16766 gl_cv_have_include_next=no
16768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 CPPFLAGS="$gl_save_CPPFLAGS"
16773 rm -rf conftestd1a conftestd1b conftestd2
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16777 $as_echo "$gl_cv_have_include_next" >&6; }
16778 PRAGMA_SYSTEM_HEADER=
16779 if test $gl_cv_have_include_next = yes; then
16780 INCLUDE_NEXT=include_next
16781 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16782 if test -n "$GCC"; then
16783 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16785 else
16786 if test $gl_cv_have_include_next = buggy; then
16787 INCLUDE_NEXT=include
16788 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16789 else
16790 INCLUDE_NEXT=include
16791 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16798 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16799 if test "${gl_cv_pragma_columns+set}" = set; then :
16800 $as_echo_n "(cached) " >&6
16801 else
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16805 #ifdef __TANDEM
16806 choke me
16807 #endif
16809 _ACEOF
16810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16811 $EGREP "choke me" >/dev/null 2>&1; then :
16812 gl_cv_pragma_columns=yes
16813 else
16814 gl_cv_pragma_columns=no
16816 rm -f conftest*
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16821 $as_echo "$gl_cv_pragma_columns" >&6; }
16822 if test $gl_cv_pragma_columns = yes; then
16823 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16824 else
16825 PRAGMA_COLUMNS=
16844 if test $gl_cv_have_include_next = yes; then
16845 gl_cv_next_getopt_h='<'getopt.h'>'
16846 else
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16848 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16849 if test "${gl_cv_next_getopt_h+set}" = set; then :
16850 $as_echo_n "(cached) " >&6
16851 else
16853 if test $ac_cv_header_getopt_h = yes; then
16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16858 #include <getopt.h>
16860 _ACEOF
16861 case "$host_os" in
16862 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16863 *) gl_absname_cpp="$ac_cpp" ;;
16864 esac
16866 case "$host_os" in
16867 mingw*)
16868 gl_dirsep_regex='[/\\]'
16871 gl_dirsep_regex='/'
16873 esac
16875 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
16876 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
16877 s|^/[^/]|//&|
16881 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16882 sed -n "$gl_absolute_header_sed"`'"'
16883 else
16884 gl_cv_next_getopt_h='<'getopt.h'>'
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16890 $as_echo "$gl_cv_next_getopt_h" >&6; }
16892 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16894 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16895 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16896 gl_next_as_first_directive='<'getopt.h'>'
16897 else
16898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16899 gl_next_as_first_directive=$gl_cv_next_getopt_h
16901 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16906 if test $ac_cv_header_getopt_h = yes; then
16907 HAVE_GETOPT_H=1
16908 else
16909 HAVE_GETOPT_H=0
16913 gl_replace_getopt=
16915 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16916 for ac_header in getopt.h
16917 do :
16918 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16919 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16920 cat >>confdefs.h <<_ACEOF
16921 #define HAVE_GETOPT_H 1
16922 _ACEOF
16924 else
16925 gl_replace_getopt=yes
16928 done
16932 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16933 for ac_func in getopt_long_only
16934 do :
16935 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16936 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16937 cat >>confdefs.h <<_ACEOF
16938 #define HAVE_GETOPT_LONG_ONLY 1
16939 _ACEOF
16941 else
16942 gl_replace_getopt=yes
16944 done
16948 if test -z "$gl_replace_getopt"; then
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16950 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16951 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16952 $as_echo_n "(cached) " >&6
16953 else
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 #include <unistd.h>
16959 main ()
16961 int *p = &optreset; return optreset;
16963 return 0;
16965 _ACEOF
16966 if ac_fn_c_try_link "$LINENO"; then :
16967 gl_optind_min=1
16968 else
16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16971 #include <getopt.h>
16973 main ()
16975 return !getopt_clip;
16977 return 0;
16979 _ACEOF
16980 if ac_fn_c_try_compile "$LINENO"; then :
16981 gl_optind_min=1
16982 else
16983 gl_optind_min=0
16985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987 rm -f core conftest.err conftest.$ac_objext \
16988 conftest$ac_exeext conftest.$ac_ext
16990 gl_save_CPPFLAGS=$CPPFLAGS
16991 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16992 if test "$cross_compiling" = yes; then :
16993 case "$host_os" in
16994 mingw*) gl_cv_func_getopt_posix="guessing no";;
16995 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
16996 *) gl_cv_func_getopt_posix="guessing yes";;
16997 esac
16999 else
17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h. */
17003 #include <unistd.h>
17004 #include <stdlib.h>
17005 #include <string.h>
17008 main ()
17011 static char program[] = "program";
17012 static char a[] = "-a";
17013 static char foo[] = "foo";
17014 static char bar[] = "bar";
17015 char *argv[] = { program, a, foo, bar, NULL };
17016 int c;
17018 optind = OPTIND_MIN;
17019 opterr = 0;
17021 c = getopt (4, argv, "ab");
17022 if (!(c == 'a'))
17023 return 1;
17024 c = getopt (4, argv, "ab");
17025 if (!(c == -1))
17026 return 2;
17027 if (!(optind == 2))
17028 return 3;
17030 /* Some internal state exists at this point. */
17032 static char program[] = "program";
17033 static char donald[] = "donald";
17034 static char p[] = "-p";
17035 static char billy[] = "billy";
17036 static char duck[] = "duck";
17037 static char a[] = "-a";
17038 static char bar[] = "bar";
17039 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17040 int c;
17042 optind = OPTIND_MIN;
17043 opterr = 0;
17045 c = getopt (7, argv, "+abp:q:");
17046 if (!(c == -1))
17047 return 4;
17048 if (!(strcmp (argv[0], "program") == 0))
17049 return 5;
17050 if (!(strcmp (argv[1], "donald") == 0))
17051 return 6;
17052 if (!(strcmp (argv[2], "-p") == 0))
17053 return 7;
17054 if (!(strcmp (argv[3], "billy") == 0))
17055 return 8;
17056 if (!(strcmp (argv[4], "duck") == 0))
17057 return 9;
17058 if (!(strcmp (argv[5], "-a") == 0))
17059 return 10;
17060 if (!(strcmp (argv[6], "bar") == 0))
17061 return 11;
17062 if (!(optind == 1))
17063 return 12;
17065 /* Detect MacOS 10.5, AIX 7.1 bug. */
17067 static char program[] = "program";
17068 static char ab[] = "-ab";
17069 char *argv[3] = { program, ab, NULL };
17070 optind = OPTIND_MIN;
17071 opterr = 0;
17072 if (getopt (2, argv, "ab:") != 'a')
17073 return 13;
17074 if (getopt (2, argv, "ab:") != '?')
17075 return 14;
17076 if (optopt != 'b')
17077 return 15;
17078 if (optind != 2)
17079 return 16;
17082 return 0;
17085 _ACEOF
17086 if ac_fn_c_try_run "$LINENO"; then :
17087 gl_cv_func_getopt_posix=yes
17088 else
17089 gl_cv_func_getopt_posix=no
17091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17092 conftest.$ac_objext conftest.beam conftest.$ac_ext
17095 CPPFLAGS=$gl_save_CPPFLAGS
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17099 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17100 case "$gl_cv_func_getopt_posix" in
17101 *no) gl_replace_getopt=yes ;;
17102 esac
17105 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17107 $as_echo_n "checking for working GNU getopt function... " >&6; }
17108 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17109 $as_echo_n "(cached) " >&6
17110 else
17111 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17112 # optstring is necessary for programs like m4 that have POSIX-mandated
17113 # semantics for supporting options interspersed with files.
17114 # Also, since getopt_long is a GNU extension, we require optind=0.
17115 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17116 # so take care to revert to the correct (non-)export state.
17117 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17118 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17119 xx) gl_had_POSIXLY_CORRECT=exported ;;
17120 x) gl_had_POSIXLY_CORRECT=yes ;;
17121 *) gl_had_POSIXLY_CORRECT= ;;
17122 esac
17123 POSIXLY_CORRECT=1
17124 export POSIXLY_CORRECT
17125 if test "$cross_compiling" = yes; then :
17126 case $host_os:$ac_cv_have_decl_optreset in
17127 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17128 *:yes) gl_cv_func_getopt_gnu=no;;
17129 *) gl_cv_func_getopt_gnu=yes;;
17130 esac
17132 else
17133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134 /* end confdefs.h. */
17135 #include <getopt.h>
17136 #include <stddef.h>
17137 #include <string.h>
17139 #include <stdlib.h>
17140 #if defined __MACH__ && defined __APPLE__
17141 /* Avoid a crash on MacOS X. */
17142 #include <mach/mach.h>
17143 #include <mach/mach_error.h>
17144 #include <mach/thread_status.h>
17145 #include <mach/exception.h>
17146 #include <mach/task.h>
17147 #include <pthread.h>
17148 /* The exception port on which our thread listens. */
17149 static mach_port_t our_exception_port;
17150 /* The main function of the thread listening for exceptions of type
17151 EXC_BAD_ACCESS. */
17152 static void *
17153 mach_exception_thread (void *arg)
17155 /* Buffer for a message to be received. */
17156 struct {
17157 mach_msg_header_t head;
17158 mach_msg_body_t msgh_body;
17159 char data[1024];
17160 } msg;
17161 mach_msg_return_t retval;
17162 /* Wait for a message on the exception port. */
17163 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17164 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17165 if (retval != MACH_MSG_SUCCESS)
17166 abort ();
17167 exit (1);
17169 static void
17170 nocrash_init (void)
17172 mach_port_t self = mach_task_self ();
17173 /* Allocate a port on which the thread shall listen for exceptions. */
17174 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17175 == KERN_SUCCESS) {
17176 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17177 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17178 MACH_MSG_TYPE_MAKE_SEND)
17179 == KERN_SUCCESS) {
17180 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17181 for us. */
17182 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17183 /* Create the thread listening on the exception port. */
17184 pthread_attr_t attr;
17185 pthread_t thread;
17186 if (pthread_attr_init (&attr) == 0
17187 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17188 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17189 pthread_attr_destroy (&attr);
17190 /* Replace the exception port info for these exceptions with our own.
17191 Note that we replace the exception port for the entire task, not only
17192 for a particular thread. This has the effect that when our exception
17193 port gets the message, the thread specific exception port has already
17194 been asked, and we don't need to bother about it.
17195 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17196 task_set_exception_ports (self, mask, our_exception_port,
17197 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17202 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17203 /* Avoid a crash on native Windows. */
17204 #define WIN32_LEAN_AND_MEAN
17205 #include <windows.h>
17206 #include <winerror.h>
17207 static LONG WINAPI
17208 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17210 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17212 case EXCEPTION_ACCESS_VIOLATION:
17213 case EXCEPTION_IN_PAGE_ERROR:
17214 case EXCEPTION_STACK_OVERFLOW:
17215 case EXCEPTION_GUARD_PAGE:
17216 case EXCEPTION_PRIV_INSTRUCTION:
17217 case EXCEPTION_ILLEGAL_INSTRUCTION:
17218 case EXCEPTION_DATATYPE_MISALIGNMENT:
17219 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17220 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17221 exit (1);
17223 return EXCEPTION_CONTINUE_SEARCH;
17225 static void
17226 nocrash_init (void)
17228 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17230 #else
17231 /* Avoid a crash on POSIX systems. */
17232 #include <signal.h>
17233 /* A POSIX signal handler. */
17234 static void
17235 exception_handler (int sig)
17237 exit (1);
17239 static void
17240 nocrash_init (void)
17242 #ifdef SIGSEGV
17243 signal (SIGSEGV, exception_handler);
17244 #endif
17245 #ifdef SIGBUS
17246 signal (SIGBUS, exception_handler);
17247 #endif
17249 #endif
17253 main ()
17256 int result = 0;
17258 nocrash_init();
17260 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17261 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17262 OSF/1 5.1, Solaris 10. */
17264 static char conftest[] = "conftest";
17265 static char plus[] = "-+";
17266 char *argv[3] = { conftest, plus, NULL };
17267 opterr = 0;
17268 if (getopt (2, argv, "+a") != '?')
17269 result |= 1;
17271 /* This code succeeds on glibc 2.8, mingw,
17272 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17273 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17275 static char program[] = "program";
17276 static char p[] = "-p";
17277 static char foo[] = "foo";
17278 static char bar[] = "bar";
17279 char *argv[] = { program, p, foo, bar, NULL };
17281 optind = 1;
17282 if (getopt (4, argv, "p::") != 'p')
17283 result |= 2;
17284 else if (optarg != NULL)
17285 result |= 4;
17286 else if (getopt (4, argv, "p::") != -1)
17287 result |= 6;
17288 else if (optind != 2)
17289 result |= 8;
17291 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17293 static char program[] = "program";
17294 static char foo[] = "foo";
17295 static char p[] = "-p";
17296 char *argv[] = { program, foo, p, NULL };
17297 optind = 0;
17298 if (getopt (3, argv, "-p") != 1)
17299 result |= 16;
17300 else if (getopt (3, argv, "-p") != 'p')
17301 result |= 32;
17303 /* This code fails on glibc 2.11. */
17305 static char program[] = "program";
17306 static char b[] = "-b";
17307 static char a[] = "-a";
17308 char *argv[] = { program, b, a, NULL };
17309 optind = opterr = 0;
17310 if (getopt (3, argv, "+:a:b") != 'b')
17311 result |= 64;
17312 else if (getopt (3, argv, "+:a:b") != ':')
17313 result |= 64;
17315 /* This code dumps core on glibc 2.14. */
17317 static char program[] = "program";
17318 static char w[] = "-W";
17319 static char dummy[] = "dummy";
17320 char *argv[] = { program, w, dummy, NULL };
17321 optind = opterr = 1;
17322 if (getopt (3, argv, "W;") != 'W')
17323 result |= 128;
17325 return result;
17328 return 0;
17330 _ACEOF
17331 if ac_fn_c_try_run "$LINENO"; then :
17332 gl_cv_func_getopt_gnu=yes
17333 else
17334 gl_cv_func_getopt_gnu=no
17336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17337 conftest.$ac_objext conftest.beam conftest.$ac_ext
17340 case $gl_had_POSIXLY_CORRECT in
17341 exported) ;;
17342 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17343 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17344 esac
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17348 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17349 if test "$gl_cv_func_getopt_gnu" = "no"; then
17350 gl_replace_getopt=yes
17358 REPLACE_GETOPT=0
17361 if test -n "$gl_replace_getopt"; then :
17363 REPLACE_GETOPT=1
17368 if test $REPLACE_GETOPT = 1; then
17370 GETOPT_H=getopt.h
17372 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17376 GNULIB_UNISTD_H_GETOPT=1
17379 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17380 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17381 ac_have_decl=1
17382 else
17383 ac_have_decl=0
17386 cat >>confdefs.h <<_ACEOF
17387 #define HAVE_DECL_GETENV $ac_have_decl
17388 _ACEOF
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17392 $as_echo_n "checking for unsigned long long int... " >&6; }
17393 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17394 $as_echo_n "(cached) " >&6
17395 else
17396 ac_cv_type_unsigned_long_long_int=yes
17397 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17399 /* end confdefs.h. */
17401 /* For now, do not test the preprocessor; as of 2007 there are too many
17402 implementations with broken preprocessors. Perhaps this can
17403 be revisited in 2012. In the meantime, code should not expect
17404 #if to work with literals wider than 32 bits. */
17405 /* Test literals. */
17406 long long int ll = 9223372036854775807ll;
17407 long long int nll = -9223372036854775807LL;
17408 unsigned long long int ull = 18446744073709551615ULL;
17409 /* Test constant expressions. */
17410 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17411 ? 1 : -1)];
17412 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17413 ? 1 : -1)];
17414 int i = 63;
17416 main ()
17418 /* Test availability of runtime routines for shift and division. */
17419 long long int llmax = 9223372036854775807ll;
17420 unsigned long long int ullmax = 18446744073709551615ull;
17421 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17422 | (llmax / ll) | (llmax % ll)
17423 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17424 | (ullmax / ull) | (ullmax % ull));
17426 return 0;
17429 _ACEOF
17430 if ac_fn_c_try_link "$LINENO"; then :
17432 else
17433 ac_cv_type_unsigned_long_long_int=no
17435 rm -f core conftest.err conftest.$ac_objext \
17436 conftest$ac_exeext conftest.$ac_ext
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17440 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17441 if test $ac_cv_type_unsigned_long_long_int = yes; then
17443 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17450 $as_echo_n "checking for long long int... " >&6; }
17451 if test "${ac_cv_type_long_long_int+set}" = set; then :
17452 $as_echo_n "(cached) " >&6
17453 else
17454 ac_cv_type_long_long_int=yes
17455 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17456 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17457 if test $ac_cv_type_long_long_int = yes; then
17458 if test "$cross_compiling" = yes; then :
17460 else
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17463 #include <limits.h>
17464 #ifndef LLONG_MAX
17465 # define HALF \
17466 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17467 # define LLONG_MAX (HALF - 1 + HALF)
17468 #endif
17470 main ()
17472 long long int n = 1;
17473 int i;
17474 for (i = 0; ; i++)
17476 long long int m = n << i;
17477 if (m >> i != n)
17478 return 1;
17479 if (LLONG_MAX / 2 < m)
17480 break;
17482 return 0;
17484 return 0;
17486 _ACEOF
17487 if ac_fn_c_try_run "$LINENO"; then :
17489 else
17490 ac_cv_type_long_long_int=no
17492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17493 conftest.$ac_objext conftest.beam conftest.$ac_ext
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17500 $as_echo "$ac_cv_type_long_long_int" >&6; }
17501 if test $ac_cv_type_long_long_int = yes; then
17503 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17512 gl_cv_c_multiarch=no
17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h. */
17515 #ifndef __APPLE_CC__
17516 not a universal capable compiler
17517 #endif
17518 typedef int dummy;
17520 _ACEOF
17521 if ac_fn_c_try_compile "$LINENO"; then :
17523 arch=
17524 prev=
17525 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17526 if test -n "$prev"; then
17527 case $word in
17528 i?86 | x86_64 | ppc | ppc64)
17529 if test -z "$arch" || test "$arch" = "$word"; then
17530 arch="$word"
17531 else
17532 gl_cv_c_multiarch=yes
17535 esac
17536 prev=
17537 else
17538 if test "x$word" = "x-arch"; then
17539 prev=arch
17542 done
17545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17546 if test $gl_cv_c_multiarch = yes; then
17547 APPLE_UNIVERSAL_BUILD=1
17548 else
17549 APPLE_UNIVERSAL_BUILD=0
17556 if test $ac_cv_type_long_long_int = yes; then
17557 HAVE_LONG_LONG_INT=1
17558 else
17559 HAVE_LONG_LONG_INT=0
17563 if test $ac_cv_type_unsigned_long_long_int = yes; then
17564 HAVE_UNSIGNED_LONG_LONG_INT=1
17565 else
17566 HAVE_UNSIGNED_LONG_LONG_INT=0
17571 if test $ac_cv_header_wchar_h = yes; then
17572 HAVE_WCHAR_H=1
17573 else
17574 HAVE_WCHAR_H=0
17578 if test $ac_cv_header_inttypes_h = yes; then
17579 HAVE_INTTYPES_H=1
17580 else
17581 HAVE_INTTYPES_H=0
17585 if test $ac_cv_header_sys_types_h = yes; then
17586 HAVE_SYS_TYPES_H=1
17587 else
17588 HAVE_SYS_TYPES_H=0
17601 if test $gl_cv_have_include_next = yes; then
17602 gl_cv_next_stdint_h='<'stdint.h'>'
17603 else
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17605 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17606 if test "${gl_cv_next_stdint_h+set}" = set; then :
17607 $as_echo_n "(cached) " >&6
17608 else
17610 if test $ac_cv_header_stdint_h = yes; then
17613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17614 /* end confdefs.h. */
17615 #include <stdint.h>
17617 _ACEOF
17618 case "$host_os" in
17619 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17620 *) gl_absname_cpp="$ac_cpp" ;;
17621 esac
17623 case "$host_os" in
17624 mingw*)
17625 gl_dirsep_regex='[/\\]'
17628 gl_dirsep_regex='/'
17630 esac
17632 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
17633 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
17634 s|^/[^/]|//&|
17638 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17639 sed -n "$gl_absolute_header_sed"`'"'
17640 else
17641 gl_cv_next_stdint_h='<'stdint.h'>'
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17647 $as_echo "$gl_cv_next_stdint_h" >&6; }
17649 NEXT_STDINT_H=$gl_cv_next_stdint_h
17651 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17652 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17653 gl_next_as_first_directive='<'stdint.h'>'
17654 else
17655 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17656 gl_next_as_first_directive=$gl_cv_next_stdint_h
17658 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17663 if test $ac_cv_header_stdint_h = yes; then
17664 HAVE_STDINT_H=1
17665 else
17666 HAVE_STDINT_H=0
17670 if test $ac_cv_header_stdint_h = yes; then
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17672 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17673 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17674 $as_echo_n "(cached) " >&6
17675 else
17676 gl_cv_header_working_stdint_h=no
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17681 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17682 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17683 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17684 #include <stdint.h>
17685 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17686 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17687 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17688 #endif
17691 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17692 included before <wchar.h>. */
17693 #include <stddef.h>
17694 #include <signal.h>
17695 #if HAVE_WCHAR_H
17696 # include <stdio.h>
17697 # include <time.h>
17698 # include <wchar.h>
17699 #endif
17702 #ifdef INT8_MAX
17703 int8_t a1 = INT8_MAX;
17704 int8_t a1min = INT8_MIN;
17705 #endif
17706 #ifdef INT16_MAX
17707 int16_t a2 = INT16_MAX;
17708 int16_t a2min = INT16_MIN;
17709 #endif
17710 #ifdef INT32_MAX
17711 int32_t a3 = INT32_MAX;
17712 int32_t a3min = INT32_MIN;
17713 #endif
17714 #ifdef INT64_MAX
17715 int64_t a4 = INT64_MAX;
17716 int64_t a4min = INT64_MIN;
17717 #endif
17718 #ifdef UINT8_MAX
17719 uint8_t b1 = UINT8_MAX;
17720 #else
17721 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17722 #endif
17723 #ifdef UINT16_MAX
17724 uint16_t b2 = UINT16_MAX;
17725 #endif
17726 #ifdef UINT32_MAX
17727 uint32_t b3 = UINT32_MAX;
17728 #endif
17729 #ifdef UINT64_MAX
17730 uint64_t b4 = UINT64_MAX;
17731 #endif
17732 int_least8_t c1 = INT8_C (0x7f);
17733 int_least8_t c1max = INT_LEAST8_MAX;
17734 int_least8_t c1min = INT_LEAST8_MIN;
17735 int_least16_t c2 = INT16_C (0x7fff);
17736 int_least16_t c2max = INT_LEAST16_MAX;
17737 int_least16_t c2min = INT_LEAST16_MIN;
17738 int_least32_t c3 = INT32_C (0x7fffffff);
17739 int_least32_t c3max = INT_LEAST32_MAX;
17740 int_least32_t c3min = INT_LEAST32_MIN;
17741 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17742 int_least64_t c4max = INT_LEAST64_MAX;
17743 int_least64_t c4min = INT_LEAST64_MIN;
17744 uint_least8_t d1 = UINT8_C (0xff);
17745 uint_least8_t d1max = UINT_LEAST8_MAX;
17746 uint_least16_t d2 = UINT16_C (0xffff);
17747 uint_least16_t d2max = UINT_LEAST16_MAX;
17748 uint_least32_t d3 = UINT32_C (0xffffffff);
17749 uint_least32_t d3max = UINT_LEAST32_MAX;
17750 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17751 uint_least64_t d4max = UINT_LEAST64_MAX;
17752 int_fast8_t e1 = INT_FAST8_MAX;
17753 int_fast8_t e1min = INT_FAST8_MIN;
17754 int_fast16_t e2 = INT_FAST16_MAX;
17755 int_fast16_t e2min = INT_FAST16_MIN;
17756 int_fast32_t e3 = INT_FAST32_MAX;
17757 int_fast32_t e3min = INT_FAST32_MIN;
17758 int_fast64_t e4 = INT_FAST64_MAX;
17759 int_fast64_t e4min = INT_FAST64_MIN;
17760 uint_fast8_t f1 = UINT_FAST8_MAX;
17761 uint_fast16_t f2 = UINT_FAST16_MAX;
17762 uint_fast32_t f3 = UINT_FAST32_MAX;
17763 uint_fast64_t f4 = UINT_FAST64_MAX;
17764 #ifdef INTPTR_MAX
17765 intptr_t g = INTPTR_MAX;
17766 intptr_t gmin = INTPTR_MIN;
17767 #endif
17768 #ifdef UINTPTR_MAX
17769 uintptr_t h = UINTPTR_MAX;
17770 #endif
17771 intmax_t i = INTMAX_MAX;
17772 uintmax_t j = UINTMAX_MAX;
17774 #include <limits.h> /* for CHAR_BIT */
17775 #define TYPE_MINIMUM(t) \
17776 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17777 #define TYPE_MAXIMUM(t) \
17778 ((t) ((t) 0 < (t) -1 \
17779 ? (t) -1 \
17780 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17781 struct s {
17782 int check_PTRDIFF:
17783 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17784 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17785 ? 1 : -1;
17786 /* Detect bug in FreeBSD 6.0 / ia64. */
17787 int check_SIG_ATOMIC:
17788 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17789 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17790 ? 1 : -1;
17791 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17792 int check_WCHAR:
17793 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17794 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17795 ? 1 : -1;
17796 /* Detect bug in mingw. */
17797 int check_WINT:
17798 WINT_MIN == TYPE_MINIMUM (wint_t)
17799 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17800 ? 1 : -1;
17802 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17803 int check_UINT8_C:
17804 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17805 int check_UINT16_C:
17806 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17808 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17809 #ifdef UINT8_MAX
17810 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17811 #endif
17812 #ifdef UINT16_MAX
17813 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17814 #endif
17815 #ifdef UINT32_MAX
17816 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17817 #endif
17818 #ifdef UINT64_MAX
17819 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17820 #endif
17821 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17822 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17823 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17824 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17825 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17826 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17827 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17828 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17829 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17830 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17831 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17835 main ()
17839 return 0;
17841 _ACEOF
17842 if ac_fn_c_try_compile "$LINENO"; then :
17843 if test "$cross_compiling" = yes; then :
17844 gl_cv_header_working_stdint_h=yes
17846 else
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17851 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17852 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17853 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17854 #include <stdint.h>
17857 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17858 included before <wchar.h>. */
17859 #include <stddef.h>
17860 #include <signal.h>
17861 #if HAVE_WCHAR_H
17862 # include <stdio.h>
17863 # include <time.h>
17864 # include <wchar.h>
17865 #endif
17868 #include <stdio.h>
17869 #include <string.h>
17870 #define MVAL(macro) MVAL1(macro)
17871 #define MVAL1(expression) #expression
17872 static const char *macro_values[] =
17874 #ifdef INT8_MAX
17875 MVAL (INT8_MAX),
17876 #endif
17877 #ifdef INT16_MAX
17878 MVAL (INT16_MAX),
17879 #endif
17880 #ifdef INT32_MAX
17881 MVAL (INT32_MAX),
17882 #endif
17883 #ifdef INT64_MAX
17884 MVAL (INT64_MAX),
17885 #endif
17886 #ifdef UINT8_MAX
17887 MVAL (UINT8_MAX),
17888 #endif
17889 #ifdef UINT16_MAX
17890 MVAL (UINT16_MAX),
17891 #endif
17892 #ifdef UINT32_MAX
17893 MVAL (UINT32_MAX),
17894 #endif
17895 #ifdef UINT64_MAX
17896 MVAL (UINT64_MAX),
17897 #endif
17898 NULL
17902 main ()
17905 const char **mv;
17906 for (mv = macro_values; *mv != NULL; mv++)
17908 const char *value = *mv;
17909 /* Test whether it looks like a cast expression. */
17910 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17911 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17912 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17913 || strncmp (value, "((int)"/*)*/, 6) == 0
17914 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17915 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17916 return mv - macro_values + 1;
17918 return 0;
17921 return 0;
17923 _ACEOF
17924 if ac_fn_c_try_run "$LINENO"; then :
17925 gl_cv_header_working_stdint_h=yes
17927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17928 conftest.$ac_objext conftest.beam conftest.$ac_ext
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17937 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17939 if test "$gl_cv_header_working_stdint_h" = yes; then
17940 STDINT_H=
17941 else
17942 for ac_header in sys/inttypes.h sys/bitypes.h
17943 do :
17944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17946 eval as_val=\$$as_ac_Header
17947 if test "x$as_val" = x""yes; then :
17948 cat >>confdefs.h <<_ACEOF
17949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17950 _ACEOF
17954 done
17956 if test $ac_cv_header_sys_inttypes_h = yes; then
17957 HAVE_SYS_INTTYPES_H=1
17958 else
17959 HAVE_SYS_INTTYPES_H=0
17962 if test $ac_cv_header_sys_bitypes_h = yes; then
17963 HAVE_SYS_BITYPES_H=1
17964 else
17965 HAVE_SYS_BITYPES_H=0
17971 if test $APPLE_UNIVERSAL_BUILD = 0; then
17974 for gltype in ptrdiff_t size_t ; do
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17976 $as_echo_n "checking for bit size of $gltype... " >&6; }
17977 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17978 $as_echo_n "(cached) " >&6
17979 else
17980 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17981 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17982 included before <wchar.h>. */
17983 #include <stddef.h>
17984 #include <signal.h>
17985 #if HAVE_WCHAR_H
17986 # include <stdio.h>
17987 # include <time.h>
17988 # include <wchar.h>
17989 #endif
17991 #include <limits.h>"; then :
17993 else
17994 result=unknown
17997 eval gl_cv_bitsizeof_${gltype}=\$result
18000 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18002 $as_echo "$ac_res" >&6; }
18003 eval result=\$gl_cv_bitsizeof_${gltype}
18004 if test $result = unknown; then
18005 result=0
18007 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18008 cat >>confdefs.h <<_ACEOF
18009 #define BITSIZEOF_${GLTYPE} $result
18010 _ACEOF
18012 eval BITSIZEOF_${GLTYPE}=\$result
18013 done
18019 for gltype in sig_atomic_t wchar_t wint_t ; do
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18021 $as_echo_n "checking for bit size of $gltype... " >&6; }
18022 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18023 $as_echo_n "(cached) " >&6
18024 else
18025 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18026 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18027 included before <wchar.h>. */
18028 #include <stddef.h>
18029 #include <signal.h>
18030 #if HAVE_WCHAR_H
18031 # include <stdio.h>
18032 # include <time.h>
18033 # include <wchar.h>
18034 #endif
18036 #include <limits.h>"; then :
18038 else
18039 result=unknown
18042 eval gl_cv_bitsizeof_${gltype}=\$result
18045 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18047 $as_echo "$ac_res" >&6; }
18048 eval result=\$gl_cv_bitsizeof_${gltype}
18049 if test $result = unknown; then
18050 result=0
18052 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18053 cat >>confdefs.h <<_ACEOF
18054 #define BITSIZEOF_${GLTYPE} $result
18055 _ACEOF
18057 eval BITSIZEOF_${GLTYPE}=\$result
18058 done
18063 for gltype in sig_atomic_t wchar_t wint_t ; do
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18065 $as_echo_n "checking whether $gltype is signed... " >&6; }
18066 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18067 $as_echo_n "(cached) " >&6
18068 else
18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h. */
18072 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18073 included before <wchar.h>. */
18074 #include <stddef.h>
18075 #include <signal.h>
18076 #if HAVE_WCHAR_H
18077 # include <stdio.h>
18078 # include <time.h>
18079 # include <wchar.h>
18080 #endif
18082 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18084 main ()
18088 return 0;
18090 _ACEOF
18091 if ac_fn_c_try_compile "$LINENO"; then :
18092 result=yes
18093 else
18094 result=no
18096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18097 eval gl_cv_type_${gltype}_signed=\$result
18100 eval ac_res=\$gl_cv_type_${gltype}_signed
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18102 $as_echo "$ac_res" >&6; }
18103 eval result=\$gl_cv_type_${gltype}_signed
18104 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18105 if test "$result" = yes; then
18106 cat >>confdefs.h <<_ACEOF
18107 #define HAVE_SIGNED_${GLTYPE} 1
18108 _ACEOF
18110 eval HAVE_SIGNED_${GLTYPE}=1
18111 else
18112 eval HAVE_SIGNED_${GLTYPE}=0
18114 done
18117 gl_cv_type_ptrdiff_t_signed=yes
18118 gl_cv_type_size_t_signed=no
18119 if test $APPLE_UNIVERSAL_BUILD = 0; then
18122 for gltype in ptrdiff_t size_t ; do
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18124 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18125 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18126 $as_echo_n "(cached) " >&6
18127 else
18128 eval gl_cv_type_${gltype}_suffix=no
18129 eval result=\$gl_cv_type_${gltype}_signed
18130 if test "$result" = yes; then
18131 glsufu=
18132 else
18133 glsufu=u
18135 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18136 case $glsuf in
18137 '') gltype1='int';;
18138 l) gltype1='long int';;
18139 ll) gltype1='long long int';;
18140 i64) gltype1='__int64';;
18141 u) gltype1='unsigned int';;
18142 ul) gltype1='unsigned long int';;
18143 ull) gltype1='unsigned long long int';;
18144 ui64)gltype1='unsigned __int64';;
18145 esac
18146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h. */
18149 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18150 included before <wchar.h>. */
18151 #include <stddef.h>
18152 #include <signal.h>
18153 #if HAVE_WCHAR_H
18154 # include <stdio.h>
18155 # include <time.h>
18156 # include <wchar.h>
18157 #endif
18159 extern $gltype foo;
18160 extern $gltype1 foo;
18162 main ()
18166 return 0;
18168 _ACEOF
18169 if ac_fn_c_try_compile "$LINENO"; then :
18170 eval gl_cv_type_${gltype}_suffix=\$glsuf
18172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18173 eval result=\$gl_cv_type_${gltype}_suffix
18174 test "$result" != no && break
18175 done
18177 eval ac_res=\$gl_cv_type_${gltype}_suffix
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18179 $as_echo "$ac_res" >&6; }
18180 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18181 eval result=\$gl_cv_type_${gltype}_suffix
18182 test "$result" = no && result=
18183 eval ${GLTYPE}_SUFFIX=\$result
18184 cat >>confdefs.h <<_ACEOF
18185 #define ${GLTYPE}_SUFFIX $result
18186 _ACEOF
18188 done
18194 for gltype in sig_atomic_t wchar_t wint_t ; do
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18196 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18197 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18198 $as_echo_n "(cached) " >&6
18199 else
18200 eval gl_cv_type_${gltype}_suffix=no
18201 eval result=\$gl_cv_type_${gltype}_signed
18202 if test "$result" = yes; then
18203 glsufu=
18204 else
18205 glsufu=u
18207 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18208 case $glsuf in
18209 '') gltype1='int';;
18210 l) gltype1='long int';;
18211 ll) gltype1='long long int';;
18212 i64) gltype1='__int64';;
18213 u) gltype1='unsigned int';;
18214 ul) gltype1='unsigned long int';;
18215 ull) gltype1='unsigned long long int';;
18216 ui64)gltype1='unsigned __int64';;
18217 esac
18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18221 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18222 included before <wchar.h>. */
18223 #include <stddef.h>
18224 #include <signal.h>
18225 #if HAVE_WCHAR_H
18226 # include <stdio.h>
18227 # include <time.h>
18228 # include <wchar.h>
18229 #endif
18231 extern $gltype foo;
18232 extern $gltype1 foo;
18234 main ()
18238 return 0;
18240 _ACEOF
18241 if ac_fn_c_try_compile "$LINENO"; then :
18242 eval gl_cv_type_${gltype}_suffix=\$glsuf
18244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18245 eval result=\$gl_cv_type_${gltype}_suffix
18246 test "$result" != no && break
18247 done
18249 eval ac_res=\$gl_cv_type_${gltype}_suffix
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18251 $as_echo "$ac_res" >&6; }
18252 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18253 eval result=\$gl_cv_type_${gltype}_suffix
18254 test "$result" = no && result=
18255 eval ${GLTYPE}_SUFFIX=\$result
18256 cat >>confdefs.h <<_ACEOF
18257 #define ${GLTYPE}_SUFFIX $result
18258 _ACEOF
18260 done
18264 if test $BITSIZEOF_WINT_T -lt 32; then
18265 BITSIZEOF_WINT_T=32
18268 STDINT_H=stdint.h
18271 if test -n "$STDINT_H"; then
18272 GL_GENERATE_STDINT_H_TRUE=
18273 GL_GENERATE_STDINT_H_FALSE='#'
18274 else
18275 GL_GENERATE_STDINT_H_TRUE='#'
18276 GL_GENERATE_STDINT_H_FALSE=
18283 GNULIB_IMAXABS=0;
18284 GNULIB_IMAXDIV=0;
18285 GNULIB_STRTOIMAX=0;
18286 GNULIB_STRTOUMAX=0;
18287 HAVE_DECL_IMAXABS=1;
18288 HAVE_DECL_IMAXDIV=1;
18289 HAVE_DECL_STRTOIMAX=1;
18290 HAVE_DECL_STRTOUMAX=1;
18291 INT32_MAX_LT_INTMAX_MAX=1;
18292 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18293 PRI_MACROS_BROKEN=0;
18294 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18295 UINT32_MAX_LT_UINTMAX_MAX=1;
18296 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18312 if test $gl_cv_have_include_next = yes; then
18313 gl_cv_next_inttypes_h='<'inttypes.h'>'
18314 else
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18316 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18317 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18318 $as_echo_n "(cached) " >&6
18319 else
18321 if test $ac_cv_header_inttypes_h = yes; then
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #include <inttypes.h>
18328 _ACEOF
18329 case "$host_os" in
18330 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18331 *) gl_absname_cpp="$ac_cpp" ;;
18332 esac
18334 case "$host_os" in
18335 mingw*)
18336 gl_dirsep_regex='[/\\]'
18339 gl_dirsep_regex='/'
18341 esac
18343 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
18344 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18345 s|^/[^/]|//&|
18349 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18350 sed -n "$gl_absolute_header_sed"`'"'
18351 else
18352 gl_cv_next_inttypes_h='<'inttypes.h'>'
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18358 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18360 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18362 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18363 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18364 gl_next_as_first_directive='<'inttypes.h'>'
18365 else
18366 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18367 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18369 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18378 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18385 GNULIB_FCHMODAT=0;
18386 GNULIB_FSTAT=0;
18387 GNULIB_FSTATAT=0;
18388 GNULIB_FUTIMENS=0;
18389 GNULIB_LCHMOD=0;
18390 GNULIB_LSTAT=0;
18391 GNULIB_MKDIRAT=0;
18392 GNULIB_MKFIFO=0;
18393 GNULIB_MKFIFOAT=0;
18394 GNULIB_MKNOD=0;
18395 GNULIB_MKNODAT=0;
18396 GNULIB_STAT=0;
18397 GNULIB_UTIMENSAT=0;
18398 HAVE_FCHMODAT=1;
18399 HAVE_FSTATAT=1;
18400 HAVE_FUTIMENS=1;
18401 HAVE_LCHMOD=1;
18402 HAVE_LSTAT=1;
18403 HAVE_MKDIRAT=1;
18404 HAVE_MKFIFO=1;
18405 HAVE_MKFIFOAT=1;
18406 HAVE_MKNOD=1;
18407 HAVE_MKNODAT=1;
18408 HAVE_UTIMENSAT=1;
18409 REPLACE_FSTAT=0;
18410 REPLACE_FSTATAT=0;
18411 REPLACE_FUTIMENS=0;
18412 REPLACE_LSTAT=0;
18413 REPLACE_MKDIR=0;
18414 REPLACE_MKFIFO=0;
18415 REPLACE_MKNOD=0;
18416 REPLACE_STAT=0;
18417 REPLACE_UTIMENSAT=0;
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18423 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18424 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18425 $as_echo_n "(cached) " >&6
18426 else
18427 rm -f conftest.sym conftest.file
18428 echo >conftest.file
18429 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18430 if test "$cross_compiling" = yes; then :
18431 # When cross-compiling, be pessimistic so we will end up using the
18432 # replacement version of lstat that checks for trailing slashes and
18433 # calls lstat a second time when necessary.
18434 gl_cv_func_lstat_dereferences_slashed_symlink=no
18436 else
18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18439 $ac_includes_default
18441 main ()
18443 struct stat sbuf;
18444 /* Linux will dereference the symlink and fail, as required by
18445 POSIX. That is better in the sense that it means we will not
18446 have to compile and use the lstat wrapper. */
18447 return lstat ("conftest.sym/", &sbuf) == 0;
18450 return 0;
18452 _ACEOF
18453 if ac_fn_c_try_run "$LINENO"; then :
18454 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18455 else
18456 gl_cv_func_lstat_dereferences_slashed_symlink=no
18458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18459 conftest.$ac_objext conftest.beam conftest.$ac_ext
18462 else
18463 # If the 'ln -s' command failed, then we probably don't even
18464 # have an lstat function.
18465 gl_cv_func_lstat_dereferences_slashed_symlink=no
18467 rm -f conftest.sym conftest.file
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18471 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18472 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18474 cat >>confdefs.h <<_ACEOF
18475 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18476 _ACEOF
18480 GNULIB_MKTIME=0;
18481 GNULIB_NANOSLEEP=0;
18482 GNULIB_STRPTIME=0;
18483 GNULIB_TIMEGM=0;
18484 GNULIB_TIME_R=0;
18485 HAVE_DECL_LOCALTIME_R=1;
18486 HAVE_NANOSLEEP=1;
18487 HAVE_STRPTIME=1;
18488 HAVE_TIMEGM=1;
18489 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18490 REPLACE_MKTIME=GNULIB_PORTCHECK;
18491 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18492 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18499 GNULIB_PTHREAD_SIGMASK=0;
18500 GNULIB_RAISE=0;
18501 GNULIB_SIGNAL_H_SIGPIPE=0;
18502 GNULIB_SIGPROCMASK=0;
18503 GNULIB_SIGACTION=0;
18504 HAVE_POSIX_SIGNALBLOCKING=1;
18505 HAVE_PTHREAD_SIGMASK=1;
18506 HAVE_RAISE=1;
18507 HAVE_SIGSET_T=1;
18508 HAVE_SIGINFO_T=1;
18509 HAVE_SIGACTION=1;
18510 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18512 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18514 HAVE_SIGHANDLER_T=1;
18515 REPLACE_PTHREAD_SIGMASK=0;
18516 REPLACE_RAISE=0;
18521 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18522 #include <signal.h>
18523 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18524 #include <sys/types.h>
18527 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18529 cat >>confdefs.h <<_ACEOF
18530 #define HAVE_SIGSET_T 1
18531 _ACEOF
18533 gl_cv_type_sigset_t=yes
18534 else
18535 gl_cv_type_sigset_t=no
18538 if test $gl_cv_type_sigset_t != yes; then
18539 HAVE_SIGSET_T=0
18546 if test $ac_cv_header_sys_socket_h = no; then
18547 for ac_header in ws2tcpip.h
18548 do :
18549 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18550 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18551 cat >>confdefs.h <<_ACEOF
18552 #define HAVE_WS2TCPIP_H 1
18553 _ACEOF
18557 done
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18562 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18563 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18564 $as_echo_n "(cached) " >&6
18565 else
18566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567 /* end confdefs.h. */
18569 #include <stdbool.h>
18570 #ifndef bool
18571 "error: bool is not defined"
18572 #endif
18573 #ifndef false
18574 "error: false is not defined"
18575 #endif
18576 #if false
18577 "error: false is not 0"
18578 #endif
18579 #ifndef true
18580 "error: true is not defined"
18581 #endif
18582 #if true != 1
18583 "error: true is not 1"
18584 #endif
18585 #ifndef __bool_true_false_are_defined
18586 "error: __bool_true_false_are_defined is not defined"
18587 #endif
18589 struct s { _Bool s: 1; _Bool t; } s;
18591 char a[true == 1 ? 1 : -1];
18592 char b[false == 0 ? 1 : -1];
18593 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18594 char d[(bool) 0.5 == true ? 1 : -1];
18595 /* See body of main program for 'e'. */
18596 char f[(_Bool) 0.0 == false ? 1 : -1];
18597 char g[true];
18598 char h[sizeof (_Bool)];
18599 char i[sizeof s.t];
18600 enum { j = false, k = true, l = false * true, m = true * 256 };
18601 /* The following fails for
18602 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18603 _Bool n[m];
18604 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18605 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18606 /* Catch a bug in an HP-UX C compiler. See
18607 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18608 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18610 _Bool q = true;
18611 _Bool *pq = &q;
18614 main ()
18617 bool e = &s;
18618 *pq |= q;
18619 *pq |= ! q;
18620 /* Refer to every declared value, to avoid compiler optimizations. */
18621 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18622 + !m + !n + !o + !p + !q + !pq);
18625 return 0;
18627 _ACEOF
18628 if ac_fn_c_try_compile "$LINENO"; then :
18629 ac_cv_header_stdbool_h=yes
18630 else
18631 ac_cv_header_stdbool_h=no
18633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18636 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18637 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18638 if test "x$ac_cv_type__Bool" = x""yes; then :
18640 cat >>confdefs.h <<_ACEOF
18641 #define HAVE__BOOL 1
18642 _ACEOF
18649 REPLACE_NULL=0;
18650 HAVE_WCHAR_T=1;
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18654 $as_echo_n "checking for wchar_t... " >&6; }
18655 if test "${gt_cv_c_wchar_t+set}" = set; then :
18656 $as_echo_n "(cached) " >&6
18657 else
18658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18659 /* end confdefs.h. */
18660 #include <stddef.h>
18661 wchar_t foo = (wchar_t)'\0';
18663 main ()
18667 return 0;
18669 _ACEOF
18670 if ac_fn_c_try_compile "$LINENO"; then :
18671 gt_cv_c_wchar_t=yes
18672 else
18673 gt_cv_c_wchar_t=no
18675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18678 $as_echo "$gt_cv_c_wchar_t" >&6; }
18679 if test $gt_cv_c_wchar_t = yes; then
18681 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18686 GNULIB_DPRINTF=0;
18687 GNULIB_FCLOSE=0;
18688 GNULIB_FDOPEN=0;
18689 GNULIB_FFLUSH=0;
18690 GNULIB_FGETC=0;
18691 GNULIB_FGETS=0;
18692 GNULIB_FOPEN=0;
18693 GNULIB_FPRINTF=0;
18694 GNULIB_FPRINTF_POSIX=0;
18695 GNULIB_FPURGE=0;
18696 GNULIB_FPUTC=0;
18697 GNULIB_FPUTS=0;
18698 GNULIB_FREAD=0;
18699 GNULIB_FREOPEN=0;
18700 GNULIB_FSCANF=0;
18701 GNULIB_FSEEK=0;
18702 GNULIB_FSEEKO=0;
18703 GNULIB_FTELL=0;
18704 GNULIB_FTELLO=0;
18705 GNULIB_FWRITE=0;
18706 GNULIB_GETC=0;
18707 GNULIB_GETCHAR=0;
18708 GNULIB_GETDELIM=0;
18709 GNULIB_GETLINE=0;
18710 GNULIB_GETS=0;
18711 GNULIB_OBSTACK_PRINTF=0;
18712 GNULIB_OBSTACK_PRINTF_POSIX=0;
18713 GNULIB_PCLOSE=0;
18714 GNULIB_PERROR=0;
18715 GNULIB_POPEN=0;
18716 GNULIB_PRINTF=0;
18717 GNULIB_PRINTF_POSIX=0;
18718 GNULIB_PUTC=0;
18719 GNULIB_PUTCHAR=0;
18720 GNULIB_PUTS=0;
18721 GNULIB_REMOVE=0;
18722 GNULIB_RENAME=0;
18723 GNULIB_RENAMEAT=0;
18724 GNULIB_SCANF=0;
18725 GNULIB_SNPRINTF=0;
18726 GNULIB_SPRINTF_POSIX=0;
18727 GNULIB_STDIO_H_NONBLOCKING=0;
18728 GNULIB_STDIO_H_SIGPIPE=0;
18729 GNULIB_TMPFILE=0;
18730 GNULIB_VASPRINTF=0;
18731 GNULIB_VFSCANF=0;
18732 GNULIB_VSCANF=0;
18733 GNULIB_VDPRINTF=0;
18734 GNULIB_VFPRINTF=0;
18735 GNULIB_VFPRINTF_POSIX=0;
18736 GNULIB_VPRINTF=0;
18737 GNULIB_VPRINTF_POSIX=0;
18738 GNULIB_VSNPRINTF=0;
18739 GNULIB_VSPRINTF_POSIX=0;
18740 HAVE_DECL_FPURGE=1;
18741 HAVE_DECL_FSEEKO=1;
18742 HAVE_DECL_FTELLO=1;
18743 HAVE_DECL_GETDELIM=1;
18744 HAVE_DECL_GETLINE=1;
18745 HAVE_DECL_OBSTACK_PRINTF=1;
18746 HAVE_DECL_SNPRINTF=1;
18747 HAVE_DECL_VSNPRINTF=1;
18748 HAVE_DPRINTF=1;
18749 HAVE_FSEEKO=1;
18750 HAVE_FTELLO=1;
18751 HAVE_PCLOSE=1;
18752 HAVE_POPEN=1;
18753 HAVE_RENAMEAT=1;
18754 HAVE_VASPRINTF=1;
18755 HAVE_VDPRINTF=1;
18756 REPLACE_DPRINTF=0;
18757 REPLACE_FCLOSE=0;
18758 REPLACE_FDOPEN=0;
18759 REPLACE_FFLUSH=0;
18760 REPLACE_FOPEN=0;
18761 REPLACE_FPRINTF=0;
18762 REPLACE_FPURGE=0;
18763 REPLACE_FREOPEN=0;
18764 REPLACE_FSEEK=0;
18765 REPLACE_FSEEKO=0;
18766 REPLACE_FTELL=0;
18767 REPLACE_FTELLO=0;
18768 REPLACE_GETDELIM=0;
18769 REPLACE_GETLINE=0;
18770 REPLACE_OBSTACK_PRINTF=0;
18771 REPLACE_PERROR=0;
18772 REPLACE_POPEN=0;
18773 REPLACE_PRINTF=0;
18774 REPLACE_REMOVE=0;
18775 REPLACE_RENAME=0;
18776 REPLACE_RENAMEAT=0;
18777 REPLACE_SNPRINTF=0;
18778 REPLACE_SPRINTF=0;
18779 REPLACE_STDIO_READ_FUNCS=0;
18780 REPLACE_STDIO_WRITE_FUNCS=0;
18781 REPLACE_TMPFILE=0;
18782 REPLACE_VASPRINTF=0;
18783 REPLACE_VDPRINTF=0;
18784 REPLACE_VFPRINTF=0;
18785 REPLACE_VPRINTF=0;
18786 REPLACE_VSNPRINTF=0;
18787 REPLACE_VSPRINTF=0;
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18790 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18791 if test "${ac_cv_struct_tm+set}" = set; then :
18792 $as_echo_n "(cached) " >&6
18793 else
18794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18796 #include <sys/types.h>
18797 #include <time.h>
18800 main ()
18802 struct tm tm;
18803 int *p = &tm.tm_sec;
18804 return !p;
18806 return 0;
18808 _ACEOF
18809 if ac_fn_c_try_compile "$LINENO"; then :
18810 ac_cv_struct_tm=time.h
18811 else
18812 ac_cv_struct_tm=sys/time.h
18814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18817 $as_echo "$ac_cv_struct_tm" >&6; }
18818 if test $ac_cv_struct_tm = sys/time.h; then
18820 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18824 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18825 #include <$ac_cv_struct_tm>
18828 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
18830 cat >>confdefs.h <<_ACEOF
18831 #define HAVE_STRUCT_TM_TM_ZONE 1
18832 _ACEOF
18837 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18839 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18841 else
18842 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18844 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
18845 ac_have_decl=1
18846 else
18847 ac_have_decl=0
18850 cat >>confdefs.h <<_ACEOF
18851 #define HAVE_DECL_TZNAME $ac_have_decl
18852 _ACEOF
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18855 $as_echo_n "checking for tzname... " >&6; }
18856 if test "${ac_cv_var_tzname+set}" = set; then :
18857 $as_echo_n "(cached) " >&6
18858 else
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18861 #include <time.h>
18862 #if !HAVE_DECL_TZNAME
18863 extern char *tzname[];
18864 #endif
18867 main ()
18869 return tzname[0][0];
18871 return 0;
18873 _ACEOF
18874 if ac_fn_c_try_link "$LINENO"; then :
18875 ac_cv_var_tzname=yes
18876 else
18877 ac_cv_var_tzname=no
18879 rm -f core conftest.err conftest.$ac_objext \
18880 conftest$ac_exeext conftest.$ac_ext
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18883 $as_echo "$ac_cv_var_tzname" >&6; }
18884 if test $ac_cv_var_tzname = yes; then
18886 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18892 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18894 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18896 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18905 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18906 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18907 ac_have_decl=1
18908 else
18909 ac_have_decl=0
18912 cat >>confdefs.h <<_ACEOF
18913 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18914 _ACEOF
18918 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18919 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18920 ac_have_decl=1
18921 else
18922 ac_have_decl=0
18925 cat >>confdefs.h <<_ACEOF
18926 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18927 _ACEOF
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18932 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18933 if test "${ac_cv_header_stat_broken+set}" = set; then :
18934 $as_echo_n "(cached) " >&6
18935 else
18936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h. */
18938 #include <sys/types.h>
18939 #include <sys/stat.h>
18941 #if defined S_ISBLK && defined S_IFDIR
18942 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18943 #endif
18945 #if defined S_ISBLK && defined S_IFCHR
18946 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18947 #endif
18949 #if defined S_ISLNK && defined S_IFREG
18950 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18951 #endif
18953 #if defined S_ISSOCK && defined S_IFREG
18954 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18955 #endif
18957 _ACEOF
18958 if ac_fn_c_try_compile "$LINENO"; then :
18959 ac_cv_header_stat_broken=no
18960 else
18961 ac_cv_header_stat_broken=yes
18963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18966 $as_echo "$ac_cv_header_stat_broken" >&6; }
18967 if test $ac_cv_header_stat_broken = yes; then
18969 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18975 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18976 if test "x$ac_cv_type_mode_t" = x""yes; then :
18978 else
18980 cat >>confdefs.h <<_ACEOF
18981 #define mode_t int
18982 _ACEOF
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18987 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18988 if test "${ac_cv_c_restrict+set}" = set; then :
18989 $as_echo_n "(cached) " >&6
18990 else
18991 ac_cv_c_restrict=no
18992 # The order here caters to the fact that C++ does not require restrict.
18993 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18996 typedef int * int_ptr;
18997 int foo (int_ptr $ac_kw ip) {
18998 return ip[0];
19001 main ()
19003 int s[1];
19004 int * $ac_kw t = s;
19005 t[0] = 0;
19006 return foo(t)
19008 return 0;
19010 _ACEOF
19011 if ac_fn_c_try_compile "$LINENO"; then :
19012 ac_cv_c_restrict=$ac_kw
19014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19015 test "$ac_cv_c_restrict" != no && break
19016 done
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19020 $as_echo "$ac_cv_c_restrict" >&6; }
19022 case $ac_cv_c_restrict in
19023 restrict) ;;
19024 no) $as_echo "#define restrict /**/" >>confdefs.h
19026 *) cat >>confdefs.h <<_ACEOF
19027 #define restrict $ac_cv_c_restrict
19028 _ACEOF
19030 esac
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19037 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19038 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19039 $as_echo_n "(cached) " >&6
19040 else
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19043 #include <time.h>
19046 main ()
19048 static struct timespec x; x.tv_sec = x.tv_nsec;
19050 return 0;
19052 _ACEOF
19053 if ac_fn_c_try_compile "$LINENO"; then :
19054 gl_cv_sys_struct_timespec_in_time_h=yes
19055 else
19056 gl_cv_sys_struct_timespec_in_time_h=no
19058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19061 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19063 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19064 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19065 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19066 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19067 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19068 else
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19070 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19071 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19072 $as_echo_n "(cached) " >&6
19073 else
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h. */
19076 #include <sys/time.h>
19079 main ()
19081 static struct timespec x; x.tv_sec = x.tv_nsec;
19083 return 0;
19085 _ACEOF
19086 if ac_fn_c_try_compile "$LINENO"; then :
19087 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19088 else
19089 gl_cv_sys_struct_timespec_in_sys_time_h=no
19091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19094 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19095 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19096 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19097 else
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19099 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19100 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19101 $as_echo_n "(cached) " >&6
19102 else
19103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19104 /* end confdefs.h. */
19105 #include <pthread.h>
19108 main ()
19110 static struct timespec x; x.tv_sec = x.tv_nsec;
19112 return 0;
19114 _ACEOF
19115 if ac_fn_c_try_compile "$LINENO"; then :
19116 gl_cv_sys_struct_timespec_in_pthread_h=yes
19117 else
19118 gl_cv_sys_struct_timespec_in_pthread_h=no
19120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19123 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19124 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19125 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19144 if test $gl_cv_have_include_next = yes; then
19145 gl_cv_next_time_h='<'time.h'>'
19146 else
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19148 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19149 if test "${gl_cv_next_time_h+set}" = set; then :
19150 $as_echo_n "(cached) " >&6
19151 else
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19155 #include <time.h>
19157 _ACEOF
19158 case "$host_os" in
19159 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19160 *) gl_absname_cpp="$ac_cpp" ;;
19161 esac
19163 case "$host_os" in
19164 mingw*)
19165 gl_dirsep_regex='[/\\]'
19168 gl_dirsep_regex='/'
19170 esac
19172 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
19173 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19174 s|^/[^/]|//&|
19178 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19179 sed -n "$gl_absolute_header_sed"`'"'
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19184 $as_echo "$gl_cv_next_time_h" >&6; }
19186 NEXT_TIME_H=$gl_cv_next_time_h
19188 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19190 gl_next_as_first_directive='<'time.h'>'
19191 else
19192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19193 gl_next_as_first_directive=$gl_cv_next_time_h
19195 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19202 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19203 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19204 ac_have_decl=1
19205 else
19206 ac_have_decl=0
19209 cat >>confdefs.h <<_ACEOF
19210 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19211 _ACEOF
19216 if false; then
19217 GL_COND_LIBTOOL_TRUE=
19218 GL_COND_LIBTOOL_FALSE='#'
19219 else
19220 GL_COND_LIBTOOL_TRUE='#'
19221 GL_COND_LIBTOOL_FALSE=
19224 gl_cond_libtool=false
19225 gl_libdeps=
19226 gl_ltlibdeps=
19227 gl_m4_base='m4'
19237 gl_source_base='lib'
19240 if test $ac_cv_func_alloca_works = no; then
19244 # Define an additional variable used in the Makefile substitution.
19245 if test $ac_cv_working_alloca_h = yes; then
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19247 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19248 if test "${gl_cv_rpl_alloca+set}" = set; then :
19249 $as_echo_n "(cached) " >&6
19250 else
19252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19253 /* end confdefs.h. */
19255 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19256 Need own alloca
19257 #endif
19259 _ACEOF
19260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19261 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19262 gl_cv_rpl_alloca=yes
19263 else
19264 gl_cv_rpl_alloca=no
19266 rm -f conftest*
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19271 $as_echo "$gl_cv_rpl_alloca" >&6; }
19272 if test $gl_cv_rpl_alloca = yes; then
19274 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19276 ALLOCA_H=alloca.h
19277 else
19278 ALLOCA_H=
19280 else
19281 ALLOCA_H=alloca.h
19284 if test -n "$ALLOCA_H"; then
19285 GL_GENERATE_ALLOCA_H_TRUE=
19286 GL_GENERATE_ALLOCA_H_FALSE='#'
19287 else
19288 GL_GENERATE_ALLOCA_H_TRUE='#'
19289 GL_GENERATE_ALLOCA_H_FALSE=
19318 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19321 if test $HAVE_DUP2 = 1; then
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19323 $as_echo_n "checking whether dup2 works... " >&6; }
19324 if test "${gl_cv_func_dup2_works+set}" = set; then :
19325 $as_echo_n "(cached) " >&6
19326 else
19327 if test "$cross_compiling" = yes; then :
19328 case "$host_os" in
19329 mingw*) # on this platform, dup2 always returns 0 for success
19330 gl_cv_func_dup2_works=no;;
19331 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19332 gl_cv_func_dup2_works=no;;
19333 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19334 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19335 gl_cv_func_dup2_works=no;;
19336 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19337 gl_cv_func_dup2_works=no;;
19338 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19339 gl_cv_func_dup2_works=no;;
19340 *) gl_cv_func_dup2_works=yes;;
19341 esac
19342 else
19343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19344 /* end confdefs.h. */
19346 #include <unistd.h>
19347 #include <fcntl.h>
19348 #include <errno.h>
19350 main ()
19352 int result = 0;
19353 #ifdef FD_CLOEXEC
19354 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19355 result |= 1;
19356 #endif
19357 if (dup2 (1, 1) == 0)
19358 result |= 2;
19359 #ifdef FD_CLOEXEC
19360 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19361 result |= 4;
19362 #endif
19363 close (0);
19364 if (dup2 (0, 0) != -1)
19365 result |= 8;
19366 /* Many gnulib modules require POSIX conformance of EBADF. */
19367 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19368 result |= 16;
19369 return result;
19372 return 0;
19375 _ACEOF
19376 if ac_fn_c_try_run "$LINENO"; then :
19377 gl_cv_func_dup2_works=yes
19378 else
19379 gl_cv_func_dup2_works=no
19381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19382 conftest.$ac_objext conftest.beam conftest.$ac_ext
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19388 $as_echo "$gl_cv_func_dup2_works" >&6; }
19389 if test "$gl_cv_func_dup2_works" = no; then
19390 REPLACE_DUP2=1
19395 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19404 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19413 GNULIB_DUP2=1
19425 # Persuade glibc <stdlib.h> to declare getloadavg().
19428 gl_save_LIBS=$LIBS
19430 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19431 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19432 HAVE_GETLOADAVG=1
19433 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19434 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19436 else
19437 gl_func_getloadavg_done=no
19439 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19440 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19441 # to get the right answer into the cache.
19442 # For kstat on solaris, we need to test for libelf and libkvm to force the
19443 # definition of SVR4 below.
19444 if test $gl_func_getloadavg_done = no; then
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19446 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19447 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19448 $as_echo_n "(cached) " >&6
19449 else
19450 ac_check_lib_save_LIBS=$LIBS
19451 LIBS="-lelf $LIBS"
19452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19453 /* end confdefs.h. */
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19458 #ifdef __cplusplus
19459 extern "C"
19460 #endif
19461 char elf_begin ();
19463 main ()
19465 return elf_begin ();
19467 return 0;
19469 _ACEOF
19470 if ac_fn_c_try_link "$LINENO"; then :
19471 ac_cv_lib_elf_elf_begin=yes
19472 else
19473 ac_cv_lib_elf_elf_begin=no
19475 rm -f core conftest.err conftest.$ac_objext \
19476 conftest$ac_exeext conftest.$ac_ext
19477 LIBS=$ac_check_lib_save_LIBS
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19480 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19481 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19482 LIBS="-lelf $LIBS"
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19486 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19487 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19488 $as_echo_n "(cached) " >&6
19489 else
19490 ac_check_lib_save_LIBS=$LIBS
19491 LIBS="-lkvm $LIBS"
19492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h. */
19495 /* Override any GCC internal prototype to avoid an error.
19496 Use char because int might match the return type of a GCC
19497 builtin and then its argument prototype would still apply. */
19498 #ifdef __cplusplus
19499 extern "C"
19500 #endif
19501 char kvm_open ();
19503 main ()
19505 return kvm_open ();
19507 return 0;
19509 _ACEOF
19510 if ac_fn_c_try_link "$LINENO"; then :
19511 ac_cv_lib_kvm_kvm_open=yes
19512 else
19513 ac_cv_lib_kvm_kvm_open=no
19515 rm -f core conftest.err conftest.$ac_objext \
19516 conftest$ac_exeext conftest.$ac_ext
19517 LIBS=$ac_check_lib_save_LIBS
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19520 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19521 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19522 LIBS="-lkvm $LIBS"
19525 # Check for the 4.4BSD definition of getloadavg.
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19527 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19528 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19529 $as_echo_n "(cached) " >&6
19530 else
19531 ac_check_lib_save_LIBS=$LIBS
19532 LIBS="-lutil $LIBS"
19533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534 /* end confdefs.h. */
19536 /* Override any GCC internal prototype to avoid an error.
19537 Use char because int might match the return type of a GCC
19538 builtin and then its argument prototype would still apply. */
19539 #ifdef __cplusplus
19540 extern "C"
19541 #endif
19542 char getloadavg ();
19544 main ()
19546 return getloadavg ();
19548 return 0;
19550 _ACEOF
19551 if ac_fn_c_try_link "$LINENO"; then :
19552 ac_cv_lib_util_getloadavg=yes
19553 else
19554 ac_cv_lib_util_getloadavg=no
19556 rm -f core conftest.err conftest.$ac_objext \
19557 conftest$ac_exeext conftest.$ac_ext
19558 LIBS=$ac_check_lib_save_LIBS
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19561 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19562 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19563 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19568 if test $gl_func_getloadavg_done = no; then
19569 # There is a commonly available library for RS/6000 AIX.
19570 # Since it is not a standard part of AIX, it might be installed locally.
19571 gl_getloadavg_LIBS=$LIBS
19572 LIBS="-L/usr/local/lib $LIBS"
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19574 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19575 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19576 $as_echo_n "(cached) " >&6
19577 else
19578 ac_check_lib_save_LIBS=$LIBS
19579 LIBS="-lgetloadavg $LIBS"
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19583 /* Override any GCC internal prototype to avoid an error.
19584 Use char because int might match the return type of a GCC
19585 builtin and then its argument prototype would still apply. */
19586 #ifdef __cplusplus
19587 extern "C"
19588 #endif
19589 char getloadavg ();
19591 main ()
19593 return getloadavg ();
19595 return 0;
19597 _ACEOF
19598 if ac_fn_c_try_link "$LINENO"; then :
19599 ac_cv_lib_getloadavg_getloadavg=yes
19600 else
19601 ac_cv_lib_getloadavg_getloadavg=no
19603 rm -f core conftest.err conftest.$ac_objext \
19604 conftest$ac_exeext conftest.$ac_ext
19605 LIBS=$ac_check_lib_save_LIBS
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19608 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19609 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19610 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19611 else
19612 LIBS=$gl_getloadavg_LIBS
19617 # Set up the replacement function if necessary.
19618 if test $gl_func_getloadavg_done = no; then
19619 HAVE_GETLOADAVG=0
19621 # Solaris has libkstat which does not require root.
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19623 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19624 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19625 $as_echo_n "(cached) " >&6
19626 else
19627 ac_check_lib_save_LIBS=$LIBS
19628 LIBS="-lkstat $LIBS"
19629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h. */
19632 /* Override any GCC internal prototype to avoid an error.
19633 Use char because int might match the return type of a GCC
19634 builtin and then its argument prototype would still apply. */
19635 #ifdef __cplusplus
19636 extern "C"
19637 #endif
19638 char kstat_open ();
19640 main ()
19642 return kstat_open ();
19644 return 0;
19646 _ACEOF
19647 if ac_fn_c_try_link "$LINENO"; then :
19648 ac_cv_lib_kstat_kstat_open=yes
19649 else
19650 ac_cv_lib_kstat_kstat_open=no
19652 rm -f core conftest.err conftest.$ac_objext \
19653 conftest$ac_exeext conftest.$ac_ext
19654 LIBS=$ac_check_lib_save_LIBS
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19657 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19658 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19659 cat >>confdefs.h <<_ACEOF
19660 #define HAVE_LIBKSTAT 1
19661 _ACEOF
19663 LIBS="-lkstat $LIBS"
19667 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19669 # AIX has libperfstat which does not require root
19670 if test $gl_func_getloadavg_done = no; then
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19672 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19673 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19674 $as_echo_n "(cached) " >&6
19675 else
19676 ac_check_lib_save_LIBS=$LIBS
19677 LIBS="-lperfstat $LIBS"
19678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19679 /* end confdefs.h. */
19681 /* Override any GCC internal prototype to avoid an error.
19682 Use char because int might match the return type of a GCC
19683 builtin and then its argument prototype would still apply. */
19684 #ifdef __cplusplus
19685 extern "C"
19686 #endif
19687 char perfstat_cpu_total ();
19689 main ()
19691 return perfstat_cpu_total ();
19693 return 0;
19695 _ACEOF
19696 if ac_fn_c_try_link "$LINENO"; then :
19697 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19698 else
19699 ac_cv_lib_perfstat_perfstat_cpu_total=no
19701 rm -f core conftest.err conftest.$ac_objext \
19702 conftest$ac_exeext conftest.$ac_ext
19703 LIBS=$ac_check_lib_save_LIBS
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19706 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19707 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19708 cat >>confdefs.h <<_ACEOF
19709 #define HAVE_LIBPERFSTAT 1
19710 _ACEOF
19712 LIBS="-lperfstat $LIBS"
19716 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19719 if test $gl_func_getloadavg_done = no; then
19720 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19721 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19722 gl_func_getloadavg_done=yes
19724 $as_echo "#define DGUX 1" >>confdefs.h
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19727 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19728 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19729 $as_echo_n "(cached) " >&6
19730 else
19731 ac_check_lib_save_LIBS=$LIBS
19732 LIBS="-ldgc $LIBS"
19733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h. */
19736 /* Override any GCC internal prototype to avoid an error.
19737 Use char because int might match the return type of a GCC
19738 builtin and then its argument prototype would still apply. */
19739 #ifdef __cplusplus
19740 extern "C"
19741 #endif
19742 char dg_sys_info ();
19744 main ()
19746 return dg_sys_info ();
19748 return 0;
19750 _ACEOF
19751 if ac_fn_c_try_link "$LINENO"; then :
19752 ac_cv_lib_dgc_dg_sys_info=yes
19753 else
19754 ac_cv_lib_dgc_dg_sys_info=no
19756 rm -f core conftest.err conftest.$ac_objext \
19757 conftest$ac_exeext conftest.$ac_ext
19758 LIBS=$ac_check_lib_save_LIBS
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19761 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19762 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19763 cat >>confdefs.h <<_ACEOF
19764 #define HAVE_LIBDGC 1
19765 _ACEOF
19767 LIBS="-ldgc $LIBS"
19779 if test "x$gl_save_LIBS" = x; then
19780 GETLOADAVG_LIBS=$LIBS
19781 else
19782 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19784 LIBS=$gl_save_LIBS
19787 # Test whether the system declares getloadavg. Solaris has the function
19788 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19789 for ac_header in sys/loadavg.h
19790 do :
19791 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19792 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19793 cat >>confdefs.h <<_ACEOF
19794 #define HAVE_SYS_LOADAVG_H 1
19795 _ACEOF
19799 done
19801 if test $ac_cv_header_sys_loadavg_h = yes; then
19802 HAVE_SYS_LOADAVG_H=1
19803 else
19804 HAVE_SYS_LOADAVG_H=0
19806 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19807 # include <sys/loadavg.h>
19808 #endif
19809 #include <stdlib.h>
19811 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19813 else
19814 HAVE_DECL_GETLOADAVG=0
19818 if test $HAVE_GETLOADAVG = 0; then
19827 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19830 # Figure out what our getloadavg.c needs.
19832 # On HPUX9, an unprivileged user can get load averages this way.
19833 if test $gl_func_getloadavg_done = no; then
19834 for ac_func in pstat_getdynamic
19835 do :
19836 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19837 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19838 cat >>confdefs.h <<_ACEOF
19839 #define HAVE_PSTAT_GETDYNAMIC 1
19840 _ACEOF
19841 gl_func_getloadavg_done=yes
19843 done
19847 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19848 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19849 # Irix 4.0.5F has the header but not the library.
19850 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19851 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19852 gl_func_getloadavg_done=yes
19854 $as_echo "#define SVR4 1" >>confdefs.h
19858 if test $gl_func_getloadavg_done = no; then
19859 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19860 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19861 gl_func_getloadavg_done=yes
19863 $as_echo "#define UMAX 1" >>confdefs.h
19866 $as_echo "#define UMAX4_3 1" >>confdefs.h
19873 if test $gl_func_getloadavg_done = no; then
19874 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19875 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19876 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19883 if test $gl_func_getloadavg_done = no; then
19884 for ac_header in mach/mach.h
19885 do :
19886 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19887 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19888 cat >>confdefs.h <<_ACEOF
19889 #define HAVE_MACH_MACH_H 1
19890 _ACEOF
19894 done
19898 for ac_header in nlist.h
19899 do :
19900 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19901 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19902 cat >>confdefs.h <<_ACEOF
19903 #define HAVE_NLIST_H 1
19904 _ACEOF
19905 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19907 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19909 cat >>confdefs.h <<_ACEOF
19910 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19911 _ACEOF
19916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917 /* end confdefs.h. */
19918 #include <nlist.h>
19920 main ()
19922 struct nlist x;
19923 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19924 x.n_un.n_name = "";
19925 #else
19926 x.n_name = "";
19927 #endif
19929 return 0;
19931 _ACEOF
19932 if ac_fn_c_try_link "$LINENO"; then :
19934 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19937 rm -f core conftest.err conftest.$ac_objext \
19938 conftest$ac_exeext conftest.$ac_ext
19942 done
19950 GNULIB_GETLOADAVG=1
19961 if test $REPLACE_GETOPT = 1; then
19970 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19980 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19991 REPLACE_GETOPT=0
19994 if test -n "$gl_replace_getopt"; then :
19996 REPLACE_GETOPT=1
20001 if test $REPLACE_GETOPT = 1; then
20003 GETOPT_H=getopt.h
20005 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20009 GNULIB_UNISTD_H_GETOPT=1
20012 if test $REPLACE_GETOPT = 1; then
20021 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20031 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20042 if test $ac_cv_func_lstat = yes; then
20044 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20045 REPLACE_LSTAT=1
20047 else
20048 HAVE_LSTAT=0
20051 if test $REPLACE_LSTAT = 1; then
20060 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20072 GNULIB_LSTAT=1
20084 if test $APPLE_UNIVERSAL_BUILD = 1; then
20085 # A universal build on Apple MacOS X platforms.
20086 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20087 # But we need a configuration result that is valid in both modes.
20088 gl_cv_func_working_mktime=no
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20091 $as_echo_n "checking for working mktime... " >&6; }
20092 if test "${gl_cv_func_working_mktime+set}" = set; then :
20093 $as_echo_n "(cached) " >&6
20094 else
20095 if test "$cross_compiling" = yes; then :
20096 gl_cv_func_working_mktime=no
20097 else
20098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h. */
20100 /* Test program from Paul Eggert and Tony Leneis. */
20101 #include <limits.h>
20102 #include <stdlib.h>
20103 #include <time.h>
20105 #ifdef HAVE_UNISTD_H
20106 # include <unistd.h>
20107 #endif
20109 #ifndef HAVE_ALARM
20110 # define alarm(X) /* empty */
20111 #endif
20113 /* Work around redefinition to rpl_putenv by other config tests. */
20114 #undef putenv
20116 static time_t time_t_max;
20117 static time_t time_t_min;
20119 /* Values we'll use to set the TZ environment variable. */
20120 static char *tz_strings[] = {
20121 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20122 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20124 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20126 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20127 Based on a problem report from Andreas Jaeger. */
20128 static int
20129 spring_forward_gap ()
20131 /* glibc (up to about 1998-10-07) failed this test. */
20132 struct tm tm;
20134 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20135 instead of "TZ=America/Vancouver" in order to detect the bug even
20136 on systems that don't support the Olson extension, or don't have the
20137 full zoneinfo tables installed. */
20138 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20140 tm.tm_year = 98;
20141 tm.tm_mon = 3;
20142 tm.tm_mday = 5;
20143 tm.tm_hour = 2;
20144 tm.tm_min = 0;
20145 tm.tm_sec = 0;
20146 tm.tm_isdst = -1;
20147 return mktime (&tm) != (time_t) -1;
20150 static int
20151 mktime_test1 (time_t now)
20153 struct tm *lt;
20154 return ! (lt = localtime (&now)) || mktime (lt) == now;
20157 static int
20158 mktime_test (time_t now)
20160 return (mktime_test1 (now)
20161 && mktime_test1 ((time_t) (time_t_max - now))
20162 && mktime_test1 ((time_t) (time_t_min + now)));
20165 static int
20166 irix_6_4_bug ()
20168 /* Based on code from Ariel Faigon. */
20169 struct tm tm;
20170 tm.tm_year = 96;
20171 tm.tm_mon = 3;
20172 tm.tm_mday = 0;
20173 tm.tm_hour = 0;
20174 tm.tm_min = 0;
20175 tm.tm_sec = 0;
20176 tm.tm_isdst = -1;
20177 mktime (&tm);
20178 return tm.tm_mon == 2 && tm.tm_mday == 31;
20181 static int
20182 bigtime_test (int j)
20184 struct tm tm;
20185 time_t now;
20186 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20187 now = mktime (&tm);
20188 if (now != (time_t) -1)
20190 struct tm *lt = localtime (&now);
20191 if (! (lt
20192 && lt->tm_year == tm.tm_year
20193 && lt->tm_mon == tm.tm_mon
20194 && lt->tm_mday == tm.tm_mday
20195 && lt->tm_hour == tm.tm_hour
20196 && lt->tm_min == tm.tm_min
20197 && lt->tm_sec == tm.tm_sec
20198 && lt->tm_yday == tm.tm_yday
20199 && lt->tm_wday == tm.tm_wday
20200 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20201 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20202 return 0;
20204 return 1;
20207 static int
20208 year_2050_test ()
20210 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20211 ignoring leap seconds. */
20212 unsigned long int answer = 2527315200UL;
20214 struct tm tm;
20215 time_t t;
20216 tm.tm_year = 2050 - 1900;
20217 tm.tm_mon = 2 - 1;
20218 tm.tm_mday = 1;
20219 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20220 tm.tm_isdst = -1;
20222 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20223 instead of "TZ=America/Vancouver" in order to detect the bug even
20224 on systems that don't support the Olson extension, or don't have the
20225 full zoneinfo tables installed. */
20226 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20228 t = mktime (&tm);
20230 /* Check that the result is either a failure, or close enough
20231 to the correct answer that we can assume the discrepancy is
20232 due to leap seconds. */
20233 return (t == (time_t) -1
20234 || (0 < t && answer - 120 <= t && t <= answer + 120));
20238 main ()
20240 int result = 0;
20241 time_t t, delta;
20242 int i, j;
20243 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20244 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20246 /* This test makes some buggy mktime implementations loop.
20247 Give up after 60 seconds; a mktime slower than that
20248 isn't worth using anyway. */
20249 alarm (60);
20251 time_t_max = (! time_t_signed
20252 ? (time_t) -1
20253 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20254 * 2 + 1));
20255 time_t_min = (! time_t_signed
20256 ? (time_t) 0
20257 : time_t_signed_magnitude
20258 ? ~ (time_t) 0
20259 : ~ time_t_max);
20261 delta = time_t_max / 997; /* a suitable prime number */
20262 for (i = 0; i < N_STRINGS; i++)
20264 if (tz_strings[i])
20265 putenv (tz_strings[i]);
20267 for (t = 0; t <= time_t_max - delta; t += delta)
20268 if (! mktime_test (t))
20269 result |= 1;
20270 if (! (mktime_test ((time_t) 1)
20271 && mktime_test ((time_t) (60 * 60))
20272 && mktime_test ((time_t) (60 * 60 * 24))))
20273 result |= 2;
20275 for (j = 1; ; j <<= 1)
20276 if (! bigtime_test (j))
20277 result |= 4;
20278 else if (INT_MAX / 2 < j)
20279 break;
20280 if (! bigtime_test (INT_MAX))
20281 result |= 8;
20283 if (! irix_6_4_bug ())
20284 result |= 16;
20285 if (! spring_forward_gap ())
20286 result |= 32;
20287 if (! year_2050_test ())
20288 result |= 64;
20289 return result;
20291 _ACEOF
20292 if ac_fn_c_try_run "$LINENO"; then :
20293 gl_cv_func_working_mktime=yes
20294 else
20295 gl_cv_func_working_mktime=no
20297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20298 conftest.$ac_objext conftest.beam conftest.$ac_ext
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20304 $as_echo "$gl_cv_func_working_mktime" >&6; }
20306 if test $gl_cv_func_working_mktime = no; then
20307 REPLACE_MKTIME=1
20308 else
20309 REPLACE_MKTIME=0
20312 if test $REPLACE_MKTIME = 1; then
20321 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20332 GNULIB_MKTIME=1
20341 LIB_PTHREAD_SIGMASK=
20344 if test $ac_cv_func_pthread_sigmask = yes; then
20346 else
20347 HAVE_PTHREAD_SIGMASK=0
20348 REPLACE_PTHREAD_SIGMASK=1
20354 if test $HAVE_PTHREAD_SIGMASK = 1; then
20357 if test -z "$LIB_PTHREAD_SIGMASK"; then
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20359 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20360 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20361 $as_echo_n "(cached) " >&6
20362 else
20364 if test "$cross_compiling" = yes; then :
20366 case "$host_os" in
20367 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20368 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20370 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20371 esac
20373 else
20374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h. */
20377 #include <pthread.h>
20378 #include <signal.h>
20379 #include <stddef.h>
20380 int main ()
20382 sigset_t set;
20383 sigemptyset (&set);
20384 return pthread_sigmask (1729, &set, NULL) != 0;
20386 _ACEOF
20387 if ac_fn_c_try_run "$LINENO"; then :
20388 gl_cv_func_pthread_sigmask_in_libc_works=no
20389 else
20390 gl_cv_func_pthread_sigmask_in_libc_works=yes
20392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20393 conftest.$ac_objext conftest.beam conftest.$ac_ext
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20399 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20400 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20401 *no)
20402 REPLACE_PTHREAD_SIGMASK=1
20404 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20407 esac
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20411 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20412 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20413 $as_echo_n "(cached) " >&6
20414 else
20416 gl_save_LIBS="$LIBS"
20417 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20418 if test "$cross_compiling" = yes; then :
20419 case "$host_os" in
20420 cygwin*)
20421 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20423 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20424 esac
20426 else
20427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20428 /* end confdefs.h. */
20430 #include <pthread.h>
20431 #include <signal.h>
20432 #include <stddef.h>
20433 int main ()
20435 sigset_t set;
20436 sigemptyset (&set);
20437 if (pthread_sigmask (1729, &set, NULL) == -1)
20438 return 1;
20439 return 0;
20441 _ACEOF
20442 if ac_fn_c_try_run "$LINENO"; then :
20443 gl_cv_func_pthread_sigmask_return_works=yes
20444 else
20445 gl_cv_func_pthread_sigmask_return_works=no
20447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20448 conftest.$ac_objext conftest.beam conftest.$ac_ext
20451 LIBS="$gl_save_LIBS"
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20455 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20456 case "$gl_cv_func_pthread_sigmask_return_works" in
20457 *no)
20458 REPLACE_PTHREAD_SIGMASK=1
20460 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20463 esac
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20466 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20467 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20468 $as_echo_n "(cached) " >&6
20469 else
20471 case "$host_os" in
20472 irix*)
20473 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20475 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20476 esac
20477 gl_save_LIBS="$LIBS"
20478 LIBS="$LIBS $LIBMULTITHREAD"
20479 if test "$cross_compiling" = yes; then :
20481 else
20482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20483 /* end confdefs.h. */
20485 #include <pthread.h>
20486 #include <signal.h>
20487 #include <stdio.h>
20488 #include <stdlib.h>
20489 #include <unistd.h>
20490 static volatile int sigint_occurred;
20491 static void
20492 sigint_handler (int sig)
20494 sigint_occurred++;
20496 int main ()
20498 sigset_t set;
20499 int pid = getpid ();
20500 char command[80];
20501 signal (SIGINT, sigint_handler);
20502 sigemptyset (&set);
20503 sigaddset (&set, SIGINT);
20504 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20505 return 1;
20506 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20507 if (!(system (command) == 0))
20508 return 2;
20509 sleep (2);
20510 if (!(sigint_occurred == 0))
20511 return 3;
20512 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20513 return 4;
20514 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20515 return 5;
20516 return 0;
20518 _ACEOF
20519 if ac_fn_c_try_run "$LINENO"; then :
20521 else
20522 gl_cv_func_pthread_sigmask_unblock_works=no
20524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20525 conftest.$ac_objext conftest.beam conftest.$ac_ext
20528 LIBS="$gl_save_LIBS"
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20532 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20533 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20534 *no)
20535 REPLACE_PTHREAD_SIGMASK=1
20537 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20540 esac
20543 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20552 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20555 if test $HAVE_PTHREAD_SIGMASK = 1; then
20557 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20567 GNULIB_PTHREAD_SIGMASK=1
20576 if test $ac_cv_func_readlink = no; then
20577 HAVE_READLINK=0
20578 else
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20580 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20581 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20582 $as_echo_n "(cached) " >&6
20583 else
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20586 #include <unistd.h>
20587 /* Cause compilation failure if original declaration has wrong type. */
20588 ssize_t readlink (const char *, char *, size_t);
20590 main ()
20594 return 0;
20596 _ACEOF
20597 if ac_fn_c_try_compile "$LINENO"; then :
20598 gl_cv_decl_readlink_works=yes
20599 else
20600 gl_cv_decl_readlink_works=no
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20605 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20607 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20608 if test "${gl_cv_func_readlink_works+set}" = set; then :
20609 $as_echo_n "(cached) " >&6
20610 else
20611 # We have readlink, so assume ln -s works.
20612 ln -s conftest.no-such conftest.link
20613 ln -s conftest.link conftest.lnk2
20614 if test "$cross_compiling" = yes; then :
20615 gl_cv_func_readlink_works="guessing no"
20616 else
20617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h. */
20619 #include <unistd.h>
20622 main ()
20624 char buf[20];
20625 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20627 return 0;
20629 _ACEOF
20630 if ac_fn_c_try_run "$LINENO"; then :
20631 gl_cv_func_readlink_works=yes
20632 else
20633 gl_cv_func_readlink_works=no
20635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20636 conftest.$ac_objext conftest.beam conftest.$ac_ext
20639 rm -f conftest.link conftest.lnk2
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20642 $as_echo "$gl_cv_func_readlink_works" >&6; }
20643 if test "$gl_cv_func_readlink_works" != yes; then
20645 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20647 REPLACE_READLINK=1
20648 elif test "$gl_cv_decl_readlink_works" != yes; then
20649 REPLACE_READLINK=1
20653 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20662 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20673 GNULIB_READLINK=1
20690 if test $gl_cv_have_include_next = yes; then
20691 gl_cv_next_signal_h='<'signal.h'>'
20692 else
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20694 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20695 if test "${gl_cv_next_signal_h+set}" = set; then :
20696 $as_echo_n "(cached) " >&6
20697 else
20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20701 #include <signal.h>
20703 _ACEOF
20704 case "$host_os" in
20705 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20706 *) gl_absname_cpp="$ac_cpp" ;;
20707 esac
20709 case "$host_os" in
20710 mingw*)
20711 gl_dirsep_regex='[/\\]'
20714 gl_dirsep_regex='/'
20716 esac
20718 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
20719 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
20720 s|^/[^/]|//&|
20724 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20725 sed -n "$gl_absolute_header_sed"`'"'
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20730 $as_echo "$gl_cv_next_signal_h" >&6; }
20732 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20734 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20736 gl_next_as_first_directive='<'signal.h'>'
20737 else
20738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20739 gl_next_as_first_directive=$gl_cv_next_signal_h
20741 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20747 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20748 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20749 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20750 #include <signal.h>
20753 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20755 else
20756 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20765 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20766 #include <signal.h>
20769 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20771 else
20772 HAVE_SIGHANDLER_T=0
20778 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20779 /* <sys/types.h> is not needed according to POSIX, but the
20780 <sys/socket.h> in i386-unknown-freebsd4.10 and
20781 powerpc-apple-darwin5.5 required it. */
20782 #include <sys/types.h>
20783 #if HAVE_SYS_SOCKET_H
20784 # include <sys/socket.h>
20785 #elif HAVE_WS2TCPIP_H
20786 # include <ws2tcpip.h>
20787 #endif
20790 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20792 else
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20794 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20795 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20796 $as_echo_n "(cached) " >&6
20797 else
20798 # Systems have either "struct sockaddr *" or
20799 # "void *" as the second argument to getpeername
20800 gl_cv_socklen_t_equiv=
20801 for arg2 in "struct sockaddr" void; do
20802 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h. */
20805 #include <sys/types.h>
20806 #include <sys/socket.h>
20808 int getpeername (int, $arg2 *, $t *);
20810 main ()
20812 $t len;
20813 getpeername (0, 0, &len);
20815 return 0;
20817 _ACEOF
20818 if ac_fn_c_try_compile "$LINENO"; then :
20819 gl_cv_socklen_t_equiv="$t"
20821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20822 test "$gl_cv_socklen_t_equiv" != "" && break
20823 done
20824 test "$gl_cv_socklen_t_equiv" != "" && break
20825 done
20829 if test "$gl_cv_socklen_t_equiv" = ""; then
20830 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20833 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20835 cat >>confdefs.h <<_ACEOF
20836 #define socklen_t $gl_cv_socklen_t_equiv
20837 _ACEOF
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20843 $as_echo_n "checking for ssize_t... " >&6; }
20844 if test "${gt_cv_ssize_t+set}" = set; then :
20845 $as_echo_n "(cached) " >&6
20846 else
20847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20848 /* end confdefs.h. */
20849 #include <sys/types.h>
20851 main ()
20853 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20854 return !x;
20856 return 0;
20858 _ACEOF
20859 if ac_fn_c_try_compile "$LINENO"; then :
20860 gt_cv_ssize_t=yes
20861 else
20862 gt_cv_ssize_t=no
20864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20867 $as_echo "$gt_cv_ssize_t" >&6; }
20868 if test $gt_cv_ssize_t = no; then
20870 $as_echo "#define ssize_t int" >>confdefs.h
20875 STDARG_H=''
20876 NEXT_STDARG_H='<stdarg.h>'
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20878 $as_echo_n "checking for va_copy... " >&6; }
20879 if test "${gl_cv_func_va_copy+set}" = set; then :
20880 $as_echo_n "(cached) " >&6
20881 else
20883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20884 /* end confdefs.h. */
20885 #include <stdarg.h>
20887 main ()
20890 #ifndef va_copy
20891 void (*func) (va_list, va_list) = va_copy;
20892 #endif
20895 return 0;
20897 _ACEOF
20898 if ac_fn_c_try_compile "$LINENO"; then :
20899 gl_cv_func_va_copy=yes
20900 else
20901 gl_cv_func_va_copy=no
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20907 $as_echo "$gl_cv_func_va_copy" >&6; }
20908 if test $gl_cv_func_va_copy = no; then
20909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20910 /* end confdefs.h. */
20911 #if defined _AIX && !defined __GNUC__
20912 AIX vaccine
20913 #endif
20915 _ACEOF
20916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20917 $EGREP "vaccine" >/dev/null 2>&1; then :
20918 gl_aixcc=yes
20919 else
20920 gl_aixcc=no
20922 rm -f conftest*
20924 if test $gl_aixcc = yes; then
20925 STDARG_H=stdarg.h
20934 if test $gl_cv_have_include_next = yes; then
20935 gl_cv_next_stdarg_h='<'stdarg.h'>'
20936 else
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20938 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20939 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20940 $as_echo_n "(cached) " >&6
20941 else
20943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h. */
20945 #include <stdarg.h>
20947 _ACEOF
20948 case "$host_os" in
20949 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20950 *) gl_absname_cpp="$ac_cpp" ;;
20951 esac
20953 case "$host_os" in
20954 mingw*)
20955 gl_dirsep_regex='[/\\]'
20958 gl_dirsep_regex='/'
20960 esac
20962 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
20963 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
20964 s|^/[^/]|//&|
20968 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20969 sed -n "$gl_absolute_header_sed"`'"'
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20974 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20976 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20980 gl_next_as_first_directive='<'stdarg.h'>'
20981 else
20982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20983 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20985 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20990 if test "$gl_cv_next_stdarg_h" = '""'; then
20991 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20992 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20994 else
20996 saved_as_echo_n="$as_echo_n"
20997 as_echo_n=':'
20998 if test "${gl_cv_func___va_copy+set}" = set; then :
20999 $as_echo_n "(cached) " >&6
21000 else
21002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21003 /* end confdefs.h. */
21004 #include <stdarg.h>
21006 main ()
21009 #ifndef __va_copy
21010 error, bail out
21011 #endif
21014 return 0;
21016 _ACEOF
21017 if ac_fn_c_try_compile "$LINENO"; then :
21018 gl_cv_func___va_copy=yes
21019 else
21020 gl_cv_func___va_copy=no
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 as_echo_n="$saved_as_echo_n"
21027 if test $gl_cv_func___va_copy = yes; then
21029 $as_echo "#define va_copy __va_copy" >>confdefs.h
21031 else
21034 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21040 if test -n "$STDARG_H"; then
21041 GL_GENERATE_STDARG_H_TRUE=
21042 GL_GENERATE_STDARG_H_FALSE='#'
21043 else
21044 GL_GENERATE_STDARG_H_TRUE='#'
21045 GL_GENERATE_STDARG_H_FALSE=
21053 # Define two additional variables used in the Makefile substitution.
21055 if test "$ac_cv_header_stdbool_h" = yes; then
21056 STDBOOL_H=''
21057 else
21058 STDBOOL_H='stdbool.h'
21061 if test -n "$STDBOOL_H"; then
21062 GL_GENERATE_STDBOOL_H_TRUE=
21063 GL_GENERATE_STDBOOL_H_FALSE='#'
21064 else
21065 GL_GENERATE_STDBOOL_H_TRUE='#'
21066 GL_GENERATE_STDBOOL_H_FALSE=
21070 if test "$ac_cv_type__Bool" = yes; then
21071 HAVE__BOOL=1
21072 else
21073 HAVE__BOOL=0
21080 STDDEF_H=
21081 if test $gt_cv_c_wchar_t = no; then
21082 HAVE_WCHAR_T=0
21083 STDDEF_H=stddef.h
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21086 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21087 if test "${gl_cv_decl_null_works+set}" = set; then :
21088 $as_echo_n "(cached) " >&6
21089 else
21090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h. */
21092 #include <stddef.h>
21093 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21096 main ()
21100 return 0;
21102 _ACEOF
21103 if ac_fn_c_try_compile "$LINENO"; then :
21104 gl_cv_decl_null_works=yes
21105 else
21106 gl_cv_decl_null_works=no
21108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21111 $as_echo "$gl_cv_decl_null_works" >&6; }
21112 if test $gl_cv_decl_null_works = no; then
21113 REPLACE_NULL=1
21114 STDDEF_H=stddef.h
21117 if test -n "$STDDEF_H"; then
21118 GL_GENERATE_STDDEF_H_TRUE=
21119 GL_GENERATE_STDDEF_H_FALSE='#'
21120 else
21121 GL_GENERATE_STDDEF_H_TRUE='#'
21122 GL_GENERATE_STDDEF_H_FALSE=
21125 if test -n "$STDDEF_H"; then
21134 if test $gl_cv_have_include_next = yes; then
21135 gl_cv_next_stddef_h='<'stddef.h'>'
21136 else
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21138 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21139 if test "${gl_cv_next_stddef_h+set}" = set; then :
21140 $as_echo_n "(cached) " >&6
21141 else
21143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21144 /* end confdefs.h. */
21145 #include <stddef.h>
21147 _ACEOF
21148 case "$host_os" in
21149 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21150 *) gl_absname_cpp="$ac_cpp" ;;
21151 esac
21153 case "$host_os" in
21154 mingw*)
21155 gl_dirsep_regex='[/\\]'
21158 gl_dirsep_regex='/'
21160 esac
21162 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
21163 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21164 s|^/[^/]|//&|
21168 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21169 sed -n "$gl_absolute_header_sed"`'"'
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21174 $as_echo "$gl_cv_next_stddef_h" >&6; }
21176 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21178 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21179 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21180 gl_next_as_first_directive='<'stddef.h'>'
21181 else
21182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21183 gl_next_as_first_directive=$gl_cv_next_stddef_h
21185 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21204 if test $gl_cv_have_include_next = yes; then
21205 gl_cv_next_stdio_h='<'stdio.h'>'
21206 else
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21208 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21209 if test "${gl_cv_next_stdio_h+set}" = set; then :
21210 $as_echo_n "(cached) " >&6
21211 else
21213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214 /* end confdefs.h. */
21215 #include <stdio.h>
21217 _ACEOF
21218 case "$host_os" in
21219 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21220 *) gl_absname_cpp="$ac_cpp" ;;
21221 esac
21223 case "$host_os" in
21224 mingw*)
21225 gl_dirsep_regex='[/\\]'
21228 gl_dirsep_regex='/'
21230 esac
21232 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
21233 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21234 s|^/[^/]|//&|
21238 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21239 sed -n "$gl_absolute_header_sed"`'"'
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21244 $as_echo "$gl_cv_next_stdio_h" >&6; }
21246 NEXT_STDIO_H=$gl_cv_next_stdio_h
21248 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21250 gl_next_as_first_directive='<'stdio.h'>'
21251 else
21252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21253 gl_next_as_first_directive=$gl_cv_next_stdio_h
21255 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21261 GNULIB_FSCANF=1
21262 GNULIB_SCANF=1
21263 GNULIB_FGETC=1
21264 GNULIB_GETC=1
21265 GNULIB_GETCHAR=1
21266 GNULIB_FGETS=1
21267 GNULIB_GETS=1
21268 GNULIB_FREAD=1
21271 GNULIB_FPRINTF=1
21272 GNULIB_PRINTF=1
21273 GNULIB_VFPRINTF=1
21274 GNULIB_VPRINTF=1
21275 GNULIB_FPUTC=1
21276 GNULIB_PUTC=1
21277 GNULIB_PUTCHAR=1
21278 GNULIB_FPUTS=1
21279 GNULIB_PUTS=1
21280 GNULIB_FWRITE=1
21296 if test $gl_cv_have_include_next = yes; then
21297 gl_cv_next_stdlib_h='<'stdlib.h'>'
21298 else
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21300 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21301 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21302 $as_echo_n "(cached) " >&6
21303 else
21305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21306 /* end confdefs.h. */
21307 #include <stdlib.h>
21309 _ACEOF
21310 case "$host_os" in
21311 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21312 *) gl_absname_cpp="$ac_cpp" ;;
21313 esac
21315 case "$host_os" in
21316 mingw*)
21317 gl_dirsep_regex='[/\\]'
21320 gl_dirsep_regex='/'
21322 esac
21324 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
21325 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21326 s|^/[^/]|//&|
21330 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21331 sed -n "$gl_absolute_header_sed"`'"'
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21336 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21338 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21340 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21341 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21342 gl_next_as_first_directive='<'stdlib.h'>'
21343 else
21344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21345 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21347 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21357 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21365 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21374 if test "$ac_cv_have_decl_strtoimax" != yes; then
21375 HAVE_DECL_STRTOIMAX=0
21378 if test $ac_cv_func_strtoimax = no; then
21387 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21390 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21391 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21392 ac_have_decl=1
21393 else
21394 ac_have_decl=0
21397 cat >>confdefs.h <<_ACEOF
21398 #define HAVE_DECL_STRTOLL $ac_have_decl
21399 _ACEOF
21409 GNULIB_STRTOIMAX=1
21419 if test "$ac_cv_have_decl_strtoumax" != yes; then
21420 HAVE_DECL_STRTOUMAX=0
21423 if test $ac_cv_func_strtoumax = no; then
21432 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21435 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21436 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21437 ac_have_decl=1
21438 else
21439 ac_have_decl=0
21442 cat >>confdefs.h <<_ACEOF
21443 #define HAVE_DECL_STRTOULL $ac_have_decl
21444 _ACEOF
21454 GNULIB_STRTOUMAX=1
21462 if test $ac_cv_func_symlink = no; then
21463 HAVE_SYMLINK=0
21464 else
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21466 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21467 if test "${gl_cv_func_symlink_works+set}" = set; then :
21468 $as_echo_n "(cached) " >&6
21469 else
21470 if test "$cross_compiling" = yes; then :
21471 gl_cv_func_symlink_works="guessing no"
21472 else
21473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21474 /* end confdefs.h. */
21475 #include <unistd.h>
21478 main ()
21480 int result = 0;
21481 if (!symlink ("a", "conftest.link/"))
21482 result |= 1;
21483 if (symlink ("conftest.f", "conftest.lnk2"))
21484 result |= 2;
21485 else if (!symlink ("a", "conftest.lnk2/"))
21486 result |= 4;
21487 return result;
21490 return 0;
21492 _ACEOF
21493 if ac_fn_c_try_run "$LINENO"; then :
21494 gl_cv_func_symlink_works=yes
21495 else
21496 gl_cv_func_symlink_works=no
21498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21499 conftest.$ac_objext conftest.beam conftest.$ac_ext
21502 rm -f conftest.f conftest.link conftest.lnk2
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21505 $as_echo "$gl_cv_func_symlink_works" >&6; }
21506 if test "$gl_cv_func_symlink_works" != yes; then
21507 REPLACE_SYMLINK=1
21511 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21520 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21528 GNULIB_SYMLINK=1
21550 if test $gl_cv_have_include_next = yes; then
21551 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21552 else
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21554 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21555 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21556 $as_echo_n "(cached) " >&6
21557 else
21559 if test $ac_cv_header_sys_stat_h = yes; then
21562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21563 /* end confdefs.h. */
21564 #include <sys/stat.h>
21566 _ACEOF
21567 case "$host_os" in
21568 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21569 *) gl_absname_cpp="$ac_cpp" ;;
21570 esac
21572 case "$host_os" in
21573 mingw*)
21574 gl_dirsep_regex='[/\\]'
21577 gl_dirsep_regex='/'
21579 esac
21581 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
21582 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
21583 s|^/[^/]|//&|
21587 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21588 sed -n "$gl_absolute_header_sed"`'"'
21589 else
21590 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21596 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21598 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21600 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21601 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21602 gl_next_as_first_directive='<'sys/stat.h'>'
21603 else
21604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21605 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21607 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21615 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21616 #include <sys/stat.h>
21618 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21620 else
21622 $as_echo "#define nlink_t int" >>confdefs.h
21640 if test $ac_cv_have_decl_localtime_r = no; then
21641 HAVE_DECL_LOCALTIME_R=0
21645 if test $ac_cv_func_localtime_r = yes; then
21646 HAVE_LOCALTIME_R=1
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21648 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21649 if test "${gl_cv_time_r_posix+set}" = set; then :
21650 $as_echo_n "(cached) " >&6
21651 else
21652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21653 /* end confdefs.h. */
21654 #include <time.h>
21656 main ()
21658 /* We don't need to append 'restrict's to the argument types,
21659 even though the POSIX signature has the 'restrict's,
21660 since C99 says they can't affect type compatibility. */
21661 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21662 if (ptr) return 0;
21663 /* Check the return type is a pointer.
21664 On HP-UX 10 it is 'int'. */
21665 *localtime_r (0, 0);
21667 return 0;
21670 _ACEOF
21671 if ac_fn_c_try_compile "$LINENO"; then :
21672 gl_cv_time_r_posix=yes
21673 else
21674 gl_cv_time_r_posix=no
21676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21680 $as_echo "$gl_cv_time_r_posix" >&6; }
21681 if test $gl_cv_time_r_posix = yes; then
21682 REPLACE_LOCALTIME_R=0
21683 else
21684 REPLACE_LOCALTIME_R=1
21686 else
21687 HAVE_LOCALTIME_R=0
21690 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21699 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21710 GNULIB_TIME_R=1
21730 if test $gl_cv_have_include_next = yes; then
21731 gl_cv_next_unistd_h='<'unistd.h'>'
21732 else
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21734 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21735 if test "${gl_cv_next_unistd_h+set}" = set; then :
21736 $as_echo_n "(cached) " >&6
21737 else
21739 if test $ac_cv_header_unistd_h = yes; then
21742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21743 /* end confdefs.h. */
21744 #include <unistd.h>
21746 _ACEOF
21747 case "$host_os" in
21748 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21749 *) gl_absname_cpp="$ac_cpp" ;;
21750 esac
21752 case "$host_os" in
21753 mingw*)
21754 gl_dirsep_regex='[/\\]'
21757 gl_dirsep_regex='/'
21759 esac
21761 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
21762 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
21763 s|^/[^/]|//&|
21767 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21768 sed -n "$gl_absolute_header_sed"`'"'
21769 else
21770 gl_cv_next_unistd_h='<'unistd.h'>'
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21776 $as_echo "$gl_cv_next_unistd_h" >&6; }
21778 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21780 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21782 gl_next_as_first_directive='<'unistd.h'>'
21783 else
21784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21785 gl_next_as_first_directive=$gl_cv_next_unistd_h
21787 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21792 if test $ac_cv_header_unistd_h = yes; then
21793 HAVE_UNISTD_H=1
21794 else
21795 HAVE_UNISTD_H=0
21803 gl_gnulib_enabled_dosname=false
21804 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21805 gl_gnulib_enabled_sigprocmask=false
21806 gl_gnulib_enabled_stat=false
21807 gl_gnulib_enabled_strtoll=false
21808 gl_gnulib_enabled_strtoull=false
21809 gl_gnulib_enabled_verify=false
21810 func_gl_gnulib_m4code_dosname ()
21812 if ! $gl_gnulib_enabled_dosname; then
21813 gl_gnulib_enabled_dosname=true
21816 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21818 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21821 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21824 func_gl_gnulib_m4code_sigprocmask ()
21826 if ! $gl_gnulib_enabled_sigprocmask; then
21830 if test $gl_cv_type_sigset_t = yes; then
21831 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21832 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21833 gl_cv_func_sigprocmask=1
21837 if test -z "$gl_cv_func_sigprocmask"; then
21838 HAVE_POSIX_SIGNALBLOCKING=0
21841 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21850 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21861 GNULIB_SIGPROCMASK=1
21867 gl_gnulib_enabled_sigprocmask=true
21870 func_gl_gnulib_m4code_stat ()
21872 if ! $gl_gnulib_enabled_stat; then
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21877 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21878 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21879 $as_echo_n "(cached) " >&6
21880 else
21881 if test "$cross_compiling" = yes; then :
21882 case $host_os in
21883 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21884 *) gl_cv_func_stat_dir_slash="guessing yes";;
21885 esac
21886 else
21887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21888 /* end confdefs.h. */
21889 #include <sys/stat.h>
21892 main ()
21894 struct stat st; return stat (".", &st) != stat ("./", &st);
21896 return 0;
21898 _ACEOF
21899 if ac_fn_c_try_run "$LINENO"; then :
21900 gl_cv_func_stat_dir_slash=yes
21901 else
21902 gl_cv_func_stat_dir_slash=no
21904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21905 conftest.$ac_objext conftest.beam conftest.$ac_ext
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21910 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21912 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21913 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21914 $as_echo_n "(cached) " >&6
21915 else
21916 touch conftest.tmp
21917 # Assume that if we have lstat, we can also check symlinks.
21918 if test $ac_cv_func_lstat = yes; then
21919 ln -s conftest.tmp conftest.lnk
21921 if test "$cross_compiling" = yes; then :
21922 gl_cv_func_stat_file_slash="guessing no"
21923 else
21924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21925 /* end confdefs.h. */
21926 #include <sys/stat.h>
21929 main ()
21931 int result = 0;
21932 struct stat st;
21933 if (!stat ("conftest.tmp/", &st))
21934 result |= 1;
21935 #if HAVE_LSTAT
21936 if (!stat ("conftest.lnk/", &st))
21937 result |= 2;
21938 #endif
21939 return result;
21942 return 0;
21944 _ACEOF
21945 if ac_fn_c_try_run "$LINENO"; then :
21946 gl_cv_func_stat_file_slash=yes
21947 else
21948 gl_cv_func_stat_file_slash=no
21950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21951 conftest.$ac_objext conftest.beam conftest.$ac_ext
21954 rm -f conftest.tmp conftest.lnk
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21957 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21958 case $gl_cv_func_stat_dir_slash in
21959 *no) REPLACE_STAT=1
21961 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21963 esac
21964 case $gl_cv_func_stat_file_slash in
21965 *no) REPLACE_STAT=1
21967 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21969 esac
21971 if test $REPLACE_STAT = 1; then
21980 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21992 GNULIB_STAT=1
21998 gl_gnulib_enabled_stat=true
21999 if test $REPLACE_STAT = 1; then
22000 func_gl_gnulib_m4code_dosname
22002 if test $REPLACE_STAT = 1; then
22003 func_gl_gnulib_m4code_verify
22007 func_gl_gnulib_m4code_strtoll ()
22009 if ! $gl_gnulib_enabled_strtoll; then
22013 if test "$ac_cv_type_long_long_int" = yes; then
22014 for ac_func in strtoll
22015 do :
22016 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22017 if test "x$ac_cv_func_strtoll" = x""yes; then :
22018 cat >>confdefs.h <<_ACEOF
22019 #define HAVE_STRTOLL 1
22020 _ACEOF
22023 done
22025 if test $ac_cv_func_strtoll = no; then
22026 HAVE_STRTOLL=0
22030 if test $HAVE_STRTOLL = 0; then
22039 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22050 GNULIB_STRTOLL=1
22056 gl_gnulib_enabled_strtoll=true
22059 func_gl_gnulib_m4code_strtoull ()
22061 if ! $gl_gnulib_enabled_strtoull; then
22065 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22066 for ac_func in strtoull
22067 do :
22068 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22069 if test "x$ac_cv_func_strtoull" = x""yes; then :
22070 cat >>confdefs.h <<_ACEOF
22071 #define HAVE_STRTOULL 1
22072 _ACEOF
22075 done
22077 if test $ac_cv_func_strtoull = no; then
22078 HAVE_STRTOULL=0
22082 if test $HAVE_STRTOULL = 0; then
22091 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22102 GNULIB_STRTOULL=1
22108 gl_gnulib_enabled_strtoull=true
22111 func_gl_gnulib_m4code_verify ()
22113 if ! $gl_gnulib_enabled_verify; then
22114 gl_gnulib_enabled_verify=true
22117 if test $REPLACE_GETOPT = 1; then
22118 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22120 if test $REPLACE_LSTAT = 1; then
22121 func_gl_gnulib_m4code_dosname
22123 if test $REPLACE_LSTAT = 1; then
22124 func_gl_gnulib_m4code_stat
22126 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22127 func_gl_gnulib_m4code_sigprocmask
22129 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22130 func_gl_gnulib_m4code_stat
22132 if test $ac_cv_func_strtoimax = no; then
22133 func_gl_gnulib_m4code_verify
22135 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22136 func_gl_gnulib_m4code_strtoll
22138 if test $ac_cv_func_strtoumax = no; then
22139 func_gl_gnulib_m4code_verify
22141 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22142 func_gl_gnulib_m4code_strtoull
22145 if $gl_gnulib_enabled_dosname; then
22146 gl_GNULIB_ENABLED_dosname_TRUE=
22147 gl_GNULIB_ENABLED_dosname_FALSE='#'
22148 else
22149 gl_GNULIB_ENABLED_dosname_TRUE='#'
22150 gl_GNULIB_ENABLED_dosname_FALSE=
22153 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22154 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22155 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22156 else
22157 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22158 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22161 if $gl_gnulib_enabled_sigprocmask; then
22162 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22163 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22164 else
22165 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22166 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22169 if $gl_gnulib_enabled_stat; then
22170 gl_GNULIB_ENABLED_stat_TRUE=
22171 gl_GNULIB_ENABLED_stat_FALSE='#'
22172 else
22173 gl_GNULIB_ENABLED_stat_TRUE='#'
22174 gl_GNULIB_ENABLED_stat_FALSE=
22177 if $gl_gnulib_enabled_strtoll; then
22178 gl_GNULIB_ENABLED_strtoll_TRUE=
22179 gl_GNULIB_ENABLED_strtoll_FALSE='#'
22180 else
22181 gl_GNULIB_ENABLED_strtoll_TRUE='#'
22182 gl_GNULIB_ENABLED_strtoll_FALSE=
22185 if $gl_gnulib_enabled_strtoull; then
22186 gl_GNULIB_ENABLED_strtoull_TRUE=
22187 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22188 else
22189 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22190 gl_GNULIB_ENABLED_strtoull_FALSE=
22193 if $gl_gnulib_enabled_verify; then
22194 gl_GNULIB_ENABLED_verify_TRUE=
22195 gl_GNULIB_ENABLED_verify_FALSE='#'
22196 else
22197 gl_GNULIB_ENABLED_verify_TRUE='#'
22198 gl_GNULIB_ENABLED_verify_FALSE=
22201 # End of code from modules
22211 gltests_libdeps=
22212 gltests_ltlibdeps=
22222 gl_source_base='tests'
22223 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
22225 gl_module_indicator_condition=$gltests_WITNESS
22236 LIBGNU_LIBDEPS="$gl_libdeps"
22238 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22242 case "$opsys" in
22243 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22245 darwin)
22246 ## The -headerpad option tells ld (see man page) to leave room at the
22247 ## end of the header for adding load commands. Needed for dumping.
22248 ## 0x690 is the total size of 30 segment load commands (at 56
22249 ## each); under Cocoa 31 commands are required.
22250 if test "$HAVE_NS" = "yes"; then
22251 libs_nsgui="-framework AppKit"
22252 headerpad_extra=6C8
22253 else
22254 libs_nsgui=
22255 headerpad_extra=690
22257 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22259 ## This is here because src/Makefile.in did some extra fiddling around
22260 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22261 ## #ifndef LD_SWITCH_SYSTEM
22262 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22263 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22264 ## not using gcc, darwin system not on an alpha (ie darwin, since
22265 ## darwin + alpha does not occur).
22266 ## Because this was done in src/Makefile.in, the resulting part of
22267 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22268 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22269 ## rather than LD_SWITCH_SYSTEM.
22270 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22271 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22274 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22275 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22276 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22277 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22278 ## had different values in configure (in ac_link) and src/Makefile.in.
22279 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22280 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
22282 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22283 esac
22285 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22286 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22292 LD_FIRSTFLAG=
22293 ORDINARY_LINK=
22294 case "$opsys" in
22295 ## gnu: GNU needs its own crt0.
22296 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22298 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22299 ## library search parth, i.e. it won't search /usr/lib for libc and
22300 ## friends. Using -nostartfiles instead avoids this problem, and
22301 ## will also work on earlier NetBSD releases.
22302 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22304 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22305 ## MkLinux/LinuxPPC needs this.
22306 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22307 gnu-*)
22308 case "$machine" in
22309 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22310 esac
22312 esac
22315 if test "x$ORDINARY_LINK" = "xyes"; then
22317 LD_FIRSTFLAG=""
22319 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22322 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22323 ## freebsd, gnu-* not on macppc|ibms390x.
22324 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22326 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22327 ## places that are difficult to figure out at make time. Fortunately,
22328 ## these same versions allow you to pass arbitrary flags on to the
22329 ## linker, so there is no reason not to use it as a linker.
22331 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22332 ## searching for libraries in its internal directories, so we have to
22333 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22334 LD_FIRSTFLAG="-nostdlib"
22337 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22338 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22343 ## FIXME? The logic here is not precisely the same as that above.
22344 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22345 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22346 LIB_GCC=
22347 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22349 case "$opsys" in
22350 freebsd|netbsd|openbsd) LIB_GCC= ;;
22352 gnu-*)
22353 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22354 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22355 case $host_cpu in
22356 arm*)
22357 LIB_GCC="-lgcc_s"
22360 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22361 ## immediately undefine it again and redefine it to empty.
22362 ## Was the C_SWITCH_X_SITE part really necessary?
22363 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22364 LIB_GCC=
22366 esac
22369 ## Ask GCC where to find libgcc.a.
22370 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22371 esac
22375 ## If we're using X11/GNUstep, define some consequences.
22376 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22378 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22381 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22388 #### Report on what we decided to do.
22389 #### Report GTK as a toolkit, even if it doesn't use Xt.
22390 #### It makes printing result more understandable as using GTK sets
22391 #### toolkit_scroll_bars to yes by default.
22392 if test "${HAVE_GTK}" = "yes"; then
22393 USE_X_TOOLKIT=GTK
22396 and_machfile=
22397 if test -n "$machfile"; then
22398 and_machfile=" and \`${machfile}'"
22401 echo "
22402 Configured for \`${canonical}'.
22404 Where should the build process find the source code? ${srcdir}
22405 What operating system and machine description files should Emacs use?
22406 \`${opsysfile}'${and_machfile}
22407 What compiler should emacs be built with? ${CC} ${CFLAGS}
22408 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22409 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22410 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22411 What window system should Emacs use? ${window_system}
22412 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22414 if test -n "${x_includes}"; then
22415 echo " Where do we find X Windows header files? ${x_includes}"
22416 else
22417 echo " Where do we find X Windows header files? Standard dirs"
22419 if test -n "${x_libraries}"; then
22420 echo " Where do we find X Windows libraries? ${x_libraries}"
22421 else
22422 echo " Where do we find X Windows libraries? Standard dirs"
22425 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22426 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22427 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22428 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22429 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22430 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22431 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22432 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22434 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22435 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22436 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22437 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22438 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22439 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
22440 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22442 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22443 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22444 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22445 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22447 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22448 echo
22450 if test -n "${EMACSDATA}"; then
22451 echo " Environment variable EMACSDATA set to: $EMACSDATA"
22453 if test -n "${EMACSDOC}"; then
22454 echo " Environment variable EMACSDOC set to: $EMACSDOC"
22457 if test $USE_XASSERTS = yes; then
22458 echo " Compiling with asserts turned on."
22459 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22462 echo
22464 if test "$HAVE_NS" = "yes"; then
22465 echo
22466 echo "You must run \"${MAKE-make} install\" in order to test the built application.
22467 The installed application will go to nextstep/Emacs.app and can be
22468 run or moved from there."
22469 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22470 echo "The application will be fully self-contained."
22471 else
22472 echo "The lisp resources for the application will be installed under ${prefix}.
22473 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
22474 to run if these resources are not installed."
22476 echo
22480 # Remove any trailing slashes in these variables.
22481 test "${prefix}" != NONE &&
22482 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22483 test "${exec_prefix}" != NONE &&
22484 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22486 SUBDIR_MAKEFILES="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"
22488 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"
22491 opt_makefile=test/automated/Makefile
22493 if test -f $srcdir/${opt_makefile}.in; then
22494 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
22495 ac_config_files="$ac_config_files test/automated/Makefile"
22499 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22503 ac_config_commands="$ac_config_commands mkdirs"
22506 ac_config_commands="$ac_config_commands epaths"
22509 ac_config_commands="$ac_config_commands gdbinit"
22512 cat >confcache <<\_ACEOF
22513 # This file is a shell script that caches the results of configure
22514 # tests run on this system so they can be shared between configure
22515 # scripts and configure runs, see configure's option --config-cache.
22516 # It is not useful on other systems. If it contains results you don't
22517 # want to keep, you may remove or edit it.
22519 # config.status only pays attention to the cache file if you give it
22520 # the --recheck option to rerun configure.
22522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22524 # following values.
22526 _ACEOF
22528 # The following way of writing the cache mishandles newlines in values,
22529 # but we know of no workaround that is simple, portable, and efficient.
22530 # So, we kill variables containing newlines.
22531 # Ultrix sh set writes to stderr and can't be redirected directly,
22532 # and sets the high bit in the cache file unless we assign to the vars.
22534 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22535 eval ac_val=\$$ac_var
22536 case $ac_val in #(
22537 *${as_nl}*)
22538 case $ac_var in #(
22539 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22541 esac
22542 case $ac_var in #(
22543 _ | IFS | as_nl) ;; #(
22544 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22545 *) { eval $ac_var=; unset $ac_var;} ;;
22546 esac ;;
22547 esac
22548 done
22550 (set) 2>&1 |
22551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22552 *${as_nl}ac_space=\ *)
22553 # `set' does not quote correctly, so add quotes: double-quote
22554 # substitution turns \\\\ into \\, and sed turns \\ into \.
22555 sed -n \
22556 "s/'/'\\\\''/g;
22557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22558 ;; #(
22560 # `set' quotes correctly as required by POSIX, so do not add quotes.
22561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22563 esac |
22564 sort
22566 sed '
22567 /^ac_cv_env_/b end
22568 t clear
22569 :clear
22570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22571 t end
22572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22573 :end' >>confcache
22574 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22575 if test -w "$cache_file"; then
22576 test "x$cache_file" != "x/dev/null" &&
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22578 $as_echo "$as_me: updating cache $cache_file" >&6;}
22579 cat confcache >$cache_file
22580 else
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22585 rm -f confcache
22587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22588 # Let make expand exec_prefix.
22589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22591 DEFS=-DHAVE_CONFIG_H
22593 ac_libobjs=
22594 ac_ltlibobjs=
22595 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22596 # 1. Remove the extension, and $U if already installed.
22597 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22598 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22600 # will be set to the directory where LIBOBJS objects are built.
22601 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22602 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22603 done
22604 LIBOBJS=$ac_libobjs
22606 LTLIBOBJS=$ac_ltlibobjs
22609 if test -n "$EXEEXT"; then
22610 am__EXEEXT_TRUE=
22611 am__EXEEXT_FALSE='#'
22612 else
22613 am__EXEEXT_TRUE='#'
22614 am__EXEEXT_FALSE=
22617 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22618 as_fn_error "conditional \"AMDEP\" was never defined.
22619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22621 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22622 as_fn_error "conditional \"am__fastdepCC\" was never defined.
22623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22626 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22627 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
22628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22630 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22631 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22635 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22636 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
22637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22639 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22640 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
22641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22643 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22644 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22647 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22648 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22651 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22652 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22655 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22656 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22659 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22660 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22663 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22664 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22667 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22668 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22671 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22672 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22675 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22676 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22680 gl_libobjs=
22681 gl_ltlibobjs=
22682 if test -n "$gl_LIBOBJS"; then
22683 # Remove the extension.
22684 sed_drop_objext='s/\.o$//;s/\.obj$//'
22685 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22686 gl_libobjs="$gl_libobjs $i.$ac_objext"
22687 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22688 done
22690 gl_LIBOBJS=$gl_libobjs
22692 gl_LTLIBOBJS=$gl_ltlibobjs
22696 gltests_libobjs=
22697 gltests_ltlibobjs=
22698 if test -n "$gltests_LIBOBJS"; then
22699 # Remove the extension.
22700 sed_drop_objext='s/\.o$//;s/\.obj$//'
22701 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22702 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22703 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22704 done
22706 gltests_LIBOBJS=$gltests_libobjs
22708 gltests_LTLIBOBJS=$gltests_ltlibobjs
22712 : ${CONFIG_STATUS=./config.status}
22713 ac_write_fail=0
22714 ac_clean_files_save=$ac_clean_files
22715 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22717 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22718 as_write_fail=0
22719 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22720 #! $SHELL
22721 # Generated by $as_me.
22722 # Run this file to recreate the current configuration.
22723 # Compiler output produced by configure, useful for debugging
22724 # configure, is in config.log if it exists.
22726 debug=false
22727 ac_cs_recheck=false
22728 ac_cs_silent=false
22730 SHELL=\${CONFIG_SHELL-$SHELL}
22731 export SHELL
22732 _ASEOF
22733 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22734 ## -------------------- ##
22735 ## M4sh Initialization. ##
22736 ## -------------------- ##
22738 # Be more Bourne compatible
22739 DUALCASE=1; export DUALCASE # for MKS sh
22740 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22741 emulate sh
22742 NULLCMD=:
22743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22744 # is contrary to our usage. Disable this feature.
22745 alias -g '${1+"$@"}'='"$@"'
22746 setopt NO_GLOB_SUBST
22747 else
22748 case `(set -o) 2>/dev/null` in #(
22749 *posix*) :
22750 set -o posix ;; #(
22751 *) :
22753 esac
22757 as_nl='
22759 export as_nl
22760 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22761 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22764 # Prefer a ksh shell builtin over an external printf program on Solaris,
22765 # but without wasting forks for bash or zsh.
22766 if test -z "$BASH_VERSION$ZSH_VERSION" \
22767 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22768 as_echo='print -r --'
22769 as_echo_n='print -rn --'
22770 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22771 as_echo='printf %s\n'
22772 as_echo_n='printf %s'
22773 else
22774 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22775 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22776 as_echo_n='/usr/ucb/echo -n'
22777 else
22778 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22779 as_echo_n_body='eval
22780 arg=$1;
22781 case $arg in #(
22782 *"$as_nl"*)
22783 expr "X$arg" : "X\\(.*\\)$as_nl";
22784 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22785 esac;
22786 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22788 export as_echo_n_body
22789 as_echo_n='sh -c $as_echo_n_body as_echo'
22791 export as_echo_body
22792 as_echo='sh -c $as_echo_body as_echo'
22795 # The user is always right.
22796 if test "${PATH_SEPARATOR+set}" != set; then
22797 PATH_SEPARATOR=:
22798 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22799 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22800 PATH_SEPARATOR=';'
22805 # IFS
22806 # We need space, tab and new line, in precisely that order. Quoting is
22807 # there to prevent editors from complaining about space-tab.
22808 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22809 # splitting by setting IFS to empty value.)
22810 IFS=" "" $as_nl"
22812 # Find who we are. Look in the path if we contain no directory separator.
22813 case $0 in #((
22814 *[\\/]* ) as_myself=$0 ;;
22815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22816 for as_dir in $PATH
22818 IFS=$as_save_IFS
22819 test -z "$as_dir" && as_dir=.
22820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22821 done
22822 IFS=$as_save_IFS
22825 esac
22826 # We did not find ourselves, most probably we were run as `sh COMMAND'
22827 # in which case we are not to be found in the path.
22828 if test "x$as_myself" = x; then
22829 as_myself=$0
22831 if test ! -f "$as_myself"; then
22832 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22833 exit 1
22836 # Unset variables that we do not need and which cause bugs (e.g. in
22837 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22838 # suppresses any "Segmentation fault" message there. '((' could
22839 # trigger a bug in pdksh 5.2.14.
22840 for as_var in BASH_ENV ENV MAIL MAILPATH
22841 do eval test x\${$as_var+set} = xset \
22842 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22843 done
22844 PS1='$ '
22845 PS2='> '
22846 PS4='+ '
22848 # NLS nuisances.
22849 LC_ALL=C
22850 export LC_ALL
22851 LANGUAGE=C
22852 export LANGUAGE
22854 # CDPATH.
22855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22858 # as_fn_error ERROR [LINENO LOG_FD]
22859 # ---------------------------------
22860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22862 # script with status $?, using 1 if that was 0.
22863 as_fn_error ()
22865 as_status=$?; test $as_status -eq 0 && as_status=1
22866 if test "$3"; then
22867 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22868 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22870 $as_echo "$as_me: error: $1" >&2
22871 as_fn_exit $as_status
22872 } # as_fn_error
22875 # as_fn_set_status STATUS
22876 # -----------------------
22877 # Set $? to STATUS, without forking.
22878 as_fn_set_status ()
22880 return $1
22881 } # as_fn_set_status
22883 # as_fn_exit STATUS
22884 # -----------------
22885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22886 as_fn_exit ()
22888 set +e
22889 as_fn_set_status $1
22890 exit $1
22891 } # as_fn_exit
22893 # as_fn_unset VAR
22894 # ---------------
22895 # Portably unset VAR.
22896 as_fn_unset ()
22898 { eval $1=; unset $1;}
22900 as_unset=as_fn_unset
22901 # as_fn_append VAR VALUE
22902 # ----------------------
22903 # Append the text in VALUE to the end of the definition contained in VAR. Take
22904 # advantage of any shell optimizations that allow amortized linear growth over
22905 # repeated appends, instead of the typical quadratic growth present in naive
22906 # implementations.
22907 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22908 eval 'as_fn_append ()
22910 eval $1+=\$2
22912 else
22913 as_fn_append ()
22915 eval $1=\$$1\$2
22917 fi # as_fn_append
22919 # as_fn_arith ARG...
22920 # ------------------
22921 # Perform arithmetic evaluation on the ARGs, and store the result in the
22922 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22923 # must be portable across $(()) and expr.
22924 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22925 eval 'as_fn_arith ()
22927 as_val=$(( $* ))
22929 else
22930 as_fn_arith ()
22932 as_val=`expr "$@" || test $? -eq 1`
22934 fi # as_fn_arith
22937 if expr a : '\(a\)' >/dev/null 2>&1 &&
22938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22939 as_expr=expr
22940 else
22941 as_expr=false
22944 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22945 as_basename=basename
22946 else
22947 as_basename=false
22950 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22951 as_dirname=dirname
22952 else
22953 as_dirname=false
22956 as_me=`$as_basename -- "$0" ||
22957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22958 X"$0" : 'X\(//\)$' \| \
22959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22960 $as_echo X/"$0" |
22961 sed '/^.*\/\([^/][^/]*\)\/*$/{
22962 s//\1/
22965 /^X\/\(\/\/\)$/{
22966 s//\1/
22969 /^X\/\(\/\).*/{
22970 s//\1/
22973 s/.*/./; q'`
22975 # Avoid depending upon Character Ranges.
22976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22979 as_cr_digits='0123456789'
22980 as_cr_alnum=$as_cr_Letters$as_cr_digits
22982 ECHO_C= ECHO_N= ECHO_T=
22983 case `echo -n x` in #(((((
22984 -n*)
22985 case `echo 'xy\c'` in
22986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22987 xy) ECHO_C='\c';;
22988 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22989 ECHO_T=' ';;
22990 esac;;
22992 ECHO_N='-n';;
22993 esac
22995 rm -f conf$$ conf$$.exe conf$$.file
22996 if test -d conf$$.dir; then
22997 rm -f conf$$.dir/conf$$.file
22998 else
22999 rm -f conf$$.dir
23000 mkdir conf$$.dir 2>/dev/null
23002 if (echo >conf$$.file) 2>/dev/null; then
23003 if ln -s conf$$.file conf$$ 2>/dev/null; then
23004 as_ln_s='ln -s'
23005 # ... but there are two gotchas:
23006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23008 # In both cases, we have to default to `cp -p'.
23009 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23010 as_ln_s='cp -p'
23011 elif ln conf$$.file conf$$ 2>/dev/null; then
23012 as_ln_s=ln
23013 else
23014 as_ln_s='cp -p'
23016 else
23017 as_ln_s='cp -p'
23019 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23020 rmdir conf$$.dir 2>/dev/null
23023 # as_fn_mkdir_p
23024 # -------------
23025 # Create "$as_dir" as a directory, including parents if necessary.
23026 as_fn_mkdir_p ()
23029 case $as_dir in #(
23030 -*) as_dir=./$as_dir;;
23031 esac
23032 test -d "$as_dir" || eval $as_mkdir_p || {
23033 as_dirs=
23034 while :; do
23035 case $as_dir in #(
23036 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23037 *) as_qdir=$as_dir;;
23038 esac
23039 as_dirs="'$as_qdir' $as_dirs"
23040 as_dir=`$as_dirname -- "$as_dir" ||
23041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23042 X"$as_dir" : 'X\(//\)[^/]' \| \
23043 X"$as_dir" : 'X\(//\)$' \| \
23044 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23045 $as_echo X"$as_dir" |
23046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23047 s//\1/
23050 /^X\(\/\/\)[^/].*/{
23051 s//\1/
23054 /^X\(\/\/\)$/{
23055 s//\1/
23058 /^X\(\/\).*/{
23059 s//\1/
23062 s/.*/./; q'`
23063 test -d "$as_dir" && break
23064 done
23065 test -z "$as_dirs" || eval "mkdir $as_dirs"
23066 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23069 } # as_fn_mkdir_p
23070 if mkdir -p . 2>/dev/null; then
23071 as_mkdir_p='mkdir -p "$as_dir"'
23072 else
23073 test -d ./-p && rmdir ./-p
23074 as_mkdir_p=false
23077 if test -x / >/dev/null 2>&1; then
23078 as_test_x='test -x'
23079 else
23080 if ls -dL / >/dev/null 2>&1; then
23081 as_ls_L_option=L
23082 else
23083 as_ls_L_option=
23085 as_test_x='
23086 eval sh -c '\''
23087 if test -d "$1"; then
23088 test -d "$1/.";
23089 else
23090 case $1 in #(
23091 -*)set "./$1";;
23092 esac;
23093 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23094 ???[sx]*):;;*)false;;esac;fi
23095 '\'' sh
23098 as_executable_p=$as_test_x
23100 # Sed expression to map a string onto a valid CPP name.
23101 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23103 # Sed expression to map a string onto a valid variable name.
23104 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23107 exec 6>&1
23108 ## ----------------------------------- ##
23109 ## Main body of $CONFIG_STATUS script. ##
23110 ## ----------------------------------- ##
23111 _ASEOF
23112 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23115 # Save the log message, to keep $0 and so on meaningful, and to
23116 # report actual input values of CONFIG_FILES etc. instead of their
23117 # values after options handling.
23118 ac_log="
23119 This file was extended by emacs $as_me 24.0.92, which was
23120 generated by GNU Autoconf 2.65. Invocation command line was
23122 CONFIG_FILES = $CONFIG_FILES
23123 CONFIG_HEADERS = $CONFIG_HEADERS
23124 CONFIG_LINKS = $CONFIG_LINKS
23125 CONFIG_COMMANDS = $CONFIG_COMMANDS
23126 $ $0 $@
23128 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23131 _ACEOF
23133 case $ac_config_files in *"
23134 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23135 esac
23137 case $ac_config_headers in *"
23138 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23139 esac
23142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23143 # Files that config.status was made for.
23144 config_files="$ac_config_files"
23145 config_headers="$ac_config_headers"
23146 config_commands="$ac_config_commands"
23148 _ACEOF
23150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23151 ac_cs_usage="\
23152 \`$as_me' instantiates files and other configuration actions
23153 from templates according to the current configuration. Unless the files
23154 and actions are specified as TAGs, all are instantiated by default.
23156 Usage: $0 [OPTION]... [TAG]...
23158 -h, --help print this help, then exit
23159 -V, --version print version number and configuration settings, then exit
23160 --config print configuration, then exit
23161 -q, --quiet, --silent
23162 do not print progress messages
23163 -d, --debug don't remove temporary files
23164 --recheck update $as_me by reconfiguring in the same conditions
23165 --file=FILE[:TEMPLATE]
23166 instantiate the configuration file FILE
23167 --header=FILE[:TEMPLATE]
23168 instantiate the configuration header FILE
23170 Configuration files:
23171 $config_files
23173 Configuration headers:
23174 $config_headers
23176 Configuration commands:
23177 $config_commands
23179 Report bugs to the package provider."
23181 _ACEOF
23182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23183 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23184 ac_cs_version="\\
23185 emacs config.status 24.0.92
23186 configured by $0, generated by GNU Autoconf 2.65,
23187 with options \\"\$ac_cs_config\\"
23189 Copyright (C) 2009 Free Software Foundation, Inc.
23190 This config.status script is free software; the Free Software Foundation
23191 gives unlimited permission to copy, distribute and modify it."
23193 ac_pwd='$ac_pwd'
23194 srcdir='$srcdir'
23195 INSTALL='$INSTALL'
23196 MKDIR_P='$MKDIR_P'
23197 AWK='$AWK'
23198 test -n "\$AWK" || AWK=awk
23199 _ACEOF
23201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23202 # The default lists apply if the user does not specify any file.
23203 ac_need_defaults=:
23204 while test $# != 0
23206 case $1 in
23207 --*=*)
23208 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23209 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23210 ac_shift=:
23213 ac_option=$1
23214 ac_optarg=$2
23215 ac_shift=shift
23217 esac
23219 case $ac_option in
23220 # Handling of the options.
23221 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23222 ac_cs_recheck=: ;;
23223 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23224 $as_echo "$ac_cs_version"; exit ;;
23225 --config | --confi | --conf | --con | --co | --c )
23226 $as_echo "$ac_cs_config"; exit ;;
23227 --debug | --debu | --deb | --de | --d | -d )
23228 debug=: ;;
23229 --file | --fil | --fi | --f )
23230 $ac_shift
23231 case $ac_optarg in
23232 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23233 esac
23234 as_fn_append CONFIG_FILES " '$ac_optarg'"
23235 ac_need_defaults=false;;
23236 --header | --heade | --head | --hea )
23237 $ac_shift
23238 case $ac_optarg in
23239 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23240 esac
23241 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23242 ac_need_defaults=false;;
23243 --he | --h)
23244 # Conflict between --help and --header
23245 as_fn_error "ambiguous option: \`$1'
23246 Try \`$0 --help' for more information.";;
23247 --help | --hel | -h )
23248 $as_echo "$ac_cs_usage"; exit ;;
23249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23250 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23251 ac_cs_silent=: ;;
23253 # This is an error.
23254 -*) as_fn_error "unrecognized option: \`$1'
23255 Try \`$0 --help' for more information." ;;
23257 *) as_fn_append ac_config_targets " $1"
23258 ac_need_defaults=false ;;
23260 esac
23261 shift
23262 done
23264 ac_configure_extra_args=
23266 if $ac_cs_silent; then
23267 exec 6>/dev/null
23268 ac_configure_extra_args="$ac_configure_extra_args --silent"
23271 _ACEOF
23272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23273 if \$ac_cs_recheck; then
23274 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23275 shift
23276 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23277 CONFIG_SHELL='$SHELL'
23278 export CONFIG_SHELL
23279 exec "\$@"
23282 _ACEOF
23283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23284 exec 5>>config.log
23286 echo
23287 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23288 ## Running $as_me. ##
23289 _ASBOX
23290 $as_echo "$ac_log"
23291 } >&5
23293 _ACEOF
23294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23296 # INIT-COMMANDS
23298 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23299 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23301 _ACEOF
23303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23305 # Handling of arguments.
23306 for ac_config_target in $ac_config_targets
23308 case $ac_config_target in
23309 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23310 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23311 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23312 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23313 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23314 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23315 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23316 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23317 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23318 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23319 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23320 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23321 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23322 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23323 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23324 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23325 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23326 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23328 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23329 esac
23330 done
23333 # If the user did not use the arguments to specify the items to instantiate,
23334 # then the envvar interface is used. Set only those that are not.
23335 # We use the long form for the default assignment because of an extremely
23336 # bizarre bug on SunOS 4.1.3.
23337 if $ac_need_defaults; then
23338 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23339 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23340 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23343 # Have a temporary directory for convenience. Make it in the build tree
23344 # simply because there is no reason against having it here, and in addition,
23345 # creating and moving files from /tmp can sometimes cause problems.
23346 # Hook for its removal unless debugging.
23347 # Note that there is a small window in which the directory will not be cleaned:
23348 # after its creation but before its name has been assigned to `$tmp'.
23349 $debug ||
23351 tmp=
23352 trap 'exit_status=$?
23353 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23355 trap 'as_fn_exit 1' 1 2 13 15
23357 # Create a (secure) tmp directory for tmp files.
23360 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23361 test -n "$tmp" && test -d "$tmp"
23362 } ||
23364 tmp=./conf$$-$RANDOM
23365 (umask 077 && mkdir "$tmp")
23366 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23368 # Set up the scripts for CONFIG_FILES section.
23369 # No need to generate them if there are no CONFIG_FILES.
23370 # This happens for instance with `./config.status config.h'.
23371 if test -n "$CONFIG_FILES"; then
23373 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23374 ac_cs_awk_getline=:
23375 ac_cs_awk_pipe_init=
23376 ac_cs_awk_read_file='
23377 while ((getline aline < (F[key])) > 0)
23378 print(aline)
23379 close(F[key])'
23380 ac_cs_awk_pipe_fini=
23381 else
23382 ac_cs_awk_getline=false
23383 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23384 ac_cs_awk_read_file='
23385 print "|#_!!_#|"
23386 print "cat " F[key] " &&"
23387 '$ac_cs_awk_pipe_init
23388 # The final `:' finishes the AND list.
23389 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23391 ac_cr=`echo X | tr X '\015'`
23392 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23393 # But we know of no other shell where ac_cr would be empty at this
23394 # point, so we can use a bashism as a fallback.
23395 if test "x$ac_cr" = x; then
23396 eval ac_cr=\$\'\\r\'
23398 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23399 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23400 ac_cs_awk_cr='\r'
23401 else
23402 ac_cs_awk_cr=$ac_cr
23405 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23406 _ACEOF
23408 # Create commands to substitute file output variables.
23410 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23411 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23412 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23413 echo "_ACAWK" &&
23414 echo "_ACEOF"
23415 } >conf$$files.sh &&
23416 . ./conf$$files.sh ||
23417 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23418 rm -f conf$$files.sh
23421 echo "cat >conf$$subs.awk <<_ACEOF" &&
23422 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23423 echo "_ACEOF"
23424 } >conf$$subs.sh ||
23425 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23426 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23427 ac_delim='%!_!# '
23428 for ac_last_try in false false false false false :; do
23429 . ./conf$$subs.sh ||
23430 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23432 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23433 if test $ac_delim_n = $ac_delim_num; then
23434 break
23435 elif $ac_last_try; then
23436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23437 else
23438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23440 done
23441 rm -f conf$$subs.sh
23443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23444 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23445 _ACEOF
23446 sed -n '
23448 s/^/S["/; s/!.*/"]=/
23451 s/^[^!]*!//
23452 :repl
23453 t repl
23454 s/'"$ac_delim"'$//
23455 t delim
23458 s/\(.\{148\}\)..*/\1/
23459 t more1
23460 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23463 b repl
23464 :more1
23465 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23468 s/.\{148\}//
23469 t nl
23470 :delim
23472 s/\(.\{148\}\)..*/\1/
23473 t more2
23474 s/["\\]/\\&/g; s/^/"/; s/$/"/
23477 :more2
23478 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23481 s/.\{148\}//
23482 t delim
23483 ' <conf$$subs.awk | sed '
23484 /^[^""]/{
23486 s/\n//
23488 ' >>$CONFIG_STATUS || ac_write_fail=1
23489 rm -f conf$$subs.awk
23490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23491 _ACAWK
23492 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23493 for (key in S) S_is_set[key] = 1
23494 FS = "\a"
23495 \$ac_cs_awk_pipe_init
23498 line = $ 0
23499 nfields = split(line, field, "@")
23500 substed = 0
23501 len = length(field[1])
23502 for (i = 2; i < nfields; i++) {
23503 key = field[i]
23504 keylen = length(key)
23505 if (S_is_set[key]) {
23506 value = S[key]
23507 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23508 len += length(value) + length(field[++i])
23509 substed = 1
23510 } else
23511 len += 1 + keylen
23513 if (nfields == 3 && !substed) {
23514 key = field[2]
23515 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23516 \$ac_cs_awk_read_file
23517 next
23520 print line
23522 \$ac_cs_awk_pipe_fini
23523 _ACAWK
23524 _ACEOF
23525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23526 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23527 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23528 else
23530 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23531 || as_fn_error "could not setup config files machinery" "$LINENO" 5
23532 _ACEOF
23534 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23535 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23536 # trailing colons and then remove the whole line if VPATH becomes empty
23537 # (actually we leave an empty line to preserve line numbers).
23538 if test "x$srcdir" = x.; then
23539 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23540 s/:*\$(srcdir):*/:/
23541 s/:*\${srcdir}:*/:/
23542 s/:*@srcdir@:*/:/
23543 s/^\([^=]*=[ ]*\):*/\1/
23544 s/:*$//
23545 s/^[^=]*=[ ]*$//
23549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23550 fi # test -n "$CONFIG_FILES"
23552 # Set up the scripts for CONFIG_HEADERS section.
23553 # No need to generate them if there are no CONFIG_HEADERS.
23554 # This happens for instance with `./config.status Makefile'.
23555 if test -n "$CONFIG_HEADERS"; then
23556 cat >"$tmp/defines.awk" <<\_ACAWK ||
23557 BEGIN {
23558 _ACEOF
23560 # Transform confdefs.h into an awk script `defines.awk', embedded as
23561 # here-document in config.status, that substitutes the proper values into
23562 # config.h.in to produce config.h.
23564 # Create a delimiter string that does not exist in confdefs.h, to ease
23565 # handling of long lines.
23566 ac_delim='%!_!# '
23567 for ac_last_try in false false :; do
23568 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23569 if test -z "$ac_t"; then
23570 break
23571 elif $ac_last_try; then
23572 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
23573 else
23574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23576 done
23578 # For the awk script, D is an array of macro values keyed by name,
23579 # likewise P contains macro parameters if any. Preserve backslash
23580 # newline sequences.
23582 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23583 sed -n '
23584 s/.\{148\}/&'"$ac_delim"'/g
23585 t rset
23586 :rset
23587 s/^[ ]*#[ ]*define[ ][ ]*/ /
23588 t def
23590 :def
23591 s/\\$//
23592 t bsnl
23593 s/["\\]/\\&/g
23594 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23595 D["\1"]=" \3"/p
23596 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23598 :bsnl
23599 s/["\\]/\\&/g
23600 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23601 D["\1"]=" \3\\\\\\n"\\/p
23602 t cont
23603 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23604 t cont
23606 :cont
23608 s/.\{148\}/&'"$ac_delim"'/g
23609 t clear
23610 :clear
23611 s/\\$//
23612 t bsnlc
23613 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23615 :bsnlc
23616 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23617 b cont
23618 ' <confdefs.h | sed '
23619 s/'"$ac_delim"'/"\\\
23620 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23623 for (key in D) D_is_set[key] = 1
23624 FS = "\a"
23626 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23627 line = \$ 0
23628 split(line, arg, " ")
23629 if (arg[1] == "#") {
23630 defundef = arg[2]
23631 mac1 = arg[3]
23632 } else {
23633 defundef = substr(arg[1], 2)
23634 mac1 = arg[2]
23636 split(mac1, mac2, "(") #)
23637 macro = mac2[1]
23638 prefix = substr(line, 1, index(line, defundef) - 1)
23639 if (D_is_set[macro]) {
23640 # Preserve the white space surrounding the "#".
23641 print prefix "define", macro P[macro] D[macro]
23642 next
23643 } else {
23644 # Replace #undef with comments. This is necessary, for example,
23645 # in the case of _POSIX_SOURCE, which is predefined and required
23646 # on some systems where configure will not decide to define it.
23647 if (defundef == "undef") {
23648 print "/*", prefix defundef, macro, "*/"
23649 next
23653 { print }
23654 _ACAWK
23655 _ACEOF
23656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23657 as_fn_error "could not setup config headers machinery" "$LINENO" 5
23658 fi # test -n "$CONFIG_HEADERS"
23661 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23662 shift
23663 for ac_tag
23665 case $ac_tag in
23666 :[FHLC]) ac_mode=$ac_tag; continue;;
23667 esac
23668 case $ac_mode$ac_tag in
23669 :[FHL]*:*);;
23670 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23671 :[FH]-) ac_tag=-:-;;
23672 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23673 esac
23674 ac_save_IFS=$IFS
23675 IFS=:
23676 set x $ac_tag
23677 IFS=$ac_save_IFS
23678 shift
23679 ac_file=$1
23680 shift
23682 case $ac_mode in
23683 :L) ac_source=$1;;
23684 :[FH])
23685 ac_file_inputs=
23686 for ac_f
23688 case $ac_f in
23689 -) ac_f="$tmp/stdin";;
23690 *) # Look for the file first in the build tree, then in the source tree
23691 # (if the path is not absolute). The absolute path cannot be DOS-style,
23692 # because $ac_f cannot contain `:'.
23693 test -f "$ac_f" ||
23694 case $ac_f in
23695 [\\/$]*) false;;
23696 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23697 esac ||
23698 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23699 esac
23700 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23701 as_fn_append ac_file_inputs " '$ac_f'"
23702 done
23704 # Let's still pretend it is `configure' which instantiates (i.e., don't
23705 # use $as_me), people would be surprised to read:
23706 # /* config.h. Generated by config.status. */
23707 configure_input='Generated from '`
23708 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23709 `' by configure.'
23710 if test x"$ac_file" != x-; then
23711 configure_input="$ac_file. $configure_input"
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23713 $as_echo "$as_me: creating $ac_file" >&6;}
23715 # Neutralize special characters interpreted by sed in replacement strings.
23716 case $configure_input in #(
23717 *\&* | *\|* | *\\* )
23718 ac_sed_conf_input=`$as_echo "$configure_input" |
23719 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23720 *) ac_sed_conf_input=$configure_input;;
23721 esac
23723 case $ac_tag in
23724 *:-:* | *:-) cat >"$tmp/stdin" \
23725 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23726 esac
23728 esac
23730 ac_dir=`$as_dirname -- "$ac_file" ||
23731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23732 X"$ac_file" : 'X\(//\)[^/]' \| \
23733 X"$ac_file" : 'X\(//\)$' \| \
23734 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23735 $as_echo X"$ac_file" |
23736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23737 s//\1/
23740 /^X\(\/\/\)[^/].*/{
23741 s//\1/
23744 /^X\(\/\/\)$/{
23745 s//\1/
23748 /^X\(\/\).*/{
23749 s//\1/
23752 s/.*/./; q'`
23753 as_dir="$ac_dir"; as_fn_mkdir_p
23754 ac_builddir=.
23756 case "$ac_dir" in
23757 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23759 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23760 # A ".." for each directory in $ac_dir_suffix.
23761 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23762 case $ac_top_builddir_sub in
23763 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23764 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23765 esac ;;
23766 esac
23767 ac_abs_top_builddir=$ac_pwd
23768 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23769 # for backward compatibility:
23770 ac_top_builddir=$ac_top_build_prefix
23772 case $srcdir in
23773 .) # We are building in place.
23774 ac_srcdir=.
23775 ac_top_srcdir=$ac_top_builddir_sub
23776 ac_abs_top_srcdir=$ac_pwd ;;
23777 [\\/]* | ?:[\\/]* ) # Absolute name.
23778 ac_srcdir=$srcdir$ac_dir_suffix;
23779 ac_top_srcdir=$srcdir
23780 ac_abs_top_srcdir=$srcdir ;;
23781 *) # Relative name.
23782 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23783 ac_top_srcdir=$ac_top_build_prefix$srcdir
23784 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23785 esac
23786 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23789 case $ac_mode in
23792 # CONFIG_FILE
23795 case $INSTALL in
23796 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23797 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23798 esac
23799 ac_MKDIR_P=$MKDIR_P
23800 case $MKDIR_P in
23801 [\\/$]* | ?:[\\/]* ) ;;
23802 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23803 esac
23804 _ACEOF
23806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23807 # If the template does not know about datarootdir, expand it.
23808 # FIXME: This hack should be removed a few years after 2.60.
23809 ac_datarootdir_hack=; ac_datarootdir_seen=
23810 ac_sed_dataroot='
23811 /datarootdir/ {
23815 /@datadir@/p
23816 /@docdir@/p
23817 /@infodir@/p
23818 /@localedir@/p
23819 /@mandir@/p'
23820 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23821 *datarootdir*) ac_datarootdir_seen=yes;;
23822 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23824 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23825 _ACEOF
23826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23827 ac_datarootdir_hack='
23828 s&@datadir@&$datadir&g
23829 s&@docdir@&$docdir&g
23830 s&@infodir@&$infodir&g
23831 s&@localedir@&$localedir&g
23832 s&@mandir@&$mandir&g
23833 s&\\\${datarootdir}&$datarootdir&g' ;;
23834 esac
23835 _ACEOF
23837 # Neutralize VPATH when `$srcdir' = `.'.
23838 # Shell code in configure.ac might set extrasub.
23839 # FIXME: do we really want to maintain this feature?
23840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23841 ac_sed_extra="$ac_vpsub
23842 $extrasub
23843 _ACEOF
23844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23846 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23847 s|@configure_input@|$ac_sed_conf_input|;t t
23848 s&@top_builddir@&$ac_top_builddir_sub&;t t
23849 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23850 s&@srcdir@&$ac_srcdir&;t t
23851 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23852 s&@top_srcdir@&$ac_top_srcdir&;t t
23853 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23854 s&@builddir@&$ac_builddir&;t t
23855 s&@abs_builddir@&$ac_abs_builddir&;t t
23856 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23857 s&@INSTALL@&$ac_INSTALL&;t t
23858 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23859 $ac_datarootdir_hack
23861 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23862 if $ac_cs_awk_getline; then
23863 $AWK -f "$tmp/subs.awk"
23864 else
23865 $AWK -f "$tmp/subs.awk" | $SHELL
23866 fi >$tmp/out \
23867 || as_fn_error "could not create $ac_file" "$LINENO" 5
23869 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23870 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23871 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23873 which seems to be undefined. Please make sure it is defined." >&5
23874 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23875 which seems to be undefined. Please make sure it is defined." >&2;}
23877 rm -f "$tmp/stdin"
23878 case $ac_file in
23879 -) cat "$tmp/out" && rm -f "$tmp/out";;
23880 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23881 esac \
23882 || as_fn_error "could not create $ac_file" "$LINENO" 5
23886 # CONFIG_HEADER
23888 if test x"$ac_file" != x-; then
23890 $as_echo "/* $configure_input */" \
23891 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23892 } >"$tmp/config.h" \
23893 || as_fn_error "could not create $ac_file" "$LINENO" 5
23894 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23896 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23897 else
23898 rm -f "$ac_file"
23899 mv "$tmp/config.h" "$ac_file" \
23900 || as_fn_error "could not create $ac_file" "$LINENO" 5
23902 else
23903 $as_echo "/* $configure_input */" \
23904 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23905 || as_fn_error "could not create -" "$LINENO" 5
23907 # Compute "$ac_file"'s index in $config_headers.
23908 _am_arg="$ac_file"
23909 _am_stamp_count=1
23910 for _am_header in $config_headers :; do
23911 case $_am_header in
23912 $_am_arg | $_am_arg:* )
23913 break ;;
23915 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23916 esac
23917 done
23918 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23919 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23920 X"$_am_arg" : 'X\(//\)[^/]' \| \
23921 X"$_am_arg" : 'X\(//\)$' \| \
23922 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23923 $as_echo X"$_am_arg" |
23924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23925 s//\1/
23928 /^X\(\/\/\)[^/].*/{
23929 s//\1/
23932 /^X\(\/\/\)$/{
23933 s//\1/
23936 /^X\(\/\).*/{
23937 s//\1/
23940 s/.*/./; q'`/stamp-h$_am_stamp_count
23943 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23944 $as_echo "$as_me: executing $ac_file commands" >&6;}
23946 esac
23949 case $ac_file$ac_mode in
23950 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23951 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23952 # are listed without --file. Let's play safe and only enable the eval
23953 # if we detect the quoting.
23954 case $CONFIG_FILES in
23955 *\'*) eval set x "$CONFIG_FILES" ;;
23956 *) set x $CONFIG_FILES ;;
23957 esac
23958 shift
23959 for mf
23961 # Strip MF so we end up with the name of the file.
23962 mf=`echo "$mf" | sed -e 's/:.*$//'`
23963 # Check whether this is an Automake generated Makefile or not.
23964 # We used to match only the files named `Makefile.in', but
23965 # some people rename them; so instead we look at the file content.
23966 # Grep'ing the first line is not enough: some people post-process
23967 # each Makefile.in and add a new line on top of each file to say so.
23968 # Grep'ing the whole file is not good either: AIX grep has a line
23969 # limit of 2048, but all sed's we know have understand at least 4000.
23970 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23971 dirpart=`$as_dirname -- "$mf" ||
23972 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23973 X"$mf" : 'X\(//\)[^/]' \| \
23974 X"$mf" : 'X\(//\)$' \| \
23975 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23976 $as_echo X"$mf" |
23977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23978 s//\1/
23981 /^X\(\/\/\)[^/].*/{
23982 s//\1/
23985 /^X\(\/\/\)$/{
23986 s//\1/
23989 /^X\(\/\).*/{
23990 s//\1/
23993 s/.*/./; q'`
23994 else
23995 continue
23997 # Extract the definition of DEPDIR, am__include, and am__quote
23998 # from the Makefile without running `make'.
23999 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24000 test -z "$DEPDIR" && continue
24001 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24002 test -z "am__include" && continue
24003 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24004 # When using ansi2knr, U may be empty or an underscore; expand it
24005 U=`sed -n 's/^U = //p' < "$mf"`
24006 # Find all dependency output files, they are included files with
24007 # $(DEPDIR) in their names. We invoke sed twice because it is the
24008 # simplest approach to changing $(DEPDIR) to its actual value in the
24009 # expansion.
24010 for file in `sed -n "
24011 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24012 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24013 # Make sure the directory exists.
24014 test -f "$dirpart/$file" && continue
24015 fdir=`$as_dirname -- "$file" ||
24016 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24017 X"$file" : 'X\(//\)[^/]' \| \
24018 X"$file" : 'X\(//\)$' \| \
24019 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24020 $as_echo X"$file" |
24021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24022 s//\1/
24025 /^X\(\/\/\)[^/].*/{
24026 s//\1/
24029 /^X\(\/\/\)$/{
24030 s//\1/
24033 /^X\(\/\).*/{
24034 s//\1/
24037 s/.*/./; q'`
24038 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24039 # echo "creating $dirpart/$file"
24040 echo '# dummy' > "$dirpart/$file"
24041 done
24042 done
24045 "mkdirs":C)
24046 for dir in etc lisp ; do
24047 test -d ${dir} || mkdir ${dir}
24048 done
24050 "epaths":C)
24051 echo creating src/epaths.h
24052 ${MAKE-make} epaths-force
24054 "gdbinit":C)
24055 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24056 echo creating src/.gdbinit
24057 echo source $srcdir/src/.gdbinit > src/.gdbinit
24061 esac
24062 done # for ac_tag
24065 as_fn_exit 0
24066 _ACEOF
24067 ac_clean_files=$ac_clean_files_save
24069 test $ac_write_fail = 0 ||
24070 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24073 # configure is writing to config.log, and then calls config.status.
24074 # config.status does its own redirection, appending to config.log.
24075 # Unfortunately, on DOS this fails, as config.log is still kept open
24076 # by configure, so config.status won't be able to write to it; its
24077 # output is simply discarded. So we exec the FD to /dev/null,
24078 # effectively closing config.log, so it can be properly (re)opened and
24079 # appended to by config.status. When coming back to configure, we
24080 # need to make the FD available again.
24081 if test "$no_create" != yes; then
24082 ac_cs_success=:
24083 ac_config_status_args=
24084 test "$silent" = yes &&
24085 ac_config_status_args="$ac_config_status_args --quiet"
24086 exec 5>/dev/null
24087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24088 exec 5>>config.log
24089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24090 # would make configure fail if this is the last instruction.
24091 $ac_cs_success || as_fn_exit $?
24093 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24095 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}