Fix bug #9771 with slow redisplay in long lines full of control characters.
[emacs.git] / autogen / configure
blob8f50731f3f178ec617112d27fe093cdf9eacd4f0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.90.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.90'
553 PACKAGE_STRING='emacs 24.0.90'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_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 am__untar
1221 am__tar
1222 AMTAR
1223 am__leading_dot
1224 SET_MAKE
1226 mkdir_p
1227 MKDIR_P
1228 INSTALL_STRIP_PROGRAM
1229 STRIP
1230 install_sh
1231 MAKEINFO
1232 AUTOHEADER
1233 AUTOMAKE
1234 AUTOCONF
1235 ACLOCAL
1236 VERSION
1237 PACKAGE
1238 CYGPATH_W
1239 am__isrc
1240 INSTALL_DATA
1241 INSTALL_SCRIPT
1242 INSTALL_PROGRAM
1243 target_alias
1244 host_alias
1245 build_alias
1246 LIBS
1247 ECHO_T
1248 ECHO_N
1249 ECHO_C
1250 DEFS
1251 mandir
1252 localedir
1253 libdir
1254 psdir
1255 pdfdir
1256 dvidir
1257 htmldir
1258 infodir
1259 docdir
1260 oldincludedir
1261 includedir
1262 localstatedir
1263 sharedstatedir
1264 sysconfdir
1265 datadir
1266 datarootdir
1267 libexecdir
1268 sbindir
1269 bindir
1270 program_transform_name
1271 prefix
1272 exec_prefix
1273 PACKAGE_URL
1274 PACKAGE_BUGREPORT
1275 PACKAGE_STRING
1276 PACKAGE_VERSION
1277 PACKAGE_TARNAME
1278 PACKAGE_NAME
1279 PATH_SEPARATOR
1280 SHELL'
1281 ac_subst_files='deps_frag
1282 lisp_frag
1283 ns_frag'
1284 ac_user_opts='
1285 enable_option_checking
1286 with_pop
1287 with_kerberos
1288 with_kerberos5
1289 with_hesiod
1290 with_mmdf
1291 with_mail_unlink
1292 with_mailhost
1293 with_sound
1294 with_sync_input
1295 with_x_toolkit
1296 with_wide_int
1297 with_xpm
1298 with_jpeg
1299 with_tiff
1300 with_gif
1301 with_png
1302 with_rsvg
1303 with_xml2
1304 with_imagemagick
1305 with_xft
1306 with_libotf
1307 with_m17n_flt
1308 with_toolkit_scroll_bars
1309 with_xaw3d
1310 with_xim
1311 with_ns
1312 with_gpm
1313 with_dbus
1314 with_gconf
1315 with_gsettings
1316 with_selinux
1317 with_gnutls
1318 with_makeinfo
1319 with_compress_info
1320 with_pkg_config_prog
1321 with_crt_dir
1322 with_gameuser
1323 with_gnustep_conf
1324 enable_ns_self_contained
1325 enable_asserts
1326 enable_maintainer_mode
1327 enable_locallisppath
1328 enable_checking
1329 enable_use_lisp_union_type
1330 enable_profiling
1331 enable_autodepend
1332 enable_dependency_tracking
1333 enable_largefile
1334 with_x
1336 ac_precious_vars='build_alias
1337 host_alias
1338 target_alias
1340 CFLAGS
1341 LDFLAGS
1342 LIBS
1343 CPPFLAGS
1345 XMKMF'
1348 # Initialize some variables set by options.
1349 ac_init_help=
1350 ac_init_version=false
1351 ac_unrecognized_opts=
1352 ac_unrecognized_sep=
1353 # The variables have the same names as the options, with
1354 # dashes changed to underlines.
1355 cache_file=/dev/null
1356 exec_prefix=NONE
1357 no_create=
1358 no_recursion=
1359 prefix=NONE
1360 program_prefix=NONE
1361 program_suffix=NONE
1362 program_transform_name=s,x,x,
1363 silent=
1364 site=
1365 srcdir=
1366 verbose=
1367 x_includes=NONE
1368 x_libraries=NONE
1370 # Installation directory options.
1371 # These are left unexpanded so users can "make install exec_prefix=/foo"
1372 # and all the variables that are supposed to be based on exec_prefix
1373 # by default will actually change.
1374 # Use braces instead of parens because sh, perl, etc. also accept them.
1375 # (The list follows the same order as the GNU Coding Standards.)
1376 bindir='${exec_prefix}/bin'
1377 sbindir='${exec_prefix}/sbin'
1378 libexecdir='${exec_prefix}/libexec'
1379 datarootdir='${prefix}/share'
1380 datadir='${datarootdir}'
1381 sysconfdir='${prefix}/etc'
1382 sharedstatedir='${prefix}/com'
1383 localstatedir='${prefix}/var'
1384 includedir='${prefix}/include'
1385 oldincludedir='/usr/include'
1386 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1387 infodir='${datarootdir}/info'
1388 htmldir='${docdir}'
1389 dvidir='${docdir}'
1390 pdfdir='${docdir}'
1391 psdir='${docdir}'
1392 libdir='${exec_prefix}/lib'
1393 localedir='${datarootdir}/locale'
1394 mandir='${datarootdir}/man'
1396 ac_prev=
1397 ac_dashdash=
1398 for ac_option
1400 # If the previous option needs an argument, assign it.
1401 if test -n "$ac_prev"; then
1402 eval $ac_prev=\$ac_option
1403 ac_prev=
1404 continue
1407 case $ac_option in
1408 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1409 *) ac_optarg=yes ;;
1410 esac
1412 # Accept the important Cygnus configure options, so we can diagnose typos.
1414 case $ac_dashdash$ac_option in
1416 ac_dashdash=yes ;;
1418 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1419 ac_prev=bindir ;;
1420 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1421 bindir=$ac_optarg ;;
1423 -build | --build | --buil | --bui | --bu)
1424 ac_prev=build_alias ;;
1425 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1426 build_alias=$ac_optarg ;;
1428 -cache-file | --cache-file | --cache-fil | --cache-fi \
1429 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1430 ac_prev=cache_file ;;
1431 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1432 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1433 cache_file=$ac_optarg ;;
1435 --config-cache | -C)
1436 cache_file=config.cache ;;
1438 -datadir | --datadir | --datadi | --datad)
1439 ac_prev=datadir ;;
1440 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1441 datadir=$ac_optarg ;;
1443 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1444 | --dataroo | --dataro | --datar)
1445 ac_prev=datarootdir ;;
1446 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1447 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1448 datarootdir=$ac_optarg ;;
1450 -disable-* | --disable-*)
1451 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1452 # Reject names that are not valid shell variable names.
1453 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1454 as_fn_error "invalid feature name: $ac_useropt"
1455 ac_useropt_orig=$ac_useropt
1456 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1457 case $ac_user_opts in
1459 "enable_$ac_useropt"
1460 "*) ;;
1461 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1462 ac_unrecognized_sep=', ';;
1463 esac
1464 eval enable_$ac_useropt=no ;;
1466 -docdir | --docdir | --docdi | --doc | --do)
1467 ac_prev=docdir ;;
1468 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1469 docdir=$ac_optarg ;;
1471 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1472 ac_prev=dvidir ;;
1473 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1474 dvidir=$ac_optarg ;;
1476 -enable-* | --enable-*)
1477 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1478 # Reject names that are not valid shell variable names.
1479 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1480 as_fn_error "invalid feature name: $ac_useropt"
1481 ac_useropt_orig=$ac_useropt
1482 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1483 case $ac_user_opts in
1485 "enable_$ac_useropt"
1486 "*) ;;
1487 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1488 ac_unrecognized_sep=', ';;
1489 esac
1490 eval enable_$ac_useropt=\$ac_optarg ;;
1492 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1493 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1494 | --exec | --exe | --ex)
1495 ac_prev=exec_prefix ;;
1496 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1497 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1498 | --exec=* | --exe=* | --ex=*)
1499 exec_prefix=$ac_optarg ;;
1501 -gas | --gas | --ga | --g)
1502 # Obsolete; use --with-gas.
1503 with_gas=yes ;;
1505 -help | --help | --hel | --he | -h)
1506 ac_init_help=long ;;
1507 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1508 ac_init_help=recursive ;;
1509 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1510 ac_init_help=short ;;
1512 -host | --host | --hos | --ho)
1513 ac_prev=host_alias ;;
1514 -host=* | --host=* | --hos=* | --ho=*)
1515 host_alias=$ac_optarg ;;
1517 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1518 ac_prev=htmldir ;;
1519 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1520 | --ht=*)
1521 htmldir=$ac_optarg ;;
1523 -includedir | --includedir | --includedi | --included | --include \
1524 | --includ | --inclu | --incl | --inc)
1525 ac_prev=includedir ;;
1526 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1527 | --includ=* | --inclu=* | --incl=* | --inc=*)
1528 includedir=$ac_optarg ;;
1530 -infodir | --infodir | --infodi | --infod | --info | --inf)
1531 ac_prev=infodir ;;
1532 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1533 infodir=$ac_optarg ;;
1535 -libdir | --libdir | --libdi | --libd)
1536 ac_prev=libdir ;;
1537 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1538 libdir=$ac_optarg ;;
1540 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1541 | --libexe | --libex | --libe)
1542 ac_prev=libexecdir ;;
1543 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1544 | --libexe=* | --libex=* | --libe=*)
1545 libexecdir=$ac_optarg ;;
1547 -localedir | --localedir | --localedi | --localed | --locale)
1548 ac_prev=localedir ;;
1549 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1550 localedir=$ac_optarg ;;
1552 -localstatedir | --localstatedir | --localstatedi | --localstated \
1553 | --localstate | --localstat | --localsta | --localst | --locals)
1554 ac_prev=localstatedir ;;
1555 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1556 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1557 localstatedir=$ac_optarg ;;
1559 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1560 ac_prev=mandir ;;
1561 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1562 mandir=$ac_optarg ;;
1564 -nfp | --nfp | --nf)
1565 # Obsolete; use --without-fp.
1566 with_fp=no ;;
1568 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1569 | --no-cr | --no-c | -n)
1570 no_create=yes ;;
1572 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1573 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1574 no_recursion=yes ;;
1576 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1577 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1578 | --oldin | --oldi | --old | --ol | --o)
1579 ac_prev=oldincludedir ;;
1580 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1581 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1582 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1583 oldincludedir=$ac_optarg ;;
1585 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1586 ac_prev=prefix ;;
1587 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1588 prefix=$ac_optarg ;;
1590 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1591 | --program-pre | --program-pr | --program-p)
1592 ac_prev=program_prefix ;;
1593 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1594 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1595 program_prefix=$ac_optarg ;;
1597 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1598 | --program-suf | --program-su | --program-s)
1599 ac_prev=program_suffix ;;
1600 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1601 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1602 program_suffix=$ac_optarg ;;
1604 -program-transform-name | --program-transform-name \
1605 | --program-transform-nam | --program-transform-na \
1606 | --program-transform-n | --program-transform- \
1607 | --program-transform | --program-transfor \
1608 | --program-transfo | --program-transf \
1609 | --program-trans | --program-tran \
1610 | --progr-tra | --program-tr | --program-t)
1611 ac_prev=program_transform_name ;;
1612 -program-transform-name=* | --program-transform-name=* \
1613 | --program-transform-nam=* | --program-transform-na=* \
1614 | --program-transform-n=* | --program-transform-=* \
1615 | --program-transform=* | --program-transfor=* \
1616 | --program-transfo=* | --program-transf=* \
1617 | --program-trans=* | --program-tran=* \
1618 | --progr-tra=* | --program-tr=* | --program-t=*)
1619 program_transform_name=$ac_optarg ;;
1621 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1622 ac_prev=pdfdir ;;
1623 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1624 pdfdir=$ac_optarg ;;
1626 -psdir | --psdir | --psdi | --psd | --ps)
1627 ac_prev=psdir ;;
1628 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1629 psdir=$ac_optarg ;;
1631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1632 | -silent | --silent | --silen | --sile | --sil)
1633 silent=yes ;;
1635 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1636 ac_prev=sbindir ;;
1637 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1638 | --sbi=* | --sb=*)
1639 sbindir=$ac_optarg ;;
1641 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1642 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1643 | --sharedst | --shareds | --shared | --share | --shar \
1644 | --sha | --sh)
1645 ac_prev=sharedstatedir ;;
1646 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1647 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1648 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1649 | --sha=* | --sh=*)
1650 sharedstatedir=$ac_optarg ;;
1652 -site | --site | --sit)
1653 ac_prev=site ;;
1654 -site=* | --site=* | --sit=*)
1655 site=$ac_optarg ;;
1657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1658 ac_prev=srcdir ;;
1659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1660 srcdir=$ac_optarg ;;
1662 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1663 | --syscon | --sysco | --sysc | --sys | --sy)
1664 ac_prev=sysconfdir ;;
1665 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1666 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1667 sysconfdir=$ac_optarg ;;
1669 -target | --target | --targe | --targ | --tar | --ta | --t)
1670 ac_prev=target_alias ;;
1671 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1672 target_alias=$ac_optarg ;;
1674 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1675 verbose=yes ;;
1677 -version | --version | --versio | --versi | --vers | -V)
1678 ac_init_version=: ;;
1680 -with-* | --with-*)
1681 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1682 # Reject names that are not valid shell variable names.
1683 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1684 as_fn_error "invalid package name: $ac_useropt"
1685 ac_useropt_orig=$ac_useropt
1686 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1687 case $ac_user_opts in
1689 "with_$ac_useropt"
1690 "*) ;;
1691 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1692 ac_unrecognized_sep=', ';;
1693 esac
1694 eval with_$ac_useropt=\$ac_optarg ;;
1696 -without-* | --without-*)
1697 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1698 # Reject names that are not valid shell variable names.
1699 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1700 as_fn_error "invalid package name: $ac_useropt"
1701 ac_useropt_orig=$ac_useropt
1702 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1703 case $ac_user_opts in
1705 "with_$ac_useropt"
1706 "*) ;;
1707 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1708 ac_unrecognized_sep=', ';;
1709 esac
1710 eval with_$ac_useropt=no ;;
1712 --x)
1713 # Obsolete; use --with-x.
1714 with_x=yes ;;
1716 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1717 | --x-incl | --x-inc | --x-in | --x-i)
1718 ac_prev=x_includes ;;
1719 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1720 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1721 x_includes=$ac_optarg ;;
1723 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1724 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1725 ac_prev=x_libraries ;;
1726 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1727 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1728 x_libraries=$ac_optarg ;;
1730 -*) as_fn_error "unrecognized option: \`$ac_option'
1731 Try \`$0 --help' for more information."
1734 *=*)
1735 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1736 # Reject names that are not valid shell variable names.
1737 case $ac_envvar in #(
1738 '' | [0-9]* | *[!_$as_cr_alnum]* )
1739 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1740 esac
1741 eval $ac_envvar=\$ac_optarg
1742 export $ac_envvar ;;
1745 # FIXME: should be removed in autoconf 3.0.
1746 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1747 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1748 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1749 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1752 esac
1753 done
1755 if test -n "$ac_prev"; then
1756 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1757 as_fn_error "missing argument to $ac_option"
1760 if test -n "$ac_unrecognized_opts"; then
1761 case $enable_option_checking in
1762 no) ;;
1763 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1764 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1765 esac
1768 # Check all directory arguments for consistency.
1769 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1770 datadir sysconfdir sharedstatedir localstatedir includedir \
1771 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1772 libdir localedir mandir
1774 eval ac_val=\$$ac_var
1775 # Remove trailing slashes.
1776 case $ac_val in
1777 */ )
1778 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1779 eval $ac_var=\$ac_val;;
1780 esac
1781 # Be sure to have absolute directory names.
1782 case $ac_val in
1783 [\\/$]* | ?:[\\/]* ) continue;;
1784 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1785 esac
1786 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1787 done
1789 # There might be people who depend on the old broken behavior: `$host'
1790 # used to hold the argument of --host etc.
1791 # FIXME: To remove some day.
1792 build=$build_alias
1793 host=$host_alias
1794 target=$target_alias
1796 # FIXME: To remove some day.
1797 if test "x$host_alias" != x; then
1798 if test "x$build_alias" = x; then
1799 cross_compiling=maybe
1800 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1801 If a cross compiler is detected then cross compile mode will be used." >&2
1802 elif test "x$build_alias" != "x$host_alias"; then
1803 cross_compiling=yes
1807 ac_tool_prefix=
1808 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1810 test "$silent" = yes && exec 6>/dev/null
1813 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1814 ac_ls_di=`ls -di .` &&
1815 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1816 as_fn_error "working directory cannot be determined"
1817 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1818 as_fn_error "pwd does not report name of working directory"
1821 # Find the source files, if location was not specified.
1822 if test -z "$srcdir"; then
1823 ac_srcdir_defaulted=yes
1824 # Try the directory containing this script, then the parent directory.
1825 ac_confdir=`$as_dirname -- "$as_myself" ||
1826 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1827 X"$as_myself" : 'X\(//\)[^/]' \| \
1828 X"$as_myself" : 'X\(//\)$' \| \
1829 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1830 $as_echo X"$as_myself" |
1831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1832 s//\1/
1835 /^X\(\/\/\)[^/].*/{
1836 s//\1/
1839 /^X\(\/\/\)$/{
1840 s//\1/
1843 /^X\(\/\).*/{
1844 s//\1/
1847 s/.*/./; q'`
1848 srcdir=$ac_confdir
1849 if test ! -r "$srcdir/$ac_unique_file"; then
1850 srcdir=..
1852 else
1853 ac_srcdir_defaulted=no
1855 if test ! -r "$srcdir/$ac_unique_file"; then
1856 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1857 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1859 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1860 ac_abs_confdir=`(
1861 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1862 pwd)`
1863 # When building in place, set srcdir=.
1864 if test "$ac_abs_confdir" = "$ac_pwd"; then
1865 srcdir=.
1867 # Remove unnecessary trailing slashes from srcdir.
1868 # Double slashes in file names in object file debugging info
1869 # mess up M-x gdb in Emacs.
1870 case $srcdir in
1871 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1872 esac
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1875 eval ac_env_${ac_var}_value=\$${ac_var}
1876 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1877 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1878 done
1881 # Report the --help message.
1883 if test "$ac_init_help" = "long"; then
1884 # Omit some internal or obsolete options to make the list less imposing.
1885 # This message is too long to be a string in the A/UX 3.1 sh.
1886 cat <<_ACEOF
1887 \`configure' configures emacs 24.0.90 to adapt to many kinds of systems.
1889 Usage: $0 [OPTION]... [VAR=VALUE]...
1891 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1892 VAR=VALUE. See below for descriptions of some of the useful variables.
1894 Defaults for the options are specified in brackets.
1896 Configuration:
1897 -h, --help display this help and exit
1898 --help=short display options specific to this package
1899 --help=recursive display the short help of all the included packages
1900 -V, --version display version information and exit
1901 -q, --quiet, --silent do not print \`checking...' messages
1902 --cache-file=FILE cache test results in FILE [disabled]
1903 -C, --config-cache alias for \`--cache-file=config.cache'
1904 -n, --no-create do not create output files
1905 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1907 Installation directories:
1908 --prefix=PREFIX install architecture-independent files in PREFIX
1909 [$ac_default_prefix]
1910 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1911 [PREFIX]
1913 By default, \`make install' will install all the files in
1914 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1915 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1916 for instance \`--prefix=\$HOME'.
1918 For better control, use the options below.
1920 Fine tuning of the installation directories:
1921 --bindir=DIR user executables [EPREFIX/bin]
1922 --sbindir=DIR system admin executables [EPREFIX/sbin]
1923 --libexecdir=DIR program executables [EPREFIX/libexec]
1924 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1925 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1926 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1927 --libdir=DIR object code libraries [EPREFIX/lib]
1928 --includedir=DIR C header files [PREFIX/include]
1929 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1930 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1931 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1932 --infodir=DIR info documentation [DATAROOTDIR/info]
1933 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1934 --mandir=DIR man documentation [DATAROOTDIR/man]
1935 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1936 --htmldir=DIR html documentation [DOCDIR]
1937 --dvidir=DIR dvi documentation [DOCDIR]
1938 --pdfdir=DIR pdf documentation [DOCDIR]
1939 --psdir=DIR ps documentation [DOCDIR]
1940 _ACEOF
1942 cat <<\_ACEOF
1944 Program names:
1945 --program-prefix=PREFIX prepend PREFIX to installed program names
1946 --program-suffix=SUFFIX append SUFFIX to installed program names
1947 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1949 X features:
1950 --x-includes=DIR X include files are in DIR
1951 --x-libraries=DIR X library files are in DIR
1953 System types:
1954 --build=BUILD configure for building on BUILD [guessed]
1955 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1956 _ACEOF
1959 if test -n "$ac_init_help"; then
1960 case $ac_init_help in
1961 short | recursive ) echo "Configuration of emacs 24.0.90:";;
1962 esac
1963 cat <<\_ACEOF
1965 Optional Features:
1966 --disable-option-checking ignore unrecognized --enable/--with options
1967 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1968 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1969 --disable-ns-self-contained
1970 disable self contained build under NeXTstep
1971 --enable-asserts compile code with asserts enabled
1972 --disable-maintainer-mode
1973 disable make rules and dependencies not useful (and
1974 sometimes confusing) to the casual installer
1975 --enable-locallisppath=PATH
1976 directories Emacs should search for lisp files
1977 specific to this site
1978 --enable-checking[=LIST]
1979 enable expensive run-time checks. With LIST, enable
1980 only specific categories of checks. Categories are:
1981 all,yes,no. Flags are: stringbytes, stringoverrun,
1982 stringfreelist, xmallocoverrun, conslist
1983 --enable-use-lisp-union-type
1984 use a union for the Lisp_Object data type. This is
1985 only useful for development for catching certain
1986 types of bugs.
1987 --enable-profiling build emacs with profiling support. This might not
1988 work on all platforms
1989 --enable-autodepend automatically generate dependencies to .h-files.
1990 Requires GNU Make and Gcc. Enabled if GNU Make and
1991 Gcc is found
1992 --disable-dependency-tracking speeds up one-time build
1993 --enable-dependency-tracking do not reject slow dependency extractors
1994 --disable-largefile omit support for large files
1996 Optional Packages:
1997 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1998 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1999 --without-pop don't support POP mail retrieval with movemail
2000 --with-kerberos support Kerberos-authenticated POP
2001 --with-kerberos5 support Kerberos version 5 authenticated POP
2002 --with-hesiod support Hesiod to get the POP server host
2003 --with-mmdf support MMDF mailboxes
2004 --with-mail-unlink unlink, rather than empty, mail spool after reading
2005 --with-mailhost=HOSTNAME
2006 string giving default POP mail host
2007 --without-sound don't compile with sound support
2008 --without-sync-input process async input synchronously
2009 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2010 lucid or athena, motif, no)
2011 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2012 --without-xpm don't compile with XPM image support
2013 --without-jpeg don't compile with JPEG image support
2014 --without-tiff don't compile with TIFF image support
2015 --without-gif don't compile with GIF image support
2016 --without-png don't compile with PNG image support
2017 --without-rsvg don't compile with SVG image support
2018 --without-xml2 don't compile with XML parsing support
2019 --without-imagemagick don't compile with ImageMagick image support
2020 --without-xft don't use XFT for anti aliased fonts
2021 --without-libotf don't use libotf for OpenType font support
2022 --without-m17n-flt don't use m17n-flt for text shaping
2023 --without-toolkit-scroll-bars
2024 don't use Motif or Xaw3d scroll bars
2025 --without-xaw3d don't use Xaw3d
2026 --without-xim don't use X11 XIM
2027 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2028 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2029 console
2030 --without-dbus don't compile with D-Bus support
2031 --without-gconf don't compile with GConf support
2032 --without-gsettings don't compile with GSettings support
2033 --without-selinux don't compile with SELinux support
2034 --without-gnutls don't use -lgnutls for SSL/TLS support
2035 --without-makeinfo don't require makeinfo for building manuals
2036 --without-compress-info don't compress the installed Info pages
2037 --with-pkg-config-prog=PATH
2038 path to pkg-config for finding GTK and librsvg
2039 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2040 /usr/lib, or /usr/lib64 on some platforms.
2041 --with-gameuser=USER user for shared game score files
2042 --with-gnustep-conf=PATH
2043 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2044 or /etc/GNUstep/GNUstep.conf
2045 --with-x use the X Window System
2047 Some influential environment variables:
2048 CC C compiler command
2049 CFLAGS C compiler flags
2050 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2051 nonstandard directory <lib dir>
2052 LIBS libraries to pass to the linker, e.g. -l<library>
2053 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2054 you have headers in a nonstandard directory <include dir>
2055 CPP C preprocessor
2056 XMKMF Path to xmkmf, Makefile generator for X Window System
2058 Use these variables to override the choices made by `configure' or to help
2059 it to find libraries and programs with nonstandard names/locations.
2061 Report bugs to the package provider.
2062 _ACEOF
2063 ac_status=$?
2066 if test "$ac_init_help" = "recursive"; then
2067 # If there are subdirs, report their specific --help.
2068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2069 test -d "$ac_dir" ||
2070 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2071 continue
2072 ac_builddir=.
2074 case "$ac_dir" in
2075 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2077 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2078 # A ".." for each directory in $ac_dir_suffix.
2079 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2080 case $ac_top_builddir_sub in
2081 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2082 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2083 esac ;;
2084 esac
2085 ac_abs_top_builddir=$ac_pwd
2086 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2087 # for backward compatibility:
2088 ac_top_builddir=$ac_top_build_prefix
2090 case $srcdir in
2091 .) # We are building in place.
2092 ac_srcdir=.
2093 ac_top_srcdir=$ac_top_builddir_sub
2094 ac_abs_top_srcdir=$ac_pwd ;;
2095 [\\/]* | ?:[\\/]* ) # Absolute name.
2096 ac_srcdir=$srcdir$ac_dir_suffix;
2097 ac_top_srcdir=$srcdir
2098 ac_abs_top_srcdir=$srcdir ;;
2099 *) # Relative name.
2100 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2101 ac_top_srcdir=$ac_top_build_prefix$srcdir
2102 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2103 esac
2104 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2106 cd "$ac_dir" || { ac_status=$?; continue; }
2107 # Check for guested configure.
2108 if test -f "$ac_srcdir/configure.gnu"; then
2109 echo &&
2110 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2111 elif test -f "$ac_srcdir/configure"; then
2112 echo &&
2113 $SHELL "$ac_srcdir/configure" --help=recursive
2114 else
2115 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2116 fi || ac_status=$?
2117 cd "$ac_pwd" || { ac_status=$?; break; }
2118 done
2121 test -n "$ac_init_help" && exit $ac_status
2122 if $ac_init_version; then
2123 cat <<\_ACEOF
2124 emacs configure 24.0.90
2125 generated by GNU Autoconf 2.65
2127 Copyright (C) 2009 Free Software Foundation, Inc.
2128 This configure script is free software; the Free Software Foundation
2129 gives unlimited permission to copy, distribute and modify it.
2130 _ACEOF
2131 exit
2134 ## ------------------------ ##
2135 ## Autoconf initialization. ##
2136 ## ------------------------ ##
2138 # ac_fn_c_try_compile LINENO
2139 # --------------------------
2140 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2141 ac_fn_c_try_compile ()
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 rm -f conftest.$ac_objext
2145 if { { ac_try="$ac_compile"
2146 case "(($ac_try" in
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2149 esac
2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 $as_echo "$ac_try_echo"; } >&5
2152 (eval "$ac_compile") 2>conftest.err
2153 ac_status=$?
2154 if test -s conftest.err; then
2155 grep -v '^ *+' conftest.err >conftest.er1
2156 cat conftest.er1 >&5
2157 mv -f conftest.er1 conftest.err
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } && {
2161 test -z "$ac_c_werror_flag" ||
2162 test ! -s conftest.err
2163 } && test -s conftest.$ac_objext; then :
2164 ac_retval=0
2165 else
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2169 ac_retval=1
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172 as_fn_set_status $ac_retval
2174 } # ac_fn_c_try_compile
2176 # ac_fn_c_try_cpp LINENO
2177 # ----------------------
2178 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2179 ac_fn_c_try_cpp ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 if { { ac_try="$ac_cpp conftest.$ac_ext"
2183 case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2190 ac_status=$?
2191 if test -s conftest.err; then
2192 grep -v '^ *+' conftest.err >conftest.er1
2193 cat conftest.er1 >&5
2194 mv -f conftest.er1 conftest.err
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } >/dev/null && {
2198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2199 test ! -s conftest.err
2200 }; then :
2201 ac_retval=0
2202 else
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2206 ac_retval=1
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 as_fn_set_status $ac_retval
2211 } # ac_fn_c_try_cpp
2213 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2214 # -------------------------------------------------------
2215 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2216 # the include files in INCLUDES and setting the cache variable VAR
2217 # accordingly.
2218 ac_fn_c_check_header_mongrel ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 $as_echo_n "(cached) " >&6
2227 eval ac_res=\$$3
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229 $as_echo "$ac_res" >&6; }
2230 else
2231 # Is the header compilable?
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2233 $as_echo_n "checking $2 usability... " >&6; }
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2237 #include <$2>
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240 ac_header_compiler=yes
2241 else
2242 ac_header_compiler=no
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2246 $as_echo "$ac_header_compiler" >&6; }
2248 # Is the header present?
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2250 $as_echo_n "checking $2 presence... " >&6; }
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 #include <$2>
2254 _ACEOF
2255 if ac_fn_c_try_cpp "$LINENO"; then :
2256 ac_header_preproc=yes
2257 else
2258 ac_header_preproc=no
2260 rm -f conftest.err conftest.$ac_ext
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2262 $as_echo "$ac_header_preproc" >&6; }
2264 # So? What about this header?
2265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2266 yes:no: )
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2268 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2270 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2272 no:yes:* )
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2274 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2276 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2278 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2280 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2282 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2284 esac
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288 $as_echo_n "(cached) " >&6
2289 else
2290 eval "$3=\$ac_header_compiler"
2292 eval ac_res=\$$3
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2298 } # ac_fn_c_check_header_mongrel
2300 # ac_fn_c_try_run LINENO
2301 # ----------------------
2302 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2303 # that executables *can* be run.
2304 ac_fn_c_try_run ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 if { { ac_try="$ac_link"
2308 case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311 esac
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_link") 2>&5
2315 ac_status=$?
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2318 { { case "(($ac_try" in
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2321 esac
2322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2323 $as_echo "$ac_try_echo"; } >&5
2324 (eval "$ac_try") 2>&5
2325 ac_status=$?
2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327 test $ac_status = 0; }; }; then :
2328 ac_retval=0
2329 else
2330 $as_echo "$as_me: program exited with status $ac_status" >&5
2331 $as_echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2334 ac_retval=$ac_status
2336 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2338 as_fn_set_status $ac_retval
2340 } # ac_fn_c_try_run
2342 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2343 # -------------------------------------------------------
2344 # Tests whether HEADER exists and can be compiled using the include files in
2345 # INCLUDES, setting the cache variable VAR accordingly.
2346 ac_fn_c_check_header_compile ()
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2350 $as_echo_n "checking for $2... " >&6; }
2351 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2357 #include <$2>
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360 eval "$3=yes"
2361 else
2362 eval "$3=no"
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 eval ac_res=\$$3
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2371 } # ac_fn_c_check_header_compile
2373 # ac_fn_c_try_link LINENO
2374 # -----------------------
2375 # Try to link conftest.$ac_ext, and return whether this succeeded.
2376 ac_fn_c_try_link ()
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 rm -f conftest.$ac_objext conftest$ac_exeext
2380 if { { ac_try="$ac_link"
2381 case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2384 esac
2385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2386 $as_echo "$ac_try_echo"; } >&5
2387 (eval "$ac_link") 2>conftest.err
2388 ac_status=$?
2389 if test -s conftest.err; then
2390 grep -v '^ *+' conftest.err >conftest.er1
2391 cat conftest.er1 >&5
2392 mv -f conftest.er1 conftest.err
2394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2395 test $ac_status = 0; } && {
2396 test -z "$ac_c_werror_flag" ||
2397 test ! -s conftest.err
2398 } && test -s conftest$ac_exeext && {
2399 test "$cross_compiling" = yes ||
2400 $as_test_x conftest$ac_exeext
2401 }; then :
2402 ac_retval=0
2403 else
2404 $as_echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2407 ac_retval=1
2409 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2410 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2411 # interfere with the next link command; also delete a directory that is
2412 # left behind by Apple's compiler. We do this before executing the actions.
2413 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415 as_fn_set_status $ac_retval
2417 } # ac_fn_c_try_link
2419 # ac_fn_c_check_decl LINENO SYMBOL VAR
2420 # ------------------------------------
2421 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2422 ac_fn_c_check_decl ()
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2426 $as_echo_n "checking whether $2 is declared... " >&6; }
2427 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2434 main ()
2436 #ifndef $2
2437 (void) $2;
2438 #endif
2441 return 0;
2443 _ACEOF
2444 if ac_fn_c_try_compile "$LINENO"; then :
2445 eval "$3=yes"
2446 else
2447 eval "$3=no"
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 eval ac_res=\$$3
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2454 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2456 } # ac_fn_c_check_decl
2458 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2459 # ----------------------------------------------
2460 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2461 ac_fn_c_check_header_preproc ()
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2465 $as_echo_n "checking for $2... " >&6; }
2466 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2471 #include <$2>
2472 _ACEOF
2473 if ac_fn_c_try_cpp "$LINENO"; then :
2474 eval "$3=yes"
2475 else
2476 eval "$3=no"
2478 rm -f conftest.err conftest.$ac_ext
2480 eval ac_res=\$$3
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482 $as_echo "$ac_res" >&6; }
2483 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2485 } # ac_fn_c_check_header_preproc
2487 # ac_fn_c_check_func LINENO FUNC VAR
2488 # ----------------------------------
2489 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2490 ac_fn_c_check_func ()
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2494 $as_echo_n "checking for $2... " >&6; }
2495 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2500 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2502 #define $2 innocuous_$2
2504 /* System header to define __stub macros and hopefully few prototypes,
2505 which can conflict with char $2 (); below.
2506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2507 <limits.h> exists even on freestanding compilers. */
2509 #ifdef __STDC__
2510 # include <limits.h>
2511 #else
2512 # include <assert.h>
2513 #endif
2515 #undef $2
2517 /* Override any GCC internal prototype to avoid an error.
2518 Use char because int might match the return type of a GCC
2519 builtin and then its argument prototype would still apply. */
2520 #ifdef __cplusplus
2521 extern "C"
2522 #endif
2523 char $2 ();
2524 /* The GNU C library defines this for functions which it implements
2525 to always fail with ENOSYS. Some functions are actually named
2526 something starting with __ and the normal name is an alias. */
2527 #if defined __stub_$2 || defined __stub___$2
2528 choke me
2529 #endif
2532 main ()
2534 return $2 ();
2536 return 0;
2538 _ACEOF
2539 if ac_fn_c_try_link "$LINENO"; then :
2540 eval "$3=yes"
2541 else
2542 eval "$3=no"
2544 rm -f core conftest.err conftest.$ac_objext \
2545 conftest$ac_exeext conftest.$ac_ext
2547 eval ac_res=\$$3
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549 $as_echo "$ac_res" >&6; }
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2552 } # ac_fn_c_check_func
2554 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2555 # ----------------------------------------------------
2556 # Tries to find if the field MEMBER exists in type AGGR, after including
2557 # INCLUDES, setting cache variable VAR accordingly.
2558 ac_fn_c_check_member ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2562 $as_echo_n "checking for $2.$3... " >&6; }
2563 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2570 main ()
2572 static $2 ac_aggr;
2573 if (ac_aggr.$3)
2574 return 0;
2576 return 0;
2578 _ACEOF
2579 if ac_fn_c_try_compile "$LINENO"; then :
2580 eval "$4=yes"
2581 else
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2586 main ()
2588 static $2 ac_aggr;
2589 if (sizeof ac_aggr.$3)
2590 return 0;
2592 return 0;
2594 _ACEOF
2595 if ac_fn_c_try_compile "$LINENO"; then :
2596 eval "$4=yes"
2597 else
2598 eval "$4=no"
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 eval ac_res=\$$4
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609 } # ac_fn_c_check_member
2611 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2612 # -------------------------------------------
2613 # Tests whether TYPE exists after having included INCLUDES, setting cache
2614 # variable VAR accordingly.
2615 ac_fn_c_check_type ()
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2619 $as_echo_n "checking for $2... " >&6; }
2620 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 eval "$3=no"
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2628 main ()
2630 if (sizeof ($2))
2631 return 0;
2633 return 0;
2635 _ACEOF
2636 if ac_fn_c_try_compile "$LINENO"; then :
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2641 main ()
2643 if (sizeof (($2)))
2644 return 0;
2646 return 0;
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2651 else
2652 eval "$3=yes"
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 eval ac_res=\$$3
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660 $as_echo "$ac_res" >&6; }
2661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2663 } # ac_fn_c_check_type
2665 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2666 # --------------------------------------------
2667 # Tries to find the compile-time value of EXPR in a program that includes
2668 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2669 # computed
2670 ac_fn_c_compute_int ()
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 if test "$cross_compiling" = yes; then
2674 # Depending upon the size, compute the lo and hi bounds.
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2679 main ()
2681 static int test_array [1 - 2 * !(($2) >= 0)];
2682 test_array [0] = 0
2685 return 0;
2687 _ACEOF
2688 if ac_fn_c_try_compile "$LINENO"; then :
2689 ac_lo=0 ac_mid=0
2690 while :; do
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2695 main ()
2697 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2698 test_array [0] = 0
2701 return 0;
2703 _ACEOF
2704 if ac_fn_c_try_compile "$LINENO"; then :
2705 ac_hi=$ac_mid; break
2706 else
2707 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2708 if test $ac_lo -le $ac_mid; then
2709 ac_lo= ac_hi=
2710 break
2712 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 done
2716 else
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2721 main ()
2723 static int test_array [1 - 2 * !(($2) < 0)];
2724 test_array [0] = 0
2727 return 0;
2729 _ACEOF
2730 if ac_fn_c_try_compile "$LINENO"; then :
2731 ac_hi=-1 ac_mid=-1
2732 while :; do
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2737 main ()
2739 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2740 test_array [0] = 0
2743 return 0;
2745 _ACEOF
2746 if ac_fn_c_try_compile "$LINENO"; then :
2747 ac_lo=$ac_mid; break
2748 else
2749 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2750 if test $ac_mid -le $ac_hi; then
2751 ac_lo= ac_hi=
2752 break
2754 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757 done
2758 else
2759 ac_lo= ac_hi=
2761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 # Binary search between lo and hi bounds.
2765 while test "x$ac_lo" != "x$ac_hi"; do
2766 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2771 main ()
2773 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2774 test_array [0] = 0
2777 return 0;
2779 _ACEOF
2780 if ac_fn_c_try_compile "$LINENO"; then :
2781 ac_hi=$ac_mid
2782 else
2783 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 done
2787 case $ac_lo in #((
2788 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2789 '') ac_retval=1 ;;
2790 esac
2791 else
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2795 static long int longval () { return $2; }
2796 static unsigned long int ulongval () { return $2; }
2797 #include <stdio.h>
2798 #include <stdlib.h>
2800 main ()
2803 FILE *f = fopen ("conftest.val", "w");
2804 if (! f)
2805 return 1;
2806 if (($2) < 0)
2808 long int i = longval ();
2809 if (i != ($2))
2810 return 1;
2811 fprintf (f, "%ld", i);
2813 else
2815 unsigned long int i = ulongval ();
2816 if (i != ($2))
2817 return 1;
2818 fprintf (f, "%lu", i);
2820 /* Do not output a trailing newline, as this causes \r\n confusion
2821 on some platforms. */
2822 return ferror (f) || fclose (f) != 0;
2825 return 0;
2827 _ACEOF
2828 if ac_fn_c_try_run "$LINENO"; then :
2829 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2830 else
2831 ac_retval=1
2833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2834 conftest.$ac_objext conftest.beam conftest.$ac_ext
2835 rm -f conftest.val
2838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2839 as_fn_set_status $ac_retval
2841 } # ac_fn_c_compute_int
2842 cat >config.log <<_ACEOF
2843 This file contains any messages produced by compilers while
2844 running configure, to aid debugging if configure makes a mistake.
2846 It was created by emacs $as_me 24.0.90, which was
2847 generated by GNU Autoconf 2.65. Invocation command line was
2849 $ $0 $@
2851 _ACEOF
2852 exec 5>>config.log
2854 cat <<_ASUNAME
2855 ## --------- ##
2856 ## Platform. ##
2857 ## --------- ##
2859 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2860 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2861 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2862 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2863 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2865 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2866 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2868 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2869 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2870 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2871 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2872 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2873 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2874 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2876 _ASUNAME
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 $as_echo "PATH: $as_dir"
2884 done
2885 IFS=$as_save_IFS
2887 } >&5
2889 cat >&5 <<_ACEOF
2892 ## ----------- ##
2893 ## Core tests. ##
2894 ## ----------- ##
2896 _ACEOF
2899 # Keep a trace of the command line.
2900 # Strip out --no-create and --no-recursion so they do not pile up.
2901 # Strip out --silent because we don't want to record it for future runs.
2902 # Also quote any args containing shell meta-characters.
2903 # Make two passes to allow for proper duplicate-argument suppression.
2904 ac_configure_args=
2905 ac_configure_args0=
2906 ac_configure_args1=
2907 ac_must_keep_next=false
2908 for ac_pass in 1 2
2910 for ac_arg
2912 case $ac_arg in
2913 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2915 | -silent | --silent | --silen | --sile | --sil)
2916 continue ;;
2917 *\'*)
2918 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2919 esac
2920 case $ac_pass in
2921 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2923 as_fn_append ac_configure_args1 " '$ac_arg'"
2924 if test $ac_must_keep_next = true; then
2925 ac_must_keep_next=false # Got value, back to normal.
2926 else
2927 case $ac_arg in
2928 *=* | --config-cache | -C | -disable-* | --disable-* \
2929 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2930 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2931 | -with-* | --with-* | -without-* | --without-* | --x)
2932 case "$ac_configure_args0 " in
2933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2934 esac
2936 -* ) ac_must_keep_next=true ;;
2937 esac
2939 as_fn_append ac_configure_args " '$ac_arg'"
2941 esac
2942 done
2943 done
2944 { ac_configure_args0=; unset ac_configure_args0;}
2945 { ac_configure_args1=; unset ac_configure_args1;}
2947 # When interrupted or exit'd, cleanup temporary files, and complete
2948 # config.log. We remove comments because anyway the quotes in there
2949 # would cause problems or look ugly.
2950 # WARNING: Use '\'' to represent an apostrophe within the trap.
2951 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2952 trap 'exit_status=$?
2953 # Save into config.log some information that might help in debugging.
2955 echo
2957 cat <<\_ASBOX
2958 ## ---------------- ##
2959 ## Cache variables. ##
2960 ## ---------------- ##
2961 _ASBOX
2962 echo
2963 # The following way of writing the cache mishandles newlines in values,
2965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2966 eval ac_val=\$$ac_var
2967 case $ac_val in #(
2968 *${as_nl}*)
2969 case $ac_var in #(
2970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2972 esac
2973 case $ac_var in #(
2974 _ | IFS | as_nl) ;; #(
2975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2976 *) { eval $ac_var=; unset $ac_var;} ;;
2977 esac ;;
2978 esac
2979 done
2980 (set) 2>&1 |
2981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2982 *${as_nl}ac_space=\ *)
2983 sed -n \
2984 "s/'\''/'\''\\\\'\'''\''/g;
2985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2986 ;; #(
2988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2990 esac |
2991 sort
2993 echo
2995 cat <<\_ASBOX
2996 ## ----------------- ##
2997 ## Output variables. ##
2998 ## ----------------- ##
2999 _ASBOX
3000 echo
3001 for ac_var in $ac_subst_vars
3003 eval ac_val=\$$ac_var
3004 case $ac_val in
3005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3006 esac
3007 $as_echo "$ac_var='\''$ac_val'\''"
3008 done | sort
3009 echo
3011 if test -n "$ac_subst_files"; then
3012 cat <<\_ASBOX
3013 ## ------------------- ##
3014 ## File substitutions. ##
3015 ## ------------------- ##
3016 _ASBOX
3017 echo
3018 for ac_var in $ac_subst_files
3020 eval ac_val=\$$ac_var
3021 case $ac_val in
3022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3023 esac
3024 $as_echo "$ac_var='\''$ac_val'\''"
3025 done | sort
3026 echo
3029 if test -s confdefs.h; then
3030 cat <<\_ASBOX
3031 ## ----------- ##
3032 ## confdefs.h. ##
3033 ## ----------- ##
3034 _ASBOX
3035 echo
3036 cat confdefs.h
3037 echo
3039 test "$ac_signal" != 0 &&
3040 $as_echo "$as_me: caught signal $ac_signal"
3041 $as_echo "$as_me: exit $exit_status"
3042 } >&5
3043 rm -f core *.core core.conftest.* &&
3044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3045 exit $exit_status
3047 for ac_signal in 1 2 13 15; do
3048 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3049 done
3050 ac_signal=0
3052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3053 rm -f -r conftest* confdefs.h
3055 $as_echo "/* confdefs.h */" > confdefs.h
3057 # Predefined preprocessor variables.
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE_NAME "$PACKAGE_NAME"
3061 _ACEOF
3063 cat >>confdefs.h <<_ACEOF
3064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3065 _ACEOF
3067 cat >>confdefs.h <<_ACEOF
3068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3069 _ACEOF
3071 cat >>confdefs.h <<_ACEOF
3072 #define PACKAGE_STRING "$PACKAGE_STRING"
3073 _ACEOF
3075 cat >>confdefs.h <<_ACEOF
3076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3077 _ACEOF
3079 cat >>confdefs.h <<_ACEOF
3080 #define PACKAGE_URL "$PACKAGE_URL"
3081 _ACEOF
3084 # Let the site file select an alternate cache file if it wants to.
3085 # Prefer an explicitly selected file to automatically selected ones.
3086 ac_site_file1=NONE
3087 ac_site_file2=NONE
3088 if test -n "$CONFIG_SITE"; then
3089 ac_site_file1=$CONFIG_SITE
3090 elif test "x$prefix" != xNONE; then
3091 ac_site_file1=$prefix/share/config.site
3092 ac_site_file2=$prefix/etc/config.site
3093 else
3094 ac_site_file1=$ac_default_prefix/share/config.site
3095 ac_site_file2=$ac_default_prefix/etc/config.site
3097 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3099 test "x$ac_site_file" = xNONE && continue
3100 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3102 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3103 sed 's/^/| /' "$ac_site_file" >&5
3104 . "$ac_site_file"
3106 done
3108 if test -r "$cache_file"; then
3109 # Some versions of bash will fail to source /dev/null (special files
3110 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3111 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3113 $as_echo "$as_me: loading cache $cache_file" >&6;}
3114 case $cache_file in
3115 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3116 *) . "./$cache_file";;
3117 esac
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3121 $as_echo "$as_me: creating cache $cache_file" >&6;}
3122 >$cache_file
3125 as_fn_append ac_header_list " stdlib.h"
3126 as_fn_append ac_header_list " unistd.h"
3127 as_fn_append ac_header_list " sys/param.h"
3128 as_fn_append ac_func_list " readlinkat"
3129 gl_getopt_required=GNU
3130 as_fn_append ac_header_list " getopt.h"
3131 as_fn_append ac_header_list " wchar.h"
3132 as_fn_append ac_header_list " stdint.h"
3133 as_fn_append ac_header_list " inttypes.h"
3134 as_fn_append ac_func_list " lstat"
3135 as_fn_append ac_func_list " alarm"
3136 as_fn_append ac_func_list " pthread_sigmask"
3137 as_fn_append ac_func_list " readlink"
3138 as_fn_append ac_header_list " sys/socket.h"
3139 as_fn_append ac_func_list " tzset"
3140 as_fn_append ac_func_list " strtoimax"
3141 as_fn_append ac_func_list " strtoumax"
3142 as_fn_append ac_func_list " symlink"
3143 as_fn_append ac_header_list " sys/stat.h"
3144 as_fn_append ac_header_list " sys/time.h"
3145 as_fn_append ac_func_list " localtime_r"
3146 # Check that the precious variables saved in the cache have kept the same
3147 # value.
3148 ac_cache_corrupted=false
3149 for ac_var in $ac_precious_vars; do
3150 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3151 eval ac_new_set=\$ac_env_${ac_var}_set
3152 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3153 eval ac_new_val=\$ac_env_${ac_var}_value
3154 case $ac_old_set,$ac_new_set in
3155 set,)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3157 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3158 ac_cache_corrupted=: ;;
3159 ,set)
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3161 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3162 ac_cache_corrupted=: ;;
3163 ,);;
3165 if test "x$ac_old_val" != "x$ac_new_val"; then
3166 # differences in whitespace do not lead to failure.
3167 ac_old_val_w=`echo x $ac_old_val`
3168 ac_new_val_w=`echo x $ac_new_val`
3169 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3171 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3172 ac_cache_corrupted=:
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3175 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3176 eval $ac_var=\$ac_old_val
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3179 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3181 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3182 fi;;
3183 esac
3184 # Pass precious variables to config.status.
3185 if test "$ac_new_set" = set; then
3186 case $ac_new_val in
3187 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3188 *) ac_arg=$ac_var=$ac_new_val ;;
3189 esac
3190 case " $ac_configure_args " in
3191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3192 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3193 esac
3195 done
3196 if $ac_cache_corrupted; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3200 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3201 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3203 ## -------------------- ##
3204 ## Main body of script. ##
3205 ## -------------------- ##
3207 ac_ext=c
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3217 ac_aux_dir=
3218 for ac_dir in build-aux "$srcdir"/build-aux; do
3219 for ac_t in install-sh install.sh shtool; do
3220 if test -f "$ac_dir/$ac_t"; then
3221 ac_aux_dir=$ac_dir
3222 ac_install_sh="$ac_aux_dir/$ac_t -c"
3223 break 2
3225 done
3226 done
3227 if test -z "$ac_aux_dir"; then
3228 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3231 # These three variables are undocumented and unsupported,
3232 # and are intended to be withdrawn in a future Autoconf release.
3233 # They can cause serious problems if a builder's source tree is in a directory
3234 # whose full name contains unusual characters.
3235 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3236 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3237 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3240 am__api_version='1.11'
3242 # Find a good install program. We prefer a C program (faster),
3243 # so one script is as good as another. But avoid the broken or
3244 # incompatible versions:
3245 # SysV /etc/install, /usr/sbin/install
3246 # SunOS /usr/etc/install
3247 # IRIX /sbin/install
3248 # AIX /bin/install
3249 # AmigaOS /C/install, which installs bootblocks on floppy discs
3250 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3251 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3252 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3253 # OS/2's system install, which has a completely different semantic
3254 # ./install, which can be erroneously created by make from ./install.sh.
3255 # Reject install programs that cannot install multiple files.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3257 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3258 if test -z "$INSTALL"; then
3259 if test "${ac_cv_path_install+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 # Account for people who put trailing slashes in PATH elements.
3268 case $as_dir/ in #((
3269 ./ | .// | /[cC]/* | \
3270 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3271 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3272 /usr/ucb/* ) ;;
3274 # OSF1 and SCO ODT 3.0 have their own names for install.
3275 # Don't use installbsd from OSF since it installs stuff as root
3276 # by default.
3277 for ac_prog in ginstall scoinst install; do
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3280 if test $ac_prog = install &&
3281 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3282 # AIX install. It has an incompatible calling convention.
3284 elif test $ac_prog = install &&
3285 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3286 # program-specific install script used by HP pwplus--don't use.
3288 else
3289 rm -rf conftest.one conftest.two conftest.dir
3290 echo one > conftest.one
3291 echo two > conftest.two
3292 mkdir conftest.dir
3293 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3294 test -s conftest.one && test -s conftest.two &&
3295 test -s conftest.dir/conftest.one &&
3296 test -s conftest.dir/conftest.two
3297 then
3298 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3299 break 3
3303 done
3304 done
3306 esac
3308 done
3309 IFS=$as_save_IFS
3311 rm -rf conftest.one conftest.two conftest.dir
3314 if test "${ac_cv_path_install+set}" = set; then
3315 INSTALL=$ac_cv_path_install
3316 else
3317 # As a last resort, use the slow shell script. Don't cache a
3318 # value for INSTALL within a source directory, because that will
3319 # break other packages using the cache if that directory is
3320 # removed, or if the value is a relative name.
3321 INSTALL=$ac_install_sh
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3325 $as_echo "$INSTALL" >&6; }
3327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3328 # It thinks the first close brace ends the variable substitution.
3329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3336 $as_echo_n "checking whether build environment is sane... " >&6; }
3337 # Just in case
3338 sleep 1
3339 echo timestamp > conftest.file
3340 # Reject unsafe characters in $srcdir or the absolute working directory
3341 # name. Accept space and tab only in the latter.
3342 am_lf='
3344 case `pwd` in
3345 *[\\\"\#\$\&\'\`$am_lf]*)
3346 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3347 esac
3348 case $srcdir in
3349 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3350 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3351 esac
3353 # Do `set' in a subshell so we don't clobber the current shell's
3354 # arguments. Must try -L first in case configure is actually a
3355 # symlink; some systems play weird games with the mod time of symlinks
3356 # (eg FreeBSD returns the mod time of the symlink's containing
3357 # directory).
3358 if (
3359 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3360 if test "$*" = "X"; then
3361 # -L didn't work.
3362 set X `ls -t "$srcdir/configure" conftest.file`
3364 rm -f conftest.file
3365 if test "$*" != "X $srcdir/configure conftest.file" \
3366 && test "$*" != "X conftest.file $srcdir/configure"; then
3368 # If neither matched, then we have a broken ls. This can happen
3369 # if, for instance, CONFIG_SHELL is bash and it inherits a
3370 # broken ls alias from the environment. This has actually
3371 # happened. Such a system could not be considered "sane".
3372 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3373 alias in your environment" "$LINENO" 5
3376 test "$2" = conftest.file
3378 then
3379 # Ok.
3381 else
3382 as_fn_error "newly created file is older than distributed files!
3383 Check your system clock" "$LINENO" 5
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 $as_echo "yes" >&6; }
3387 test "$program_prefix" != NONE &&
3388 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3389 # Use a double $ so make ignores it.
3390 test "$program_suffix" != NONE &&
3391 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3392 # Double any \ or $.
3393 # By default was `s,x,x', remove it if useless.
3394 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3395 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3397 # expand $ac_aux_dir to an absolute path
3398 am_aux_dir=`cd $ac_aux_dir && pwd`
3400 if test x"${MISSING+set}" != xset; then
3401 case $am_aux_dir in
3402 *\ * | *\ *)
3403 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3405 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3406 esac
3408 # Use eval to expand $SHELL
3409 if eval "$MISSING --run true"; then
3410 am_missing_run="$MISSING --run "
3411 else
3412 am_missing_run=
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3414 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3417 if test x"${install_sh}" != xset; then
3418 case $am_aux_dir in
3419 *\ * | *\ *)
3420 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3422 install_sh="\${SHELL} $am_aux_dir/install-sh"
3423 esac
3426 # Installed binaries are usually stripped using `strip' when the user
3427 # run `make install-strip'. However `strip' might not be the right
3428 # tool to use in cross-compilation environments, therefore Automake
3429 # will honor the `STRIP' environment variable to overrule this program.
3430 if test "$cross_compiling" != no; then
3431 if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3433 set dummy ${ac_tool_prefix}strip; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if test "${ac_cv_prog_STRIP+set}" = set; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 if test -n "$STRIP"; then
3440 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 break 2
3453 done
3454 done
3455 IFS=$as_save_IFS
3459 STRIP=$ac_cv_prog_STRIP
3460 if test -n "$STRIP"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3462 $as_echo "$STRIP" >&6; }
3463 else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3470 if test -z "$ac_cv_prog_STRIP"; then
3471 ac_ct_STRIP=$STRIP
3472 # Extract the first word of "strip", so it can be a program name with args.
3473 set dummy strip; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 if test -n "$ac_ct_STRIP"; then
3480 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 ac_cv_prog_ac_ct_STRIP="strip"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3493 done
3494 done
3495 IFS=$as_save_IFS
3499 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3500 if test -n "$ac_ct_STRIP"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3502 $as_echo "$ac_ct_STRIP" >&6; }
3503 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3508 if test "x$ac_ct_STRIP" = x; then
3509 STRIP=":"
3510 else
3511 case $cross_compiling:$ac_tool_warned in
3512 yes:)
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3515 ac_tool_warned=yes ;;
3516 esac
3517 STRIP=$ac_ct_STRIP
3519 else
3520 STRIP="$ac_cv_prog_STRIP"
3524 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3527 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3528 if test -z "$MKDIR_P"; then
3529 if test "${ac_cv_path_mkdir+set}" = set; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_prog in mkdir gmkdir; do
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3540 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3541 'mkdir (GNU coreutils) '* | \
3542 'mkdir (coreutils) '* | \
3543 'mkdir (fileutils) '4.1*)
3544 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3545 break 3;;
3546 esac
3547 done
3548 done
3549 done
3550 IFS=$as_save_IFS
3554 test -d ./--version && rmdir ./--version
3555 if test "${ac_cv_path_mkdir+set}" = set; then
3556 MKDIR_P="$ac_cv_path_mkdir -p"
3557 else
3558 # As a last resort, use the slow shell script. Don't cache a
3559 # value for MKDIR_P within a source directory, because that will
3560 # break other packages using the cache if that directory is
3561 # removed, or if the value is a relative name.
3562 MKDIR_P="$ac_install_sh -d"
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3566 $as_echo "$MKDIR_P" >&6; }
3569 mkdir_p="$MKDIR_P"
3570 case $mkdir_p in
3571 [\\/$]* | ?:[\\/]*) ;;
3572 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3573 esac
3575 for ac_prog in gawk mawk nawk awk
3577 # Extract the first word of "$ac_prog", so it can be a program name with args.
3578 set dummy $ac_prog; ac_word=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if test "${ac_cv_prog_AWK+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 if test -n "$AWK"; then
3585 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594 ac_cv_prog_AWK="$ac_prog"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3598 done
3599 done
3600 IFS=$as_save_IFS
3604 AWK=$ac_cv_prog_AWK
3605 if test -n "$AWK"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3607 $as_echo "$AWK" >&6; }
3608 else
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3614 test -n "$AWK" && break
3615 done
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3618 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3619 set x ${MAKE-make}
3620 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3621 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 cat >conftest.make <<\_ACEOF
3625 SHELL = /bin/sh
3626 all:
3627 @echo '@@@%%%=$(MAKE)=@@@%%%'
3628 _ACEOF
3629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3631 *@@@%%%=?*=@@@%%%*)
3632 eval ac_cv_prog_make_${ac_make}_set=yes;;
3634 eval ac_cv_prog_make_${ac_make}_set=no;;
3635 esac
3636 rm -f conftest.make
3638 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3640 $as_echo "yes" >&6; }
3641 SET_MAKE=
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 SET_MAKE="MAKE=${MAKE-make}"
3648 rm -rf .tst 2>/dev/null
3649 mkdir .tst 2>/dev/null
3650 if test -d .tst; then
3651 am__leading_dot=.
3652 else
3653 am__leading_dot=_
3655 rmdir .tst 2>/dev/null
3657 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3658 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3659 # is not polluted with repeated "-I."
3660 am__isrc=' -I$(srcdir)'
3661 # test to see if srcdir already configured
3662 if test -f $srcdir/config.status; then
3663 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3667 # test whether we have cygpath
3668 if test -z "$CYGPATH_W"; then
3669 if (cygpath --version) >/dev/null 2>/dev/null; then
3670 CYGPATH_W='cygpath -w'
3671 else
3672 CYGPATH_W=echo
3677 # Define the identity of the package.
3678 PACKAGE='emacs'
3679 VERSION='24.0.90'
3682 cat >>confdefs.h <<_ACEOF
3683 #define PACKAGE "$PACKAGE"
3684 _ACEOF
3687 cat >>confdefs.h <<_ACEOF
3688 #define VERSION "$VERSION"
3689 _ACEOF
3691 # Some tools Automake needs.
3693 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3696 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3699 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3702 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3705 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3707 # We need awk for the "check" target. The system "awk" is bad on
3708 # some platforms.
3709 # Always define AMTAR for backward compatibility.
3711 AMTAR=${AMTAR-"${am_missing_run}tar"}
3713 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3722 lispdir='${datadir}/emacs/${version}/lisp'
3723 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3724 '${datadir}/emacs/site-lisp'
3725 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3726 etcdir='${datadir}/emacs/${version}/etc'
3727 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3728 docdir='${datadir}/emacs/${version}/etc'
3729 gamedir='${localstatedir}/games/emacs'
3734 # Check whether --with-pop was given.
3735 if test "${with_pop+set}" = set; then :
3736 withval=$with_pop;
3737 else
3738 with_pop=yes
3741 if test "$with_pop" = yes; then
3742 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3747 # Check whether --with-kerberos was given.
3748 if test "${with_kerberos+set}" = set; then :
3749 withval=$with_kerberos;
3750 else
3751 with_kerberos=no
3754 if test "$with_kerberos" != no; then
3755 $as_echo "#define KERBEROS 1" >>confdefs.h
3760 # Check whether --with-kerberos5 was given.
3761 if test "${with_kerberos5+set}" = set; then :
3762 withval=$with_kerberos5;
3763 else
3764 with_kerberos5=no
3767 if test "${with_kerberos5}" != no; then
3768 if test "${with_kerberos}" = no; then
3769 with_kerberos=yes
3770 $as_echo "#define KERBEROS 1" >>confdefs.h
3774 $as_echo "#define KERBEROS5 1" >>confdefs.h
3779 # Check whether --with-hesiod was given.
3780 if test "${with_hesiod+set}" = set; then :
3781 withval=$with_hesiod;
3782 else
3783 with_hesiod=no
3786 if test "$with_hesiod" != no; then
3788 $as_echo "#define HESIOD 1" >>confdefs.h
3793 # Check whether --with-mmdf was given.
3794 if test "${with_mmdf+set}" = set; then :
3795 withval=$with_mmdf;
3796 else
3797 with_mmdf=no
3800 if test "$with_mmdf" != no; then
3802 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3807 # Check whether --with-mail-unlink was given.
3808 if test "${with_mail_unlink+set}" = set; then :
3809 withval=$with_mail_unlink;
3810 else
3811 with_mail_unlink=no
3814 if test "$with_mail_unlink" != no; then
3816 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3821 # Check whether --with-mailhost was given.
3822 if test "${with_mailhost+set}" = set; then :
3823 withval=$with_mailhost;
3824 cat >>confdefs.h <<_ACEOF
3825 #define MAILHOST "$withval"
3826 _ACEOF
3832 # Check whether --with-sound was given.
3833 if test "${with_sound+set}" = set; then :
3834 withval=$with_sound;
3835 else
3836 with_sound=yes
3841 # Check whether --with-sync-input was given.
3842 if test "${with_sync_input+set}" = set; then :
3843 withval=$with_sync_input;
3844 else
3845 with_sync_input=yes
3848 if test "$with_sync_input" = yes; then
3850 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3855 # Check whether --with-x-toolkit was given.
3856 if test "${with_x_toolkit+set}" = set; then :
3857 withval=$with_x_toolkit; case "${withval}" in
3858 y | ye | yes ) val=gtk ;;
3859 n | no ) val=no ;;
3860 l | lu | luc | luci | lucid ) val=lucid ;;
3861 a | at | ath | athe | athen | athena ) val=athena ;;
3862 m | mo | mot | moti | motif ) val=motif ;;
3863 g | gt | gtk ) val=gtk ;;
3864 gtk3 ) val=gtk3 ;;
3866 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3867 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3868 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3870 esac
3871 with_x_toolkit=$val
3877 # Check whether --with-wide-int was given.
3878 if test "${with_wide_int+set}" = set; then :
3879 withval=$with_wide_int;
3880 else
3881 with_wide_int=no
3884 if test "$with_wide_int" = yes; then
3886 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3891 # Check whether --with-xpm was given.
3892 if test "${with_xpm+set}" = set; then :
3893 withval=$with_xpm;
3894 else
3895 with_xpm=yes
3899 # Check whether --with-jpeg was given.
3900 if test "${with_jpeg+set}" = set; then :
3901 withval=$with_jpeg;
3902 else
3903 with_jpeg=yes
3907 # Check whether --with-tiff was given.
3908 if test "${with_tiff+set}" = set; then :
3909 withval=$with_tiff;
3910 else
3911 with_tiff=yes
3915 # Check whether --with-gif was given.
3916 if test "${with_gif+set}" = set; then :
3917 withval=$with_gif;
3918 else
3919 with_gif=yes
3923 # Check whether --with-png was given.
3924 if test "${with_png+set}" = set; then :
3925 withval=$with_png;
3926 else
3927 with_png=yes
3931 # Check whether --with-rsvg was given.
3932 if test "${with_rsvg+set}" = set; then :
3933 withval=$with_rsvg;
3934 else
3935 with_rsvg=yes
3939 # Check whether --with-xml2 was given.
3940 if test "${with_xml2+set}" = set; then :
3941 withval=$with_xml2;
3942 else
3943 with_xml2=yes
3947 # Check whether --with-imagemagick was given.
3948 if test "${with_imagemagick+set}" = set; then :
3949 withval=$with_imagemagick;
3950 else
3951 with_imagemagick=yes
3956 # Check whether --with-xft was given.
3957 if test "${with_xft+set}" = set; then :
3958 withval=$with_xft;
3959 else
3960 with_xft=yes
3964 # Check whether --with-libotf was given.
3965 if test "${with_libotf+set}" = set; then :
3966 withval=$with_libotf;
3967 else
3968 with_libotf=yes
3972 # Check whether --with-m17n-flt was given.
3973 if test "${with_m17n_flt+set}" = set; then :
3974 withval=$with_m17n_flt;
3975 else
3976 with_m17n_flt=yes
3981 # Check whether --with-toolkit-scroll-bars was given.
3982 if test "${with_toolkit_scroll_bars+set}" = set; then :
3983 withval=$with_toolkit_scroll_bars;
3984 else
3985 with_toolkit_scroll_bars=yes
3989 # Check whether --with-xaw3d was given.
3990 if test "${with_xaw3d+set}" = set; then :
3991 withval=$with_xaw3d;
3992 else
3993 with_xaw3d=yes
3997 # Check whether --with-xim was given.
3998 if test "${with_xim+set}" = set; then :
3999 withval=$with_xim;
4000 else
4001 with_xim=yes
4005 # Check whether --with-ns was given.
4006 if test "${with_ns+set}" = set; then :
4007 withval=$with_ns;
4008 else
4009 with_ns=no
4014 # Check whether --with-gpm was given.
4015 if test "${with_gpm+set}" = set; then :
4016 withval=$with_gpm;
4017 else
4018 with_gpm=yes
4022 # Check whether --with-dbus was given.
4023 if test "${with_dbus+set}" = set; then :
4024 withval=$with_dbus;
4025 else
4026 with_dbus=yes
4030 # Check whether --with-gconf was given.
4031 if test "${with_gconf+set}" = set; then :
4032 withval=$with_gconf;
4033 else
4034 with_gconf=yes
4038 # Check whether --with-gsettings was given.
4039 if test "${with_gsettings+set}" = set; then :
4040 withval=$with_gsettings;
4041 else
4042 with_gsettings=yes
4046 # Check whether --with-selinux was given.
4047 if test "${with_selinux+set}" = set; then :
4048 withval=$with_selinux;
4049 else
4050 with_selinux=yes
4054 # Check whether --with-gnutls was given.
4055 if test "${with_gnutls+set}" = set; then :
4056 withval=$with_gnutls;
4057 else
4058 with_gnutls=yes
4062 ## For the times when you want to build Emacs but don't have
4063 ## a suitable makeinfo, and can live without the manuals.
4065 # Check whether --with-makeinfo was given.
4066 if test "${with_makeinfo+set}" = set; then :
4067 withval=$with_makeinfo;
4068 else
4069 with_makeinfo=yes
4073 ## This is an option because I do not know if all info/man support
4074 ## compressed files, nor how to test if they do so.
4076 # Check whether --with-compress-info was given.
4077 if test "${with_compress_info+set}" = set; then :
4078 withval=$with_compress_info;
4079 else
4080 with_compress_info=yes
4083 if test $with_compress_info = yes; then
4084 GZIP_INFO=yes
4085 else
4086 GZIP_INFO=
4091 # Check whether --with-pkg-config-prog was given.
4092 if test "${with_pkg_config_prog+set}" = set; then :
4093 withval=$with_pkg_config_prog;
4096 if test "X${with_pkg_config_prog}" != X; then
4097 if test "${with_pkg_config_prog}" != yes; then
4098 PKG_CONFIG="${with_pkg_config_prog}"
4102 CRT_DIR=
4104 # Check whether --with-crt-dir was given.
4105 if test "${with_crt_dir+set}" = set; then :
4106 withval=$with_crt_dir;
4109 CRT_DIR="${with_crt_dir}"
4112 # Check whether --with-gameuser was given.
4113 if test "${with_gameuser+set}" = set; then :
4114 withval=$with_gameuser;
4117 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4118 && gameuser="${with_gameuser}"
4119 test "X$gameuser" = X && gameuser=games
4122 # Check whether --with-gnustep-conf was given.
4123 if test "${with_gnustep_conf+set}" = set; then :
4124 withval=$with_gnustep_conf;
4127 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4128 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4129 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4130 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4132 # Check whether --enable-ns-self-contained was given.
4133 if test "${enable_ns_self_contained+set}" = set; then :
4134 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4135 else
4136 EN_NS_SELF_CONTAINED=yes
4140 # Check whether --enable-asserts was given.
4141 if test "${enable_asserts+set}" = set; then :
4142 enableval=$enable_asserts; USE_XASSERTS=$enableval
4143 else
4144 USE_XASSERTS=no
4148 # Check whether --enable-maintainer-mode was given.
4149 if test "${enable_maintainer_mode+set}" = set; then :
4150 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4151 else
4152 USE_MAINTAINER_MODE=yes
4155 if test $USE_MAINTAINER_MODE = yes; then
4156 MAINT=
4157 else
4158 MAINT=#
4162 # Check whether --enable-locallisppath was given.
4163 if test "${enable_locallisppath+set}" = set; then :
4164 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4165 locallisppath=
4166 elif test "${enableval}" != "yes"; then
4167 locallisppath=${enableval}
4172 # Check whether --enable-checking was given.
4173 if test "${enable_checking+set}" = set; then :
4174 enableval=$enable_checking; ac_checking_flags="${enableval}"
4177 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4178 for check in $ac_checking_flags
4180 case $check in
4181 # these set all the flags to specific states
4182 yes) ac_enable_checking=1 ;;
4183 no) ac_enable_checking= ;
4184 ac_gc_check_stringbytes= ;
4185 ac_gc_check_string_overrun= ;
4186 ac_gc_check_string_free_list= ;
4187 ac_xmalloc_overrun= ;
4188 ac_gc_check_cons_list= ;;
4189 all) ac_enable_checking=1 ;
4190 ac_gc_check_stringbytes=1 ;
4191 ac_gc_check_string_overrun=1 ;
4192 ac_gc_check_string_free_list=1 ;
4193 ac_xmalloc_overrun=1 ;
4194 ac_gc_check_cons_list=1 ;;
4195 # these enable particular checks
4196 stringbytes) ac_gc_check_stringbytes=1 ;;
4197 stringoverrun) ac_gc_check_string_overrun=1 ;;
4198 stringfreelist) ac_gc_check_string_free_list=1 ;;
4199 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4200 conslist) ac_gc_check_cons_list=1 ;;
4201 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4202 esac
4203 done
4204 IFS="$ac_save_IFS"
4206 if test x$ac_enable_checking != x ; then
4208 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4211 if test x$ac_gc_check_stringbytes != x ; then
4213 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4216 if test x$ac_gc_check_string_overrun != x ; then
4218 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4221 if test x$ac_gc_check_string_free_list != x ; then
4223 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4226 if test x$ac_xmalloc_overrun != x ; then
4228 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4231 if test x$ac_gc_check_cons_list != x ; then
4233 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4237 # Check whether --enable-use-lisp-union-type was given.
4238 if test "${enable_use_lisp_union_type+set}" = set; then :
4239 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4241 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4248 # Check whether --enable-profiling was given.
4249 if test "${enable_profiling+set}" = set; then :
4250 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4253 if test x$ac_enable_profiling != x ; then
4254 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4255 else
4256 PROFILING_CFLAGS=
4260 # Check whether --enable-autodepend was given.
4261 if test "${enable_autodepend+set}" = set; then :
4262 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4263 else
4264 ac_enable_autodepend=yes
4268 #### Make srcdir absolute, if it isn't already. It's important to
4269 #### avoid running the path through pwd unnecessarily, since pwd can
4270 #### give you automounter prefixes, which can go away. We do all this
4271 #### so Emacs can find its files when run uninstalled.
4272 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4273 unset CDPATH
4274 case "${srcdir}" in
4275 /* ) ;;
4277 ## We may be able to use the $PWD environment variable to make this
4278 ## absolute. But sometimes PWD is inaccurate.
4279 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4280 ## but that tested only for a well-formed and valid PWD,
4281 ## it did not object when PWD was well-formed and valid but just wrong.
4282 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4283 then
4284 srcdir="$PWD"
4285 else
4286 srcdir="`(cd ${srcdir}; pwd)`"
4289 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4290 esac
4292 #### Given the configuration name, set machfile and opsysfile to the
4293 #### names of the m/*.h and s/*.h files we should use.
4295 ### Canonicalize the configuration name.
4297 # Make sure we can run config.sub.
4298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4302 $as_echo_n "checking build system type... " >&6; }
4303 if test "${ac_cv_build+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 ac_build_alias=$build_alias
4307 test "x$ac_build_alias" = x &&
4308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4309 test "x$ac_build_alias" = x &&
4310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4316 $as_echo "$ac_cv_build" >&6; }
4317 case $ac_cv_build in
4318 *-*-*) ;;
4319 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4320 esac
4321 build=$ac_cv_build
4322 ac_save_IFS=$IFS; IFS='-'
4323 set x $ac_cv_build
4324 shift
4325 build_cpu=$1
4326 build_vendor=$2
4327 shift; shift
4328 # Remember, the first character of IFS is used to create $*,
4329 # except with old shells:
4330 build_os=$*
4331 IFS=$ac_save_IFS
4332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4336 $as_echo_n "checking host system type... " >&6; }
4337 if test "${ac_cv_host+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test "x$host_alias" = x; then
4341 ac_cv_host=$ac_cv_build
4342 else
4343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4344 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4349 $as_echo "$ac_cv_host" >&6; }
4350 case $ac_cv_host in
4351 *-*-*) ;;
4352 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4353 esac
4354 host=$ac_cv_host
4355 ac_save_IFS=$IFS; IFS='-'
4356 set x $ac_cv_host
4357 shift
4358 host_cpu=$1
4359 host_vendor=$2
4360 shift; shift
4361 # Remember, the first character of IFS is used to create $*,
4362 # except with old shells:
4363 host_os=$*
4364 IFS=$ac_save_IFS
4365 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4368 canonical=$host
4369 configuration=${host_alias-${build_alias-$host}}
4373 ### If you add support for a new configuration, add code to this
4374 ### switch statement to recognize your configuration name and select
4375 ### the appropriate operating system and machine description files.
4377 ### You would hope that you could choose an m/*.h file pretty much
4378 ### based on the machine portion of the configuration name, and an s/*.h
4379 ### file based on the operating system portion. However, it turns out
4380 ### that each m/*.h file is pretty manufacturer-specific - for
4381 ### example mips.h is MIPS
4382 ### So we basically have to have a special case for each
4383 ### configuration name.
4385 ### As far as handling version numbers on operating systems is
4386 ### concerned, make sure things will fail in a fixable way. If
4387 ### /etc/MACHINES doesn't say anything about version numbers, be
4388 ### prepared to handle anything reasonably. If version numbers
4389 ### matter, be sure /etc/MACHINES says something about it.
4391 machine='' opsys='' unported=no
4392 case "${canonical}" in
4394 ## GNU/Linux and similar ports
4395 *-*-linux* )
4396 opsys=gnu-linux
4397 case ${canonical} in
4398 alpha*) machine=alpha ;;
4399 s390-*) machine=ibms390 ;;
4400 s390x-*) machine=ibms390x ;;
4401 powerpc*) machine=macppc ;;
4402 sparc*) machine=sparc ;;
4403 ia64*) machine=ia64 ;;
4404 m68k*) machine=m68k ;;
4405 x86_64*) machine=amdx86-64 ;;
4406 esac
4409 ## FreeBSD ports
4410 *-*-freebsd* )
4411 opsys=freebsd
4412 case "${canonical}" in
4413 alpha*) machine=alpha ;;
4414 amd64-*|x86_64-*) machine=amdx86-64 ;;
4415 ia64-*) machine=ia64 ;;
4416 i[3456]86-*) machine=intel386 ;;
4417 powerpc-*) machine=macppc ;;
4418 sparc-*) machine=sparc ;;
4419 sparc64-*) machine=sparc ;;
4420 esac
4423 ## FreeBSD kernel + glibc based userland
4424 *-*-kfreebsd*gnu* )
4425 opsys=gnu-kfreebsd
4426 case "${canonical}" in
4427 alpha*) machine=alpha ;;
4428 amd64-*|x86_64-*) machine=amdx86-64 ;;
4429 ia64-*) machine=ia64 ;;
4430 i[3456]86-*) machine=intel386 ;;
4431 powerpc-*) machine=macppc ;;
4432 sparc-*) machine=sparc ;;
4433 sparc64-*) machine=sparc ;;
4434 esac
4437 ## NetBSD ports
4438 *-*-netbsd* )
4439 opsys=netbsd
4440 case "${canonical}" in
4441 alpha*) machine=alpha ;;
4442 x86_64-*) machine=amdx86-64 ;;
4443 i[3456]86-*) machine=intel386 ;;
4444 m68k-*) machine=m68k ;;
4445 powerpc-*) machine=macppc ;;
4446 sparc*-) machine=sparc ;;
4447 vax-*) machine=vax ;;
4448 esac
4451 ## OpenBSD ports
4452 *-*-openbsd* )
4453 opsys=openbsd
4454 case "${canonical}" in
4455 alpha*) machine=alpha ;;
4456 x86_64-*) machine=amdx86-64 ;;
4457 i386-*) machine=intel386 ;;
4458 powerpc-*) machine=macppc ;;
4459 sparc*) machine=sparc ;;
4460 vax-*) machine=vax ;;
4461 esac
4464 ## Apple Darwin / Mac OS X
4465 *-apple-darwin* )
4466 case "${canonical}" in
4467 i[3456]86-* ) machine=intel386 ;;
4468 powerpc-* ) machine=macppc ;;
4469 x86_64-* ) machine=amdx86-64 ;;
4470 * ) unported=yes ;;
4471 esac
4472 opsys=darwin
4473 # Define CPP as follows to make autoconf work correctly.
4474 CPP="${CC-cc} -E -no-cpp-precomp"
4475 # Use fink packages if available.
4476 if test -d /sw/include && test -d /sw/lib; then
4477 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4478 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4479 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4483 ## HP 9000 series 700 and 800, running HP/UX
4484 hppa*-hp-hpux10.2* )
4485 opsys=hpux10-20
4487 hppa*-hp-hpux1[1-9]* )
4488 opsys=hpux11
4489 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4492 ## IBM machines
4493 rs6000-ibm-aix4.[23]* )
4494 machine=ibmrs6000 opsys=aix4-2
4496 powerpc-ibm-aix4.[23]* )
4497 machine=ibmrs6000 opsys=aix4-2
4499 rs6000-ibm-aix[56]* )
4500 machine=ibmrs6000 opsys=aix4-2
4502 powerpc-ibm-aix[56]* )
4503 machine=ibmrs6000 opsys=aix4-2
4506 ## Silicon Graphics machines
4507 ## Iris 4D
4508 mips-sgi-irix6.5 )
4509 opsys=irix6-5
4510 # Without defining _LANGUAGE_C, things get masked out in the headers
4511 # so that, for instance, grepping for `free' in stdlib.h fails and
4512 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4513 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4514 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4517 ## Suns
4518 *-sun-solaris* \
4519 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4520 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4521 case "${canonical}" in
4522 i[3456]86-*-* ) machine=intel386 ;;
4523 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4524 sparc* ) machine=sparc ;;
4525 * ) unported=yes ;;
4526 esac
4527 case "${canonical}" in
4528 *-sunos5.6* | *-solaris2.6* )
4529 opsys=sol2-6
4530 NON_GNU_CPP=/usr/ccs/lib/cpp
4531 RANLIB="ar -ts"
4533 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4534 opsys=sol2-6
4535 emacs_check_sunpro_c=yes
4536 NON_GNU_CPP=/usr/ccs/lib/cpp
4538 *-sunos5* | *-solaris* )
4539 opsys=sol2-10
4540 emacs_check_sunpro_c=yes
4541 NON_GNU_CPP=/usr/ccs/lib/cpp
4543 esac
4544 ## Watch out for a compiler that we know will not work.
4545 case "${canonical}" in
4546 *-solaris* | *-sunos5* )
4547 if [ "x$CC" = x/usr/ucb/cc ]; then
4548 ## /usr/ucb/cc doesn't work;
4549 ## we should find some other compiler that does work.
4550 unset CC
4553 *) ;;
4554 esac
4557 ## Intel 386 machines where we don't care about the manufacturer.
4558 i[3456]86-*-* )
4559 machine=intel386
4560 case "${canonical}" in
4561 *-cygwin ) opsys=cygwin ;;
4562 *-darwin* ) opsys=darwin
4563 CPP="${CC-cc} -E -no-cpp-precomp"
4565 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4566 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4567 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4568 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4569 esac
4573 unported=yes
4575 esac
4577 ### If the code above didn't choose an operating system, just choose
4578 ### an operating system based on the configuration name. You really
4579 ### only want to use this when you have no idea what the right
4580 ### operating system is; if you know what operating systems a machine
4581 ### runs, it's cleaner to make it explicit in the case statement
4582 ### above.
4583 if test x"${opsys}" = x; then
4584 case "${canonical}" in
4585 *-gnu* ) opsys=gnu ;;
4587 unported=yes
4589 esac
4594 if test $unported = yes; then
4595 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4596 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4599 if test -n "$machine"; then
4600 machfile="m/${machine}.h"
4601 else
4602 machfile=
4604 opsysfile="s/${opsys}.h"
4607 #### Choose a compiler.
4608 test -n "$CC" && cc_specified=yes
4610 # Save the value of CFLAGS that the user specified.
4611 SPECIFIED_CFLAGS="$CFLAGS"
4613 ac_ext=c
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_prog_CC+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$CC"; then
4627 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4642 IFS=$as_save_IFS
4646 CC=$ac_cv_prog_CC
4647 if test -n "$CC"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4649 $as_echo "$CC" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4657 if test -z "$ac_cv_prog_CC"; then
4658 ac_ct_CC=$CC
4659 # Extract the first word of "gcc", so it can be a program name with args.
4660 set dummy gcc; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$ac_ct_CC"; then
4667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_ac_ct_CC="gcc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4687 if test -n "$ac_ct_CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4689 $as_echo "$ac_ct_CC" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4695 if test "x$ac_ct_CC" = x; then
4696 CC=""
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699 yes:)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4703 esac
4704 CC=$ac_ct_CC
4706 else
4707 CC="$ac_cv_prog_CC"
4710 if test -z "$CC"; then
4711 if test -n "$ac_tool_prefix"; then
4712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4713 set dummy ${ac_tool_prefix}cc; ac_word=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_prog_CC+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 if test -n "$CC"; then
4720 ac_cv_prog_CC="$CC" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 ac_cv_prog_CC="${ac_tool_prefix}cc"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4733 done
4734 done
4735 IFS=$as_save_IFS
4739 CC=$ac_cv_prog_CC
4740 if test -n "$CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4742 $as_echo "$CC" >&6; }
4743 else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4751 if test -z "$CC"; then
4752 # Extract the first word of "cc", so it can be a program name with args.
4753 set dummy cc; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_CC+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4761 else
4762 ac_prog_rejected=no
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4771 ac_prog_rejected=yes
4772 continue
4774 ac_cv_prog_CC="cc"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4778 done
4779 done
4780 IFS=$as_save_IFS
4782 if test $ac_prog_rejected = yes; then
4783 # We found a bogon in the path, so make sure we never use it.
4784 set dummy $ac_cv_prog_CC
4785 shift
4786 if test $# != 0; then
4787 # We chose a different compiler from the bogus one.
4788 # However, it has the same basename, so the bogon will be chosen
4789 # first if we set CC to just the basename; use the full file name.
4790 shift
4791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4796 CC=$ac_cv_prog_CC
4797 if test -n "$CC"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4799 $as_echo "$CC" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4807 if test -z "$CC"; then
4808 if test -n "$ac_tool_prefix"; then
4809 for ac_prog in cl.exe
4811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_CC+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$CC"; then
4819 ac_cv_prog_CC="$CC" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4832 done
4833 done
4834 IFS=$as_save_IFS
4838 CC=$ac_cv_prog_CC
4839 if test -n "$CC"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4841 $as_echo "$CC" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4848 test -n "$CC" && break
4849 done
4851 if test -z "$CC"; then
4852 ac_ct_CC=$CC
4853 for ac_prog in cl.exe
4855 # Extract the first word of "$ac_prog", so it can be a program name with args.
4856 set dummy $ac_prog; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$ac_ct_CC"; then
4863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_ac_ct_CC="$ac_prog"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4876 done
4877 done
4878 IFS=$as_save_IFS
4882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4883 if test -n "$ac_ct_CC"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4885 $as_echo "$ac_ct_CC" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4892 test -n "$ac_ct_CC" && break
4893 done
4895 if test "x$ac_ct_CC" = x; then
4896 CC=""
4897 else
4898 case $cross_compiling:$ac_tool_warned in
4899 yes:)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904 CC=$ac_ct_CC
4911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4913 as_fn_error "no acceptable C compiler found in \$PATH
4914 See \`config.log' for more details." "$LINENO" 5; }
4916 # Provide some information about the compiler.
4917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4918 set X $ac_compile
4919 ac_compiler=$2
4920 for ac_option in --version -v -V -qversion; do
4921 { { ac_try="$ac_compiler $ac_option >&5"
4922 case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925 esac
4926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927 $as_echo "$ac_try_echo"; } >&5
4928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4929 ac_status=$?
4930 if test -s conftest.err; then
4931 sed '10a\
4932 ... rest of stderr output deleted ...
4933 10q' conftest.err >conftest.er1
4934 cat conftest.er1 >&5
4936 rm -f conftest.er1 conftest.err
4937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }
4939 done
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4945 main ()
4949 return 0;
4951 _ACEOF
4952 ac_clean_files_save=$ac_clean_files
4953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4954 # Try to create an executable without -o first, disregard a.out.
4955 # It will help us diagnose broken compilers, and finding out an intuition
4956 # of exeext.
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4958 $as_echo_n "checking whether the C compiler works... " >&6; }
4959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4961 # The possible output files:
4962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4964 ac_rmfiles=
4965 for ac_file in $ac_files
4967 case $ac_file in
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4970 esac
4971 done
4972 rm -f $ac_rmfiles
4974 if { { ac_try="$ac_link_default"
4975 case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978 esac
4979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980 $as_echo "$ac_try_echo"; } >&5
4981 (eval "$ac_link_default") 2>&5
4982 ac_status=$?
4983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984 test $ac_status = 0; }; then :
4985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4987 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4988 # so that the user can short-circuit this test for compilers unknown to
4989 # Autoconf.
4990 for ac_file in $ac_files ''
4992 test -f "$ac_file" || continue
4993 case $ac_file in
4994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4996 [ab].out )
4997 # We found the default executable, but exeext='' is most
4998 # certainly right.
4999 break;;
5000 *.* )
5001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5002 then :; else
5003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5005 # We set ac_cv_exeext here because the later test for it is not
5006 # safe: cross compilers may not add the suffix if given an `-o'
5007 # argument, so we may need to know it at that point already.
5008 # Even if this section looks crufty: it has the advantage of
5009 # actually working.
5010 break;;
5012 break;;
5013 esac
5014 done
5015 test "$ac_cv_exeext" = no && ac_cv_exeext=
5017 else
5018 ac_file=''
5020 if test -z "$ac_file"; then :
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 $as_echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5028 { as_fn_set_status 77
5029 as_fn_error "C compiler cannot create executables
5030 See \`config.log' for more details." "$LINENO" 5; }; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5036 $as_echo_n "checking for C compiler default output file name... " >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5038 $as_echo "$ac_file" >&6; }
5039 ac_exeext=$ac_cv_exeext
5041 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5042 ac_clean_files=$ac_clean_files_save
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5044 $as_echo_n "checking for suffix of executables... " >&6; }
5045 if { { ac_try="$ac_link"
5046 case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051 $as_echo "$ac_try_echo"; } >&5
5052 (eval "$ac_link") 2>&5
5053 ac_status=$?
5054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; }; then :
5056 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5057 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5058 # work properly (i.e., refer to `conftest.exe'), while it won't with
5059 # `rm'.
5060 for ac_file in conftest.exe conftest conftest.*; do
5061 test -f "$ac_file" || continue
5062 case $ac_file in
5063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5064 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5065 break;;
5066 * ) break;;
5067 esac
5068 done
5069 else
5070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5072 as_fn_error "cannot compute suffix of executables: cannot compile and link
5073 See \`config.log' for more details." "$LINENO" 5; }
5075 rm -f conftest conftest$ac_cv_exeext
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5077 $as_echo "$ac_cv_exeext" >&6; }
5079 rm -f conftest.$ac_ext
5080 EXEEXT=$ac_cv_exeext
5081 ac_exeext=$EXEEXT
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 #include <stdio.h>
5086 main ()
5088 FILE *f = fopen ("conftest.out", "w");
5089 return ferror (f) || fclose (f) != 0;
5092 return 0;
5094 _ACEOF
5095 ac_clean_files="$ac_clean_files conftest.out"
5096 # Check that the compiler produces executables we can run. If not, either
5097 # the compiler is broken, or we cross compile.
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5099 $as_echo_n "checking whether we are cross compiling... " >&6; }
5100 if test "$cross_compiling" != yes; then
5101 { { ac_try="$ac_link"
5102 case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105 esac
5106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5107 $as_echo "$ac_try_echo"; } >&5
5108 (eval "$ac_link") 2>&5
5109 ac_status=$?
5110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5112 if { ac_try='./conftest$ac_cv_exeext'
5113 { { case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116 esac
5117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5118 $as_echo "$ac_try_echo"; } >&5
5119 (eval "$ac_try") 2>&5
5120 ac_status=$?
5121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122 test $ac_status = 0; }; }; then
5123 cross_compiling=no
5124 else
5125 if test "$cross_compiling" = maybe; then
5126 cross_compiling=yes
5127 else
5128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5130 as_fn_error "cannot run C compiled programs.
5131 If you meant to cross compile, use \`--host'.
5132 See \`config.log' for more details." "$LINENO" 5; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5137 $as_echo "$cross_compiling" >&6; }
5139 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5140 ac_clean_files=$ac_clean_files_save
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5142 $as_echo_n "checking for suffix of object files... " >&6; }
5143 if test "${ac_cv_objext+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5150 main ()
5154 return 0;
5156 _ACEOF
5157 rm -f conftest.o conftest.obj
5158 if { { ac_try="$ac_compile"
5159 case "(($ac_try" in
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5162 esac
5163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5164 $as_echo "$ac_try_echo"; } >&5
5165 (eval "$ac_compile") 2>&5
5166 ac_status=$?
5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; }; then :
5169 for ac_file in conftest.o conftest.obj conftest.*; do
5170 test -f "$ac_file" || continue;
5171 case $ac_file in
5172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5174 break;;
5175 esac
5176 done
5177 else
5178 $as_echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5183 as_fn_error "cannot compute suffix of object files: cannot compile
5184 See \`config.log' for more details." "$LINENO" 5; }
5186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5189 $as_echo "$ac_cv_objext" >&6; }
5190 OBJEXT=$ac_cv_objext
5191 ac_objext=$OBJEXT
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5193 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5194 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5201 main ()
5203 #ifndef __GNUC__
5204 choke me
5205 #endif
5208 return 0;
5210 _ACEOF
5211 if ac_fn_c_try_compile "$LINENO"; then :
5212 ac_compiler_gnu=yes
5213 else
5214 ac_compiler_gnu=no
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5222 if test $ac_compiler_gnu = yes; then
5223 GCC=yes
5224 else
5225 GCC=
5227 ac_test_CFLAGS=${CFLAGS+set}
5228 ac_save_CFLAGS=$CFLAGS
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5231 if test "${ac_cv_prog_cc_g+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 ac_save_c_werror_flag=$ac_c_werror_flag
5235 ac_c_werror_flag=yes
5236 ac_cv_prog_cc_g=no
5237 CFLAGS="-g"
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5242 main ()
5246 return 0;
5248 _ACEOF
5249 if ac_fn_c_try_compile "$LINENO"; then :
5250 ac_cv_prog_cc_g=yes
5251 else
5252 CFLAGS=""
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5257 main ()
5261 return 0;
5263 _ACEOF
5264 if ac_fn_c_try_compile "$LINENO"; then :
5266 else
5267 ac_c_werror_flag=$ac_save_c_werror_flag
5268 CFLAGS="-g"
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5273 main ()
5277 return 0;
5279 _ACEOF
5280 if ac_fn_c_try_compile "$LINENO"; then :
5281 ac_cv_prog_cc_g=yes
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_c_werror_flag=$ac_save_c_werror_flag
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5291 $as_echo "$ac_cv_prog_cc_g" >&6; }
5292 if test "$ac_test_CFLAGS" = set; then
5293 CFLAGS=$ac_save_CFLAGS
5294 elif test $ac_cv_prog_cc_g = yes; then
5295 if test "$GCC" = yes; then
5296 CFLAGS="-g -O2"
5297 else
5298 CFLAGS="-g"
5300 else
5301 if test "$GCC" = yes; then
5302 CFLAGS="-O2"
5303 else
5304 CFLAGS=
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5308 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5309 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 ac_cv_prog_cc_c89=no
5313 ac_save_CC=$CC
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #include <stdarg.h>
5317 #include <stdio.h>
5318 #include <sys/types.h>
5319 #include <sys/stat.h>
5320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5321 struct buf { int x; };
5322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5323 static char *e (p, i)
5324 char **p;
5325 int i;
5327 return p[i];
5329 static char *f (char * (*g) (char **, int), char **p, ...)
5331 char *s;
5332 va_list v;
5333 va_start (v,p);
5334 s = g (p, va_arg (v,int));
5335 va_end (v);
5336 return s;
5339 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5340 function prototypes and stuff, but not '\xHH' hex character constants.
5341 These don't provoke an error unfortunately, instead are silently treated
5342 as 'x'. The following induces an error, until -std is added to get
5343 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5344 array size at least. It's necessary to write '\x00'==0 to get something
5345 that's true only with -std. */
5346 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5348 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5349 inside strings and character constants. */
5350 #define FOO(x) 'x'
5351 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5353 int test (int i, double x);
5354 struct s1 {int (*f) (int a);};
5355 struct s2 {int (*f) (double a);};
5356 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5357 int argc;
5358 char **argv;
5360 main ()
5362 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5364 return 0;
5366 _ACEOF
5367 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5368 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5370 CC="$ac_save_CC $ac_arg"
5371 if ac_fn_c_try_compile "$LINENO"; then :
5372 ac_cv_prog_cc_c89=$ac_arg
5374 rm -f core conftest.err conftest.$ac_objext
5375 test "x$ac_cv_prog_cc_c89" != "xno" && break
5376 done
5377 rm -f conftest.$ac_ext
5378 CC=$ac_save_CC
5381 # AC_CACHE_VAL
5382 case "x$ac_cv_prog_cc_c89" in
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5385 $as_echo "none needed" >&6; } ;;
5386 xno)
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5388 $as_echo "unsupported" >&6; } ;;
5390 CC="$CC $ac_cv_prog_cc_c89"
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5392 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5393 esac
5394 if test "x$ac_cv_prog_cc_c89" != xno; then :
5398 ac_ext=c
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403 DEPDIR="${am__leading_dot}deps"
5405 ac_config_commands="$ac_config_commands depfiles"
5408 am_make=${MAKE-make}
5409 cat > confinc << 'END'
5410 am__doit:
5411 @echo this is the am__doit target
5412 .PHONY: am__doit
5414 # If we don't find an include directive, just comment out the code.
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5416 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5417 am__include="#"
5418 am__quote=
5419 _am_result=none
5420 # First try GNU make style include.
5421 echo "include confinc" > confmf
5422 # Ignore all kinds of additional output from `make'.
5423 case `$am_make -s -f confmf 2> /dev/null` in #(
5424 *the\ am__doit\ target*)
5425 am__include=include
5426 am__quote=
5427 _am_result=GNU
5429 esac
5430 # Now try BSD make style include.
5431 if test "$am__include" = "#"; then
5432 echo '.include "confinc"' > confmf
5433 case `$am_make -s -f confmf 2> /dev/null` in #(
5434 *the\ am__doit\ target*)
5435 am__include=.include
5436 am__quote="\""
5437 _am_result=BSD
5439 esac
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5444 $as_echo "$_am_result" >&6; }
5445 rm -f confinc confmf
5447 # Check whether --enable-dependency-tracking was given.
5448 if test "${enable_dependency_tracking+set}" = set; then :
5449 enableval=$enable_dependency_tracking;
5452 if test "x$enable_dependency_tracking" != xno; then
5453 am_depcomp="$ac_aux_dir/depcomp"
5454 AMDEPBACKSLASH='\'
5456 if test "x$enable_dependency_tracking" != xno; then
5457 AMDEP_TRUE=
5458 AMDEP_FALSE='#'
5459 else
5460 AMDEP_TRUE='#'
5461 AMDEP_FALSE=
5466 depcc="$CC" am_compiler_list=
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5469 $as_echo_n "checking dependency style of $depcc... " >&6; }
5470 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5474 # We make a subdir and do the tests there. Otherwise we can end up
5475 # making bogus files that we don't know about and never remove. For
5476 # instance it was reported that on HP-UX the gcc test will end up
5477 # making a dummy file named `D' -- because `-MD' means `put the output
5478 # in D'.
5479 mkdir conftest.dir
5480 # Copy depcomp to subdir because otherwise we won't find it if we're
5481 # using a relative directory.
5482 cp "$am_depcomp" conftest.dir
5483 cd conftest.dir
5484 # We will build objects and dependencies in a subdirectory because
5485 # it helps to detect inapplicable dependency modes. For instance
5486 # both Tru64's cc and ICC support -MD to output dependencies as a
5487 # side effect of compilation, but ICC will put the dependencies in
5488 # the current directory while Tru64 will put them in the object
5489 # directory.
5490 mkdir sub
5492 am_cv_CC_dependencies_compiler_type=none
5493 if test "$am_compiler_list" = ""; then
5494 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5496 am__universal=false
5497 case " $depcc " in #(
5498 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5499 esac
5501 for depmode in $am_compiler_list; do
5502 # Setup a source with many dependencies, because some compilers
5503 # like to wrap large dependency lists on column 80 (with \), and
5504 # we should not choose a depcomp mode which is confused by this.
5506 # We need to recreate these files for each test, as the compiler may
5507 # overwrite some of them when testing with obscure command lines.
5508 # This happens at least with the AIX C compiler.
5509 : > sub/conftest.c
5510 for i in 1 2 3 4 5 6; do
5511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5512 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5513 # Solaris 8's {/usr,}/bin/sh.
5514 touch sub/conftst$i.h
5515 done
5516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5518 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5519 # mode. It turns out that the SunPro C++ compiler does not properly
5520 # handle `-M -o', and we need to detect this. Also, some Intel
5521 # versions had trouble with output in subdirs
5522 am__obj=sub/conftest.${OBJEXT-o}
5523 am__minus_obj="-o $am__obj"
5524 case $depmode in
5525 gcc)
5526 # This depmode causes a compiler race in universal mode.
5527 test "$am__universal" = false || continue
5529 nosideeffect)
5530 # after this tag, mechanisms are not by side-effect, so they'll
5531 # only be used when explicitly requested
5532 if test "x$enable_dependency_tracking" = xyes; then
5533 continue
5534 else
5535 break
5538 msvisualcpp | msvcmsys)
5539 # This compiler won't grok `-c -o', but also, the minuso test has
5540 # not run yet. These depmodes are late enough in the game, and
5541 # so weak that their functioning should not be impacted.
5542 am__obj=conftest.${OBJEXT-o}
5543 am__minus_obj=
5545 none) break ;;
5546 esac
5547 if depmode=$depmode \
5548 source=sub/conftest.c object=$am__obj \
5549 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5550 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5551 >/dev/null 2>conftest.err &&
5552 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5553 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5554 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5555 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5556 # icc doesn't choke on unknown options, it will just issue warnings
5557 # or remarks (even with -Werror). So we grep stderr for any message
5558 # that says an option was ignored or not supported.
5559 # When given -MP, icc 7.0 and 7.1 complain thusly:
5560 # icc: Command line warning: ignoring option '-M'; no argument required
5561 # The diagnosis changed in icc 8.0:
5562 # icc: Command line remark: option '-MP' not supported
5563 if (grep 'ignoring option' conftest.err ||
5564 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5565 am_cv_CC_dependencies_compiler_type=$depmode
5566 break
5569 done
5571 cd ..
5572 rm -rf conftest.dir
5573 else
5574 am_cv_CC_dependencies_compiler_type=none
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5579 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5580 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5583 test "x$enable_dependency_tracking" != xno \
5584 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5585 am__fastdepCC_TRUE=
5586 am__fastdepCC_FALSE='#'
5587 else
5588 am__fastdepCC_TRUE='#'
5589 am__fastdepCC_FALSE=
5593 if test "x$CC" != xcc; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5595 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5596 else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5598 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5600 set dummy $CC; ac_cc=`$as_echo "$2" |
5601 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5602 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5609 main ()
5613 return 0;
5615 _ACEOF
5616 # Make sure it works both with $CC and with simple cc.
5617 # We do the test twice because some compilers refuse to overwrite an
5618 # existing .o file with -o, though they will create one.
5619 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5620 rm -f conftest2.*
5621 if { { case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624 esac
5625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5626 $as_echo "$ac_try_echo"; } >&5
5627 (eval "$ac_try") 2>&5
5628 ac_status=$?
5629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630 test $ac_status = 0; } &&
5631 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634 esac
5635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5636 $as_echo "$ac_try_echo"; } >&5
5637 (eval "$ac_try") 2>&5
5638 ac_status=$?
5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5640 test $ac_status = 0; };
5641 then
5642 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5643 if test "x$CC" != xcc; then
5644 # Test first that cc exists at all.
5645 if { ac_try='cc -c conftest.$ac_ext >&5'
5646 { { case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5651 $as_echo "$ac_try_echo"; } >&5
5652 (eval "$ac_try") 2>&5
5653 ac_status=$?
5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5655 test $ac_status = 0; }; }; then
5656 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5657 rm -f conftest2.*
5658 if { { case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5663 $as_echo "$ac_try_echo"; } >&5
5664 (eval "$ac_try") 2>&5
5665 ac_status=$?
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; } &&
5668 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671 esac
5672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5673 $as_echo "$ac_try_echo"; } >&5
5674 (eval "$ac_try") 2>&5
5675 ac_status=$?
5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677 test $ac_status = 0; };
5678 then
5679 # cc works too.
5681 else
5682 # cc exists but doesn't like -o.
5683 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5687 else
5688 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5690 rm -f core conftest*
5693 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695 $as_echo "yes" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5700 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5704 # FIXME: we rely on the cache variable name because
5705 # there is no other way.
5706 set dummy $CC
5707 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5708 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5709 if test "$am_t" != yes; then
5710 # Losing compiler, so override with the script.
5711 # FIXME: It is wrong to rewrite CC.
5712 # But if we don't then we get into trouble of one sort or another.
5713 # A longer-term fix would be to have automake use am__CC in this case,
5714 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5715 CC="$am_aux_dir/compile $CC"
5720 # Initialize gnulib right after verifying that the C compiler works.
5722 ac_ext=c
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5728 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5729 # On Suns, sometimes $CPP names a directory.
5730 if test -n "$CPP" && test -d "$CPP"; then
5731 CPP=
5733 if test -z "$CPP"; then
5734 if test "${ac_cv_prog_CPP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 # Double quotes because CPP needs to be expanded
5738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5740 ac_preproc_ok=false
5741 for ac_c_preproc_warn_flag in '' yes
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #ifdef __STDC__
5752 # include <limits.h>
5753 #else
5754 # include <assert.h>
5755 #endif
5756 Syntax error
5757 _ACEOF
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5760 else
5761 # Broken: fails on valid input.
5762 continue
5764 rm -f conftest.err conftest.$ac_ext
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <ac_nonexistent.h>
5771 _ACEOF
5772 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: success on invalid input.
5774 continue
5775 else
5776 # Passes both tests.
5777 ac_preproc_ok=:
5778 break
5780 rm -f conftest.err conftest.$ac_ext
5782 done
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.err conftest.$ac_ext
5785 if $ac_preproc_ok; then :
5786 break
5789 done
5790 ac_cv_prog_CPP=$CPP
5793 CPP=$ac_cv_prog_CPP
5794 else
5795 ac_cv_prog_CPP=$CPP
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5798 $as_echo "$CPP" >&6; }
5799 ac_preproc_ok=false
5800 for ac_c_preproc_warn_flag in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #ifdef __STDC__
5811 # include <limits.h>
5812 #else
5813 # include <assert.h>
5814 #endif
5815 Syntax error
5816 _ACEOF
5817 if ac_fn_c_try_cpp "$LINENO"; then :
5819 else
5820 # Broken: fails on valid input.
5821 continue
5823 rm -f conftest.err conftest.$ac_ext
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <ac_nonexistent.h>
5830 _ACEOF
5831 if ac_fn_c_try_cpp "$LINENO"; then :
5832 # Broken: success on invalid input.
5833 continue
5834 else
5835 # Passes both tests.
5836 ac_preproc_ok=:
5837 break
5839 rm -f conftest.err conftest.$ac_ext
5841 done
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok; then :
5846 else
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5850 See \`config.log' for more details." "$LINENO" 5; }
5853 ac_ext=c
5854 ac_cpp='$CPP $CPPFLAGS'
5855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5861 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5862 if test "${ac_cv_path_GREP+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -z "$GREP"; then
5866 ac_path_GREP_found=false
5867 # Loop through the user's path and test for each of PROGNAME-LIST
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_prog in grep ggrep; do
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5876 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5877 # Check for GNU ac_path_GREP and select it if it is found.
5878 # Check for GNU $ac_path_GREP
5879 case `"$ac_path_GREP" --version 2>&1` in
5880 *GNU*)
5881 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5883 ac_count=0
5884 $as_echo_n 0123456789 >"conftest.in"
5885 while :
5887 cat "conftest.in" "conftest.in" >"conftest.tmp"
5888 mv "conftest.tmp" "conftest.in"
5889 cp "conftest.in" "conftest.nl"
5890 $as_echo 'GREP' >> "conftest.nl"
5891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5893 as_fn_arith $ac_count + 1 && ac_count=$as_val
5894 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5895 # Best one so far, save it but keep looking for a better one
5896 ac_cv_path_GREP="$ac_path_GREP"
5897 ac_path_GREP_max=$ac_count
5899 # 10*(2^10) chars as input seems more than enough
5900 test $ac_count -gt 10 && break
5901 done
5902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5903 esac
5905 $ac_path_GREP_found && break 3
5906 done
5907 done
5908 done
5909 IFS=$as_save_IFS
5910 if test -z "$ac_cv_path_GREP"; then
5911 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5913 else
5914 ac_cv_path_GREP=$GREP
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5919 $as_echo "$ac_cv_path_GREP" >&6; }
5920 GREP="$ac_cv_path_GREP"
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5924 $as_echo_n "checking for egrep... " >&6; }
5925 if test "${ac_cv_path_EGREP+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5929 then ac_cv_path_EGREP="$GREP -E"
5930 else
5931 if test -z "$EGREP"; then
5932 ac_path_EGREP_found=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_prog in egrep; do
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5942 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5943 # Check for GNU ac_path_EGREP and select it if it is found.
5944 # Check for GNU $ac_path_EGREP
5945 case `"$ac_path_EGREP" --version 2>&1` in
5946 *GNU*)
5947 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5949 ac_count=0
5950 $as_echo_n 0123456789 >"conftest.in"
5951 while :
5953 cat "conftest.in" "conftest.in" >"conftest.tmp"
5954 mv "conftest.tmp" "conftest.in"
5955 cp "conftest.in" "conftest.nl"
5956 $as_echo 'EGREP' >> "conftest.nl"
5957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5959 as_fn_arith $ac_count + 1 && ac_count=$as_val
5960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5961 # Best one so far, save it but keep looking for a better one
5962 ac_cv_path_EGREP="$ac_path_EGREP"
5963 ac_path_EGREP_max=$ac_count
5965 # 10*(2^10) chars as input seems more than enough
5966 test $ac_count -gt 10 && break
5967 done
5968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5969 esac
5971 $ac_path_EGREP_found && break 3
5972 done
5973 done
5974 done
5975 IFS=$as_save_IFS
5976 if test -z "$ac_cv_path_EGREP"; then
5977 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5979 else
5980 ac_cv_path_EGREP=$EGREP
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5986 $as_echo "$ac_cv_path_EGREP" >&6; }
5987 EGREP="$ac_cv_path_EGREP"
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5993 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5994 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6001 #ifdef __ACK__
6002 Amsterdam
6003 #endif
6005 _ACEOF
6006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6007 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6008 gl_cv_c_amsterdam_compiler=yes
6009 else
6010 gl_cv_c_amsterdam_compiler=no
6012 rm -f conftest*
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6017 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6018 if test -z "$AR"; then
6019 if test $gl_cv_c_amsterdam_compiler = yes; then
6020 AR='cc -c.a'
6021 if test -z "$ARFLAGS"; then
6022 ARFLAGS='-o'
6024 else
6025 if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}ar; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if test "${ac_cv_prog_AR+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 if test -n "$AR"; then
6034 ac_cv_prog_AR="$AR" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_AR="${ac_tool_prefix}ar"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6047 done
6048 done
6049 IFS=$as_save_IFS
6053 AR=$ac_cv_prog_AR
6054 if test -n "$AR"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6056 $as_echo "$AR" >&6; }
6057 else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6064 if test -z "$ac_cv_prog_AR"; then
6065 ac_ct_AR=$AR
6066 # Extract the first word of "ar", so it can be a program name with args.
6067 set dummy ar; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if test -n "$ac_ct_AR"; then
6074 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6083 ac_cv_prog_ac_ct_AR="ar"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6087 done
6088 done
6089 IFS=$as_save_IFS
6093 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6094 if test -n "$ac_ct_AR"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6096 $as_echo "$ac_ct_AR" >&6; }
6097 else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6102 if test "x$ac_ct_AR" = x; then
6103 AR="ar"
6104 else
6105 case $cross_compiling:$ac_tool_warned in
6106 yes:)
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned=yes ;;
6110 esac
6111 AR=$ac_ct_AR
6113 else
6114 AR="$ac_cv_prog_AR"
6117 if test -z "$ARFLAGS"; then
6118 ARFLAGS='cru'
6121 else
6122 if test -z "$ARFLAGS"; then
6123 ARFLAGS='cru'
6128 if test -z "$RANLIB"; then
6129 if test $gl_cv_c_amsterdam_compiler = yes; then
6130 RANLIB=':'
6131 else
6132 if test -n "$ac_tool_prefix"; then
6133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
6139 else
6140 if test -n "$RANLIB"; then
6141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6154 done
6155 done
6156 IFS=$as_save_IFS
6160 RANLIB=$ac_cv_prog_RANLIB
6161 if test -n "$RANLIB"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6163 $as_echo "$RANLIB" >&6; }
6164 else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6171 if test -z "$ac_cv_prog_RANLIB"; then
6172 ac_ct_RANLIB=$RANLIB
6173 # Extract the first word of "ranlib", so it can be a program name with args.
6174 set dummy ranlib; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 if test -n "$ac_ct_RANLIB"; then
6181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6190 ac_cv_prog_ac_ct_RANLIB="ranlib"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6194 done
6195 done
6196 IFS=$as_save_IFS
6200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6201 if test -n "$ac_ct_RANLIB"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6203 $as_echo "$ac_ct_RANLIB" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6209 if test "x$ac_ct_RANLIB" = x; then
6210 RANLIB=":"
6211 else
6212 case $cross_compiling:$ac_tool_warned in
6213 yes:)
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216 ac_tool_warned=yes ;;
6217 esac
6218 RANLIB=$ac_ct_RANLIB
6220 else
6221 RANLIB="$ac_cv_prog_RANLIB"
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6229 $as_echo_n "checking for ANSI C header files... " >&6; }
6230 if test "${ac_cv_header_stdc+set}" = set; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235 #include <stdlib.h>
6236 #include <stdarg.h>
6237 #include <string.h>
6238 #include <float.h>
6241 main ()
6245 return 0;
6247 _ACEOF
6248 if ac_fn_c_try_compile "$LINENO"; then :
6249 ac_cv_header_stdc=yes
6250 else
6251 ac_cv_header_stdc=no
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 if test $ac_cv_header_stdc = yes; then
6256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6259 #include <string.h>
6261 _ACEOF
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 $EGREP "memchr" >/dev/null 2>&1; then :
6265 else
6266 ac_cv_header_stdc=no
6268 rm -f conftest*
6272 if test $ac_cv_header_stdc = yes; then
6273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 #include <stdlib.h>
6278 _ACEOF
6279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280 $EGREP "free" >/dev/null 2>&1; then :
6282 else
6283 ac_cv_header_stdc=no
6285 rm -f conftest*
6289 if test $ac_cv_header_stdc = yes; then
6290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6291 if test "$cross_compiling" = yes; then :
6293 else
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6296 #include <ctype.h>
6297 #include <stdlib.h>
6298 #if ((' ' & 0x0FF) == 0x020)
6299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6301 #else
6302 # define ISLOWER(c) \
6303 (('a' <= (c) && (c) <= 'i') \
6304 || ('j' <= (c) && (c) <= 'r') \
6305 || ('s' <= (c) && (c) <= 'z'))
6306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6307 #endif
6309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6311 main ()
6313 int i;
6314 for (i = 0; i < 256; i++)
6315 if (XOR (islower (i), ISLOWER (i))
6316 || toupper (i) != TOUPPER (i))
6317 return 2;
6318 return 0;
6320 _ACEOF
6321 if ac_fn_c_try_run "$LINENO"; then :
6323 else
6324 ac_cv_header_stdc=no
6326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6327 conftest.$ac_objext conftest.beam conftest.$ac_ext
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6333 $as_echo "$ac_cv_header_stdc" >&6; }
6334 if test $ac_cv_header_stdc = yes; then
6336 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6341 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6342 inttypes.h stdint.h unistd.h
6343 do :
6344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6345 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6347 eval as_val=\$$as_ac_Header
6348 if test "x$as_val" = x""yes; then :
6349 cat >>confdefs.h <<_ACEOF
6350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6351 _ACEOF
6355 done
6361 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6362 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6363 MINIX=yes
6364 else
6365 MINIX=
6369 if test "$MINIX" = yes; then
6371 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6374 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6377 $as_echo "#define _MINIX 1" >>confdefs.h
6381 case "$host_os" in
6382 hpux*)
6384 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6387 esac
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6391 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6392 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6398 # define __EXTENSIONS__ 1
6399 $ac_includes_default
6401 main ()
6405 return 0;
6407 _ACEOF
6408 if ac_fn_c_try_compile "$LINENO"; then :
6409 ac_cv_safe_to_define___extensions__=yes
6410 else
6411 ac_cv_safe_to_define___extensions__=no
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6416 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6417 test $ac_cv_safe_to_define___extensions__ = yes &&
6418 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6420 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6422 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6424 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6426 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6428 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6437 # Check whether --enable-largefile was given.
6438 if test "${enable_largefile+set}" = set; then :
6439 enableval=$enable_largefile;
6442 if test "$enable_largefile" != no; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6445 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6446 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 ac_cv_sys_largefile_CC=no
6450 if test "$GCC" != yes; then
6451 ac_save_CC=$CC
6452 while :; do
6453 # IRIX 6.2 and later do not support large files by default,
6454 # so use the C compiler's -n32 option if that helps.
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457 #include <sys/types.h>
6458 /* Check that off_t can represent 2**63 - 1 correctly.
6459 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6460 since some C++ compilers masquerading as C compilers
6461 incorrectly reject 9223372036854775807. */
6462 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6464 && LARGE_OFF_T % 2147483647 == 1)
6465 ? 1 : -1];
6467 main ()
6471 return 0;
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 break
6477 rm -f core conftest.err conftest.$ac_objext
6478 CC="$CC -n32"
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 ac_cv_sys_largefile_CC=' -n32'; break
6482 rm -f core conftest.err conftest.$ac_objext
6483 break
6484 done
6485 CC=$ac_save_CC
6486 rm -f conftest.$ac_ext
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6490 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6491 if test "$ac_cv_sys_largefile_CC" != no; then
6492 CC=$CC$ac_cv_sys_largefile_CC
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6496 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6497 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 while :; do
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #include <sys/types.h>
6504 /* Check that off_t can represent 2**63 - 1 correctly.
6505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6506 since some C++ compilers masquerading as C compilers
6507 incorrectly reject 9223372036854775807. */
6508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6510 && LARGE_OFF_T % 2147483647 == 1)
6511 ? 1 : -1];
6513 main ()
6517 return 0;
6519 _ACEOF
6520 if ac_fn_c_try_compile "$LINENO"; then :
6521 ac_cv_sys_file_offset_bits=no; break
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 #define _FILE_OFFSET_BITS 64
6527 #include <sys/types.h>
6528 /* Check that off_t can represent 2**63 - 1 correctly.
6529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6530 since some C++ compilers masquerading as C compilers
6531 incorrectly reject 9223372036854775807. */
6532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6534 && LARGE_OFF_T % 2147483647 == 1)
6535 ? 1 : -1];
6537 main ()
6541 return 0;
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 ac_cv_sys_file_offset_bits=64; break
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 ac_cv_sys_file_offset_bits=unknown
6549 break
6550 done
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6553 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6554 case $ac_cv_sys_file_offset_bits in #(
6555 no | unknown) ;;
6557 cat >>confdefs.h <<_ACEOF
6558 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6559 _ACEOF
6561 esac
6562 rm -rf conftest*
6563 if test $ac_cv_sys_file_offset_bits = unknown; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6565 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6566 if test "${ac_cv_sys_large_files+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 while :; do
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 #include <sys/types.h>
6573 /* Check that off_t can represent 2**63 - 1 correctly.
6574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6575 since some C++ compilers masquerading as C compilers
6576 incorrectly reject 9223372036854775807. */
6577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6579 && LARGE_OFF_T % 2147483647 == 1)
6580 ? 1 : -1];
6582 main ()
6586 return 0;
6588 _ACEOF
6589 if ac_fn_c_try_compile "$LINENO"; then :
6590 ac_cv_sys_large_files=no; break
6592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 #define _LARGE_FILES 1
6596 #include <sys/types.h>
6597 /* Check that off_t can represent 2**63 - 1 correctly.
6598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6599 since some C++ compilers masquerading as C compilers
6600 incorrectly reject 9223372036854775807. */
6601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6603 && LARGE_OFF_T % 2147483647 == 1)
6604 ? 1 : -1];
6606 main ()
6610 return 0;
6612 _ACEOF
6613 if ac_fn_c_try_compile "$LINENO"; then :
6614 ac_cv_sys_large_files=1; break
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 ac_cv_sys_large_files=unknown
6618 break
6619 done
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6622 $as_echo "$ac_cv_sys_large_files" >&6; }
6623 case $ac_cv_sys_large_files in #(
6624 no | unknown) ;;
6626 cat >>confdefs.h <<_ACEOF
6627 #define _LARGE_FILES $ac_cv_sys_large_files
6628 _ACEOF
6630 esac
6631 rm -rf conftest*
6637 case $ac_cv_prog_cc_stdc in #(
6638 no) :
6639 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6640 *) :
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6642 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6643 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 ac_cv_prog_cc_c99=no
6647 ac_save_CC=$CC
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 #include <stdarg.h>
6651 #include <stdbool.h>
6652 #include <stdlib.h>
6653 #include <wchar.h>
6654 #include <stdio.h>
6656 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6657 #define debug(...) fprintf (stderr, __VA_ARGS__)
6658 #define showlist(...) puts (#__VA_ARGS__)
6659 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6660 static void
6661 test_varargs_macros (void)
6663 int x = 1234;
6664 int y = 5678;
6665 debug ("Flag");
6666 debug ("X = %d\n", x);
6667 showlist (The first, second, and third items.);
6668 report (x>y, "x is %d but y is %d", x, y);
6671 // Check long long types.
6672 #define BIG64 18446744073709551615ull
6673 #define BIG32 4294967295ul
6674 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6675 #if !BIG_OK
6676 your preprocessor is broken;
6677 #endif
6678 #if BIG_OK
6679 #else
6680 your preprocessor is broken;
6681 #endif
6682 static long long int bignum = -9223372036854775807LL;
6683 static unsigned long long int ubignum = BIG64;
6685 struct incomplete_array
6687 int datasize;
6688 double data[];
6691 struct named_init {
6692 int number;
6693 const wchar_t *name;
6694 double average;
6697 typedef const char *ccp;
6699 static inline int
6700 test_restrict (ccp restrict text)
6702 // See if C++-style comments work.
6703 // Iterate through items via the restricted pointer.
6704 // Also check for declarations in for loops.
6705 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6706 continue;
6707 return 0;
6710 // Check varargs and va_copy.
6711 static void
6712 test_varargs (const char *format, ...)
6714 va_list args;
6715 va_start (args, format);
6716 va_list args_copy;
6717 va_copy (args_copy, args);
6719 const char *str;
6720 int number;
6721 float fnumber;
6723 while (*format)
6725 switch (*format++)
6727 case 's': // string
6728 str = va_arg (args_copy, const char *);
6729 break;
6730 case 'd': // int
6731 number = va_arg (args_copy, int);
6732 break;
6733 case 'f': // float
6734 fnumber = va_arg (args_copy, double);
6735 break;
6736 default:
6737 break;
6740 va_end (args_copy);
6741 va_end (args);
6745 main ()
6748 // Check bool.
6749 _Bool success = false;
6751 // Check restrict.
6752 if (test_restrict ("String literal") == 0)
6753 success = true;
6754 char *restrict newvar = "Another string";
6756 // Check varargs.
6757 test_varargs ("s, d' f .", "string", 65, 34.234);
6758 test_varargs_macros ();
6760 // Check flexible array members.
6761 struct incomplete_array *ia =
6762 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6763 ia->datasize = 10;
6764 for (int i = 0; i < ia->datasize; ++i)
6765 ia->data[i] = i * 1.234;
6767 // Check named initializers.
6768 struct named_init ni = {
6769 .number = 34,
6770 .name = L"Test wide string",
6771 .average = 543.34343,
6774 ni.number = 58;
6776 int dynamic_array[ni.number];
6777 dynamic_array[ni.number - 1] = 543;
6779 // work around unused variable warnings
6780 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6781 || dynamic_array[ni.number - 1] != 543);
6784 return 0;
6786 _ACEOF
6787 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6789 CC="$ac_save_CC $ac_arg"
6790 if ac_fn_c_try_compile "$LINENO"; then :
6791 ac_cv_prog_cc_c99=$ac_arg
6793 rm -f core conftest.err conftest.$ac_objext
6794 test "x$ac_cv_prog_cc_c99" != "xno" && break
6795 done
6796 rm -f conftest.$ac_ext
6797 CC=$ac_save_CC
6800 # AC_CACHE_VAL
6801 case "x$ac_cv_prog_cc_c99" in
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6804 $as_echo "none needed" >&6; } ;;
6805 xno)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6807 $as_echo "unsupported" >&6; } ;;
6809 CC="$CC $ac_cv_prog_cc_c99"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6811 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6812 esac
6813 if test "x$ac_cv_prog_cc_c99" != xno; then :
6814 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6815 else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6817 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6818 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 ac_cv_prog_cc_c89=no
6822 ac_save_CC=$CC
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <stdarg.h>
6826 #include <stdio.h>
6827 #include <sys/types.h>
6828 #include <sys/stat.h>
6829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6830 struct buf { int x; };
6831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6832 static char *e (p, i)
6833 char **p;
6834 int i;
6836 return p[i];
6838 static char *f (char * (*g) (char **, int), char **p, ...)
6840 char *s;
6841 va_list v;
6842 va_start (v,p);
6843 s = g (p, va_arg (v,int));
6844 va_end (v);
6845 return s;
6848 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6849 function prototypes and stuff, but not '\xHH' hex character constants.
6850 These don't provoke an error unfortunately, instead are silently treated
6851 as 'x'. The following induces an error, until -std is added to get
6852 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6853 array size at least. It's necessary to write '\x00'==0 to get something
6854 that's true only with -std. */
6855 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6857 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6858 inside strings and character constants. */
6859 #define FOO(x) 'x'
6860 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6862 int test (int i, double x);
6863 struct s1 {int (*f) (int a);};
6864 struct s2 {int (*f) (double a);};
6865 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6866 int argc;
6867 char **argv;
6869 main ()
6871 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6873 return 0;
6875 _ACEOF
6876 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6877 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6879 CC="$ac_save_CC $ac_arg"
6880 if ac_fn_c_try_compile "$LINENO"; then :
6881 ac_cv_prog_cc_c89=$ac_arg
6883 rm -f core conftest.err conftest.$ac_objext
6884 test "x$ac_cv_prog_cc_c89" != "xno" && break
6885 done
6886 rm -f conftest.$ac_ext
6887 CC=$ac_save_CC
6890 # AC_CACHE_VAL
6891 case "x$ac_cv_prog_cc_c89" in
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6894 $as_echo "none needed" >&6; } ;;
6895 xno)
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6897 $as_echo "unsupported" >&6; } ;;
6899 CC="$CC $ac_cv_prog_cc_c89"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6901 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6902 esac
6903 if test "x$ac_cv_prog_cc_c89" != xno; then :
6904 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6905 else
6906 ac_cv_prog_cc_stdc=no
6911 esac
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6913 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6914 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6918 case $ac_cv_prog_cc_stdc in #(
6919 no) :
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6921 $as_echo "unsupported" >&6; } ;; #(
6922 '') :
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6924 $as_echo "none needed" >&6; } ;; #(
6925 *) :
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6927 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6928 esac
6932 # Code from module alloca-opt:
6933 # Code from module allocator:
6934 # Code from module careadlinkat:
6935 # Code from module crypto/md5:
6936 # Code from module crypto/sha1:
6937 # Code from module crypto/sha256:
6938 # Code from module crypto/sha512:
6939 # Code from module dosname:
6940 # Code from module dtoastr:
6941 # Code from module dup2:
6942 # Code from module extensions:
6944 # Code from module filemode:
6945 # Code from module getloadavg:
6946 # Code from module getopt-gnu:
6947 # Code from module getopt-posix:
6948 # Code from module gettext-h:
6949 # Code from module ignore-value:
6950 # Code from module include_next:
6951 # Code from module intprops:
6952 # Code from module inttypes-incomplete:
6953 # Code from module largefile:
6955 # Code from module lstat:
6956 # Code from module mktime:
6957 # Code from module multiarch:
6958 # Code from module nocrash:
6959 # Code from module pthread_sigmask:
6960 # Code from module readlink:
6961 # Code from module signal-h:
6962 # Code from module sigprocmask:
6963 # Code from module snippet/_Noreturn:
6964 # Code from module snippet/arg-nonnull:
6965 # Code from module snippet/c++defs:
6966 # Code from module snippet/warn-on-use:
6967 # Code from module socklen:
6968 # Code from module ssize_t:
6969 # Code from module stat:
6970 # Code from module stdarg:
6974 # Code from module stdbool:
6975 # Code from module stddef:
6976 # Code from module stdint:
6977 # Code from module stdio:
6978 # Code from module stdlib:
6979 # Code from module strftime:
6980 # Code from module strtoimax:
6981 # Code from module strtoll:
6982 # Code from module strtoull:
6983 # Code from module strtoumax:
6984 # Code from module symlink:
6985 # Code from module sys_stat:
6986 # Code from module time:
6987 # Code from module time_r:
6988 # Code from module u64:
6989 # Code from module unistd:
6990 # Code from module verify:
6993 # On Suns, sometimes $CPP names a directory.
6994 if test -n "$CPP" && test -d "$CPP"; then
6995 CPP=
6998 ## If not using gcc, and on Solaris, and no CPP specified, see if
6999 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7000 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7001 test x"$CPP" = x; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7003 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7004 if test "${emacs_cv_sunpro_c+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7011 main ()
7013 #ifndef __SUNPRO_C
7014 fail;
7015 #endif
7018 return 0;
7020 _ACEOF
7021 if ac_fn_c_try_link "$LINENO"; then :
7022 emacs_cv_sunpro_c=yes
7023 else
7024 emacs_cv_sunpro_c=no
7026 rm -f core conftest.err conftest.$ac_objext \
7027 conftest$ac_exeext conftest.$ac_ext
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7031 $as_echo "$emacs_cv_sunpro_c" >&6; }
7033 if test x"$emacs_cv_sunpro_c" = xyes; then
7034 NON_GNU_CPP="$CC -E -Xs"
7038 #### Some systems specify a CPP to use unless we are using GCC.
7039 #### Now that we know whether we are using GCC, we can decide whether
7040 #### to use that one.
7041 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7042 then
7043 CPP="$NON_GNU_CPP"
7046 #### Some systems specify a CC to use unless we are using GCC.
7047 #### Now that we know whether we are using GCC, we can decide whether
7048 #### to use that one.
7049 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7050 test x$cc_specified != xyes
7051 then
7052 CC="$NON_GNU_CC"
7055 if test x$GCC = xyes; then
7056 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7057 else
7058 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7061 ### Use -Wdeclaration-after-statement if the compiler supports it
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7063 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7064 SAVE_CFLAGS="$CFLAGS"
7065 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7070 main ()
7074 return 0;
7076 _ACEOF
7077 if ac_fn_c_try_compile "$LINENO"; then :
7078 has_option=yes
7079 else
7080 has_option=no
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 if test $has_option = yes; then
7084 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7087 $as_echo "$has_option" >&6; }
7088 CFLAGS="$SAVE_CFLAGS"
7089 unset has_option
7090 unset SAVE_CFLAGS
7092 ### Use -Wold-style-definition if the compiler supports it
7093 # This can be removed when conversion to standard C is finished.
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7095 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7096 SAVE_CFLAGS="$CFLAGS"
7097 CFLAGS="$CFLAGS -Wold-style-definition"
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7102 main ()
7106 return 0;
7108 _ACEOF
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110 has_option=yes
7111 else
7112 has_option=no
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 if test $has_option = yes; then
7116 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7119 $as_echo "$has_option" >&6; }
7120 CFLAGS="$SAVE_CFLAGS"
7121 unset has_option
7122 unset SAVE_CFLAGS
7124 ### Use -Wimplicit-function-declaration if the compiler supports it
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7126 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7127 SAVE_CFLAGS="$CFLAGS"
7128 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7133 main ()
7137 return 0;
7139 _ACEOF
7140 if ac_fn_c_try_compile "$LINENO"; then :
7141 has_option=yes
7142 else
7143 has_option=no
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 if test $has_option = yes; then
7147 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7150 $as_echo "$has_option" >&6; }
7151 CFLAGS="$SAVE_CFLAGS"
7152 unset has_option
7153 unset SAVE_CFLAGS
7158 #### Some other nice autoconf tests.
7160 ac_ext=c
7161 ac_cpp='$CPP $CPPFLAGS'
7162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7166 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7167 # On Suns, sometimes $CPP names a directory.
7168 if test -n "$CPP" && test -d "$CPP"; then
7169 CPP=
7171 if test -z "$CPP"; then
7172 if test "${ac_cv_prog_CPP+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 # Double quotes because CPP needs to be expanded
7176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7178 ac_preproc_ok=false
7179 for ac_c_preproc_warn_flag in '' yes
7181 # Use a header file that comes with gcc, so configuring glibc
7182 # with a fresh cross-compiler works.
7183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7184 # <limits.h> exists even on freestanding compilers.
7185 # On the NeXT, cc -E runs the code through the compiler's parser,
7186 # not just through cpp. "Syntax error" is here to catch this case.
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 #ifdef __STDC__
7190 # include <limits.h>
7191 #else
7192 # include <assert.h>
7193 #endif
7194 Syntax error
7195 _ACEOF
7196 if ac_fn_c_try_cpp "$LINENO"; then :
7198 else
7199 # Broken: fails on valid input.
7200 continue
7202 rm -f conftest.err conftest.$ac_ext
7204 # OK, works on sane cases. Now check whether nonexistent headers
7205 # can be detected and how.
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208 #include <ac_nonexistent.h>
7209 _ACEOF
7210 if ac_fn_c_try_cpp "$LINENO"; then :
7211 # Broken: success on invalid input.
7212 continue
7213 else
7214 # Passes both tests.
7215 ac_preproc_ok=:
7216 break
7218 rm -f conftest.err conftest.$ac_ext
7220 done
7221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7222 rm -f conftest.err conftest.$ac_ext
7223 if $ac_preproc_ok; then :
7224 break
7227 done
7228 ac_cv_prog_CPP=$CPP
7231 CPP=$ac_cv_prog_CPP
7232 else
7233 ac_cv_prog_CPP=$CPP
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7236 $as_echo "$CPP" >&6; }
7237 ac_preproc_ok=false
7238 for ac_c_preproc_warn_flag in '' yes
7240 # Use a header file that comes with gcc, so configuring glibc
7241 # with a fresh cross-compiler works.
7242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7243 # <limits.h> exists even on freestanding compilers.
7244 # On the NeXT, cc -E runs the code through the compiler's parser,
7245 # not just through cpp. "Syntax error" is here to catch this case.
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 #ifdef __STDC__
7249 # include <limits.h>
7250 #else
7251 # include <assert.h>
7252 #endif
7253 Syntax error
7254 _ACEOF
7255 if ac_fn_c_try_cpp "$LINENO"; then :
7257 else
7258 # Broken: fails on valid input.
7259 continue
7261 rm -f conftest.err conftest.$ac_ext
7263 # OK, works on sane cases. Now check whether nonexistent headers
7264 # can be detected and how.
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 #include <ac_nonexistent.h>
7268 _ACEOF
7269 if ac_fn_c_try_cpp "$LINENO"; then :
7270 # Broken: success on invalid input.
7271 continue
7272 else
7273 # Passes both tests.
7274 ac_preproc_ok=:
7275 break
7277 rm -f conftest.err conftest.$ac_ext
7279 done
7280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7281 rm -f conftest.err conftest.$ac_ext
7282 if $ac_preproc_ok; then :
7284 else
7285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7287 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7288 See \`config.log' for more details." "$LINENO" 5; }
7291 ac_ext=c
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7298 if test "x$RANLIB" = x; then
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$RANLIB"; then
7308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7321 done
7322 done
7323 IFS=$as_save_IFS
7327 RANLIB=$ac_cv_prog_RANLIB
7328 if test -n "$RANLIB"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7330 $as_echo "$RANLIB" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7338 if test -z "$ac_cv_prog_RANLIB"; then
7339 ac_ct_RANLIB=$RANLIB
7340 # Extract the first word of "ranlib", so it can be a program name with args.
7341 set dummy ranlib; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 if test -n "$ac_ct_RANLIB"; then
7348 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_ac_ct_RANLIB="ranlib"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7361 done
7362 done
7363 IFS=$as_save_IFS
7367 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7368 if test -n "$ac_ct_RANLIB"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7370 $as_echo "$ac_ct_RANLIB" >&6; }
7371 else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7376 if test "x$ac_ct_RANLIB" = x; then
7377 RANLIB=":"
7378 else
7379 case $cross_compiling:$ac_tool_warned in
7380 yes:)
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7384 esac
7385 RANLIB=$ac_ct_RANLIB
7387 else
7388 RANLIB="$ac_cv_prog_RANLIB"
7393 ## Although we're running on an amd64 kernel, we're actually compiling for
7394 ## the x86 architecture. The user should probably have provided an
7395 ## explicit --build to `configure', but if everything else than the kernel
7396 ## is running in i386 mode, we can help them out.
7397 if test "$machine" = "amdx86-64"; then
7398 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7399 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7403 if test "$ac_cv_have_decl_i386" = "yes"; then
7404 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7405 machine=intel386
7406 machfile="m/${machine}.h"
7410 # Extract the first word of "install-info", so it can be a program name with args.
7411 set dummy install-info; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 case $INSTALL_INFO in
7418 [\\/]* | ?:[\\/]*)
7419 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7433 done
7434 done
7435 IFS=$as_save_IFS
7438 esac
7440 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7441 if test -n "$INSTALL_INFO"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7443 $as_echo "$INSTALL_INFO" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7450 # Extract the first word of "install-info", so it can be a program name with args.
7451 set dummy install-info; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 case $INSTALL_INFO in
7458 [\\/]* | ?:[\\/]*)
7459 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in /usr/sbin
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 break 2
7473 done
7474 done
7475 IFS=$as_save_IFS
7478 esac
7480 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7481 if test -n "$INSTALL_INFO"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7483 $as_echo "$INSTALL_INFO" >&6; }
7484 else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7490 # Extract the first word of "install-info", so it can be a program name with args.
7491 set dummy install-info; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 case $INSTALL_INFO in
7498 [\\/]* | ?:[\\/]*)
7499 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in /sbin
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7513 done
7514 done
7515 IFS=$as_save_IFS
7517 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7519 esac
7521 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7522 if test -n "$INSTALL_INFO"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7524 $as_echo "$INSTALL_INFO" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7531 # Extract the first word of "gzip", so it can be a program name with args.
7532 set dummy gzip; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 case $GZIP_PROG in
7539 [\\/]* | ?:[\\/]*)
7540 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7554 done
7555 done
7556 IFS=$as_save_IFS
7559 esac
7561 GZIP_PROG=$ac_cv_path_GZIP_PROG
7562 if test -n "$GZIP_PROG"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7564 $as_echo "$GZIP_PROG" >&6; }
7565 else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7573 ## Need makeinfo >= 4.6 (?) to build the manuals.
7574 # Extract the first word of "makeinfo", so it can be a program name with args.
7575 set dummy makeinfo; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 case $MAKEINFO in
7582 [\\/]* | ?:[\\/]*)
7583 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7597 done
7598 done
7599 IFS=$as_save_IFS
7601 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7603 esac
7605 MAKEINFO=$ac_cv_path_MAKEINFO
7606 if test -n "$MAKEINFO"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7608 $as_echo "$MAKEINFO" >&6; }
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7615 if test "$MAKEINFO" != "no" && \
7616 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
7617 MAKEINFO=no
7620 ## Makeinfo is unusual. For a released Emacs, the manuals are
7621 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7622 ## therefore in the category of "special tools" not normally required, which
7623 ## configure does not have to check for (eg autoconf itself).
7624 ## In a Bazaar checkout on the other hand, the manuals are not included.
7625 ## So makeinfo is a requirement to build from Bazaar, and configure
7626 ## should test for it as it does for any other build requirement.
7627 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7628 ## with pre-built manuals, from a Bazaar checkout.
7629 HAVE_MAKEINFO=yes
7631 if test "$MAKEINFO" = "no"; then
7632 MAKEINFO=makeinfo
7633 if test "x${with_makeinfo}" = "xno"; then
7634 HAVE_MAKEINFO=no
7635 elif test ! -e $srcdir/info/emacs; then
7636 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7637 source tree does not seem to have pre-built manuals in the \`info' directory.
7638 Either install a suitable version of makeinfo, or re-run configure
7639 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7645 if test x$GCC = xyes; then
7646 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7647 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7648 else
7649 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7650 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7654 late_LDFLAGS=$LDFLAGS
7655 if test x$GCC = xyes; then
7656 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7657 else
7658 LDFLAGS="$LDFLAGS -znocombreloc"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7662 $as_echo_n "checking for -znocombreloc... " >&6; }
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7667 main ()
7671 return 0;
7673 _ACEOF
7674 if ac_fn_c_try_link "$LINENO"; then :
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7676 $as_echo "yes" >&6; }
7677 else
7678 LDFLAGS=$late_LDFLAGS
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7682 rm -f core conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
7686 # The value of CPP is a quoted variable reference, so we need to do this
7687 # to get its actual value...
7688 CPP=`eval "echo $CPP"`
7691 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7692 case "$opsys" in
7693 your-opsys-here) CANNOT_DUMP=yes ;;
7694 esac
7696 test "$CANNOT_DUMP" = "yes" && \
7698 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7704 UNEXEC_OBJ=unexelf.o
7705 case "$opsys" in
7706 # MSDOS uses unexcoff.o
7707 # MSWindows uses unexw32.o
7708 aix4-2)
7709 UNEXEC_OBJ=unexaix.o
7711 cygwin)
7712 UNEXEC_OBJ=unexcw.o
7714 darwin)
7715 UNEXEC_OBJ=unexmacosx.o
7717 hpux10-20 | hpux11)
7718 UNEXEC_OBJ=unexhp9k800.o
7720 sol2-10)
7721 # Use the Solaris dldump() function, called from unexsol.c, to dump
7722 # emacs, instead of the generic ELF dump code found in unexelf.c.
7723 # The resulting binary has a complete symbol table, and is better
7724 # for debugging and other observability tools (debuggers, pstack, etc).
7726 # If you encounter a problem using dldump(), please consider sending
7727 # a message to the OpenSolaris tools-linking mailing list:
7728 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7730 # It is likely that dldump() works with older Solaris too, but this has
7731 # not been tested, so for now this change is for Solaris 10 or newer.
7732 UNEXEC_OBJ=unexsol.o
7734 esac
7736 LD_SWITCH_SYSTEM=
7737 case "$opsys" in
7738 freebsd)
7739 ## Let `ld' find image libs and similar things in /usr/local/lib.
7740 ## The system compiler, GCC, has apparently been modified to not
7741 ## look there, contrary to what a stock GCC would do.
7742 LD_SWITCH_SYSTEM=-L/usr/local/lib
7745 gnu-linux)
7746 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7747 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7750 netbsd)
7751 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7754 openbsd)
7755 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7756 ## otherwise Emacs dumps core on elf systems.
7757 LD_SWITCH_SYSTEM="-Z"
7759 esac
7762 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7764 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7765 ## which has not been defined yet. When this was handled with cpp,
7766 ## it was expanded to null when configure sourced the s/*.h file.
7767 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7768 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7769 ## (or somesuch), but because it is supposed to go at the _front_
7770 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7771 ## Compare with the gnu-linux case below, which added to the end
7772 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7773 ## LD_SWITCH_SYSTEM_TEMACS.
7774 case "$opsys" in
7775 netbsd|openbsd)
7776 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7777 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7778 esac
7781 C_SWITCH_MACHINE=
7782 if test "$machine" = "alpha"; then
7783 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7784 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7788 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7789 ## With ELF, make sure that all common symbols get allocated to in the
7790 ## data section. Otherwise, the dump of temacs may miss variables in
7791 ## the shared library that have been initialized. For example, with
7792 ## GNU libc, __malloc_initialized would normally be resolved to the
7793 ## shared library's .bss section, which is fatal.
7794 if test "x$GCC" = "xyes"; then
7795 C_SWITCH_MACHINE="-fno-common"
7796 else
7797 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7799 else
7800 UNEXEC_OBJ=unexalpha.o
7807 C_SWITCH_SYSTEM=
7808 ## Some programs in src produce warnings saying certain subprograms
7809 ## are too complex and need a MAXMEM value greater than 2000 for
7810 ## additional optimization. --nils@exp-math.uni-essen.de
7811 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7812 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7813 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7814 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7818 LIBS_SYSTEM=
7819 case "$opsys" in
7820 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7821 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7823 freebsd) LIBS_SYSTEM="-lutil" ;;
7825 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7827 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7829 ## Motif needs -lgen.
7830 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7831 esac
7835 ### Make sure subsequent tests use flags consistent with the build flags.
7837 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7838 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7839 else
7840 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7843 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7845 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7848 # Check whether --enable-largefile was given.
7849 if test "${enable_largefile+set}" = set; then :
7850 enableval=$enable_largefile;
7853 if test "$enable_largefile" != no; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7856 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7857 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 ac_cv_sys_largefile_CC=no
7861 if test "$GCC" != yes; then
7862 ac_save_CC=$CC
7863 while :; do
7864 # IRIX 6.2 and later do not support large files by default,
7865 # so use the C compiler's -n32 option if that helps.
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 #include <sys/types.h>
7869 /* Check that off_t can represent 2**63 - 1 correctly.
7870 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7871 since some C++ compilers masquerading as C compilers
7872 incorrectly reject 9223372036854775807. */
7873 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7874 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7875 && LARGE_OFF_T % 2147483647 == 1)
7876 ? 1 : -1];
7878 main ()
7882 return 0;
7884 _ACEOF
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886 break
7888 rm -f core conftest.err conftest.$ac_objext
7889 CC="$CC -n32"
7890 if ac_fn_c_try_compile "$LINENO"; then :
7891 ac_cv_sys_largefile_CC=' -n32'; break
7893 rm -f core conftest.err conftest.$ac_objext
7894 break
7895 done
7896 CC=$ac_save_CC
7897 rm -f conftest.$ac_ext
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7901 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7902 if test "$ac_cv_sys_largefile_CC" != no; then
7903 CC=$CC$ac_cv_sys_largefile_CC
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7907 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7908 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 while :; do
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #include <sys/types.h>
7915 /* Check that off_t can represent 2**63 - 1 correctly.
7916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7917 since some C++ compilers masquerading as C compilers
7918 incorrectly reject 9223372036854775807. */
7919 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7921 && LARGE_OFF_T % 2147483647 == 1)
7922 ? 1 : -1];
7924 main ()
7928 return 0;
7930 _ACEOF
7931 if ac_fn_c_try_compile "$LINENO"; then :
7932 ac_cv_sys_file_offset_bits=no; break
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 #define _FILE_OFFSET_BITS 64
7938 #include <sys/types.h>
7939 /* Check that off_t can represent 2**63 - 1 correctly.
7940 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7941 since some C++ compilers masquerading as C compilers
7942 incorrectly reject 9223372036854775807. */
7943 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7944 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7945 && LARGE_OFF_T % 2147483647 == 1)
7946 ? 1 : -1];
7948 main ()
7952 return 0;
7954 _ACEOF
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956 ac_cv_sys_file_offset_bits=64; break
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 ac_cv_sys_file_offset_bits=unknown
7960 break
7961 done
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7964 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7965 case $ac_cv_sys_file_offset_bits in #(
7966 no | unknown) ;;
7968 cat >>confdefs.h <<_ACEOF
7969 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7970 _ACEOF
7972 esac
7973 rm -rf conftest*
7974 if test $ac_cv_sys_file_offset_bits = unknown; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7976 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7977 if test "${ac_cv_sys_large_files+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 while :; do
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7983 #include <sys/types.h>
7984 /* Check that off_t can represent 2**63 - 1 correctly.
7985 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7986 since some C++ compilers masquerading as C compilers
7987 incorrectly reject 9223372036854775807. */
7988 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7989 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7990 && LARGE_OFF_T % 2147483647 == 1)
7991 ? 1 : -1];
7993 main ()
7997 return 0;
7999 _ACEOF
8000 if ac_fn_c_try_compile "$LINENO"; then :
8001 ac_cv_sys_large_files=no; break
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #define _LARGE_FILES 1
8007 #include <sys/types.h>
8008 /* Check that off_t can represent 2**63 - 1 correctly.
8009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8010 since some C++ compilers masquerading as C compilers
8011 incorrectly reject 9223372036854775807. */
8012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8014 && LARGE_OFF_T % 2147483647 == 1)
8015 ? 1 : -1];
8017 main ()
8021 return 0;
8023 _ACEOF
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025 ac_cv_sys_large_files=1; break
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 ac_cv_sys_large_files=unknown
8029 break
8030 done
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8033 $as_echo "$ac_cv_sys_large_files" >&6; }
8034 case $ac_cv_sys_large_files in #(
8035 no | unknown) ;;
8037 cat >>confdefs.h <<_ACEOF
8038 #define _LARGE_FILES $ac_cv_sys_large_files
8039 _ACEOF
8041 esac
8042 rm -rf conftest*
8050 LIB_MATH=-lm
8051 LIB_STANDARD=
8052 START_FILES=
8054 case $opsys in
8055 cygwin )
8056 LIB_MATH=
8057 START_FILES='pre-crt0.o'
8059 darwin )
8060 ## Adding -lm confuses the dynamic linker, so omit it.
8061 LIB_MATH=
8062 START_FILES='pre-crt0.o'
8064 freebsd )
8065 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8066 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8068 gnu-linux | gnu-kfreebsd )
8069 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8070 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8072 hpux10-20 | hpux11 )
8073 LIB_STANDARD=-lc
8074 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8076 netbsd | openbsd )
8077 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8078 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8080 esac
8085 crt_files=
8087 for file in x $LIB_STANDARD $START_FILES; do
8088 case "$file" in
8089 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8090 esac
8091 done
8093 if test "x$crt_files" != x; then
8095 ## If user specified a crt-dir, use that unconditionally.
8096 crt_gcc=no
8098 if test "X$CRT_DIR" = "X"; then
8100 CRT_DIR=/usr/lib # default
8102 case "$canonical" in
8103 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8104 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8105 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8106 ## For anything else (eg /usr/lib32), it is up the user to specify
8107 ## the location (bug#5655).
8108 ## Test for crtn.o, not just the directory, because sometimes the
8109 ## directory exists but does not have the relevant files (bug#1287).
8110 ## FIXME better to test for binary compatibility somehow.
8111 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8114 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8115 esac
8117 case "$opsys" in
8118 hpux10-20) CRT_DIR=/lib ;;
8119 esac
8121 test "x${GCC}" = xyes && crt_gcc=yes
8123 fi # CRT_DIR = ""
8125 crt_missing=
8127 for file in $crt_files; do
8129 ## If we're using gcc, try to determine it automatically by asking
8130 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8131 ## system-dependent default from above.]
8132 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8134 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8135 case "$crt_file" in
8136 */*)
8137 CRT_DIR=`$as_dirname -- "$crt_file" ||
8138 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8139 X"$crt_file" : 'X\(//\)[^/]' \| \
8140 X"$crt_file" : 'X\(//\)$' \| \
8141 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8142 $as_echo X"$crt_file" |
8143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8144 s//\1/
8147 /^X\(\/\/\)[^/].*/{
8148 s//\1/
8151 /^X\(\/\/\)$/{
8152 s//\1/
8155 /^X\(\/\).*/{
8156 s//\1/
8159 s/.*/./; q'`
8161 esac
8164 crt_gcc=no
8166 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8167 done # $crt_files
8169 test "x$crt_missing" = x || \
8170 as_fn_error "Required file(s) not found:$crt_missing
8171 Try using the --with-crt-dir option." "$LINENO" 5
8173 fi # crt_files != ""
8177 case $opsys in
8178 netbsd | openbsd )
8179 if test -f $CRT_DIR/crti.o; then
8181 test -f $CRT_DIR/crtn.o || \
8182 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8184 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8185 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8188 esac
8194 if test "${with_sound}" != "no"; then
8195 # Sound support for GNU/Linux and the free BSDs.
8196 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8197 do :
8198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8199 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8200 eval as_val=\$$as_ac_Header
8201 if test "x$as_val" = x""yes; then :
8202 cat >>confdefs.h <<_ACEOF
8203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8204 _ACEOF
8205 have_sound_header=yes
8208 done
8210 # Emulation library used on NetBSD.
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8212 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8213 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 ac_check_lib_save_LIBS=$LIBS
8217 LIBS="-lossaudio $LIBS"
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8221 /* Override any GCC internal prototype to avoid an error.
8222 Use char because int might match the return type of a GCC
8223 builtin and then its argument prototype would still apply. */
8224 #ifdef __cplusplus
8225 extern "C"
8226 #endif
8227 char _oss_ioctl ();
8229 main ()
8231 return _oss_ioctl ();
8233 return 0;
8235 _ACEOF
8236 if ac_fn_c_try_link "$LINENO"; then :
8237 ac_cv_lib_ossaudio__oss_ioctl=yes
8238 else
8239 ac_cv_lib_ossaudio__oss_ioctl=no
8241 rm -f core conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243 LIBS=$ac_check_lib_save_LIBS
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8246 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8247 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8248 LIBSOUND=-lossaudio
8249 else
8250 LIBSOUND=
8255 ALSA_REQUIRED=1.0.0
8256 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8258 succeeded=no
8260 # Extract the first word of "pkg-config", so it can be a program name with args.
8261 set dummy pkg-config; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 case $PKG_CONFIG in
8268 [\\/]* | ?:[\\/]*)
8269 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8279 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8283 done
8284 done
8285 IFS=$as_save_IFS
8287 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8289 esac
8291 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8292 if test -n "$PKG_CONFIG"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8294 $as_echo "$PKG_CONFIG" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8302 if test "$PKG_CONFIG" = "no" ; then
8303 HAVE_ALSA=no
8304 else
8305 PKG_CONFIG_MIN_VERSION=0.9.0
8306 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8308 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8310 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8312 $as_echo "yes" >&6; }
8313 succeeded=yes
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8316 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8317 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8319 $as_echo "$ALSA_CFLAGS" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8322 $as_echo_n "checking ALSA_LIBS... " >&6; }
8323 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8325 $as_echo "$ALSA_LIBS" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 ALSA_CFLAGS=""
8330 ALSA_LIBS=""
8331 ## If we have a custom action on failure, don't print errors, but
8332 ## do set a variable so people can do so.
8333 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8339 else
8340 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8341 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8345 if test $succeeded = yes; then
8346 HAVE_ALSA=yes
8347 else
8348 HAVE_ALSA=no
8351 if test $HAVE_ALSA = yes; then
8352 SAVE_CFLAGS="$CFLAGS"
8353 SAVE_LDFLAGS="$LDFLAGS"
8354 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8355 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 #include <asoundlib.h>
8360 main ()
8362 snd_lib_error_set_handler (0);
8364 return 0;
8366 _ACEOF
8367 if ac_fn_c_try_compile "$LINENO"; then :
8368 emacs_alsa_normal=yes
8369 else
8370 emacs_alsa_normal=no
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 if test "$emacs_alsa_normal" != yes; then
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376 #include <alsa/asoundlib.h>
8378 main ()
8380 snd_lib_error_set_handler (0);
8382 return 0;
8384 _ACEOF
8385 if ac_fn_c_try_compile "$LINENO"; then :
8386 emacs_alsa_subdir=yes
8387 else
8388 emacs_alsa_subdir=no
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 if test "$emacs_alsa_subdir" != yes; then
8392 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8394 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8397 CFLAGS="$SAVE_CFLAGS"
8398 LDFLAGS="$SAVE_LDFLAGS"
8399 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8400 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8402 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8406 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8407 case "$opsys" in
8408 gnu-linux|freebsd|netbsd)
8410 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8413 esac
8419 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8420 linux/version.h sys/systeminfo.h \
8421 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8422 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8423 sys/utsname.h pwd.h utmp.h dirent.h util.h
8424 do :
8425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8426 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8427 eval as_val=\$$as_ac_Header
8428 if test "x$as_val" = x""yes; then :
8429 cat >>confdefs.h <<_ACEOF
8430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8431 _ACEOF
8435 done
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8439 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442 #include <sys/personality.h>
8444 main ()
8446 personality (PER_LINUX32)
8448 return 0;
8450 _ACEOF
8451 if ac_fn_c_try_compile "$LINENO"; then :
8452 emacs_cv_personality_linux32=yes
8453 else
8454 emacs_cv_personality_linux32=no
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8458 $as_echo "$emacs_cv_personality_linux32" >&6; }
8460 if test $emacs_cv_personality_linux32 = yes; then
8462 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8466 for ac_header in term.h
8467 do :
8468 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8469 if test "x$ac_cv_header_term_h" = x""yes; then :
8470 cat >>confdefs.h <<_ACEOF
8471 #define HAVE_TERM_H 1
8472 _ACEOF
8476 done
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8479 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8480 if test "${ac_cv_header_time+set}" = set; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 #include <sys/types.h>
8486 #include <sys/time.h>
8487 #include <time.h>
8490 main ()
8492 if ((struct tm *) 0)
8493 return 0;
8495 return 0;
8497 _ACEOF
8498 if ac_fn_c_try_compile "$LINENO"; then :
8499 ac_cv_header_time=yes
8500 else
8501 ac_cv_header_time=no
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8506 $as_echo "$ac_cv_header_time" >&6; }
8507 if test $ac_cv_header_time = yes; then
8509 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8513 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8514 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8515 ac_have_decl=1
8516 else
8517 ac_have_decl=0
8520 cat >>confdefs.h <<_ACEOF
8521 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8522 _ACEOF
8524 if test $ac_cv_have_decl_sys_siglist != yes; then
8525 # For Tru64, at least:
8526 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8527 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8528 ac_have_decl=1
8529 else
8530 ac_have_decl=0
8533 cat >>confdefs.h <<_ACEOF
8534 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8535 _ACEOF
8537 if test $ac_cv_have_decl___sys_siglist = yes; then
8539 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8544 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8545 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 #include <sys/types.h>
8551 #include <sys/wait.h>
8552 #ifndef WEXITSTATUS
8553 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8554 #endif
8555 #ifndef WIFEXITED
8556 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8557 #endif
8560 main ()
8562 int s;
8563 wait (&s);
8564 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8566 return 0;
8568 _ACEOF
8569 if ac_fn_c_try_compile "$LINENO"; then :
8570 ac_cv_header_sys_wait_h=yes
8571 else
8572 ac_cv_header_sys_wait_h=no
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8577 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8578 if test $ac_cv_header_sys_wait_h = yes; then
8580 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8586 $as_echo_n "checking for struct utimbuf... " >&6; }
8587 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 #ifdef TIME_WITH_SYS_TIME
8593 #include <sys/time.h>
8594 #include <time.h>
8595 #else
8596 #ifdef HAVE_SYS_TIME_H
8597 #include <sys/time.h>
8598 #else
8599 #include <time.h>
8600 #endif
8601 #endif
8602 #ifdef HAVE_UTIME_H
8603 #include <utime.h>
8604 #endif
8606 main ()
8608 static struct utimbuf x; x.actime = x.modtime;
8610 return 0;
8612 _ACEOF
8613 if ac_fn_c_try_compile "$LINENO"; then :
8614 emacs_cv_struct_utimbuf=yes
8615 else
8616 emacs_cv_struct_utimbuf=no
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8621 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8622 if test $emacs_cv_struct_utimbuf = yes; then
8624 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8629 $as_echo_n "checking for speed_t... " >&6; }
8630 if test "${emacs_cv_speed_t+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 #include <termios.h>
8637 main ()
8639 speed_t x = 1;
8641 return 0;
8643 _ACEOF
8644 if ac_fn_c_try_compile "$LINENO"; then :
8645 emacs_cv_speed_t=yes
8646 else
8647 emacs_cv_speed_t=no
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8652 $as_echo "$emacs_cv_speed_t" >&6; }
8653 if test $emacs_cv_speed_t = yes; then
8655 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8660 $as_echo_n "checking for struct timeval... " >&6; }
8661 if test "${emacs_cv_struct_timeval+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 #ifdef TIME_WITH_SYS_TIME
8667 #include <sys/time.h>
8668 #include <time.h>
8669 #else
8670 #ifdef HAVE_SYS_TIME_H
8671 #include <sys/time.h>
8672 #else
8673 #include <time.h>
8674 #endif
8675 #endif
8677 main ()
8679 static struct timeval x; x.tv_sec = x.tv_usec;
8681 return 0;
8683 _ACEOF
8684 if ac_fn_c_try_compile "$LINENO"; then :
8685 emacs_cv_struct_timeval=yes
8686 else
8687 emacs_cv_struct_timeval=no
8689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8692 $as_echo "$emacs_cv_struct_timeval" >&6; }
8693 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8694 if test $emacs_cv_struct_timeval = yes; then
8696 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8701 $as_echo_n "checking for struct exception... " >&6; }
8702 if test "${emacs_cv_struct_exception+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8707 #include <math.h>
8709 main ()
8711 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8713 return 0;
8715 _ACEOF
8716 if ac_fn_c_try_compile "$LINENO"; then :
8717 emacs_cv_struct_exception=yes
8718 else
8719 emacs_cv_struct_exception=no
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8724 $as_echo "$emacs_cv_struct_exception" >&6; }
8725 HAVE_EXCEPTION=$emacs_cv_struct_exception
8726 if test $emacs_cv_struct_exception != yes; then
8728 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8732 for ac_header in sys/socket.h
8733 do :
8734 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8735 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8736 cat >>confdefs.h <<_ACEOF
8737 #define HAVE_SYS_SOCKET_H 1
8738 _ACEOF
8742 done
8744 for ac_header in net/if.h
8745 do :
8746 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8747 #if HAVE_SYS_SOCKET_H
8748 #include <sys/socket.h>
8749 #endif
8751 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8752 cat >>confdefs.h <<_ACEOF
8753 #define HAVE_NET_IF_H 1
8754 _ACEOF
8758 done
8760 for ac_header in ifaddrs.h
8761 do :
8762 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8763 #if HAVE_SYS_SOCKET_H
8764 #include <sys/socket.h>
8765 #endif
8767 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8768 cat >>confdefs.h <<_ACEOF
8769 #define HAVE_IFADDRS_H 1
8770 _ACEOF
8774 done
8776 for ac_header in net/if_dl.h
8777 do :
8778 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8779 #if HAVE_SYS_SOCKET_H
8780 #include <sys/socket.h>
8781 #endif
8783 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8784 cat >>confdefs.h <<_ACEOF
8785 #define HAVE_NET_IF_DL_H 1
8786 _ACEOF
8790 done
8792 for ac_func in getifaddrs freeifaddrs
8793 do :
8794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8795 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8796 eval as_val=\$$as_ac_var
8797 if test "x$as_val" = x""yes; then :
8798 cat >>confdefs.h <<_ACEOF
8799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8800 _ACEOF
8803 done
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8807 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8808 if test "${ac_cv_struct_tm+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
8810 else
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 #include <sys/types.h>
8814 #include <time.h>
8817 main ()
8819 struct tm tm;
8820 int *p = &tm.tm_sec;
8821 return !p;
8823 return 0;
8825 _ACEOF
8826 if ac_fn_c_try_compile "$LINENO"; then :
8827 ac_cv_struct_tm=time.h
8828 else
8829 ac_cv_struct_tm=sys/time.h
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8834 $as_echo "$ac_cv_struct_tm" >&6; }
8835 if test $ac_cv_struct_tm = sys/time.h; then
8837 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8841 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8842 #include <$ac_cv_struct_tm>
8845 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8847 cat >>confdefs.h <<_ACEOF
8848 #define HAVE_STRUCT_TM_TM_ZONE 1
8849 _ACEOF
8854 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8856 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8858 else
8859 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8861 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8862 ac_have_decl=1
8863 else
8864 ac_have_decl=0
8867 cat >>confdefs.h <<_ACEOF
8868 #define HAVE_DECL_TZNAME $ac_have_decl
8869 _ACEOF
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8872 $as_echo_n "checking for tzname... " >&6; }
8873 if test "${ac_cv_var_tzname+set}" = set; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 #include <time.h>
8879 #if !HAVE_DECL_TZNAME
8880 extern char *tzname[];
8881 #endif
8884 main ()
8886 return tzname[0][0];
8888 return 0;
8890 _ACEOF
8891 if ac_fn_c_try_link "$LINENO"; then :
8892 ac_cv_var_tzname=yes
8893 else
8894 ac_cv_var_tzname=no
8896 rm -f core conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8900 $as_echo "$ac_cv_var_tzname" >&6; }
8901 if test $ac_cv_var_tzname = yes; then
8903 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8908 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8910 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8912 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8916 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8917 #if HAVE_SYS_SOCKET_H
8918 #include <sys/socket.h>
8919 #endif
8920 #if HAVE_NET_IF_H
8921 #include <net/if.h>
8922 #endif
8924 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8926 cat >>confdefs.h <<_ACEOF
8927 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8928 _ACEOF
8932 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8933 #if HAVE_SYS_SOCKET_H
8934 #include <sys/socket.h>
8935 #endif
8936 #if HAVE_NET_IF_H
8937 #include <net/if.h>
8938 #endif
8940 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8942 cat >>confdefs.h <<_ACEOF
8943 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8944 _ACEOF
8948 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8949 #if HAVE_SYS_SOCKET_H
8950 #include <sys/socket.h>
8951 #endif
8952 #if HAVE_NET_IF_H
8953 #include <net/if.h>
8954 #endif
8956 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8958 cat >>confdefs.h <<_ACEOF
8959 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8960 _ACEOF
8964 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8965 #if HAVE_SYS_SOCKET_H
8966 #include <sys/socket.h>
8967 #endif
8968 #if HAVE_NET_IF_H
8969 #include <net/if.h>
8970 #endif
8972 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8974 cat >>confdefs.h <<_ACEOF
8975 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8976 _ACEOF
8980 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8981 #if HAVE_SYS_SOCKET_H
8982 #include <sys/socket.h>
8983 #endif
8984 #if HAVE_NET_IF_H
8985 #include <net/if.h>
8986 #endif
8988 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8990 cat >>confdefs.h <<_ACEOF
8991 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8992 _ACEOF
8996 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8997 #if HAVE_SYS_SOCKET_H
8998 #include <sys/socket.h>
8999 #endif
9000 #if HAVE_NET_IF_H
9001 #include <net/if.h>
9002 #endif
9004 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9006 cat >>confdefs.h <<_ACEOF
9007 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9008 _ACEOF
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9016 $as_echo_n "checking for function prototypes... " >&6; }
9017 if test "$ac_cv_prog_cc_c89" != no; then
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9019 $as_echo "yes" >&6; }
9021 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9024 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9026 else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9032 $as_echo_n "checking for working volatile... " >&6; }
9033 if test "${ac_cv_c_volatile+set}" = set; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9040 main ()
9043 volatile int x;
9044 int * volatile y = (int *) 0;
9045 return !x && !y;
9047 return 0;
9049 _ACEOF
9050 if ac_fn_c_try_compile "$LINENO"; then :
9051 ac_cv_c_volatile=yes
9052 else
9053 ac_cv_c_volatile=no
9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9058 $as_echo "$ac_cv_c_volatile" >&6; }
9059 if test $ac_cv_c_volatile = no; then
9061 $as_echo "#define volatile /**/" >>confdefs.h
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9066 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9067 if test "${ac_cv_c_const+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9074 main ()
9076 /* FIXME: Include the comments suggested by Paul. */
9077 #ifndef __cplusplus
9078 /* Ultrix mips cc rejects this. */
9079 typedef int charset[2];
9080 const charset cs;
9081 /* SunOS 4.1.1 cc rejects this. */
9082 char const *const *pcpcc;
9083 char **ppc;
9084 /* NEC SVR4.0.2 mips cc rejects this. */
9085 struct point {int x, y;};
9086 static struct point const zero = {0,0};
9087 /* AIX XL C 1.02.0.0 rejects this.
9088 It does not let you subtract one const X* pointer from another in
9089 an arm of an if-expression whose if-part is not a constant
9090 expression */
9091 const char *g = "string";
9092 pcpcc = &g + (g ? g-g : 0);
9093 /* HPUX 7.0 cc rejects these. */
9094 ++pcpcc;
9095 ppc = (char**) pcpcc;
9096 pcpcc = (char const *const *) ppc;
9097 { /* SCO 3.2v4 cc rejects this. */
9098 char *t;
9099 char const *s = 0 ? (char *) 0 : (char const *) 0;
9101 *t++ = 0;
9102 if (s) return 0;
9104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9105 int x[] = {25, 17};
9106 const int *foo = &x[0];
9107 ++foo;
9109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9110 typedef const int *iptr;
9111 iptr p = 0;
9112 ++p;
9114 { /* AIX XL C 1.02.0.0 rejects this saying
9115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9116 struct s { int j; const int *ap[3]; };
9117 struct s *b; b->j = 5;
9119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9120 const int foo = 10;
9121 if (!foo) return 0;
9123 return !cs[0] && !zero.x;
9124 #endif
9127 return 0;
9129 _ACEOF
9130 if ac_fn_c_try_compile "$LINENO"; then :
9131 ac_cv_c_const=yes
9132 else
9133 ac_cv_c_const=no
9135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9138 $as_echo "$ac_cv_c_const" >&6; }
9139 if test $ac_cv_c_const = no; then
9141 $as_echo "#define const /**/" >>confdefs.h
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9146 $as_echo_n "checking for void * support... " >&6; }
9147 if test "${emacs_cv_void_star+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9154 main ()
9156 void * foo;
9158 return 0;
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"; then :
9162 emacs_cv_void_star=yes
9163 else
9164 emacs_cv_void_star=no
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9169 $as_echo "$emacs_cv_void_star" >&6; }
9170 if test $emacs_cv_void_star = yes; then
9171 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9173 else
9174 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9179 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9180 if test "${ac_cv_c_bigendian+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 ac_cv_c_bigendian=unknown
9184 # See if we're dealing with a universal compiler.
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 #ifndef __APPLE_CC__
9188 not a universal capable compiler
9189 #endif
9190 typedef int dummy;
9192 _ACEOF
9193 if ac_fn_c_try_compile "$LINENO"; then :
9195 # Check for potential -arch flags. It is not universal unless
9196 # there are at least two -arch flags with different values.
9197 ac_arch=
9198 ac_prev=
9199 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9200 if test -n "$ac_prev"; then
9201 case $ac_word in
9202 i?86 | x86_64 | ppc | ppc64)
9203 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9204 ac_arch=$ac_word
9205 else
9206 ac_cv_c_bigendian=universal
9207 break
9210 esac
9211 ac_prev=
9212 elif test "x$ac_word" = "x-arch"; then
9213 ac_prev=arch
9215 done
9217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218 if test $ac_cv_c_bigendian = unknown; then
9219 # See if sys/param.h defines the BYTE_ORDER macro.
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 #include <sys/types.h>
9223 #include <sys/param.h>
9226 main ()
9228 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9229 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9230 && LITTLE_ENDIAN)
9231 bogus endian macros
9232 #endif
9235 return 0;
9237 _ACEOF
9238 if ac_fn_c_try_compile "$LINENO"; then :
9239 # It does; now see whether it defined to BIG_ENDIAN or not.
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242 #include <sys/types.h>
9243 #include <sys/param.h>
9246 main ()
9248 #if BYTE_ORDER != BIG_ENDIAN
9249 not big endian
9250 #endif
9253 return 0;
9255 _ACEOF
9256 if ac_fn_c_try_compile "$LINENO"; then :
9257 ac_cv_c_bigendian=yes
9258 else
9259 ac_cv_c_bigendian=no
9261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265 if test $ac_cv_c_bigendian = unknown; then
9266 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 #include <limits.h>
9272 main ()
9274 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9275 bogus endian macros
9276 #endif
9279 return 0;
9281 _ACEOF
9282 if ac_fn_c_try_compile "$LINENO"; then :
9283 # It does; now see whether it defined to _BIG_ENDIAN or not.
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 #include <limits.h>
9289 main ()
9291 #ifndef _BIG_ENDIAN
9292 not big endian
9293 #endif
9296 return 0;
9298 _ACEOF
9299 if ac_fn_c_try_compile "$LINENO"; then :
9300 ac_cv_c_bigendian=yes
9301 else
9302 ac_cv_c_bigendian=no
9304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9308 if test $ac_cv_c_bigendian = unknown; then
9309 # Compile a test program.
9310 if test "$cross_compiling" = yes; then :
9311 # Try to guess by grepping values from an object file.
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314 short int ascii_mm[] =
9315 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9316 short int ascii_ii[] =
9317 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9318 int use_ascii (int i) {
9319 return ascii_mm[i] + ascii_ii[i];
9321 short int ebcdic_ii[] =
9322 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9323 short int ebcdic_mm[] =
9324 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9325 int use_ebcdic (int i) {
9326 return ebcdic_mm[i] + ebcdic_ii[i];
9328 extern int foo;
9331 main ()
9333 return use_ascii (foo) == use_ebcdic (foo);
9335 return 0;
9337 _ACEOF
9338 if ac_fn_c_try_compile "$LINENO"; then :
9339 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9340 ac_cv_c_bigendian=yes
9342 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9343 if test "$ac_cv_c_bigendian" = unknown; then
9344 ac_cv_c_bigendian=no
9345 else
9346 # finding both strings is unlikely to happen, but who knows?
9347 ac_cv_c_bigendian=unknown
9351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9352 else
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355 $ac_includes_default
9357 main ()
9360 /* Are we little or big endian? From Harbison&Steele. */
9361 union
9363 long int l;
9364 char c[sizeof (long int)];
9365 } u;
9366 u.l = 1;
9367 return u.c[sizeof (long int) - 1] == 1;
9370 return 0;
9372 _ACEOF
9373 if ac_fn_c_try_run "$LINENO"; then :
9374 ac_cv_c_bigendian=no
9375 else
9376 ac_cv_c_bigendian=yes
9378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9379 conftest.$ac_objext conftest.beam conftest.$ac_ext
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9385 $as_echo "$ac_cv_c_bigendian" >&6; }
9386 case $ac_cv_c_bigendian in #(
9387 yes)
9388 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9389 ;; #(
9391 ;; #(
9392 universal)
9394 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9396 ;; #(
9398 as_fn_error "unknown endianness
9399 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9400 esac
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9404 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9405 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 char __attribute__ ((__aligned__ (1 << 3))) c;
9412 main ()
9416 return 0;
9418 _ACEOF
9419 if ac_fn_c_try_compile "$LINENO"; then :
9420 emacs_cv_attribute_aligned=yes
9421 else
9422 emacs_cv_attribute_aligned=no
9424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9427 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9428 if test $emacs_cv_attribute_aligned = yes; then
9430 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9435 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9436 set x ${MAKE-make}
9437 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9438 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 cat >conftest.make <<\_ACEOF
9442 SHELL = /bin/sh
9443 all:
9444 @echo '@@@%%%=$(MAKE)=@@@%%%'
9445 _ACEOF
9446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9447 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9448 *@@@%%%=?*=@@@%%%*)
9449 eval ac_cv_prog_make_${ac_make}_set=yes;;
9451 eval ac_cv_prog_make_${ac_make}_set=no;;
9452 esac
9453 rm -f conftest.make
9455 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9457 $as_echo "yes" >&6; }
9458 SET_MAKE=
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9462 SET_MAKE="MAKE=${MAKE-make}"
9466 DEPFLAGS=
9467 MKDEPDIR=":"
9468 deps_frag=deps.mk
9469 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9471 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9472 HAVE_GNU_MAKE=no
9473 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9474 if test "x$testval" != x; then
9475 HAVE_GNU_MAKE=yes
9476 else
9477 ac_enable_autodepend=no
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9480 $as_echo "$HAVE_GNU_MAKE" >&6; }
9481 if test $HAVE_GNU_MAKE = yes; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9483 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9484 SAVE_CFLAGS="$CFLAGS"
9485 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9490 main ()
9494 return 0;
9496 _ACEOF
9497 if ac_fn_c_try_compile "$LINENO"; then :
9499 else
9500 ac_enable_autodepend=no
9502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9503 CFLAGS="$SAVE_CFLAGS"
9504 test -f deps.d || ac_enable_autodepend=no
9505 rm -rf deps.d
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9507 $as_echo "$ac_enable_autodepend" >&6; }
9509 if test $ac_enable_autodepend = yes; then
9510 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9511 ## In parallel builds, another make might create depdir between
9512 ## the first test and mkdir, so stick another test on the end.
9513 ## Or use install-sh -d? mkdir -p is not portable.
9514 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9515 deps_frag=autodeps.mk
9518 deps_frag=$srcdir/src/$deps_frag
9524 lisp_frag=$srcdir/src/lisp.mk
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9529 $as_echo_n "checking for long file names... " >&6; }
9530 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 ac_cv_sys_long_file_names=yes
9534 # Test for long file names in all the places we know might matter:
9535 # . the current directory, where building will happen
9536 # $prefix/lib where we will be installing things
9537 # $exec_prefix/lib likewise
9538 # $TMPDIR if set, where it might want to write temporary files
9539 # /tmp where it might want to write temporary files
9540 # /var/tmp likewise
9541 # /usr/tmp likewise
9542 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9543 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9544 # in the usual case where exec_prefix is '${prefix}'.
9545 case $ac_dir in #(
9546 . | /* | ?:[\\/]*) ;; #(
9547 *) continue;;
9548 esac
9549 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9550 ac_xdir=$ac_dir/cf$$
9551 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9552 ac_tf1=$ac_xdir/conftest9012345
9553 ac_tf2=$ac_xdir/conftest9012346
9554 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9555 ac_cv_sys_long_file_names=no
9556 rm -f -r "$ac_xdir" 2>/dev/null
9557 test $ac_cv_sys_long_file_names = no && break
9558 done
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9561 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9562 if test $ac_cv_sys_long_file_names = yes; then
9564 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9569 #### Choose a window system.
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9572 $as_echo_n "checking for X... " >&6; }
9575 # Check whether --with-x was given.
9576 if test "${with_x+set}" = set; then :
9577 withval=$with_x;
9580 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9581 if test "x$with_x" = xno; then
9582 # The user explicitly disabled X.
9583 have_x=disabled
9584 else
9585 case $x_includes,$x_libraries in #(
9586 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9587 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 # One or both of the vars are not set, and there is no cached value.
9591 ac_x_includes=no ac_x_libraries=no
9592 rm -f -r conftest.dir
9593 if mkdir conftest.dir; then
9594 cd conftest.dir
9595 cat >Imakefile <<'_ACEOF'
9596 incroot:
9597 @echo incroot='${INCROOT}'
9598 usrlibdir:
9599 @echo usrlibdir='${USRLIBDIR}'
9600 libdir:
9601 @echo libdir='${LIBDIR}'
9602 _ACEOF
9603 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9604 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9605 for ac_var in incroot usrlibdir libdir; do
9606 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9607 done
9608 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9609 for ac_extension in a so sl dylib la dll; do
9610 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9611 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9612 ac_im_usrlibdir=$ac_im_libdir; break
9614 done
9615 # Screen out bogus values from the imake configuration. They are
9616 # bogus both because they are the default anyway, and because
9617 # using them would break gcc on systems where it needs fixed includes.
9618 case $ac_im_incroot in
9619 /usr/include) ac_x_includes= ;;
9620 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9621 esac
9622 case $ac_im_usrlibdir in
9623 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9624 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9625 esac
9627 cd ..
9628 rm -f -r conftest.dir
9631 # Standard set of common directories for X headers.
9632 # Check X11 before X11Rn because it is often a symlink to the current release.
9633 ac_x_header_dirs='
9634 /usr/X11/include
9635 /usr/X11R7/include
9636 /usr/X11R6/include
9637 /usr/X11R5/include
9638 /usr/X11R4/include
9640 /usr/include/X11
9641 /usr/include/X11R7
9642 /usr/include/X11R6
9643 /usr/include/X11R5
9644 /usr/include/X11R4
9646 /usr/local/X11/include
9647 /usr/local/X11R7/include
9648 /usr/local/X11R6/include
9649 /usr/local/X11R5/include
9650 /usr/local/X11R4/include
9652 /usr/local/include/X11
9653 /usr/local/include/X11R7
9654 /usr/local/include/X11R6
9655 /usr/local/include/X11R5
9656 /usr/local/include/X11R4
9658 /usr/X386/include
9659 /usr/x386/include
9660 /usr/XFree86/include/X11
9662 /usr/include
9663 /usr/local/include
9664 /usr/unsupported/include
9665 /usr/athena/include
9666 /usr/local/x11r5/include
9667 /usr/lpp/Xamples/include
9669 /usr/openwin/include
9670 /usr/openwin/share/include'
9672 if test "$ac_x_includes" = no; then
9673 # Guess where to find include files, by looking for Xlib.h.
9674 # First, try using that file with no special directory specified.
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 #include <X11/Xlib.h>
9678 _ACEOF
9679 if ac_fn_c_try_cpp "$LINENO"; then :
9680 # We can compile using X headers with no special include directory.
9681 ac_x_includes=
9682 else
9683 for ac_dir in $ac_x_header_dirs; do
9684 if test -r "$ac_dir/X11/Xlib.h"; then
9685 ac_x_includes=$ac_dir
9686 break
9688 done
9690 rm -f conftest.err conftest.$ac_ext
9691 fi # $ac_x_includes = no
9693 if test "$ac_x_libraries" = no; then
9694 # Check for the libraries.
9695 # See if we find them without any special options.
9696 # Don't add to $LIBS permanently.
9697 ac_save_LIBS=$LIBS
9698 LIBS="-lX11 $LIBS"
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 #include <X11/Xlib.h>
9703 main ()
9705 XrmInitialize ()
9707 return 0;
9709 _ACEOF
9710 if ac_fn_c_try_link "$LINENO"; then :
9711 LIBS=$ac_save_LIBS
9712 # We can link X programs with no special library path.
9713 ac_x_libraries=
9714 else
9715 LIBS=$ac_save_LIBS
9716 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9718 # Don't even attempt the hair of trying to link an X program!
9719 for ac_extension in a so sl dylib la dll; do
9720 if test -r "$ac_dir/libX11.$ac_extension"; then
9721 ac_x_libraries=$ac_dir
9722 break 2
9724 done
9725 done
9727 rm -f core conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729 fi # $ac_x_libraries = no
9731 case $ac_x_includes,$ac_x_libraries in #(
9732 no,* | *,no | *\'*)
9733 # Didn't find X, or a directory has "'" in its name.
9734 ac_cv_have_x="have_x=no";; #(
9736 # Record where we found X for the cache.
9737 ac_cv_have_x="have_x=yes\
9738 ac_x_includes='$ac_x_includes'\
9739 ac_x_libraries='$ac_x_libraries'"
9740 esac
9742 ;; #(
9743 *) have_x=yes;;
9744 esac
9745 eval "$ac_cv_have_x"
9746 fi # $with_x != no
9748 if test "$have_x" != yes; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9750 $as_echo "$have_x" >&6; }
9751 no_x=yes
9752 else
9753 # If each of the values was on the command line, it overrides each guess.
9754 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9755 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9756 # Update the cache value to reflect the command line values.
9757 ac_cv_have_x="have_x=yes\
9758 ac_x_includes='$x_includes'\
9759 ac_x_libraries='$x_libraries'"
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9761 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9764 if test "$no_x" = yes; then
9765 window_system=none
9766 else
9767 window_system=x11
9770 ## Workaround for bug in autoconf <= 2.62.
9771 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9772 ## No need to do anything special for these standard directories.
9773 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9775 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9779 LD_SWITCH_X_SITE_AUX=
9780 LD_SWITCH_X_SITE_AUX_RPATH=
9781 if test "${x_libraries}" != NONE; then
9782 if test -n "${x_libraries}"; then
9783 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9784 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9785 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9787 x_default_search_path=""
9788 x_search_path=${x_libraries}
9789 if test -z "${x_search_path}"; then
9790 x_search_path=/usr/lib
9792 for x_library in `echo ${x_search_path}: | \
9793 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9794 x_search_path="\
9795 ${x_library}/X11/%L/%T/%N%C%S:\
9796 ${x_library}/X11/%l/%T/%N%C%S:\
9797 ${x_library}/X11/%T/%N%C%S:\
9798 ${x_library}/X11/%L/%T/%N%S:\
9799 ${x_library}/X11/%l/%T/%N%S:\
9800 ${x_library}/X11/%T/%N%S"
9801 if test x"${x_default_search_path}" = x; then
9802 x_default_search_path=${x_search_path}
9803 else
9804 x_default_search_path="${x_search_path}:${x_default_search_path}"
9806 done
9811 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9812 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9815 if test x"${x_includes}" = x; then
9816 bitmapdir=/usr/include/X11/bitmaps
9817 else
9818 # accumulate include directories that have X11 bitmap subdirectories
9819 bmd_acc="dummyval"
9820 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9821 if test -d "${bmd}/X11/bitmaps"; then
9822 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9824 if test -d "${bmd}/bitmaps"; then
9825 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9827 done
9828 if test ${bmd_acc} != "dummyval"; then
9829 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9833 HAVE_NS=no
9834 NS_IMPL_COCOA=no
9835 NS_IMPL_GNUSTEP=no
9836 tmp_CPPFLAGS="$CPPFLAGS"
9837 tmp_CFLAGS="$CFLAGS"
9838 CPPFLAGS="$CPPFLAGS -x objective-c"
9839 CFLAGS="$CFLAGS -x objective-c"
9840 TEMACS_LDFLAGS2="\${LDFLAGS}"
9841 GNU_OBJC_CFLAGS=
9842 if test "${with_ns}" != no; then
9843 if test "${opsys}" = darwin; then
9844 NS_IMPL_COCOA=yes
9845 ns_appdir=`pwd`/nextstep/Emacs.app
9846 ns_appbindir=${ns_appdir}/Contents/MacOS/
9847 ns_appresdir=${ns_appdir}/Contents/Resources
9848 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9849 elif test -f $GNUSTEP_CONFIG_FILE; then
9850 NS_IMPL_GNUSTEP=yes
9851 ns_appdir=`pwd`/nextstep/Emacs.app
9852 ns_appbindir=${ns_appdir}/
9853 ns_appresdir=${ns_appdir}/Resources
9854 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9855 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9856 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9857 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9858 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9859 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9860 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9861 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9862 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9863 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9864 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9865 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9866 LIB_STANDARD=
9867 START_FILES=
9868 TEMACS_LDFLAGS2=
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9870 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9871 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9872 $as_echo_n "(cached) " >&6
9873 else
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9876 #include <GNUstepBase/GSConfig.h>
9878 main ()
9880 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9882 #else
9883 fail;
9884 #endif
9886 return 0;
9888 _ACEOF
9889 if ac_fn_c_try_compile "$LINENO"; then :
9890 emacs_cv_objc_exceptions=yes
9891 else
9892 emacs_cv_objc_exceptions=no
9894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9897 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9898 if test $emacs_cv_objc_exceptions = yes; then
9900 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9902 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9906 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9908 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9909 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9910 HAVE_NS=yes
9911 else
9912 as_fn_error "\`--with-ns' was specified, but the include
9913 files are missing or cannot be compiled." "$LINENO" 5
9917 NS_HAVE_NSINTEGER=yes
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9920 #include <Foundation/NSObjCRuntime.h>
9922 main ()
9924 NSInteger i;
9926 return 0;
9928 _ACEOF
9929 if ac_fn_c_try_compile "$LINENO"; then :
9930 ns_have_nsinteger=yes
9931 else
9932 ns_have_nsinteger=no
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 if test $ns_have_nsinteger = no; then
9936 NS_HAVE_NSINTEGER=no
9941 ns_frag=/dev/null
9942 NS_OBJ=
9943 NS_OBJC_OBJ=
9944 if test "${HAVE_NS}" = yes; then
9945 window_system=nextstep
9946 with_xft=no
9947 # set up packaging dirs
9948 exec_prefix=${ns_appbindir}
9949 libexecdir=${ns_appbindir}/libexec
9950 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9951 prefix=${ns_appresdir}
9953 ns_frag=$srcdir/src/ns.mk
9954 NS_OBJ="fontset.o fringe.o image.o"
9955 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9957 CFLAGS="$tmp_CFLAGS"
9958 CPPFLAGS="$tmp_CPPFLAGS"
9964 case "${window_system}" in
9965 x11 )
9966 HAVE_X_WINDOWS=yes
9967 HAVE_X11=yes
9968 case "${with_x_toolkit}" in
9969 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9970 motif ) USE_X_TOOLKIT=MOTIF ;;
9971 gtk ) with_gtk=yes
9972 USE_X_TOOLKIT=none ;;
9973 gtk3 ) with_gtk3=yes
9974 USE_X_TOOLKIT=none ;;
9975 no ) USE_X_TOOLKIT=none ;;
9976 * ) USE_X_TOOLKIT=maybe ;;
9977 esac
9979 nextstep | none )
9980 HAVE_X_WINDOWS=no
9981 HAVE_X11=no
9982 USE_X_TOOLKIT=none
9984 esac
9986 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9987 # Extract the first word of "X", so it can be a program name with args.
9988 set dummy X; ac_word=$2
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990 $as_echo_n "checking for $ac_word... " >&6; }
9991 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 if test -n "$HAVE_XSERVER"; then
9995 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9996 else
9997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998 for as_dir in $PATH
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10004 ac_cv_prog_HAVE_XSERVER="true"
10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 break 2
10008 done
10009 done
10010 IFS=$as_save_IFS
10012 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10015 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10016 if test -n "$HAVE_XSERVER"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10018 $as_echo "$HAVE_XSERVER" >&6; }
10019 else
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10025 if test "$HAVE_XSERVER" = true ||
10026 test -n "$DISPLAY" ||
10027 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10028 as_fn_error "You seem to be running X, but no X development libraries
10029 were found. You should install the relevant development files for X
10030 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10031 sure you have development files for image handling, i.e.
10032 tiff, gif, jpeg, png and xpm.
10033 If you are sure you want Emacs compiled without X window support, pass
10034 --without-x
10035 to configure." "$LINENO" 5
10039 ### If we're using X11, we should use the X menu package.
10040 HAVE_MENUS=no
10041 case ${HAVE_X11} in
10042 yes ) HAVE_MENUS=yes ;;
10043 esac
10045 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10046 # Assume not, until told otherwise.
10047 GNU_MALLOC=yes
10048 doug_lea_malloc=yes
10049 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10050 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
10052 else
10053 doug_lea_malloc=no
10056 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10057 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
10059 else
10060 doug_lea_malloc=no
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10064 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10065 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070 extern void (* __after_morecore_hook)();
10072 main ()
10074 __after_morecore_hook = 0
10076 return 0;
10078 _ACEOF
10079 if ac_fn_c_try_link "$LINENO"; then :
10080 emacs_cv_var___after_morecore_hook=yes
10081 else
10082 emacs_cv_var___after_morecore_hook=no
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10088 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10089 if test $emacs_cv_var___after_morecore_hook = no; then
10090 doug_lea_malloc=no
10094 system_malloc=no
10095 case "$opsys" in
10096 ## darwin ld insists on the use of malloc routines in the System framework.
10097 darwin|sol2-10) system_malloc=yes ;;
10098 esac
10100 if test "${system_malloc}" = "yes"; then
10102 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10104 GNU_MALLOC=no
10105 GNU_MALLOC_reason="
10106 (The GNU allocators don't work with this system configuration.)"
10107 GMALLOC_OBJ=
10108 VMLIMIT_OBJ=
10109 else
10110 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10111 VMLIMIT_OBJ=vm-limit.o
10116 if test "$doug_lea_malloc" = "yes" ; then
10117 if test "$GNU_MALLOC" = yes ; then
10118 GNU_MALLOC_reason="
10119 (Using Doug Lea's new malloc from the GNU C Library.)"
10122 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10125 ## Use mmap directly for allocating larger buffers.
10126 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10127 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10128 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10129 case "$opsys" in
10130 gnu*) REL_ALLOC=no ;;
10131 esac
10134 if test x"${REL_ALLOC}" = x; then
10135 REL_ALLOC=${GNU_MALLOC}
10138 use_mmap_for_buffers=no
10139 case "$opsys" in
10140 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10141 esac
10146 for ac_header in $ac_header_list
10147 do :
10148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10149 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10151 eval as_val=\$$as_ac_Header
10152 if test "x$as_val" = x""yes; then :
10153 cat >>confdefs.h <<_ACEOF
10154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10155 _ACEOF
10159 done
10168 for ac_func in getpagesize
10169 do :
10170 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10171 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10172 cat >>confdefs.h <<_ACEOF
10173 #define HAVE_GETPAGESIZE 1
10174 _ACEOF
10177 done
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10180 $as_echo_n "checking for working mmap... " >&6; }
10181 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10182 $as_echo_n "(cached) " >&6
10183 else
10184 if test "$cross_compiling" = yes; then :
10185 ac_cv_func_mmap_fixed_mapped=no
10186 else
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 $ac_includes_default
10190 /* malloc might have been renamed as rpl_malloc. */
10191 #undef malloc
10193 /* Thanks to Mike Haertel and Jim Avera for this test.
10194 Here is a matrix of mmap possibilities:
10195 mmap private not fixed
10196 mmap private fixed at somewhere currently unmapped
10197 mmap private fixed at somewhere already mapped
10198 mmap shared not fixed
10199 mmap shared fixed at somewhere currently unmapped
10200 mmap shared fixed at somewhere already mapped
10201 For private mappings, we should verify that changes cannot be read()
10202 back from the file, nor mmap's back from the file at a different
10203 address. (There have been systems where private was not correctly
10204 implemented like the infamous i386 svr4.0, and systems where the
10205 VM page cache was not coherent with the file system buffer cache
10206 like early versions of FreeBSD and possibly contemporary NetBSD.)
10207 For shared mappings, we should conversely verify that changes get
10208 propagated back to all the places they're supposed to be.
10210 Grep wants private fixed already mapped.
10211 The main things grep needs to know about mmap are:
10212 * does it exist and is it safe to write into the mmap'd area
10213 * how to use it (BSD variants) */
10215 #include <fcntl.h>
10216 #include <sys/mman.h>
10218 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10219 char *malloc ();
10220 #endif
10222 /* This mess was copied from the GNU getpagesize.h. */
10223 #ifndef HAVE_GETPAGESIZE
10224 # ifdef _SC_PAGESIZE
10225 # define getpagesize() sysconf(_SC_PAGESIZE)
10226 # else /* no _SC_PAGESIZE */
10227 # ifdef HAVE_SYS_PARAM_H
10228 # include <sys/param.h>
10229 # ifdef EXEC_PAGESIZE
10230 # define getpagesize() EXEC_PAGESIZE
10231 # else /* no EXEC_PAGESIZE */
10232 # ifdef NBPG
10233 # define getpagesize() NBPG * CLSIZE
10234 # ifndef CLSIZE
10235 # define CLSIZE 1
10236 # endif /* no CLSIZE */
10237 # else /* no NBPG */
10238 # ifdef NBPC
10239 # define getpagesize() NBPC
10240 # else /* no NBPC */
10241 # ifdef PAGESIZE
10242 # define getpagesize() PAGESIZE
10243 # endif /* PAGESIZE */
10244 # endif /* no NBPC */
10245 # endif /* no NBPG */
10246 # endif /* no EXEC_PAGESIZE */
10247 # else /* no HAVE_SYS_PARAM_H */
10248 # define getpagesize() 8192 /* punt totally */
10249 # endif /* no HAVE_SYS_PARAM_H */
10250 # endif /* no _SC_PAGESIZE */
10252 #endif /* no HAVE_GETPAGESIZE */
10255 main ()
10257 char *data, *data2, *data3;
10258 const char *cdata2;
10259 int i, pagesize;
10260 int fd, fd2;
10262 pagesize = getpagesize ();
10264 /* First, make a file with some known garbage in it. */
10265 data = (char *) malloc (pagesize);
10266 if (!data)
10267 return 1;
10268 for (i = 0; i < pagesize; ++i)
10269 *(data + i) = rand ();
10270 umask (0);
10271 fd = creat ("conftest.mmap", 0600);
10272 if (fd < 0)
10273 return 2;
10274 if (write (fd, data, pagesize) != pagesize)
10275 return 3;
10276 close (fd);
10278 /* Next, check that the tail of a page is zero-filled. File must have
10279 non-zero length, otherwise we risk SIGBUS for entire page. */
10280 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10281 if (fd2 < 0)
10282 return 4;
10283 cdata2 = "";
10284 if (write (fd2, cdata2, 1) != 1)
10285 return 5;
10286 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10287 if (data2 == MAP_FAILED)
10288 return 6;
10289 for (i = 0; i < pagesize; ++i)
10290 if (*(data2 + i))
10291 return 7;
10292 close (fd2);
10293 if (munmap (data2, pagesize))
10294 return 8;
10296 /* Next, try to mmap the file at a fixed address which already has
10297 something else allocated at it. If we can, also make sure that
10298 we see the same garbage. */
10299 fd = open ("conftest.mmap", O_RDWR);
10300 if (fd < 0)
10301 return 9;
10302 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10303 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10304 return 10;
10305 for (i = 0; i < pagesize; ++i)
10306 if (*(data + i) != *(data2 + i))
10307 return 11;
10309 /* Finally, make sure that changes to the mapped area do not
10310 percolate back to the file as seen by read(). (This is a bug on
10311 some variants of i386 svr4.0.) */
10312 for (i = 0; i < pagesize; ++i)
10313 *(data2 + i) = *(data2 + i) + 1;
10314 data3 = (char *) malloc (pagesize);
10315 if (!data3)
10316 return 12;
10317 if (read (fd, data3, pagesize) != pagesize)
10318 return 13;
10319 for (i = 0; i < pagesize; ++i)
10320 if (*(data + i) != *(data3 + i))
10321 return 14;
10322 close (fd);
10323 return 0;
10325 _ACEOF
10326 if ac_fn_c_try_run "$LINENO"; then :
10327 ac_cv_func_mmap_fixed_mapped=yes
10328 else
10329 ac_cv_func_mmap_fixed_mapped=no
10331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10332 conftest.$ac_objext conftest.beam conftest.$ac_ext
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10337 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10338 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10340 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10343 rm -f conftest.mmap conftest.txt
10345 if test $use_mmap_for_buffers = yes; then
10347 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10349 REL_ALLOC=no
10352 LIBS="$LIBS_SYSTEM $LIBS"
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10355 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10356 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-ldnet $LIBS"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10367 #ifdef __cplusplus
10368 extern "C"
10369 #endif
10370 char dnet_ntoa ();
10372 main ()
10374 return dnet_ntoa ();
10376 return 0;
10378 _ACEOF
10379 if ac_fn_c_try_link "$LINENO"; then :
10380 ac_cv_lib_dnet_dnet_ntoa=yes
10381 else
10382 ac_cv_lib_dnet_dnet_ntoa=no
10384 rm -f core conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10389 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10390 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10391 cat >>confdefs.h <<_ACEOF
10392 #define HAVE_LIBDNET 1
10393 _ACEOF
10395 LIBS="-ldnet $LIBS"
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10401 $as_echo_n "checking for main in -lXbsd... " >&6; }
10402 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 ac_check_lib_save_LIBS=$LIBS
10406 LIBS="-lXbsd $LIBS"
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10412 main ()
10414 return main ();
10416 return 0;
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"; then :
10420 ac_cv_lib_Xbsd_main=yes
10421 else
10422 ac_cv_lib_Xbsd_main=no
10424 rm -f core conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10426 LIBS=$ac_check_lib_save_LIBS
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10429 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10430 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10431 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10435 LIB_PTHREAD=
10436 for ac_header in pthread.h
10437 do :
10438 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10439 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10440 cat >>confdefs.h <<_ACEOF
10441 #define HAVE_PTHREAD_H 1
10442 _ACEOF
10446 done
10448 if test "$ac_cv_header_pthread_h"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10450 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10451 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-lpthread $LIBS"
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10459 /* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
10462 #ifdef __cplusplus
10463 extern "C"
10464 #endif
10465 char pthread_self ();
10467 main ()
10469 return pthread_self ();
10471 return 0;
10473 _ACEOF
10474 if ac_fn_c_try_link "$LINENO"; then :
10475 ac_cv_lib_pthread_pthread_self=yes
10476 else
10477 ac_cv_lib_pthread_pthread_self=no
10479 rm -f core conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10484 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10485 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10486 HAVE_PTHREAD=yes
10490 if test "$HAVE_PTHREAD" = yes; then
10491 case "${canonical}" in
10492 *-hpux*) ;;
10493 *) LIB_PTHREAD="-lpthread" ;;
10494 esac
10496 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10502 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10503 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-lpthreads $LIBS"
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10511 /* Override any GCC internal prototype to avoid an error.
10512 Use char because int might match the return type of a GCC
10513 builtin and then its argument prototype would still apply. */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 char cma_open ();
10519 main ()
10521 return cma_open ();
10523 return 0;
10525 _ACEOF
10526 if ac_fn_c_try_link "$LINENO"; then :
10527 ac_cv_lib_pthreads_cma_open=yes
10528 else
10529 ac_cv_lib_pthreads_cma_open=no
10531 rm -f core conftest.err conftest.$ac_objext \
10532 conftest$ac_exeext conftest.$ac_ext
10533 LIBS=$ac_check_lib_save_LIBS
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10536 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10537 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10538 cat >>confdefs.h <<_ACEOF
10539 #define HAVE_LIBPTHREADS 1
10540 _ACEOF
10542 LIBS="-lpthreads $LIBS"
10547 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10548 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10549 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10550 ## added to LIBS in configure would never contain the pthreads part,
10551 ## but the value used in Makefiles might. FIXME?
10553 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10554 ## be harmless on older versions of X where it happens to exist.
10555 test "$opsys" = "aix4-2" && \
10556 test $ac_cv_lib_pthreads_cma_open = yes && \
10557 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10560 case ${host_os} in
10561 aix*)
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10563 $as_echo_n "checking for -bbigtoc option... " >&6; }
10564 if test "${gdb_cv_bigtoc+set}" = set; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10568 case $GCC in
10569 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10570 *) gdb_cv_bigtoc=-bbigtoc ;;
10571 esac
10573 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10578 main ()
10580 int i;
10582 return 0;
10584 _ACEOF
10585 if ac_fn_c_try_link "$LINENO"; then :
10587 else
10588 gdb_cv_bigtoc=
10590 rm -f core conftest.err conftest.$ac_objext \
10591 conftest$ac_exeext conftest.$ac_ext
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10595 $as_echo "$gdb_cv_bigtoc" >&6; }
10597 esac
10599 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10600 # used for the tests that follow. We set them back to REAL_CFLAGS and
10601 # REAL_CPPFLAGS later on.
10603 REAL_CFLAGS="$CFLAGS"
10604 REAL_CPPFLAGS="$CPPFLAGS"
10606 if test "${HAVE_X11}" = "yes"; then
10607 DEFS="$C_SWITCH_X_SITE $DEFS"
10608 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10609 LIBS="-lX11 $LIBS"
10610 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10611 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10613 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10614 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10615 # but it's more convenient here to set LD_RUN_PATH
10616 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10617 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10618 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10619 export LD_RUN_PATH
10622 if test "${opsys}" = "gnu-linux"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10624 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10629 main ()
10631 XOpenDisplay ("foo");
10633 return 0;
10635 _ACEOF
10636 if ac_fn_c_try_link "$LINENO"; then :
10637 xgnu_linux_first_failure=no
10638 else
10639 xgnu_linux_first_failure=yes
10641 rm -f core conftest.err conftest.$ac_objext \
10642 conftest$ac_exeext conftest.$ac_ext
10643 if test "${xgnu_linux_first_failure}" = "yes"; then
10644 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10645 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10646 OLD_CPPFLAGS="$CPPFLAGS"
10647 OLD_LIBS="$LIBS"
10648 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10649 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10650 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10651 LIBS="$LIBS -b i486-linuxaout"
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10656 main ()
10658 XOpenDisplay ("foo");
10660 return 0;
10662 _ACEOF
10663 if ac_fn_c_try_link "$LINENO"; then :
10664 xgnu_linux_second_failure=no
10665 else
10666 xgnu_linux_second_failure=yes
10668 rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670 if test "${xgnu_linux_second_failure}" = "yes"; then
10671 # If we get the same failure with -b, there is no use adding -b.
10672 # So take it out. This plays safe.
10673 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10674 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10675 CPPFLAGS="$OLD_CPPFLAGS"
10676 LIBS="$OLD_LIBS"
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10679 else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681 $as_echo "yes" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10689 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10690 # header files included from there.
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10692 $as_echo_n "checking for Xkb... " >&6; }
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 #include <X11/Xlib.h>
10696 #include <X11/XKBlib.h>
10698 main ()
10700 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10702 return 0;
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"; then :
10706 emacs_xkb=yes
10707 else
10708 emacs_xkb=no
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10713 $as_echo "$emacs_xkb" >&6; }
10714 if test $emacs_xkb = yes; then
10716 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10720 for ac_func in XrmSetDatabase XScreenResourceString \
10721 XScreenNumberOfScreen XSetWMProtocols
10722 do :
10723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10725 eval as_val=\$$as_ac_var
10726 if test "x$as_val" = x""yes; then :
10727 cat >>confdefs.h <<_ACEOF
10728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10729 _ACEOF
10732 done
10736 if test "${window_system}" = "x11"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10738 $as_echo_n "checking X11 version 6... " >&6; }
10739 if test "${emacs_cv_x11_version_6+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 #include <X11/Xlib.h>
10746 main ()
10748 #if XlibSpecificationRelease < 6
10749 fail;
10750 #endif
10753 return 0;
10755 _ACEOF
10756 if ac_fn_c_try_link "$LINENO"; then :
10757 emacs_cv_x11_version_6=yes
10758 else
10759 emacs_cv_x11_version_6=no
10761 rm -f core conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10765 if test $emacs_cv_x11_version_6 = yes; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10767 $as_echo "6 or newer" >&6; }
10769 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10772 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10774 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10775 ## XIM support.
10776 case "$opsys" in
10777 sol2-*) : ;;
10779 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10782 esac
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10785 $as_echo "before 6" >&6; }
10790 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10791 HAVE_RSVG=no
10792 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10793 if test "${with_rsvg}" != "no"; then
10794 RSVG_REQUIRED=2.11.0
10795 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10798 succeeded=no
10800 # Extract the first word of "pkg-config", so it can be a program name with args.
10801 set dummy pkg-config; ac_word=$2
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10803 $as_echo_n "checking for $ac_word... " >&6; }
10804 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10807 case $PKG_CONFIG in
10808 [\\/]* | ?:[\\/]*)
10809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813 for as_dir in $PATH
10815 IFS=$as_save_IFS
10816 test -z "$as_dir" && as_dir=.
10817 for ac_exec_ext in '' $ac_executable_extensions; do
10818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10819 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10821 break 2
10823 done
10824 done
10825 IFS=$as_save_IFS
10827 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10829 esac
10831 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10832 if test -n "$PKG_CONFIG"; then
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10834 $as_echo "$PKG_CONFIG" >&6; }
10835 else
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837 $as_echo "no" >&6; }
10842 if test "$PKG_CONFIG" = "no" ; then
10844 else
10845 PKG_CONFIG_MIN_VERSION=0.9.0
10846 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10848 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10850 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10852 $as_echo "yes" >&6; }
10853 succeeded=yes
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10856 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10857 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10859 $as_echo "$RSVG_CFLAGS" >&6; }
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10862 $as_echo_n "checking RSVG_LIBS... " >&6; }
10863 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10865 $as_echo "$RSVG_LIBS" >&6; }
10866 else
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868 $as_echo "no" >&6; }
10869 RSVG_CFLAGS=""
10870 RSVG_LIBS=""
10871 ## If we have a custom action on failure, don't print errors, but
10872 ## do set a variable so people can do so.
10873 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10879 else
10880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10885 if test $succeeded = yes; then
10886 HAVE_RSVG=yes
10887 else
10894 if test $HAVE_RSVG = yes; then
10896 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10898 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10899 LIBS="$RSVG_LIBS $LIBS"
10904 HAVE_IMAGEMAGICK=no
10905 if test "${HAVE_X11}" = "yes"; then
10906 if test "${with_imagemagick}" != "no"; then
10907 ## 6.2.8 is the earliest version known to work, but earlier versions
10908 ## might work - let us know if you find one.
10909 ## 6.0.7 does not work. See bug#7955.
10910 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10912 succeeded=no
10914 # Extract the first word of "pkg-config", so it can be a program name with args.
10915 set dummy pkg-config; ac_word=$2
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10917 $as_echo_n "checking for $ac_word... " >&6; }
10918 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10919 $as_echo_n "(cached) " >&6
10920 else
10921 case $PKG_CONFIG in
10922 [\\/]* | ?:[\\/]*)
10923 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $PATH
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10933 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 break 2
10937 done
10938 done
10939 IFS=$as_save_IFS
10941 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10943 esac
10945 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10946 if test -n "$PKG_CONFIG"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10948 $as_echo "$PKG_CONFIG" >&6; }
10949 else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10956 if test "$PKG_CONFIG" = "no" ; then
10958 else
10959 PKG_CONFIG_MIN_VERSION=0.9.0
10960 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10962 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10964 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10966 $as_echo "yes" >&6; }
10967 succeeded=yes
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10970 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10971 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10973 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10976 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10977 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10979 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10980 else
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982 $as_echo "no" >&6; }
10983 IMAGEMAGICK_CFLAGS=""
10984 IMAGEMAGICK_LIBS=""
10985 ## If we have a custom action on failure, don't print errors, but
10986 ## do set a variable so people can do so.
10987 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10993 else
10994 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10995 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10999 if test $succeeded = yes; then
11000 HAVE_IMAGEMAGICK=yes
11001 else
11008 if test $HAVE_IMAGEMAGICK = yes; then
11010 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11012 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11013 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11014 for ac_func in MagickExportImagePixels
11015 do :
11016 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11017 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11018 cat >>confdefs.h <<_ACEOF
11019 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11020 _ACEOF
11023 done
11030 HAVE_GTK=no
11031 GTK_OBJ=
11032 if test "${with_gtk3}" = "yes"; then
11033 GLIB_REQUIRED=2.28
11034 GTK_REQUIRED=3.0
11035 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11038 succeeded=no
11040 # Extract the first word of "pkg-config", so it can be a program name with args.
11041 set dummy pkg-config; ac_word=$2
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043 $as_echo_n "checking for $ac_word... " >&6; }
11044 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 case $PKG_CONFIG in
11048 [\\/]* | ?:[\\/]*)
11049 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $PATH
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11059 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 break 2
11063 done
11064 done
11065 IFS=$as_save_IFS
11067 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11069 esac
11071 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11072 if test -n "$PKG_CONFIG"; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11074 $as_echo "$PKG_CONFIG" >&6; }
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; }
11082 if test "$PKG_CONFIG" = "no" ; then
11083 pkg_check_gtk=no
11084 else
11085 PKG_CONFIG_MIN_VERSION=0.9.0
11086 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11088 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11090 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11092 $as_echo "yes" >&6; }
11093 succeeded=yes
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11096 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11097 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11099 $as_echo "$GTK_CFLAGS" >&6; }
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11102 $as_echo_n "checking GTK_LIBS... " >&6; }
11103 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11105 $as_echo "$GTK_LIBS" >&6; }
11106 else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11109 GTK_CFLAGS=""
11110 GTK_LIBS=""
11111 ## If we have a custom action on failure, don't print errors, but
11112 ## do set a variable so people can do so.
11113 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11119 else
11120 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11121 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11125 if test $succeeded = yes; then
11126 pkg_check_gtk=yes
11127 else
11128 pkg_check_gtk=no
11131 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11132 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11135 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11137 GTK_OBJ=emacsgtkfixed.o
11140 if test "$pkg_check_gtk" != "yes"; then
11141 HAVE_GTK=no
11142 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11143 GLIB_REQUIRED=2.6
11144 GTK_REQUIRED=2.6
11145 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11148 succeeded=no
11150 # Extract the first word of "pkg-config", so it can be a program name with args.
11151 set dummy pkg-config; ac_word=$2
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153 $as_echo_n "checking for $ac_word... " >&6; }
11154 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 case $PKG_CONFIG in
11158 [\\/]* | ?:[\\/]*)
11159 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11169 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11171 break 2
11173 done
11174 done
11175 IFS=$as_save_IFS
11177 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11179 esac
11181 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11182 if test -n "$PKG_CONFIG"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11184 $as_echo "$PKG_CONFIG" >&6; }
11185 else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11192 if test "$PKG_CONFIG" = "no" ; then
11193 pkg_check_gtk=no
11194 else
11195 PKG_CONFIG_MIN_VERSION=0.9.0
11196 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11198 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11200 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11202 $as_echo "yes" >&6; }
11203 succeeded=yes
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11206 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11207 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11209 $as_echo "$GTK_CFLAGS" >&6; }
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11212 $as_echo_n "checking GTK_LIBS... " >&6; }
11213 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11215 $as_echo "$GTK_LIBS" >&6; }
11216 else
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218 $as_echo "no" >&6; }
11219 GTK_CFLAGS=""
11220 GTK_LIBS=""
11221 ## If we have a custom action on failure, don't print errors, but
11222 ## do set a variable so people can do so.
11223 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11229 else
11230 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11231 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11235 if test $succeeded = yes; then
11236 pkg_check_gtk=yes
11237 else
11238 pkg_check_gtk=no
11241 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11242 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11247 if test x"$pkg_check_gtk" = xyes; then
11251 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11252 CFLAGS="$CFLAGS $GTK_CFLAGS"
11253 LIBS="$GTK_LIBS $LIBS"
11254 GTK_COMPILES=no
11255 for ac_func in gtk_main
11256 do :
11257 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11258 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_GTK_MAIN 1
11261 _ACEOF
11262 GTK_COMPILES=yes
11264 done
11266 if test "${GTK_COMPILES}" != "yes"; then
11267 if test "$USE_X_TOOLKIT" != "maybe"; then
11268 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11270 else
11271 HAVE_GTK=yes
11273 $as_echo "#define USE_GTK 1" >>confdefs.h
11275 GTK_OBJ="gtkutil.o $GTK_OBJ"
11276 USE_X_TOOLKIT=none
11277 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11281 closing open displays. This is no problem if you just use
11282 one display, but if you use more than one and close one of them
11283 Emacs may crash." >&5
11284 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11285 closing open displays. This is no problem if you just use
11286 one display, but if you use more than one and close one of them
11287 Emacs may crash." >&2;}
11288 sleep 3
11296 if test "${HAVE_GTK}" = "yes"; then
11298 if test "$with_toolkit_scroll_bars" != no; then
11299 with_toolkit_scroll_bars=yes
11302 HAVE_GTK_FILE_SELECTION=no
11303 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11304 #include <gtk/gtk.h>
11306 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11307 HAVE_GTK_FILE_SELECTION=yes
11308 else
11309 HAVE_GTK_FILE_SELECTION=no
11312 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11313 for ac_func in gtk_file_selection_new
11314 do :
11315 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11316 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11317 cat >>confdefs.h <<_ACEOF
11318 #define HAVE_GTK_FILE_SELECTION_NEW 1
11319 _ACEOF
11322 done
11327 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11328 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11329 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11330 gtk_orientable_set_orientation
11331 do :
11332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11334 eval as_val=\$$as_ac_var
11335 if test "x$as_val" = x""yes; then :
11336 cat >>confdefs.h <<_ACEOF
11337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11338 _ACEOF
11341 done
11346 HAVE_DBUS=no
11347 DBUS_OBJ=
11348 if test "${with_dbus}" = "yes"; then
11350 succeeded=no
11352 # Extract the first word of "pkg-config", so it can be a program name with args.
11353 set dummy pkg-config; ac_word=$2
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11355 $as_echo_n "checking for $ac_word... " >&6; }
11356 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11359 case $PKG_CONFIG in
11360 [\\/]* | ?:[\\/]*)
11361 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $PATH
11367 IFS=$as_save_IFS
11368 test -z "$as_dir" && as_dir=.
11369 for ac_exec_ext in '' $ac_executable_extensions; do
11370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11371 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 break 2
11375 done
11376 done
11377 IFS=$as_save_IFS
11379 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11381 esac
11383 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11384 if test -n "$PKG_CONFIG"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11386 $as_echo "$PKG_CONFIG" >&6; }
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11394 if test "$PKG_CONFIG" = "no" ; then
11395 HAVE_DBUS=no
11396 else
11397 PKG_CONFIG_MIN_VERSION=0.9.0
11398 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11400 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11402 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11404 $as_echo "yes" >&6; }
11405 succeeded=yes
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11408 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11409 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11411 $as_echo "$DBUS_CFLAGS" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11414 $as_echo_n "checking DBUS_LIBS... " >&6; }
11415 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11417 $as_echo "$DBUS_LIBS" >&6; }
11418 else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11421 DBUS_CFLAGS=""
11422 DBUS_LIBS=""
11423 ## If we have a custom action on failure, don't print errors, but
11424 ## do set a variable so people can do so.
11425 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11431 else
11432 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11433 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11437 if test $succeeded = yes; then
11438 HAVE_DBUS=yes
11439 else
11440 HAVE_DBUS=no
11443 if test "$HAVE_DBUS" = yes; then
11444 LIBS="$LIBS $DBUS_LIBS"
11446 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11448 for ac_func in dbus_watch_get_unix_fd
11449 do :
11450 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11451 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11452 cat >>confdefs.h <<_ACEOF
11453 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11454 _ACEOF
11457 done
11459 DBUS_OBJ=dbusbind.o
11464 HAVE_GSETTINGS=no
11465 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11467 succeeded=no
11469 # Extract the first word of "pkg-config", so it can be a program name with args.
11470 set dummy pkg-config; ac_word=$2
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 case $PKG_CONFIG in
11477 [\\/]* | ?:[\\/]*)
11478 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11488 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 break 2
11492 done
11493 done
11494 IFS=$as_save_IFS
11496 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11498 esac
11500 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11501 if test -n "$PKG_CONFIG"; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11503 $as_echo "$PKG_CONFIG" >&6; }
11504 else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11511 if test "$PKG_CONFIG" = "no" ; then
11512 HAVE_GSETTINGS=no
11513 else
11514 PKG_CONFIG_MIN_VERSION=0.9.0
11515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11517 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11519 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521 $as_echo "yes" >&6; }
11522 succeeded=yes
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11525 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11526 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11528 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11531 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11532 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11534 $as_echo "$GSETTINGS_LIBS" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 GSETTINGS_CFLAGS=""
11539 GSETTINGS_LIBS=""
11540 ## If we have a custom action on failure, don't print errors, but
11541 ## do set a variable so people can do so.
11542 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11548 else
11549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11554 if test $succeeded = yes; then
11555 HAVE_GSETTINGS=yes
11556 else
11557 HAVE_GSETTINGS=no
11560 if test "$HAVE_GSETTINGS" = "yes"; then
11562 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11564 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11565 SETTINGS_LIBS="$GSETTINGS_LIBS"
11569 HAVE_GCONF=no
11570 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11572 succeeded=no
11574 # Extract the first word of "pkg-config", so it can be a program name with args.
11575 set dummy pkg-config; ac_word=$2
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11577 $as_echo_n "checking for $ac_word... " >&6; }
11578 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 case $PKG_CONFIG in
11582 [\\/]* | ?:[\\/]*)
11583 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587 for as_dir in $PATH
11589 IFS=$as_save_IFS
11590 test -z "$as_dir" && as_dir=.
11591 for ac_exec_ext in '' $ac_executable_extensions; do
11592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11593 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11595 break 2
11597 done
11598 done
11599 IFS=$as_save_IFS
11601 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11603 esac
11605 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11606 if test -n "$PKG_CONFIG"; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11608 $as_echo "$PKG_CONFIG" >&6; }
11609 else
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 $as_echo "no" >&6; }
11616 if test "$PKG_CONFIG" = "no" ; then
11617 HAVE_GCONF=no
11618 else
11619 PKG_CONFIG_MIN_VERSION=0.9.0
11620 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11622 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11624 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626 $as_echo "yes" >&6; }
11627 succeeded=yes
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11630 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11631 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11633 $as_echo "$GCONF_CFLAGS" >&6; }
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11636 $as_echo_n "checking GCONF_LIBS... " >&6; }
11637 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11639 $as_echo "$GCONF_LIBS" >&6; }
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11643 GCONF_CFLAGS=""
11644 GCONF_LIBS=""
11645 ## If we have a custom action on failure, don't print errors, but
11646 ## do set a variable so people can do so.
11647 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11653 else
11654 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11655 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11659 if test $succeeded = yes; then
11660 HAVE_GCONF=yes
11661 else
11662 HAVE_GCONF=no
11665 if test "$HAVE_GCONF" = yes; then
11667 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11669 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11670 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11674 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11675 SAVE_CFLAGS="$CFLAGS"
11676 SAVE_LDFLAGS="$LDFLAGS"
11677 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11678 LDFLAGS="$SETTINGS_LIBS $LDFLAGS"
11679 for ac_func in g_type_init
11680 do :
11681 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11682 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11683 cat >>confdefs.h <<_ACEOF
11684 #define HAVE_G_TYPE_INIT 1
11685 _ACEOF
11688 done
11690 CFLAGS="$SAVE_CFLAGS"
11691 LDFLAGS="$SAVE_LDFLAGS"
11697 HAVE_LIBSELINUX=no
11698 LIBSELINUX_LIBS=
11699 if test "${with_selinux}" = "yes"; then
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11701 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11702 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 ac_check_lib_save_LIBS=$LIBS
11706 LIBS="-lselinux $LIBS"
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char lgetfilecon ();
11718 main ()
11720 return lgetfilecon ();
11722 return 0;
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"; then :
11726 ac_cv_lib_selinux_lgetfilecon=yes
11727 else
11728 ac_cv_lib_selinux_lgetfilecon=no
11730 rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_lib_save_LIBS
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11735 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11736 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11737 HAVE_LIBSELINUX=yes
11738 else
11739 HAVE_LIBSELINUX=no
11742 if test "$HAVE_LIBSELINUX" = yes; then
11744 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11746 LIBSELINUX_LIBS=-lselinux
11751 HAVE_GNUTLS=no
11752 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11753 if test "${with_gnutls}" = "yes" ; then
11755 succeeded=no
11757 # Extract the first word of "pkg-config", so it can be a program name with args.
11758 set dummy pkg-config; ac_word=$2
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11760 $as_echo_n "checking for $ac_word... " >&6; }
11761 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11762 $as_echo_n "(cached) " >&6
11763 else
11764 case $PKG_CONFIG in
11765 [\\/]* | ?:[\\/]*)
11766 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11772 IFS=$as_save_IFS
11773 test -z "$as_dir" && as_dir=.
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11776 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11778 break 2
11780 done
11781 done
11782 IFS=$as_save_IFS
11784 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11786 esac
11788 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11789 if test -n "$PKG_CONFIG"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11791 $as_echo "$PKG_CONFIG" >&6; }
11792 else
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11799 if test "$PKG_CONFIG" = "no" ; then
11800 HAVE_GNUTLS=no
11801 else
11802 PKG_CONFIG_MIN_VERSION=0.9.0
11803 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11805 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11807 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11809 $as_echo "yes" >&6; }
11810 succeeded=yes
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11813 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11814 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11816 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11819 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11820 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11822 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11823 else
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11826 LIBGNUTLS_CFLAGS=""
11827 LIBGNUTLS_LIBS=""
11828 ## If we have a custom action on failure, don't print errors, but
11829 ## do set a variable so people can do so.
11830 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11836 else
11837 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11838 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11842 if test $succeeded = yes; then
11843 HAVE_GNUTLS=yes
11844 else
11845 HAVE_GNUTLS=no
11848 if test "${HAVE_GNUTLS}" = "yes"; then
11850 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11854 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11855 LIBS="$LIBGNUTLS_LIBS $LIBS"
11856 for ac_func in gnutls_certificate_set_verify_function
11857 do :
11858 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11859 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11860 cat >>confdefs.h <<_ACEOF
11861 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11862 _ACEOF
11863 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11865 done
11868 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11870 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11878 HAVE_XAW3D=no
11879 LUCID_LIBW=
11880 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11881 if test "$with_xaw3d" != no; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11883 $as_echo_n "checking for xaw3d... " >&6; }
11884 if test "${emacs_cv_xaw3d+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11890 #include <X11/Intrinsic.h>
11891 #include <X11/Xaw3d/Simple.h>
11893 main ()
11897 return 0;
11899 _ACEOF
11900 if ac_fn_c_try_link "$LINENO"; then :
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11902 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11903 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11904 $as_echo_n "(cached) " >&6
11905 else
11906 ac_check_lib_save_LIBS=$LIBS
11907 LIBS="-lXaw3d $LIBS"
11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h. */
11911 /* Override any GCC internal prototype to avoid an error.
11912 Use char because int might match the return type of a GCC
11913 builtin and then its argument prototype would still apply. */
11914 #ifdef __cplusplus
11915 extern "C"
11916 #endif
11917 char XawScrollbarSetThumb ();
11919 main ()
11921 return XawScrollbarSetThumb ();
11923 return 0;
11925 _ACEOF
11926 if ac_fn_c_try_link "$LINENO"; then :
11927 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11928 else
11929 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11931 rm -f core conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11936 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11937 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11938 emacs_cv_xaw3d=yes
11939 else
11940 emacs_cv_xaw3d=no
11943 else
11944 emacs_cv_xaw3d=no
11946 rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11950 else
11951 emacs_cv_xaw3d=no
11953 if test $emacs_cv_xaw3d = yes; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11955 $as_echo "yes; using Lucid toolkit" >&6; }
11956 USE_X_TOOLKIT=LUCID
11957 HAVE_XAW3D=yes
11958 LUCID_LIBW=-lXaw3d
11960 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11962 else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11966 $as_echo_n "checking for libXaw... " >&6; }
11967 if test "${emacs_cv_xaw+set}" = set; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11973 #include <X11/Intrinsic.h>
11974 #include <X11/Xaw/Simple.h>
11976 main ()
11980 return 0;
11982 _ACEOF
11983 if ac_fn_c_try_link "$LINENO"; then :
11984 emacs_cv_xaw=yes
11985 else
11986 emacs_cv_xaw=no
11988 rm -f core conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11992 if test $emacs_cv_xaw = yes; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11994 $as_echo "yes; using Lucid toolkit" >&6; }
11995 USE_X_TOOLKIT=LUCID
11996 LUCID_LIBW=-lXaw
11997 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11998 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11999 else
12000 as_fn_error "No X toolkit could be found.
12001 If you are sure you want Emacs compiled without an X toolkit, pass
12002 --with-x-toolkit=no
12003 to configure. Otherwise, install the development libraries for the toolkit
12004 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12009 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12011 LIBXTR6=
12012 if test "${USE_X_TOOLKIT}" != "none"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12014 $as_echo_n "checking X11 toolkit version... " >&6; }
12015 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020 #include <X11/Intrinsic.h>
12022 main ()
12024 #if XtSpecificationRelease < 6
12025 fail;
12026 #endif
12029 return 0;
12031 _ACEOF
12032 if ac_fn_c_try_link "$LINENO"; then :
12033 emacs_cv_x11_toolkit_version_6=yes
12034 else
12035 emacs_cv_x11_toolkit_version_6=no
12037 rm -f core conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12041 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12042 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12044 $as_echo "6 or newer" >&6; }
12046 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12048 LIBXTR6="-lSM -lICE"
12049 case "$opsys" in
12050 ## Use libw.a along with X11R6 Xt.
12051 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12052 esac
12053 else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12055 $as_echo "before 6" >&6; }
12058 OLDLIBS="$LIBS"
12059 if test x$HAVE_X11XTR6 = xyes; then
12060 LIBS="-lXt -lSM -lICE $LIBS"
12061 else
12062 LIBS="-lXt $LIBS"
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12065 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12066 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 ac_check_lib_save_LIBS=$LIBS
12070 LIBS="-lXmu $LIBS"
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12074 /* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12077 #ifdef __cplusplus
12078 extern "C"
12079 #endif
12080 char XmuConvertStandardSelection ();
12082 main ()
12084 return XmuConvertStandardSelection ();
12086 return 0;
12088 _ACEOF
12089 if ac_fn_c_try_link "$LINENO"; then :
12090 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12091 else
12092 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12094 rm -f core conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12096 LIBS=$ac_check_lib_save_LIBS
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12099 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12100 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12101 cat >>confdefs.h <<_ACEOF
12102 #define HAVE_LIBXMU 1
12103 _ACEOF
12105 LIBS="-lXmu $LIBS"
12109 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12113 LIBXMU=-lXmu
12114 case $opsys in
12115 ## These systems don't supply Xmu.
12116 hpux* | aix4-2 )
12117 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12119 esac
12122 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12123 if test "${HAVE_X11}" = "yes"; then
12124 if test "${USE_X_TOOLKIT}" != "none"; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12126 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12127 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 ac_check_lib_save_LIBS=$LIBS
12131 LIBS="-lXext $LIBS"
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12135 /* Override any GCC internal prototype to avoid an error.
12136 Use char because int might match the return type of a GCC
12137 builtin and then its argument prototype would still apply. */
12138 #ifdef __cplusplus
12139 extern "C"
12140 #endif
12141 char XShapeQueryExtension ();
12143 main ()
12145 return XShapeQueryExtension ();
12147 return 0;
12149 _ACEOF
12150 if ac_fn_c_try_link "$LINENO"; then :
12151 ac_cv_lib_Xext_XShapeQueryExtension=yes
12152 else
12153 ac_cv_lib_Xext_XShapeQueryExtension=no
12155 rm -f core conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12157 LIBS=$ac_check_lib_save_LIBS
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12160 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12161 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12162 cat >>confdefs.h <<_ACEOF
12163 #define HAVE_LIBXEXT 1
12164 _ACEOF
12166 LIBS="-lXext $LIBS"
12173 LIBXP=
12174 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12176 $as_echo_n "checking for Motif version 2.1... " >&6; }
12177 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182 #include <Xm/Xm.h>
12184 main ()
12186 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12187 int x = 5;
12188 #else
12189 Motif version prior to 2.1.
12190 #endif
12192 return 0;
12194 _ACEOF
12195 if ac_fn_c_try_compile "$LINENO"; then :
12196 emacs_cv_motif_version_2_1=yes
12197 else
12198 emacs_cv_motif_version_2_1=no
12200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12203 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12204 if test $emacs_cv_motif_version_2_1 = yes; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12206 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12207 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-lXp $LIBS"
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 char XpCreateContext ();
12223 main ()
12225 return XpCreateContext ();
12227 return 0;
12229 _ACEOF
12230 if ac_fn_c_try_link "$LINENO"; then :
12231 ac_cv_lib_Xp_XpCreateContext=yes
12232 else
12233 ac_cv_lib_Xp_XpCreateContext=no
12235 rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12240 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12241 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12242 LIBXP=-lXp
12245 else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12247 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12248 if test "${emacs_cv_lesstif+set}" = set; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 # We put this in CFLAGS temporarily to precede other -I options
12252 # that might be in CFLAGS temporarily.
12253 # We put this in CPPFLAGS where it precedes the other -I options.
12254 OLD_CPPFLAGS=$CPPFLAGS
12255 OLD_CFLAGS=$CFLAGS
12256 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12257 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12260 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12262 main ()
12264 int x = 5;
12266 return 0;
12268 _ACEOF
12269 if ac_fn_c_try_compile "$LINENO"; then :
12270 emacs_cv_lesstif=yes
12271 else
12272 emacs_cv_lesstif=no
12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12277 $as_echo "$emacs_cv_lesstif" >&6; }
12278 if test $emacs_cv_lesstif = yes; then
12279 # Make sure this -I option remains in CPPFLAGS after it is set
12280 # back to REAL_CPPFLAGS.
12281 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12282 # have those other -I options anyway. Ultimately, having this
12283 # directory ultimately in CPPFLAGS will be enough.
12284 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12285 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12286 else
12287 CFLAGS=$OLD_CFLAGS
12288 CPPFLAGS=$OLD_CPPFLAGS
12294 USE_TOOLKIT_SCROLL_BARS=no
12295 if test "${with_toolkit_scroll_bars}" != "no"; then
12296 if test "${USE_X_TOOLKIT}" != "none"; then
12297 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12298 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12300 HAVE_XAW3D=no
12301 USE_TOOLKIT_SCROLL_BARS=yes
12302 elif test "${HAVE_XAW3D}" = "yes"; then
12303 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12305 USE_TOOLKIT_SCROLL_BARS=yes
12307 elif test "${HAVE_GTK}" = "yes"; then
12308 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12310 USE_TOOLKIT_SCROLL_BARS=yes
12311 elif test "${HAVE_NS}" = "yes"; then
12312 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12314 USE_TOOLKIT_SCROLL_BARS=yes
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 #include <X11/Xlib.h>
12322 #include <X11/Xresource.h>
12324 main ()
12326 XIMProc callback;
12328 return 0;
12330 _ACEOF
12331 if ac_fn_c_try_compile "$LINENO"; then :
12332 HAVE_XIM=yes
12334 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12336 else
12337 HAVE_XIM=no
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 if test "${with_xim}" != "no"; then
12344 $as_echo "#define USE_XIM 1" >>confdefs.h
12349 if test "${HAVE_XIM}" != "no"; then
12350 late_CFLAGS=$CFLAGS
12351 if test "$GCC" = yes; then
12352 CFLAGS="$CFLAGS --pedantic-errors"
12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12357 #include <X11/Xlib.h>
12358 #include <X11/Xresource.h>
12360 main ()
12362 Display *display;
12363 XrmDatabase db;
12364 char *res_name;
12365 char *res_class;
12366 XIMProc callback;
12367 XPointer *client_data;
12368 #ifndef __GNUC__
12369 /* If we're not using GCC, it's probably not XFree86, and this is
12370 probably right, but we can't use something like --pedantic-errors. */
12371 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12372 char*, XIMProc, XPointer*);
12373 #endif
12374 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12375 client_data);
12377 return 0;
12379 _ACEOF
12380 if ac_fn_c_try_compile "$LINENO"; then :
12381 emacs_cv_arg6_star=yes
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 if test "$emacs_cv_arg6_star" = yes; then
12385 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12387 else
12388 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12391 CFLAGS=$late_CFLAGS
12394 ### Start of font-backend (under any platform) section.
12395 # (nothing here yet -- this is a placeholder)
12396 ### End of font-backend (under any platform) section.
12398 ### Start of font-backend (under X11) section.
12399 if test "${HAVE_X11}" = "yes"; then
12401 succeeded=no
12403 # Extract the first word of "pkg-config", so it can be a program name with args.
12404 set dummy pkg-config; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 case $PKG_CONFIG in
12411 [\\/]* | ?:[\\/]*)
12412 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $PATH
12418 IFS=$as_save_IFS
12419 test -z "$as_dir" && as_dir=.
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12422 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12424 break 2
12426 done
12427 done
12428 IFS=$as_save_IFS
12430 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12432 esac
12434 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12435 if test -n "$PKG_CONFIG"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12437 $as_echo "$PKG_CONFIG" >&6; }
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12445 if test "$PKG_CONFIG" = "no" ; then
12446 HAVE_FC=no
12447 else
12448 PKG_CONFIG_MIN_VERSION=0.9.0
12449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12451 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12453 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12455 $as_echo "yes" >&6; }
12456 succeeded=yes
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12459 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12460 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12462 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12465 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12466 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12468 $as_echo "$FONTCONFIG_LIBS" >&6; }
12469 else
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 $as_echo "no" >&6; }
12472 FONTCONFIG_CFLAGS=""
12473 FONTCONFIG_LIBS=""
12474 ## If we have a custom action on failure, don't print errors, but
12475 ## do set a variable so people can do so.
12476 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12482 else
12483 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12484 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12488 if test $succeeded = yes; then
12489 HAVE_FC=yes
12490 else
12491 HAVE_FC=no
12495 ## Use -lXft if available, unless `--with-xft=no'.
12496 HAVE_XFT=maybe
12497 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12498 with_xft="no";
12500 if test "x${with_xft}" != "xno"; then
12503 succeeded=no
12505 # Extract the first word of "pkg-config", so it can be a program name with args.
12506 set dummy pkg-config; ac_word=$2
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12508 $as_echo_n "checking for $ac_word... " >&6; }
12509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12512 case $PKG_CONFIG in
12513 [\\/]* | ?:[\\/]*)
12514 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 for ac_exec_ext in '' $ac_executable_extensions; do
12523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12524 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12526 break 2
12528 done
12529 done
12530 IFS=$as_save_IFS
12532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12534 esac
12536 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12537 if test -n "$PKG_CONFIG"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12539 $as_echo "$PKG_CONFIG" >&6; }
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12547 if test "$PKG_CONFIG" = "no" ; then
12548 HAVE_XFT=no
12549 else
12550 PKG_CONFIG_MIN_VERSION=0.9.0
12551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12553 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12555 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12557 $as_echo "yes" >&6; }
12558 succeeded=yes
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12561 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12562 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12564 $as_echo "$XFT_CFLAGS" >&6; }
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12567 $as_echo_n "checking XFT_LIBS... " >&6; }
12568 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12570 $as_echo "$XFT_LIBS" >&6; }
12571 else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 $as_echo "no" >&6; }
12574 XFT_CFLAGS=""
12575 XFT_LIBS=""
12576 ## If we have a custom action on failure, don't print errors, but
12577 ## do set a variable so people can do so.
12578 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12584 else
12585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12590 if test $succeeded = yes; then
12592 else
12593 HAVE_XFT=no
12596 ## Because xftfont.c uses XRenderQueryExtension, we also
12597 ## need to link to -lXrender.
12598 HAVE_XRENDER=no
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12600 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12601 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 ac_check_lib_save_LIBS=$LIBS
12605 LIBS="-lXrender $LIBS"
12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12609 /* Override any GCC internal prototype to avoid an error.
12610 Use char because int might match the return type of a GCC
12611 builtin and then its argument prototype would still apply. */
12612 #ifdef __cplusplus
12613 extern "C"
12614 #endif
12615 char XRenderQueryExtension ();
12617 main ()
12619 return XRenderQueryExtension ();
12621 return 0;
12623 _ACEOF
12624 if ac_fn_c_try_link "$LINENO"; then :
12625 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12626 else
12627 ac_cv_lib_Xrender_XRenderQueryExtension=no
12629 rm -f core conftest.err conftest.$ac_objext \
12630 conftest$ac_exeext conftest.$ac_ext
12631 LIBS=$ac_check_lib_save_LIBS
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12634 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12635 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12636 HAVE_XRENDER=yes
12639 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12640 OLD_CPPFLAGS="$CPPFLAGS"
12641 OLD_CFLAGS="$CFLAGS"
12642 OLD_LIBS="$LIBS"
12643 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12644 CFLAGS="$CFLAGS $XFT_CFLAGS"
12645 XFT_LIBS="-lXrender $XFT_LIBS"
12646 LIBS="$XFT_LIBS $LIBS"
12647 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12648 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12650 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12651 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 ac_check_lib_save_LIBS=$LIBS
12655 LIBS="-lXft $XFT_LIBS $LIBS"
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12659 /* Override any GCC internal prototype to avoid an error.
12660 Use char because int might match the return type of a GCC
12661 builtin and then its argument prototype would still apply. */
12662 #ifdef __cplusplus
12663 extern "C"
12664 #endif
12665 char XftFontOpen ();
12667 main ()
12669 return XftFontOpen ();
12671 return 0;
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675 ac_cv_lib_Xft_XftFontOpen=yes
12676 else
12677 ac_cv_lib_Xft_XftFontOpen=no
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12684 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12685 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12686 HAVE_XFT=yes
12693 if test "${HAVE_XFT}" = "yes"; then
12695 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12698 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12699 else
12700 CPPFLAGS="$OLD_CPPFLAGS"
12701 CFLAGS="$OLD_CFLAGS"
12702 LIBS="$OLD_LIBS"
12703 fi # "${HAVE_XFT}" = "yes"
12704 fi # "$HAVE_XFT" != no
12705 fi # "x${with_xft}" != "xno"
12707 ## We used to allow building with FreeType and without Xft.
12708 ## However, the ftx font backend driver is not in good shape.
12709 if test "$HAVE_XFT" != "yes"; then
12710 HAVE_XFT=no
12711 HAVE_FREETYPE=no
12712 else
12714 succeeded=no
12716 # Extract the first word of "pkg-config", so it can be a program name with args.
12717 set dummy pkg-config; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 case $PKG_CONFIG in
12724 [\\/]* | ?:[\\/]*)
12725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729 for as_dir in $PATH
12731 IFS=$as_save_IFS
12732 test -z "$as_dir" && as_dir=.
12733 for ac_exec_ext in '' $ac_executable_extensions; do
12734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737 break 2
12739 done
12740 done
12741 IFS=$as_save_IFS
12743 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12745 esac
12747 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12748 if test -n "$PKG_CONFIG"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12750 $as_echo "$PKG_CONFIG" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12758 if test "$PKG_CONFIG" = "no" ; then
12759 HAVE_FREETYPE=no
12760 else
12761 PKG_CONFIG_MIN_VERSION=0.9.0
12762 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12764 $as_echo_n "checking for freetype2... " >&6; }
12766 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12768 $as_echo "yes" >&6; }
12769 succeeded=yes
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12772 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12773 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12775 $as_echo "$FREETYPE_CFLAGS" >&6; }
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12778 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12779 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12781 $as_echo "$FREETYPE_LIBS" >&6; }
12782 else
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12785 FREETYPE_CFLAGS=""
12786 FREETYPE_LIBS=""
12787 ## If we have a custom action on failure, don't print errors, but
12788 ## do set a variable so people can do so.
12789 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12795 else
12796 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12797 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12801 if test $succeeded = yes; then
12802 HAVE_FREETYPE=yes
12803 else
12804 HAVE_FREETYPE=no
12808 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12811 HAVE_LIBOTF=no
12812 if test "${HAVE_FREETYPE}" = "yes"; then
12814 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12816 if test "${with_libotf}" != "no"; then
12818 succeeded=no
12820 # Extract the first word of "pkg-config", so it can be a program name with args.
12821 set dummy pkg-config; ac_word=$2
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823 $as_echo_n "checking for $ac_word... " >&6; }
12824 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 case $PKG_CONFIG in
12828 [\\/]* | ?:[\\/]*)
12829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12833 for as_dir in $PATH
12835 IFS=$as_save_IFS
12836 test -z "$as_dir" && as_dir=.
12837 for ac_exec_ext in '' $ac_executable_extensions; do
12838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12839 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12841 break 2
12843 done
12844 done
12845 IFS=$as_save_IFS
12847 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12849 esac
12851 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12852 if test -n "$PKG_CONFIG"; then
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12854 $as_echo "$PKG_CONFIG" >&6; }
12855 else
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 $as_echo "no" >&6; }
12862 if test "$PKG_CONFIG" = "no" ; then
12863 HAVE_LIBOTF=no
12864 else
12865 PKG_CONFIG_MIN_VERSION=0.9.0
12866 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12868 $as_echo_n "checking for libotf... " >&6; }
12870 if $PKG_CONFIG --exists "libotf" 2>&5; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12872 $as_echo "yes" >&6; }
12873 succeeded=yes
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12876 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12877 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12879 $as_echo "$LIBOTF_CFLAGS" >&6; }
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12882 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12883 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12885 $as_echo "$LIBOTF_LIBS" >&6; }
12886 else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12889 LIBOTF_CFLAGS=""
12890 LIBOTF_LIBS=""
12891 ## If we have a custom action on failure, don't print errors, but
12892 ## do set a variable so people can do so.
12893 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12899 else
12900 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12901 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12905 if test $succeeded = yes; then
12906 HAVE_LIBOTF=yes
12907 else
12908 HAVE_LIBOTF=no
12911 if test "$HAVE_LIBOTF" = "yes"; then
12913 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12916 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12917 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12918 $as_echo_n "(cached) " >&6
12919 else
12920 ac_check_lib_save_LIBS=$LIBS
12921 LIBS="-lotf $LIBS"
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12925 /* Override any GCC internal prototype to avoid an error.
12926 Use char because int might match the return type of a GCC
12927 builtin and then its argument prototype would still apply. */
12928 #ifdef __cplusplus
12929 extern "C"
12930 #endif
12931 char OTF_get_variation_glyphs ();
12933 main ()
12935 return OTF_get_variation_glyphs ();
12937 return 0;
12939 _ACEOF
12940 if ac_fn_c_try_link "$LINENO"; then :
12941 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12942 else
12943 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12945 rm -f core conftest.err conftest.$ac_objext \
12946 conftest$ac_exeext conftest.$ac_ext
12947 LIBS=$ac_check_lib_save_LIBS
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12950 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12951 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12952 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12953 else
12954 HAVE_OTF_GET_VARIATION_GLYPHS=no
12957 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12959 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12966 HAVE_M17N_FLT=no
12967 if test "${HAVE_LIBOTF}" = yes; then
12968 if test "${with_m17n_flt}" != "no"; then
12970 succeeded=no
12972 # Extract the first word of "pkg-config", so it can be a program name with args.
12973 set dummy pkg-config; ac_word=$2
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12975 $as_echo_n "checking for $ac_word... " >&6; }
12976 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12977 $as_echo_n "(cached) " >&6
12978 else
12979 case $PKG_CONFIG in
12980 [\\/]* | ?:[\\/]*)
12981 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985 for as_dir in $PATH
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12991 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 break 2
12995 done
12996 done
12997 IFS=$as_save_IFS
12999 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13001 esac
13003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13004 if test -n "$PKG_CONFIG"; then
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13006 $as_echo "$PKG_CONFIG" >&6; }
13007 else
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009 $as_echo "no" >&6; }
13014 if test "$PKG_CONFIG" = "no" ; then
13015 HAVE_M17N_FLT=no
13016 else
13017 PKG_CONFIG_MIN_VERSION=0.9.0
13018 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13020 $as_echo_n "checking for m17n-flt... " >&6; }
13022 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13024 $as_echo "yes" >&6; }
13025 succeeded=yes
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
13028 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13029 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
13031 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
13034 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13035 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
13037 $as_echo "$M17N_FLT_LIBS" >&6; }
13038 else
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 $as_echo "no" >&6; }
13041 M17N_FLT_CFLAGS=""
13042 M17N_FLT_LIBS=""
13043 ## If we have a custom action on failure, don't print errors, but
13044 ## do set a variable so people can do so.
13045 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13051 else
13052 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13053 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13057 if test $succeeded = yes; then
13058 HAVE_M17N_FLT=yes
13059 else
13060 HAVE_M17N_FLT=no
13063 if test "$HAVE_M17N_FLT" = "yes"; then
13065 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13070 else
13071 HAVE_XFT=no
13072 HAVE_FREETYPE=no
13073 HAVE_LIBOTF=no
13074 HAVE_M17N_FLT=no
13077 ### End of font-backend (under X11) section.
13088 ### Use -lXpm if available, unless `--with-xpm=no'.
13089 HAVE_XPM=no
13090 LIBXPM=
13091 if test "${HAVE_X11}" = "yes"; then
13092 if test "${with_xpm}" != "no"; then
13093 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13094 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13096 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13097 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 ac_check_lib_save_LIBS=$LIBS
13101 LIBS="-lXpm -lX11 $LIBS"
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13105 /* Override any GCC internal prototype to avoid an error.
13106 Use char because int might match the return type of a GCC
13107 builtin and then its argument prototype would still apply. */
13108 #ifdef __cplusplus
13109 extern "C"
13110 #endif
13111 char XpmReadFileToPixmap ();
13113 main ()
13115 return XpmReadFileToPixmap ();
13117 return 0;
13119 _ACEOF
13120 if ac_fn_c_try_link "$LINENO"; then :
13121 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13122 else
13123 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13125 rm -f core conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13127 LIBS=$ac_check_lib_save_LIBS
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13130 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13131 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13132 HAVE_XPM=yes
13138 if test "${HAVE_XPM}" = "yes"; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13140 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13143 #include "X11/xpm.h"
13144 #ifndef XpmReturnAllocPixels
13145 no_return_alloc_pixels
13146 #endif
13148 _ACEOF
13149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13150 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13151 HAVE_XPM=no
13152 else
13153 HAVE_XPM=yes
13155 rm -f conftest*
13158 if test "${HAVE_XPM}" = "yes"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13160 $as_echo "yes" >&6; }
13161 else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13168 if test "${HAVE_XPM}" = "yes"; then
13170 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13172 LIBXPM=-lXpm
13177 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13178 HAVE_JPEG=no
13179 LIBJPEG=
13180 if test "${HAVE_X11}" = "yes"; then
13181 if test "${with_jpeg}" != "no"; then
13182 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13183 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13185 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13186 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 ac_check_lib_save_LIBS=$LIBS
13190 LIBS="-ljpeg $LIBS"
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13194 /* Override any GCC internal prototype to avoid an error.
13195 Use char because int might match the return type of a GCC
13196 builtin and then its argument prototype would still apply. */
13197 #ifdef __cplusplus
13198 extern "C"
13199 #endif
13200 char jpeg_destroy_compress ();
13202 main ()
13204 return jpeg_destroy_compress ();
13206 return 0;
13208 _ACEOF
13209 if ac_fn_c_try_link "$LINENO"; then :
13210 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13211 else
13212 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13214 rm -f core conftest.err conftest.$ac_objext \
13215 conftest$ac_exeext conftest.$ac_ext
13216 LIBS=$ac_check_lib_save_LIBS
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13219 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13220 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13221 HAVE_JPEG=yes
13229 if test "${HAVE_JPEG}" = "yes"; then
13230 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234 #include <jpeglib.h>
13235 version=JPEG_LIB_VERSION
13237 _ACEOF
13238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13239 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13240 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13242 else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13244 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13245 HAVE_JPEG=no
13247 rm -f conftest*
13250 if test "${HAVE_JPEG}" = "yes"; then
13251 LIBJPEG=-ljpeg
13256 ### Use -lpng if available, unless `--with-png=no'.
13257 HAVE_PNG=no
13258 LIBPNG=
13259 if test "${HAVE_X11}" = "yes"; then
13260 if test "${with_png}" != "no"; then
13261 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13262 # in /usr/include/libpng.
13263 for ac_header in png.h libpng/png.h
13264 do :
13265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13266 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13267 eval as_val=\$$as_ac_Header
13268 if test "x$as_val" = x""yes; then :
13269 cat >>confdefs.h <<_ACEOF
13270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13271 _ACEOF
13275 done
13277 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13279 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13280 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13281 $as_echo_n "(cached) " >&6
13282 else
13283 ac_check_lib_save_LIBS=$LIBS
13284 LIBS="-lpng -lz -lm $LIBS"
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13288 /* Override any GCC internal prototype to avoid an error.
13289 Use char because int might match the return type of a GCC
13290 builtin and then its argument prototype would still apply. */
13291 #ifdef __cplusplus
13292 extern "C"
13293 #endif
13294 char png_get_channels ();
13296 main ()
13298 return png_get_channels ();
13300 return 0;
13302 _ACEOF
13303 if ac_fn_c_try_link "$LINENO"; then :
13304 ac_cv_lib_png_png_get_channels=yes
13305 else
13306 ac_cv_lib_png_png_get_channels=no
13308 rm -f core conftest.err conftest.$ac_objext \
13309 conftest$ac_exeext conftest.$ac_ext
13310 LIBS=$ac_check_lib_save_LIBS
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13313 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13314 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13315 HAVE_PNG=yes
13321 if test "${HAVE_PNG}" = "yes"; then
13323 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13325 LIBPNG="-lpng -lz -lm"
13330 ### Use -ltiff if available, unless `--with-tiff=no'.
13331 HAVE_TIFF=no
13332 LIBTIFF=
13333 if test "${HAVE_X11}" = "yes"; then
13334 if test "${with_tiff}" != "no"; then
13335 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13336 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13337 tifflibs="-lz -lm"
13338 # At least one tiff package requires the jpeg library.
13339 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13341 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13342 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 ac_check_lib_save_LIBS=$LIBS
13346 LIBS="-ltiff $tifflibs $LIBS"
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13350 /* Override any GCC internal prototype to avoid an error.
13351 Use char because int might match the return type of a GCC
13352 builtin and then its argument prototype would still apply. */
13353 #ifdef __cplusplus
13354 extern "C"
13355 #endif
13356 char TIFFGetVersion ();
13358 main ()
13360 return TIFFGetVersion ();
13362 return 0;
13364 _ACEOF
13365 if ac_fn_c_try_link "$LINENO"; then :
13366 ac_cv_lib_tiff_TIFFGetVersion=yes
13367 else
13368 ac_cv_lib_tiff_TIFFGetVersion=no
13370 rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372 LIBS=$ac_check_lib_save_LIBS
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13375 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13376 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13377 HAVE_TIFF=yes
13385 if test "${HAVE_TIFF}" = "yes"; then
13387 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13389 LIBTIFF=-ltiff
13394 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13395 HAVE_GIF=no
13396 LIBGIF=
13397 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13398 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13399 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13400 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13401 # Earlier versions can crash Emacs.
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13403 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13404 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 ac_check_lib_save_LIBS=$LIBS
13408 LIBS="-lgif $LIBS"
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13412 /* Override any GCC internal prototype to avoid an error.
13413 Use char because int might match the return type of a GCC
13414 builtin and then its argument prototype would still apply. */
13415 #ifdef __cplusplus
13416 extern "C"
13417 #endif
13418 char EGifPutExtensionLast ();
13420 main ()
13422 return EGifPutExtensionLast ();
13424 return 0;
13426 _ACEOF
13427 if ac_fn_c_try_link "$LINENO"; then :
13428 ac_cv_lib_gif_EGifPutExtensionLast=yes
13429 else
13430 ac_cv_lib_gif_EGifPutExtensionLast=no
13432 rm -f core conftest.err conftest.$ac_objext \
13433 conftest$ac_exeext conftest.$ac_ext
13434 LIBS=$ac_check_lib_save_LIBS
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13437 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13438 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13439 HAVE_GIF=yes
13440 else
13441 HAVE_GIF=maybe
13448 if test "$HAVE_GIF" = yes; then
13449 LIBGIF=-lgif
13450 elif test "$HAVE_GIF" = maybe; then
13451 # If gif_lib.h but no libgif, try libungif.
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13453 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13454 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13455 $as_echo_n "(cached) " >&6
13456 else
13457 ac_check_lib_save_LIBS=$LIBS
13458 LIBS="-lungif $LIBS"
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13462 /* Override any GCC internal prototype to avoid an error.
13463 Use char because int might match the return type of a GCC
13464 builtin and then its argument prototype would still apply. */
13465 #ifdef __cplusplus
13466 extern "C"
13467 #endif
13468 char EGifPutExtensionLast ();
13470 main ()
13472 return EGifPutExtensionLast ();
13474 return 0;
13476 _ACEOF
13477 if ac_fn_c_try_link "$LINENO"; then :
13478 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13479 else
13480 ac_cv_lib_ungif_EGifPutExtensionLast=no
13482 rm -f core conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13487 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13488 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13489 HAVE_GIF=yes
13490 else
13491 HAVE_GIF=no
13494 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13497 if test "${HAVE_GIF}" = "yes"; then
13499 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13505 if test "${HAVE_X11}" = "yes"; then
13506 MISSING=""
13507 WITH_NO=""
13508 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13509 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13510 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13511 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13512 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13513 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13514 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13515 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13516 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13517 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13519 if test "X${MISSING}" != X; then
13520 as_fn_error "The following required libraries were not found:
13521 $MISSING
13522 Maybe some development libraries/packages are missing?
13523 If you don't want to link with them give
13524 $WITH_NO
13525 as options to configure" "$LINENO" 5
13529 ### Use -lgpm if available, unless `--with-gpm=no'.
13530 HAVE_GPM=no
13531 LIBGPM=
13532 if test "${with_gpm}" != "no"; then
13533 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13534 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13536 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13537 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13538 $as_echo_n "(cached) " >&6
13539 else
13540 ac_check_lib_save_LIBS=$LIBS
13541 LIBS="-lgpm $LIBS"
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13545 /* Override any GCC internal prototype to avoid an error.
13546 Use char because int might match the return type of a GCC
13547 builtin and then its argument prototype would still apply. */
13548 #ifdef __cplusplus
13549 extern "C"
13550 #endif
13551 char Gpm_Open ();
13553 main ()
13555 return Gpm_Open ();
13557 return 0;
13559 _ACEOF
13560 if ac_fn_c_try_link "$LINENO"; then :
13561 ac_cv_lib_gpm_Gpm_Open=yes
13562 else
13563 ac_cv_lib_gpm_Gpm_Open=no
13565 rm -f core conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
13567 LIBS=$ac_check_lib_save_LIBS
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13570 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13571 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13572 HAVE_GPM=yes
13579 if test "${HAVE_GPM}" = "yes"; then
13581 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13583 LIBGPM=-lgpm
13588 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13589 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13591 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13597 C_SWITCH_X_SYSTEM=
13598 ### Use NeXTstep API to implement GUI.
13599 if test "${HAVE_NS}" = "yes"; then
13601 $as_echo "#define HAVE_NS 1" >>confdefs.h
13603 if test "${NS_IMPL_COCOA}" = "yes"; then
13605 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13608 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13610 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13612 # See also .m.o rule in Makefile.in */
13613 # FIXME: are all these flags really needed? Document here why. */
13614 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13615 ## Extra CFLAGS applied to src/*.m files.
13616 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"
13618 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13620 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13623 # We also have mouse menus.
13624 HAVE_MENUS=yes
13625 OTHER_FILES=ns-app
13629 ### Use session management (-lSM -lICE) if available
13630 HAVE_X_SM=no
13631 LIBXSM=
13632 if test "${HAVE_X11}" = "yes"; then
13633 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13634 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13636 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13637 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 ac_check_lib_save_LIBS=$LIBS
13641 LIBS="-lSM -lICE $LIBS"
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13645 /* Override any GCC internal prototype to avoid an error.
13646 Use char because int might match the return type of a GCC
13647 builtin and then its argument prototype would still apply. */
13648 #ifdef __cplusplus
13649 extern "C"
13650 #endif
13651 char SmcOpenConnection ();
13653 main ()
13655 return SmcOpenConnection ();
13657 return 0;
13659 _ACEOF
13660 if ac_fn_c_try_link "$LINENO"; then :
13661 ac_cv_lib_SM_SmcOpenConnection=yes
13662 else
13663 ac_cv_lib_SM_SmcOpenConnection=no
13665 rm -f core conftest.err conftest.$ac_objext \
13666 conftest$ac_exeext conftest.$ac_ext
13667 LIBS=$ac_check_lib_save_LIBS
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13670 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13671 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13672 HAVE_X_SM=yes
13679 if test "${HAVE_X_SM}" = "yes"; then
13681 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13683 LIBXSM="-lSM -lICE"
13684 case "$LIBS" in
13685 *-lSM*) ;;
13686 *) LIBS="$LIBXSM $LIBS" ;;
13687 esac
13692 ### Use libxml (-lxml2) if available
13693 HAVE_LIBXML2=no
13694 if test "${with_xml2}" != "no"; then
13695 ### I'm not sure what the version number should be, so I just guessed.
13697 succeeded=no
13699 # Extract the first word of "pkg-config", so it can be a program name with args.
13700 set dummy pkg-config; ac_word=$2
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13702 $as_echo_n "checking for $ac_word... " >&6; }
13703 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13704 $as_echo_n "(cached) " >&6
13705 else
13706 case $PKG_CONFIG in
13707 [\\/]* | ?:[\\/]*)
13708 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13714 IFS=$as_save_IFS
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13718 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13720 break 2
13722 done
13723 done
13724 IFS=$as_save_IFS
13726 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13728 esac
13730 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13731 if test -n "$PKG_CONFIG"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13733 $as_echo "$PKG_CONFIG" >&6; }
13734 else
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736 $as_echo "no" >&6; }
13741 if test "$PKG_CONFIG" = "no" ; then
13742 HAVE_LIBXML2=no
13743 else
13744 PKG_CONFIG_MIN_VERSION=0.9.0
13745 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13747 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13749 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13751 $as_echo "yes" >&6; }
13752 succeeded=yes
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13755 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13756 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13758 $as_echo "$LIBXML2_CFLAGS" >&6; }
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13761 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13762 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13764 $as_echo "$LIBXML2_LIBS" >&6; }
13765 else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13768 LIBXML2_CFLAGS=""
13769 LIBXML2_LIBS=""
13770 ## If we have a custom action on failure, don't print errors, but
13771 ## do set a variable so people can do so.
13772 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13778 else
13779 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13780 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13784 if test $succeeded = yes; then
13785 HAVE_LIBXML2=yes
13786 else
13787 HAVE_LIBXML2=no
13790 if test "${HAVE_LIBXML2}" = "yes"; then
13791 LIBS="$LIBXML2_LIBS $LIBS"
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13793 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13794 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13795 $as_echo_n "(cached) " >&6
13796 else
13797 ac_check_lib_save_LIBS=$LIBS
13798 LIBS="-lxml2 $LIBS"
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h. */
13802 /* Override any GCC internal prototype to avoid an error.
13803 Use char because int might match the return type of a GCC
13804 builtin and then its argument prototype would still apply. */
13805 #ifdef __cplusplus
13806 extern "C"
13807 #endif
13808 char htmlReadMemory ();
13810 main ()
13812 return htmlReadMemory ();
13814 return 0;
13816 _ACEOF
13817 if ac_fn_c_try_link "$LINENO"; then :
13818 ac_cv_lib_xml2_htmlReadMemory=yes
13819 else
13820 ac_cv_lib_xml2_htmlReadMemory=no
13822 rm -f core conftest.err conftest.$ac_objext \
13823 conftest$ac_exeext conftest.$ac_ext
13824 LIBS=$ac_check_lib_save_LIBS
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13827 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13828 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13829 HAVE_LIBXML2=yes
13830 else
13831 HAVE_LIBXML2=no
13834 if test "${HAVE_LIBXML2}" = "yes"; then
13836 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13838 else
13839 LIBXML2_LIBS=""
13840 LIBXML2_CFLAGS=""
13847 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13849 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13850 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13851 $as_echo_n "(cached) " >&6
13852 else
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13855 #include <netdb.h>
13857 main ()
13859 return h_errno;
13861 return 0;
13863 _ACEOF
13864 if ac_fn_c_try_link "$LINENO"; then :
13865 emacs_cv_netdb_declares_h_errno=yes
13866 else
13867 emacs_cv_netdb_declares_h_errno=no
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13873 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13874 if test $emacs_cv_netdb_declares_h_errno = yes; then
13876 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13880 # fmod, logb, and frexp are found in -lm on most systems.
13881 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13883 $as_echo_n "checking for sqrt in -lm... " >&6; }
13884 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13885 $as_echo_n "(cached) " >&6
13886 else
13887 ac_check_lib_save_LIBS=$LIBS
13888 LIBS="-lm $LIBS"
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13892 /* Override any GCC internal prototype to avoid an error.
13893 Use char because int might match the return type of a GCC
13894 builtin and then its argument prototype would still apply. */
13895 #ifdef __cplusplus
13896 extern "C"
13897 #endif
13898 char sqrt ();
13900 main ()
13902 return sqrt ();
13904 return 0;
13906 _ACEOF
13907 if ac_fn_c_try_link "$LINENO"; then :
13908 ac_cv_lib_m_sqrt=yes
13909 else
13910 ac_cv_lib_m_sqrt=no
13912 rm -f core conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
13914 LIBS=$ac_check_lib_save_LIBS
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13917 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13918 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13919 cat >>confdefs.h <<_ACEOF
13920 #define HAVE_LIBM 1
13921 _ACEOF
13923 LIBS="-lm $LIBS"
13928 # Check for mail-locking functions in a "mail" library. Probably this should
13929 # have the same check as for liblockfile below.
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13931 $as_echo_n "checking for maillock in -lmail... " >&6; }
13932 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 ac_check_lib_save_LIBS=$LIBS
13936 LIBS="-lmail $LIBS"
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13940 /* Override any GCC internal prototype to avoid an error.
13941 Use char because int might match the return type of a GCC
13942 builtin and then its argument prototype would still apply. */
13943 #ifdef __cplusplus
13944 extern "C"
13945 #endif
13946 char maillock ();
13948 main ()
13950 return maillock ();
13952 return 0;
13954 _ACEOF
13955 if ac_fn_c_try_link "$LINENO"; then :
13956 ac_cv_lib_mail_maillock=yes
13957 else
13958 ac_cv_lib_mail_maillock=no
13960 rm -f core conftest.err conftest.$ac_objext \
13961 conftest$ac_exeext conftest.$ac_ext
13962 LIBS=$ac_check_lib_save_LIBS
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13965 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13966 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13967 have_mail=yes
13968 else
13969 have_mail=no
13972 if test $have_mail = yes; then
13973 LIBS_MAIL=-lmail
13974 LIBS="$LIBS_MAIL $LIBS"
13976 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13978 else
13979 LIBS_MAIL=
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13982 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13983 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13984 $as_echo_n "(cached) " >&6
13985 else
13986 ac_check_lib_save_LIBS=$LIBS
13987 LIBS="-llockfile $LIBS"
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13991 /* Override any GCC internal prototype to avoid an error.
13992 Use char because int might match the return type of a GCC
13993 builtin and then its argument prototype would still apply. */
13994 #ifdef __cplusplus
13995 extern "C"
13996 #endif
13997 char maillock ();
13999 main ()
14001 return maillock ();
14003 return 0;
14005 _ACEOF
14006 if ac_fn_c_try_link "$LINENO"; then :
14007 ac_cv_lib_lockfile_maillock=yes
14008 else
14009 ac_cv_lib_lockfile_maillock=no
14011 rm -f core conftest.err conftest.$ac_objext \
14012 conftest$ac_exeext conftest.$ac_ext
14013 LIBS=$ac_check_lib_save_LIBS
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14016 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14017 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14018 have_lockfile=yes
14019 else
14020 have_lockfile=no
14023 if test $have_lockfile = yes; then
14024 LIBS_MAIL=-llockfile
14025 LIBS="$LIBS_MAIL $LIBS"
14027 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14029 else
14030 # If we have the shared liblockfile, assume we must use it for mail
14031 # locking (e.g. Debian). If we couldn't link against liblockfile
14032 # (no liblockfile.a installed), ensure that we don't need to.
14033 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14034 set dummy liblockfile.so; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036 $as_echo_n "checking for $ac_word... " >&6; }
14037 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14038 $as_echo_n "(cached) " >&6
14039 else
14040 if test -n "$liblockfile"; then
14041 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14042 else
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14045 for as_dir in $as_dummy
14047 IFS=$as_save_IFS
14048 test -z "$as_dir" && as_dir=.
14049 for ac_exec_ext in '' $ac_executable_extensions; do
14050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14051 ac_cv_prog_liblockfile="yes"
14052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14053 break 2
14055 done
14056 done
14057 IFS=$as_save_IFS
14059 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14062 liblockfile=$ac_cv_prog_liblockfile
14063 if test -n "$liblockfile"; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14065 $as_echo "$liblockfile" >&6; }
14066 else
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 $as_echo "no" >&6; }
14072 if test $ac_cv_prog_liblockfile = yes; then
14073 as_fn_error "Shared liblockfile found but can't link against it.
14074 This probably means that movemail could lose mail.
14075 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14078 for ac_func in touchlock
14079 do :
14080 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14081 if test "x$ac_cv_func_touchlock" = x""yes; then :
14082 cat >>confdefs.h <<_ACEOF
14083 #define HAVE_TOUCHLOCK 1
14084 _ACEOF
14087 done
14089 for ac_header in maillock.h
14090 do :
14091 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14092 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14093 cat >>confdefs.h <<_ACEOF
14094 #define HAVE_MAILLOCK_H 1
14095 _ACEOF
14099 done
14103 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14104 ## interlock access to the mail spool. The alternative is a lock file named
14105 ## /usr/spool/mail/$USER.lock.
14106 mail_lock=no
14107 case "$opsys" in
14108 aix4-2) mail_lock="lockf" ;;
14110 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14112 ## On GNU/Linux systems, both methods are used by various mail programs.
14113 ## I assume most people are using newer mailers that have heard of flock.
14114 ## Change this if you need to.
14115 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14116 ## configure gets the right answers, and that means *NOT* using flock.
14117 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14118 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14119 ## Debian maintainer hasn't provided a clean fix for Emacs.
14120 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14121 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14122 ## correct logic. -- fx
14123 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14124 ## liblockfile is a Free Software replacement for libmail, used on
14125 ## Debian systems and elsewhere. -rfr.
14126 gnu-*)
14127 mail_lock="flock"
14128 if test $have_mail = yes || test $have_lockfile = yes; then
14129 test $ac_cv_header_maillock_h = yes && mail_lock=no
14132 esac
14134 BLESSMAIL_TARGET=
14135 case "$mail_lock" in
14136 flock)
14137 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14140 lockf)
14141 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14144 *) BLESSMAIL_TARGET="need-blessmail" ;;
14145 esac
14149 for ac_func in gethostname getdomainname \
14150 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14151 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14152 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14153 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14154 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14155 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14156 gai_strerror mkstemp getline getdelim mremap fsync sync \
14157 difftime mempcpy mblen mbrlen posix_memalign \
14158 cfmakeraw cfsetspeed copysign __executable_start
14159 do :
14160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14162 eval as_val=\$$as_ac_var
14163 if test "x$as_val" = x""yes; then :
14164 cat >>confdefs.h <<_ACEOF
14165 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14166 _ACEOF
14169 done
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14173 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14174 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14181 main ()
14183 __builtin_unwind_init ();
14185 return 0;
14187 _ACEOF
14188 if ac_fn_c_try_link "$LINENO"; then :
14189 emacs_cv_func___builtin_unwind_init=yes
14190 else
14191 emacs_cv_func___builtin_unwind_init=no
14193 rm -f core conftest.err conftest.$ac_objext \
14194 conftest$ac_exeext conftest.$ac_ext
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14197 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14198 if test $emacs_cv_func___builtin_unwind_init = yes; then
14200 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14204 for ac_header in sys/un.h
14205 do :
14206 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14207 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14208 cat >>confdefs.h <<_ACEOF
14209 #define HAVE_SYS_UN_H 1
14210 _ACEOF
14214 done
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14218 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14219 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14220 $as_echo_n "(cached) " >&6
14221 else
14222 while :; do
14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14225 #include <sys/types.h> /* for off_t */
14226 #include <stdio.h>
14228 main ()
14230 int (*fp) (FILE *, off_t, int) = fseeko;
14231 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14233 return 0;
14235 _ACEOF
14236 if ac_fn_c_try_link "$LINENO"; then :
14237 ac_cv_sys_largefile_source=no; break
14239 rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14243 #define _LARGEFILE_SOURCE 1
14244 #include <sys/types.h> /* for off_t */
14245 #include <stdio.h>
14247 main ()
14249 int (*fp) (FILE *, off_t, int) = fseeko;
14250 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14252 return 0;
14254 _ACEOF
14255 if ac_fn_c_try_link "$LINENO"; then :
14256 ac_cv_sys_largefile_source=1; break
14258 rm -f core conftest.err conftest.$ac_objext \
14259 conftest$ac_exeext conftest.$ac_ext
14260 ac_cv_sys_largefile_source=unknown
14261 break
14262 done
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14265 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14266 case $ac_cv_sys_largefile_source in #(
14267 no | unknown) ;;
14269 cat >>confdefs.h <<_ACEOF
14270 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14271 _ACEOF
14273 esac
14274 rm -rf conftest*
14276 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14277 # in glibc 2.1.3, but that breaks too many other things.
14278 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14279 if test $ac_cv_sys_largefile_source != unknown; then
14281 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14287 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14288 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 # Use it with a single arg.
14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14294 $ac_includes_default
14296 main ()
14298 getpgrp (0);
14300 return 0;
14302 _ACEOF
14303 if ac_fn_c_try_compile "$LINENO"; then :
14304 ac_cv_func_getpgrp_void=no
14305 else
14306 ac_cv_func_getpgrp_void=yes
14308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14312 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14313 if test $ac_cv_func_getpgrp_void = yes; then
14315 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14320 # UNIX98 PTYs.
14321 for ac_func in grantpt
14322 do :
14323 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14324 if test "x$ac_cv_func_grantpt" = x""yes; then :
14325 cat >>confdefs.h <<_ACEOF
14326 #define HAVE_GRANTPT 1
14327 _ACEOF
14330 done
14333 # PTY-related GNU extensions.
14334 for ac_func in getpt
14335 do :
14336 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14337 if test "x$ac_cv_func_getpt" = x""yes; then :
14338 cat >>confdefs.h <<_ACEOF
14339 #define HAVE_GETPT 1
14340 _ACEOF
14343 done
14346 # Check this now, so that we will NOT find the above functions in ncurses.
14347 # That is because we have not set up to link ncurses in lib-src.
14348 # It's better to believe a function is not available
14349 # than to expect to find it in ncurses.
14350 # Also we need tputs and friends to be able to build at all.
14351 have_tputs_et_al=true
14352 # Maybe curses should be tried earlier?
14353 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14355 $as_echo_n "checking for library containing tputs... " >&6; }
14356 if test "${ac_cv_search_tputs+set}" = set; then :
14357 $as_echo_n "(cached) " >&6
14358 else
14359 ac_func_search_save_LIBS=$LIBS
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14363 /* Override any GCC internal prototype to avoid an error.
14364 Use char because int might match the return type of a GCC
14365 builtin and then its argument prototype would still apply. */
14366 #ifdef __cplusplus
14367 extern "C"
14368 #endif
14369 char tputs ();
14371 main ()
14373 return tputs ();
14375 return 0;
14377 _ACEOF
14378 for ac_lib in '' ncurses terminfo termcap curses; do
14379 if test -z "$ac_lib"; then
14380 ac_res="none required"
14381 else
14382 ac_res=-l$ac_lib
14383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14385 if ac_fn_c_try_link "$LINENO"; then :
14386 ac_cv_search_tputs=$ac_res
14388 rm -f core conftest.err conftest.$ac_objext \
14389 conftest$ac_exeext
14390 if test "${ac_cv_search_tputs+set}" = set; then :
14391 break
14393 done
14394 if test "${ac_cv_search_tputs+set}" = set; then :
14396 else
14397 ac_cv_search_tputs=no
14399 rm conftest.$ac_ext
14400 LIBS=$ac_func_search_save_LIBS
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14403 $as_echo "$ac_cv_search_tputs" >&6; }
14404 ac_res=$ac_cv_search_tputs
14405 if test "$ac_res" != no; then :
14406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14408 else
14409 have_tputs_et_al=false
14412 if test "$have_tputs_et_al" != true; then
14413 as_fn_error "The required function \`tputs' was not found in any library.
14414 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14415 Please try installing whichever of these libraries is most appropriate
14416 for your system, together with its header files.
14417 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14419 # Must define this when any termcap library is found.
14421 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14423 ## FIXME This was the cpp logic, but I am not sure it is right.
14424 ## The above test has not necessarily found libncurses.
14425 HAVE_LIBNCURSES=yes
14427 ## Use terminfo instead of termcap?
14428 ## Note only system files NOT using terminfo are:
14429 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14430 ## darwin|gnu without ncurses.
14431 TERMINFO=no
14432 LIBS_TERMCAP=
14433 case "$opsys" in
14434 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14435 ## hpux10-20: Use the system provided termcap(3) library.
14436 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14437 ## is necessary. Otherwise Emacs dumps core when run -nw.
14438 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14440 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14441 ## The ncurses library has been moved out of the System framework in
14442 ## Mac OS X 10.2. So if configure detects it, set the command-line
14443 ## option to use it.
14444 darwin|gnu*)
14445 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14446 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14447 TERMINFO=yes
14448 LIBS_TERMCAP="-lncurses"
14452 freebsd)
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14454 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14455 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14456 $as_echo_n "(cached) " >&6
14457 else
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14460 #include <osreldate.h>
14462 main ()
14464 #if __FreeBSD_version < 400000
14465 fail;
14466 #endif
14469 return 0;
14471 _ACEOF
14472 if ac_fn_c_try_link "$LINENO"; then :
14473 emacs_cv_freebsd_terminfo=yes
14474 else
14475 emacs_cv_freebsd_terminfo=no
14477 rm -f core conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext conftest.$ac_ext
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14483 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14485 if test $emacs_cv_freebsd_terminfo = yes; then
14486 TERMINFO=yes
14487 LIBS_TERMCAP="-lncurses"
14488 else
14489 LIBS_TERMCAP="-ltermcap"
14493 netbsd)
14494 if test $ac_cv_search_tputs = -lterminfo; then
14495 TERMINFO=yes
14496 LIBS_TERMCAP="-lterminfo"
14497 else
14498 LIBS_TERMCAP="-ltermcap"
14502 esac
14504 case "$opsys" in
14505 ## hpux: Make sure we get select from libc rather than from libcurses
14506 ## because libcurses on HPUX 10.10 has a broken version of select.
14507 ## We used to use -lc -lcurses, but this may be cleaner.
14508 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14510 openbsd) LIBS_TERMCAP="-lncurses" ;;
14512 ## Must use system termcap, if we use any termcap. It does special things.
14513 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14514 esac
14516 TERMCAP_OBJ=tparam.o
14517 if test $TERMINFO = yes; then
14519 $as_echo "#define TERMINFO 1" >>confdefs.h
14522 ## Default used to be -ltermcap. Add a case above if need something else.
14523 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14525 TERMCAP_OBJ=terminfo.o
14531 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14532 resolv=no
14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14535 #include <netinet/in.h>
14536 #include <arpa/nameser.h>
14537 #include <resolv.h>
14539 main ()
14541 return res_init();
14543 return 0;
14545 _ACEOF
14546 if ac_fn_c_try_link "$LINENO"; then :
14547 have_res_init=yes
14548 else
14549 have_res_init=no
14551 rm -f core conftest.err conftest.$ac_objext \
14552 conftest$ac_exeext conftest.$ac_ext
14553 if test "$have_res_init" = no; then
14554 OLIBS="$LIBS"
14555 LIBS="$LIBS -lresolv"
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14557 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14560 #include <netinet/in.h>
14561 #include <arpa/nameser.h>
14562 #include <resolv.h>
14564 main ()
14566 return res_init();
14568 return 0;
14570 _ACEOF
14571 if ac_fn_c_try_link "$LINENO"; then :
14572 have_res_init=yes
14573 else
14574 have_res_init=no
14576 rm -f core conftest.err conftest.$ac_objext \
14577 conftest$ac_exeext conftest.$ac_ext
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14579 $as_echo "$have_res_init" >&6; }
14580 if test "$have_res_init" = yes ; then
14581 resolv=yes
14583 LIBS="$OLIBS"
14586 if test "$have_res_init" = yes; then
14588 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14592 # Do we need the Hesiod library to provide the support routines?
14593 LIBHESIOD=
14594 if test "$with_hesiod" != no ; then
14595 # Don't set $LIBS here -- see comments above. FIXME which comments?
14596 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14597 if test "x$ac_cv_func_res_send" = x""yes; then :
14599 else
14600 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14601 if test "x$ac_cv_func___res_send" = x""yes; then :
14603 else
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14605 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14606 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14607 $as_echo_n "(cached) " >&6
14608 else
14609 ac_check_lib_save_LIBS=$LIBS
14610 LIBS="-lresolv $LIBS"
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14614 /* Override any GCC internal prototype to avoid an error.
14615 Use char because int might match the return type of a GCC
14616 builtin and then its argument prototype would still apply. */
14617 #ifdef __cplusplus
14618 extern "C"
14619 #endif
14620 char res_send ();
14622 main ()
14624 return res_send ();
14626 return 0;
14628 _ACEOF
14629 if ac_fn_c_try_link "$LINENO"; then :
14630 ac_cv_lib_resolv_res_send=yes
14631 else
14632 ac_cv_lib_resolv_res_send=no
14634 rm -f core conftest.err conftest.$ac_objext \
14635 conftest$ac_exeext conftest.$ac_ext
14636 LIBS=$ac_check_lib_save_LIBS
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14639 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14640 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14641 resolv=yes
14642 else
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14644 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14645 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 ac_check_lib_save_LIBS=$LIBS
14649 LIBS="-lresolv $LIBS"
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14656 #ifdef __cplusplus
14657 extern "C"
14658 #endif
14659 char __res_send ();
14661 main ()
14663 return __res_send ();
14665 return 0;
14667 _ACEOF
14668 if ac_fn_c_try_link "$LINENO"; then :
14669 ac_cv_lib_resolv___res_send=yes
14670 else
14671 ac_cv_lib_resolv___res_send=no
14673 rm -f core conftest.err conftest.$ac_objext \
14674 conftest$ac_exeext conftest.$ac_ext
14675 LIBS=$ac_check_lib_save_LIBS
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14678 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14679 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14680 resolv=yes
14689 if test "$resolv" = yes ; then
14690 RESOLVLIB=-lresolv
14691 else
14692 RESOLVLIB=
14694 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14695 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14697 else
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14699 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14700 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14701 $as_echo_n "(cached) " >&6
14702 else
14703 ac_check_lib_save_LIBS=$LIBS
14704 LIBS="-lhesiod $RESOLVLIB $LIBS"
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h. */
14708 /* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply. */
14711 #ifdef __cplusplus
14712 extern "C"
14713 #endif
14714 char hes_getmailhost ();
14716 main ()
14718 return hes_getmailhost ();
14720 return 0;
14722 _ACEOF
14723 if ac_fn_c_try_link "$LINENO"; then :
14724 ac_cv_lib_hesiod_hes_getmailhost=yes
14725 else
14726 ac_cv_lib_hesiod_hes_getmailhost=no
14728 rm -f core conftest.err conftest.$ac_objext \
14729 conftest$ac_exeext conftest.$ac_ext
14730 LIBS=$ac_check_lib_save_LIBS
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14733 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14734 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14735 hesiod=yes
14736 else
14743 if test x"$hesiod" = xyes; then
14745 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14747 LIBHESIOD=-lhesiod
14752 # Do we need libresolv (due to res_init or Hesiod)?
14753 if test "$resolv" = yes ; then
14755 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14757 LIBRESOLV=-lresolv
14758 else
14759 LIBRESOLV=
14763 # These tell us which Kerberos-related libraries to use.
14764 COM_ERRLIB=
14765 CRYPTOLIB=
14766 KRB5LIB=
14767 DESLIB=
14768 KRB4LIB=
14770 if test "${with_kerberos}" != no; then
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14772 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14773 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14774 $as_echo_n "(cached) " >&6
14775 else
14776 ac_check_lib_save_LIBS=$LIBS
14777 LIBS="-lcom_err $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 com_err ();
14789 main ()
14791 return com_err ();
14793 return 0;
14795 _ACEOF
14796 if ac_fn_c_try_link "$LINENO"; then :
14797 ac_cv_lib_com_err_com_err=yes
14798 else
14799 ac_cv_lib_com_err_com_err=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_com_err_com_err" >&5
14806 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14807 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14808 have_com_err=yes
14809 else
14810 have_com_err=no
14813 if test $have_com_err = yes; then
14814 COM_ERRLIB=-lcom_err
14815 LIBS="$COM_ERRLIB $LIBS"
14817 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14821 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14822 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14825 ac_check_lib_save_LIBS=$LIBS
14826 LIBS="-lcrypto $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 mit_des_cbc_encrypt ();
14838 main ()
14840 return mit_des_cbc_encrypt ();
14842 return 0;
14844 _ACEOF
14845 if ac_fn_c_try_link "$LINENO"; then :
14846 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14847 else
14848 ac_cv_lib_crypto_mit_des_cbc_encrypt=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_crypto_mit_des_cbc_encrypt" >&5
14855 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14856 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14857 have_crypto=yes
14858 else
14859 have_crypto=no
14862 if test $have_crypto = yes; then
14863 CRYPTOLIB=-lcrypto
14864 LIBS="$CRYPTOLIB $LIBS"
14866 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14870 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14871 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 ac_check_lib_save_LIBS=$LIBS
14875 LIBS="-lk5crypto $LIBS"
14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14879 /* Override any GCC internal prototype to avoid an error.
14880 Use char because int might match the return type of a GCC
14881 builtin and then its argument prototype would still apply. */
14882 #ifdef __cplusplus
14883 extern "C"
14884 #endif
14885 char mit_des_cbc_encrypt ();
14887 main ()
14889 return mit_des_cbc_encrypt ();
14891 return 0;
14893 _ACEOF
14894 if ac_fn_c_try_link "$LINENO"; then :
14895 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14896 else
14897 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14899 rm -f core conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext conftest.$ac_ext
14901 LIBS=$ac_check_lib_save_LIBS
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14904 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14905 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14906 have_k5crypto=yes
14907 else
14908 have_k5crypto=no
14911 if test $have_k5crypto = yes; then
14912 CRYPTOLIB=-lk5crypto
14913 LIBS="$CRYPTOLIB $LIBS"
14915 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14919 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14920 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14921 $as_echo_n "(cached) " >&6
14922 else
14923 ac_check_lib_save_LIBS=$LIBS
14924 LIBS="-lkrb5 $LIBS"
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14928 /* Override any GCC internal prototype to avoid an error.
14929 Use char because int might match the return type of a GCC
14930 builtin and then its argument prototype would still apply. */
14931 #ifdef __cplusplus
14932 extern "C"
14933 #endif
14934 char krb5_init_context ();
14936 main ()
14938 return krb5_init_context ();
14940 return 0;
14942 _ACEOF
14943 if ac_fn_c_try_link "$LINENO"; then :
14944 ac_cv_lib_krb5_krb5_init_context=yes
14945 else
14946 ac_cv_lib_krb5_krb5_init_context=no
14948 rm -f core conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
14950 LIBS=$ac_check_lib_save_LIBS
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14953 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14954 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14955 have_krb5=yes
14956 else
14957 have_krb5=no
14960 if test $have_krb5=yes; then
14961 KRB5LIB=-lkrb5
14962 LIBS="$KRB5LIB $LIBS"
14964 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14967 if test "${with_kerberos5}" = no; then
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14969 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14970 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 ac_check_lib_save_LIBS=$LIBS
14974 LIBS="-ldes425 $LIBS"
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14978 /* Override any GCC internal prototype to avoid an error.
14979 Use char because int might match the return type of a GCC
14980 builtin and then its argument prototype would still apply. */
14981 #ifdef __cplusplus
14982 extern "C"
14983 #endif
14984 char des_cbc_encrypt ();
14986 main ()
14988 return des_cbc_encrypt ();
14990 return 0;
14992 _ACEOF
14993 if ac_fn_c_try_link "$LINENO"; then :
14994 ac_cv_lib_des425_des_cbc_encrypt=yes
14995 else
14996 ac_cv_lib_des425_des_cbc_encrypt=no
14998 rm -f core conftest.err conftest.$ac_objext \
14999 conftest$ac_exeext conftest.$ac_ext
15000 LIBS=$ac_check_lib_save_LIBS
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15003 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15004 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15005 have_des425=yes
15006 else
15007 have_des425=no
15010 if test $have_des425 = yes; then
15011 DESLIB=-ldes425
15012 LIBS="$DESLIB $LIBS"
15014 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15016 else
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15018 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15019 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15022 ac_check_lib_save_LIBS=$LIBS
15023 LIBS="-ldes $LIBS"
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15027 /* Override any GCC internal prototype to avoid an error.
15028 Use char because int might match the return type of a GCC
15029 builtin and then its argument prototype would still apply. */
15030 #ifdef __cplusplus
15031 extern "C"
15032 #endif
15033 char des_cbc_encrypt ();
15035 main ()
15037 return des_cbc_encrypt ();
15039 return 0;
15041 _ACEOF
15042 if ac_fn_c_try_link "$LINENO"; then :
15043 ac_cv_lib_des_des_cbc_encrypt=yes
15044 else
15045 ac_cv_lib_des_des_cbc_encrypt=no
15047 rm -f core conftest.err conftest.$ac_objext \
15048 conftest$ac_exeext conftest.$ac_ext
15049 LIBS=$ac_check_lib_save_LIBS
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15052 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15053 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15054 have_des=yes
15055 else
15056 have_des=no
15059 if test $have_des = yes; then
15060 DESLIB=-ldes
15061 LIBS="$DESLIB $LIBS"
15063 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15068 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15069 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15070 $as_echo_n "(cached) " >&6
15071 else
15072 ac_check_lib_save_LIBS=$LIBS
15073 LIBS="-lkrb4 $LIBS"
15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15077 /* Override any GCC internal prototype to avoid an error.
15078 Use char because int might match the return type of a GCC
15079 builtin and then its argument prototype would still apply. */
15080 #ifdef __cplusplus
15081 extern "C"
15082 #endif
15083 char krb_get_cred ();
15085 main ()
15087 return krb_get_cred ();
15089 return 0;
15091 _ACEOF
15092 if ac_fn_c_try_link "$LINENO"; then :
15093 ac_cv_lib_krb4_krb_get_cred=yes
15094 else
15095 ac_cv_lib_krb4_krb_get_cred=no
15097 rm -f core conftest.err conftest.$ac_objext \
15098 conftest$ac_exeext conftest.$ac_ext
15099 LIBS=$ac_check_lib_save_LIBS
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15102 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15103 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15104 have_krb4=yes
15105 else
15106 have_krb4=no
15109 if test $have_krb4 = yes; then
15110 KRB4LIB=-lkrb4
15111 LIBS="$KRB4LIB $LIBS"
15113 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15115 else
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15117 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15118 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15119 $as_echo_n "(cached) " >&6
15120 else
15121 ac_check_lib_save_LIBS=$LIBS
15122 LIBS="-lkrb $LIBS"
15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h. */
15126 /* Override any GCC internal prototype to avoid an error.
15127 Use char because int might match the return type of a GCC
15128 builtin and then its argument prototype would still apply. */
15129 #ifdef __cplusplus
15130 extern "C"
15131 #endif
15132 char krb_get_cred ();
15134 main ()
15136 return krb_get_cred ();
15138 return 0;
15140 _ACEOF
15141 if ac_fn_c_try_link "$LINENO"; then :
15142 ac_cv_lib_krb_krb_get_cred=yes
15143 else
15144 ac_cv_lib_krb_krb_get_cred=no
15146 rm -f core conftest.err conftest.$ac_objext \
15147 conftest$ac_exeext conftest.$ac_ext
15148 LIBS=$ac_check_lib_save_LIBS
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15151 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15152 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15153 have_krb=yes
15154 else
15155 have_krb=no
15158 if test $have_krb = yes; then
15159 KRB4LIB=-lkrb
15160 LIBS="$KRB4LIB $LIBS"
15162 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15168 if test "${with_kerberos5}" != no; then
15169 for ac_header in krb5.h
15170 do :
15171 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15172 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15173 cat >>confdefs.h <<_ACEOF
15174 #define HAVE_KRB5_H 1
15175 _ACEOF
15176 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15178 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15180 cat >>confdefs.h <<_ACEOF
15181 #define HAVE_KRB5_ERROR_TEXT 1
15182 _ACEOF
15186 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15188 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_KRB5_ERROR_E_TEXT 1
15192 _ACEOF
15199 done
15201 else
15202 for ac_header in des.h
15203 do :
15204 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15205 if test "x$ac_cv_header_des_h" = x""yes; then :
15206 cat >>confdefs.h <<_ACEOF
15207 #define HAVE_DES_H 1
15208 _ACEOF
15210 else
15211 for ac_header in kerberosIV/des.h
15212 do :
15213 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15214 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15215 cat >>confdefs.h <<_ACEOF
15216 #define HAVE_KERBEROSIV_DES_H 1
15217 _ACEOF
15219 else
15220 for ac_header in kerberos/des.h
15221 do :
15222 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15223 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15224 cat >>confdefs.h <<_ACEOF
15225 #define HAVE_KERBEROS_DES_H 1
15226 _ACEOF
15230 done
15234 done
15238 done
15240 for ac_header in krb.h
15241 do :
15242 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15243 if test "x$ac_cv_header_krb_h" = x""yes; then :
15244 cat >>confdefs.h <<_ACEOF
15245 #define HAVE_KRB_H 1
15246 _ACEOF
15248 else
15249 for ac_header in kerberosIV/krb.h
15250 do :
15251 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15252 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15253 cat >>confdefs.h <<_ACEOF
15254 #define HAVE_KERBEROSIV_KRB_H 1
15255 _ACEOF
15257 else
15258 for ac_header in kerberos/krb.h
15259 do :
15260 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15261 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15262 cat >>confdefs.h <<_ACEOF
15263 #define HAVE_KERBEROS_KRB_H 1
15264 _ACEOF
15268 done
15272 done
15276 done
15279 for ac_header in com_err.h
15280 do :
15281 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15282 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15283 cat >>confdefs.h <<_ACEOF
15284 #define HAVE_COM_ERR_H 1
15285 _ACEOF
15289 done
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15300 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15301 if test "${emacs_cv_localtime_cache+set}" = set; then :
15302 $as_echo_n "(cached) " >&6
15303 else
15304 if test x$ac_cv_func_tzset = xyes; then
15305 if test "$cross_compiling" = yes; then :
15306 # If we have tzset, assume the worst when cross-compiling.
15307 emacs_cv_localtime_cache=yes
15308 else
15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 #include <time.h>
15312 char TZ_GMT0[] = "TZ=GMT0";
15313 char TZ_PST8[] = "TZ=PST8";
15314 main()
15316 time_t now = time ((time_t *) 0);
15317 int hour_GMT0, hour_unset;
15318 if (putenv (TZ_GMT0) != 0)
15319 exit (1);
15320 hour_GMT0 = localtime (&now)->tm_hour;
15321 unsetenv("TZ");
15322 hour_unset = localtime (&now)->tm_hour;
15323 if (putenv (TZ_PST8) != 0)
15324 exit (1);
15325 if (localtime (&now)->tm_hour == hour_GMT0)
15326 exit (1);
15327 unsetenv("TZ");
15328 if (localtime (&now)->tm_hour != hour_unset)
15329 exit (1);
15330 exit (0);
15332 _ACEOF
15333 if ac_fn_c_try_run "$LINENO"; then :
15334 emacs_cv_localtime_cache=no
15335 else
15336 emacs_cv_localtime_cache=yes
15338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15339 conftest.$ac_objext conftest.beam conftest.$ac_ext
15342 else
15343 # If we lack tzset, report that localtime does not cache TZ,
15344 # since we can't invalidate the cache if we don't have tzset.
15345 emacs_cv_localtime_cache=no
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15349 $as_echo "$emacs_cv_localtime_cache" >&6; }
15350 if test $emacs_cv_localtime_cache = yes; then
15352 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15356 if test "x$HAVE_TIMEVAL" = xyes; then
15357 for ac_func in gettimeofday
15358 do :
15359 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15360 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15361 cat >>confdefs.h <<_ACEOF
15362 #define HAVE_GETTIMEOFDAY 1
15363 _ACEOF
15366 done
15368 if test $ac_cv_func_gettimeofday = yes; then
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15370 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15371 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15377 #ifdef TIME_WITH_SYS_TIME
15378 #include <sys/time.h>
15379 #include <time.h>
15380 #else
15381 #ifdef HAVE_SYS_TIME_H
15382 #include <sys/time.h>
15383 #else
15384 #include <time.h>
15385 #endif
15386 #endif
15388 main ()
15390 struct timeval time;
15391 gettimeofday (&time, 0);
15393 return 0;
15395 _ACEOF
15396 if ac_fn_c_try_compile "$LINENO"; then :
15397 emacs_cv_gettimeofday_two_arguments=yes
15398 else
15399 emacs_cv_gettimeofday_two_arguments=no
15401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15404 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15405 if test $emacs_cv_gettimeofday_two_arguments = no; then
15407 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15413 ok_so_far=yes
15414 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15415 if test "x$ac_cv_func_socket" = x""yes; then :
15417 else
15418 ok_so_far=no
15421 if test $ok_so_far = yes; then
15422 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15423 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15425 else
15426 ok_so_far=no
15431 if test $ok_so_far = yes; then
15432 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15433 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15435 else
15436 ok_so_far=no
15441 if test $ok_so_far = yes; then
15443 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15447 if test -f /usr/lpp/X11/bin/smt.exp; then
15449 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15454 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15455 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15457 $as_echo "yes" >&6; }
15459 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15461 else
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15463 $as_echo "no" >&6; }
15466 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15467 if test "x$ac_cv_type_pid_t" = x""yes; then :
15469 else
15471 cat >>confdefs.h <<_ACEOF
15472 #define pid_t int
15473 _ACEOF
15477 for ac_header in vfork.h
15478 do :
15479 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15480 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15481 cat >>confdefs.h <<_ACEOF
15482 #define HAVE_VFORK_H 1
15483 _ACEOF
15487 done
15489 for ac_func in fork vfork
15490 do :
15491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15493 eval as_val=\$$as_ac_var
15494 if test "x$as_val" = x""yes; then :
15495 cat >>confdefs.h <<_ACEOF
15496 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15497 _ACEOF
15500 done
15502 if test "x$ac_cv_func_fork" = xyes; then
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15504 $as_echo_n "checking for working fork... " >&6; }
15505 if test "${ac_cv_func_fork_works+set}" = set; then :
15506 $as_echo_n "(cached) " >&6
15507 else
15508 if test "$cross_compiling" = yes; then :
15509 ac_cv_func_fork_works=cross
15510 else
15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15513 $ac_includes_default
15515 main ()
15518 /* By Ruediger Kuhlmann. */
15519 return fork () < 0;
15522 return 0;
15524 _ACEOF
15525 if ac_fn_c_try_run "$LINENO"; then :
15526 ac_cv_func_fork_works=yes
15527 else
15528 ac_cv_func_fork_works=no
15530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15531 conftest.$ac_objext conftest.beam conftest.$ac_ext
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15536 $as_echo "$ac_cv_func_fork_works" >&6; }
15538 else
15539 ac_cv_func_fork_works=$ac_cv_func_fork
15541 if test "x$ac_cv_func_fork_works" = xcross; then
15542 case $host in
15543 *-*-amigaos* | *-*-msdosdjgpp*)
15544 # Override, as these systems have only a dummy fork() stub
15545 ac_cv_func_fork_works=no
15548 ac_cv_func_fork_works=yes
15550 esac
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15552 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15554 ac_cv_func_vfork_works=$ac_cv_func_vfork
15555 if test "x$ac_cv_func_vfork" = xyes; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15557 $as_echo_n "checking for working vfork... " >&6; }
15558 if test "${ac_cv_func_vfork_works+set}" = set; then :
15559 $as_echo_n "(cached) " >&6
15560 else
15561 if test "$cross_compiling" = yes; then :
15562 ac_cv_func_vfork_works=cross
15563 else
15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 /* Thanks to Paul Eggert for this test. */
15567 $ac_includes_default
15568 #include <sys/wait.h>
15569 #ifdef HAVE_VFORK_H
15570 # include <vfork.h>
15571 #endif
15572 /* On some sparc systems, changes by the child to local and incoming
15573 argument registers are propagated back to the parent. The compiler
15574 is told about this with #include <vfork.h>, but some compilers
15575 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15576 static variable whose address is put into a register that is
15577 clobbered by the vfork. */
15578 static void
15579 #ifdef __cplusplus
15580 sparc_address_test (int arg)
15581 # else
15582 sparc_address_test (arg) int arg;
15583 #endif
15585 static pid_t child;
15586 if (!child) {
15587 child = vfork ();
15588 if (child < 0) {
15589 perror ("vfork");
15590 _exit(2);
15592 if (!child) {
15593 arg = getpid();
15594 write(-1, "", 0);
15595 _exit (arg);
15601 main ()
15603 pid_t parent = getpid ();
15604 pid_t child;
15606 sparc_address_test (0);
15608 child = vfork ();
15610 if (child == 0) {
15611 /* Here is another test for sparc vfork register problems. This
15612 test uses lots of local variables, at least as many local
15613 variables as main has allocated so far including compiler
15614 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15615 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15616 reuse the register of parent for one of the local variables,
15617 since it will think that parent can't possibly be used any more
15618 in this routine. Assigning to the local variable will thus
15619 munge parent in the parent process. */
15620 pid_t
15621 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15622 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15623 /* Convince the compiler that p..p7 are live; otherwise, it might
15624 use the same hardware register for all 8 local variables. */
15625 if (p != p1 || p != p2 || p != p3 || p != p4
15626 || p != p5 || p != p6 || p != p7)
15627 _exit(1);
15629 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15630 from child file descriptors. If the child closes a descriptor
15631 before it execs or exits, this munges the parent's descriptor
15632 as well. Test for this by closing stdout in the child. */
15633 _exit(close(fileno(stdout)) != 0);
15634 } else {
15635 int status;
15636 struct stat st;
15638 while (wait(&status) != child)
15640 return (
15641 /* Was there some problem with vforking? */
15642 child < 0
15644 /* Did the child fail? (This shouldn't happen.) */
15645 || status
15647 /* Did the vfork/compiler bug occur? */
15648 || parent != getpid()
15650 /* Did the file descriptor bug occur? */
15651 || fstat(fileno(stdout), &st) != 0
15655 _ACEOF
15656 if ac_fn_c_try_run "$LINENO"; then :
15657 ac_cv_func_vfork_works=yes
15658 else
15659 ac_cv_func_vfork_works=no
15661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15662 conftest.$ac_objext conftest.beam conftest.$ac_ext
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15667 $as_echo "$ac_cv_func_vfork_works" >&6; }
15670 if test "x$ac_cv_func_fork_works" = xcross; then
15671 ac_cv_func_vfork_works=$ac_cv_func_vfork
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15673 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15676 if test "x$ac_cv_func_vfork_works" = xyes; then
15678 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15680 else
15682 $as_echo "#define vfork fork" >>confdefs.h
15685 if test "x$ac_cv_func_fork_works" = xyes; then
15687 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15692 for ac_func in snprintf
15693 do :
15694 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15695 if test "x$ac_cv_func_snprintf" = x""yes; then :
15696 cat >>confdefs.h <<_ACEOF
15697 #define HAVE_SNPRINTF 1
15698 _ACEOF
15701 done
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15705 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15706 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15707 $as_echo_n "(cached) " >&6
15708 else
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711 #include <langinfo.h>
15713 main ()
15715 char* cs = nl_langinfo(CODESET);
15717 return 0;
15719 _ACEOF
15720 if ac_fn_c_try_link "$LINENO"; then :
15721 emacs_cv_langinfo_codeset=yes
15722 else
15723 emacs_cv_langinfo_codeset=no
15725 rm -f core conftest.err conftest.$ac_objext \
15726 conftest$ac_exeext conftest.$ac_ext
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15730 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15731 if test $emacs_cv_langinfo_codeset = yes; then
15733 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15738 $as_echo_n "checking for mbstate_t... " >&6; }
15739 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15740 $as_echo_n "(cached) " >&6
15741 else
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15744 $ac_includes_default
15745 # include <wchar.h>
15747 main ()
15749 mbstate_t x; return sizeof x;
15751 return 0;
15753 _ACEOF
15754 if ac_fn_c_try_compile "$LINENO"; then :
15755 ac_cv_type_mbstate_t=yes
15756 else
15757 ac_cv_type_mbstate_t=no
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15762 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15763 if test $ac_cv_type_mbstate_t = yes; then
15765 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15767 else
15769 $as_echo "#define mbstate_t int" >>confdefs.h
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15774 $as_echo_n "checking for C restricted array declarations... " >&6; }
15775 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779 /* end confdefs.h. */
15780 void fred (int x[__restrict]);
15782 main ()
15786 return 0;
15788 _ACEOF
15789 if ac_fn_c_try_compile "$LINENO"; then :
15790 emacs_cv_c_restrict_arr=yes
15791 else
15792 emacs_cv_c_restrict_arr=no
15794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15797 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15798 if test "$emacs_cv_c_restrict_arr" = yes; then
15800 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15805 # Set up the CFLAGS for real compilation, so we can substitute it.
15806 CFLAGS="$REAL_CFLAGS"
15807 CPPFLAGS="$REAL_CPPFLAGS"
15809 ## Hack to detect a buggy GCC version.
15810 if test "x$GCC" = xyes \
15811 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15812 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15813 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15814 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15817 version=$PACKAGE_VERSION
15819 ### Specify what sort of things we'll be editing into Makefile and config.h.
15820 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15823 ## Unused?
15844 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15845 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15846 ## end of LIBX_BASE, but nothing ever set it.
15851 ## Used in lwlib/Makefile.in.
15853 if test -n "${machfile}"; then
15854 M_FILE="\$(srcdir)/${machfile}"
15855 else
15856 M_FILE=
15858 S_FILE="\$(srcdir)/${opsysfile}"
15869 cat >>confdefs.h <<_ACEOF
15870 #define EMACS_CONFIGURATION "${canonical}"
15871 _ACEOF
15874 cat >>confdefs.h <<_ACEOF
15875 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15876 _ACEOF
15878 if test -n "$machfile"; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define config_machfile "${machfile}"
15882 _ACEOF
15886 cat >>confdefs.h <<_ACEOF
15887 #define config_opsysfile "${opsysfile}"
15888 _ACEOF
15891 XMENU_OBJ=
15892 XOBJ=
15893 FONT_OBJ=
15894 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15896 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15898 XMENU_OBJ=xmenu.o
15899 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15900 FONT_OBJ=xfont.o
15901 if test "$HAVE_XFT" = "yes"; then
15902 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15903 elif test "$HAVE_FREETYPE" = "yes"; then
15904 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15912 WIDGET_OBJ=
15913 MOTIF_LIBW=
15914 if test "${USE_X_TOOLKIT}" != "none" ; then
15915 WIDGET_OBJ=widget.o
15917 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15919 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15921 $as_echo "#define USE_LUCID 1" >>confdefs.h
15923 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15925 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15927 MOTIF_LIBW=-lXm
15928 case "$opsys" in
15929 gnu-linux)
15930 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15931 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15934 unixware)
15935 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15936 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15937 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15940 aix4-2)
15941 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15942 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15944 esac
15945 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15950 TOOLKIT_LIBW=
15951 case "$USE_X_TOOLKIT" in
15952 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15953 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15954 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15955 esac
15958 if test "$USE_X_TOOLKIT" = "none"; then
15959 LIBXT_OTHER="\$(LIBXSM)"
15960 OLDXMENU_TARGET="really-oldXMenu"
15961 else
15962 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15963 OLDXMENU_TARGET="really-lwlib"
15967 ## The X Menu stuff is present in the X10 distribution, but missing
15968 ## from X11. If we have X10, just use the installed library;
15969 ## otherwise, use our own copy.
15970 if test "${HAVE_X11}" = "yes" ; then
15972 $as_echo "#define HAVE_X11 1" >>confdefs.h
15975 if test "$USE_X_TOOLKIT" = "none"; then
15976 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15977 else
15978 OLDXMENU="\${lwlibdir}/liblw.a"
15980 LIBXMENU="\$(OLDXMENU)"
15981 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15982 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15983 else
15984 ## For a syntactically valid Makefile; not actually used for anything.
15985 ## See comments in src/Makefile.in.
15986 OLDXMENU=nothing
15987 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15988 if test "${HAVE_X_WINDOWS}" = "yes"; then
15989 LIBXMENU="-lXMenu"
15990 else
15991 LIBXMENU=
15993 LIBX_OTHER=
15994 OLDXMENU_DEPS=
15997 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15998 OLDXMENU_TARGET=
15999 OLDXMENU=nothing
16000 LIBXMENU=
16001 OLDXMENU_DEPS=
16010 if test "${HAVE_MENUS}" = "yes" ; then
16012 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16016 if test "${GNU_MALLOC}" = "yes" ; then
16018 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16022 RALLOC_OBJ=
16023 if test "${REL_ALLOC}" = "yes" ; then
16025 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16028 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16032 if test "$opsys" = "cygwin"; then
16033 CYGWIN_OBJ="sheap.o"
16034 ## Cygwin differs because of its unexec().
16035 PRE_ALLOC_OBJ=
16036 POST_ALLOC_OBJ=lastfile.o
16037 else
16038 CYGWIN_OBJ=
16039 PRE_ALLOC_OBJ=lastfile.o
16040 POST_ALLOC_OBJ=
16046 # Configure gnulib here, now that we know LIBS.
16058 LIBC_FATAL_STDERR_=1
16059 export LIBC_FATAL_STDERR_
16061 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16062 # for constant arguments. Useless!
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16064 $as_echo_n "checking for working alloca.h... " >&6; }
16065 if test "${ac_cv_working_alloca_h+set}" = set; then :
16066 $as_echo_n "(cached) " >&6
16067 else
16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h. */
16070 #include <alloca.h>
16072 main ()
16074 char *p = (char *) alloca (2 * sizeof (int));
16075 if (p) return 0;
16077 return 0;
16079 _ACEOF
16080 if ac_fn_c_try_link "$LINENO"; then :
16081 ac_cv_working_alloca_h=yes
16082 else
16083 ac_cv_working_alloca_h=no
16085 rm -f core conftest.err conftest.$ac_objext \
16086 conftest$ac_exeext conftest.$ac_ext
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16089 $as_echo "$ac_cv_working_alloca_h" >&6; }
16090 if test $ac_cv_working_alloca_h = yes; then
16092 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16097 $as_echo_n "checking for alloca... " >&6; }
16098 if test "${ac_cv_func_alloca_works+set}" = set; then :
16099 $as_echo_n "(cached) " >&6
16100 else
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16103 #ifdef __GNUC__
16104 # define alloca __builtin_alloca
16105 #else
16106 # ifdef _MSC_VER
16107 # include <malloc.h>
16108 # define alloca _alloca
16109 # else
16110 # ifdef HAVE_ALLOCA_H
16111 # include <alloca.h>
16112 # else
16113 # ifdef _AIX
16114 #pragma alloca
16115 # else
16116 # ifndef alloca /* predefined by HP cc +Olibcalls */
16117 char *alloca ();
16118 # endif
16119 # endif
16120 # endif
16121 # endif
16122 #endif
16125 main ()
16127 char *p = (char *) alloca (1);
16128 if (p) return 0;
16130 return 0;
16132 _ACEOF
16133 if ac_fn_c_try_link "$LINENO"; then :
16134 ac_cv_func_alloca_works=yes
16135 else
16136 ac_cv_func_alloca_works=no
16138 rm -f core conftest.err conftest.$ac_objext \
16139 conftest$ac_exeext conftest.$ac_ext
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16142 $as_echo "$ac_cv_func_alloca_works" >&6; }
16144 if test $ac_cv_func_alloca_works = yes; then
16146 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16148 else
16149 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16150 # that cause trouble. Some versions do not even contain alloca or
16151 # contain a buggy version. If you still want to use their alloca,
16152 # use ar to extract alloca.o from them instead of compiling alloca.c.
16158 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16160 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16164 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16165 if test "${ac_cv_os_cray+set}" = set; then :
16166 $as_echo_n "(cached) " >&6
16167 else
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170 #if defined CRAY && ! defined CRAY2
16171 webecray
16172 #else
16173 wenotbecray
16174 #endif
16176 _ACEOF
16177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16178 $EGREP "webecray" >/dev/null 2>&1; then :
16179 ac_cv_os_cray=yes
16180 else
16181 ac_cv_os_cray=no
16183 rm -f conftest*
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16187 $as_echo "$ac_cv_os_cray" >&6; }
16188 if test $ac_cv_os_cray = yes; then
16189 for ac_func in _getb67 GETB67 getb67; do
16190 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16192 eval as_val=\$$as_ac_var
16193 if test "x$as_val" = x""yes; then :
16195 cat >>confdefs.h <<_ACEOF
16196 #define CRAY_STACKSEG_END $ac_func
16197 _ACEOF
16199 break
16202 done
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16206 $as_echo_n "checking stack direction for C alloca... " >&6; }
16207 if test "${ac_cv_c_stack_direction+set}" = set; then :
16208 $as_echo_n "(cached) " >&6
16209 else
16210 if test "$cross_compiling" = yes; then :
16211 ac_cv_c_stack_direction=0
16212 else
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215 $ac_includes_default
16217 find_stack_direction (int *addr, int depth)
16219 int dir, dummy = 0;
16220 if (! addr)
16221 addr = &dummy;
16222 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16223 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16224 return dir + dummy;
16228 main (int argc, char **argv)
16230 return find_stack_direction (0, argc + !argv + 20) < 0;
16232 _ACEOF
16233 if ac_fn_c_try_run "$LINENO"; then :
16234 ac_cv_c_stack_direction=1
16235 else
16236 ac_cv_c_stack_direction=-1
16238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16239 conftest.$ac_objext conftest.beam conftest.$ac_ext
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16244 $as_echo "$ac_cv_c_stack_direction" >&6; }
16245 cat >>confdefs.h <<_ACEOF
16246 #define STACK_DIRECTION $ac_cv_c_stack_direction
16247 _ACEOF
16255 for ac_func in $ac_func_list
16256 do :
16257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16258 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16259 eval as_val=\$$as_ac_var
16260 if test "x$as_val" = x""yes; then :
16261 cat >>confdefs.h <<_ACEOF
16262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16263 _ACEOF
16266 done
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16272 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16273 if test "${ac_cv_c_bigendian+set}" = set; then :
16274 $as_echo_n "(cached) " >&6
16275 else
16276 ac_cv_c_bigendian=unknown
16277 # See if we're dealing with a universal compiler.
16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280 #ifndef __APPLE_CC__
16281 not a universal capable compiler
16282 #endif
16283 typedef int dummy;
16285 _ACEOF
16286 if ac_fn_c_try_compile "$LINENO"; then :
16288 # Check for potential -arch flags. It is not universal unless
16289 # there are at least two -arch flags with different values.
16290 ac_arch=
16291 ac_prev=
16292 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16293 if test -n "$ac_prev"; then
16294 case $ac_word in
16295 i?86 | x86_64 | ppc | ppc64)
16296 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16297 ac_arch=$ac_word
16298 else
16299 ac_cv_c_bigendian=universal
16300 break
16303 esac
16304 ac_prev=
16305 elif test "x$ac_word" = "x-arch"; then
16306 ac_prev=arch
16308 done
16310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311 if test $ac_cv_c_bigendian = unknown; then
16312 # See if sys/param.h defines the BYTE_ORDER macro.
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h. */
16315 #include <sys/types.h>
16316 #include <sys/param.h>
16319 main ()
16321 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16322 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16323 && LITTLE_ENDIAN)
16324 bogus endian macros
16325 #endif
16328 return 0;
16330 _ACEOF
16331 if ac_fn_c_try_compile "$LINENO"; then :
16332 # It does; now see whether it defined to BIG_ENDIAN or not.
16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334 /* end confdefs.h. */
16335 #include <sys/types.h>
16336 #include <sys/param.h>
16339 main ()
16341 #if BYTE_ORDER != BIG_ENDIAN
16342 not big endian
16343 #endif
16346 return 0;
16348 _ACEOF
16349 if ac_fn_c_try_compile "$LINENO"; then :
16350 ac_cv_c_bigendian=yes
16351 else
16352 ac_cv_c_bigendian=no
16354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16358 if test $ac_cv_c_bigendian = unknown; then
16359 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16362 #include <limits.h>
16365 main ()
16367 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16368 bogus endian macros
16369 #endif
16372 return 0;
16374 _ACEOF
16375 if ac_fn_c_try_compile "$LINENO"; then :
16376 # It does; now see whether it defined to _BIG_ENDIAN or not.
16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h. */
16379 #include <limits.h>
16382 main ()
16384 #ifndef _BIG_ENDIAN
16385 not big endian
16386 #endif
16389 return 0;
16391 _ACEOF
16392 if ac_fn_c_try_compile "$LINENO"; then :
16393 ac_cv_c_bigendian=yes
16394 else
16395 ac_cv_c_bigendian=no
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 if test $ac_cv_c_bigendian = unknown; then
16402 # Compile a test program.
16403 if test "$cross_compiling" = yes; then :
16404 # Try to guess by grepping values from an object file.
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h. */
16407 short int ascii_mm[] =
16408 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16409 short int ascii_ii[] =
16410 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16411 int use_ascii (int i) {
16412 return ascii_mm[i] + ascii_ii[i];
16414 short int ebcdic_ii[] =
16415 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16416 short int ebcdic_mm[] =
16417 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16418 int use_ebcdic (int i) {
16419 return ebcdic_mm[i] + ebcdic_ii[i];
16421 extern int foo;
16424 main ()
16426 return use_ascii (foo) == use_ebcdic (foo);
16428 return 0;
16430 _ACEOF
16431 if ac_fn_c_try_compile "$LINENO"; then :
16432 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16433 ac_cv_c_bigendian=yes
16435 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16436 if test "$ac_cv_c_bigendian" = unknown; then
16437 ac_cv_c_bigendian=no
16438 else
16439 # finding both strings is unlikely to happen, but who knows?
16440 ac_cv_c_bigendian=unknown
16444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445 else
16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16448 $ac_includes_default
16450 main ()
16453 /* Are we little or big endian? From Harbison&Steele. */
16454 union
16456 long int l;
16457 char c[sizeof (long int)];
16458 } u;
16459 u.l = 1;
16460 return u.c[sizeof (long int) - 1] == 1;
16463 return 0;
16465 _ACEOF
16466 if ac_fn_c_try_run "$LINENO"; then :
16467 ac_cv_c_bigendian=no
16468 else
16469 ac_cv_c_bigendian=yes
16471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16472 conftest.$ac_objext conftest.beam conftest.$ac_ext
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16478 $as_echo "$ac_cv_c_bigendian" >&6; }
16479 case $ac_cv_c_bigendian in #(
16480 yes)
16481 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16482 ;; #(
16484 ;; #(
16485 universal)
16487 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16489 ;; #(
16491 as_fn_error "unknown endianness
16492 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16493 esac
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16497 $as_echo_n "checking for inline... " >&6; }
16498 if test "${ac_cv_c_inline+set}" = set; then :
16499 $as_echo_n "(cached) " >&6
16500 else
16501 ac_cv_c_inline=no
16502 for ac_kw in inline __inline__ __inline; do
16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16505 #ifndef __cplusplus
16506 typedef int foo_t;
16507 static $ac_kw foo_t static_foo () {return 0; }
16508 $ac_kw foo_t foo () {return 0; }
16509 #endif
16511 _ACEOF
16512 if ac_fn_c_try_compile "$LINENO"; then :
16513 ac_cv_c_inline=$ac_kw
16515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 test "$ac_cv_c_inline" != no && break
16517 done
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16521 $as_echo "$ac_cv_c_inline" >&6; }
16523 case $ac_cv_c_inline in
16524 inline | yes) ;;
16526 case $ac_cv_c_inline in
16527 no) ac_val=;;
16528 *) ac_val=$ac_cv_c_inline;;
16529 esac
16530 cat >>confdefs.h <<_ACEOF
16531 #ifndef __cplusplus
16532 #define inline $ac_val
16533 #endif
16534 _ACEOF
16536 esac
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16540 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16541 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16542 $as_echo_n "(cached) " >&6
16543 else
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16546 /* On HP-UX before 11.23, strtold returns a struct instead of
16547 long double. Reject implementations like that, by requiring
16548 compatibility with the C99 prototype. */
16549 #include <stdlib.h>
16550 static long double (*p) (char const *, char **) = strtold;
16551 static long double
16552 test (char const *nptr, char **endptr)
16554 long double r;
16555 r = strtold (nptr, endptr);
16556 return r;
16559 main ()
16561 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16563 return 0;
16565 _ACEOF
16566 if ac_fn_c_try_link "$LINENO"; then :
16567 gl_cv_func_c99_strtold=yes
16568 else
16569 gl_cv_func_c99_strtold=no
16571 rm -f core conftest.err conftest.$ac_objext \
16572 conftest$ac_exeext conftest.$ac_ext
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16575 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16576 if test $gl_cv_func_c99_strtold = yes; then
16578 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16583 GNULIB_CHDIR=0;
16584 GNULIB_CHOWN=0;
16585 GNULIB_CLOSE=0;
16586 GNULIB_DUP=0;
16587 GNULIB_DUP2=0;
16588 GNULIB_DUP3=0;
16589 GNULIB_ENVIRON=0;
16590 GNULIB_EUIDACCESS=0;
16591 GNULIB_FACCESSAT=0;
16592 GNULIB_FCHDIR=0;
16593 GNULIB_FCHOWNAT=0;
16594 GNULIB_FDATASYNC=0;
16595 GNULIB_FSYNC=0;
16596 GNULIB_FTRUNCATE=0;
16597 GNULIB_GETCWD=0;
16598 GNULIB_GETDOMAINNAME=0;
16599 GNULIB_GETDTABLESIZE=0;
16600 GNULIB_GETGROUPS=0;
16601 GNULIB_GETHOSTNAME=0;
16602 GNULIB_GETLOGIN=0;
16603 GNULIB_GETLOGIN_R=0;
16604 GNULIB_GETPAGESIZE=0;
16605 GNULIB_GETUSERSHELL=0;
16606 GNULIB_GROUP_MEMBER=0;
16607 GNULIB_LCHOWN=0;
16608 GNULIB_LINK=0;
16609 GNULIB_LINKAT=0;
16610 GNULIB_LSEEK=0;
16611 GNULIB_PIPE=0;
16612 GNULIB_PIPE2=0;
16613 GNULIB_PREAD=0;
16614 GNULIB_PWRITE=0;
16615 GNULIB_READ=0;
16616 GNULIB_READLINK=0;
16617 GNULIB_READLINKAT=0;
16618 GNULIB_RMDIR=0;
16619 GNULIB_SLEEP=0;
16620 GNULIB_SYMLINK=0;
16621 GNULIB_SYMLINKAT=0;
16622 GNULIB_TTYNAME_R=0;
16623 GNULIB_UNISTD_H_GETOPT=0;
16624 GNULIB_UNISTD_H_NONBLOCKING=0;
16625 GNULIB_UNISTD_H_SIGPIPE=0;
16626 GNULIB_UNLINK=0;
16627 GNULIB_UNLINKAT=0;
16628 GNULIB_USLEEP=0;
16629 GNULIB_WRITE=0;
16630 HAVE_CHOWN=1;
16631 HAVE_DUP2=1;
16632 HAVE_DUP3=1;
16633 HAVE_EUIDACCESS=1;
16634 HAVE_FACCESSAT=1;
16635 HAVE_FCHDIR=1;
16636 HAVE_FCHOWNAT=1;
16637 HAVE_FDATASYNC=1;
16638 HAVE_FSYNC=1;
16639 HAVE_FTRUNCATE=1;
16640 HAVE_GETDTABLESIZE=1;
16641 HAVE_GETGROUPS=1;
16642 HAVE_GETHOSTNAME=1;
16643 HAVE_GETLOGIN=1;
16644 HAVE_GETPAGESIZE=1;
16645 HAVE_GROUP_MEMBER=1;
16646 HAVE_LCHOWN=1;
16647 HAVE_LINK=1;
16648 HAVE_LINKAT=1;
16649 HAVE_PIPE=1;
16650 HAVE_PIPE2=1;
16651 HAVE_PREAD=1;
16652 HAVE_PWRITE=1;
16653 HAVE_READLINK=1;
16654 HAVE_READLINKAT=1;
16655 HAVE_SLEEP=1;
16656 HAVE_SYMLINK=1;
16657 HAVE_SYMLINKAT=1;
16658 HAVE_UNLINKAT=1;
16659 HAVE_USLEEP=1;
16660 HAVE_DECL_ENVIRON=1;
16661 HAVE_DECL_FCHDIR=1;
16662 HAVE_DECL_FDATASYNC=1;
16663 HAVE_DECL_GETDOMAINNAME=1;
16664 HAVE_DECL_GETLOGIN_R=1;
16665 HAVE_DECL_GETPAGESIZE=1;
16666 HAVE_DECL_GETUSERSHELL=1;
16667 HAVE_DECL_TTYNAME_R=1;
16668 HAVE_OS_H=0;
16669 HAVE_SYS_PARAM_H=0;
16670 REPLACE_CHOWN=0;
16671 REPLACE_CLOSE=0;
16672 REPLACE_DUP=0;
16673 REPLACE_DUP2=0;
16674 REPLACE_FCHOWNAT=0;
16675 REPLACE_GETCWD=0;
16676 REPLACE_GETDOMAINNAME=0;
16677 REPLACE_GETLOGIN_R=0;
16678 REPLACE_GETGROUPS=0;
16679 REPLACE_GETPAGESIZE=0;
16680 REPLACE_LCHOWN=0;
16681 REPLACE_LINK=0;
16682 REPLACE_LINKAT=0;
16683 REPLACE_LSEEK=0;
16684 REPLACE_PREAD=0;
16685 REPLACE_PWRITE=0;
16686 REPLACE_READ=0;
16687 REPLACE_READLINK=0;
16688 REPLACE_RMDIR=0;
16689 REPLACE_SLEEP=0;
16690 REPLACE_SYMLINK=0;
16691 REPLACE_TTYNAME_R=0;
16692 REPLACE_UNLINK=0;
16693 REPLACE_UNLINKAT=0;
16694 REPLACE_USLEEP=0;
16695 REPLACE_WRITE=0;
16696 UNISTD_H_HAVE_WINSOCK2_H=0;
16697 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16701 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16702 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16703 $as_echo_n "(cached) " >&6
16704 else
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16708 #include <sys/types.h>
16709 #include <sys/stat.h>
16711 main ()
16713 struct stat s; s.st_dm_mode;
16715 return 0;
16717 _ACEOF
16718 if ac_fn_c_try_compile "$LINENO"; then :
16719 ac_cv_struct_st_dm_mode=yes
16720 else
16721 ac_cv_struct_st_dm_mode=no
16723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16726 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16728 if test $ac_cv_struct_st_dm_mode = yes; then
16730 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16735 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16736 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16737 ac_have_decl=1
16738 else
16739 ac_have_decl=0
16742 cat >>confdefs.h <<_ACEOF
16743 #define HAVE_DECL_STRMODE $ac_have_decl
16744 _ACEOF
16747 GNULIB__EXIT=0;
16748 GNULIB_ATOLL=0;
16749 GNULIB_CALLOC_POSIX=0;
16750 GNULIB_CANONICALIZE_FILE_NAME=0;
16751 GNULIB_GETLOADAVG=0;
16752 GNULIB_GETSUBOPT=0;
16753 GNULIB_GRANTPT=0;
16754 GNULIB_MALLOC_POSIX=0;
16755 GNULIB_MBTOWC=0;
16756 GNULIB_MKDTEMP=0;
16757 GNULIB_MKOSTEMP=0;
16758 GNULIB_MKOSTEMPS=0;
16759 GNULIB_MKSTEMP=0;
16760 GNULIB_MKSTEMPS=0;
16761 GNULIB_PTSNAME=0;
16762 GNULIB_PUTENV=0;
16763 GNULIB_RANDOM_R=0;
16764 GNULIB_REALLOC_POSIX=0;
16765 GNULIB_REALPATH=0;
16766 GNULIB_RPMATCH=0;
16767 GNULIB_SETENV=0;
16768 GNULIB_STRTOD=0;
16769 GNULIB_STRTOLL=0;
16770 GNULIB_STRTOULL=0;
16771 GNULIB_SYSTEM_POSIX=0;
16772 GNULIB_UNLOCKPT=0;
16773 GNULIB_UNSETENV=0;
16774 GNULIB_WCTOMB=0;
16775 HAVE__EXIT=1;
16776 HAVE_ATOLL=1;
16777 HAVE_CANONICALIZE_FILE_NAME=1;
16778 HAVE_DECL_GETLOADAVG=1;
16779 HAVE_GETSUBOPT=1;
16780 HAVE_GRANTPT=1;
16781 HAVE_MKDTEMP=1;
16782 HAVE_MKOSTEMP=1;
16783 HAVE_MKOSTEMPS=1;
16784 HAVE_MKSTEMP=1;
16785 HAVE_MKSTEMPS=1;
16786 HAVE_PTSNAME=1;
16787 HAVE_RANDOM_H=1;
16788 HAVE_RANDOM_R=1;
16789 HAVE_REALPATH=1;
16790 HAVE_RPMATCH=1;
16791 HAVE_SETENV=1;
16792 HAVE_DECL_SETENV=1;
16793 HAVE_STRTOD=1;
16794 HAVE_STRTOLL=1;
16795 HAVE_STRTOULL=1;
16796 HAVE_STRUCT_RANDOM_DATA=1;
16797 HAVE_SYS_LOADAVG_H=0;
16798 HAVE_UNLOCKPT=1;
16799 HAVE_DECL_UNSETENV=1;
16800 REPLACE_CALLOC=0;
16801 REPLACE_CANONICALIZE_FILE_NAME=0;
16802 REPLACE_MALLOC=0;
16803 REPLACE_MBTOWC=0;
16804 REPLACE_MKSTEMP=0;
16805 REPLACE_PUTENV=0;
16806 REPLACE_REALLOC=0;
16807 REPLACE_REALPATH=0;
16808 REPLACE_SETENV=0;
16809 REPLACE_STRTOD=0;
16810 REPLACE_UNSETENV=0;
16811 REPLACE_WCTOMB=0;
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16816 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16817 if test "${gl_cv_have_include_next+set}" = set; then :
16818 $as_echo_n "(cached) " >&6
16819 else
16820 rm -rf conftestd1a conftestd1b conftestd2
16821 mkdir conftestd1a conftestd1b conftestd2
16822 cat <<EOF > conftestd1a/conftest.h
16823 #define DEFINED_IN_CONFTESTD1
16824 #include_next <conftest.h>
16825 #ifdef DEFINED_IN_CONFTESTD2
16826 int foo;
16827 #else
16828 #error "include_next doesn't work"
16829 #endif
16831 cat <<EOF > conftestd1b/conftest.h
16832 #define DEFINED_IN_CONFTESTD1
16833 #include <stdio.h>
16834 #include_next <conftest.h>
16835 #ifdef DEFINED_IN_CONFTESTD2
16836 int foo;
16837 #else
16838 #error "include_next doesn't work"
16839 #endif
16841 cat <<EOF > conftestd2/conftest.h
16842 #ifndef DEFINED_IN_CONFTESTD1
16843 #error "include_next test doesn't work"
16844 #endif
16845 #define DEFINED_IN_CONFTESTD2
16847 gl_save_CPPFLAGS="$CPPFLAGS"
16848 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850 /* end confdefs.h. */
16851 #include <conftest.h>
16852 _ACEOF
16853 if ac_fn_c_try_compile "$LINENO"; then :
16854 gl_cv_have_include_next=yes
16855 else
16856 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16859 #include <conftest.h>
16860 _ACEOF
16861 if ac_fn_c_try_compile "$LINENO"; then :
16862 gl_cv_have_include_next=buggy
16863 else
16864 gl_cv_have_include_next=no
16866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870 CPPFLAGS="$gl_save_CPPFLAGS"
16871 rm -rf conftestd1a conftestd1b conftestd2
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16875 $as_echo "$gl_cv_have_include_next" >&6; }
16876 PRAGMA_SYSTEM_HEADER=
16877 if test $gl_cv_have_include_next = yes; then
16878 INCLUDE_NEXT=include_next
16879 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16880 if test -n "$GCC"; then
16881 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16883 else
16884 if test $gl_cv_have_include_next = buggy; then
16885 INCLUDE_NEXT=include
16886 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16887 else
16888 INCLUDE_NEXT=include
16889 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16896 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16897 if test "${gl_cv_pragma_columns+set}" = set; then :
16898 $as_echo_n "(cached) " >&6
16899 else
16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h. */
16903 #ifdef __TANDEM
16904 choke me
16905 #endif
16907 _ACEOF
16908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16909 $EGREP "choke me" >/dev/null 2>&1; then :
16910 gl_cv_pragma_columns=yes
16911 else
16912 gl_cv_pragma_columns=no
16914 rm -f conftest*
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16919 $as_echo "$gl_cv_pragma_columns" >&6; }
16920 if test $gl_cv_pragma_columns = yes; then
16921 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16922 else
16923 PRAGMA_COLUMNS=
16942 if test $gl_cv_have_include_next = yes; then
16943 gl_cv_next_getopt_h='<'getopt.h'>'
16944 else
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16946 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16947 if test "${gl_cv_next_getopt_h+set}" = set; then :
16948 $as_echo_n "(cached) " >&6
16949 else
16951 if test $ac_cv_header_getopt_h = yes; then
16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16956 #include <getopt.h>
16958 _ACEOF
16959 case "$host_os" in
16960 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16961 *) gl_absname_cpp="$ac_cpp" ;;
16962 esac
16964 case "$host_os" in
16965 mingw*)
16966 gl_dirsep_regex='[/\\]'
16969 gl_dirsep_regex='/'
16971 esac
16973 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
16974 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
16975 s|^/[^/]|//&|
16979 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16980 sed -n "$gl_absolute_header_sed"`'"'
16981 else
16982 gl_cv_next_getopt_h='<'getopt.h'>'
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16988 $as_echo "$gl_cv_next_getopt_h" >&6; }
16990 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16992 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16994 gl_next_as_first_directive='<'getopt.h'>'
16995 else
16996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16997 gl_next_as_first_directive=$gl_cv_next_getopt_h
16999 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17004 if test $ac_cv_header_getopt_h = yes; then
17005 HAVE_GETOPT_H=1
17006 else
17007 HAVE_GETOPT_H=0
17011 gl_replace_getopt=
17013 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17014 for ac_header in getopt.h
17015 do :
17016 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17017 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17018 cat >>confdefs.h <<_ACEOF
17019 #define HAVE_GETOPT_H 1
17020 _ACEOF
17022 else
17023 gl_replace_getopt=yes
17026 done
17030 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17031 for ac_func in getopt_long_only
17032 do :
17033 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17034 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_GETOPT_LONG_ONLY 1
17037 _ACEOF
17039 else
17040 gl_replace_getopt=yes
17042 done
17046 if test -z "$gl_replace_getopt"; then
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17048 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17049 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17050 $as_echo_n "(cached) " >&6
17051 else
17053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17054 /* end confdefs.h. */
17055 #include <unistd.h>
17057 main ()
17059 int *p = &optreset; return optreset;
17061 return 0;
17063 _ACEOF
17064 if ac_fn_c_try_link "$LINENO"; then :
17065 gl_optind_min=1
17066 else
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17069 #include <getopt.h>
17071 main ()
17073 return !getopt_clip;
17075 return 0;
17077 _ACEOF
17078 if ac_fn_c_try_compile "$LINENO"; then :
17079 gl_optind_min=1
17080 else
17081 gl_optind_min=0
17083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17085 rm -f core conftest.err conftest.$ac_objext \
17086 conftest$ac_exeext conftest.$ac_ext
17088 gl_save_CPPFLAGS=$CPPFLAGS
17089 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17090 if test "$cross_compiling" = yes; then :
17091 case "$host_os" in
17092 mingw*) gl_cv_func_getopt_posix="guessing no";;
17093 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17094 *) gl_cv_func_getopt_posix="guessing yes";;
17095 esac
17097 else
17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h. */
17101 #include <unistd.h>
17102 #include <stdlib.h>
17103 #include <string.h>
17106 main ()
17109 static char program[] = "program";
17110 static char a[] = "-a";
17111 static char foo[] = "foo";
17112 static char bar[] = "bar";
17113 char *argv[] = { program, a, foo, bar, NULL };
17114 int c;
17116 optind = OPTIND_MIN;
17117 opterr = 0;
17119 c = getopt (4, argv, "ab");
17120 if (!(c == 'a'))
17121 return 1;
17122 c = getopt (4, argv, "ab");
17123 if (!(c == -1))
17124 return 2;
17125 if (!(optind == 2))
17126 return 3;
17128 /* Some internal state exists at this point. */
17130 static char program[] = "program";
17131 static char donald[] = "donald";
17132 static char p[] = "-p";
17133 static char billy[] = "billy";
17134 static char duck[] = "duck";
17135 static char a[] = "-a";
17136 static char bar[] = "bar";
17137 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17138 int c;
17140 optind = OPTIND_MIN;
17141 opterr = 0;
17143 c = getopt (7, argv, "+abp:q:");
17144 if (!(c == -1))
17145 return 4;
17146 if (!(strcmp (argv[0], "program") == 0))
17147 return 5;
17148 if (!(strcmp (argv[1], "donald") == 0))
17149 return 6;
17150 if (!(strcmp (argv[2], "-p") == 0))
17151 return 7;
17152 if (!(strcmp (argv[3], "billy") == 0))
17153 return 8;
17154 if (!(strcmp (argv[4], "duck") == 0))
17155 return 9;
17156 if (!(strcmp (argv[5], "-a") == 0))
17157 return 10;
17158 if (!(strcmp (argv[6], "bar") == 0))
17159 return 11;
17160 if (!(optind == 1))
17161 return 12;
17163 /* Detect MacOS 10.5, AIX 7.1 bug. */
17165 static char program[] = "program";
17166 static char ab[] = "-ab";
17167 char *argv[3] = { program, ab, NULL };
17168 optind = OPTIND_MIN;
17169 opterr = 0;
17170 if (getopt (2, argv, "ab:") != 'a')
17171 return 13;
17172 if (getopt (2, argv, "ab:") != '?')
17173 return 14;
17174 if (optopt != 'b')
17175 return 15;
17176 if (optind != 2)
17177 return 16;
17180 return 0;
17183 _ACEOF
17184 if ac_fn_c_try_run "$LINENO"; then :
17185 gl_cv_func_getopt_posix=yes
17186 else
17187 gl_cv_func_getopt_posix=no
17189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17190 conftest.$ac_objext conftest.beam conftest.$ac_ext
17193 CPPFLAGS=$gl_save_CPPFLAGS
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17197 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17198 case "$gl_cv_func_getopt_posix" in
17199 *no) gl_replace_getopt=yes ;;
17200 esac
17203 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17205 $as_echo_n "checking for working GNU getopt function... " >&6; }
17206 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17207 $as_echo_n "(cached) " >&6
17208 else
17209 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17210 # optstring is necessary for programs like m4 that have POSIX-mandated
17211 # semantics for supporting options interspersed with files.
17212 # Also, since getopt_long is a GNU extension, we require optind=0.
17213 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17214 # so take care to revert to the correct (non-)export state.
17215 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17216 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17217 xx) gl_had_POSIXLY_CORRECT=exported ;;
17218 x) gl_had_POSIXLY_CORRECT=yes ;;
17219 *) gl_had_POSIXLY_CORRECT= ;;
17220 esac
17221 POSIXLY_CORRECT=1
17222 export POSIXLY_CORRECT
17223 if test "$cross_compiling" = yes; then :
17224 case $host_os:$ac_cv_have_decl_optreset in
17225 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17226 *:yes) gl_cv_func_getopt_gnu=no;;
17227 *) gl_cv_func_getopt_gnu=yes;;
17228 esac
17230 else
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17233 #include <getopt.h>
17234 #include <stddef.h>
17235 #include <string.h>
17237 #include <stdlib.h>
17238 #if defined __MACH__ && defined __APPLE__
17239 /* Avoid a crash on MacOS X. */
17240 #include <mach/mach.h>
17241 #include <mach/mach_error.h>
17242 #include <mach/thread_status.h>
17243 #include <mach/exception.h>
17244 #include <mach/task.h>
17245 #include <pthread.h>
17246 /* The exception port on which our thread listens. */
17247 static mach_port_t our_exception_port;
17248 /* The main function of the thread listening for exceptions of type
17249 EXC_BAD_ACCESS. */
17250 static void *
17251 mach_exception_thread (void *arg)
17253 /* Buffer for a message to be received. */
17254 struct {
17255 mach_msg_header_t head;
17256 mach_msg_body_t msgh_body;
17257 char data[1024];
17258 } msg;
17259 mach_msg_return_t retval;
17260 /* Wait for a message on the exception port. */
17261 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17262 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17263 if (retval != MACH_MSG_SUCCESS)
17264 abort ();
17265 exit (1);
17267 static void
17268 nocrash_init (void)
17270 mach_port_t self = mach_task_self ();
17271 /* Allocate a port on which the thread shall listen for exceptions. */
17272 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17273 == KERN_SUCCESS) {
17274 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17275 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17276 MACH_MSG_TYPE_MAKE_SEND)
17277 == KERN_SUCCESS) {
17278 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17279 for us. */
17280 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17281 /* Create the thread listening on the exception port. */
17282 pthread_attr_t attr;
17283 pthread_t thread;
17284 if (pthread_attr_init (&attr) == 0
17285 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17286 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17287 pthread_attr_destroy (&attr);
17288 /* Replace the exception port info for these exceptions with our own.
17289 Note that we replace the exception port for the entire task, not only
17290 for a particular thread. This has the effect that when our exception
17291 port gets the message, the thread specific exception port has already
17292 been asked, and we don't need to bother about it.
17293 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17294 task_set_exception_ports (self, mask, our_exception_port,
17295 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17300 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17301 /* Avoid a crash on native Windows. */
17302 #define WIN32_LEAN_AND_MEAN
17303 #include <windows.h>
17304 #include <winerror.h>
17305 static LONG WINAPI
17306 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17308 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17310 case EXCEPTION_ACCESS_VIOLATION:
17311 case EXCEPTION_IN_PAGE_ERROR:
17312 case EXCEPTION_STACK_OVERFLOW:
17313 case EXCEPTION_GUARD_PAGE:
17314 case EXCEPTION_PRIV_INSTRUCTION:
17315 case EXCEPTION_ILLEGAL_INSTRUCTION:
17316 case EXCEPTION_DATATYPE_MISALIGNMENT:
17317 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17318 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17319 exit (1);
17321 return EXCEPTION_CONTINUE_SEARCH;
17323 static void
17324 nocrash_init (void)
17326 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17328 #else
17329 /* Avoid a crash on POSIX systems. */
17330 #include <signal.h>
17331 /* A POSIX signal handler. */
17332 static void
17333 exception_handler (int sig)
17335 exit (1);
17337 static void
17338 nocrash_init (void)
17340 #ifdef SIGSEGV
17341 signal (SIGSEGV, exception_handler);
17342 #endif
17343 #ifdef SIGBUS
17344 signal (SIGBUS, exception_handler);
17345 #endif
17347 #endif
17351 main ()
17354 int result = 0;
17356 nocrash_init();
17358 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17359 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17360 OSF/1 5.1, Solaris 10. */
17362 static char conftest[] = "conftest";
17363 static char plus[] = "-+";
17364 char *argv[3] = { conftest, plus, NULL };
17365 opterr = 0;
17366 if (getopt (2, argv, "+a") != '?')
17367 result |= 1;
17369 /* This code succeeds on glibc 2.8, mingw,
17370 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17371 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17373 static char program[] = "program";
17374 static char p[] = "-p";
17375 static char foo[] = "foo";
17376 static char bar[] = "bar";
17377 char *argv[] = { program, p, foo, bar, NULL };
17379 optind = 1;
17380 if (getopt (4, argv, "p::") != 'p')
17381 result |= 2;
17382 else if (optarg != NULL)
17383 result |= 4;
17384 else if (getopt (4, argv, "p::") != -1)
17385 result |= 6;
17386 else if (optind != 2)
17387 result |= 8;
17389 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17391 static char program[] = "program";
17392 static char foo[] = "foo";
17393 static char p[] = "-p";
17394 char *argv[] = { program, foo, p, NULL };
17395 optind = 0;
17396 if (getopt (3, argv, "-p") != 1)
17397 result |= 16;
17398 else if (getopt (3, argv, "-p") != 'p')
17399 result |= 32;
17401 /* This code fails on glibc 2.11. */
17403 static char program[] = "program";
17404 static char b[] = "-b";
17405 static char a[] = "-a";
17406 char *argv[] = { program, b, a, NULL };
17407 optind = opterr = 0;
17408 if (getopt (3, argv, "+:a:b") != 'b')
17409 result |= 64;
17410 else if (getopt (3, argv, "+:a:b") != ':')
17411 result |= 64;
17413 /* This code dumps core on glibc 2.14. */
17415 static char program[] = "program";
17416 static char w[] = "-W";
17417 static char dummy[] = "dummy";
17418 char *argv[] = { program, w, dummy, NULL };
17419 optind = opterr = 1;
17420 if (getopt (3, argv, "W;") != 'W')
17421 result |= 128;
17423 return result;
17426 return 0;
17428 _ACEOF
17429 if ac_fn_c_try_run "$LINENO"; then :
17430 gl_cv_func_getopt_gnu=yes
17431 else
17432 gl_cv_func_getopt_gnu=no
17434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17435 conftest.$ac_objext conftest.beam conftest.$ac_ext
17438 case $gl_had_POSIXLY_CORRECT in
17439 exported) ;;
17440 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17441 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17442 esac
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17446 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17447 if test "$gl_cv_func_getopt_gnu" = "no"; then
17448 gl_replace_getopt=yes
17456 REPLACE_GETOPT=0
17459 if test -n "$gl_replace_getopt"; then :
17461 REPLACE_GETOPT=1
17466 if test $REPLACE_GETOPT = 1; then
17468 GETOPT_H=getopt.h
17470 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17474 GNULIB_UNISTD_H_GETOPT=1
17477 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17478 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17479 ac_have_decl=1
17480 else
17481 ac_have_decl=0
17484 cat >>confdefs.h <<_ACEOF
17485 #define HAVE_DECL_GETENV $ac_have_decl
17486 _ACEOF
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17490 $as_echo_n "checking for unsigned long long int... " >&6; }
17491 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17492 $as_echo_n "(cached) " >&6
17493 else
17494 ac_cv_type_unsigned_long_long_int=yes
17495 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h. */
17499 /* For now, do not test the preprocessor; as of 2007 there are too many
17500 implementations with broken preprocessors. Perhaps this can
17501 be revisited in 2012. In the meantime, code should not expect
17502 #if to work with literals wider than 32 bits. */
17503 /* Test literals. */
17504 long long int ll = 9223372036854775807ll;
17505 long long int nll = -9223372036854775807LL;
17506 unsigned long long int ull = 18446744073709551615ULL;
17507 /* Test constant expressions. */
17508 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17509 ? 1 : -1)];
17510 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17511 ? 1 : -1)];
17512 int i = 63;
17514 main ()
17516 /* Test availability of runtime routines for shift and division. */
17517 long long int llmax = 9223372036854775807ll;
17518 unsigned long long int ullmax = 18446744073709551615ull;
17519 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17520 | (llmax / ll) | (llmax % ll)
17521 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17522 | (ullmax / ull) | (ullmax % ull));
17524 return 0;
17527 _ACEOF
17528 if ac_fn_c_try_link "$LINENO"; then :
17530 else
17531 ac_cv_type_unsigned_long_long_int=no
17533 rm -f core conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17538 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17539 if test $ac_cv_type_unsigned_long_long_int = yes; then
17541 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17548 $as_echo_n "checking for long long int... " >&6; }
17549 if test "${ac_cv_type_long_long_int+set}" = set; then :
17550 $as_echo_n "(cached) " >&6
17551 else
17552 ac_cv_type_long_long_int=yes
17553 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17554 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17555 if test $ac_cv_type_long_long_int = yes; then
17556 if test "$cross_compiling" = yes; then :
17558 else
17559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560 /* end confdefs.h. */
17561 #include <limits.h>
17562 #ifndef LLONG_MAX
17563 # define HALF \
17564 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17565 # define LLONG_MAX (HALF - 1 + HALF)
17566 #endif
17568 main ()
17570 long long int n = 1;
17571 int i;
17572 for (i = 0; ; i++)
17574 long long int m = n << i;
17575 if (m >> i != n)
17576 return 1;
17577 if (LLONG_MAX / 2 < m)
17578 break;
17580 return 0;
17582 return 0;
17584 _ACEOF
17585 if ac_fn_c_try_run "$LINENO"; then :
17587 else
17588 ac_cv_type_long_long_int=no
17590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17591 conftest.$ac_objext conftest.beam conftest.$ac_ext
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17598 $as_echo "$ac_cv_type_long_long_int" >&6; }
17599 if test $ac_cv_type_long_long_int = yes; then
17601 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17610 gl_cv_c_multiarch=no
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613 #ifndef __APPLE_CC__
17614 not a universal capable compiler
17615 #endif
17616 typedef int dummy;
17618 _ACEOF
17619 if ac_fn_c_try_compile "$LINENO"; then :
17621 arch=
17622 prev=
17623 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17624 if test -n "$prev"; then
17625 case $word in
17626 i?86 | x86_64 | ppc | ppc64)
17627 if test -z "$arch" || test "$arch" = "$word"; then
17628 arch="$word"
17629 else
17630 gl_cv_c_multiarch=yes
17633 esac
17634 prev=
17635 else
17636 if test "x$word" = "x-arch"; then
17637 prev=arch
17640 done
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644 if test $gl_cv_c_multiarch = yes; then
17645 APPLE_UNIVERSAL_BUILD=1
17646 else
17647 APPLE_UNIVERSAL_BUILD=0
17654 if test $ac_cv_type_long_long_int = yes; then
17655 HAVE_LONG_LONG_INT=1
17656 else
17657 HAVE_LONG_LONG_INT=0
17661 if test $ac_cv_type_unsigned_long_long_int = yes; then
17662 HAVE_UNSIGNED_LONG_LONG_INT=1
17663 else
17664 HAVE_UNSIGNED_LONG_LONG_INT=0
17669 if test $ac_cv_header_wchar_h = yes; then
17670 HAVE_WCHAR_H=1
17671 else
17672 HAVE_WCHAR_H=0
17676 if test $ac_cv_header_inttypes_h = yes; then
17677 HAVE_INTTYPES_H=1
17678 else
17679 HAVE_INTTYPES_H=0
17683 if test $ac_cv_header_sys_types_h = yes; then
17684 HAVE_SYS_TYPES_H=1
17685 else
17686 HAVE_SYS_TYPES_H=0
17699 if test $gl_cv_have_include_next = yes; then
17700 gl_cv_next_stdint_h='<'stdint.h'>'
17701 else
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17703 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17704 if test "${gl_cv_next_stdint_h+set}" = set; then :
17705 $as_echo_n "(cached) " >&6
17706 else
17708 if test $ac_cv_header_stdint_h = yes; then
17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712 /* end confdefs.h. */
17713 #include <stdint.h>
17715 _ACEOF
17716 case "$host_os" in
17717 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17718 *) gl_absname_cpp="$ac_cpp" ;;
17719 esac
17721 case "$host_os" in
17722 mingw*)
17723 gl_dirsep_regex='[/\\]'
17726 gl_dirsep_regex='/'
17728 esac
17730 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
17731 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
17732 s|^/[^/]|//&|
17736 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17737 sed -n "$gl_absolute_header_sed"`'"'
17738 else
17739 gl_cv_next_stdint_h='<'stdint.h'>'
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17745 $as_echo "$gl_cv_next_stdint_h" >&6; }
17747 NEXT_STDINT_H=$gl_cv_next_stdint_h
17749 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17751 gl_next_as_first_directive='<'stdint.h'>'
17752 else
17753 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17754 gl_next_as_first_directive=$gl_cv_next_stdint_h
17756 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17761 if test $ac_cv_header_stdint_h = yes; then
17762 HAVE_STDINT_H=1
17763 else
17764 HAVE_STDINT_H=0
17768 if test $ac_cv_header_stdint_h = yes; then
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17770 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17771 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17772 $as_echo_n "(cached) " >&6
17773 else
17774 gl_cv_header_working_stdint_h=no
17775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17779 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17780 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17781 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17782 #include <stdint.h>
17783 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17784 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17785 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17786 #endif
17789 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17790 included before <wchar.h>. */
17791 #include <stddef.h>
17792 #include <signal.h>
17793 #if HAVE_WCHAR_H
17794 # include <stdio.h>
17795 # include <time.h>
17796 # include <wchar.h>
17797 #endif
17800 #ifdef INT8_MAX
17801 int8_t a1 = INT8_MAX;
17802 int8_t a1min = INT8_MIN;
17803 #endif
17804 #ifdef INT16_MAX
17805 int16_t a2 = INT16_MAX;
17806 int16_t a2min = INT16_MIN;
17807 #endif
17808 #ifdef INT32_MAX
17809 int32_t a3 = INT32_MAX;
17810 int32_t a3min = INT32_MIN;
17811 #endif
17812 #ifdef INT64_MAX
17813 int64_t a4 = INT64_MAX;
17814 int64_t a4min = INT64_MIN;
17815 #endif
17816 #ifdef UINT8_MAX
17817 uint8_t b1 = UINT8_MAX;
17818 #else
17819 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17820 #endif
17821 #ifdef UINT16_MAX
17822 uint16_t b2 = UINT16_MAX;
17823 #endif
17824 #ifdef UINT32_MAX
17825 uint32_t b3 = UINT32_MAX;
17826 #endif
17827 #ifdef UINT64_MAX
17828 uint64_t b4 = UINT64_MAX;
17829 #endif
17830 int_least8_t c1 = INT8_C (0x7f);
17831 int_least8_t c1max = INT_LEAST8_MAX;
17832 int_least8_t c1min = INT_LEAST8_MIN;
17833 int_least16_t c2 = INT16_C (0x7fff);
17834 int_least16_t c2max = INT_LEAST16_MAX;
17835 int_least16_t c2min = INT_LEAST16_MIN;
17836 int_least32_t c3 = INT32_C (0x7fffffff);
17837 int_least32_t c3max = INT_LEAST32_MAX;
17838 int_least32_t c3min = INT_LEAST32_MIN;
17839 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17840 int_least64_t c4max = INT_LEAST64_MAX;
17841 int_least64_t c4min = INT_LEAST64_MIN;
17842 uint_least8_t d1 = UINT8_C (0xff);
17843 uint_least8_t d1max = UINT_LEAST8_MAX;
17844 uint_least16_t d2 = UINT16_C (0xffff);
17845 uint_least16_t d2max = UINT_LEAST16_MAX;
17846 uint_least32_t d3 = UINT32_C (0xffffffff);
17847 uint_least32_t d3max = UINT_LEAST32_MAX;
17848 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17849 uint_least64_t d4max = UINT_LEAST64_MAX;
17850 int_fast8_t e1 = INT_FAST8_MAX;
17851 int_fast8_t e1min = INT_FAST8_MIN;
17852 int_fast16_t e2 = INT_FAST16_MAX;
17853 int_fast16_t e2min = INT_FAST16_MIN;
17854 int_fast32_t e3 = INT_FAST32_MAX;
17855 int_fast32_t e3min = INT_FAST32_MIN;
17856 int_fast64_t e4 = INT_FAST64_MAX;
17857 int_fast64_t e4min = INT_FAST64_MIN;
17858 uint_fast8_t f1 = UINT_FAST8_MAX;
17859 uint_fast16_t f2 = UINT_FAST16_MAX;
17860 uint_fast32_t f3 = UINT_FAST32_MAX;
17861 uint_fast64_t f4 = UINT_FAST64_MAX;
17862 #ifdef INTPTR_MAX
17863 intptr_t g = INTPTR_MAX;
17864 intptr_t gmin = INTPTR_MIN;
17865 #endif
17866 #ifdef UINTPTR_MAX
17867 uintptr_t h = UINTPTR_MAX;
17868 #endif
17869 intmax_t i = INTMAX_MAX;
17870 uintmax_t j = UINTMAX_MAX;
17872 #include <limits.h> /* for CHAR_BIT */
17873 #define TYPE_MINIMUM(t) \
17874 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17875 #define TYPE_MAXIMUM(t) \
17876 ((t) ((t) 0 < (t) -1 \
17877 ? (t) -1 \
17878 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17879 struct s {
17880 int check_PTRDIFF:
17881 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17882 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17883 ? 1 : -1;
17884 /* Detect bug in FreeBSD 6.0 / ia64. */
17885 int check_SIG_ATOMIC:
17886 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17887 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17888 ? 1 : -1;
17889 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17890 int check_WCHAR:
17891 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17892 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17893 ? 1 : -1;
17894 /* Detect bug in mingw. */
17895 int check_WINT:
17896 WINT_MIN == TYPE_MINIMUM (wint_t)
17897 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17898 ? 1 : -1;
17900 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17901 int check_UINT8_C:
17902 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17903 int check_UINT16_C:
17904 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17906 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17907 #ifdef UINT8_MAX
17908 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17909 #endif
17910 #ifdef UINT16_MAX
17911 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17912 #endif
17913 #ifdef UINT32_MAX
17914 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17915 #endif
17916 #ifdef UINT64_MAX
17917 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17918 #endif
17919 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17920 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17921 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17922 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17923 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17924 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17925 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17926 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17927 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17928 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17929 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17933 main ()
17937 return 0;
17939 _ACEOF
17940 if ac_fn_c_try_compile "$LINENO"; then :
17941 if test "$cross_compiling" = yes; then :
17942 gl_cv_header_working_stdint_h=yes
17944 else
17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946 /* end confdefs.h. */
17949 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17950 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17951 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17952 #include <stdint.h>
17955 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17956 included before <wchar.h>. */
17957 #include <stddef.h>
17958 #include <signal.h>
17959 #if HAVE_WCHAR_H
17960 # include <stdio.h>
17961 # include <time.h>
17962 # include <wchar.h>
17963 #endif
17966 #include <stdio.h>
17967 #include <string.h>
17968 #define MVAL(macro) MVAL1(macro)
17969 #define MVAL1(expression) #expression
17970 static const char *macro_values[] =
17972 #ifdef INT8_MAX
17973 MVAL (INT8_MAX),
17974 #endif
17975 #ifdef INT16_MAX
17976 MVAL (INT16_MAX),
17977 #endif
17978 #ifdef INT32_MAX
17979 MVAL (INT32_MAX),
17980 #endif
17981 #ifdef INT64_MAX
17982 MVAL (INT64_MAX),
17983 #endif
17984 #ifdef UINT8_MAX
17985 MVAL (UINT8_MAX),
17986 #endif
17987 #ifdef UINT16_MAX
17988 MVAL (UINT16_MAX),
17989 #endif
17990 #ifdef UINT32_MAX
17991 MVAL (UINT32_MAX),
17992 #endif
17993 #ifdef UINT64_MAX
17994 MVAL (UINT64_MAX),
17995 #endif
17996 NULL
18000 main ()
18003 const char **mv;
18004 for (mv = macro_values; *mv != NULL; mv++)
18006 const char *value = *mv;
18007 /* Test whether it looks like a cast expression. */
18008 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18009 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18010 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18011 || strncmp (value, "((int)"/*)*/, 6) == 0
18012 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18013 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18014 return mv - macro_values + 1;
18016 return 0;
18019 return 0;
18021 _ACEOF
18022 if ac_fn_c_try_run "$LINENO"; then :
18023 gl_cv_header_working_stdint_h=yes
18025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18026 conftest.$ac_objext conftest.beam conftest.$ac_ext
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18035 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18037 if test "$gl_cv_header_working_stdint_h" = yes; then
18038 STDINT_H=
18039 else
18040 for ac_header in sys/inttypes.h sys/bitypes.h
18041 do :
18042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18043 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18044 eval as_val=\$$as_ac_Header
18045 if test "x$as_val" = x""yes; then :
18046 cat >>confdefs.h <<_ACEOF
18047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18048 _ACEOF
18052 done
18054 if test $ac_cv_header_sys_inttypes_h = yes; then
18055 HAVE_SYS_INTTYPES_H=1
18056 else
18057 HAVE_SYS_INTTYPES_H=0
18060 if test $ac_cv_header_sys_bitypes_h = yes; then
18061 HAVE_SYS_BITYPES_H=1
18062 else
18063 HAVE_SYS_BITYPES_H=0
18069 if test $APPLE_UNIVERSAL_BUILD = 0; then
18072 for gltype in ptrdiff_t size_t ; do
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18074 $as_echo_n "checking for bit size of $gltype... " >&6; }
18075 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18076 $as_echo_n "(cached) " >&6
18077 else
18078 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18079 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18080 included before <wchar.h>. */
18081 #include <stddef.h>
18082 #include <signal.h>
18083 #if HAVE_WCHAR_H
18084 # include <stdio.h>
18085 # include <time.h>
18086 # include <wchar.h>
18087 #endif
18089 #include <limits.h>"; then :
18091 else
18092 result=unknown
18095 eval gl_cv_bitsizeof_${gltype}=\$result
18098 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18100 $as_echo "$ac_res" >&6; }
18101 eval result=\$gl_cv_bitsizeof_${gltype}
18102 if test $result = unknown; then
18103 result=0
18105 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18106 cat >>confdefs.h <<_ACEOF
18107 #define BITSIZEOF_${GLTYPE} $result
18108 _ACEOF
18110 eval BITSIZEOF_${GLTYPE}=\$result
18111 done
18117 for gltype in sig_atomic_t wchar_t wint_t ; do
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18119 $as_echo_n "checking for bit size of $gltype... " >&6; }
18120 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18121 $as_echo_n "(cached) " >&6
18122 else
18123 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18124 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18125 included before <wchar.h>. */
18126 #include <stddef.h>
18127 #include <signal.h>
18128 #if HAVE_WCHAR_H
18129 # include <stdio.h>
18130 # include <time.h>
18131 # include <wchar.h>
18132 #endif
18134 #include <limits.h>"; then :
18136 else
18137 result=unknown
18140 eval gl_cv_bitsizeof_${gltype}=\$result
18143 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18145 $as_echo "$ac_res" >&6; }
18146 eval result=\$gl_cv_bitsizeof_${gltype}
18147 if test $result = unknown; then
18148 result=0
18150 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18151 cat >>confdefs.h <<_ACEOF
18152 #define BITSIZEOF_${GLTYPE} $result
18153 _ACEOF
18155 eval BITSIZEOF_${GLTYPE}=\$result
18156 done
18161 for gltype in sig_atomic_t wchar_t wint_t ; do
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18163 $as_echo_n "checking whether $gltype is signed... " >&6; }
18164 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18165 $as_echo_n "(cached) " >&6
18166 else
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18170 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18171 included before <wchar.h>. */
18172 #include <stddef.h>
18173 #include <signal.h>
18174 #if HAVE_WCHAR_H
18175 # include <stdio.h>
18176 # include <time.h>
18177 # include <wchar.h>
18178 #endif
18180 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18182 main ()
18186 return 0;
18188 _ACEOF
18189 if ac_fn_c_try_compile "$LINENO"; then :
18190 result=yes
18191 else
18192 result=no
18194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18195 eval gl_cv_type_${gltype}_signed=\$result
18198 eval ac_res=\$gl_cv_type_${gltype}_signed
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18200 $as_echo "$ac_res" >&6; }
18201 eval result=\$gl_cv_type_${gltype}_signed
18202 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18203 if test "$result" = yes; then
18204 cat >>confdefs.h <<_ACEOF
18205 #define HAVE_SIGNED_${GLTYPE} 1
18206 _ACEOF
18208 eval HAVE_SIGNED_${GLTYPE}=1
18209 else
18210 eval HAVE_SIGNED_${GLTYPE}=0
18212 done
18215 gl_cv_type_ptrdiff_t_signed=yes
18216 gl_cv_type_size_t_signed=no
18217 if test $APPLE_UNIVERSAL_BUILD = 0; then
18220 for gltype in ptrdiff_t size_t ; do
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18222 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18223 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18224 $as_echo_n "(cached) " >&6
18225 else
18226 eval gl_cv_type_${gltype}_suffix=no
18227 eval result=\$gl_cv_type_${gltype}_signed
18228 if test "$result" = yes; then
18229 glsufu=
18230 else
18231 glsufu=u
18233 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18234 case $glsuf in
18235 '') gltype1='int';;
18236 l) gltype1='long int';;
18237 ll) gltype1='long long int';;
18238 i64) gltype1='__int64';;
18239 u) gltype1='unsigned int';;
18240 ul) gltype1='unsigned long int';;
18241 ull) gltype1='unsigned long long int';;
18242 ui64)gltype1='unsigned __int64';;
18243 esac
18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h. */
18247 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18248 included before <wchar.h>. */
18249 #include <stddef.h>
18250 #include <signal.h>
18251 #if HAVE_WCHAR_H
18252 # include <stdio.h>
18253 # include <time.h>
18254 # include <wchar.h>
18255 #endif
18257 extern $gltype foo;
18258 extern $gltype1 foo;
18260 main ()
18264 return 0;
18266 _ACEOF
18267 if ac_fn_c_try_compile "$LINENO"; then :
18268 eval gl_cv_type_${gltype}_suffix=\$glsuf
18270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 eval result=\$gl_cv_type_${gltype}_suffix
18272 test "$result" != no && break
18273 done
18275 eval ac_res=\$gl_cv_type_${gltype}_suffix
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18277 $as_echo "$ac_res" >&6; }
18278 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18279 eval result=\$gl_cv_type_${gltype}_suffix
18280 test "$result" = no && result=
18281 eval ${GLTYPE}_SUFFIX=\$result
18282 cat >>confdefs.h <<_ACEOF
18283 #define ${GLTYPE}_SUFFIX $result
18284 _ACEOF
18286 done
18292 for gltype in sig_atomic_t wchar_t wint_t ; do
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18294 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18295 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18296 $as_echo_n "(cached) " >&6
18297 else
18298 eval gl_cv_type_${gltype}_suffix=no
18299 eval result=\$gl_cv_type_${gltype}_signed
18300 if test "$result" = yes; then
18301 glsufu=
18302 else
18303 glsufu=u
18305 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18306 case $glsuf in
18307 '') gltype1='int';;
18308 l) gltype1='long int';;
18309 ll) gltype1='long long int';;
18310 i64) gltype1='__int64';;
18311 u) gltype1='unsigned int';;
18312 ul) gltype1='unsigned long int';;
18313 ull) gltype1='unsigned long long int';;
18314 ui64)gltype1='unsigned __int64';;
18315 esac
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18319 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18320 included before <wchar.h>. */
18321 #include <stddef.h>
18322 #include <signal.h>
18323 #if HAVE_WCHAR_H
18324 # include <stdio.h>
18325 # include <time.h>
18326 # include <wchar.h>
18327 #endif
18329 extern $gltype foo;
18330 extern $gltype1 foo;
18332 main ()
18336 return 0;
18338 _ACEOF
18339 if ac_fn_c_try_compile "$LINENO"; then :
18340 eval gl_cv_type_${gltype}_suffix=\$glsuf
18342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18343 eval result=\$gl_cv_type_${gltype}_suffix
18344 test "$result" != no && break
18345 done
18347 eval ac_res=\$gl_cv_type_${gltype}_suffix
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18349 $as_echo "$ac_res" >&6; }
18350 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18351 eval result=\$gl_cv_type_${gltype}_suffix
18352 test "$result" = no && result=
18353 eval ${GLTYPE}_SUFFIX=\$result
18354 cat >>confdefs.h <<_ACEOF
18355 #define ${GLTYPE}_SUFFIX $result
18356 _ACEOF
18358 done
18362 if test $BITSIZEOF_WINT_T -lt 32; then
18363 BITSIZEOF_WINT_T=32
18366 STDINT_H=stdint.h
18369 if test -n "$STDINT_H"; then
18370 GL_GENERATE_STDINT_H_TRUE=
18371 GL_GENERATE_STDINT_H_FALSE='#'
18372 else
18373 GL_GENERATE_STDINT_H_TRUE='#'
18374 GL_GENERATE_STDINT_H_FALSE=
18381 GNULIB_IMAXABS=0;
18382 GNULIB_IMAXDIV=0;
18383 GNULIB_STRTOIMAX=0;
18384 GNULIB_STRTOUMAX=0;
18385 HAVE_DECL_IMAXABS=1;
18386 HAVE_DECL_IMAXDIV=1;
18387 HAVE_DECL_STRTOIMAX=1;
18388 HAVE_DECL_STRTOUMAX=1;
18389 INT32_MAX_LT_INTMAX_MAX=1;
18390 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18391 PRI_MACROS_BROKEN=0;
18392 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18393 UINT32_MAX_LT_UINTMAX_MAX=1;
18394 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18410 if test $gl_cv_have_include_next = yes; then
18411 gl_cv_next_inttypes_h='<'inttypes.h'>'
18412 else
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18414 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18415 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18416 $as_echo_n "(cached) " >&6
18417 else
18419 if test $ac_cv_header_inttypes_h = yes; then
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18424 #include <inttypes.h>
18426 _ACEOF
18427 case "$host_os" in
18428 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18429 *) gl_absname_cpp="$ac_cpp" ;;
18430 esac
18432 case "$host_os" in
18433 mingw*)
18434 gl_dirsep_regex='[/\\]'
18437 gl_dirsep_regex='/'
18439 esac
18441 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
18442 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18443 s|^/[^/]|//&|
18447 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18448 sed -n "$gl_absolute_header_sed"`'"'
18449 else
18450 gl_cv_next_inttypes_h='<'inttypes.h'>'
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18456 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18458 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18460 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18461 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18462 gl_next_as_first_directive='<'inttypes.h'>'
18463 else
18464 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18465 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18467 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18476 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18483 GNULIB_FCHMODAT=0;
18484 GNULIB_FSTAT=0;
18485 GNULIB_FSTATAT=0;
18486 GNULIB_FUTIMENS=0;
18487 GNULIB_LCHMOD=0;
18488 GNULIB_LSTAT=0;
18489 GNULIB_MKDIRAT=0;
18490 GNULIB_MKFIFO=0;
18491 GNULIB_MKFIFOAT=0;
18492 GNULIB_MKNOD=0;
18493 GNULIB_MKNODAT=0;
18494 GNULIB_STAT=0;
18495 GNULIB_UTIMENSAT=0;
18496 HAVE_FCHMODAT=1;
18497 HAVE_FSTATAT=1;
18498 HAVE_FUTIMENS=1;
18499 HAVE_LCHMOD=1;
18500 HAVE_LSTAT=1;
18501 HAVE_MKDIRAT=1;
18502 HAVE_MKFIFO=1;
18503 HAVE_MKFIFOAT=1;
18504 HAVE_MKNOD=1;
18505 HAVE_MKNODAT=1;
18506 HAVE_UTIMENSAT=1;
18507 REPLACE_FSTAT=0;
18508 REPLACE_FSTATAT=0;
18509 REPLACE_FUTIMENS=0;
18510 REPLACE_LSTAT=0;
18511 REPLACE_MKDIR=0;
18512 REPLACE_MKFIFO=0;
18513 REPLACE_MKNOD=0;
18514 REPLACE_STAT=0;
18515 REPLACE_UTIMENSAT=0;
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18521 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18522 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18523 $as_echo_n "(cached) " >&6
18524 else
18525 rm -f conftest.sym conftest.file
18526 echo >conftest.file
18527 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18528 if test "$cross_compiling" = yes; then :
18529 # When cross-compiling, be pessimistic so we will end up using the
18530 # replacement version of lstat that checks for trailing slashes and
18531 # calls lstat a second time when necessary.
18532 gl_cv_func_lstat_dereferences_slashed_symlink=no
18534 else
18535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18536 /* end confdefs.h. */
18537 $ac_includes_default
18539 main ()
18541 struct stat sbuf;
18542 /* Linux will dereference the symlink and fail, as required by
18543 POSIX. That is better in the sense that it means we will not
18544 have to compile and use the lstat wrapper. */
18545 return lstat ("conftest.sym/", &sbuf) == 0;
18548 return 0;
18550 _ACEOF
18551 if ac_fn_c_try_run "$LINENO"; then :
18552 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18553 else
18554 gl_cv_func_lstat_dereferences_slashed_symlink=no
18556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18557 conftest.$ac_objext conftest.beam conftest.$ac_ext
18560 else
18561 # If the 'ln -s' command failed, then we probably don't even
18562 # have an lstat function.
18563 gl_cv_func_lstat_dereferences_slashed_symlink=no
18565 rm -f conftest.sym conftest.file
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18569 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18570 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18572 cat >>confdefs.h <<_ACEOF
18573 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18574 _ACEOF
18578 GNULIB_MKTIME=0;
18579 GNULIB_NANOSLEEP=0;
18580 GNULIB_STRPTIME=0;
18581 GNULIB_TIMEGM=0;
18582 GNULIB_TIME_R=0;
18583 HAVE_DECL_LOCALTIME_R=1;
18584 HAVE_NANOSLEEP=1;
18585 HAVE_STRPTIME=1;
18586 HAVE_TIMEGM=1;
18587 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18588 REPLACE_MKTIME=GNULIB_PORTCHECK;
18589 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18590 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18597 GNULIB_PTHREAD_SIGMASK=0;
18598 GNULIB_RAISE=0;
18599 GNULIB_SIGNAL_H_SIGPIPE=0;
18600 GNULIB_SIGPROCMASK=0;
18601 GNULIB_SIGACTION=0;
18602 HAVE_POSIX_SIGNALBLOCKING=1;
18603 HAVE_PTHREAD_SIGMASK=1;
18604 HAVE_RAISE=1;
18605 HAVE_SIGSET_T=1;
18606 HAVE_SIGINFO_T=1;
18607 HAVE_SIGACTION=1;
18608 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18610 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18612 HAVE_SIGHANDLER_T=1;
18613 REPLACE_PTHREAD_SIGMASK=0;
18614 REPLACE_RAISE=0;
18619 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18620 #include <signal.h>
18621 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18622 #include <sys/types.h>
18625 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18627 cat >>confdefs.h <<_ACEOF
18628 #define HAVE_SIGSET_T 1
18629 _ACEOF
18631 gl_cv_type_sigset_t=yes
18632 else
18633 gl_cv_type_sigset_t=no
18636 if test $gl_cv_type_sigset_t != yes; then
18637 HAVE_SIGSET_T=0
18644 if test $ac_cv_header_sys_socket_h = no; then
18645 for ac_header in ws2tcpip.h
18646 do :
18647 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18648 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18649 cat >>confdefs.h <<_ACEOF
18650 #define HAVE_WS2TCPIP_H 1
18651 _ACEOF
18655 done
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18660 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18661 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18662 $as_echo_n "(cached) " >&6
18663 else
18664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18665 /* end confdefs.h. */
18667 #include <stdbool.h>
18668 #ifndef bool
18669 "error: bool is not defined"
18670 #endif
18671 #ifndef false
18672 "error: false is not defined"
18673 #endif
18674 #if false
18675 "error: false is not 0"
18676 #endif
18677 #ifndef true
18678 "error: true is not defined"
18679 #endif
18680 #if true != 1
18681 "error: true is not 1"
18682 #endif
18683 #ifndef __bool_true_false_are_defined
18684 "error: __bool_true_false_are_defined is not defined"
18685 #endif
18687 struct s { _Bool s: 1; _Bool t; } s;
18689 char a[true == 1 ? 1 : -1];
18690 char b[false == 0 ? 1 : -1];
18691 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18692 char d[(bool) 0.5 == true ? 1 : -1];
18693 /* See body of main program for 'e'. */
18694 char f[(_Bool) 0.0 == false ? 1 : -1];
18695 char g[true];
18696 char h[sizeof (_Bool)];
18697 char i[sizeof s.t];
18698 enum { j = false, k = true, l = false * true, m = true * 256 };
18699 /* The following fails for
18700 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18701 _Bool n[m];
18702 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18703 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18704 /* Catch a bug in an HP-UX C compiler. See
18705 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18706 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18708 _Bool q = true;
18709 _Bool *pq = &q;
18712 main ()
18715 bool e = &s;
18716 *pq |= q;
18717 *pq |= ! q;
18718 /* Refer to every declared value, to avoid compiler optimizations. */
18719 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18720 + !m + !n + !o + !p + !q + !pq);
18723 return 0;
18725 _ACEOF
18726 if ac_fn_c_try_compile "$LINENO"; then :
18727 ac_cv_header_stdbool_h=yes
18728 else
18729 ac_cv_header_stdbool_h=no
18731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18734 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18735 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18736 if test "x$ac_cv_type__Bool" = x""yes; then :
18738 cat >>confdefs.h <<_ACEOF
18739 #define HAVE__BOOL 1
18740 _ACEOF
18747 REPLACE_NULL=0;
18748 HAVE_WCHAR_T=1;
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18752 $as_echo_n "checking for wchar_t... " >&6; }
18753 if test "${gt_cv_c_wchar_t+set}" = set; then :
18754 $as_echo_n "(cached) " >&6
18755 else
18756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h. */
18758 #include <stddef.h>
18759 wchar_t foo = (wchar_t)'\0';
18761 main ()
18765 return 0;
18767 _ACEOF
18768 if ac_fn_c_try_compile "$LINENO"; then :
18769 gt_cv_c_wchar_t=yes
18770 else
18771 gt_cv_c_wchar_t=no
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18776 $as_echo "$gt_cv_c_wchar_t" >&6; }
18777 if test $gt_cv_c_wchar_t = yes; then
18779 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18784 GNULIB_DPRINTF=0;
18785 GNULIB_FCLOSE=0;
18786 GNULIB_FDOPEN=0;
18787 GNULIB_FFLUSH=0;
18788 GNULIB_FGETC=0;
18789 GNULIB_FGETS=0;
18790 GNULIB_FOPEN=0;
18791 GNULIB_FPRINTF=0;
18792 GNULIB_FPRINTF_POSIX=0;
18793 GNULIB_FPURGE=0;
18794 GNULIB_FPUTC=0;
18795 GNULIB_FPUTS=0;
18796 GNULIB_FREAD=0;
18797 GNULIB_FREOPEN=0;
18798 GNULIB_FSCANF=0;
18799 GNULIB_FSEEK=0;
18800 GNULIB_FSEEKO=0;
18801 GNULIB_FTELL=0;
18802 GNULIB_FTELLO=0;
18803 GNULIB_FWRITE=0;
18804 GNULIB_GETC=0;
18805 GNULIB_GETCHAR=0;
18806 GNULIB_GETDELIM=0;
18807 GNULIB_GETLINE=0;
18808 GNULIB_GETS=0;
18809 GNULIB_OBSTACK_PRINTF=0;
18810 GNULIB_OBSTACK_PRINTF_POSIX=0;
18811 GNULIB_PCLOSE=0;
18812 GNULIB_PERROR=0;
18813 GNULIB_POPEN=0;
18814 GNULIB_PRINTF=0;
18815 GNULIB_PRINTF_POSIX=0;
18816 GNULIB_PUTC=0;
18817 GNULIB_PUTCHAR=0;
18818 GNULIB_PUTS=0;
18819 GNULIB_REMOVE=0;
18820 GNULIB_RENAME=0;
18821 GNULIB_RENAMEAT=0;
18822 GNULIB_SCANF=0;
18823 GNULIB_SNPRINTF=0;
18824 GNULIB_SPRINTF_POSIX=0;
18825 GNULIB_STDIO_H_NONBLOCKING=0;
18826 GNULIB_STDIO_H_SIGPIPE=0;
18827 GNULIB_TMPFILE=0;
18828 GNULIB_VASPRINTF=0;
18829 GNULIB_VFSCANF=0;
18830 GNULIB_VSCANF=0;
18831 GNULIB_VDPRINTF=0;
18832 GNULIB_VFPRINTF=0;
18833 GNULIB_VFPRINTF_POSIX=0;
18834 GNULIB_VPRINTF=0;
18835 GNULIB_VPRINTF_POSIX=0;
18836 GNULIB_VSNPRINTF=0;
18837 GNULIB_VSPRINTF_POSIX=0;
18838 HAVE_DECL_FPURGE=1;
18839 HAVE_DECL_FSEEKO=1;
18840 HAVE_DECL_FTELLO=1;
18841 HAVE_DECL_GETDELIM=1;
18842 HAVE_DECL_GETLINE=1;
18843 HAVE_DECL_OBSTACK_PRINTF=1;
18844 HAVE_DECL_SNPRINTF=1;
18845 HAVE_DECL_VSNPRINTF=1;
18846 HAVE_DPRINTF=1;
18847 HAVE_FSEEKO=1;
18848 HAVE_FTELLO=1;
18849 HAVE_PCLOSE=1;
18850 HAVE_POPEN=1;
18851 HAVE_RENAMEAT=1;
18852 HAVE_VASPRINTF=1;
18853 HAVE_VDPRINTF=1;
18854 REPLACE_DPRINTF=0;
18855 REPLACE_FCLOSE=0;
18856 REPLACE_FDOPEN=0;
18857 REPLACE_FFLUSH=0;
18858 REPLACE_FOPEN=0;
18859 REPLACE_FPRINTF=0;
18860 REPLACE_FPURGE=0;
18861 REPLACE_FREOPEN=0;
18862 REPLACE_FSEEK=0;
18863 REPLACE_FSEEKO=0;
18864 REPLACE_FTELL=0;
18865 REPLACE_FTELLO=0;
18866 REPLACE_GETDELIM=0;
18867 REPLACE_GETLINE=0;
18868 REPLACE_OBSTACK_PRINTF=0;
18869 REPLACE_PERROR=0;
18870 REPLACE_POPEN=0;
18871 REPLACE_PRINTF=0;
18872 REPLACE_REMOVE=0;
18873 REPLACE_RENAME=0;
18874 REPLACE_RENAMEAT=0;
18875 REPLACE_SNPRINTF=0;
18876 REPLACE_SPRINTF=0;
18877 REPLACE_STDIO_READ_FUNCS=0;
18878 REPLACE_STDIO_WRITE_FUNCS=0;
18879 REPLACE_TMPFILE=0;
18880 REPLACE_VASPRINTF=0;
18881 REPLACE_VDPRINTF=0;
18882 REPLACE_VFPRINTF=0;
18883 REPLACE_VPRINTF=0;
18884 REPLACE_VSNPRINTF=0;
18885 REPLACE_VSPRINTF=0;
18888 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18890 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18892 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18901 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18902 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18903 ac_have_decl=1
18904 else
18905 ac_have_decl=0
18908 cat >>confdefs.h <<_ACEOF
18909 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18910 _ACEOF
18914 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18915 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18916 ac_have_decl=1
18917 else
18918 ac_have_decl=0
18921 cat >>confdefs.h <<_ACEOF
18922 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18923 _ACEOF
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18928 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18929 if test "${ac_cv_header_stat_broken+set}" = set; then :
18930 $as_echo_n "(cached) " >&6
18931 else
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18934 #include <sys/types.h>
18935 #include <sys/stat.h>
18937 #if defined S_ISBLK && defined S_IFDIR
18938 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18939 #endif
18941 #if defined S_ISBLK && defined S_IFCHR
18942 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18943 #endif
18945 #if defined S_ISLNK && defined S_IFREG
18946 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18947 #endif
18949 #if defined S_ISSOCK && defined S_IFREG
18950 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18951 #endif
18953 _ACEOF
18954 if ac_fn_c_try_compile "$LINENO"; then :
18955 ac_cv_header_stat_broken=no
18956 else
18957 ac_cv_header_stat_broken=yes
18959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18962 $as_echo "$ac_cv_header_stat_broken" >&6; }
18963 if test $ac_cv_header_stat_broken = yes; then
18965 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18971 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18972 if test "x$ac_cv_type_mode_t" = x""yes; then :
18974 else
18976 cat >>confdefs.h <<_ACEOF
18977 #define mode_t int
18978 _ACEOF
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18983 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18984 if test "${ac_cv_c_restrict+set}" = set; then :
18985 $as_echo_n "(cached) " >&6
18986 else
18987 ac_cv_c_restrict=no
18988 # The order here caters to the fact that C++ does not require restrict.
18989 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18991 /* end confdefs.h. */
18992 typedef int * int_ptr;
18993 int foo (int_ptr $ac_kw ip) {
18994 return ip[0];
18997 main ()
18999 int s[1];
19000 int * $ac_kw t = s;
19001 t[0] = 0;
19002 return foo(t)
19004 return 0;
19006 _ACEOF
19007 if ac_fn_c_try_compile "$LINENO"; then :
19008 ac_cv_c_restrict=$ac_kw
19010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19011 test "$ac_cv_c_restrict" != no && break
19012 done
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19016 $as_echo "$ac_cv_c_restrict" >&6; }
19018 case $ac_cv_c_restrict in
19019 restrict) ;;
19020 no) $as_echo "#define restrict /**/" >>confdefs.h
19022 *) cat >>confdefs.h <<_ACEOF
19023 #define restrict $ac_cv_c_restrict
19024 _ACEOF
19026 esac
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19033 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19034 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19035 $as_echo_n "(cached) " >&6
19036 else
19037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19038 /* end confdefs.h. */
19039 #include <time.h>
19042 main ()
19044 static struct timespec x; x.tv_sec = x.tv_nsec;
19046 return 0;
19048 _ACEOF
19049 if ac_fn_c_try_compile "$LINENO"; then :
19050 gl_cv_sys_struct_timespec_in_time_h=yes
19051 else
19052 gl_cv_sys_struct_timespec_in_time_h=no
19054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19057 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19059 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19060 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19061 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19062 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19063 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19064 else
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19066 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19067 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19068 $as_echo_n "(cached) " >&6
19069 else
19070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19071 /* end confdefs.h. */
19072 #include <sys/time.h>
19075 main ()
19077 static struct timespec x; x.tv_sec = x.tv_nsec;
19079 return 0;
19081 _ACEOF
19082 if ac_fn_c_try_compile "$LINENO"; then :
19083 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19084 else
19085 gl_cv_sys_struct_timespec_in_sys_time_h=no
19087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19090 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19091 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19092 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19093 else
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19095 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19096 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19097 $as_echo_n "(cached) " >&6
19098 else
19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19101 #include <pthread.h>
19104 main ()
19106 static struct timespec x; x.tv_sec = x.tv_nsec;
19108 return 0;
19110 _ACEOF
19111 if ac_fn_c_try_compile "$LINENO"; then :
19112 gl_cv_sys_struct_timespec_in_pthread_h=yes
19113 else
19114 gl_cv_sys_struct_timespec_in_pthread_h=no
19116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19119 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19120 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19121 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19140 if test $gl_cv_have_include_next = yes; then
19141 gl_cv_next_time_h='<'time.h'>'
19142 else
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19144 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19145 if test "${gl_cv_next_time_h+set}" = set; then :
19146 $as_echo_n "(cached) " >&6
19147 else
19149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19150 /* end confdefs.h. */
19151 #include <time.h>
19153 _ACEOF
19154 case "$host_os" in
19155 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19156 *) gl_absname_cpp="$ac_cpp" ;;
19157 esac
19159 case "$host_os" in
19160 mingw*)
19161 gl_dirsep_regex='[/\\]'
19164 gl_dirsep_regex='/'
19166 esac
19168 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
19169 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19170 s|^/[^/]|//&|
19174 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19175 sed -n "$gl_absolute_header_sed"`'"'
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19180 $as_echo "$gl_cv_next_time_h" >&6; }
19182 NEXT_TIME_H=$gl_cv_next_time_h
19184 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19185 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19186 gl_next_as_first_directive='<'time.h'>'
19187 else
19188 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19189 gl_next_as_first_directive=$gl_cv_next_time_h
19191 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19198 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19199 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19200 ac_have_decl=1
19201 else
19202 ac_have_decl=0
19205 cat >>confdefs.h <<_ACEOF
19206 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19207 _ACEOF
19212 if false; then
19213 GL_COND_LIBTOOL_TRUE=
19214 GL_COND_LIBTOOL_FALSE='#'
19215 else
19216 GL_COND_LIBTOOL_TRUE='#'
19217 GL_COND_LIBTOOL_FALSE=
19220 gl_cond_libtool=false
19221 gl_libdeps=
19222 gl_ltlibdeps=
19223 gl_m4_base='m4'
19233 gl_source_base='lib'
19236 if test $ac_cv_func_alloca_works = no; then
19240 # Define an additional variable used in the Makefile substitution.
19241 if test $ac_cv_working_alloca_h = yes; then
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19243 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19244 if test "${gl_cv_rpl_alloca+set}" = set; then :
19245 $as_echo_n "(cached) " >&6
19246 else
19248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19251 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19252 Need own alloca
19253 #endif
19255 _ACEOF
19256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19257 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19258 gl_cv_rpl_alloca=yes
19259 else
19260 gl_cv_rpl_alloca=no
19262 rm -f conftest*
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19267 $as_echo "$gl_cv_rpl_alloca" >&6; }
19268 if test $gl_cv_rpl_alloca = yes; then
19270 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19272 ALLOCA_H=alloca.h
19273 else
19274 ALLOCA_H=
19276 else
19277 ALLOCA_H=alloca.h
19280 if test -n "$ALLOCA_H"; then
19281 GL_GENERATE_ALLOCA_H_TRUE=
19282 GL_GENERATE_ALLOCA_H_FALSE='#'
19283 else
19284 GL_GENERATE_ALLOCA_H_TRUE='#'
19285 GL_GENERATE_ALLOCA_H_FALSE=
19314 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19317 if test $HAVE_DUP2 = 1; then
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19319 $as_echo_n "checking whether dup2 works... " >&6; }
19320 if test "${gl_cv_func_dup2_works+set}" = set; then :
19321 $as_echo_n "(cached) " >&6
19322 else
19323 if test "$cross_compiling" = yes; then :
19324 case "$host_os" in
19325 mingw*) # on this platform, dup2 always returns 0 for success
19326 gl_cv_func_dup2_works=no;;
19327 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19328 gl_cv_func_dup2_works=no;;
19329 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19330 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19331 gl_cv_func_dup2_works=no;;
19332 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19333 gl_cv_func_dup2_works=no;;
19334 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19335 gl_cv_func_dup2_works=no;;
19336 *) gl_cv_func_dup2_works=yes;;
19337 esac
19338 else
19339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340 /* end confdefs.h. */
19342 #include <unistd.h>
19343 #include <fcntl.h>
19344 #include <errno.h>
19346 main ()
19348 int result = 0;
19349 #ifdef FD_CLOEXEC
19350 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19351 result |= 1;
19352 #endif
19353 if (dup2 (1, 1) == 0)
19354 result |= 2;
19355 #ifdef FD_CLOEXEC
19356 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19357 result |= 4;
19358 #endif
19359 close (0);
19360 if (dup2 (0, 0) != -1)
19361 result |= 8;
19362 /* Many gnulib modules require POSIX conformance of EBADF. */
19363 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19364 result |= 16;
19365 return result;
19368 return 0;
19371 _ACEOF
19372 if ac_fn_c_try_run "$LINENO"; then :
19373 gl_cv_func_dup2_works=yes
19374 else
19375 gl_cv_func_dup2_works=no
19377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19378 conftest.$ac_objext conftest.beam conftest.$ac_ext
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19384 $as_echo "$gl_cv_func_dup2_works" >&6; }
19385 if test "$gl_cv_func_dup2_works" = no; then
19386 REPLACE_DUP2=1
19391 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19400 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19409 GNULIB_DUP2=1
19421 # Persuade glibc <stdlib.h> to declare getloadavg().
19424 gl_save_LIBS=$LIBS
19426 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19427 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19428 HAVE_GETLOADAVG=1
19429 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19430 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19432 else
19433 gl_func_getloadavg_done=no
19435 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19436 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19437 # to get the right answer into the cache.
19438 # For kstat on solaris, we need to test for libelf and libkvm to force the
19439 # definition of SVR4 below.
19440 if test $gl_func_getloadavg_done = no; then
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19442 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19443 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19444 $as_echo_n "(cached) " >&6
19445 else
19446 ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lelf $LIBS"
19448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h. */
19451 /* Override any GCC internal prototype to avoid an error.
19452 Use char because int might match the return type of a GCC
19453 builtin and then its argument prototype would still apply. */
19454 #ifdef __cplusplus
19455 extern "C"
19456 #endif
19457 char elf_begin ();
19459 main ()
19461 return elf_begin ();
19463 return 0;
19465 _ACEOF
19466 if ac_fn_c_try_link "$LINENO"; then :
19467 ac_cv_lib_elf_elf_begin=yes
19468 else
19469 ac_cv_lib_elf_elf_begin=no
19471 rm -f core conftest.err conftest.$ac_objext \
19472 conftest$ac_exeext conftest.$ac_ext
19473 LIBS=$ac_check_lib_save_LIBS
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19476 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19477 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19478 LIBS="-lelf $LIBS"
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19482 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19483 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19484 $as_echo_n "(cached) " >&6
19485 else
19486 ac_check_lib_save_LIBS=$LIBS
19487 LIBS="-lkvm $LIBS"
19488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19489 /* end confdefs.h. */
19491 /* Override any GCC internal prototype to avoid an error.
19492 Use char because int might match the return type of a GCC
19493 builtin and then its argument prototype would still apply. */
19494 #ifdef __cplusplus
19495 extern "C"
19496 #endif
19497 char kvm_open ();
19499 main ()
19501 return kvm_open ();
19503 return 0;
19505 _ACEOF
19506 if ac_fn_c_try_link "$LINENO"; then :
19507 ac_cv_lib_kvm_kvm_open=yes
19508 else
19509 ac_cv_lib_kvm_kvm_open=no
19511 rm -f core conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19516 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19517 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19518 LIBS="-lkvm $LIBS"
19521 # Check for the 4.4BSD definition of getloadavg.
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19523 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19524 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19525 $as_echo_n "(cached) " >&6
19526 else
19527 ac_check_lib_save_LIBS=$LIBS
19528 LIBS="-lutil $LIBS"
19529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19530 /* end confdefs.h. */
19532 /* Override any GCC internal prototype to avoid an error.
19533 Use char because int might match the return type of a GCC
19534 builtin and then its argument prototype would still apply. */
19535 #ifdef __cplusplus
19536 extern "C"
19537 #endif
19538 char getloadavg ();
19540 main ()
19542 return getloadavg ();
19544 return 0;
19546 _ACEOF
19547 if ac_fn_c_try_link "$LINENO"; then :
19548 ac_cv_lib_util_getloadavg=yes
19549 else
19550 ac_cv_lib_util_getloadavg=no
19552 rm -f core conftest.err conftest.$ac_objext \
19553 conftest$ac_exeext conftest.$ac_ext
19554 LIBS=$ac_check_lib_save_LIBS
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19557 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19558 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19559 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19564 if test $gl_func_getloadavg_done = no; then
19565 # There is a commonly available library for RS/6000 AIX.
19566 # Since it is not a standard part of AIX, it might be installed locally.
19567 gl_getloadavg_LIBS=$LIBS
19568 LIBS="-L/usr/local/lib $LIBS"
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19570 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19571 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19572 $as_echo_n "(cached) " >&6
19573 else
19574 ac_check_lib_save_LIBS=$LIBS
19575 LIBS="-lgetloadavg $LIBS"
19576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19577 /* end confdefs.h. */
19579 /* Override any GCC internal prototype to avoid an error.
19580 Use char because int might match the return type of a GCC
19581 builtin and then its argument prototype would still apply. */
19582 #ifdef __cplusplus
19583 extern "C"
19584 #endif
19585 char getloadavg ();
19587 main ()
19589 return getloadavg ();
19591 return 0;
19593 _ACEOF
19594 if ac_fn_c_try_link "$LINENO"; then :
19595 ac_cv_lib_getloadavg_getloadavg=yes
19596 else
19597 ac_cv_lib_getloadavg_getloadavg=no
19599 rm -f core conftest.err conftest.$ac_objext \
19600 conftest$ac_exeext conftest.$ac_ext
19601 LIBS=$ac_check_lib_save_LIBS
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19604 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19605 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19606 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19607 else
19608 LIBS=$gl_getloadavg_LIBS
19613 # Set up the replacement function if necessary.
19614 if test $gl_func_getloadavg_done = no; then
19615 HAVE_GETLOADAVG=0
19617 # Solaris has libkstat which does not require root.
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19619 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19620 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19621 $as_echo_n "(cached) " >&6
19622 else
19623 ac_check_lib_save_LIBS=$LIBS
19624 LIBS="-lkstat $LIBS"
19625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19626 /* end confdefs.h. */
19628 /* Override any GCC internal prototype to avoid an error.
19629 Use char because int might match the return type of a GCC
19630 builtin and then its argument prototype would still apply. */
19631 #ifdef __cplusplus
19632 extern "C"
19633 #endif
19634 char kstat_open ();
19636 main ()
19638 return kstat_open ();
19640 return 0;
19642 _ACEOF
19643 if ac_fn_c_try_link "$LINENO"; then :
19644 ac_cv_lib_kstat_kstat_open=yes
19645 else
19646 ac_cv_lib_kstat_kstat_open=no
19648 rm -f core conftest.err conftest.$ac_objext \
19649 conftest$ac_exeext conftest.$ac_ext
19650 LIBS=$ac_check_lib_save_LIBS
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19653 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19654 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19655 cat >>confdefs.h <<_ACEOF
19656 #define HAVE_LIBKSTAT 1
19657 _ACEOF
19659 LIBS="-lkstat $LIBS"
19663 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19665 # AIX has libperfstat which does not require root
19666 if test $gl_func_getloadavg_done = no; then
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19668 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19669 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19670 $as_echo_n "(cached) " >&6
19671 else
19672 ac_check_lib_save_LIBS=$LIBS
19673 LIBS="-lperfstat $LIBS"
19674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19675 /* end confdefs.h. */
19677 /* Override any GCC internal prototype to avoid an error.
19678 Use char because int might match the return type of a GCC
19679 builtin and then its argument prototype would still apply. */
19680 #ifdef __cplusplus
19681 extern "C"
19682 #endif
19683 char perfstat_cpu_total ();
19685 main ()
19687 return perfstat_cpu_total ();
19689 return 0;
19691 _ACEOF
19692 if ac_fn_c_try_link "$LINENO"; then :
19693 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19694 else
19695 ac_cv_lib_perfstat_perfstat_cpu_total=no
19697 rm -f core conftest.err conftest.$ac_objext \
19698 conftest$ac_exeext conftest.$ac_ext
19699 LIBS=$ac_check_lib_save_LIBS
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19702 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19703 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19704 cat >>confdefs.h <<_ACEOF
19705 #define HAVE_LIBPERFSTAT 1
19706 _ACEOF
19708 LIBS="-lperfstat $LIBS"
19712 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19715 if test $gl_func_getloadavg_done = no; then
19716 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19717 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19718 gl_func_getloadavg_done=yes
19720 $as_echo "#define DGUX 1" >>confdefs.h
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19723 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19724 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19725 $as_echo_n "(cached) " >&6
19726 else
19727 ac_check_lib_save_LIBS=$LIBS
19728 LIBS="-ldgc $LIBS"
19729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730 /* end confdefs.h. */
19732 /* Override any GCC internal prototype to avoid an error.
19733 Use char because int might match the return type of a GCC
19734 builtin and then its argument prototype would still apply. */
19735 #ifdef __cplusplus
19736 extern "C"
19737 #endif
19738 char dg_sys_info ();
19740 main ()
19742 return dg_sys_info ();
19744 return 0;
19746 _ACEOF
19747 if ac_fn_c_try_link "$LINENO"; then :
19748 ac_cv_lib_dgc_dg_sys_info=yes
19749 else
19750 ac_cv_lib_dgc_dg_sys_info=no
19752 rm -f core conftest.err conftest.$ac_objext \
19753 conftest$ac_exeext conftest.$ac_ext
19754 LIBS=$ac_check_lib_save_LIBS
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19757 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19758 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19759 cat >>confdefs.h <<_ACEOF
19760 #define HAVE_LIBDGC 1
19761 _ACEOF
19763 LIBS="-ldgc $LIBS"
19775 if test "x$gl_save_LIBS" = x; then
19776 GETLOADAVG_LIBS=$LIBS
19777 else
19778 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19780 LIBS=$gl_save_LIBS
19783 # Test whether the system declares getloadavg. Solaris has the function
19784 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19785 for ac_header in sys/loadavg.h
19786 do :
19787 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19788 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19789 cat >>confdefs.h <<_ACEOF
19790 #define HAVE_SYS_LOADAVG_H 1
19791 _ACEOF
19795 done
19797 if test $ac_cv_header_sys_loadavg_h = yes; then
19798 HAVE_SYS_LOADAVG_H=1
19799 else
19800 HAVE_SYS_LOADAVG_H=0
19802 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19803 # include <sys/loadavg.h>
19804 #endif
19805 #include <stdlib.h>
19807 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19809 else
19810 HAVE_DECL_GETLOADAVG=0
19814 if test $HAVE_GETLOADAVG = 0; then
19823 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19826 # Figure out what our getloadavg.c needs.
19828 # On HPUX9, an unprivileged user can get load averages this way.
19829 if test $gl_func_getloadavg_done = no; then
19830 for ac_func in pstat_getdynamic
19831 do :
19832 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19833 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19834 cat >>confdefs.h <<_ACEOF
19835 #define HAVE_PSTAT_GETDYNAMIC 1
19836 _ACEOF
19837 gl_func_getloadavg_done=yes
19839 done
19843 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19844 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19845 # Irix 4.0.5F has the header but not the library.
19846 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19847 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19848 gl_func_getloadavg_done=yes
19850 $as_echo "#define SVR4 1" >>confdefs.h
19854 if test $gl_func_getloadavg_done = no; then
19855 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19856 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19857 gl_func_getloadavg_done=yes
19859 $as_echo "#define UMAX 1" >>confdefs.h
19862 $as_echo "#define UMAX4_3 1" >>confdefs.h
19869 if test $gl_func_getloadavg_done = no; then
19870 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19871 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19872 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19879 if test $gl_func_getloadavg_done = no; then
19880 for ac_header in mach/mach.h
19881 do :
19882 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19883 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19884 cat >>confdefs.h <<_ACEOF
19885 #define HAVE_MACH_MACH_H 1
19886 _ACEOF
19890 done
19894 for ac_header in nlist.h
19895 do :
19896 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19897 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19898 cat >>confdefs.h <<_ACEOF
19899 #define HAVE_NLIST_H 1
19900 _ACEOF
19901 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19903 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19905 cat >>confdefs.h <<_ACEOF
19906 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19907 _ACEOF
19912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19913 /* end confdefs.h. */
19914 #include <nlist.h>
19916 main ()
19918 struct nlist x;
19919 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19920 x.n_un.n_name = "";
19921 #else
19922 x.n_name = "";
19923 #endif
19925 return 0;
19927 _ACEOF
19928 if ac_fn_c_try_link "$LINENO"; then :
19930 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19933 rm -f core conftest.err conftest.$ac_objext \
19934 conftest$ac_exeext conftest.$ac_ext
19938 done
19946 GNULIB_GETLOADAVG=1
19957 if test $REPLACE_GETOPT = 1; then
19966 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19976 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19987 REPLACE_GETOPT=0
19990 if test -n "$gl_replace_getopt"; then :
19992 REPLACE_GETOPT=1
19997 if test $REPLACE_GETOPT = 1; then
19999 GETOPT_H=getopt.h
20001 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20005 GNULIB_UNISTD_H_GETOPT=1
20008 if test $REPLACE_GETOPT = 1; then
20017 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20027 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20038 if test $ac_cv_func_lstat = yes; then
20040 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20041 REPLACE_LSTAT=1
20043 else
20044 HAVE_LSTAT=0
20047 if test $REPLACE_LSTAT = 1; then
20056 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20068 GNULIB_LSTAT=1
20080 if test $APPLE_UNIVERSAL_BUILD = 1; then
20081 # A universal build on Apple MacOS X platforms.
20082 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20083 # But we need a configuration result that is valid in both modes.
20084 gl_cv_func_working_mktime=no
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20087 $as_echo_n "checking for working mktime... " >&6; }
20088 if test "${gl_cv_func_working_mktime+set}" = set; then :
20089 $as_echo_n "(cached) " >&6
20090 else
20091 if test "$cross_compiling" = yes; then :
20092 gl_cv_func_working_mktime=no
20093 else
20094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h. */
20096 /* Test program from Paul Eggert and Tony Leneis. */
20097 #include <limits.h>
20098 #include <stdlib.h>
20099 #include <time.h>
20101 #ifdef HAVE_UNISTD_H
20102 # include <unistd.h>
20103 #endif
20105 #ifndef HAVE_ALARM
20106 # define alarm(X) /* empty */
20107 #endif
20109 /* Work around redefinition to rpl_putenv by other config tests. */
20110 #undef putenv
20112 static time_t time_t_max;
20113 static time_t time_t_min;
20115 /* Values we'll use to set the TZ environment variable. */
20116 static char *tz_strings[] = {
20117 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20118 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20120 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20122 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20123 Based on a problem report from Andreas Jaeger. */
20124 static int
20125 spring_forward_gap ()
20127 /* glibc (up to about 1998-10-07) failed this test. */
20128 struct tm tm;
20130 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20131 instead of "TZ=America/Vancouver" in order to detect the bug even
20132 on systems that don't support the Olson extension, or don't have the
20133 full zoneinfo tables installed. */
20134 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20136 tm.tm_year = 98;
20137 tm.tm_mon = 3;
20138 tm.tm_mday = 5;
20139 tm.tm_hour = 2;
20140 tm.tm_min = 0;
20141 tm.tm_sec = 0;
20142 tm.tm_isdst = -1;
20143 return mktime (&tm) != (time_t) -1;
20146 static int
20147 mktime_test1 (time_t now)
20149 struct tm *lt;
20150 return ! (lt = localtime (&now)) || mktime (lt) == now;
20153 static int
20154 mktime_test (time_t now)
20156 return (mktime_test1 (now)
20157 && mktime_test1 ((time_t) (time_t_max - now))
20158 && mktime_test1 ((time_t) (time_t_min + now)));
20161 static int
20162 irix_6_4_bug ()
20164 /* Based on code from Ariel Faigon. */
20165 struct tm tm;
20166 tm.tm_year = 96;
20167 tm.tm_mon = 3;
20168 tm.tm_mday = 0;
20169 tm.tm_hour = 0;
20170 tm.tm_min = 0;
20171 tm.tm_sec = 0;
20172 tm.tm_isdst = -1;
20173 mktime (&tm);
20174 return tm.tm_mon == 2 && tm.tm_mday == 31;
20177 static int
20178 bigtime_test (int j)
20180 struct tm tm;
20181 time_t now;
20182 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20183 now = mktime (&tm);
20184 if (now != (time_t) -1)
20186 struct tm *lt = localtime (&now);
20187 if (! (lt
20188 && lt->tm_year == tm.tm_year
20189 && lt->tm_mon == tm.tm_mon
20190 && lt->tm_mday == tm.tm_mday
20191 && lt->tm_hour == tm.tm_hour
20192 && lt->tm_min == tm.tm_min
20193 && lt->tm_sec == tm.tm_sec
20194 && lt->tm_yday == tm.tm_yday
20195 && lt->tm_wday == tm.tm_wday
20196 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20197 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20198 return 0;
20200 return 1;
20203 static int
20204 year_2050_test ()
20206 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20207 ignoring leap seconds. */
20208 unsigned long int answer = 2527315200UL;
20210 struct tm tm;
20211 time_t t;
20212 tm.tm_year = 2050 - 1900;
20213 tm.tm_mon = 2 - 1;
20214 tm.tm_mday = 1;
20215 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20216 tm.tm_isdst = -1;
20218 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20219 instead of "TZ=America/Vancouver" in order to detect the bug even
20220 on systems that don't support the Olson extension, or don't have the
20221 full zoneinfo tables installed. */
20222 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20224 t = mktime (&tm);
20226 /* Check that the result is either a failure, or close enough
20227 to the correct answer that we can assume the discrepancy is
20228 due to leap seconds. */
20229 return (t == (time_t) -1
20230 || (0 < t && answer - 120 <= t && t <= answer + 120));
20234 main ()
20236 int result = 0;
20237 time_t t, delta;
20238 int i, j;
20239 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20240 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20242 /* This test makes some buggy mktime implementations loop.
20243 Give up after 60 seconds; a mktime slower than that
20244 isn't worth using anyway. */
20245 alarm (60);
20247 time_t_max = (! time_t_signed
20248 ? (time_t) -1
20249 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20250 * 2 + 1));
20251 time_t_min = (! time_t_signed
20252 ? (time_t) 0
20253 : time_t_signed_magnitude
20254 ? ~ (time_t) 0
20255 : ~ time_t_max);
20257 delta = time_t_max / 997; /* a suitable prime number */
20258 for (i = 0; i < N_STRINGS; i++)
20260 if (tz_strings[i])
20261 putenv (tz_strings[i]);
20263 for (t = 0; t <= time_t_max - delta; t += delta)
20264 if (! mktime_test (t))
20265 result |= 1;
20266 if (! (mktime_test ((time_t) 1)
20267 && mktime_test ((time_t) (60 * 60))
20268 && mktime_test ((time_t) (60 * 60 * 24))))
20269 result |= 2;
20271 for (j = 1; ; j <<= 1)
20272 if (! bigtime_test (j))
20273 result |= 4;
20274 else if (INT_MAX / 2 < j)
20275 break;
20276 if (! bigtime_test (INT_MAX))
20277 result |= 8;
20279 if (! irix_6_4_bug ())
20280 result |= 16;
20281 if (! spring_forward_gap ())
20282 result |= 32;
20283 if (! year_2050_test ())
20284 result |= 64;
20285 return result;
20287 _ACEOF
20288 if ac_fn_c_try_run "$LINENO"; then :
20289 gl_cv_func_working_mktime=yes
20290 else
20291 gl_cv_func_working_mktime=no
20293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20294 conftest.$ac_objext conftest.beam conftest.$ac_ext
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20300 $as_echo "$gl_cv_func_working_mktime" >&6; }
20302 if test $gl_cv_func_working_mktime = no; then
20303 REPLACE_MKTIME=1
20304 else
20305 REPLACE_MKTIME=0
20308 if test $REPLACE_MKTIME = 1; then
20317 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20328 GNULIB_MKTIME=1
20337 LIB_PTHREAD_SIGMASK=
20340 if test $ac_cv_func_pthread_sigmask = yes; then
20342 else
20343 HAVE_PTHREAD_SIGMASK=0
20344 REPLACE_PTHREAD_SIGMASK=1
20350 if test $HAVE_PTHREAD_SIGMASK = 1; then
20353 if test -z "$LIB_PTHREAD_SIGMASK"; then
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20355 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20356 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20357 $as_echo_n "(cached) " >&6
20358 else
20360 if test "$cross_compiling" = yes; then :
20362 case "$host_os" in
20363 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20364 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20366 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20367 esac
20369 else
20370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371 /* end confdefs.h. */
20373 #include <pthread.h>
20374 #include <signal.h>
20375 #include <stddef.h>
20376 int main ()
20378 sigset_t set;
20379 sigemptyset (&set);
20380 return pthread_sigmask (1729, &set, NULL) != 0;
20382 _ACEOF
20383 if ac_fn_c_try_run "$LINENO"; then :
20384 gl_cv_func_pthread_sigmask_in_libc_works=no
20385 else
20386 gl_cv_func_pthread_sigmask_in_libc_works=yes
20388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20389 conftest.$ac_objext conftest.beam conftest.$ac_ext
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20395 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20396 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20397 *no)
20398 REPLACE_PTHREAD_SIGMASK=1
20400 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20403 esac
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20407 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20408 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20409 $as_echo_n "(cached) " >&6
20410 else
20412 gl_save_LIBS="$LIBS"
20413 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20414 if test "$cross_compiling" = yes; then :
20415 case "$host_os" in
20416 cygwin*)
20417 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20419 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20420 esac
20422 else
20423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h. */
20426 #include <pthread.h>
20427 #include <signal.h>
20428 #include <stddef.h>
20429 int main ()
20431 sigset_t set;
20432 sigemptyset (&set);
20433 if (pthread_sigmask (1729, &set, NULL) == -1)
20434 return 1;
20435 return 0;
20437 _ACEOF
20438 if ac_fn_c_try_run "$LINENO"; then :
20439 gl_cv_func_pthread_sigmask_return_works=yes
20440 else
20441 gl_cv_func_pthread_sigmask_return_works=no
20443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20444 conftest.$ac_objext conftest.beam conftest.$ac_ext
20447 LIBS="$gl_save_LIBS"
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20451 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20452 case "$gl_cv_func_pthread_sigmask_return_works" in
20453 *no)
20454 REPLACE_PTHREAD_SIGMASK=1
20456 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20459 esac
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20462 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20463 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20464 $as_echo_n "(cached) " >&6
20465 else
20467 case "$host_os" in
20468 irix*)
20469 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20471 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20472 esac
20473 gl_save_LIBS="$LIBS"
20474 LIBS="$LIBS $LIBMULTITHREAD"
20475 if test "$cross_compiling" = yes; then :
20477 else
20478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h. */
20481 #include <pthread.h>
20482 #include <signal.h>
20483 #include <stdio.h>
20484 #include <stdlib.h>
20485 #include <unistd.h>
20486 static volatile int sigint_occurred;
20487 static void
20488 sigint_handler (int sig)
20490 sigint_occurred++;
20492 int main ()
20494 sigset_t set;
20495 int pid = getpid ();
20496 char command[80];
20497 signal (SIGINT, sigint_handler);
20498 sigemptyset (&set);
20499 sigaddset (&set, SIGINT);
20500 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20501 return 1;
20502 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20503 if (!(system (command) == 0))
20504 return 2;
20505 sleep (2);
20506 if (!(sigint_occurred == 0))
20507 return 3;
20508 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20509 return 4;
20510 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20511 return 5;
20512 return 0;
20514 _ACEOF
20515 if ac_fn_c_try_run "$LINENO"; then :
20517 else
20518 gl_cv_func_pthread_sigmask_unblock_works=no
20520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20521 conftest.$ac_objext conftest.beam conftest.$ac_ext
20524 LIBS="$gl_save_LIBS"
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20528 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20529 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20530 *no)
20531 REPLACE_PTHREAD_SIGMASK=1
20533 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20536 esac
20539 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20548 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20551 if test $HAVE_PTHREAD_SIGMASK = 1; then
20553 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20563 GNULIB_PTHREAD_SIGMASK=1
20572 if test $ac_cv_func_readlink = no; then
20573 HAVE_READLINK=0
20574 else
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20576 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20577 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20578 $as_echo_n "(cached) " >&6
20579 else
20580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20581 /* end confdefs.h. */
20582 #include <unistd.h>
20583 /* Cause compilation failure if original declaration has wrong type. */
20584 ssize_t readlink (const char *, char *, size_t);
20586 main ()
20590 return 0;
20592 _ACEOF
20593 if ac_fn_c_try_compile "$LINENO"; then :
20594 gl_cv_decl_readlink_works=yes
20595 else
20596 gl_cv_decl_readlink_works=no
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20601 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20603 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20604 if test "${gl_cv_func_readlink_works+set}" = set; then :
20605 $as_echo_n "(cached) " >&6
20606 else
20607 # We have readlink, so assume ln -s works.
20608 ln -s conftest.no-such conftest.link
20609 ln -s conftest.link conftest.lnk2
20610 if test "$cross_compiling" = yes; then :
20611 gl_cv_func_readlink_works="guessing no"
20612 else
20613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20614 /* end confdefs.h. */
20615 #include <unistd.h>
20618 main ()
20620 char buf[20];
20621 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20623 return 0;
20625 _ACEOF
20626 if ac_fn_c_try_run "$LINENO"; then :
20627 gl_cv_func_readlink_works=yes
20628 else
20629 gl_cv_func_readlink_works=no
20631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20632 conftest.$ac_objext conftest.beam conftest.$ac_ext
20635 rm -f conftest.link conftest.lnk2
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20638 $as_echo "$gl_cv_func_readlink_works" >&6; }
20639 if test "$gl_cv_func_readlink_works" != yes; then
20641 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20643 REPLACE_READLINK=1
20644 elif test "$gl_cv_decl_readlink_works" != yes; then
20645 REPLACE_READLINK=1
20649 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20658 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20669 GNULIB_READLINK=1
20686 if test $gl_cv_have_include_next = yes; then
20687 gl_cv_next_signal_h='<'signal.h'>'
20688 else
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20690 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20691 if test "${gl_cv_next_signal_h+set}" = set; then :
20692 $as_echo_n "(cached) " >&6
20693 else
20695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696 /* end confdefs.h. */
20697 #include <signal.h>
20699 _ACEOF
20700 case "$host_os" in
20701 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20702 *) gl_absname_cpp="$ac_cpp" ;;
20703 esac
20705 case "$host_os" in
20706 mingw*)
20707 gl_dirsep_regex='[/\\]'
20710 gl_dirsep_regex='/'
20712 esac
20714 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
20715 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
20716 s|^/[^/]|//&|
20720 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20721 sed -n "$gl_absolute_header_sed"`'"'
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20726 $as_echo "$gl_cv_next_signal_h" >&6; }
20728 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20730 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20731 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20732 gl_next_as_first_directive='<'signal.h'>'
20733 else
20734 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20735 gl_next_as_first_directive=$gl_cv_next_signal_h
20737 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20743 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20744 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20745 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20746 #include <signal.h>
20749 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20751 else
20752 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20761 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20762 #include <signal.h>
20765 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20767 else
20768 HAVE_SIGHANDLER_T=0
20774 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20775 /* <sys/types.h> is not needed according to POSIX, but the
20776 <sys/socket.h> in i386-unknown-freebsd4.10 and
20777 powerpc-apple-darwin5.5 required it. */
20778 #include <sys/types.h>
20779 #if HAVE_SYS_SOCKET_H
20780 # include <sys/socket.h>
20781 #elif HAVE_WS2TCPIP_H
20782 # include <ws2tcpip.h>
20783 #endif
20786 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20788 else
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20790 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20791 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20792 $as_echo_n "(cached) " >&6
20793 else
20794 # Systems have either "struct sockaddr *" or
20795 # "void *" as the second argument to getpeername
20796 gl_cv_socklen_t_equiv=
20797 for arg2 in "struct sockaddr" void; do
20798 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h. */
20801 #include <sys/types.h>
20802 #include <sys/socket.h>
20804 int getpeername (int, $arg2 *, $t *);
20806 main ()
20808 $t len;
20809 getpeername (0, 0, &len);
20811 return 0;
20813 _ACEOF
20814 if ac_fn_c_try_compile "$LINENO"; then :
20815 gl_cv_socklen_t_equiv="$t"
20817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 test "$gl_cv_socklen_t_equiv" != "" && break
20819 done
20820 test "$gl_cv_socklen_t_equiv" != "" && break
20821 done
20825 if test "$gl_cv_socklen_t_equiv" = ""; then
20826 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20829 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20831 cat >>confdefs.h <<_ACEOF
20832 #define socklen_t $gl_cv_socklen_t_equiv
20833 _ACEOF
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20839 $as_echo_n "checking for ssize_t... " >&6; }
20840 if test "${gt_cv_ssize_t+set}" = set; then :
20841 $as_echo_n "(cached) " >&6
20842 else
20843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h. */
20845 #include <sys/types.h>
20847 main ()
20849 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20850 return !x;
20852 return 0;
20854 _ACEOF
20855 if ac_fn_c_try_compile "$LINENO"; then :
20856 gt_cv_ssize_t=yes
20857 else
20858 gt_cv_ssize_t=no
20860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20863 $as_echo "$gt_cv_ssize_t" >&6; }
20864 if test $gt_cv_ssize_t = no; then
20866 $as_echo "#define ssize_t int" >>confdefs.h
20871 STDARG_H=''
20872 NEXT_STDARG_H='<stdarg.h>'
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20874 $as_echo_n "checking for va_copy... " >&6; }
20875 if test "${gl_cv_func_va_copy+set}" = set; then :
20876 $as_echo_n "(cached) " >&6
20877 else
20879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880 /* end confdefs.h. */
20881 #include <stdarg.h>
20883 main ()
20886 #ifndef va_copy
20887 void (*func) (va_list, va_list) = va_copy;
20888 #endif
20891 return 0;
20893 _ACEOF
20894 if ac_fn_c_try_compile "$LINENO"; then :
20895 gl_cv_func_va_copy=yes
20896 else
20897 gl_cv_func_va_copy=no
20899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20903 $as_echo "$gl_cv_func_va_copy" >&6; }
20904 if test $gl_cv_func_va_copy = no; then
20905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20906 /* end confdefs.h. */
20907 #if defined _AIX && !defined __GNUC__
20908 AIX vaccine
20909 #endif
20911 _ACEOF
20912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20913 $EGREP "vaccine" >/dev/null 2>&1; then :
20914 gl_aixcc=yes
20915 else
20916 gl_aixcc=no
20918 rm -f conftest*
20920 if test $gl_aixcc = yes; then
20921 STDARG_H=stdarg.h
20930 if test $gl_cv_have_include_next = yes; then
20931 gl_cv_next_stdarg_h='<'stdarg.h'>'
20932 else
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20934 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20935 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20936 $as_echo_n "(cached) " >&6
20937 else
20939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h. */
20941 #include <stdarg.h>
20943 _ACEOF
20944 case "$host_os" in
20945 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20946 *) gl_absname_cpp="$ac_cpp" ;;
20947 esac
20949 case "$host_os" in
20950 mingw*)
20951 gl_dirsep_regex='[/\\]'
20954 gl_dirsep_regex='/'
20956 esac
20958 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
20959 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
20960 s|^/[^/]|//&|
20964 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20965 sed -n "$gl_absolute_header_sed"`'"'
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20970 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20972 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20974 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20975 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20976 gl_next_as_first_directive='<'stdarg.h'>'
20977 else
20978 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20979 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20981 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20986 if test "$gl_cv_next_stdarg_h" = '""'; then
20987 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20988 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20990 else
20992 saved_as_echo_n="$as_echo_n"
20993 as_echo_n=':'
20994 if test "${gl_cv_func___va_copy+set}" = set; then :
20995 $as_echo_n "(cached) " >&6
20996 else
20998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20999 /* end confdefs.h. */
21000 #include <stdarg.h>
21002 main ()
21005 #ifndef __va_copy
21006 error, bail out
21007 #endif
21010 return 0;
21012 _ACEOF
21013 if ac_fn_c_try_compile "$LINENO"; then :
21014 gl_cv_func___va_copy=yes
21015 else
21016 gl_cv_func___va_copy=no
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021 as_echo_n="$saved_as_echo_n"
21023 if test $gl_cv_func___va_copy = yes; then
21025 $as_echo "#define va_copy __va_copy" >>confdefs.h
21027 else
21030 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21036 if test -n "$STDARG_H"; then
21037 GL_GENERATE_STDARG_H_TRUE=
21038 GL_GENERATE_STDARG_H_FALSE='#'
21039 else
21040 GL_GENERATE_STDARG_H_TRUE='#'
21041 GL_GENERATE_STDARG_H_FALSE=
21049 # Define two additional variables used in the Makefile substitution.
21051 if test "$ac_cv_header_stdbool_h" = yes; then
21052 STDBOOL_H=''
21053 else
21054 STDBOOL_H='stdbool.h'
21057 if test -n "$STDBOOL_H"; then
21058 GL_GENERATE_STDBOOL_H_TRUE=
21059 GL_GENERATE_STDBOOL_H_FALSE='#'
21060 else
21061 GL_GENERATE_STDBOOL_H_TRUE='#'
21062 GL_GENERATE_STDBOOL_H_FALSE=
21066 if test "$ac_cv_type__Bool" = yes; then
21067 HAVE__BOOL=1
21068 else
21069 HAVE__BOOL=0
21076 STDDEF_H=
21077 if test $gt_cv_c_wchar_t = no; then
21078 HAVE_WCHAR_T=0
21079 STDDEF_H=stddef.h
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21082 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21083 if test "${gl_cv_decl_null_works+set}" = set; then :
21084 $as_echo_n "(cached) " >&6
21085 else
21086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21087 /* end confdefs.h. */
21088 #include <stddef.h>
21089 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21092 main ()
21096 return 0;
21098 _ACEOF
21099 if ac_fn_c_try_compile "$LINENO"; then :
21100 gl_cv_decl_null_works=yes
21101 else
21102 gl_cv_decl_null_works=no
21104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21107 $as_echo "$gl_cv_decl_null_works" >&6; }
21108 if test $gl_cv_decl_null_works = no; then
21109 REPLACE_NULL=1
21110 STDDEF_H=stddef.h
21113 if test -n "$STDDEF_H"; then
21114 GL_GENERATE_STDDEF_H_TRUE=
21115 GL_GENERATE_STDDEF_H_FALSE='#'
21116 else
21117 GL_GENERATE_STDDEF_H_TRUE='#'
21118 GL_GENERATE_STDDEF_H_FALSE=
21121 if test -n "$STDDEF_H"; then
21130 if test $gl_cv_have_include_next = yes; then
21131 gl_cv_next_stddef_h='<'stddef.h'>'
21132 else
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21134 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21135 if test "${gl_cv_next_stddef_h+set}" = set; then :
21136 $as_echo_n "(cached) " >&6
21137 else
21139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21140 /* end confdefs.h. */
21141 #include <stddef.h>
21143 _ACEOF
21144 case "$host_os" in
21145 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21146 *) gl_absname_cpp="$ac_cpp" ;;
21147 esac
21149 case "$host_os" in
21150 mingw*)
21151 gl_dirsep_regex='[/\\]'
21154 gl_dirsep_regex='/'
21156 esac
21158 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
21159 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21160 s|^/[^/]|//&|
21164 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21165 sed -n "$gl_absolute_header_sed"`'"'
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21170 $as_echo "$gl_cv_next_stddef_h" >&6; }
21172 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21174 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21175 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21176 gl_next_as_first_directive='<'stddef.h'>'
21177 else
21178 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21179 gl_next_as_first_directive=$gl_cv_next_stddef_h
21181 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21200 if test $gl_cv_have_include_next = yes; then
21201 gl_cv_next_stdio_h='<'stdio.h'>'
21202 else
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21204 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21205 if test "${gl_cv_next_stdio_h+set}" = set; then :
21206 $as_echo_n "(cached) " >&6
21207 else
21209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21210 /* end confdefs.h. */
21211 #include <stdio.h>
21213 _ACEOF
21214 case "$host_os" in
21215 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21216 *) gl_absname_cpp="$ac_cpp" ;;
21217 esac
21219 case "$host_os" in
21220 mingw*)
21221 gl_dirsep_regex='[/\\]'
21224 gl_dirsep_regex='/'
21226 esac
21228 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
21229 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21230 s|^/[^/]|//&|
21234 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21235 sed -n "$gl_absolute_header_sed"`'"'
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21240 $as_echo "$gl_cv_next_stdio_h" >&6; }
21242 NEXT_STDIO_H=$gl_cv_next_stdio_h
21244 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21246 gl_next_as_first_directive='<'stdio.h'>'
21247 else
21248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21249 gl_next_as_first_directive=$gl_cv_next_stdio_h
21251 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21257 GNULIB_FSCANF=1
21258 GNULIB_SCANF=1
21259 GNULIB_FGETC=1
21260 GNULIB_GETC=1
21261 GNULIB_GETCHAR=1
21262 GNULIB_FGETS=1
21263 GNULIB_GETS=1
21264 GNULIB_FREAD=1
21267 GNULIB_FPRINTF=1
21268 GNULIB_PRINTF=1
21269 GNULIB_VFPRINTF=1
21270 GNULIB_VPRINTF=1
21271 GNULIB_FPUTC=1
21272 GNULIB_PUTC=1
21273 GNULIB_PUTCHAR=1
21274 GNULIB_FPUTS=1
21275 GNULIB_PUTS=1
21276 GNULIB_FWRITE=1
21292 if test $gl_cv_have_include_next = yes; then
21293 gl_cv_next_stdlib_h='<'stdlib.h'>'
21294 else
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21296 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21297 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21298 $as_echo_n "(cached) " >&6
21299 else
21301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21302 /* end confdefs.h. */
21303 #include <stdlib.h>
21305 _ACEOF
21306 case "$host_os" in
21307 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21308 *) gl_absname_cpp="$ac_cpp" ;;
21309 esac
21311 case "$host_os" in
21312 mingw*)
21313 gl_dirsep_regex='[/\\]'
21316 gl_dirsep_regex='/'
21318 esac
21320 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
21321 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21322 s|^/[^/]|//&|
21326 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21327 sed -n "$gl_absolute_header_sed"`'"'
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21332 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21334 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21336 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21337 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21338 gl_next_as_first_directive='<'stdlib.h'>'
21339 else
21340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21341 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21343 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21353 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21361 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21370 if test "$ac_cv_have_decl_strtoimax" != yes; then
21371 HAVE_DECL_STRTOIMAX=0
21374 if test $ac_cv_func_strtoimax = no; then
21383 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21386 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21387 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21388 ac_have_decl=1
21389 else
21390 ac_have_decl=0
21393 cat >>confdefs.h <<_ACEOF
21394 #define HAVE_DECL_STRTOLL $ac_have_decl
21395 _ACEOF
21405 GNULIB_STRTOIMAX=1
21415 if test "$ac_cv_have_decl_strtoumax" != yes; then
21416 HAVE_DECL_STRTOUMAX=0
21419 if test $ac_cv_func_strtoumax = no; then
21428 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21431 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21432 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21433 ac_have_decl=1
21434 else
21435 ac_have_decl=0
21438 cat >>confdefs.h <<_ACEOF
21439 #define HAVE_DECL_STRTOULL $ac_have_decl
21440 _ACEOF
21450 GNULIB_STRTOUMAX=1
21458 if test $ac_cv_func_symlink = no; then
21459 HAVE_SYMLINK=0
21460 else
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21462 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21463 if test "${gl_cv_func_symlink_works+set}" = set; then :
21464 $as_echo_n "(cached) " >&6
21465 else
21466 if test "$cross_compiling" = yes; then :
21467 gl_cv_func_symlink_works="guessing no"
21468 else
21469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21470 /* end confdefs.h. */
21471 #include <unistd.h>
21474 main ()
21476 int result = 0;
21477 if (!symlink ("a", "conftest.link/"))
21478 result |= 1;
21479 if (symlink ("conftest.f", "conftest.lnk2"))
21480 result |= 2;
21481 else if (!symlink ("a", "conftest.lnk2/"))
21482 result |= 4;
21483 return result;
21486 return 0;
21488 _ACEOF
21489 if ac_fn_c_try_run "$LINENO"; then :
21490 gl_cv_func_symlink_works=yes
21491 else
21492 gl_cv_func_symlink_works=no
21494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21495 conftest.$ac_objext conftest.beam conftest.$ac_ext
21498 rm -f conftest.f conftest.link conftest.lnk2
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21501 $as_echo "$gl_cv_func_symlink_works" >&6; }
21502 if test "$gl_cv_func_symlink_works" != yes; then
21503 REPLACE_SYMLINK=1
21507 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21516 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21524 GNULIB_SYMLINK=1
21546 if test $gl_cv_have_include_next = yes; then
21547 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21548 else
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21550 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21551 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21552 $as_echo_n "(cached) " >&6
21553 else
21555 if test $ac_cv_header_sys_stat_h = yes; then
21558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h. */
21560 #include <sys/stat.h>
21562 _ACEOF
21563 case "$host_os" in
21564 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21565 *) gl_absname_cpp="$ac_cpp" ;;
21566 esac
21568 case "$host_os" in
21569 mingw*)
21570 gl_dirsep_regex='[/\\]'
21573 gl_dirsep_regex='/'
21575 esac
21577 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
21578 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
21579 s|^/[^/]|//&|
21583 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21584 sed -n "$gl_absolute_header_sed"`'"'
21585 else
21586 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21592 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21594 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21596 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21598 gl_next_as_first_directive='<'sys/stat.h'>'
21599 else
21600 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21601 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21603 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21611 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21612 #include <sys/stat.h>
21614 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21616 else
21618 $as_echo "#define nlink_t int" >>confdefs.h
21636 if test $ac_cv_have_decl_localtime_r = no; then
21637 HAVE_DECL_LOCALTIME_R=0
21641 if test $ac_cv_func_localtime_r = yes; then
21642 HAVE_LOCALTIME_R=1
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21644 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21645 if test "${gl_cv_time_r_posix+set}" = set; then :
21646 $as_echo_n "(cached) " >&6
21647 else
21648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649 /* end confdefs.h. */
21650 #include <time.h>
21652 main ()
21654 /* We don't need to append 'restrict's to the argument types,
21655 even though the POSIX signature has the 'restrict's,
21656 since C99 says they can't affect type compatibility. */
21657 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21658 if (ptr) return 0;
21659 /* Check the return type is a pointer.
21660 On HP-UX 10 it is 'int'. */
21661 *localtime_r (0, 0);
21663 return 0;
21666 _ACEOF
21667 if ac_fn_c_try_compile "$LINENO"; then :
21668 gl_cv_time_r_posix=yes
21669 else
21670 gl_cv_time_r_posix=no
21672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21676 $as_echo "$gl_cv_time_r_posix" >&6; }
21677 if test $gl_cv_time_r_posix = yes; then
21678 REPLACE_LOCALTIME_R=0
21679 else
21680 REPLACE_LOCALTIME_R=1
21682 else
21683 HAVE_LOCALTIME_R=0
21686 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21695 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21706 GNULIB_TIME_R=1
21726 if test $gl_cv_have_include_next = yes; then
21727 gl_cv_next_unistd_h='<'unistd.h'>'
21728 else
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21730 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21731 if test "${gl_cv_next_unistd_h+set}" = set; then :
21732 $as_echo_n "(cached) " >&6
21733 else
21735 if test $ac_cv_header_unistd_h = yes; then
21738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21739 /* end confdefs.h. */
21740 #include <unistd.h>
21742 _ACEOF
21743 case "$host_os" in
21744 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21745 *) gl_absname_cpp="$ac_cpp" ;;
21746 esac
21748 case "$host_os" in
21749 mingw*)
21750 gl_dirsep_regex='[/\\]'
21753 gl_dirsep_regex='/'
21755 esac
21757 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
21758 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
21759 s|^/[^/]|//&|
21763 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21764 sed -n "$gl_absolute_header_sed"`'"'
21765 else
21766 gl_cv_next_unistd_h='<'unistd.h'>'
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21772 $as_echo "$gl_cv_next_unistd_h" >&6; }
21774 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21776 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21777 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21778 gl_next_as_first_directive='<'unistd.h'>'
21779 else
21780 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21781 gl_next_as_first_directive=$gl_cv_next_unistd_h
21783 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21788 if test $ac_cv_header_unistd_h = yes; then
21789 HAVE_UNISTD_H=1
21790 else
21791 HAVE_UNISTD_H=0
21799 gl_gnulib_enabled_dosname=false
21800 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21801 gl_gnulib_enabled_sigprocmask=false
21802 gl_gnulib_enabled_stat=false
21803 gl_gnulib_enabled_strtoll=false
21804 gl_gnulib_enabled_strtoull=false
21805 gl_gnulib_enabled_verify=false
21806 func_gl_gnulib_m4code_dosname ()
21808 if ! $gl_gnulib_enabled_dosname; then
21809 gl_gnulib_enabled_dosname=true
21812 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21814 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21817 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21820 func_gl_gnulib_m4code_sigprocmask ()
21822 if ! $gl_gnulib_enabled_sigprocmask; then
21826 if test $gl_cv_type_sigset_t = yes; then
21827 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21828 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21829 gl_cv_func_sigprocmask=1
21833 if test -z "$gl_cv_func_sigprocmask"; then
21834 HAVE_POSIX_SIGNALBLOCKING=0
21837 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21846 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21857 GNULIB_SIGPROCMASK=1
21863 gl_gnulib_enabled_sigprocmask=true
21866 func_gl_gnulib_m4code_stat ()
21868 if ! $gl_gnulib_enabled_stat; then
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21873 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21874 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21875 $as_echo_n "(cached) " >&6
21876 else
21877 if test "$cross_compiling" = yes; then :
21878 case $host_os in
21879 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21880 *) gl_cv_func_stat_dir_slash="guessing yes";;
21881 esac
21882 else
21883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884 /* end confdefs.h. */
21885 #include <sys/stat.h>
21888 main ()
21890 struct stat st; return stat (".", &st) != stat ("./", &st);
21892 return 0;
21894 _ACEOF
21895 if ac_fn_c_try_run "$LINENO"; then :
21896 gl_cv_func_stat_dir_slash=yes
21897 else
21898 gl_cv_func_stat_dir_slash=no
21900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21901 conftest.$ac_objext conftest.beam conftest.$ac_ext
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21906 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21908 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21909 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21910 $as_echo_n "(cached) " >&6
21911 else
21912 touch conftest.tmp
21913 # Assume that if we have lstat, we can also check symlinks.
21914 if test $ac_cv_func_lstat = yes; then
21915 ln -s conftest.tmp conftest.lnk
21917 if test "$cross_compiling" = yes; then :
21918 gl_cv_func_stat_file_slash="guessing no"
21919 else
21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921 /* end confdefs.h. */
21922 #include <sys/stat.h>
21925 main ()
21927 int result = 0;
21928 struct stat st;
21929 if (!stat ("conftest.tmp/", &st))
21930 result |= 1;
21931 #if HAVE_LSTAT
21932 if (!stat ("conftest.lnk/", &st))
21933 result |= 2;
21934 #endif
21935 return result;
21938 return 0;
21940 _ACEOF
21941 if ac_fn_c_try_run "$LINENO"; then :
21942 gl_cv_func_stat_file_slash=yes
21943 else
21944 gl_cv_func_stat_file_slash=no
21946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21947 conftest.$ac_objext conftest.beam conftest.$ac_ext
21950 rm -f conftest.tmp conftest.lnk
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21953 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21954 case $gl_cv_func_stat_dir_slash in
21955 *no) REPLACE_STAT=1
21957 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21959 esac
21960 case $gl_cv_func_stat_file_slash in
21961 *no) REPLACE_STAT=1
21963 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21965 esac
21967 if test $REPLACE_STAT = 1; then
21976 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21988 GNULIB_STAT=1
21994 gl_gnulib_enabled_stat=true
21995 if test $REPLACE_STAT = 1; then
21996 func_gl_gnulib_m4code_dosname
21998 if test $REPLACE_STAT = 1; then
21999 func_gl_gnulib_m4code_verify
22003 func_gl_gnulib_m4code_strtoll ()
22005 if ! $gl_gnulib_enabled_strtoll; then
22009 if test "$ac_cv_type_long_long_int" = yes; then
22010 for ac_func in strtoll
22011 do :
22012 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22013 if test "x$ac_cv_func_strtoll" = x""yes; then :
22014 cat >>confdefs.h <<_ACEOF
22015 #define HAVE_STRTOLL 1
22016 _ACEOF
22019 done
22021 if test $ac_cv_func_strtoll = no; then
22022 HAVE_STRTOLL=0
22026 if test $HAVE_STRTOLL = 0; then
22035 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22046 GNULIB_STRTOLL=1
22052 gl_gnulib_enabled_strtoll=true
22055 func_gl_gnulib_m4code_strtoull ()
22057 if ! $gl_gnulib_enabled_strtoull; then
22061 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22062 for ac_func in strtoull
22063 do :
22064 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22065 if test "x$ac_cv_func_strtoull" = x""yes; then :
22066 cat >>confdefs.h <<_ACEOF
22067 #define HAVE_STRTOULL 1
22068 _ACEOF
22071 done
22073 if test $ac_cv_func_strtoull = no; then
22074 HAVE_STRTOULL=0
22078 if test $HAVE_STRTOULL = 0; then
22087 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22098 GNULIB_STRTOULL=1
22104 gl_gnulib_enabled_strtoull=true
22107 func_gl_gnulib_m4code_verify ()
22109 if ! $gl_gnulib_enabled_verify; then
22110 gl_gnulib_enabled_verify=true
22113 if test $REPLACE_GETOPT = 1; then
22114 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22116 if test $REPLACE_LSTAT = 1; then
22117 func_gl_gnulib_m4code_dosname
22119 if test $REPLACE_LSTAT = 1; then
22120 func_gl_gnulib_m4code_stat
22122 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22123 func_gl_gnulib_m4code_sigprocmask
22125 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22126 func_gl_gnulib_m4code_stat
22128 if test $ac_cv_func_strtoimax = no; then
22129 func_gl_gnulib_m4code_verify
22131 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22132 func_gl_gnulib_m4code_strtoll
22134 if test $ac_cv_func_strtoumax = no; then
22135 func_gl_gnulib_m4code_verify
22137 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22138 func_gl_gnulib_m4code_strtoull
22141 if $gl_gnulib_enabled_dosname; then
22142 gl_GNULIB_ENABLED_dosname_TRUE=
22143 gl_GNULIB_ENABLED_dosname_FALSE='#'
22144 else
22145 gl_GNULIB_ENABLED_dosname_TRUE='#'
22146 gl_GNULIB_ENABLED_dosname_FALSE=
22149 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22150 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22151 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22152 else
22153 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22154 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22157 if $gl_gnulib_enabled_sigprocmask; then
22158 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22159 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22160 else
22161 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22162 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22165 if $gl_gnulib_enabled_stat; then
22166 gl_GNULIB_ENABLED_stat_TRUE=
22167 gl_GNULIB_ENABLED_stat_FALSE='#'
22168 else
22169 gl_GNULIB_ENABLED_stat_TRUE='#'
22170 gl_GNULIB_ENABLED_stat_FALSE=
22173 if $gl_gnulib_enabled_strtoll; then
22174 gl_GNULIB_ENABLED_strtoll_TRUE=
22175 gl_GNULIB_ENABLED_strtoll_FALSE='#'
22176 else
22177 gl_GNULIB_ENABLED_strtoll_TRUE='#'
22178 gl_GNULIB_ENABLED_strtoll_FALSE=
22181 if $gl_gnulib_enabled_strtoull; then
22182 gl_GNULIB_ENABLED_strtoull_TRUE=
22183 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22184 else
22185 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22186 gl_GNULIB_ENABLED_strtoull_FALSE=
22189 if $gl_gnulib_enabled_verify; then
22190 gl_GNULIB_ENABLED_verify_TRUE=
22191 gl_GNULIB_ENABLED_verify_FALSE='#'
22192 else
22193 gl_GNULIB_ENABLED_verify_TRUE='#'
22194 gl_GNULIB_ENABLED_verify_FALSE=
22197 # End of code from modules
22207 gltests_libdeps=
22208 gltests_ltlibdeps=
22218 gl_source_base='tests'
22219 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
22221 gl_module_indicator_condition=$gltests_WITNESS
22232 LIBGNU_LIBDEPS="$gl_libdeps"
22234 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22238 case "$opsys" in
22239 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22241 darwin)
22242 ## The -headerpad option tells ld (see man page) to leave room at the
22243 ## end of the header for adding load commands. Needed for dumping.
22244 ## 0x690 is the total size of 30 segment load commands (at 56
22245 ## each); under Cocoa 31 commands are required.
22246 if test "$HAVE_NS" = "yes"; then
22247 libs_nsgui="-framework AppKit"
22248 headerpad_extra=6C8
22249 else
22250 libs_nsgui=
22251 headerpad_extra=690
22253 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22255 ## This is here because src/Makefile.in did some extra fiddling around
22256 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22257 ## #ifndef LD_SWITCH_SYSTEM
22258 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22259 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22260 ## not using gcc, darwin system not on an alpha (ie darwin, since
22261 ## darwin + alpha does not occur).
22262 ## Because this was done in src/Makefile.in, the resulting part of
22263 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22264 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22265 ## rather than LD_SWITCH_SYSTEM.
22266 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22267 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22270 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22271 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22272 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22273 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22274 ## had different values in configure (in ac_link) and src/Makefile.in.
22275 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22276 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
22278 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22279 esac
22281 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22282 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22288 LD_FIRSTFLAG=
22289 ORDINARY_LINK=
22290 case "$opsys" in
22291 ## gnu: GNU needs its own crt0.
22292 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22294 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22295 ## library search parth, i.e. it won't search /usr/lib for libc and
22296 ## friends. Using -nostartfiles instead avoids this problem, and
22297 ## will also work on earlier NetBSD releases.
22298 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22300 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22301 ## MkLinux/LinuxPPC needs this.
22302 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22303 gnu-*)
22304 case "$machine" in
22305 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22306 esac
22308 esac
22311 if test "x$ORDINARY_LINK" = "xyes"; then
22313 LD_FIRSTFLAG=""
22315 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22318 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22319 ## freebsd, gnu-* not on macppc|ibms390x.
22320 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22322 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22323 ## places that are difficult to figure out at make time. Fortunately,
22324 ## these same versions allow you to pass arbitrary flags on to the
22325 ## linker, so there is no reason not to use it as a linker.
22327 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22328 ## searching for libraries in its internal directories, so we have to
22329 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22330 LD_FIRSTFLAG="-nostdlib"
22333 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22334 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22339 ## FIXME? The logic here is not precisely the same as that above.
22340 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22341 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22342 LIB_GCC=
22343 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22345 case "$opsys" in
22346 freebsd|netbsd|openbsd) LIB_GCC= ;;
22348 gnu-*)
22349 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22350 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22351 case $host_cpu in
22352 arm*)
22353 LIB_GCC="-lgcc_s"
22356 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22357 ## immediately undefine it again and redefine it to empty.
22358 ## Was the C_SWITCH_X_SITE part really necessary?
22359 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22360 LIB_GCC=
22362 esac
22365 ## Ask GCC where to find libgcc.a.
22366 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22367 esac
22371 ## If we're using X11/GNUstep, define some consequences.
22372 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22374 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22377 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22384 #### Report on what we decided to do.
22385 #### Report GTK as a toolkit, even if it doesn't use Xt.
22386 #### It makes printing result more understandable as using GTK sets
22387 #### toolkit_scroll_bars to yes by default.
22388 if test "${HAVE_GTK}" = "yes"; then
22389 USE_X_TOOLKIT=GTK
22392 and_machfile=
22393 if test -n "$machfile"; then
22394 and_machfile=" and \`${machfile}'"
22397 echo "
22398 Configured for \`${canonical}'.
22400 Where should the build process find the source code? ${srcdir}
22401 What operating system and machine description files should Emacs use?
22402 \`${opsysfile}'${and_machfile}
22403 What compiler should emacs be built with? ${CC} ${CFLAGS}
22404 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22405 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22406 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22407 What window system should Emacs use? ${window_system}
22408 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22410 if test -n "${x_includes}"; then
22411 echo " Where do we find X Windows header files? ${x_includes}"
22412 else
22413 echo " Where do we find X Windows header files? Standard dirs"
22415 if test -n "${x_libraries}"; then
22416 echo " Where do we find X Windows libraries? ${x_libraries}"
22417 else
22418 echo " Where do we find X Windows libraries? Standard dirs"
22421 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22422 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22423 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22424 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22425 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22426 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22427 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22428 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22430 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22431 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22432 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22433 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22434 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22435 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
22436 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22438 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22439 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22440 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22441 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22443 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22444 echo
22446 if test $USE_XASSERTS = yes; then
22447 echo " Compiling with asserts turned on."
22448 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22451 echo
22453 if test "$HAVE_NS" = "yes"; then
22454 echo
22455 echo "You must run \"make install\" in order to test the built application.
22456 The installed application will go to nextstep/Emacs.app and can be
22457 run or moved from there."
22458 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22459 echo "The application will be fully self-contained."
22460 else
22461 echo "The lisp resources for the application will be installed under ${prefix}.
22462 You may need to run \"make install\" with sudo. The application will fail
22463 to run if these resources are not installed."
22465 echo
22469 # Remove any trailing slashes in these variables.
22470 test "${prefix}" != NONE &&
22471 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22472 test "${exec_prefix}" != NONE &&
22473 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22475 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"
22477 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"
22480 opt_makefile=test/automated/Makefile
22482 if test -f $srcdir/${opt_makefile}.in; then
22483 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
22484 ac_config_files="$ac_config_files test/automated/Makefile"
22488 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22492 ac_config_commands="$ac_config_commands mkdirs"
22495 ac_config_commands="$ac_config_commands epaths"
22498 ac_config_commands="$ac_config_commands gdbinit"
22501 cat >confcache <<\_ACEOF
22502 # This file is a shell script that caches the results of configure
22503 # tests run on this system so they can be shared between configure
22504 # scripts and configure runs, see configure's option --config-cache.
22505 # It is not useful on other systems. If it contains results you don't
22506 # want to keep, you may remove or edit it.
22508 # config.status only pays attention to the cache file if you give it
22509 # the --recheck option to rerun configure.
22511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22513 # following values.
22515 _ACEOF
22517 # The following way of writing the cache mishandles newlines in values,
22518 # but we know of no workaround that is simple, portable, and efficient.
22519 # So, we kill variables containing newlines.
22520 # Ultrix sh set writes to stderr and can't be redirected directly,
22521 # and sets the high bit in the cache file unless we assign to the vars.
22523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22524 eval ac_val=\$$ac_var
22525 case $ac_val in #(
22526 *${as_nl}*)
22527 case $ac_var in #(
22528 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22529 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22530 esac
22531 case $ac_var in #(
22532 _ | IFS | as_nl) ;; #(
22533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22534 *) { eval $ac_var=; unset $ac_var;} ;;
22535 esac ;;
22536 esac
22537 done
22539 (set) 2>&1 |
22540 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22541 *${as_nl}ac_space=\ *)
22542 # `set' does not quote correctly, so add quotes: double-quote
22543 # substitution turns \\\\ into \\, and sed turns \\ into \.
22544 sed -n \
22545 "s/'/'\\\\''/g;
22546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22547 ;; #(
22549 # `set' quotes correctly as required by POSIX, so do not add quotes.
22550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22552 esac |
22553 sort
22555 sed '
22556 /^ac_cv_env_/b end
22557 t clear
22558 :clear
22559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22560 t end
22561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22562 :end' >>confcache
22563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22564 if test -w "$cache_file"; then
22565 test "x$cache_file" != "x/dev/null" &&
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22567 $as_echo "$as_me: updating cache $cache_file" >&6;}
22568 cat confcache >$cache_file
22569 else
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22571 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22574 rm -f confcache
22576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22577 # Let make expand exec_prefix.
22578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22580 DEFS=-DHAVE_CONFIG_H
22582 ac_libobjs=
22583 ac_ltlibobjs=
22584 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22585 # 1. Remove the extension, and $U if already installed.
22586 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22587 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22588 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22589 # will be set to the directory where LIBOBJS objects are built.
22590 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22591 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22592 done
22593 LIBOBJS=$ac_libobjs
22595 LTLIBOBJS=$ac_ltlibobjs
22598 if test -n "$EXEEXT"; then
22599 am__EXEEXT_TRUE=
22600 am__EXEEXT_FALSE='#'
22601 else
22602 am__EXEEXT_TRUE='#'
22603 am__EXEEXT_FALSE=
22606 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22607 as_fn_error "conditional \"AMDEP\" was never defined.
22608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22610 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22611 as_fn_error "conditional \"am__fastdepCC\" was never defined.
22612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22615 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22616 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
22617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22619 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22620 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22624 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22625 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
22626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22628 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22629 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
22630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22632 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22633 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22636 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22637 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22640 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22641 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22644 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22645 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22648 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22649 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22652 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22653 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22656 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22657 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22660 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22661 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22664 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22665 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22669 gl_libobjs=
22670 gl_ltlibobjs=
22671 if test -n "$gl_LIBOBJS"; then
22672 # Remove the extension.
22673 sed_drop_objext='s/\.o$//;s/\.obj$//'
22674 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22675 gl_libobjs="$gl_libobjs $i.$ac_objext"
22676 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22677 done
22679 gl_LIBOBJS=$gl_libobjs
22681 gl_LTLIBOBJS=$gl_ltlibobjs
22685 gltests_libobjs=
22686 gltests_ltlibobjs=
22687 if test -n "$gltests_LIBOBJS"; then
22688 # Remove the extension.
22689 sed_drop_objext='s/\.o$//;s/\.obj$//'
22690 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22691 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22692 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22693 done
22695 gltests_LIBOBJS=$gltests_libobjs
22697 gltests_LTLIBOBJS=$gltests_ltlibobjs
22701 : ${CONFIG_STATUS=./config.status}
22702 ac_write_fail=0
22703 ac_clean_files_save=$ac_clean_files
22704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22706 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22707 as_write_fail=0
22708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22709 #! $SHELL
22710 # Generated by $as_me.
22711 # Run this file to recreate the current configuration.
22712 # Compiler output produced by configure, useful for debugging
22713 # configure, is in config.log if it exists.
22715 debug=false
22716 ac_cs_recheck=false
22717 ac_cs_silent=false
22719 SHELL=\${CONFIG_SHELL-$SHELL}
22720 export SHELL
22721 _ASEOF
22722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22723 ## -------------------- ##
22724 ## M4sh Initialization. ##
22725 ## -------------------- ##
22727 # Be more Bourne compatible
22728 DUALCASE=1; export DUALCASE # for MKS sh
22729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22730 emulate sh
22731 NULLCMD=:
22732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22733 # is contrary to our usage. Disable this feature.
22734 alias -g '${1+"$@"}'='"$@"'
22735 setopt NO_GLOB_SUBST
22736 else
22737 case `(set -o) 2>/dev/null` in #(
22738 *posix*) :
22739 set -o posix ;; #(
22740 *) :
22742 esac
22746 as_nl='
22748 export as_nl
22749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22750 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22753 # Prefer a ksh shell builtin over an external printf program on Solaris,
22754 # but without wasting forks for bash or zsh.
22755 if test -z "$BASH_VERSION$ZSH_VERSION" \
22756 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22757 as_echo='print -r --'
22758 as_echo_n='print -rn --'
22759 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22760 as_echo='printf %s\n'
22761 as_echo_n='printf %s'
22762 else
22763 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22764 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22765 as_echo_n='/usr/ucb/echo -n'
22766 else
22767 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22768 as_echo_n_body='eval
22769 arg=$1;
22770 case $arg in #(
22771 *"$as_nl"*)
22772 expr "X$arg" : "X\\(.*\\)$as_nl";
22773 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22774 esac;
22775 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22777 export as_echo_n_body
22778 as_echo_n='sh -c $as_echo_n_body as_echo'
22780 export as_echo_body
22781 as_echo='sh -c $as_echo_body as_echo'
22784 # The user is always right.
22785 if test "${PATH_SEPARATOR+set}" != set; then
22786 PATH_SEPARATOR=:
22787 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22788 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22789 PATH_SEPARATOR=';'
22794 # IFS
22795 # We need space, tab and new line, in precisely that order. Quoting is
22796 # there to prevent editors from complaining about space-tab.
22797 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22798 # splitting by setting IFS to empty value.)
22799 IFS=" "" $as_nl"
22801 # Find who we are. Look in the path if we contain no directory separator.
22802 case $0 in #((
22803 *[\\/]* ) as_myself=$0 ;;
22804 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22805 for as_dir in $PATH
22807 IFS=$as_save_IFS
22808 test -z "$as_dir" && as_dir=.
22809 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22810 done
22811 IFS=$as_save_IFS
22814 esac
22815 # We did not find ourselves, most probably we were run as `sh COMMAND'
22816 # in which case we are not to be found in the path.
22817 if test "x$as_myself" = x; then
22818 as_myself=$0
22820 if test ! -f "$as_myself"; then
22821 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22822 exit 1
22825 # Unset variables that we do not need and which cause bugs (e.g. in
22826 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22827 # suppresses any "Segmentation fault" message there. '((' could
22828 # trigger a bug in pdksh 5.2.14.
22829 for as_var in BASH_ENV ENV MAIL MAILPATH
22830 do eval test x\${$as_var+set} = xset \
22831 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22832 done
22833 PS1='$ '
22834 PS2='> '
22835 PS4='+ '
22837 # NLS nuisances.
22838 LC_ALL=C
22839 export LC_ALL
22840 LANGUAGE=C
22841 export LANGUAGE
22843 # CDPATH.
22844 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22847 # as_fn_error ERROR [LINENO LOG_FD]
22848 # ---------------------------------
22849 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22850 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22851 # script with status $?, using 1 if that was 0.
22852 as_fn_error ()
22854 as_status=$?; test $as_status -eq 0 && as_status=1
22855 if test "$3"; then
22856 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22857 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22859 $as_echo "$as_me: error: $1" >&2
22860 as_fn_exit $as_status
22861 } # as_fn_error
22864 # as_fn_set_status STATUS
22865 # -----------------------
22866 # Set $? to STATUS, without forking.
22867 as_fn_set_status ()
22869 return $1
22870 } # as_fn_set_status
22872 # as_fn_exit STATUS
22873 # -----------------
22874 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22875 as_fn_exit ()
22877 set +e
22878 as_fn_set_status $1
22879 exit $1
22880 } # as_fn_exit
22882 # as_fn_unset VAR
22883 # ---------------
22884 # Portably unset VAR.
22885 as_fn_unset ()
22887 { eval $1=; unset $1;}
22889 as_unset=as_fn_unset
22890 # as_fn_append VAR VALUE
22891 # ----------------------
22892 # Append the text in VALUE to the end of the definition contained in VAR. Take
22893 # advantage of any shell optimizations that allow amortized linear growth over
22894 # repeated appends, instead of the typical quadratic growth present in naive
22895 # implementations.
22896 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22897 eval 'as_fn_append ()
22899 eval $1+=\$2
22901 else
22902 as_fn_append ()
22904 eval $1=\$$1\$2
22906 fi # as_fn_append
22908 # as_fn_arith ARG...
22909 # ------------------
22910 # Perform arithmetic evaluation on the ARGs, and store the result in the
22911 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22912 # must be portable across $(()) and expr.
22913 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22914 eval 'as_fn_arith ()
22916 as_val=$(( $* ))
22918 else
22919 as_fn_arith ()
22921 as_val=`expr "$@" || test $? -eq 1`
22923 fi # as_fn_arith
22926 if expr a : '\(a\)' >/dev/null 2>&1 &&
22927 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22928 as_expr=expr
22929 else
22930 as_expr=false
22933 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22934 as_basename=basename
22935 else
22936 as_basename=false
22939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22940 as_dirname=dirname
22941 else
22942 as_dirname=false
22945 as_me=`$as_basename -- "$0" ||
22946 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22947 X"$0" : 'X\(//\)$' \| \
22948 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22949 $as_echo X/"$0" |
22950 sed '/^.*\/\([^/][^/]*\)\/*$/{
22951 s//\1/
22954 /^X\/\(\/\/\)$/{
22955 s//\1/
22958 /^X\/\(\/\).*/{
22959 s//\1/
22962 s/.*/./; q'`
22964 # Avoid depending upon Character Ranges.
22965 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22966 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22967 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22968 as_cr_digits='0123456789'
22969 as_cr_alnum=$as_cr_Letters$as_cr_digits
22971 ECHO_C= ECHO_N= ECHO_T=
22972 case `echo -n x` in #(((((
22973 -n*)
22974 case `echo 'xy\c'` in
22975 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22976 xy) ECHO_C='\c';;
22977 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22978 ECHO_T=' ';;
22979 esac;;
22981 ECHO_N='-n';;
22982 esac
22984 rm -f conf$$ conf$$.exe conf$$.file
22985 if test -d conf$$.dir; then
22986 rm -f conf$$.dir/conf$$.file
22987 else
22988 rm -f conf$$.dir
22989 mkdir conf$$.dir 2>/dev/null
22991 if (echo >conf$$.file) 2>/dev/null; then
22992 if ln -s conf$$.file conf$$ 2>/dev/null; then
22993 as_ln_s='ln -s'
22994 # ... but there are two gotchas:
22995 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22996 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22997 # In both cases, we have to default to `cp -p'.
22998 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22999 as_ln_s='cp -p'
23000 elif ln conf$$.file conf$$ 2>/dev/null; then
23001 as_ln_s=ln
23002 else
23003 as_ln_s='cp -p'
23005 else
23006 as_ln_s='cp -p'
23008 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23009 rmdir conf$$.dir 2>/dev/null
23012 # as_fn_mkdir_p
23013 # -------------
23014 # Create "$as_dir" as a directory, including parents if necessary.
23015 as_fn_mkdir_p ()
23018 case $as_dir in #(
23019 -*) as_dir=./$as_dir;;
23020 esac
23021 test -d "$as_dir" || eval $as_mkdir_p || {
23022 as_dirs=
23023 while :; do
23024 case $as_dir in #(
23025 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23026 *) as_qdir=$as_dir;;
23027 esac
23028 as_dirs="'$as_qdir' $as_dirs"
23029 as_dir=`$as_dirname -- "$as_dir" ||
23030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23031 X"$as_dir" : 'X\(//\)[^/]' \| \
23032 X"$as_dir" : 'X\(//\)$' \| \
23033 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23034 $as_echo X"$as_dir" |
23035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23036 s//\1/
23039 /^X\(\/\/\)[^/].*/{
23040 s//\1/
23043 /^X\(\/\/\)$/{
23044 s//\1/
23047 /^X\(\/\).*/{
23048 s//\1/
23051 s/.*/./; q'`
23052 test -d "$as_dir" && break
23053 done
23054 test -z "$as_dirs" || eval "mkdir $as_dirs"
23055 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23058 } # as_fn_mkdir_p
23059 if mkdir -p . 2>/dev/null; then
23060 as_mkdir_p='mkdir -p "$as_dir"'
23061 else
23062 test -d ./-p && rmdir ./-p
23063 as_mkdir_p=false
23066 if test -x / >/dev/null 2>&1; then
23067 as_test_x='test -x'
23068 else
23069 if ls -dL / >/dev/null 2>&1; then
23070 as_ls_L_option=L
23071 else
23072 as_ls_L_option=
23074 as_test_x='
23075 eval sh -c '\''
23076 if test -d "$1"; then
23077 test -d "$1/.";
23078 else
23079 case $1 in #(
23080 -*)set "./$1";;
23081 esac;
23082 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23083 ???[sx]*):;;*)false;;esac;fi
23084 '\'' sh
23087 as_executable_p=$as_test_x
23089 # Sed expression to map a string onto a valid CPP name.
23090 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23092 # Sed expression to map a string onto a valid variable name.
23093 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23096 exec 6>&1
23097 ## ----------------------------------- ##
23098 ## Main body of $CONFIG_STATUS script. ##
23099 ## ----------------------------------- ##
23100 _ASEOF
23101 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23104 # Save the log message, to keep $0 and so on meaningful, and to
23105 # report actual input values of CONFIG_FILES etc. instead of their
23106 # values after options handling.
23107 ac_log="
23108 This file was extended by emacs $as_me 24.0.90, which was
23109 generated by GNU Autoconf 2.65. Invocation command line was
23111 CONFIG_FILES = $CONFIG_FILES
23112 CONFIG_HEADERS = $CONFIG_HEADERS
23113 CONFIG_LINKS = $CONFIG_LINKS
23114 CONFIG_COMMANDS = $CONFIG_COMMANDS
23115 $ $0 $@
23117 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23120 _ACEOF
23122 case $ac_config_files in *"
23123 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23124 esac
23126 case $ac_config_headers in *"
23127 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23128 esac
23131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23132 # Files that config.status was made for.
23133 config_files="$ac_config_files"
23134 config_headers="$ac_config_headers"
23135 config_commands="$ac_config_commands"
23137 _ACEOF
23139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23140 ac_cs_usage="\
23141 \`$as_me' instantiates files and other configuration actions
23142 from templates according to the current configuration. Unless the files
23143 and actions are specified as TAGs, all are instantiated by default.
23145 Usage: $0 [OPTION]... [TAG]...
23147 -h, --help print this help, then exit
23148 -V, --version print version number and configuration settings, then exit
23149 --config print configuration, then exit
23150 -q, --quiet, --silent
23151 do not print progress messages
23152 -d, --debug don't remove temporary files
23153 --recheck update $as_me by reconfiguring in the same conditions
23154 --file=FILE[:TEMPLATE]
23155 instantiate the configuration file FILE
23156 --header=FILE[:TEMPLATE]
23157 instantiate the configuration header FILE
23159 Configuration files:
23160 $config_files
23162 Configuration headers:
23163 $config_headers
23165 Configuration commands:
23166 $config_commands
23168 Report bugs to the package provider."
23170 _ACEOF
23171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23172 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23173 ac_cs_version="\\
23174 emacs config.status 24.0.90
23175 configured by $0, generated by GNU Autoconf 2.65,
23176 with options \\"\$ac_cs_config\\"
23178 Copyright (C) 2009 Free Software Foundation, Inc.
23179 This config.status script is free software; the Free Software Foundation
23180 gives unlimited permission to copy, distribute and modify it."
23182 ac_pwd='$ac_pwd'
23183 srcdir='$srcdir'
23184 INSTALL='$INSTALL'
23185 MKDIR_P='$MKDIR_P'
23186 AWK='$AWK'
23187 test -n "\$AWK" || AWK=awk
23188 _ACEOF
23190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23191 # The default lists apply if the user does not specify any file.
23192 ac_need_defaults=:
23193 while test $# != 0
23195 case $1 in
23196 --*=*)
23197 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23198 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23199 ac_shift=:
23202 ac_option=$1
23203 ac_optarg=$2
23204 ac_shift=shift
23206 esac
23208 case $ac_option in
23209 # Handling of the options.
23210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23211 ac_cs_recheck=: ;;
23212 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23213 $as_echo "$ac_cs_version"; exit ;;
23214 --config | --confi | --conf | --con | --co | --c )
23215 $as_echo "$ac_cs_config"; exit ;;
23216 --debug | --debu | --deb | --de | --d | -d )
23217 debug=: ;;
23218 --file | --fil | --fi | --f )
23219 $ac_shift
23220 case $ac_optarg in
23221 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23222 esac
23223 as_fn_append CONFIG_FILES " '$ac_optarg'"
23224 ac_need_defaults=false;;
23225 --header | --heade | --head | --hea )
23226 $ac_shift
23227 case $ac_optarg in
23228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23229 esac
23230 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23231 ac_need_defaults=false;;
23232 --he | --h)
23233 # Conflict between --help and --header
23234 as_fn_error "ambiguous option: \`$1'
23235 Try \`$0 --help' for more information.";;
23236 --help | --hel | -h )
23237 $as_echo "$ac_cs_usage"; exit ;;
23238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23239 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23240 ac_cs_silent=: ;;
23242 # This is an error.
23243 -*) as_fn_error "unrecognized option: \`$1'
23244 Try \`$0 --help' for more information." ;;
23246 *) as_fn_append ac_config_targets " $1"
23247 ac_need_defaults=false ;;
23249 esac
23250 shift
23251 done
23253 ac_configure_extra_args=
23255 if $ac_cs_silent; then
23256 exec 6>/dev/null
23257 ac_configure_extra_args="$ac_configure_extra_args --silent"
23260 _ACEOF
23261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23262 if \$ac_cs_recheck; then
23263 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23264 shift
23265 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23266 CONFIG_SHELL='$SHELL'
23267 export CONFIG_SHELL
23268 exec "\$@"
23271 _ACEOF
23272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23273 exec 5>>config.log
23275 echo
23276 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23277 ## Running $as_me. ##
23278 _ASBOX
23279 $as_echo "$ac_log"
23280 } >&5
23282 _ACEOF
23283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23285 # INIT-COMMANDS
23287 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23288 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23290 _ACEOF
23292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23294 # Handling of arguments.
23295 for ac_config_target in $ac_config_targets
23297 case $ac_config_target in
23298 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23299 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23300 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23301 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23302 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23303 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23304 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23305 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23306 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23307 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23308 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23309 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23310 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23311 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23312 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23313 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23314 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23315 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23317 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23318 esac
23319 done
23322 # If the user did not use the arguments to specify the items to instantiate,
23323 # then the envvar interface is used. Set only those that are not.
23324 # We use the long form for the default assignment because of an extremely
23325 # bizarre bug on SunOS 4.1.3.
23326 if $ac_need_defaults; then
23327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23332 # Have a temporary directory for convenience. Make it in the build tree
23333 # simply because there is no reason against having it here, and in addition,
23334 # creating and moving files from /tmp can sometimes cause problems.
23335 # Hook for its removal unless debugging.
23336 # Note that there is a small window in which the directory will not be cleaned:
23337 # after its creation but before its name has been assigned to `$tmp'.
23338 $debug ||
23340 tmp=
23341 trap 'exit_status=$?
23342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23344 trap 'as_fn_exit 1' 1 2 13 15
23346 # Create a (secure) tmp directory for tmp files.
23349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23350 test -n "$tmp" && test -d "$tmp"
23351 } ||
23353 tmp=./conf$$-$RANDOM
23354 (umask 077 && mkdir "$tmp")
23355 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23357 # Set up the scripts for CONFIG_FILES section.
23358 # No need to generate them if there are no CONFIG_FILES.
23359 # This happens for instance with `./config.status config.h'.
23360 if test -n "$CONFIG_FILES"; then
23362 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23363 ac_cs_awk_getline=:
23364 ac_cs_awk_pipe_init=
23365 ac_cs_awk_read_file='
23366 while ((getline aline < (F[key])) > 0)
23367 print(aline)
23368 close(F[key])'
23369 ac_cs_awk_pipe_fini=
23370 else
23371 ac_cs_awk_getline=false
23372 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23373 ac_cs_awk_read_file='
23374 print "|#_!!_#|"
23375 print "cat " F[key] " &&"
23376 '$ac_cs_awk_pipe_init
23377 # The final `:' finishes the AND list.
23378 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23380 ac_cr=`echo X | tr X '\015'`
23381 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23382 # But we know of no other shell where ac_cr would be empty at this
23383 # point, so we can use a bashism as a fallback.
23384 if test "x$ac_cr" = x; then
23385 eval ac_cr=\$\'\\r\'
23387 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23388 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23389 ac_cs_awk_cr='\r'
23390 else
23391 ac_cs_awk_cr=$ac_cr
23394 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23395 _ACEOF
23397 # Create commands to substitute file output variables.
23399 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23400 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23401 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23402 echo "_ACAWK" &&
23403 echo "_ACEOF"
23404 } >conf$$files.sh &&
23405 . ./conf$$files.sh ||
23406 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23407 rm -f conf$$files.sh
23410 echo "cat >conf$$subs.awk <<_ACEOF" &&
23411 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23412 echo "_ACEOF"
23413 } >conf$$subs.sh ||
23414 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23415 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23416 ac_delim='%!_!# '
23417 for ac_last_try in false false false false false :; do
23418 . ./conf$$subs.sh ||
23419 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23421 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23422 if test $ac_delim_n = $ac_delim_num; then
23423 break
23424 elif $ac_last_try; then
23425 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23426 else
23427 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23429 done
23430 rm -f conf$$subs.sh
23432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23433 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23434 _ACEOF
23435 sed -n '
23437 s/^/S["/; s/!.*/"]=/
23440 s/^[^!]*!//
23441 :repl
23442 t repl
23443 s/'"$ac_delim"'$//
23444 t delim
23447 s/\(.\{148\}\)..*/\1/
23448 t more1
23449 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23452 b repl
23453 :more1
23454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23457 s/.\{148\}//
23458 t nl
23459 :delim
23461 s/\(.\{148\}\)..*/\1/
23462 t more2
23463 s/["\\]/\\&/g; s/^/"/; s/$/"/
23466 :more2
23467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23470 s/.\{148\}//
23471 t delim
23472 ' <conf$$subs.awk | sed '
23473 /^[^""]/{
23475 s/\n//
23477 ' >>$CONFIG_STATUS || ac_write_fail=1
23478 rm -f conf$$subs.awk
23479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23480 _ACAWK
23481 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23482 for (key in S) S_is_set[key] = 1
23483 FS = "\a"
23484 \$ac_cs_awk_pipe_init
23487 line = $ 0
23488 nfields = split(line, field, "@")
23489 substed = 0
23490 len = length(field[1])
23491 for (i = 2; i < nfields; i++) {
23492 key = field[i]
23493 keylen = length(key)
23494 if (S_is_set[key]) {
23495 value = S[key]
23496 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23497 len += length(value) + length(field[++i])
23498 substed = 1
23499 } else
23500 len += 1 + keylen
23502 if (nfields == 3 && !substed) {
23503 key = field[2]
23504 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23505 \$ac_cs_awk_read_file
23506 next
23509 print line
23511 \$ac_cs_awk_pipe_fini
23512 _ACAWK
23513 _ACEOF
23514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23515 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23516 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23517 else
23519 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23520 || as_fn_error "could not setup config files machinery" "$LINENO" 5
23521 _ACEOF
23523 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23524 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23525 # trailing colons and then remove the whole line if VPATH becomes empty
23526 # (actually we leave an empty line to preserve line numbers).
23527 if test "x$srcdir" = x.; then
23528 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23529 s/:*\$(srcdir):*/:/
23530 s/:*\${srcdir}:*/:/
23531 s/:*@srcdir@:*/:/
23532 s/^\([^=]*=[ ]*\):*/\1/
23533 s/:*$//
23534 s/^[^=]*=[ ]*$//
23538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23539 fi # test -n "$CONFIG_FILES"
23541 # Set up the scripts for CONFIG_HEADERS section.
23542 # No need to generate them if there are no CONFIG_HEADERS.
23543 # This happens for instance with `./config.status Makefile'.
23544 if test -n "$CONFIG_HEADERS"; then
23545 cat >"$tmp/defines.awk" <<\_ACAWK ||
23546 BEGIN {
23547 _ACEOF
23549 # Transform confdefs.h into an awk script `defines.awk', embedded as
23550 # here-document in config.status, that substitutes the proper values into
23551 # config.h.in to produce config.h.
23553 # Create a delimiter string that does not exist in confdefs.h, to ease
23554 # handling of long lines.
23555 ac_delim='%!_!# '
23556 for ac_last_try in false false :; do
23557 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23558 if test -z "$ac_t"; then
23559 break
23560 elif $ac_last_try; then
23561 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
23562 else
23563 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23565 done
23567 # For the awk script, D is an array of macro values keyed by name,
23568 # likewise P contains macro parameters if any. Preserve backslash
23569 # newline sequences.
23571 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23572 sed -n '
23573 s/.\{148\}/&'"$ac_delim"'/g
23574 t rset
23575 :rset
23576 s/^[ ]*#[ ]*define[ ][ ]*/ /
23577 t def
23579 :def
23580 s/\\$//
23581 t bsnl
23582 s/["\\]/\\&/g
23583 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23584 D["\1"]=" \3"/p
23585 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23587 :bsnl
23588 s/["\\]/\\&/g
23589 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23590 D["\1"]=" \3\\\\\\n"\\/p
23591 t cont
23592 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23593 t cont
23595 :cont
23597 s/.\{148\}/&'"$ac_delim"'/g
23598 t clear
23599 :clear
23600 s/\\$//
23601 t bsnlc
23602 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23604 :bsnlc
23605 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23606 b cont
23607 ' <confdefs.h | sed '
23608 s/'"$ac_delim"'/"\\\
23609 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23612 for (key in D) D_is_set[key] = 1
23613 FS = "\a"
23615 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23616 line = \$ 0
23617 split(line, arg, " ")
23618 if (arg[1] == "#") {
23619 defundef = arg[2]
23620 mac1 = arg[3]
23621 } else {
23622 defundef = substr(arg[1], 2)
23623 mac1 = arg[2]
23625 split(mac1, mac2, "(") #)
23626 macro = mac2[1]
23627 prefix = substr(line, 1, index(line, defundef) - 1)
23628 if (D_is_set[macro]) {
23629 # Preserve the white space surrounding the "#".
23630 print prefix "define", macro P[macro] D[macro]
23631 next
23632 } else {
23633 # Replace #undef with comments. This is necessary, for example,
23634 # in the case of _POSIX_SOURCE, which is predefined and required
23635 # on some systems where configure will not decide to define it.
23636 if (defundef == "undef") {
23637 print "/*", prefix defundef, macro, "*/"
23638 next
23642 { print }
23643 _ACAWK
23644 _ACEOF
23645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23646 as_fn_error "could not setup config headers machinery" "$LINENO" 5
23647 fi # test -n "$CONFIG_HEADERS"
23650 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23651 shift
23652 for ac_tag
23654 case $ac_tag in
23655 :[FHLC]) ac_mode=$ac_tag; continue;;
23656 esac
23657 case $ac_mode$ac_tag in
23658 :[FHL]*:*);;
23659 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23660 :[FH]-) ac_tag=-:-;;
23661 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23662 esac
23663 ac_save_IFS=$IFS
23664 IFS=:
23665 set x $ac_tag
23666 IFS=$ac_save_IFS
23667 shift
23668 ac_file=$1
23669 shift
23671 case $ac_mode in
23672 :L) ac_source=$1;;
23673 :[FH])
23674 ac_file_inputs=
23675 for ac_f
23677 case $ac_f in
23678 -) ac_f="$tmp/stdin";;
23679 *) # Look for the file first in the build tree, then in the source tree
23680 # (if the path is not absolute). The absolute path cannot be DOS-style,
23681 # because $ac_f cannot contain `:'.
23682 test -f "$ac_f" ||
23683 case $ac_f in
23684 [\\/$]*) false;;
23685 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23686 esac ||
23687 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23688 esac
23689 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23690 as_fn_append ac_file_inputs " '$ac_f'"
23691 done
23693 # Let's still pretend it is `configure' which instantiates (i.e., don't
23694 # use $as_me), people would be surprised to read:
23695 # /* config.h. Generated by config.status. */
23696 configure_input='Generated from '`
23697 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23698 `' by configure.'
23699 if test x"$ac_file" != x-; then
23700 configure_input="$ac_file. $configure_input"
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23702 $as_echo "$as_me: creating $ac_file" >&6;}
23704 # Neutralize special characters interpreted by sed in replacement strings.
23705 case $configure_input in #(
23706 *\&* | *\|* | *\\* )
23707 ac_sed_conf_input=`$as_echo "$configure_input" |
23708 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23709 *) ac_sed_conf_input=$configure_input;;
23710 esac
23712 case $ac_tag in
23713 *:-:* | *:-) cat >"$tmp/stdin" \
23714 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23715 esac
23717 esac
23719 ac_dir=`$as_dirname -- "$ac_file" ||
23720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23721 X"$ac_file" : 'X\(//\)[^/]' \| \
23722 X"$ac_file" : 'X\(//\)$' \| \
23723 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23724 $as_echo X"$ac_file" |
23725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23726 s//\1/
23729 /^X\(\/\/\)[^/].*/{
23730 s//\1/
23733 /^X\(\/\/\)$/{
23734 s//\1/
23737 /^X\(\/\).*/{
23738 s//\1/
23741 s/.*/./; q'`
23742 as_dir="$ac_dir"; as_fn_mkdir_p
23743 ac_builddir=.
23745 case "$ac_dir" in
23746 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23748 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23749 # A ".." for each directory in $ac_dir_suffix.
23750 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23751 case $ac_top_builddir_sub in
23752 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23753 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23754 esac ;;
23755 esac
23756 ac_abs_top_builddir=$ac_pwd
23757 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23758 # for backward compatibility:
23759 ac_top_builddir=$ac_top_build_prefix
23761 case $srcdir in
23762 .) # We are building in place.
23763 ac_srcdir=.
23764 ac_top_srcdir=$ac_top_builddir_sub
23765 ac_abs_top_srcdir=$ac_pwd ;;
23766 [\\/]* | ?:[\\/]* ) # Absolute name.
23767 ac_srcdir=$srcdir$ac_dir_suffix;
23768 ac_top_srcdir=$srcdir
23769 ac_abs_top_srcdir=$srcdir ;;
23770 *) # Relative name.
23771 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23772 ac_top_srcdir=$ac_top_build_prefix$srcdir
23773 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23774 esac
23775 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23778 case $ac_mode in
23781 # CONFIG_FILE
23784 case $INSTALL in
23785 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23786 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23787 esac
23788 ac_MKDIR_P=$MKDIR_P
23789 case $MKDIR_P in
23790 [\\/$]* | ?:[\\/]* ) ;;
23791 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23792 esac
23793 _ACEOF
23795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23796 # If the template does not know about datarootdir, expand it.
23797 # FIXME: This hack should be removed a few years after 2.60.
23798 ac_datarootdir_hack=; ac_datarootdir_seen=
23799 ac_sed_dataroot='
23800 /datarootdir/ {
23804 /@datadir@/p
23805 /@docdir@/p
23806 /@infodir@/p
23807 /@localedir@/p
23808 /@mandir@/p'
23809 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23810 *datarootdir*) ac_datarootdir_seen=yes;;
23811 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23813 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23814 _ACEOF
23815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23816 ac_datarootdir_hack='
23817 s&@datadir@&$datadir&g
23818 s&@docdir@&$docdir&g
23819 s&@infodir@&$infodir&g
23820 s&@localedir@&$localedir&g
23821 s&@mandir@&$mandir&g
23822 s&\\\${datarootdir}&$datarootdir&g' ;;
23823 esac
23824 _ACEOF
23826 # Neutralize VPATH when `$srcdir' = `.'.
23827 # Shell code in configure.ac might set extrasub.
23828 # FIXME: do we really want to maintain this feature?
23829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23830 ac_sed_extra="$ac_vpsub
23831 $extrasub
23832 _ACEOF
23833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23835 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23836 s|@configure_input@|$ac_sed_conf_input|;t t
23837 s&@top_builddir@&$ac_top_builddir_sub&;t t
23838 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23839 s&@srcdir@&$ac_srcdir&;t t
23840 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23841 s&@top_srcdir@&$ac_top_srcdir&;t t
23842 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23843 s&@builddir@&$ac_builddir&;t t
23844 s&@abs_builddir@&$ac_abs_builddir&;t t
23845 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23846 s&@INSTALL@&$ac_INSTALL&;t t
23847 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23848 $ac_datarootdir_hack
23850 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23851 if $ac_cs_awk_getline; then
23852 $AWK -f "$tmp/subs.awk"
23853 else
23854 $AWK -f "$tmp/subs.awk" | $SHELL
23855 fi >$tmp/out \
23856 || as_fn_error "could not create $ac_file" "$LINENO" 5
23858 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23859 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23860 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23862 which seems to be undefined. Please make sure it is defined." >&5
23863 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23864 which seems to be undefined. Please make sure it is defined." >&2;}
23866 rm -f "$tmp/stdin"
23867 case $ac_file in
23868 -) cat "$tmp/out" && rm -f "$tmp/out";;
23869 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23870 esac \
23871 || as_fn_error "could not create $ac_file" "$LINENO" 5
23875 # CONFIG_HEADER
23877 if test x"$ac_file" != x-; then
23879 $as_echo "/* $configure_input */" \
23880 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23881 } >"$tmp/config.h" \
23882 || as_fn_error "could not create $ac_file" "$LINENO" 5
23883 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23885 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23886 else
23887 rm -f "$ac_file"
23888 mv "$tmp/config.h" "$ac_file" \
23889 || as_fn_error "could not create $ac_file" "$LINENO" 5
23891 else
23892 $as_echo "/* $configure_input */" \
23893 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23894 || as_fn_error "could not create -" "$LINENO" 5
23896 # Compute "$ac_file"'s index in $config_headers.
23897 _am_arg="$ac_file"
23898 _am_stamp_count=1
23899 for _am_header in $config_headers :; do
23900 case $_am_header in
23901 $_am_arg | $_am_arg:* )
23902 break ;;
23904 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23905 esac
23906 done
23907 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23908 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23909 X"$_am_arg" : 'X\(//\)[^/]' \| \
23910 X"$_am_arg" : 'X\(//\)$' \| \
23911 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23912 $as_echo X"$_am_arg" |
23913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23914 s//\1/
23917 /^X\(\/\/\)[^/].*/{
23918 s//\1/
23921 /^X\(\/\/\)$/{
23922 s//\1/
23925 /^X\(\/\).*/{
23926 s//\1/
23929 s/.*/./; q'`/stamp-h$_am_stamp_count
23932 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23933 $as_echo "$as_me: executing $ac_file commands" >&6;}
23935 esac
23938 case $ac_file$ac_mode in
23939 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23940 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23941 # are listed without --file. Let's play safe and only enable the eval
23942 # if we detect the quoting.
23943 case $CONFIG_FILES in
23944 *\'*) eval set x "$CONFIG_FILES" ;;
23945 *) set x $CONFIG_FILES ;;
23946 esac
23947 shift
23948 for mf
23950 # Strip MF so we end up with the name of the file.
23951 mf=`echo "$mf" | sed -e 's/:.*$//'`
23952 # Check whether this is an Automake generated Makefile or not.
23953 # We used to match only the files named `Makefile.in', but
23954 # some people rename them; so instead we look at the file content.
23955 # Grep'ing the first line is not enough: some people post-process
23956 # each Makefile.in and add a new line on top of each file to say so.
23957 # Grep'ing the whole file is not good either: AIX grep has a line
23958 # limit of 2048, but all sed's we know have understand at least 4000.
23959 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23960 dirpart=`$as_dirname -- "$mf" ||
23961 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23962 X"$mf" : 'X\(//\)[^/]' \| \
23963 X"$mf" : 'X\(//\)$' \| \
23964 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23965 $as_echo X"$mf" |
23966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23967 s//\1/
23970 /^X\(\/\/\)[^/].*/{
23971 s//\1/
23974 /^X\(\/\/\)$/{
23975 s//\1/
23978 /^X\(\/\).*/{
23979 s//\1/
23982 s/.*/./; q'`
23983 else
23984 continue
23986 # Extract the definition of DEPDIR, am__include, and am__quote
23987 # from the Makefile without running `make'.
23988 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23989 test -z "$DEPDIR" && continue
23990 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23991 test -z "am__include" && continue
23992 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23993 # When using ansi2knr, U may be empty or an underscore; expand it
23994 U=`sed -n 's/^U = //p' < "$mf"`
23995 # Find all dependency output files, they are included files with
23996 # $(DEPDIR) in their names. We invoke sed twice because it is the
23997 # simplest approach to changing $(DEPDIR) to its actual value in the
23998 # expansion.
23999 for file in `sed -n "
24000 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24001 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24002 # Make sure the directory exists.
24003 test -f "$dirpart/$file" && continue
24004 fdir=`$as_dirname -- "$file" ||
24005 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24006 X"$file" : 'X\(//\)[^/]' \| \
24007 X"$file" : 'X\(//\)$' \| \
24008 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24009 $as_echo X"$file" |
24010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24011 s//\1/
24014 /^X\(\/\/\)[^/].*/{
24015 s//\1/
24018 /^X\(\/\/\)$/{
24019 s//\1/
24022 /^X\(\/\).*/{
24023 s//\1/
24026 s/.*/./; q'`
24027 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24028 # echo "creating $dirpart/$file"
24029 echo '# dummy' > "$dirpart/$file"
24030 done
24031 done
24034 "mkdirs":C)
24035 for dir in etc lisp ; do
24036 test -d ${dir} || mkdir ${dir}
24037 done
24039 "epaths":C)
24040 echo creating src/epaths.h
24041 ${MAKE-make} epaths-force
24043 "gdbinit":C)
24044 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24045 echo creating src/.gdbinit
24046 echo source $srcdir/src/.gdbinit > src/.gdbinit
24050 esac
24051 done # for ac_tag
24054 as_fn_exit 0
24055 _ACEOF
24056 ac_clean_files=$ac_clean_files_save
24058 test $ac_write_fail = 0 ||
24059 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24062 # configure is writing to config.log, and then calls config.status.
24063 # config.status does its own redirection, appending to config.log.
24064 # Unfortunately, on DOS this fails, as config.log is still kept open
24065 # by configure, so config.status won't be able to write to it; its
24066 # output is simply discarded. So we exec the FD to /dev/null,
24067 # effectively closing config.log, so it can be properly (re)opened and
24068 # appended to by config.status. When coming back to configure, we
24069 # need to make the FD available again.
24070 if test "$no_create" != yes; then
24071 ac_cs_success=:
24072 ac_config_status_args=
24073 test "$silent" = yes &&
24074 ac_config_status_args="$ac_config_status_args --quiet"
24075 exec 5>/dev/null
24076 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24077 exec 5>>config.log
24078 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24079 # would make configure fail if this is the last instruction.
24080 $ac_cs_success || as_fn_exit $?
24082 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24084 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}