* xselect.c (last_event_timestamp): Remove duplicate decl.
[emacs.git] / autogen / configure
blobabefae0d55fcf867456ef0827076b2312349d5ee
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 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 WINDOW_SUPPORT
607 TOOLTIP_SUPPORT
608 MOUSE_SUPPORT
609 LIB_GCC
610 LD_FIRSTFLAG
611 LD_SWITCH_SYSTEM_TEMACS
612 POST_ALLOC_OBJ
613 PRE_ALLOC_OBJ
614 CYGWIN_OBJ
615 RALLOC_OBJ
616 OLDXMENU_DEPS
617 LIBX_OTHER
618 LIBXMENU
619 OLDXMENU
620 OLDXMENU_TARGET
621 LIBXT_OTHER
622 TOOLKIT_LIBW
623 WIDGET_OBJ
624 XOBJ
625 XMENU_OBJ
626 FONT_OBJ
627 OTHER_FILES
628 GNU_OBJC_CFLAGS
629 ns_appsrc
630 ns_appresdir
631 ns_appbindir
632 ns_appdir
633 S_FILE
634 M_FILE
635 X_TOOLKIT_TYPE
636 C_SWITCH_X_SYSTEM
637 C_SWITCH_X_SITE
638 LD_SWITCH_X_SITE
639 gameuser
640 gamedir
641 bitmapdir
642 archlibdir
643 etcdir
644 x_default_search_path
645 lisppath
646 locallisppath
647 lispdir
648 srcdir
649 canonical
650 configuration
651 version
652 KRB4LIB
653 DESLIB
654 KRB5LIB
655 CRYPTOLIB
656 COM_ERRLIB
657 LIBRESOLV
658 LIBHESIOD
659 TERMCAP_OBJ
660 LIBS_TERMCAP
661 LIBGNU_LTLIBDEPS
662 LIBGNU_LIBDEPS
663 gltests_WITNESS
664 gl_GNULIB_ENABLED_verify_FALSE
665 gl_GNULIB_ENABLED_verify_TRUE
666 gl_GNULIB_ENABLED_strtoull_FALSE
667 gl_GNULIB_ENABLED_strtoull_TRUE
668 gl_GNULIB_ENABLED_stat_FALSE
669 gl_GNULIB_ENABLED_stat_TRUE
670 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
671 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
672 gl_GNULIB_ENABLED_dosname_FALSE
673 gl_GNULIB_ENABLED_dosname_TRUE
674 LTLIBINTL
675 LIBINTL
676 HAVE_UNISTD_H
677 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
678 NEXT_UNISTD_H
679 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
680 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
681 TIME_H_DEFINES_STRUCT_TIMESPEC
682 NEXT_AS_FIRST_DIRECTIVE_TIME_H
683 NEXT_TIME_H
684 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
685 NEXT_SYS_STAT_H
686 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
687 NEXT_STDLIB_H
688 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
689 NEXT_STDIO_H
690 REPLACE_VSPRINTF
691 REPLACE_VSNPRINTF
692 REPLACE_VPRINTF
693 REPLACE_VFPRINTF
694 REPLACE_VDPRINTF
695 REPLACE_VASPRINTF
696 REPLACE_TMPFILE
697 REPLACE_STDIO_WRITE_FUNCS
698 REPLACE_STDIO_READ_FUNCS
699 REPLACE_SPRINTF
700 REPLACE_SNPRINTF
701 REPLACE_RENAMEAT
702 REPLACE_RENAME
703 REPLACE_REMOVE
704 REPLACE_PRINTF
705 REPLACE_POPEN
706 REPLACE_PERROR
707 REPLACE_OBSTACK_PRINTF
708 REPLACE_GETLINE
709 REPLACE_GETDELIM
710 REPLACE_FTELLO
711 REPLACE_FTELL
712 REPLACE_FSEEKO
713 REPLACE_FSEEK
714 REPLACE_FREOPEN
715 REPLACE_FPURGE
716 REPLACE_FPRINTF
717 REPLACE_FOPEN
718 REPLACE_FFLUSH
719 REPLACE_FCLOSE
720 REPLACE_DPRINTF
721 HAVE_VDPRINTF
722 HAVE_VASPRINTF
723 HAVE_RENAMEAT
724 HAVE_FTELLO
725 HAVE_FSEEKO
726 HAVE_DPRINTF
727 HAVE_DECL_VSNPRINTF
728 HAVE_DECL_SNPRINTF
729 HAVE_DECL_OBSTACK_PRINTF
730 HAVE_DECL_GETLINE
731 HAVE_DECL_GETDELIM
732 HAVE_DECL_FTELLO
733 HAVE_DECL_FSEEKO
734 HAVE_DECL_FPURGE
735 GNULIB_VSPRINTF_POSIX
736 GNULIB_VSNPRINTF
737 GNULIB_VPRINTF_POSIX
738 GNULIB_VPRINTF
739 GNULIB_VFPRINTF_POSIX
740 GNULIB_VFPRINTF
741 GNULIB_VDPRINTF
742 GNULIB_VSCANF
743 GNULIB_VFSCANF
744 GNULIB_VASPRINTF
745 GNULIB_TMPFILE
746 GNULIB_STDIO_H_SIGPIPE
747 GNULIB_STDIO_H_NONBLOCKING
748 GNULIB_SPRINTF_POSIX
749 GNULIB_SNPRINTF
750 GNULIB_SCANF
751 GNULIB_RENAMEAT
752 GNULIB_RENAME
753 GNULIB_REMOVE
754 GNULIB_PUTS
755 GNULIB_PUTCHAR
756 GNULIB_PUTC
757 GNULIB_PRINTF_POSIX
758 GNULIB_PRINTF
759 GNULIB_POPEN
760 GNULIB_PERROR
761 GNULIB_OBSTACK_PRINTF_POSIX
762 GNULIB_OBSTACK_PRINTF
763 GNULIB_GETS
764 GNULIB_GETLINE
765 GNULIB_GETDELIM
766 GNULIB_GETCHAR
767 GNULIB_GETC
768 GNULIB_FWRITE
769 GNULIB_FTELLO
770 GNULIB_FTELL
771 GNULIB_FSEEKO
772 GNULIB_FSEEK
773 GNULIB_FSCANF
774 GNULIB_FREOPEN
775 GNULIB_FREAD
776 GNULIB_FPUTS
777 GNULIB_FPUTC
778 GNULIB_FPURGE
779 GNULIB_FPRINTF_POSIX
780 GNULIB_FPRINTF
781 GNULIB_FOPEN
782 GNULIB_FGETS
783 GNULIB_FGETC
784 GNULIB_FFLUSH
785 GNULIB_FCLOSE
786 GNULIB_DPRINTF
787 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
788 NEXT_STDDEF_H
789 GL_GENERATE_STDDEF_H_FALSE
790 GL_GENERATE_STDDEF_H_TRUE
791 STDDEF_H
792 HAVE_WCHAR_T
793 REPLACE_NULL
794 HAVE__BOOL
795 GL_GENERATE_STDBOOL_H_FALSE
796 GL_GENERATE_STDBOOL_H_TRUE
797 STDBOOL_H
798 GL_GENERATE_STDARG_H_FALSE
799 GL_GENERATE_STDARG_H_TRUE
800 STDARG_H
801 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
802 NEXT_STDARG_H
803 REPLACE_TIMEGM
804 REPLACE_NANOSLEEP
805 REPLACE_MKTIME
806 REPLACE_LOCALTIME_R
807 HAVE_TIMEGM
808 HAVE_STRPTIME
809 HAVE_NANOSLEEP
810 HAVE_DECL_LOCALTIME_R
811 GNULIB_TIME_R
812 GNULIB_TIMEGM
813 GNULIB_STRPTIME
814 GNULIB_NANOSLEEP
815 GNULIB_MKTIME
816 REPLACE_UTIMENSAT
817 REPLACE_STAT
818 REPLACE_MKNOD
819 REPLACE_MKFIFO
820 REPLACE_MKDIR
821 REPLACE_LSTAT
822 REPLACE_FUTIMENS
823 REPLACE_FSTATAT
824 REPLACE_FSTAT
825 HAVE_UTIMENSAT
826 HAVE_MKNODAT
827 HAVE_MKNOD
828 HAVE_MKFIFOAT
829 HAVE_MKFIFO
830 HAVE_MKDIRAT
831 HAVE_LSTAT
832 HAVE_LCHMOD
833 HAVE_FUTIMENS
834 HAVE_FSTATAT
835 HAVE_FCHMODAT
836 GNULIB_UTIMENSAT
837 GNULIB_STAT
838 GNULIB_MKNODAT
839 GNULIB_MKNOD
840 GNULIB_MKFIFOAT
841 GNULIB_MKFIFO
842 GNULIB_MKDIRAT
843 GNULIB_LSTAT
844 GNULIB_LCHMOD
845 GNULIB_FUTIMENS
846 GNULIB_FSTATAT
847 GNULIB_FCHMODAT
848 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
849 NEXT_INTTYPES_H
850 UINT64_MAX_EQ_ULONG_MAX
851 UINT32_MAX_LT_UINTMAX_MAX
852 PRIPTR_PREFIX
853 PRI_MACROS_BROKEN
854 INT64_MAX_EQ_LONG_MAX
855 INT32_MAX_LT_INTMAX_MAX
856 HAVE_DECL_STRTOUMAX
857 HAVE_DECL_STRTOIMAX
858 HAVE_DECL_IMAXDIV
859 HAVE_DECL_IMAXABS
860 GNULIB_STRTOUMAX
861 GNULIB_STRTOIMAX
862 GNULIB_IMAXDIV
863 GNULIB_IMAXABS
864 GL_GENERATE_STDINT_H_FALSE
865 GL_GENERATE_STDINT_H_TRUE
866 STDINT_H
867 WINT_T_SUFFIX
868 WCHAR_T_SUFFIX
869 SIG_ATOMIC_T_SUFFIX
870 SIZE_T_SUFFIX
871 PTRDIFF_T_SUFFIX
872 HAVE_SIGNED_WINT_T
873 HAVE_SIGNED_WCHAR_T
874 HAVE_SIGNED_SIG_ATOMIC_T
875 BITSIZEOF_WINT_T
876 BITSIZEOF_WCHAR_T
877 BITSIZEOF_SIG_ATOMIC_T
878 BITSIZEOF_SIZE_T
879 BITSIZEOF_PTRDIFF_T
880 APPLE_UNIVERSAL_BUILD
881 HAVE_SYS_BITYPES_H
882 HAVE_SYS_INTTYPES_H
883 HAVE_STDINT_H
884 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
885 NEXT_STDINT_H
886 HAVE_SYS_TYPES_H
887 HAVE_INTTYPES_H
888 HAVE_WCHAR_H
889 HAVE_UNSIGNED_LONG_LONG_INT
890 HAVE_LONG_LONG_INT
891 GETOPT_H
892 HAVE_GETOPT_H
893 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
894 NEXT_GETOPT_H
895 PRAGMA_COLUMNS
896 PRAGMA_SYSTEM_HEADER
897 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
898 INCLUDE_NEXT
899 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
900 UNISTD_H_HAVE_WINSOCK2_H
901 REPLACE_WRITE
902 REPLACE_USLEEP
903 REPLACE_UNLINKAT
904 REPLACE_UNLINK
905 REPLACE_TTYNAME_R
906 REPLACE_SYMLINK
907 REPLACE_SLEEP
908 REPLACE_RMDIR
909 REPLACE_READLINK
910 REPLACE_READ
911 REPLACE_PWRITE
912 REPLACE_PREAD
913 REPLACE_LSEEK
914 REPLACE_LINKAT
915 REPLACE_LINK
916 REPLACE_LCHOWN
917 REPLACE_GETPAGESIZE
918 REPLACE_GETGROUPS
919 REPLACE_GETLOGIN_R
920 REPLACE_GETDOMAINNAME
921 REPLACE_GETCWD
922 REPLACE_FCHOWNAT
923 REPLACE_DUP2
924 REPLACE_DUP
925 REPLACE_CLOSE
926 REPLACE_CHOWN
927 HAVE_SYS_PARAM_H
928 HAVE_OS_H
929 HAVE_DECL_TTYNAME_R
930 HAVE_DECL_GETUSERSHELL
931 HAVE_DECL_GETPAGESIZE
932 HAVE_DECL_GETLOGIN_R
933 HAVE_DECL_GETDOMAINNAME
934 HAVE_DECL_FCHDIR
935 HAVE_DECL_ENVIRON
936 HAVE_USLEEP
937 HAVE_UNLINKAT
938 HAVE_SYMLINKAT
939 HAVE_SYMLINK
940 HAVE_SLEEP
941 HAVE_READLINKAT
942 HAVE_READLINK
943 HAVE_PWRITE
944 HAVE_PREAD
945 HAVE_PIPE2
946 HAVE_PIPE
947 HAVE_LINKAT
948 HAVE_LINK
949 HAVE_LCHOWN
950 HAVE_GETPAGESIZE
951 HAVE_GETLOGIN
952 HAVE_GETHOSTNAME
953 HAVE_GETGROUPS
954 HAVE_GETDTABLESIZE
955 HAVE_FTRUNCATE
956 HAVE_FSYNC
957 HAVE_FCHOWNAT
958 HAVE_FCHDIR
959 HAVE_FACCESSAT
960 HAVE_EUIDACCESS
961 HAVE_DUP3
962 HAVE_DUP2
963 HAVE_CHOWN
964 GNULIB_WRITE
965 GNULIB_USLEEP
966 GNULIB_UNLINKAT
967 GNULIB_UNLINK
968 GNULIB_UNISTD_H_SIGPIPE
969 GNULIB_UNISTD_H_NONBLOCKING
970 GNULIB_UNISTD_H_GETOPT
971 GNULIB_TTYNAME_R
972 GNULIB_SYMLINKAT
973 GNULIB_SYMLINK
974 GNULIB_SLEEP
975 GNULIB_RMDIR
976 GNULIB_READLINKAT
977 GNULIB_READLINK
978 GNULIB_READ
979 GNULIB_PWRITE
980 GNULIB_PREAD
981 GNULIB_PIPE2
982 GNULIB_PIPE
983 GNULIB_LSEEK
984 GNULIB_LINKAT
985 GNULIB_LINK
986 GNULIB_LCHOWN
987 GNULIB_GETUSERSHELL
988 GNULIB_GETPAGESIZE
989 GNULIB_GETLOGIN_R
990 GNULIB_GETLOGIN
991 GNULIB_GETHOSTNAME
992 GNULIB_GETGROUPS
993 GNULIB_GETDTABLESIZE
994 GNULIB_GETDOMAINNAME
995 GNULIB_GETCWD
996 GNULIB_FTRUNCATE
997 GNULIB_FSYNC
998 GNULIB_FCHOWNAT
999 GNULIB_FCHDIR
1000 GNULIB_FACCESSAT
1001 GNULIB_EUIDACCESS
1002 GNULIB_ENVIRON
1003 GNULIB_DUP3
1004 GNULIB_DUP2
1005 GNULIB_CLOSE
1006 GNULIB_CHOWN
1007 GETLOADAVG_LIBS
1008 REPLACE_WCTOMB
1009 REPLACE_UNSETENV
1010 REPLACE_STRTOD
1011 REPLACE_SETENV
1012 REPLACE_REALPATH
1013 REPLACE_REALLOC
1014 REPLACE_PUTENV
1015 REPLACE_MKSTEMP
1016 REPLACE_MBTOWC
1017 REPLACE_MALLOC
1018 REPLACE_CANONICALIZE_FILE_NAME
1019 REPLACE_CALLOC
1020 HAVE_DECL_UNSETENV
1021 HAVE_UNLOCKPT
1022 HAVE_SYS_LOADAVG_H
1023 HAVE_STRUCT_RANDOM_DATA
1024 HAVE_STRTOULL
1025 HAVE_STRTOLL
1026 HAVE_STRTOD
1027 HAVE_DECL_SETENV
1028 HAVE_SETENV
1029 HAVE_RPMATCH
1030 HAVE_REALPATH
1031 HAVE_RANDOM_R
1032 HAVE_RANDOM_H
1033 HAVE_PTSNAME
1034 HAVE_MKSTEMPS
1035 HAVE_MKSTEMP
1036 HAVE_MKOSTEMPS
1037 HAVE_MKOSTEMP
1038 HAVE_MKDTEMP
1039 HAVE_GRANTPT
1040 HAVE_GETSUBOPT
1041 HAVE_DECL_GETLOADAVG
1042 HAVE_CANONICALIZE_FILE_NAME
1043 HAVE_ATOLL
1044 HAVE__EXIT
1045 GNULIB_WCTOMB
1046 GNULIB_UNSETENV
1047 GNULIB_UNLOCKPT
1048 GNULIB_SYSTEM_POSIX
1049 GNULIB_STRTOULL
1050 GNULIB_STRTOLL
1051 GNULIB_STRTOD
1052 GNULIB_SETENV
1053 GNULIB_RPMATCH
1054 GNULIB_REALPATH
1055 GNULIB_REALLOC_POSIX
1056 GNULIB_RANDOM_R
1057 GNULIB_PUTENV
1058 GNULIB_PTSNAME
1059 GNULIB_MKSTEMPS
1060 GNULIB_MKSTEMP
1061 GNULIB_MKOSTEMPS
1062 GNULIB_MKOSTEMP
1063 GNULIB_MKDTEMP
1064 GNULIB_MBTOWC
1065 GNULIB_MALLOC_POSIX
1066 GNULIB_GRANTPT
1067 GNULIB_GETSUBOPT
1068 GNULIB_GETLOADAVG
1069 GNULIB_CANONICALIZE_FILE_NAME
1070 GNULIB_CALLOC_POSIX
1071 GNULIB_ATOLL
1072 GNULIB__EXIT
1073 GL_COND_LIBTOOL_FALSE
1074 GL_COND_LIBTOOL_TRUE
1075 BLESSMAIL_TARGET
1076 LIBS_MAIL
1077 liblockfile
1078 ALLOCA
1079 LIBXML2_LIBS
1080 LIBXML2_CFLAGS
1081 LIBXSM
1082 LIBGPM
1083 LIBGIF
1084 LIBTIFF
1085 LIBPNG
1086 LIBJPEG
1087 LIBXPM
1088 M17N_FLT_LIBS
1089 M17N_FLT_CFLAGS
1090 LIBOTF_LIBS
1091 LIBOTF_CFLAGS
1092 FREETYPE_LIBS
1093 FREETYPE_CFLAGS
1094 XFT_LIBS
1095 XFT_CFLAGS
1096 FONTCONFIG_LIBS
1097 FONTCONFIG_CFLAGS
1098 LIBXMU
1099 LIBXTR6
1100 LIBGNUTLS_LIBS
1101 LIBGNUTLS_CFLAGS
1102 LIBSELINUX_LIBS
1103 GCONF_LIBS
1104 GCONF_CFLAGS
1105 DBUS_OBJ
1106 DBUS_LIBS
1107 DBUS_CFLAGS
1108 GTK_OBJ
1109 GTK_LIBS
1110 GTK_CFLAGS
1111 IMAGEMAGICK_LIBS
1112 IMAGEMAGICK_CFLAGS
1113 RSVG_LIBS
1114 RSVG_CFLAGS
1115 VMLIMIT_OBJ
1116 GMALLOC_OBJ
1117 HAVE_XSERVER
1118 LIB_STANDARD
1119 NS_SUPPORT
1120 NS_OBJC_OBJ
1121 NS_OBJ
1122 TEMACS_LDFLAGS2
1123 LD_SWITCH_X_SITE_AUX_RPATH
1124 LD_SWITCH_X_SITE_AUX
1125 XMKMF
1126 DEPFLAGS
1127 MKDEPDIR
1128 CFLAGS_SOUND
1129 ALSA_LIBS
1130 ALSA_CFLAGS
1131 PKG_CONFIG
1132 LIBSOUND
1133 START_FILES
1134 LIB_MATH
1135 CRT_DIR
1136 LIBS_SYSTEM
1137 C_SWITCH_SYSTEM
1138 UNEXEC_OBJ
1139 C_SWITCH_MACHINE
1140 LD_SWITCH_SYSTEM
1141 CANNOT_DUMP
1142 HAVE_MAKEINFO
1143 GZIP_PROG
1144 INSTALL_INFO
1145 C_WARNINGS_SWITCH
1146 EGREP
1147 GREP
1149 RANLIB
1150 am__fastdepCC_FALSE
1151 am__fastdepCC_TRUE
1152 CCDEPMODE
1153 AMDEPBACKSLASH
1154 AMDEP_FALSE
1155 AMDEP_TRUE
1156 am__quote
1157 am__include
1158 DEPDIR
1159 OBJEXT
1160 EXEEXT
1161 ac_ct_CC
1162 CPPFLAGS
1163 LDFLAGS
1164 CFLAGS
1166 host_os
1167 host_vendor
1168 host_cpu
1169 host
1170 build_os
1171 build_vendor
1172 build_cpu
1173 build
1174 PROFILING_CFLAGS
1175 MAINT
1176 GZIP_INFO
1177 am__untar
1178 am__tar
1179 AMTAR
1180 am__leading_dot
1181 SET_MAKE
1183 mkdir_p
1184 MKDIR_P
1185 INSTALL_STRIP_PROGRAM
1186 STRIP
1187 install_sh
1188 MAKEINFO
1189 AUTOHEADER
1190 AUTOMAKE
1191 AUTOCONF
1192 ACLOCAL
1193 VERSION
1194 PACKAGE
1195 CYGPATH_W
1196 am__isrc
1197 INSTALL_DATA
1198 INSTALL_SCRIPT
1199 INSTALL_PROGRAM
1200 target_alias
1201 host_alias
1202 build_alias
1203 LIBS
1204 ECHO_T
1205 ECHO_N
1206 ECHO_C
1207 DEFS
1208 mandir
1209 localedir
1210 libdir
1211 psdir
1212 pdfdir
1213 dvidir
1214 htmldir
1215 infodir
1216 docdir
1217 oldincludedir
1218 includedir
1219 localstatedir
1220 sharedstatedir
1221 sysconfdir
1222 datadir
1223 datarootdir
1224 libexecdir
1225 sbindir
1226 bindir
1227 program_transform_name
1228 prefix
1229 exec_prefix
1230 PACKAGE_URL
1231 PACKAGE_BUGREPORT
1232 PACKAGE_STRING
1233 PACKAGE_VERSION
1234 PACKAGE_TARNAME
1235 PACKAGE_NAME
1236 PATH_SEPARATOR
1237 SHELL'
1238 ac_subst_files='deps_frag
1239 ns_frag'
1240 ac_user_opts='
1241 enable_option_checking
1242 with_pop
1243 with_kerberos
1244 with_kerberos5
1245 with_hesiod
1246 with_mmdf
1247 with_mail_unlink
1248 with_mailhost
1249 with_sound
1250 with_sync_input
1251 with_x_toolkit
1252 with_xpm
1253 with_jpeg
1254 with_tiff
1255 with_gif
1256 with_png
1257 with_rsvg
1258 with_xml2
1259 with_imagemagick
1260 with_xft
1261 with_libotf
1262 with_m17n_flt
1263 with_toolkit_scroll_bars
1264 with_xaw3d
1265 with_xim
1266 with_ns
1267 with_gpm
1268 with_dbus
1269 with_gconf
1270 with_selinux
1271 with_gnutls
1272 with_makeinfo
1273 with_compress_info
1274 with_pkg_config_prog
1275 with_crt_dir
1276 with_gameuser
1277 with_gnustep_conf
1278 enable_ns_self_contained
1279 enable_asserts
1280 enable_maintainer_mode
1281 enable_locallisppath
1282 enable_checking
1283 enable_use_lisp_union_type
1284 enable_profiling
1285 enable_autodepend
1286 enable_dependency_tracking
1287 enable_largefile
1288 with_x
1290 ac_precious_vars='build_alias
1291 host_alias
1292 target_alias
1294 CFLAGS
1295 LDFLAGS
1296 LIBS
1297 CPPFLAGS
1299 XMKMF'
1302 # Initialize some variables set by options.
1303 ac_init_help=
1304 ac_init_version=false
1305 ac_unrecognized_opts=
1306 ac_unrecognized_sep=
1307 # The variables have the same names as the options, with
1308 # dashes changed to underlines.
1309 cache_file=/dev/null
1310 exec_prefix=NONE
1311 no_create=
1312 no_recursion=
1313 prefix=NONE
1314 program_prefix=NONE
1315 program_suffix=NONE
1316 program_transform_name=s,x,x,
1317 silent=
1318 site=
1319 srcdir=
1320 verbose=
1321 x_includes=NONE
1322 x_libraries=NONE
1324 # Installation directory options.
1325 # These are left unexpanded so users can "make install exec_prefix=/foo"
1326 # and all the variables that are supposed to be based on exec_prefix
1327 # by default will actually change.
1328 # Use braces instead of parens because sh, perl, etc. also accept them.
1329 # (The list follows the same order as the GNU Coding Standards.)
1330 bindir='${exec_prefix}/bin'
1331 sbindir='${exec_prefix}/sbin'
1332 libexecdir='${exec_prefix}/libexec'
1333 datarootdir='${prefix}/share'
1334 datadir='${datarootdir}'
1335 sysconfdir='${prefix}/etc'
1336 sharedstatedir='${prefix}/com'
1337 localstatedir='${prefix}/var'
1338 includedir='${prefix}/include'
1339 oldincludedir='/usr/include'
1340 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1341 infodir='${datarootdir}/info'
1342 htmldir='${docdir}'
1343 dvidir='${docdir}'
1344 pdfdir='${docdir}'
1345 psdir='${docdir}'
1346 libdir='${exec_prefix}/lib'
1347 localedir='${datarootdir}/locale'
1348 mandir='${datarootdir}/man'
1350 ac_prev=
1351 ac_dashdash=
1352 for ac_option
1354 # If the previous option needs an argument, assign it.
1355 if test -n "$ac_prev"; then
1356 eval $ac_prev=\$ac_option
1357 ac_prev=
1358 continue
1361 case $ac_option in
1362 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1363 *) ac_optarg=yes ;;
1364 esac
1366 # Accept the important Cygnus configure options, so we can diagnose typos.
1368 case $ac_dashdash$ac_option in
1370 ac_dashdash=yes ;;
1372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1373 ac_prev=bindir ;;
1374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1375 bindir=$ac_optarg ;;
1377 -build | --build | --buil | --bui | --bu)
1378 ac_prev=build_alias ;;
1379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1380 build_alias=$ac_optarg ;;
1382 -cache-file | --cache-file | --cache-fil | --cache-fi \
1383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1384 ac_prev=cache_file ;;
1385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1387 cache_file=$ac_optarg ;;
1389 --config-cache | -C)
1390 cache_file=config.cache ;;
1392 -datadir | --datadir | --datadi | --datad)
1393 ac_prev=datadir ;;
1394 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1395 datadir=$ac_optarg ;;
1397 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1398 | --dataroo | --dataro | --datar)
1399 ac_prev=datarootdir ;;
1400 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1401 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1402 datarootdir=$ac_optarg ;;
1404 -disable-* | --disable-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error "invalid feature name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1413 "enable_$ac_useropt"
1414 "*) ;;
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1417 esac
1418 eval enable_$ac_useropt=no ;;
1420 -docdir | --docdir | --docdi | --doc | --do)
1421 ac_prev=docdir ;;
1422 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1423 docdir=$ac_optarg ;;
1425 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1426 ac_prev=dvidir ;;
1427 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1428 dvidir=$ac_optarg ;;
1430 -enable-* | --enable-*)
1431 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1432 # Reject names that are not valid shell variable names.
1433 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1434 as_fn_error "invalid feature name: $ac_useropt"
1435 ac_useropt_orig=$ac_useropt
1436 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1437 case $ac_user_opts in
1439 "enable_$ac_useropt"
1440 "*) ;;
1441 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1442 ac_unrecognized_sep=', ';;
1443 esac
1444 eval enable_$ac_useropt=\$ac_optarg ;;
1446 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1447 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1448 | --exec | --exe | --ex)
1449 ac_prev=exec_prefix ;;
1450 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1451 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1452 | --exec=* | --exe=* | --ex=*)
1453 exec_prefix=$ac_optarg ;;
1455 -gas | --gas | --ga | --g)
1456 # Obsolete; use --with-gas.
1457 with_gas=yes ;;
1459 -help | --help | --hel | --he | -h)
1460 ac_init_help=long ;;
1461 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1462 ac_init_help=recursive ;;
1463 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1464 ac_init_help=short ;;
1466 -host | --host | --hos | --ho)
1467 ac_prev=host_alias ;;
1468 -host=* | --host=* | --hos=* | --ho=*)
1469 host_alias=$ac_optarg ;;
1471 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1472 ac_prev=htmldir ;;
1473 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1474 | --ht=*)
1475 htmldir=$ac_optarg ;;
1477 -includedir | --includedir | --includedi | --included | --include \
1478 | --includ | --inclu | --incl | --inc)
1479 ac_prev=includedir ;;
1480 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1481 | --includ=* | --inclu=* | --incl=* | --inc=*)
1482 includedir=$ac_optarg ;;
1484 -infodir | --infodir | --infodi | --infod | --info | --inf)
1485 ac_prev=infodir ;;
1486 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1487 infodir=$ac_optarg ;;
1489 -libdir | --libdir | --libdi | --libd)
1490 ac_prev=libdir ;;
1491 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1492 libdir=$ac_optarg ;;
1494 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1495 | --libexe | --libex | --libe)
1496 ac_prev=libexecdir ;;
1497 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1498 | --libexe=* | --libex=* | --libe=*)
1499 libexecdir=$ac_optarg ;;
1501 -localedir | --localedir | --localedi | --localed | --locale)
1502 ac_prev=localedir ;;
1503 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1504 localedir=$ac_optarg ;;
1506 -localstatedir | --localstatedir | --localstatedi | --localstated \
1507 | --localstate | --localstat | --localsta | --localst | --locals)
1508 ac_prev=localstatedir ;;
1509 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1510 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1511 localstatedir=$ac_optarg ;;
1513 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1514 ac_prev=mandir ;;
1515 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1516 mandir=$ac_optarg ;;
1518 -nfp | --nfp | --nf)
1519 # Obsolete; use --without-fp.
1520 with_fp=no ;;
1522 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1523 | --no-cr | --no-c | -n)
1524 no_create=yes ;;
1526 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1527 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1528 no_recursion=yes ;;
1530 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1531 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1532 | --oldin | --oldi | --old | --ol | --o)
1533 ac_prev=oldincludedir ;;
1534 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1535 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1536 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1537 oldincludedir=$ac_optarg ;;
1539 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1540 ac_prev=prefix ;;
1541 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1542 prefix=$ac_optarg ;;
1544 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1545 | --program-pre | --program-pr | --program-p)
1546 ac_prev=program_prefix ;;
1547 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1548 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1549 program_prefix=$ac_optarg ;;
1551 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1552 | --program-suf | --program-su | --program-s)
1553 ac_prev=program_suffix ;;
1554 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1555 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1556 program_suffix=$ac_optarg ;;
1558 -program-transform-name | --program-transform-name \
1559 | --program-transform-nam | --program-transform-na \
1560 | --program-transform-n | --program-transform- \
1561 | --program-transform | --program-transfor \
1562 | --program-transfo | --program-transf \
1563 | --program-trans | --program-tran \
1564 | --progr-tra | --program-tr | --program-t)
1565 ac_prev=program_transform_name ;;
1566 -program-transform-name=* | --program-transform-name=* \
1567 | --program-transform-nam=* | --program-transform-na=* \
1568 | --program-transform-n=* | --program-transform-=* \
1569 | --program-transform=* | --program-transfor=* \
1570 | --program-transfo=* | --program-transf=* \
1571 | --program-trans=* | --program-tran=* \
1572 | --progr-tra=* | --program-tr=* | --program-t=*)
1573 program_transform_name=$ac_optarg ;;
1575 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1576 ac_prev=pdfdir ;;
1577 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1578 pdfdir=$ac_optarg ;;
1580 -psdir | --psdir | --psdi | --psd | --ps)
1581 ac_prev=psdir ;;
1582 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1583 psdir=$ac_optarg ;;
1585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1586 | -silent | --silent | --silen | --sile | --sil)
1587 silent=yes ;;
1589 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1590 ac_prev=sbindir ;;
1591 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1592 | --sbi=* | --sb=*)
1593 sbindir=$ac_optarg ;;
1595 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1596 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1597 | --sharedst | --shareds | --shared | --share | --shar \
1598 | --sha | --sh)
1599 ac_prev=sharedstatedir ;;
1600 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1601 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1602 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1603 | --sha=* | --sh=*)
1604 sharedstatedir=$ac_optarg ;;
1606 -site | --site | --sit)
1607 ac_prev=site ;;
1608 -site=* | --site=* | --sit=*)
1609 site=$ac_optarg ;;
1611 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1612 ac_prev=srcdir ;;
1613 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1614 srcdir=$ac_optarg ;;
1616 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1617 | --syscon | --sysco | --sysc | --sys | --sy)
1618 ac_prev=sysconfdir ;;
1619 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1620 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1621 sysconfdir=$ac_optarg ;;
1623 -target | --target | --targe | --targ | --tar | --ta | --t)
1624 ac_prev=target_alias ;;
1625 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1626 target_alias=$ac_optarg ;;
1628 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1629 verbose=yes ;;
1631 -version | --version | --versio | --versi | --vers | -V)
1632 ac_init_version=: ;;
1634 -with-* | --with-*)
1635 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1636 # Reject names that are not valid shell variable names.
1637 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1638 as_fn_error "invalid package name: $ac_useropt"
1639 ac_useropt_orig=$ac_useropt
1640 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1641 case $ac_user_opts in
1643 "with_$ac_useropt"
1644 "*) ;;
1645 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1646 ac_unrecognized_sep=', ';;
1647 esac
1648 eval with_$ac_useropt=\$ac_optarg ;;
1650 -without-* | --without-*)
1651 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1652 # Reject names that are not valid shell variable names.
1653 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1654 as_fn_error "invalid package name: $ac_useropt"
1655 ac_useropt_orig=$ac_useropt
1656 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1657 case $ac_user_opts in
1659 "with_$ac_useropt"
1660 "*) ;;
1661 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1662 ac_unrecognized_sep=', ';;
1663 esac
1664 eval with_$ac_useropt=no ;;
1666 --x)
1667 # Obsolete; use --with-x.
1668 with_x=yes ;;
1670 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1671 | --x-incl | --x-inc | --x-in | --x-i)
1672 ac_prev=x_includes ;;
1673 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1674 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1675 x_includes=$ac_optarg ;;
1677 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1678 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1679 ac_prev=x_libraries ;;
1680 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1681 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1682 x_libraries=$ac_optarg ;;
1684 -*) as_fn_error "unrecognized option: \`$ac_option'
1685 Try \`$0 --help' for more information."
1688 *=*)
1689 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1690 # Reject names that are not valid shell variable names.
1691 case $ac_envvar in #(
1692 '' | [0-9]* | *[!_$as_cr_alnum]* )
1693 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1694 esac
1695 eval $ac_envvar=\$ac_optarg
1696 export $ac_envvar ;;
1699 # FIXME: should be removed in autoconf 3.0.
1700 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1701 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1702 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1703 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1706 esac
1707 done
1709 if test -n "$ac_prev"; then
1710 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1711 as_fn_error "missing argument to $ac_option"
1714 if test -n "$ac_unrecognized_opts"; then
1715 case $enable_option_checking in
1716 no) ;;
1717 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1718 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1719 esac
1722 # Check all directory arguments for consistency.
1723 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1724 datadir sysconfdir sharedstatedir localstatedir includedir \
1725 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1726 libdir localedir mandir
1728 eval ac_val=\$$ac_var
1729 # Remove trailing slashes.
1730 case $ac_val in
1731 */ )
1732 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1733 eval $ac_var=\$ac_val;;
1734 esac
1735 # Be sure to have absolute directory names.
1736 case $ac_val in
1737 [\\/$]* | ?:[\\/]* ) continue;;
1738 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1739 esac
1740 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1741 done
1743 # There might be people who depend on the old broken behavior: `$host'
1744 # used to hold the argument of --host etc.
1745 # FIXME: To remove some day.
1746 build=$build_alias
1747 host=$host_alias
1748 target=$target_alias
1750 # FIXME: To remove some day.
1751 if test "x$host_alias" != x; then
1752 if test "x$build_alias" = x; then
1753 cross_compiling=maybe
1754 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1755 If a cross compiler is detected then cross compile mode will be used." >&2
1756 elif test "x$build_alias" != "x$host_alias"; then
1757 cross_compiling=yes
1761 ac_tool_prefix=
1762 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1764 test "$silent" = yes && exec 6>/dev/null
1767 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1768 ac_ls_di=`ls -di .` &&
1769 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1770 as_fn_error "working directory cannot be determined"
1771 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1772 as_fn_error "pwd does not report name of working directory"
1775 # Find the source files, if location was not specified.
1776 if test -z "$srcdir"; then
1777 ac_srcdir_defaulted=yes
1778 # Try the directory containing this script, then the parent directory.
1779 ac_confdir=`$as_dirname -- "$as_myself" ||
1780 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1781 X"$as_myself" : 'X\(//\)[^/]' \| \
1782 X"$as_myself" : 'X\(//\)$' \| \
1783 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1784 $as_echo X"$as_myself" |
1785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1786 s//\1/
1789 /^X\(\/\/\)[^/].*/{
1790 s//\1/
1793 /^X\(\/\/\)$/{
1794 s//\1/
1797 /^X\(\/\).*/{
1798 s//\1/
1801 s/.*/./; q'`
1802 srcdir=$ac_confdir
1803 if test ! -r "$srcdir/$ac_unique_file"; then
1804 srcdir=..
1806 else
1807 ac_srcdir_defaulted=no
1809 if test ! -r "$srcdir/$ac_unique_file"; then
1810 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1811 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1813 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1814 ac_abs_confdir=`(
1815 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1816 pwd)`
1817 # When building in place, set srcdir=.
1818 if test "$ac_abs_confdir" = "$ac_pwd"; then
1819 srcdir=.
1821 # Remove unnecessary trailing slashes from srcdir.
1822 # Double slashes in file names in object file debugging info
1823 # mess up M-x gdb in Emacs.
1824 case $srcdir in
1825 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1826 esac
1827 for ac_var in $ac_precious_vars; do
1828 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1829 eval ac_env_${ac_var}_value=\$${ac_var}
1830 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1831 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1832 done
1835 # Report the --help message.
1837 if test "$ac_init_help" = "long"; then
1838 # Omit some internal or obsolete options to make the list less imposing.
1839 # This message is too long to be a string in the A/UX 3.1 sh.
1840 cat <<_ACEOF
1841 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1843 Usage: $0 [OPTION]... [VAR=VALUE]...
1845 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1846 VAR=VALUE. See below for descriptions of some of the useful variables.
1848 Defaults for the options are specified in brackets.
1850 Configuration:
1851 -h, --help display this help and exit
1852 --help=short display options specific to this package
1853 --help=recursive display the short help of all the included packages
1854 -V, --version display version information and exit
1855 -q, --quiet, --silent do not print \`checking...' messages
1856 --cache-file=FILE cache test results in FILE [disabled]
1857 -C, --config-cache alias for \`--cache-file=config.cache'
1858 -n, --no-create do not create output files
1859 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1861 Installation directories:
1862 --prefix=PREFIX install architecture-independent files in PREFIX
1863 [$ac_default_prefix]
1864 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1865 [PREFIX]
1867 By default, \`make install' will install all the files in
1868 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1869 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1870 for instance \`--prefix=\$HOME'.
1872 For better control, use the options below.
1874 Fine tuning of the installation directories:
1875 --bindir=DIR user executables [EPREFIX/bin]
1876 --sbindir=DIR system admin executables [EPREFIX/sbin]
1877 --libexecdir=DIR program executables [EPREFIX/libexec]
1878 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1879 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1880 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1881 --libdir=DIR object code libraries [EPREFIX/lib]
1882 --includedir=DIR C header files [PREFIX/include]
1883 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1884 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1885 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1886 --infodir=DIR info documentation [DATAROOTDIR/info]
1887 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1888 --mandir=DIR man documentation [DATAROOTDIR/man]
1889 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1890 --htmldir=DIR html documentation [DOCDIR]
1891 --dvidir=DIR dvi documentation [DOCDIR]
1892 --pdfdir=DIR pdf documentation [DOCDIR]
1893 --psdir=DIR ps documentation [DOCDIR]
1894 _ACEOF
1896 cat <<\_ACEOF
1898 Program names:
1899 --program-prefix=PREFIX prepend PREFIX to installed program names
1900 --program-suffix=SUFFIX append SUFFIX to installed program names
1901 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1903 X features:
1904 --x-includes=DIR X include files are in DIR
1905 --x-libraries=DIR X library files are in DIR
1907 System types:
1908 --build=BUILD configure for building on BUILD [guessed]
1909 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1910 _ACEOF
1913 if test -n "$ac_init_help"; then
1914 case $ac_init_help in
1915 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1916 esac
1917 cat <<\_ACEOF
1919 Optional Features:
1920 --disable-option-checking ignore unrecognized --enable/--with options
1921 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1922 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1923 --disable-ns-self-contained
1924 disable self contained build under NeXTstep
1925 --enable-asserts compile code with asserts enabled
1926 --enable-maintainer-mode
1927 enable make rules and dependencies not useful (and
1928 sometimes confusing) to the casual installer
1929 --enable-locallisppath=PATH
1930 directories Emacs should search for lisp files
1931 specific to this site
1932 --enable-checking[=LIST]
1933 enable expensive run-time checks. With LIST, enable
1934 only specific categories of checks. Categories are:
1935 all,yes,no. Flags are: stringbytes, stringoverrun,
1936 stringfreelist, xmallocoverrun, conslist
1937 --enable-use-lisp-union-type
1938 use a union for the Lisp_Object data type. This is
1939 only useful for development for catching certain
1940 types of bugs.
1941 --enable-profiling build emacs with profiling support. This might not
1942 work on all platforms
1943 --enable-autodepend automatically generate dependencies to .h-files.
1944 Requires GNU Make and Gcc. Enabled if GNU Make and
1945 Gcc is found
1946 --disable-dependency-tracking speeds up one-time build
1947 --enable-dependency-tracking do not reject slow dependency extractors
1948 --disable-largefile omit support for large files
1950 Optional Packages:
1951 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1952 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1953 --without-pop don't support POP mail retrieval with movemail
1954 --with-kerberos support Kerberos-authenticated POP
1955 --with-kerberos5 support Kerberos version 5 authenticated POP
1956 --with-hesiod support Hesiod to get the POP server host
1957 --with-mmdf support MMDF mailboxes
1958 --with-mail-unlink unlink, rather than empty, mail spool after reading
1959 --with-mailhost=HOSTNAME
1960 string giving default POP mail host
1961 --without-sound don't compile with sound support
1962 --without-sync-input process async input synchronously
1963 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1964 lucid or athena, motif, no)
1965 --without-xpm don't compile with XPM image support
1966 --without-jpeg don't compile with JPEG image support
1967 --without-tiff don't compile with TIFF image support
1968 --without-gif don't compile with GIF image support
1969 --without-png don't compile with PNG image support
1970 --without-rsvg don't compile with SVG image support
1971 --without-xml2 don't compile with XML parsing support
1972 --without-imagemagick don't compile with ImageMagick image support
1973 --without-xft don't use XFT for anti aliased fonts
1974 --without-libotf don't use libotf for OpenType font support
1975 --without-m17n-flt don't use m17n-flt for text shaping
1976 --without-toolkit-scroll-bars
1977 don't use Motif or Xaw3d scroll bars
1978 --without-xaw3d don't use Xaw3d
1979 --without-xim don't use X11 XIM
1980 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1981 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1982 console
1983 --without-dbus don't compile with D-Bus support
1984 --without-gconf don't compile with GConf support
1985 --without-selinux don't compile with SELinux support
1986 --without-gnutls don't use -lgnutls for SSL/TLS support
1987 --without-makeinfo don't require makeinfo for building manuals
1988 --without-compress-info don't compress the installed Info pages
1989 --with-pkg-config-prog=PATH
1990 path to pkg-config for finding GTK and librsvg
1991 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1992 /usr/lib, or /usr/lib64 on some platforms.
1993 --with-gameuser=USER user for shared game score files
1994 --with-gnustep-conf=PATH
1995 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1996 or /etc/GNUstep/GNUstep.conf
1997 --with-x use the X Window System
1999 Some influential environment variables:
2000 CC C compiler command
2001 CFLAGS C compiler flags
2002 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2003 nonstandard directory <lib dir>
2004 LIBS libraries to pass to the linker, e.g. -l<library>
2005 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2006 you have headers in a nonstandard directory <include dir>
2007 CPP C preprocessor
2008 XMKMF Path to xmkmf, Makefile generator for X Window System
2010 Use these variables to override the choices made by `configure' or to help
2011 it to find libraries and programs with nonstandard names/locations.
2013 Report bugs to the package provider.
2014 _ACEOF
2015 ac_status=$?
2018 if test "$ac_init_help" = "recursive"; then
2019 # If there are subdirs, report their specific --help.
2020 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2021 test -d "$ac_dir" ||
2022 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2023 continue
2024 ac_builddir=.
2026 case "$ac_dir" in
2027 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2030 # A ".." for each directory in $ac_dir_suffix.
2031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2032 case $ac_top_builddir_sub in
2033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2035 esac ;;
2036 esac
2037 ac_abs_top_builddir=$ac_pwd
2038 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2039 # for backward compatibility:
2040 ac_top_builddir=$ac_top_build_prefix
2042 case $srcdir in
2043 .) # We are building in place.
2044 ac_srcdir=.
2045 ac_top_srcdir=$ac_top_builddir_sub
2046 ac_abs_top_srcdir=$ac_pwd ;;
2047 [\\/]* | ?:[\\/]* ) # Absolute name.
2048 ac_srcdir=$srcdir$ac_dir_suffix;
2049 ac_top_srcdir=$srcdir
2050 ac_abs_top_srcdir=$srcdir ;;
2051 *) # Relative name.
2052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2053 ac_top_srcdir=$ac_top_build_prefix$srcdir
2054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2055 esac
2056 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2058 cd "$ac_dir" || { ac_status=$?; continue; }
2059 # Check for guested configure.
2060 if test -f "$ac_srcdir/configure.gnu"; then
2061 echo &&
2062 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2063 elif test -f "$ac_srcdir/configure"; then
2064 echo &&
2065 $SHELL "$ac_srcdir/configure" --help=recursive
2066 else
2067 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2068 fi || ac_status=$?
2069 cd "$ac_pwd" || { ac_status=$?; break; }
2070 done
2073 test -n "$ac_init_help" && exit $ac_status
2074 if $ac_init_version; then
2075 cat <<\_ACEOF
2076 emacs configure 24.0.50
2077 generated by GNU Autoconf 2.65
2079 Copyright (C) 2009 Free Software Foundation, Inc.
2080 This configure script is free software; the Free Software Foundation
2081 gives unlimited permission to copy, distribute and modify it.
2082 _ACEOF
2083 exit
2086 ## ------------------------ ##
2087 ## Autoconf initialization. ##
2088 ## ------------------------ ##
2090 # ac_fn_c_try_compile LINENO
2091 # --------------------------
2092 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2093 ac_fn_c_try_compile ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 rm -f conftest.$ac_objext
2097 if { { ac_try="$ac_compile"
2098 case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101 esac
2102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103 $as_echo "$ac_try_echo"; } >&5
2104 (eval "$ac_compile") 2>conftest.err
2105 ac_status=$?
2106 if test -s conftest.err; then
2107 grep -v '^ *+' conftest.err >conftest.er1
2108 cat conftest.er1 >&5
2109 mv -f conftest.er1 conftest.err
2111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; } && {
2113 test -z "$ac_c_werror_flag" ||
2114 test ! -s conftest.err
2115 } && test -s conftest.$ac_objext; then :
2116 ac_retval=0
2117 else
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2121 ac_retval=1
2123 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2124 as_fn_set_status $ac_retval
2126 } # ac_fn_c_try_compile
2128 # ac_fn_c_try_cpp LINENO
2129 # ----------------------
2130 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2131 ac_fn_c_try_cpp ()
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 if { { ac_try="$ac_cpp conftest.$ac_ext"
2135 case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138 esac
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2142 ac_status=$?
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } >/dev/null && {
2150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2151 test ! -s conftest.err
2152 }; then :
2153 ac_retval=0
2154 else
2155 $as_echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2158 ac_retval=1
2160 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161 as_fn_set_status $ac_retval
2163 } # ac_fn_c_try_cpp
2165 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2166 # -------------------------------------------------------
2167 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2168 # the include files in INCLUDES and setting the cache variable VAR
2169 # accordingly.
2170 ac_fn_c_check_header_mongrel ()
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2177 $as_echo_n "(cached) " >&6
2179 eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 else
2183 # Is the header compilable?
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2185 $as_echo_n "checking $2 usability... " >&6; }
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2189 #include <$2>
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_header_compiler=yes
2193 else
2194 ac_header_compiler=no
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2198 $as_echo "$ac_header_compiler" >&6; }
2200 # Is the header present?
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2202 $as_echo_n "checking $2 presence... " >&6; }
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2205 #include <$2>
2206 _ACEOF
2207 if ac_fn_c_try_cpp "$LINENO"; then :
2208 ac_header_preproc=yes
2209 else
2210 ac_header_preproc=no
2212 rm -f conftest.err conftest.$ac_ext
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2214 $as_echo "$ac_header_preproc" >&6; }
2216 # So? What about this header?
2217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2218 yes:no: )
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2220 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2222 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2224 no:yes:* )
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2226 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2228 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2230 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2232 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2236 esac
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 eval "$3=\$ac_header_compiler"
2244 eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 } # ac_fn_c_check_header_mongrel
2252 # ac_fn_c_try_run LINENO
2253 # ----------------------
2254 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2255 # that executables *can* be run.
2256 ac_fn_c_try_run ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 if { { ac_try="$ac_link"
2260 case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263 esac
2264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265 $as_echo "$ac_try_echo"; } >&5
2266 (eval "$ac_link") 2>&5
2267 ac_status=$?
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2270 { { case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273 esac
2274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275 $as_echo "$ac_try_echo"; } >&5
2276 (eval "$ac_try") 2>&5
2277 ac_status=$?
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; }; }; then :
2280 ac_retval=0
2281 else
2282 $as_echo "$as_me: program exited with status $ac_status" >&5
2283 $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 ac_retval=$ac_status
2288 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290 as_fn_set_status $ac_retval
2292 } # ac_fn_c_try_run
2294 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2295 # -------------------------------------------------------
2296 # Tests whether HEADER exists and can be compiled using the include files in
2297 # INCLUDES, setting the cache variable VAR accordingly.
2298 ac_fn_c_check_header_compile ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302 $as_echo_n "checking for $2... " >&6; }
2303 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2309 #include <$2>
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"; then :
2312 eval "$3=yes"
2313 else
2314 eval "$3=no"
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 eval ac_res=\$$3
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 } # ac_fn_c_check_header_compile
2325 # ac_fn_c_try_link LINENO
2326 # -----------------------
2327 # Try to link conftest.$ac_ext, and return whether this succeeded.
2328 ac_fn_c_try_link ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 rm -f conftest.$ac_objext conftest$ac_exeext
2332 if { { ac_try="$ac_link"
2333 case "(($ac_try" in
2334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335 *) ac_try_echo=$ac_try;;
2336 esac
2337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2338 $as_echo "$ac_try_echo"; } >&5
2339 (eval "$ac_link") 2>conftest.err
2340 ac_status=$?
2341 if test -s conftest.err; then
2342 grep -v '^ *+' conftest.err >conftest.er1
2343 cat conftest.er1 >&5
2344 mv -f conftest.er1 conftest.err
2346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347 test $ac_status = 0; } && {
2348 test -z "$ac_c_werror_flag" ||
2349 test ! -s conftest.err
2350 } && test -s conftest$ac_exeext && {
2351 test "$cross_compiling" = yes ||
2352 $as_test_x conftest$ac_exeext
2353 }; then :
2354 ac_retval=0
2355 else
2356 $as_echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 ac_retval=1
2361 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2362 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2363 # interfere with the next link command; also delete a directory that is
2364 # left behind by Apple's compiler. We do this before executing the actions.
2365 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2366 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2367 as_fn_set_status $ac_retval
2369 } # ac_fn_c_try_link
2371 # ac_fn_c_check_decl LINENO SYMBOL VAR
2372 # ------------------------------------
2373 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2374 ac_fn_c_check_decl ()
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2378 $as_echo_n "checking whether $2 is declared... " >&6; }
2379 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2386 main ()
2388 #ifndef $2
2389 (void) $2;
2390 #endif
2393 return 0;
2395 _ACEOF
2396 if ac_fn_c_try_compile "$LINENO"; then :
2397 eval "$3=yes"
2398 else
2399 eval "$3=no"
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 eval ac_res=\$$3
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2408 } # ac_fn_c_check_decl
2410 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2411 # ----------------------------------------------
2412 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2413 ac_fn_c_check_header_preproc ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417 $as_echo_n "checking for $2... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2423 #include <$2>
2424 _ACEOF
2425 if ac_fn_c_try_cpp "$LINENO"; then :
2426 eval "$3=yes"
2427 else
2428 eval "$3=no"
2430 rm -f conftest.err conftest.$ac_ext
2432 eval ac_res=\$$3
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2434 $as_echo "$ac_res" >&6; }
2435 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437 } # ac_fn_c_check_header_preproc
2439 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2440 # ----------------------------------------------------
2441 # Tries to find if the field MEMBER exists in type AGGR, after including
2442 # INCLUDES, setting cache variable VAR accordingly.
2443 ac_fn_c_check_member ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2447 $as_echo_n "checking for $2.$3... " >&6; }
2448 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2455 main ()
2457 static $2 ac_aggr;
2458 if (ac_aggr.$3)
2459 return 0;
2461 return 0;
2463 _ACEOF
2464 if ac_fn_c_try_compile "$LINENO"; then :
2465 eval "$4=yes"
2466 else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2471 main ()
2473 static $2 ac_aggr;
2474 if (sizeof ac_aggr.$3)
2475 return 0;
2477 return 0;
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481 eval "$4=yes"
2482 else
2483 eval "$4=no"
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 eval ac_res=\$$4
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2494 } # ac_fn_c_check_member
2496 # ac_fn_c_check_func LINENO FUNC VAR
2497 # ----------------------------------
2498 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2499 ac_fn_c_check_func ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2503 $as_echo_n "checking for $2... " >&6; }
2504 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2511 #define $2 innocuous_$2
2513 /* System header to define __stub macros and hopefully few prototypes,
2514 which can conflict with char $2 (); below.
2515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2516 <limits.h> exists even on freestanding compilers. */
2518 #ifdef __STDC__
2519 # include <limits.h>
2520 #else
2521 # include <assert.h>
2522 #endif
2524 #undef $2
2526 /* Override any GCC internal prototype to avoid an error.
2527 Use char because int might match the return type of a GCC
2528 builtin and then its argument prototype would still apply. */
2529 #ifdef __cplusplus
2530 extern "C"
2531 #endif
2532 char $2 ();
2533 /* The GNU C library defines this for functions which it implements
2534 to always fail with ENOSYS. Some functions are actually named
2535 something starting with __ and the normal name is an alias. */
2536 #if defined __stub_$2 || defined __stub___$2
2537 choke me
2538 #endif
2541 main ()
2543 return $2 ();
2545 return 0;
2547 _ACEOF
2548 if ac_fn_c_try_link "$LINENO"; then :
2549 eval "$3=yes"
2550 else
2551 eval "$3=no"
2553 rm -f core conftest.err conftest.$ac_objext \
2554 conftest$ac_exeext conftest.$ac_ext
2556 eval ac_res=\$$3
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2558 $as_echo "$ac_res" >&6; }
2559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2561 } # ac_fn_c_check_func
2563 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2564 # --------------------------------------------
2565 # Tries to find the compile-time value of EXPR in a program that includes
2566 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2567 # computed
2568 ac_fn_c_compute_int ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 if test "$cross_compiling" = yes; then
2572 # Depending upon the size, compute the lo and hi bounds.
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2577 main ()
2579 static int test_array [1 - 2 * !(($2) >= 0)];
2580 test_array [0] = 0
2583 return 0;
2585 _ACEOF
2586 if ac_fn_c_try_compile "$LINENO"; then :
2587 ac_lo=0 ac_mid=0
2588 while :; do
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2593 main ()
2595 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2596 test_array [0] = 0
2599 return 0;
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603 ac_hi=$ac_mid; break
2604 else
2605 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2606 if test $ac_lo -le $ac_mid; then
2607 ac_lo= ac_hi=
2608 break
2610 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 done
2614 else
2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h. */
2619 main ()
2621 static int test_array [1 - 2 * !(($2) < 0)];
2622 test_array [0] = 0
2625 return 0;
2627 _ACEOF
2628 if ac_fn_c_try_compile "$LINENO"; then :
2629 ac_hi=-1 ac_mid=-1
2630 while :; do
2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2635 main ()
2637 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2638 test_array [0] = 0
2641 return 0;
2643 _ACEOF
2644 if ac_fn_c_try_compile "$LINENO"; then :
2645 ac_lo=$ac_mid; break
2646 else
2647 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2648 if test $ac_mid -le $ac_hi; then
2649 ac_lo= ac_hi=
2650 break
2652 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 done
2656 else
2657 ac_lo= ac_hi=
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 # Binary search between lo and hi bounds.
2663 while test "x$ac_lo" != "x$ac_hi"; do
2664 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h. */
2669 main ()
2671 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2672 test_array [0] = 0
2675 return 0;
2677 _ACEOF
2678 if ac_fn_c_try_compile "$LINENO"; then :
2679 ac_hi=$ac_mid
2680 else
2681 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 done
2685 case $ac_lo in #((
2686 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2687 '') ac_retval=1 ;;
2688 esac
2689 else
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h. */
2693 static long int longval () { return $2; }
2694 static unsigned long int ulongval () { return $2; }
2695 #include <stdio.h>
2696 #include <stdlib.h>
2698 main ()
2701 FILE *f = fopen ("conftest.val", "w");
2702 if (! f)
2703 return 1;
2704 if (($2) < 0)
2706 long int i = longval ();
2707 if (i != ($2))
2708 return 1;
2709 fprintf (f, "%ld", i);
2711 else
2713 unsigned long int i = ulongval ();
2714 if (i != ($2))
2715 return 1;
2716 fprintf (f, "%lu", i);
2718 /* Do not output a trailing newline, as this causes \r\n confusion
2719 on some platforms. */
2720 return ferror (f) || fclose (f) != 0;
2723 return 0;
2725 _ACEOF
2726 if ac_fn_c_try_run "$LINENO"; then :
2727 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2728 else
2729 ac_retval=1
2731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2732 conftest.$ac_objext conftest.beam conftest.$ac_ext
2733 rm -f conftest.val
2736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2737 as_fn_set_status $ac_retval
2739 } # ac_fn_c_compute_int
2741 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2742 # -------------------------------------------
2743 # Tests whether TYPE exists after having included INCLUDES, setting cache
2744 # variable VAR accordingly.
2745 ac_fn_c_check_type ()
2747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749 $as_echo_n "checking for $2... " >&6; }
2750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 eval "$3=no"
2754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2755 /* end confdefs.h. */
2758 main ()
2760 if (sizeof ($2))
2761 return 0;
2763 return 0;
2765 _ACEOF
2766 if ac_fn_c_try_compile "$LINENO"; then :
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2771 main ()
2773 if (sizeof (($2)))
2774 return 0;
2776 return 0;
2778 _ACEOF
2779 if ac_fn_c_try_compile "$LINENO"; then :
2781 else
2782 eval "$3=yes"
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 eval ac_res=\$$3
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2790 $as_echo "$ac_res" >&6; }
2791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2793 } # ac_fn_c_check_type
2794 cat >config.log <<_ACEOF
2795 This file contains any messages produced by compilers while
2796 running configure, to aid debugging if configure makes a mistake.
2798 It was created by emacs $as_me 24.0.50, which was
2799 generated by GNU Autoconf 2.65. Invocation command line was
2801 $ $0 $@
2803 _ACEOF
2804 exec 5>>config.log
2806 cat <<_ASUNAME
2807 ## --------- ##
2808 ## Platform. ##
2809 ## --------- ##
2811 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2812 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2813 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2814 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2815 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2817 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2818 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2820 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2821 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2822 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2823 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2824 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2825 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2826 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2828 _ASUNAME
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 $as_echo "PATH: $as_dir"
2836 done
2837 IFS=$as_save_IFS
2839 } >&5
2841 cat >&5 <<_ACEOF
2844 ## ----------- ##
2845 ## Core tests. ##
2846 ## ----------- ##
2848 _ACEOF
2851 # Keep a trace of the command line.
2852 # Strip out --no-create and --no-recursion so they do not pile up.
2853 # Strip out --silent because we don't want to record it for future runs.
2854 # Also quote any args containing shell meta-characters.
2855 # Make two passes to allow for proper duplicate-argument suppression.
2856 ac_configure_args=
2857 ac_configure_args0=
2858 ac_configure_args1=
2859 ac_must_keep_next=false
2860 for ac_pass in 1 2
2862 for ac_arg
2864 case $ac_arg in
2865 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2867 | -silent | --silent | --silen | --sile | --sil)
2868 continue ;;
2869 *\'*)
2870 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2871 esac
2872 case $ac_pass in
2873 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2875 as_fn_append ac_configure_args1 " '$ac_arg'"
2876 if test $ac_must_keep_next = true; then
2877 ac_must_keep_next=false # Got value, back to normal.
2878 else
2879 case $ac_arg in
2880 *=* | --config-cache | -C | -disable-* | --disable-* \
2881 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2882 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2883 | -with-* | --with-* | -without-* | --without-* | --x)
2884 case "$ac_configure_args0 " in
2885 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2886 esac
2888 -* ) ac_must_keep_next=true ;;
2889 esac
2891 as_fn_append ac_configure_args " '$ac_arg'"
2893 esac
2894 done
2895 done
2896 { ac_configure_args0=; unset ac_configure_args0;}
2897 { ac_configure_args1=; unset ac_configure_args1;}
2899 # When interrupted or exit'd, cleanup temporary files, and complete
2900 # config.log. We remove comments because anyway the quotes in there
2901 # would cause problems or look ugly.
2902 # WARNING: Use '\'' to represent an apostrophe within the trap.
2903 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2904 trap 'exit_status=$?
2905 # Save into config.log some information that might help in debugging.
2907 echo
2909 cat <<\_ASBOX
2910 ## ---------------- ##
2911 ## Cache variables. ##
2912 ## ---------------- ##
2913 _ASBOX
2914 echo
2915 # The following way of writing the cache mishandles newlines in values,
2917 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2918 eval ac_val=\$$ac_var
2919 case $ac_val in #(
2920 *${as_nl}*)
2921 case $ac_var in #(
2922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2924 esac
2925 case $ac_var in #(
2926 _ | IFS | as_nl) ;; #(
2927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2928 *) { eval $ac_var=; unset $ac_var;} ;;
2929 esac ;;
2930 esac
2931 done
2932 (set) 2>&1 |
2933 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2934 *${as_nl}ac_space=\ *)
2935 sed -n \
2936 "s/'\''/'\''\\\\'\'''\''/g;
2937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2938 ;; #(
2940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2942 esac |
2943 sort
2945 echo
2947 cat <<\_ASBOX
2948 ## ----------------- ##
2949 ## Output variables. ##
2950 ## ----------------- ##
2951 _ASBOX
2952 echo
2953 for ac_var in $ac_subst_vars
2955 eval ac_val=\$$ac_var
2956 case $ac_val in
2957 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2958 esac
2959 $as_echo "$ac_var='\''$ac_val'\''"
2960 done | sort
2961 echo
2963 if test -n "$ac_subst_files"; then
2964 cat <<\_ASBOX
2965 ## ------------------- ##
2966 ## File substitutions. ##
2967 ## ------------------- ##
2968 _ASBOX
2969 echo
2970 for ac_var in $ac_subst_files
2972 eval ac_val=\$$ac_var
2973 case $ac_val in
2974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2975 esac
2976 $as_echo "$ac_var='\''$ac_val'\''"
2977 done | sort
2978 echo
2981 if test -s confdefs.h; then
2982 cat <<\_ASBOX
2983 ## ----------- ##
2984 ## confdefs.h. ##
2985 ## ----------- ##
2986 _ASBOX
2987 echo
2988 cat confdefs.h
2989 echo
2991 test "$ac_signal" != 0 &&
2992 $as_echo "$as_me: caught signal $ac_signal"
2993 $as_echo "$as_me: exit $exit_status"
2994 } >&5
2995 rm -f core *.core core.conftest.* &&
2996 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2997 exit $exit_status
2999 for ac_signal in 1 2 13 15; do
3000 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3001 done
3002 ac_signal=0
3004 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3005 rm -f -r conftest* confdefs.h
3007 $as_echo "/* confdefs.h */" > confdefs.h
3009 # Predefined preprocessor variables.
3011 cat >>confdefs.h <<_ACEOF
3012 #define PACKAGE_NAME "$PACKAGE_NAME"
3013 _ACEOF
3015 cat >>confdefs.h <<_ACEOF
3016 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3017 _ACEOF
3019 cat >>confdefs.h <<_ACEOF
3020 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3021 _ACEOF
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE_STRING "$PACKAGE_STRING"
3025 _ACEOF
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3029 _ACEOF
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE_URL "$PACKAGE_URL"
3033 _ACEOF
3036 # Let the site file select an alternate cache file if it wants to.
3037 # Prefer an explicitly selected file to automatically selected ones.
3038 ac_site_file1=NONE
3039 ac_site_file2=NONE
3040 if test -n "$CONFIG_SITE"; then
3041 ac_site_file1=$CONFIG_SITE
3042 elif test "x$prefix" != xNONE; then
3043 ac_site_file1=$prefix/share/config.site
3044 ac_site_file2=$prefix/etc/config.site
3045 else
3046 ac_site_file1=$ac_default_prefix/share/config.site
3047 ac_site_file2=$ac_default_prefix/etc/config.site
3049 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3051 test "x$ac_site_file" = xNONE && continue
3052 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3054 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3055 sed 's/^/| /' "$ac_site_file" >&5
3056 . "$ac_site_file"
3058 done
3060 if test -r "$cache_file"; then
3061 # Some versions of bash will fail to source /dev/null (special files
3062 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3063 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3065 $as_echo "$as_me: loading cache $cache_file" >&6;}
3066 case $cache_file in
3067 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3068 *) . "./$cache_file";;
3069 esac
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3073 $as_echo "$as_me: creating cache $cache_file" >&6;}
3074 >$cache_file
3077 as_fn_append ac_header_list " stdlib.h"
3078 as_fn_append ac_header_list " unistd.h"
3079 as_fn_append ac_header_list " sys/param.h"
3080 as_fn_append ac_func_list " readlinkat"
3081 gl_getopt_required=GNU
3082 as_fn_append ac_header_list " getopt.h"
3083 as_fn_append ac_header_list " wchar.h"
3084 as_fn_append ac_header_list " stdint.h"
3085 as_fn_append ac_header_list " inttypes.h"
3086 as_fn_append ac_func_list " lstat"
3087 as_fn_append ac_func_list " alarm"
3088 as_fn_append ac_func_list " readlink"
3089 as_fn_append ac_header_list " sys/socket.h"
3090 as_fn_append ac_func_list " tzset"
3091 as_fn_append ac_func_list " symlink"
3092 as_fn_append ac_header_list " sys/stat.h"
3093 as_fn_append ac_header_list " sys/time.h"
3094 as_fn_append ac_func_list " localtime_r"
3095 # Check that the precious variables saved in the cache have kept the same
3096 # value.
3097 ac_cache_corrupted=false
3098 for ac_var in $ac_precious_vars; do
3099 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3100 eval ac_new_set=\$ac_env_${ac_var}_set
3101 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3102 eval ac_new_val=\$ac_env_${ac_var}_value
3103 case $ac_old_set,$ac_new_set in
3104 set,)
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3106 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3107 ac_cache_corrupted=: ;;
3108 ,set)
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3110 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3111 ac_cache_corrupted=: ;;
3112 ,);;
3114 if test "x$ac_old_val" != "x$ac_new_val"; then
3115 # differences in whitespace do not lead to failure.
3116 ac_old_val_w=`echo x $ac_old_val`
3117 ac_new_val_w=`echo x $ac_new_val`
3118 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3120 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3121 ac_cache_corrupted=:
3122 else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3124 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3125 eval $ac_var=\$ac_old_val
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3128 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3130 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3131 fi;;
3132 esac
3133 # Pass precious variables to config.status.
3134 if test "$ac_new_set" = set; then
3135 case $ac_new_val in
3136 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3137 *) ac_arg=$ac_var=$ac_new_val ;;
3138 esac
3139 case " $ac_configure_args " in
3140 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3141 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3142 esac
3144 done
3145 if $ac_cache_corrupted; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3149 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3150 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3152 ## -------------------- ##
3153 ## Main body of script. ##
3154 ## -------------------- ##
3156 ac_ext=c
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3166 am__api_version='1.11'
3168 ac_aux_dir=
3169 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3170 for ac_t in install-sh install.sh shtool; do
3171 if test -f "$ac_dir/$ac_t"; then
3172 ac_aux_dir=$ac_dir
3173 ac_install_sh="$ac_aux_dir/$ac_t -c"
3174 break 2
3176 done
3177 done
3178 if test -z "$ac_aux_dir"; then
3179 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3182 # These three variables are undocumented and unsupported,
3183 # and are intended to be withdrawn in a future Autoconf release.
3184 # They can cause serious problems if a builder's source tree is in a directory
3185 # whose full name contains unusual characters.
3186 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3187 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3188 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3191 # Find a good install program. We prefer a C program (faster),
3192 # so one script is as good as another. But avoid the broken or
3193 # incompatible versions:
3194 # SysV /etc/install, /usr/sbin/install
3195 # SunOS /usr/etc/install
3196 # IRIX /sbin/install
3197 # AIX /bin/install
3198 # AmigaOS /C/install, which installs bootblocks on floppy discs
3199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3202 # OS/2's system install, which has a completely different semantic
3203 # ./install, which can be erroneously created by make from ./install.sh.
3204 # Reject install programs that cannot install multiple files.
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3206 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3207 if test -z "$INSTALL"; then
3208 if test "${ac_cv_path_install+set}" = set; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 # Account for people who put trailing slashes in PATH elements.
3217 case $as_dir/ in #((
3218 ./ | .// | /[cC]/* | \
3219 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3220 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3221 /usr/ucb/* ) ;;
3223 # OSF1 and SCO ODT 3.0 have their own names for install.
3224 # Don't use installbsd from OSF since it installs stuff as root
3225 # by default.
3226 for ac_prog in ginstall scoinst install; do
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3229 if test $ac_prog = install &&
3230 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3231 # AIX install. It has an incompatible calling convention.
3233 elif test $ac_prog = install &&
3234 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3235 # program-specific install script used by HP pwplus--don't use.
3237 else
3238 rm -rf conftest.one conftest.two conftest.dir
3239 echo one > conftest.one
3240 echo two > conftest.two
3241 mkdir conftest.dir
3242 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3243 test -s conftest.one && test -s conftest.two &&
3244 test -s conftest.dir/conftest.one &&
3245 test -s conftest.dir/conftest.two
3246 then
3247 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3248 break 3
3252 done
3253 done
3255 esac
3257 done
3258 IFS=$as_save_IFS
3260 rm -rf conftest.one conftest.two conftest.dir
3263 if test "${ac_cv_path_install+set}" = set; then
3264 INSTALL=$ac_cv_path_install
3265 else
3266 # As a last resort, use the slow shell script. Don't cache a
3267 # value for INSTALL within a source directory, because that will
3268 # break other packages using the cache if that directory is
3269 # removed, or if the value is a relative name.
3270 INSTALL=$ac_install_sh
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3274 $as_echo "$INSTALL" >&6; }
3276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3277 # It thinks the first close brace ends the variable substitution.
3278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3285 $as_echo_n "checking whether build environment is sane... " >&6; }
3286 # Just in case
3287 sleep 1
3288 echo timestamp > conftest.file
3289 # Reject unsafe characters in $srcdir or the absolute working directory
3290 # name. Accept space and tab only in the latter.
3291 am_lf='
3293 case `pwd` in
3294 *[\\\"\#\$\&\'\`$am_lf]*)
3295 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3296 esac
3297 case $srcdir in
3298 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3299 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3300 esac
3302 # Do `set' in a subshell so we don't clobber the current shell's
3303 # arguments. Must try -L first in case configure is actually a
3304 # symlink; some systems play weird games with the mod time of symlinks
3305 # (eg FreeBSD returns the mod time of the symlink's containing
3306 # directory).
3307 if (
3308 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3309 if test "$*" = "X"; then
3310 # -L didn't work.
3311 set X `ls -t "$srcdir/configure" conftest.file`
3313 rm -f conftest.file
3314 if test "$*" != "X $srcdir/configure conftest.file" \
3315 && test "$*" != "X conftest.file $srcdir/configure"; then
3317 # If neither matched, then we have a broken ls. This can happen
3318 # if, for instance, CONFIG_SHELL is bash and it inherits a
3319 # broken ls alias from the environment. This has actually
3320 # happened. Such a system could not be considered "sane".
3321 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3322 alias in your environment" "$LINENO" 5
3325 test "$2" = conftest.file
3327 then
3328 # Ok.
3330 else
3331 as_fn_error "newly created file is older than distributed files!
3332 Check your system clock" "$LINENO" 5
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3336 test "$program_prefix" != NONE &&
3337 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3338 # Use a double $ so make ignores it.
3339 test "$program_suffix" != NONE &&
3340 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3341 # Double any \ or $.
3342 # By default was `s,x,x', remove it if useless.
3343 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3344 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3346 # expand $ac_aux_dir to an absolute path
3347 am_aux_dir=`cd $ac_aux_dir && pwd`
3349 if test x"${MISSING+set}" != xset; then
3350 case $am_aux_dir in
3351 *\ * | *\ *)
3352 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3354 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3355 esac
3357 # Use eval to expand $SHELL
3358 if eval "$MISSING --run true"; then
3359 am_missing_run="$MISSING --run "
3360 else
3361 am_missing_run=
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3363 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3366 if test x"${install_sh}" != xset; then
3367 case $am_aux_dir in
3368 *\ * | *\ *)
3369 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3371 install_sh="\${SHELL} $am_aux_dir/install-sh"
3372 esac
3375 # Installed binaries are usually stripped using `strip' when the user
3376 # run `make install-strip'. However `strip' might not be the right
3377 # tool to use in cross-compilation environments, therefore Automake
3378 # will honor the `STRIP' environment variable to overrule this program.
3379 if test "$cross_compiling" != no; then
3380 if test -n "$ac_tool_prefix"; then
3381 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3382 set dummy ${ac_tool_prefix}strip; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if test "${ac_cv_prog_STRIP+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 if test -n "$STRIP"; then
3389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3402 done
3403 done
3404 IFS=$as_save_IFS
3408 STRIP=$ac_cv_prog_STRIP
3409 if test -n "$STRIP"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3411 $as_echo "$STRIP" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3419 if test -z "$ac_cv_prog_STRIP"; then
3420 ac_ct_STRIP=$STRIP
3421 # Extract the first word of "strip", so it can be a program name with args.
3422 set dummy strip; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$ac_ct_STRIP"; then
3429 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438 ac_cv_prog_ac_ct_STRIP="strip"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3442 done
3443 done
3444 IFS=$as_save_IFS
3448 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3449 if test -n "$ac_ct_STRIP"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3451 $as_echo "$ac_ct_STRIP" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3457 if test "x$ac_ct_STRIP" = x; then
3458 STRIP=":"
3459 else
3460 case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3465 esac
3466 STRIP=$ac_ct_STRIP
3468 else
3469 STRIP="$ac_cv_prog_STRIP"
3473 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3476 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3477 if test -z "$MKDIR_P"; then
3478 if test "${ac_cv_path_mkdir+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_prog in mkdir gmkdir; do
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3489 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3490 'mkdir (GNU coreutils) '* | \
3491 'mkdir (coreutils) '* | \
3492 'mkdir (fileutils) '4.1*)
3493 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3494 break 3;;
3495 esac
3496 done
3497 done
3498 done
3499 IFS=$as_save_IFS
3503 test -d ./--version && rmdir ./--version
3504 if test "${ac_cv_path_mkdir+set}" = set; then
3505 MKDIR_P="$ac_cv_path_mkdir -p"
3506 else
3507 # As a last resort, use the slow shell script. Don't cache a
3508 # value for MKDIR_P within a source directory, because that will
3509 # break other packages using the cache if that directory is
3510 # removed, or if the value is a relative name.
3511 MKDIR_P="$ac_install_sh -d"
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3515 $as_echo "$MKDIR_P" >&6; }
3518 mkdir_p="$MKDIR_P"
3519 case $mkdir_p in
3520 [\\/$]* | ?:[\\/]*) ;;
3521 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3522 esac
3524 for ac_prog in gawk mawk nawk awk
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if test "${ac_cv_prog_AWK+set}" = set; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if test -n "$AWK"; then
3534 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543 ac_cv_prog_AWK="$ac_prog"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3547 done
3548 done
3549 IFS=$as_save_IFS
3553 AWK=$ac_cv_prog_AWK
3554 if test -n "$AWK"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3556 $as_echo "$AWK" >&6; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3563 test -n "$AWK" && break
3564 done
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3567 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3568 set x ${MAKE-make}
3569 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3570 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 cat >conftest.make <<\_ACEOF
3574 SHELL = /bin/sh
3575 all:
3576 @echo '@@@%%%=$(MAKE)=@@@%%%'
3577 _ACEOF
3578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3579 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3580 *@@@%%%=?*=@@@%%%*)
3581 eval ac_cv_prog_make_${ac_make}_set=yes;;
3583 eval ac_cv_prog_make_${ac_make}_set=no;;
3584 esac
3585 rm -f conftest.make
3587 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3589 $as_echo "yes" >&6; }
3590 SET_MAKE=
3591 else
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 SET_MAKE="MAKE=${MAKE-make}"
3597 rm -rf .tst 2>/dev/null
3598 mkdir .tst 2>/dev/null
3599 if test -d .tst; then
3600 am__leading_dot=.
3601 else
3602 am__leading_dot=_
3604 rmdir .tst 2>/dev/null
3606 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3607 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3608 # is not polluted with repeated "-I."
3609 am__isrc=' -I$(srcdir)'
3610 # test to see if srcdir already configured
3611 if test -f $srcdir/config.status; then
3612 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3616 # test whether we have cygpath
3617 if test -z "$CYGPATH_W"; then
3618 if (cygpath --version) >/dev/null 2>/dev/null; then
3619 CYGPATH_W='cygpath -w'
3620 else
3621 CYGPATH_W=echo
3626 # Define the identity of the package.
3627 PACKAGE='emacs'
3628 VERSION='24.0.50'
3631 cat >>confdefs.h <<_ACEOF
3632 #define PACKAGE "$PACKAGE"
3633 _ACEOF
3636 cat >>confdefs.h <<_ACEOF
3637 #define VERSION "$VERSION"
3638 _ACEOF
3640 # Some tools Automake needs.
3642 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3645 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3648 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3651 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3654 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3656 # We need awk for the "check" target. The system "awk" is bad on
3657 # some platforms.
3658 # Always define AMTAR for backward compatibility.
3660 AMTAR=${AMTAR-"${am_missing_run}tar"}
3662 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3671 lispdir='${datadir}/emacs/${version}/lisp'
3672 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3673 '${datadir}/emacs/site-lisp'
3674 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3675 etcdir='${datadir}/emacs/${version}/etc'
3676 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3677 docdir='${datadir}/emacs/${version}/etc'
3678 gamedir='${localstatedir}/games/emacs'
3683 # Check whether --with-pop was given.
3684 if test "${with_pop+set}" = set; then :
3685 withval=$with_pop;
3686 else
3687 with_pop=yes
3690 if test "$with_pop" = yes; then
3691 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3696 # Check whether --with-kerberos was given.
3697 if test "${with_kerberos+set}" = set; then :
3698 withval=$with_kerberos;
3699 else
3700 with_kerberos=no
3703 if test "$with_kerberos" != no; then
3704 $as_echo "#define KERBEROS 1" >>confdefs.h
3709 # Check whether --with-kerberos5 was given.
3710 if test "${with_kerberos5+set}" = set; then :
3711 withval=$with_kerberos5;
3712 else
3713 with_kerberos5=no
3716 if test "${with_kerberos5}" != no; then
3717 if test "${with_kerberos}" = no; then
3718 with_kerberos=yes
3719 $as_echo "#define KERBEROS 1" >>confdefs.h
3723 $as_echo "#define KERBEROS5 1" >>confdefs.h
3728 # Check whether --with-hesiod was given.
3729 if test "${with_hesiod+set}" = set; then :
3730 withval=$with_hesiod;
3731 else
3732 with_hesiod=no
3735 if test "$with_hesiod" != no; then
3737 $as_echo "#define HESIOD 1" >>confdefs.h
3742 # Check whether --with-mmdf was given.
3743 if test "${with_mmdf+set}" = set; then :
3744 withval=$with_mmdf;
3745 else
3746 with_mmdf=no
3749 if test "$with_mmdf" != no; then
3751 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3756 # Check whether --with-mail-unlink was given.
3757 if test "${with_mail_unlink+set}" = set; then :
3758 withval=$with_mail_unlink;
3759 else
3760 with_mail_unlink=no
3763 if test "$with_mail_unlink" != no; then
3765 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3770 # Check whether --with-mailhost was given.
3771 if test "${with_mailhost+set}" = set; then :
3772 withval=$with_mailhost;
3773 cat >>confdefs.h <<_ACEOF
3774 #define MAILHOST "$withval"
3775 _ACEOF
3781 # Check whether --with-sound was given.
3782 if test "${with_sound+set}" = set; then :
3783 withval=$with_sound;
3784 else
3785 with_sound=yes
3790 # Check whether --with-sync-input was given.
3791 if test "${with_sync_input+set}" = set; then :
3792 withval=$with_sync_input;
3793 else
3794 with_sync_input=yes
3797 if test "$with_sync_input" = yes; then
3799 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3804 # Check whether --with-x-toolkit was given.
3805 if test "${with_x_toolkit+set}" = set; then :
3806 withval=$with_x_toolkit; case "${withval}" in
3807 y | ye | yes ) val=gtk ;;
3808 n | no ) val=no ;;
3809 l | lu | luc | luci | lucid ) val=lucid ;;
3810 a | at | ath | athe | athen | athena ) val=athena ;;
3811 m | mo | mot | moti | motif ) val=motif ;;
3812 g | gt | gtk ) val=gtk ;;
3813 gtk3 ) val=gtk3 ;;
3815 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3816 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3817 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3819 esac
3820 with_x_toolkit=$val
3826 # Check whether --with-xpm was given.
3827 if test "${with_xpm+set}" = set; then :
3828 withval=$with_xpm;
3829 else
3830 with_xpm=yes
3834 # Check whether --with-jpeg was given.
3835 if test "${with_jpeg+set}" = set; then :
3836 withval=$with_jpeg;
3837 else
3838 with_jpeg=yes
3842 # Check whether --with-tiff was given.
3843 if test "${with_tiff+set}" = set; then :
3844 withval=$with_tiff;
3845 else
3846 with_tiff=yes
3850 # Check whether --with-gif was given.
3851 if test "${with_gif+set}" = set; then :
3852 withval=$with_gif;
3853 else
3854 with_gif=yes
3858 # Check whether --with-png was given.
3859 if test "${with_png+set}" = set; then :
3860 withval=$with_png;
3861 else
3862 with_png=yes
3866 # Check whether --with-rsvg was given.
3867 if test "${with_rsvg+set}" = set; then :
3868 withval=$with_rsvg;
3869 else
3870 with_rsvg=yes
3874 # Check whether --with-xml2 was given.
3875 if test "${with_xml2+set}" = set; then :
3876 withval=$with_xml2;
3877 else
3878 with_xml2=yes
3882 # Check whether --with-imagemagick was given.
3883 if test "${with_imagemagick+set}" = set; then :
3884 withval=$with_imagemagick;
3885 else
3886 with_imagemagick=yes
3891 # Check whether --with-xft was given.
3892 if test "${with_xft+set}" = set; then :
3893 withval=$with_xft;
3894 else
3895 with_xft=yes
3899 # Check whether --with-libotf was given.
3900 if test "${with_libotf+set}" = set; then :
3901 withval=$with_libotf;
3902 else
3903 with_libotf=yes
3907 # Check whether --with-m17n-flt was given.
3908 if test "${with_m17n_flt+set}" = set; then :
3909 withval=$with_m17n_flt;
3910 else
3911 with_m17n_flt=yes
3916 # Check whether --with-toolkit-scroll-bars was given.
3917 if test "${with_toolkit_scroll_bars+set}" = set; then :
3918 withval=$with_toolkit_scroll_bars;
3919 else
3920 with_toolkit_scroll_bars=yes
3924 # Check whether --with-xaw3d was given.
3925 if test "${with_xaw3d+set}" = set; then :
3926 withval=$with_xaw3d;
3927 else
3928 with_xaw3d=yes
3932 # Check whether --with-xim was given.
3933 if test "${with_xim+set}" = set; then :
3934 withval=$with_xim;
3935 else
3936 with_xim=yes
3940 # Check whether --with-ns was given.
3941 if test "${with_ns+set}" = set; then :
3942 withval=$with_ns;
3943 else
3944 with_ns=no
3949 # Check whether --with-gpm was given.
3950 if test "${with_gpm+set}" = set; then :
3951 withval=$with_gpm;
3952 else
3953 with_gpm=yes
3957 # Check whether --with-dbus was given.
3958 if test "${with_dbus+set}" = set; then :
3959 withval=$with_dbus;
3960 else
3961 with_dbus=yes
3965 # Check whether --with-gconf was given.
3966 if test "${with_gconf+set}" = set; then :
3967 withval=$with_gconf;
3968 else
3969 with_gconf=yes
3973 # Check whether --with-selinux was given.
3974 if test "${with_selinux+set}" = set; then :
3975 withval=$with_selinux;
3976 else
3977 with_selinux=yes
3981 # Check whether --with-gnutls was given.
3982 if test "${with_gnutls+set}" = set; then :
3983 withval=$with_gnutls;
3984 else
3985 with_gnutls=yes
3989 ## For the times when you want to build Emacs but don't have
3990 ## a suitable makeinfo, and can live without the manuals.
3992 # Check whether --with-makeinfo was given.
3993 if test "${with_makeinfo+set}" = set; then :
3994 withval=$with_makeinfo;
3995 else
3996 with_makeinfo=yes
4000 ## This is an option because I do not know if all info/man support
4001 ## compressed files, nor how to test if they do so.
4003 # Check whether --with-compress-info was given.
4004 if test "${with_compress_info+set}" = set; then :
4005 withval=$with_compress_info;
4006 else
4007 with_compress_info=yes
4010 if test $with_compress_info = yes; then
4011 GZIP_INFO=yes
4012 else
4013 GZIP_INFO=
4018 # Check whether --with-pkg-config-prog was given.
4019 if test "${with_pkg_config_prog+set}" = set; then :
4020 withval=$with_pkg_config_prog;
4023 if test "X${with_pkg_config_prog}" != X; then
4024 if test "${with_pkg_config_prog}" != yes; then
4025 PKG_CONFIG="${with_pkg_config_prog}"
4029 CRT_DIR=
4031 # Check whether --with-crt-dir was given.
4032 if test "${with_crt_dir+set}" = set; then :
4033 withval=$with_crt_dir;
4036 CRT_DIR="${with_crt_dir}"
4039 # Check whether --with-gameuser was given.
4040 if test "${with_gameuser+set}" = set; then :
4041 withval=$with_gameuser;
4044 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4045 && gameuser="${with_gameuser}"
4046 test "X$gameuser" = X && gameuser=games
4049 # Check whether --with-gnustep-conf was given.
4050 if test "${with_gnustep_conf+set}" = set; then :
4051 withval=$with_gnustep_conf;
4054 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4055 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4056 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4057 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4059 # Check whether --enable-ns-self-contained was given.
4060 if test "${enable_ns_self_contained+set}" = set; then :
4061 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4062 else
4063 EN_NS_SELF_CONTAINED=yes
4067 # Check whether --enable-asserts was given.
4068 if test "${enable_asserts+set}" = set; then :
4069 enableval=$enable_asserts; USE_XASSERTS=$enableval
4070 else
4071 USE_XASSERTS=no
4075 # Check whether --enable-maintainer-mode was given.
4076 if test "${enable_maintainer_mode+set}" = set; then :
4077 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4078 else
4079 USE_MAINTAINER_MODE=yes
4082 if test $USE_MAINTAINER_MODE = yes; then
4083 MAINT=
4084 else
4085 MAINT=#
4089 # Check whether --enable-locallisppath was given.
4090 if test "${enable_locallisppath+set}" = set; then :
4091 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4092 locallisppath=
4093 elif test "${enableval}" != "yes"; then
4094 locallisppath=${enableval}
4099 # Check whether --enable-checking was given.
4100 if test "${enable_checking+set}" = set; then :
4101 enableval=$enable_checking; ac_checking_flags="${enableval}"
4104 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4105 for check in $ac_checking_flags
4107 case $check in
4108 # these set all the flags to specific states
4109 yes) ac_enable_checking=1 ;;
4110 no) ac_enable_checking= ;
4111 ac_gc_check_stringbytes= ;
4112 ac_gc_check_string_overrun= ;
4113 ac_gc_check_string_free_list= ;
4114 ac_xmalloc_overrun= ;
4115 ac_gc_check_cons_list= ;;
4116 all) ac_enable_checking=1 ;
4117 ac_gc_check_stringbytes=1 ;
4118 ac_gc_check_string_overrun=1 ;
4119 ac_gc_check_string_free_list=1 ;
4120 ac_xmalloc_overrun=1 ;
4121 ac_gc_check_cons_list=1 ;;
4122 # these enable particular checks
4123 stringbytes) ac_gc_check_stringbytes=1 ;;
4124 stringoverrun) ac_gc_check_string_overrun=1 ;;
4125 stringfreelist) ac_gc_check_string_free_list=1 ;;
4126 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4127 conslist) ac_gc_check_cons_list=1 ;;
4128 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4129 esac
4130 done
4131 IFS="$ac_save_IFS"
4133 if test x$ac_enable_checking != x ; then
4135 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4138 if test x$ac_gc_check_stringbytes != x ; then
4140 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4143 if test x$ac_gc_check_string_overrun != x ; then
4145 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4148 if test x$ac_gc_check_string_free_list != x ; then
4150 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4153 if test x$ac_xmalloc_overrun != x ; then
4155 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4158 if test x$ac_gc_check_cons_list != x ; then
4160 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4164 # Check whether --enable-use-lisp-union-type was given.
4165 if test "${enable_use_lisp_union_type+set}" = set; then :
4166 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4168 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4175 # Check whether --enable-profiling was given.
4176 if test "${enable_profiling+set}" = set; then :
4177 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4180 if test x$ac_enable_profiling != x ; then
4181 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4182 else
4183 PROFILING_CFLAGS=
4187 # Check whether --enable-autodepend was given.
4188 if test "${enable_autodepend+set}" = set; then :
4189 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4190 else
4191 ac_enable_autodepend=yes
4195 #### Make srcdir absolute, if it isn't already. It's important to
4196 #### avoid running the path through pwd unnecessarily, since pwd can
4197 #### give you automounter prefixes, which can go away. We do all this
4198 #### so Emacs can find its files when run uninstalled.
4199 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4200 unset CDPATH
4201 case "${srcdir}" in
4202 /* ) ;;
4204 ## We may be able to use the $PWD environment variable to make this
4205 ## absolute. But sometimes PWD is inaccurate.
4206 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4207 ## but that tested only for a well-formed and valid PWD,
4208 ## it did not object when PWD was well-formed and valid but just wrong.
4209 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4210 then
4211 srcdir="$PWD"
4212 else
4213 srcdir="`(cd ${srcdir}; pwd)`"
4216 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4217 esac
4219 #### Check if the source directory already has a configured system in it.
4220 if test `pwd` != `(cd ${srcdir} && pwd)` \
4221 && test -f "${srcdir}/src/config.h" ; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4223 as a build directory right now; it has been configured in its own
4224 right. To configure in another directory as well, you MUST
4225 use GNU make. If you do not have GNU make, then you must
4226 now do \`make distclean' in ${srcdir},
4227 and then run $0 again." >&5
4228 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4229 as a build directory right now; it has been configured in its own
4230 right. To configure in another directory as well, you MUST
4231 use GNU make. If you do not have GNU make, then you must
4232 now do \`make distclean' in ${srcdir},
4233 and then run $0 again." >&2;}
4236 #### Given the configuration name, set machfile and opsysfile to the
4237 #### names of the m/*.h and s/*.h files we should use.
4239 ### Canonicalize the configuration name.
4241 # Make sure we can run config.sub.
4242 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4243 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4246 $as_echo_n "checking build system type... " >&6; }
4247 if test "${ac_cv_build+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 ac_build_alias=$build_alias
4251 test "x$ac_build_alias" = x &&
4252 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4253 test "x$ac_build_alias" = x &&
4254 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4255 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4256 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4260 $as_echo "$ac_cv_build" >&6; }
4261 case $ac_cv_build in
4262 *-*-*) ;;
4263 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4264 esac
4265 build=$ac_cv_build
4266 ac_save_IFS=$IFS; IFS='-'
4267 set x $ac_cv_build
4268 shift
4269 build_cpu=$1
4270 build_vendor=$2
4271 shift; shift
4272 # Remember, the first character of IFS is used to create $*,
4273 # except with old shells:
4274 build_os=$*
4275 IFS=$ac_save_IFS
4276 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4280 $as_echo_n "checking host system type... " >&6; }
4281 if test "${ac_cv_host+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 if test "x$host_alias" = x; then
4285 ac_cv_host=$ac_cv_build
4286 else
4287 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4288 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4293 $as_echo "$ac_cv_host" >&6; }
4294 case $ac_cv_host in
4295 *-*-*) ;;
4296 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4297 esac
4298 host=$ac_cv_host
4299 ac_save_IFS=$IFS; IFS='-'
4300 set x $ac_cv_host
4301 shift
4302 host_cpu=$1
4303 host_vendor=$2
4304 shift; shift
4305 # Remember, the first character of IFS is used to create $*,
4306 # except with old shells:
4307 host_os=$*
4308 IFS=$ac_save_IFS
4309 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4312 canonical=$host
4313 configuration=${host_alias-${build_alias-$host}}
4317 ### If you add support for a new configuration, add code to this
4318 ### switch statement to recognize your configuration name and select
4319 ### the appropriate operating system and machine description files.
4321 ### You would hope that you could choose an m/*.h file pretty much
4322 ### based on the machine portion of the configuration name, and an s/*.h
4323 ### file based on the operating system portion. However, it turns out
4324 ### that each m/*.h file is pretty manufacturer-specific - for
4325 ### example mips.h is MIPS
4326 ### So we basically have to have a special case for each
4327 ### configuration name.
4329 ### As far as handling version numbers on operating systems is
4330 ### concerned, make sure things will fail in a fixable way. If
4331 ### /etc/MACHINES doesn't say anything about version numbers, be
4332 ### prepared to handle anything reasonably. If version numbers
4333 ### matter, be sure /etc/MACHINES says something about it.
4335 machine='' opsys='' unported=no
4336 case "${canonical}" in
4338 ## GNU/Linux ports
4339 *-*-linux-gnu*)
4340 opsys=gnu-linux
4341 case ${canonical} in
4342 alpha*) machine=alpha ;;
4343 s390-*) machine=ibms390 ;;
4344 s390x-*) machine=ibms390x ;;
4345 powerpc*) machine=macppc ;;
4346 sparc*) machine=sparc ;;
4347 ia64*) machine=ia64 ;;
4348 m68k*) machine=m68k ;;
4349 x86_64*) machine=amdx86-64 ;;
4350 esac
4353 ## FreeBSD ports
4354 *-*-freebsd* )
4355 opsys=freebsd
4356 case "${canonical}" in
4357 alpha*) machine=alpha ;;
4358 amd64-*|x86_64-*) machine=amdx86-64 ;;
4359 ia64-*) machine=ia64 ;;
4360 i[3456]86-*) machine=intel386 ;;
4361 powerpc-*) machine=macppc ;;
4362 sparc-*) machine=sparc ;;
4363 sparc64-*) machine=sparc ;;
4364 esac
4367 ## FreeBSD kernel + glibc based userland
4368 *-*-kfreebsd*gnu* )
4369 opsys=gnu-kfreebsd
4370 case "${canonical}" in
4371 alpha*) machine=alpha ;;
4372 amd64-*|x86_64-*) machine=amdx86-64 ;;
4373 ia64-*) machine=ia64 ;;
4374 i[3456]86-*) machine=intel386 ;;
4375 powerpc-*) machine=macppc ;;
4376 sparc-*) machine=sparc ;;
4377 sparc64-*) machine=sparc ;;
4378 esac
4381 ## NetBSD ports
4382 *-*-netbsd* )
4383 opsys=netbsd
4384 case "${canonical}" in
4385 alpha*) machine=alpha ;;
4386 x86_64-*) machine=amdx86-64 ;;
4387 i[3456]86-*) machine=intel386 ;;
4388 m68k-*) machine=m68k ;;
4389 powerpc-*) machine=macppc ;;
4390 sparc*-) machine=sparc ;;
4391 vax-*) machine=vax ;;
4392 esac
4395 ## OpenBSD ports
4396 *-*-openbsd* )
4397 opsys=openbsd
4398 case "${canonical}" in
4399 alpha*) machine=alpha ;;
4400 x86_64-*) machine=amdx86-64 ;;
4401 i386-*) machine=intel386 ;;
4402 powerpc-*) machine=macppc ;;
4403 sparc*) machine=sparc ;;
4404 vax-*) machine=vax ;;
4405 esac
4408 ## Apple Darwin / Mac OS X
4409 *-apple-darwin* )
4410 case "${canonical}" in
4411 i[3456]86-* ) machine=intel386 ;;
4412 powerpc-* ) machine=macppc ;;
4413 x86_64-* ) machine=amdx86-64 ;;
4414 * ) unported=yes ;;
4415 esac
4416 opsys=darwin
4417 # Define CPP as follows to make autoconf work correctly.
4418 CPP="${CC-cc} -E -no-cpp-precomp"
4419 # Use fink packages if available.
4420 if test -d /sw/include && test -d /sw/lib; then
4421 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4422 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4423 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4427 ## HP 9000 series 700 and 800, running HP/UX
4428 hppa*-hp-hpux10.2* )
4429 opsys=hpux10-20
4431 hppa*-hp-hpux1[1-9]* )
4432 opsys=hpux11
4433 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4436 ia64*-hp-hpux1[1-9]* )
4437 machine=hp800 opsys=hpux11
4438 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4439 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4440 CANNOT_DUMP=yes
4443 hppa*-*-linux-gnu* )
4444 machine=hp800 opsys=gnu-linux
4447 ## IBM machines
4448 rs6000-ibm-aix4.[23]* )
4449 machine=ibmrs6000 opsys=aix4-2
4451 powerpc-ibm-aix4.[23]* )
4452 machine=ibmrs6000 opsys=aix4-2
4454 rs6000-ibm-aix[56]* )
4455 machine=ibmrs6000 opsys=aix4-2
4457 powerpc-ibm-aix[56]* )
4458 machine=ibmrs6000 opsys=aix4-2
4461 ## Silicon Graphics machines
4462 ## Iris 4D
4463 mips-sgi-irix6.5 )
4464 machine=iris4d opsys=irix6-5
4465 # Without defining _LANGUAGE_C, things get masked out in the headers
4466 # so that, for instance, grepping for `free' in stdlib.h fails and
4467 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4468 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4469 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4472 ## Suns
4473 *-sun-solaris* \
4474 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4475 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4476 case "${canonical}" in
4477 i[3456]86-*-* ) machine=intel386 ;;
4478 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4479 sparc* ) machine=sparc ;;
4480 * ) unported=yes ;;
4481 esac
4482 case "${canonical}" in
4483 *-sunos5.6* | *-solaris2.6* )
4484 opsys=sol2-6
4485 NON_GNU_CPP=/usr/ccs/lib/cpp
4486 RANLIB="ar -ts"
4488 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4489 opsys=sol2-6
4490 emacs_check_sunpro_c=yes
4491 NON_GNU_CPP=/usr/ccs/lib/cpp
4493 *-sunos5* | *-solaris* )
4494 opsys=sol2-10
4495 emacs_check_sunpro_c=yes
4496 NON_GNU_CPP=/usr/ccs/lib/cpp
4498 esac
4499 ## Watch out for a compiler that we know will not work.
4500 case "${canonical}" in
4501 *-solaris* | *-sunos5* )
4502 if [ "x$CC" = x/usr/ucb/cc ]; then
4503 ## /usr/ucb/cc doesn't work;
4504 ## we should find some other compiler that does work.
4505 unset CC
4508 *) ;;
4509 esac
4512 ## Intel 386 machines where we don't care about the manufacturer.
4513 i[3456]86-*-* )
4514 machine=intel386
4515 case "${canonical}" in
4516 *-cygwin ) opsys=cygwin ;;
4517 *-darwin* ) opsys=darwin
4518 CPP="${CC-cc} -E -no-cpp-precomp"
4520 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4521 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4522 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4523 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4524 esac
4528 unported=yes
4530 esac
4532 ### If the code above didn't choose an operating system, just choose
4533 ### an operating system based on the configuration name. You really
4534 ### only want to use this when you have no idea what the right
4535 ### operating system is; if you know what operating systems a machine
4536 ### runs, it's cleaner to make it explicit in the case statement
4537 ### above.
4538 if test x"${opsys}" = x; then
4539 case "${canonical}" in
4540 *-gnu* ) opsys=gnu ;;
4542 unported=yes
4544 esac
4549 if test $unported = yes; then
4550 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4551 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4554 if test -n "$machine"; then
4555 machfile="m/${machine}.h"
4556 else
4557 machfile=
4559 opsysfile="s/${opsys}.h"
4562 #### Choose a compiler.
4563 test -n "$CC" && cc_specified=yes
4565 # Save the value of CFLAGS that the user specified.
4566 SPECIFIED_CFLAGS="$CFLAGS"
4568 ac_ext=c
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573 if test -n "$ac_tool_prefix"; then
4574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4575 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if test "${ac_cv_prog_CC+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -n "$CC"; then
4582 ac_cv_prog_CC="$CC" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4595 done
4596 done
4597 IFS=$as_save_IFS
4601 CC=$ac_cv_prog_CC
4602 if test -n "$CC"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4604 $as_echo "$CC" >&6; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4612 if test -z "$ac_cv_prog_CC"; then
4613 ac_ct_CC=$CC
4614 # Extract the first word of "gcc", so it can be a program name with args.
4615 set dummy gcc; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -n "$ac_ct_CC"; then
4622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_ac_ct_CC="gcc"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4635 done
4636 done
4637 IFS=$as_save_IFS
4641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4642 if test -n "$ac_ct_CC"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4644 $as_echo "$ac_ct_CC" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4650 if test "x$ac_ct_CC" = x; then
4651 CC=""
4652 else
4653 case $cross_compiling:$ac_tool_warned in
4654 yes:)
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4657 ac_tool_warned=yes ;;
4658 esac
4659 CC=$ac_ct_CC
4661 else
4662 CC="$ac_cv_prog_CC"
4665 if test -z "$CC"; then
4666 if test -n "$ac_tool_prefix"; then
4667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4668 set dummy ${ac_tool_prefix}cc; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_CC+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$CC"; then
4675 ac_cv_prog_CC="$CC" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_CC="${ac_tool_prefix}cc"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4688 done
4689 done
4690 IFS=$as_save_IFS
4694 CC=$ac_cv_prog_CC
4695 if test -n "$CC"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4697 $as_echo "$CC" >&6; }
4698 else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4706 if test -z "$CC"; then
4707 # Extract the first word of "cc", so it can be a program name with args.
4708 set dummy cc; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if test "${ac_cv_prog_CC+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 if test -n "$CC"; then
4715 ac_cv_prog_CC="$CC" # Let the user override the test.
4716 else
4717 ac_prog_rejected=no
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4726 ac_prog_rejected=yes
4727 continue
4729 ac_cv_prog_CC="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
4737 if test $ac_prog_rejected = yes; then
4738 # We found a bogon in the path, so make sure we never use it.
4739 set dummy $ac_cv_prog_CC
4740 shift
4741 if test $# != 0; then
4742 # We chose a different compiler from the bogus one.
4743 # However, it has the same basename, so the bogon will be chosen
4744 # first if we set CC to just the basename; use the full file name.
4745 shift
4746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4751 CC=$ac_cv_prog_CC
4752 if test -n "$CC"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4754 $as_echo "$CC" >&6; }
4755 else
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4762 if test -z "$CC"; then
4763 if test -n "$ac_tool_prefix"; then
4764 for ac_prog in cl.exe
4766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769 $as_echo_n "checking for $ac_word... " >&6; }
4770 if test "${ac_cv_prog_CC+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 if test -n "$CC"; then
4774 ac_cv_prog_CC="$CC" # Let the user override the test.
4775 else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4787 done
4788 done
4789 IFS=$as_save_IFS
4793 CC=$ac_cv_prog_CC
4794 if test -n "$CC"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4796 $as_echo "$CC" >&6; }
4797 else
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799 $as_echo "no" >&6; }
4803 test -n "$CC" && break
4804 done
4806 if test -z "$CC"; then
4807 ac_ct_CC=$CC
4808 for ac_prog in cl.exe
4810 # Extract the first word of "$ac_prog", so it can be a program name with args.
4811 set dummy $ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$ac_ct_CC"; then
4818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_ac_ct_CC="$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4831 done
4832 done
4833 IFS=$as_save_IFS
4837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4838 if test -n "$ac_ct_CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4840 $as_echo "$ac_ct_CC" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4847 test -n "$ac_ct_CC" && break
4848 done
4850 if test "x$ac_ct_CC" = x; then
4851 CC=""
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859 CC=$ac_ct_CC
4866 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4868 as_fn_error "no acceptable C compiler found in \$PATH
4869 See \`config.log' for more details." "$LINENO" 5; }
4871 # Provide some information about the compiler.
4872 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4873 set X $ac_compile
4874 ac_compiler=$2
4875 for ac_option in --version -v -V -qversion; do
4876 { { ac_try="$ac_compiler $ac_option >&5"
4877 case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880 esac
4881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4882 $as_echo "$ac_try_echo"; } >&5
4883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4884 ac_status=$?
4885 if test -s conftest.err; then
4886 sed '10a\
4887 ... rest of stderr output deleted ...
4888 10q' conftest.err >conftest.er1
4889 cat conftest.er1 >&5
4891 rm -f conftest.er1 conftest.err
4892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4893 test $ac_status = 0; }
4894 done
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4900 main ()
4904 return 0;
4906 _ACEOF
4907 ac_clean_files_save=$ac_clean_files
4908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4909 # Try to create an executable without -o first, disregard a.out.
4910 # It will help us diagnose broken compilers, and finding out an intuition
4911 # of exeext.
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4913 $as_echo_n "checking whether the C compiler works... " >&6; }
4914 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4916 # The possible output files:
4917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4919 ac_rmfiles=
4920 for ac_file in $ac_files
4922 case $ac_file in
4923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4925 esac
4926 done
4927 rm -f $ac_rmfiles
4929 if { { ac_try="$ac_link_default"
4930 case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933 esac
4934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4935 $as_echo "$ac_try_echo"; } >&5
4936 (eval "$ac_link_default") 2>&5
4937 ac_status=$?
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }; then :
4940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4941 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4942 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4943 # so that the user can short-circuit this test for compilers unknown to
4944 # Autoconf.
4945 for ac_file in $ac_files ''
4947 test -f "$ac_file" || continue
4948 case $ac_file in
4949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4951 [ab].out )
4952 # We found the default executable, but exeext='' is most
4953 # certainly right.
4954 break;;
4955 *.* )
4956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4957 then :; else
4958 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4960 # We set ac_cv_exeext here because the later test for it is not
4961 # safe: cross compilers may not add the suffix if given an `-o'
4962 # argument, so we may need to know it at that point already.
4963 # Even if this section looks crufty: it has the advantage of
4964 # actually working.
4965 break;;
4967 break;;
4968 esac
4969 done
4970 test "$ac_cv_exeext" = no && ac_cv_exeext=
4972 else
4973 ac_file=''
4975 if test -z "$ac_file"; then :
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4978 $as_echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4983 { as_fn_set_status 77
4984 as_fn_error "C compiler cannot create executables
4985 See \`config.log' for more details." "$LINENO" 5; }; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4988 $as_echo "yes" >&6; }
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4991 $as_echo_n "checking for C compiler default output file name... " >&6; }
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4993 $as_echo "$ac_file" >&6; }
4994 ac_exeext=$ac_cv_exeext
4996 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4997 ac_clean_files=$ac_clean_files_save
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4999 $as_echo_n "checking for suffix of executables... " >&6; }
5000 if { { ac_try="$ac_link"
5001 case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004 esac
5005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5006 $as_echo "$ac_try_echo"; } >&5
5007 (eval "$ac_link") 2>&5
5008 ac_status=$?
5009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5010 test $ac_status = 0; }; then :
5011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5012 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5013 # work properly (i.e., refer to `conftest.exe'), while it won't with
5014 # `rm'.
5015 for ac_file in conftest.exe conftest conftest.*; do
5016 test -f "$ac_file" || continue
5017 case $ac_file in
5018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5020 break;;
5021 * ) break;;
5022 esac
5023 done
5024 else
5025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5027 as_fn_error "cannot compute suffix of executables: cannot compile and link
5028 See \`config.log' for more details." "$LINENO" 5; }
5030 rm -f conftest conftest$ac_cv_exeext
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5032 $as_echo "$ac_cv_exeext" >&6; }
5034 rm -f conftest.$ac_ext
5035 EXEEXT=$ac_cv_exeext
5036 ac_exeext=$EXEEXT
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 #include <stdio.h>
5041 main ()
5043 FILE *f = fopen ("conftest.out", "w");
5044 return ferror (f) || fclose (f) != 0;
5047 return 0;
5049 _ACEOF
5050 ac_clean_files="$ac_clean_files conftest.out"
5051 # Check that the compiler produces executables we can run. If not, either
5052 # the compiler is broken, or we cross compile.
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5054 $as_echo_n "checking whether we are cross compiling... " >&6; }
5055 if test "$cross_compiling" != yes; then
5056 { { ac_try="$ac_link"
5057 case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060 esac
5061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5062 $as_echo "$ac_try_echo"; } >&5
5063 (eval "$ac_link") 2>&5
5064 ac_status=$?
5065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5066 test $ac_status = 0; }
5067 if { ac_try='./conftest$ac_cv_exeext'
5068 { { case "(($ac_try" in
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5071 esac
5072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5073 $as_echo "$ac_try_echo"; } >&5
5074 (eval "$ac_try") 2>&5
5075 ac_status=$?
5076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5077 test $ac_status = 0; }; }; then
5078 cross_compiling=no
5079 else
5080 if test "$cross_compiling" = maybe; then
5081 cross_compiling=yes
5082 else
5083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5085 as_fn_error "cannot run C compiled programs.
5086 If you meant to cross compile, use \`--host'.
5087 See \`config.log' for more details." "$LINENO" 5; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5092 $as_echo "$cross_compiling" >&6; }
5094 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5095 ac_clean_files=$ac_clean_files_save
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5097 $as_echo_n "checking for suffix of object files... " >&6; }
5098 if test "${ac_cv_objext+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5105 main ()
5109 return 0;
5111 _ACEOF
5112 rm -f conftest.o conftest.obj
5113 if { { ac_try="$ac_compile"
5114 case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5117 esac
5118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5119 $as_echo "$ac_try_echo"; } >&5
5120 (eval "$ac_compile") 2>&5
5121 ac_status=$?
5122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5123 test $ac_status = 0; }; then :
5124 for ac_file in conftest.o conftest.obj conftest.*; do
5125 test -f "$ac_file" || continue;
5126 case $ac_file in
5127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5129 break;;
5130 esac
5131 done
5132 else
5133 $as_echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5138 as_fn_error "cannot compute suffix of object files: cannot compile
5139 See \`config.log' for more details." "$LINENO" 5; }
5141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5144 $as_echo "$ac_cv_objext" >&6; }
5145 OBJEXT=$ac_cv_objext
5146 ac_objext=$OBJEXT
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5149 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5156 main ()
5158 #ifndef __GNUC__
5159 choke me
5160 #endif
5163 return 0;
5165 _ACEOF
5166 if ac_fn_c_try_compile "$LINENO"; then :
5167 ac_compiler_gnu=yes
5168 else
5169 ac_compiler_gnu=no
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5176 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5177 if test $ac_compiler_gnu = yes; then
5178 GCC=yes
5179 else
5180 GCC=
5182 ac_test_CFLAGS=${CFLAGS+set}
5183 ac_save_CFLAGS=$CFLAGS
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5185 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5186 if test "${ac_cv_prog_cc_g+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 ac_save_c_werror_flag=$ac_c_werror_flag
5190 ac_c_werror_flag=yes
5191 ac_cv_prog_cc_g=no
5192 CFLAGS="-g"
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5197 main ()
5201 return 0;
5203 _ACEOF
5204 if ac_fn_c_try_compile "$LINENO"; then :
5205 ac_cv_prog_cc_g=yes
5206 else
5207 CFLAGS=""
5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h. */
5212 main ()
5216 return 0;
5218 _ACEOF
5219 if ac_fn_c_try_compile "$LINENO"; then :
5221 else
5222 ac_c_werror_flag=$ac_save_c_werror_flag
5223 CFLAGS="-g"
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5228 main ()
5232 return 0;
5234 _ACEOF
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 ac_cv_prog_cc_g=yes
5238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243 ac_c_werror_flag=$ac_save_c_werror_flag
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5246 $as_echo "$ac_cv_prog_cc_g" >&6; }
5247 if test "$ac_test_CFLAGS" = set; then
5248 CFLAGS=$ac_save_CFLAGS
5249 elif test $ac_cv_prog_cc_g = yes; then
5250 if test "$GCC" = yes; then
5251 CFLAGS="-g -O2"
5252 else
5253 CFLAGS="-g"
5255 else
5256 if test "$GCC" = yes; then
5257 CFLAGS="-O2"
5258 else
5259 CFLAGS=
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5264 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 ac_cv_prog_cc_c89=no
5268 ac_save_CC=$CC
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 #include <stdarg.h>
5272 #include <stdio.h>
5273 #include <sys/types.h>
5274 #include <sys/stat.h>
5275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5276 struct buf { int x; };
5277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5278 static char *e (p, i)
5279 char **p;
5280 int i;
5282 return p[i];
5284 static char *f (char * (*g) (char **, int), char **p, ...)
5286 char *s;
5287 va_list v;
5288 va_start (v,p);
5289 s = g (p, va_arg (v,int));
5290 va_end (v);
5291 return s;
5294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5295 function prototypes and stuff, but not '\xHH' hex character constants.
5296 These don't provoke an error unfortunately, instead are silently treated
5297 as 'x'. The following induces an error, until -std is added to get
5298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5299 array size at least. It's necessary to write '\x00'==0 to get something
5300 that's true only with -std. */
5301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5304 inside strings and character constants. */
5305 #define FOO(x) 'x'
5306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5308 int test (int i, double x);
5309 struct s1 {int (*f) (int a);};
5310 struct s2 {int (*f) (double a);};
5311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5312 int argc;
5313 char **argv;
5315 main ()
5317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5319 return 0;
5321 _ACEOF
5322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5325 CC="$ac_save_CC $ac_arg"
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327 ac_cv_prog_cc_c89=$ac_arg
5329 rm -f core conftest.err conftest.$ac_objext
5330 test "x$ac_cv_prog_cc_c89" != "xno" && break
5331 done
5332 rm -f conftest.$ac_ext
5333 CC=$ac_save_CC
5336 # AC_CACHE_VAL
5337 case "x$ac_cv_prog_cc_c89" in
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5340 $as_echo "none needed" >&6; } ;;
5341 xno)
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5343 $as_echo "unsupported" >&6; } ;;
5345 CC="$CC $ac_cv_prog_cc_c89"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5347 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5348 esac
5349 if test "x$ac_cv_prog_cc_c89" != xno; then :
5353 ac_ext=c
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358 DEPDIR="${am__leading_dot}deps"
5360 ac_config_commands="$ac_config_commands depfiles"
5363 am_make=${MAKE-make}
5364 cat > confinc << 'END'
5365 am__doit:
5366 @echo this is the am__doit target
5367 .PHONY: am__doit
5369 # If we don't find an include directive, just comment out the code.
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5371 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5372 am__include="#"
5373 am__quote=
5374 _am_result=none
5375 # First try GNU make style include.
5376 echo "include confinc" > confmf
5377 # Ignore all kinds of additional output from `make'.
5378 case `$am_make -s -f confmf 2> /dev/null` in #(
5379 *the\ am__doit\ target*)
5380 am__include=include
5381 am__quote=
5382 _am_result=GNU
5384 esac
5385 # Now try BSD make style include.
5386 if test "$am__include" = "#"; then
5387 echo '.include "confinc"' > confmf
5388 case `$am_make -s -f confmf 2> /dev/null` in #(
5389 *the\ am__doit\ target*)
5390 am__include=.include
5391 am__quote="\""
5392 _am_result=BSD
5394 esac
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5399 $as_echo "$_am_result" >&6; }
5400 rm -f confinc confmf
5402 # Check whether --enable-dependency-tracking was given.
5403 if test "${enable_dependency_tracking+set}" = set; then :
5404 enableval=$enable_dependency_tracking;
5407 if test "x$enable_dependency_tracking" != xno; then
5408 am_depcomp="$ac_aux_dir/depcomp"
5409 AMDEPBACKSLASH='\'
5411 if test "x$enable_dependency_tracking" != xno; then
5412 AMDEP_TRUE=
5413 AMDEP_FALSE='#'
5414 else
5415 AMDEP_TRUE='#'
5416 AMDEP_FALSE=
5421 depcc="$CC" am_compiler_list=
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5424 $as_echo_n "checking dependency style of $depcc... " >&6; }
5425 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5429 # We make a subdir and do the tests there. Otherwise we can end up
5430 # making bogus files that we don't know about and never remove. For
5431 # instance it was reported that on HP-UX the gcc test will end up
5432 # making a dummy file named `D' -- because `-MD' means `put the output
5433 # in D'.
5434 mkdir conftest.dir
5435 # Copy depcomp to subdir because otherwise we won't find it if we're
5436 # using a relative directory.
5437 cp "$am_depcomp" conftest.dir
5438 cd conftest.dir
5439 # We will build objects and dependencies in a subdirectory because
5440 # it helps to detect inapplicable dependency modes. For instance
5441 # both Tru64's cc and ICC support -MD to output dependencies as a
5442 # side effect of compilation, but ICC will put the dependencies in
5443 # the current directory while Tru64 will put them in the object
5444 # directory.
5445 mkdir sub
5447 am_cv_CC_dependencies_compiler_type=none
5448 if test "$am_compiler_list" = ""; then
5449 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5451 am__universal=false
5452 case " $depcc " in #(
5453 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5454 esac
5456 for depmode in $am_compiler_list; do
5457 # Setup a source with many dependencies, because some compilers
5458 # like to wrap large dependency lists on column 80 (with \), and
5459 # we should not choose a depcomp mode which is confused by this.
5461 # We need to recreate these files for each test, as the compiler may
5462 # overwrite some of them when testing with obscure command lines.
5463 # This happens at least with the AIX C compiler.
5464 : > sub/conftest.c
5465 for i in 1 2 3 4 5 6; do
5466 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5467 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5468 # Solaris 8's {/usr,}/bin/sh.
5469 touch sub/conftst$i.h
5470 done
5471 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5473 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5474 # mode. It turns out that the SunPro C++ compiler does not properly
5475 # handle `-M -o', and we need to detect this. Also, some Intel
5476 # versions had trouble with output in subdirs
5477 am__obj=sub/conftest.${OBJEXT-o}
5478 am__minus_obj="-o $am__obj"
5479 case $depmode in
5480 gcc)
5481 # This depmode causes a compiler race in universal mode.
5482 test "$am__universal" = false || continue
5484 nosideeffect)
5485 # after this tag, mechanisms are not by side-effect, so they'll
5486 # only be used when explicitly requested
5487 if test "x$enable_dependency_tracking" = xyes; then
5488 continue
5489 else
5490 break
5493 msvisualcpp | msvcmsys)
5494 # This compiler won't grok `-c -o', but also, the minuso test has
5495 # not run yet. These depmodes are late enough in the game, and
5496 # so weak that their functioning should not be impacted.
5497 am__obj=conftest.${OBJEXT-o}
5498 am__minus_obj=
5500 none) break ;;
5501 esac
5502 if depmode=$depmode \
5503 source=sub/conftest.c object=$am__obj \
5504 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5505 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5506 >/dev/null 2>conftest.err &&
5507 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5508 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5509 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5510 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5511 # icc doesn't choke on unknown options, it will just issue warnings
5512 # or remarks (even with -Werror). So we grep stderr for any message
5513 # that says an option was ignored or not supported.
5514 # When given -MP, icc 7.0 and 7.1 complain thusly:
5515 # icc: Command line warning: ignoring option '-M'; no argument required
5516 # The diagnosis changed in icc 8.0:
5517 # icc: Command line remark: option '-MP' not supported
5518 if (grep 'ignoring option' conftest.err ||
5519 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5520 am_cv_CC_dependencies_compiler_type=$depmode
5521 break
5524 done
5526 cd ..
5527 rm -rf conftest.dir
5528 else
5529 am_cv_CC_dependencies_compiler_type=none
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5534 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5535 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5538 test "x$enable_dependency_tracking" != xno \
5539 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5540 am__fastdepCC_TRUE=
5541 am__fastdepCC_FALSE='#'
5542 else
5543 am__fastdepCC_TRUE='#'
5544 am__fastdepCC_FALSE=
5548 if test "x$CC" != xcc; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5550 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5551 else
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5553 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5555 set dummy $CC; ac_cc=`$as_echo "$2" |
5556 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5557 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5564 main ()
5568 return 0;
5570 _ACEOF
5571 # Make sure it works both with $CC and with simple cc.
5572 # We do the test twice because some compilers refuse to overwrite an
5573 # existing .o file with -o, though they will create one.
5574 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5575 rm -f conftest2.*
5576 if { { case "(($ac_try" in
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5579 esac
5580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5581 $as_echo "$ac_try_echo"; } >&5
5582 (eval "$ac_try") 2>&5
5583 ac_status=$?
5584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5585 test $ac_status = 0; } &&
5586 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5591 $as_echo "$ac_try_echo"; } >&5
5592 (eval "$ac_try") 2>&5
5593 ac_status=$?
5594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5595 test $ac_status = 0; };
5596 then
5597 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5598 if test "x$CC" != xcc; then
5599 # Test first that cc exists at all.
5600 if { ac_try='cc -c conftest.$ac_ext >&5'
5601 { { case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604 esac
5605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5606 $as_echo "$ac_try_echo"; } >&5
5607 (eval "$ac_try") 2>&5
5608 ac_status=$?
5609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5610 test $ac_status = 0; }; }; then
5611 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5612 rm -f conftest2.*
5613 if { { case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616 esac
5617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5618 $as_echo "$ac_try_echo"; } >&5
5619 (eval "$ac_try") 2>&5
5620 ac_status=$?
5621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622 test $ac_status = 0; } &&
5623 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5628 $as_echo "$ac_try_echo"; } >&5
5629 (eval "$ac_try") 2>&5
5630 ac_status=$?
5631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5632 test $ac_status = 0; };
5633 then
5634 # cc works too.
5636 else
5637 # cc exists but doesn't like -o.
5638 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5642 else
5643 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5645 rm -f core conftest*
5648 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 $as_echo "yes" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5655 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5659 # FIXME: we rely on the cache variable name because
5660 # there is no other way.
5661 set dummy $CC
5662 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5663 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5664 if test "$am_t" != yes; then
5665 # Losing compiler, so override with the script.
5666 # FIXME: It is wrong to rewrite CC.
5667 # But if we don't then we get into trouble of one sort or another.
5668 # A longer-term fix would be to have automake use am__CC in this case,
5669 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5670 CC="$am_aux_dir/compile $CC"
5675 # Initialize gnulib right after verifying that the C compiler works.
5676 if test -n "$ac_tool_prefix"; then
5677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5678 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -n "$RANLIB"; then
5685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5698 done
5699 done
5700 IFS=$as_save_IFS
5704 RANLIB=$ac_cv_prog_RANLIB
5705 if test -n "$RANLIB"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5707 $as_echo "$RANLIB" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5715 if test -z "$ac_cv_prog_RANLIB"; then
5716 ac_ct_RANLIB=$RANLIB
5717 # Extract the first word of "ranlib", so it can be a program name with args.
5718 set dummy ranlib; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 if test -n "$ac_ct_RANLIB"; then
5725 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_ac_ct_RANLIB="ranlib"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5738 done
5739 done
5740 IFS=$as_save_IFS
5744 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5745 if test -n "$ac_ct_RANLIB"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5747 $as_echo "$ac_ct_RANLIB" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5753 if test "x$ac_ct_RANLIB" = x; then
5754 RANLIB=":"
5755 else
5756 case $cross_compiling:$ac_tool_warned in
5757 yes:)
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5760 ac_tool_warned=yes ;;
5761 esac
5762 RANLIB=$ac_ct_RANLIB
5764 else
5765 RANLIB="$ac_cv_prog_RANLIB"
5769 ac_ext=c
5770 ac_cpp='$CPP $CPPFLAGS'
5771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5775 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5776 # On Suns, sometimes $CPP names a directory.
5777 if test -n "$CPP" && test -d "$CPP"; then
5778 CPP=
5780 if test -z "$CPP"; then
5781 if test "${ac_cv_prog_CPP+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 # Double quotes because CPP needs to be expanded
5785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5787 ac_preproc_ok=false
5788 for ac_c_preproc_warn_flag in '' yes
5790 # Use a header file that comes with gcc, so configuring glibc
5791 # with a fresh cross-compiler works.
5792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5793 # <limits.h> exists even on freestanding compilers.
5794 # On the NeXT, cc -E runs the code through the compiler's parser,
5795 # not just through cpp. "Syntax error" is here to catch this case.
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 #ifdef __STDC__
5799 # include <limits.h>
5800 #else
5801 # include <assert.h>
5802 #endif
5803 Syntax error
5804 _ACEOF
5805 if ac_fn_c_try_cpp "$LINENO"; then :
5807 else
5808 # Broken: fails on valid input.
5809 continue
5811 rm -f conftest.err conftest.$ac_ext
5813 # OK, works on sane cases. Now check whether nonexistent headers
5814 # can be detected and how.
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 #include <ac_nonexistent.h>
5818 _ACEOF
5819 if ac_fn_c_try_cpp "$LINENO"; then :
5820 # Broken: success on invalid input.
5821 continue
5822 else
5823 # Passes both tests.
5824 ac_preproc_ok=:
5825 break
5827 rm -f conftest.err conftest.$ac_ext
5829 done
5830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5831 rm -f conftest.err conftest.$ac_ext
5832 if $ac_preproc_ok; then :
5833 break
5836 done
5837 ac_cv_prog_CPP=$CPP
5840 CPP=$ac_cv_prog_CPP
5841 else
5842 ac_cv_prog_CPP=$CPP
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5845 $as_echo "$CPP" >&6; }
5846 ac_preproc_ok=false
5847 for ac_c_preproc_warn_flag in '' yes
5849 # Use a header file that comes with gcc, so configuring glibc
5850 # with a fresh cross-compiler works.
5851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5852 # <limits.h> exists even on freestanding compilers.
5853 # On the NeXT, cc -E runs the code through the compiler's parser,
5854 # not just through cpp. "Syntax error" is here to catch this case.
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5857 #ifdef __STDC__
5858 # include <limits.h>
5859 #else
5860 # include <assert.h>
5861 #endif
5862 Syntax error
5863 _ACEOF
5864 if ac_fn_c_try_cpp "$LINENO"; then :
5866 else
5867 # Broken: fails on valid input.
5868 continue
5870 rm -f conftest.err conftest.$ac_ext
5872 # OK, works on sane cases. Now check whether nonexistent headers
5873 # can be detected and how.
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #include <ac_nonexistent.h>
5877 _ACEOF
5878 if ac_fn_c_try_cpp "$LINENO"; then :
5879 # Broken: success on invalid input.
5880 continue
5881 else
5882 # Passes both tests.
5883 ac_preproc_ok=:
5884 break
5886 rm -f conftest.err conftest.$ac_ext
5888 done
5889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5890 rm -f conftest.err conftest.$ac_ext
5891 if $ac_preproc_ok; then :
5893 else
5894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5897 See \`config.log' for more details." "$LINENO" 5; }
5900 ac_ext=c
5901 ac_cpp='$CPP $CPPFLAGS'
5902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5908 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5909 if test "${ac_cv_path_GREP+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 if test -z "$GREP"; then
5913 ac_path_GREP_found=false
5914 # Loop through the user's path and test for each of PROGNAME-LIST
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_prog in grep ggrep; do
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5923 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5924 # Check for GNU ac_path_GREP and select it if it is found.
5925 # Check for GNU $ac_path_GREP
5926 case `"$ac_path_GREP" --version 2>&1` in
5927 *GNU*)
5928 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5930 ac_count=0
5931 $as_echo_n 0123456789 >"conftest.in"
5932 while :
5934 cat "conftest.in" "conftest.in" >"conftest.tmp"
5935 mv "conftest.tmp" "conftest.in"
5936 cp "conftest.in" "conftest.nl"
5937 $as_echo 'GREP' >> "conftest.nl"
5938 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5940 as_fn_arith $ac_count + 1 && ac_count=$as_val
5941 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5942 # Best one so far, save it but keep looking for a better one
5943 ac_cv_path_GREP="$ac_path_GREP"
5944 ac_path_GREP_max=$ac_count
5946 # 10*(2^10) chars as input seems more than enough
5947 test $ac_count -gt 10 && break
5948 done
5949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5950 esac
5952 $ac_path_GREP_found && break 3
5953 done
5954 done
5955 done
5956 IFS=$as_save_IFS
5957 if test -z "$ac_cv_path_GREP"; then
5958 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5960 else
5961 ac_cv_path_GREP=$GREP
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5966 $as_echo "$ac_cv_path_GREP" >&6; }
5967 GREP="$ac_cv_path_GREP"
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5971 $as_echo_n "checking for egrep... " >&6; }
5972 if test "${ac_cv_path_EGREP+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5976 then ac_cv_path_EGREP="$GREP -E"
5977 else
5978 if test -z "$EGREP"; then
5979 ac_path_EGREP_found=false
5980 # Loop through the user's path and test for each of PROGNAME-LIST
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_prog in egrep; do
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5989 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5990 # Check for GNU ac_path_EGREP and select it if it is found.
5991 # Check for GNU $ac_path_EGREP
5992 case `"$ac_path_EGREP" --version 2>&1` in
5993 *GNU*)
5994 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5996 ac_count=0
5997 $as_echo_n 0123456789 >"conftest.in"
5998 while :
6000 cat "conftest.in" "conftest.in" >"conftest.tmp"
6001 mv "conftest.tmp" "conftest.in"
6002 cp "conftest.in" "conftest.nl"
6003 $as_echo 'EGREP' >> "conftest.nl"
6004 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6006 as_fn_arith $ac_count + 1 && ac_count=$as_val
6007 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6008 # Best one so far, save it but keep looking for a better one
6009 ac_cv_path_EGREP="$ac_path_EGREP"
6010 ac_path_EGREP_max=$ac_count
6012 # 10*(2^10) chars as input seems more than enough
6013 test $ac_count -gt 10 && break
6014 done
6015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6016 esac
6018 $ac_path_EGREP_found && break 3
6019 done
6020 done
6021 done
6022 IFS=$as_save_IFS
6023 if test -z "$ac_cv_path_EGREP"; then
6024 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6026 else
6027 ac_cv_path_EGREP=$EGREP
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6033 $as_echo "$ac_cv_path_EGREP" >&6; }
6034 EGREP="$ac_cv_path_EGREP"
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6038 $as_echo_n "checking for ANSI C header files... " >&6; }
6039 if test "${ac_cv_header_stdc+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #include <stdlib.h>
6045 #include <stdarg.h>
6046 #include <string.h>
6047 #include <float.h>
6050 main ()
6054 return 0;
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"; then :
6058 ac_cv_header_stdc=yes
6059 else
6060 ac_cv_header_stdc=no
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064 if test $ac_cv_header_stdc = yes; then
6065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 #include <string.h>
6070 _ACEOF
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 $EGREP "memchr" >/dev/null 2>&1; then :
6074 else
6075 ac_cv_header_stdc=no
6077 rm -f conftest*
6081 if test $ac_cv_header_stdc = yes; then
6082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 #include <stdlib.h>
6087 _ACEOF
6088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6089 $EGREP "free" >/dev/null 2>&1; then :
6091 else
6092 ac_cv_header_stdc=no
6094 rm -f conftest*
6098 if test $ac_cv_header_stdc = yes; then
6099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6100 if test "$cross_compiling" = yes; then :
6102 else
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 #include <ctype.h>
6106 #include <stdlib.h>
6107 #if ((' ' & 0x0FF) == 0x020)
6108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6110 #else
6111 # define ISLOWER(c) \
6112 (('a' <= (c) && (c) <= 'i') \
6113 || ('j' <= (c) && (c) <= 'r') \
6114 || ('s' <= (c) && (c) <= 'z'))
6115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6116 #endif
6118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6120 main ()
6122 int i;
6123 for (i = 0; i < 256; i++)
6124 if (XOR (islower (i), ISLOWER (i))
6125 || toupper (i) != TOUPPER (i))
6126 return 2;
6127 return 0;
6129 _ACEOF
6130 if ac_fn_c_try_run "$LINENO"; then :
6132 else
6133 ac_cv_header_stdc=no
6135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6136 conftest.$ac_objext conftest.beam conftest.$ac_ext
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6142 $as_echo "$ac_cv_header_stdc" >&6; }
6143 if test $ac_cv_header_stdc = yes; then
6145 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6149 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6150 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6151 inttypes.h stdint.h unistd.h
6152 do :
6153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6154 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6156 eval as_val=\$$as_ac_Header
6157 if test "x$as_val" = x""yes; then :
6158 cat >>confdefs.h <<_ACEOF
6159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6160 _ACEOF
6164 done
6170 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6171 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6172 MINIX=yes
6173 else
6174 MINIX=
6178 if test "$MINIX" = yes; then
6180 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6183 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6186 $as_echo "#define _MINIX 1" >>confdefs.h
6190 case "$host_os" in
6191 hpux*)
6193 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6196 esac
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6200 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6201 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6207 # define __EXTENSIONS__ 1
6208 $ac_includes_default
6210 main ()
6214 return 0;
6216 _ACEOF
6217 if ac_fn_c_try_compile "$LINENO"; then :
6218 ac_cv_safe_to_define___extensions__=yes
6219 else
6220 ac_cv_safe_to_define___extensions__=no
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6225 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6226 test $ac_cv_safe_to_define___extensions__ = yes &&
6227 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6229 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6231 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6233 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6235 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6244 case $ac_cv_prog_cc_stdc in #(
6245 no) :
6246 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6247 *) :
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6249 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6250 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 ac_cv_prog_cc_c99=no
6254 ac_save_CC=$CC
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #include <stdarg.h>
6258 #include <stdbool.h>
6259 #include <stdlib.h>
6260 #include <wchar.h>
6261 #include <stdio.h>
6263 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6264 #define debug(...) fprintf (stderr, __VA_ARGS__)
6265 #define showlist(...) puts (#__VA_ARGS__)
6266 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6267 static void
6268 test_varargs_macros (void)
6270 int x = 1234;
6271 int y = 5678;
6272 debug ("Flag");
6273 debug ("X = %d\n", x);
6274 showlist (The first, second, and third items.);
6275 report (x>y, "x is %d but y is %d", x, y);
6278 // Check long long types.
6279 #define BIG64 18446744073709551615ull
6280 #define BIG32 4294967295ul
6281 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6282 #if !BIG_OK
6283 your preprocessor is broken;
6284 #endif
6285 #if BIG_OK
6286 #else
6287 your preprocessor is broken;
6288 #endif
6289 static long long int bignum = -9223372036854775807LL;
6290 static unsigned long long int ubignum = BIG64;
6292 struct incomplete_array
6294 int datasize;
6295 double data[];
6298 struct named_init {
6299 int number;
6300 const wchar_t *name;
6301 double average;
6304 typedef const char *ccp;
6306 static inline int
6307 test_restrict (ccp restrict text)
6309 // See if C++-style comments work.
6310 // Iterate through items via the restricted pointer.
6311 // Also check for declarations in for loops.
6312 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6313 continue;
6314 return 0;
6317 // Check varargs and va_copy.
6318 static void
6319 test_varargs (const char *format, ...)
6321 va_list args;
6322 va_start (args, format);
6323 va_list args_copy;
6324 va_copy (args_copy, args);
6326 const char *str;
6327 int number;
6328 float fnumber;
6330 while (*format)
6332 switch (*format++)
6334 case 's': // string
6335 str = va_arg (args_copy, const char *);
6336 break;
6337 case 'd': // int
6338 number = va_arg (args_copy, int);
6339 break;
6340 case 'f': // float
6341 fnumber = va_arg (args_copy, double);
6342 break;
6343 default:
6344 break;
6347 va_end (args_copy);
6348 va_end (args);
6352 main ()
6355 // Check bool.
6356 _Bool success = false;
6358 // Check restrict.
6359 if (test_restrict ("String literal") == 0)
6360 success = true;
6361 char *restrict newvar = "Another string";
6363 // Check varargs.
6364 test_varargs ("s, d' f .", "string", 65, 34.234);
6365 test_varargs_macros ();
6367 // Check flexible array members.
6368 struct incomplete_array *ia =
6369 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6370 ia->datasize = 10;
6371 for (int i = 0; i < ia->datasize; ++i)
6372 ia->data[i] = i * 1.234;
6374 // Check named initializers.
6375 struct named_init ni = {
6376 .number = 34,
6377 .name = L"Test wide string",
6378 .average = 543.34343,
6381 ni.number = 58;
6383 int dynamic_array[ni.number];
6384 dynamic_array[ni.number - 1] = 543;
6386 // work around unused variable warnings
6387 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6388 || dynamic_array[ni.number - 1] != 543);
6391 return 0;
6393 _ACEOF
6394 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6396 CC="$ac_save_CC $ac_arg"
6397 if ac_fn_c_try_compile "$LINENO"; then :
6398 ac_cv_prog_cc_c99=$ac_arg
6400 rm -f core conftest.err conftest.$ac_objext
6401 test "x$ac_cv_prog_cc_c99" != "xno" && break
6402 done
6403 rm -f conftest.$ac_ext
6404 CC=$ac_save_CC
6407 # AC_CACHE_VAL
6408 case "x$ac_cv_prog_cc_c99" in
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6411 $as_echo "none needed" >&6; } ;;
6412 xno)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6414 $as_echo "unsupported" >&6; } ;;
6416 CC="$CC $ac_cv_prog_cc_c99"
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6418 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6419 esac
6420 if test "x$ac_cv_prog_cc_c99" != xno; then :
6421 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6424 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6425 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 ac_cv_prog_cc_c89=no
6429 ac_save_CC=$CC
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 #include <stdarg.h>
6433 #include <stdio.h>
6434 #include <sys/types.h>
6435 #include <sys/stat.h>
6436 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6437 struct buf { int x; };
6438 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6439 static char *e (p, i)
6440 char **p;
6441 int i;
6443 return p[i];
6445 static char *f (char * (*g) (char **, int), char **p, ...)
6447 char *s;
6448 va_list v;
6449 va_start (v,p);
6450 s = g (p, va_arg (v,int));
6451 va_end (v);
6452 return s;
6455 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6456 function prototypes and stuff, but not '\xHH' hex character constants.
6457 These don't provoke an error unfortunately, instead are silently treated
6458 as 'x'. The following induces an error, until -std is added to get
6459 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6460 array size at least. It's necessary to write '\x00'==0 to get something
6461 that's true only with -std. */
6462 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6464 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6465 inside strings and character constants. */
6466 #define FOO(x) 'x'
6467 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6469 int test (int i, double x);
6470 struct s1 {int (*f) (int a);};
6471 struct s2 {int (*f) (double a);};
6472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6473 int argc;
6474 char **argv;
6476 main ()
6478 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6480 return 0;
6482 _ACEOF
6483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6484 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6486 CC="$ac_save_CC $ac_arg"
6487 if ac_fn_c_try_compile "$LINENO"; then :
6488 ac_cv_prog_cc_c89=$ac_arg
6490 rm -f core conftest.err conftest.$ac_objext
6491 test "x$ac_cv_prog_cc_c89" != "xno" && break
6492 done
6493 rm -f conftest.$ac_ext
6494 CC=$ac_save_CC
6497 # AC_CACHE_VAL
6498 case "x$ac_cv_prog_cc_c89" in
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6501 $as_echo "none needed" >&6; } ;;
6502 xno)
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6504 $as_echo "unsupported" >&6; } ;;
6506 CC="$CC $ac_cv_prog_cc_c89"
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6508 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6509 esac
6510 if test "x$ac_cv_prog_cc_c89" != xno; then :
6511 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6512 else
6513 ac_cv_prog_cc_stdc=no
6518 esac
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6520 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6521 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6525 case $ac_cv_prog_cc_stdc in #(
6526 no) :
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6528 $as_echo "unsupported" >&6; } ;; #(
6529 '') :
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6531 $as_echo "none needed" >&6; } ;; #(
6532 *) :
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6534 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6535 esac
6539 # Code from module allocator:
6540 # Code from module arg-nonnull:
6541 # Code from module c++defs:
6542 # Code from module careadlinkat:
6543 # Code from module crypto/md5:
6544 # Code from module dosname:
6545 # Code from module dtoastr:
6546 # Code from module extensions:
6548 # Code from module filemode:
6549 # Code from module getloadavg:
6550 # Code from module getopt-gnu:
6551 # Code from module getopt-posix:
6552 # Code from module gettext-h:
6553 # Code from module ignore-value:
6554 # Code from module include_next:
6555 # Code from module intprops:
6556 # Code from module inttypes-incomplete:
6557 # Code from module lstat:
6558 # Code from module mktime:
6559 # Code from module multiarch:
6560 # Code from module readlink:
6561 # Code from module socklen:
6562 # Code from module ssize_t:
6563 # Code from module stat:
6564 # Code from module stdarg:
6566 # Code from module stdbool:
6567 # Code from module stddef:
6568 # Code from module stdint:
6569 # Code from module stdio:
6570 # Code from module stdlib:
6571 # Code from module strftime:
6572 # Code from module strtoull:
6573 # Code from module strtoumax:
6574 # Code from module symlink:
6575 # Code from module sys_stat:
6576 # Code from module time:
6577 # Code from module time_r:
6578 # Code from module unistd:
6579 # Code from module verify:
6580 # Code from module warn-on-use:
6583 # On Suns, sometimes $CPP names a directory.
6584 if test -n "$CPP" && test -d "$CPP"; then
6585 CPP=
6588 ## If not using gcc, and on Solaris, and no CPP specified, see if
6589 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6590 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6591 test x"$CPP" = x; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6593 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6594 if test "${emacs_cv_sunpro_c+set}" = set; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6601 main ()
6603 #ifndef __SUNPRO_C
6604 fail;
6605 #endif
6608 return 0;
6610 _ACEOF
6611 if ac_fn_c_try_link "$LINENO"; then :
6612 emacs_cv_sunpro_c=yes
6613 else
6614 emacs_cv_sunpro_c=no
6616 rm -f core conftest.err conftest.$ac_objext \
6617 conftest$ac_exeext conftest.$ac_ext
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6621 $as_echo "$emacs_cv_sunpro_c" >&6; }
6623 if test x"$emacs_cv_sunpro_c" = xyes; then
6624 NON_GNU_CPP="$CC -E -Xs"
6628 #### Some systems specify a CPP to use unless we are using GCC.
6629 #### Now that we know whether we are using GCC, we can decide whether
6630 #### to use that one.
6631 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6632 then
6633 CPP="$NON_GNU_CPP"
6636 #### Some systems specify a CC to use unless we are using GCC.
6637 #### Now that we know whether we are using GCC, we can decide whether
6638 #### to use that one.
6639 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6640 test x$cc_specified != xyes
6641 then
6642 CC="$NON_GNU_CC"
6645 if test x$GCC = xyes; then
6646 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6647 else
6648 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6651 ### Use -Wdeclaration-after-statement if the compiler supports it
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6653 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6654 SAVE_CFLAGS="$CFLAGS"
6655 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6660 main ()
6664 return 0;
6666 _ACEOF
6667 if ac_fn_c_try_compile "$LINENO"; then :
6668 has_option=yes
6669 else
6670 has_option=no
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 if test $has_option = yes; then
6674 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6677 $as_echo "$has_option" >&6; }
6678 CFLAGS="$SAVE_CFLAGS"
6679 unset has_option
6680 unset SAVE_CFLAGS
6682 ### Use -Wold-style-definition if the compiler supports it
6683 # This can be removed when conversion to standard C is finished.
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6685 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6686 SAVE_CFLAGS="$CFLAGS"
6687 CFLAGS="$CFLAGS -Wold-style-definition"
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6692 main ()
6696 return 0;
6698 _ACEOF
6699 if ac_fn_c_try_compile "$LINENO"; then :
6700 has_option=yes
6701 else
6702 has_option=no
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 if test $has_option = yes; then
6706 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6709 $as_echo "$has_option" >&6; }
6710 CFLAGS="$SAVE_CFLAGS"
6711 unset has_option
6712 unset SAVE_CFLAGS
6714 ### Use -Wimplicit-function-declaration if the compiler supports it
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6716 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6717 SAVE_CFLAGS="$CFLAGS"
6718 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6723 main ()
6727 return 0;
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"; then :
6731 has_option=yes
6732 else
6733 has_option=no
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 if test $has_option = yes; then
6737 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6740 $as_echo "$has_option" >&6; }
6741 CFLAGS="$SAVE_CFLAGS"
6742 unset has_option
6743 unset SAVE_CFLAGS
6748 #### Some other nice autoconf tests.
6750 ac_ext=c
6751 ac_cpp='$CPP $CPPFLAGS'
6752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6756 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6757 # On Suns, sometimes $CPP names a directory.
6758 if test -n "$CPP" && test -d "$CPP"; then
6759 CPP=
6761 if test -z "$CPP"; then
6762 if test "${ac_cv_prog_CPP+set}" = set; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 # Double quotes because CPP needs to be expanded
6766 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6768 ac_preproc_ok=false
6769 for ac_c_preproc_warn_flag in '' yes
6771 # Use a header file that comes with gcc, so configuring glibc
6772 # with a fresh cross-compiler works.
6773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6774 # <limits.h> exists even on freestanding compilers.
6775 # On the NeXT, cc -E runs the code through the compiler's parser,
6776 # not just through cpp. "Syntax error" is here to catch this case.
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #ifdef __STDC__
6780 # include <limits.h>
6781 #else
6782 # include <assert.h>
6783 #endif
6784 Syntax error
6785 _ACEOF
6786 if ac_fn_c_try_cpp "$LINENO"; then :
6788 else
6789 # Broken: fails on valid input.
6790 continue
6792 rm -f conftest.err conftest.$ac_ext
6794 # OK, works on sane cases. Now check whether nonexistent headers
6795 # can be detected and how.
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 #include <ac_nonexistent.h>
6799 _ACEOF
6800 if ac_fn_c_try_cpp "$LINENO"; then :
6801 # Broken: success on invalid input.
6802 continue
6803 else
6804 # Passes both tests.
6805 ac_preproc_ok=:
6806 break
6808 rm -f conftest.err conftest.$ac_ext
6810 done
6811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6812 rm -f conftest.err conftest.$ac_ext
6813 if $ac_preproc_ok; then :
6814 break
6817 done
6818 ac_cv_prog_CPP=$CPP
6821 CPP=$ac_cv_prog_CPP
6822 else
6823 ac_cv_prog_CPP=$CPP
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6826 $as_echo "$CPP" >&6; }
6827 ac_preproc_ok=false
6828 for ac_c_preproc_warn_flag in '' yes
6830 # Use a header file that comes with gcc, so configuring glibc
6831 # with a fresh cross-compiler works.
6832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6833 # <limits.h> exists even on freestanding compilers.
6834 # On the NeXT, cc -E runs the code through the compiler's parser,
6835 # not just through cpp. "Syntax error" is here to catch this case.
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 #ifdef __STDC__
6839 # include <limits.h>
6840 #else
6841 # include <assert.h>
6842 #endif
6843 Syntax error
6844 _ACEOF
6845 if ac_fn_c_try_cpp "$LINENO"; then :
6847 else
6848 # Broken: fails on valid input.
6849 continue
6851 rm -f conftest.err conftest.$ac_ext
6853 # OK, works on sane cases. Now check whether nonexistent headers
6854 # can be detected and how.
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <ac_nonexistent.h>
6858 _ACEOF
6859 if ac_fn_c_try_cpp "$LINENO"; then :
6860 # Broken: success on invalid input.
6861 continue
6862 else
6863 # Passes both tests.
6864 ac_preproc_ok=:
6865 break
6867 rm -f conftest.err conftest.$ac_ext
6869 done
6870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6871 rm -f conftest.err conftest.$ac_ext
6872 if $ac_preproc_ok; then :
6874 else
6875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6877 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6878 See \`config.log' for more details." "$LINENO" 5; }
6881 ac_ext=c
6882 ac_cpp='$CPP $CPPFLAGS'
6883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888 if test "x$RANLIB" = x; then
6889 if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test -n "$RANLIB"; then
6898 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6911 done
6912 done
6913 IFS=$as_save_IFS
6917 RANLIB=$ac_cv_prog_RANLIB
6918 if test -n "$RANLIB"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6920 $as_echo "$RANLIB" >&6; }
6921 else
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6928 if test -z "$ac_cv_prog_RANLIB"; then
6929 ac_ct_RANLIB=$RANLIB
6930 # Extract the first word of "ranlib", so it can be a program name with args.
6931 set dummy ranlib; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 if test -n "$ac_ct_RANLIB"; then
6938 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6947 ac_cv_prog_ac_ct_RANLIB="ranlib"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6951 done
6952 done
6953 IFS=$as_save_IFS
6957 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6958 if test -n "$ac_ct_RANLIB"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6960 $as_echo "$ac_ct_RANLIB" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6966 if test "x$ac_ct_RANLIB" = x; then
6967 RANLIB=":"
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970 yes:)
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975 RANLIB=$ac_ct_RANLIB
6977 else
6978 RANLIB="$ac_cv_prog_RANLIB"
6983 ## Although we're running on an amd64 kernel, we're actually compiling for
6984 ## the x86 architecture. The user should probably have provided an
6985 ## explicit --build to `configure', but if everything else than the kernel
6986 ## is running in i386 mode, we can help them out.
6987 if test "$machine" = "amdx86-64"; then
6988 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6989 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6993 if test "$ac_cv_have_decl_i386" = "yes"; then
6994 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6995 machine=intel386
6996 machfile="m/${machine}.h"
7000 # Extract the first word of "install-info", so it can be a program name with args.
7001 set dummy install-info; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 case $INSTALL_INFO in
7008 [\\/]* | ?:[\\/]*)
7009 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7023 done
7024 done
7025 IFS=$as_save_IFS
7028 esac
7030 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7031 if test -n "$INSTALL_INFO"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7033 $as_echo "$INSTALL_INFO" >&6; }
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7040 # Extract the first word of "install-info", so it can be a program name with args.
7041 set dummy install-info; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 case $INSTALL_INFO in
7048 [\\/]* | ?:[\\/]*)
7049 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in /usr/sbin
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7063 done
7064 done
7065 IFS=$as_save_IFS
7068 esac
7070 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7071 if test -n "$INSTALL_INFO"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7073 $as_echo "$INSTALL_INFO" >&6; }
7074 else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7080 # Extract the first word of "install-info", so it can be a program name with args.
7081 set dummy install-info; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 case $INSTALL_INFO in
7088 [\\/]* | ?:[\\/]*)
7089 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in /sbin
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7103 done
7104 done
7105 IFS=$as_save_IFS
7107 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7109 esac
7111 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7112 if test -n "$INSTALL_INFO"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7114 $as_echo "$INSTALL_INFO" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7121 # Extract the first word of "gzip", so it can be a program name with args.
7122 set dummy gzip; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 case $GZIP_PROG in
7129 [\\/]* | ?:[\\/]*)
7130 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7144 done
7145 done
7146 IFS=$as_save_IFS
7149 esac
7151 GZIP_PROG=$ac_cv_path_GZIP_PROG
7152 if test -n "$GZIP_PROG"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7154 $as_echo "$GZIP_PROG" >&6; }
7155 else
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7163 ## Need makeinfo >= 4.6 (?) to build the manuals.
7164 # Extract the first word of "makeinfo", so it can be a program name with args.
7165 set dummy makeinfo; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 case $MAKEINFO in
7172 [\\/]* | ?:[\\/]*)
7173 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7187 done
7188 done
7189 IFS=$as_save_IFS
7191 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7193 esac
7195 MAKEINFO=$ac_cv_path_MAKEINFO
7196 if test -n "$MAKEINFO"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7198 $as_echo "$MAKEINFO" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7205 if test "$MAKEINFO" != "no" && \
7206 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
7207 MAKEINFO=no
7210 ## Makeinfo is unusual. For a released Emacs, the manuals are
7211 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7212 ## therefore in the category of "special tools" not normally required, which
7213 ## configure does not have to check for (eg autoconf itself).
7214 ## In a Bazaar checkout on the other hand, the manuals are not included.
7215 ## So makeinfo is a requirement to build from Bazaar, and configure
7216 ## should test for it as it does for any other build requirement.
7217 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7218 ## with pre-built manuals, from a Bazaar checkout.
7219 HAVE_MAKEINFO=yes
7221 if test "$MAKEINFO" = "no"; then
7222 MAKEINFO=makeinfo
7223 if test "x${with_makeinfo}" = "xno"; then
7224 HAVE_MAKEINFO=no
7225 elif test ! -e $srcdir/info/emacs; then
7226 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7227 source tree does not seem to have pre-built manuals in the \`info' directory.
7228 Either install a suitable version of makeinfo, or re-run configure
7229 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7235 if test x$GCC = xyes; then
7236 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7237 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7238 else
7239 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7240 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7244 late_LDFLAGS=$LDFLAGS
7245 if test x$GCC = xyes; then
7246 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7247 else
7248 LDFLAGS="$LDFLAGS -znocombreloc"
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7252 $as_echo_n "checking for -znocombreloc... " >&6; }
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7257 main ()
7261 return 0;
7263 _ACEOF
7264 if ac_fn_c_try_link "$LINENO"; then :
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7266 $as_echo "yes" >&6; }
7267 else
7268 LDFLAGS=$late_LDFLAGS
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7272 rm -f core conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
7276 # The value of CPP is a quoted variable reference, so we need to do this
7277 # to get its actual value...
7278 CPP=`eval "echo $CPP"`
7281 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7282 case "$opsys" in
7283 your-opsys-here) CANNOT_DUMP=yes ;;
7284 esac
7286 test "$CANNOT_DUMP" = "yes" && \
7288 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7294 UNEXEC_OBJ=unexelf.o
7295 case "$opsys" in
7296 # MSDOS uses unexcoff.o
7297 # MSWindows uses unexw32.o
7298 aix4-2)
7299 UNEXEC_OBJ=unexaix.o
7301 cygwin)
7302 UNEXEC_OBJ=unexcw.o
7304 darwin)
7305 UNEXEC_OBJ=unexmacosx.o
7307 hpux10-20 | hpux11)
7308 UNEXEC_OBJ=unexhp9k800.o
7310 sol2-10)
7311 # Use the Solaris dldump() function, called from unexsol.c, to dump
7312 # emacs, instead of the generic ELF dump code found in unexelf.c.
7313 # The resulting binary has a complete symbol table, and is better
7314 # for debugging and other observability tools (debuggers, pstack, etc).
7316 # If you encounter a problem using dldump(), please consider sending
7317 # a message to the OpenSolaris tools-linking mailing list:
7318 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7320 # It is likely that dldump() works with older Solaris too, but this has
7321 # not been tested, so for now this change is for Solaris 10 or newer.
7322 UNEXEC_OBJ=unexsol.o
7324 esac
7326 LD_SWITCH_SYSTEM=
7327 case "$opsys" in
7328 freebsd)
7329 ## Let `ld' find image libs and similar things in /usr/local/lib.
7330 ## The system compiler, GCC, has apparently been modified to not
7331 ## look there, contrary to what a stock GCC would do.
7332 LD_SWITCH_SYSTEM=-L/usr/local/lib
7335 gnu-linux)
7336 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7337 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7340 netbsd)
7341 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7344 openbsd)
7345 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7346 ## otherwise Emacs dumps core on elf systems.
7347 LD_SWITCH_SYSTEM="-Z"
7349 esac
7352 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7354 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7355 ## which has not been defined yet. When this was handled with cpp,
7356 ## it was expanded to null when configure sourced the s/*.h file.
7357 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7358 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7359 ## (or somesuch), but because it is supposed to go at the _front_
7360 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7361 ## Compare with the gnu-linux case below, which added to the end
7362 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7363 ## LD_SWITCH_SYSTEM_TEMACS.
7364 case "$opsys" in
7365 netbsd|openbsd)
7366 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7367 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7368 esac
7371 C_SWITCH_MACHINE=
7372 if test "$machine" = "alpha"; then
7373 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7374 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7378 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7379 ## With ELF, make sure that all common symbols get allocated to in the
7380 ## data section. Otherwise, the dump of temacs may miss variables in
7381 ## the shared library that have been initialized. For example, with
7382 ## GNU libc, __malloc_initialized would normally be resolved to the
7383 ## shared library's .bss section, which is fatal.
7384 if test "x$GCC" = "xyes"; then
7385 C_SWITCH_MACHINE="-fno-common"
7386 else
7387 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7389 else
7390 UNEXEC_OBJ=unexalpha.o
7397 C_SWITCH_SYSTEM=
7398 ## Some programs in src produce warnings saying certain subprograms
7399 ## are too complex and need a MAXMEM value greater than 2000 for
7400 ## additional optimization. --nils@exp-math.uni-essen.de
7401 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7402 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7403 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7404 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7408 LIBS_SYSTEM=
7409 case "$opsys" in
7410 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7411 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7413 freebsd) LIBS_SYSTEM="-lutil" ;;
7415 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7417 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7419 ## Motif needs -lgen.
7420 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7421 esac
7425 ### Make sure subsequent tests use flags consistent with the build flags.
7427 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7428 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7429 else
7430 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7433 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7436 # Check whether --enable-largefile was given.
7437 if test "${enable_largefile+set}" = set; then :
7438 enableval=$enable_largefile;
7441 if test "$enable_largefile" != no; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7444 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7445 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 ac_cv_sys_largefile_CC=no
7449 if test "$GCC" != yes; then
7450 ac_save_CC=$CC
7451 while :; do
7452 # IRIX 6.2 and later do not support large files by default,
7453 # so use the C compiler's -n32 option if that helps.
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7456 #include <sys/types.h>
7457 /* Check that off_t can represent 2**63 - 1 correctly.
7458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7459 since some C++ compilers masquerading as C compilers
7460 incorrectly reject 9223372036854775807. */
7461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7463 && LARGE_OFF_T % 2147483647 == 1)
7464 ? 1 : -1];
7466 main ()
7470 return 0;
7472 _ACEOF
7473 if ac_fn_c_try_compile "$LINENO"; then :
7474 break
7476 rm -f core conftest.err conftest.$ac_objext
7477 CC="$CC -n32"
7478 if ac_fn_c_try_compile "$LINENO"; then :
7479 ac_cv_sys_largefile_CC=' -n32'; break
7481 rm -f core conftest.err conftest.$ac_objext
7482 break
7483 done
7484 CC=$ac_save_CC
7485 rm -f conftest.$ac_ext
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7489 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7490 if test "$ac_cv_sys_largefile_CC" != no; then
7491 CC=$CC$ac_cv_sys_largefile_CC
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7495 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7496 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 while :; do
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 #include <sys/types.h>
7503 /* Check that off_t can represent 2**63 - 1 correctly.
7504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7505 since some C++ compilers masquerading as C compilers
7506 incorrectly reject 9223372036854775807. */
7507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7509 && LARGE_OFF_T % 2147483647 == 1)
7510 ? 1 : -1];
7512 main ()
7516 return 0;
7518 _ACEOF
7519 if ac_fn_c_try_compile "$LINENO"; then :
7520 ac_cv_sys_file_offset_bits=no; break
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #define _FILE_OFFSET_BITS 64
7526 #include <sys/types.h>
7527 /* Check that off_t can represent 2**63 - 1 correctly.
7528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7529 since some C++ compilers masquerading as C compilers
7530 incorrectly reject 9223372036854775807. */
7531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7533 && LARGE_OFF_T % 2147483647 == 1)
7534 ? 1 : -1];
7536 main ()
7540 return 0;
7542 _ACEOF
7543 if ac_fn_c_try_compile "$LINENO"; then :
7544 ac_cv_sys_file_offset_bits=64; break
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 ac_cv_sys_file_offset_bits=unknown
7548 break
7549 done
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7552 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7553 case $ac_cv_sys_file_offset_bits in #(
7554 no | unknown) ;;
7556 cat >>confdefs.h <<_ACEOF
7557 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7558 _ACEOF
7560 esac
7561 rm -rf conftest*
7562 if test $ac_cv_sys_file_offset_bits = unknown; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7564 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7565 if test "${ac_cv_sys_large_files+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 while :; do
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 #include <sys/types.h>
7572 /* Check that off_t can represent 2**63 - 1 correctly.
7573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7574 since some C++ compilers masquerading as C compilers
7575 incorrectly reject 9223372036854775807. */
7576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7578 && LARGE_OFF_T % 2147483647 == 1)
7579 ? 1 : -1];
7581 main ()
7585 return 0;
7587 _ACEOF
7588 if ac_fn_c_try_compile "$LINENO"; then :
7589 ac_cv_sys_large_files=no; break
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594 #define _LARGE_FILES 1
7595 #include <sys/types.h>
7596 /* Check that off_t can represent 2**63 - 1 correctly.
7597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7598 since some C++ compilers masquerading as C compilers
7599 incorrectly reject 9223372036854775807. */
7600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7602 && LARGE_OFF_T % 2147483647 == 1)
7603 ? 1 : -1];
7605 main ()
7609 return 0;
7611 _ACEOF
7612 if ac_fn_c_try_compile "$LINENO"; then :
7613 ac_cv_sys_large_files=1; break
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 ac_cv_sys_large_files=unknown
7617 break
7618 done
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7621 $as_echo "$ac_cv_sys_large_files" >&6; }
7622 case $ac_cv_sys_large_files in #(
7623 no | unknown) ;;
7625 cat >>confdefs.h <<_ACEOF
7626 #define _LARGE_FILES $ac_cv_sys_large_files
7627 _ACEOF
7629 esac
7630 rm -rf conftest*
7636 ## If user specified a crt-dir, use that unconditionally.
7637 if test "X$CRT_DIR" = "X"; then
7639 case "$canonical" in
7640 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7641 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7642 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7643 ## For anything else (eg /usr/lib32), it is up the user to specify
7644 ## the location (bug#5655).
7645 ## Test for crtn.o, not just the directory, because sometimes the
7646 ## directory exists but does not have the relevant files (bug#1287).
7647 ## FIXME better to test for binary compatibility somehow.
7648 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7651 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7652 esac
7654 case "$opsys" in
7655 hpux10-20) CRT_DIR=/lib ;;
7656 esac
7658 ## Default is /usr/lib.
7659 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7661 else
7663 ## Some platforms don't use any of these files, so it is not
7664 ## appropriate to put this test outside the if block.
7665 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7666 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7672 LIB_MATH=-lm
7673 LIB_STANDARD=
7674 START_FILES=
7676 case $opsys in
7677 cygwin )
7678 LIB_MATH=
7679 START_FILES='pre-crt0.o'
7681 darwin )
7682 ## Adding -lm confuses the dynamic linker, so omit it.
7683 LIB_MATH=
7684 START_FILES='pre-crt0.o'
7686 freebsd )
7687 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7688 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7690 gnu-linux | gnu-kfreebsd )
7691 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7692 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7694 hpux10-20 | hpux11 )
7695 LIB_STANDARD=-lc
7696 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7698 netbsd | openbsd )
7699 if test -f $CRT_DIR/crti.o; then
7700 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7701 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7702 else
7703 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7704 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7707 esac
7715 if test "${with_sound}" != "no"; then
7716 # Sound support for GNU/Linux and the free BSDs.
7717 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7718 do :
7719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7720 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7721 eval as_val=\$$as_ac_Header
7722 if test "x$as_val" = x""yes; then :
7723 cat >>confdefs.h <<_ACEOF
7724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7725 _ACEOF
7726 have_sound_header=yes
7729 done
7731 # Emulation library used on NetBSD.
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7733 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7734 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 ac_check_lib_save_LIBS=$LIBS
7738 LIBS="-lossaudio $LIBS"
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7742 /* Override any GCC internal prototype to avoid an error.
7743 Use char because int might match the return type of a GCC
7744 builtin and then its argument prototype would still apply. */
7745 #ifdef __cplusplus
7746 extern "C"
7747 #endif
7748 char _oss_ioctl ();
7750 main ()
7752 return _oss_ioctl ();
7754 return 0;
7756 _ACEOF
7757 if ac_fn_c_try_link "$LINENO"; then :
7758 ac_cv_lib_ossaudio__oss_ioctl=yes
7759 else
7760 ac_cv_lib_ossaudio__oss_ioctl=no
7762 rm -f core conftest.err conftest.$ac_objext \
7763 conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7767 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7768 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7769 LIBSOUND=-lossaudio
7770 else
7771 LIBSOUND=
7776 ALSA_REQUIRED=1.0.0
7777 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7779 succeeded=no
7781 # Extract the first word of "pkg-config", so it can be a program name with args.
7782 set dummy pkg-config; ac_word=$2
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 case $PKG_CONFIG in
7789 [\\/]* | ?:[\\/]*)
7790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7804 done
7805 done
7806 IFS=$as_save_IFS
7808 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7810 esac
7812 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7813 if test -n "$PKG_CONFIG"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7815 $as_echo "$PKG_CONFIG" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7823 if test "$PKG_CONFIG" = "no" ; then
7824 HAVE_ALSA=no
7825 else
7826 PKG_CONFIG_MIN_VERSION=0.9.0
7827 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7829 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7831 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7834 succeeded=yes
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7837 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7838 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7840 $as_echo "$ALSA_CFLAGS" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7843 $as_echo_n "checking ALSA_LIBS... " >&6; }
7844 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7846 $as_echo "$ALSA_LIBS" >&6; }
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 ALSA_CFLAGS=""
7851 ALSA_LIBS=""
7852 ## If we have a custom action on failure, don't print errors, but
7853 ## do set a variable so people can do so.
7854 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7860 else
7861 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7862 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7866 if test $succeeded = yes; then
7867 HAVE_ALSA=yes
7868 else
7869 HAVE_ALSA=no
7872 if test $HAVE_ALSA = yes; then
7873 SAVE_CFLAGS="$CFLAGS"
7874 SAVE_LDFLAGS="$LDFLAGS"
7875 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7876 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7879 #include <asoundlib.h>
7881 main ()
7883 snd_lib_error_set_handler (0);
7885 return 0;
7887 _ACEOF
7888 if ac_fn_c_try_compile "$LINENO"; then :
7889 emacs_alsa_normal=yes
7890 else
7891 emacs_alsa_normal=no
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 if test "$emacs_alsa_normal" != yes; then
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7897 #include <alsa/asoundlib.h>
7899 main ()
7901 snd_lib_error_set_handler (0);
7903 return 0;
7905 _ACEOF
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907 emacs_alsa_subdir=yes
7908 else
7909 emacs_alsa_subdir=no
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 if test "$emacs_alsa_subdir" != yes; then
7913 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7915 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7918 CFLAGS="$SAVE_CFLAGS"
7919 LDFLAGS="$SAVE_LDFLAGS"
7920 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7921 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7923 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7927 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7928 case "$opsys" in
7929 gnu-linux|freebsd|netbsd)
7931 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7934 esac
7940 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7941 linux/version.h sys/systeminfo.h limits.h \
7942 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7943 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7944 sys/utsname.h pwd.h utmp.h dirent.h util.h
7945 do :
7946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7947 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7948 eval as_val=\$$as_ac_Header
7949 if test "x$as_val" = x""yes; then :
7950 cat >>confdefs.h <<_ACEOF
7951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7952 _ACEOF
7956 done
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7960 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 #include <sys/personality.h>
7965 main ()
7967 personality (PER_LINUX32)
7969 return 0;
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"; then :
7973 emacs_cv_personality_linux32=yes
7974 else
7975 emacs_cv_personality_linux32=no
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7979 $as_echo "$emacs_cv_personality_linux32" >&6; }
7981 if test $emacs_cv_personality_linux32 = yes; then
7983 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7987 for ac_header in term.h
7988 do :
7989 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7990 if test "x$ac_cv_header_term_h" = x""yes; then :
7991 cat >>confdefs.h <<_ACEOF
7992 #define HAVE_TERM_H 1
7993 _ACEOF
7997 done
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8000 $as_echo_n "checking for ANSI C header files... " >&6; }
8001 if test "${ac_cv_header_stdc+set}" = set; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #include <stdlib.h>
8007 #include <stdarg.h>
8008 #include <string.h>
8009 #include <float.h>
8012 main ()
8016 return 0;
8018 _ACEOF
8019 if ac_fn_c_try_compile "$LINENO"; then :
8020 ac_cv_header_stdc=yes
8021 else
8022 ac_cv_header_stdc=no
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 if test $ac_cv_header_stdc = yes; then
8027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 #include <string.h>
8032 _ACEOF
8033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8034 $EGREP "memchr" >/dev/null 2>&1; then :
8036 else
8037 ac_cv_header_stdc=no
8039 rm -f conftest*
8043 if test $ac_cv_header_stdc = yes; then
8044 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 #include <stdlib.h>
8049 _ACEOF
8050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8051 $EGREP "free" >/dev/null 2>&1; then :
8053 else
8054 ac_cv_header_stdc=no
8056 rm -f conftest*
8060 if test $ac_cv_header_stdc = yes; then
8061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8062 if test "$cross_compiling" = yes; then :
8064 else
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 #include <ctype.h>
8068 #include <stdlib.h>
8069 #if ((' ' & 0x0FF) == 0x020)
8070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8072 #else
8073 # define ISLOWER(c) \
8074 (('a' <= (c) && (c) <= 'i') \
8075 || ('j' <= (c) && (c) <= 'r') \
8076 || ('s' <= (c) && (c) <= 'z'))
8077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8078 #endif
8080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8082 main ()
8084 int i;
8085 for (i = 0; i < 256; i++)
8086 if (XOR (islower (i), ISLOWER (i))
8087 || toupper (i) != TOUPPER (i))
8088 return 2;
8089 return 0;
8091 _ACEOF
8092 if ac_fn_c_try_run "$LINENO"; then :
8094 else
8095 ac_cv_header_stdc=no
8097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8098 conftest.$ac_objext conftest.beam conftest.$ac_ext
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8104 $as_echo "$ac_cv_header_stdc" >&6; }
8105 if test $ac_cv_header_stdc = yes; then
8107 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8112 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8113 if test "${ac_cv_header_time+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 #include <sys/types.h>
8119 #include <sys/time.h>
8120 #include <time.h>
8123 main ()
8125 if ((struct tm *) 0)
8126 return 0;
8128 return 0;
8130 _ACEOF
8131 if ac_fn_c_try_compile "$LINENO"; then :
8132 ac_cv_header_time=yes
8133 else
8134 ac_cv_header_time=no
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8139 $as_echo "$ac_cv_header_time" >&6; }
8140 if test $ac_cv_header_time = yes; then
8142 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8146 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8147 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8148 ac_have_decl=1
8149 else
8150 ac_have_decl=0
8153 cat >>confdefs.h <<_ACEOF
8154 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8155 _ACEOF
8157 if test $ac_cv_have_decl_sys_siglist != yes; then
8158 # For Tru64, at least:
8159 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8160 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8161 ac_have_decl=1
8162 else
8163 ac_have_decl=0
8166 cat >>confdefs.h <<_ACEOF
8167 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8168 _ACEOF
8170 if test $ac_cv_have_decl___sys_siglist = yes; then
8172 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8177 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8178 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <sys/types.h>
8184 #include <sys/wait.h>
8185 #ifndef WEXITSTATUS
8186 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8187 #endif
8188 #ifndef WIFEXITED
8189 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8190 #endif
8193 main ()
8195 int s;
8196 wait (&s);
8197 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8199 return 0;
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"; then :
8203 ac_cv_header_sys_wait_h=yes
8204 else
8205 ac_cv_header_sys_wait_h=no
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8210 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8211 if test $ac_cv_header_sys_wait_h = yes; then
8213 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8219 $as_echo_n "checking for struct utimbuf... " >&6; }
8220 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 #ifdef TIME_WITH_SYS_TIME
8226 #include <sys/time.h>
8227 #include <time.h>
8228 #else
8229 #ifdef HAVE_SYS_TIME_H
8230 #include <sys/time.h>
8231 #else
8232 #include <time.h>
8233 #endif
8234 #endif
8235 #ifdef HAVE_UTIME_H
8236 #include <utime.h>
8237 #endif
8239 main ()
8241 static struct utimbuf x; x.actime = x.modtime;
8243 return 0;
8245 _ACEOF
8246 if ac_fn_c_try_compile "$LINENO"; then :
8247 emacs_cv_struct_utimbuf=yes
8248 else
8249 emacs_cv_struct_utimbuf=no
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8254 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8255 if test $emacs_cv_struct_utimbuf = yes; then
8257 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8262 $as_echo_n "checking for speed_t... " >&6; }
8263 if test "${emacs_cv_speed_t+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <termios.h>
8270 main ()
8272 speed_t x = 1;
8274 return 0;
8276 _ACEOF
8277 if ac_fn_c_try_compile "$LINENO"; then :
8278 emacs_cv_speed_t=yes
8279 else
8280 emacs_cv_speed_t=no
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8285 $as_echo "$emacs_cv_speed_t" >&6; }
8286 if test $emacs_cv_speed_t = yes; then
8288 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8293 $as_echo_n "checking for struct timeval... " >&6; }
8294 if test "${emacs_cv_struct_timeval+set}" = set; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 #ifdef TIME_WITH_SYS_TIME
8300 #include <sys/time.h>
8301 #include <time.h>
8302 #else
8303 #ifdef HAVE_SYS_TIME_H
8304 #include <sys/time.h>
8305 #else
8306 #include <time.h>
8307 #endif
8308 #endif
8310 main ()
8312 static struct timeval x; x.tv_sec = x.tv_usec;
8314 return 0;
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 emacs_cv_struct_timeval=yes
8319 else
8320 emacs_cv_struct_timeval=no
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8325 $as_echo "$emacs_cv_struct_timeval" >&6; }
8326 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8327 if test $emacs_cv_struct_timeval = yes; then
8329 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8334 $as_echo_n "checking for struct exception... " >&6; }
8335 if test "${emacs_cv_struct_exception+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #include <math.h>
8342 main ()
8344 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8346 return 0;
8348 _ACEOF
8349 if ac_fn_c_try_compile "$LINENO"; then :
8350 emacs_cv_struct_exception=yes
8351 else
8352 emacs_cv_struct_exception=no
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8357 $as_echo "$emacs_cv_struct_exception" >&6; }
8358 HAVE_EXCEPTION=$emacs_cv_struct_exception
8359 if test $emacs_cv_struct_exception != yes; then
8361 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8365 for ac_header in net/if.h
8366 do :
8367 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8368 #if HAVE_SYS_SOCKET_H
8369 #include <sys/socket.h>
8370 #endif
8372 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8373 cat >>confdefs.h <<_ACEOF
8374 #define HAVE_NET_IF_H 1
8375 _ACEOF
8379 done
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8383 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8384 if test "${ac_cv_struct_tm+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389 #include <sys/types.h>
8390 #include <time.h>
8393 main ()
8395 struct tm tm;
8396 int *p = &tm.tm_sec;
8397 return !p;
8399 return 0;
8401 _ACEOF
8402 if ac_fn_c_try_compile "$LINENO"; then :
8403 ac_cv_struct_tm=time.h
8404 else
8405 ac_cv_struct_tm=sys/time.h
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8410 $as_echo "$ac_cv_struct_tm" >&6; }
8411 if test $ac_cv_struct_tm = sys/time.h; then
8413 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8417 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8418 #include <$ac_cv_struct_tm>
8421 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8423 cat >>confdefs.h <<_ACEOF
8424 #define HAVE_STRUCT_TM_TM_ZONE 1
8425 _ACEOF
8430 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8432 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8434 else
8435 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8437 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8438 ac_have_decl=1
8439 else
8440 ac_have_decl=0
8443 cat >>confdefs.h <<_ACEOF
8444 #define HAVE_DECL_TZNAME $ac_have_decl
8445 _ACEOF
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8448 $as_echo_n "checking for tzname... " >&6; }
8449 if test "${ac_cv_var_tzname+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 #include <time.h>
8455 #if !HAVE_DECL_TZNAME
8456 extern char *tzname[];
8457 #endif
8460 main ()
8462 return tzname[0][0];
8464 return 0;
8466 _ACEOF
8467 if ac_fn_c_try_link "$LINENO"; then :
8468 ac_cv_var_tzname=yes
8469 else
8470 ac_cv_var_tzname=no
8472 rm -f core conftest.err conftest.$ac_objext \
8473 conftest$ac_exeext conftest.$ac_ext
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8476 $as_echo "$ac_cv_var_tzname" >&6; }
8477 if test $ac_cv_var_tzname = yes; then
8479 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8484 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8486 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8488 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8492 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8493 #if HAVE_SYS_SOCKET_H
8494 #include <sys/socket.h>
8495 #endif
8496 #if HAVE_NET_IF_H
8497 #include <net/if.h>
8498 #endif
8500 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8502 cat >>confdefs.h <<_ACEOF
8503 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8504 _ACEOF
8508 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8509 #if HAVE_SYS_SOCKET_H
8510 #include <sys/socket.h>
8511 #endif
8512 #if HAVE_NET_IF_H
8513 #include <net/if.h>
8514 #endif
8516 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8518 cat >>confdefs.h <<_ACEOF
8519 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8520 _ACEOF
8524 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8525 #if HAVE_SYS_SOCKET_H
8526 #include <sys/socket.h>
8527 #endif
8528 #if HAVE_NET_IF_H
8529 #include <net/if.h>
8530 #endif
8532 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8534 cat >>confdefs.h <<_ACEOF
8535 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8536 _ACEOF
8540 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8541 #if HAVE_SYS_SOCKET_H
8542 #include <sys/socket.h>
8543 #endif
8544 #if HAVE_NET_IF_H
8545 #include <net/if.h>
8546 #endif
8548 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8550 cat >>confdefs.h <<_ACEOF
8551 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8552 _ACEOF
8556 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8557 #if HAVE_SYS_SOCKET_H
8558 #include <sys/socket.h>
8559 #endif
8560 #if HAVE_NET_IF_H
8561 #include <net/if.h>
8562 #endif
8564 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8566 cat >>confdefs.h <<_ACEOF
8567 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8568 _ACEOF
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8576 $as_echo_n "checking for function prototypes... " >&6; }
8577 if test "$ac_cv_prog_cc_c89" != no; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8579 $as_echo "yes" >&6; }
8581 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8584 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8586 else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8592 $as_echo_n "checking for working volatile... " >&6; }
8593 if test "${ac_cv_c_volatile+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8600 main ()
8603 volatile int x;
8604 int * volatile y = (int *) 0;
8605 return !x && !y;
8607 return 0;
8609 _ACEOF
8610 if ac_fn_c_try_compile "$LINENO"; then :
8611 ac_cv_c_volatile=yes
8612 else
8613 ac_cv_c_volatile=no
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8618 $as_echo "$ac_cv_c_volatile" >&6; }
8619 if test $ac_cv_c_volatile = no; then
8621 $as_echo "#define volatile /**/" >>confdefs.h
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8626 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8627 if test "${ac_cv_c_const+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8634 main ()
8636 /* FIXME: Include the comments suggested by Paul. */
8637 #ifndef __cplusplus
8638 /* Ultrix mips cc rejects this. */
8639 typedef int charset[2];
8640 const charset cs;
8641 /* SunOS 4.1.1 cc rejects this. */
8642 char const *const *pcpcc;
8643 char **ppc;
8644 /* NEC SVR4.0.2 mips cc rejects this. */
8645 struct point {int x, y;};
8646 static struct point const zero = {0,0};
8647 /* AIX XL C 1.02.0.0 rejects this.
8648 It does not let you subtract one const X* pointer from another in
8649 an arm of an if-expression whose if-part is not a constant
8650 expression */
8651 const char *g = "string";
8652 pcpcc = &g + (g ? g-g : 0);
8653 /* HPUX 7.0 cc rejects these. */
8654 ++pcpcc;
8655 ppc = (char**) pcpcc;
8656 pcpcc = (char const *const *) ppc;
8657 { /* SCO 3.2v4 cc rejects this. */
8658 char *t;
8659 char const *s = 0 ? (char *) 0 : (char const *) 0;
8661 *t++ = 0;
8662 if (s) return 0;
8664 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8665 int x[] = {25, 17};
8666 const int *foo = &x[0];
8667 ++foo;
8669 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8670 typedef const int *iptr;
8671 iptr p = 0;
8672 ++p;
8674 { /* AIX XL C 1.02.0.0 rejects this saying
8675 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8676 struct s { int j; const int *ap[3]; };
8677 struct s *b; b->j = 5;
8679 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8680 const int foo = 10;
8681 if (!foo) return 0;
8683 return !cs[0] && !zero.x;
8684 #endif
8687 return 0;
8689 _ACEOF
8690 if ac_fn_c_try_compile "$LINENO"; then :
8691 ac_cv_c_const=yes
8692 else
8693 ac_cv_c_const=no
8695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8698 $as_echo "$ac_cv_c_const" >&6; }
8699 if test $ac_cv_c_const = no; then
8701 $as_echo "#define const /**/" >>confdefs.h
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8706 $as_echo_n "checking for void * support... " >&6; }
8707 if test "${emacs_cv_void_star+set}" = set; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8714 main ()
8716 void * foo;
8718 return 0;
8720 _ACEOF
8721 if ac_fn_c_try_compile "$LINENO"; then :
8722 emacs_cv_void_star=yes
8723 else
8724 emacs_cv_void_star=no
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8729 $as_echo "$emacs_cv_void_star" >&6; }
8730 if test $emacs_cv_void_star = yes; then
8731 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8733 else
8734 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8739 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8740 if test "${ac_cv_c_bigendian+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 ac_cv_c_bigendian=unknown
8744 # See if we're dealing with a universal compiler.
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747 #ifndef __APPLE_CC__
8748 not a universal capable compiler
8749 #endif
8750 typedef int dummy;
8752 _ACEOF
8753 if ac_fn_c_try_compile "$LINENO"; then :
8755 # Check for potential -arch flags. It is not universal unless
8756 # there are at least two -arch flags with different values.
8757 ac_arch=
8758 ac_prev=
8759 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8760 if test -n "$ac_prev"; then
8761 case $ac_word in
8762 i?86 | x86_64 | ppc | ppc64)
8763 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8764 ac_arch=$ac_word
8765 else
8766 ac_cv_c_bigendian=universal
8767 break
8770 esac
8771 ac_prev=
8772 elif test "x$ac_word" = "x-arch"; then
8773 ac_prev=arch
8775 done
8777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8778 if test $ac_cv_c_bigendian = unknown; then
8779 # See if sys/param.h defines the BYTE_ORDER macro.
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8782 #include <sys/types.h>
8783 #include <sys/param.h>
8786 main ()
8788 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8789 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8790 && LITTLE_ENDIAN)
8791 bogus endian macros
8792 #endif
8795 return 0;
8797 _ACEOF
8798 if ac_fn_c_try_compile "$LINENO"; then :
8799 # It does; now see whether it defined to BIG_ENDIAN or not.
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 #include <sys/types.h>
8803 #include <sys/param.h>
8806 main ()
8808 #if BYTE_ORDER != BIG_ENDIAN
8809 not big endian
8810 #endif
8813 return 0;
8815 _ACEOF
8816 if ac_fn_c_try_compile "$LINENO"; then :
8817 ac_cv_c_bigendian=yes
8818 else
8819 ac_cv_c_bigendian=no
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 if test $ac_cv_c_bigendian = unknown; then
8826 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8829 #include <limits.h>
8832 main ()
8834 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8835 bogus endian macros
8836 #endif
8839 return 0;
8841 _ACEOF
8842 if ac_fn_c_try_compile "$LINENO"; then :
8843 # It does; now see whether it defined to _BIG_ENDIAN or not.
8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8846 #include <limits.h>
8849 main ()
8851 #ifndef _BIG_ENDIAN
8852 not big endian
8853 #endif
8856 return 0;
8858 _ACEOF
8859 if ac_fn_c_try_compile "$LINENO"; then :
8860 ac_cv_c_bigendian=yes
8861 else
8862 ac_cv_c_bigendian=no
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 if test $ac_cv_c_bigendian = unknown; then
8869 # Compile a test program.
8870 if test "$cross_compiling" = yes; then :
8871 # Try to guess by grepping values from an object file.
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 short int ascii_mm[] =
8875 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8876 short int ascii_ii[] =
8877 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8878 int use_ascii (int i) {
8879 return ascii_mm[i] + ascii_ii[i];
8881 short int ebcdic_ii[] =
8882 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8883 short int ebcdic_mm[] =
8884 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8885 int use_ebcdic (int i) {
8886 return ebcdic_mm[i] + ebcdic_ii[i];
8888 extern int foo;
8891 main ()
8893 return use_ascii (foo) == use_ebcdic (foo);
8895 return 0;
8897 _ACEOF
8898 if ac_fn_c_try_compile "$LINENO"; then :
8899 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8900 ac_cv_c_bigendian=yes
8902 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8903 if test "$ac_cv_c_bigendian" = unknown; then
8904 ac_cv_c_bigendian=no
8905 else
8906 # finding both strings is unlikely to happen, but who knows?
8907 ac_cv_c_bigendian=unknown
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 $ac_includes_default
8917 main ()
8920 /* Are we little or big endian? From Harbison&Steele. */
8921 union
8923 long int l;
8924 char c[sizeof (long int)];
8925 } u;
8926 u.l = 1;
8927 return u.c[sizeof (long int) - 1] == 1;
8930 return 0;
8932 _ACEOF
8933 if ac_fn_c_try_run "$LINENO"; then :
8934 ac_cv_c_bigendian=no
8935 else
8936 ac_cv_c_bigendian=yes
8938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8939 conftest.$ac_objext conftest.beam conftest.$ac_ext
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8945 $as_echo "$ac_cv_c_bigendian" >&6; }
8946 case $ac_cv_c_bigendian in #(
8947 yes)
8948 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8949 ;; #(
8951 ;; #(
8952 universal)
8954 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8956 ;; #(
8958 as_fn_error "unknown endianness
8959 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8960 esac
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8964 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8965 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 char __attribute__ ((__aligned__ (1 << 3))) c;
8972 main ()
8976 return 0;
8978 _ACEOF
8979 if ac_fn_c_try_compile "$LINENO"; then :
8980 emacs_cv_attribute_aligned=yes
8981 else
8982 emacs_cv_attribute_aligned=no
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8987 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8988 if test $emacs_cv_attribute_aligned = yes; then
8990 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8995 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8996 set x ${MAKE-make}
8997 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8998 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 cat >conftest.make <<\_ACEOF
9002 SHELL = /bin/sh
9003 all:
9004 @echo '@@@%%%=$(MAKE)=@@@%%%'
9005 _ACEOF
9006 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9007 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9008 *@@@%%%=?*=@@@%%%*)
9009 eval ac_cv_prog_make_${ac_make}_set=yes;;
9011 eval ac_cv_prog_make_${ac_make}_set=no;;
9012 esac
9013 rm -f conftest.make
9015 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9017 $as_echo "yes" >&6; }
9018 SET_MAKE=
9019 else
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9022 SET_MAKE="MAKE=${MAKE-make}"
9026 DEPFLAGS=
9027 MKDEPDIR=":"
9028 deps_frag=deps.mk
9029 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9031 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9032 HAVE_GNU_MAKE=no
9033 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9034 if test "x$testval" != x; then
9035 HAVE_GNU_MAKE=yes
9036 else
9037 ac_enable_autodepend=no
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9040 $as_echo "$HAVE_GNU_MAKE" >&6; }
9041 if test $HAVE_GNU_MAKE = yes; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9043 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9044 SAVE_CFLAGS="$CFLAGS"
9045 CFLAGS="$CFLAGS -MMD -MF deps.d"
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9050 main ()
9054 return 0;
9056 _ACEOF
9057 if ac_fn_c_try_compile "$LINENO"; then :
9059 else
9060 ac_enable_autodepend=no
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 CFLAGS="$SAVE_CFLAGS"
9064 test -f deps.d || ac_enable_autodepend=no
9065 rm -rf deps.d
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9067 $as_echo "$ac_enable_autodepend" >&6; }
9069 if test $ac_enable_autodepend = yes; then
9070 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
9071 ## In parallel builds, another make might create depdir between
9072 ## the first test and mkdir, so stick another test on the end.
9073 ## Or use install-sh -d? mkdir -p is not portable.
9074 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9075 deps_frag=autodeps.mk
9078 deps_frag=$srcdir/src/$deps_frag
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9085 $as_echo_n "checking for long file names... " >&6; }
9086 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 ac_cv_sys_long_file_names=yes
9090 # Test for long file names in all the places we know might matter:
9091 # . the current directory, where building will happen
9092 # $prefix/lib where we will be installing things
9093 # $exec_prefix/lib likewise
9094 # $TMPDIR if set, where it might want to write temporary files
9095 # /tmp where it might want to write temporary files
9096 # /var/tmp likewise
9097 # /usr/tmp likewise
9098 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9099 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9100 # in the usual case where exec_prefix is '${prefix}'.
9101 case $ac_dir in #(
9102 . | /* | ?:[\\/]*) ;; #(
9103 *) continue;;
9104 esac
9105 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9106 ac_xdir=$ac_dir/cf$$
9107 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9108 ac_tf1=$ac_xdir/conftest9012345
9109 ac_tf2=$ac_xdir/conftest9012346
9110 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9111 ac_cv_sys_long_file_names=no
9112 rm -f -r "$ac_xdir" 2>/dev/null
9113 test $ac_cv_sys_long_file_names = no && break
9114 done
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9117 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9118 if test $ac_cv_sys_long_file_names = yes; then
9120 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9125 #### Choose a window system.
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9128 $as_echo_n "checking for X... " >&6; }
9131 # Check whether --with-x was given.
9132 if test "${with_x+set}" = set; then :
9133 withval=$with_x;
9136 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9137 if test "x$with_x" = xno; then
9138 # The user explicitly disabled X.
9139 have_x=disabled
9140 else
9141 case $x_includes,$x_libraries in #(
9142 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9143 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 # One or both of the vars are not set, and there is no cached value.
9147 ac_x_includes=no ac_x_libraries=no
9148 rm -f -r conftest.dir
9149 if mkdir conftest.dir; then
9150 cd conftest.dir
9151 cat >Imakefile <<'_ACEOF'
9152 incroot:
9153 @echo incroot='${INCROOT}'
9154 usrlibdir:
9155 @echo usrlibdir='${USRLIBDIR}'
9156 libdir:
9157 @echo libdir='${LIBDIR}'
9158 _ACEOF
9159 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9160 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9161 for ac_var in incroot usrlibdir libdir; do
9162 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9163 done
9164 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9165 for ac_extension in a so sl dylib la dll; do
9166 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9167 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9168 ac_im_usrlibdir=$ac_im_libdir; break
9170 done
9171 # Screen out bogus values from the imake configuration. They are
9172 # bogus both because they are the default anyway, and because
9173 # using them would break gcc on systems where it needs fixed includes.
9174 case $ac_im_incroot in
9175 /usr/include) ac_x_includes= ;;
9176 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9177 esac
9178 case $ac_im_usrlibdir in
9179 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9180 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9181 esac
9183 cd ..
9184 rm -f -r conftest.dir
9187 # Standard set of common directories for X headers.
9188 # Check X11 before X11Rn because it is often a symlink to the current release.
9189 ac_x_header_dirs='
9190 /usr/X11/include
9191 /usr/X11R7/include
9192 /usr/X11R6/include
9193 /usr/X11R5/include
9194 /usr/X11R4/include
9196 /usr/include/X11
9197 /usr/include/X11R7
9198 /usr/include/X11R6
9199 /usr/include/X11R5
9200 /usr/include/X11R4
9202 /usr/local/X11/include
9203 /usr/local/X11R7/include
9204 /usr/local/X11R6/include
9205 /usr/local/X11R5/include
9206 /usr/local/X11R4/include
9208 /usr/local/include/X11
9209 /usr/local/include/X11R7
9210 /usr/local/include/X11R6
9211 /usr/local/include/X11R5
9212 /usr/local/include/X11R4
9214 /usr/X386/include
9215 /usr/x386/include
9216 /usr/XFree86/include/X11
9218 /usr/include
9219 /usr/local/include
9220 /usr/unsupported/include
9221 /usr/athena/include
9222 /usr/local/x11r5/include
9223 /usr/lpp/Xamples/include
9225 /usr/openwin/include
9226 /usr/openwin/share/include'
9228 if test "$ac_x_includes" = no; then
9229 # Guess where to find include files, by looking for Xlib.h.
9230 # First, try using that file with no special directory specified.
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <X11/Xlib.h>
9234 _ACEOF
9235 if ac_fn_c_try_cpp "$LINENO"; then :
9236 # We can compile using X headers with no special include directory.
9237 ac_x_includes=
9238 else
9239 for ac_dir in $ac_x_header_dirs; do
9240 if test -r "$ac_dir/X11/Xlib.h"; then
9241 ac_x_includes=$ac_dir
9242 break
9244 done
9246 rm -f conftest.err conftest.$ac_ext
9247 fi # $ac_x_includes = no
9249 if test "$ac_x_libraries" = no; then
9250 # Check for the libraries.
9251 # See if we find them without any special options.
9252 # Don't add to $LIBS permanently.
9253 ac_save_LIBS=$LIBS
9254 LIBS="-lX11 $LIBS"
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257 #include <X11/Xlib.h>
9259 main ()
9261 XrmInitialize ()
9263 return 0;
9265 _ACEOF
9266 if ac_fn_c_try_link "$LINENO"; then :
9267 LIBS=$ac_save_LIBS
9268 # We can link X programs with no special library path.
9269 ac_x_libraries=
9270 else
9271 LIBS=$ac_save_LIBS
9272 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9274 # Don't even attempt the hair of trying to link an X program!
9275 for ac_extension in a so sl dylib la dll; do
9276 if test -r "$ac_dir/libX11.$ac_extension"; then
9277 ac_x_libraries=$ac_dir
9278 break 2
9280 done
9281 done
9283 rm -f core conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285 fi # $ac_x_libraries = no
9287 case $ac_x_includes,$ac_x_libraries in #(
9288 no,* | *,no | *\'*)
9289 # Didn't find X, or a directory has "'" in its name.
9290 ac_cv_have_x="have_x=no";; #(
9292 # Record where we found X for the cache.
9293 ac_cv_have_x="have_x=yes\
9294 ac_x_includes='$ac_x_includes'\
9295 ac_x_libraries='$ac_x_libraries'"
9296 esac
9298 ;; #(
9299 *) have_x=yes;;
9300 esac
9301 eval "$ac_cv_have_x"
9302 fi # $with_x != no
9304 if test "$have_x" != yes; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9306 $as_echo "$have_x" >&6; }
9307 no_x=yes
9308 else
9309 # If each of the values was on the command line, it overrides each guess.
9310 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9311 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9312 # Update the cache value to reflect the command line values.
9313 ac_cv_have_x="have_x=yes\
9314 ac_x_includes='$x_includes'\
9315 ac_x_libraries='$x_libraries'"
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9317 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9320 if test "$no_x" = yes; then
9321 window_system=none
9322 else
9323 window_system=x11
9326 ## Workaround for bug in autoconf <= 2.62.
9327 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9328 ## No need to do anything special for these standard directories.
9329 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9331 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9335 LD_SWITCH_X_SITE_AUX=
9336 LD_SWITCH_X_SITE_AUX_RPATH=
9337 if test "${x_libraries}" != NONE; then
9338 if test -n "${x_libraries}"; then
9339 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9340 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9341 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9343 x_default_search_path=""
9344 x_search_path=${x_libraries}
9345 if test -z "${x_search_path}"; then
9346 x_search_path=/usr/lib
9348 for x_library in `echo ${x_search_path}: | \
9349 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9350 x_search_path="\
9351 ${x_library}/X11/%L/%T/%N%C%S:\
9352 ${x_library}/X11/%l/%T/%N%C%S:\
9353 ${x_library}/X11/%T/%N%C%S:\
9354 ${x_library}/X11/%L/%T/%N%S:\
9355 ${x_library}/X11/%l/%T/%N%S:\
9356 ${x_library}/X11/%T/%N%S"
9357 if test x"${x_default_search_path}" = x; then
9358 x_default_search_path=${x_search_path}
9359 else
9360 x_default_search_path="${x_search_path}:${x_default_search_path}"
9362 done
9367 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9368 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9371 if test x"${x_includes}" = x; then
9372 bitmapdir=/usr/include/X11/bitmaps
9373 else
9374 # accumulate include directories that have X11 bitmap subdirectories
9375 bmd_acc="dummyval"
9376 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9377 if test -d "${bmd}/X11/bitmaps"; then
9378 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9380 if test -d "${bmd}/bitmaps"; then
9381 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9383 done
9384 if test ${bmd_acc} != "dummyval"; then
9385 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9389 HAVE_NS=no
9390 NS_IMPL_COCOA=no
9391 NS_IMPL_GNUSTEP=no
9392 tmp_CPPFLAGS="$CPPFLAGS"
9393 tmp_CFLAGS="$CFLAGS"
9394 CPPFLAGS="$CPPFLAGS -x objective-c"
9395 CFLAGS="$CFLAGS -x objective-c"
9396 TEMACS_LDFLAGS2="\${LDFLAGS}"
9397 if test "${with_ns}" != no; then
9398 if test "${opsys}" = darwin; then
9399 NS_IMPL_COCOA=yes
9400 ns_appdir=`pwd`/nextstep/Emacs.app
9401 ns_appbindir=${ns_appdir}/Contents/MacOS/
9402 ns_appresdir=${ns_appdir}/Contents/Resources
9403 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9404 elif test -f $GNUSTEP_CONFIG_FILE; then
9405 NS_IMPL_GNUSTEP=yes
9406 ns_appdir=`pwd`/nextstep/Emacs.app
9407 ns_appbindir=${ns_appdir}/
9408 ns_appresdir=${ns_appdir}/Resources
9409 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9410 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9411 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9412 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9413 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9414 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9415 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9416 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9417 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9418 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9419 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9420 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9421 LIB_STANDARD=
9422 START_FILES=
9423 TEMACS_LDFLAGS2=
9425 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9426 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9427 HAVE_NS=yes
9428 else
9429 as_fn_error "\`--with-ns' was specified, but the include
9430 files are missing or cannot be compiled." "$LINENO" 5
9434 NS_HAVE_NSINTEGER=yes
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 #include <Foundation/NSObjCRuntime.h>
9439 main ()
9441 NSInteger i;
9443 return 0;
9445 _ACEOF
9446 if ac_fn_c_try_compile "$LINENO"; then :
9447 ns_have_nsinteger=yes
9448 else
9449 ns_have_nsinteger=no
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 if test $ns_have_nsinteger = no; then
9453 NS_HAVE_NSINTEGER=no
9458 ns_frag=/dev/null
9459 NS_OBJ=
9460 NS_OBJC_OBJ=
9461 NS_SUPPORT=
9462 if test "${HAVE_NS}" = yes; then
9463 window_system=nextstep
9464 with_xft=no
9465 # set up packaging dirs
9466 exec_prefix=${ns_appbindir}
9467 libexecdir=${ns_appbindir}/libexec
9468 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9469 prefix=${ns_appresdir}
9471 ns_frag=$srcdir/src/ns.mk
9472 NS_OBJ="fontset.o fringe.o image.o"
9473 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9474 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9476 CFLAGS="$tmp_CFLAGS"
9477 CPPFLAGS="$tmp_CPPFLAGS"
9484 case "${window_system}" in
9485 x11 )
9486 HAVE_X_WINDOWS=yes
9487 HAVE_X11=yes
9488 case "${with_x_toolkit}" in
9489 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9490 motif ) USE_X_TOOLKIT=MOTIF ;;
9491 gtk ) with_gtk=yes
9492 USE_X_TOOLKIT=none ;;
9493 gtk3 ) with_gtk3=yes
9494 USE_X_TOOLKIT=none ;;
9495 no ) USE_X_TOOLKIT=none ;;
9496 * ) USE_X_TOOLKIT=maybe ;;
9497 esac
9499 nextstep | none )
9500 HAVE_X_WINDOWS=no
9501 HAVE_X11=no
9502 USE_X_TOOLKIT=none
9504 esac
9506 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9507 # Extract the first word of "X", so it can be a program name with args.
9508 set dummy X; ac_word=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 if test -n "$HAVE_XSERVER"; then
9515 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9516 else
9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518 for as_dir in $PATH
9520 IFS=$as_save_IFS
9521 test -z "$as_dir" && as_dir=.
9522 for ac_exec_ext in '' $ac_executable_extensions; do
9523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9524 ac_cv_prog_HAVE_XSERVER="true"
9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9526 break 2
9528 done
9529 done
9530 IFS=$as_save_IFS
9532 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9535 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9536 if test -n "$HAVE_XSERVER"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9538 $as_echo "$HAVE_XSERVER" >&6; }
9539 else
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9545 if test "$HAVE_XSERVER" = true ||
9546 test -n "$DISPLAY" ||
9547 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9548 as_fn_error "You seem to be running X, but no X development libraries
9549 were found. You should install the relevant development files for X
9550 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9551 sure you have development files for image handling, i.e.
9552 tiff, gif, jpeg, png and xpm.
9553 If you are sure you want Emacs compiled without X window support, pass
9554 --without-x
9555 to configure." "$LINENO" 5
9559 ### If we're using X11, we should use the X menu package.
9560 HAVE_MENUS=no
9561 case ${HAVE_X11} in
9562 yes ) HAVE_MENUS=yes ;;
9563 esac
9565 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9566 # Assume not, until told otherwise.
9567 GNU_MALLOC=yes
9568 doug_lea_malloc=yes
9569 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9570 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9572 else
9573 doug_lea_malloc=no
9576 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9577 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9579 else
9580 doug_lea_malloc=no
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9584 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9585 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590 extern void (* __after_morecore_hook)();
9592 main ()
9594 __after_morecore_hook = 0
9596 return 0;
9598 _ACEOF
9599 if ac_fn_c_try_link "$LINENO"; then :
9600 emacs_cv_var___after_morecore_hook=yes
9601 else
9602 emacs_cv_var___after_morecore_hook=no
9604 rm -f core conftest.err conftest.$ac_objext \
9605 conftest$ac_exeext conftest.$ac_ext
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9608 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9609 if test $emacs_cv_var___after_morecore_hook = no; then
9610 doug_lea_malloc=no
9614 system_malloc=no
9615 case "$opsys" in
9616 ## darwin ld insists on the use of malloc routines in the System framework.
9617 darwin|sol2-10) system_malloc=yes ;;
9618 esac
9620 if test "${system_malloc}" = "yes"; then
9622 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9624 GNU_MALLOC=no
9625 GNU_MALLOC_reason="
9626 (The GNU allocators don't work with this system configuration.)"
9627 GMALLOC_OBJ=
9628 VMLIMIT_OBJ=
9629 else
9630 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9631 VMLIMIT_OBJ=vm-limit.o
9636 if test "$doug_lea_malloc" = "yes" ; then
9637 if test "$GNU_MALLOC" = yes ; then
9638 GNU_MALLOC_reason="
9639 (Using Doug Lea's new malloc from the GNU C Library.)"
9642 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9645 ## Use mmap directly for allocating larger buffers.
9646 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9647 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9648 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9649 case "$opsys" in
9650 gnu*) REL_ALLOC=no ;;
9651 esac
9654 if test x"${REL_ALLOC}" = x; then
9655 REL_ALLOC=${GNU_MALLOC}
9658 use_mmap_for_buffers=no
9659 case "$opsys" in
9660 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9661 esac
9666 for ac_header in $ac_header_list
9667 do :
9668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9669 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9671 eval as_val=\$$as_ac_Header
9672 if test "x$as_val" = x""yes; then :
9673 cat >>confdefs.h <<_ACEOF
9674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9675 _ACEOF
9679 done
9688 for ac_func in getpagesize
9689 do :
9690 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9691 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9692 cat >>confdefs.h <<_ACEOF
9693 #define HAVE_GETPAGESIZE 1
9694 _ACEOF
9697 done
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9700 $as_echo_n "checking for working mmap... " >&6; }
9701 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 if test "$cross_compiling" = yes; then :
9705 ac_cv_func_mmap_fixed_mapped=no
9706 else
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9709 $ac_includes_default
9710 /* malloc might have been renamed as rpl_malloc. */
9711 #undef malloc
9713 /* Thanks to Mike Haertel and Jim Avera for this test.
9714 Here is a matrix of mmap possibilities:
9715 mmap private not fixed
9716 mmap private fixed at somewhere currently unmapped
9717 mmap private fixed at somewhere already mapped
9718 mmap shared not fixed
9719 mmap shared fixed at somewhere currently unmapped
9720 mmap shared fixed at somewhere already mapped
9721 For private mappings, we should verify that changes cannot be read()
9722 back from the file, nor mmap's back from the file at a different
9723 address. (There have been systems where private was not correctly
9724 implemented like the infamous i386 svr4.0, and systems where the
9725 VM page cache was not coherent with the file system buffer cache
9726 like early versions of FreeBSD and possibly contemporary NetBSD.)
9727 For shared mappings, we should conversely verify that changes get
9728 propagated back to all the places they're supposed to be.
9730 Grep wants private fixed already mapped.
9731 The main things grep needs to know about mmap are:
9732 * does it exist and is it safe to write into the mmap'd area
9733 * how to use it (BSD variants) */
9735 #include <fcntl.h>
9736 #include <sys/mman.h>
9738 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9739 char *malloc ();
9740 #endif
9742 /* This mess was copied from the GNU getpagesize.h. */
9743 #ifndef HAVE_GETPAGESIZE
9744 # ifdef _SC_PAGESIZE
9745 # define getpagesize() sysconf(_SC_PAGESIZE)
9746 # else /* no _SC_PAGESIZE */
9747 # ifdef HAVE_SYS_PARAM_H
9748 # include <sys/param.h>
9749 # ifdef EXEC_PAGESIZE
9750 # define getpagesize() EXEC_PAGESIZE
9751 # else /* no EXEC_PAGESIZE */
9752 # ifdef NBPG
9753 # define getpagesize() NBPG * CLSIZE
9754 # ifndef CLSIZE
9755 # define CLSIZE 1
9756 # endif /* no CLSIZE */
9757 # else /* no NBPG */
9758 # ifdef NBPC
9759 # define getpagesize() NBPC
9760 # else /* no NBPC */
9761 # ifdef PAGESIZE
9762 # define getpagesize() PAGESIZE
9763 # endif /* PAGESIZE */
9764 # endif /* no NBPC */
9765 # endif /* no NBPG */
9766 # endif /* no EXEC_PAGESIZE */
9767 # else /* no HAVE_SYS_PARAM_H */
9768 # define getpagesize() 8192 /* punt totally */
9769 # endif /* no HAVE_SYS_PARAM_H */
9770 # endif /* no _SC_PAGESIZE */
9772 #endif /* no HAVE_GETPAGESIZE */
9775 main ()
9777 char *data, *data2, *data3;
9778 const char *cdata2;
9779 int i, pagesize;
9780 int fd, fd2;
9782 pagesize = getpagesize ();
9784 /* First, make a file with some known garbage in it. */
9785 data = (char *) malloc (pagesize);
9786 if (!data)
9787 return 1;
9788 for (i = 0; i < pagesize; ++i)
9789 *(data + i) = rand ();
9790 umask (0);
9791 fd = creat ("conftest.mmap", 0600);
9792 if (fd < 0)
9793 return 2;
9794 if (write (fd, data, pagesize) != pagesize)
9795 return 3;
9796 close (fd);
9798 /* Next, check that the tail of a page is zero-filled. File must have
9799 non-zero length, otherwise we risk SIGBUS for entire page. */
9800 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9801 if (fd2 < 0)
9802 return 4;
9803 cdata2 = "";
9804 if (write (fd2, cdata2, 1) != 1)
9805 return 5;
9806 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9807 if (data2 == MAP_FAILED)
9808 return 6;
9809 for (i = 0; i < pagesize; ++i)
9810 if (*(data2 + i))
9811 return 7;
9812 close (fd2);
9813 if (munmap (data2, pagesize))
9814 return 8;
9816 /* Next, try to mmap the file at a fixed address which already has
9817 something else allocated at it. If we can, also make sure that
9818 we see the same garbage. */
9819 fd = open ("conftest.mmap", O_RDWR);
9820 if (fd < 0)
9821 return 9;
9822 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9823 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9824 return 10;
9825 for (i = 0; i < pagesize; ++i)
9826 if (*(data + i) != *(data2 + i))
9827 return 11;
9829 /* Finally, make sure that changes to the mapped area do not
9830 percolate back to the file as seen by read(). (This is a bug on
9831 some variants of i386 svr4.0.) */
9832 for (i = 0; i < pagesize; ++i)
9833 *(data2 + i) = *(data2 + i) + 1;
9834 data3 = (char *) malloc (pagesize);
9835 if (!data3)
9836 return 12;
9837 if (read (fd, data3, pagesize) != pagesize)
9838 return 13;
9839 for (i = 0; i < pagesize; ++i)
9840 if (*(data + i) != *(data3 + i))
9841 return 14;
9842 close (fd);
9843 return 0;
9845 _ACEOF
9846 if ac_fn_c_try_run "$LINENO"; then :
9847 ac_cv_func_mmap_fixed_mapped=yes
9848 else
9849 ac_cv_func_mmap_fixed_mapped=no
9851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9852 conftest.$ac_objext conftest.beam conftest.$ac_ext
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9857 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9858 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9860 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9863 rm -f conftest.mmap conftest.txt
9865 if test $use_mmap_for_buffers = yes; then
9867 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9869 REL_ALLOC=no
9872 LIBS="$LIBS_SYSTEM $LIBS"
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9875 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9876 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879 ac_check_lib_save_LIBS=$LIBS
9880 LIBS="-ldnet $LIBS"
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9884 /* Override any GCC internal prototype to avoid an error.
9885 Use char because int might match the return type of a GCC
9886 builtin and then its argument prototype would still apply. */
9887 #ifdef __cplusplus
9888 extern "C"
9889 #endif
9890 char dnet_ntoa ();
9892 main ()
9894 return dnet_ntoa ();
9896 return 0;
9898 _ACEOF
9899 if ac_fn_c_try_link "$LINENO"; then :
9900 ac_cv_lib_dnet_dnet_ntoa=yes
9901 else
9902 ac_cv_lib_dnet_dnet_ntoa=no
9904 rm -f core conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9909 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9910 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9911 cat >>confdefs.h <<_ACEOF
9912 #define HAVE_LIBDNET 1
9913 _ACEOF
9915 LIBS="-ldnet $LIBS"
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9921 $as_echo_n "checking for main in -lXbsd... " >&6; }
9922 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 ac_check_lib_save_LIBS=$LIBS
9926 LIBS="-lXbsd $LIBS"
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9932 main ()
9934 return main ();
9936 return 0;
9938 _ACEOF
9939 if ac_fn_c_try_link "$LINENO"; then :
9940 ac_cv_lib_Xbsd_main=yes
9941 else
9942 ac_cv_lib_Xbsd_main=no
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9949 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9950 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9951 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9956 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9957 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 ac_check_lib_save_LIBS=$LIBS
9961 LIBS="-lpthreads $LIBS"
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9965 /* Override any GCC internal prototype to avoid an error.
9966 Use char because int might match the return type of a GCC
9967 builtin and then its argument prototype would still apply. */
9968 #ifdef __cplusplus
9969 extern "C"
9970 #endif
9971 char cma_open ();
9973 main ()
9975 return cma_open ();
9977 return 0;
9979 _ACEOF
9980 if ac_fn_c_try_link "$LINENO"; then :
9981 ac_cv_lib_pthreads_cma_open=yes
9982 else
9983 ac_cv_lib_pthreads_cma_open=no
9985 rm -f core conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987 LIBS=$ac_check_lib_save_LIBS
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9990 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9991 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9992 cat >>confdefs.h <<_ACEOF
9993 #define HAVE_LIBPTHREADS 1
9994 _ACEOF
9996 LIBS="-lpthreads $LIBS"
10001 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10002 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10003 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10004 ## added to LIBS in configure would never contain the pthreads part,
10005 ## but the value used in Makefiles might. FIXME?
10007 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10008 ## be harmless on older versions of X where it happens to exist.
10009 test "$opsys" = "aix4-2" && \
10010 test $ac_cv_lib_pthreads_cma_open = yes && \
10011 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10014 case ${host_os} in
10015 aix*)
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10017 $as_echo_n "checking for -bbigtoc option... " >&6; }
10018 if test "${gdb_cv_bigtoc+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10022 case $GCC in
10023 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10024 *) gdb_cv_bigtoc=-bbigtoc ;;
10025 esac
10027 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10032 main ()
10034 int i;
10036 return 0;
10038 _ACEOF
10039 if ac_fn_c_try_link "$LINENO"; then :
10041 else
10042 gdb_cv_bigtoc=
10044 rm -f core conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10049 $as_echo "$gdb_cv_bigtoc" >&6; }
10051 esac
10053 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10054 # used for the tests that follow. We set them back to REAL_CFLAGS and
10055 # REAL_CPPFLAGS later on.
10057 REAL_CFLAGS="$CFLAGS"
10058 REAL_CPPFLAGS="$CPPFLAGS"
10060 if test "${HAVE_X11}" = "yes"; then
10061 DEFS="$C_SWITCH_X_SITE $DEFS"
10062 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10063 LIBS="-lX11 $LIBS"
10064 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10065 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10067 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10068 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10069 # but it's more convenient here to set LD_RUN_PATH
10070 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10071 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10072 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10073 export LD_RUN_PATH
10076 if test "${opsys}" = "gnu-linux"; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10078 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10083 main ()
10085 XOpenDisplay ("foo");
10087 return 0;
10089 _ACEOF
10090 if ac_fn_c_try_link "$LINENO"; then :
10091 xlinux_first_failure=no
10092 else
10093 xlinux_first_failure=yes
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097 if test "${xlinux_first_failure}" = "yes"; then
10098 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10099 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10100 OLD_CPPFLAGS="$CPPFLAGS"
10101 OLD_LIBS="$LIBS"
10102 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10103 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10104 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10105 LIBS="$LIBS -b i486-linuxaout"
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10110 main ()
10112 XOpenDisplay ("foo");
10114 return 0;
10116 _ACEOF
10117 if ac_fn_c_try_link "$LINENO"; then :
10118 xlinux_second_failure=no
10119 else
10120 xlinux_second_failure=yes
10122 rm -f core conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
10124 if test "${xlinux_second_failure}" = "yes"; then
10125 # If we get the same failure with -b, there is no use adding -b.
10126 # So take it out. This plays safe.
10127 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10128 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10129 CPPFLAGS="$OLD_CPPFLAGS"
10130 LIBS="$OLD_LIBS"
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132 $as_echo "no" >&6; }
10133 else
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10135 $as_echo "yes" >&6; }
10137 else
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10139 $as_echo "no" >&6; }
10143 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10144 # header files included from there.
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10146 $as_echo_n "checking for Xkb... " >&6; }
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 #include <X11/Xlib.h>
10150 #include <X11/XKBlib.h>
10152 main ()
10154 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10156 return 0;
10158 _ACEOF
10159 if ac_fn_c_try_link "$LINENO"; then :
10160 emacs_xkb=yes
10161 else
10162 emacs_xkb=no
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10167 $as_echo "$emacs_xkb" >&6; }
10168 if test $emacs_xkb = yes; then
10170 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10174 for ac_func in XrmSetDatabase XScreenResourceString \
10175 XScreenNumberOfScreen XSetWMProtocols
10176 do :
10177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10178 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10179 eval as_val=\$$as_ac_var
10180 if test "x$as_val" = x""yes; then :
10181 cat >>confdefs.h <<_ACEOF
10182 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10183 _ACEOF
10186 done
10190 if test "${window_system}" = "x11"; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10192 $as_echo_n "checking X11 version 6... " >&6; }
10193 if test "${emacs_cv_x11_version_6+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 #include <X11/Xlib.h>
10200 main ()
10202 #if XlibSpecificationRelease < 6
10203 fail;
10204 #endif
10207 return 0;
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211 emacs_cv_x11_version_6=yes
10212 else
10213 emacs_cv_x11_version_6=no
10215 rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10219 if test $emacs_cv_x11_version_6 = yes; then
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10221 $as_echo "6 or newer" >&6; }
10223 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10226 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10228 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10229 ## XIM support.
10230 case "$opsys" in
10231 sol2-*) : ;;
10233 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10236 esac
10237 else
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10239 $as_echo "before 6" >&6; }
10244 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10245 HAVE_RSVG=no
10246 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
10247 if test "${with_rsvg}" != "no"; then
10248 RSVG_REQUIRED=2.11.0
10249 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10252 succeeded=no
10254 # Extract the first word of "pkg-config", so it can be a program name with args.
10255 set dummy pkg-config; ac_word=$2
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10257 $as_echo_n "checking for $ac_word... " >&6; }
10258 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 case $PKG_CONFIG in
10262 [\\/]* | ?:[\\/]*)
10263 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in $PATH
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10273 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 break 2
10277 done
10278 done
10279 IFS=$as_save_IFS
10281 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10283 esac
10285 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10286 if test -n "$PKG_CONFIG"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10288 $as_echo "$PKG_CONFIG" >&6; }
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10296 if test "$PKG_CONFIG" = "no" ; then
10298 else
10299 PKG_CONFIG_MIN_VERSION=0.9.0
10300 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10302 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10304 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10306 $as_echo "yes" >&6; }
10307 succeeded=yes
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10310 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10311 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10313 $as_echo "$RSVG_CFLAGS" >&6; }
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10316 $as_echo_n "checking RSVG_LIBS... " >&6; }
10317 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10319 $as_echo "$RSVG_LIBS" >&6; }
10320 else
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10323 RSVG_CFLAGS=""
10324 RSVG_LIBS=""
10325 ## If we have a custom action on failure, don't print errors, but
10326 ## do set a variable so people can do so.
10327 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10333 else
10334 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10335 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10339 if test $succeeded = yes; then
10340 HAVE_RSVG=yes
10341 else
10348 if test $HAVE_RSVG = yes; then
10350 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10352 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10353 LIBS="$RSVG_LIBS $LIBS"
10358 HAVE_IMAGEMAGICK=no
10359 if test "${HAVE_X11}" = "yes"; then
10360 if test "${with_imagemagick}" != "no"; then
10361 ## 6.2.8 is the earliest version known to work, but earlier versions
10362 ## might work - let us know if you find one.
10363 ## 6.0.7 does not work. See bug#7955.
10364 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10366 succeeded=no
10368 # Extract the first word of "pkg-config", so it can be a program name with args.
10369 set dummy pkg-config; ac_word=$2
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371 $as_echo_n "checking for $ac_word... " >&6; }
10372 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 case $PKG_CONFIG in
10376 [\\/]* | ?:[\\/]*)
10377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10391 done
10392 done
10393 IFS=$as_save_IFS
10395 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10397 esac
10399 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10400 if test -n "$PKG_CONFIG"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10402 $as_echo "$PKG_CONFIG" >&6; }
10403 else
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405 $as_echo "no" >&6; }
10410 if test "$PKG_CONFIG" = "no" ; then
10412 else
10413 PKG_CONFIG_MIN_VERSION=0.9.0
10414 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10416 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10418 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10420 $as_echo "yes" >&6; }
10421 succeeded=yes
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10424 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10425 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10427 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10430 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10431 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10433 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10434 else
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; }
10437 IMAGEMAGICK_CFLAGS=""
10438 IMAGEMAGICK_LIBS=""
10439 ## If we have a custom action on failure, don't print errors, but
10440 ## do set a variable so people can do so.
10441 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10447 else
10448 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10449 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10453 if test $succeeded = yes; then
10454 HAVE_IMAGEMAGICK=yes
10455 else
10462 if test $HAVE_IMAGEMAGICK = yes; then
10464 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10466 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10467 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10468 for ac_func in MagickExportImagePixels
10469 do :
10470 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10471 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10472 cat >>confdefs.h <<_ACEOF
10473 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10474 _ACEOF
10477 done
10484 HAVE_GTK=no
10485 if test "${with_gtk3}" = "yes"; then
10486 GLIB_REQUIRED=2.28
10487 GTK_REQUIRED=3.0
10488 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10491 succeeded=no
10493 # Extract the first word of "pkg-config", so it can be a program name with args.
10494 set dummy pkg-config; ac_word=$2
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496 $as_echo_n "checking for $ac_word... " >&6; }
10497 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 case $PKG_CONFIG in
10501 [\\/]* | ?:[\\/]*)
10502 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506 for as_dir in $PATH
10508 IFS=$as_save_IFS
10509 test -z "$as_dir" && as_dir=.
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10512 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10514 break 2
10516 done
10517 done
10518 IFS=$as_save_IFS
10520 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10522 esac
10524 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10525 if test -n "$PKG_CONFIG"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10527 $as_echo "$PKG_CONFIG" >&6; }
10528 else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; }
10535 if test "$PKG_CONFIG" = "no" ; then
10536 pkg_check_gtk=no
10537 else
10538 PKG_CONFIG_MIN_VERSION=0.9.0
10539 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10541 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10543 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10545 $as_echo "yes" >&6; }
10546 succeeded=yes
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10549 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10550 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10552 $as_echo "$GTK_CFLAGS" >&6; }
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10555 $as_echo_n "checking GTK_LIBS... " >&6; }
10556 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10558 $as_echo "$GTK_LIBS" >&6; }
10559 else
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10561 $as_echo "no" >&6; }
10562 GTK_CFLAGS=""
10563 GTK_LIBS=""
10564 ## If we have a custom action on failure, don't print errors, but
10565 ## do set a variable so people can do so.
10566 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10572 else
10573 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10574 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10578 if test $succeeded = yes; then
10579 pkg_check_gtk=yes
10580 else
10581 pkg_check_gtk=no
10584 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10585 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10588 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10592 if test "$pkg_check_gtk" != "yes"; then
10593 HAVE_GTK=no
10594 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10595 GLIB_REQUIRED=2.6
10596 GTK_REQUIRED=2.6
10597 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10600 succeeded=no
10602 # Extract the first word of "pkg-config", so it can be a program name with args.
10603 set dummy pkg-config; ac_word=$2
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605 $as_echo_n "checking for $ac_word... " >&6; }
10606 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 case $PKG_CONFIG in
10610 [\\/]* | ?:[\\/]*)
10611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10621 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10625 done
10626 done
10627 IFS=$as_save_IFS
10629 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10631 esac
10633 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10634 if test -n "$PKG_CONFIG"; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10636 $as_echo "$PKG_CONFIG" >&6; }
10637 else
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639 $as_echo "no" >&6; }
10644 if test "$PKG_CONFIG" = "no" ; then
10645 pkg_check_gtk=no
10646 else
10647 PKG_CONFIG_MIN_VERSION=0.9.0
10648 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10650 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10652 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10654 $as_echo "yes" >&6; }
10655 succeeded=yes
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10658 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10659 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10661 $as_echo "$GTK_CFLAGS" >&6; }
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10664 $as_echo_n "checking GTK_LIBS... " >&6; }
10665 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10667 $as_echo "$GTK_LIBS" >&6; }
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10671 GTK_CFLAGS=""
10672 GTK_LIBS=""
10673 ## If we have a custom action on failure, don't print errors, but
10674 ## do set a variable so people can do so.
10675 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10681 else
10682 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10683 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10687 if test $succeeded = yes; then
10688 pkg_check_gtk=yes
10689 else
10690 pkg_check_gtk=no
10693 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10694 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10699 GTK_OBJ=
10700 if test x"$pkg_check_gtk" = xyes; then
10704 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10705 CFLAGS="$CFLAGS $GTK_CFLAGS"
10706 LIBS="$GTK_LIBS $LIBS"
10707 GTK_COMPILES=no
10708 for ac_func in gtk_main
10709 do :
10710 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10711 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10712 cat >>confdefs.h <<_ACEOF
10713 #define HAVE_GTK_MAIN 1
10714 _ACEOF
10715 GTK_COMPILES=yes
10717 done
10719 if test "${GTK_COMPILES}" != "yes"; then
10720 if test "$USE_X_TOOLKIT" != "maybe"; then
10721 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10723 else
10724 HAVE_GTK=yes
10726 $as_echo "#define USE_GTK 1" >>confdefs.h
10728 GTK_OBJ=gtkutil.o
10729 USE_X_TOOLKIT=none
10730 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10734 closing open displays. This is no problem if you just use
10735 one display, but if you use more than one and close one of them
10736 Emacs may crash." >&5
10737 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10738 closing open displays. This is no problem if you just use
10739 one display, but if you use more than one and close one of them
10740 Emacs may crash." >&2;}
10741 sleep 3
10749 if test "${HAVE_GTK}" = "yes"; then
10751 if test "$with_toolkit_scroll_bars" != no; then
10752 with_toolkit_scroll_bars=yes
10755 HAVE_GTK_FILE_SELECTION=no
10756 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10757 #include <gtk/gtk.h>
10759 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10760 HAVE_GTK_FILE_SELECTION=yes
10761 else
10762 HAVE_GTK_FILE_SELECTION=no
10765 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10766 for ac_func in gtk_file_selection_new
10767 do :
10768 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10769 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10770 cat >>confdefs.h <<_ACEOF
10771 #define HAVE_GTK_FILE_SELECTION_NEW 1
10772 _ACEOF
10775 done
10779 HAVE_GTK_AND_PTHREAD=no
10780 for ac_header in pthread.h
10781 do :
10782 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10783 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10784 cat >>confdefs.h <<_ACEOF
10785 #define HAVE_PTHREAD_H 1
10786 _ACEOF
10790 done
10792 if test "$ac_cv_header_pthread_h"; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10794 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10795 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 ac_check_lib_save_LIBS=$LIBS
10799 LIBS="-lpthread $LIBS"
10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h. */
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10806 #ifdef __cplusplus
10807 extern "C"
10808 #endif
10809 char pthread_self ();
10811 main ()
10813 return pthread_self ();
10815 return 0;
10817 _ACEOF
10818 if ac_fn_c_try_link "$LINENO"; then :
10819 ac_cv_lib_pthread_pthread_self=yes
10820 else
10821 ac_cv_lib_pthread_pthread_self=no
10823 rm -f core conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10825 LIBS=$ac_check_lib_save_LIBS
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10828 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10829 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10830 HAVE_GTK_AND_PTHREAD=yes
10834 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10835 case "${canonical}" in
10836 *-hpux*) ;;
10837 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10838 esac
10840 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10844 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10845 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10846 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10847 gtk_orientable_set_orientation
10848 do :
10849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10850 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10851 eval as_val=\$$as_ac_var
10852 if test "x$as_val" = x""yes; then :
10853 cat >>confdefs.h <<_ACEOF
10854 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10855 _ACEOF
10858 done
10863 HAVE_DBUS=no
10864 DBUS_OBJ=
10865 if test "${with_dbus}" = "yes"; then
10867 succeeded=no
10869 # Extract the first word of "pkg-config", so it can be a program name with args.
10870 set dummy pkg-config; ac_word=$2
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10872 $as_echo_n "checking for $ac_word... " >&6; }
10873 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 case $PKG_CONFIG in
10877 [\\/]* | ?:[\\/]*)
10878 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
10887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10888 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10892 done
10893 done
10894 IFS=$as_save_IFS
10896 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10898 esac
10900 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10901 if test -n "$PKG_CONFIG"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10903 $as_echo "$PKG_CONFIG" >&6; }
10904 else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10911 if test "$PKG_CONFIG" = "no" ; then
10912 HAVE_DBUS=no
10913 else
10914 PKG_CONFIG_MIN_VERSION=0.9.0
10915 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10917 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10919 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10921 $as_echo "yes" >&6; }
10922 succeeded=yes
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10925 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10926 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10928 $as_echo "$DBUS_CFLAGS" >&6; }
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10931 $as_echo_n "checking DBUS_LIBS... " >&6; }
10932 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10934 $as_echo "$DBUS_LIBS" >&6; }
10935 else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937 $as_echo "no" >&6; }
10938 DBUS_CFLAGS=""
10939 DBUS_LIBS=""
10940 ## If we have a custom action on failure, don't print errors, but
10941 ## do set a variable so people can do so.
10942 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10948 else
10949 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10950 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10954 if test $succeeded = yes; then
10955 HAVE_DBUS=yes
10956 else
10957 HAVE_DBUS=no
10960 if test "$HAVE_DBUS" = yes; then
10961 LIBS="$LIBS $DBUS_LIBS"
10963 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10965 for ac_func in dbus_watch_get_unix_fd
10966 do :
10967 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10968 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10969 cat >>confdefs.h <<_ACEOF
10970 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10971 _ACEOF
10974 done
10976 DBUS_OBJ=dbusbind.o
10981 HAVE_GCONF=no
10982 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10984 succeeded=no
10986 # Extract the first word of "pkg-config", so it can be a program name with args.
10987 set dummy pkg-config; ac_word=$2
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989 $as_echo_n "checking for $ac_word... " >&6; }
10990 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 case $PKG_CONFIG in
10994 [\\/]* | ?:[\\/]*)
10995 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999 for as_dir in $PATH
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11005 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11009 done
11010 done
11011 IFS=$as_save_IFS
11013 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11015 esac
11017 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11018 if test -n "$PKG_CONFIG"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11020 $as_echo "$PKG_CONFIG" >&6; }
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; }
11028 if test "$PKG_CONFIG" = "no" ; then
11029 HAVE_GCONF=no
11030 else
11031 PKG_CONFIG_MIN_VERSION=0.9.0
11032 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11034 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11036 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11038 $as_echo "yes" >&6; }
11039 succeeded=yes
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11042 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11043 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11045 $as_echo "$GCONF_CFLAGS" >&6; }
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11048 $as_echo_n "checking GCONF_LIBS... " >&6; }
11049 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11051 $as_echo "$GCONF_LIBS" >&6; }
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11055 GCONF_CFLAGS=""
11056 GCONF_LIBS=""
11057 ## If we have a custom action on failure, don't print errors, but
11058 ## do set a variable so people can do so.
11059 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11065 else
11066 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11067 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11071 if test $succeeded = yes; then
11072 HAVE_GCONF=yes
11073 else
11074 HAVE_GCONF=no
11077 if test "$HAVE_GCONF" = yes; then
11079 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11081 for ac_func in g_type_init
11082 do :
11083 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11084 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11085 cat >>confdefs.h <<_ACEOF
11086 #define HAVE_G_TYPE_INIT 1
11087 _ACEOF
11090 done
11095 HAVE_LIBSELINUX=no
11096 LIBSELINUX_LIBS=
11097 if test "${with_selinux}" = "yes"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11099 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11100 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
11102 else
11103 ac_check_lib_save_LIBS=$LIBS
11104 LIBS="-lselinux $LIBS"
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11108 /* Override any GCC internal prototype to avoid an error.
11109 Use char because int might match the return type of a GCC
11110 builtin and then its argument prototype would still apply. */
11111 #ifdef __cplusplus
11112 extern "C"
11113 #endif
11114 char lgetfilecon ();
11116 main ()
11118 return lgetfilecon ();
11120 return 0;
11122 _ACEOF
11123 if ac_fn_c_try_link "$LINENO"; then :
11124 ac_cv_lib_selinux_lgetfilecon=yes
11125 else
11126 ac_cv_lib_selinux_lgetfilecon=no
11128 rm -f core conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
11130 LIBS=$ac_check_lib_save_LIBS
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11133 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11134 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11135 HAVE_LIBSELINUX=yes
11136 else
11137 HAVE_LIBSELINUX=no
11140 if test "$HAVE_LIBSELINUX" = yes; then
11142 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11144 LIBSELINUX_LIBS=-lselinux
11149 HAVE_GNUTLS=no
11150 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11151 if test "${with_gnutls}" = "yes" ; then
11153 succeeded=no
11155 # Extract the first word of "pkg-config", so it can be a program name with args.
11156 set dummy pkg-config; ac_word=$2
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11158 $as_echo_n "checking for $ac_word... " >&6; }
11159 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
11161 else
11162 case $PKG_CONFIG in
11163 [\\/]* | ?:[\\/]*)
11164 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 break 2
11178 done
11179 done
11180 IFS=$as_save_IFS
11182 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11184 esac
11186 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11187 if test -n "$PKG_CONFIG"; then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11189 $as_echo "$PKG_CONFIG" >&6; }
11190 else
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192 $as_echo "no" >&6; }
11197 if test "$PKG_CONFIG" = "no" ; then
11198 HAVE_GNUTLS=no
11199 else
11200 PKG_CONFIG_MIN_VERSION=0.9.0
11201 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11203 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11205 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11207 $as_echo "yes" >&6; }
11208 succeeded=yes
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11211 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11212 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11214 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11217 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11218 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11220 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11221 else
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; }
11224 LIBGNUTLS_CFLAGS=""
11225 LIBGNUTLS_LIBS=""
11226 ## If we have a custom action on failure, don't print errors, but
11227 ## do set a variable so people can do so.
11228 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11234 else
11235 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11236 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11240 if test $succeeded = yes; then
11241 HAVE_GNUTLS=yes
11242 else
11243 HAVE_GNUTLS=no
11246 if test "${HAVE_GNUTLS}" = "yes"; then
11248 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11252 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11253 LIBS="$LIBGNUTLS_LIBS $LIBS"
11254 for ac_func in gnutls_certificate_set_verify_function
11255 do :
11256 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11257 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11258 cat >>confdefs.h <<_ACEOF
11259 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11260 _ACEOF
11261 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11263 done
11266 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11268 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11276 HAVE_XAW3D=no
11277 LUCID_LIBW=
11278 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11279 if test "$with_xaw3d" != no; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11281 $as_echo_n "checking for xaw3d... " >&6; }
11282 if test "${emacs_cv_xaw3d+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h. */
11288 #include <X11/Intrinsic.h>
11289 #include <X11/Xaw3d/Simple.h>
11291 main ()
11295 return 0;
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11300 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11301 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11302 $as_echo_n "(cached) " >&6
11303 else
11304 ac_check_lib_save_LIBS=$LIBS
11305 LIBS="-lXaw3d $LIBS"
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11309 /* Override any GCC internal prototype to avoid an error.
11310 Use char because int might match the return type of a GCC
11311 builtin and then its argument prototype would still apply. */
11312 #ifdef __cplusplus
11313 extern "C"
11314 #endif
11315 char XawScrollbarSetThumb ();
11317 main ()
11319 return XawScrollbarSetThumb ();
11321 return 0;
11323 _ACEOF
11324 if ac_fn_c_try_link "$LINENO"; then :
11325 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11326 else
11327 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11334 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11335 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11336 emacs_cv_xaw3d=yes
11337 else
11338 emacs_cv_xaw3d=no
11341 else
11342 emacs_cv_xaw3d=no
11344 rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11348 else
11349 emacs_cv_xaw3d=no
11351 if test $emacs_cv_xaw3d = yes; then
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11353 $as_echo "yes; using Lucid toolkit" >&6; }
11354 USE_X_TOOLKIT=LUCID
11355 HAVE_XAW3D=yes
11356 LUCID_LIBW=-lXaw3d
11358 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11364 $as_echo_n "checking for libXaw... " >&6; }
11365 if test "${emacs_cv_xaw+set}" = set; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11371 #include <X11/Intrinsic.h>
11372 #include <X11/Xaw/Simple.h>
11374 main ()
11378 return 0;
11380 _ACEOF
11381 if ac_fn_c_try_link "$LINENO"; then :
11382 emacs_cv_xaw=yes
11383 else
11384 emacs_cv_xaw=no
11386 rm -f core conftest.err conftest.$ac_objext \
11387 conftest$ac_exeext conftest.$ac_ext
11390 if test $emacs_cv_xaw = yes; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11392 $as_echo "yes; using Lucid toolkit" >&6; }
11393 USE_X_TOOLKIT=LUCID
11394 LUCID_LIBW=-lXaw
11395 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11396 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11397 else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11399 $as_echo "no; do not use toolkit by default" >&6; }
11400 USE_X_TOOLKIT=none
11405 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11407 LIBXTR6=
11408 if test "${USE_X_TOOLKIT}" != "none"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11410 $as_echo_n "checking X11 toolkit version... " >&6; }
11411 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11416 #include <X11/Intrinsic.h>
11418 main ()
11420 #if XtSpecificationRelease < 6
11421 fail;
11422 #endif
11425 return 0;
11427 _ACEOF
11428 if ac_fn_c_try_link "$LINENO"; then :
11429 emacs_cv_x11_toolkit_version_6=yes
11430 else
11431 emacs_cv_x11_toolkit_version_6=no
11433 rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11437 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11438 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11440 $as_echo "6 or newer" >&6; }
11442 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11444 LIBXTR6="-lSM -lICE"
11445 case "$opsys" in
11446 ## Use libw.a along with X11R6 Xt.
11447 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11448 esac
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11451 $as_echo "before 6" >&6; }
11454 OLDLIBS="$LIBS"
11455 if test x$HAVE_X11XTR6 = xyes; then
11456 LIBS="-lXt -lSM -lICE $LIBS"
11457 else
11458 LIBS="-lXt $LIBS"
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11461 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11462 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 ac_check_lib_save_LIBS=$LIBS
11466 LIBS="-lXmu $LIBS"
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11470 /* Override any GCC internal prototype to avoid an error.
11471 Use char because int might match the return type of a GCC
11472 builtin and then its argument prototype would still apply. */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 char XmuConvertStandardSelection ();
11478 main ()
11480 return XmuConvertStandardSelection ();
11482 return 0;
11484 _ACEOF
11485 if ac_fn_c_try_link "$LINENO"; then :
11486 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11487 else
11488 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_check_lib_save_LIBS
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11495 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11496 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11497 cat >>confdefs.h <<_ACEOF
11498 #define HAVE_LIBXMU 1
11499 _ACEOF
11501 LIBS="-lXmu $LIBS"
11505 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11509 LIBXMU=-lXmu
11510 case $opsys in
11511 ## These systems don't supply Xmu.
11512 hpux* | aix4-2 )
11513 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11515 esac
11518 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11519 if test "${HAVE_X11}" = "yes"; then
11520 if test "${USE_X_TOOLKIT}" != "none"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11522 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11523 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 ac_check_lib_save_LIBS=$LIBS
11527 LIBS="-lXext $LIBS"
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11531 /* Override any GCC internal prototype to avoid an error.
11532 Use char because int might match the return type of a GCC
11533 builtin and then its argument prototype would still apply. */
11534 #ifdef __cplusplus
11535 extern "C"
11536 #endif
11537 char XShapeQueryExtension ();
11539 main ()
11541 return XShapeQueryExtension ();
11543 return 0;
11545 _ACEOF
11546 if ac_fn_c_try_link "$LINENO"; then :
11547 ac_cv_lib_Xext_XShapeQueryExtension=yes
11548 else
11549 ac_cv_lib_Xext_XShapeQueryExtension=no
11551 rm -f core conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11553 LIBS=$ac_check_lib_save_LIBS
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11556 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11557 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11558 cat >>confdefs.h <<_ACEOF
11559 #define HAVE_LIBXEXT 1
11560 _ACEOF
11562 LIBS="-lXext $LIBS"
11569 LIBXP=
11570 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11572 $as_echo_n "checking for Motif version 2.1... " >&6; }
11573 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578 #include <Xm/Xm.h>
11580 main ()
11582 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11583 int x = 5;
11584 #else
11585 Motif version prior to 2.1.
11586 #endif
11588 return 0;
11590 _ACEOF
11591 if ac_fn_c_try_compile "$LINENO"; then :
11592 emacs_cv_motif_version_2_1=yes
11593 else
11594 emacs_cv_motif_version_2_1=no
11596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11599 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11600 if test $emacs_cv_motif_version_2_1 = yes; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11602 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11603 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 ac_check_lib_save_LIBS=$LIBS
11607 LIBS="-lXp $LIBS"
11608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609 /* end confdefs.h. */
11611 /* Override any GCC internal prototype to avoid an error.
11612 Use char because int might match the return type of a GCC
11613 builtin and then its argument prototype would still apply. */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 char XpCreateContext ();
11619 main ()
11621 return XpCreateContext ();
11623 return 0;
11625 _ACEOF
11626 if ac_fn_c_try_link "$LINENO"; then :
11627 ac_cv_lib_Xp_XpCreateContext=yes
11628 else
11629 ac_cv_lib_Xp_XpCreateContext=no
11631 rm -f core conftest.err conftest.$ac_objext \
11632 conftest$ac_exeext conftest.$ac_ext
11633 LIBS=$ac_check_lib_save_LIBS
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11636 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11637 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11638 LIBXP=-lXp
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11643 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11644 if test "${emacs_cv_lesstif+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 # We put this in CFLAGS temporarily to precede other -I options
11648 # that might be in CFLAGS temporarily.
11649 # We put this in CPPFLAGS where it precedes the other -I options.
11650 OLD_CPPFLAGS=$CPPFLAGS
11651 OLD_CFLAGS=$CFLAGS
11652 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11653 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11656 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11658 main ()
11660 int x = 5;
11662 return 0;
11664 _ACEOF
11665 if ac_fn_c_try_compile "$LINENO"; then :
11666 emacs_cv_lesstif=yes
11667 else
11668 emacs_cv_lesstif=no
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11673 $as_echo "$emacs_cv_lesstif" >&6; }
11674 if test $emacs_cv_lesstif = yes; then
11675 # Make sure this -I option remains in CPPFLAGS after it is set
11676 # back to REAL_CPPFLAGS.
11677 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11678 # have those other -I options anyway. Ultimately, having this
11679 # directory ultimately in CPPFLAGS will be enough.
11680 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11681 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11682 else
11683 CFLAGS=$OLD_CFLAGS
11684 CPPFLAGS=$OLD_CPPFLAGS
11690 USE_TOOLKIT_SCROLL_BARS=no
11691 if test "${with_toolkit_scroll_bars}" != "no"; then
11692 if test "${USE_X_TOOLKIT}" != "none"; then
11693 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11694 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11696 HAVE_XAW3D=no
11697 USE_TOOLKIT_SCROLL_BARS=yes
11698 elif test "${HAVE_XAW3D}" = "yes"; then
11699 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11701 USE_TOOLKIT_SCROLL_BARS=yes
11703 elif test "${HAVE_GTK}" = "yes"; then
11704 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11706 USE_TOOLKIT_SCROLL_BARS=yes
11707 elif test "${HAVE_NS}" = "yes"; then
11708 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11710 USE_TOOLKIT_SCROLL_BARS=yes
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11717 #include <X11/Xlib.h>
11718 #include <X11/Xresource.h>
11720 main ()
11722 XIMProc callback;
11724 return 0;
11726 _ACEOF
11727 if ac_fn_c_try_compile "$LINENO"; then :
11728 HAVE_XIM=yes
11730 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11732 else
11733 HAVE_XIM=no
11735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738 if test "${with_xim}" != "no"; then
11740 $as_echo "#define USE_XIM 1" >>confdefs.h
11745 if test "${HAVE_XIM}" != "no"; then
11746 late_CFLAGS=$CFLAGS
11747 if test "$GCC" = yes; then
11748 CFLAGS="$CFLAGS --pedantic-errors"
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11753 #include <X11/Xlib.h>
11754 #include <X11/Xresource.h>
11756 main ()
11758 Display *display;
11759 XrmDatabase db;
11760 char *res_name;
11761 char *res_class;
11762 XIMProc callback;
11763 XPointer *client_data;
11764 #ifndef __GNUC__
11765 /* If we're not using GCC, it's probably not XFree86, and this is
11766 probably right, but we can't use something like --pedantic-errors. */
11767 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11768 char*, XIMProc, XPointer*);
11769 #endif
11770 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11771 client_data);
11773 return 0;
11775 _ACEOF
11776 if ac_fn_c_try_compile "$LINENO"; then :
11777 emacs_cv_arg6_star=yes
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780 if test "$emacs_cv_arg6_star" = yes; then
11781 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11783 else
11784 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11787 CFLAGS=$late_CFLAGS
11790 ### Start of font-backend (under any platform) section.
11791 # (nothing here yet -- this is a placeholder)
11792 ### End of font-backend (under any platform) section.
11794 ### Start of font-backend (under X11) section.
11795 if test "${HAVE_X11}" = "yes"; then
11797 succeeded=no
11799 # Extract the first word of "pkg-config", so it can be a program name with args.
11800 set dummy pkg-config; ac_word=$2
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802 $as_echo_n "checking for $ac_word... " >&6; }
11803 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11804 $as_echo_n "(cached) " >&6
11805 else
11806 case $PKG_CONFIG in
11807 [\\/]* | ?:[\\/]*)
11808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11818 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 break 2
11822 done
11823 done
11824 IFS=$as_save_IFS
11826 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11828 esac
11830 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11831 if test -n "$PKG_CONFIG"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11833 $as_echo "$PKG_CONFIG" >&6; }
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11841 if test "$PKG_CONFIG" = "no" ; then
11842 HAVE_FC=no
11843 else
11844 PKG_CONFIG_MIN_VERSION=0.9.0
11845 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11847 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11849 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11851 $as_echo "yes" >&6; }
11852 succeeded=yes
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11855 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11856 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11858 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11861 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11862 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11864 $as_echo "$FONTCONFIG_LIBS" >&6; }
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11868 FONTCONFIG_CFLAGS=""
11869 FONTCONFIG_LIBS=""
11870 ## If we have a custom action on failure, don't print errors, but
11871 ## do set a variable so people can do so.
11872 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11878 else
11879 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11880 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11884 if test $succeeded = yes; then
11885 HAVE_FC=yes
11886 else
11887 HAVE_FC=no
11891 ## Use -lXft if available, unless `--with-xft=no'.
11892 HAVE_XFT=maybe
11893 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11894 with_xft="no";
11896 if test "x${with_xft}" != "xno"; then
11899 succeeded=no
11901 # Extract the first word of "pkg-config", so it can be a program name with args.
11902 set dummy pkg-config; ac_word=$2
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904 $as_echo_n "checking for $ac_word... " >&6; }
11905 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11906 $as_echo_n "(cached) " >&6
11907 else
11908 case $PKG_CONFIG in
11909 [\\/]* | ?:[\\/]*)
11910 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914 for as_dir in $PATH
11916 IFS=$as_save_IFS
11917 test -z "$as_dir" && as_dir=.
11918 for ac_exec_ext in '' $ac_executable_extensions; do
11919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11920 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11922 break 2
11924 done
11925 done
11926 IFS=$as_save_IFS
11928 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11930 esac
11932 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11933 if test -n "$PKG_CONFIG"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11935 $as_echo "$PKG_CONFIG" >&6; }
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11943 if test "$PKG_CONFIG" = "no" ; then
11944 HAVE_XFT=no
11945 else
11946 PKG_CONFIG_MIN_VERSION=0.9.0
11947 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11949 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11951 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11953 $as_echo "yes" >&6; }
11954 succeeded=yes
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11957 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11958 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11960 $as_echo "$XFT_CFLAGS" >&6; }
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11963 $as_echo_n "checking XFT_LIBS... " >&6; }
11964 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11966 $as_echo "$XFT_LIBS" >&6; }
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11970 XFT_CFLAGS=""
11971 XFT_LIBS=""
11972 ## If we have a custom action on failure, don't print errors, but
11973 ## do set a variable so people can do so.
11974 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11980 else
11981 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11982 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11986 if test $succeeded = yes; then
11988 else
11989 HAVE_XFT=no
11992 ## Because xftfont.c uses XRenderQueryExtension, we also
11993 ## need to link to -lXrender.
11994 HAVE_XRENDER=no
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11996 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11997 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 ac_check_lib_save_LIBS=$LIBS
12001 LIBS="-lXrender $LIBS"
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12005 /* Override any GCC internal prototype to avoid an error.
12006 Use char because int might match the return type of a GCC
12007 builtin and then its argument prototype would still apply. */
12008 #ifdef __cplusplus
12009 extern "C"
12010 #endif
12011 char XRenderQueryExtension ();
12013 main ()
12015 return XRenderQueryExtension ();
12017 return 0;
12019 _ACEOF
12020 if ac_fn_c_try_link "$LINENO"; then :
12021 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12022 else
12023 ac_cv_lib_Xrender_XRenderQueryExtension=no
12025 rm -f core conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12030 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12031 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12032 HAVE_XRENDER=yes
12035 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12036 OLD_CPPFLAGS="$CPPFLAGS"
12037 OLD_CFLAGS="$CFLAGS"
12038 OLD_LIBS="$LIBS"
12039 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12040 CFLAGS="$CFLAGS $XFT_CFLAGS"
12041 XFT_LIBS="-lXrender $XFT_LIBS"
12042 LIBS="$XFT_LIBS $LIBS"
12043 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12044 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12046 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12047 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 ac_check_lib_save_LIBS=$LIBS
12051 LIBS="-lXft $XFT_LIBS $LIBS"
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12055 /* Override any GCC internal prototype to avoid an error.
12056 Use char because int might match the return type of a GCC
12057 builtin and then its argument prototype would still apply. */
12058 #ifdef __cplusplus
12059 extern "C"
12060 #endif
12061 char XftFontOpen ();
12063 main ()
12065 return XftFontOpen ();
12067 return 0;
12069 _ACEOF
12070 if ac_fn_c_try_link "$LINENO"; then :
12071 ac_cv_lib_Xft_XftFontOpen=yes
12072 else
12073 ac_cv_lib_Xft_XftFontOpen=no
12075 rm -f core conftest.err conftest.$ac_objext \
12076 conftest$ac_exeext conftest.$ac_ext
12077 LIBS=$ac_check_lib_save_LIBS
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12080 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12081 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12082 HAVE_XFT=yes
12089 if test "${HAVE_XFT}" = "yes"; then
12091 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12094 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12095 else
12096 CPPFLAGS="$OLD_CPPFLAGS"
12097 CFLAGS="$OLD_CFLAGS"
12098 LIBS="$OLD_LIBS"
12099 fi # "${HAVE_XFT}" = "yes"
12100 fi # "$HAVE_XFT" != no
12101 fi # "x${with_xft}" != "xno"
12103 ## We used to allow building with FreeType and without Xft.
12104 ## However, the ftx font backend driver is not in good shape.
12105 if test "$HAVE_XFT" != "yes"; then
12106 HAVE_XFT=no
12107 HAVE_FREETYPE=no
12108 else
12110 succeeded=no
12112 # Extract the first word of "pkg-config", so it can be a program name with args.
12113 set dummy pkg-config; ac_word=$2
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115 $as_echo_n "checking for $ac_word... " >&6; }
12116 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 case $PKG_CONFIG in
12120 [\\/]* | ?:[\\/]*)
12121 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $PATH
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12135 done
12136 done
12137 IFS=$as_save_IFS
12139 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12141 esac
12143 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12144 if test -n "$PKG_CONFIG"; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12146 $as_echo "$PKG_CONFIG" >&6; }
12147 else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149 $as_echo "no" >&6; }
12154 if test "$PKG_CONFIG" = "no" ; then
12155 HAVE_FREETYPE=no
12156 else
12157 PKG_CONFIG_MIN_VERSION=0.9.0
12158 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12160 $as_echo_n "checking for freetype2... " >&6; }
12162 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12164 $as_echo "yes" >&6; }
12165 succeeded=yes
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12168 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12169 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12171 $as_echo "$FREETYPE_CFLAGS" >&6; }
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12174 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12175 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12177 $as_echo "$FREETYPE_LIBS" >&6; }
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12181 FREETYPE_CFLAGS=""
12182 FREETYPE_LIBS=""
12183 ## If we have a custom action on failure, don't print errors, but
12184 ## do set a variable so people can do so.
12185 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12191 else
12192 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12193 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12197 if test $succeeded = yes; then
12198 HAVE_FREETYPE=yes
12199 else
12200 HAVE_FREETYPE=no
12204 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12207 HAVE_LIBOTF=no
12208 if test "${HAVE_FREETYPE}" = "yes"; then
12210 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12212 if test "${with_libotf}" != "no"; then
12214 succeeded=no
12216 # Extract the first word of "pkg-config", so it can be a program name with args.
12217 set dummy pkg-config; ac_word=$2
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219 $as_echo_n "checking for $ac_word... " >&6; }
12220 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 case $PKG_CONFIG in
12224 [\\/]* | ?:[\\/]*)
12225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12235 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12239 done
12240 done
12241 IFS=$as_save_IFS
12243 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12245 esac
12247 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12248 if test -n "$PKG_CONFIG"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12250 $as_echo "$PKG_CONFIG" >&6; }
12251 else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12258 if test "$PKG_CONFIG" = "no" ; then
12259 HAVE_LIBOTF=no
12260 else
12261 PKG_CONFIG_MIN_VERSION=0.9.0
12262 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12264 $as_echo_n "checking for libotf... " >&6; }
12266 if $PKG_CONFIG --exists "libotf" 2>&5; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12268 $as_echo "yes" >&6; }
12269 succeeded=yes
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12272 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12273 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12275 $as_echo "$LIBOTF_CFLAGS" >&6; }
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12278 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12279 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12281 $as_echo "$LIBOTF_LIBS" >&6; }
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12285 LIBOTF_CFLAGS=""
12286 LIBOTF_LIBS=""
12287 ## If we have a custom action on failure, don't print errors, but
12288 ## do set a variable so people can do so.
12289 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12295 else
12296 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12297 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12301 if test $succeeded = yes; then
12302 HAVE_LIBOTF=yes
12303 else
12304 HAVE_LIBOTF=no
12307 if test "$HAVE_LIBOTF" = "yes"; then
12309 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12312 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12313 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-lotf $LIBS"
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 char OTF_get_variation_glyphs ();
12329 main ()
12331 return OTF_get_variation_glyphs ();
12333 return 0;
12335 _ACEOF
12336 if ac_fn_c_try_link "$LINENO"; then :
12337 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12338 else
12339 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12341 rm -f core conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12346 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12347 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12348 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12349 else
12350 HAVE_OTF_GET_VARIATION_GLYPHS=no
12353 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12355 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12362 HAVE_M17N_FLT=no
12363 if test "${HAVE_LIBOTF}" = yes; then
12364 if test "${with_m17n_flt}" != "no"; then
12366 succeeded=no
12368 # Extract the first word of "pkg-config", so it can be a program name with args.
12369 set dummy pkg-config; ac_word=$2
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371 $as_echo_n "checking for $ac_word... " >&6; }
12372 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12373 $as_echo_n "(cached) " >&6
12374 else
12375 case $PKG_CONFIG in
12376 [\\/]* | ?:[\\/]*)
12377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12383 IFS=$as_save_IFS
12384 test -z "$as_dir" && as_dir=.
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12389 break 2
12391 done
12392 done
12393 IFS=$as_save_IFS
12395 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12397 esac
12399 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12400 if test -n "$PKG_CONFIG"; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12402 $as_echo "$PKG_CONFIG" >&6; }
12403 else
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12410 if test "$PKG_CONFIG" = "no" ; then
12411 HAVE_M17N_FLT=no
12412 else
12413 PKG_CONFIG_MIN_VERSION=0.9.0
12414 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12416 $as_echo_n "checking for m17n-flt... " >&6; }
12418 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12420 $as_echo "yes" >&6; }
12421 succeeded=yes
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12424 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12425 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12427 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12430 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12431 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12433 $as_echo "$M17N_FLT_LIBS" >&6; }
12434 else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12437 M17N_FLT_CFLAGS=""
12438 M17N_FLT_LIBS=""
12439 ## If we have a custom action on failure, don't print errors, but
12440 ## do set a variable so people can do so.
12441 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12447 else
12448 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12449 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12453 if test $succeeded = yes; then
12454 HAVE_M17N_FLT=yes
12455 else
12456 HAVE_M17N_FLT=no
12459 if test "$HAVE_M17N_FLT" = "yes"; then
12461 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12466 else
12467 HAVE_XFT=no
12468 HAVE_FREETYPE=no
12469 HAVE_LIBOTF=no
12470 HAVE_M17N_FLT=no
12473 ### End of font-backend (under X11) section.
12484 ### Use -lXpm if available, unless `--with-xpm=no'.
12485 HAVE_XPM=no
12486 LIBXPM=
12487 if test "${HAVE_X11}" = "yes"; then
12488 if test "${with_xpm}" != "no"; then
12489 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12490 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12492 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12493 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lXpm -lX11 $LIBS"
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 char XpmReadFileToPixmap ();
12509 main ()
12511 return XpmReadFileToPixmap ();
12513 return 0;
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12518 else
12519 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12526 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12527 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12528 HAVE_XPM=yes
12534 if test "${HAVE_XPM}" = "yes"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12536 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12539 #include "X11/xpm.h"
12540 #ifndef XpmReturnAllocPixels
12541 no_return_alloc_pixels
12542 #endif
12544 _ACEOF
12545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12546 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12547 HAVE_XPM=no
12548 else
12549 HAVE_XPM=yes
12551 rm -f conftest*
12554 if test "${HAVE_XPM}" = "yes"; then
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12556 $as_echo "yes" >&6; }
12557 else
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559 $as_echo "no" >&6; }
12564 if test "${HAVE_XPM}" = "yes"; then
12566 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12568 LIBXPM=-lXpm
12573 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12574 HAVE_JPEG=no
12575 LIBJPEG=
12576 if test "${HAVE_X11}" = "yes"; then
12577 if test "${with_jpeg}" != "no"; then
12578 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12579 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12581 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12582 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12585 ac_check_lib_save_LIBS=$LIBS
12586 LIBS="-ljpeg $LIBS"
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12590 /* Override any GCC internal prototype to avoid an error.
12591 Use char because int might match the return type of a GCC
12592 builtin and then its argument prototype would still apply. */
12593 #ifdef __cplusplus
12594 extern "C"
12595 #endif
12596 char jpeg_destroy_compress ();
12598 main ()
12600 return jpeg_destroy_compress ();
12602 return 0;
12604 _ACEOF
12605 if ac_fn_c_try_link "$LINENO"; then :
12606 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12607 else
12608 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12610 rm -f core conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
12612 LIBS=$ac_check_lib_save_LIBS
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12615 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12616 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12617 HAVE_JPEG=yes
12625 if test "${HAVE_JPEG}" = "yes"; then
12626 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12630 #include <jpeglib.h>
12631 version=JPEG_LIB_VERSION
12633 _ACEOF
12634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12635 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12636 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12638 else
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12640 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12641 HAVE_JPEG=no
12643 rm -f conftest*
12646 if test "${HAVE_JPEG}" = "yes"; then
12647 LIBJPEG=-ljpeg
12652 ### Use -lpng if available, unless `--with-png=no'.
12653 HAVE_PNG=no
12654 LIBPNG=
12655 if test "${HAVE_X11}" = "yes"; then
12656 if test "${with_png}" != "no"; then
12657 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12658 # in /usr/include/libpng.
12659 for ac_header in png.h libpng/png.h
12660 do :
12661 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12662 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12663 eval as_val=\$$as_ac_Header
12664 if test "x$as_val" = x""yes; then :
12665 cat >>confdefs.h <<_ACEOF
12666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12667 _ACEOF
12671 done
12673 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12675 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12676 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12677 $as_echo_n "(cached) " >&6
12678 else
12679 ac_check_lib_save_LIBS=$LIBS
12680 LIBS="-lpng -lz -lm $LIBS"
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12684 /* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12687 #ifdef __cplusplus
12688 extern "C"
12689 #endif
12690 char png_get_channels ();
12692 main ()
12694 return png_get_channels ();
12696 return 0;
12698 _ACEOF
12699 if ac_fn_c_try_link "$LINENO"; then :
12700 ac_cv_lib_png_png_get_channels=yes
12701 else
12702 ac_cv_lib_png_png_get_channels=no
12704 rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_lib_save_LIBS
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12709 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12710 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12711 HAVE_PNG=yes
12717 if test "${HAVE_PNG}" = "yes"; then
12719 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12721 LIBPNG="-lpng -lz -lm"
12726 ### Use -ltiff if available, unless `--with-tiff=no'.
12727 HAVE_TIFF=no
12728 LIBTIFF=
12729 if test "${HAVE_X11}" = "yes"; then
12730 if test "${with_tiff}" != "no"; then
12731 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12732 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12733 tifflibs="-lz -lm"
12734 # At least one tiff package requires the jpeg library.
12735 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12737 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12738 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-ltiff $tifflibs $LIBS"
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char TIFFGetVersion ();
12754 main ()
12756 return TIFFGetVersion ();
12758 return 0;
12760 _ACEOF
12761 if ac_fn_c_try_link "$LINENO"; then :
12762 ac_cv_lib_tiff_TIFFGetVersion=yes
12763 else
12764 ac_cv_lib_tiff_TIFFGetVersion=no
12766 rm -f core conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12771 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12772 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12773 HAVE_TIFF=yes
12781 if test "${HAVE_TIFF}" = "yes"; then
12783 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12785 LIBTIFF=-ltiff
12790 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12791 HAVE_GIF=no
12792 LIBGIF=
12793 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12794 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12795 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12796 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12797 # Earlier versions can crash Emacs.
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12799 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12800 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 ac_check_lib_save_LIBS=$LIBS
12804 LIBS="-lgif $LIBS"
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12808 /* Override any GCC internal prototype to avoid an error.
12809 Use char because int might match the return type of a GCC
12810 builtin and then its argument prototype would still apply. */
12811 #ifdef __cplusplus
12812 extern "C"
12813 #endif
12814 char EGifPutExtensionLast ();
12816 main ()
12818 return EGifPutExtensionLast ();
12820 return 0;
12822 _ACEOF
12823 if ac_fn_c_try_link "$LINENO"; then :
12824 ac_cv_lib_gif_EGifPutExtensionLast=yes
12825 else
12826 ac_cv_lib_gif_EGifPutExtensionLast=no
12828 rm -f core conftest.err conftest.$ac_objext \
12829 conftest$ac_exeext conftest.$ac_ext
12830 LIBS=$ac_check_lib_save_LIBS
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12833 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12834 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12835 HAVE_GIF=yes
12836 else
12837 HAVE_GIF=maybe
12844 if test "$HAVE_GIF" = yes; then
12845 LIBGIF=-lgif
12846 elif test "$HAVE_GIF" = maybe; then
12847 # If gif_lib.h but no libgif, try libungif.
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12849 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12850 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12851 $as_echo_n "(cached) " >&6
12852 else
12853 ac_check_lib_save_LIBS=$LIBS
12854 LIBS="-lungif $LIBS"
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12858 /* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 char EGifPutExtensionLast ();
12866 main ()
12868 return EGifPutExtensionLast ();
12870 return 0;
12872 _ACEOF
12873 if ac_fn_c_try_link "$LINENO"; then :
12874 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12875 else
12876 ac_cv_lib_ungif_EGifPutExtensionLast=no
12878 rm -f core conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12883 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12884 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12885 HAVE_GIF=yes
12886 else
12887 HAVE_GIF=no
12890 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12893 if test "${HAVE_GIF}" = "yes"; then
12895 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12901 if test "${HAVE_X11}" = "yes"; then
12902 MISSING=""
12903 WITH_NO=""
12904 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12905 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12906 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12907 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12908 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12909 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12910 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12911 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12912 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12913 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12915 if test "X${MISSING}" != X; then
12916 as_fn_error "The following required libraries were not found:
12917 $MISSING
12918 Maybe some development libraries/packages are missing?
12919 If you don't want to link with them give
12920 $WITH_NO
12921 as options to configure" "$LINENO" 5
12925 ### Use -lgpm if available, unless `--with-gpm=no'.
12926 HAVE_GPM=no
12927 LIBGPM=
12928 MOUSE_SUPPORT=
12929 if test "${with_gpm}" != "no"; then
12930 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12931 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12933 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12934 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 ac_check_lib_save_LIBS=$LIBS
12938 LIBS="-lgpm $LIBS"
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12942 /* Override any GCC internal prototype to avoid an error.
12943 Use char because int might match the return type of a GCC
12944 builtin and then its argument prototype would still apply. */
12945 #ifdef __cplusplus
12946 extern "C"
12947 #endif
12948 char Gpm_Open ();
12950 main ()
12952 return Gpm_Open ();
12954 return 0;
12956 _ACEOF
12957 if ac_fn_c_try_link "$LINENO"; then :
12958 ac_cv_lib_gpm_Gpm_Open=yes
12959 else
12960 ac_cv_lib_gpm_Gpm_Open=no
12962 rm -f core conftest.err conftest.$ac_objext \
12963 conftest$ac_exeext conftest.$ac_ext
12964 LIBS=$ac_check_lib_save_LIBS
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12967 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12968 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12969 HAVE_GPM=yes
12976 if test "${HAVE_GPM}" = "yes"; then
12978 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12980 LIBGPM=-lgpm
12981 ## May be reset below.
12982 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12987 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12988 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12990 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12996 C_SWITCH_X_SYSTEM=
12997 ### Use NeXTstep API to implement GUI.
12998 if test "${HAVE_NS}" = "yes"; then
13000 $as_echo "#define HAVE_NS 1" >>confdefs.h
13002 if test "${NS_IMPL_COCOA}" = "yes"; then
13004 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13006 GNU_OBJC_CFLAGS=
13008 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13010 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13012 # See also .m.o rule in Makefile.in */
13013 # FIXME: are all these flags really needed? Document here why. */
13014 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
13015 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13017 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13019 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13022 # We also have mouse menus.
13023 HAVE_MENUS=yes
13024 OTHER_FILES=ns-app
13028 ### Use session management (-lSM -lICE) if available
13029 HAVE_X_SM=no
13030 LIBXSM=
13031 if test "${HAVE_X11}" = "yes"; then
13032 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13033 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13035 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13036 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 ac_check_lib_save_LIBS=$LIBS
13040 LIBS="-lSM -lICE $LIBS"
13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h. */
13044 /* Override any GCC internal prototype to avoid an error.
13045 Use char because int might match the return type of a GCC
13046 builtin and then its argument prototype would still apply. */
13047 #ifdef __cplusplus
13048 extern "C"
13049 #endif
13050 char SmcOpenConnection ();
13052 main ()
13054 return SmcOpenConnection ();
13056 return 0;
13058 _ACEOF
13059 if ac_fn_c_try_link "$LINENO"; then :
13060 ac_cv_lib_SM_SmcOpenConnection=yes
13061 else
13062 ac_cv_lib_SM_SmcOpenConnection=no
13064 rm -f core conftest.err conftest.$ac_objext \
13065 conftest$ac_exeext conftest.$ac_ext
13066 LIBS=$ac_check_lib_save_LIBS
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13069 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13070 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13071 HAVE_X_SM=yes
13078 if test "${HAVE_X_SM}" = "yes"; then
13080 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13082 LIBXSM="-lSM -lICE"
13083 case "$LIBS" in
13084 *-lSM*) ;;
13085 *) LIBS="$LIBXSM $LIBS" ;;
13086 esac
13091 ### Use libxml (-lxml2) if available
13092 if test "${with_xml2}" != "no"; then
13093 ### I'm not sure what the version number should be, so I just guessed.
13095 succeeded=no
13097 # Extract the first word of "pkg-config", so it can be a program name with args.
13098 set dummy pkg-config; ac_word=$2
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100 $as_echo_n "checking for $ac_word... " >&6; }
13101 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 case $PKG_CONFIG in
13105 [\\/]* | ?:[\\/]*)
13106 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 for as_dir in $PATH
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
13114 for ac_exec_ext in '' $ac_executable_extensions; do
13115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13116 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13118 break 2
13120 done
13121 done
13122 IFS=$as_save_IFS
13124 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13126 esac
13128 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13129 if test -n "$PKG_CONFIG"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13131 $as_echo "$PKG_CONFIG" >&6; }
13132 else
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13139 if test "$PKG_CONFIG" = "no" ; then
13140 HAVE_LIBXML2=no
13141 else
13142 PKG_CONFIG_MIN_VERSION=0.9.0
13143 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13145 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13147 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13149 $as_echo "yes" >&6; }
13150 succeeded=yes
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13153 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13154 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13156 $as_echo "$LIBXML2_CFLAGS" >&6; }
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13159 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13160 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13162 $as_echo "$LIBXML2_LIBS" >&6; }
13163 else
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165 $as_echo "no" >&6; }
13166 LIBXML2_CFLAGS=""
13167 LIBXML2_LIBS=""
13168 ## If we have a custom action on failure, don't print errors, but
13169 ## do set a variable so people can do so.
13170 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13176 else
13177 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13178 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13182 if test $succeeded = yes; then
13183 HAVE_LIBXML2=yes
13184 else
13185 HAVE_LIBXML2=no
13188 if test "${HAVE_LIBXML2}" = "yes"; then
13189 LIBS="$LIBXML2_LIBS $LIBS"
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13191 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13192 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 ac_check_lib_save_LIBS=$LIBS
13196 LIBS="-lxml2 $LIBS"
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13203 #ifdef __cplusplus
13204 extern "C"
13205 #endif
13206 char htmlReadMemory ();
13208 main ()
13210 return htmlReadMemory ();
13212 return 0;
13214 _ACEOF
13215 if ac_fn_c_try_link "$LINENO"; then :
13216 ac_cv_lib_xml2_htmlReadMemory=yes
13217 else
13218 ac_cv_lib_xml2_htmlReadMemory=no
13220 rm -f core conftest.err conftest.$ac_objext \
13221 conftest$ac_exeext conftest.$ac_ext
13222 LIBS=$ac_check_lib_save_LIBS
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13225 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13226 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13227 HAVE_LIBXML2=yes
13228 else
13229 HAVE_LIBXML2=no
13232 if test "${HAVE_LIBXML2}" = "yes"; then
13234 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13236 else
13237 LIBXML2_LIBS=""
13238 LIBXML2_CFLAGS=""
13245 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13247 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13248 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13253 #include <netdb.h>
13255 main ()
13257 return h_errno;
13259 return 0;
13261 _ACEOF
13262 if ac_fn_c_try_link "$LINENO"; then :
13263 emacs_cv_netdb_declares_h_errno=yes
13264 else
13265 emacs_cv_netdb_declares_h_errno=no
13267 rm -f core conftest.err conftest.$ac_objext \
13268 conftest$ac_exeext conftest.$ac_ext
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13271 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13272 if test $emacs_cv_netdb_declares_h_errno = yes; then
13274 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13278 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13279 # for constant arguments. Useless!
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13281 $as_echo_n "checking for working alloca.h... " >&6; }
13282 if test "${ac_cv_working_alloca_h+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13284 else
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13287 #include <alloca.h>
13289 main ()
13291 char *p = (char *) alloca (2 * sizeof (int));
13292 if (p) return 0;
13294 return 0;
13296 _ACEOF
13297 if ac_fn_c_try_link "$LINENO"; then :
13298 ac_cv_working_alloca_h=yes
13299 else
13300 ac_cv_working_alloca_h=no
13302 rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13306 $as_echo "$ac_cv_working_alloca_h" >&6; }
13307 if test $ac_cv_working_alloca_h = yes; then
13309 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13314 $as_echo_n "checking for alloca... " >&6; }
13315 if test "${ac_cv_func_alloca_works+set}" = set; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 #ifdef __GNUC__
13321 # define alloca __builtin_alloca
13322 #else
13323 # ifdef _MSC_VER
13324 # include <malloc.h>
13325 # define alloca _alloca
13326 # else
13327 # ifdef HAVE_ALLOCA_H
13328 # include <alloca.h>
13329 # else
13330 # ifdef _AIX
13331 #pragma alloca
13332 # else
13333 # ifndef alloca /* predefined by HP cc +Olibcalls */
13334 char *alloca ();
13335 # endif
13336 # endif
13337 # endif
13338 # endif
13339 #endif
13342 main ()
13344 char *p = (char *) alloca (1);
13345 if (p) return 0;
13347 return 0;
13349 _ACEOF
13350 if ac_fn_c_try_link "$LINENO"; then :
13351 ac_cv_func_alloca_works=yes
13352 else
13353 ac_cv_func_alloca_works=no
13355 rm -f core conftest.err conftest.$ac_objext \
13356 conftest$ac_exeext conftest.$ac_ext
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13359 $as_echo "$ac_cv_func_alloca_works" >&6; }
13361 if test $ac_cv_func_alloca_works = yes; then
13363 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13365 else
13366 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13367 # that cause trouble. Some versions do not even contain alloca or
13368 # contain a buggy version. If you still want to use their alloca,
13369 # use ar to extract alloca.o from them instead of compiling alloca.c.
13371 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13373 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13377 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13378 if test "${ac_cv_os_cray+set}" = set; then :
13379 $as_echo_n "(cached) " >&6
13380 else
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13383 #if defined CRAY && ! defined CRAY2
13384 webecray
13385 #else
13386 wenotbecray
13387 #endif
13389 _ACEOF
13390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13391 $EGREP "webecray" >/dev/null 2>&1; then :
13392 ac_cv_os_cray=yes
13393 else
13394 ac_cv_os_cray=no
13396 rm -f conftest*
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13400 $as_echo "$ac_cv_os_cray" >&6; }
13401 if test $ac_cv_os_cray = yes; then
13402 for ac_func in _getb67 GETB67 getb67; do
13403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13404 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13405 eval as_val=\$$as_ac_var
13406 if test "x$as_val" = x""yes; then :
13408 cat >>confdefs.h <<_ACEOF
13409 #define CRAY_STACKSEG_END $ac_func
13410 _ACEOF
13412 break
13415 done
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13419 $as_echo_n "checking stack direction for C alloca... " >&6; }
13420 if test "${ac_cv_c_stack_direction+set}" = set; then :
13421 $as_echo_n "(cached) " >&6
13422 else
13423 if test "$cross_compiling" = yes; then :
13424 ac_cv_c_stack_direction=0
13425 else
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13428 $ac_includes_default
13430 find_stack_direction ()
13432 static char *addr = 0;
13433 auto char dummy;
13434 if (addr == 0)
13436 addr = &dummy;
13437 return find_stack_direction ();
13439 else
13440 return (&dummy > addr) ? 1 : -1;
13444 main ()
13446 return find_stack_direction () < 0;
13448 _ACEOF
13449 if ac_fn_c_try_run "$LINENO"; then :
13450 ac_cv_c_stack_direction=1
13451 else
13452 ac_cv_c_stack_direction=-1
13454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13455 conftest.$ac_objext conftest.beam conftest.$ac_ext
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13460 $as_echo "$ac_cv_c_stack_direction" >&6; }
13461 cat >>confdefs.h <<_ACEOF
13462 #define STACK_DIRECTION $ac_cv_c_stack_direction
13463 _ACEOF
13469 if test x"$ac_cv_func_alloca_works" != xyes; then
13470 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
13473 # fmod, logb, and frexp are found in -lm on most systems.
13474 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13476 $as_echo_n "checking for sqrt in -lm... " >&6; }
13477 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13478 $as_echo_n "(cached) " >&6
13479 else
13480 ac_check_lib_save_LIBS=$LIBS
13481 LIBS="-lm $LIBS"
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13485 /* Override any GCC internal prototype to avoid an error.
13486 Use char because int might match the return type of a GCC
13487 builtin and then its argument prototype would still apply. */
13488 #ifdef __cplusplus
13489 extern "C"
13490 #endif
13491 char sqrt ();
13493 main ()
13495 return sqrt ();
13497 return 0;
13499 _ACEOF
13500 if ac_fn_c_try_link "$LINENO"; then :
13501 ac_cv_lib_m_sqrt=yes
13502 else
13503 ac_cv_lib_m_sqrt=no
13505 rm -f core conftest.err conftest.$ac_objext \
13506 conftest$ac_exeext conftest.$ac_ext
13507 LIBS=$ac_check_lib_save_LIBS
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13510 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13511 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13512 cat >>confdefs.h <<_ACEOF
13513 #define HAVE_LIBM 1
13514 _ACEOF
13516 LIBS="-lm $LIBS"
13521 # Check for mail-locking functions in a "mail" library. Probably this should
13522 # have the same check as for liblockfile below.
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13524 $as_echo_n "checking for maillock in -lmail... " >&6; }
13525 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 ac_check_lib_save_LIBS=$LIBS
13529 LIBS="-lmail $LIBS"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13533 /* Override any GCC internal prototype to avoid an error.
13534 Use char because int might match the return type of a GCC
13535 builtin and then its argument prototype would still apply. */
13536 #ifdef __cplusplus
13537 extern "C"
13538 #endif
13539 char maillock ();
13541 main ()
13543 return maillock ();
13545 return 0;
13547 _ACEOF
13548 if ac_fn_c_try_link "$LINENO"; then :
13549 ac_cv_lib_mail_maillock=yes
13550 else
13551 ac_cv_lib_mail_maillock=no
13553 rm -f core conftest.err conftest.$ac_objext \
13554 conftest$ac_exeext conftest.$ac_ext
13555 LIBS=$ac_check_lib_save_LIBS
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13558 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13559 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13560 have_mail=yes
13561 else
13562 have_mail=no
13565 if test $have_mail = yes; then
13566 LIBS_MAIL=-lmail
13567 LIBS="$LIBS_MAIL $LIBS"
13569 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13571 else
13572 LIBS_MAIL=
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13575 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13576 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-llockfile $LIBS"
13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13587 #ifdef __cplusplus
13588 extern "C"
13589 #endif
13590 char maillock ();
13592 main ()
13594 return maillock ();
13596 return 0;
13598 _ACEOF
13599 if ac_fn_c_try_link "$LINENO"; then :
13600 ac_cv_lib_lockfile_maillock=yes
13601 else
13602 ac_cv_lib_lockfile_maillock=no
13604 rm -f core conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13606 LIBS=$ac_check_lib_save_LIBS
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13609 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13610 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13611 have_lockfile=yes
13612 else
13613 have_lockfile=no
13616 if test $have_lockfile = yes; then
13617 LIBS_MAIL=-llockfile
13618 LIBS="$LIBS_MAIL $LIBS"
13620 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13622 else
13623 # If we have the shared liblockfile, assume we must use it for mail
13624 # locking (e.g. Debian). If we couldn't link against liblockfile
13625 # (no liblockfile.a installed), ensure that we don't need to.
13626 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13627 set dummy liblockfile.so; ac_word=$2
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629 $as_echo_n "checking for $ac_word... " >&6; }
13630 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 if test -n "$liblockfile"; then
13634 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13635 else
13636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13638 for as_dir in $as_dummy
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
13643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13644 ac_cv_prog_liblockfile="yes"
13645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 break 2
13648 done
13649 done
13650 IFS=$as_save_IFS
13652 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13655 liblockfile=$ac_cv_prog_liblockfile
13656 if test -n "$liblockfile"; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13658 $as_echo "$liblockfile" >&6; }
13659 else
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13661 $as_echo "no" >&6; }
13665 if test $ac_cv_prog_liblockfile = yes; then
13666 as_fn_error "Shared liblockfile found but can't link against it.
13667 This probably means that movemail could lose mail.
13668 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13671 for ac_func in touchlock
13672 do :
13673 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13674 if test "x$ac_cv_func_touchlock" = x""yes; then :
13675 cat >>confdefs.h <<_ACEOF
13676 #define HAVE_TOUCHLOCK 1
13677 _ACEOF
13680 done
13682 for ac_header in maillock.h
13683 do :
13684 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13685 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13686 cat >>confdefs.h <<_ACEOF
13687 #define HAVE_MAILLOCK_H 1
13688 _ACEOF
13692 done
13696 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13697 ## interlock access to the mail spool. The alternative is a lock file named
13698 ## /usr/spool/mail/$USER.lock.
13699 mail_lock=no
13700 case "$opsys" in
13701 aix4-2) mail_lock="lockf" ;;
13703 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13705 ## On GNU/Linux systems, both methods are used by various mail programs.
13706 ## I assume most people are using newer mailers that have heard of flock.
13707 ## Change this if you need to.
13708 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13709 ## configure gets the right answers, and that means *NOT* using flock.
13710 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13711 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13712 ## Debian maintainer hasn't provided a clean fix for Emacs.
13713 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13714 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13715 ## correct logic. -- fx
13716 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13717 ## liblockfile is a Free Software replacement for libmail, used on
13718 ## Debian systems and elsewhere. -rfr.
13719 gnu-*)
13720 mail_lock="flock"
13721 if test $have_mail = yes || test $have_lockfile = yes; then
13722 test $ac_cv_header_maillock_h = yes && mail_lock=no
13725 esac
13727 BLESSMAIL_TARGET=
13728 case "$mail_lock" in
13729 flock)
13730 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13733 lockf)
13734 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13737 *) BLESSMAIL_TARGET="need-blessmail" ;;
13738 esac
13742 for ac_func in gethostname getdomainname dup2 \
13743 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13744 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13745 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13746 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13747 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13748 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13749 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13750 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13751 cfmakeraw cfsetspeed isnan copysign __executable_start
13752 do :
13753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13754 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13755 eval as_val=\$$as_ac_var
13756 if test "x$as_val" = x""yes; then :
13757 cat >>confdefs.h <<_ACEOF
13758 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13759 _ACEOF
13762 done
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13766 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13767 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13774 main ()
13776 __builtin_unwind_init ();
13778 return 0;
13780 _ACEOF
13781 if ac_fn_c_try_link "$LINENO"; then :
13782 emacs_cv_func___builtin_unwind_init=yes
13783 else
13784 emacs_cv_func___builtin_unwind_init=no
13786 rm -f core conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13790 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13791 if test $emacs_cv_func___builtin_unwind_init = yes; then
13793 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13797 for ac_header in sys/un.h
13798 do :
13799 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13800 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13801 cat >>confdefs.h <<_ACEOF
13802 #define HAVE_SYS_UN_H 1
13803 _ACEOF
13807 done
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13811 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13812 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 while :; do
13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h. */
13818 #include <sys/types.h> /* for off_t */
13819 #include <stdio.h>
13821 main ()
13823 int (*fp) (FILE *, off_t, int) = fseeko;
13824 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13826 return 0;
13828 _ACEOF
13829 if ac_fn_c_try_link "$LINENO"; then :
13830 ac_cv_sys_largefile_source=no; break
13832 rm -f core conftest.err conftest.$ac_objext \
13833 conftest$ac_exeext conftest.$ac_ext
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836 #define _LARGEFILE_SOURCE 1
13837 #include <sys/types.h> /* for off_t */
13838 #include <stdio.h>
13840 main ()
13842 int (*fp) (FILE *, off_t, int) = fseeko;
13843 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13845 return 0;
13847 _ACEOF
13848 if ac_fn_c_try_link "$LINENO"; then :
13849 ac_cv_sys_largefile_source=1; break
13851 rm -f core conftest.err conftest.$ac_objext \
13852 conftest$ac_exeext conftest.$ac_ext
13853 ac_cv_sys_largefile_source=unknown
13854 break
13855 done
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13858 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13859 case $ac_cv_sys_largefile_source in #(
13860 no | unknown) ;;
13862 cat >>confdefs.h <<_ACEOF
13863 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13864 _ACEOF
13866 esac
13867 rm -rf conftest*
13869 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13870 # in glibc 2.1.3, but that breaks too many other things.
13871 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13872 if test $ac_cv_sys_largefile_source != unknown; then
13874 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13880 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13881 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 # Use it with a single arg.
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13887 $ac_includes_default
13889 main ()
13891 getpgrp (0);
13893 return 0;
13895 _ACEOF
13896 if ac_fn_c_try_compile "$LINENO"; then :
13897 ac_cv_func_getpgrp_void=no
13898 else
13899 ac_cv_func_getpgrp_void=yes
13901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13905 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13906 if test $ac_cv_func_getpgrp_void = yes; then
13908 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13913 # Configure gnulib.
13924 LIBC_FATAL_STDERR_=1
13925 export LIBC_FATAL_STDERR_
13930 for ac_func in $ac_func_list
13931 do :
13932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13933 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13934 eval as_val=\$$as_ac_var
13935 if test "x$as_val" = x""yes; then :
13936 cat >>confdefs.h <<_ACEOF
13937 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13938 _ACEOF
13941 done
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13947 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13948 if test "${ac_cv_c_bigendian+set}" = set; then :
13949 $as_echo_n "(cached) " >&6
13950 else
13951 ac_cv_c_bigendian=unknown
13952 # See if we're dealing with a universal compiler.
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955 #ifndef __APPLE_CC__
13956 not a universal capable compiler
13957 #endif
13958 typedef int dummy;
13960 _ACEOF
13961 if ac_fn_c_try_compile "$LINENO"; then :
13963 # Check for potential -arch flags. It is not universal unless
13964 # there are at least two -arch flags with different values.
13965 ac_arch=
13966 ac_prev=
13967 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13968 if test -n "$ac_prev"; then
13969 case $ac_word in
13970 i?86 | x86_64 | ppc | ppc64)
13971 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13972 ac_arch=$ac_word
13973 else
13974 ac_cv_c_bigendian=universal
13975 break
13978 esac
13979 ac_prev=
13980 elif test "x$ac_word" = "x-arch"; then
13981 ac_prev=arch
13983 done
13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 if test $ac_cv_c_bigendian = unknown; then
13987 # See if sys/param.h defines the BYTE_ORDER macro.
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990 #include <sys/types.h>
13991 #include <sys/param.h>
13994 main ()
13996 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13997 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13998 && LITTLE_ENDIAN)
13999 bogus endian macros
14000 #endif
14003 return 0;
14005 _ACEOF
14006 if ac_fn_c_try_compile "$LINENO"; then :
14007 # It does; now see whether it defined to BIG_ENDIAN or not.
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14010 #include <sys/types.h>
14011 #include <sys/param.h>
14014 main ()
14016 #if BYTE_ORDER != BIG_ENDIAN
14017 not big endian
14018 #endif
14021 return 0;
14023 _ACEOF
14024 if ac_fn_c_try_compile "$LINENO"; then :
14025 ac_cv_c_bigendian=yes
14026 else
14027 ac_cv_c_bigendian=no
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033 if test $ac_cv_c_bigendian = unknown; then
14034 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14037 #include <limits.h>
14040 main ()
14042 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14043 bogus endian macros
14044 #endif
14047 return 0;
14049 _ACEOF
14050 if ac_fn_c_try_compile "$LINENO"; then :
14051 # It does; now see whether it defined to _BIG_ENDIAN or not.
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h. */
14054 #include <limits.h>
14057 main ()
14059 #ifndef _BIG_ENDIAN
14060 not big endian
14061 #endif
14064 return 0;
14066 _ACEOF
14067 if ac_fn_c_try_compile "$LINENO"; then :
14068 ac_cv_c_bigendian=yes
14069 else
14070 ac_cv_c_bigendian=no
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 if test $ac_cv_c_bigendian = unknown; then
14077 # Compile a test program.
14078 if test "$cross_compiling" = yes; then :
14079 # Try to guess by grepping values from an object file.
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082 short int ascii_mm[] =
14083 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14084 short int ascii_ii[] =
14085 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14086 int use_ascii (int i) {
14087 return ascii_mm[i] + ascii_ii[i];
14089 short int ebcdic_ii[] =
14090 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14091 short int ebcdic_mm[] =
14092 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14093 int use_ebcdic (int i) {
14094 return ebcdic_mm[i] + ebcdic_ii[i];
14096 extern int foo;
14099 main ()
14101 return use_ascii (foo) == use_ebcdic (foo);
14103 return 0;
14105 _ACEOF
14106 if ac_fn_c_try_compile "$LINENO"; then :
14107 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14108 ac_cv_c_bigendian=yes
14110 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14111 if test "$ac_cv_c_bigendian" = unknown; then
14112 ac_cv_c_bigendian=no
14113 else
14114 # finding both strings is unlikely to happen, but who knows?
14115 ac_cv_c_bigendian=unknown
14119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 else
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14123 $ac_includes_default
14125 main ()
14128 /* Are we little or big endian? From Harbison&Steele. */
14129 union
14131 long int l;
14132 char c[sizeof (long int)];
14133 } u;
14134 u.l = 1;
14135 return u.c[sizeof (long int) - 1] == 1;
14138 return 0;
14140 _ACEOF
14141 if ac_fn_c_try_run "$LINENO"; then :
14142 ac_cv_c_bigendian=no
14143 else
14144 ac_cv_c_bigendian=yes
14146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14147 conftest.$ac_objext conftest.beam conftest.$ac_ext
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14153 $as_echo "$ac_cv_c_bigendian" >&6; }
14154 case $ac_cv_c_bigendian in #(
14155 yes)
14156 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14157 ;; #(
14159 ;; #(
14160 universal)
14162 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14164 ;; #(
14166 as_fn_error "unknown endianness
14167 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14168 esac
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14172 $as_echo_n "checking for inline... " >&6; }
14173 if test "${ac_cv_c_inline+set}" = set; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14176 ac_cv_c_inline=no
14177 for ac_kw in inline __inline__ __inline; do
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14180 #ifndef __cplusplus
14181 typedef int foo_t;
14182 static $ac_kw foo_t static_foo () {return 0; }
14183 $ac_kw foo_t foo () {return 0; }
14184 #endif
14186 _ACEOF
14187 if ac_fn_c_try_compile "$LINENO"; then :
14188 ac_cv_c_inline=$ac_kw
14190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14191 test "$ac_cv_c_inline" != no && break
14192 done
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14196 $as_echo "$ac_cv_c_inline" >&6; }
14198 case $ac_cv_c_inline in
14199 inline | yes) ;;
14201 case $ac_cv_c_inline in
14202 no) ac_val=;;
14203 *) ac_val=$ac_cv_c_inline;;
14204 esac
14205 cat >>confdefs.h <<_ACEOF
14206 #ifndef __cplusplus
14207 #define inline $ac_val
14208 #endif
14209 _ACEOF
14211 esac
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
14215 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
14216 if test "${gl_cv_func_c99_strtold+set}" = set; then :
14217 $as_echo_n "(cached) " >&6
14218 else
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14221 /* On HP-UX before 11.23, strtold returns a struct instead of
14222 long double. Reject implementations like that, by requiring
14223 compatibility with the C99 prototype. */
14224 #include <stdlib.h>
14225 static long double (*p) (char const *, char **) = strtold;
14226 static long double
14227 test (char const *nptr, char **endptr)
14229 long double r;
14230 r = strtold (nptr, endptr);
14231 return r;
14234 main ()
14236 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
14238 return 0;
14240 _ACEOF
14241 if ac_fn_c_try_link "$LINENO"; then :
14242 gl_cv_func_c99_strtold=yes
14243 else
14244 gl_cv_func_c99_strtold=no
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
14250 $as_echo "$gl_cv_func_c99_strtold" >&6; }
14251 if test $gl_cv_func_c99_strtold = yes; then
14253 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
14258 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
14259 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
14260 $as_echo_n "(cached) " >&6
14261 else
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14265 #include <sys/types.h>
14266 #include <sys/stat.h>
14268 main ()
14270 struct stat s; s.st_dm_mode;
14272 return 0;
14274 _ACEOF
14275 if ac_fn_c_try_compile "$LINENO"; then :
14276 ac_cv_struct_st_dm_mode=yes
14277 else
14278 ac_cv_struct_st_dm_mode=no
14280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
14283 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
14285 if test $ac_cv_struct_st_dm_mode = yes; then
14287 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
14292 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
14293 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
14294 ac_have_decl=1
14295 else
14296 ac_have_decl=0
14299 cat >>confdefs.h <<_ACEOF
14300 #define HAVE_DECL_STRMODE $ac_have_decl
14301 _ACEOF
14304 GNULIB__EXIT=0;
14305 GNULIB_ATOLL=0;
14306 GNULIB_CALLOC_POSIX=0;
14307 GNULIB_CANONICALIZE_FILE_NAME=0;
14308 GNULIB_GETLOADAVG=0;
14309 GNULIB_GETSUBOPT=0;
14310 GNULIB_GRANTPT=0;
14311 GNULIB_MALLOC_POSIX=0;
14312 GNULIB_MBTOWC=0;
14313 GNULIB_MKDTEMP=0;
14314 GNULIB_MKOSTEMP=0;
14315 GNULIB_MKOSTEMPS=0;
14316 GNULIB_MKSTEMP=0;
14317 GNULIB_MKSTEMPS=0;
14318 GNULIB_PTSNAME=0;
14319 GNULIB_PUTENV=0;
14320 GNULIB_RANDOM_R=0;
14321 GNULIB_REALLOC_POSIX=0;
14322 GNULIB_REALPATH=0;
14323 GNULIB_RPMATCH=0;
14324 GNULIB_SETENV=0;
14325 GNULIB_STRTOD=0;
14326 GNULIB_STRTOLL=0;
14327 GNULIB_STRTOULL=0;
14328 GNULIB_SYSTEM_POSIX=0;
14329 GNULIB_UNLOCKPT=0;
14330 GNULIB_UNSETENV=0;
14331 GNULIB_WCTOMB=0;
14332 HAVE__EXIT=1;
14333 HAVE_ATOLL=1;
14334 HAVE_CANONICALIZE_FILE_NAME=1;
14335 HAVE_DECL_GETLOADAVG=1;
14336 HAVE_GETSUBOPT=1;
14337 HAVE_GRANTPT=1;
14338 HAVE_MKDTEMP=1;
14339 HAVE_MKOSTEMP=1;
14340 HAVE_MKOSTEMPS=1;
14341 HAVE_MKSTEMP=1;
14342 HAVE_MKSTEMPS=1;
14343 HAVE_PTSNAME=1;
14344 HAVE_RANDOM_H=1;
14345 HAVE_RANDOM_R=1;
14346 HAVE_REALPATH=1;
14347 HAVE_RPMATCH=1;
14348 HAVE_SETENV=1;
14349 HAVE_DECL_SETENV=1;
14350 HAVE_STRTOD=1;
14351 HAVE_STRTOLL=1;
14352 HAVE_STRTOULL=1;
14353 HAVE_STRUCT_RANDOM_DATA=1;
14354 HAVE_SYS_LOADAVG_H=0;
14355 HAVE_UNLOCKPT=1;
14356 HAVE_DECL_UNSETENV=1;
14357 REPLACE_CALLOC=0;
14358 REPLACE_CANONICALIZE_FILE_NAME=0;
14359 REPLACE_MALLOC=0;
14360 REPLACE_MBTOWC=0;
14361 REPLACE_MKSTEMP=0;
14362 REPLACE_PUTENV=0;
14363 REPLACE_REALLOC=0;
14364 REPLACE_REALPATH=0;
14365 REPLACE_SETENV=0;
14366 REPLACE_STRTOD=0;
14367 REPLACE_UNSETENV=0;
14368 REPLACE_WCTOMB=0;
14371 GNULIB_CHOWN=0;
14372 GNULIB_CLOSE=0;
14373 GNULIB_DUP2=0;
14374 GNULIB_DUP3=0;
14375 GNULIB_ENVIRON=0;
14376 GNULIB_EUIDACCESS=0;
14377 GNULIB_FACCESSAT=0;
14378 GNULIB_FCHDIR=0;
14379 GNULIB_FCHOWNAT=0;
14380 GNULIB_FSYNC=0;
14381 GNULIB_FTRUNCATE=0;
14382 GNULIB_GETCWD=0;
14383 GNULIB_GETDOMAINNAME=0;
14384 GNULIB_GETDTABLESIZE=0;
14385 GNULIB_GETGROUPS=0;
14386 GNULIB_GETHOSTNAME=0;
14387 GNULIB_GETLOGIN=0;
14388 GNULIB_GETLOGIN_R=0;
14389 GNULIB_GETPAGESIZE=0;
14390 GNULIB_GETUSERSHELL=0;
14391 GNULIB_LCHOWN=0;
14392 GNULIB_LINK=0;
14393 GNULIB_LINKAT=0;
14394 GNULIB_LSEEK=0;
14395 GNULIB_PIPE=0;
14396 GNULIB_PIPE2=0;
14397 GNULIB_PREAD=0;
14398 GNULIB_PWRITE=0;
14399 GNULIB_READ=0;
14400 GNULIB_READLINK=0;
14401 GNULIB_READLINKAT=0;
14402 GNULIB_RMDIR=0;
14403 GNULIB_SLEEP=0;
14404 GNULIB_SYMLINK=0;
14405 GNULIB_SYMLINKAT=0;
14406 GNULIB_TTYNAME_R=0;
14407 GNULIB_UNISTD_H_GETOPT=0;
14408 GNULIB_UNISTD_H_NONBLOCKING=0;
14409 GNULIB_UNISTD_H_SIGPIPE=0;
14410 GNULIB_UNLINK=0;
14411 GNULIB_UNLINKAT=0;
14412 GNULIB_USLEEP=0;
14413 GNULIB_WRITE=0;
14414 HAVE_CHOWN=1;
14415 HAVE_DUP2=1;
14416 HAVE_DUP3=1;
14417 HAVE_EUIDACCESS=1;
14418 HAVE_FACCESSAT=1;
14419 HAVE_FCHDIR=1;
14420 HAVE_FCHOWNAT=1;
14421 HAVE_FSYNC=1;
14422 HAVE_FTRUNCATE=1;
14423 HAVE_GETDTABLESIZE=1;
14424 HAVE_GETGROUPS=1;
14425 HAVE_GETHOSTNAME=1;
14426 HAVE_GETLOGIN=1;
14427 HAVE_GETPAGESIZE=1;
14428 HAVE_LCHOWN=1;
14429 HAVE_LINK=1;
14430 HAVE_LINKAT=1;
14431 HAVE_PIPE=1;
14432 HAVE_PIPE2=1;
14433 HAVE_PREAD=1;
14434 HAVE_PWRITE=1;
14435 HAVE_READLINK=1;
14436 HAVE_READLINKAT=1;
14437 HAVE_SLEEP=1;
14438 HAVE_SYMLINK=1;
14439 HAVE_SYMLINKAT=1;
14440 HAVE_UNLINKAT=1;
14441 HAVE_USLEEP=1;
14442 HAVE_DECL_ENVIRON=1;
14443 HAVE_DECL_FCHDIR=1;
14444 HAVE_DECL_GETDOMAINNAME=1;
14445 HAVE_DECL_GETLOGIN_R=1;
14446 HAVE_DECL_GETPAGESIZE=1;
14447 HAVE_DECL_GETUSERSHELL=1;
14448 HAVE_DECL_TTYNAME_R=1;
14449 HAVE_OS_H=0;
14450 HAVE_SYS_PARAM_H=0;
14451 REPLACE_CHOWN=0;
14452 REPLACE_CLOSE=0;
14453 REPLACE_DUP=0;
14454 REPLACE_DUP2=0;
14455 REPLACE_FCHOWNAT=0;
14456 REPLACE_GETCWD=0;
14457 REPLACE_GETDOMAINNAME=0;
14458 REPLACE_GETLOGIN_R=0;
14459 REPLACE_GETGROUPS=0;
14460 REPLACE_GETPAGESIZE=0;
14461 REPLACE_LCHOWN=0;
14462 REPLACE_LINK=0;
14463 REPLACE_LINKAT=0;
14464 REPLACE_LSEEK=0;
14465 REPLACE_PREAD=0;
14466 REPLACE_PWRITE=0;
14467 REPLACE_READ=0;
14468 REPLACE_READLINK=0;
14469 REPLACE_RMDIR=0;
14470 REPLACE_SLEEP=0;
14471 REPLACE_SYMLINK=0;
14472 REPLACE_TTYNAME_R=0;
14473 REPLACE_UNLINK=0;
14474 REPLACE_UNLINKAT=0;
14475 REPLACE_USLEEP=0;
14476 REPLACE_WRITE=0;
14477 UNISTD_H_HAVE_WINSOCK2_H=0;
14478 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14484 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14485 if test "${gl_cv_have_include_next+set}" = set; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 rm -rf conftestd1a conftestd1b conftestd2
14489 mkdir conftestd1a conftestd1b conftestd2
14490 cat <<EOF > conftestd1a/conftest.h
14491 #define DEFINED_IN_CONFTESTD1
14492 #include_next <conftest.h>
14493 #ifdef DEFINED_IN_CONFTESTD2
14494 int foo;
14495 #else
14496 #error "include_next doesn't work"
14497 #endif
14499 cat <<EOF > conftestd1b/conftest.h
14500 #define DEFINED_IN_CONFTESTD1
14501 #include <stdio.h>
14502 #include_next <conftest.h>
14503 #ifdef DEFINED_IN_CONFTESTD2
14504 int foo;
14505 #else
14506 #error "include_next doesn't work"
14507 #endif
14509 cat <<EOF > conftestd2/conftest.h
14510 #ifndef DEFINED_IN_CONFTESTD1
14511 #error "include_next test doesn't work"
14512 #endif
14513 #define DEFINED_IN_CONFTESTD2
14515 gl_save_CPPFLAGS="$CPPFLAGS"
14516 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14519 #include <conftest.h>
14520 _ACEOF
14521 if ac_fn_c_try_compile "$LINENO"; then :
14522 gl_cv_have_include_next=yes
14523 else
14524 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14527 #include <conftest.h>
14528 _ACEOF
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530 gl_cv_have_include_next=buggy
14531 else
14532 gl_cv_have_include_next=no
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 CPPFLAGS="$gl_save_CPPFLAGS"
14539 rm -rf conftestd1a conftestd1b conftestd2
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14543 $as_echo "$gl_cv_have_include_next" >&6; }
14544 PRAGMA_SYSTEM_HEADER=
14545 if test $gl_cv_have_include_next = yes; then
14546 INCLUDE_NEXT=include_next
14547 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14548 if test -n "$GCC"; then
14549 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14551 else
14552 if test $gl_cv_have_include_next = buggy; then
14553 INCLUDE_NEXT=include
14554 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14555 else
14556 INCLUDE_NEXT=include
14557 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14564 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14565 if test "${gl_cv_pragma_columns+set}" = set; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14571 #ifdef __TANDEM
14572 choke me
14573 #endif
14575 _ACEOF
14576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14577 $EGREP "choke me" >/dev/null 2>&1; then :
14578 gl_cv_pragma_columns=yes
14579 else
14580 gl_cv_pragma_columns=no
14582 rm -f conftest*
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14587 $as_echo "$gl_cv_pragma_columns" >&6; }
14588 if test $gl_cv_pragma_columns = yes; then
14589 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14590 else
14591 PRAGMA_COLUMNS=
14610 if test $gl_cv_have_include_next = yes; then
14611 gl_cv_next_getopt_h='<'getopt.h'>'
14612 else
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14614 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14615 if test "${gl_cv_next_getopt_h+set}" = set; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14619 if test $ac_cv_header_getopt_h = yes; then
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624 #include <getopt.h>
14626 _ACEOF
14627 case "$host_os" in
14628 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14629 *) gl_absname_cpp="$ac_cpp" ;;
14630 esac
14631 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14632 sed -n '\#/getopt.h#{
14633 s#.*"\(.*/getopt.h\)".*#\1#
14634 s#^/[^/]#//&#
14637 }'`'"'
14638 else
14639 gl_cv_next_getopt_h='<'getopt.h'>'
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14645 $as_echo "$gl_cv_next_getopt_h" >&6; }
14647 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14649 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14650 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14651 gl_next_as_first_directive='<'getopt.h'>'
14652 else
14653 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14654 gl_next_as_first_directive=$gl_cv_next_getopt_h
14656 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14661 if test $ac_cv_header_getopt_h = yes; then
14662 HAVE_GETOPT_H=1
14663 else
14664 HAVE_GETOPT_H=0
14668 gl_replace_getopt=
14670 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14671 for ac_header in getopt.h
14672 do :
14673 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14674 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14675 cat >>confdefs.h <<_ACEOF
14676 #define HAVE_GETOPT_H 1
14677 _ACEOF
14679 else
14680 gl_replace_getopt=yes
14683 done
14687 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14688 for ac_func in getopt_long_only
14689 do :
14690 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14691 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14692 cat >>confdefs.h <<_ACEOF
14693 #define HAVE_GETOPT_LONG_ONLY 1
14694 _ACEOF
14696 else
14697 gl_replace_getopt=yes
14699 done
14703 if test -z "$gl_replace_getopt"; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14705 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14706 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14707 $as_echo_n "(cached) " >&6
14708 else
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14712 #include <unistd.h>
14714 main ()
14716 int *p = &optreset; return optreset;
14718 return 0;
14720 _ACEOF
14721 if ac_fn_c_try_compile "$LINENO"; then :
14722 gl_optind_min=1
14723 else
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14726 #include <getopt.h>
14728 main ()
14730 return !getopt_clip;
14732 return 0;
14734 _ACEOF
14735 if ac_fn_c_try_compile "$LINENO"; then :
14736 gl_optind_min=1
14737 else
14738 gl_optind_min=0
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14744 gl_save_CPPFLAGS=$CPPFLAGS
14745 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14746 if test "$cross_compiling" = yes; then :
14747 case "$host_os" in
14748 mingw*) gl_cv_func_getopt_posix="guessing no";;
14749 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14750 *) gl_cv_func_getopt_posix="guessing yes";;
14751 esac
14753 else
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 #include <unistd.h>
14758 #include <stdlib.h>
14759 #include <string.h>
14762 main ()
14765 int argc = 0;
14766 char *argv[10];
14767 int c;
14769 argv[argc++] = "program";
14770 argv[argc++] = "-a";
14771 argv[argc++] = "foo";
14772 argv[argc++] = "bar";
14773 argv[argc] = NULL;
14774 optind = OPTIND_MIN;
14775 opterr = 0;
14777 c = getopt (argc, argv, "ab");
14778 if (!(c == 'a'))
14779 return 1;
14780 c = getopt (argc, argv, "ab");
14781 if (!(c == -1))
14782 return 2;
14783 if (!(optind == 2))
14784 return 3;
14786 /* Some internal state exists at this point. */
14788 int argc = 0;
14789 char *argv[10];
14790 int c;
14792 argv[argc++] = "program";
14793 argv[argc++] = "donald";
14794 argv[argc++] = "-p";
14795 argv[argc++] = "billy";
14796 argv[argc++] = "duck";
14797 argv[argc++] = "-a";
14798 argv[argc++] = "bar";
14799 argv[argc] = NULL;
14800 optind = OPTIND_MIN;
14801 opterr = 0;
14803 c = getopt (argc, argv, "+abp:q:");
14804 if (!(c == -1))
14805 return 4;
14806 if (!(strcmp (argv[0], "program") == 0))
14807 return 5;
14808 if (!(strcmp (argv[1], "donald") == 0))
14809 return 6;
14810 if (!(strcmp (argv[2], "-p") == 0))
14811 return 7;
14812 if (!(strcmp (argv[3], "billy") == 0))
14813 return 8;
14814 if (!(strcmp (argv[4], "duck") == 0))
14815 return 9;
14816 if (!(strcmp (argv[5], "-a") == 0))
14817 return 10;
14818 if (!(strcmp (argv[6], "bar") == 0))
14819 return 11;
14820 if (!(optind == 1))
14821 return 12;
14823 /* Detect MacOS 10.5, AIX 7.1 bug. */
14825 char *argv[3] = { "program", "-ab", NULL };
14826 optind = OPTIND_MIN;
14827 opterr = 0;
14828 if (getopt (2, argv, "ab:") != 'a')
14829 return 13;
14830 if (getopt (2, argv, "ab:") != '?')
14831 return 14;
14832 if (optopt != 'b')
14833 return 15;
14834 if (optind != 2)
14835 return 16;
14838 return 0;
14841 _ACEOF
14842 if ac_fn_c_try_run "$LINENO"; then :
14843 gl_cv_func_getopt_posix=yes
14844 else
14845 gl_cv_func_getopt_posix=no
14847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14848 conftest.$ac_objext conftest.beam conftest.$ac_ext
14851 CPPFLAGS=$gl_save_CPPFLAGS
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14855 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14856 case "$gl_cv_func_getopt_posix" in
14857 *no) gl_replace_getopt=yes ;;
14858 esac
14861 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14863 $as_echo_n "checking for working GNU getopt function... " >&6; }
14864 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14868 # optstring is necessary for programs like m4 that have POSIX-mandated
14869 # semantics for supporting options interspersed with files.
14870 # Also, since getopt_long is a GNU extension, we require optind=0.
14871 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14872 # so take care to revert to the correct (non-)export state.
14873 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14874 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14875 xx) gl_had_POSIXLY_CORRECT=exported ;;
14876 x) gl_had_POSIXLY_CORRECT=yes ;;
14877 *) gl_had_POSIXLY_CORRECT= ;;
14878 esac
14879 POSIXLY_CORRECT=1
14880 export POSIXLY_CORRECT
14881 if test "$cross_compiling" = yes; then :
14882 case $host_os:$ac_cv_have_decl_optreset in
14883 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14884 *:yes) gl_cv_func_getopt_gnu=no;;
14885 *) gl_cv_func_getopt_gnu=yes;;
14886 esac
14888 else
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891 #include <getopt.h>
14892 #include <stddef.h>
14893 #include <string.h>
14896 main ()
14899 int result = 0;
14900 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14901 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14902 OSF/1 5.1, Solaris 10. */
14904 char *myargv[3];
14905 myargv[0] = "conftest";
14906 myargv[1] = "-+";
14907 myargv[2] = 0;
14908 opterr = 0;
14909 if (getopt (2, myargv, "+a") != '?')
14910 result |= 1;
14912 /* This code succeeds on glibc 2.8, mingw,
14913 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14914 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14916 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14918 optind = 1;
14919 if (getopt (4, argv, "p::") != 'p')
14920 result |= 2;
14921 else if (optarg != NULL)
14922 result |= 4;
14923 else if (getopt (4, argv, "p::") != -1)
14924 result |= 6;
14925 else if (optind != 2)
14926 result |= 8;
14928 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14930 char *argv[] = { "program", "foo", "-p", NULL };
14931 optind = 0;
14932 if (getopt (3, argv, "-p") != 1)
14933 result |= 16;
14934 else if (getopt (3, argv, "-p") != 'p')
14935 result |= 32;
14937 /* This code fails on glibc 2.11. */
14939 char *argv[] = { "program", "-b", "-a", NULL };
14940 optind = opterr = 0;
14941 if (getopt (3, argv, "+:a:b") != 'b')
14942 result |= 64;
14943 else if (getopt (3, argv, "+:a:b") != ':')
14944 result |= 64;
14946 return result;
14949 return 0;
14951 _ACEOF
14952 if ac_fn_c_try_run "$LINENO"; then :
14953 gl_cv_func_getopt_gnu=yes
14954 else
14955 gl_cv_func_getopt_gnu=no
14957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14958 conftest.$ac_objext conftest.beam conftest.$ac_ext
14961 case $gl_had_POSIXLY_CORRECT in
14962 exported) ;;
14963 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14964 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14965 esac
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14969 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14970 if test "$gl_cv_func_getopt_gnu" = "no"; then
14971 gl_replace_getopt=yes
14975 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14976 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14977 ac_have_decl=1
14978 else
14979 ac_have_decl=0
14982 cat >>confdefs.h <<_ACEOF
14983 #define HAVE_DECL_GETENV $ac_have_decl
14984 _ACEOF
14991 if test -n "$gl_replace_getopt"; then :
14995 GETOPT_H=getopt.h
14997 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15001 GNULIB_UNISTD_H_GETOPT=1
15010 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15020 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15032 $as_echo_n "checking for unsigned long long int... " >&6; }
15033 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15036 ac_cv_type_unsigned_long_long_int=yes
15037 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15041 /* For now, do not test the preprocessor; as of 2007 there are too many
15042 implementations with broken preprocessors. Perhaps this can
15043 be revisited in 2012. In the meantime, code should not expect
15044 #if to work with literals wider than 32 bits. */
15045 /* Test literals. */
15046 long long int ll = 9223372036854775807ll;
15047 long long int nll = -9223372036854775807LL;
15048 unsigned long long int ull = 18446744073709551615ULL;
15049 /* Test constant expressions. */
15050 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15051 ? 1 : -1)];
15052 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15053 ? 1 : -1)];
15054 int i = 63;
15056 main ()
15058 /* Test availability of runtime routines for shift and division. */
15059 long long int llmax = 9223372036854775807ll;
15060 unsigned long long int ullmax = 18446744073709551615ull;
15061 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15062 | (llmax / ll) | (llmax % ll)
15063 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15064 | (ullmax / ull) | (ullmax % ull));
15066 return 0;
15069 _ACEOF
15070 if ac_fn_c_try_link "$LINENO"; then :
15072 else
15073 ac_cv_type_unsigned_long_long_int=no
15075 rm -f core conftest.err conftest.$ac_objext \
15076 conftest$ac_exeext conftest.$ac_ext
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15080 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15081 if test $ac_cv_type_unsigned_long_long_int = yes; then
15083 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15090 $as_echo_n "checking for long long int... " >&6; }
15091 if test "${ac_cv_type_long_long_int+set}" = set; then :
15092 $as_echo_n "(cached) " >&6
15093 else
15094 ac_cv_type_long_long_int=yes
15095 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15096 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
15097 if test $ac_cv_type_long_long_int = yes; then
15098 if test "$cross_compiling" = yes; then :
15100 else
15101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15102 /* end confdefs.h. */
15103 #include <limits.h>
15104 #ifndef LLONG_MAX
15105 # define HALF \
15106 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15107 # define LLONG_MAX (HALF - 1 + HALF)
15108 #endif
15110 main ()
15112 long long int n = 1;
15113 int i;
15114 for (i = 0; ; i++)
15116 long long int m = n << i;
15117 if (m >> i != n)
15118 return 1;
15119 if (LLONG_MAX / 2 < m)
15120 break;
15122 return 0;
15124 return 0;
15126 _ACEOF
15127 if ac_fn_c_try_run "$LINENO"; then :
15129 else
15130 ac_cv_type_long_long_int=no
15132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15133 conftest.$ac_objext conftest.beam conftest.$ac_ext
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15140 $as_echo "$ac_cv_type_long_long_int" >&6; }
15141 if test $ac_cv_type_long_long_int = yes; then
15143 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15152 gl_cv_c_multiarch=no
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15155 #ifndef __APPLE_CC__
15156 not a universal capable compiler
15157 #endif
15158 typedef int dummy;
15160 _ACEOF
15161 if ac_fn_c_try_compile "$LINENO"; then :
15163 arch=
15164 prev=
15165 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
15166 if test -n "$prev"; then
15167 case $word in
15168 i?86 | x86_64 | ppc | ppc64)
15169 if test -z "$arch" || test "$arch" = "$word"; then
15170 arch="$word"
15171 else
15172 gl_cv_c_multiarch=yes
15175 esac
15176 prev=
15177 else
15178 if test "x$word" = "x-arch"; then
15179 prev=arch
15182 done
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186 if test $gl_cv_c_multiarch = yes; then
15187 APPLE_UNIVERSAL_BUILD=1
15188 else
15189 APPLE_UNIVERSAL_BUILD=0
15196 if test $ac_cv_type_long_long_int = yes; then
15197 HAVE_LONG_LONG_INT=1
15198 else
15199 HAVE_LONG_LONG_INT=0
15203 if test $ac_cv_type_unsigned_long_long_int = yes; then
15204 HAVE_UNSIGNED_LONG_LONG_INT=1
15205 else
15206 HAVE_UNSIGNED_LONG_LONG_INT=0
15211 if test $ac_cv_header_wchar_h = yes; then
15212 HAVE_WCHAR_H=1
15213 else
15214 HAVE_WCHAR_H=0
15218 if test $ac_cv_header_inttypes_h = yes; then
15219 HAVE_INTTYPES_H=1
15220 else
15221 HAVE_INTTYPES_H=0
15225 if test $ac_cv_header_sys_types_h = yes; then
15226 HAVE_SYS_TYPES_H=1
15227 else
15228 HAVE_SYS_TYPES_H=0
15241 if test $gl_cv_have_include_next = yes; then
15242 gl_cv_next_stdint_h='<'stdint.h'>'
15243 else
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
15245 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
15246 if test "${gl_cv_next_stdint_h+set}" = set; then :
15247 $as_echo_n "(cached) " >&6
15248 else
15250 if test $ac_cv_header_stdint_h = yes; then
15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15255 #include <stdint.h>
15257 _ACEOF
15258 case "$host_os" in
15259 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15260 *) gl_absname_cpp="$ac_cpp" ;;
15261 esac
15262 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15263 sed -n '\#/stdint.h#{
15264 s#.*"\(.*/stdint.h\)".*#\1#
15265 s#^/[^/]#//&#
15268 }'`'"'
15269 else
15270 gl_cv_next_stdint_h='<'stdint.h'>'
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
15276 $as_echo "$gl_cv_next_stdint_h" >&6; }
15278 NEXT_STDINT_H=$gl_cv_next_stdint_h
15280 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15281 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15282 gl_next_as_first_directive='<'stdint.h'>'
15283 else
15284 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15285 gl_next_as_first_directive=$gl_cv_next_stdint_h
15287 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
15292 if test $ac_cv_header_stdint_h = yes; then
15293 HAVE_STDINT_H=1
15294 else
15295 HAVE_STDINT_H=0
15299 if test $ac_cv_header_stdint_h = yes; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
15301 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
15302 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
15303 $as_echo_n "(cached) " >&6
15304 else
15305 gl_cv_header_working_stdint_h=no
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15310 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15311 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15312 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15313 #include <stdint.h>
15314 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15315 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15316 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15317 #endif
15320 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15321 included before <wchar.h>. */
15322 #include <stddef.h>
15323 #include <signal.h>
15324 #if HAVE_WCHAR_H
15325 # include <stdio.h>
15326 # include <time.h>
15327 # include <wchar.h>
15328 #endif
15331 #ifdef INT8_MAX
15332 int8_t a1 = INT8_MAX;
15333 int8_t a1min = INT8_MIN;
15334 #endif
15335 #ifdef INT16_MAX
15336 int16_t a2 = INT16_MAX;
15337 int16_t a2min = INT16_MIN;
15338 #endif
15339 #ifdef INT32_MAX
15340 int32_t a3 = INT32_MAX;
15341 int32_t a3min = INT32_MIN;
15342 #endif
15343 #ifdef INT64_MAX
15344 int64_t a4 = INT64_MAX;
15345 int64_t a4min = INT64_MIN;
15346 #endif
15347 #ifdef UINT8_MAX
15348 uint8_t b1 = UINT8_MAX;
15349 #else
15350 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15351 #endif
15352 #ifdef UINT16_MAX
15353 uint16_t b2 = UINT16_MAX;
15354 #endif
15355 #ifdef UINT32_MAX
15356 uint32_t b3 = UINT32_MAX;
15357 #endif
15358 #ifdef UINT64_MAX
15359 uint64_t b4 = UINT64_MAX;
15360 #endif
15361 int_least8_t c1 = INT8_C (0x7f);
15362 int_least8_t c1max = INT_LEAST8_MAX;
15363 int_least8_t c1min = INT_LEAST8_MIN;
15364 int_least16_t c2 = INT16_C (0x7fff);
15365 int_least16_t c2max = INT_LEAST16_MAX;
15366 int_least16_t c2min = INT_LEAST16_MIN;
15367 int_least32_t c3 = INT32_C (0x7fffffff);
15368 int_least32_t c3max = INT_LEAST32_MAX;
15369 int_least32_t c3min = INT_LEAST32_MIN;
15370 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15371 int_least64_t c4max = INT_LEAST64_MAX;
15372 int_least64_t c4min = INT_LEAST64_MIN;
15373 uint_least8_t d1 = UINT8_C (0xff);
15374 uint_least8_t d1max = UINT_LEAST8_MAX;
15375 uint_least16_t d2 = UINT16_C (0xffff);
15376 uint_least16_t d2max = UINT_LEAST16_MAX;
15377 uint_least32_t d3 = UINT32_C (0xffffffff);
15378 uint_least32_t d3max = UINT_LEAST32_MAX;
15379 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15380 uint_least64_t d4max = UINT_LEAST64_MAX;
15381 int_fast8_t e1 = INT_FAST8_MAX;
15382 int_fast8_t e1min = INT_FAST8_MIN;
15383 int_fast16_t e2 = INT_FAST16_MAX;
15384 int_fast16_t e2min = INT_FAST16_MIN;
15385 int_fast32_t e3 = INT_FAST32_MAX;
15386 int_fast32_t e3min = INT_FAST32_MIN;
15387 int_fast64_t e4 = INT_FAST64_MAX;
15388 int_fast64_t e4min = INT_FAST64_MIN;
15389 uint_fast8_t f1 = UINT_FAST8_MAX;
15390 uint_fast16_t f2 = UINT_FAST16_MAX;
15391 uint_fast32_t f3 = UINT_FAST32_MAX;
15392 uint_fast64_t f4 = UINT_FAST64_MAX;
15393 #ifdef INTPTR_MAX
15394 intptr_t g = INTPTR_MAX;
15395 intptr_t gmin = INTPTR_MIN;
15396 #endif
15397 #ifdef UINTPTR_MAX
15398 uintptr_t h = UINTPTR_MAX;
15399 #endif
15400 intmax_t i = INTMAX_MAX;
15401 uintmax_t j = UINTMAX_MAX;
15403 #include <limits.h> /* for CHAR_BIT */
15404 #define TYPE_MINIMUM(t) \
15405 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15406 #define TYPE_MAXIMUM(t) \
15407 ((t) ((t) 0 < (t) -1 \
15408 ? (t) -1 \
15409 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15410 struct s {
15411 int check_PTRDIFF:
15412 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15413 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15414 ? 1 : -1;
15415 /* Detect bug in FreeBSD 6.0 / ia64. */
15416 int check_SIG_ATOMIC:
15417 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15418 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15419 ? 1 : -1;
15420 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15421 int check_WCHAR:
15422 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15423 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15424 ? 1 : -1;
15425 /* Detect bug in mingw. */
15426 int check_WINT:
15427 WINT_MIN == TYPE_MINIMUM (wint_t)
15428 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15429 ? 1 : -1;
15431 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15432 int check_UINT8_C:
15433 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15434 int check_UINT16_C:
15435 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15437 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15438 #ifdef UINT8_MAX
15439 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15440 #endif
15441 #ifdef UINT16_MAX
15442 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15443 #endif
15444 #ifdef UINT32_MAX
15445 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15446 #endif
15447 #ifdef UINT64_MAX
15448 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15449 #endif
15450 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15451 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15452 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15453 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15454 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15455 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15456 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15457 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15458 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15459 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15460 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15464 main ()
15468 return 0;
15470 _ACEOF
15471 if ac_fn_c_try_compile "$LINENO"; then :
15472 if test "$cross_compiling" = yes; then :
15473 gl_cv_header_working_stdint_h=yes
15475 else
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h. */
15480 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15481 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15482 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15483 #include <stdint.h>
15486 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15487 included before <wchar.h>. */
15488 #include <stddef.h>
15489 #include <signal.h>
15490 #if HAVE_WCHAR_H
15491 # include <stdio.h>
15492 # include <time.h>
15493 # include <wchar.h>
15494 #endif
15497 #include <stdio.h>
15498 #include <string.h>
15499 #define MVAL(macro) MVAL1(macro)
15500 #define MVAL1(expression) #expression
15501 static const char *macro_values[] =
15503 #ifdef INT8_MAX
15504 MVAL (INT8_MAX),
15505 #endif
15506 #ifdef INT16_MAX
15507 MVAL (INT16_MAX),
15508 #endif
15509 #ifdef INT32_MAX
15510 MVAL (INT32_MAX),
15511 #endif
15512 #ifdef INT64_MAX
15513 MVAL (INT64_MAX),
15514 #endif
15515 #ifdef UINT8_MAX
15516 MVAL (UINT8_MAX),
15517 #endif
15518 #ifdef UINT16_MAX
15519 MVAL (UINT16_MAX),
15520 #endif
15521 #ifdef UINT32_MAX
15522 MVAL (UINT32_MAX),
15523 #endif
15524 #ifdef UINT64_MAX
15525 MVAL (UINT64_MAX),
15526 #endif
15527 NULL
15531 main ()
15534 const char **mv;
15535 for (mv = macro_values; *mv != NULL; mv++)
15537 const char *value = *mv;
15538 /* Test whether it looks like a cast expression. */
15539 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15540 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15541 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15542 || strncmp (value, "((int)"/*)*/, 6) == 0
15543 || strncmp (value, "((signed short)"/*)*/, 15) == 0
15544 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15545 return mv - macro_values + 1;
15547 return 0;
15550 return 0;
15552 _ACEOF
15553 if ac_fn_c_try_run "$LINENO"; then :
15554 gl_cv_header_working_stdint_h=yes
15556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15557 conftest.$ac_objext conftest.beam conftest.$ac_ext
15562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15566 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15568 if test "$gl_cv_header_working_stdint_h" = yes; then
15569 STDINT_H=
15570 else
15571 for ac_header in sys/inttypes.h sys/bitypes.h
15572 do :
15573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15574 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15575 eval as_val=\$$as_ac_Header
15576 if test "x$as_val" = x""yes; then :
15577 cat >>confdefs.h <<_ACEOF
15578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15579 _ACEOF
15583 done
15585 if test $ac_cv_header_sys_inttypes_h = yes; then
15586 HAVE_SYS_INTTYPES_H=1
15587 else
15588 HAVE_SYS_INTTYPES_H=0
15591 if test $ac_cv_header_sys_bitypes_h = yes; then
15592 HAVE_SYS_BITYPES_H=1
15593 else
15594 HAVE_SYS_BITYPES_H=0
15600 if test $APPLE_UNIVERSAL_BUILD = 0; then
15603 for gltype in ptrdiff_t size_t ; do
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15605 $as_echo_n "checking for bit size of $gltype... " >&6; }
15606 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15607 $as_echo_n "(cached) " >&6
15608 else
15609 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15610 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15611 included before <wchar.h>. */
15612 #include <stddef.h>
15613 #include <signal.h>
15614 #if HAVE_WCHAR_H
15615 # include <stdio.h>
15616 # include <time.h>
15617 # include <wchar.h>
15618 #endif
15620 #include <limits.h>"; then :
15622 else
15623 result=unknown
15626 eval gl_cv_bitsizeof_${gltype}=\$result
15629 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15631 $as_echo "$ac_res" >&6; }
15632 eval result=\$gl_cv_bitsizeof_${gltype}
15633 if test $result = unknown; then
15634 result=0
15636 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15637 cat >>confdefs.h <<_ACEOF
15638 #define BITSIZEOF_${GLTYPE} $result
15639 _ACEOF
15641 eval BITSIZEOF_${GLTYPE}=\$result
15642 done
15648 for gltype in sig_atomic_t wchar_t wint_t ; do
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15650 $as_echo_n "checking for bit size of $gltype... " >&6; }
15651 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15652 $as_echo_n "(cached) " >&6
15653 else
15654 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15655 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15656 included before <wchar.h>. */
15657 #include <stddef.h>
15658 #include <signal.h>
15659 #if HAVE_WCHAR_H
15660 # include <stdio.h>
15661 # include <time.h>
15662 # include <wchar.h>
15663 #endif
15665 #include <limits.h>"; then :
15667 else
15668 result=unknown
15671 eval gl_cv_bitsizeof_${gltype}=\$result
15674 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15676 $as_echo "$ac_res" >&6; }
15677 eval result=\$gl_cv_bitsizeof_${gltype}
15678 if test $result = unknown; then
15679 result=0
15681 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15682 cat >>confdefs.h <<_ACEOF
15683 #define BITSIZEOF_${GLTYPE} $result
15684 _ACEOF
15686 eval BITSIZEOF_${GLTYPE}=\$result
15687 done
15692 for gltype in sig_atomic_t wchar_t wint_t ; do
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15694 $as_echo_n "checking whether $gltype is signed... " >&6; }
15695 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
15696 $as_echo_n "(cached) " >&6
15697 else
15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15701 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15702 included before <wchar.h>. */
15703 #include <stddef.h>
15704 #include <signal.h>
15705 #if HAVE_WCHAR_H
15706 # include <stdio.h>
15707 # include <time.h>
15708 # include <wchar.h>
15709 #endif
15711 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15713 main ()
15717 return 0;
15719 _ACEOF
15720 if ac_fn_c_try_compile "$LINENO"; then :
15721 result=yes
15722 else
15723 result=no
15725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726 eval gl_cv_type_${gltype}_signed=\$result
15729 eval ac_res=\$gl_cv_type_${gltype}_signed
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15731 $as_echo "$ac_res" >&6; }
15732 eval result=\$gl_cv_type_${gltype}_signed
15733 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15734 if test "$result" = yes; then
15735 cat >>confdefs.h <<_ACEOF
15736 #define HAVE_SIGNED_${GLTYPE} 1
15737 _ACEOF
15739 eval HAVE_SIGNED_${GLTYPE}=1
15740 else
15741 eval HAVE_SIGNED_${GLTYPE}=0
15743 done
15746 gl_cv_type_ptrdiff_t_signed=yes
15747 gl_cv_type_size_t_signed=no
15748 if test $APPLE_UNIVERSAL_BUILD = 0; then
15751 for gltype in ptrdiff_t size_t ; do
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15753 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15754 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15755 $as_echo_n "(cached) " >&6
15756 else
15757 eval gl_cv_type_${gltype}_suffix=no
15758 eval result=\$gl_cv_type_${gltype}_signed
15759 if test "$result" = yes; then
15760 glsufu=
15761 else
15762 glsufu=u
15764 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15765 case $glsuf in
15766 '') gltype1='int';;
15767 l) gltype1='long int';;
15768 ll) gltype1='long long int';;
15769 i64) gltype1='__int64';;
15770 u) gltype1='unsigned int';;
15771 ul) gltype1='unsigned long int';;
15772 ull) gltype1='unsigned long long int';;
15773 ui64)gltype1='unsigned __int64';;
15774 esac
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15778 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15779 included before <wchar.h>. */
15780 #include <stddef.h>
15781 #include <signal.h>
15782 #if HAVE_WCHAR_H
15783 # include <stdio.h>
15784 # include <time.h>
15785 # include <wchar.h>
15786 #endif
15788 extern $gltype foo;
15789 extern $gltype1 foo;
15791 main ()
15795 return 0;
15797 _ACEOF
15798 if ac_fn_c_try_compile "$LINENO"; then :
15799 eval gl_cv_type_${gltype}_suffix=\$glsuf
15801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 eval result=\$gl_cv_type_${gltype}_suffix
15803 test "$result" != no && break
15804 done
15806 eval ac_res=\$gl_cv_type_${gltype}_suffix
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15808 $as_echo "$ac_res" >&6; }
15809 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15810 eval result=\$gl_cv_type_${gltype}_suffix
15811 test "$result" = no && result=
15812 eval ${GLTYPE}_SUFFIX=\$result
15813 cat >>confdefs.h <<_ACEOF
15814 #define ${GLTYPE}_SUFFIX $result
15815 _ACEOF
15817 done
15823 for gltype in sig_atomic_t wchar_t wint_t ; do
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15825 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15826 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15827 $as_echo_n "(cached) " >&6
15828 else
15829 eval gl_cv_type_${gltype}_suffix=no
15830 eval result=\$gl_cv_type_${gltype}_signed
15831 if test "$result" = yes; then
15832 glsufu=
15833 else
15834 glsufu=u
15836 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15837 case $glsuf in
15838 '') gltype1='int';;
15839 l) gltype1='long int';;
15840 ll) gltype1='long long int';;
15841 i64) gltype1='__int64';;
15842 u) gltype1='unsigned int';;
15843 ul) gltype1='unsigned long int';;
15844 ull) gltype1='unsigned long long int';;
15845 ui64)gltype1='unsigned __int64';;
15846 esac
15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15848 /* end confdefs.h. */
15850 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15851 included before <wchar.h>. */
15852 #include <stddef.h>
15853 #include <signal.h>
15854 #if HAVE_WCHAR_H
15855 # include <stdio.h>
15856 # include <time.h>
15857 # include <wchar.h>
15858 #endif
15860 extern $gltype foo;
15861 extern $gltype1 foo;
15863 main ()
15867 return 0;
15869 _ACEOF
15870 if ac_fn_c_try_compile "$LINENO"; then :
15871 eval gl_cv_type_${gltype}_suffix=\$glsuf
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 eval result=\$gl_cv_type_${gltype}_suffix
15875 test "$result" != no && break
15876 done
15878 eval ac_res=\$gl_cv_type_${gltype}_suffix
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15880 $as_echo "$ac_res" >&6; }
15881 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15882 eval result=\$gl_cv_type_${gltype}_suffix
15883 test "$result" = no && result=
15884 eval ${GLTYPE}_SUFFIX=\$result
15885 cat >>confdefs.h <<_ACEOF
15886 #define ${GLTYPE}_SUFFIX $result
15887 _ACEOF
15889 done
15893 STDINT_H=stdint.h
15896 if test -n "$STDINT_H"; then
15897 GL_GENERATE_STDINT_H_TRUE=
15898 GL_GENERATE_STDINT_H_FALSE='#'
15899 else
15900 GL_GENERATE_STDINT_H_TRUE='#'
15901 GL_GENERATE_STDINT_H_FALSE=
15908 GNULIB_IMAXABS=0;
15909 GNULIB_IMAXDIV=0;
15910 GNULIB_STRTOIMAX=0;
15911 GNULIB_STRTOUMAX=0;
15912 HAVE_DECL_IMAXABS=1;
15913 HAVE_DECL_IMAXDIV=1;
15914 HAVE_DECL_STRTOIMAX=1;
15915 HAVE_DECL_STRTOUMAX=1;
15916 INT32_MAX_LT_INTMAX_MAX=1;
15917 INT64_MAX_EQ_LONG_MAX='defined _LP64';
15918 PRI_MACROS_BROKEN=0;
15919 PRIPTR_PREFIX=__PRIPTR_PREFIX;
15920 UINT32_MAX_LT_UINTMAX_MAX=1;
15921 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
15924 GNULIB_FCHMODAT=0;
15925 GNULIB_FSTATAT=0;
15926 GNULIB_FUTIMENS=0;
15927 GNULIB_LCHMOD=0;
15928 GNULIB_LSTAT=0;
15929 GNULIB_MKDIRAT=0;
15930 GNULIB_MKFIFO=0;
15931 GNULIB_MKFIFOAT=0;
15932 GNULIB_MKNOD=0;
15933 GNULIB_MKNODAT=0;
15934 GNULIB_STAT=0;
15935 GNULIB_UTIMENSAT=0;
15936 HAVE_FCHMODAT=1;
15937 HAVE_FSTATAT=1;
15938 HAVE_FUTIMENS=1;
15939 HAVE_LCHMOD=1;
15940 HAVE_LSTAT=1;
15941 HAVE_MKDIRAT=1;
15942 HAVE_MKFIFO=1;
15943 HAVE_MKFIFOAT=1;
15944 HAVE_MKNOD=1;
15945 HAVE_MKNODAT=1;
15946 HAVE_UTIMENSAT=1;
15947 REPLACE_FSTAT=0;
15948 REPLACE_FSTATAT=0;
15949 REPLACE_FUTIMENS=0;
15950 REPLACE_LSTAT=0;
15951 REPLACE_MKDIR=0;
15952 REPLACE_MKFIFO=0;
15953 REPLACE_MKNOD=0;
15954 REPLACE_STAT=0;
15955 REPLACE_UTIMENSAT=0;
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
15961 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
15962 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
15963 $as_echo_n "(cached) " >&6
15964 else
15965 rm -f conftest.sym conftest.file
15966 echo >conftest.file
15967 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15968 if test "$cross_compiling" = yes; then :
15969 # When cross-compiling, be pessimistic so we will end up using the
15970 # replacement version of lstat that checks for trailing slashes and
15971 # calls lstat a second time when necessary.
15972 ac_cv_func_lstat_dereferences_slashed_symlink=no
15974 else
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15977 $ac_includes_default
15979 main ()
15981 struct stat sbuf;
15982 /* Linux will dereference the symlink and fail, as required by
15983 POSIX. That is better in the sense that it means we will not
15984 have to compile and use the lstat wrapper. */
15985 return lstat ("conftest.sym/", &sbuf) == 0;
15988 return 0;
15990 _ACEOF
15991 if ac_fn_c_try_run "$LINENO"; then :
15992 ac_cv_func_lstat_dereferences_slashed_symlink=yes
15993 else
15994 ac_cv_func_lstat_dereferences_slashed_symlink=no
15996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15997 conftest.$ac_objext conftest.beam conftest.$ac_ext
16000 else
16001 # If the 'ln -s' command failed, then we probably don't even
16002 # have an lstat function.
16003 ac_cv_func_lstat_dereferences_slashed_symlink=no
16005 rm -f conftest.sym conftest.file
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16009 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16010 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16012 cat >>confdefs.h <<_ACEOF
16013 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16014 _ACEOF
16016 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16025 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
16030 GNULIB_MKTIME=0;
16031 GNULIB_NANOSLEEP=0;
16032 GNULIB_STRPTIME=0;
16033 GNULIB_TIMEGM=0;
16034 GNULIB_TIME_R=0;
16035 HAVE_DECL_LOCALTIME_R=1;
16036 HAVE_NANOSLEEP=1;
16037 HAVE_STRPTIME=1;
16038 HAVE_TIMEGM=1;
16039 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
16040 REPLACE_MKTIME=GNULIB_PORTCHECK;
16041 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
16042 REPLACE_TIMEGM=GNULIB_PORTCHECK;
16051 if test $ac_cv_header_sys_socket_h = no; then
16052 for ac_header in ws2tcpip.h
16053 do :
16054 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
16055 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
16056 cat >>confdefs.h <<_ACEOF
16057 #define HAVE_WS2TCPIP_H 1
16058 _ACEOF
16062 done
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16067 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16068 if test "${ac_cv_header_stdbool_h+set}" = set; then :
16069 $as_echo_n "(cached) " >&6
16070 else
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16074 #include <stdbool.h>
16075 #ifndef bool
16076 "error: bool is not defined"
16077 #endif
16078 #ifndef false
16079 "error: false is not defined"
16080 #endif
16081 #if false
16082 "error: false is not 0"
16083 #endif
16084 #ifndef true
16085 "error: true is not defined"
16086 #endif
16087 #if true != 1
16088 "error: true is not 1"
16089 #endif
16090 #ifndef __bool_true_false_are_defined
16091 "error: __bool_true_false_are_defined is not defined"
16092 #endif
16094 struct s { _Bool s: 1; _Bool t; } s;
16096 char a[true == 1 ? 1 : -1];
16097 char b[false == 0 ? 1 : -1];
16098 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16099 char d[(bool) 0.5 == true ? 1 : -1];
16100 /* See body of main program for 'e'. */
16101 char f[(_Bool) 0.0 == false ? 1 : -1];
16102 char g[true];
16103 char h[sizeof (_Bool)];
16104 char i[sizeof s.t];
16105 enum { j = false, k = true, l = false * true, m = true * 256 };
16106 /* The following fails for
16107 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16108 _Bool n[m];
16109 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16110 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16111 /* Catch a bug in an HP-UX C compiler. See
16112 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16113 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16115 _Bool q = true;
16116 _Bool *pq = &q;
16119 main ()
16122 bool e = &s;
16123 *pq |= q;
16124 *pq |= ! q;
16125 /* Refer to every declared value, to avoid compiler optimizations. */
16126 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16127 + !m + !n + !o + !p + !q + !pq);
16130 return 0;
16132 _ACEOF
16133 if ac_fn_c_try_compile "$LINENO"; then :
16134 ac_cv_header_stdbool_h=yes
16135 else
16136 ac_cv_header_stdbool_h=no
16138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16141 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16142 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16143 if test "x$ac_cv_type__Bool" = x""yes; then :
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE__BOOL 1
16147 _ACEOF
16154 REPLACE_NULL=0;
16155 HAVE_WCHAR_T=1;
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
16159 $as_echo_n "checking for wchar_t... " >&6; }
16160 if test "${gt_cv_c_wchar_t+set}" = set; then :
16161 $as_echo_n "(cached) " >&6
16162 else
16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16165 #include <stddef.h>
16166 wchar_t foo = (wchar_t)'\0';
16168 main ()
16172 return 0;
16174 _ACEOF
16175 if ac_fn_c_try_compile "$LINENO"; then :
16176 gt_cv_c_wchar_t=yes
16177 else
16178 gt_cv_c_wchar_t=no
16180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
16183 $as_echo "$gt_cv_c_wchar_t" >&6; }
16184 if test $gt_cv_c_wchar_t = yes; then
16186 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
16191 GNULIB_DPRINTF=0;
16192 GNULIB_FCLOSE=0;
16193 GNULIB_FFLUSH=0;
16194 GNULIB_FGETC=0;
16195 GNULIB_FGETS=0;
16196 GNULIB_FOPEN=0;
16197 GNULIB_FPRINTF=0;
16198 GNULIB_FPRINTF_POSIX=0;
16199 GNULIB_FPURGE=0;
16200 GNULIB_FPUTC=0;
16201 GNULIB_FPUTS=0;
16202 GNULIB_FREAD=0;
16203 GNULIB_FREOPEN=0;
16204 GNULIB_FSCANF=0;
16205 GNULIB_FSEEK=0;
16206 GNULIB_FSEEKO=0;
16207 GNULIB_FTELL=0;
16208 GNULIB_FTELLO=0;
16209 GNULIB_FWRITE=0;
16210 GNULIB_GETC=0;
16211 GNULIB_GETCHAR=0;
16212 GNULIB_GETDELIM=0;
16213 GNULIB_GETLINE=0;
16214 GNULIB_GETS=0;
16215 GNULIB_OBSTACK_PRINTF=0;
16216 GNULIB_OBSTACK_PRINTF_POSIX=0;
16217 GNULIB_PERROR=0;
16218 GNULIB_POPEN=0;
16219 GNULIB_PRINTF=0;
16220 GNULIB_PRINTF_POSIX=0;
16221 GNULIB_PUTC=0;
16222 GNULIB_PUTCHAR=0;
16223 GNULIB_PUTS=0;
16224 GNULIB_REMOVE=0;
16225 GNULIB_RENAME=0;
16226 GNULIB_RENAMEAT=0;
16227 GNULIB_SCANF=0;
16228 GNULIB_SNPRINTF=0;
16229 GNULIB_SPRINTF_POSIX=0;
16230 GNULIB_STDIO_H_NONBLOCKING=0;
16231 GNULIB_STDIO_H_SIGPIPE=0;
16232 GNULIB_TMPFILE=0;
16233 GNULIB_VASPRINTF=0;
16234 GNULIB_VFSCANF=0;
16235 GNULIB_VSCANF=0;
16236 GNULIB_VDPRINTF=0;
16237 GNULIB_VFPRINTF=0;
16238 GNULIB_VFPRINTF_POSIX=0;
16239 GNULIB_VPRINTF=0;
16240 GNULIB_VPRINTF_POSIX=0;
16241 GNULIB_VSNPRINTF=0;
16242 GNULIB_VSPRINTF_POSIX=0;
16243 HAVE_DECL_FPURGE=1;
16244 HAVE_DECL_FSEEKO=1;
16245 HAVE_DECL_FTELLO=1;
16246 HAVE_DECL_GETDELIM=1;
16247 HAVE_DECL_GETLINE=1;
16248 HAVE_DECL_OBSTACK_PRINTF=1;
16249 HAVE_DECL_SNPRINTF=1;
16250 HAVE_DECL_VSNPRINTF=1;
16251 HAVE_DPRINTF=1;
16252 HAVE_FSEEKO=1;
16253 HAVE_FTELLO=1;
16254 HAVE_RENAMEAT=1;
16255 HAVE_VASPRINTF=1;
16256 HAVE_VDPRINTF=1;
16257 REPLACE_DPRINTF=0;
16258 REPLACE_FCLOSE=0;
16259 REPLACE_FFLUSH=0;
16260 REPLACE_FOPEN=0;
16261 REPLACE_FPRINTF=0;
16262 REPLACE_FPURGE=0;
16263 REPLACE_FREOPEN=0;
16264 REPLACE_FSEEK=0;
16265 REPLACE_FSEEKO=0;
16266 REPLACE_FTELL=0;
16267 REPLACE_FTELLO=0;
16268 REPLACE_GETDELIM=0;
16269 REPLACE_GETLINE=0;
16270 REPLACE_OBSTACK_PRINTF=0;
16271 REPLACE_PERROR=0;
16272 REPLACE_POPEN=0;
16273 REPLACE_PRINTF=0;
16274 REPLACE_REMOVE=0;
16275 REPLACE_RENAME=0;
16276 REPLACE_RENAMEAT=0;
16277 REPLACE_SNPRINTF=0;
16278 REPLACE_SPRINTF=0;
16279 REPLACE_STDIO_READ_FUNCS=0;
16280 REPLACE_STDIO_WRITE_FUNCS=0;
16281 REPLACE_TMPFILE=0;
16282 REPLACE_VASPRINTF=0;
16283 REPLACE_VDPRINTF=0;
16284 REPLACE_VFPRINTF=0;
16285 REPLACE_VPRINTF=0;
16286 REPLACE_VSNPRINTF=0;
16287 REPLACE_VSPRINTF=0;
16290 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
16292 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
16294 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
16301 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
16302 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
16303 ac_have_decl=1
16304 else
16305 ac_have_decl=0
16308 cat >>confdefs.h <<_ACEOF
16309 #define HAVE_DECL_STRTOUMAX $ac_have_decl
16310 _ACEOF
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16315 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16316 if test "${ac_cv_header_stat_broken+set}" = set; then :
16317 $as_echo_n "(cached) " >&6
16318 else
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321 #include <sys/types.h>
16322 #include <sys/stat.h>
16324 #if defined S_ISBLK && defined S_IFDIR
16325 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16326 #endif
16328 #if defined S_ISBLK && defined S_IFCHR
16329 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16330 #endif
16332 #if defined S_ISLNK && defined S_IFREG
16333 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16334 #endif
16336 #if defined S_ISSOCK && defined S_IFREG
16337 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16338 #endif
16340 _ACEOF
16341 if ac_fn_c_try_compile "$LINENO"; then :
16342 ac_cv_header_stat_broken=no
16343 else
16344 ac_cv_header_stat_broken=yes
16346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16349 $as_echo "$ac_cv_header_stat_broken" >&6; }
16350 if test $ac_cv_header_stat_broken = yes; then
16352 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16359 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16360 if test "${ac_cv_c_restrict+set}" = set; then :
16361 $as_echo_n "(cached) " >&6
16362 else
16363 ac_cv_c_restrict=no
16364 # The order here caters to the fact that C++ does not require restrict.
16365 for ac_kw in __restrict __restrict__ _Restrict restrict; do
16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367 /* end confdefs.h. */
16368 typedef int * int_ptr;
16369 int foo (int_ptr $ac_kw ip) {
16370 return ip[0];
16373 main ()
16375 int s[1];
16376 int * $ac_kw t = s;
16377 t[0] = 0;
16378 return foo(t)
16380 return 0;
16382 _ACEOF
16383 if ac_fn_c_try_compile "$LINENO"; then :
16384 ac_cv_c_restrict=$ac_kw
16386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 test "$ac_cv_c_restrict" != no && break
16388 done
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16392 $as_echo "$ac_cv_c_restrict" >&6; }
16394 case $ac_cv_c_restrict in
16395 restrict) ;;
16396 no) $as_echo "#define restrict /**/" >>confdefs.h
16398 *) cat >>confdefs.h <<_ACEOF
16399 #define restrict $ac_cv_c_restrict
16400 _ACEOF
16402 esac
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16409 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16410 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
16411 $as_echo_n "(cached) " >&6
16412 else
16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415 #include <time.h>
16418 main ()
16420 static struct timespec x; x.tv_sec = x.tv_nsec;
16422 return 0;
16424 _ACEOF
16425 if ac_fn_c_try_compile "$LINENO"; then :
16426 gl_cv_sys_struct_timespec_in_time_h=yes
16427 else
16428 gl_cv_sys_struct_timespec_in_time_h=no
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16433 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16435 TIME_H_DEFINES_STRUCT_TIMESPEC=0
16436 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
16437 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
16438 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16439 TIME_H_DEFINES_STRUCT_TIMESPEC=1
16440 else
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16442 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16443 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
16444 $as_echo_n "(cached) " >&6
16445 else
16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16448 #include <sys/time.h>
16451 main ()
16453 static struct timespec x; x.tv_sec = x.tv_nsec;
16455 return 0;
16457 _ACEOF
16458 if ac_fn_c_try_compile "$LINENO"; then :
16459 gl_cv_sys_struct_timespec_in_sys_time_h=yes
16460 else
16461 gl_cv_sys_struct_timespec_in_sys_time_h=no
16463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16466 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16467 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16468 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
16469 else
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16471 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16472 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
16473 $as_echo_n "(cached) " >&6
16474 else
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 #include <pthread.h>
16480 main ()
16482 static struct timespec x; x.tv_sec = x.tv_nsec;
16484 return 0;
16486 _ACEOF
16487 if ac_fn_c_try_compile "$LINENO"; then :
16488 gl_cv_sys_struct_timespec_in_pthread_h=yes
16489 else
16490 gl_cv_sys_struct_timespec_in_pthread_h=no
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
16495 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
16496 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
16497 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
16516 if test $gl_cv_have_include_next = yes; then
16517 gl_cv_next_time_h='<'time.h'>'
16518 else
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16520 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16521 if test "${gl_cv_next_time_h+set}" = set; then :
16522 $as_echo_n "(cached) " >&6
16523 else
16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h. */
16527 #include <time.h>
16529 _ACEOF
16530 case "$host_os" in
16531 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16532 *) gl_absname_cpp="$ac_cpp" ;;
16533 esac
16534 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16535 sed -n '\#/time.h#{
16536 s#.*"\(.*/time.h\)".*#\1#
16537 s#^/[^/]#//&#
16540 }'`'"'
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16545 $as_echo "$gl_cv_next_time_h" >&6; }
16547 NEXT_TIME_H=$gl_cv_next_time_h
16549 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16550 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16551 gl_next_as_first_directive='<'time.h'>'
16552 else
16553 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16554 gl_next_as_first_directive=$gl_cv_next_time_h
16556 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
16563 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
16564 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
16565 ac_have_decl=1
16566 else
16567 ac_have_decl=0
16570 cat >>confdefs.h <<_ACEOF
16571 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
16572 _ACEOF
16577 if false; then
16578 GL_COND_LIBTOOL_TRUE=
16579 GL_COND_LIBTOOL_FALSE='#'
16580 else
16581 GL_COND_LIBTOOL_TRUE='#'
16582 GL_COND_LIBTOOL_FALSE=
16585 gl_cond_libtool=false
16586 gl_libdeps=
16587 gl_ltlibdeps=
16588 gl_m4_base='m4'
16598 gl_source_base='lib'
16609 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
16627 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
16633 # Persuade glibc <stdlib.h> to declare getloadavg().
16636 # Make sure getloadavg.c is where it belongs, at configure-time.
16637 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
16638 as_fn_error "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
16640 gl_save_LIBS=$LIBS
16642 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
16643 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
16644 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
16645 if test "x$ac_cv_func_getloadavg" = x""yes; then :
16647 else
16648 gl_have_func=no
16650 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16651 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16652 # to get the right answer into the cache.
16653 # For kstat on solaris, we need to test for libelf and libkvm to force the
16654 # definition of SVR4 below.
16655 if test $gl_have_func = no; then
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
16657 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
16658 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
16659 $as_echo_n "(cached) " >&6
16660 else
16661 ac_check_lib_save_LIBS=$LIBS
16662 LIBS="-lelf $LIBS"
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16666 /* Override any GCC internal prototype to avoid an error.
16667 Use char because int might match the return type of a GCC
16668 builtin and then its argument prototype would still apply. */
16669 #ifdef __cplusplus
16670 extern "C"
16671 #endif
16672 char elf_begin ();
16674 main ()
16676 return elf_begin ();
16678 return 0;
16680 _ACEOF
16681 if ac_fn_c_try_link "$LINENO"; then :
16682 ac_cv_lib_elf_elf_begin=yes
16683 else
16684 ac_cv_lib_elf_elf_begin=no
16686 rm -f core conftest.err conftest.$ac_objext \
16687 conftest$ac_exeext conftest.$ac_ext
16688 LIBS=$ac_check_lib_save_LIBS
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
16691 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
16692 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
16693 LIBS="-lelf $LIBS"
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
16697 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
16698 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
16699 $as_echo_n "(cached) " >&6
16700 else
16701 ac_check_lib_save_LIBS=$LIBS
16702 LIBS="-lkvm $LIBS"
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16706 /* Override any GCC internal prototype to avoid an error.
16707 Use char because int might match the return type of a GCC
16708 builtin and then its argument prototype would still apply. */
16709 #ifdef __cplusplus
16710 extern "C"
16711 #endif
16712 char kvm_open ();
16714 main ()
16716 return kvm_open ();
16718 return 0;
16720 _ACEOF
16721 if ac_fn_c_try_link "$LINENO"; then :
16722 ac_cv_lib_kvm_kvm_open=yes
16723 else
16724 ac_cv_lib_kvm_kvm_open=no
16726 rm -f core conftest.err conftest.$ac_objext \
16727 conftest$ac_exeext conftest.$ac_ext
16728 LIBS=$ac_check_lib_save_LIBS
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
16731 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
16732 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
16733 LIBS="-lkvm $LIBS"
16736 # Check for the 4.4BSD definition of getloadavg.
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
16738 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
16739 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
16740 $as_echo_n "(cached) " >&6
16741 else
16742 ac_check_lib_save_LIBS=$LIBS
16743 LIBS="-lutil $LIBS"
16744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745 /* end confdefs.h. */
16747 /* Override any GCC internal prototype to avoid an error.
16748 Use char because int might match the return type of a GCC
16749 builtin and then its argument prototype would still apply. */
16750 #ifdef __cplusplus
16751 extern "C"
16752 #endif
16753 char getloadavg ();
16755 main ()
16757 return getloadavg ();
16759 return 0;
16761 _ACEOF
16762 if ac_fn_c_try_link "$LINENO"; then :
16763 ac_cv_lib_util_getloadavg=yes
16764 else
16765 ac_cv_lib_util_getloadavg=no
16767 rm -f core conftest.err conftest.$ac_objext \
16768 conftest$ac_exeext conftest.$ac_ext
16769 LIBS=$ac_check_lib_save_LIBS
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
16772 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
16773 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
16774 LIBS="-lutil $LIBS" gl_have_func=yes
16779 if test $gl_have_func = no; then
16780 # There is a commonly available library for RS/6000 AIX.
16781 # Since it is not a standard part of AIX, it might be installed locally.
16782 gl_getloadavg_LIBS=$LIBS
16783 LIBS="-L/usr/local/lib $LIBS"
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
16785 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
16786 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
16787 $as_echo_n "(cached) " >&6
16788 else
16789 ac_check_lib_save_LIBS=$LIBS
16790 LIBS="-lgetloadavg $LIBS"
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16797 #ifdef __cplusplus
16798 extern "C"
16799 #endif
16800 char getloadavg ();
16802 main ()
16804 return getloadavg ();
16806 return 0;
16808 _ACEOF
16809 if ac_fn_c_try_link "$LINENO"; then :
16810 ac_cv_lib_getloadavg_getloadavg=yes
16811 else
16812 ac_cv_lib_getloadavg_getloadavg=no
16814 rm -f core conftest.err conftest.$ac_objext \
16815 conftest$ac_exeext conftest.$ac_ext
16816 LIBS=$ac_check_lib_save_LIBS
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16819 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
16820 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
16821 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
16822 else
16823 LIBS=$gl_getloadavg_LIBS
16828 # Set up the replacement function if necessary.
16829 if test $gl_have_func = no; then
16838 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
16841 # Figure out what our getloadavg.c needs.
16843 # Solaris has libkstat which does not require root.
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
16845 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
16846 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
16847 $as_echo_n "(cached) " >&6
16848 else
16849 ac_check_lib_save_LIBS=$LIBS
16850 LIBS="-lkstat $LIBS"
16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852 /* end confdefs.h. */
16854 /* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16857 #ifdef __cplusplus
16858 extern "C"
16859 #endif
16860 char kstat_open ();
16862 main ()
16864 return kstat_open ();
16866 return 0;
16868 _ACEOF
16869 if ac_fn_c_try_link "$LINENO"; then :
16870 ac_cv_lib_kstat_kstat_open=yes
16871 else
16872 ac_cv_lib_kstat_kstat_open=no
16874 rm -f core conftest.err conftest.$ac_objext \
16875 conftest$ac_exeext conftest.$ac_ext
16876 LIBS=$ac_check_lib_save_LIBS
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
16879 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
16880 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
16881 cat >>confdefs.h <<_ACEOF
16882 #define HAVE_LIBKSTAT 1
16883 _ACEOF
16885 LIBS="-lkstat $LIBS"
16889 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
16891 # On HPUX9, an unprivileged user can get load averages this way.
16892 if test $gl_have_func = no; then
16893 for ac_func in pstat_getdynamic
16894 do :
16895 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
16896 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_PSTAT_GETDYNAMIC 1
16899 _ACEOF
16900 gl_have_func=yes
16902 done
16906 # AIX has libperfstat which does not require root
16907 if test $gl_have_func = no; then
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
16909 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
16910 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
16911 $as_echo_n "(cached) " >&6
16912 else
16913 ac_check_lib_save_LIBS=$LIBS
16914 LIBS="-lperfstat $LIBS"
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16918 /* Override any GCC internal prototype to avoid an error.
16919 Use char because int might match the return type of a GCC
16920 builtin and then its argument prototype would still apply. */
16921 #ifdef __cplusplus
16922 extern "C"
16923 #endif
16924 char perfstat_cpu_total ();
16926 main ()
16928 return perfstat_cpu_total ();
16930 return 0;
16932 _ACEOF
16933 if ac_fn_c_try_link "$LINENO"; then :
16934 ac_cv_lib_perfstat_perfstat_cpu_total=yes
16935 else
16936 ac_cv_lib_perfstat_perfstat_cpu_total=no
16938 rm -f core conftest.err conftest.$ac_objext \
16939 conftest$ac_exeext conftest.$ac_ext
16940 LIBS=$ac_check_lib_save_LIBS
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
16943 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
16944 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
16945 cat >>confdefs.h <<_ACEOF
16946 #define HAVE_LIBPERFSTAT 1
16947 _ACEOF
16949 LIBS="-lperfstat $LIBS"
16953 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
16956 if test $gl_have_func = no; then
16957 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
16958 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
16959 gl_have_func=yes
16961 $as_echo "#define DGUX 1" >>confdefs.h
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
16964 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
16965 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
16966 $as_echo_n "(cached) " >&6
16967 else
16968 ac_check_lib_save_LIBS=$LIBS
16969 LIBS="-ldgc $LIBS"
16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16973 /* Override any GCC internal prototype to avoid an error.
16974 Use char because int might match the return type of a GCC
16975 builtin and then its argument prototype would still apply. */
16976 #ifdef __cplusplus
16977 extern "C"
16978 #endif
16979 char dg_sys_info ();
16981 main ()
16983 return dg_sys_info ();
16985 return 0;
16987 _ACEOF
16988 if ac_fn_c_try_link "$LINENO"; then :
16989 ac_cv_lib_dgc_dg_sys_info=yes
16990 else
16991 ac_cv_lib_dgc_dg_sys_info=no
16993 rm -f core conftest.err conftest.$ac_objext \
16994 conftest$ac_exeext conftest.$ac_ext
16995 LIBS=$ac_check_lib_save_LIBS
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16998 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
16999 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
17000 cat >>confdefs.h <<_ACEOF
17001 #define HAVE_LIBDGC 1
17002 _ACEOF
17004 LIBS="-ldgc $LIBS"
17013 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17014 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17015 # Irix 4.0.5F has the header but not the library.
17016 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
17017 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
17018 gl_have_func=yes
17020 $as_echo "#define SVR4 1" >>confdefs.h
17024 if test $gl_have_func = no; then
17025 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
17026 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
17027 gl_have_func=yes
17029 $as_echo "#define UMAX 1" >>confdefs.h
17032 $as_echo "#define UMAX4_3 1" >>confdefs.h
17039 if test $gl_have_func = no; then
17040 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
17041 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
17042 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
17049 if test $gl_have_func = no; then
17050 for ac_header in mach/mach.h
17051 do :
17052 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
17053 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
17054 cat >>confdefs.h <<_ACEOF
17055 #define HAVE_MACH_MACH_H 1
17056 _ACEOF
17060 done
17064 for ac_header in nlist.h
17065 do :
17066 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
17067 if test "x$ac_cv_header_nlist_h" = x""yes; then :
17068 cat >>confdefs.h <<_ACEOF
17069 #define HAVE_NLIST_H 1
17070 _ACEOF
17071 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
17073 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
17075 cat >>confdefs.h <<_ACEOF
17076 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17077 _ACEOF
17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h. */
17084 #include <nlist.h>
17086 main ()
17088 struct nlist x;
17089 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
17090 x.n_un.n_name = "";
17091 #else
17092 x.n_name = "";
17093 #endif
17095 return 0;
17097 _ACEOF
17098 if ac_fn_c_try_link "$LINENO"; then :
17100 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
17103 rm -f core conftest.err conftest.$ac_objext \
17104 conftest$ac_exeext conftest.$ac_ext
17108 done
17114 if test "x$gl_save_LIBS" = x; then
17115 GETLOADAVG_LIBS=$LIBS
17116 else
17117 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
17119 LIBS=$gl_save_LIBS
17122 # Test whether the system declares getloadavg. Solaris has the function
17123 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
17124 for ac_header in sys/loadavg.h
17125 do :
17126 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
17127 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
17128 cat >>confdefs.h <<_ACEOF
17129 #define HAVE_SYS_LOADAVG_H 1
17130 _ACEOF
17134 done
17136 if test $ac_cv_header_sys_loadavg_h = yes; then
17137 HAVE_SYS_LOADAVG_H=1
17138 else
17139 HAVE_SYS_LOADAVG_H=0
17141 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
17142 # include <sys/loadavg.h>
17143 #endif
17144 #include <stdlib.h>
17146 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
17148 else
17149 HAVE_DECL_GETLOADAVG=0
17156 GNULIB_GETLOADAVG=1
17171 if test -n "$gl_replace_getopt"; then :
17175 GETOPT_H=getopt.h
17177 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17181 GNULIB_UNISTD_H_GETOPT=1
17190 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17200 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17225 if test $gl_cv_have_include_next = yes; then
17226 gl_cv_next_inttypes_h='<'inttypes.h'>'
17227 else
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17229 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17230 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17231 $as_echo_n "(cached) " >&6
17232 else
17234 if test $ac_cv_header_inttypes_h = yes; then
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h. */
17239 #include <inttypes.h>
17241 _ACEOF
17242 case "$host_os" in
17243 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17244 *) gl_absname_cpp="$ac_cpp" ;;
17245 esac
17246 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17247 sed -n '\#/inttypes.h#{
17248 s#.*"\(.*/inttypes.h\)".*#\1#
17249 s#^/[^/]#//&#
17252 }'`'"'
17253 else
17254 gl_cv_next_inttypes_h='<'inttypes.h'>'
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17260 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17262 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17264 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17265 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17266 gl_next_as_first_directive='<'inttypes.h'>'
17267 else
17268 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17269 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17271 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17280 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
17289 if test $ac_cv_func_lstat = yes; then
17291 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
17292 REPLACE_LSTAT=1
17294 # Prerequisites of lib/lstat.c.
17296 else
17297 HAVE_LSTAT=0
17303 GNULIB_LSTAT=1
17312 if test $APPLE_UNIVERSAL_BUILD = 1; then
17313 # A universal build on Apple MacOS X platforms.
17314 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
17315 # But we need a configuration result that is valid in both modes.
17316 ac_cv_func_working_mktime=no
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
17319 $as_echo_n "checking for working mktime... " >&6; }
17320 if test "${ac_cv_func_working_mktime+set}" = set; then :
17321 $as_echo_n "(cached) " >&6
17322 else
17323 if test "$cross_compiling" = yes; then :
17324 ac_cv_func_working_mktime=no
17325 else
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328 /* Test program from Paul Eggert and Tony Leneis. */
17329 #include <limits.h>
17330 #include <stdlib.h>
17331 #include <time.h>
17333 #ifdef HAVE_UNISTD_H
17334 # include <unistd.h>
17335 #endif
17337 #ifndef HAVE_ALARM
17338 # define alarm(X) /* empty */
17339 #endif
17341 /* Work around redefinition to rpl_putenv by other config tests. */
17342 #undef putenv
17344 static time_t time_t_max;
17345 static time_t time_t_min;
17347 /* Values we'll use to set the TZ environment variable. */
17348 static char *tz_strings[] = {
17349 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17350 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17352 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17354 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17355 Based on a problem report from Andreas Jaeger. */
17356 static int
17357 spring_forward_gap ()
17359 /* glibc (up to about 1998-10-07) failed this test. */
17360 struct tm tm;
17362 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17363 instead of "TZ=America/Vancouver" in order to detect the bug even
17364 on systems that don't support the Olson extension, or don't have the
17365 full zoneinfo tables installed. */
17366 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17368 tm.tm_year = 98;
17369 tm.tm_mon = 3;
17370 tm.tm_mday = 5;
17371 tm.tm_hour = 2;
17372 tm.tm_min = 0;
17373 tm.tm_sec = 0;
17374 tm.tm_isdst = -1;
17375 return mktime (&tm) != (time_t) -1;
17378 static int
17379 mktime_test1 (time_t now)
17381 struct tm *lt;
17382 return ! (lt = localtime (&now)) || mktime (lt) == now;
17385 static int
17386 mktime_test (time_t now)
17388 return (mktime_test1 (now)
17389 && mktime_test1 ((time_t) (time_t_max - now))
17390 && mktime_test1 ((time_t) (time_t_min + now)));
17393 static int
17394 irix_6_4_bug ()
17396 /* Based on code from Ariel Faigon. */
17397 struct tm tm;
17398 tm.tm_year = 96;
17399 tm.tm_mon = 3;
17400 tm.tm_mday = 0;
17401 tm.tm_hour = 0;
17402 tm.tm_min = 0;
17403 tm.tm_sec = 0;
17404 tm.tm_isdst = -1;
17405 mktime (&tm);
17406 return tm.tm_mon == 2 && tm.tm_mday == 31;
17409 static int
17410 bigtime_test (int j)
17412 struct tm tm;
17413 time_t now;
17414 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17415 now = mktime (&tm);
17416 if (now != (time_t) -1)
17418 struct tm *lt = localtime (&now);
17419 if (! (lt
17420 && lt->tm_year == tm.tm_year
17421 && lt->tm_mon == tm.tm_mon
17422 && lt->tm_mday == tm.tm_mday
17423 && lt->tm_hour == tm.tm_hour
17424 && lt->tm_min == tm.tm_min
17425 && lt->tm_sec == tm.tm_sec
17426 && lt->tm_yday == tm.tm_yday
17427 && lt->tm_wday == tm.tm_wday
17428 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17429 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17430 return 0;
17432 return 1;
17435 static int
17436 year_2050_test ()
17438 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17439 ignoring leap seconds. */
17440 unsigned long int answer = 2527315200UL;
17442 struct tm tm;
17443 time_t t;
17444 tm.tm_year = 2050 - 1900;
17445 tm.tm_mon = 2 - 1;
17446 tm.tm_mday = 1;
17447 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17448 tm.tm_isdst = -1;
17450 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17451 instead of "TZ=America/Vancouver" in order to detect the bug even
17452 on systems that don't support the Olson extension, or don't have the
17453 full zoneinfo tables installed. */
17454 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17456 t = mktime (&tm);
17458 /* Check that the result is either a failure, or close enough
17459 to the correct answer that we can assume the discrepancy is
17460 due to leap seconds. */
17461 return (t == (time_t) -1
17462 || (0 < t && answer - 120 <= t && t <= answer + 120));
17466 main ()
17468 int result = 0;
17469 time_t t, delta;
17470 int i, j;
17471 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
17472 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
17474 /* This test makes some buggy mktime implementations loop.
17475 Give up after 60 seconds; a mktime slower than that
17476 isn't worth using anyway. */
17477 alarm (60);
17479 time_t_max = (! time_t_signed
17480 ? (time_t) -1
17481 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
17482 * 2 + 1));
17483 time_t_min = (! time_t_signed
17484 ? (time_t) 0
17485 : time_t_signed_magnitude
17486 ? ~ (time_t) 0
17487 : ~ time_t_max);
17489 delta = time_t_max / 997; /* a suitable prime number */
17490 for (i = 0; i < N_STRINGS; i++)
17492 if (tz_strings[i])
17493 putenv (tz_strings[i]);
17495 for (t = 0; t <= time_t_max - delta; t += delta)
17496 if (! mktime_test (t))
17497 result |= 1;
17498 if (! (mktime_test ((time_t) 1)
17499 && mktime_test ((time_t) (60 * 60))
17500 && mktime_test ((time_t) (60 * 60 * 24))))
17501 result |= 2;
17503 for (j = 1; ; j <<= 1)
17504 if (! bigtime_test (j))
17505 result |= 4;
17506 else if (INT_MAX / 2 < j)
17507 break;
17508 if (! bigtime_test (INT_MAX))
17509 result |= 8;
17511 if (! irix_6_4_bug ())
17512 result |= 16;
17513 if (! spring_forward_gap ())
17514 result |= 32;
17515 if (! year_2050_test ())
17516 result |= 64;
17517 return result;
17519 _ACEOF
17520 if ac_fn_c_try_run "$LINENO"; then :
17521 ac_cv_func_working_mktime=yes
17522 else
17523 ac_cv_func_working_mktime=no
17525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17526 conftest.$ac_objext conftest.beam conftest.$ac_ext
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
17531 $as_echo "$ac_cv_func_working_mktime" >&6; }
17532 if test $ac_cv_func_working_mktime = no; then
17541 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
17545 if test $ac_cv_func_working_mktime = no; then
17546 REPLACE_MKTIME=1
17550 else
17551 REPLACE_MKTIME=0
17557 GNULIB_MKTIME=1
17565 if test $ac_cv_func_readlink = no; then
17566 HAVE_READLINK=0
17575 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17580 else
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
17582 $as_echo_n "checking whether readlink signature is correct... " >&6; }
17583 if test "${gl_cv_decl_readlink_works+set}" = set; then :
17584 $as_echo_n "(cached) " >&6
17585 else
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17588 #include <unistd.h>
17589 /* Cause compilation failure if original declaration has wrong type. */
17590 ssize_t readlink (const char *, char *, size_t);
17592 main ()
17596 return 0;
17598 _ACEOF
17599 if ac_fn_c_try_compile "$LINENO"; then :
17600 gl_cv_decl_readlink_works=yes
17601 else
17602 gl_cv_decl_readlink_works=no
17604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
17607 $as_echo "$gl_cv_decl_readlink_works" >&6; }
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
17609 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
17610 if test "${gl_cv_func_readlink_works+set}" = set; then :
17611 $as_echo_n "(cached) " >&6
17612 else
17613 # We have readlink, so assume ln -s works.
17614 ln -s conftest.no-such conftest.link
17615 ln -s conftest.link conftest.lnk2
17616 if test "$cross_compiling" = yes; then :
17617 gl_cv_func_readlink_works="guessing no"
17618 else
17619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620 /* end confdefs.h. */
17621 #include <unistd.h>
17624 main ()
17626 char buf[20];
17627 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
17629 return 0;
17631 _ACEOF
17632 if ac_fn_c_try_run "$LINENO"; then :
17633 gl_cv_func_readlink_works=yes
17634 else
17635 gl_cv_func_readlink_works=no
17637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17638 conftest.$ac_objext conftest.beam conftest.$ac_ext
17641 rm -f conftest.link conftest.lnk2
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
17644 $as_echo "$gl_cv_func_readlink_works" >&6; }
17645 if test "$gl_cv_func_readlink_works" != yes; then
17647 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
17649 REPLACE_READLINK=1
17658 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17660 elif test "$gl_cv_decl_readlink_works" != yes; then
17661 REPLACE_READLINK=1
17670 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17678 GNULIB_READLINK=1
17682 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
17683 /* <sys/types.h> is not needed according to POSIX, but the
17684 <sys/socket.h> in i386-unknown-freebsd4.10 and
17685 powerpc-apple-darwin5.5 required it. */
17686 #include <sys/types.h>
17687 #if HAVE_SYS_SOCKET_H
17688 # include <sys/socket.h>
17689 #elif HAVE_WS2TCPIP_H
17690 # include <ws2tcpip.h>
17691 #endif
17694 if test "x$ac_cv_type_socklen_t" = x""yes; then :
17696 else
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17698 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17699 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
17700 $as_echo_n "(cached) " >&6
17701 else
17702 # Systems have either "struct sockaddr *" or
17703 # "void *" as the second argument to getpeername
17704 gl_cv_socklen_t_equiv=
17705 for arg2 in "struct sockaddr" void; do
17706 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17709 #include <sys/types.h>
17710 #include <sys/socket.h>
17712 int getpeername (int, $arg2 *, $t *);
17714 main ()
17716 $t len;
17717 getpeername (0, 0, &len);
17719 return 0;
17721 _ACEOF
17722 if ac_fn_c_try_compile "$LINENO"; then :
17723 gl_cv_socklen_t_equiv="$t"
17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17726 test "$gl_cv_socklen_t_equiv" != "" && break
17727 done
17728 test "$gl_cv_socklen_t_equiv" != "" && break
17729 done
17733 if test "$gl_cv_socklen_t_equiv" = ""; then
17734 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17737 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17739 cat >>confdefs.h <<_ACEOF
17740 #define socklen_t $gl_cv_socklen_t_equiv
17741 _ACEOF
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17747 $as_echo_n "checking for ssize_t... " >&6; }
17748 if test "${gt_cv_ssize_t+set}" = set; then :
17749 $as_echo_n "(cached) " >&6
17750 else
17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752 /* end confdefs.h. */
17753 #include <sys/types.h>
17755 main ()
17757 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17758 return !x;
17760 return 0;
17762 _ACEOF
17763 if ac_fn_c_try_compile "$LINENO"; then :
17764 gt_cv_ssize_t=yes
17765 else
17766 gt_cv_ssize_t=no
17768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17771 $as_echo "$gt_cv_ssize_t" >&6; }
17772 if test $gt_cv_ssize_t = no; then
17774 $as_echo "#define ssize_t int" >>confdefs.h
17779 STDARG_H=''
17780 NEXT_STDARG_H='<stdarg.h>'
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
17782 $as_echo_n "checking for va_copy... " >&6; }
17783 if test "${gl_cv_func_va_copy+set}" = set; then :
17784 $as_echo_n "(cached) " >&6
17785 else
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 #include <stdarg.h>
17791 main ()
17794 #ifndef va_copy
17795 void (*func) (va_list, va_list) = va_copy;
17796 #endif
17799 return 0;
17801 _ACEOF
17802 if ac_fn_c_try_compile "$LINENO"; then :
17803 gl_cv_func_va_copy=yes
17804 else
17805 gl_cv_func_va_copy=no
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
17811 $as_echo "$gl_cv_func_va_copy" >&6; }
17812 if test $gl_cv_func_va_copy = no; then
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17815 #if defined _AIX && !defined __GNUC__
17816 AIX vaccine
17817 #endif
17819 _ACEOF
17820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17821 $EGREP "vaccine" >/dev/null 2>&1; then :
17822 gl_aixcc=yes
17823 else
17824 gl_aixcc=no
17826 rm -f conftest*
17828 if test $gl_aixcc = yes; then
17829 STDARG_H=stdarg.h
17838 if test $gl_cv_have_include_next = yes; then
17839 gl_cv_next_stdarg_h='<'stdarg.h'>'
17840 else
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
17842 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
17843 if test "${gl_cv_next_stdarg_h+set}" = set; then :
17844 $as_echo_n "(cached) " >&6
17845 else
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17849 #include <stdarg.h>
17851 _ACEOF
17852 case "$host_os" in
17853 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17854 *) gl_absname_cpp="$ac_cpp" ;;
17855 esac
17856 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17857 sed -n '\#/stdarg.h#{
17858 s#.*"\(.*/stdarg.h\)".*#\1#
17859 s#^/[^/]#//&#
17862 }'`'"'
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
17867 $as_echo "$gl_cv_next_stdarg_h" >&6; }
17869 NEXT_STDARG_H=$gl_cv_next_stdarg_h
17871 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17872 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17873 gl_next_as_first_directive='<'stdarg.h'>'
17874 else
17875 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17876 gl_next_as_first_directive=$gl_cv_next_stdarg_h
17878 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
17883 if test "$gl_cv_next_stdarg_h" = '""'; then
17884 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
17885 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
17887 else
17889 saved_as_echo_n="$as_echo_n"
17890 as_echo_n=':'
17891 if test "${gl_cv_func___va_copy+set}" = set; then :
17892 $as_echo_n "(cached) " >&6
17893 else
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17897 #include <stdarg.h>
17899 main ()
17902 #ifndef __va_copy
17903 error, bail out
17904 #endif
17907 return 0;
17909 _ACEOF
17910 if ac_fn_c_try_compile "$LINENO"; then :
17911 gl_cv_func___va_copy=yes
17912 else
17913 gl_cv_func___va_copy=no
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918 as_echo_n="$saved_as_echo_n"
17920 if test $gl_cv_func___va_copy = yes; then
17922 $as_echo "#define va_copy __va_copy" >>confdefs.h
17924 else
17927 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
17933 if test -n "$STDARG_H"; then
17934 GL_GENERATE_STDARG_H_TRUE=
17935 GL_GENERATE_STDARG_H_FALSE='#'
17936 else
17937 GL_GENERATE_STDARG_H_TRUE='#'
17938 GL_GENERATE_STDARG_H_FALSE=
17946 # Define two additional variables used in the Makefile substitution.
17948 if test "$ac_cv_header_stdbool_h" = yes; then
17949 STDBOOL_H=''
17950 else
17951 STDBOOL_H='stdbool.h'
17954 if test -n "$STDBOOL_H"; then
17955 GL_GENERATE_STDBOOL_H_TRUE=
17956 GL_GENERATE_STDBOOL_H_FALSE='#'
17957 else
17958 GL_GENERATE_STDBOOL_H_TRUE='#'
17959 GL_GENERATE_STDBOOL_H_FALSE=
17963 if test "$ac_cv_type__Bool" = yes; then
17964 HAVE__BOOL=1
17965 else
17966 HAVE__BOOL=0
17973 STDDEF_H=
17974 if test $gt_cv_c_wchar_t = no; then
17975 HAVE_WCHAR_T=0
17976 STDDEF_H=stddef.h
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17979 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17980 if test "${gl_cv_decl_null_works+set}" = set; then :
17981 $as_echo_n "(cached) " >&6
17982 else
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17985 #include <stddef.h>
17986 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17989 main ()
17993 return 0;
17995 _ACEOF
17996 if ac_fn_c_try_compile "$LINENO"; then :
17997 gl_cv_decl_null_works=yes
17998 else
17999 gl_cv_decl_null_works=no
18001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
18004 $as_echo "$gl_cv_decl_null_works" >&6; }
18005 if test $gl_cv_decl_null_works = no; then
18006 REPLACE_NULL=1
18007 STDDEF_H=stddef.h
18010 if test -n "$STDDEF_H"; then
18011 GL_GENERATE_STDDEF_H_TRUE=
18012 GL_GENERATE_STDDEF_H_FALSE='#'
18013 else
18014 GL_GENERATE_STDDEF_H_TRUE='#'
18015 GL_GENERATE_STDDEF_H_FALSE=
18018 if test -n "$STDDEF_H"; then
18027 if test $gl_cv_have_include_next = yes; then
18028 gl_cv_next_stddef_h='<'stddef.h'>'
18029 else
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
18031 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
18032 if test "${gl_cv_next_stddef_h+set}" = set; then :
18033 $as_echo_n "(cached) " >&6
18034 else
18036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037 /* end confdefs.h. */
18038 #include <stddef.h>
18040 _ACEOF
18041 case "$host_os" in
18042 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18043 *) gl_absname_cpp="$ac_cpp" ;;
18044 esac
18045 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18046 sed -n '\#/stddef.h#{
18047 s#.*"\(.*/stddef.h\)".*#\1#
18048 s#^/[^/]#//&#
18051 }'`'"'
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
18056 $as_echo "$gl_cv_next_stddef_h" >&6; }
18058 NEXT_STDDEF_H=$gl_cv_next_stddef_h
18060 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18061 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18062 gl_next_as_first_directive='<'stddef.h'>'
18063 else
18064 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18065 gl_next_as_first_directive=$gl_cv_next_stddef_h
18067 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
18077 if test $ac_cv_type_long_long_int = yes; then
18078 HAVE_LONG_LONG_INT=1
18079 else
18080 HAVE_LONG_LONG_INT=0
18084 if test $ac_cv_type_unsigned_long_long_int = yes; then
18085 HAVE_UNSIGNED_LONG_LONG_INT=1
18086 else
18087 HAVE_UNSIGNED_LONG_LONG_INT=0
18092 if test $ac_cv_header_wchar_h = yes; then
18093 HAVE_WCHAR_H=1
18094 else
18095 HAVE_WCHAR_H=0
18099 if test $ac_cv_header_inttypes_h = yes; then
18100 HAVE_INTTYPES_H=1
18101 else
18102 HAVE_INTTYPES_H=0
18106 if test $ac_cv_header_sys_types_h = yes; then
18107 HAVE_SYS_TYPES_H=1
18108 else
18109 HAVE_SYS_TYPES_H=0
18122 if test $gl_cv_have_include_next = yes; then
18123 gl_cv_next_stdint_h='<'stdint.h'>'
18124 else
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18126 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18127 if test "${gl_cv_next_stdint_h+set}" = set; then :
18128 $as_echo_n "(cached) " >&6
18129 else
18131 if test $ac_cv_header_stdint_h = yes; then
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136 #include <stdint.h>
18138 _ACEOF
18139 case "$host_os" in
18140 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18141 *) gl_absname_cpp="$ac_cpp" ;;
18142 esac
18143 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18144 sed -n '\#/stdint.h#{
18145 s#.*"\(.*/stdint.h\)".*#\1#
18146 s#^/[^/]#//&#
18149 }'`'"'
18150 else
18151 gl_cv_next_stdint_h='<'stdint.h'>'
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18157 $as_echo "$gl_cv_next_stdint_h" >&6; }
18159 NEXT_STDINT_H=$gl_cv_next_stdint_h
18161 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18162 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18163 gl_next_as_first_directive='<'stdint.h'>'
18164 else
18165 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18166 gl_next_as_first_directive=$gl_cv_next_stdint_h
18168 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18173 if test $ac_cv_header_stdint_h = yes; then
18174 HAVE_STDINT_H=1
18175 else
18176 HAVE_STDINT_H=0
18180 if test $ac_cv_header_stdint_h = yes; then
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18182 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18183 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18184 $as_echo_n "(cached) " >&6
18185 else
18186 gl_cv_header_working_stdint_h=no
18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h. */
18191 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18192 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18193 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18194 #include <stdint.h>
18195 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18196 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18197 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18198 #endif
18201 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18202 included before <wchar.h>. */
18203 #include <stddef.h>
18204 #include <signal.h>
18205 #if HAVE_WCHAR_H
18206 # include <stdio.h>
18207 # include <time.h>
18208 # include <wchar.h>
18209 #endif
18212 #ifdef INT8_MAX
18213 int8_t a1 = INT8_MAX;
18214 int8_t a1min = INT8_MIN;
18215 #endif
18216 #ifdef INT16_MAX
18217 int16_t a2 = INT16_MAX;
18218 int16_t a2min = INT16_MIN;
18219 #endif
18220 #ifdef INT32_MAX
18221 int32_t a3 = INT32_MAX;
18222 int32_t a3min = INT32_MIN;
18223 #endif
18224 #ifdef INT64_MAX
18225 int64_t a4 = INT64_MAX;
18226 int64_t a4min = INT64_MIN;
18227 #endif
18228 #ifdef UINT8_MAX
18229 uint8_t b1 = UINT8_MAX;
18230 #else
18231 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18232 #endif
18233 #ifdef UINT16_MAX
18234 uint16_t b2 = UINT16_MAX;
18235 #endif
18236 #ifdef UINT32_MAX
18237 uint32_t b3 = UINT32_MAX;
18238 #endif
18239 #ifdef UINT64_MAX
18240 uint64_t b4 = UINT64_MAX;
18241 #endif
18242 int_least8_t c1 = INT8_C (0x7f);
18243 int_least8_t c1max = INT_LEAST8_MAX;
18244 int_least8_t c1min = INT_LEAST8_MIN;
18245 int_least16_t c2 = INT16_C (0x7fff);
18246 int_least16_t c2max = INT_LEAST16_MAX;
18247 int_least16_t c2min = INT_LEAST16_MIN;
18248 int_least32_t c3 = INT32_C (0x7fffffff);
18249 int_least32_t c3max = INT_LEAST32_MAX;
18250 int_least32_t c3min = INT_LEAST32_MIN;
18251 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18252 int_least64_t c4max = INT_LEAST64_MAX;
18253 int_least64_t c4min = INT_LEAST64_MIN;
18254 uint_least8_t d1 = UINT8_C (0xff);
18255 uint_least8_t d1max = UINT_LEAST8_MAX;
18256 uint_least16_t d2 = UINT16_C (0xffff);
18257 uint_least16_t d2max = UINT_LEAST16_MAX;
18258 uint_least32_t d3 = UINT32_C (0xffffffff);
18259 uint_least32_t d3max = UINT_LEAST32_MAX;
18260 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18261 uint_least64_t d4max = UINT_LEAST64_MAX;
18262 int_fast8_t e1 = INT_FAST8_MAX;
18263 int_fast8_t e1min = INT_FAST8_MIN;
18264 int_fast16_t e2 = INT_FAST16_MAX;
18265 int_fast16_t e2min = INT_FAST16_MIN;
18266 int_fast32_t e3 = INT_FAST32_MAX;
18267 int_fast32_t e3min = INT_FAST32_MIN;
18268 int_fast64_t e4 = INT_FAST64_MAX;
18269 int_fast64_t e4min = INT_FAST64_MIN;
18270 uint_fast8_t f1 = UINT_FAST8_MAX;
18271 uint_fast16_t f2 = UINT_FAST16_MAX;
18272 uint_fast32_t f3 = UINT_FAST32_MAX;
18273 uint_fast64_t f4 = UINT_FAST64_MAX;
18274 #ifdef INTPTR_MAX
18275 intptr_t g = INTPTR_MAX;
18276 intptr_t gmin = INTPTR_MIN;
18277 #endif
18278 #ifdef UINTPTR_MAX
18279 uintptr_t h = UINTPTR_MAX;
18280 #endif
18281 intmax_t i = INTMAX_MAX;
18282 uintmax_t j = UINTMAX_MAX;
18284 #include <limits.h> /* for CHAR_BIT */
18285 #define TYPE_MINIMUM(t) \
18286 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18287 #define TYPE_MAXIMUM(t) \
18288 ((t) ((t) 0 < (t) -1 \
18289 ? (t) -1 \
18290 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18291 struct s {
18292 int check_PTRDIFF:
18293 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18294 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18295 ? 1 : -1;
18296 /* Detect bug in FreeBSD 6.0 / ia64. */
18297 int check_SIG_ATOMIC:
18298 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18299 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18300 ? 1 : -1;
18301 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18302 int check_WCHAR:
18303 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18304 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18305 ? 1 : -1;
18306 /* Detect bug in mingw. */
18307 int check_WINT:
18308 WINT_MIN == TYPE_MINIMUM (wint_t)
18309 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18310 ? 1 : -1;
18312 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18313 int check_UINT8_C:
18314 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18315 int check_UINT16_C:
18316 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18318 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18319 #ifdef UINT8_MAX
18320 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18321 #endif
18322 #ifdef UINT16_MAX
18323 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18324 #endif
18325 #ifdef UINT32_MAX
18326 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18327 #endif
18328 #ifdef UINT64_MAX
18329 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18330 #endif
18331 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18332 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18333 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18334 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18335 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18336 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18337 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18338 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18339 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18340 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18341 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18345 main ()
18349 return 0;
18351 _ACEOF
18352 if ac_fn_c_try_compile "$LINENO"; then :
18353 if test "$cross_compiling" = yes; then :
18354 gl_cv_header_working_stdint_h=yes
18356 else
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18361 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18362 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18363 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18364 #include <stdint.h>
18367 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18368 included before <wchar.h>. */
18369 #include <stddef.h>
18370 #include <signal.h>
18371 #if HAVE_WCHAR_H
18372 # include <stdio.h>
18373 # include <time.h>
18374 # include <wchar.h>
18375 #endif
18378 #include <stdio.h>
18379 #include <string.h>
18380 #define MVAL(macro) MVAL1(macro)
18381 #define MVAL1(expression) #expression
18382 static const char *macro_values[] =
18384 #ifdef INT8_MAX
18385 MVAL (INT8_MAX),
18386 #endif
18387 #ifdef INT16_MAX
18388 MVAL (INT16_MAX),
18389 #endif
18390 #ifdef INT32_MAX
18391 MVAL (INT32_MAX),
18392 #endif
18393 #ifdef INT64_MAX
18394 MVAL (INT64_MAX),
18395 #endif
18396 #ifdef UINT8_MAX
18397 MVAL (UINT8_MAX),
18398 #endif
18399 #ifdef UINT16_MAX
18400 MVAL (UINT16_MAX),
18401 #endif
18402 #ifdef UINT32_MAX
18403 MVAL (UINT32_MAX),
18404 #endif
18405 #ifdef UINT64_MAX
18406 MVAL (UINT64_MAX),
18407 #endif
18408 NULL
18412 main ()
18415 const char **mv;
18416 for (mv = macro_values; *mv != NULL; mv++)
18418 const char *value = *mv;
18419 /* Test whether it looks like a cast expression. */
18420 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18421 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18422 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18423 || strncmp (value, "((int)"/*)*/, 6) == 0
18424 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18425 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18426 return mv - macro_values + 1;
18428 return 0;
18431 return 0;
18433 _ACEOF
18434 if ac_fn_c_try_run "$LINENO"; then :
18435 gl_cv_header_working_stdint_h=yes
18437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18438 conftest.$ac_objext conftest.beam conftest.$ac_ext
18443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18447 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18449 if test "$gl_cv_header_working_stdint_h" = yes; then
18450 STDINT_H=
18451 else
18452 for ac_header in sys/inttypes.h sys/bitypes.h
18453 do :
18454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18455 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18456 eval as_val=\$$as_ac_Header
18457 if test "x$as_val" = x""yes; then :
18458 cat >>confdefs.h <<_ACEOF
18459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18460 _ACEOF
18464 done
18466 if test $ac_cv_header_sys_inttypes_h = yes; then
18467 HAVE_SYS_INTTYPES_H=1
18468 else
18469 HAVE_SYS_INTTYPES_H=0
18472 if test $ac_cv_header_sys_bitypes_h = yes; then
18473 HAVE_SYS_BITYPES_H=1
18474 else
18475 HAVE_SYS_BITYPES_H=0
18481 if test $APPLE_UNIVERSAL_BUILD = 0; then
18484 for gltype in ptrdiff_t size_t ; do
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18486 $as_echo_n "checking for bit size of $gltype... " >&6; }
18487 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18488 $as_echo_n "(cached) " >&6
18489 else
18490 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18491 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18492 included before <wchar.h>. */
18493 #include <stddef.h>
18494 #include <signal.h>
18495 #if HAVE_WCHAR_H
18496 # include <stdio.h>
18497 # include <time.h>
18498 # include <wchar.h>
18499 #endif
18501 #include <limits.h>"; then :
18503 else
18504 result=unknown
18507 eval gl_cv_bitsizeof_${gltype}=\$result
18510 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18512 $as_echo "$ac_res" >&6; }
18513 eval result=\$gl_cv_bitsizeof_${gltype}
18514 if test $result = unknown; then
18515 result=0
18517 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18518 cat >>confdefs.h <<_ACEOF
18519 #define BITSIZEOF_${GLTYPE} $result
18520 _ACEOF
18522 eval BITSIZEOF_${GLTYPE}=\$result
18523 done
18529 for gltype in sig_atomic_t wchar_t wint_t ; do
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18531 $as_echo_n "checking for bit size of $gltype... " >&6; }
18532 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18533 $as_echo_n "(cached) " >&6
18534 else
18535 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18536 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18537 included before <wchar.h>. */
18538 #include <stddef.h>
18539 #include <signal.h>
18540 #if HAVE_WCHAR_H
18541 # include <stdio.h>
18542 # include <time.h>
18543 # include <wchar.h>
18544 #endif
18546 #include <limits.h>"; then :
18548 else
18549 result=unknown
18552 eval gl_cv_bitsizeof_${gltype}=\$result
18555 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18557 $as_echo "$ac_res" >&6; }
18558 eval result=\$gl_cv_bitsizeof_${gltype}
18559 if test $result = unknown; then
18560 result=0
18562 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18563 cat >>confdefs.h <<_ACEOF
18564 #define BITSIZEOF_${GLTYPE} $result
18565 _ACEOF
18567 eval BITSIZEOF_${GLTYPE}=\$result
18568 done
18573 for gltype in sig_atomic_t wchar_t wint_t ; do
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18575 $as_echo_n "checking whether $gltype is signed... " >&6; }
18576 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18577 $as_echo_n "(cached) " >&6
18578 else
18579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18582 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18583 included before <wchar.h>. */
18584 #include <stddef.h>
18585 #include <signal.h>
18586 #if HAVE_WCHAR_H
18587 # include <stdio.h>
18588 # include <time.h>
18589 # include <wchar.h>
18590 #endif
18592 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18594 main ()
18598 return 0;
18600 _ACEOF
18601 if ac_fn_c_try_compile "$LINENO"; then :
18602 result=yes
18603 else
18604 result=no
18606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18607 eval gl_cv_type_${gltype}_signed=\$result
18610 eval ac_res=\$gl_cv_type_${gltype}_signed
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18612 $as_echo "$ac_res" >&6; }
18613 eval result=\$gl_cv_type_${gltype}_signed
18614 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18615 if test "$result" = yes; then
18616 cat >>confdefs.h <<_ACEOF
18617 #define HAVE_SIGNED_${GLTYPE} 1
18618 _ACEOF
18620 eval HAVE_SIGNED_${GLTYPE}=1
18621 else
18622 eval HAVE_SIGNED_${GLTYPE}=0
18624 done
18627 gl_cv_type_ptrdiff_t_signed=yes
18628 gl_cv_type_size_t_signed=no
18629 if test $APPLE_UNIVERSAL_BUILD = 0; then
18632 for gltype in ptrdiff_t size_t ; do
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18634 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18635 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18636 $as_echo_n "(cached) " >&6
18637 else
18638 eval gl_cv_type_${gltype}_suffix=no
18639 eval result=\$gl_cv_type_${gltype}_signed
18640 if test "$result" = yes; then
18641 glsufu=
18642 else
18643 glsufu=u
18645 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18646 case $glsuf in
18647 '') gltype1='int';;
18648 l) gltype1='long int';;
18649 ll) gltype1='long long int';;
18650 i64) gltype1='__int64';;
18651 u) gltype1='unsigned int';;
18652 ul) gltype1='unsigned long int';;
18653 ull) gltype1='unsigned long long int';;
18654 ui64)gltype1='unsigned __int64';;
18655 esac
18656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18657 /* end confdefs.h. */
18659 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18660 included before <wchar.h>. */
18661 #include <stddef.h>
18662 #include <signal.h>
18663 #if HAVE_WCHAR_H
18664 # include <stdio.h>
18665 # include <time.h>
18666 # include <wchar.h>
18667 #endif
18669 extern $gltype foo;
18670 extern $gltype1 foo;
18672 main ()
18676 return 0;
18678 _ACEOF
18679 if ac_fn_c_try_compile "$LINENO"; then :
18680 eval gl_cv_type_${gltype}_suffix=\$glsuf
18682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18683 eval result=\$gl_cv_type_${gltype}_suffix
18684 test "$result" != no && break
18685 done
18687 eval ac_res=\$gl_cv_type_${gltype}_suffix
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18689 $as_echo "$ac_res" >&6; }
18690 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18691 eval result=\$gl_cv_type_${gltype}_suffix
18692 test "$result" = no && result=
18693 eval ${GLTYPE}_SUFFIX=\$result
18694 cat >>confdefs.h <<_ACEOF
18695 #define ${GLTYPE}_SUFFIX $result
18696 _ACEOF
18698 done
18704 for gltype in sig_atomic_t wchar_t wint_t ; do
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18706 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18707 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18708 $as_echo_n "(cached) " >&6
18709 else
18710 eval gl_cv_type_${gltype}_suffix=no
18711 eval result=\$gl_cv_type_${gltype}_signed
18712 if test "$result" = yes; then
18713 glsufu=
18714 else
18715 glsufu=u
18717 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18718 case $glsuf in
18719 '') gltype1='int';;
18720 l) gltype1='long int';;
18721 ll) gltype1='long long int';;
18722 i64) gltype1='__int64';;
18723 u) gltype1='unsigned int';;
18724 ul) gltype1='unsigned long int';;
18725 ull) gltype1='unsigned long long int';;
18726 ui64)gltype1='unsigned __int64';;
18727 esac
18728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729 /* end confdefs.h. */
18731 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18732 included before <wchar.h>. */
18733 #include <stddef.h>
18734 #include <signal.h>
18735 #if HAVE_WCHAR_H
18736 # include <stdio.h>
18737 # include <time.h>
18738 # include <wchar.h>
18739 #endif
18741 extern $gltype foo;
18742 extern $gltype1 foo;
18744 main ()
18748 return 0;
18750 _ACEOF
18751 if ac_fn_c_try_compile "$LINENO"; then :
18752 eval gl_cv_type_${gltype}_suffix=\$glsuf
18754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18755 eval result=\$gl_cv_type_${gltype}_suffix
18756 test "$result" != no && break
18757 done
18759 eval ac_res=\$gl_cv_type_${gltype}_suffix
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18761 $as_echo "$ac_res" >&6; }
18762 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18763 eval result=\$gl_cv_type_${gltype}_suffix
18764 test "$result" = no && result=
18765 eval ${GLTYPE}_SUFFIX=\$result
18766 cat >>confdefs.h <<_ACEOF
18767 #define ${GLTYPE}_SUFFIX $result
18768 _ACEOF
18770 done
18774 STDINT_H=stdint.h
18777 if test -n "$STDINT_H"; then
18778 GL_GENERATE_STDINT_H_TRUE=
18779 GL_GENERATE_STDINT_H_FALSE='#'
18780 else
18781 GL_GENERATE_STDINT_H_TRUE='#'
18782 GL_GENERATE_STDINT_H_FALSE=
18797 if test $gl_cv_have_include_next = yes; then
18798 gl_cv_next_stdio_h='<'stdio.h'>'
18799 else
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18801 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18802 if test "${gl_cv_next_stdio_h+set}" = set; then :
18803 $as_echo_n "(cached) " >&6
18804 else
18806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807 /* end confdefs.h. */
18808 #include <stdio.h>
18810 _ACEOF
18811 case "$host_os" in
18812 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18813 *) gl_absname_cpp="$ac_cpp" ;;
18814 esac
18815 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18816 sed -n '\#/stdio.h#{
18817 s#.*"\(.*/stdio.h\)".*#\1#
18818 s#^/[^/]#//&#
18821 }'`'"'
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18826 $as_echo "$gl_cv_next_stdio_h" >&6; }
18828 NEXT_STDIO_H=$gl_cv_next_stdio_h
18830 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18832 gl_next_as_first_directive='<'stdio.h'>'
18833 else
18834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18835 gl_next_as_first_directive=$gl_cv_next_stdio_h
18837 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18843 GNULIB_FSCANF=1
18844 GNULIB_SCANF=1
18845 GNULIB_FGETC=1
18846 GNULIB_GETC=1
18847 GNULIB_GETCHAR=1
18848 GNULIB_FGETS=1
18849 GNULIB_GETS=1
18850 GNULIB_FREAD=1
18853 GNULIB_FPRINTF=1
18854 GNULIB_PRINTF=1
18855 GNULIB_VFPRINTF=1
18856 GNULIB_VPRINTF=1
18857 GNULIB_FPUTC=1
18858 GNULIB_PUTC=1
18859 GNULIB_PUTCHAR=1
18860 GNULIB_FPUTS=1
18861 GNULIB_PUTS=1
18862 GNULIB_FWRITE=1
18878 if test $gl_cv_have_include_next = yes; then
18879 gl_cv_next_stdlib_h='<'stdlib.h'>'
18880 else
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18882 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18883 if test "${gl_cv_next_stdlib_h+set}" = set; then :
18884 $as_echo_n "(cached) " >&6
18885 else
18887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h. */
18889 #include <stdlib.h>
18891 _ACEOF
18892 case "$host_os" in
18893 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18894 *) gl_absname_cpp="$ac_cpp" ;;
18895 esac
18896 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18897 sed -n '\#/stdlib.h#{
18898 s#.*"\(.*/stdlib.h\)".*#\1#
18899 s#^/[^/]#//&#
18902 }'`'"'
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18907 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18909 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18911 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18912 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18913 gl_next_as_first_directive='<'stdlib.h'>'
18914 else
18915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18916 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18918 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18936 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
18939 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
18947 $as_echo "#define my_strftime nstrftime" >>confdefs.h
18955 if test "$ac_cv_have_decl_strtoumax" != yes; then
18956 HAVE_DECL_STRTOUMAX=0
18966 for ac_func in strtoumax
18967 do :
18968 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
18969 if test "x$ac_cv_func_strtoumax" = x""yes; then :
18970 cat >>confdefs.h <<_ACEOF
18971 #define HAVE_STRTOUMAX 1
18972 _ACEOF
18974 else
18976 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18979 done
18982 if test $ac_cv_func_strtoumax = no; then
18984 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
18985 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
18986 ac_have_decl=1
18987 else
18988 ac_have_decl=0
18991 cat >>confdefs.h <<_ACEOF
18992 #define HAVE_DECL_STRTOULL $ac_have_decl
18993 _ACEOF
19003 GNULIB_STRTOUMAX=1
19009 if test $ac_cv_func_symlink = no; then
19010 HAVE_SYMLINK=0
19019 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
19021 else
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
19023 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
19024 if test "${gl_cv_func_symlink_works+set}" = set; then :
19025 $as_echo_n "(cached) " >&6
19026 else
19027 if test "$cross_compiling" = yes; then :
19028 gl_cv_func_symlink_works="guessing no"
19029 else
19030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19031 /* end confdefs.h. */
19032 #include <unistd.h>
19035 main ()
19037 int result = 0;
19038 if (!symlink ("a", "conftest.link/"))
19039 result |= 1;
19040 if (symlink ("conftest.f", "conftest.lnk2"))
19041 result |= 2;
19042 else if (!symlink ("a", "conftest.lnk2/"))
19043 result |= 4;
19044 return result;
19047 return 0;
19049 _ACEOF
19050 if ac_fn_c_try_run "$LINENO"; then :
19051 gl_cv_func_symlink_works=yes
19052 else
19053 gl_cv_func_symlink_works=no
19055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19056 conftest.$ac_objext conftest.beam conftest.$ac_ext
19059 rm -f conftest.f conftest.link conftest.lnk2
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
19062 $as_echo "$gl_cv_func_symlink_works" >&6; }
19063 if test "$gl_cv_func_symlink_works" != yes; then
19064 REPLACE_SYMLINK=1
19073 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
19081 GNULIB_SYMLINK=1
19101 if test $gl_cv_have_include_next = yes; then
19102 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
19103 else
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
19105 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
19106 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
19107 $as_echo_n "(cached) " >&6
19108 else
19110 if test $ac_cv_header_sys_stat_h = yes; then
19113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h. */
19115 #include <sys/stat.h>
19117 _ACEOF
19118 case "$host_os" in
19119 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19120 *) gl_absname_cpp="$ac_cpp" ;;
19121 esac
19122 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19123 sed -n '\#/sys/stat.h#{
19124 s#.*"\(.*/sys/stat.h\)".*#\1#
19125 s#^/[^/]#//&#
19128 }'`'"'
19129 else
19130 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
19136 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
19138 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
19140 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19142 gl_next_as_first_directive='<'sys/stat.h'>'
19143 else
19144 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19145 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
19147 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
19153 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
19154 #include <sys/stat.h>
19156 if test "x$ac_cv_type_nlink_t" = x""yes; then :
19158 else
19160 $as_echo "#define nlink_t int" >>confdefs.h
19178 if test $ac_cv_have_decl_localtime_r = no; then
19179 HAVE_DECL_LOCALTIME_R=0
19183 if test $ac_cv_func_localtime_r = yes; then
19184 HAVE_LOCALTIME_R=1
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
19186 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
19187 if test "${gl_cv_time_r_posix+set}" = set; then :
19188 $as_echo_n "(cached) " >&6
19189 else
19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19192 #include <time.h>
19194 main ()
19196 /* We don't need to append 'restrict's to the argument types,
19197 even though the POSIX signature has the 'restrict's,
19198 since C99 says they can't affect type compatibility. */
19199 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
19200 if (ptr) return 0;
19201 /* Check the return type is a pointer.
19202 On HP-UX 10 it is 'int'. */
19203 *localtime_r (0, 0);
19205 return 0;
19208 _ACEOF
19209 if ac_fn_c_try_compile "$LINENO"; then :
19210 gl_cv_time_r_posix=yes
19211 else
19212 gl_cv_time_r_posix=no
19214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
19218 $as_echo "$gl_cv_time_r_posix" >&6; }
19219 if test $gl_cv_time_r_posix = yes; then
19220 REPLACE_LOCALTIME_R=0
19221 else
19222 REPLACE_LOCALTIME_R=1
19224 else
19225 HAVE_LOCALTIME_R=0
19227 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
19236 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
19246 GNULIB_TIME_R=1
19263 if test $gl_cv_have_include_next = yes; then
19264 gl_cv_next_unistd_h='<'unistd.h'>'
19265 else
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
19267 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
19268 if test "${gl_cv_next_unistd_h+set}" = set; then :
19269 $as_echo_n "(cached) " >&6
19270 else
19272 if test $ac_cv_header_unistd_h = yes; then
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19277 #include <unistd.h>
19279 _ACEOF
19280 case "$host_os" in
19281 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19282 *) gl_absname_cpp="$ac_cpp" ;;
19283 esac
19284 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19285 sed -n '\#/unistd.h#{
19286 s#.*"\(.*/unistd.h\)".*#\1#
19287 s#^/[^/]#//&#
19290 }'`'"'
19291 else
19292 gl_cv_next_unistd_h='<'unistd.h'>'
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
19298 $as_echo "$gl_cv_next_unistd_h" >&6; }
19300 NEXT_UNISTD_H=$gl_cv_next_unistd_h
19302 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19304 gl_next_as_first_directive='<'unistd.h'>'
19305 else
19306 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19307 gl_next_as_first_directive=$gl_cv_next_unistd_h
19309 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
19314 if test $ac_cv_header_unistd_h = yes; then
19315 HAVE_UNISTD_H=1
19316 else
19317 HAVE_UNISTD_H=0
19323 gl_gnulib_enabled_dosname=false
19324 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
19325 gl_gnulib_enabled_stat=false
19326 gl_gnulib_enabled_strtoull=false
19327 gl_gnulib_enabled_verify=false
19328 func_gl_gnulib_m4code_dosname ()
19330 if ! $gl_gnulib_enabled_dosname; then
19331 gl_gnulib_enabled_dosname=true
19334 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
19336 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
19339 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
19342 func_gl_gnulib_m4code_stat ()
19344 if ! $gl_gnulib_enabled_stat; then
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
19349 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
19350 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
19351 $as_echo_n "(cached) " >&6
19352 else
19353 if test "$cross_compiling" = yes; then :
19354 case $host_os in
19355 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
19356 *) gl_cv_func_stat_dir_slash="guessing yes";;
19357 esac
19358 else
19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h. */
19361 #include <sys/stat.h>
19364 main ()
19366 struct stat st; return stat (".", &st) != stat ("./", &st);
19368 return 0;
19370 _ACEOF
19371 if ac_fn_c_try_run "$LINENO"; then :
19372 gl_cv_func_stat_dir_slash=yes
19373 else
19374 gl_cv_func_stat_dir_slash=no
19376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19377 conftest.$ac_objext conftest.beam conftest.$ac_ext
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
19382 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
19384 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
19385 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
19386 $as_echo_n "(cached) " >&6
19387 else
19388 touch conftest.tmp
19389 # Assume that if we have lstat, we can also check symlinks.
19390 if test $ac_cv_func_lstat = yes; then
19391 ln -s conftest.tmp conftest.lnk
19393 if test "$cross_compiling" = yes; then :
19394 gl_cv_func_stat_file_slash="guessing no"
19395 else
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h. */
19398 #include <sys/stat.h>
19401 main ()
19403 int result = 0;
19404 struct stat st;
19405 if (!stat ("conftest.tmp/", &st))
19406 result |= 1;
19407 #if HAVE_LSTAT
19408 if (!stat ("conftest.lnk/", &st))
19409 result |= 2;
19410 #endif
19411 return result;
19414 return 0;
19416 _ACEOF
19417 if ac_fn_c_try_run "$LINENO"; then :
19418 gl_cv_func_stat_file_slash=yes
19419 else
19420 gl_cv_func_stat_file_slash=no
19422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19423 conftest.$ac_objext conftest.beam conftest.$ac_ext
19426 rm -f conftest.tmp conftest.lnk
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
19429 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
19430 case $gl_cv_func_stat_dir_slash in
19431 *no) REPLACE_STAT=1
19433 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
19435 esac
19436 case $gl_cv_func_stat_file_slash in
19437 *no) REPLACE_STAT=1
19439 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
19441 esac
19442 if test $REPLACE_STAT = 1; then
19451 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
19459 GNULIB_STAT=1
19463 gl_gnulib_enabled_stat=true
19464 if $condition; then
19465 func_gl_gnulib_m4code_dosname
19469 func_gl_gnulib_m4code_strtoull ()
19471 if ! $gl_gnulib_enabled_strtoull; then
19475 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
19484 for ac_func in strtoull
19485 do :
19486 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
19487 if test "x$ac_cv_func_strtoull" = x""yes; then :
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_STRTOULL 1
19490 _ACEOF
19492 else
19494 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19497 done
19500 if test $ac_cv_func_strtoull = no; then
19501 HAVE_STRTOULL=0
19511 GNULIB_STRTOULL=1
19515 gl_gnulib_enabled_strtoull=true
19518 func_gl_gnulib_m4code_verify ()
19520 if ! $gl_gnulib_enabled_verify; then
19521 gl_gnulib_enabled_verify=true
19524 if test $GNULIB_UNISTD_H_GETOPT = 1; then
19525 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
19527 if test $REPLACE_LSTAT = 1; then
19528 func_gl_gnulib_m4code_dosname
19530 if test $REPLACE_LSTAT = 1; then
19531 func_gl_gnulib_m4code_stat
19533 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19534 func_gl_gnulib_m4code_stat
19536 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
19537 func_gl_gnulib_m4code_verify
19539 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
19540 func_gl_gnulib_m4code_strtoull
19543 if $gl_gnulib_enabled_dosname; then
19544 gl_GNULIB_ENABLED_dosname_TRUE=
19545 gl_GNULIB_ENABLED_dosname_FALSE='#'
19546 else
19547 gl_GNULIB_ENABLED_dosname_TRUE='#'
19548 gl_GNULIB_ENABLED_dosname_FALSE=
19551 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
19552 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
19553 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
19554 else
19555 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
19556 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
19559 if $gl_gnulib_enabled_stat; then
19560 gl_GNULIB_ENABLED_stat_TRUE=
19561 gl_GNULIB_ENABLED_stat_FALSE='#'
19562 else
19563 gl_GNULIB_ENABLED_stat_TRUE='#'
19564 gl_GNULIB_ENABLED_stat_FALSE=
19567 if $gl_gnulib_enabled_strtoull; then
19568 gl_GNULIB_ENABLED_strtoull_TRUE=
19569 gl_GNULIB_ENABLED_strtoull_FALSE='#'
19570 else
19571 gl_GNULIB_ENABLED_strtoull_TRUE='#'
19572 gl_GNULIB_ENABLED_strtoull_FALSE=
19575 if $gl_gnulib_enabled_verify; then
19576 gl_GNULIB_ENABLED_verify_TRUE=
19577 gl_GNULIB_ENABLED_verify_FALSE='#'
19578 else
19579 gl_GNULIB_ENABLED_verify_TRUE='#'
19580 gl_GNULIB_ENABLED_verify_FALSE=
19583 # End of code from modules
19593 gltests_libdeps=
19594 gltests_ltlibdeps=
19604 gl_source_base='tests'
19605 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
19607 gl_module_indicator_condition=$gltests_WITNESS
19618 LIBGNU_LIBDEPS="$gl_libdeps"
19620 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19624 # UNIX98 PTYs.
19625 for ac_func in grantpt
19626 do :
19627 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
19628 if test "x$ac_cv_func_grantpt" = x""yes; then :
19629 cat >>confdefs.h <<_ACEOF
19630 #define HAVE_GRANTPT 1
19631 _ACEOF
19634 done
19637 # PTY-related GNU extensions.
19638 for ac_func in getpt
19639 do :
19640 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
19641 if test "x$ac_cv_func_getpt" = x""yes; then :
19642 cat >>confdefs.h <<_ACEOF
19643 #define HAVE_GETPT 1
19644 _ACEOF
19647 done
19650 # Check this now, so that we will NOT find the above functions in ncurses.
19651 # That is because we have not set up to link ncurses in lib-src.
19652 # It's better to believe a function is not available
19653 # than to expect to find it in ncurses.
19654 # Also we need tputs and friends to be able to build at all.
19655 have_tputs_et_al=true
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
19657 $as_echo_n "checking for library containing tputs... " >&6; }
19658 if test "${ac_cv_search_tputs+set}" = set; then :
19659 $as_echo_n "(cached) " >&6
19660 else
19661 ac_func_search_save_LIBS=$LIBS
19662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663 /* end confdefs.h. */
19665 /* Override any GCC internal prototype to avoid an error.
19666 Use char because int might match the return type of a GCC
19667 builtin and then its argument prototype would still apply. */
19668 #ifdef __cplusplus
19669 extern "C"
19670 #endif
19671 char tputs ();
19673 main ()
19675 return tputs ();
19677 return 0;
19679 _ACEOF
19680 for ac_lib in '' ncurses terminfo termcap; do
19681 if test -z "$ac_lib"; then
19682 ac_res="none required"
19683 else
19684 ac_res=-l$ac_lib
19685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19687 if ac_fn_c_try_link "$LINENO"; then :
19688 ac_cv_search_tputs=$ac_res
19690 rm -f core conftest.err conftest.$ac_objext \
19691 conftest$ac_exeext
19692 if test "${ac_cv_search_tputs+set}" = set; then :
19693 break
19695 done
19696 if test "${ac_cv_search_tputs+set}" = set; then :
19698 else
19699 ac_cv_search_tputs=no
19701 rm conftest.$ac_ext
19702 LIBS=$ac_func_search_save_LIBS
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
19705 $as_echo "$ac_cv_search_tputs" >&6; }
19706 ac_res=$ac_cv_search_tputs
19707 if test "$ac_res" != no; then :
19708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19710 else
19711 have_tputs_et_al=false
19714 if test "$have_tputs_et_al" != true; then
19715 as_fn_error "I couldn't find termcap functions (tputs and friends).
19716 Maybe some development libraries/packages are missing? Try installing
19717 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
19719 # Must define this when any termcap library is found.
19721 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
19723 ## FIXME This was the cpp logic, but I am not sure it is right.
19724 ## The above test has not necessarily found libncurses.
19725 HAVE_LIBNCURSES=yes
19727 ## Use terminfo instead of termcap?
19728 ## Note only system files NOT using terminfo are:
19729 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
19730 ## darwin|gnu without ncurses.
19731 TERMINFO=no
19732 LIBS_TERMCAP=
19733 case "$opsys" in
19734 ## cygwin: Fewer environment variables to go wrong, more terminal types.
19735 ## hpux10-20: Use the system provided termcap(3) library.
19736 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
19737 ## is necessary. Otherwise Emacs dumps core when run -nw.
19738 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
19740 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
19741 ## The ncurses library has been moved out of the System framework in
19742 ## Mac OS X 10.2. So if configure detects it, set the command-line
19743 ## option to use it.
19744 darwin|gnu*)
19745 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
19746 if test "x$HAVE_LIBNCURSES" = "xyes"; then
19747 TERMINFO=yes
19748 LIBS_TERMCAP="-lncurses"
19752 freebsd)
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
19754 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
19755 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
19756 $as_echo_n "(cached) " >&6
19757 else
19758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19759 /* end confdefs.h. */
19760 #include <osreldate.h>
19762 main ()
19764 #if __FreeBSD_version < 400000
19765 fail;
19766 #endif
19769 return 0;
19771 _ACEOF
19772 if ac_fn_c_try_link "$LINENO"; then :
19773 emacs_cv_freebsd_terminfo=yes
19774 else
19775 emacs_cv_freebsd_terminfo=no
19777 rm -f core conftest.err conftest.$ac_objext \
19778 conftest$ac_exeext conftest.$ac_ext
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
19783 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
19785 if test $emacs_cv_freebsd_terminfo = yes; then
19786 TERMINFO=yes
19787 LIBS_TERMCAP="-lncurses"
19788 else
19789 LIBS_TERMCAP="-ltermcap"
19793 netbsd)
19794 if test $ac_cv_search_tputs = -lterminfo; then
19795 TERMINFO=yes
19796 LIBS_TERMCAP="-lterminfo"
19797 else
19798 LIBS_TERMCAP="-ltermcap"
19802 esac
19804 case "$opsys" in
19805 ## hpux: Make sure we get select from libc rather than from libcurses
19806 ## because libcurses on HPUX 10.10 has a broken version of select.
19807 ## We used to use -lc -lcurses, but this may be cleaner.
19808 hpux*) LIBS_TERMCAP="-ltermcap" ;;
19810 openbsd) LIBS_TERMCAP="-lncurses" ;;
19812 ## Must use system termcap, if we use any termcap. It does special things.
19813 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
19814 esac
19816 TERMCAP_OBJ=tparam.o
19817 if test $TERMINFO = yes; then
19819 $as_echo "#define TERMINFO 1" >>confdefs.h
19822 ## Default used to be -ltermcap. Add a case above if need something else.
19823 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
19825 TERMCAP_OBJ=terminfo.o
19831 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19832 resolv=no
19833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19834 /* end confdefs.h. */
19835 #include <netinet/in.h>
19836 #include <arpa/nameser.h>
19837 #include <resolv.h>
19839 main ()
19841 return res_init();
19843 return 0;
19845 _ACEOF
19846 if ac_fn_c_try_link "$LINENO"; then :
19847 have_res_init=yes
19848 else
19849 have_res_init=no
19851 rm -f core conftest.err conftest.$ac_objext \
19852 conftest$ac_exeext conftest.$ac_ext
19853 if test "$have_res_init" = no; then
19854 OLIBS="$LIBS"
19855 LIBS="$LIBS -lresolv"
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
19857 $as_echo_n "checking for res_init with -lresolv... " >&6; }
19858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859 /* end confdefs.h. */
19860 #include <netinet/in.h>
19861 #include <arpa/nameser.h>
19862 #include <resolv.h>
19864 main ()
19866 return res_init();
19868 return 0;
19870 _ACEOF
19871 if ac_fn_c_try_link "$LINENO"; then :
19872 have_res_init=yes
19873 else
19874 have_res_init=no
19876 rm -f core conftest.err conftest.$ac_objext \
19877 conftest$ac_exeext conftest.$ac_ext
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
19879 $as_echo "$have_res_init" >&6; }
19880 if test "$have_res_init" = yes ; then
19881 resolv=yes
19883 LIBS="$OLIBS"
19886 if test "$have_res_init" = yes; then
19888 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
19892 # Do we need the Hesiod library to provide the support routines?
19893 LIBHESIOD=
19894 if test "$with_hesiod" != no ; then
19895 # Don't set $LIBS here -- see comments above. FIXME which comments?
19896 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
19897 if test "x$ac_cv_func_res_send" = x""yes; then :
19899 else
19900 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
19901 if test "x$ac_cv_func___res_send" = x""yes; then :
19903 else
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
19905 $as_echo_n "checking for res_send in -lresolv... " >&6; }
19906 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
19907 $as_echo_n "(cached) " >&6
19908 else
19909 ac_check_lib_save_LIBS=$LIBS
19910 LIBS="-lresolv $LIBS"
19911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912 /* end confdefs.h. */
19914 /* Override any GCC internal prototype to avoid an error.
19915 Use char because int might match the return type of a GCC
19916 builtin and then its argument prototype would still apply. */
19917 #ifdef __cplusplus
19918 extern "C"
19919 #endif
19920 char res_send ();
19922 main ()
19924 return res_send ();
19926 return 0;
19928 _ACEOF
19929 if ac_fn_c_try_link "$LINENO"; then :
19930 ac_cv_lib_resolv_res_send=yes
19931 else
19932 ac_cv_lib_resolv_res_send=no
19934 rm -f core conftest.err conftest.$ac_objext \
19935 conftest$ac_exeext conftest.$ac_ext
19936 LIBS=$ac_check_lib_save_LIBS
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
19939 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
19940 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
19941 resolv=yes
19942 else
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
19944 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
19945 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
19946 $as_echo_n "(cached) " >&6
19947 else
19948 ac_check_lib_save_LIBS=$LIBS
19949 LIBS="-lresolv $LIBS"
19950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951 /* end confdefs.h. */
19953 /* Override any GCC internal prototype to avoid an error.
19954 Use char because int might match the return type of a GCC
19955 builtin and then its argument prototype would still apply. */
19956 #ifdef __cplusplus
19957 extern "C"
19958 #endif
19959 char __res_send ();
19961 main ()
19963 return __res_send ();
19965 return 0;
19967 _ACEOF
19968 if ac_fn_c_try_link "$LINENO"; then :
19969 ac_cv_lib_resolv___res_send=yes
19970 else
19971 ac_cv_lib_resolv___res_send=no
19973 rm -f core conftest.err conftest.$ac_objext \
19974 conftest$ac_exeext conftest.$ac_ext
19975 LIBS=$ac_check_lib_save_LIBS
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
19978 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
19979 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
19980 resolv=yes
19989 if test "$resolv" = yes ; then
19990 RESOLVLIB=-lresolv
19991 else
19992 RESOLVLIB=
19994 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
19995 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
19997 else
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
19999 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
20000 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
20001 $as_echo_n "(cached) " >&6
20002 else
20003 ac_check_lib_save_LIBS=$LIBS
20004 LIBS="-lhesiod $RESOLVLIB $LIBS"
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20011 #ifdef __cplusplus
20012 extern "C"
20013 #endif
20014 char hes_getmailhost ();
20016 main ()
20018 return hes_getmailhost ();
20020 return 0;
20022 _ACEOF
20023 if ac_fn_c_try_link "$LINENO"; then :
20024 ac_cv_lib_hesiod_hes_getmailhost=yes
20025 else
20026 ac_cv_lib_hesiod_hes_getmailhost=no
20028 rm -f core conftest.err conftest.$ac_objext \
20029 conftest$ac_exeext conftest.$ac_ext
20030 LIBS=$ac_check_lib_save_LIBS
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20033 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20034 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
20035 hesiod=yes
20036 else
20043 if test x"$hesiod" = xyes; then
20045 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
20047 LIBHESIOD=-lhesiod
20052 # Do we need libresolv (due to res_init or Hesiod)?
20053 if test "$resolv" = yes ; then
20055 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
20057 LIBRESOLV=-lresolv
20058 else
20059 LIBRESOLV=
20063 # These tell us which Kerberos-related libraries to use.
20064 COM_ERRLIB=
20065 CRYPTOLIB=
20066 KRB5LIB=
20067 DESLIB=
20068 KRB4LIB=
20070 if test "${with_kerberos}" != no; then
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
20072 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
20073 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
20074 $as_echo_n "(cached) " >&6
20075 else
20076 ac_check_lib_save_LIBS=$LIBS
20077 LIBS="-lcom_err $LIBS"
20078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20079 /* end confdefs.h. */
20081 /* Override any GCC internal prototype to avoid an error.
20082 Use char because int might match the return type of a GCC
20083 builtin and then its argument prototype would still apply. */
20084 #ifdef __cplusplus
20085 extern "C"
20086 #endif
20087 char com_err ();
20089 main ()
20091 return com_err ();
20093 return 0;
20095 _ACEOF
20096 if ac_fn_c_try_link "$LINENO"; then :
20097 ac_cv_lib_com_err_com_err=yes
20098 else
20099 ac_cv_lib_com_err_com_err=no
20101 rm -f core conftest.err conftest.$ac_objext \
20102 conftest$ac_exeext conftest.$ac_ext
20103 LIBS=$ac_check_lib_save_LIBS
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
20106 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
20107 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
20108 have_com_err=yes
20109 else
20110 have_com_err=no
20113 if test $have_com_err = yes; then
20114 COM_ERRLIB=-lcom_err
20115 LIBS="$COM_ERRLIB $LIBS"
20117 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20121 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
20122 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
20123 $as_echo_n "(cached) " >&6
20124 else
20125 ac_check_lib_save_LIBS=$LIBS
20126 LIBS="-lcrypto $LIBS"
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h. */
20130 /* Override any GCC internal prototype to avoid an error.
20131 Use char because int might match the return type of a GCC
20132 builtin and then its argument prototype would still apply. */
20133 #ifdef __cplusplus
20134 extern "C"
20135 #endif
20136 char mit_des_cbc_encrypt ();
20138 main ()
20140 return mit_des_cbc_encrypt ();
20142 return 0;
20144 _ACEOF
20145 if ac_fn_c_try_link "$LINENO"; then :
20146 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20147 else
20148 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20150 rm -f core conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
20152 LIBS=$ac_check_lib_save_LIBS
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20155 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20156 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
20157 have_crypto=yes
20158 else
20159 have_crypto=no
20162 if test $have_crypto = yes; then
20163 CRYPTOLIB=-lcrypto
20164 LIBS="$CRYPTOLIB $LIBS"
20166 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20170 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
20171 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
20172 $as_echo_n "(cached) " >&6
20173 else
20174 ac_check_lib_save_LIBS=$LIBS
20175 LIBS="-lk5crypto $LIBS"
20176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20177 /* end confdefs.h. */
20179 /* Override any GCC internal prototype to avoid an error.
20180 Use char because int might match the return type of a GCC
20181 builtin and then its argument prototype would still apply. */
20182 #ifdef __cplusplus
20183 extern "C"
20184 #endif
20185 char mit_des_cbc_encrypt ();
20187 main ()
20189 return mit_des_cbc_encrypt ();
20191 return 0;
20193 _ACEOF
20194 if ac_fn_c_try_link "$LINENO"; then :
20195 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20196 else
20197 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20199 rm -f core conftest.err conftest.$ac_objext \
20200 conftest$ac_exeext conftest.$ac_ext
20201 LIBS=$ac_check_lib_save_LIBS
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20204 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20205 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
20206 have_k5crypto=yes
20207 else
20208 have_k5crypto=no
20211 if test $have_k5crypto = yes; then
20212 CRYPTOLIB=-lk5crypto
20213 LIBS="$CRYPTOLIB $LIBS"
20215 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
20219 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
20220 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
20221 $as_echo_n "(cached) " >&6
20222 else
20223 ac_check_lib_save_LIBS=$LIBS
20224 LIBS="-lkrb5 $LIBS"
20225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20226 /* end confdefs.h. */
20228 /* Override any GCC internal prototype to avoid an error.
20229 Use char because int might match the return type of a GCC
20230 builtin and then its argument prototype would still apply. */
20231 #ifdef __cplusplus
20232 extern "C"
20233 #endif
20234 char krb5_init_context ();
20236 main ()
20238 return krb5_init_context ();
20240 return 0;
20242 _ACEOF
20243 if ac_fn_c_try_link "$LINENO"; then :
20244 ac_cv_lib_krb5_krb5_init_context=yes
20245 else
20246 ac_cv_lib_krb5_krb5_init_context=no
20248 rm -f core conftest.err conftest.$ac_objext \
20249 conftest$ac_exeext conftest.$ac_ext
20250 LIBS=$ac_check_lib_save_LIBS
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20253 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
20254 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
20255 have_krb5=yes
20256 else
20257 have_krb5=no
20260 if test $have_krb5=yes; then
20261 KRB5LIB=-lkrb5
20262 LIBS="$KRB5LIB $LIBS"
20264 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
20267 if test "${with_kerberos5}" = no; then
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
20269 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
20270 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
20271 $as_echo_n "(cached) " >&6
20272 else
20273 ac_check_lib_save_LIBS=$LIBS
20274 LIBS="-ldes425 $LIBS"
20275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h. */
20278 /* Override any GCC internal prototype to avoid an error.
20279 Use char because int might match the return type of a GCC
20280 builtin and then its argument prototype would still apply. */
20281 #ifdef __cplusplus
20282 extern "C"
20283 #endif
20284 char des_cbc_encrypt ();
20286 main ()
20288 return des_cbc_encrypt ();
20290 return 0;
20292 _ACEOF
20293 if ac_fn_c_try_link "$LINENO"; then :
20294 ac_cv_lib_des425_des_cbc_encrypt=yes
20295 else
20296 ac_cv_lib_des425_des_cbc_encrypt=no
20298 rm -f core conftest.err conftest.$ac_objext \
20299 conftest$ac_exeext conftest.$ac_ext
20300 LIBS=$ac_check_lib_save_LIBS
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20303 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20304 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
20305 have_des425=yes
20306 else
20307 have_des425=no
20310 if test $have_des425 = yes; then
20311 DESLIB=-ldes425
20312 LIBS="$DESLIB $LIBS"
20314 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
20316 else
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
20318 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
20319 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
20320 $as_echo_n "(cached) " >&6
20321 else
20322 ac_check_lib_save_LIBS=$LIBS
20323 LIBS="-ldes $LIBS"
20324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20325 /* end confdefs.h. */
20327 /* Override any GCC internal prototype to avoid an error.
20328 Use char because int might match the return type of a GCC
20329 builtin and then its argument prototype would still apply. */
20330 #ifdef __cplusplus
20331 extern "C"
20332 #endif
20333 char des_cbc_encrypt ();
20335 main ()
20337 return des_cbc_encrypt ();
20339 return 0;
20341 _ACEOF
20342 if ac_fn_c_try_link "$LINENO"; then :
20343 ac_cv_lib_des_des_cbc_encrypt=yes
20344 else
20345 ac_cv_lib_des_des_cbc_encrypt=no
20347 rm -f core conftest.err conftest.$ac_objext \
20348 conftest$ac_exeext conftest.$ac_ext
20349 LIBS=$ac_check_lib_save_LIBS
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20352 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20353 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
20354 have_des=yes
20355 else
20356 have_des=no
20359 if test $have_des = yes; then
20360 DESLIB=-ldes
20361 LIBS="$DESLIB $LIBS"
20363 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
20368 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
20369 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
20370 $as_echo_n "(cached) " >&6
20371 else
20372 ac_check_lib_save_LIBS=$LIBS
20373 LIBS="-lkrb4 $LIBS"
20374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h. */
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20380 #ifdef __cplusplus
20381 extern "C"
20382 #endif
20383 char krb_get_cred ();
20385 main ()
20387 return krb_get_cred ();
20389 return 0;
20391 _ACEOF
20392 if ac_fn_c_try_link "$LINENO"; then :
20393 ac_cv_lib_krb4_krb_get_cred=yes
20394 else
20395 ac_cv_lib_krb4_krb_get_cred=no
20397 rm -f core conftest.err conftest.$ac_objext \
20398 conftest$ac_exeext conftest.$ac_ext
20399 LIBS=$ac_check_lib_save_LIBS
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20402 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
20403 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
20404 have_krb4=yes
20405 else
20406 have_krb4=no
20409 if test $have_krb4 = yes; then
20410 KRB4LIB=-lkrb4
20411 LIBS="$KRB4LIB $LIBS"
20413 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
20415 else
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
20417 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
20418 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
20419 $as_echo_n "(cached) " >&6
20420 else
20421 ac_check_lib_save_LIBS=$LIBS
20422 LIBS="-lkrb $LIBS"
20423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h. */
20426 /* Override any GCC internal prototype to avoid an error.
20427 Use char because int might match the return type of a GCC
20428 builtin and then its argument prototype would still apply. */
20429 #ifdef __cplusplus
20430 extern "C"
20431 #endif
20432 char krb_get_cred ();
20434 main ()
20436 return krb_get_cred ();
20438 return 0;
20440 _ACEOF
20441 if ac_fn_c_try_link "$LINENO"; then :
20442 ac_cv_lib_krb_krb_get_cred=yes
20443 else
20444 ac_cv_lib_krb_krb_get_cred=no
20446 rm -f core conftest.err conftest.$ac_objext \
20447 conftest$ac_exeext conftest.$ac_ext
20448 LIBS=$ac_check_lib_save_LIBS
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
20451 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
20452 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
20453 have_krb=yes
20454 else
20455 have_krb=no
20458 if test $have_krb = yes; then
20459 KRB4LIB=-lkrb
20460 LIBS="$KRB4LIB $LIBS"
20462 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
20468 if test "${with_kerberos5}" != no; then
20469 for ac_header in krb5.h
20470 do :
20471 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
20472 if test "x$ac_cv_header_krb5_h" = x""yes; then :
20473 cat >>confdefs.h <<_ACEOF
20474 #define HAVE_KRB5_H 1
20475 _ACEOF
20476 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
20478 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
20480 cat >>confdefs.h <<_ACEOF
20481 #define HAVE_KRB5_ERROR_TEXT 1
20482 _ACEOF
20486 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
20488 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
20490 cat >>confdefs.h <<_ACEOF
20491 #define HAVE_KRB5_ERROR_E_TEXT 1
20492 _ACEOF
20499 done
20501 else
20502 for ac_header in des.h
20503 do :
20504 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
20505 if test "x$ac_cv_header_des_h" = x""yes; then :
20506 cat >>confdefs.h <<_ACEOF
20507 #define HAVE_DES_H 1
20508 _ACEOF
20510 else
20511 for ac_header in kerberosIV/des.h
20512 do :
20513 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
20514 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
20515 cat >>confdefs.h <<_ACEOF
20516 #define HAVE_KERBEROSIV_DES_H 1
20517 _ACEOF
20519 else
20520 for ac_header in kerberos/des.h
20521 do :
20522 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
20523 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
20524 cat >>confdefs.h <<_ACEOF
20525 #define HAVE_KERBEROS_DES_H 1
20526 _ACEOF
20530 done
20534 done
20538 done
20540 for ac_header in krb.h
20541 do :
20542 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
20543 if test "x$ac_cv_header_krb_h" = x""yes; then :
20544 cat >>confdefs.h <<_ACEOF
20545 #define HAVE_KRB_H 1
20546 _ACEOF
20548 else
20549 for ac_header in kerberosIV/krb.h
20550 do :
20551 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
20552 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
20553 cat >>confdefs.h <<_ACEOF
20554 #define HAVE_KERBEROSIV_KRB_H 1
20555 _ACEOF
20557 else
20558 for ac_header in kerberos/krb.h
20559 do :
20560 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
20561 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_KERBEROS_KRB_H 1
20564 _ACEOF
20568 done
20572 done
20576 done
20579 for ac_header in com_err.h
20580 do :
20581 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
20582 if test "x$ac_cv_header_com_err_h" = x""yes; then :
20583 cat >>confdefs.h <<_ACEOF
20584 #define HAVE_COM_ERR_H 1
20585 _ACEOF
20589 done
20599 # Solaris requires -lintl if you want strerror (which calls dgettext)
20600 # to return localized messages.
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
20602 $as_echo_n "checking for dgettext in -lintl... " >&6; }
20603 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
20604 $as_echo_n "(cached) " >&6
20605 else
20606 ac_check_lib_save_LIBS=$LIBS
20607 LIBS="-lintl $LIBS"
20608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20609 /* end confdefs.h. */
20611 /* Override any GCC internal prototype to avoid an error.
20612 Use char because int might match the return type of a GCC
20613 builtin and then its argument prototype would still apply. */
20614 #ifdef __cplusplus
20615 extern "C"
20616 #endif
20617 char dgettext ();
20619 main ()
20621 return dgettext ();
20623 return 0;
20625 _ACEOF
20626 if ac_fn_c_try_link "$LINENO"; then :
20627 ac_cv_lib_intl_dgettext=yes
20628 else
20629 ac_cv_lib_intl_dgettext=no
20631 rm -f core conftest.err conftest.$ac_objext \
20632 conftest$ac_exeext conftest.$ac_ext
20633 LIBS=$ac_check_lib_save_LIBS
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
20636 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
20637 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
20638 cat >>confdefs.h <<_ACEOF
20639 #define HAVE_LIBINTL 1
20640 _ACEOF
20642 LIBS="-lintl $LIBS"
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
20648 $as_echo_n "checking whether localtime caches TZ... " >&6; }
20649 if test "${emacs_cv_localtime_cache+set}" = set; then :
20650 $as_echo_n "(cached) " >&6
20651 else
20652 if test x$ac_cv_func_tzset = xyes; then
20653 if test "$cross_compiling" = yes; then :
20654 # If we have tzset, assume the worst when cross-compiling.
20655 emacs_cv_localtime_cache=yes
20656 else
20657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20658 /* end confdefs.h. */
20659 #include <time.h>
20660 char TZ_GMT0[] = "TZ=GMT0";
20661 char TZ_PST8[] = "TZ=PST8";
20662 main()
20664 time_t now = time ((time_t *) 0);
20665 int hour_GMT0, hour_unset;
20666 if (putenv (TZ_GMT0) != 0)
20667 exit (1);
20668 hour_GMT0 = localtime (&now)->tm_hour;
20669 unsetenv("TZ");
20670 hour_unset = localtime (&now)->tm_hour;
20671 if (putenv (TZ_PST8) != 0)
20672 exit (1);
20673 if (localtime (&now)->tm_hour == hour_GMT0)
20674 exit (1);
20675 unsetenv("TZ");
20676 if (localtime (&now)->tm_hour != hour_unset)
20677 exit (1);
20678 exit (0);
20680 _ACEOF
20681 if ac_fn_c_try_run "$LINENO"; then :
20682 emacs_cv_localtime_cache=no
20683 else
20684 emacs_cv_localtime_cache=yes
20686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20687 conftest.$ac_objext conftest.beam conftest.$ac_ext
20690 else
20691 # If we lack tzset, report that localtime does not cache TZ,
20692 # since we can't invalidate the cache if we don't have tzset.
20693 emacs_cv_localtime_cache=no
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
20697 $as_echo "$emacs_cv_localtime_cache" >&6; }
20698 if test $emacs_cv_localtime_cache = yes; then
20700 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
20704 if test "x$HAVE_TIMEVAL" = xyes; then
20705 for ac_func in gettimeofday
20706 do :
20707 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
20708 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
20709 cat >>confdefs.h <<_ACEOF
20710 #define HAVE_GETTIMEOFDAY 1
20711 _ACEOF
20714 done
20716 if test $ac_cv_func_gettimeofday = yes; then
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
20718 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
20719 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
20720 $as_echo_n "(cached) " >&6
20721 else
20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20725 #ifdef TIME_WITH_SYS_TIME
20726 #include <sys/time.h>
20727 #include <time.h>
20728 #else
20729 #ifdef HAVE_SYS_TIME_H
20730 #include <sys/time.h>
20731 #else
20732 #include <time.h>
20733 #endif
20734 #endif
20736 main ()
20738 struct timeval time;
20739 gettimeofday (&time, 0);
20741 return 0;
20743 _ACEOF
20744 if ac_fn_c_try_compile "$LINENO"; then :
20745 emacs_cv_gettimeofday_two_arguments=yes
20746 else
20747 emacs_cv_gettimeofday_two_arguments=no
20749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
20752 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
20753 if test $emacs_cv_gettimeofday_two_arguments = no; then
20755 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
20761 ok_so_far=yes
20762 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
20763 if test "x$ac_cv_func_socket" = x""yes; then :
20765 else
20766 ok_so_far=no
20769 if test $ok_so_far = yes; then
20770 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
20771 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
20773 else
20774 ok_so_far=no
20779 if test $ok_so_far = yes; then
20780 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
20781 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
20783 else
20784 ok_so_far=no
20789 if test $ok_so_far = yes; then
20791 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
20795 if test -f /usr/lpp/X11/bin/smt.exp; then
20797 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
20802 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
20803 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20805 $as_echo "yes" >&6; }
20807 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
20809 else
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20811 $as_echo "no" >&6; }
20814 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20815 if test "x$ac_cv_type_pid_t" = x""yes; then :
20817 else
20819 cat >>confdefs.h <<_ACEOF
20820 #define pid_t int
20821 _ACEOF
20825 for ac_header in vfork.h
20826 do :
20827 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20828 if test "x$ac_cv_header_vfork_h" = x""yes; then :
20829 cat >>confdefs.h <<_ACEOF
20830 #define HAVE_VFORK_H 1
20831 _ACEOF
20835 done
20837 for ac_func in fork vfork
20838 do :
20839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20841 eval as_val=\$$as_ac_var
20842 if test "x$as_val" = x""yes; then :
20843 cat >>confdefs.h <<_ACEOF
20844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20845 _ACEOF
20848 done
20850 if test "x$ac_cv_func_fork" = xyes; then
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20852 $as_echo_n "checking for working fork... " >&6; }
20853 if test "${ac_cv_func_fork_works+set}" = set; then :
20854 $as_echo_n "(cached) " >&6
20855 else
20856 if test "$cross_compiling" = yes; then :
20857 ac_cv_func_fork_works=cross
20858 else
20859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20860 /* end confdefs.h. */
20861 $ac_includes_default
20863 main ()
20866 /* By Ruediger Kuhlmann. */
20867 return fork () < 0;
20870 return 0;
20872 _ACEOF
20873 if ac_fn_c_try_run "$LINENO"; then :
20874 ac_cv_func_fork_works=yes
20875 else
20876 ac_cv_func_fork_works=no
20878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20879 conftest.$ac_objext conftest.beam conftest.$ac_ext
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20884 $as_echo "$ac_cv_func_fork_works" >&6; }
20886 else
20887 ac_cv_func_fork_works=$ac_cv_func_fork
20889 if test "x$ac_cv_func_fork_works" = xcross; then
20890 case $host in
20891 *-*-amigaos* | *-*-msdosdjgpp*)
20892 # Override, as these systems have only a dummy fork() stub
20893 ac_cv_func_fork_works=no
20896 ac_cv_func_fork_works=yes
20898 esac
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20900 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20902 ac_cv_func_vfork_works=$ac_cv_func_vfork
20903 if test "x$ac_cv_func_vfork" = xyes; then
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20905 $as_echo_n "checking for working vfork... " >&6; }
20906 if test "${ac_cv_func_vfork_works+set}" = set; then :
20907 $as_echo_n "(cached) " >&6
20908 else
20909 if test "$cross_compiling" = yes; then :
20910 ac_cv_func_vfork_works=cross
20911 else
20912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20913 /* end confdefs.h. */
20914 /* Thanks to Paul Eggert for this test. */
20915 $ac_includes_default
20916 #include <sys/wait.h>
20917 #ifdef HAVE_VFORK_H
20918 # include <vfork.h>
20919 #endif
20920 /* On some sparc systems, changes by the child to local and incoming
20921 argument registers are propagated back to the parent. The compiler
20922 is told about this with #include <vfork.h>, but some compilers
20923 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20924 static variable whose address is put into a register that is
20925 clobbered by the vfork. */
20926 static void
20927 #ifdef __cplusplus
20928 sparc_address_test (int arg)
20929 # else
20930 sparc_address_test (arg) int arg;
20931 #endif
20933 static pid_t child;
20934 if (!child) {
20935 child = vfork ();
20936 if (child < 0) {
20937 perror ("vfork");
20938 _exit(2);
20940 if (!child) {
20941 arg = getpid();
20942 write(-1, "", 0);
20943 _exit (arg);
20949 main ()
20951 pid_t parent = getpid ();
20952 pid_t child;
20954 sparc_address_test (0);
20956 child = vfork ();
20958 if (child == 0) {
20959 /* Here is another test for sparc vfork register problems. This
20960 test uses lots of local variables, at least as many local
20961 variables as main has allocated so far including compiler
20962 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20963 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20964 reuse the register of parent for one of the local variables,
20965 since it will think that parent can't possibly be used any more
20966 in this routine. Assigning to the local variable will thus
20967 munge parent in the parent process. */
20968 pid_t
20969 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20970 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20971 /* Convince the compiler that p..p7 are live; otherwise, it might
20972 use the same hardware register for all 8 local variables. */
20973 if (p != p1 || p != p2 || p != p3 || p != p4
20974 || p != p5 || p != p6 || p != p7)
20975 _exit(1);
20977 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20978 from child file descriptors. If the child closes a descriptor
20979 before it execs or exits, this munges the parent's descriptor
20980 as well. Test for this by closing stdout in the child. */
20981 _exit(close(fileno(stdout)) != 0);
20982 } else {
20983 int status;
20984 struct stat st;
20986 while (wait(&status) != child)
20988 return (
20989 /* Was there some problem with vforking? */
20990 child < 0
20992 /* Did the child fail? (This shouldn't happen.) */
20993 || status
20995 /* Did the vfork/compiler bug occur? */
20996 || parent != getpid()
20998 /* Did the file descriptor bug occur? */
20999 || fstat(fileno(stdout), &st) != 0
21003 _ACEOF
21004 if ac_fn_c_try_run "$LINENO"; then :
21005 ac_cv_func_vfork_works=yes
21006 else
21007 ac_cv_func_vfork_works=no
21009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21010 conftest.$ac_objext conftest.beam conftest.$ac_ext
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21015 $as_echo "$ac_cv_func_vfork_works" >&6; }
21018 if test "x$ac_cv_func_fork_works" = xcross; then
21019 ac_cv_func_vfork_works=$ac_cv_func_vfork
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21021 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21024 if test "x$ac_cv_func_vfork_works" = xyes; then
21026 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21028 else
21030 $as_echo "#define vfork fork" >>confdefs.h
21033 if test "x$ac_cv_func_fork_works" = xyes; then
21035 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
21041 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
21042 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
21043 $as_echo_n "(cached) " >&6
21044 else
21045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21046 /* end confdefs.h. */
21047 #include <langinfo.h>
21049 main ()
21051 char* cs = nl_langinfo(CODESET);
21053 return 0;
21055 _ACEOF
21056 if ac_fn_c_try_link "$LINENO"; then :
21057 emacs_cv_langinfo_codeset=yes
21058 else
21059 emacs_cv_langinfo_codeset=no
21061 rm -f core conftest.err conftest.$ac_objext \
21062 conftest$ac_exeext conftest.$ac_ext
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
21066 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
21067 if test $emacs_cv_langinfo_codeset = yes; then
21069 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
21074 $as_echo_n "checking for mbstate_t... " >&6; }
21075 if test "${ac_cv_type_mbstate_t+set}" = set; then :
21076 $as_echo_n "(cached) " >&6
21077 else
21078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21079 /* end confdefs.h. */
21080 $ac_includes_default
21081 # include <wchar.h>
21083 main ()
21085 mbstate_t x; return sizeof x;
21087 return 0;
21089 _ACEOF
21090 if ac_fn_c_try_compile "$LINENO"; then :
21091 ac_cv_type_mbstate_t=yes
21092 else
21093 ac_cv_type_mbstate_t=no
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
21098 $as_echo "$ac_cv_type_mbstate_t" >&6; }
21099 if test $ac_cv_type_mbstate_t = yes; then
21101 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
21103 else
21105 $as_echo "#define mbstate_t int" >>confdefs.h
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
21110 $as_echo_n "checking for C restricted array declarations... " >&6; }
21111 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
21112 $as_echo_n "(cached) " >&6
21113 else
21114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21115 /* end confdefs.h. */
21116 void fred (int x[__restrict]);
21118 main ()
21122 return 0;
21124 _ACEOF
21125 if ac_fn_c_try_compile "$LINENO"; then :
21126 emacs_cv_c_restrict_arr=yes
21127 else
21128 emacs_cv_c_restrict_arr=no
21130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
21133 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
21134 if test "$emacs_cv_c_restrict_arr" = yes; then
21136 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
21142 # Set up the CFLAGS for real compilation, so we can substitute it.
21143 CFLAGS="$REAL_CFLAGS"
21144 CPPFLAGS="$REAL_CPPFLAGS"
21146 ## Hack to detect a buggy GCC version.
21147 if test "x$GCC" = xyes \
21148 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
21149 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
21150 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
21151 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
21154 version=$PACKAGE_VERSION
21156 ### Specify what sort of things we'll be editing into Makefile and config.h.
21157 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21160 ## Unused?
21181 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
21182 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
21183 ## end of LIBX_BASE, but nothing ever set it.
21188 ## Used in lwlib/Makefile.in.
21190 if test -n "${machfile}"; then
21191 M_FILE="\$(srcdir)/${machfile}"
21192 else
21193 M_FILE=
21195 S_FILE="\$(srcdir)/${opsysfile}"
21206 cat >>confdefs.h <<_ACEOF
21207 #define EMACS_CONFIGURATION "${canonical}"
21208 _ACEOF
21211 cat >>confdefs.h <<_ACEOF
21212 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21213 _ACEOF
21215 if test -n "$machfile"; then
21217 cat >>confdefs.h <<_ACEOF
21218 #define config_machfile "${machfile}"
21219 _ACEOF
21223 cat >>confdefs.h <<_ACEOF
21224 #define config_opsysfile "${opsysfile}"
21225 _ACEOF
21228 XMENU_OBJ=
21229 XOBJ=
21230 FONT_OBJ=
21231 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21233 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
21235 XMENU_OBJ=xmenu.o
21236 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
21237 FONT_OBJ=xfont.o
21238 if test "$HAVE_XFT" = "yes"; then
21239 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
21240 elif test "$HAVE_FREETYPE" = "yes"; then
21241 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
21249 WIDGET_OBJ=
21250 MOTIF_LIBW=
21251 if test "${USE_X_TOOLKIT}" != "none" ; then
21252 WIDGET_OBJ=widget.o
21254 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
21256 if test "${USE_X_TOOLKIT}" = "LUCID"; then
21258 $as_echo "#define USE_LUCID 1" >>confdefs.h
21260 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
21262 $as_echo "#define USE_MOTIF 1" >>confdefs.h
21264 MOTIF_LIBW=-lXm
21265 case "$opsys" in
21266 gnu-linux)
21267 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
21268 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
21271 unixware)
21272 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
21273 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
21274 MOTIF_LIBW="MOTIF_LIBW -lXimp"
21277 aix4-2)
21278 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
21279 MOTIF_LIBW="$MOTIF_LIBW -li18n"
21281 esac
21282 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
21287 TOOLKIT_LIBW=
21288 case "$USE_X_TOOLKIT" in
21289 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
21290 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
21291 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
21292 esac
21295 if test "$USE_X_TOOLKIT" = "none"; then
21296 LIBXT_OTHER="\$(LIBXSM)"
21297 OLDXMENU_TARGET="really-oldXMenu"
21298 else
21299 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
21300 OLDXMENU_TARGET="really-lwlib"
21304 ## The X Menu stuff is present in the X10 distribution, but missing
21305 ## from X11. If we have X10, just use the installed library;
21306 ## otherwise, use our own copy.
21307 if test "${HAVE_X11}" = "yes" ; then
21309 $as_echo "#define HAVE_X11 1" >>confdefs.h
21312 if test "$USE_X_TOOLKIT" = "none"; then
21313 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
21314 else
21315 OLDXMENU="\${lwlibdir}/liblw.a"
21317 LIBXMENU="\$(OLDXMENU)"
21318 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
21319 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
21320 else
21321 ## For a syntactically valid Makefile; not actually used for anything.
21322 ## See comments in src/Makefile.in.
21323 OLDXMENU=nothing
21324 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
21325 if test "${HAVE_X_WINDOWS}" = "yes"; then
21326 LIBXMENU="-lXMenu"
21327 else
21328 LIBXMENU=
21330 LIBX_OTHER=
21331 OLDXMENU_DEPS=
21334 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
21335 OLDXMENU_TARGET=
21336 OLDXMENU=nothing
21337 LIBXMENU=
21338 OLDXMENU_DEPS=
21347 if test "${HAVE_MENUS}" = "yes" ; then
21349 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
21353 if test "${GNU_MALLOC}" = "yes" ; then
21355 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
21359 RALLOC_OBJ=
21360 if test "${REL_ALLOC}" = "yes" ; then
21362 $as_echo "#define REL_ALLOC 1" >>confdefs.h
21365 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
21369 if test "$opsys" = "cygwin"; then
21370 CYGWIN_OBJ="sheap.o"
21371 ## Cygwin differs because of its unexec().
21372 PRE_ALLOC_OBJ=
21373 POST_ALLOC_OBJ=lastfile.o
21374 else
21375 CYGWIN_OBJ=
21376 PRE_ALLOC_OBJ=lastfile.o
21377 POST_ALLOC_OBJ=
21384 case "$opsys" in
21385 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
21387 darwin)
21388 ## The -headerpad option tells ld (see man page) to leave room at the
21389 ## end of the header for adding load commands. Needed for dumping.
21390 ## 0x690 is the total size of 30 segment load commands (at 56
21391 ## each); under Cocoa 31 commands are required.
21392 if test "$HAVE_NS" = "yes"; then
21393 libs_nsgui="-framework AppKit"
21394 headerpad_extra=6C8
21395 else
21396 libs_nsgui=
21397 headerpad_extra=690
21399 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21401 ## This is here because src/Makefile.in did some extra fiddling around
21402 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21403 ## #ifndef LD_SWITCH_SYSTEM
21404 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21405 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21406 ## not using gcc, darwin system not on an alpha (ie darwin, since
21407 ## darwin + alpha does not occur).
21408 ## Because this was done in src/Makefile.in, the resulting part of
21409 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21410 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21411 ## rather than LD_SWITCH_SYSTEM.
21412 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21413 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
21416 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
21417 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
21418 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
21419 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21420 ## had different values in configure (in ac_link) and src/Makefile.in.
21421 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21422 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
21424 *) LD_SWITCH_SYSTEM_TEMACS= ;;
21425 esac
21427 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21428 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21434 LD_FIRSTFLAG=
21435 ORDINARY_LINK=
21436 case "$opsys" in
21437 ## gnu: GNU needs its own crt0.
21438 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
21440 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21441 ## library search parth, i.e. it won't search /usr/lib for libc and
21442 ## friends. Using -nostartfiles instead avoids this problem, and
21443 ## will also work on earlier NetBSD releases.
21444 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
21446 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21447 ## MkLinux/LinuxPPC needs this.
21448 ## ibms390x only supports opsys = gnu-linux so it can be added here.
21449 gnu-*)
21450 case "$machine" in
21451 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
21452 esac
21454 esac
21457 if test "x$ORDINARY_LINK" = "xyes"; then
21459 LD_FIRSTFLAG=""
21461 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21464 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21465 ## freebsd, gnu-* not on macppc|ibms390x.
21466 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21468 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21469 ## places that are difficult to figure out at make time. Fortunately,
21470 ## these same versions allow you to pass arbitrary flags on to the
21471 ## linker, so there is no reason not to use it as a linker.
21473 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21474 ## searching for libraries in its internal directories, so we have to
21475 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21476 LD_FIRSTFLAG="-nostdlib"
21479 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21480 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
21485 ## FIXME? The logic here is not precisely the same as that above.
21486 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21487 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21488 LIB_GCC=
21489 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21491 case "$opsys" in
21492 freebsd|netbsd|openbsd) LIB_GCC= ;;
21494 gnu-*)
21495 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21496 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21497 case $host_cpu in
21498 arm*)
21499 LIB_GCC="-lgcc_s"
21502 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21503 ## immediately undefine it again and redefine it to empty.
21504 ## Was the C_SWITCH_X_SITE part really necessary?
21505 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21506 LIB_GCC=
21508 esac
21511 ## Ask GCC where to find libgcc.a.
21512 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21513 esac
21517 TOOLTIP_SUPPORT=
21518 WINDOW_SUPPORT=
21519 ## If we're using X11/GNUstep, define some consequences.
21520 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
21522 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21525 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21527 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
21528 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
21530 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
21531 test "$HAVE_X_WINDOWS" = "yes" && \
21532 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
21542 #### Report on what we decided to do.
21543 #### Report GTK as a toolkit, even if it doesn't use Xt.
21544 #### It makes printing result more understandable as using GTK sets
21545 #### toolkit_scroll_bars to yes by default.
21546 if test "${HAVE_GTK}" = "yes"; then
21547 USE_X_TOOLKIT=GTK
21550 and_machfile=
21551 if test -n "$machfile"; then
21552 and_machfile=" and \`${machfile}'"
21555 echo "
21556 Configured for \`${canonical}'.
21558 Where should the build process find the source code? ${srcdir}
21559 What operating system and machine description files should Emacs use?
21560 \`${opsysfile}'${and_machfile}
21561 What compiler should emacs be built with? ${CC} ${CFLAGS}
21562 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21563 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21564 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21565 What window system should Emacs use? ${window_system}
21566 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21568 if test -n "${x_includes}"; then
21569 echo " Where do we find X Windows header files? ${x_includes}"
21570 else
21571 echo " Where do we find X Windows header files? Standard dirs"
21573 if test -n "${x_libraries}"; then
21574 echo " Where do we find X Windows libraries? ${x_libraries}"
21575 else
21576 echo " Where do we find X Windows libraries? Standard dirs"
21579 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21580 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21581 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21582 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21583 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21584 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21585 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21586 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21588 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21589 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21590 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21591 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21592 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
21593 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21595 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21596 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21597 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21598 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21600 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21601 echo
21603 if test $USE_XASSERTS = yes; then
21604 echo " Compiling with asserts turned on."
21605 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21608 echo
21610 if test "$HAVE_NS" = "yes"; then
21611 echo
21612 echo "You must run \"make install\" in order to test the built application.
21613 The installed application will go to nextstep/Emacs.app and can be
21614 run or moved from there."
21615 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21616 echo "The application will be fully self-contained."
21617 else
21618 echo "The lisp resources for the application will be installed under ${prefix}.
21619 You may need to run \"make install\" with sudo. The application will fail
21620 to run if these resources are not installed."
21622 echo
21626 # Remove any trailing slashes in these variables.
21627 test "${prefix}" != NONE &&
21628 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21629 test "${exec_prefix}" != NONE &&
21630 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21632 ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile"
21635 ac_config_commands="$ac_config_commands mkdirs"
21638 ac_config_commands="$ac_config_commands epaths"
21641 ac_config_commands="$ac_config_commands gdbinit"
21644 cat >confcache <<\_ACEOF
21645 # This file is a shell script that caches the results of configure
21646 # tests run on this system so they can be shared between configure
21647 # scripts and configure runs, see configure's option --config-cache.
21648 # It is not useful on other systems. If it contains results you don't
21649 # want to keep, you may remove or edit it.
21651 # config.status only pays attention to the cache file if you give it
21652 # the --recheck option to rerun configure.
21654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21656 # following values.
21658 _ACEOF
21660 # The following way of writing the cache mishandles newlines in values,
21661 # but we know of no workaround that is simple, portable, and efficient.
21662 # So, we kill variables containing newlines.
21663 # Ultrix sh set writes to stderr and can't be redirected directly,
21664 # and sets the high bit in the cache file unless we assign to the vars.
21666 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21667 eval ac_val=\$$ac_var
21668 case $ac_val in #(
21669 *${as_nl}*)
21670 case $ac_var in #(
21671 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21672 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21673 esac
21674 case $ac_var in #(
21675 _ | IFS | as_nl) ;; #(
21676 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21677 *) { eval $ac_var=; unset $ac_var;} ;;
21678 esac ;;
21679 esac
21680 done
21682 (set) 2>&1 |
21683 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21684 *${as_nl}ac_space=\ *)
21685 # `set' does not quote correctly, so add quotes: double-quote
21686 # substitution turns \\\\ into \\, and sed turns \\ into \.
21687 sed -n \
21688 "s/'/'\\\\''/g;
21689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21690 ;; #(
21692 # `set' quotes correctly as required by POSIX, so do not add quotes.
21693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21695 esac |
21696 sort
21698 sed '
21699 /^ac_cv_env_/b end
21700 t clear
21701 :clear
21702 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21703 t end
21704 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21705 :end' >>confcache
21706 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21707 if test -w "$cache_file"; then
21708 test "x$cache_file" != "x/dev/null" &&
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21710 $as_echo "$as_me: updating cache $cache_file" >&6;}
21711 cat confcache >$cache_file
21712 else
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21714 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21717 rm -f confcache
21719 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21720 # Let make expand exec_prefix.
21721 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21723 DEFS=-DHAVE_CONFIG_H
21725 ac_libobjs=
21726 ac_ltlibobjs=
21727 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21728 # 1. Remove the extension, and $U if already installed.
21729 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21730 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21731 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21732 # will be set to the directory where LIBOBJS objects are built.
21733 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21734 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21735 done
21736 LIBOBJS=$ac_libobjs
21738 LTLIBOBJS=$ac_ltlibobjs
21741 if test -n "$EXEEXT"; then
21742 am__EXEEXT_TRUE=
21743 am__EXEEXT_FALSE='#'
21744 else
21745 am__EXEEXT_TRUE='#'
21746 am__EXEEXT_FALSE=
21749 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21750 as_fn_error "conditional \"AMDEP\" was never defined.
21751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21753 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21754 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21758 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21759 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21763 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21764 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21767 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21768 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
21769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21771 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21772 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21775 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21776 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21779 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21780 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21783 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21784 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21787 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21788 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21791 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21792 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21795 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
21796 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
21797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21799 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
21800 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
21801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21804 gl_libobjs=
21805 gl_ltlibobjs=
21806 if test -n "$gl_LIBOBJS"; then
21807 # Remove the extension.
21808 sed_drop_objext='s/\.o$//;s/\.obj$//'
21809 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21810 gl_libobjs="$gl_libobjs $i.$ac_objext"
21811 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21812 done
21814 gl_LIBOBJS=$gl_libobjs
21816 gl_LTLIBOBJS=$gl_ltlibobjs
21820 gltests_libobjs=
21821 gltests_ltlibobjs=
21822 if test -n "$gltests_LIBOBJS"; then
21823 # Remove the extension.
21824 sed_drop_objext='s/\.o$//;s/\.obj$//'
21825 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21826 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21827 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21828 done
21830 gltests_LIBOBJS=$gltests_libobjs
21832 gltests_LTLIBOBJS=$gltests_ltlibobjs
21836 : ${CONFIG_STATUS=./config.status}
21837 ac_write_fail=0
21838 ac_clean_files_save=$ac_clean_files
21839 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21841 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21842 as_write_fail=0
21843 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21844 #! $SHELL
21845 # Generated by $as_me.
21846 # Run this file to recreate the current configuration.
21847 # Compiler output produced by configure, useful for debugging
21848 # configure, is in config.log if it exists.
21850 debug=false
21851 ac_cs_recheck=false
21852 ac_cs_silent=false
21854 SHELL=\${CONFIG_SHELL-$SHELL}
21855 export SHELL
21856 _ASEOF
21857 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21858 ## -------------------- ##
21859 ## M4sh Initialization. ##
21860 ## -------------------- ##
21862 # Be more Bourne compatible
21863 DUALCASE=1; export DUALCASE # for MKS sh
21864 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21865 emulate sh
21866 NULLCMD=:
21867 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21868 # is contrary to our usage. Disable this feature.
21869 alias -g '${1+"$@"}'='"$@"'
21870 setopt NO_GLOB_SUBST
21871 else
21872 case `(set -o) 2>/dev/null` in #(
21873 *posix*) :
21874 set -o posix ;; #(
21875 *) :
21877 esac
21881 as_nl='
21883 export as_nl
21884 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21885 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21886 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21887 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21888 # Prefer a ksh shell builtin over an external printf program on Solaris,
21889 # but without wasting forks for bash or zsh.
21890 if test -z "$BASH_VERSION$ZSH_VERSION" \
21891 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21892 as_echo='print -r --'
21893 as_echo_n='print -rn --'
21894 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21895 as_echo='printf %s\n'
21896 as_echo_n='printf %s'
21897 else
21898 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21899 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21900 as_echo_n='/usr/ucb/echo -n'
21901 else
21902 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21903 as_echo_n_body='eval
21904 arg=$1;
21905 case $arg in #(
21906 *"$as_nl"*)
21907 expr "X$arg" : "X\\(.*\\)$as_nl";
21908 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21909 esac;
21910 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21912 export as_echo_n_body
21913 as_echo_n='sh -c $as_echo_n_body as_echo'
21915 export as_echo_body
21916 as_echo='sh -c $as_echo_body as_echo'
21919 # The user is always right.
21920 if test "${PATH_SEPARATOR+set}" != set; then
21921 PATH_SEPARATOR=:
21922 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21923 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21924 PATH_SEPARATOR=';'
21929 # IFS
21930 # We need space, tab and new line, in precisely that order. Quoting is
21931 # there to prevent editors from complaining about space-tab.
21932 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21933 # splitting by setting IFS to empty value.)
21934 IFS=" "" $as_nl"
21936 # Find who we are. Look in the path if we contain no directory separator.
21937 case $0 in #((
21938 *[\\/]* ) as_myself=$0 ;;
21939 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21940 for as_dir in $PATH
21942 IFS=$as_save_IFS
21943 test -z "$as_dir" && as_dir=.
21944 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21945 done
21946 IFS=$as_save_IFS
21949 esac
21950 # We did not find ourselves, most probably we were run as `sh COMMAND'
21951 # in which case we are not to be found in the path.
21952 if test "x$as_myself" = x; then
21953 as_myself=$0
21955 if test ! -f "$as_myself"; then
21956 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21957 exit 1
21960 # Unset variables that we do not need and which cause bugs (e.g. in
21961 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21962 # suppresses any "Segmentation fault" message there. '((' could
21963 # trigger a bug in pdksh 5.2.14.
21964 for as_var in BASH_ENV ENV MAIL MAILPATH
21965 do eval test x\${$as_var+set} = xset \
21966 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21967 done
21968 PS1='$ '
21969 PS2='> '
21970 PS4='+ '
21972 # NLS nuisances.
21973 LC_ALL=C
21974 export LC_ALL
21975 LANGUAGE=C
21976 export LANGUAGE
21978 # CDPATH.
21979 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21982 # as_fn_error ERROR [LINENO LOG_FD]
21983 # ---------------------------------
21984 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21985 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21986 # script with status $?, using 1 if that was 0.
21987 as_fn_error ()
21989 as_status=$?; test $as_status -eq 0 && as_status=1
21990 if test "$3"; then
21991 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21992 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21994 $as_echo "$as_me: error: $1" >&2
21995 as_fn_exit $as_status
21996 } # as_fn_error
21999 # as_fn_set_status STATUS
22000 # -----------------------
22001 # Set $? to STATUS, without forking.
22002 as_fn_set_status ()
22004 return $1
22005 } # as_fn_set_status
22007 # as_fn_exit STATUS
22008 # -----------------
22009 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22010 as_fn_exit ()
22012 set +e
22013 as_fn_set_status $1
22014 exit $1
22015 } # as_fn_exit
22017 # as_fn_unset VAR
22018 # ---------------
22019 # Portably unset VAR.
22020 as_fn_unset ()
22022 { eval $1=; unset $1;}
22024 as_unset=as_fn_unset
22025 # as_fn_append VAR VALUE
22026 # ----------------------
22027 # Append the text in VALUE to the end of the definition contained in VAR. Take
22028 # advantage of any shell optimizations that allow amortized linear growth over
22029 # repeated appends, instead of the typical quadratic growth present in naive
22030 # implementations.
22031 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22032 eval 'as_fn_append ()
22034 eval $1+=\$2
22036 else
22037 as_fn_append ()
22039 eval $1=\$$1\$2
22041 fi # as_fn_append
22043 # as_fn_arith ARG...
22044 # ------------------
22045 # Perform arithmetic evaluation on the ARGs, and store the result in the
22046 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22047 # must be portable across $(()) and expr.
22048 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22049 eval 'as_fn_arith ()
22051 as_val=$(( $* ))
22053 else
22054 as_fn_arith ()
22056 as_val=`expr "$@" || test $? -eq 1`
22058 fi # as_fn_arith
22061 if expr a : '\(a\)' >/dev/null 2>&1 &&
22062 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22063 as_expr=expr
22064 else
22065 as_expr=false
22068 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22069 as_basename=basename
22070 else
22071 as_basename=false
22074 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22075 as_dirname=dirname
22076 else
22077 as_dirname=false
22080 as_me=`$as_basename -- "$0" ||
22081 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22082 X"$0" : 'X\(//\)$' \| \
22083 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22084 $as_echo X/"$0" |
22085 sed '/^.*\/\([^/][^/]*\)\/*$/{
22086 s//\1/
22089 /^X\/\(\/\/\)$/{
22090 s//\1/
22093 /^X\/\(\/\).*/{
22094 s//\1/
22097 s/.*/./; q'`
22099 # Avoid depending upon Character Ranges.
22100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22103 as_cr_digits='0123456789'
22104 as_cr_alnum=$as_cr_Letters$as_cr_digits
22106 ECHO_C= ECHO_N= ECHO_T=
22107 case `echo -n x` in #(((((
22108 -n*)
22109 case `echo 'xy\c'` in
22110 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22111 xy) ECHO_C='\c';;
22112 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22113 ECHO_T=' ';;
22114 esac;;
22116 ECHO_N='-n';;
22117 esac
22119 rm -f conf$$ conf$$.exe conf$$.file
22120 if test -d conf$$.dir; then
22121 rm -f conf$$.dir/conf$$.file
22122 else
22123 rm -f conf$$.dir
22124 mkdir conf$$.dir 2>/dev/null
22126 if (echo >conf$$.file) 2>/dev/null; then
22127 if ln -s conf$$.file conf$$ 2>/dev/null; then
22128 as_ln_s='ln -s'
22129 # ... but there are two gotchas:
22130 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22131 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22132 # In both cases, we have to default to `cp -p'.
22133 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22134 as_ln_s='cp -p'
22135 elif ln conf$$.file conf$$ 2>/dev/null; then
22136 as_ln_s=ln
22137 else
22138 as_ln_s='cp -p'
22140 else
22141 as_ln_s='cp -p'
22143 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22144 rmdir conf$$.dir 2>/dev/null
22147 # as_fn_mkdir_p
22148 # -------------
22149 # Create "$as_dir" as a directory, including parents if necessary.
22150 as_fn_mkdir_p ()
22153 case $as_dir in #(
22154 -*) as_dir=./$as_dir;;
22155 esac
22156 test -d "$as_dir" || eval $as_mkdir_p || {
22157 as_dirs=
22158 while :; do
22159 case $as_dir in #(
22160 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22161 *) as_qdir=$as_dir;;
22162 esac
22163 as_dirs="'$as_qdir' $as_dirs"
22164 as_dir=`$as_dirname -- "$as_dir" ||
22165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22166 X"$as_dir" : 'X\(//\)[^/]' \| \
22167 X"$as_dir" : 'X\(//\)$' \| \
22168 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22169 $as_echo X"$as_dir" |
22170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22171 s//\1/
22174 /^X\(\/\/\)[^/].*/{
22175 s//\1/
22178 /^X\(\/\/\)$/{
22179 s//\1/
22182 /^X\(\/\).*/{
22183 s//\1/
22186 s/.*/./; q'`
22187 test -d "$as_dir" && break
22188 done
22189 test -z "$as_dirs" || eval "mkdir $as_dirs"
22190 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
22193 } # as_fn_mkdir_p
22194 if mkdir -p . 2>/dev/null; then
22195 as_mkdir_p='mkdir -p "$as_dir"'
22196 else
22197 test -d ./-p && rmdir ./-p
22198 as_mkdir_p=false
22201 if test -x / >/dev/null 2>&1; then
22202 as_test_x='test -x'
22203 else
22204 if ls -dL / >/dev/null 2>&1; then
22205 as_ls_L_option=L
22206 else
22207 as_ls_L_option=
22209 as_test_x='
22210 eval sh -c '\''
22211 if test -d "$1"; then
22212 test -d "$1/.";
22213 else
22214 case $1 in #(
22215 -*)set "./$1";;
22216 esac;
22217 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22218 ???[sx]*):;;*)false;;esac;fi
22219 '\'' sh
22222 as_executable_p=$as_test_x
22224 # Sed expression to map a string onto a valid CPP name.
22225 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22227 # Sed expression to map a string onto a valid variable name.
22228 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22231 exec 6>&1
22232 ## ----------------------------------- ##
22233 ## Main body of $CONFIG_STATUS script. ##
22234 ## ----------------------------------- ##
22235 _ASEOF
22236 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22239 # Save the log message, to keep $0 and so on meaningful, and to
22240 # report actual input values of CONFIG_FILES etc. instead of their
22241 # values after options handling.
22242 ac_log="
22243 This file was extended by emacs $as_me 24.0.50, which was
22244 generated by GNU Autoconf 2.65. Invocation command line was
22246 CONFIG_FILES = $CONFIG_FILES
22247 CONFIG_HEADERS = $CONFIG_HEADERS
22248 CONFIG_LINKS = $CONFIG_LINKS
22249 CONFIG_COMMANDS = $CONFIG_COMMANDS
22250 $ $0 $@
22252 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22255 _ACEOF
22257 case $ac_config_files in *"
22258 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22259 esac
22261 case $ac_config_headers in *"
22262 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22263 esac
22266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22267 # Files that config.status was made for.
22268 config_files="$ac_config_files"
22269 config_headers="$ac_config_headers"
22270 config_commands="$ac_config_commands"
22272 _ACEOF
22274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22275 ac_cs_usage="\
22276 \`$as_me' instantiates files and other configuration actions
22277 from templates according to the current configuration. Unless the files
22278 and actions are specified as TAGs, all are instantiated by default.
22280 Usage: $0 [OPTION]... [TAG]...
22282 -h, --help print this help, then exit
22283 -V, --version print version number and configuration settings, then exit
22284 --config print configuration, then exit
22285 -q, --quiet, --silent
22286 do not print progress messages
22287 -d, --debug don't remove temporary files
22288 --recheck update $as_me by reconfiguring in the same conditions
22289 --file=FILE[:TEMPLATE]
22290 instantiate the configuration file FILE
22291 --header=FILE[:TEMPLATE]
22292 instantiate the configuration header FILE
22294 Configuration files:
22295 $config_files
22297 Configuration headers:
22298 $config_headers
22300 Configuration commands:
22301 $config_commands
22303 Report bugs to the package provider."
22305 _ACEOF
22306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22307 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22308 ac_cs_version="\\
22309 emacs config.status 24.0.50
22310 configured by $0, generated by GNU Autoconf 2.65,
22311 with options \\"\$ac_cs_config\\"
22313 Copyright (C) 2009 Free Software Foundation, Inc.
22314 This config.status script is free software; the Free Software Foundation
22315 gives unlimited permission to copy, distribute and modify it."
22317 ac_pwd='$ac_pwd'
22318 srcdir='$srcdir'
22319 INSTALL='$INSTALL'
22320 MKDIR_P='$MKDIR_P'
22321 AWK='$AWK'
22322 test -n "\$AWK" || AWK=awk
22323 _ACEOF
22325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22326 # The default lists apply if the user does not specify any file.
22327 ac_need_defaults=:
22328 while test $# != 0
22330 case $1 in
22331 --*=*)
22332 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22333 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22334 ac_shift=:
22337 ac_option=$1
22338 ac_optarg=$2
22339 ac_shift=shift
22341 esac
22343 case $ac_option in
22344 # Handling of the options.
22345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22346 ac_cs_recheck=: ;;
22347 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22348 $as_echo "$ac_cs_version"; exit ;;
22349 --config | --confi | --conf | --con | --co | --c )
22350 $as_echo "$ac_cs_config"; exit ;;
22351 --debug | --debu | --deb | --de | --d | -d )
22352 debug=: ;;
22353 --file | --fil | --fi | --f )
22354 $ac_shift
22355 case $ac_optarg in
22356 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22357 esac
22358 as_fn_append CONFIG_FILES " '$ac_optarg'"
22359 ac_need_defaults=false;;
22360 --header | --heade | --head | --hea )
22361 $ac_shift
22362 case $ac_optarg in
22363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22364 esac
22365 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22366 ac_need_defaults=false;;
22367 --he | --h)
22368 # Conflict between --help and --header
22369 as_fn_error "ambiguous option: \`$1'
22370 Try \`$0 --help' for more information.";;
22371 --help | --hel | -h )
22372 $as_echo "$ac_cs_usage"; exit ;;
22373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22374 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22375 ac_cs_silent=: ;;
22377 # This is an error.
22378 -*) as_fn_error "unrecognized option: \`$1'
22379 Try \`$0 --help' for more information." ;;
22381 *) as_fn_append ac_config_targets " $1"
22382 ac_need_defaults=false ;;
22384 esac
22385 shift
22386 done
22388 ac_configure_extra_args=
22390 if $ac_cs_silent; then
22391 exec 6>/dev/null
22392 ac_configure_extra_args="$ac_configure_extra_args --silent"
22395 _ACEOF
22396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22397 if \$ac_cs_recheck; then
22398 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22399 shift
22400 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22401 CONFIG_SHELL='$SHELL'
22402 export CONFIG_SHELL
22403 exec "\$@"
22406 _ACEOF
22407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22408 exec 5>>config.log
22410 echo
22411 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22412 ## Running $as_me. ##
22413 _ASBOX
22414 $as_echo "$ac_log"
22415 } >&5
22417 _ACEOF
22418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22420 # INIT-COMMANDS
22422 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22423 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
22425 _ACEOF
22427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22429 # Handling of arguments.
22430 for ac_config_target in $ac_config_targets
22432 case $ac_config_target in
22433 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22434 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22435 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22436 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22437 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
22438 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22439 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
22440 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
22441 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
22442 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
22443 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22444 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22445 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22446 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22447 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
22448 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
22449 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
22450 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
22452 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22453 esac
22454 done
22457 # If the user did not use the arguments to specify the items to instantiate,
22458 # then the envvar interface is used. Set only those that are not.
22459 # We use the long form for the default assignment because of an extremely
22460 # bizarre bug on SunOS 4.1.3.
22461 if $ac_need_defaults; then
22462 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22463 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22464 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22467 # Have a temporary directory for convenience. Make it in the build tree
22468 # simply because there is no reason against having it here, and in addition,
22469 # creating and moving files from /tmp can sometimes cause problems.
22470 # Hook for its removal unless debugging.
22471 # Note that there is a small window in which the directory will not be cleaned:
22472 # after its creation but before its name has been assigned to `$tmp'.
22473 $debug ||
22475 tmp=
22476 trap 'exit_status=$?
22477 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22479 trap 'as_fn_exit 1' 1 2 13 15
22481 # Create a (secure) tmp directory for tmp files.
22484 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22485 test -n "$tmp" && test -d "$tmp"
22486 } ||
22488 tmp=./conf$$-$RANDOM
22489 (umask 077 && mkdir "$tmp")
22490 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22492 # Set up the scripts for CONFIG_FILES section.
22493 # No need to generate them if there are no CONFIG_FILES.
22494 # This happens for instance with `./config.status config.h'.
22495 if test -n "$CONFIG_FILES"; then
22497 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
22498 ac_cs_awk_getline=:
22499 ac_cs_awk_pipe_init=
22500 ac_cs_awk_read_file='
22501 while ((getline aline < (F[key])) > 0)
22502 print(aline)
22503 close(F[key])'
22504 ac_cs_awk_pipe_fini=
22505 else
22506 ac_cs_awk_getline=false
22507 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
22508 ac_cs_awk_read_file='
22509 print "|#_!!_#|"
22510 print "cat " F[key] " &&"
22511 '$ac_cs_awk_pipe_init
22512 # The final `:' finishes the AND list.
22513 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
22515 ac_cr=`echo X | tr X '\015'`
22516 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22517 # But we know of no other shell where ac_cr would be empty at this
22518 # point, so we can use a bashism as a fallback.
22519 if test "x$ac_cr" = x; then
22520 eval ac_cr=\$\'\\r\'
22522 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22523 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22524 ac_cs_awk_cr='\r'
22525 else
22526 ac_cs_awk_cr=$ac_cr
22529 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22530 _ACEOF
22532 # Create commands to substitute file output variables.
22534 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22535 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22536 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
22537 echo "_ACAWK" &&
22538 echo "_ACEOF"
22539 } >conf$$files.sh &&
22540 . ./conf$$files.sh ||
22541 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22542 rm -f conf$$files.sh
22545 echo "cat >conf$$subs.awk <<_ACEOF" &&
22546 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22547 echo "_ACEOF"
22548 } >conf$$subs.sh ||
22549 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22550 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22551 ac_delim='%!_!# '
22552 for ac_last_try in false false false false false :; do
22553 . ./conf$$subs.sh ||
22554 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22556 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22557 if test $ac_delim_n = $ac_delim_num; then
22558 break
22559 elif $ac_last_try; then
22560 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22561 else
22562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22564 done
22565 rm -f conf$$subs.sh
22567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22568 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22569 _ACEOF
22570 sed -n '
22572 s/^/S["/; s/!.*/"]=/
22575 s/^[^!]*!//
22576 :repl
22577 t repl
22578 s/'"$ac_delim"'$//
22579 t delim
22582 s/\(.\{148\}\)..*/\1/
22583 t more1
22584 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22587 b repl
22588 :more1
22589 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22592 s/.\{148\}//
22593 t nl
22594 :delim
22596 s/\(.\{148\}\)..*/\1/
22597 t more2
22598 s/["\\]/\\&/g; s/^/"/; s/$/"/
22601 :more2
22602 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22605 s/.\{148\}//
22606 t delim
22607 ' <conf$$subs.awk | sed '
22608 /^[^""]/{
22610 s/\n//
22612 ' >>$CONFIG_STATUS || ac_write_fail=1
22613 rm -f conf$$subs.awk
22614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22615 _ACAWK
22616 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22617 for (key in S) S_is_set[key] = 1
22618 FS = "\a"
22619 \$ac_cs_awk_pipe_init
22622 line = $ 0
22623 nfields = split(line, field, "@")
22624 substed = 0
22625 len = length(field[1])
22626 for (i = 2; i < nfields; i++) {
22627 key = field[i]
22628 keylen = length(key)
22629 if (S_is_set[key]) {
22630 value = S[key]
22631 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22632 len += length(value) + length(field[++i])
22633 substed = 1
22634 } else
22635 len += 1 + keylen
22637 if (nfields == 3 && !substed) {
22638 key = field[2]
22639 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22640 \$ac_cs_awk_read_file
22641 next
22644 print line
22646 \$ac_cs_awk_pipe_fini
22647 _ACAWK
22648 _ACEOF
22649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22650 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22651 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22652 else
22654 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22655 || as_fn_error "could not setup config files machinery" "$LINENO" 5
22656 _ACEOF
22658 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22659 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22660 # trailing colons and then remove the whole line if VPATH becomes empty
22661 # (actually we leave an empty line to preserve line numbers).
22662 if test "x$srcdir" = x.; then
22663 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22664 s/:*\$(srcdir):*/:/
22665 s/:*\${srcdir}:*/:/
22666 s/:*@srcdir@:*/:/
22667 s/^\([^=]*=[ ]*\):*/\1/
22668 s/:*$//
22669 s/^[^=]*=[ ]*$//
22673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22674 fi # test -n "$CONFIG_FILES"
22676 # Set up the scripts for CONFIG_HEADERS section.
22677 # No need to generate them if there are no CONFIG_HEADERS.
22678 # This happens for instance with `./config.status Makefile'.
22679 if test -n "$CONFIG_HEADERS"; then
22680 cat >"$tmp/defines.awk" <<\_ACAWK ||
22681 BEGIN {
22682 _ACEOF
22684 # Transform confdefs.h into an awk script `defines.awk', embedded as
22685 # here-document in config.status, that substitutes the proper values into
22686 # config.h.in to produce config.h.
22688 # Create a delimiter string that does not exist in confdefs.h, to ease
22689 # handling of long lines.
22690 ac_delim='%!_!# '
22691 for ac_last_try in false false :; do
22692 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22693 if test -z "$ac_t"; then
22694 break
22695 elif $ac_last_try; then
22696 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22697 else
22698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22700 done
22702 # For the awk script, D is an array of macro values keyed by name,
22703 # likewise P contains macro parameters if any. Preserve backslash
22704 # newline sequences.
22706 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22707 sed -n '
22708 s/.\{148\}/&'"$ac_delim"'/g
22709 t rset
22710 :rset
22711 s/^[ ]*#[ ]*define[ ][ ]*/ /
22712 t def
22714 :def
22715 s/\\$//
22716 t bsnl
22717 s/["\\]/\\&/g
22718 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22719 D["\1"]=" \3"/p
22720 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22722 :bsnl
22723 s/["\\]/\\&/g
22724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22725 D["\1"]=" \3\\\\\\n"\\/p
22726 t cont
22727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22728 t cont
22730 :cont
22732 s/.\{148\}/&'"$ac_delim"'/g
22733 t clear
22734 :clear
22735 s/\\$//
22736 t bsnlc
22737 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22739 :bsnlc
22740 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22741 b cont
22742 ' <confdefs.h | sed '
22743 s/'"$ac_delim"'/"\\\
22744 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22747 for (key in D) D_is_set[key] = 1
22748 FS = "\a"
22750 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22751 line = \$ 0
22752 split(line, arg, " ")
22753 if (arg[1] == "#") {
22754 defundef = arg[2]
22755 mac1 = arg[3]
22756 } else {
22757 defundef = substr(arg[1], 2)
22758 mac1 = arg[2]
22760 split(mac1, mac2, "(") #)
22761 macro = mac2[1]
22762 prefix = substr(line, 1, index(line, defundef) - 1)
22763 if (D_is_set[macro]) {
22764 # Preserve the white space surrounding the "#".
22765 print prefix "define", macro P[macro] D[macro]
22766 next
22767 } else {
22768 # Replace #undef with comments. This is necessary, for example,
22769 # in the case of _POSIX_SOURCE, which is predefined and required
22770 # on some systems where configure will not decide to define it.
22771 if (defundef == "undef") {
22772 print "/*", prefix defundef, macro, "*/"
22773 next
22777 { print }
22778 _ACAWK
22779 _ACEOF
22780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22781 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22782 fi # test -n "$CONFIG_HEADERS"
22785 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22786 shift
22787 for ac_tag
22789 case $ac_tag in
22790 :[FHLC]) ac_mode=$ac_tag; continue;;
22791 esac
22792 case $ac_mode$ac_tag in
22793 :[FHL]*:*);;
22794 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22795 :[FH]-) ac_tag=-:-;;
22796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22797 esac
22798 ac_save_IFS=$IFS
22799 IFS=:
22800 set x $ac_tag
22801 IFS=$ac_save_IFS
22802 shift
22803 ac_file=$1
22804 shift
22806 case $ac_mode in
22807 :L) ac_source=$1;;
22808 :[FH])
22809 ac_file_inputs=
22810 for ac_f
22812 case $ac_f in
22813 -) ac_f="$tmp/stdin";;
22814 *) # Look for the file first in the build tree, then in the source tree
22815 # (if the path is not absolute). The absolute path cannot be DOS-style,
22816 # because $ac_f cannot contain `:'.
22817 test -f "$ac_f" ||
22818 case $ac_f in
22819 [\\/$]*) false;;
22820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22821 esac ||
22822 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22823 esac
22824 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22825 as_fn_append ac_file_inputs " '$ac_f'"
22826 done
22828 # Let's still pretend it is `configure' which instantiates (i.e., don't
22829 # use $as_me), people would be surprised to read:
22830 # /* config.h. Generated by config.status. */
22831 configure_input='Generated from '`
22832 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22833 `' by configure.'
22834 if test x"$ac_file" != x-; then
22835 configure_input="$ac_file. $configure_input"
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22837 $as_echo "$as_me: creating $ac_file" >&6;}
22839 # Neutralize special characters interpreted by sed in replacement strings.
22840 case $configure_input in #(
22841 *\&* | *\|* | *\\* )
22842 ac_sed_conf_input=`$as_echo "$configure_input" |
22843 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22844 *) ac_sed_conf_input=$configure_input;;
22845 esac
22847 case $ac_tag in
22848 *:-:* | *:-) cat >"$tmp/stdin" \
22849 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22850 esac
22852 esac
22854 ac_dir=`$as_dirname -- "$ac_file" ||
22855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22856 X"$ac_file" : 'X\(//\)[^/]' \| \
22857 X"$ac_file" : 'X\(//\)$' \| \
22858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22859 $as_echo X"$ac_file" |
22860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22861 s//\1/
22864 /^X\(\/\/\)[^/].*/{
22865 s//\1/
22868 /^X\(\/\/\)$/{
22869 s//\1/
22872 /^X\(\/\).*/{
22873 s//\1/
22876 s/.*/./; q'`
22877 as_dir="$ac_dir"; as_fn_mkdir_p
22878 ac_builddir=.
22880 case "$ac_dir" in
22881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22883 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22884 # A ".." for each directory in $ac_dir_suffix.
22885 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22886 case $ac_top_builddir_sub in
22887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22889 esac ;;
22890 esac
22891 ac_abs_top_builddir=$ac_pwd
22892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22893 # for backward compatibility:
22894 ac_top_builddir=$ac_top_build_prefix
22896 case $srcdir in
22897 .) # We are building in place.
22898 ac_srcdir=.
22899 ac_top_srcdir=$ac_top_builddir_sub
22900 ac_abs_top_srcdir=$ac_pwd ;;
22901 [\\/]* | ?:[\\/]* ) # Absolute name.
22902 ac_srcdir=$srcdir$ac_dir_suffix;
22903 ac_top_srcdir=$srcdir
22904 ac_abs_top_srcdir=$srcdir ;;
22905 *) # Relative name.
22906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22907 ac_top_srcdir=$ac_top_build_prefix$srcdir
22908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22909 esac
22910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22913 case $ac_mode in
22916 # CONFIG_FILE
22919 case $INSTALL in
22920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22921 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22922 esac
22923 ac_MKDIR_P=$MKDIR_P
22924 case $MKDIR_P in
22925 [\\/$]* | ?:[\\/]* ) ;;
22926 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22927 esac
22928 _ACEOF
22930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22931 # If the template does not know about datarootdir, expand it.
22932 # FIXME: This hack should be removed a few years after 2.60.
22933 ac_datarootdir_hack=; ac_datarootdir_seen=
22934 ac_sed_dataroot='
22935 /datarootdir/ {
22939 /@datadir@/p
22940 /@docdir@/p
22941 /@infodir@/p
22942 /@localedir@/p
22943 /@mandir@/p'
22944 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22945 *datarootdir*) ac_datarootdir_seen=yes;;
22946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22948 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22949 _ACEOF
22950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22951 ac_datarootdir_hack='
22952 s&@datadir@&$datadir&g
22953 s&@docdir@&$docdir&g
22954 s&@infodir@&$infodir&g
22955 s&@localedir@&$localedir&g
22956 s&@mandir@&$mandir&g
22957 s&\\\${datarootdir}&$datarootdir&g' ;;
22958 esac
22959 _ACEOF
22961 # Neutralize VPATH when `$srcdir' = `.'.
22962 # Shell code in configure.ac might set extrasub.
22963 # FIXME: do we really want to maintain this feature?
22964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22965 ac_sed_extra="$ac_vpsub
22966 $extrasub
22967 _ACEOF
22968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22971 s|@configure_input@|$ac_sed_conf_input|;t t
22972 s&@top_builddir@&$ac_top_builddir_sub&;t t
22973 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22974 s&@srcdir@&$ac_srcdir&;t t
22975 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22976 s&@top_srcdir@&$ac_top_srcdir&;t t
22977 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22978 s&@builddir@&$ac_builddir&;t t
22979 s&@abs_builddir@&$ac_abs_builddir&;t t
22980 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22981 s&@INSTALL@&$ac_INSTALL&;t t
22982 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22983 $ac_datarootdir_hack
22985 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
22986 if $ac_cs_awk_getline; then
22987 $AWK -f "$tmp/subs.awk"
22988 else
22989 $AWK -f "$tmp/subs.awk" | $SHELL
22990 fi >$tmp/out \
22991 || as_fn_error "could not create $ac_file" "$LINENO" 5
22993 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22994 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22995 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22997 which seems to be undefined. Please make sure it is defined." >&5
22998 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22999 which seems to be undefined. Please make sure it is defined." >&2;}
23001 rm -f "$tmp/stdin"
23002 case $ac_file in
23003 -) cat "$tmp/out" && rm -f "$tmp/out";;
23004 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23005 esac \
23006 || as_fn_error "could not create $ac_file" "$LINENO" 5
23010 # CONFIG_HEADER
23012 if test x"$ac_file" != x-; then
23014 $as_echo "/* $configure_input */" \
23015 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23016 } >"$tmp/config.h" \
23017 || as_fn_error "could not create $ac_file" "$LINENO" 5
23018 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23020 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23021 else
23022 rm -f "$ac_file"
23023 mv "$tmp/config.h" "$ac_file" \
23024 || as_fn_error "could not create $ac_file" "$LINENO" 5
23026 else
23027 $as_echo "/* $configure_input */" \
23028 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23029 || as_fn_error "could not create -" "$LINENO" 5
23031 # Compute "$ac_file"'s index in $config_headers.
23032 _am_arg="$ac_file"
23033 _am_stamp_count=1
23034 for _am_header in $config_headers :; do
23035 case $_am_header in
23036 $_am_arg | $_am_arg:* )
23037 break ;;
23039 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23040 esac
23041 done
23042 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23043 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23044 X"$_am_arg" : 'X\(//\)[^/]' \| \
23045 X"$_am_arg" : 'X\(//\)$' \| \
23046 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23047 $as_echo X"$_am_arg" |
23048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23049 s//\1/
23052 /^X\(\/\/\)[^/].*/{
23053 s//\1/
23056 /^X\(\/\/\)$/{
23057 s//\1/
23060 /^X\(\/\).*/{
23061 s//\1/
23064 s/.*/./; q'`/stamp-h$_am_stamp_count
23067 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23068 $as_echo "$as_me: executing $ac_file commands" >&6;}
23070 esac
23073 case $ac_file$ac_mode in
23074 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23075 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23076 # are listed without --file. Let's play safe and only enable the eval
23077 # if we detect the quoting.
23078 case $CONFIG_FILES in
23079 *\'*) eval set x "$CONFIG_FILES" ;;
23080 *) set x $CONFIG_FILES ;;
23081 esac
23082 shift
23083 for mf
23085 # Strip MF so we end up with the name of the file.
23086 mf=`echo "$mf" | sed -e 's/:.*$//'`
23087 # Check whether this is an Automake generated Makefile or not.
23088 # We used to match only the files named `Makefile.in', but
23089 # some people rename them; so instead we look at the file content.
23090 # Grep'ing the first line is not enough: some people post-process
23091 # each Makefile.in and add a new line on top of each file to say so.
23092 # Grep'ing the whole file is not good either: AIX grep has a line
23093 # limit of 2048, but all sed's we know have understand at least 4000.
23094 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23095 dirpart=`$as_dirname -- "$mf" ||
23096 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23097 X"$mf" : 'X\(//\)[^/]' \| \
23098 X"$mf" : 'X\(//\)$' \| \
23099 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23100 $as_echo X"$mf" |
23101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23102 s//\1/
23105 /^X\(\/\/\)[^/].*/{
23106 s//\1/
23109 /^X\(\/\/\)$/{
23110 s//\1/
23113 /^X\(\/\).*/{
23114 s//\1/
23117 s/.*/./; q'`
23118 else
23119 continue
23121 # Extract the definition of DEPDIR, am__include, and am__quote
23122 # from the Makefile without running `make'.
23123 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23124 test -z "$DEPDIR" && continue
23125 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23126 test -z "am__include" && continue
23127 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23128 # When using ansi2knr, U may be empty or an underscore; expand it
23129 U=`sed -n 's/^U = //p' < "$mf"`
23130 # Find all dependency output files, they are included files with
23131 # $(DEPDIR) in their names. We invoke sed twice because it is the
23132 # simplest approach to changing $(DEPDIR) to its actual value in the
23133 # expansion.
23134 for file in `sed -n "
23135 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23136 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23137 # Make sure the directory exists.
23138 test -f "$dirpart/$file" && continue
23139 fdir=`$as_dirname -- "$file" ||
23140 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23141 X"$file" : 'X\(//\)[^/]' \| \
23142 X"$file" : 'X\(//\)$' \| \
23143 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23144 $as_echo X"$file" |
23145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23146 s//\1/
23149 /^X\(\/\/\)[^/].*/{
23150 s//\1/
23153 /^X\(\/\/\)$/{
23154 s//\1/
23157 /^X\(\/\).*/{
23158 s//\1/
23161 s/.*/./; q'`
23162 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23163 # echo "creating $dirpart/$file"
23164 echo '# dummy' > "$dirpart/$file"
23165 done
23166 done
23169 "mkdirs":C)
23170 for dir in etc lisp ; do
23171 test -d ${dir} || mkdir ${dir}
23172 done
23174 "epaths":C)
23175 echo creating src/epaths.h
23176 ${MAKE-make} epaths-force
23178 "gdbinit":C)
23179 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23180 echo creating src/.gdbinit
23181 echo source $srcdir/src/.gdbinit > src/.gdbinit
23185 esac
23186 done # for ac_tag
23189 as_fn_exit 0
23190 _ACEOF
23191 ac_clean_files=$ac_clean_files_save
23193 test $ac_write_fail = 0 ||
23194 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23197 # configure is writing to config.log, and then calls config.status.
23198 # config.status does its own redirection, appending to config.log.
23199 # Unfortunately, on DOS this fails, as config.log is still kept open
23200 # by configure, so config.status won't be able to write to it; its
23201 # output is simply discarded. So we exec the FD to /dev/null,
23202 # effectively closing config.log, so it can be properly (re)opened and
23203 # appended to by config.status. When coming back to configure, we
23204 # need to make the FD available again.
23205 if test "$no_create" != yes; then
23206 ac_cs_success=:
23207 ac_config_status_args=
23208 test "$silent" = yes &&
23209 ac_config_status_args="$ac_config_status_args --quiet"
23210 exec 5>/dev/null
23211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23212 exec 5>>config.log
23213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23214 # would make configure fail if this is the last instruction.
23215 $ac_cs_success || as_fn_exit $?
23217 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23219 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}