Add Bug#.
[emacs.git] / configure
blobeed1c70599e716156dda0c023ebf0b792b0f597d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 gl_getopt_required=POSIX
604 gl_getopt_required=POSIX
605 ac_func_list=
606 ac_subst_vars='gltests_LTLIBOBJS
607 gltests_LIBOBJS
608 gl_LTLIBOBJS
609 gl_LIBOBJS
610 am__EXEEXT_FALSE
611 am__EXEEXT_TRUE
612 LTLIBOBJS
613 LIBOBJS
614 WINDOW_SUPPORT
615 TOOLTIP_SUPPORT
616 MOUSE_SUPPORT
617 LIB_GCC
618 LD_FIRSTFLAG
619 LD_SWITCH_SYSTEM_TEMACS
620 POST_ALLOC_OBJ
621 PRE_ALLOC_OBJ
622 CYGWIN_OBJ
623 RALLOC_OBJ
624 OLDXMENU_DEPS
625 LIBX_OTHER
626 LIBXMENU
627 OLDXMENU
628 OLDXMENU_TARGET
629 LIBXT_OTHER
630 TOOLKIT_LIBW
631 WIDGET_OBJ
632 XOBJ
633 XMENU_OBJ
634 FONT_OBJ
635 OTHER_FILES
636 GNU_OBJC_CFLAGS
637 ns_appsrc
638 ns_appresdir
639 ns_appbindir
640 ns_appdir
641 S_FILE
642 M_FILE
643 X_TOOLKIT_TYPE
644 C_SWITCH_X_SYSTEM
645 C_SWITCH_X_SITE
646 LD_SWITCH_X_SITE
647 gameuser
648 gamedir
649 bitmapdir
650 archlibdir
651 etcdir
652 x_default_search_path
653 lisppath
654 locallisppath
655 lispdir
656 srcdir
657 canonical
658 configuration
659 version
660 KRB4LIB
661 DESLIB
662 KRB5LIB
663 CRYPTOLIB
664 COM_ERRLIB
665 LIBRESOLV
666 LIBHESIOD
667 TERMCAP_OBJ
668 LIBS_TERMCAP
669 LIBGNU_LTLIBDEPS
670 LIBGNU_LIBDEPS
671 gltests_WITNESS
672 HAVE_UNISTD_H
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674 NEXT_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
679 NEXT_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
681 NEXT_SYS_STAT_H
682 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
683 NEXT_STDLIB_H
684 STDINT_H
685 WINT_T_SUFFIX
686 WCHAR_T_SUFFIX
687 SIG_ATOMIC_T_SUFFIX
688 SIZE_T_SUFFIX
689 PTRDIFF_T_SUFFIX
690 HAVE_SIGNED_WINT_T
691 HAVE_SIGNED_WCHAR_T
692 HAVE_SIGNED_SIG_ATOMIC_T
693 BITSIZEOF_WINT_T
694 BITSIZEOF_WCHAR_T
695 BITSIZEOF_SIG_ATOMIC_T
696 BITSIZEOF_SIZE_T
697 BITSIZEOF_PTRDIFF_T
698 HAVE_SYS_BITYPES_H
699 HAVE_SYS_INTTYPES_H
700 HAVE_STDINT_H
701 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
702 NEXT_STDINT_H
703 HAVE_SYS_TYPES_H
704 HAVE_INTTYPES_H
705 HAVE_WCHAR_H
706 HAVE_UNSIGNED_LONG_LONG_INT
707 HAVE_LONG_LONG_INT
708 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
709 NEXT_STDDEF_H
710 STDDEF_H
711 HAVE_WCHAR_T
712 REPLACE_NULL
713 HAVE__BOOL
714 STDBOOL_H
715 APPLE_UNIVERSAL_BUILD
716 REPLACE_TIMEGM
717 REPLACE_NANOSLEEP
718 REPLACE_MKTIME
719 REPLACE_LOCALTIME_R
720 HAVE_TIMEGM
721 HAVE_STRPTIME
722 HAVE_NANOSLEEP
723 HAVE_DECL_LOCALTIME_R
724 GNULIB_TIME_R
725 GNULIB_TIMEGM
726 GNULIB_STRPTIME
727 GNULIB_NANOSLEEP
728 GNULIB_MKTIME
729 REPLACE_UTIMENSAT
730 REPLACE_STAT
731 REPLACE_MKNOD
732 REPLACE_MKFIFO
733 REPLACE_MKDIR
734 REPLACE_LSTAT
735 REPLACE_FUTIMENS
736 REPLACE_FSTATAT
737 REPLACE_FSTAT
738 HAVE_UTIMENSAT
739 HAVE_MKNODAT
740 HAVE_MKNOD
741 HAVE_MKFIFOAT
742 HAVE_MKFIFO
743 HAVE_MKDIRAT
744 HAVE_LSTAT
745 HAVE_LCHMOD
746 HAVE_FUTIMENS
747 HAVE_FSTATAT
748 HAVE_FCHMODAT
749 GNULIB_UTIMENSAT
750 GNULIB_STAT
751 GNULIB_MKNODAT
752 GNULIB_MKNOD
753 GNULIB_MKFIFOAT
754 GNULIB_MKFIFO
755 GNULIB_MKDIRAT
756 GNULIB_LSTAT
757 GNULIB_LCHMOD
758 GNULIB_FUTIMENS
759 GNULIB_FSTATAT
760 GNULIB_FCHMODAT
761 LTLIBINTL
762 LIBINTL
763 GETOPT_H
764 HAVE_GETOPT_H
765 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
766 NEXT_GETOPT_H
767 PRAGMA_COLUMNS
768 PRAGMA_SYSTEM_HEADER
769 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
770 INCLUDE_NEXT
771 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
772 UNISTD_H_HAVE_WINSOCK2_H
773 REPLACE_WRITE
774 REPLACE_USLEEP
775 REPLACE_UNLINKAT
776 REPLACE_UNLINK
777 REPLACE_TTYNAME_R
778 REPLACE_SYMLINK
779 REPLACE_SLEEP
780 REPLACE_RMDIR
781 REPLACE_READLINK
782 REPLACE_PWRITE
783 REPLACE_PREAD
784 REPLACE_LSEEK
785 REPLACE_LINKAT
786 REPLACE_LINK
787 REPLACE_LCHOWN
788 REPLACE_GETPAGESIZE
789 REPLACE_GETGROUPS
790 REPLACE_GETLOGIN_R
791 REPLACE_GETDOMAINNAME
792 REPLACE_GETCWD
793 REPLACE_FCHOWNAT
794 REPLACE_DUP2
795 REPLACE_DUP
796 REPLACE_CLOSE
797 REPLACE_CHOWN
798 HAVE_SYS_PARAM_H
799 HAVE_OS_H
800 HAVE_DECL_TTYNAME_R
801 HAVE_DECL_GETUSERSHELL
802 HAVE_DECL_GETPAGESIZE
803 HAVE_DECL_GETLOGIN_R
804 HAVE_DECL_GETDOMAINNAME
805 HAVE_DECL_FCHDIR
806 HAVE_DECL_ENVIRON
807 HAVE_USLEEP
808 HAVE_UNLINKAT
809 HAVE_SYMLINKAT
810 HAVE_SYMLINK
811 HAVE_SLEEP
812 HAVE_READLINKAT
813 HAVE_READLINK
814 HAVE_PWRITE
815 HAVE_PREAD
816 HAVE_PIPE2
817 HAVE_PIPE
818 HAVE_LINKAT
819 HAVE_LINK
820 HAVE_LCHOWN
821 HAVE_GETPAGESIZE
822 HAVE_GETLOGIN
823 HAVE_GETHOSTNAME
824 HAVE_GETGROUPS
825 HAVE_GETDTABLESIZE
826 HAVE_FTRUNCATE
827 HAVE_FSYNC
828 HAVE_FCHOWNAT
829 HAVE_FCHDIR
830 HAVE_FACCESSAT
831 HAVE_EUIDACCESS
832 HAVE_DUP3
833 HAVE_DUP2
834 HAVE_CHOWN
835 GNULIB_WRITE
836 GNULIB_USLEEP
837 GNULIB_UNLINKAT
838 GNULIB_UNLINK
839 GNULIB_UNISTD_H_SIGPIPE
840 GNULIB_UNISTD_H_GETOPT
841 GNULIB_TTYNAME_R
842 GNULIB_SYMLINKAT
843 GNULIB_SYMLINK
844 GNULIB_SLEEP
845 GNULIB_RMDIR
846 GNULIB_READLINKAT
847 GNULIB_READLINK
848 GNULIB_PWRITE
849 GNULIB_PREAD
850 GNULIB_PIPE2
851 GNULIB_PIPE
852 GNULIB_LSEEK
853 GNULIB_LINKAT
854 GNULIB_LINK
855 GNULIB_LCHOWN
856 GNULIB_GETUSERSHELL
857 GNULIB_GETPAGESIZE
858 GNULIB_GETLOGIN_R
859 GNULIB_GETLOGIN
860 GNULIB_GETHOSTNAME
861 GNULIB_GETGROUPS
862 GNULIB_GETDTABLESIZE
863 GNULIB_GETDOMAINNAME
864 GNULIB_GETCWD
865 GNULIB_FTRUNCATE
866 GNULIB_FSYNC
867 GNULIB_FCHOWNAT
868 GNULIB_FCHDIR
869 GNULIB_FACCESSAT
870 GNULIB_EUIDACCESS
871 GNULIB_ENVIRON
872 GNULIB_DUP3
873 GNULIB_DUP2
874 GNULIB_CLOSE
875 GNULIB_CHOWN
876 GETLOADAVG_LIBS
877 REPLACE_WCTOMB
878 REPLACE_UNSETENV
879 REPLACE_STRTOD
880 REPLACE_SETENV
881 REPLACE_REALPATH
882 REPLACE_REALLOC
883 REPLACE_PUTENV
884 REPLACE_MKSTEMP
885 REPLACE_MBTOWC
886 REPLACE_MALLOC
887 REPLACE_CANONICALIZE_FILE_NAME
888 REPLACE_CALLOC
889 HAVE_DECL_UNSETENV
890 HAVE_UNLOCKPT
891 HAVE_SYS_LOADAVG_H
892 HAVE_STRUCT_RANDOM_DATA
893 HAVE_STRTOULL
894 HAVE_STRTOLL
895 HAVE_STRTOD
896 HAVE_DECL_SETENV
897 HAVE_SETENV
898 HAVE_RPMATCH
899 HAVE_REALPATH
900 HAVE_RANDOM_R
901 HAVE_RANDOM_H
902 HAVE_PTSNAME
903 HAVE_MKSTEMPS
904 HAVE_MKSTEMP
905 HAVE_MKOSTEMPS
906 HAVE_MKOSTEMP
907 HAVE_MKDTEMP
908 HAVE_GRANTPT
909 HAVE_GETSUBOPT
910 HAVE_DECL_GETLOADAVG
911 HAVE_CANONICALIZE_FILE_NAME
912 HAVE_ATOLL
913 HAVE__EXIT
914 GNULIB_WCTOMB
915 GNULIB_UNSETENV
916 GNULIB_UNLOCKPT
917 GNULIB_SYSTEM_POSIX
918 GNULIB_STRTOULL
919 GNULIB_STRTOLL
920 GNULIB_STRTOD
921 GNULIB_SETENV
922 GNULIB_RPMATCH
923 GNULIB_REALPATH
924 GNULIB_REALLOC_POSIX
925 GNULIB_RANDOM_R
926 GNULIB_PUTENV
927 GNULIB_PTSNAME
928 GNULIB_MKSTEMPS
929 GNULIB_MKSTEMP
930 GNULIB_MKOSTEMPS
931 GNULIB_MKOSTEMP
932 GNULIB_MKDTEMP
933 GNULIB_MBTOWC
934 GNULIB_MALLOC_POSIX
935 GNULIB_GRANTPT
936 GNULIB_GETSUBOPT
937 GNULIB_GETLOADAVG
938 GNULIB_CANONICALIZE_FILE_NAME
939 GNULIB_CALLOC_POSIX
940 GNULIB_ATOLL
941 GNULIB__EXIT
942 GL_COND_LIBTOOL_FALSE
943 GL_COND_LIBTOOL_TRUE
944 BLESSMAIL_TARGET
945 LIBS_MAIL
946 liblockfile
947 ALLOCA
948 LIBXML2_LIBS
949 LIBXML2_CFLAGS
950 LIBXSM
951 LIBGPM
952 LIBGIF
953 LIBTIFF
954 LIBPNG
955 LIBJPEG
956 LIBXPM
957 M17N_FLT_LIBS
958 M17N_FLT_CFLAGS
959 LIBOTF_LIBS
960 LIBOTF_CFLAGS
961 FREETYPE_LIBS
962 FREETYPE_CFLAGS
963 XFT_LIBS
964 XFT_CFLAGS
965 FONTCONFIG_LIBS
966 FONTCONFIG_CFLAGS
967 LIBXMU
968 LIBXTR6
969 LIBGNUTLS_LIBS
970 LIBGNUTLS_CFLAGS
971 LIBSELINUX_LIBS
972 GCONF_LIBS
973 GCONF_CFLAGS
974 DBUS_OBJ
975 DBUS_LIBS
976 DBUS_CFLAGS
977 GTK_OBJ
978 GTK_LIBS
979 GTK_CFLAGS
980 IMAGEMAGICK_LIBS
981 IMAGEMAGICK_CFLAGS
982 RSVG_LIBS
983 RSVG_CFLAGS
984 VMLIMIT_OBJ
985 GMALLOC_OBJ
986 HAVE_XSERVER
987 LIB_STANDARD
988 NS_SUPPORT
989 NS_OBJC_OBJ
990 NS_OBJ
991 TEMACS_LDFLAGS2
992 LD_SWITCH_X_SITE_AUX_RPATH
993 LD_SWITCH_X_SITE_AUX
994 XMKMF
995 DEPFLAGS
996 MKDEPDIR
997 CFLAGS_SOUND
998 ALSA_LIBS
999 ALSA_CFLAGS
1000 PKG_CONFIG
1001 LIBSOUND
1002 START_FILES
1003 LIB_MATH
1004 CRT_DIR
1005 LIBS_SYSTEM
1006 C_SWITCH_SYSTEM
1007 UNEXEC_OBJ
1008 C_SWITCH_MACHINE
1009 LD_SWITCH_SYSTEM
1010 CANNOT_DUMP
1011 HAVE_MAKEINFO
1012 GZIP_PROG
1013 INSTALL_INFO
1014 C_WARNINGS_SWITCH
1015 EGREP
1016 GREP
1018 RANLIB
1019 am__fastdepCC_FALSE
1020 am__fastdepCC_TRUE
1021 CCDEPMODE
1022 AMDEPBACKSLASH
1023 AMDEP_FALSE
1024 AMDEP_TRUE
1025 am__quote
1026 am__include
1027 DEPDIR
1028 OBJEXT
1029 EXEEXT
1030 ac_ct_CC
1031 CPPFLAGS
1032 LDFLAGS
1033 CFLAGS
1035 host_os
1036 host_vendor
1037 host_cpu
1038 host
1039 build_os
1040 build_vendor
1041 build_cpu
1042 build
1043 PROFILING_CFLAGS
1044 MAINT
1045 GZIP_INFO
1046 am__untar
1047 am__tar
1048 AMTAR
1049 am__leading_dot
1050 SET_MAKE
1052 mkdir_p
1053 MKDIR_P
1054 INSTALL_STRIP_PROGRAM
1055 STRIP
1056 install_sh
1057 MAKEINFO
1058 AUTOHEADER
1059 AUTOMAKE
1060 AUTOCONF
1061 ACLOCAL
1062 VERSION
1063 PACKAGE
1064 CYGPATH_W
1065 am__isrc
1066 INSTALL_DATA
1067 INSTALL_SCRIPT
1068 INSTALL_PROGRAM
1069 target_alias
1070 host_alias
1071 build_alias
1072 LIBS
1073 ECHO_T
1074 ECHO_N
1075 ECHO_C
1076 DEFS
1077 mandir
1078 localedir
1079 libdir
1080 psdir
1081 pdfdir
1082 dvidir
1083 htmldir
1084 infodir
1085 docdir
1086 oldincludedir
1087 includedir
1088 localstatedir
1089 sharedstatedir
1090 sysconfdir
1091 datadir
1092 datarootdir
1093 libexecdir
1094 sbindir
1095 bindir
1096 program_transform_name
1097 prefix
1098 exec_prefix
1099 PACKAGE_URL
1100 PACKAGE_BUGREPORT
1101 PACKAGE_STRING
1102 PACKAGE_VERSION
1103 PACKAGE_TARNAME
1104 PACKAGE_NAME
1105 PATH_SEPARATOR
1106 SHELL'
1107 ac_subst_files='deps_frag
1108 ns_frag'
1109 ac_user_opts='
1110 enable_option_checking
1111 with_pop
1112 with_kerberos
1113 with_kerberos5
1114 with_hesiod
1115 with_mmdf
1116 with_mail_unlink
1117 with_mailhost
1118 with_sound
1119 with_sync_input
1120 with_x_toolkit
1121 with_xpm
1122 with_jpeg
1123 with_tiff
1124 with_gif
1125 with_png
1126 with_rsvg
1127 with_xml2
1128 with_imagemagick
1129 with_xft
1130 with_libotf
1131 with_m17n_flt
1132 with_toolkit_scroll_bars
1133 with_xaw3d
1134 with_xim
1135 with_ns
1136 with_gpm
1137 with_dbus
1138 with_gconf
1139 with_selinux
1140 with_gnutls
1141 with_makeinfo
1142 with_compress_info
1143 with_pkg_config_prog
1144 with_crt_dir
1145 with_gameuser
1146 with_gnustep_conf
1147 enable_ns_self_contained
1148 enable_asserts
1149 enable_maintainer_mode
1150 enable_locallisppath
1151 enable_checking
1152 enable_use_lisp_union_type
1153 enable_profiling
1154 enable_autodepend
1155 enable_dependency_tracking
1156 enable_largefile
1157 with_x
1159 ac_precious_vars='build_alias
1160 host_alias
1161 target_alias
1163 CFLAGS
1164 LDFLAGS
1165 LIBS
1166 CPPFLAGS
1168 XMKMF'
1171 # Initialize some variables set by options.
1172 ac_init_help=
1173 ac_init_version=false
1174 ac_unrecognized_opts=
1175 ac_unrecognized_sep=
1176 # The variables have the same names as the options, with
1177 # dashes changed to underlines.
1178 cache_file=/dev/null
1179 exec_prefix=NONE
1180 no_create=
1181 no_recursion=
1182 prefix=NONE
1183 program_prefix=NONE
1184 program_suffix=NONE
1185 program_transform_name=s,x,x,
1186 silent=
1187 site=
1188 srcdir=
1189 verbose=
1190 x_includes=NONE
1191 x_libraries=NONE
1193 # Installation directory options.
1194 # These are left unexpanded so users can "make install exec_prefix=/foo"
1195 # and all the variables that are supposed to be based on exec_prefix
1196 # by default will actually change.
1197 # Use braces instead of parens because sh, perl, etc. also accept them.
1198 # (The list follows the same order as the GNU Coding Standards.)
1199 bindir='${exec_prefix}/bin'
1200 sbindir='${exec_prefix}/sbin'
1201 libexecdir='${exec_prefix}/libexec'
1202 datarootdir='${prefix}/share'
1203 datadir='${datarootdir}'
1204 sysconfdir='${prefix}/etc'
1205 sharedstatedir='${prefix}/com'
1206 localstatedir='${prefix}/var'
1207 includedir='${prefix}/include'
1208 oldincludedir='/usr/include'
1209 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1210 infodir='${datarootdir}/info'
1211 htmldir='${docdir}'
1212 dvidir='${docdir}'
1213 pdfdir='${docdir}'
1214 psdir='${docdir}'
1215 libdir='${exec_prefix}/lib'
1216 localedir='${datarootdir}/locale'
1217 mandir='${datarootdir}/man'
1219 ac_prev=
1220 ac_dashdash=
1221 for ac_option
1223 # If the previous option needs an argument, assign it.
1224 if test -n "$ac_prev"; then
1225 eval $ac_prev=\$ac_option
1226 ac_prev=
1227 continue
1230 case $ac_option in
1231 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1232 *=) ac_optarg= ;;
1233 *) ac_optarg=yes ;;
1234 esac
1236 # Accept the important Cygnus configure options, so we can diagnose typos.
1238 case $ac_dashdash$ac_option in
1240 ac_dashdash=yes ;;
1242 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1243 ac_prev=bindir ;;
1244 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1245 bindir=$ac_optarg ;;
1247 -build | --build | --buil | --bui | --bu)
1248 ac_prev=build_alias ;;
1249 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1250 build_alias=$ac_optarg ;;
1252 -cache-file | --cache-file | --cache-fil | --cache-fi \
1253 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1254 ac_prev=cache_file ;;
1255 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1256 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1257 cache_file=$ac_optarg ;;
1259 --config-cache | -C)
1260 cache_file=config.cache ;;
1262 -datadir | --datadir | --datadi | --datad)
1263 ac_prev=datadir ;;
1264 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1265 datadir=$ac_optarg ;;
1267 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1268 | --dataroo | --dataro | --datar)
1269 ac_prev=datarootdir ;;
1270 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1271 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1272 datarootdir=$ac_optarg ;;
1274 -disable-* | --disable-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error $? "invalid feature name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1283 "enable_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval enable_$ac_useropt=no ;;
1290 -docdir | --docdir | --docdi | --doc | --do)
1291 ac_prev=docdir ;;
1292 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1293 docdir=$ac_optarg ;;
1295 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1296 ac_prev=dvidir ;;
1297 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1298 dvidir=$ac_optarg ;;
1300 -enable-* | --enable-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 as_fn_error $? "invalid feature name: $ac_useropt"
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1309 "enable_$ac_useropt"
1310 "*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval enable_$ac_useropt=\$ac_optarg ;;
1316 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1317 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1318 | --exec | --exe | --ex)
1319 ac_prev=exec_prefix ;;
1320 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1321 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1322 | --exec=* | --exe=* | --ex=*)
1323 exec_prefix=$ac_optarg ;;
1325 -gas | --gas | --ga | --g)
1326 # Obsolete; use --with-gas.
1327 with_gas=yes ;;
1329 -help | --help | --hel | --he | -h)
1330 ac_init_help=long ;;
1331 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1332 ac_init_help=recursive ;;
1333 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1334 ac_init_help=short ;;
1336 -host | --host | --hos | --ho)
1337 ac_prev=host_alias ;;
1338 -host=* | --host=* | --hos=* | --ho=*)
1339 host_alias=$ac_optarg ;;
1341 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1342 ac_prev=htmldir ;;
1343 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1344 | --ht=*)
1345 htmldir=$ac_optarg ;;
1347 -includedir | --includedir | --includedi | --included | --include \
1348 | --includ | --inclu | --incl | --inc)
1349 ac_prev=includedir ;;
1350 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1351 | --includ=* | --inclu=* | --incl=* | --inc=*)
1352 includedir=$ac_optarg ;;
1354 -infodir | --infodir | --infodi | --infod | --info | --inf)
1355 ac_prev=infodir ;;
1356 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1357 infodir=$ac_optarg ;;
1359 -libdir | --libdir | --libdi | --libd)
1360 ac_prev=libdir ;;
1361 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1362 libdir=$ac_optarg ;;
1364 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1365 | --libexe | --libex | --libe)
1366 ac_prev=libexecdir ;;
1367 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1368 | --libexe=* | --libex=* | --libe=*)
1369 libexecdir=$ac_optarg ;;
1371 -localedir | --localedir | --localedi | --localed | --locale)
1372 ac_prev=localedir ;;
1373 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1374 localedir=$ac_optarg ;;
1376 -localstatedir | --localstatedir | --localstatedi | --localstated \
1377 | --localstate | --localstat | --localsta | --localst | --locals)
1378 ac_prev=localstatedir ;;
1379 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1380 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1381 localstatedir=$ac_optarg ;;
1383 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1384 ac_prev=mandir ;;
1385 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1386 mandir=$ac_optarg ;;
1388 -nfp | --nfp | --nf)
1389 # Obsolete; use --without-fp.
1390 with_fp=no ;;
1392 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1393 | --no-cr | --no-c | -n)
1394 no_create=yes ;;
1396 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1397 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1398 no_recursion=yes ;;
1400 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1401 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1402 | --oldin | --oldi | --old | --ol | --o)
1403 ac_prev=oldincludedir ;;
1404 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1405 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1406 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1407 oldincludedir=$ac_optarg ;;
1409 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1410 ac_prev=prefix ;;
1411 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1412 prefix=$ac_optarg ;;
1414 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1415 | --program-pre | --program-pr | --program-p)
1416 ac_prev=program_prefix ;;
1417 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1418 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1419 program_prefix=$ac_optarg ;;
1421 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1422 | --program-suf | --program-su | --program-s)
1423 ac_prev=program_suffix ;;
1424 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1425 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1426 program_suffix=$ac_optarg ;;
1428 -program-transform-name | --program-transform-name \
1429 | --program-transform-nam | --program-transform-na \
1430 | --program-transform-n | --program-transform- \
1431 | --program-transform | --program-transfor \
1432 | --program-transfo | --program-transf \
1433 | --program-trans | --program-tran \
1434 | --progr-tra | --program-tr | --program-t)
1435 ac_prev=program_transform_name ;;
1436 -program-transform-name=* | --program-transform-name=* \
1437 | --program-transform-nam=* | --program-transform-na=* \
1438 | --program-transform-n=* | --program-transform-=* \
1439 | --program-transform=* | --program-transfor=* \
1440 | --program-transfo=* | --program-transf=* \
1441 | --program-trans=* | --program-tran=* \
1442 | --progr-tra=* | --program-tr=* | --program-t=*)
1443 program_transform_name=$ac_optarg ;;
1445 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1446 ac_prev=pdfdir ;;
1447 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1448 pdfdir=$ac_optarg ;;
1450 -psdir | --psdir | --psdi | --psd | --ps)
1451 ac_prev=psdir ;;
1452 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1453 psdir=$ac_optarg ;;
1455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1456 | -silent | --silent | --silen | --sile | --sil)
1457 silent=yes ;;
1459 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1460 ac_prev=sbindir ;;
1461 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1462 | --sbi=* | --sb=*)
1463 sbindir=$ac_optarg ;;
1465 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1466 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1467 | --sharedst | --shareds | --shared | --share | --shar \
1468 | --sha | --sh)
1469 ac_prev=sharedstatedir ;;
1470 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1471 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1472 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1473 | --sha=* | --sh=*)
1474 sharedstatedir=$ac_optarg ;;
1476 -site | --site | --sit)
1477 ac_prev=site ;;
1478 -site=* | --site=* | --sit=*)
1479 site=$ac_optarg ;;
1481 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1482 ac_prev=srcdir ;;
1483 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1484 srcdir=$ac_optarg ;;
1486 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1487 | --syscon | --sysco | --sysc | --sys | --sy)
1488 ac_prev=sysconfdir ;;
1489 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1490 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1491 sysconfdir=$ac_optarg ;;
1493 -target | --target | --targe | --targ | --tar | --ta | --t)
1494 ac_prev=target_alias ;;
1495 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1496 target_alias=$ac_optarg ;;
1498 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1499 verbose=yes ;;
1501 -version | --version | --versio | --versi | --vers | -V)
1502 ac_init_version=: ;;
1504 -with-* | --with-*)
1505 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1506 # Reject names that are not valid shell variable names.
1507 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1508 as_fn_error $? "invalid package name: $ac_useropt"
1509 ac_useropt_orig=$ac_useropt
1510 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1511 case $ac_user_opts in
1513 "with_$ac_useropt"
1514 "*) ;;
1515 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1516 ac_unrecognized_sep=', ';;
1517 esac
1518 eval with_$ac_useropt=\$ac_optarg ;;
1520 -without-* | --without-*)
1521 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1522 # Reject names that are not valid shell variable names.
1523 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1524 as_fn_error $? "invalid package name: $ac_useropt"
1525 ac_useropt_orig=$ac_useropt
1526 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527 case $ac_user_opts in
1529 "with_$ac_useropt"
1530 "*) ;;
1531 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1532 ac_unrecognized_sep=', ';;
1533 esac
1534 eval with_$ac_useropt=no ;;
1536 --x)
1537 # Obsolete; use --with-x.
1538 with_x=yes ;;
1540 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1541 | --x-incl | --x-inc | --x-in | --x-i)
1542 ac_prev=x_includes ;;
1543 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1544 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1545 x_includes=$ac_optarg ;;
1547 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1548 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1549 ac_prev=x_libraries ;;
1550 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1551 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1552 x_libraries=$ac_optarg ;;
1554 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1555 Try \`$0 --help' for more information"
1558 *=*)
1559 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1560 # Reject names that are not valid shell variable names.
1561 case $ac_envvar in #(
1562 '' | [0-9]* | *[!_$as_cr_alnum]* )
1563 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1564 esac
1565 eval $ac_envvar=\$ac_optarg
1566 export $ac_envvar ;;
1569 # FIXME: should be removed in autoconf 3.0.
1570 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1571 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1572 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1573 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1576 esac
1577 done
1579 if test -n "$ac_prev"; then
1580 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1581 as_fn_error $? "missing argument to $ac_option"
1584 if test -n "$ac_unrecognized_opts"; then
1585 case $enable_option_checking in
1586 no) ;;
1587 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1588 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1589 esac
1592 # Check all directory arguments for consistency.
1593 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1594 datadir sysconfdir sharedstatedir localstatedir includedir \
1595 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1596 libdir localedir mandir
1598 eval ac_val=\$$ac_var
1599 # Remove trailing slashes.
1600 case $ac_val in
1601 */ )
1602 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1603 eval $ac_var=\$ac_val;;
1604 esac
1605 # Be sure to have absolute directory names.
1606 case $ac_val in
1607 [\\/$]* | ?:[\\/]* ) continue;;
1608 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1609 esac
1610 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1611 done
1613 # There might be people who depend on the old broken behavior: `$host'
1614 # used to hold the argument of --host etc.
1615 # FIXME: To remove some day.
1616 build=$build_alias
1617 host=$host_alias
1618 target=$target_alias
1620 # FIXME: To remove some day.
1621 if test "x$host_alias" != x; then
1622 if test "x$build_alias" = x; then
1623 cross_compiling=maybe
1624 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1625 If a cross compiler is detected then cross compile mode will be used" >&2
1626 elif test "x$build_alias" != "x$host_alias"; then
1627 cross_compiling=yes
1631 ac_tool_prefix=
1632 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1634 test "$silent" = yes && exec 6>/dev/null
1637 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1638 ac_ls_di=`ls -di .` &&
1639 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1640 as_fn_error $? "working directory cannot be determined"
1641 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1642 as_fn_error $? "pwd does not report name of working directory"
1645 # Find the source files, if location was not specified.
1646 if test -z "$srcdir"; then
1647 ac_srcdir_defaulted=yes
1648 # Try the directory containing this script, then the parent directory.
1649 ac_confdir=`$as_dirname -- "$as_myself" ||
1650 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1651 X"$as_myself" : 'X\(//\)[^/]' \| \
1652 X"$as_myself" : 'X\(//\)$' \| \
1653 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1654 $as_echo X"$as_myself" |
1655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1656 s//\1/
1659 /^X\(\/\/\)[^/].*/{
1660 s//\1/
1663 /^X\(\/\/\)$/{
1664 s//\1/
1667 /^X\(\/\).*/{
1668 s//\1/
1671 s/.*/./; q'`
1672 srcdir=$ac_confdir
1673 if test ! -r "$srcdir/$ac_unique_file"; then
1674 srcdir=..
1676 else
1677 ac_srcdir_defaulted=no
1679 if test ! -r "$srcdir/$ac_unique_file"; then
1680 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1681 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1683 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1684 ac_abs_confdir=`(
1685 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1686 pwd)`
1687 # When building in place, set srcdir=.
1688 if test "$ac_abs_confdir" = "$ac_pwd"; then
1689 srcdir=.
1691 # Remove unnecessary trailing slashes from srcdir.
1692 # Double slashes in file names in object file debugging info
1693 # mess up M-x gdb in Emacs.
1694 case $srcdir in
1695 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1696 esac
1697 for ac_var in $ac_precious_vars; do
1698 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1699 eval ac_env_${ac_var}_value=\$${ac_var}
1700 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1701 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1702 done
1705 # Report the --help message.
1707 if test "$ac_init_help" = "long"; then
1708 # Omit some internal or obsolete options to make the list less imposing.
1709 # This message is too long to be a string in the A/UX 3.1 sh.
1710 cat <<_ACEOF
1711 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1713 Usage: $0 [OPTION]... [VAR=VALUE]...
1715 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1716 VAR=VALUE. See below for descriptions of some of the useful variables.
1718 Defaults for the options are specified in brackets.
1720 Configuration:
1721 -h, --help display this help and exit
1722 --help=short display options specific to this package
1723 --help=recursive display the short help of all the included packages
1724 -V, --version display version information and exit
1725 -q, --quiet, --silent do not print \`checking ...' messages
1726 --cache-file=FILE cache test results in FILE [disabled]
1727 -C, --config-cache alias for \`--cache-file=config.cache'
1728 -n, --no-create do not create output files
1729 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1731 Installation directories:
1732 --prefix=PREFIX install architecture-independent files in PREFIX
1733 [$ac_default_prefix]
1734 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1735 [PREFIX]
1737 By default, \`make install' will install all the files in
1738 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1739 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1740 for instance \`--prefix=\$HOME'.
1742 For better control, use the options below.
1744 Fine tuning of the installation directories:
1745 --bindir=DIR user executables [EPREFIX/bin]
1746 --sbindir=DIR system admin executables [EPREFIX/sbin]
1747 --libexecdir=DIR program executables [EPREFIX/libexec]
1748 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1749 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1750 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1751 --libdir=DIR object code libraries [EPREFIX/lib]
1752 --includedir=DIR C header files [PREFIX/include]
1753 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1754 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1755 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1756 --infodir=DIR info documentation [DATAROOTDIR/info]
1757 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1758 --mandir=DIR man documentation [DATAROOTDIR/man]
1759 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1760 --htmldir=DIR html documentation [DOCDIR]
1761 --dvidir=DIR dvi documentation [DOCDIR]
1762 --pdfdir=DIR pdf documentation [DOCDIR]
1763 --psdir=DIR ps documentation [DOCDIR]
1764 _ACEOF
1766 cat <<\_ACEOF
1768 Program names:
1769 --program-prefix=PREFIX prepend PREFIX to installed program names
1770 --program-suffix=SUFFIX append SUFFIX to installed program names
1771 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1773 X features:
1774 --x-includes=DIR X include files are in DIR
1775 --x-libraries=DIR X library files are in DIR
1777 System types:
1778 --build=BUILD configure for building on BUILD [guessed]
1779 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1780 _ACEOF
1783 if test -n "$ac_init_help"; then
1784 case $ac_init_help in
1785 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1786 esac
1787 cat <<\_ACEOF
1789 Optional Features:
1790 --disable-option-checking ignore unrecognized --enable/--with options
1791 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1792 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1793 --disable-ns-self-contained
1794 disable self contained build under NeXTstep
1795 --enable-asserts compile code with asserts enabled
1796 --enable-maintainer-mode
1797 enable make rules and dependencies not useful (and
1798 sometimes confusing) to the casual installer
1799 --enable-locallisppath=PATH
1800 directories Emacs should search for lisp files
1801 specific to this site
1802 --enable-checking[=LIST]
1803 enable expensive run-time checks. With LIST, enable
1804 only specific categories of checks. Categories are:
1805 all,yes,no. Flags are: stringbytes, stringoverrun,
1806 stringfreelist, xmallocoverrun, conslist
1807 --enable-use-lisp-union-type
1808 use a union for the Lisp_Object data type. This is
1809 only useful for development for catching certain
1810 types of bugs.
1811 --enable-profiling build emacs with profiling support. This might not
1812 work on all platforms
1813 --enable-autodepend automatically generate dependencies to .h-files.
1814 Requires GNU Make and Gcc. Enabled if GNU Make and
1815 Gcc is found
1816 --disable-dependency-tracking speeds up one-time build
1817 --enable-dependency-tracking do not reject slow dependency extractors
1818 --disable-largefile omit support for large files
1820 Optional Packages:
1821 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1822 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1823 --without-pop don't support POP mail retrieval with movemail
1824 --with-kerberos support Kerberos-authenticated POP
1825 --with-kerberos5 support Kerberos version 5 authenticated POP
1826 --with-hesiod support Hesiod to get the POP server host
1827 --with-mmdf support MMDF mailboxes
1828 --with-mail-unlink unlink, rather than empty, mail spool after reading
1829 --with-mailhost=HOSTNAME
1830 string giving default POP mail host
1831 --without-sound don't compile with sound support
1832 --without-sync-input process async input synchronously
1833 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1834 lucid or athena, motif, no)
1835 --without-xpm don't compile with XPM image support
1836 --without-jpeg don't compile with JPEG image support
1837 --without-tiff don't compile with TIFF image support
1838 --without-gif don't compile with GIF image support
1839 --without-png don't compile with PNG image support
1840 --without-rsvg don't compile with SVG image support
1841 --without-xml2 don't compile with XML parsing support
1842 --without-imagemagick don't compile with ImageMagick image support
1843 --without-xft don't use XFT for anti aliased fonts
1844 --without-libotf don't use libotf for OpenType font support
1845 --without-m17n-flt don't use m17n-flt for text shaping
1846 --without-toolkit-scroll-bars
1847 don't use Motif or Xaw3d scroll bars
1848 --without-xaw3d don't use Xaw3d
1849 --without-xim don't use X11 XIM
1850 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1851 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1852 console
1853 --without-dbus don't compile with D-Bus support
1854 --without-gconf don't compile with GConf support
1855 --without-selinux don't compile with SELinux support
1856 --without-gnutls don't use -lgnutls for SSL/TLS support
1857 --without-makeinfo don't require makeinfo for building manuals
1858 --without-compress-info don't compress the installed Info pages
1859 --with-pkg-config-prog=PATH
1860 path to pkg-config for finding GTK and librsvg
1861 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1862 /usr/lib, or /usr/lib64 on some platforms.
1863 --with-gameuser=USER user for shared game score files
1864 --with-gnustep-conf=PATH
1865 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1866 or /etc/GNUstep/GNUstep.conf
1867 --with-x use the X Window System
1869 Some influential environment variables:
1870 CC C compiler command
1871 CFLAGS C compiler flags
1872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1873 nonstandard directory <lib dir>
1874 LIBS libraries to pass to the linker, e.g. -l<library>
1875 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1876 you have headers in a nonstandard directory <include dir>
1877 CPP C preprocessor
1878 XMKMF Path to xmkmf, Makefile generator for X Window System
1880 Use these variables to override the choices made by `configure' or to help
1881 it to find libraries and programs with nonstandard names/locations.
1883 Report bugs to the package provider.
1884 _ACEOF
1885 ac_status=$?
1888 if test "$ac_init_help" = "recursive"; then
1889 # If there are subdirs, report their specific --help.
1890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1891 test -d "$ac_dir" ||
1892 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1893 continue
1894 ac_builddir=.
1896 case "$ac_dir" in
1897 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1899 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1900 # A ".." for each directory in $ac_dir_suffix.
1901 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1902 case $ac_top_builddir_sub in
1903 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1904 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1905 esac ;;
1906 esac
1907 ac_abs_top_builddir=$ac_pwd
1908 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1909 # for backward compatibility:
1910 ac_top_builddir=$ac_top_build_prefix
1912 case $srcdir in
1913 .) # We are building in place.
1914 ac_srcdir=.
1915 ac_top_srcdir=$ac_top_builddir_sub
1916 ac_abs_top_srcdir=$ac_pwd ;;
1917 [\\/]* | ?:[\\/]* ) # Absolute name.
1918 ac_srcdir=$srcdir$ac_dir_suffix;
1919 ac_top_srcdir=$srcdir
1920 ac_abs_top_srcdir=$srcdir ;;
1921 *) # Relative name.
1922 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1923 ac_top_srcdir=$ac_top_build_prefix$srcdir
1924 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1925 esac
1926 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1928 cd "$ac_dir" || { ac_status=$?; continue; }
1929 # Check for guested configure.
1930 if test -f "$ac_srcdir/configure.gnu"; then
1931 echo &&
1932 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1933 elif test -f "$ac_srcdir/configure"; then
1934 echo &&
1935 $SHELL "$ac_srcdir/configure" --help=recursive
1936 else
1937 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1938 fi || ac_status=$?
1939 cd "$ac_pwd" || { ac_status=$?; break; }
1940 done
1943 test -n "$ac_init_help" && exit $ac_status
1944 if $ac_init_version; then
1945 cat <<\_ACEOF
1946 emacs configure 24.0.50
1947 generated by GNU Autoconf 2.68
1949 Copyright (C) 2010 Free Software Foundation, Inc.
1950 This configure script is free software; the Free Software Foundation
1951 gives unlimited permission to copy, distribute and modify it.
1952 _ACEOF
1953 exit
1956 ## ------------------------ ##
1957 ## Autoconf initialization. ##
1958 ## ------------------------ ##
1960 # ac_fn_c_try_compile LINENO
1961 # --------------------------
1962 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_c_try_compile ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 rm -f conftest.$ac_objext
1967 if { { ac_try="$ac_compile"
1968 case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_compile") 2>conftest.err
1975 ac_status=$?
1976 if test -s conftest.err; then
1977 grep -v '^ *+' conftest.err >conftest.er1
1978 cat conftest.er1 >&5
1979 mv -f conftest.er1 conftest.err
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && {
1983 test -z "$ac_c_werror_flag" ||
1984 test ! -s conftest.err
1985 } && test -s conftest.$ac_objext; then :
1986 ac_retval=0
1987 else
1988 $as_echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 ac_retval=1
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 as_fn_set_status $ac_retval
1996 } # ac_fn_c_try_compile
1998 # ac_fn_c_try_cpp LINENO
1999 # ----------------------
2000 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2001 ac_fn_c_try_cpp ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if { { ac_try="$ac_cpp conftest.$ac_ext"
2005 case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2012 ac_status=$?
2013 if test -s conftest.err; then
2014 grep -v '^ *+' conftest.err >conftest.er1
2015 cat conftest.er1 >&5
2016 mv -f conftest.er1 conftest.err
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } > conftest.i && {
2020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2021 test ! -s conftest.err
2022 }; then :
2023 ac_retval=0
2024 else
2025 $as_echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2028 ac_retval=1
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2033 } # ac_fn_c_try_cpp
2035 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2038 # the include files in INCLUDES and setting the cache variable VAR
2039 # accordingly.
2040 ac_fn_c_check_header_mongrel ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if eval \${$3+:} false; then :
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if eval \${$3+:} false; then :
2047 $as_echo_n "(cached) " >&6
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 else
2053 # Is the header compilable?
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2055 $as_echo_n "checking $2 usability... " >&6; }
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2059 #include <$2>
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_header_compiler=yes
2063 else
2064 ac_header_compiler=no
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2068 $as_echo "$ac_header_compiler" >&6; }
2070 # Is the header present?
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2072 $as_echo_n "checking $2 presence... " >&6; }
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 #include <$2>
2076 _ACEOF
2077 if ac_fn_c_try_cpp "$LINENO"; then :
2078 ac_header_preproc=yes
2079 else
2080 ac_header_preproc=no
2082 rm -f conftest.err conftest.i conftest.$ac_ext
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2084 $as_echo "$ac_header_preproc" >&6; }
2086 # So? What about this header?
2087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2088 yes:no: )
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2090 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2094 no:yes:* )
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2096 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2098 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2100 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2102 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2104 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2106 esac
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2111 else
2112 eval "$3=\$ac_header_compiler"
2114 eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120 } # ac_fn_c_check_header_mongrel
2122 # ac_fn_c_try_run LINENO
2123 # ----------------------
2124 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2125 # that executables *can* be run.
2126 ac_fn_c_try_run ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 if { { ac_try="$ac_link"
2130 case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_link") 2>&5
2137 ac_status=$?
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2140 { { case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_try") 2>&5
2147 ac_status=$?
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; }; }; then :
2150 ac_retval=0
2151 else
2152 $as_echo "$as_me: program exited with status $ac_status" >&5
2153 $as_echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2156 ac_retval=$ac_status
2158 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160 as_fn_set_status $ac_retval
2162 } # ac_fn_c_try_run
2164 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2165 # -------------------------------------------------------
2166 # Tests whether HEADER exists and can be compiled using the include files in
2167 # INCLUDES, setting the cache variable VAR accordingly.
2168 ac_fn_c_check_header_compile ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172 $as_echo_n "checking for $2... " >&6; }
2173 if eval \${$3+:} false; then :
2174 $as_echo_n "(cached) " >&6
2175 else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2179 #include <$2>
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 eval "$3=yes"
2183 else
2184 eval "$3=no"
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 eval ac_res=\$$3
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 $as_echo "$ac_res" >&6; }
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193 } # ac_fn_c_check_header_compile
2195 # ac_fn_c_try_link LINENO
2196 # -----------------------
2197 # Try to link conftest.$ac_ext, and return whether this succeeded.
2198 ac_fn_c_try_link ()
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 rm -f conftest.$ac_objext conftest$ac_exeext
2202 if { { ac_try="$ac_link"
2203 case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206 esac
2207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208 $as_echo "$ac_try_echo"; } >&5
2209 (eval "$ac_link") 2>conftest.err
2210 ac_status=$?
2211 if test -s conftest.err; then
2212 grep -v '^ *+' conftest.err >conftest.er1
2213 cat conftest.er1 >&5
2214 mv -f conftest.er1 conftest.err
2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } && {
2218 test -z "$ac_c_werror_flag" ||
2219 test ! -s conftest.err
2220 } && test -s conftest$ac_exeext && {
2221 test "$cross_compiling" = yes ||
2222 $as_test_x conftest$ac_exeext
2223 }; then :
2224 ac_retval=0
2225 else
2226 $as_echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2229 ac_retval=1
2231 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2232 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2233 # interfere with the next link command; also delete a directory that is
2234 # left behind by Apple's compiler. We do this before executing the actions.
2235 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 as_fn_set_status $ac_retval
2239 } # ac_fn_c_try_link
2241 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2242 # ---------------------------------------------
2243 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2244 # accordingly.
2245 ac_fn_c_check_decl ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 as_decl_name=`echo $2|sed 's/ *(.*//'`
2249 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2251 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2252 if eval \${$3+:} false; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2259 main ()
2261 #ifndef $as_decl_name
2262 #ifdef __cplusplus
2263 (void) $as_decl_use;
2264 #else
2265 (void) $as_decl_name;
2266 #endif
2267 #endif
2270 return 0;
2272 _ACEOF
2273 if ac_fn_c_try_compile "$LINENO"; then :
2274 eval "$3=yes"
2275 else
2276 eval "$3=no"
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 eval ac_res=\$$3
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 } # ac_fn_c_check_decl
2287 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2288 # ----------------------------------------------
2289 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2290 ac_fn_c_check_header_preproc ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if eval \${$3+:} false; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 #include <$2>
2301 _ACEOF
2302 if ac_fn_c_try_cpp "$LINENO"; then :
2303 eval "$3=yes"
2304 else
2305 eval "$3=no"
2307 rm -f conftest.err conftest.i conftest.$ac_ext
2309 eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2314 } # ac_fn_c_check_header_preproc
2316 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2317 # ----------------------------------------------------
2318 # Tries to find if the field MEMBER exists in type AGGR, after including
2319 # INCLUDES, setting cache variable VAR accordingly.
2320 ac_fn_c_check_member ()
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2324 $as_echo_n "checking for $2.$3... " >&6; }
2325 if eval \${$4+:} false; then :
2326 $as_echo_n "(cached) " >&6
2327 else
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2332 main ()
2334 static $2 ac_aggr;
2335 if (ac_aggr.$3)
2336 return 0;
2338 return 0;
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342 eval "$4=yes"
2343 else
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2348 main ()
2350 static $2 ac_aggr;
2351 if (sizeof ac_aggr.$3)
2352 return 0;
2354 return 0;
2356 _ACEOF
2357 if ac_fn_c_try_compile "$LINENO"; then :
2358 eval "$4=yes"
2359 else
2360 eval "$4=no"
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 eval ac_res=\$$4
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371 } # ac_fn_c_check_member
2373 # ac_fn_c_check_func LINENO FUNC VAR
2374 # ----------------------------------
2375 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2376 ac_fn_c_check_func ()
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if eval \${$3+:} false; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2386 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2388 #define $2 innocuous_$2
2390 /* System header to define __stub macros and hopefully few prototypes,
2391 which can conflict with char $2 (); below.
2392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2393 <limits.h> exists even on freestanding compilers. */
2395 #ifdef __STDC__
2396 # include <limits.h>
2397 #else
2398 # include <assert.h>
2399 #endif
2401 #undef $2
2403 /* Override any GCC internal prototype to avoid an error.
2404 Use char because int might match the return type of a GCC
2405 builtin and then its argument prototype would still apply. */
2406 #ifdef __cplusplus
2407 extern "C"
2408 #endif
2409 char $2 ();
2410 /* The GNU C library defines this for functions which it implements
2411 to always fail with ENOSYS. Some functions are actually named
2412 something starting with __ and the normal name is an alias. */
2413 #if defined __stub_$2 || defined __stub___$2
2414 choke me
2415 #endif
2418 main ()
2420 return $2 ();
2422 return 0;
2424 _ACEOF
2425 if ac_fn_c_try_link "$LINENO"; then :
2426 eval "$3=yes"
2427 else
2428 eval "$3=no"
2430 rm -f core conftest.err conftest.$ac_objext \
2431 conftest$ac_exeext conftest.$ac_ext
2433 eval ac_res=\$$3
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2438 } # ac_fn_c_check_func
2440 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2441 # -------------------------------------------
2442 # Tests whether TYPE exists after having included INCLUDES, setting cache
2443 # variable VAR accordingly.
2444 ac_fn_c_check_type ()
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448 $as_echo_n "checking for $2... " >&6; }
2449 if eval \${$3+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 eval "$3=no"
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2457 main ()
2459 if (sizeof ($2))
2460 return 0;
2462 return 0;
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2470 main ()
2472 if (sizeof (($2)))
2473 return 0;
2475 return 0;
2477 _ACEOF
2478 if ac_fn_c_try_compile "$LINENO"; then :
2480 else
2481 eval "$3=yes"
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 eval ac_res=\$$3
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492 } # ac_fn_c_check_type
2494 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2495 # --------------------------------------------
2496 # Tries to find the compile-time value of EXPR in a program that includes
2497 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2498 # computed
2499 ac_fn_c_compute_int ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 if test "$cross_compiling" = yes; then
2503 # Depending upon the size, compute the lo and hi bounds.
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2508 main ()
2510 static int test_array [1 - 2 * !(($2) >= 0)];
2511 test_array [0] = 0
2514 return 0;
2516 _ACEOF
2517 if ac_fn_c_try_compile "$LINENO"; then :
2518 ac_lo=0 ac_mid=0
2519 while :; do
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2524 main ()
2526 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2527 test_array [0] = 0
2530 return 0;
2532 _ACEOF
2533 if ac_fn_c_try_compile "$LINENO"; then :
2534 ac_hi=$ac_mid; break
2535 else
2536 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2537 if test $ac_lo -le $ac_mid; then
2538 ac_lo= ac_hi=
2539 break
2541 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 done
2545 else
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2550 main ()
2552 static int test_array [1 - 2 * !(($2) < 0)];
2553 test_array [0] = 0
2556 return 0;
2558 _ACEOF
2559 if ac_fn_c_try_compile "$LINENO"; then :
2560 ac_hi=-1 ac_mid=-1
2561 while :; do
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2566 main ()
2568 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2569 test_array [0] = 0
2572 return 0;
2574 _ACEOF
2575 if ac_fn_c_try_compile "$LINENO"; then :
2576 ac_lo=$ac_mid; break
2577 else
2578 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2579 if test $ac_mid -le $ac_hi; then
2580 ac_lo= ac_hi=
2581 break
2583 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 done
2587 else
2588 ac_lo= ac_hi=
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 # Binary search between lo and hi bounds.
2594 while test "x$ac_lo" != "x$ac_hi"; do
2595 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2600 main ()
2602 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2603 test_array [0] = 0
2606 return 0;
2608 _ACEOF
2609 if ac_fn_c_try_compile "$LINENO"; then :
2610 ac_hi=$ac_mid
2611 else
2612 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 done
2616 case $ac_lo in #((
2617 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2618 '') ac_retval=1 ;;
2619 esac
2620 else
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2624 static long int longval () { return $2; }
2625 static unsigned long int ulongval () { return $2; }
2626 #include <stdio.h>
2627 #include <stdlib.h>
2629 main ()
2632 FILE *f = fopen ("conftest.val", "w");
2633 if (! f)
2634 return 1;
2635 if (($2) < 0)
2637 long int i = longval ();
2638 if (i != ($2))
2639 return 1;
2640 fprintf (f, "%ld", i);
2642 else
2644 unsigned long int i = ulongval ();
2645 if (i != ($2))
2646 return 1;
2647 fprintf (f, "%lu", i);
2649 /* Do not output a trailing newline, as this causes \r\n confusion
2650 on some platforms. */
2651 return ferror (f) || fclose (f) != 0;
2654 return 0;
2656 _ACEOF
2657 if ac_fn_c_try_run "$LINENO"; then :
2658 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2659 else
2660 ac_retval=1
2662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2663 conftest.$ac_objext conftest.beam conftest.$ac_ext
2664 rm -f conftest.val
2667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2668 as_fn_set_status $ac_retval
2670 } # ac_fn_c_compute_int
2671 cat >config.log <<_ACEOF
2672 This file contains any messages produced by compilers while
2673 running configure, to aid debugging if configure makes a mistake.
2675 It was created by emacs $as_me 24.0.50, which was
2676 generated by GNU Autoconf 2.68. Invocation command line was
2678 $ $0 $@
2680 _ACEOF
2681 exec 5>>config.log
2683 cat <<_ASUNAME
2684 ## --------- ##
2685 ## Platform. ##
2686 ## --------- ##
2688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2705 _ASUNAME
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 $as_echo "PATH: $as_dir"
2713 done
2714 IFS=$as_save_IFS
2716 } >&5
2718 cat >&5 <<_ACEOF
2721 ## ----------- ##
2722 ## Core tests. ##
2723 ## ----------- ##
2725 _ACEOF
2728 # Keep a trace of the command line.
2729 # Strip out --no-create and --no-recursion so they do not pile up.
2730 # Strip out --silent because we don't want to record it for future runs.
2731 # Also quote any args containing shell meta-characters.
2732 # Make two passes to allow for proper duplicate-argument suppression.
2733 ac_configure_args=
2734 ac_configure_args0=
2735 ac_configure_args1=
2736 ac_must_keep_next=false
2737 for ac_pass in 1 2
2739 for ac_arg
2741 case $ac_arg in
2742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2744 | -silent | --silent | --silen | --sile | --sil)
2745 continue ;;
2746 *\'*)
2747 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2748 esac
2749 case $ac_pass in
2750 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2752 as_fn_append ac_configure_args1 " '$ac_arg'"
2753 if test $ac_must_keep_next = true; then
2754 ac_must_keep_next=false # Got value, back to normal.
2755 else
2756 case $ac_arg in
2757 *=* | --config-cache | -C | -disable-* | --disable-* \
2758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2760 | -with-* | --with-* | -without-* | --without-* | --x)
2761 case "$ac_configure_args0 " in
2762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2763 esac
2765 -* ) ac_must_keep_next=true ;;
2766 esac
2768 as_fn_append ac_configure_args " '$ac_arg'"
2770 esac
2771 done
2772 done
2773 { ac_configure_args0=; unset ac_configure_args0;}
2774 { ac_configure_args1=; unset ac_configure_args1;}
2776 # When interrupted or exit'd, cleanup temporary files, and complete
2777 # config.log. We remove comments because anyway the quotes in there
2778 # would cause problems or look ugly.
2779 # WARNING: Use '\'' to represent an apostrophe within the trap.
2780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2781 trap 'exit_status=$?
2782 # Save into config.log some information that might help in debugging.
2784 echo
2786 $as_echo "## ---------------- ##
2787 ## Cache variables. ##
2788 ## ---------------- ##"
2789 echo
2790 # The following way of writing the cache mishandles newlines in values,
2792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2793 eval ac_val=\$$ac_var
2794 case $ac_val in #(
2795 *${as_nl}*)
2796 case $ac_var in #(
2797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2799 esac
2800 case $ac_var in #(
2801 _ | IFS | as_nl) ;; #(
2802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2803 *) { eval $ac_var=; unset $ac_var;} ;;
2804 esac ;;
2805 esac
2806 done
2807 (set) 2>&1 |
2808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2809 *${as_nl}ac_space=\ *)
2810 sed -n \
2811 "s/'\''/'\''\\\\'\'''\''/g;
2812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2813 ;; #(
2815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2817 esac |
2818 sort
2820 echo
2822 $as_echo "## ----------------- ##
2823 ## Output variables. ##
2824 ## ----------------- ##"
2825 echo
2826 for ac_var in $ac_subst_vars
2828 eval ac_val=\$$ac_var
2829 case $ac_val in
2830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2831 esac
2832 $as_echo "$ac_var='\''$ac_val'\''"
2833 done | sort
2834 echo
2836 if test -n "$ac_subst_files"; then
2837 $as_echo "## ------------------- ##
2838 ## File substitutions. ##
2839 ## ------------------- ##"
2840 echo
2841 for ac_var in $ac_subst_files
2843 eval ac_val=\$$ac_var
2844 case $ac_val in
2845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2846 esac
2847 $as_echo "$ac_var='\''$ac_val'\''"
2848 done | sort
2849 echo
2852 if test -s confdefs.h; then
2853 $as_echo "## ----------- ##
2854 ## confdefs.h. ##
2855 ## ----------- ##"
2856 echo
2857 cat confdefs.h
2858 echo
2860 test "$ac_signal" != 0 &&
2861 $as_echo "$as_me: caught signal $ac_signal"
2862 $as_echo "$as_me: exit $exit_status"
2863 } >&5
2864 rm -f core *.core core.conftest.* &&
2865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2866 exit $exit_status
2868 for ac_signal in 1 2 13 15; do
2869 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2870 done
2871 ac_signal=0
2873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2874 rm -f -r conftest* confdefs.h
2876 $as_echo "/* confdefs.h */" > confdefs.h
2878 # Predefined preprocessor variables.
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_NAME "$PACKAGE_NAME"
2882 _ACEOF
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2886 _ACEOF
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2890 _ACEOF
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_STRING "$PACKAGE_STRING"
2894 _ACEOF
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2898 _ACEOF
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_URL "$PACKAGE_URL"
2902 _ACEOF
2905 # Let the site file select an alternate cache file if it wants to.
2906 # Prefer an explicitly selected file to automatically selected ones.
2907 ac_site_file1=NONE
2908 ac_site_file2=NONE
2909 if test -n "$CONFIG_SITE"; then
2910 # We do not want a PATH search for config.site.
2911 case $CONFIG_SITE in #((
2912 -*) ac_site_file1=./$CONFIG_SITE;;
2913 */*) ac_site_file1=$CONFIG_SITE;;
2914 *) ac_site_file1=./$CONFIG_SITE;;
2915 esac
2916 elif test "x$prefix" != xNONE; then
2917 ac_site_file1=$prefix/share/config.site
2918 ac_site_file2=$prefix/etc/config.site
2919 else
2920 ac_site_file1=$ac_default_prefix/share/config.site
2921 ac_site_file2=$ac_default_prefix/etc/config.site
2923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2925 test "x$ac_site_file" = xNONE && continue
2926 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2929 sed 's/^/| /' "$ac_site_file" >&5
2930 . "$ac_site_file" \
2931 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 as_fn_error $? "failed to load site script $ac_site_file
2934 See \`config.log' for more details" "$LINENO" 5; }
2936 done
2938 if test -r "$cache_file"; then
2939 # Some versions of bash will fail to source /dev/null (special files
2940 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2941 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2943 $as_echo "$as_me: loading cache $cache_file" >&6;}
2944 case $cache_file in
2945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2946 *) . "./$cache_file";;
2947 esac
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2951 $as_echo "$as_me: creating cache $cache_file" >&6;}
2952 >$cache_file
2955 as_fn_append ac_header_list " stdlib.h"
2956 as_fn_append ac_header_list " unistd.h"
2957 as_fn_append ac_header_list " sys/param.h"
2958 gl_getopt_required=GNU
2959 as_fn_append ac_header_list " getopt.h"
2960 as_fn_append ac_func_list " lstat"
2961 as_fn_append ac_func_list " alarm"
2962 as_fn_append ac_func_list " readlink"
2963 as_fn_append ac_header_list " sys/socket.h"
2964 as_fn_append ac_header_list " wchar.h"
2965 as_fn_append ac_header_list " stdint.h"
2966 as_fn_append ac_func_list " tzset"
2967 as_fn_append ac_func_list " symlink"
2968 as_fn_append ac_header_list " sys/stat.h"
2969 as_fn_append ac_header_list " sys/time.h"
2970 as_fn_append ac_func_list " localtime_r"
2971 # Check that the precious variables saved in the cache have kept the same
2972 # value.
2973 ac_cache_corrupted=false
2974 for ac_var in $ac_precious_vars; do
2975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2976 eval ac_new_set=\$ac_env_${ac_var}_set
2977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2978 eval ac_new_val=\$ac_env_${ac_var}_value
2979 case $ac_old_set,$ac_new_set in
2980 set,)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2982 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2983 ac_cache_corrupted=: ;;
2984 ,set)
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2986 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2987 ac_cache_corrupted=: ;;
2988 ,);;
2990 if test "x$ac_old_val" != "x$ac_new_val"; then
2991 # differences in whitespace do not lead to failure.
2992 ac_old_val_w=`echo x $ac_old_val`
2993 ac_new_val_w=`echo x $ac_new_val`
2994 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2996 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2997 ac_cache_corrupted=:
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3000 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3001 eval $ac_var=\$ac_old_val
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3004 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3006 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3007 fi;;
3008 esac
3009 # Pass precious variables to config.status.
3010 if test "$ac_new_set" = set; then
3011 case $ac_new_val in
3012 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3013 *) ac_arg=$ac_var=$ac_new_val ;;
3014 esac
3015 case " $ac_configure_args " in
3016 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3017 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3018 esac
3020 done
3021 if $ac_cache_corrupted; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3025 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3026 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3028 ## -------------------- ##
3029 ## Main body of script. ##
3030 ## -------------------- ##
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3042 am__api_version='1.11'
3044 ac_aux_dir=
3045 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3046 if test -f "$ac_dir/install-sh"; then
3047 ac_aux_dir=$ac_dir
3048 ac_install_sh="$ac_aux_dir/install-sh -c"
3049 break
3050 elif test -f "$ac_dir/install.sh"; then
3051 ac_aux_dir=$ac_dir
3052 ac_install_sh="$ac_aux_dir/install.sh -c"
3053 break
3054 elif test -f "$ac_dir/shtool"; then
3055 ac_aux_dir=$ac_dir
3056 ac_install_sh="$ac_aux_dir/shtool install -c"
3057 break
3059 done
3060 if test -z "$ac_aux_dir"; then
3061 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3064 # These three variables are undocumented and unsupported,
3065 # and are intended to be withdrawn in a future Autoconf release.
3066 # They can cause serious problems if a builder's source tree is in a directory
3067 # whose full name contains unusual characters.
3068 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3069 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3070 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3073 # Find a good install program. We prefer a C program (faster),
3074 # so one script is as good as another. But avoid the broken or
3075 # incompatible versions:
3076 # SysV /etc/install, /usr/sbin/install
3077 # SunOS /usr/etc/install
3078 # IRIX /sbin/install
3079 # AIX /bin/install
3080 # AmigaOS /C/install, which installs bootblocks on floppy discs
3081 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3082 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3083 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3084 # OS/2's system install, which has a completely different semantic
3085 # ./install, which can be erroneously created by make from ./install.sh.
3086 # Reject install programs that cannot install multiple files.
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3088 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3089 if test -z "$INSTALL"; then
3090 if ${ac_cv_path_install+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 # Account for people who put trailing slashes in PATH elements.
3099 case $as_dir/ in #((
3100 ./ | .// | /[cC]/* | \
3101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3102 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3103 /usr/ucb/* ) ;;
3105 # OSF1 and SCO ODT 3.0 have their own names for install.
3106 # Don't use installbsd from OSF since it installs stuff as root
3107 # by default.
3108 for ac_prog in ginstall scoinst install; do
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3111 if test $ac_prog = install &&
3112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3113 # AIX install. It has an incompatible calling convention.
3115 elif test $ac_prog = install &&
3116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3117 # program-specific install script used by HP pwplus--don't use.
3119 else
3120 rm -rf conftest.one conftest.two conftest.dir
3121 echo one > conftest.one
3122 echo two > conftest.two
3123 mkdir conftest.dir
3124 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3125 test -s conftest.one && test -s conftest.two &&
3126 test -s conftest.dir/conftest.one &&
3127 test -s conftest.dir/conftest.two
3128 then
3129 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3130 break 3
3134 done
3135 done
3137 esac
3139 done
3140 IFS=$as_save_IFS
3142 rm -rf conftest.one conftest.two conftest.dir
3145 if test "${ac_cv_path_install+set}" = set; then
3146 INSTALL=$ac_cv_path_install
3147 else
3148 # As a last resort, use the slow shell script. Don't cache a
3149 # value for INSTALL within a source directory, because that will
3150 # break other packages using the cache if that directory is
3151 # removed, or if the value is a relative name.
3152 INSTALL=$ac_install_sh
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3156 $as_echo "$INSTALL" >&6; }
3158 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3159 # It thinks the first close brace ends the variable substitution.
3160 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3162 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3164 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3167 $as_echo_n "checking whether build environment is sane... " >&6; }
3168 # Just in case
3169 sleep 1
3170 echo timestamp > conftest.file
3171 # Reject unsafe characters in $srcdir or the absolute working directory
3172 # name. Accept space and tab only in the latter.
3173 am_lf='
3175 case `pwd` in
3176 *[\\\"\#\$\&\'\`$am_lf]*)
3177 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3178 esac
3179 case $srcdir in
3180 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3181 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3182 esac
3184 # Do `set' in a subshell so we don't clobber the current shell's
3185 # arguments. Must try -L first in case configure is actually a
3186 # symlink; some systems play weird games with the mod time of symlinks
3187 # (eg FreeBSD returns the mod time of the symlink's containing
3188 # directory).
3189 if (
3190 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3191 if test "$*" = "X"; then
3192 # -L didn't work.
3193 set X `ls -t "$srcdir/configure" conftest.file`
3195 rm -f conftest.file
3196 if test "$*" != "X $srcdir/configure conftest.file" \
3197 && test "$*" != "X conftest.file $srcdir/configure"; then
3199 # If neither matched, then we have a broken ls. This can happen
3200 # if, for instance, CONFIG_SHELL is bash and it inherits a
3201 # broken ls alias from the environment. This has actually
3202 # happened. Such a system could not be considered "sane".
3203 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3204 alias in your environment" "$LINENO" 5
3207 test "$2" = conftest.file
3209 then
3210 # Ok.
3212 else
3213 as_fn_error $? "newly created file is older than distributed files!
3214 Check your system clock" "$LINENO" 5
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217 $as_echo "yes" >&6; }
3218 test "$program_prefix" != NONE &&
3219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3220 # Use a double $ so make ignores it.
3221 test "$program_suffix" != NONE &&
3222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3223 # Double any \ or $.
3224 # By default was `s,x,x', remove it if useless.
3225 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3226 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3228 # expand $ac_aux_dir to an absolute path
3229 am_aux_dir=`cd $ac_aux_dir && pwd`
3231 if test x"${MISSING+set}" != xset; then
3232 case $am_aux_dir in
3233 *\ * | *\ *)
3234 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3236 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3237 esac
3239 # Use eval to expand $SHELL
3240 if eval "$MISSING --run true"; then
3241 am_missing_run="$MISSING --run "
3242 else
3243 am_missing_run=
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3245 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3248 if test x"${install_sh}" != xset; then
3249 case $am_aux_dir in
3250 *\ * | *\ *)
3251 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3253 install_sh="\${SHELL} $am_aux_dir/install-sh"
3254 esac
3257 # Installed binaries are usually stripped using `strip' when the user
3258 # run `make install-strip'. However `strip' might not be the right
3259 # tool to use in cross-compilation environments, therefore Automake
3260 # will honor the `STRIP' environment variable to overrule this program.
3261 if test "$cross_compiling" != no; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}strip; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_STRIP+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$STRIP"; then
3271 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3284 done
3285 done
3286 IFS=$as_save_IFS
3290 STRIP=$ac_cv_prog_STRIP
3291 if test -n "$STRIP"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3293 $as_echo "$STRIP" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3301 if test -z "$ac_cv_prog_STRIP"; then
3302 ac_ct_STRIP=$STRIP
3303 # Extract the first word of "strip", so it can be a program name with args.
3304 set dummy strip; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 if test -n "$ac_ct_STRIP"; then
3311 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320 ac_cv_prog_ac_ct_STRIP="strip"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3324 done
3325 done
3326 IFS=$as_save_IFS
3330 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3331 if test -n "$ac_ct_STRIP"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3333 $as_echo "$ac_ct_STRIP" >&6; }
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3339 if test "x$ac_ct_STRIP" = x; then
3340 STRIP=":"
3341 else
3342 case $cross_compiling:$ac_tool_warned in
3343 yes:)
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned=yes ;;
3347 esac
3348 STRIP=$ac_ct_STRIP
3350 else
3351 STRIP="$ac_cv_prog_STRIP"
3355 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3358 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3359 if test -z "$MKDIR_P"; then
3360 if ${ac_cv_path_mkdir+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_prog in mkdir gmkdir; do
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3371 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3372 'mkdir (GNU coreutils) '* | \
3373 'mkdir (coreutils) '* | \
3374 'mkdir (fileutils) '4.1*)
3375 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3376 break 3;;
3377 esac
3378 done
3379 done
3380 done
3381 IFS=$as_save_IFS
3385 test -d ./--version && rmdir ./--version
3386 if test "${ac_cv_path_mkdir+set}" = set; then
3387 MKDIR_P="$ac_cv_path_mkdir -p"
3388 else
3389 # As a last resort, use the slow shell script. Don't cache a
3390 # value for MKDIR_P within a source directory, because that will
3391 # break other packages using the cache if that directory is
3392 # removed, or if the value is a relative name.
3393 MKDIR_P="$ac_install_sh -d"
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3397 $as_echo "$MKDIR_P" >&6; }
3400 mkdir_p="$MKDIR_P"
3401 case $mkdir_p in
3402 [\\/$]* | ?:[\\/]*) ;;
3403 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3404 esac
3406 for ac_prog in gawk mawk nawk awk
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy $ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_AWK+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$AWK"; then
3416 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_AWK="$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3429 done
3430 done
3431 IFS=$as_save_IFS
3435 AWK=$ac_cv_prog_AWK
3436 if test -n "$AWK"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3438 $as_echo "$AWK" >&6; }
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3445 test -n "$AWK" && break
3446 done
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3449 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3450 set x ${MAKE-make}
3451 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3452 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 cat >conftest.make <<\_ACEOF
3456 SHELL = /bin/sh
3457 all:
3458 @echo '@@@%%%=$(MAKE)=@@@%%%'
3459 _ACEOF
3460 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3461 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3462 *@@@%%%=?*=@@@%%%*)
3463 eval ac_cv_prog_make_${ac_make}_set=yes;;
3465 eval ac_cv_prog_make_${ac_make}_set=no;;
3466 esac
3467 rm -f conftest.make
3469 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3471 $as_echo "yes" >&6; }
3472 SET_MAKE=
3473 else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476 SET_MAKE="MAKE=${MAKE-make}"
3479 rm -rf .tst 2>/dev/null
3480 mkdir .tst 2>/dev/null
3481 if test -d .tst; then
3482 am__leading_dot=.
3483 else
3484 am__leading_dot=_
3486 rmdir .tst 2>/dev/null
3488 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3489 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3490 # is not polluted with repeated "-I."
3491 am__isrc=' -I$(srcdir)'
3492 # test to see if srcdir already configured
3493 if test -f $srcdir/config.status; then
3494 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3498 # test whether we have cygpath
3499 if test -z "$CYGPATH_W"; then
3500 if (cygpath --version) >/dev/null 2>/dev/null; then
3501 CYGPATH_W='cygpath -w'
3502 else
3503 CYGPATH_W=echo
3508 # Define the identity of the package.
3509 PACKAGE='emacs'
3510 VERSION='24.0.50'
3513 cat >>confdefs.h <<_ACEOF
3514 #define PACKAGE "$PACKAGE"
3515 _ACEOF
3518 cat >>confdefs.h <<_ACEOF
3519 #define VERSION "$VERSION"
3520 _ACEOF
3522 # Some tools Automake needs.
3524 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3527 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3530 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3533 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3536 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3538 # We need awk for the "check" target. The system "awk" is bad on
3539 # some platforms.
3540 # Always define AMTAR for backward compatibility.
3542 AMTAR=${AMTAR-"${am_missing_run}tar"}
3544 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3553 lispdir='${datadir}/emacs/${version}/lisp'
3554 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3555 '${datadir}/emacs/site-lisp'
3556 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3557 etcdir='${datadir}/emacs/${version}/etc'
3558 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3559 docdir='${datadir}/emacs/${version}/etc'
3560 gamedir='${localstatedir}/games/emacs'
3565 # Check whether --with-pop was given.
3566 if test "${with_pop+set}" = set; then :
3567 withval=$with_pop;
3568 else
3569 with_pop=yes
3572 if test "$with_pop" = yes; then
3573 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3578 # Check whether --with-kerberos was given.
3579 if test "${with_kerberos+set}" = set; then :
3580 withval=$with_kerberos;
3581 else
3582 with_kerberos=no
3585 if test "$with_kerberos" != no; then
3586 $as_echo "#define KERBEROS 1" >>confdefs.h
3591 # Check whether --with-kerberos5 was given.
3592 if test "${with_kerberos5+set}" = set; then :
3593 withval=$with_kerberos5;
3594 else
3595 with_kerberos5=no
3598 if test "${with_kerberos5}" != no; then
3599 if test "${with_kerberos}" = no; then
3600 with_kerberos=yes
3601 $as_echo "#define KERBEROS 1" >>confdefs.h
3605 $as_echo "#define KERBEROS5 1" >>confdefs.h
3610 # Check whether --with-hesiod was given.
3611 if test "${with_hesiod+set}" = set; then :
3612 withval=$with_hesiod;
3613 else
3614 with_hesiod=no
3617 if test "$with_hesiod" != no; then
3619 $as_echo "#define HESIOD 1" >>confdefs.h
3624 # Check whether --with-mmdf was given.
3625 if test "${with_mmdf+set}" = set; then :
3626 withval=$with_mmdf;
3627 else
3628 with_mmdf=no
3631 if test "$with_mmdf" != no; then
3633 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3638 # Check whether --with-mail-unlink was given.
3639 if test "${with_mail_unlink+set}" = set; then :
3640 withval=$with_mail_unlink;
3641 else
3642 with_mail_unlink=no
3645 if test "$with_mail_unlink" != no; then
3647 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3652 # Check whether --with-mailhost was given.
3653 if test "${with_mailhost+set}" = set; then :
3654 withval=$with_mailhost;
3655 cat >>confdefs.h <<_ACEOF
3656 #define MAILHOST "$withval"
3657 _ACEOF
3663 # Check whether --with-sound was given.
3664 if test "${with_sound+set}" = set; then :
3665 withval=$with_sound;
3666 else
3667 with_sound=yes
3672 # Check whether --with-sync-input was given.
3673 if test "${with_sync_input+set}" = set; then :
3674 withval=$with_sync_input;
3675 else
3676 with_sync_input=yes
3679 if test "$with_sync_input" = yes; then
3681 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3686 # Check whether --with-x-toolkit was given.
3687 if test "${with_x_toolkit+set}" = set; then :
3688 withval=$with_x_toolkit; case "${withval}" in
3689 y | ye | yes ) val=gtk ;;
3690 n | no ) val=no ;;
3691 l | lu | luc | luci | lucid ) val=lucid ;;
3692 a | at | ath | athe | athen | athena ) val=athena ;;
3693 m | mo | mot | moti | motif ) val=motif ;;
3694 g | gt | gtk ) val=gtk ;;
3695 gtk3 ) val=gtk3 ;;
3697 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3698 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3699 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3701 esac
3702 with_x_toolkit=$val
3708 # Check whether --with-xpm was given.
3709 if test "${with_xpm+set}" = set; then :
3710 withval=$with_xpm;
3711 else
3712 with_xpm=yes
3716 # Check whether --with-jpeg was given.
3717 if test "${with_jpeg+set}" = set; then :
3718 withval=$with_jpeg;
3719 else
3720 with_jpeg=yes
3724 # Check whether --with-tiff was given.
3725 if test "${with_tiff+set}" = set; then :
3726 withval=$with_tiff;
3727 else
3728 with_tiff=yes
3732 # Check whether --with-gif was given.
3733 if test "${with_gif+set}" = set; then :
3734 withval=$with_gif;
3735 else
3736 with_gif=yes
3740 # Check whether --with-png was given.
3741 if test "${with_png+set}" = set; then :
3742 withval=$with_png;
3743 else
3744 with_png=yes
3748 # Check whether --with-rsvg was given.
3749 if test "${with_rsvg+set}" = set; then :
3750 withval=$with_rsvg;
3751 else
3752 with_rsvg=yes
3756 # Check whether --with-xml2 was given.
3757 if test "${with_xml2+set}" = set; then :
3758 withval=$with_xml2;
3759 else
3760 with_xml2=yes
3764 # Check whether --with-imagemagick was given.
3765 if test "${with_imagemagick+set}" = set; then :
3766 withval=$with_imagemagick;
3767 else
3768 with_imagemagick=yes
3773 # Check whether --with-xft was given.
3774 if test "${with_xft+set}" = set; then :
3775 withval=$with_xft;
3776 else
3777 with_xft=yes
3781 # Check whether --with-libotf was given.
3782 if test "${with_libotf+set}" = set; then :
3783 withval=$with_libotf;
3784 else
3785 with_libotf=yes
3789 # Check whether --with-m17n-flt was given.
3790 if test "${with_m17n_flt+set}" = set; then :
3791 withval=$with_m17n_flt;
3792 else
3793 with_m17n_flt=yes
3798 # Check whether --with-toolkit-scroll-bars was given.
3799 if test "${with_toolkit_scroll_bars+set}" = set; then :
3800 withval=$with_toolkit_scroll_bars;
3801 else
3802 with_toolkit_scroll_bars=yes
3806 # Check whether --with-xaw3d was given.
3807 if test "${with_xaw3d+set}" = set; then :
3808 withval=$with_xaw3d;
3809 else
3810 with_xaw3d=yes
3814 # Check whether --with-xim was given.
3815 if test "${with_xim+set}" = set; then :
3816 withval=$with_xim;
3817 else
3818 with_xim=yes
3822 # Check whether --with-ns was given.
3823 if test "${with_ns+set}" = set; then :
3824 withval=$with_ns;
3825 else
3826 with_ns=no
3831 # Check whether --with-gpm was given.
3832 if test "${with_gpm+set}" = set; then :
3833 withval=$with_gpm;
3834 else
3835 with_gpm=yes
3839 # Check whether --with-dbus was given.
3840 if test "${with_dbus+set}" = set; then :
3841 withval=$with_dbus;
3842 else
3843 with_dbus=yes
3847 # Check whether --with-gconf was given.
3848 if test "${with_gconf+set}" = set; then :
3849 withval=$with_gconf;
3850 else
3851 with_gconf=yes
3855 # Check whether --with-selinux was given.
3856 if test "${with_selinux+set}" = set; then :
3857 withval=$with_selinux;
3858 else
3859 with_selinux=yes
3863 # Check whether --with-gnutls was given.
3864 if test "${with_gnutls+set}" = set; then :
3865 withval=$with_gnutls;
3866 else
3867 with_gnutls=yes
3871 ## For the times when you want to build Emacs but don't have
3872 ## a suitable makeinfo, and can live without the manuals.
3874 # Check whether --with-makeinfo was given.
3875 if test "${with_makeinfo+set}" = set; then :
3876 withval=$with_makeinfo;
3877 else
3878 with_makeinfo=yes
3882 ## This is an option because I do not know if all info/man support
3883 ## compressed files, nor how to test if they do so.
3885 # Check whether --with-compress-info was given.
3886 if test "${with_compress_info+set}" = set; then :
3887 withval=$with_compress_info;
3888 else
3889 with_compress_info=yes
3892 if test $with_compress_info = yes; then
3893 GZIP_INFO=yes
3894 else
3895 GZIP_INFO=
3900 # Check whether --with-pkg-config-prog was given.
3901 if test "${with_pkg_config_prog+set}" = set; then :
3902 withval=$with_pkg_config_prog;
3905 if test "X${with_pkg_config_prog}" != X; then
3906 if test "${with_pkg_config_prog}" != yes; then
3907 PKG_CONFIG="${with_pkg_config_prog}"
3911 CRT_DIR=
3913 # Check whether --with-crt-dir was given.
3914 if test "${with_crt_dir+set}" = set; then :
3915 withval=$with_crt_dir;
3918 CRT_DIR="${with_crt_dir}"
3921 # Check whether --with-gameuser was given.
3922 if test "${with_gameuser+set}" = set; then :
3923 withval=$with_gameuser;
3926 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3927 && gameuser="${with_gameuser}"
3928 test "X$gameuser" = X && gameuser=games
3931 # Check whether --with-gnustep-conf was given.
3932 if test "${with_gnustep_conf+set}" = set; then :
3933 withval=$with_gnustep_conf;
3936 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3937 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3938 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3939 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3941 # Check whether --enable-ns-self-contained was given.
3942 if test "${enable_ns_self_contained+set}" = set; then :
3943 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3944 else
3945 EN_NS_SELF_CONTAINED=yes
3949 # Check whether --enable-asserts was given.
3950 if test "${enable_asserts+set}" = set; then :
3951 enableval=$enable_asserts; USE_XASSERTS=$enableval
3952 else
3953 USE_XASSERTS=no
3957 # Check whether --enable-maintainer-mode was given.
3958 if test "${enable_maintainer_mode+set}" = set; then :
3959 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3960 else
3961 USE_MAINTAINER_MODE=no
3964 if test $USE_MAINTAINER_MODE = yes; then
3965 MAINT=
3966 else
3967 MAINT=#
3971 # Check whether --enable-locallisppath was given.
3972 if test "${enable_locallisppath+set}" = set; then :
3973 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3974 locallisppath=
3975 elif test "${enableval}" != "yes"; then
3976 locallisppath=${enableval}
3981 # Check whether --enable-checking was given.
3982 if test "${enable_checking+set}" = set; then :
3983 enableval=$enable_checking; ac_checking_flags="${enableval}"
3986 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3987 for check in $ac_checking_flags
3989 case $check in
3990 # these set all the flags to specific states
3991 yes) ac_enable_checking=1 ;;
3992 no) ac_enable_checking= ;
3993 ac_gc_check_stringbytes= ;
3994 ac_gc_check_string_overrun= ;
3995 ac_gc_check_string_free_list= ;
3996 ac_xmalloc_overrun= ;
3997 ac_gc_check_cons_list= ;;
3998 all) ac_enable_checking=1 ;
3999 ac_gc_check_stringbytes=1 ;
4000 ac_gc_check_string_overrun=1 ;
4001 ac_gc_check_string_free_list=1 ;
4002 ac_xmalloc_overrun=1 ;
4003 ac_gc_check_cons_list=1 ;;
4004 # these enable particular checks
4005 stringbytes) ac_gc_check_stringbytes=1 ;;
4006 stringoverrun) ac_gc_check_string_overrun=1 ;;
4007 stringfreelist) ac_gc_check_string_free_list=1 ;;
4008 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4009 conslist) ac_gc_check_cons_list=1 ;;
4010 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
4011 esac
4012 done
4013 IFS="$ac_save_IFS"
4015 if test x$ac_enable_checking != x ; then
4017 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4020 if test x$ac_gc_check_stringbytes != x ; then
4022 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4025 if test x$ac_gc_check_stringoverrun != x ; then
4027 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4030 if test x$ac_gc_check_string_free_list != x ; then
4032 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4035 if test x$ac_xmalloc_overrun != x ; then
4037 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4040 if test x$ac_gc_check_cons_list != x ; then
4042 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4046 # Check whether --enable-use-lisp-union-type was given.
4047 if test "${enable_use_lisp_union_type+set}" = set; then :
4048 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4050 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4057 # Check whether --enable-profiling was given.
4058 if test "${enable_profiling+set}" = set; then :
4059 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4062 if test x$ac_enable_profiling != x ; then
4063 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4064 else
4065 PROFILING_CFLAGS=
4069 # Check whether --enable-autodepend was given.
4070 if test "${enable_autodepend+set}" = set; then :
4071 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4072 else
4073 ac_enable_autodepend=yes
4077 #### Make srcdir absolute, if it isn't already. It's important to
4078 #### avoid running the path through pwd unnecessarily, since pwd can
4079 #### give you automounter prefixes, which can go away. We do all this
4080 #### so Emacs can find its files when run uninstalled.
4081 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4082 unset CDPATH
4083 case "${srcdir}" in
4084 /* ) ;;
4086 ## We may be able to use the $PWD environment variable to make this
4087 ## absolute. But sometimes PWD is inaccurate.
4088 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4089 ## but that tested only for a well-formed and valid PWD,
4090 ## it did not object when PWD was well-formed and valid but just wrong.
4091 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4092 then
4093 srcdir="$PWD"
4094 else
4095 srcdir="`(cd ${srcdir}; pwd)`"
4098 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4099 esac
4101 #### Check if the source directory already has a configured system in it.
4102 if test `pwd` != `(cd ${srcdir} && pwd)` \
4103 && test -f "${srcdir}/src/config.h" ; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4105 as a build directory right now; it has been configured in its own
4106 right. To configure in another directory as well, you MUST
4107 use GNU make. If you do not have GNU make, then you must
4108 now do \`make distclean' in ${srcdir},
4109 and then run $0 again." >&5
4110 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4111 as a build directory right now; it has been configured in its own
4112 right. To configure in another directory as well, you MUST
4113 use GNU make. If you do not have GNU make, then you must
4114 now do \`make distclean' in ${srcdir},
4115 and then run $0 again." >&2;}
4118 #### Given the configuration name, set machfile and opsysfile to the
4119 #### names of the m/*.h and s/*.h files we should use.
4121 ### Canonicalize the configuration name.
4123 # Make sure we can run config.sub.
4124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4125 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4128 $as_echo_n "checking build system type... " >&6; }
4129 if ${ac_cv_build+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 ac_build_alias=$build_alias
4133 test "x$ac_build_alias" = x &&
4134 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4135 test "x$ac_build_alias" = x &&
4136 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4137 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4138 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4142 $as_echo "$ac_cv_build" >&6; }
4143 case $ac_cv_build in
4144 *-*-*) ;;
4145 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4146 esac
4147 build=$ac_cv_build
4148 ac_save_IFS=$IFS; IFS='-'
4149 set x $ac_cv_build
4150 shift
4151 build_cpu=$1
4152 build_vendor=$2
4153 shift; shift
4154 # Remember, the first character of IFS is used to create $*,
4155 # except with old shells:
4156 build_os=$*
4157 IFS=$ac_save_IFS
4158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4162 $as_echo_n "checking host system type... " >&6; }
4163 if ${ac_cv_host+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 if test "x$host_alias" = x; then
4167 ac_cv_host=$ac_cv_build
4168 else
4169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4170 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4175 $as_echo "$ac_cv_host" >&6; }
4176 case $ac_cv_host in
4177 *-*-*) ;;
4178 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4179 esac
4180 host=$ac_cv_host
4181 ac_save_IFS=$IFS; IFS='-'
4182 set x $ac_cv_host
4183 shift
4184 host_cpu=$1
4185 host_vendor=$2
4186 shift; shift
4187 # Remember, the first character of IFS is used to create $*,
4188 # except with old shells:
4189 host_os=$*
4190 IFS=$ac_save_IFS
4191 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4194 canonical=$host
4195 configuration=${host_alias-${build_alias-$host}}
4199 ### If you add support for a new configuration, add code to this
4200 ### switch statement to recognize your configuration name and select
4201 ### the appropriate operating system and machine description files.
4203 ### You would hope that you could choose an m/*.h file pretty much
4204 ### based on the machine portion of the configuration name, and an s/*.h
4205 ### file based on the operating system portion. However, it turns out
4206 ### that each m/*.h file is pretty manufacturer-specific - for
4207 ### example mips.h is MIPS
4208 ### So we basically have to have a special case for each
4209 ### configuration name.
4211 ### As far as handling version numbers on operating systems is
4212 ### concerned, make sure things will fail in a fixable way. If
4213 ### /etc/MACHINES doesn't say anything about version numbers, be
4214 ### prepared to handle anything reasonably. If version numbers
4215 ### matter, be sure /etc/MACHINES says something about it.
4217 machine='' opsys='' unported=no
4218 case "${canonical}" in
4220 ## GNU/Linux ports
4221 *-*-linux-gnu*)
4222 opsys=gnu-linux
4223 case ${canonical} in
4224 alpha*) machine=alpha ;;
4225 s390-*) machine=ibms390 ;;
4226 s390x-*) machine=ibms390x ;;
4227 powerpc*) machine=macppc ;;
4228 sparc*) machine=sparc ;;
4229 ia64*) machine=ia64 ;;
4230 m68k*) machine=m68k ;;
4231 x86_64*) machine=amdx86-64 ;;
4232 esac
4235 ## FreeBSD ports
4236 *-*-freebsd* )
4237 opsys=freebsd
4238 case "${canonical}" in
4239 alpha*) machine=alpha ;;
4240 amd64-*|x86_64-*) machine=amdx86-64 ;;
4241 ia64-*) machine=ia64 ;;
4242 i[3456]86-*) machine=intel386 ;;
4243 powerpc-*) machine=macppc ;;
4244 sparc-*) machine=sparc ;;
4245 sparc64-*) machine=sparc ;;
4246 esac
4249 ## FreeBSD kernel + glibc based userland
4250 *-*-kfreebsd*gnu* )
4251 opsys=gnu-kfreebsd
4252 case "${canonical}" in
4253 alpha*) machine=alpha ;;
4254 amd64-*|x86_64-*) machine=amdx86-64 ;;
4255 ia64-*) machine=ia64 ;;
4256 i[3456]86-*) machine=intel386 ;;
4257 powerpc-*) machine=macppc ;;
4258 sparc-*) machine=sparc ;;
4259 sparc64-*) machine=sparc ;;
4260 esac
4263 ## NetBSD ports
4264 *-*-netbsd* )
4265 opsys=netbsd
4266 case "${canonical}" in
4267 alpha*) machine=alpha ;;
4268 x86_64-*) machine=amdx86-64 ;;
4269 i[3456]86-*) machine=intel386 ;;
4270 m68k-*) machine=m68k ;;
4271 powerpc-*) machine=macppc ;;
4272 sparc*-) machine=sparc ;;
4273 vax-*) machine=vax ;;
4274 esac
4277 ## OpenBSD ports
4278 *-*-openbsd* )
4279 opsys=openbsd
4280 case "${canonical}" in
4281 alpha*) machine=alpha ;;
4282 x86_64-*) machine=amdx86-64 ;;
4283 i386-*) machine=intel386 ;;
4284 powerpc-*) machine=macppc ;;
4285 sparc*) machine=sparc ;;
4286 vax-*) machine=vax ;;
4287 esac
4290 ## Apple Darwin / Mac OS X
4291 *-apple-darwin* )
4292 case "${canonical}" in
4293 i[3456]86-* ) machine=intel386 ;;
4294 powerpc-* ) machine=macppc ;;
4295 x86_64-* ) machine=amdx86-64 ;;
4296 * ) unported=yes ;;
4297 esac
4298 opsys=darwin
4299 # Define CPP as follows to make autoconf work correctly.
4300 CPP="${CC-cc} -E -no-cpp-precomp"
4301 # Use fink packages if available.
4302 if test -d /sw/include && test -d /sw/lib; then
4303 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4304 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4305 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4309 ## HP 9000 series 700 and 800, running HP/UX
4310 hppa*-hp-hpux10.2* )
4311 opsys=hpux10-20
4313 hppa*-hp-hpux1[1-9]* )
4314 opsys=hpux11
4315 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4318 ia64*-hp-hpux1[1-9]* )
4319 machine=hp800 opsys=hpux11
4320 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4321 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4322 CANNOT_DUMP=yes
4325 hppa*-*-linux-gnu* )
4326 machine=hp800 opsys=gnu-linux
4329 ## IBM machines
4330 rs6000-ibm-aix4.[23]* )
4331 machine=ibmrs6000 opsys=aix4-2
4333 powerpc-ibm-aix4.[23]* )
4334 machine=ibmrs6000 opsys=aix4-2
4336 rs6000-ibm-aix[56]* )
4337 machine=ibmrs6000 opsys=aix4-2
4339 powerpc-ibm-aix[56]* )
4340 machine=ibmrs6000 opsys=aix4-2
4343 ## Silicon Graphics machines
4344 ## Iris 4D
4345 mips-sgi-irix6.5 )
4346 machine=iris4d opsys=irix6-5
4347 # Without defining _LANGUAGE_C, things get masked out in the headers
4348 # so that, for instance, grepping for `free' in stdlib.h fails and
4349 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4350 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4351 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4354 ## Suns
4355 *-sun-solaris* \
4356 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4357 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4358 case "${canonical}" in
4359 i[3456]86-*-* ) machine=intel386 ;;
4360 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4361 sparc* ) machine=sparc ;;
4362 * ) unported=yes ;;
4363 esac
4364 case "${canonical}" in
4365 *-sunos5.6* | *-solaris2.6* )
4366 opsys=sol2-6
4367 NON_GNU_CPP=/usr/ccs/lib/cpp
4368 RANLIB="ar -ts"
4370 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4371 opsys=sol2-6
4372 emacs_check_sunpro_c=yes
4373 NON_GNU_CPP=/usr/ccs/lib/cpp
4375 *-sunos5* | *-solaris* )
4376 opsys=sol2-10
4377 emacs_check_sunpro_c=yes
4378 NON_GNU_CPP=/usr/ccs/lib/cpp
4380 esac
4381 ## Watch out for a compiler that we know will not work.
4382 case "${canonical}" in
4383 *-solaris* | *-sunos5* )
4384 if [ "x$CC" = x/usr/ucb/cc ]; then
4385 ## /usr/ucb/cc doesn't work;
4386 ## we should find some other compiler that does work.
4387 unset CC
4390 *) ;;
4391 esac
4394 ## Intel 386 machines where we don't care about the manufacturer.
4395 i[3456]86-*-* )
4396 machine=intel386
4397 case "${canonical}" in
4398 *-cygwin ) opsys=cygwin ;;
4399 *-darwin* ) opsys=darwin
4400 CPP="${CC-cc} -E -no-cpp-precomp"
4402 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4403 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4404 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4405 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4406 esac
4410 unported=yes
4412 esac
4414 ### If the code above didn't choose an operating system, just choose
4415 ### an operating system based on the configuration name. You really
4416 ### only want to use this when you have no idea what the right
4417 ### operating system is; if you know what operating systems a machine
4418 ### runs, it's cleaner to make it explicit in the case statement
4419 ### above.
4420 if test x"${opsys}" = x; then
4421 case "${canonical}" in
4422 *-gnu* ) opsys=gnu ;;
4424 unported=yes
4426 esac
4431 if test $unported = yes; then
4432 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4433 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4436 if test -n "$machine"; then
4437 machfile="m/${machine}.h"
4438 else
4439 machfile=
4441 opsysfile="s/${opsys}.h"
4444 #### Choose a compiler.
4445 test -n "$CC" && cc_specified=yes
4447 # Save the value of CFLAGS that the user specified.
4448 SPECIFIED_CFLAGS="$CFLAGS"
4450 ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4457 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_CC+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -n "$CC"; then
4464 ac_cv_prog_CC="$CC" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4477 done
4478 done
4479 IFS=$as_save_IFS
4483 CC=$ac_cv_prog_CC
4484 if test -n "$CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4486 $as_echo "$CC" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4494 if test -z "$ac_cv_prog_CC"; then
4495 ac_ct_CC=$CC
4496 # Extract the first word of "gcc", so it can be a program name with args.
4497 set dummy gcc; ac_word=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -n "$ac_ct_CC"; then
4504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_ac_ct_CC="gcc"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4517 done
4518 done
4519 IFS=$as_save_IFS
4523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4524 if test -n "$ac_ct_CC"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4526 $as_echo "$ac_ct_CC" >&6; }
4527 else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4532 if test "x$ac_ct_CC" = x; then
4533 CC=""
4534 else
4535 case $cross_compiling:$ac_tool_warned in
4536 yes:)
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539 ac_tool_warned=yes ;;
4540 esac
4541 CC=$ac_ct_CC
4543 else
4544 CC="$ac_cv_prog_CC"
4547 if test -z "$CC"; then
4548 if test -n "$ac_tool_prefix"; then
4549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4550 set dummy ${ac_tool_prefix}cc; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_CC+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if test -n "$CC"; then
4557 ac_cv_prog_CC="$CC" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_CC="${ac_tool_prefix}cc"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 break 2
4570 done
4571 done
4572 IFS=$as_save_IFS
4576 CC=$ac_cv_prog_CC
4577 if test -n "$CC"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4579 $as_echo "$CC" >&6; }
4580 else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4588 if test -z "$CC"; then
4589 # Extract the first word of "cc", so it can be a program name with args.
4590 set dummy cc; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_CC+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$CC"; then
4597 ac_cv_prog_CC="$CC" # Let the user override the test.
4598 else
4599 ac_prog_rejected=no
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4608 ac_prog_rejected=yes
4609 continue
4611 ac_cv_prog_CC="cc"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4617 IFS=$as_save_IFS
4619 if test $ac_prog_rejected = yes; then
4620 # We found a bogon in the path, so make sure we never use it.
4621 set dummy $ac_cv_prog_CC
4622 shift
4623 if test $# != 0; then
4624 # We chose a different compiler from the bogus one.
4625 # However, it has the same basename, so the bogon will be chosen
4626 # first if we set CC to just the basename; use the full file name.
4627 shift
4628 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4633 CC=$ac_cv_prog_CC
4634 if test -n "$CC"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4636 $as_echo "$CC" >&6; }
4637 else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4644 if test -z "$CC"; then
4645 if test -n "$ac_tool_prefix"; then
4646 for ac_prog in cl.exe
4648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_CC+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$CC"; then
4656 ac_cv_prog_CC="$CC" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4675 CC=$ac_cv_prog_CC
4676 if test -n "$CC"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4678 $as_echo "$CC" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4685 test -n "$CC" && break
4686 done
4688 if test -z "$CC"; then
4689 ac_ct_CC=$CC
4690 for ac_prog in cl.exe
4692 # Extract the first word of "$ac_prog", so it can be a program name with args.
4693 set dummy $ac_prog; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$ac_ct_CC"; then
4700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_CC="$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4715 IFS=$as_save_IFS
4719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4720 if test -n "$ac_ct_CC"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4722 $as_echo "$ac_ct_CC" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4729 test -n "$ac_ct_CC" && break
4730 done
4732 if test "x$ac_ct_CC" = x; then
4733 CC=""
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741 CC=$ac_ct_CC
4748 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4750 as_fn_error $? "no acceptable C compiler found in \$PATH
4751 See \`config.log' for more details" "$LINENO" 5; }
4753 # Provide some information about the compiler.
4754 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4755 set X $ac_compile
4756 ac_compiler=$2
4757 for ac_option in --version -v -V -qversion; do
4758 { { ac_try="$ac_compiler $ac_option >&5"
4759 case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762 esac
4763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4764 $as_echo "$ac_try_echo"; } >&5
4765 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4766 ac_status=$?
4767 if test -s conftest.err; then
4768 sed '10a\
4769 ... rest of stderr output deleted ...
4770 10q' conftest.err >conftest.er1
4771 cat conftest.er1 >&5
4773 rm -f conftest.er1 conftest.err
4774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4775 test $ac_status = 0; }
4776 done
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4782 main ()
4786 return 0;
4788 _ACEOF
4789 ac_clean_files_save=$ac_clean_files
4790 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4791 # Try to create an executable without -o first, disregard a.out.
4792 # It will help us diagnose broken compilers, and finding out an intuition
4793 # of exeext.
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4795 $as_echo_n "checking whether the C compiler works... " >&6; }
4796 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4798 # The possible output files:
4799 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4801 ac_rmfiles=
4802 for ac_file in $ac_files
4804 case $ac_file in
4805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4807 esac
4808 done
4809 rm -f $ac_rmfiles
4811 if { { ac_try="$ac_link_default"
4812 case "(($ac_try" in
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4815 esac
4816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4817 $as_echo "$ac_try_echo"; } >&5
4818 (eval "$ac_link_default") 2>&5
4819 ac_status=$?
4820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821 test $ac_status = 0; }; then :
4822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4824 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4825 # so that the user can short-circuit this test for compilers unknown to
4826 # Autoconf.
4827 for ac_file in $ac_files ''
4829 test -f "$ac_file" || continue
4830 case $ac_file in
4831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4833 [ab].out )
4834 # We found the default executable, but exeext='' is most
4835 # certainly right.
4836 break;;
4837 *.* )
4838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4839 then :; else
4840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4842 # We set ac_cv_exeext here because the later test for it is not
4843 # safe: cross compilers may not add the suffix if given an `-o'
4844 # argument, so we may need to know it at that point already.
4845 # Even if this section looks crufty: it has the advantage of
4846 # actually working.
4847 break;;
4849 break;;
4850 esac
4851 done
4852 test "$ac_cv_exeext" = no && ac_cv_exeext=
4854 else
4855 ac_file=''
4857 if test -z "$ac_file"; then :
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 $as_echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4865 as_fn_error 77 "C compiler cannot create executables
4866 See \`config.log' for more details" "$LINENO" 5; }
4867 else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4869 $as_echo "yes" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4872 $as_echo_n "checking for C compiler default output file name... " >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4874 $as_echo "$ac_file" >&6; }
4875 ac_exeext=$ac_cv_exeext
4877 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4878 ac_clean_files=$ac_clean_files_save
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4880 $as_echo_n "checking for suffix of executables... " >&6; }
4881 if { { ac_try="$ac_link"
4882 case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885 esac
4886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4887 $as_echo "$ac_try_echo"; } >&5
4888 (eval "$ac_link") 2>&5
4889 ac_status=$?
4890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4891 test $ac_status = 0; }; then :
4892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4894 # work properly (i.e., refer to `conftest.exe'), while it won't with
4895 # `rm'.
4896 for ac_file in conftest.exe conftest conftest.*; do
4897 test -f "$ac_file" || continue
4898 case $ac_file in
4899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4901 break;;
4902 * ) break;;
4903 esac
4904 done
4905 else
4906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4908 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4909 See \`config.log' for more details" "$LINENO" 5; }
4911 rm -f conftest conftest$ac_cv_exeext
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4913 $as_echo "$ac_cv_exeext" >&6; }
4915 rm -f conftest.$ac_ext
4916 EXEEXT=$ac_cv_exeext
4917 ac_exeext=$EXEEXT
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4920 #include <stdio.h>
4922 main ()
4924 FILE *f = fopen ("conftest.out", "w");
4925 return ferror (f) || fclose (f) != 0;
4928 return 0;
4930 _ACEOF
4931 ac_clean_files="$ac_clean_files conftest.out"
4932 # Check that the compiler produces executables we can run. If not, either
4933 # the compiler is broken, or we cross compile.
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4935 $as_echo_n "checking whether we are cross compiling... " >&6; }
4936 if test "$cross_compiling" != yes; then
4937 { { ac_try="$ac_link"
4938 case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4943 $as_echo "$ac_try_echo"; } >&5
4944 (eval "$ac_link") 2>&5
4945 ac_status=$?
4946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4947 test $ac_status = 0; }
4948 if { ac_try='./conftest$ac_cv_exeext'
4949 { { case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952 esac
4953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4954 $as_echo "$ac_try_echo"; } >&5
4955 (eval "$ac_try") 2>&5
4956 ac_status=$?
4957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4958 test $ac_status = 0; }; }; then
4959 cross_compiling=no
4960 else
4961 if test "$cross_compiling" = maybe; then
4962 cross_compiling=yes
4963 else
4964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966 as_fn_error $? "cannot run C compiled programs.
4967 If you meant to cross compile, use \`--host'.
4968 See \`config.log' for more details" "$LINENO" 5; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4973 $as_echo "$cross_compiling" >&6; }
4975 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4976 ac_clean_files=$ac_clean_files_save
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4978 $as_echo_n "checking for suffix of object files... " >&6; }
4979 if ${ac_cv_objext+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4986 main ()
4990 return 0;
4992 _ACEOF
4993 rm -f conftest.o conftest.obj
4994 if { { ac_try="$ac_compile"
4995 case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998 esac
4999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5000 $as_echo "$ac_try_echo"; } >&5
5001 (eval "$ac_compile") 2>&5
5002 ac_status=$?
5003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5004 test $ac_status = 0; }; then :
5005 for ac_file in conftest.o conftest.obj conftest.*; do
5006 test -f "$ac_file" || continue;
5007 case $ac_file in
5008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5009 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5010 break;;
5011 esac
5012 done
5013 else
5014 $as_echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5019 as_fn_error $? "cannot compute suffix of object files: cannot compile
5020 See \`config.log' for more details" "$LINENO" 5; }
5022 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5025 $as_echo "$ac_cv_objext" >&6; }
5026 OBJEXT=$ac_cv_objext
5027 ac_objext=$OBJEXT
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5029 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5030 if ${ac_cv_c_compiler_gnu+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5037 main ()
5039 #ifndef __GNUC__
5040 choke me
5041 #endif
5044 return 0;
5046 _ACEOF
5047 if ac_fn_c_try_compile "$LINENO"; then :
5048 ac_compiler_gnu=yes
5049 else
5050 ac_compiler_gnu=no
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5057 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5058 if test $ac_compiler_gnu = yes; then
5059 GCC=yes
5060 else
5061 GCC=
5063 ac_test_CFLAGS=${CFLAGS+set}
5064 ac_save_CFLAGS=$CFLAGS
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5066 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5067 if ${ac_cv_prog_cc_g+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 ac_save_c_werror_flag=$ac_c_werror_flag
5071 ac_c_werror_flag=yes
5072 ac_cv_prog_cc_g=no
5073 CFLAGS="-g"
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5078 main ()
5082 return 0;
5084 _ACEOF
5085 if ac_fn_c_try_compile "$LINENO"; then :
5086 ac_cv_prog_cc_g=yes
5087 else
5088 CFLAGS=""
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5093 main ()
5097 return 0;
5099 _ACEOF
5100 if ac_fn_c_try_compile "$LINENO"; then :
5102 else
5103 ac_c_werror_flag=$ac_save_c_werror_flag
5104 CFLAGS="-g"
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5109 main ()
5113 return 0;
5115 _ACEOF
5116 if ac_fn_c_try_compile "$LINENO"; then :
5117 ac_cv_prog_cc_g=yes
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 ac_c_werror_flag=$ac_save_c_werror_flag
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5127 $as_echo "$ac_cv_prog_cc_g" >&6; }
5128 if test "$ac_test_CFLAGS" = set; then
5129 CFLAGS=$ac_save_CFLAGS
5130 elif test $ac_cv_prog_cc_g = yes; then
5131 if test "$GCC" = yes; then
5132 CFLAGS="-g -O2"
5133 else
5134 CFLAGS="-g"
5136 else
5137 if test "$GCC" = yes; then
5138 CFLAGS="-O2"
5139 else
5140 CFLAGS=
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5145 if ${ac_cv_prog_cc_c89+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 ac_cv_prog_cc_c89=no
5149 ac_save_CC=$CC
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5152 #include <stdarg.h>
5153 #include <stdio.h>
5154 #include <sys/types.h>
5155 #include <sys/stat.h>
5156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5157 struct buf { int x; };
5158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5159 static char *e (p, i)
5160 char **p;
5161 int i;
5163 return p[i];
5165 static char *f (char * (*g) (char **, int), char **p, ...)
5167 char *s;
5168 va_list v;
5169 va_start (v,p);
5170 s = g (p, va_arg (v,int));
5171 va_end (v);
5172 return s;
5175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5176 function prototypes and stuff, but not '\xHH' hex character constants.
5177 These don't provoke an error unfortunately, instead are silently treated
5178 as 'x'. The following induces an error, until -std is added to get
5179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5180 array size at least. It's necessary to write '\x00'==0 to get something
5181 that's true only with -std. */
5182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5185 inside strings and character constants. */
5186 #define FOO(x) 'x'
5187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5189 int test (int i, double x);
5190 struct s1 {int (*f) (int a);};
5191 struct s2 {int (*f) (double a);};
5192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5193 int argc;
5194 char **argv;
5196 main ()
5198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5200 return 0;
5202 _ACEOF
5203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5206 CC="$ac_save_CC $ac_arg"
5207 if ac_fn_c_try_compile "$LINENO"; then :
5208 ac_cv_prog_cc_c89=$ac_arg
5210 rm -f core conftest.err conftest.$ac_objext
5211 test "x$ac_cv_prog_cc_c89" != "xno" && break
5212 done
5213 rm -f conftest.$ac_ext
5214 CC=$ac_save_CC
5217 # AC_CACHE_VAL
5218 case "x$ac_cv_prog_cc_c89" in
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5221 $as_echo "none needed" >&6; } ;;
5222 xno)
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5224 $as_echo "unsupported" >&6; } ;;
5226 CC="$CC $ac_cv_prog_cc_c89"
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5229 esac
5230 if test "x$ac_cv_prog_cc_c89" != xno; then :
5234 ac_ext=c
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239 DEPDIR="${am__leading_dot}deps"
5241 ac_config_commands="$ac_config_commands depfiles"
5244 am_make=${MAKE-make}
5245 cat > confinc << 'END'
5246 am__doit:
5247 @echo this is the am__doit target
5248 .PHONY: am__doit
5250 # If we don't find an include directive, just comment out the code.
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5252 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5253 am__include="#"
5254 am__quote=
5255 _am_result=none
5256 # First try GNU make style include.
5257 echo "include confinc" > confmf
5258 # Ignore all kinds of additional output from `make'.
5259 case `$am_make -s -f confmf 2> /dev/null` in #(
5260 *the\ am__doit\ target*)
5261 am__include=include
5262 am__quote=
5263 _am_result=GNU
5265 esac
5266 # Now try BSD make style include.
5267 if test "$am__include" = "#"; then
5268 echo '.include "confinc"' > confmf
5269 case `$am_make -s -f confmf 2> /dev/null` in #(
5270 *the\ am__doit\ target*)
5271 am__include=.include
5272 am__quote="\""
5273 _am_result=BSD
5275 esac
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5280 $as_echo "$_am_result" >&6; }
5281 rm -f confinc confmf
5283 # Check whether --enable-dependency-tracking was given.
5284 if test "${enable_dependency_tracking+set}" = set; then :
5285 enableval=$enable_dependency_tracking;
5288 if test "x$enable_dependency_tracking" != xno; then
5289 am_depcomp="$ac_aux_dir/depcomp"
5290 AMDEPBACKSLASH='\'
5292 if test "x$enable_dependency_tracking" != xno; then
5293 AMDEP_TRUE=
5294 AMDEP_FALSE='#'
5295 else
5296 AMDEP_TRUE='#'
5297 AMDEP_FALSE=
5302 depcc="$CC" am_compiler_list=
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5305 $as_echo_n "checking dependency style of $depcc... " >&6; }
5306 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5310 # We make a subdir and do the tests there. Otherwise we can end up
5311 # making bogus files that we don't know about and never remove. For
5312 # instance it was reported that on HP-UX the gcc test will end up
5313 # making a dummy file named `D' -- because `-MD' means `put the output
5314 # in D'.
5315 mkdir conftest.dir
5316 # Copy depcomp to subdir because otherwise we won't find it if we're
5317 # using a relative directory.
5318 cp "$am_depcomp" conftest.dir
5319 cd conftest.dir
5320 # We will build objects and dependencies in a subdirectory because
5321 # it helps to detect inapplicable dependency modes. For instance
5322 # both Tru64's cc and ICC support -MD to output dependencies as a
5323 # side effect of compilation, but ICC will put the dependencies in
5324 # the current directory while Tru64 will put them in the object
5325 # directory.
5326 mkdir sub
5328 am_cv_CC_dependencies_compiler_type=none
5329 if test "$am_compiler_list" = ""; then
5330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5332 am__universal=false
5333 case " $depcc " in #(
5334 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5335 esac
5337 for depmode in $am_compiler_list; do
5338 # Setup a source with many dependencies, because some compilers
5339 # like to wrap large dependency lists on column 80 (with \), and
5340 # we should not choose a depcomp mode which is confused by this.
5342 # We need to recreate these files for each test, as the compiler may
5343 # overwrite some of them when testing with obscure command lines.
5344 # This happens at least with the AIX C compiler.
5345 : > sub/conftest.c
5346 for i in 1 2 3 4 5 6; do
5347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5349 # Solaris 8's {/usr,}/bin/sh.
5350 touch sub/conftst$i.h
5351 done
5352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5354 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355 # mode. It turns out that the SunPro C++ compiler does not properly
5356 # handle `-M -o', and we need to detect this. Also, some Intel
5357 # versions had trouble with output in subdirs
5358 am__obj=sub/conftest.${OBJEXT-o}
5359 am__minus_obj="-o $am__obj"
5360 case $depmode in
5361 gcc)
5362 # This depmode causes a compiler race in universal mode.
5363 test "$am__universal" = false || continue
5365 nosideeffect)
5366 # after this tag, mechanisms are not by side-effect, so they'll
5367 # only be used when explicitly requested
5368 if test "x$enable_dependency_tracking" = xyes; then
5369 continue
5370 else
5371 break
5374 msvisualcpp | msvcmsys)
5375 # This compiler won't grok `-c -o', but also, the minuso test has
5376 # not run yet. These depmodes are late enough in the game, and
5377 # so weak that their functioning should not be impacted.
5378 am__obj=conftest.${OBJEXT-o}
5379 am__minus_obj=
5381 none) break ;;
5382 esac
5383 if depmode=$depmode \
5384 source=sub/conftest.c object=$am__obj \
5385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5386 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5387 >/dev/null 2>conftest.err &&
5388 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5390 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5392 # icc doesn't choke on unknown options, it will just issue warnings
5393 # or remarks (even with -Werror). So we grep stderr for any message
5394 # that says an option was ignored or not supported.
5395 # When given -MP, icc 7.0 and 7.1 complain thusly:
5396 # icc: Command line warning: ignoring option '-M'; no argument required
5397 # The diagnosis changed in icc 8.0:
5398 # icc: Command line remark: option '-MP' not supported
5399 if (grep 'ignoring option' conftest.err ||
5400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5401 am_cv_CC_dependencies_compiler_type=$depmode
5402 break
5405 done
5407 cd ..
5408 rm -rf conftest.dir
5409 else
5410 am_cv_CC_dependencies_compiler_type=none
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5415 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5416 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5419 test "x$enable_dependency_tracking" != xno \
5420 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5421 am__fastdepCC_TRUE=
5422 am__fastdepCC_FALSE='#'
5423 else
5424 am__fastdepCC_TRUE='#'
5425 am__fastdepCC_FALSE=
5429 if test "x$CC" != xcc; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5431 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5432 else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5434 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5436 set dummy $CC; ac_cc=`$as_echo "$2" |
5437 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5438 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5445 main ()
5449 return 0;
5451 _ACEOF
5452 # Make sure it works both with $CC and with simple cc.
5453 # We do the test twice because some compilers refuse to overwrite an
5454 # existing .o file with -o, though they will create one.
5455 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5456 rm -f conftest2.*
5457 if { { case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460 esac
5461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5462 $as_echo "$ac_try_echo"; } >&5
5463 (eval "$ac_try") 2>&5
5464 ac_status=$?
5465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5466 test $ac_status = 0; } &&
5467 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470 esac
5471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5472 $as_echo "$ac_try_echo"; } >&5
5473 (eval "$ac_try") 2>&5
5474 ac_status=$?
5475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476 test $ac_status = 0; };
5477 then
5478 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5479 if test "x$CC" != xcc; then
5480 # Test first that cc exists at all.
5481 if { ac_try='cc -c conftest.$ac_ext >&5'
5482 { { case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485 esac
5486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5487 $as_echo "$ac_try_echo"; } >&5
5488 (eval "$ac_try") 2>&5
5489 ac_status=$?
5490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491 test $ac_status = 0; }; }; then
5492 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5493 rm -f conftest2.*
5494 if { { case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497 esac
5498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5499 $as_echo "$ac_try_echo"; } >&5
5500 (eval "$ac_try") 2>&5
5501 ac_status=$?
5502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5503 test $ac_status = 0; } &&
5504 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5509 $as_echo "$ac_try_echo"; } >&5
5510 (eval "$ac_try") 2>&5
5511 ac_status=$?
5512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5513 test $ac_status = 0; };
5514 then
5515 # cc works too.
5517 else
5518 # cc exists but doesn't like -o.
5519 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5523 else
5524 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5526 rm -f core conftest*
5529 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5531 $as_echo "yes" >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5536 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5540 # FIXME: we rely on the cache variable name because
5541 # there is no other way.
5542 set dummy $CC
5543 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5544 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5545 if test "$am_t" != yes; then
5546 # Losing compiler, so override with the script.
5547 # FIXME: It is wrong to rewrite CC.
5548 # But if we don't then we get into trouble of one sort or another.
5549 # A longer-term fix would be to have automake use am__CC in this case,
5550 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5551 CC="$am_aux_dir/compile $CC"
5556 # Initialize gnulib right after verifying that the C compiler works.
5557 if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_RANLIB+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$RANLIB"; then
5566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5579 done
5580 done
5581 IFS=$as_save_IFS
5585 RANLIB=$ac_cv_prog_RANLIB
5586 if test -n "$RANLIB"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5588 $as_echo "$RANLIB" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5596 if test -z "$ac_cv_prog_RANLIB"; then
5597 ac_ct_RANLIB=$RANLIB
5598 # Extract the first word of "ranlib", so it can be a program name with args.
5599 set dummy ranlib; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$ac_ct_RANLIB"; then
5606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_ac_ct_RANLIB="ranlib"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5619 done
5620 done
5621 IFS=$as_save_IFS
5625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5626 if test -n "$ac_ct_RANLIB"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5628 $as_echo "$ac_ct_RANLIB" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5634 if test "x$ac_ct_RANLIB" = x; then
5635 RANLIB=":"
5636 else
5637 case $cross_compiling:$ac_tool_warned in
5638 yes:)
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641 ac_tool_warned=yes ;;
5642 esac
5643 RANLIB=$ac_ct_RANLIB
5645 else
5646 RANLIB="$ac_cv_prog_RANLIB"
5650 ac_ext=c
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5656 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5657 # On Suns, sometimes $CPP names a directory.
5658 if test -n "$CPP" && test -d "$CPP"; then
5659 CPP=
5661 if test -z "$CPP"; then
5662 if ${ac_cv_prog_CPP+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 # Double quotes because CPP needs to be expanded
5666 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5668 ac_preproc_ok=false
5669 for ac_c_preproc_warn_flag in '' yes
5671 # Use a header file that comes with gcc, so configuring glibc
5672 # with a fresh cross-compiler works.
5673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5674 # <limits.h> exists even on freestanding compilers.
5675 # On the NeXT, cc -E runs the code through the compiler's parser,
5676 # not just through cpp. "Syntax error" is here to catch this case.
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 #ifdef __STDC__
5680 # include <limits.h>
5681 #else
5682 # include <assert.h>
5683 #endif
5684 Syntax error
5685 _ACEOF
5686 if ac_fn_c_try_cpp "$LINENO"; then :
5688 else
5689 # Broken: fails on valid input.
5690 continue
5692 rm -f conftest.err conftest.i conftest.$ac_ext
5694 # OK, works on sane cases. Now check whether nonexistent headers
5695 # can be detected and how.
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #include <ac_nonexistent.h>
5699 _ACEOF
5700 if ac_fn_c_try_cpp "$LINENO"; then :
5701 # Broken: success on invalid input.
5702 continue
5703 else
5704 # Passes both tests.
5705 ac_preproc_ok=:
5706 break
5708 rm -f conftest.err conftest.i conftest.$ac_ext
5710 done
5711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5712 rm -f conftest.i conftest.err conftest.$ac_ext
5713 if $ac_preproc_ok; then :
5714 break
5717 done
5718 ac_cv_prog_CPP=$CPP
5721 CPP=$ac_cv_prog_CPP
5722 else
5723 ac_cv_prog_CPP=$CPP
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5726 $as_echo "$CPP" >&6; }
5727 ac_preproc_ok=false
5728 for ac_c_preproc_warn_flag in '' yes
5730 # Use a header file that comes with gcc, so configuring glibc
5731 # with a fresh cross-compiler works.
5732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5733 # <limits.h> exists even on freestanding compilers.
5734 # On the NeXT, cc -E runs the code through the compiler's parser,
5735 # not just through cpp. "Syntax error" is here to catch this case.
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #ifdef __STDC__
5739 # include <limits.h>
5740 #else
5741 # include <assert.h>
5742 #endif
5743 Syntax error
5744 _ACEOF
5745 if ac_fn_c_try_cpp "$LINENO"; then :
5747 else
5748 # Broken: fails on valid input.
5749 continue
5751 rm -f conftest.err conftest.i conftest.$ac_ext
5753 # OK, works on sane cases. Now check whether nonexistent headers
5754 # can be detected and how.
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #include <ac_nonexistent.h>
5758 _ACEOF
5759 if ac_fn_c_try_cpp "$LINENO"; then :
5760 # Broken: success on invalid input.
5761 continue
5762 else
5763 # Passes both tests.
5764 ac_preproc_ok=:
5765 break
5767 rm -f conftest.err conftest.i conftest.$ac_ext
5769 done
5770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5771 rm -f conftest.i conftest.err conftest.$ac_ext
5772 if $ac_preproc_ok; then :
5774 else
5775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5777 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5778 See \`config.log' for more details" "$LINENO" 5; }
5781 ac_ext=c
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5789 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5790 if ${ac_cv_path_GREP+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if test -z "$GREP"; then
5794 ac_path_GREP_found=false
5795 # Loop through the user's path and test for each of PROGNAME-LIST
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_prog in grep ggrep; do
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5804 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5805 # Check for GNU ac_path_GREP and select it if it is found.
5806 # Check for GNU $ac_path_GREP
5807 case `"$ac_path_GREP" --version 2>&1` in
5808 *GNU*)
5809 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5811 ac_count=0
5812 $as_echo_n 0123456789 >"conftest.in"
5813 while :
5815 cat "conftest.in" "conftest.in" >"conftest.tmp"
5816 mv "conftest.tmp" "conftest.in"
5817 cp "conftest.in" "conftest.nl"
5818 $as_echo 'GREP' >> "conftest.nl"
5819 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5821 as_fn_arith $ac_count + 1 && ac_count=$as_val
5822 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5823 # Best one so far, save it but keep looking for a better one
5824 ac_cv_path_GREP="$ac_path_GREP"
5825 ac_path_GREP_max=$ac_count
5827 # 10*(2^10) chars as input seems more than enough
5828 test $ac_count -gt 10 && break
5829 done
5830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5831 esac
5833 $ac_path_GREP_found && break 3
5834 done
5835 done
5836 done
5837 IFS=$as_save_IFS
5838 if test -z "$ac_cv_path_GREP"; then
5839 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5841 else
5842 ac_cv_path_GREP=$GREP
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5847 $as_echo "$ac_cv_path_GREP" >&6; }
5848 GREP="$ac_cv_path_GREP"
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5852 $as_echo_n "checking for egrep... " >&6; }
5853 if ${ac_cv_path_EGREP+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5857 then ac_cv_path_EGREP="$GREP -E"
5858 else
5859 if test -z "$EGREP"; then
5860 ac_path_EGREP_found=false
5861 # Loop through the user's path and test for each of PROGNAME-LIST
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_prog in egrep; do
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5870 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5871 # Check for GNU ac_path_EGREP and select it if it is found.
5872 # Check for GNU $ac_path_EGREP
5873 case `"$ac_path_EGREP" --version 2>&1` in
5874 *GNU*)
5875 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5877 ac_count=0
5878 $as_echo_n 0123456789 >"conftest.in"
5879 while :
5881 cat "conftest.in" "conftest.in" >"conftest.tmp"
5882 mv "conftest.tmp" "conftest.in"
5883 cp "conftest.in" "conftest.nl"
5884 $as_echo 'EGREP' >> "conftest.nl"
5885 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5887 as_fn_arith $ac_count + 1 && ac_count=$as_val
5888 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5889 # Best one so far, save it but keep looking for a better one
5890 ac_cv_path_EGREP="$ac_path_EGREP"
5891 ac_path_EGREP_max=$ac_count
5893 # 10*(2^10) chars as input seems more than enough
5894 test $ac_count -gt 10 && break
5895 done
5896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5897 esac
5899 $ac_path_EGREP_found && break 3
5900 done
5901 done
5902 done
5903 IFS=$as_save_IFS
5904 if test -z "$ac_cv_path_EGREP"; then
5905 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5907 else
5908 ac_cv_path_EGREP=$EGREP
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5914 $as_echo "$ac_cv_path_EGREP" >&6; }
5915 EGREP="$ac_cv_path_EGREP"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5919 $as_echo_n "checking for ANSI C header files... " >&6; }
5920 if ${ac_cv_header_stdc+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 #include <stdlib.h>
5926 #include <stdarg.h>
5927 #include <string.h>
5928 #include <float.h>
5931 main ()
5935 return 0;
5937 _ACEOF
5938 if ac_fn_c_try_compile "$LINENO"; then :
5939 ac_cv_header_stdc=yes
5940 else
5941 ac_cv_header_stdc=no
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 if test $ac_cv_header_stdc = yes; then
5946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949 #include <string.h>
5951 _ACEOF
5952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953 $EGREP "memchr" >/dev/null 2>&1; then :
5955 else
5956 ac_cv_header_stdc=no
5958 rm -f conftest*
5962 if test $ac_cv_header_stdc = yes; then
5963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966 #include <stdlib.h>
5968 _ACEOF
5969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5970 $EGREP "free" >/dev/null 2>&1; then :
5972 else
5973 ac_cv_header_stdc=no
5975 rm -f conftest*
5979 if test $ac_cv_header_stdc = yes; then
5980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5981 if test "$cross_compiling" = yes; then :
5983 else
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986 #include <ctype.h>
5987 #include <stdlib.h>
5988 #if ((' ' & 0x0FF) == 0x020)
5989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5991 #else
5992 # define ISLOWER(c) \
5993 (('a' <= (c) && (c) <= 'i') \
5994 || ('j' <= (c) && (c) <= 'r') \
5995 || ('s' <= (c) && (c) <= 'z'))
5996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5997 #endif
5999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6001 main ()
6003 int i;
6004 for (i = 0; i < 256; i++)
6005 if (XOR (islower (i), ISLOWER (i))
6006 || toupper (i) != TOUPPER (i))
6007 return 2;
6008 return 0;
6010 _ACEOF
6011 if ac_fn_c_try_run "$LINENO"; then :
6013 else
6014 ac_cv_header_stdc=no
6016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6017 conftest.$ac_objext conftest.beam conftest.$ac_ext
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6023 $as_echo "$ac_cv_header_stdc" >&6; }
6024 if test $ac_cv_header_stdc = yes; then
6026 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6030 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6032 inttypes.h stdint.h unistd.h
6033 do :
6034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6035 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6037 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6038 cat >>confdefs.h <<_ACEOF
6039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6040 _ACEOF
6044 done
6050 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6051 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6052 MINIX=yes
6053 else
6054 MINIX=
6058 if test "$MINIX" = yes; then
6060 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6063 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6066 $as_echo "#define _MINIX 1" >>confdefs.h
6070 case "$host_os" in
6071 hpux*)
6073 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6076 esac
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6080 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6081 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6087 # define __EXTENSIONS__ 1
6088 $ac_includes_default
6090 main ()
6094 return 0;
6096 _ACEOF
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098 ac_cv_safe_to_define___extensions__=yes
6099 else
6100 ac_cv_safe_to_define___extensions__=no
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6105 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6106 test $ac_cv_safe_to_define___extensions__ = yes &&
6107 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6109 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6111 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6113 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6115 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6126 # Code from module arg-nonnull:
6127 # Code from module c++defs:
6128 # Code from module crypto/md5:
6129 # Code from module dosname:
6130 # Code from module dtoastr:
6131 # Code from module extensions:
6133 # Code from module filemode:
6134 # Code from module getloadavg:
6135 # Code from module getopt-gnu:
6136 # Code from module getopt-posix:
6137 # Code from module gettext-h:
6138 # Code from module ignore-value:
6139 # Code from module include_next:
6140 # Code from module intprops:
6141 # Code from module lstat:
6142 # Code from module mktime:
6143 # Code from module multiarch:
6144 # Code from module readlink:
6145 # Code from module socklen:
6146 # Code from module stat:
6147 # Code from module stdbool:
6148 # Code from module stddef:
6149 # Code from module stdint:
6150 # Code from module stdlib:
6151 # Code from module strftime:
6152 # Code from module symlink:
6153 # Code from module sys_stat:
6154 # Code from module time:
6155 # Code from module time_r:
6156 # Code from module unistd:
6157 # Code from module warn-on-use:
6160 # On Suns, sometimes $CPP names a directory.
6161 if test -n "$CPP" && test -d "$CPP"; then
6162 CPP=
6165 ## If not using gcc, and on Solaris, and no CPP specified, see if
6166 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6167 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6168 test x"$CPP" = x; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6170 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6171 if ${emacs_cv_sunpro_c+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6178 main ()
6180 #ifndef __SUNPRO_C
6181 fail;
6182 #endif
6185 return 0;
6187 _ACEOF
6188 if ac_fn_c_try_link "$LINENO"; then :
6189 emacs_cv_sunpro_c=yes
6190 else
6191 emacs_cv_sunpro_c=no
6193 rm -f core conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6198 $as_echo "$emacs_cv_sunpro_c" >&6; }
6200 if test x"$emacs_cv_sunpro_c" = xyes; then
6201 NON_GNU_CPP="$CC -E -Xs"
6205 #### Some systems specify a CPP to use unless we are using GCC.
6206 #### Now that we know whether we are using GCC, we can decide whether
6207 #### to use that one.
6208 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6209 then
6210 CPP="$NON_GNU_CPP"
6213 #### Some systems specify a CC to use unless we are using GCC.
6214 #### Now that we know whether we are using GCC, we can decide whether
6215 #### to use that one.
6216 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6217 test x$cc_specified != xyes
6218 then
6219 CC="$NON_GNU_CC"
6222 if test x$GCC = xyes; then
6223 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6224 else
6225 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6228 ### Use -Wdeclaration-after-statement if the compiler supports it
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6230 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6231 SAVE_CFLAGS="$CFLAGS"
6232 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6237 main ()
6241 return 0;
6243 _ACEOF
6244 if ac_fn_c_try_compile "$LINENO"; then :
6245 has_option=yes
6246 else
6247 has_option=no
6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 if test $has_option = yes; then
6251 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6254 $as_echo "$has_option" >&6; }
6255 CFLAGS="$SAVE_CFLAGS"
6256 unset has_option
6257 unset SAVE_CFLAGS
6259 ### Use -Wold-style-definition if the compiler supports it
6260 # This can be removed when conversion to standard C is finished.
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6262 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6263 SAVE_CFLAGS="$CFLAGS"
6264 CFLAGS="$CFLAGS -Wold-style-definition"
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6269 main ()
6273 return 0;
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"; then :
6277 has_option=yes
6278 else
6279 has_option=no
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 if test $has_option = yes; then
6283 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6286 $as_echo "$has_option" >&6; }
6287 CFLAGS="$SAVE_CFLAGS"
6288 unset has_option
6289 unset SAVE_CFLAGS
6291 ### Use -Wimplicit-function-declaration if the compiler supports it
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6293 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6294 SAVE_CFLAGS="$CFLAGS"
6295 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6300 main ()
6304 return 0;
6306 _ACEOF
6307 if ac_fn_c_try_compile "$LINENO"; then :
6308 has_option=yes
6309 else
6310 has_option=no
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 if test $has_option = yes; then
6314 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6317 $as_echo "$has_option" >&6; }
6318 CFLAGS="$SAVE_CFLAGS"
6319 unset has_option
6320 unset SAVE_CFLAGS
6325 #### Some other nice autoconf tests.
6327 ac_ext=c
6328 ac_cpp='$CPP $CPPFLAGS'
6329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6333 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6334 # On Suns, sometimes $CPP names a directory.
6335 if test -n "$CPP" && test -d "$CPP"; then
6336 CPP=
6338 if test -z "$CPP"; then
6339 if ${ac_cv_prog_CPP+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 # Double quotes because CPP needs to be expanded
6343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6345 ac_preproc_ok=false
6346 for ac_c_preproc_warn_flag in '' yes
6348 # Use a header file that comes with gcc, so configuring glibc
6349 # with a fresh cross-compiler works.
6350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6351 # <limits.h> exists even on freestanding compilers.
6352 # On the NeXT, cc -E runs the code through the compiler's parser,
6353 # not just through cpp. "Syntax error" is here to catch this case.
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 #ifdef __STDC__
6357 # include <limits.h>
6358 #else
6359 # include <assert.h>
6360 #endif
6361 Syntax error
6362 _ACEOF
6363 if ac_fn_c_try_cpp "$LINENO"; then :
6365 else
6366 # Broken: fails on valid input.
6367 continue
6369 rm -f conftest.err conftest.i conftest.$ac_ext
6371 # OK, works on sane cases. Now check whether nonexistent headers
6372 # can be detected and how.
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375 #include <ac_nonexistent.h>
6376 _ACEOF
6377 if ac_fn_c_try_cpp "$LINENO"; then :
6378 # Broken: success on invalid input.
6379 continue
6380 else
6381 # Passes both tests.
6382 ac_preproc_ok=:
6383 break
6385 rm -f conftest.err conftest.i conftest.$ac_ext
6387 done
6388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6389 rm -f conftest.i conftest.err conftest.$ac_ext
6390 if $ac_preproc_ok; then :
6391 break
6394 done
6395 ac_cv_prog_CPP=$CPP
6398 CPP=$ac_cv_prog_CPP
6399 else
6400 ac_cv_prog_CPP=$CPP
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6403 $as_echo "$CPP" >&6; }
6404 ac_preproc_ok=false
6405 for ac_c_preproc_warn_flag in '' yes
6407 # Use a header file that comes with gcc, so configuring glibc
6408 # with a fresh cross-compiler works.
6409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6410 # <limits.h> exists even on freestanding compilers.
6411 # On the NeXT, cc -E runs the code through the compiler's parser,
6412 # not just through cpp. "Syntax error" is here to catch this case.
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 #ifdef __STDC__
6416 # include <limits.h>
6417 #else
6418 # include <assert.h>
6419 #endif
6420 Syntax error
6421 _ACEOF
6422 if ac_fn_c_try_cpp "$LINENO"; then :
6424 else
6425 # Broken: fails on valid input.
6426 continue
6428 rm -f conftest.err conftest.i conftest.$ac_ext
6430 # OK, works on sane cases. Now check whether nonexistent headers
6431 # can be detected and how.
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 #include <ac_nonexistent.h>
6435 _ACEOF
6436 if ac_fn_c_try_cpp "$LINENO"; then :
6437 # Broken: success on invalid input.
6438 continue
6439 else
6440 # Passes both tests.
6441 ac_preproc_ok=:
6442 break
6444 rm -f conftest.err conftest.i conftest.$ac_ext
6446 done
6447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6448 rm -f conftest.i conftest.err conftest.$ac_ext
6449 if $ac_preproc_ok; then :
6451 else
6452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6454 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6455 See \`config.log' for more details" "$LINENO" 5; }
6458 ac_ext=c
6459 ac_cpp='$CPP $CPPFLAGS'
6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6465 if test "x$RANLIB" = x; then
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_RANLIB+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test -n "$RANLIB"; then
6475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6488 done
6489 done
6490 IFS=$as_save_IFS
6494 RANLIB=$ac_cv_prog_RANLIB
6495 if test -n "$RANLIB"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6497 $as_echo "$RANLIB" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6505 if test -z "$ac_cv_prog_RANLIB"; then
6506 ac_ct_RANLIB=$RANLIB
6507 # Extract the first word of "ranlib", so it can be a program name with args.
6508 set dummy ranlib; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 if test -n "$ac_ct_RANLIB"; then
6515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_ac_ct_RANLIB="ranlib"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6528 done
6529 done
6530 IFS=$as_save_IFS
6534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535 if test -n "$ac_ct_RANLIB"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6537 $as_echo "$ac_ct_RANLIB" >&6; }
6538 else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6543 if test "x$ac_ct_RANLIB" = x; then
6544 RANLIB=":"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552 RANLIB=$ac_ct_RANLIB
6554 else
6555 RANLIB="$ac_cv_prog_RANLIB"
6560 ## Although we're running on an amd64 kernel, we're actually compiling for
6561 ## the x86 architecture. The user should probably have provided an
6562 ## explicit --build to `configure', but if everything else than the kernel
6563 ## is running in i386 mode, we can help them out.
6564 if test "$machine" = "amdx86-64"; then
6565 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6566 if test "x$ac_cv_have_decl_i386" = xyes; then :
6570 if test "$ac_cv_have_decl_i386" = "yes"; then
6571 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6572 machine=intel386
6573 machfile="m/${machine}.h"
6577 # Extract the first word of "install-info", so it can be a program name with args.
6578 set dummy install-info; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 case $INSTALL_INFO in
6585 [\\/]* | ?:[\\/]*)
6586 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6600 done
6601 done
6602 IFS=$as_save_IFS
6605 esac
6607 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6608 if test -n "$INSTALL_INFO"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6610 $as_echo "$INSTALL_INFO" >&6; }
6611 else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6617 # Extract the first word of "install-info", so it can be a program name with args.
6618 set dummy install-info; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 case $INSTALL_INFO in
6625 [\\/]* | ?:[\\/]*)
6626 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in /usr/sbin
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6636 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6640 done
6641 done
6642 IFS=$as_save_IFS
6645 esac
6647 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6648 if test -n "$INSTALL_INFO"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6650 $as_echo "$INSTALL_INFO" >&6; }
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6657 # Extract the first word of "install-info", so it can be a program name with args.
6658 set dummy install-info; ac_word=$2
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660 $as_echo_n "checking for $ac_word... " >&6; }
6661 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 case $INSTALL_INFO in
6665 [\\/]* | ?:[\\/]*)
6666 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in /sbin
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6680 done
6681 done
6682 IFS=$as_save_IFS
6684 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6686 esac
6688 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6689 if test -n "$INSTALL_INFO"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6691 $as_echo "$INSTALL_INFO" >&6; }
6692 else
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6698 # Extract the first word of "gzip", so it can be a program name with args.
6699 set dummy gzip; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_path_GZIP_PROG+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 case $GZIP_PROG in
6706 [\\/]* | ?:[\\/]*)
6707 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6721 done
6722 done
6723 IFS=$as_save_IFS
6726 esac
6728 GZIP_PROG=$ac_cv_path_GZIP_PROG
6729 if test -n "$GZIP_PROG"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6731 $as_echo "$GZIP_PROG" >&6; }
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6740 ## Need makeinfo >= 4.6 (?) to build the manuals.
6741 # Extract the first word of "makeinfo", so it can be a program name with args.
6742 set dummy makeinfo; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if ${ac_cv_path_MAKEINFO+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 case $MAKEINFO in
6749 [\\/]* | ?:[\\/]*)
6750 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6764 done
6765 done
6766 IFS=$as_save_IFS
6768 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6770 esac
6772 MAKEINFO=$ac_cv_path_MAKEINFO
6773 if test -n "$MAKEINFO"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6775 $as_echo "$MAKEINFO" >&6; }
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6782 if test "$MAKEINFO" != "no" && \
6783 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
6784 MAKEINFO=no
6787 ## Makeinfo is unusual. For a released Emacs, the manuals are
6788 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6789 ## therefore in the category of "special tools" not normally required, which
6790 ## configure does not have to check for (eg autoconf itself).
6791 ## In a Bazaar checkout on the other hand, the manuals are not included.
6792 ## So makeinfo is a requirement to build from Bazaar, and configure
6793 ## should test for it as it does for any other build requirement.
6794 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6795 ## with pre-built manuals, from a Bazaar checkout.
6796 HAVE_MAKEINFO=yes
6798 if test "$MAKEINFO" = "no"; then
6799 MAKEINFO=makeinfo
6800 if test "x${with_makeinfo}" = "xno"; then
6801 HAVE_MAKEINFO=no
6802 elif test ! -e $srcdir/info/emacs; then
6803 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6804 source tree does not seem to have pre-built manuals in the \`info' directory.
6805 Either install a suitable version of makeinfo, or re-run configure
6806 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6812 if test x$GCC = xyes; then
6813 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6814 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6815 else
6816 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6817 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6821 late_LDFLAGS=$LDFLAGS
6822 if test x$GCC = xyes; then
6823 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6824 else
6825 LDFLAGS="$LDFLAGS -znocombreloc"
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6829 $as_echo_n "checking for -znocombreloc... " >&6; }
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6834 main ()
6838 return 0;
6840 _ACEOF
6841 if ac_fn_c_try_link "$LINENO"; then :
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6843 $as_echo "yes" >&6; }
6844 else
6845 LDFLAGS=$late_LDFLAGS
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6849 rm -f core conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
6853 # The value of CPP is a quoted variable reference, so we need to do this
6854 # to get its actual value...
6855 CPP=`eval "echo $CPP"`
6858 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6859 case "$opsys" in
6860 your-opsys-here) CANNOT_DUMP=yes ;;
6861 esac
6863 test "$CANNOT_DUMP" = "yes" && \
6865 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6871 UNEXEC_OBJ=unexelf.o
6872 case "$opsys" in
6873 # MSDOS uses unexcoff.o
6874 # MSWindows uses unexw32.o
6875 aix4-2)
6876 UNEXEC_OBJ=unexaix.o
6878 cygwin)
6879 UNEXEC_OBJ=unexcw.o
6881 darwin)
6882 UNEXEC_OBJ=unexmacosx.o
6884 hpux10-20 | hpux11)
6885 UNEXEC_OBJ=unexhp9k800.o
6887 sol2-10)
6888 # Use the Solaris dldump() function, called from unexsol.c, to dump
6889 # emacs, instead of the generic ELF dump code found in unexelf.c.
6890 # The resulting binary has a complete symbol table, and is better
6891 # for debugging and other observability tools (debuggers, pstack, etc).
6893 # If you encounter a problem using dldump(), please consider sending
6894 # a message to the OpenSolaris tools-linking mailing list:
6895 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6897 # It is likely that dldump() works with older Solaris too, but this has
6898 # not been tested, so for now this change is for Solaris 10 or newer.
6899 UNEXEC_OBJ=unexsol.o
6901 esac
6903 LD_SWITCH_SYSTEM=
6904 case "$opsys" in
6905 freebsd)
6906 ## Let `ld' find image libs and similar things in /usr/local/lib.
6907 ## The system compiler, GCC, has apparently been modified to not
6908 ## look there, contrary to what a stock GCC would do.
6909 LD_SWITCH_SYSTEM=-L/usr/local/lib
6912 gnu-linux)
6913 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6914 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6917 netbsd)
6918 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6921 openbsd)
6922 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6923 ## otherwise Emacs dumps core on elf systems.
6924 LD_SWITCH_SYSTEM="-Z"
6926 esac
6929 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6931 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6932 ## which has not been defined yet. When this was handled with cpp,
6933 ## it was expanded to null when configure sourced the s/*.h file.
6934 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6935 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6936 ## (or somesuch), but because it is supposed to go at the _front_
6937 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6938 ## Compare with the gnu-linux case below, which added to the end
6939 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6940 ## LD_SWITCH_SYSTEM_TEMACS.
6941 case "$opsys" in
6942 netbsd|openbsd)
6943 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6944 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6945 esac
6948 C_SWITCH_MACHINE=
6949 if test "$machine" = "alpha"; then
6950 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6951 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6955 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6956 ## With ELF, make sure that all common symbols get allocated to in the
6957 ## data section. Otherwise, the dump of temacs may miss variables in
6958 ## the shared library that have been initialized. For example, with
6959 ## GNU libc, __malloc_initialized would normally be resolved to the
6960 ## shared library's .bss section, which is fatal.
6961 if test "x$GCC" = "xyes"; then
6962 C_SWITCH_MACHINE="-fno-common"
6963 else
6964 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6966 else
6967 UNEXEC_OBJ=unexalpha.o
6974 C_SWITCH_SYSTEM=
6975 ## Some programs in src produce warnings saying certain subprograms
6976 ## are too complex and need a MAXMEM value greater than 2000 for
6977 ## additional optimization. --nils@exp-math.uni-essen.de
6978 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6979 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6980 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6981 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6985 LIBS_SYSTEM=
6986 case "$opsys" in
6987 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6988 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6990 freebsd) LIBS_SYSTEM="-lutil" ;;
6992 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6994 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
6996 ## Motif needs -lgen.
6997 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6998 esac
7002 ### Make sure subsequent tests use flags consistent with the build flags.
7004 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7005 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7006 else
7007 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7010 # Check whether --enable-largefile was given.
7011 if test "${enable_largefile+set}" = set; then :
7012 enableval=$enable_largefile;
7015 if test "$enable_largefile" != no; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7018 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7019 if ${ac_cv_sys_largefile_CC+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 ac_cv_sys_largefile_CC=no
7023 if test "$GCC" != yes; then
7024 ac_save_CC=$CC
7025 while :; do
7026 # IRIX 6.2 and later do not support large files by default,
7027 # so use the C compiler's -n32 option if that helps.
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7030 #include <sys/types.h>
7031 /* Check that off_t can represent 2**63 - 1 correctly.
7032 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7033 since some C++ compilers masquerading as C compilers
7034 incorrectly reject 9223372036854775807. */
7035 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7036 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7037 && LARGE_OFF_T % 2147483647 == 1)
7038 ? 1 : -1];
7040 main ()
7044 return 0;
7046 _ACEOF
7047 if ac_fn_c_try_compile "$LINENO"; then :
7048 break
7050 rm -f core conftest.err conftest.$ac_objext
7051 CC="$CC -n32"
7052 if ac_fn_c_try_compile "$LINENO"; then :
7053 ac_cv_sys_largefile_CC=' -n32'; break
7055 rm -f core conftest.err conftest.$ac_objext
7056 break
7057 done
7058 CC=$ac_save_CC
7059 rm -f conftest.$ac_ext
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7063 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7064 if test "$ac_cv_sys_largefile_CC" != no; then
7065 CC=$CC$ac_cv_sys_largefile_CC
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7069 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7070 if ${ac_cv_sys_file_offset_bits+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 while :; do
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 #include <sys/types.h>
7077 /* Check that off_t can represent 2**63 - 1 correctly.
7078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7079 since some C++ compilers masquerading as C compilers
7080 incorrectly reject 9223372036854775807. */
7081 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7083 && LARGE_OFF_T % 2147483647 == 1)
7084 ? 1 : -1];
7086 main ()
7090 return 0;
7092 _ACEOF
7093 if ac_fn_c_try_compile "$LINENO"; then :
7094 ac_cv_sys_file_offset_bits=no; break
7096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 #define _FILE_OFFSET_BITS 64
7100 #include <sys/types.h>
7101 /* Check that off_t can represent 2**63 - 1 correctly.
7102 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7103 since some C++ compilers masquerading as C compilers
7104 incorrectly reject 9223372036854775807. */
7105 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7106 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7107 && LARGE_OFF_T % 2147483647 == 1)
7108 ? 1 : -1];
7110 main ()
7114 return 0;
7116 _ACEOF
7117 if ac_fn_c_try_compile "$LINENO"; then :
7118 ac_cv_sys_file_offset_bits=64; break
7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121 ac_cv_sys_file_offset_bits=unknown
7122 break
7123 done
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7126 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7127 case $ac_cv_sys_file_offset_bits in #(
7128 no | unknown) ;;
7130 cat >>confdefs.h <<_ACEOF
7131 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7132 _ACEOF
7134 esac
7135 rm -rf conftest*
7136 if test $ac_cv_sys_file_offset_bits = unknown; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7138 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7139 if ${ac_cv_sys_large_files+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 while :; do
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 #include <sys/types.h>
7146 /* Check that off_t can represent 2**63 - 1 correctly.
7147 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7148 since some C++ compilers masquerading as C compilers
7149 incorrectly reject 9223372036854775807. */
7150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7152 && LARGE_OFF_T % 2147483647 == 1)
7153 ? 1 : -1];
7155 main ()
7159 return 0;
7161 _ACEOF
7162 if ac_fn_c_try_compile "$LINENO"; then :
7163 ac_cv_sys_large_files=no; break
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 #define _LARGE_FILES 1
7169 #include <sys/types.h>
7170 /* Check that off_t can represent 2**63 - 1 correctly.
7171 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7172 since some C++ compilers masquerading as C compilers
7173 incorrectly reject 9223372036854775807. */
7174 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7175 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7176 && LARGE_OFF_T % 2147483647 == 1)
7177 ? 1 : -1];
7179 main ()
7183 return 0;
7185 _ACEOF
7186 if ac_fn_c_try_compile "$LINENO"; then :
7187 ac_cv_sys_large_files=1; break
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 ac_cv_sys_large_files=unknown
7191 break
7192 done
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7195 $as_echo "$ac_cv_sys_large_files" >&6; }
7196 case $ac_cv_sys_large_files in #(
7197 no | unknown) ;;
7199 cat >>confdefs.h <<_ACEOF
7200 #define _LARGE_FILES $ac_cv_sys_large_files
7201 _ACEOF
7203 esac
7204 rm -rf conftest*
7210 ## If user specified a crt-dir, use that unconditionally.
7211 if test "X$CRT_DIR" = "X"; then
7213 case "$canonical" in
7214 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7215 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7216 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7217 ## For anything else (eg /usr/lib32), it is up the user to specify
7218 ## the location (bug#5655).
7219 ## Test for crtn.o, not just the directory, because sometimes the
7220 ## directory exists but does not have the relevant files (bug#1287).
7221 ## FIXME better to test for binary compatibility somehow.
7222 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7225 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7226 esac
7228 case "$opsys" in
7229 hpux10-20) CRT_DIR=/lib ;;
7230 esac
7232 ## Default is /usr/lib.
7233 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7235 else
7237 ## Some platforms don't use any of these files, so it is not
7238 ## appropriate to put this test outside the if block.
7239 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7240 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
7246 LIB_MATH=-lm
7247 LIB_STANDARD=
7248 START_FILES=
7250 case $opsys in
7251 cygwin )
7252 LIB_MATH=
7253 START_FILES='pre-crt0.o'
7255 darwin )
7256 ## Adding -lm confuses the dynamic linker, so omit it.
7257 LIB_MATH=
7258 START_FILES='pre-crt0.o'
7260 freebsd )
7261 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7262 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7264 gnu-linux | gnu-kfreebsd )
7265 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7266 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7268 hpux10-20 | hpux11 )
7269 LIB_STANDARD=-lc
7270 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7272 netbsd | openbsd )
7273 if test -f $CRT_DIR/crti.o; then
7274 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7275 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7276 else
7277 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7278 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7281 esac
7289 if test "${with_sound}" != "no"; then
7290 # Sound support for GNU/Linux and the free BSDs.
7291 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7292 do :
7293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7294 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7295 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7296 cat >>confdefs.h <<_ACEOF
7297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7298 _ACEOF
7299 have_sound_header=yes
7302 done
7304 # Emulation library used on NetBSD.
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7306 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7307 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 ac_check_lib_save_LIBS=$LIBS
7311 LIBS="-lossaudio $LIBS"
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7315 /* Override any GCC internal prototype to avoid an error.
7316 Use char because int might match the return type of a GCC
7317 builtin and then its argument prototype would still apply. */
7318 #ifdef __cplusplus
7319 extern "C"
7320 #endif
7321 char _oss_ioctl ();
7323 main ()
7325 return _oss_ioctl ();
7327 return 0;
7329 _ACEOF
7330 if ac_fn_c_try_link "$LINENO"; then :
7331 ac_cv_lib_ossaudio__oss_ioctl=yes
7332 else
7333 ac_cv_lib_ossaudio__oss_ioctl=no
7335 rm -f core conftest.err conftest.$ac_objext \
7336 conftest$ac_exeext conftest.$ac_ext
7337 LIBS=$ac_check_lib_save_LIBS
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7340 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7341 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
7342 LIBSOUND=-lossaudio
7343 else
7344 LIBSOUND=
7349 ALSA_REQUIRED=1.0.0
7350 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7352 succeeded=no
7354 # Extract the first word of "pkg-config", so it can be a program name with args.
7355 set dummy pkg-config; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 case $PKG_CONFIG in
7362 [\\/]* | ?:[\\/]*)
7363 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7377 done
7378 done
7379 IFS=$as_save_IFS
7381 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7383 esac
7385 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7386 if test -n "$PKG_CONFIG"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7388 $as_echo "$PKG_CONFIG" >&6; }
7389 else
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7396 if test "$PKG_CONFIG" = "no" ; then
7397 HAVE_ALSA=no
7398 else
7399 PKG_CONFIG_MIN_VERSION=0.9.0
7400 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7402 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7404 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 $as_echo "yes" >&6; }
7407 succeeded=yes
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7410 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7411 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7413 $as_echo "$ALSA_CFLAGS" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7416 $as_echo_n "checking ALSA_LIBS... " >&6; }
7417 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7419 $as_echo "$ALSA_LIBS" >&6; }
7420 else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 ALSA_CFLAGS=""
7424 ALSA_LIBS=""
7425 ## If we have a custom action on failure, don't print errors, but
7426 ## do set a variable so people can do so.
7427 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7433 else
7434 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7435 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7439 if test $succeeded = yes; then
7440 HAVE_ALSA=yes
7441 else
7442 HAVE_ALSA=no
7445 if test $HAVE_ALSA = yes; then
7446 SAVE_CFLAGS="$CFLAGS"
7447 SAVE_LDFLAGS="$LDFLAGS"
7448 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7449 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 #include <asoundlib.h>
7454 main ()
7456 snd_lib_error_set_handler (0);
7458 return 0;
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 emacs_alsa_normal=yes
7463 else
7464 emacs_alsa_normal=no
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 if test "$emacs_alsa_normal" != yes; then
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470 #include <alsa/asoundlib.h>
7472 main ()
7474 snd_lib_error_set_handler (0);
7476 return 0;
7478 _ACEOF
7479 if ac_fn_c_try_compile "$LINENO"; then :
7480 emacs_alsa_subdir=yes
7481 else
7482 emacs_alsa_subdir=no
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 if test "$emacs_alsa_subdir" != yes; then
7486 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7488 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7491 CFLAGS="$SAVE_CFLAGS"
7492 LDFLAGS="$SAVE_LDFLAGS"
7493 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7494 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7496 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7500 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7501 case "$opsys" in
7502 gnu-linux|freebsd|netbsd)
7504 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7507 esac
7513 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7514 linux/version.h sys/systeminfo.h limits.h \
7515 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7516 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7517 sys/utsname.h pwd.h utmp.h dirent.h util.h
7518 do :
7519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7520 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7522 cat >>confdefs.h <<_ACEOF
7523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7524 _ACEOF
7528 done
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7532 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7535 #include <sys/personality.h>
7537 main ()
7539 personality (PER_LINUX32)
7541 return 0;
7543 _ACEOF
7544 if ac_fn_c_try_compile "$LINENO"; then :
7545 emacs_cv_personality_linux32=yes
7546 else
7547 emacs_cv_personality_linux32=no
7549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7551 $as_echo "$emacs_cv_personality_linux32" >&6; }
7553 if test $emacs_cv_personality_linux32 = yes; then
7555 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7559 for ac_header in term.h
7560 do :
7561 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7562 if test "x$ac_cv_header_term_h" = xyes; then :
7563 cat >>confdefs.h <<_ACEOF
7564 #define HAVE_TERM_H 1
7565 _ACEOF
7569 done
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7572 $as_echo_n "checking for ANSI C header files... " >&6; }
7573 if ${ac_cv_header_stdc+:} false; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7578 #include <stdlib.h>
7579 #include <stdarg.h>
7580 #include <string.h>
7581 #include <float.h>
7584 main ()
7588 return 0;
7590 _ACEOF
7591 if ac_fn_c_try_compile "$LINENO"; then :
7592 ac_cv_header_stdc=yes
7593 else
7594 ac_cv_header_stdc=no
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 if test $ac_cv_header_stdc = yes; then
7599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 #include <string.h>
7604 _ACEOF
7605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7606 $EGREP "memchr" >/dev/null 2>&1; then :
7608 else
7609 ac_cv_header_stdc=no
7611 rm -f conftest*
7615 if test $ac_cv_header_stdc = yes; then
7616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 #include <stdlib.h>
7621 _ACEOF
7622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7623 $EGREP "free" >/dev/null 2>&1; then :
7625 else
7626 ac_cv_header_stdc=no
7628 rm -f conftest*
7632 if test $ac_cv_header_stdc = yes; then
7633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7634 if test "$cross_compiling" = yes; then :
7636 else
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639 #include <ctype.h>
7640 #include <stdlib.h>
7641 #if ((' ' & 0x0FF) == 0x020)
7642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7644 #else
7645 # define ISLOWER(c) \
7646 (('a' <= (c) && (c) <= 'i') \
7647 || ('j' <= (c) && (c) <= 'r') \
7648 || ('s' <= (c) && (c) <= 'z'))
7649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7650 #endif
7652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7654 main ()
7656 int i;
7657 for (i = 0; i < 256; i++)
7658 if (XOR (islower (i), ISLOWER (i))
7659 || toupper (i) != TOUPPER (i))
7660 return 2;
7661 return 0;
7663 _ACEOF
7664 if ac_fn_c_try_run "$LINENO"; then :
7666 else
7667 ac_cv_header_stdc=no
7669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7670 conftest.$ac_objext conftest.beam conftest.$ac_ext
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7676 $as_echo "$ac_cv_header_stdc" >&6; }
7677 if test $ac_cv_header_stdc = yes; then
7679 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7684 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7685 if ${ac_cv_header_time+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 #include <sys/types.h>
7691 #include <sys/time.h>
7692 #include <time.h>
7695 main ()
7697 if ((struct tm *) 0)
7698 return 0;
7700 return 0;
7702 _ACEOF
7703 if ac_fn_c_try_compile "$LINENO"; then :
7704 ac_cv_header_time=yes
7705 else
7706 ac_cv_header_time=no
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7711 $as_echo "$ac_cv_header_time" >&6; }
7712 if test $ac_cv_header_time = yes; then
7714 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7718 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7719 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7720 ac_have_decl=1
7721 else
7722 ac_have_decl=0
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7727 _ACEOF
7729 if test $ac_cv_have_decl_sys_siglist != yes; then
7730 # For Tru64, at least:
7731 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7732 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7733 ac_have_decl=1
7734 else
7735 ac_have_decl=0
7738 cat >>confdefs.h <<_ACEOF
7739 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7740 _ACEOF
7742 if test $ac_cv_have_decl___sys_siglist = yes; then
7744 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7749 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7750 if ${ac_cv_header_sys_wait_h+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 #include <sys/types.h>
7756 #include <sys/wait.h>
7757 #ifndef WEXITSTATUS
7758 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7759 #endif
7760 #ifndef WIFEXITED
7761 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7762 #endif
7765 main ()
7767 int s;
7768 wait (&s);
7769 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7771 return 0;
7773 _ACEOF
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775 ac_cv_header_sys_wait_h=yes
7776 else
7777 ac_cv_header_sys_wait_h=no
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7782 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7783 if test $ac_cv_header_sys_wait_h = yes; then
7785 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7791 $as_echo_n "checking for struct utimbuf... " >&6; }
7792 if ${emacs_cv_struct_utimbuf+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 #ifdef TIME_WITH_SYS_TIME
7798 #include <sys/time.h>
7799 #include <time.h>
7800 #else
7801 #ifdef HAVE_SYS_TIME_H
7802 #include <sys/time.h>
7803 #else
7804 #include <time.h>
7805 #endif
7806 #endif
7807 #ifdef HAVE_UTIME_H
7808 #include <utime.h>
7809 #endif
7811 main ()
7813 static struct utimbuf x; x.actime = x.modtime;
7815 return 0;
7817 _ACEOF
7818 if ac_fn_c_try_compile "$LINENO"; then :
7819 emacs_cv_struct_utimbuf=yes
7820 else
7821 emacs_cv_struct_utimbuf=no
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7826 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7827 if test $emacs_cv_struct_utimbuf = yes; then
7829 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7834 $as_echo_n "checking return type of signal handlers... " >&6; }
7835 if ${ac_cv_type_signal+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7840 #include <sys/types.h>
7841 #include <signal.h>
7844 main ()
7846 return *(signal (0, 0)) (0) == 1;
7848 return 0;
7850 _ACEOF
7851 if ac_fn_c_try_compile "$LINENO"; then :
7852 ac_cv_type_signal=int
7853 else
7854 ac_cv_type_signal=void
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7859 $as_echo "$ac_cv_type_signal" >&6; }
7861 cat >>confdefs.h <<_ACEOF
7862 #define RETSIGTYPE $ac_cv_type_signal
7863 _ACEOF
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7868 $as_echo_n "checking for speed_t... " >&6; }
7869 if ${emacs_cv_speed_t+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 #include <termios.h>
7876 main ()
7878 speed_t x = 1;
7880 return 0;
7882 _ACEOF
7883 if ac_fn_c_try_compile "$LINENO"; then :
7884 emacs_cv_speed_t=yes
7885 else
7886 emacs_cv_speed_t=no
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7891 $as_echo "$emacs_cv_speed_t" >&6; }
7892 if test $emacs_cv_speed_t = yes; then
7894 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7899 $as_echo_n "checking for struct timeval... " >&6; }
7900 if ${emacs_cv_struct_timeval+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 #ifdef TIME_WITH_SYS_TIME
7906 #include <sys/time.h>
7907 #include <time.h>
7908 #else
7909 #ifdef HAVE_SYS_TIME_H
7910 #include <sys/time.h>
7911 #else
7912 #include <time.h>
7913 #endif
7914 #endif
7916 main ()
7918 static struct timeval x; x.tv_sec = x.tv_usec;
7920 return 0;
7922 _ACEOF
7923 if ac_fn_c_try_compile "$LINENO"; then :
7924 emacs_cv_struct_timeval=yes
7925 else
7926 emacs_cv_struct_timeval=no
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7931 $as_echo "$emacs_cv_struct_timeval" >&6; }
7932 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7933 if test $emacs_cv_struct_timeval = yes; then
7935 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7940 $as_echo_n "checking for struct exception... " >&6; }
7941 if ${emacs_cv_struct_exception+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 #include <math.h>
7948 main ()
7950 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7952 return 0;
7954 _ACEOF
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956 emacs_cv_struct_exception=yes
7957 else
7958 emacs_cv_struct_exception=no
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7963 $as_echo "$emacs_cv_struct_exception" >&6; }
7964 HAVE_EXCEPTION=$emacs_cv_struct_exception
7965 if test $emacs_cv_struct_exception != yes; then
7967 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7971 for ac_header in net/if.h
7972 do :
7973 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7974 #if HAVE_SYS_SOCKET_H
7975 #include <sys/socket.h>
7976 #endif
7978 if test "x$ac_cv_header_net_if_h" = xyes; then :
7979 cat >>confdefs.h <<_ACEOF
7980 #define HAVE_NET_IF_H 1
7981 _ACEOF
7985 done
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7989 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7990 if ${ac_cv_struct_tm+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 #include <sys/types.h>
7996 #include <time.h>
7999 main ()
8001 struct tm tm;
8002 int *p = &tm.tm_sec;
8003 return !p;
8005 return 0;
8007 _ACEOF
8008 if ac_fn_c_try_compile "$LINENO"; then :
8009 ac_cv_struct_tm=time.h
8010 else
8011 ac_cv_struct_tm=sys/time.h
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8016 $as_echo "$ac_cv_struct_tm" >&6; }
8017 if test $ac_cv_struct_tm = sys/time.h; then
8019 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8023 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8024 #include <$ac_cv_struct_tm>
8027 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8029 cat >>confdefs.h <<_ACEOF
8030 #define HAVE_STRUCT_TM_TM_ZONE 1
8031 _ACEOF
8036 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8038 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8040 else
8041 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8043 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8044 ac_have_decl=1
8045 else
8046 ac_have_decl=0
8049 cat >>confdefs.h <<_ACEOF
8050 #define HAVE_DECL_TZNAME $ac_have_decl
8051 _ACEOF
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8054 $as_echo_n "checking for tzname... " >&6; }
8055 if ${ac_cv_var_tzname+:} false; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8060 #include <time.h>
8061 #if !HAVE_DECL_TZNAME
8062 extern char *tzname[];
8063 #endif
8066 main ()
8068 return tzname[0][0];
8070 return 0;
8072 _ACEOF
8073 if ac_fn_c_try_link "$LINENO"; then :
8074 ac_cv_var_tzname=yes
8075 else
8076 ac_cv_var_tzname=no
8078 rm -f core conftest.err conftest.$ac_objext \
8079 conftest$ac_exeext conftest.$ac_ext
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8082 $as_echo "$ac_cv_var_tzname" >&6; }
8083 if test $ac_cv_var_tzname = yes; then
8085 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8090 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8092 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
8094 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8098 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8099 #if HAVE_SYS_SOCKET_H
8100 #include <sys/socket.h>
8101 #endif
8102 #if HAVE_NET_IF_H
8103 #include <net/if.h>
8104 #endif
8106 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
8108 cat >>confdefs.h <<_ACEOF
8109 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8110 _ACEOF
8114 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8115 #if HAVE_SYS_SOCKET_H
8116 #include <sys/socket.h>
8117 #endif
8118 #if HAVE_NET_IF_H
8119 #include <net/if.h>
8120 #endif
8122 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
8124 cat >>confdefs.h <<_ACEOF
8125 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8126 _ACEOF
8130 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8131 #if HAVE_SYS_SOCKET_H
8132 #include <sys/socket.h>
8133 #endif
8134 #if HAVE_NET_IF_H
8135 #include <net/if.h>
8136 #endif
8138 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
8140 cat >>confdefs.h <<_ACEOF
8141 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8142 _ACEOF
8146 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8147 #if HAVE_SYS_SOCKET_H
8148 #include <sys/socket.h>
8149 #endif
8150 #if HAVE_NET_IF_H
8151 #include <net/if.h>
8152 #endif
8154 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
8156 cat >>confdefs.h <<_ACEOF
8157 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8158 _ACEOF
8162 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8163 #if HAVE_SYS_SOCKET_H
8164 #include <sys/socket.h>
8165 #endif
8166 #if HAVE_NET_IF_H
8167 #include <net/if.h>
8168 #endif
8170 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
8172 cat >>confdefs.h <<_ACEOF
8173 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8174 _ACEOF
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8182 $as_echo_n "checking for function prototypes... " >&6; }
8183 if test "$ac_cv_prog_cc_c89" != no; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8185 $as_echo "yes" >&6; }
8187 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8190 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8198 $as_echo_n "checking for working volatile... " >&6; }
8199 if ${ac_cv_c_volatile+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8206 main ()
8209 volatile int x;
8210 int * volatile y = (int *) 0;
8211 return !x && !y;
8213 return 0;
8215 _ACEOF
8216 if ac_fn_c_try_compile "$LINENO"; then :
8217 ac_cv_c_volatile=yes
8218 else
8219 ac_cv_c_volatile=no
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8224 $as_echo "$ac_cv_c_volatile" >&6; }
8225 if test $ac_cv_c_volatile = no; then
8227 $as_echo "#define volatile /**/" >>confdefs.h
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8232 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8233 if ${ac_cv_c_const+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8240 main ()
8242 /* FIXME: Include the comments suggested by Paul. */
8243 #ifndef __cplusplus
8244 /* Ultrix mips cc rejects this. */
8245 typedef int charset[2];
8246 const charset cs;
8247 /* SunOS 4.1.1 cc rejects this. */
8248 char const *const *pcpcc;
8249 char **ppc;
8250 /* NEC SVR4.0.2 mips cc rejects this. */
8251 struct point {int x, y;};
8252 static struct point const zero = {0,0};
8253 /* AIX XL C 1.02.0.0 rejects this.
8254 It does not let you subtract one const X* pointer from another in
8255 an arm of an if-expression whose if-part is not a constant
8256 expression */
8257 const char *g = "string";
8258 pcpcc = &g + (g ? g-g : 0);
8259 /* HPUX 7.0 cc rejects these. */
8260 ++pcpcc;
8261 ppc = (char**) pcpcc;
8262 pcpcc = (char const *const *) ppc;
8263 { /* SCO 3.2v4 cc rejects this. */
8264 char *t;
8265 char const *s = 0 ? (char *) 0 : (char const *) 0;
8267 *t++ = 0;
8268 if (s) return 0;
8270 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8271 int x[] = {25, 17};
8272 const int *foo = &x[0];
8273 ++foo;
8275 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8276 typedef const int *iptr;
8277 iptr p = 0;
8278 ++p;
8280 { /* AIX XL C 1.02.0.0 rejects this saying
8281 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8282 struct s { int j; const int *ap[3]; };
8283 struct s *b; b->j = 5;
8285 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8286 const int foo = 10;
8287 if (!foo) return 0;
8289 return !cs[0] && !zero.x;
8290 #endif
8293 return 0;
8295 _ACEOF
8296 if ac_fn_c_try_compile "$LINENO"; then :
8297 ac_cv_c_const=yes
8298 else
8299 ac_cv_c_const=no
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8304 $as_echo "$ac_cv_c_const" >&6; }
8305 if test $ac_cv_c_const = no; then
8307 $as_echo "#define const /**/" >>confdefs.h
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8312 $as_echo_n "checking for void * support... " >&6; }
8313 if ${emacs_cv_void_star+:} false; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8320 main ()
8322 void * foo;
8324 return 0;
8326 _ACEOF
8327 if ac_fn_c_try_compile "$LINENO"; then :
8328 emacs_cv_void_star=yes
8329 else
8330 emacs_cv_void_star=no
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8335 $as_echo "$emacs_cv_void_star" >&6; }
8336 if test $emacs_cv_void_star = yes; then
8337 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8339 else
8340 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8345 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8346 if ${ac_cv_c_bigendian+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 ac_cv_c_bigendian=unknown
8350 # See if we're dealing with a universal compiler.
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 #ifndef __APPLE_CC__
8354 not a universal capable compiler
8355 #endif
8356 typedef int dummy;
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"; then :
8361 # Check for potential -arch flags. It is not universal unless
8362 # there are at least two -arch flags with different values.
8363 ac_arch=
8364 ac_prev=
8365 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8366 if test -n "$ac_prev"; then
8367 case $ac_word in
8368 i?86 | x86_64 | ppc | ppc64)
8369 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8370 ac_arch=$ac_word
8371 else
8372 ac_cv_c_bigendian=universal
8373 break
8376 esac
8377 ac_prev=
8378 elif test "x$ac_word" = "x-arch"; then
8379 ac_prev=arch
8381 done
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 if test $ac_cv_c_bigendian = unknown; then
8385 # See if sys/param.h defines the BYTE_ORDER macro.
8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388 #include <sys/types.h>
8389 #include <sys/param.h>
8392 main ()
8394 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8395 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8396 && LITTLE_ENDIAN)
8397 bogus endian macros
8398 #endif
8401 return 0;
8403 _ACEOF
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405 # It does; now see whether it defined to BIG_ENDIAN or not.
8406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407 /* end confdefs.h. */
8408 #include <sys/types.h>
8409 #include <sys/param.h>
8412 main ()
8414 #if BYTE_ORDER != BIG_ENDIAN
8415 not big endian
8416 #endif
8419 return 0;
8421 _ACEOF
8422 if ac_fn_c_try_compile "$LINENO"; then :
8423 ac_cv_c_bigendian=yes
8424 else
8425 ac_cv_c_bigendian=no
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 if test $ac_cv_c_bigendian = unknown; then
8432 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 #include <limits.h>
8438 main ()
8440 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8441 bogus endian macros
8442 #endif
8445 return 0;
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"; then :
8449 # It does; now see whether it defined to _BIG_ENDIAN or not.
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 #include <limits.h>
8455 main ()
8457 #ifndef _BIG_ENDIAN
8458 not big endian
8459 #endif
8462 return 0;
8464 _ACEOF
8465 if ac_fn_c_try_compile "$LINENO"; then :
8466 ac_cv_c_bigendian=yes
8467 else
8468 ac_cv_c_bigendian=no
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 if test $ac_cv_c_bigendian = unknown; then
8475 # Compile a test program.
8476 if test "$cross_compiling" = yes; then :
8477 # Try to guess by grepping values from an object file.
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 short int ascii_mm[] =
8481 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8482 short int ascii_ii[] =
8483 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8484 int use_ascii (int i) {
8485 return ascii_mm[i] + ascii_ii[i];
8487 short int ebcdic_ii[] =
8488 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8489 short int ebcdic_mm[] =
8490 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8491 int use_ebcdic (int i) {
8492 return ebcdic_mm[i] + ebcdic_ii[i];
8494 extern int foo;
8497 main ()
8499 return use_ascii (foo) == use_ebcdic (foo);
8501 return 0;
8503 _ACEOF
8504 if ac_fn_c_try_compile "$LINENO"; then :
8505 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8506 ac_cv_c_bigendian=yes
8508 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8509 if test "$ac_cv_c_bigendian" = unknown; then
8510 ac_cv_c_bigendian=no
8511 else
8512 # finding both strings is unlikely to happen, but who knows?
8513 ac_cv_c_bigendian=unknown
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 $ac_includes_default
8523 main ()
8526 /* Are we little or big endian? From Harbison&Steele. */
8527 union
8529 long int l;
8530 char c[sizeof (long int)];
8531 } u;
8532 u.l = 1;
8533 return u.c[sizeof (long int) - 1] == 1;
8536 return 0;
8538 _ACEOF
8539 if ac_fn_c_try_run "$LINENO"; then :
8540 ac_cv_c_bigendian=no
8541 else
8542 ac_cv_c_bigendian=yes
8544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8545 conftest.$ac_objext conftest.beam conftest.$ac_ext
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8551 $as_echo "$ac_cv_c_bigendian" >&6; }
8552 case $ac_cv_c_bigendian in #(
8553 yes)
8554 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8555 ;; #(
8557 ;; #(
8558 universal)
8560 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8562 ;; #(
8564 as_fn_error $? "unknown endianness
8565 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8566 esac
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8570 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8571 if ${emacs_cv_attribute_aligned+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 char __attribute__ ((__aligned__ (1 << 3))) c;
8578 main ()
8582 return 0;
8584 _ACEOF
8585 if ac_fn_c_try_compile "$LINENO"; then :
8586 emacs_cv_attribute_aligned=yes
8587 else
8588 emacs_cv_attribute_aligned=no
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8593 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8594 if test $emacs_cv_attribute_aligned = yes; then
8596 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8601 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8602 set x ${MAKE-make}
8603 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8604 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 cat >conftest.make <<\_ACEOF
8608 SHELL = /bin/sh
8609 all:
8610 @echo '@@@%%%=$(MAKE)=@@@%%%'
8611 _ACEOF
8612 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8613 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8614 *@@@%%%=?*=@@@%%%*)
8615 eval ac_cv_prog_make_${ac_make}_set=yes;;
8617 eval ac_cv_prog_make_${ac_make}_set=no;;
8618 esac
8619 rm -f conftest.make
8621 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8623 $as_echo "yes" >&6; }
8624 SET_MAKE=
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 SET_MAKE="MAKE=${MAKE-make}"
8632 DEPFLAGS=
8633 MKDEPDIR=":"
8634 deps_frag=deps.mk
8635 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8637 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8638 HAVE_GNU_MAKE=no
8639 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8640 if test "x$testval" != x; then
8641 HAVE_GNU_MAKE=yes
8642 else
8643 ac_enable_autodepend=no
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8646 $as_echo "$HAVE_GNU_MAKE" >&6; }
8647 if test $HAVE_GNU_MAKE = yes; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8649 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8650 SAVE_CFLAGS="$CFLAGS"
8651 CFLAGS="$CFLAGS -MMD -MF deps.d"
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8656 main ()
8660 return 0;
8662 _ACEOF
8663 if ac_fn_c_try_compile "$LINENO"; then :
8665 else
8666 ac_enable_autodepend=no
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 CFLAGS="$SAVE_CFLAGS"
8670 test -f deps.d || ac_enable_autodepend=no
8671 rm -rf deps.d
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8673 $as_echo "$ac_enable_autodepend" >&6; }
8675 if test $ac_enable_autodepend = yes; then
8676 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8677 ## In parallel builds, another make might create depdir between
8678 ## the first test and mkdir, so stick another test on the end.
8679 ## Or use mkinstalldirs? mkdir -p is not portable.
8680 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8681 deps_frag=autodeps.mk
8684 deps_frag=$srcdir/src/$deps_frag
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8691 $as_echo_n "checking for long file names... " >&6; }
8692 if ${ac_cv_sys_long_file_names+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 ac_cv_sys_long_file_names=yes
8696 # Test for long file names in all the places we know might matter:
8697 # . the current directory, where building will happen
8698 # $prefix/lib where we will be installing things
8699 # $exec_prefix/lib likewise
8700 # $TMPDIR if set, where it might want to write temporary files
8701 # /tmp where it might want to write temporary files
8702 # /var/tmp likewise
8703 # /usr/tmp likewise
8704 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8705 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8706 # in the usual case where exec_prefix is '${prefix}'.
8707 case $ac_dir in #(
8708 . | /* | ?:[\\/]*) ;; #(
8709 *) continue;;
8710 esac
8711 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8712 ac_xdir=$ac_dir/cf$$
8713 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8714 ac_tf1=$ac_xdir/conftest9012345
8715 ac_tf2=$ac_xdir/conftest9012346
8716 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8717 ac_cv_sys_long_file_names=no
8718 rm -f -r "$ac_xdir" 2>/dev/null
8719 test $ac_cv_sys_long_file_names = no && break
8720 done
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8723 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8724 if test $ac_cv_sys_long_file_names = yes; then
8726 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8731 #### Choose a window system.
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8734 $as_echo_n "checking for X... " >&6; }
8737 # Check whether --with-x was given.
8738 if test "${with_x+set}" = set; then :
8739 withval=$with_x;
8742 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8743 if test "x$with_x" = xno; then
8744 # The user explicitly disabled X.
8745 have_x=disabled
8746 else
8747 case $x_includes,$x_libraries in #(
8748 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8749 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 # One or both of the vars are not set, and there is no cached value.
8753 ac_x_includes=no ac_x_libraries=no
8754 rm -f -r conftest.dir
8755 if mkdir conftest.dir; then
8756 cd conftest.dir
8757 cat >Imakefile <<'_ACEOF'
8758 incroot:
8759 @echo incroot='${INCROOT}'
8760 usrlibdir:
8761 @echo usrlibdir='${USRLIBDIR}'
8762 libdir:
8763 @echo libdir='${LIBDIR}'
8764 _ACEOF
8765 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8766 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8767 for ac_var in incroot usrlibdir libdir; do
8768 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8769 done
8770 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8771 for ac_extension in a so sl dylib la dll; do
8772 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8773 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8774 ac_im_usrlibdir=$ac_im_libdir; break
8776 done
8777 # Screen out bogus values from the imake configuration. They are
8778 # bogus both because they are the default anyway, and because
8779 # using them would break gcc on systems where it needs fixed includes.
8780 case $ac_im_incroot in
8781 /usr/include) ac_x_includes= ;;
8782 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8783 esac
8784 case $ac_im_usrlibdir in
8785 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8786 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8787 esac
8789 cd ..
8790 rm -f -r conftest.dir
8793 # Standard set of common directories for X headers.
8794 # Check X11 before X11Rn because it is often a symlink to the current release.
8795 ac_x_header_dirs='
8796 /usr/X11/include
8797 /usr/X11R7/include
8798 /usr/X11R6/include
8799 /usr/X11R5/include
8800 /usr/X11R4/include
8802 /usr/include/X11
8803 /usr/include/X11R7
8804 /usr/include/X11R6
8805 /usr/include/X11R5
8806 /usr/include/X11R4
8808 /usr/local/X11/include
8809 /usr/local/X11R7/include
8810 /usr/local/X11R6/include
8811 /usr/local/X11R5/include
8812 /usr/local/X11R4/include
8814 /usr/local/include/X11
8815 /usr/local/include/X11R7
8816 /usr/local/include/X11R6
8817 /usr/local/include/X11R5
8818 /usr/local/include/X11R4
8820 /usr/X386/include
8821 /usr/x386/include
8822 /usr/XFree86/include/X11
8824 /usr/include
8825 /usr/local/include
8826 /usr/unsupported/include
8827 /usr/athena/include
8828 /usr/local/x11r5/include
8829 /usr/lpp/Xamples/include
8831 /usr/openwin/include
8832 /usr/openwin/share/include'
8834 if test "$ac_x_includes" = no; then
8835 # Guess where to find include files, by looking for Xlib.h.
8836 # First, try using that file with no special directory specified.
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839 #include <X11/Xlib.h>
8840 _ACEOF
8841 if ac_fn_c_try_cpp "$LINENO"; then :
8842 # We can compile using X headers with no special include directory.
8843 ac_x_includes=
8844 else
8845 for ac_dir in $ac_x_header_dirs; do
8846 if test -r "$ac_dir/X11/Xlib.h"; then
8847 ac_x_includes=$ac_dir
8848 break
8850 done
8852 rm -f conftest.err conftest.i conftest.$ac_ext
8853 fi # $ac_x_includes = no
8855 if test "$ac_x_libraries" = no; then
8856 # Check for the libraries.
8857 # See if we find them without any special options.
8858 # Don't add to $LIBS permanently.
8859 ac_save_LIBS=$LIBS
8860 LIBS="-lX11 $LIBS"
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863 #include <X11/Xlib.h>
8865 main ()
8867 XrmInitialize ()
8869 return 0;
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8873 LIBS=$ac_save_LIBS
8874 # We can link X programs with no special library path.
8875 ac_x_libraries=
8876 else
8877 LIBS=$ac_save_LIBS
8878 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8880 # Don't even attempt the hair of trying to link an X program!
8881 for ac_extension in a so sl dylib la dll; do
8882 if test -r "$ac_dir/libX11.$ac_extension"; then
8883 ac_x_libraries=$ac_dir
8884 break 2
8886 done
8887 done
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891 fi # $ac_x_libraries = no
8893 case $ac_x_includes,$ac_x_libraries in #(
8894 no,* | *,no | *\'*)
8895 # Didn't find X, or a directory has "'" in its name.
8896 ac_cv_have_x="have_x=no";; #(
8898 # Record where we found X for the cache.
8899 ac_cv_have_x="have_x=yes\
8900 ac_x_includes='$ac_x_includes'\
8901 ac_x_libraries='$ac_x_libraries'"
8902 esac
8904 ;; #(
8905 *) have_x=yes;;
8906 esac
8907 eval "$ac_cv_have_x"
8908 fi # $with_x != no
8910 if test "$have_x" != yes; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8912 $as_echo "$have_x" >&6; }
8913 no_x=yes
8914 else
8915 # If each of the values was on the command line, it overrides each guess.
8916 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8917 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8918 # Update the cache value to reflect the command line values.
8919 ac_cv_have_x="have_x=yes\
8920 ac_x_includes='$x_includes'\
8921 ac_x_libraries='$x_libraries'"
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8923 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8926 if test "$no_x" = yes; then
8927 window_system=none
8928 else
8929 window_system=x11
8932 ## Workaround for bug in autoconf <= 2.62.
8933 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8934 ## No need to do anything special for these standard directories.
8935 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8937 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8941 LD_SWITCH_X_SITE_AUX=
8942 LD_SWITCH_X_SITE_AUX_RPATH=
8943 if test "${x_libraries}" != NONE; then
8944 if test -n "${x_libraries}"; then
8945 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8946 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8947 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8949 x_default_search_path=""
8950 x_search_path=${x_libraries}
8951 if test -z "${x_search_path}"; then
8952 x_search_path=/usr/lib
8954 for x_library in `echo ${x_search_path}: | \
8955 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8956 x_search_path="\
8957 ${x_library}/X11/%L/%T/%N%C%S:\
8958 ${x_library}/X11/%l/%T/%N%C%S:\
8959 ${x_library}/X11/%T/%N%C%S:\
8960 ${x_library}/X11/%L/%T/%N%S:\
8961 ${x_library}/X11/%l/%T/%N%S:\
8962 ${x_library}/X11/%T/%N%S"
8963 if test x"${x_default_search_path}" = x; then
8964 x_default_search_path=${x_search_path}
8965 else
8966 x_default_search_path="${x_search_path}:${x_default_search_path}"
8968 done
8973 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8974 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8977 if test x"${x_includes}" = x; then
8978 bitmapdir=/usr/include/X11/bitmaps
8979 else
8980 # accumulate include directories that have X11 bitmap subdirectories
8981 bmd_acc="dummyval"
8982 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8983 if test -d "${bmd}/X11/bitmaps"; then
8984 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8986 if test -d "${bmd}/bitmaps"; then
8987 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8989 done
8990 if test ${bmd_acc} != "dummyval"; then
8991 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8995 HAVE_NS=no
8996 NS_IMPL_COCOA=no
8997 NS_IMPL_GNUSTEP=no
8998 tmp_CPPFLAGS="$CPPFLAGS"
8999 tmp_CFLAGS="$CFLAGS"
9000 CPPFLAGS="$CPPFLAGS -x objective-c"
9001 CFLAGS="$CFLAGS -x objective-c"
9002 TEMACS_LDFLAGS2="\${LDFLAGS}"
9003 if test "${with_ns}" != no; then
9004 if test "${opsys}" = darwin; then
9005 NS_IMPL_COCOA=yes
9006 ns_appdir=`pwd`/nextstep/Emacs.app
9007 ns_appbindir=${ns_appdir}/Contents/MacOS/
9008 ns_appresdir=${ns_appdir}/Contents/Resources
9009 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9010 elif test -f $GNUSTEP_CONFIG_FILE; then
9011 NS_IMPL_GNUSTEP=yes
9012 ns_appdir=`pwd`/nextstep/Emacs.app
9013 ns_appbindir=${ns_appdir}/
9014 ns_appresdir=${ns_appdir}/Resources
9015 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9016 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9017 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9018 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9019 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9020 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9021 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9022 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9023 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9024 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9025 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9026 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9027 LIB_STANDARD=
9028 START_FILES=
9029 TEMACS_LDFLAGS2=
9031 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9032 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
9033 HAVE_NS=yes
9034 else
9035 as_fn_error $? "\`--with-ns' was specified, but the include
9036 files are missing or cannot be compiled." "$LINENO" 5
9040 NS_HAVE_NSINTEGER=yes
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 #include <Foundation/NSObjCRuntime.h>
9045 main ()
9047 NSInteger i;
9049 return 0;
9051 _ACEOF
9052 if ac_fn_c_try_compile "$LINENO"; then :
9053 ns_have_nsinteger=yes
9054 else
9055 ns_have_nsinteger=no
9057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058 if test $ns_have_nsinteger = no; then
9059 NS_HAVE_NSINTEGER=no
9064 ns_frag=/dev/null
9065 NS_OBJ=
9066 NS_OBJC_OBJ=
9067 NS_SUPPORT=
9068 if test "${HAVE_NS}" = yes; then
9069 window_system=nextstep
9070 with_xft=no
9071 # set up packaging dirs
9072 exec_prefix=${ns_appbindir}
9073 libexecdir=${ns_appbindir}/libexec
9074 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9075 prefix=${ns_appresdir}
9077 ns_frag=$srcdir/src/ns.mk
9078 NS_OBJ="fontset.o fringe.o image.o"
9079 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9080 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9082 CFLAGS="$tmp_CFLAGS"
9083 CPPFLAGS="$tmp_CPPFLAGS"
9090 case "${window_system}" in
9091 x11 )
9092 HAVE_X_WINDOWS=yes
9093 HAVE_X11=yes
9094 case "${with_x_toolkit}" in
9095 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9096 motif ) USE_X_TOOLKIT=MOTIF ;;
9097 gtk ) with_gtk=yes
9098 USE_X_TOOLKIT=none ;;
9099 gtk3 ) with_gtk3=yes
9100 USE_X_TOOLKIT=none ;;
9101 no ) USE_X_TOOLKIT=none ;;
9102 * ) USE_X_TOOLKIT=maybe ;;
9103 esac
9105 nextstep | none )
9106 HAVE_X_WINDOWS=no
9107 HAVE_X11=no
9108 USE_X_TOOLKIT=none
9110 esac
9112 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9113 # Extract the first word of "X", so it can be a program name with args.
9114 set dummy X; ac_word=$2
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9116 $as_echo_n "checking for $ac_word... " >&6; }
9117 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 if test -n "$HAVE_XSERVER"; then
9121 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9122 else
9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 for as_dir in $PATH
9126 IFS=$as_save_IFS
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9130 ac_cv_prog_HAVE_XSERVER="true"
9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9132 break 2
9134 done
9135 done
9136 IFS=$as_save_IFS
9138 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9141 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9142 if test -n "$HAVE_XSERVER"; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9144 $as_echo "$HAVE_XSERVER" >&6; }
9145 else
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 $as_echo "no" >&6; }
9151 if test "$HAVE_XSERVER" = true ||
9152 test -n "$DISPLAY" ||
9153 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9154 as_fn_error $? "You seem to be running X, but no X development libraries
9155 were found. You should install the relevant development files for X
9156 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9157 sure you have development files for image handling, i.e.
9158 tiff, gif, jpeg, png and xpm.
9159 If you are sure you want Emacs compiled without X window support, pass
9160 --without-x
9161 to configure." "$LINENO" 5
9165 ### If we're using X11, we should use the X menu package.
9166 HAVE_MENUS=no
9167 case ${HAVE_X11} in
9168 yes ) HAVE_MENUS=yes ;;
9169 esac
9171 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9172 # Assume not, until told otherwise.
9173 GNU_MALLOC=yes
9174 doug_lea_malloc=yes
9175 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9176 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
9178 else
9179 doug_lea_malloc=no
9182 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9183 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
9185 else
9186 doug_lea_malloc=no
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9190 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9191 if ${emacs_cv_var___after_morecore_hook+:} false; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 extern void (* __after_morecore_hook)();
9198 main ()
9200 __after_morecore_hook = 0
9202 return 0;
9204 _ACEOF
9205 if ac_fn_c_try_link "$LINENO"; then :
9206 emacs_cv_var___after_morecore_hook=yes
9207 else
9208 emacs_cv_var___after_morecore_hook=no
9210 rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9214 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9215 if test $emacs_cv_var___after_morecore_hook = no; then
9216 doug_lea_malloc=no
9220 system_malloc=no
9221 case "$opsys" in
9222 ## darwin ld insists on the use of malloc routines in the System framework.
9223 darwin|sol2-10) system_malloc=yes ;;
9224 esac
9226 if test "${system_malloc}" = "yes"; then
9228 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9230 GNU_MALLOC=no
9231 GNU_MALLOC_reason="
9232 (The GNU allocators don't work with this system configuration.)"
9233 GMALLOC_OBJ=
9234 VMLIMIT_OBJ=
9235 else
9236 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9237 VMLIMIT_OBJ=vm-limit.o
9242 if test "$doug_lea_malloc" = "yes" ; then
9243 if test "$GNU_MALLOC" = yes ; then
9244 GNU_MALLOC_reason="
9245 (Using Doug Lea's new malloc from the GNU C Library.)"
9248 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9251 ## Use mmap directly for allocating larger buffers.
9252 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9253 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9254 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9255 case "$opsys" in
9256 gnu*) REL_ALLOC=no ;;
9257 esac
9260 if test x"${REL_ALLOC}" = x; then
9261 REL_ALLOC=${GNU_MALLOC}
9264 use_mmap_for_buffers=no
9265 case "$opsys" in
9266 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9267 esac
9272 for ac_header in $ac_header_list
9273 do :
9274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9275 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9277 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9278 cat >>confdefs.h <<_ACEOF
9279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9280 _ACEOF
9284 done
9293 for ac_func in getpagesize
9294 do :
9295 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9296 if test "x$ac_cv_func_getpagesize" = xyes; then :
9297 cat >>confdefs.h <<_ACEOF
9298 #define HAVE_GETPAGESIZE 1
9299 _ACEOF
9302 done
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9305 $as_echo_n "checking for working mmap... " >&6; }
9306 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 if test "$cross_compiling" = yes; then :
9310 ac_cv_func_mmap_fixed_mapped=no
9311 else
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314 $ac_includes_default
9315 /* malloc might have been renamed as rpl_malloc. */
9316 #undef malloc
9318 /* Thanks to Mike Haertel and Jim Avera for this test.
9319 Here is a matrix of mmap possibilities:
9320 mmap private not fixed
9321 mmap private fixed at somewhere currently unmapped
9322 mmap private fixed at somewhere already mapped
9323 mmap shared not fixed
9324 mmap shared fixed at somewhere currently unmapped
9325 mmap shared fixed at somewhere already mapped
9326 For private mappings, we should verify that changes cannot be read()
9327 back from the file, nor mmap's back from the file at a different
9328 address. (There have been systems where private was not correctly
9329 implemented like the infamous i386 svr4.0, and systems where the
9330 VM page cache was not coherent with the file system buffer cache
9331 like early versions of FreeBSD and possibly contemporary NetBSD.)
9332 For shared mappings, we should conversely verify that changes get
9333 propagated back to all the places they're supposed to be.
9335 Grep wants private fixed already mapped.
9336 The main things grep needs to know about mmap are:
9337 * does it exist and is it safe to write into the mmap'd area
9338 * how to use it (BSD variants) */
9340 #include <fcntl.h>
9341 #include <sys/mman.h>
9343 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9344 char *malloc ();
9345 #endif
9347 /* This mess was copied from the GNU getpagesize.h. */
9348 #ifndef HAVE_GETPAGESIZE
9349 # ifdef _SC_PAGESIZE
9350 # define getpagesize() sysconf(_SC_PAGESIZE)
9351 # else /* no _SC_PAGESIZE */
9352 # ifdef HAVE_SYS_PARAM_H
9353 # include <sys/param.h>
9354 # ifdef EXEC_PAGESIZE
9355 # define getpagesize() EXEC_PAGESIZE
9356 # else /* no EXEC_PAGESIZE */
9357 # ifdef NBPG
9358 # define getpagesize() NBPG * CLSIZE
9359 # ifndef CLSIZE
9360 # define CLSIZE 1
9361 # endif /* no CLSIZE */
9362 # else /* no NBPG */
9363 # ifdef NBPC
9364 # define getpagesize() NBPC
9365 # else /* no NBPC */
9366 # ifdef PAGESIZE
9367 # define getpagesize() PAGESIZE
9368 # endif /* PAGESIZE */
9369 # endif /* no NBPC */
9370 # endif /* no NBPG */
9371 # endif /* no EXEC_PAGESIZE */
9372 # else /* no HAVE_SYS_PARAM_H */
9373 # define getpagesize() 8192 /* punt totally */
9374 # endif /* no HAVE_SYS_PARAM_H */
9375 # endif /* no _SC_PAGESIZE */
9377 #endif /* no HAVE_GETPAGESIZE */
9380 main ()
9382 char *data, *data2, *data3;
9383 const char *cdata2;
9384 int i, pagesize;
9385 int fd, fd2;
9387 pagesize = getpagesize ();
9389 /* First, make a file with some known garbage in it. */
9390 data = (char *) malloc (pagesize);
9391 if (!data)
9392 return 1;
9393 for (i = 0; i < pagesize; ++i)
9394 *(data + i) = rand ();
9395 umask (0);
9396 fd = creat ("conftest.mmap", 0600);
9397 if (fd < 0)
9398 return 2;
9399 if (write (fd, data, pagesize) != pagesize)
9400 return 3;
9401 close (fd);
9403 /* Next, check that the tail of a page is zero-filled. File must have
9404 non-zero length, otherwise we risk SIGBUS for entire page. */
9405 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9406 if (fd2 < 0)
9407 return 4;
9408 cdata2 = "";
9409 if (write (fd2, cdata2, 1) != 1)
9410 return 5;
9411 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9412 if (data2 == MAP_FAILED)
9413 return 6;
9414 for (i = 0; i < pagesize; ++i)
9415 if (*(data2 + i))
9416 return 7;
9417 close (fd2);
9418 if (munmap (data2, pagesize))
9419 return 8;
9421 /* Next, try to mmap the file at a fixed address which already has
9422 something else allocated at it. If we can, also make sure that
9423 we see the same garbage. */
9424 fd = open ("conftest.mmap", O_RDWR);
9425 if (fd < 0)
9426 return 9;
9427 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9428 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9429 return 10;
9430 for (i = 0; i < pagesize; ++i)
9431 if (*(data + i) != *(data2 + i))
9432 return 11;
9434 /* Finally, make sure that changes to the mapped area do not
9435 percolate back to the file as seen by read(). (This is a bug on
9436 some variants of i386 svr4.0.) */
9437 for (i = 0; i < pagesize; ++i)
9438 *(data2 + i) = *(data2 + i) + 1;
9439 data3 = (char *) malloc (pagesize);
9440 if (!data3)
9441 return 12;
9442 if (read (fd, data3, pagesize) != pagesize)
9443 return 13;
9444 for (i = 0; i < pagesize; ++i)
9445 if (*(data + i) != *(data3 + i))
9446 return 14;
9447 close (fd);
9448 return 0;
9450 _ACEOF
9451 if ac_fn_c_try_run "$LINENO"; then :
9452 ac_cv_func_mmap_fixed_mapped=yes
9453 else
9454 ac_cv_func_mmap_fixed_mapped=no
9456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9457 conftest.$ac_objext conftest.beam conftest.$ac_ext
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9462 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9463 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9465 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9468 rm -f conftest.mmap conftest.txt
9470 if test $use_mmap_for_buffers = yes; then
9472 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9474 REL_ALLOC=no
9477 LIBS="$LIBS_SYSTEM $LIBS"
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9480 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9481 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 ac_check_lib_save_LIBS=$LIBS
9485 LIBS="-ldnet $LIBS"
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9489 /* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
9492 #ifdef __cplusplus
9493 extern "C"
9494 #endif
9495 char dnet_ntoa ();
9497 main ()
9499 return dnet_ntoa ();
9501 return 0;
9503 _ACEOF
9504 if ac_fn_c_try_link "$LINENO"; then :
9505 ac_cv_lib_dnet_dnet_ntoa=yes
9506 else
9507 ac_cv_lib_dnet_dnet_ntoa=no
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511 LIBS=$ac_check_lib_save_LIBS
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9514 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9515 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9516 cat >>confdefs.h <<_ACEOF
9517 #define HAVE_LIBDNET 1
9518 _ACEOF
9520 LIBS="-ldnet $LIBS"
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9526 $as_echo_n "checking for main in -lXbsd... " >&6; }
9527 if ${ac_cv_lib_Xbsd_main+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 ac_check_lib_save_LIBS=$LIBS
9531 LIBS="-lXbsd $LIBS"
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9537 main ()
9539 return main ();
9541 return 0;
9543 _ACEOF
9544 if ac_fn_c_try_link "$LINENO"; then :
9545 ac_cv_lib_Xbsd_main=yes
9546 else
9547 ac_cv_lib_Xbsd_main=no
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9551 LIBS=$ac_check_lib_save_LIBS
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9554 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9555 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9556 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9561 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9562 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 ac_check_lib_save_LIBS=$LIBS
9566 LIBS="-lpthreads $LIBS"
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9570 /* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
9573 #ifdef __cplusplus
9574 extern "C"
9575 #endif
9576 char cma_open ();
9578 main ()
9580 return cma_open ();
9582 return 0;
9584 _ACEOF
9585 if ac_fn_c_try_link "$LINENO"; then :
9586 ac_cv_lib_pthreads_cma_open=yes
9587 else
9588 ac_cv_lib_pthreads_cma_open=no
9590 rm -f core conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
9592 LIBS=$ac_check_lib_save_LIBS
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9595 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9596 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9597 cat >>confdefs.h <<_ACEOF
9598 #define HAVE_LIBPTHREADS 1
9599 _ACEOF
9601 LIBS="-lpthreads $LIBS"
9606 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9607 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9608 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9609 ## added to LIBS in configure would never contain the pthreads part,
9610 ## but the value used in Makefiles might. FIXME?
9612 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9613 ## be harmless on older versions of X where it happens to exist.
9614 test "$opsys" = "aix4-2" && \
9615 test $ac_cv_lib_pthreads_cma_open = yes && \
9616 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9619 case ${host_os} in
9620 aix*)
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9622 $as_echo_n "checking for -bbigtoc option... " >&6; }
9623 if ${gdb_cv_bigtoc+:} false; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9627 case $GCC in
9628 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9629 *) gdb_cv_bigtoc=-bbigtoc ;;
9630 esac
9632 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9637 main ()
9639 int i;
9641 return 0;
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9646 else
9647 gdb_cv_bigtoc=
9649 rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9654 $as_echo "$gdb_cv_bigtoc" >&6; }
9656 esac
9658 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9659 # used for the tests that follow. We set them back to REAL_CFLAGS and
9660 # REAL_CPPFLAGS later on.
9662 REAL_CFLAGS="$CFLAGS"
9663 REAL_CPPFLAGS="$CPPFLAGS"
9665 if test "${HAVE_X11}" = "yes"; then
9666 DEFS="$C_SWITCH_X_SITE $DEFS"
9667 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9668 LIBS="-lX11 $LIBS"
9669 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9670 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9672 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9673 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9674 # but it's more convenient here to set LD_RUN_PATH
9675 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9676 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9677 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9678 export LD_RUN_PATH
9681 if test "${opsys}" = "gnu-linux"; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9683 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9688 main ()
9690 XOpenDisplay ("foo");
9692 return 0;
9694 _ACEOF
9695 if ac_fn_c_try_link "$LINENO"; then :
9696 xlinux_first_failure=no
9697 else
9698 xlinux_first_failure=yes
9700 rm -f core conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 if test "${xlinux_first_failure}" = "yes"; then
9703 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9704 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9705 OLD_CPPFLAGS="$CPPFLAGS"
9706 OLD_LIBS="$LIBS"
9707 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9708 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9709 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9710 LIBS="$LIBS -b i486-linuxaout"
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9715 main ()
9717 XOpenDisplay ("foo");
9719 return 0;
9721 _ACEOF
9722 if ac_fn_c_try_link "$LINENO"; then :
9723 xlinux_second_failure=no
9724 else
9725 xlinux_second_failure=yes
9727 rm -f core conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729 if test "${xlinux_second_failure}" = "yes"; then
9730 # If we get the same failure with -b, there is no use adding -b.
9731 # So take it out. This plays safe.
9732 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9733 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9734 CPPFLAGS="$OLD_CPPFLAGS"
9735 LIBS="$OLD_LIBS"
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737 $as_echo "no" >&6; }
9738 else
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9740 $as_echo "yes" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9748 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9749 # header files included from there.
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9751 $as_echo_n "checking for Xkb... " >&6; }
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754 #include <X11/Xlib.h>
9755 #include <X11/XKBlib.h>
9757 main ()
9759 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9761 return 0;
9763 _ACEOF
9764 if ac_fn_c_try_link "$LINENO"; then :
9765 emacs_xkb=yes
9766 else
9767 emacs_xkb=no
9769 rm -f core conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9772 $as_echo "$emacs_xkb" >&6; }
9773 if test $emacs_xkb = yes; then
9775 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9779 for ac_func in XrmSetDatabase XScreenResourceString \
9780 XScreenNumberOfScreen XSetWMProtocols
9781 do :
9782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9784 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9785 cat >>confdefs.h <<_ACEOF
9786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9787 _ACEOF
9790 done
9794 if test "${window_system}" = "x11"; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9796 $as_echo_n "checking X11 version 6... " >&6; }
9797 if ${emacs_cv_x11_version_6+:} false; then :
9798 $as_echo_n "(cached) " >&6
9799 else
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9802 #include <X11/Xlib.h>
9804 main ()
9806 #if XlibSpecificationRelease < 6
9807 fail;
9808 #endif
9811 return 0;
9813 _ACEOF
9814 if ac_fn_c_try_link "$LINENO"; then :
9815 emacs_cv_x11_version_6=yes
9816 else
9817 emacs_cv_x11_version_6=no
9819 rm -f core conftest.err conftest.$ac_objext \
9820 conftest$ac_exeext conftest.$ac_ext
9823 if test $emacs_cv_x11_version_6 = yes; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9825 $as_echo "6 or newer" >&6; }
9827 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9830 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9832 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9833 ## XIM support.
9834 case "$opsys" in
9835 sol2-*) : ;;
9837 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9840 esac
9841 else
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9843 $as_echo "before 6" >&6; }
9848 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9849 HAVE_RSVG=no
9850 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9851 if test "${with_rsvg}" != "no"; then
9852 RSVG_REQUIRED=2.11.0
9853 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9856 succeeded=no
9858 # Extract the first word of "pkg-config", so it can be a program name with args.
9859 set dummy pkg-config; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 case $PKG_CONFIG in
9866 [\\/]* | ?:[\\/]*)
9867 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9877 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9881 done
9882 done
9883 IFS=$as_save_IFS
9885 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9887 esac
9889 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9890 if test -n "$PKG_CONFIG"; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9892 $as_echo "$PKG_CONFIG" >&6; }
9893 else
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895 $as_echo "no" >&6; }
9900 if test "$PKG_CONFIG" = "no" ; then
9902 else
9903 PKG_CONFIG_MIN_VERSION=0.9.0
9904 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9906 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9908 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9910 $as_echo "yes" >&6; }
9911 succeeded=yes
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9914 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9915 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9917 $as_echo "$RSVG_CFLAGS" >&6; }
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9920 $as_echo_n "checking RSVG_LIBS... " >&6; }
9921 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9923 $as_echo "$RSVG_LIBS" >&6; }
9924 else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9927 RSVG_CFLAGS=""
9928 RSVG_LIBS=""
9929 ## If we have a custom action on failure, don't print errors, but
9930 ## do set a variable so people can do so.
9931 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9937 else
9938 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9939 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9943 if test $succeeded = yes; then
9944 HAVE_RSVG=yes
9945 else
9952 if test $HAVE_RSVG = yes; then
9954 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9956 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9957 LIBS="$RSVG_LIBS $LIBS"
9962 HAVE_IMAGEMAGICK=no
9963 if test "${HAVE_X11}" = "yes"; then
9964 if test "${with_imagemagick}" != "no"; then
9965 IMAGEMAGICK_MODULE="Wand"
9967 succeeded=no
9969 # Extract the first word of "pkg-config", so it can be a program name with args.
9970 set dummy pkg-config; ac_word=$2
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9972 $as_echo_n "checking for $ac_word... " >&6; }
9973 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9974 $as_echo_n "(cached) " >&6
9975 else
9976 case $PKG_CONFIG in
9977 [\\/]* | ?:[\\/]*)
9978 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
9986 for ac_exec_ext in '' $ac_executable_extensions; do
9987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9988 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 break 2
9992 done
9993 done
9994 IFS=$as_save_IFS
9996 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9998 esac
10000 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10001 if test -n "$PKG_CONFIG"; then
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10003 $as_echo "$PKG_CONFIG" >&6; }
10004 else
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006 $as_echo "no" >&6; }
10011 if test "$PKG_CONFIG" = "no" ; then
10013 else
10014 PKG_CONFIG_MIN_VERSION=0.9.0
10015 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10017 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10019 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10021 $as_echo "yes" >&6; }
10022 succeeded=yes
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10025 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10026 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10028 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10031 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10032 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10034 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10035 else
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10037 $as_echo "no" >&6; }
10038 IMAGEMAGICK_CFLAGS=""
10039 IMAGEMAGICK_LIBS=""
10040 ## If we have a custom action on failure, don't print errors, but
10041 ## do set a variable so people can do so.
10042 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10048 else
10049 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10050 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10054 if test $succeeded = yes; then
10055 HAVE_IMAGEMAGICK=yes
10056 else
10063 if test $HAVE_IMAGEMAGICK = yes; then
10065 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10067 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10068 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10069 for ac_func in MagickExportImagePixels
10070 do :
10071 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10072 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
10073 cat >>confdefs.h <<_ACEOF
10074 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10075 _ACEOF
10078 done
10085 HAVE_GTK=no
10086 if test "${with_gtk3}" = "yes"; then
10087 GLIB_REQUIRED=2.28
10088 GTK_REQUIRED=3.0
10089 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10092 succeeded=no
10094 # Extract the first word of "pkg-config", so it can be a program name with args.
10095 set dummy pkg-config; ac_word=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10099 $as_echo_n "(cached) " >&6
10100 else
10101 case $PKG_CONFIG in
10102 [\\/]* | ?:[\\/]*)
10103 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10113 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10117 done
10118 done
10119 IFS=$as_save_IFS
10121 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10123 esac
10125 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10126 if test -n "$PKG_CONFIG"; then
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10128 $as_echo "$PKG_CONFIG" >&6; }
10129 else
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10136 if test "$PKG_CONFIG" = "no" ; then
10137 pkg_check_gtk=no
10138 else
10139 PKG_CONFIG_MIN_VERSION=0.9.0
10140 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10142 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10144 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10146 $as_echo "yes" >&6; }
10147 succeeded=yes
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10150 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10151 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10153 $as_echo "$GTK_CFLAGS" >&6; }
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10156 $as_echo_n "checking GTK_LIBS... " >&6; }
10157 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10159 $as_echo "$GTK_LIBS" >&6; }
10160 else
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10163 GTK_CFLAGS=""
10164 GTK_LIBS=""
10165 ## If we have a custom action on failure, don't print errors, but
10166 ## do set a variable so people can do so.
10167 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10173 else
10174 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10175 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10179 if test $succeeded = yes; then
10180 pkg_check_gtk=yes
10181 else
10182 pkg_check_gtk=no
10185 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10186 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10189 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10193 if test "$pkg_check_gtk" != "yes"; then
10194 HAVE_GTK=no
10195 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10196 GLIB_REQUIRED=2.6
10197 GTK_REQUIRED=2.6
10198 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10201 succeeded=no
10203 # Extract the first word of "pkg-config", so it can be a program name with args.
10204 set dummy pkg-config; ac_word=$2
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 case $PKG_CONFIG in
10211 [\\/]* | ?:[\\/]*)
10212 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10218 IFS=$as_save_IFS
10219 test -z "$as_dir" && as_dir=.
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10222 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 break 2
10226 done
10227 done
10228 IFS=$as_save_IFS
10230 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10232 esac
10234 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10235 if test -n "$PKG_CONFIG"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10237 $as_echo "$PKG_CONFIG" >&6; }
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10245 if test "$PKG_CONFIG" = "no" ; then
10246 pkg_check_gtk=no
10247 else
10248 PKG_CONFIG_MIN_VERSION=0.9.0
10249 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10251 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10253 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10255 $as_echo "yes" >&6; }
10256 succeeded=yes
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10259 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10260 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10262 $as_echo "$GTK_CFLAGS" >&6; }
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10265 $as_echo_n "checking GTK_LIBS... " >&6; }
10266 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10268 $as_echo "$GTK_LIBS" >&6; }
10269 else
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10272 GTK_CFLAGS=""
10273 GTK_LIBS=""
10274 ## If we have a custom action on failure, don't print errors, but
10275 ## do set a variable so people can do so.
10276 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10282 else
10283 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10284 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10288 if test $succeeded = yes; then
10289 pkg_check_gtk=yes
10290 else
10291 pkg_check_gtk=no
10294 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10295 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10300 GTK_OBJ=
10301 if test x"$pkg_check_gtk" = xyes; then
10305 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10306 CFLAGS="$CFLAGS $GTK_CFLAGS"
10307 LIBS="$GTK_LIBS $LIBS"
10308 GTK_COMPILES=no
10309 for ac_func in gtk_main
10310 do :
10311 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10312 if test "x$ac_cv_func_gtk_main" = xyes; then :
10313 cat >>confdefs.h <<_ACEOF
10314 #define HAVE_GTK_MAIN 1
10315 _ACEOF
10316 GTK_COMPILES=yes
10318 done
10320 if test "${GTK_COMPILES}" != "yes"; then
10321 if test "$USE_X_TOOLKIT" != "maybe"; then
10322 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10324 else
10325 HAVE_GTK=yes
10327 $as_echo "#define USE_GTK 1" >>confdefs.h
10329 GTK_OBJ=gtkutil.o
10330 USE_X_TOOLKIT=none
10331 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10335 closing open displays. This is no problem if you just use
10336 one display, but if you use more than one and close one of them
10337 Emacs may crash." >&5
10338 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10339 closing open displays. This is no problem if you just use
10340 one display, but if you use more than one and close one of them
10341 Emacs may crash." >&2;}
10342 sleep 3
10350 if test "${HAVE_GTK}" = "yes"; then
10352 if test "$with_toolkit_scroll_bars" != no; then
10353 with_toolkit_scroll_bars=yes
10356 HAVE_GTK_FILE_SELECTION=no
10357 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10358 #include <gtk/gtk.h>
10360 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
10361 HAVE_GTK_FILE_SELECTION=yes
10362 else
10363 HAVE_GTK_FILE_SELECTION=no
10366 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10367 for ac_func in gtk_file_selection_new
10368 do :
10369 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10370 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
10371 cat >>confdefs.h <<_ACEOF
10372 #define HAVE_GTK_FILE_SELECTION_NEW 1
10373 _ACEOF
10376 done
10380 HAVE_GTK_AND_PTHREAD=no
10381 for ac_header in pthread.h
10382 do :
10383 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10384 if test "x$ac_cv_header_pthread_h" = xyes; then :
10385 cat >>confdefs.h <<_ACEOF
10386 #define HAVE_PTHREAD_H 1
10387 _ACEOF
10391 done
10393 if test "$ac_cv_header_pthread_h"; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10395 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10396 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 ac_check_lib_save_LIBS=$LIBS
10400 LIBS="-lpthread $LIBS"
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10404 /* Override any GCC internal prototype to avoid an error.
10405 Use char because int might match the return type of a GCC
10406 builtin and then its argument prototype would still apply. */
10407 #ifdef __cplusplus
10408 extern "C"
10409 #endif
10410 char pthread_self ();
10412 main ()
10414 return pthread_self ();
10416 return 0;
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"; then :
10420 ac_cv_lib_pthread_pthread_self=yes
10421 else
10422 ac_cv_lib_pthread_pthread_self=no
10424 rm -f core conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10426 LIBS=$ac_check_lib_save_LIBS
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10429 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10430 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10431 HAVE_GTK_AND_PTHREAD=yes
10435 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10436 case "${canonical}" in
10437 *-hpux*) ;;
10438 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10439 esac
10441 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10445 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10446 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10447 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10448 gtk_orientable_set_orientation
10449 do :
10450 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10451 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10452 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10453 cat >>confdefs.h <<_ACEOF
10454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10455 _ACEOF
10458 done
10463 HAVE_DBUS=no
10464 DBUS_OBJ=
10465 if test "${with_dbus}" = "yes"; then
10467 succeeded=no
10469 # Extract the first word of "pkg-config", so it can be a program name with args.
10470 set dummy pkg-config; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 case $PKG_CONFIG in
10477 [\\/]* | ?:[\\/]*)
10478 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10488 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 break 2
10492 done
10493 done
10494 IFS=$as_save_IFS
10496 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10498 esac
10500 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10501 if test -n "$PKG_CONFIG"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10503 $as_echo "$PKG_CONFIG" >&6; }
10504 else
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10511 if test "$PKG_CONFIG" = "no" ; then
10512 HAVE_DBUS=no
10513 else
10514 PKG_CONFIG_MIN_VERSION=0.9.0
10515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10517 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10519 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10521 $as_echo "yes" >&6; }
10522 succeeded=yes
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10525 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10526 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10528 $as_echo "$DBUS_CFLAGS" >&6; }
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10531 $as_echo_n "checking DBUS_LIBS... " >&6; }
10532 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10534 $as_echo "$DBUS_LIBS" >&6; }
10535 else
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; }
10538 DBUS_CFLAGS=""
10539 DBUS_LIBS=""
10540 ## If we have a custom action on failure, don't print errors, but
10541 ## do set a variable so people can do so.
10542 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10548 else
10549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10554 if test $succeeded = yes; then
10555 HAVE_DBUS=yes
10556 else
10557 HAVE_DBUS=no
10560 if test "$HAVE_DBUS" = yes; then
10561 LIBS="$LIBS $DBUS_LIBS"
10563 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10565 for ac_func in dbus_watch_get_unix_fd
10566 do :
10567 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10568 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10569 cat >>confdefs.h <<_ACEOF
10570 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10571 _ACEOF
10574 done
10576 DBUS_OBJ=dbusbind.o
10581 HAVE_GCONF=no
10582 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10584 succeeded=no
10586 # Extract the first word of "pkg-config", so it can be a program name with args.
10587 set dummy pkg-config; ac_word=$2
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589 $as_echo_n "checking for $ac_word... " >&6; }
10590 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10591 $as_echo_n "(cached) " >&6
10592 else
10593 case $PKG_CONFIG in
10594 [\\/]* | ?:[\\/]*)
10595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599 for as_dir in $PATH
10601 IFS=$as_save_IFS
10602 test -z "$as_dir" && as_dir=.
10603 for ac_exec_ext in '' $ac_executable_extensions; do
10604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 break 2
10609 done
10610 done
10611 IFS=$as_save_IFS
10613 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10615 esac
10617 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10618 if test -n "$PKG_CONFIG"; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10620 $as_echo "$PKG_CONFIG" >&6; }
10621 else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10628 if test "$PKG_CONFIG" = "no" ; then
10629 HAVE_GCONF=no
10630 else
10631 PKG_CONFIG_MIN_VERSION=0.9.0
10632 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10634 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10636 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10638 $as_echo "yes" >&6; }
10639 succeeded=yes
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10642 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10643 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10645 $as_echo "$GCONF_CFLAGS" >&6; }
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10648 $as_echo_n "checking GCONF_LIBS... " >&6; }
10649 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10651 $as_echo "$GCONF_LIBS" >&6; }
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; }
10655 GCONF_CFLAGS=""
10656 GCONF_LIBS=""
10657 ## If we have a custom action on failure, don't print errors, but
10658 ## do set a variable so people can do so.
10659 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10665 else
10666 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10667 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10671 if test $succeeded = yes; then
10672 HAVE_GCONF=yes
10673 else
10674 HAVE_GCONF=no
10677 if test "$HAVE_GCONF" = yes; then
10679 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10681 for ac_func in g_type_init
10682 do :
10683 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10684 if test "x$ac_cv_func_g_type_init" = xyes; then :
10685 cat >>confdefs.h <<_ACEOF
10686 #define HAVE_G_TYPE_INIT 1
10687 _ACEOF
10690 done
10695 HAVE_LIBSELINUX=no
10696 LIBSELINUX_LIBS=
10697 if test "${with_selinux}" = "yes"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10699 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10700 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 ac_check_lib_save_LIBS=$LIBS
10704 LIBS="-lselinux $LIBS"
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10708 /* Override any GCC internal prototype to avoid an error.
10709 Use char because int might match the return type of a GCC
10710 builtin and then its argument prototype would still apply. */
10711 #ifdef __cplusplus
10712 extern "C"
10713 #endif
10714 char lgetfilecon ();
10716 main ()
10718 return lgetfilecon ();
10720 return 0;
10722 _ACEOF
10723 if ac_fn_c_try_link "$LINENO"; then :
10724 ac_cv_lib_selinux_lgetfilecon=yes
10725 else
10726 ac_cv_lib_selinux_lgetfilecon=no
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10733 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10734 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10735 HAVE_LIBSELINUX=yes
10736 else
10737 HAVE_LIBSELINUX=no
10740 if test "$HAVE_LIBSELINUX" = yes; then
10742 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10744 LIBSELINUX_LIBS=-lselinux
10749 HAVE_GNUTLS=no
10750 if test "${with_gnutls}" = "yes" ; then
10752 succeeded=no
10754 # Extract the first word of "pkg-config", so it can be a program name with args.
10755 set dummy pkg-config; ac_word=$2
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757 $as_echo_n "checking for $ac_word... " >&6; }
10758 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 case $PKG_CONFIG in
10762 [\\/]* | ?:[\\/]*)
10763 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767 for as_dir in $PATH
10769 IFS=$as_save_IFS
10770 test -z "$as_dir" && as_dir=.
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10773 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10775 break 2
10777 done
10778 done
10779 IFS=$as_save_IFS
10781 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10783 esac
10785 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10786 if test -n "$PKG_CONFIG"; then
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10788 $as_echo "$PKG_CONFIG" >&6; }
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791 $as_echo "no" >&6; }
10796 if test "$PKG_CONFIG" = "no" ; then
10797 HAVE_GNUTLS=no
10798 else
10799 PKG_CONFIG_MIN_VERSION=0.9.0
10800 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10802 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10804 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10806 $as_echo "yes" >&6; }
10807 succeeded=yes
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10810 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10811 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10813 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10816 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10817 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10819 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10820 else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10823 LIBGNUTLS_CFLAGS=""
10824 LIBGNUTLS_LIBS=""
10825 ## If we have a custom action on failure, don't print errors, but
10826 ## do set a variable so people can do so.
10827 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10833 else
10834 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10835 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10839 if test $succeeded = yes; then
10840 HAVE_GNUTLS=yes
10841 else
10842 HAVE_GNUTLS=no
10845 if test "${HAVE_GNUTLS}" = "yes"; then
10847 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10854 HAVE_XAW3D=no
10855 LUCID_LIBW=
10856 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10857 if test "$with_xaw3d" != no; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10859 $as_echo_n "checking for xaw3d... " >&6; }
10860 if ${emacs_cv_xaw3d+:} false; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10866 #include <X11/Intrinsic.h>
10867 #include <X11/Xaw3d/Simple.h>
10869 main ()
10873 return 0;
10875 _ACEOF
10876 if ac_fn_c_try_link "$LINENO"; then :
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10878 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10879 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 ac_check_lib_save_LIBS=$LIBS
10883 LIBS="-lXaw3d $LIBS"
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10887 /* Override any GCC internal prototype to avoid an error.
10888 Use char because int might match the return type of a GCC
10889 builtin and then its argument prototype would still apply. */
10890 #ifdef __cplusplus
10891 extern "C"
10892 #endif
10893 char XawScrollbarSetThumb ();
10895 main ()
10897 return XawScrollbarSetThumb ();
10899 return 0;
10901 _ACEOF
10902 if ac_fn_c_try_link "$LINENO"; then :
10903 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10904 else
10905 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10907 rm -f core conftest.err conftest.$ac_objext \
10908 conftest$ac_exeext conftest.$ac_ext
10909 LIBS=$ac_check_lib_save_LIBS
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10912 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10913 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
10914 emacs_cv_xaw3d=yes
10915 else
10916 emacs_cv_xaw3d=no
10919 else
10920 emacs_cv_xaw3d=no
10922 rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10926 else
10927 emacs_cv_xaw3d=no
10929 if test $emacs_cv_xaw3d = yes; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10931 $as_echo "yes; using Lucid toolkit" >&6; }
10932 USE_X_TOOLKIT=LUCID
10933 HAVE_XAW3D=yes
10934 LUCID_LIBW=-lXaw3d
10936 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10938 else
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10940 $as_echo "no" >&6; }
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10942 $as_echo_n "checking for libXaw... " >&6; }
10943 if ${emacs_cv_xaw+:} false; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10949 #include <X11/Intrinsic.h>
10950 #include <X11/Xaw/Simple.h>
10952 main ()
10956 return 0;
10958 _ACEOF
10959 if ac_fn_c_try_link "$LINENO"; then :
10960 emacs_cv_xaw=yes
10961 else
10962 emacs_cv_xaw=no
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10968 if test $emacs_cv_xaw = yes; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10970 $as_echo "yes; using Lucid toolkit" >&6; }
10971 USE_X_TOOLKIT=LUCID
10972 LUCID_LIBW=-lXaw
10973 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10974 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10975 else
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10977 $as_echo "no; do not use toolkit by default" >&6; }
10978 USE_X_TOOLKIT=none
10983 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10985 LIBXTR6=
10986 if test "${USE_X_TOOLKIT}" != "none"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10988 $as_echo_n "checking X11 toolkit version... " >&6; }
10989 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10994 #include <X11/Intrinsic.h>
10996 main ()
10998 #if XtSpecificationRelease < 6
10999 fail;
11000 #endif
11003 return 0;
11005 _ACEOF
11006 if ac_fn_c_try_link "$LINENO"; then :
11007 emacs_cv_x11_toolkit_version_6=yes
11008 else
11009 emacs_cv_x11_toolkit_version_6=no
11011 rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11015 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11016 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11018 $as_echo "6 or newer" >&6; }
11020 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11022 LIBXTR6="-lSM -lICE"
11023 case "$opsys" in
11024 ## Use libw.a along with X11R6 Xt.
11025 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11026 esac
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11029 $as_echo "before 6" >&6; }
11032 OLDLIBS="$LIBS"
11033 if test x$HAVE_X11XTR6 = xyes; then
11034 LIBS="-lXt -lSM -lICE $LIBS"
11035 else
11036 LIBS="-lXt $LIBS"
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11039 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11040 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 ac_check_lib_save_LIBS=$LIBS
11044 LIBS="-lXmu $LIBS"
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11048 /* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
11051 #ifdef __cplusplus
11052 extern "C"
11053 #endif
11054 char XmuConvertStandardSelection ();
11056 main ()
11058 return XmuConvertStandardSelection ();
11060 return 0;
11062 _ACEOF
11063 if ac_fn_c_try_link "$LINENO"; then :
11064 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11065 else
11066 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11068 rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070 LIBS=$ac_check_lib_save_LIBS
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11073 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11074 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
11075 cat >>confdefs.h <<_ACEOF
11076 #define HAVE_LIBXMU 1
11077 _ACEOF
11079 LIBS="-lXmu $LIBS"
11083 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11087 LIBXMU=-lXmu
11088 case $opsys in
11089 ## These systems don't supply Xmu.
11090 hpux* | aix4-2 )
11091 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11093 esac
11096 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11097 if test "${HAVE_X11}" = "yes"; then
11098 if test "${USE_X_TOOLKIT}" != "none"; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11100 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11101 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 ac_check_lib_save_LIBS=$LIBS
11105 LIBS="-lXext $LIBS"
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11109 /* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11112 #ifdef __cplusplus
11113 extern "C"
11114 #endif
11115 char XShapeQueryExtension ();
11117 main ()
11119 return XShapeQueryExtension ();
11121 return 0;
11123 _ACEOF
11124 if ac_fn_c_try_link "$LINENO"; then :
11125 ac_cv_lib_Xext_XShapeQueryExtension=yes
11126 else
11127 ac_cv_lib_Xext_XShapeQueryExtension=no
11129 rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11131 LIBS=$ac_check_lib_save_LIBS
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11134 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11135 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
11136 cat >>confdefs.h <<_ACEOF
11137 #define HAVE_LIBXEXT 1
11138 _ACEOF
11140 LIBS="-lXext $LIBS"
11147 LIBXP=
11148 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11150 $as_echo_n "checking for Motif version 2.1... " >&6; }
11151 if ${emacs_cv_motif_version_2_1+:} false; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11156 #include <Xm/Xm.h>
11158 main ()
11160 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11161 int x = 5;
11162 #else
11163 Motif version prior to 2.1.
11164 #endif
11166 return 0;
11168 _ACEOF
11169 if ac_fn_c_try_compile "$LINENO"; then :
11170 emacs_cv_motif_version_2_1=yes
11171 else
11172 emacs_cv_motif_version_2_1=no
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11177 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11178 if test $emacs_cv_motif_version_2_1 = yes; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11180 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11181 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 ac_check_lib_save_LIBS=$LIBS
11185 LIBS="-lXp $LIBS"
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11189 /* Override any GCC internal prototype to avoid an error.
11190 Use char because int might match the return type of a GCC
11191 builtin and then its argument prototype would still apply. */
11192 #ifdef __cplusplus
11193 extern "C"
11194 #endif
11195 char XpCreateContext ();
11197 main ()
11199 return XpCreateContext ();
11201 return 0;
11203 _ACEOF
11204 if ac_fn_c_try_link "$LINENO"; then :
11205 ac_cv_lib_Xp_XpCreateContext=yes
11206 else
11207 ac_cv_lib_Xp_XpCreateContext=no
11209 rm -f core conftest.err conftest.$ac_objext \
11210 conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_lib_save_LIBS
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11214 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11215 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
11216 LIBXP=-lXp
11219 else
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11221 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11222 if ${emacs_cv_lesstif+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 # We put this in CFLAGS temporarily to precede other -I options
11226 # that might be in CFLAGS temporarily.
11227 # We put this in CPPFLAGS where it precedes the other -I options.
11228 OLD_CPPFLAGS=$CPPFLAGS
11229 OLD_CFLAGS=$CFLAGS
11230 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11231 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11234 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11236 main ()
11238 int x = 5;
11240 return 0;
11242 _ACEOF
11243 if ac_fn_c_try_compile "$LINENO"; then :
11244 emacs_cv_lesstif=yes
11245 else
11246 emacs_cv_lesstif=no
11248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11251 $as_echo "$emacs_cv_lesstif" >&6; }
11252 if test $emacs_cv_lesstif = yes; then
11253 # Make sure this -I option remains in CPPFLAGS after it is set
11254 # back to REAL_CPPFLAGS.
11255 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11256 # have those other -I options anyway. Ultimately, having this
11257 # directory ultimately in CPPFLAGS will be enough.
11258 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11259 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11260 else
11261 CFLAGS=$OLD_CFLAGS
11262 CPPFLAGS=$OLD_CPPFLAGS
11268 USE_TOOLKIT_SCROLL_BARS=no
11269 if test "${with_toolkit_scroll_bars}" != "no"; then
11270 if test "${USE_X_TOOLKIT}" != "none"; then
11271 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11272 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11274 HAVE_XAW3D=no
11275 USE_TOOLKIT_SCROLL_BARS=yes
11276 elif test "${HAVE_XAW3D}" = "yes"; then
11277 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11279 USE_TOOLKIT_SCROLL_BARS=yes
11281 elif test "${HAVE_GTK}" = "yes"; then
11282 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11284 USE_TOOLKIT_SCROLL_BARS=yes
11285 elif test "${HAVE_NS}" = "yes"; then
11286 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11288 USE_TOOLKIT_SCROLL_BARS=yes
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11295 #include <X11/Xlib.h>
11296 #include <X11/Xresource.h>
11298 main ()
11300 XIMProc callback;
11302 return 0;
11304 _ACEOF
11305 if ac_fn_c_try_compile "$LINENO"; then :
11306 HAVE_XIM=yes
11308 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11310 else
11311 HAVE_XIM=no
11313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 if test "${with_xim}" != "no"; then
11318 $as_echo "#define USE_XIM 1" >>confdefs.h
11323 if test "${HAVE_XIM}" != "no"; then
11324 late_CFLAGS=$CFLAGS
11325 if test "$GCC" = yes; then
11326 CFLAGS="$CFLAGS --pedantic-errors"
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11331 #include <X11/Xlib.h>
11332 #include <X11/Xresource.h>
11334 main ()
11336 Display *display;
11337 XrmDatabase db;
11338 char *res_name;
11339 char *res_class;
11340 XIMProc callback;
11341 XPointer *client_data;
11342 #ifndef __GNUC__
11343 /* If we're not using GCC, it's probably not XFree86, and this is
11344 probably right, but we can't use something like --pedantic-errors. */
11345 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11346 char*, XIMProc, XPointer*);
11347 #endif
11348 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11349 client_data);
11351 return 0;
11353 _ACEOF
11354 if ac_fn_c_try_compile "$LINENO"; then :
11355 emacs_cv_arg6_star=yes
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 if test "$emacs_cv_arg6_star" = yes; then
11359 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11361 else
11362 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11365 CFLAGS=$late_CFLAGS
11368 ### Start of font-backend (under any platform) section.
11369 # (nothing here yet -- this is a placeholder)
11370 ### End of font-backend (under any platform) section.
11372 ### Start of font-backend (under X11) section.
11373 if test "${HAVE_X11}" = "yes"; then
11375 succeeded=no
11377 # Extract the first word of "pkg-config", so it can be a program name with args.
11378 set dummy pkg-config; ac_word=$2
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 case $PKG_CONFIG in
11385 [\\/]* | ?:[\\/]*)
11386 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11396 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 break 2
11400 done
11401 done
11402 IFS=$as_save_IFS
11404 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11406 esac
11408 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11409 if test -n "$PKG_CONFIG"; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11411 $as_echo "$PKG_CONFIG" >&6; }
11412 else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11419 if test "$PKG_CONFIG" = "no" ; then
11420 HAVE_FC=no
11421 else
11422 PKG_CONFIG_MIN_VERSION=0.9.0
11423 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11425 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11427 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11429 $as_echo "yes" >&6; }
11430 succeeded=yes
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11433 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11434 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11436 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11439 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11440 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11442 $as_echo "$FONTCONFIG_LIBS" >&6; }
11443 else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445 $as_echo "no" >&6; }
11446 FONTCONFIG_CFLAGS=""
11447 FONTCONFIG_LIBS=""
11448 ## If we have a custom action on failure, don't print errors, but
11449 ## do set a variable so people can do so.
11450 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11456 else
11457 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11458 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11462 if test $succeeded = yes; then
11463 HAVE_FC=yes
11464 else
11465 HAVE_FC=no
11469 ## Use -lXft if available, unless `--with-xft=no'.
11470 HAVE_XFT=maybe
11471 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11472 with_xft="no";
11474 if test "x${with_xft}" != "xno"; then
11477 succeeded=no
11479 # Extract the first word of "pkg-config", so it can be a program name with args.
11480 set dummy pkg-config; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 case $PKG_CONFIG in
11487 [\\/]* | ?:[\\/]*)
11488 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11494 IFS=$as_save_IFS
11495 test -z "$as_dir" && as_dir=.
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11498 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 break 2
11502 done
11503 done
11504 IFS=$as_save_IFS
11506 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11508 esac
11510 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11511 if test -n "$PKG_CONFIG"; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11513 $as_echo "$PKG_CONFIG" >&6; }
11514 else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516 $as_echo "no" >&6; }
11521 if test "$PKG_CONFIG" = "no" ; then
11522 HAVE_XFT=no
11523 else
11524 PKG_CONFIG_MIN_VERSION=0.9.0
11525 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11527 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11529 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531 $as_echo "yes" >&6; }
11532 succeeded=yes
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11535 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11536 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11538 $as_echo "$XFT_CFLAGS" >&6; }
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11541 $as_echo_n "checking XFT_LIBS... " >&6; }
11542 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11544 $as_echo "$XFT_LIBS" >&6; }
11545 else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11548 XFT_CFLAGS=""
11549 XFT_LIBS=""
11550 ## If we have a custom action on failure, don't print errors, but
11551 ## do set a variable so people can do so.
11552 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11558 else
11559 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11560 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11564 if test $succeeded = yes; then
11566 else
11567 HAVE_XFT=no
11570 ## Because xftfont.c uses XRenderQueryExtension, we also
11571 ## need to link to -lXrender.
11572 HAVE_XRENDER=no
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11574 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11575 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 ac_check_lib_save_LIBS=$LIBS
11579 LIBS="-lXrender $LIBS"
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11583 /* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11586 #ifdef __cplusplus
11587 extern "C"
11588 #endif
11589 char XRenderQueryExtension ();
11591 main ()
11593 return XRenderQueryExtension ();
11595 return 0;
11597 _ACEOF
11598 if ac_fn_c_try_link "$LINENO"; then :
11599 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11600 else
11601 ac_cv_lib_Xrender_XRenderQueryExtension=no
11603 rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11605 LIBS=$ac_check_lib_save_LIBS
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11608 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11609 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11610 HAVE_XRENDER=yes
11613 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11614 OLD_CPPFLAGS="$CPPFLAGS"
11615 OLD_CFLAGS="$CFLAGS"
11616 OLD_LIBS="$LIBS"
11617 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11618 CFLAGS="$CFLAGS $XFT_CFLAGS"
11619 XFT_LIBS="-lXrender $XFT_LIBS"
11620 LIBS="$XFT_LIBS $LIBS"
11621 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11622 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11624 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11625 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-lXft $XFT_LIBS $LIBS"
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char XftFontOpen ();
11641 main ()
11643 return XftFontOpen ();
11645 return 0;
11647 _ACEOF
11648 if ac_fn_c_try_link "$LINENO"; then :
11649 ac_cv_lib_Xft_XftFontOpen=yes
11650 else
11651 ac_cv_lib_Xft_XftFontOpen=no
11653 rm -f core conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11655 LIBS=$ac_check_lib_save_LIBS
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11658 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11659 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11660 HAVE_XFT=yes
11667 if test "${HAVE_XFT}" = "yes"; then
11669 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11672 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11673 else
11674 CPPFLAGS="$OLD_CPPFLAGS"
11675 CFLAGS="$OLD_CFLAGS"
11676 LIBS="$OLD_LIBS"
11677 fi # "${HAVE_XFT}" = "yes"
11678 fi # "$HAVE_XFT" != no
11679 fi # "x${with_xft}" != "xno"
11681 ## We used to allow building with FreeType and without Xft.
11682 ## However, the ftx font backend driver is not in good shape.
11683 if test "$HAVE_XFT" != "yes"; then
11684 HAVE_XFT=no
11685 HAVE_FREETYPE=no
11686 else
11688 succeeded=no
11690 # Extract the first word of "pkg-config", so it can be a program name with args.
11691 set dummy pkg-config; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 case $PKG_CONFIG in
11698 [\\/]* | ?:[\\/]*)
11699 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11709 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11713 done
11714 done
11715 IFS=$as_save_IFS
11717 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11719 esac
11721 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11722 if test -n "$PKG_CONFIG"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11724 $as_echo "$PKG_CONFIG" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11732 if test "$PKG_CONFIG" = "no" ; then
11733 HAVE_FREETYPE=no
11734 else
11735 PKG_CONFIG_MIN_VERSION=0.9.0
11736 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11738 $as_echo_n "checking for freetype2... " >&6; }
11740 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11742 $as_echo "yes" >&6; }
11743 succeeded=yes
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11746 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11747 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11749 $as_echo "$FREETYPE_CFLAGS" >&6; }
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11752 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11753 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11755 $as_echo "$FREETYPE_LIBS" >&6; }
11756 else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11759 FREETYPE_CFLAGS=""
11760 FREETYPE_LIBS=""
11761 ## If we have a custom action on failure, don't print errors, but
11762 ## do set a variable so people can do so.
11763 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11769 else
11770 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11771 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11775 if test $succeeded = yes; then
11776 HAVE_FREETYPE=yes
11777 else
11778 HAVE_FREETYPE=no
11782 test "$HAVE_FREETYPE" = "no" && as_fn_error $? "libxft requires libfreetype" "$LINENO" 5
11785 HAVE_LIBOTF=no
11786 if test "${HAVE_FREETYPE}" = "yes"; then
11788 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11790 if test "${with_libotf}" != "no"; then
11792 succeeded=no
11794 # Extract the first word of "pkg-config", so it can be a program name with args.
11795 set dummy pkg-config; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 case $PKG_CONFIG in
11802 [\\/]* | ?:[\\/]*)
11803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11815 break 2
11817 done
11818 done
11819 IFS=$as_save_IFS
11821 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11823 esac
11825 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11826 if test -n "$PKG_CONFIG"; then
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11828 $as_echo "$PKG_CONFIG" >&6; }
11829 else
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831 $as_echo "no" >&6; }
11836 if test "$PKG_CONFIG" = "no" ; then
11837 HAVE_LIBOTF=no
11838 else
11839 PKG_CONFIG_MIN_VERSION=0.9.0
11840 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11842 $as_echo_n "checking for libotf... " >&6; }
11844 if $PKG_CONFIG --exists "libotf" 2>&5; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11846 $as_echo "yes" >&6; }
11847 succeeded=yes
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11850 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11851 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11853 $as_echo "$LIBOTF_CFLAGS" >&6; }
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11856 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11857 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11859 $as_echo "$LIBOTF_LIBS" >&6; }
11860 else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11863 LIBOTF_CFLAGS=""
11864 LIBOTF_LIBS=""
11865 ## If we have a custom action on failure, don't print errors, but
11866 ## do set a variable so people can do so.
11867 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11873 else
11874 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11875 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11879 if test $succeeded = yes; then
11880 HAVE_LIBOTF=yes
11881 else
11882 HAVE_LIBOTF=no
11885 if test "$HAVE_LIBOTF" = "yes"; then
11887 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11890 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11891 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-lotf $LIBS"
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11899 /* Override any GCC internal prototype to avoid an error.
11900 Use char because int might match the return type of a GCC
11901 builtin and then its argument prototype would still apply. */
11902 #ifdef __cplusplus
11903 extern "C"
11904 #endif
11905 char OTF_get_variation_glyphs ();
11907 main ()
11909 return OTF_get_variation_glyphs ();
11911 return 0;
11913 _ACEOF
11914 if ac_fn_c_try_link "$LINENO"; then :
11915 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11916 else
11917 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11919 rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921 LIBS=$ac_check_lib_save_LIBS
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11924 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11925 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11926 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11927 else
11928 HAVE_OTF_GET_VARIATION_GLYPHS=no
11931 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11933 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11940 HAVE_M17N_FLT=no
11941 if test "${HAVE_LIBOTF}" = yes; then
11942 if test "${with_m17n_flt}" != "no"; then
11944 succeeded=no
11946 # Extract the first word of "pkg-config", so it can be a program name with args.
11947 set dummy pkg-config; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 case $PKG_CONFIG in
11954 [\\/]* | ?:[\\/]*)
11955 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11965 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11969 done
11970 done
11971 IFS=$as_save_IFS
11973 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11975 esac
11977 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11978 if test -n "$PKG_CONFIG"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11980 $as_echo "$PKG_CONFIG" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11988 if test "$PKG_CONFIG" = "no" ; then
11989 HAVE_M17N_FLT=no
11990 else
11991 PKG_CONFIG_MIN_VERSION=0.9.0
11992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11994 $as_echo_n "checking for m17n-flt... " >&6; }
11996 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11998 $as_echo "yes" >&6; }
11999 succeeded=yes
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12002 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12003 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12005 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12008 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12009 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12011 $as_echo "$M17N_FLT_LIBS" >&6; }
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12015 M17N_FLT_CFLAGS=""
12016 M17N_FLT_LIBS=""
12017 ## If we have a custom action on failure, don't print errors, but
12018 ## do set a variable so people can do so.
12019 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12025 else
12026 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12027 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12031 if test $succeeded = yes; then
12032 HAVE_M17N_FLT=yes
12033 else
12034 HAVE_M17N_FLT=no
12037 if test "$HAVE_M17N_FLT" = "yes"; then
12039 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12044 else
12045 HAVE_XFT=no
12046 HAVE_FREETYPE=no
12047 HAVE_LIBOTF=no
12048 HAVE_M17N_FLT=no
12051 ### End of font-backend (under X11) section.
12062 ### Use -lXpm if available, unless `--with-xpm=no'.
12063 HAVE_XPM=no
12064 LIBXPM=
12065 if test "${HAVE_X11}" = "yes"; then
12066 if test "${with_xpm}" != "no"; then
12067 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12068 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12070 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12071 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 ac_check_lib_save_LIBS=$LIBS
12075 LIBS="-lXpm -lX11 $LIBS"
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12079 /* Override any GCC internal prototype to avoid an error.
12080 Use char because int might match the return type of a GCC
12081 builtin and then its argument prototype would still apply. */
12082 #ifdef __cplusplus
12083 extern "C"
12084 #endif
12085 char XpmReadFileToPixmap ();
12087 main ()
12089 return XpmReadFileToPixmap ();
12091 return 0;
12093 _ACEOF
12094 if ac_fn_c_try_link "$LINENO"; then :
12095 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12096 else
12097 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12099 rm -f core conftest.err conftest.$ac_objext \
12100 conftest$ac_exeext conftest.$ac_ext
12101 LIBS=$ac_check_lib_save_LIBS
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12104 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12105 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
12106 HAVE_XPM=yes
12112 if test "${HAVE_XPM}" = "yes"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12114 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12117 #include "X11/xpm.h"
12118 #ifndef XpmReturnAllocPixels
12119 no_return_alloc_pixels
12120 #endif
12122 _ACEOF
12123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12124 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12125 HAVE_XPM=no
12126 else
12127 HAVE_XPM=yes
12129 rm -f conftest*
12132 if test "${HAVE_XPM}" = "yes"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12134 $as_echo "yes" >&6; }
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12142 if test "${HAVE_XPM}" = "yes"; then
12144 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12146 LIBXPM=-lXpm
12151 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12152 HAVE_JPEG=no
12153 LIBJPEG=
12154 if test "${HAVE_X11}" = "yes"; then
12155 if test "${with_jpeg}" != "no"; then
12156 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12157 if test "x$ac_cv_header_jerror_h" = xyes; then :
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12159 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12160 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 ac_check_lib_save_LIBS=$LIBS
12164 LIBS="-ljpeg $LIBS"
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12168 /* Override any GCC internal prototype to avoid an error.
12169 Use char because int might match the return type of a GCC
12170 builtin and then its argument prototype would still apply. */
12171 #ifdef __cplusplus
12172 extern "C"
12173 #endif
12174 char jpeg_destroy_compress ();
12176 main ()
12178 return jpeg_destroy_compress ();
12180 return 0;
12182 _ACEOF
12183 if ac_fn_c_try_link "$LINENO"; then :
12184 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12185 else
12186 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12188 rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12193 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12194 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
12195 HAVE_JPEG=yes
12203 if test "${HAVE_JPEG}" = "yes"; then
12204 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208 #include <jpeglib.h>
12209 version=JPEG_LIB_VERSION
12211 _ACEOF
12212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12213 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12214 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12218 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12219 HAVE_JPEG=no
12221 rm -f conftest*
12224 if test "${HAVE_JPEG}" = "yes"; then
12225 LIBJPEG=-ljpeg
12230 ### Use -lpng if available, unless `--with-png=no'.
12231 HAVE_PNG=no
12232 LIBPNG=
12233 if test "${HAVE_X11}" = "yes"; then
12234 if test "${with_png}" != "no"; then
12235 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12236 # in /usr/include/libpng.
12237 for ac_header in png.h libpng/png.h
12238 do :
12239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12240 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12241 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12242 cat >>confdefs.h <<_ACEOF
12243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12244 _ACEOF
12248 done
12250 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12252 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12253 if ${ac_cv_lib_png_png_get_channels+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 ac_check_lib_save_LIBS=$LIBS
12257 LIBS="-lpng -lz -lm $LIBS"
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char png_get_channels ();
12269 main ()
12271 return png_get_channels ();
12273 return 0;
12275 _ACEOF
12276 if ac_fn_c_try_link "$LINENO"; then :
12277 ac_cv_lib_png_png_get_channels=yes
12278 else
12279 ac_cv_lib_png_png_get_channels=no
12281 rm -f core conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12286 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12287 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
12288 HAVE_PNG=yes
12294 if test "${HAVE_PNG}" = "yes"; then
12296 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12298 LIBPNG="-lpng -lz -lm"
12303 ### Use -ltiff if available, unless `--with-tiff=no'.
12304 HAVE_TIFF=no
12305 LIBTIFF=
12306 if test "${HAVE_X11}" = "yes"; then
12307 if test "${with_tiff}" != "no"; then
12308 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12309 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12310 tifflibs="-lz -lm"
12311 # At least one tiff package requires the jpeg library.
12312 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12314 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12315 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-ltiff $tifflibs $LIBS"
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 /* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 char TIFFGetVersion ();
12331 main ()
12333 return TIFFGetVersion ();
12335 return 0;
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_lib_tiff_TIFFGetVersion=yes
12340 else
12341 ac_cv_lib_tiff_TIFFGetVersion=no
12343 rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345 LIBS=$ac_check_lib_save_LIBS
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12348 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12349 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
12350 HAVE_TIFF=yes
12358 if test "${HAVE_TIFF}" = "yes"; then
12360 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12362 LIBTIFF=-ltiff
12367 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12368 HAVE_GIF=no
12369 LIBGIF=
12370 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12371 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12372 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
12373 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12374 # Earlier versions can crash Emacs.
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12376 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12377 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 ac_check_lib_save_LIBS=$LIBS
12381 LIBS="-lgif $LIBS"
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12385 /* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 char EGifPutExtensionLast ();
12393 main ()
12395 return EGifPutExtensionLast ();
12397 return 0;
12399 _ACEOF
12400 if ac_fn_c_try_link "$LINENO"; then :
12401 ac_cv_lib_gif_EGifPutExtensionLast=yes
12402 else
12403 ac_cv_lib_gif_EGifPutExtensionLast=no
12405 rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12407 LIBS=$ac_check_lib_save_LIBS
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12410 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12411 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
12412 HAVE_GIF=yes
12413 else
12414 HAVE_GIF=maybe
12421 if test "$HAVE_GIF" = yes; then
12422 LIBGIF=-lgif
12423 elif test "$HAVE_GIF" = maybe; then
12424 # If gif_lib.h but no libgif, try libungif.
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12426 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12427 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 ac_check_lib_save_LIBS=$LIBS
12431 LIBS="-lungif $LIBS"
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438 #ifdef __cplusplus
12439 extern "C"
12440 #endif
12441 char EGifPutExtensionLast ();
12443 main ()
12445 return EGifPutExtensionLast ();
12447 return 0;
12449 _ACEOF
12450 if ac_fn_c_try_link "$LINENO"; then :
12451 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12452 else
12453 ac_cv_lib_ungif_EGifPutExtensionLast=no
12455 rm -f core conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12460 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12461 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
12462 HAVE_GIF=yes
12463 else
12464 HAVE_GIF=no
12467 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12470 if test "${HAVE_GIF}" = "yes"; then
12472 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12478 if test "${HAVE_X11}" = "yes"; then
12479 MISSING=""
12480 WITH_NO=""
12481 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12482 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12483 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12484 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12485 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12486 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12487 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12488 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12489 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12490 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12492 if test "X${MISSING}" != X; then
12493 as_fn_error $? "The following required libraries were not found:
12494 $MISSING
12495 Maybe some development libraries/packages are missing?
12496 If you don't want to link with them give
12497 $WITH_NO
12498 as options to configure" "$LINENO" 5
12502 ### Use -lgpm if available, unless `--with-gpm=no'.
12503 HAVE_GPM=no
12504 LIBGPM=
12505 MOUSE_SUPPORT=
12506 if test "${with_gpm}" != "no"; then
12507 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12508 if test "x$ac_cv_header_gpm_h" = xyes; then :
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12510 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12511 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 ac_check_lib_save_LIBS=$LIBS
12515 LIBS="-lgpm $LIBS"
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 char Gpm_Open ();
12527 main ()
12529 return Gpm_Open ();
12531 return 0;
12533 _ACEOF
12534 if ac_fn_c_try_link "$LINENO"; then :
12535 ac_cv_lib_gpm_Gpm_Open=yes
12536 else
12537 ac_cv_lib_gpm_Gpm_Open=no
12539 rm -f core conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12541 LIBS=$ac_check_lib_save_LIBS
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12544 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12545 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
12546 HAVE_GPM=yes
12553 if test "${HAVE_GPM}" = "yes"; then
12555 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12557 LIBGPM=-lgpm
12558 ## May be reset below.
12559 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12564 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12565 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
12567 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12573 C_SWITCH_X_SYSTEM=
12574 ### Use NeXTstep API to implement GUI.
12575 if test "${HAVE_NS}" = "yes"; then
12577 $as_echo "#define HAVE_NS 1" >>confdefs.h
12579 if test "${NS_IMPL_COCOA}" = "yes"; then
12581 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12583 GNU_OBJC_CFLAGS=
12585 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12587 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12589 # See also .m.o rule in Makefile.in */
12590 # FIXME: are all these flags really needed? Document here why. */
12591 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12592 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12594 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12596 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12599 # We also have mouse menus.
12600 HAVE_MENUS=yes
12601 OTHER_FILES=ns-app
12605 ### Use session management (-lSM -lICE) if available
12606 HAVE_X_SM=no
12607 LIBXSM=
12608 if test "${HAVE_X11}" = "yes"; then
12609 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12610 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12612 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12613 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 ac_check_lib_save_LIBS=$LIBS
12617 LIBS="-lSM -lICE $LIBS"
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12621 /* Override any GCC internal prototype to avoid an error.
12622 Use char because int might match the return type of a GCC
12623 builtin and then its argument prototype would still apply. */
12624 #ifdef __cplusplus
12625 extern "C"
12626 #endif
12627 char SmcOpenConnection ();
12629 main ()
12631 return SmcOpenConnection ();
12633 return 0;
12635 _ACEOF
12636 if ac_fn_c_try_link "$LINENO"; then :
12637 ac_cv_lib_SM_SmcOpenConnection=yes
12638 else
12639 ac_cv_lib_SM_SmcOpenConnection=no
12641 rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12643 LIBS=$ac_check_lib_save_LIBS
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12646 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12647 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12648 HAVE_X_SM=yes
12655 if test "${HAVE_X_SM}" = "yes"; then
12657 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12659 LIBXSM="-lSM -lICE"
12660 case "$LIBS" in
12661 *-lSM*) ;;
12662 *) LIBS="$LIBXSM $LIBS" ;;
12663 esac
12668 ### Use libxml (-lxml2) if available
12669 if test "${with_xml2}" != "no"; then
12670 ### I'm not sure what the version number should be, so I just guessed.
12672 succeeded=no
12674 # Extract the first word of "pkg-config", so it can be a program name with args.
12675 set dummy pkg-config; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 case $PKG_CONFIG in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12697 done
12698 done
12699 IFS=$as_save_IFS
12701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12703 esac
12705 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12706 if test -n "$PKG_CONFIG"; then
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12708 $as_echo "$PKG_CONFIG" >&6; }
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12716 if test "$PKG_CONFIG" = "no" ; then
12717 HAVE_LIBXML2=no
12718 else
12719 PKG_CONFIG_MIN_VERSION=0.9.0
12720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12722 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12724 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12726 $as_echo "yes" >&6; }
12727 succeeded=yes
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12730 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12731 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12733 $as_echo "$LIBXML2_CFLAGS" >&6; }
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12736 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12737 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12739 $as_echo "$LIBXML2_LIBS" >&6; }
12740 else
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12743 LIBXML2_CFLAGS=""
12744 LIBXML2_LIBS=""
12745 ## If we have a custom action on failure, don't print errors, but
12746 ## do set a variable so people can do so.
12747 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12753 else
12754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12759 if test $succeeded = yes; then
12760 HAVE_LIBXML2=yes
12761 else
12762 HAVE_LIBXML2=no
12765 if test "${HAVE_LIBXML2}" = "yes"; then
12766 LIBS="$LIBXML2_LIBS $LIBS"
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12768 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12769 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12772 ac_check_lib_save_LIBS=$LIBS
12773 LIBS="-lxml2 $LIBS"
12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12777 /* Override any GCC internal prototype to avoid an error.
12778 Use char because int might match the return type of a GCC
12779 builtin and then its argument prototype would still apply. */
12780 #ifdef __cplusplus
12781 extern "C"
12782 #endif
12783 char htmlReadMemory ();
12785 main ()
12787 return htmlReadMemory ();
12789 return 0;
12791 _ACEOF
12792 if ac_fn_c_try_link "$LINENO"; then :
12793 ac_cv_lib_xml2_htmlReadMemory=yes
12794 else
12795 ac_cv_lib_xml2_htmlReadMemory=no
12797 rm -f core conftest.err conftest.$ac_objext \
12798 conftest$ac_exeext conftest.$ac_ext
12799 LIBS=$ac_check_lib_save_LIBS
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12802 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12803 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12804 HAVE_LIBXML2=yes
12805 else
12806 HAVE_LIBXML2=no
12809 if test "${HAVE_LIBXML2}" = "yes"; then
12811 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12813 else
12814 LIBXML2_LIBS=""
12815 LIBXML2_CFLAGS=""
12822 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12824 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12825 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12826 $as_echo_n "(cached) " >&6
12827 else
12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829 /* end confdefs.h. */
12830 #include <netdb.h>
12832 main ()
12834 return h_errno;
12836 return 0;
12838 _ACEOF
12839 if ac_fn_c_try_link "$LINENO"; then :
12840 emacs_cv_netdb_declares_h_errno=yes
12841 else
12842 emacs_cv_netdb_declares_h_errno=no
12844 rm -f core conftest.err conftest.$ac_objext \
12845 conftest$ac_exeext conftest.$ac_ext
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12848 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12849 if test $emacs_cv_netdb_declares_h_errno = yes; then
12851 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12855 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12856 if test "x$ac_cv_type_size_t" = xyes; then :
12858 else
12860 cat >>confdefs.h <<_ACEOF
12861 #define size_t unsigned int
12862 _ACEOF
12866 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12867 # for constant arguments. Useless!
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12869 $as_echo_n "checking for working alloca.h... " >&6; }
12870 if ${ac_cv_working_alloca_h+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 #include <alloca.h>
12877 main ()
12879 char *p = (char *) alloca (2 * sizeof (int));
12880 if (p) return 0;
12882 return 0;
12884 _ACEOF
12885 if ac_fn_c_try_link "$LINENO"; then :
12886 ac_cv_working_alloca_h=yes
12887 else
12888 ac_cv_working_alloca_h=no
12890 rm -f core conftest.err conftest.$ac_objext \
12891 conftest$ac_exeext conftest.$ac_ext
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12894 $as_echo "$ac_cv_working_alloca_h" >&6; }
12895 if test $ac_cv_working_alloca_h = yes; then
12897 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12902 $as_echo_n "checking for alloca... " >&6; }
12903 if ${ac_cv_func_alloca_works+:} false; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12908 #ifdef __GNUC__
12909 # define alloca __builtin_alloca
12910 #else
12911 # ifdef _MSC_VER
12912 # include <malloc.h>
12913 # define alloca _alloca
12914 # else
12915 # ifdef HAVE_ALLOCA_H
12916 # include <alloca.h>
12917 # else
12918 # ifdef _AIX
12919 #pragma alloca
12920 # else
12921 # ifndef alloca /* predefined by HP cc +Olibcalls */
12922 void *alloca (size_t);
12923 # endif
12924 # endif
12925 # endif
12926 # endif
12927 #endif
12930 main ()
12932 char *p = (char *) alloca (1);
12933 if (p) return 0;
12935 return 0;
12937 _ACEOF
12938 if ac_fn_c_try_link "$LINENO"; then :
12939 ac_cv_func_alloca_works=yes
12940 else
12941 ac_cv_func_alloca_works=no
12943 rm -f core conftest.err conftest.$ac_objext \
12944 conftest$ac_exeext conftest.$ac_ext
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12947 $as_echo "$ac_cv_func_alloca_works" >&6; }
12949 if test $ac_cv_func_alloca_works = yes; then
12951 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12953 else
12954 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12955 # that cause trouble. Some versions do not even contain alloca or
12956 # contain a buggy version. If you still want to use their alloca,
12957 # use ar to extract alloca.o from them instead of compiling alloca.c.
12959 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12961 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12965 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12966 if ${ac_cv_os_cray+:} false; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12971 #if defined CRAY && ! defined CRAY2
12972 webecray
12973 #else
12974 wenotbecray
12975 #endif
12977 _ACEOF
12978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12979 $EGREP "webecray" >/dev/null 2>&1; then :
12980 ac_cv_os_cray=yes
12981 else
12982 ac_cv_os_cray=no
12984 rm -f conftest*
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12988 $as_echo "$ac_cv_os_cray" >&6; }
12989 if test $ac_cv_os_cray = yes; then
12990 for ac_func in _getb67 GETB67 getb67; do
12991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12992 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12993 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12995 cat >>confdefs.h <<_ACEOF
12996 #define CRAY_STACKSEG_END $ac_func
12997 _ACEOF
12999 break
13002 done
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13006 $as_echo_n "checking stack direction for C alloca... " >&6; }
13007 if ${ac_cv_c_stack_direction+:} false; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 if test "$cross_compiling" = yes; then :
13011 ac_cv_c_stack_direction=0
13012 else
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13015 $ac_includes_default
13017 find_stack_direction ()
13019 static char *addr = 0;
13020 auto char dummy;
13021 if (addr == 0)
13023 addr = &dummy;
13024 return find_stack_direction ();
13026 else
13027 return (&dummy > addr) ? 1 : -1;
13031 main ()
13033 return find_stack_direction () < 0;
13035 _ACEOF
13036 if ac_fn_c_try_run "$LINENO"; then :
13037 ac_cv_c_stack_direction=1
13038 else
13039 ac_cv_c_stack_direction=-1
13041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13042 conftest.$ac_objext conftest.beam conftest.$ac_ext
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13047 $as_echo "$ac_cv_c_stack_direction" >&6; }
13048 cat >>confdefs.h <<_ACEOF
13049 #define STACK_DIRECTION $ac_cv_c_stack_direction
13050 _ACEOF
13056 if test x"$ac_cv_func_alloca_works" != xyes; then
13057 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
13060 # fmod, logb, and frexp are found in -lm on most systems.
13061 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13063 $as_echo_n "checking for sqrt in -lm... " >&6; }
13064 if ${ac_cv_lib_m_sqrt+:} false; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 ac_check_lib_save_LIBS=$LIBS
13068 LIBS="-lm $LIBS"
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13072 /* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply. */
13075 #ifdef __cplusplus
13076 extern "C"
13077 #endif
13078 char sqrt ();
13080 main ()
13082 return sqrt ();
13084 return 0;
13086 _ACEOF
13087 if ac_fn_c_try_link "$LINENO"; then :
13088 ac_cv_lib_m_sqrt=yes
13089 else
13090 ac_cv_lib_m_sqrt=no
13092 rm -f core conftest.err conftest.$ac_objext \
13093 conftest$ac_exeext conftest.$ac_ext
13094 LIBS=$ac_check_lib_save_LIBS
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13097 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13098 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
13099 cat >>confdefs.h <<_ACEOF
13100 #define HAVE_LIBM 1
13101 _ACEOF
13103 LIBS="-lm $LIBS"
13108 # Check for mail-locking functions in a "mail" library. Probably this should
13109 # have the same check as for liblockfile below.
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13111 $as_echo_n "checking for maillock in -lmail... " >&6; }
13112 if ${ac_cv_lib_mail_maillock+:} false; then :
13113 $as_echo_n "(cached) " >&6
13114 else
13115 ac_check_lib_save_LIBS=$LIBS
13116 LIBS="-lmail $LIBS"
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13120 /* Override any GCC internal prototype to avoid an error.
13121 Use char because int might match the return type of a GCC
13122 builtin and then its argument prototype would still apply. */
13123 #ifdef __cplusplus
13124 extern "C"
13125 #endif
13126 char maillock ();
13128 main ()
13130 return maillock ();
13132 return 0;
13134 _ACEOF
13135 if ac_fn_c_try_link "$LINENO"; then :
13136 ac_cv_lib_mail_maillock=yes
13137 else
13138 ac_cv_lib_mail_maillock=no
13140 rm -f core conftest.err conftest.$ac_objext \
13141 conftest$ac_exeext conftest.$ac_ext
13142 LIBS=$ac_check_lib_save_LIBS
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13145 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13146 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
13147 have_mail=yes
13148 else
13149 have_mail=no
13152 if test $have_mail = yes; then
13153 LIBS_MAIL=-lmail
13154 LIBS="$LIBS_MAIL $LIBS"
13156 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13158 else
13159 LIBS_MAIL=
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13162 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13163 if ${ac_cv_lib_lockfile_maillock+:} false; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13166 ac_check_lib_save_LIBS=$LIBS
13167 LIBS="-llockfile $LIBS"
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 char maillock ();
13179 main ()
13181 return maillock ();
13183 return 0;
13185 _ACEOF
13186 if ac_fn_c_try_link "$LINENO"; then :
13187 ac_cv_lib_lockfile_maillock=yes
13188 else
13189 ac_cv_lib_lockfile_maillock=no
13191 rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13193 LIBS=$ac_check_lib_save_LIBS
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13196 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13197 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
13198 have_lockfile=yes
13199 else
13200 have_lockfile=no
13203 if test $have_lockfile = yes; then
13204 LIBS_MAIL=-llockfile
13205 LIBS="$LIBS_MAIL $LIBS"
13207 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13209 else
13210 # If we have the shared liblockfile, assume we must use it for mail
13211 # locking (e.g. Debian). If we couldn't link against liblockfile
13212 # (no liblockfile.a installed), ensure that we don't need to.
13213 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13214 set dummy liblockfile.so; ac_word=$2
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if ${ac_cv_prog_liblockfile+:} false; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220 if test -n "$liblockfile"; then
13221 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13222 else
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13225 for as_dir in $as_dummy
13227 IFS=$as_save_IFS
13228 test -z "$as_dir" && as_dir=.
13229 for ac_exec_ext in '' $ac_executable_extensions; do
13230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13231 ac_cv_prog_liblockfile="yes"
13232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13233 break 2
13235 done
13236 done
13237 IFS=$as_save_IFS
13239 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13242 liblockfile=$ac_cv_prog_liblockfile
13243 if test -n "$liblockfile"; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13245 $as_echo "$liblockfile" >&6; }
13246 else
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13252 if test $ac_cv_prog_liblockfile = yes; then
13253 as_fn_error $? "Shared liblockfile found but can't link against it.
13254 This probably means that movemail could lose mail.
13255 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13258 for ac_func in touchlock
13259 do :
13260 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13261 if test "x$ac_cv_func_touchlock" = xyes; then :
13262 cat >>confdefs.h <<_ACEOF
13263 #define HAVE_TOUCHLOCK 1
13264 _ACEOF
13267 done
13269 for ac_header in maillock.h
13270 do :
13271 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13272 if test "x$ac_cv_header_maillock_h" = xyes; then :
13273 cat >>confdefs.h <<_ACEOF
13274 #define HAVE_MAILLOCK_H 1
13275 _ACEOF
13279 done
13283 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13284 ## interlock access to the mail spool. The alternative is a lock file named
13285 ## /usr/spool/mail/$USER.lock.
13286 mail_lock=no
13287 case "$opsys" in
13288 aix4-2) mail_lock="lockf" ;;
13290 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13292 ## On GNU/Linux systems, both methods are used by various mail programs.
13293 ## I assume most people are using newer mailers that have heard of flock.
13294 ## Change this if you need to.
13295 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13296 ## configure gets the right answers, and that means *NOT* using flock.
13297 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13298 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13299 ## Debian maintainer hasn't provided a clean fix for Emacs.
13300 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13301 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13302 ## correct logic. -- fx
13303 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13304 ## liblockfile is a Free Software replacement for libmail, used on
13305 ## Debian systems and elsewhere. -rfr.
13306 gnu-*)
13307 mail_lock="flock"
13308 if test $have_mail = yes || test $have_lockfile = yes; then
13309 test $ac_cv_header_maillock_h = yes && mail_lock=no
13312 esac
13314 BLESSMAIL_TARGET=
13315 case "$mail_lock" in
13316 flock)
13317 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13320 lockf)
13321 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13324 *) BLESSMAIL_TARGET="need-blessmail" ;;
13325 esac
13329 for ac_func in gethostname getdomainname dup2 \
13330 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13331 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13332 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13333 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13334 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13335 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13336 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13337 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13338 cfmakeraw cfsetspeed isnan copysign __executable_start
13339 do :
13340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13341 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13342 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13343 cat >>confdefs.h <<_ACEOF
13344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13345 _ACEOF
13348 done
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13352 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13353 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13360 main ()
13362 __builtin_unwind_init ();
13364 return 0;
13366 _ACEOF
13367 if ac_fn_c_try_link "$LINENO"; then :
13368 emacs_cv_func___builtin_unwind_init=yes
13369 else
13370 emacs_cv_func___builtin_unwind_init=no
13372 rm -f core conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext conftest.$ac_ext
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13376 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13377 if test $emacs_cv_func___builtin_unwind_init = yes; then
13379 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13383 for ac_header in sys/un.h
13384 do :
13385 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13386 if test "x$ac_cv_header_sys_un_h" = xyes; then :
13387 cat >>confdefs.h <<_ACEOF
13388 #define HAVE_SYS_UN_H 1
13389 _ACEOF
13393 done
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13397 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13398 if ${ac_cv_sys_largefile_source+:} false; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 while :; do
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404 #include <sys/types.h> /* for off_t */
13405 #include <stdio.h>
13407 main ()
13409 int (*fp) (FILE *, off_t, int) = fseeko;
13410 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13412 return 0;
13414 _ACEOF
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 ac_cv_sys_largefile_source=no; break
13418 rm -f core conftest.err conftest.$ac_objext \
13419 conftest$ac_exeext conftest.$ac_ext
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13422 #define _LARGEFILE_SOURCE 1
13423 #include <sys/types.h> /* for off_t */
13424 #include <stdio.h>
13426 main ()
13428 int (*fp) (FILE *, off_t, int) = fseeko;
13429 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13431 return 0;
13433 _ACEOF
13434 if ac_fn_c_try_link "$LINENO"; then :
13435 ac_cv_sys_largefile_source=1; break
13437 rm -f core conftest.err conftest.$ac_objext \
13438 conftest$ac_exeext conftest.$ac_ext
13439 ac_cv_sys_largefile_source=unknown
13440 break
13441 done
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13444 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13445 case $ac_cv_sys_largefile_source in #(
13446 no | unknown) ;;
13448 cat >>confdefs.h <<_ACEOF
13449 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13450 _ACEOF
13452 esac
13453 rm -rf conftest*
13455 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13456 # in glibc 2.1.3, but that breaks too many other things.
13457 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13458 if test $ac_cv_sys_largefile_source != unknown; then
13460 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13466 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13467 if ${ac_cv_func_getpgrp_void+:} false; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 # Use it with a single arg.
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13473 $ac_includes_default
13475 main ()
13477 getpgrp (0);
13479 return 0;
13481 _ACEOF
13482 if ac_fn_c_try_compile "$LINENO"; then :
13483 ac_cv_func_getpgrp_void=no
13484 else
13485 ac_cv_func_getpgrp_void=yes
13487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13491 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13492 if test $ac_cv_func_getpgrp_void = yes; then
13494 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13499 # Configure gnulib.
13510 LIBC_FATAL_STDERR_=1
13511 export LIBC_FATAL_STDERR_
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13515 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13516 if ${ac_cv_c_bigendian+:} false; then :
13517 $as_echo_n "(cached) " >&6
13518 else
13519 ac_cv_c_bigendian=unknown
13520 # See if we're dealing with a universal compiler.
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 #ifndef __APPLE_CC__
13524 not a universal capable compiler
13525 #endif
13526 typedef int dummy;
13528 _ACEOF
13529 if ac_fn_c_try_compile "$LINENO"; then :
13531 # Check for potential -arch flags. It is not universal unless
13532 # there are at least two -arch flags with different values.
13533 ac_arch=
13534 ac_prev=
13535 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13536 if test -n "$ac_prev"; then
13537 case $ac_word in
13538 i?86 | x86_64 | ppc | ppc64)
13539 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13540 ac_arch=$ac_word
13541 else
13542 ac_cv_c_bigendian=universal
13543 break
13546 esac
13547 ac_prev=
13548 elif test "x$ac_word" = "x-arch"; then
13549 ac_prev=arch
13551 done
13553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13554 if test $ac_cv_c_bigendian = unknown; then
13555 # See if sys/param.h defines the BYTE_ORDER macro.
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13558 #include <sys/types.h>
13559 #include <sys/param.h>
13562 main ()
13564 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13565 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13566 && LITTLE_ENDIAN)
13567 bogus endian macros
13568 #endif
13571 return 0;
13573 _ACEOF
13574 if ac_fn_c_try_compile "$LINENO"; then :
13575 # It does; now see whether it defined to BIG_ENDIAN or not.
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13578 #include <sys/types.h>
13579 #include <sys/param.h>
13582 main ()
13584 #if BYTE_ORDER != BIG_ENDIAN
13585 not big endian
13586 #endif
13589 return 0;
13591 _ACEOF
13592 if ac_fn_c_try_compile "$LINENO"; then :
13593 ac_cv_c_bigendian=yes
13594 else
13595 ac_cv_c_bigendian=no
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 if test $ac_cv_c_bigendian = unknown; then
13602 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13605 #include <limits.h>
13608 main ()
13610 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13611 bogus endian macros
13612 #endif
13615 return 0;
13617 _ACEOF
13618 if ac_fn_c_try_compile "$LINENO"; then :
13619 # It does; now see whether it defined to _BIG_ENDIAN or not.
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 #include <limits.h>
13625 main ()
13627 #ifndef _BIG_ENDIAN
13628 not big endian
13629 #endif
13632 return 0;
13634 _ACEOF
13635 if ac_fn_c_try_compile "$LINENO"; then :
13636 ac_cv_c_bigendian=yes
13637 else
13638 ac_cv_c_bigendian=no
13640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 if test $ac_cv_c_bigendian = unknown; then
13645 # Compile a test program.
13646 if test "$cross_compiling" = yes; then :
13647 # Try to guess by grepping values from an object file.
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13650 short int ascii_mm[] =
13651 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13652 short int ascii_ii[] =
13653 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13654 int use_ascii (int i) {
13655 return ascii_mm[i] + ascii_ii[i];
13657 short int ebcdic_ii[] =
13658 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13659 short int ebcdic_mm[] =
13660 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13661 int use_ebcdic (int i) {
13662 return ebcdic_mm[i] + ebcdic_ii[i];
13664 extern int foo;
13667 main ()
13669 return use_ascii (foo) == use_ebcdic (foo);
13671 return 0;
13673 _ACEOF
13674 if ac_fn_c_try_compile "$LINENO"; then :
13675 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13676 ac_cv_c_bigendian=yes
13678 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13679 if test "$ac_cv_c_bigendian" = unknown; then
13680 ac_cv_c_bigendian=no
13681 else
13682 # finding both strings is unlikely to happen, but who knows?
13683 ac_cv_c_bigendian=unknown
13687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13688 else
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691 $ac_includes_default
13693 main ()
13696 /* Are we little or big endian? From Harbison&Steele. */
13697 union
13699 long int l;
13700 char c[sizeof (long int)];
13701 } u;
13702 u.l = 1;
13703 return u.c[sizeof (long int) - 1] == 1;
13706 return 0;
13708 _ACEOF
13709 if ac_fn_c_try_run "$LINENO"; then :
13710 ac_cv_c_bigendian=no
13711 else
13712 ac_cv_c_bigendian=yes
13714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13715 conftest.$ac_objext conftest.beam conftest.$ac_ext
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13721 $as_echo "$ac_cv_c_bigendian" >&6; }
13722 case $ac_cv_c_bigendian in #(
13723 yes)
13724 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13725 ;; #(
13727 ;; #(
13728 universal)
13730 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13732 ;; #(
13734 as_fn_error $? "unknown endianness
13735 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13736 esac
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13740 $as_echo_n "checking for inline... " >&6; }
13741 if ${ac_cv_c_inline+:} false; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13744 ac_cv_c_inline=no
13745 for ac_kw in inline __inline__ __inline; do
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13748 #ifndef __cplusplus
13749 typedef int foo_t;
13750 static $ac_kw foo_t static_foo () {return 0; }
13751 $ac_kw foo_t foo () {return 0; }
13752 #endif
13754 _ACEOF
13755 if ac_fn_c_try_compile "$LINENO"; then :
13756 ac_cv_c_inline=$ac_kw
13758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759 test "$ac_cv_c_inline" != no && break
13760 done
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13764 $as_echo "$ac_cv_c_inline" >&6; }
13766 case $ac_cv_c_inline in
13767 inline | yes) ;;
13769 case $ac_cv_c_inline in
13770 no) ac_val=;;
13771 *) ac_val=$ac_cv_c_inline;;
13772 esac
13773 cat >>confdefs.h <<_ACEOF
13774 #ifndef __cplusplus
13775 #define inline $ac_val
13776 #endif
13777 _ACEOF
13779 esac
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13783 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13784 if ${gl_cv_func_c99_strtold+:} false; then :
13785 $as_echo_n "(cached) " >&6
13786 else
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13789 /* On HP-UX before 11.23, strtold returns a struct instead of
13790 long double. Reject implementations like that, by requiring
13791 compatibility with the C99 prototype. */
13792 #include <stdlib.h>
13793 static long double (*p) (char const *, char **) = strtold;
13794 static long double
13795 test (char const *nptr, char **endptr)
13797 long double r;
13798 r = strtold (nptr, endptr);
13799 return r;
13802 main ()
13804 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13806 return 0;
13808 _ACEOF
13809 if ac_fn_c_try_link "$LINENO"; then :
13810 gl_cv_func_c99_strtold=yes
13811 else
13812 gl_cv_func_c99_strtold=no
13814 rm -f core conftest.err conftest.$ac_objext \
13815 conftest$ac_exeext conftest.$ac_ext
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13818 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13819 if test $gl_cv_func_c99_strtold = yes; then
13821 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13826 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13827 if ${ac_cv_struct_st_dm_mode+:} false; then :
13828 $as_echo_n "(cached) " >&6
13829 else
13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13833 #include <sys/types.h>
13834 #include <sys/stat.h>
13836 main ()
13838 struct stat s; s.st_dm_mode;
13840 return 0;
13842 _ACEOF
13843 if ac_fn_c_try_compile "$LINENO"; then :
13844 ac_cv_struct_st_dm_mode=yes
13845 else
13846 ac_cv_struct_st_dm_mode=no
13848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13851 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13853 if test $ac_cv_struct_st_dm_mode = yes; then
13855 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13860 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13861 if test "x$ac_cv_have_decl_strmode" = xyes; then :
13862 ac_have_decl=1
13863 else
13864 ac_have_decl=0
13867 cat >>confdefs.h <<_ACEOF
13868 #define HAVE_DECL_STRMODE $ac_have_decl
13869 _ACEOF
13872 GNULIB__EXIT=0;
13873 GNULIB_ATOLL=0;
13874 GNULIB_CALLOC_POSIX=0;
13875 GNULIB_CANONICALIZE_FILE_NAME=0;
13876 GNULIB_GETLOADAVG=0;
13877 GNULIB_GETSUBOPT=0;
13878 GNULIB_GRANTPT=0;
13879 GNULIB_MALLOC_POSIX=0;
13880 GNULIB_MBTOWC=0;
13881 GNULIB_MKDTEMP=0;
13882 GNULIB_MKOSTEMP=0;
13883 GNULIB_MKOSTEMPS=0;
13884 GNULIB_MKSTEMP=0;
13885 GNULIB_MKSTEMPS=0;
13886 GNULIB_PTSNAME=0;
13887 GNULIB_PUTENV=0;
13888 GNULIB_RANDOM_R=0;
13889 GNULIB_REALLOC_POSIX=0;
13890 GNULIB_REALPATH=0;
13891 GNULIB_RPMATCH=0;
13892 GNULIB_SETENV=0;
13893 GNULIB_STRTOD=0;
13894 GNULIB_STRTOLL=0;
13895 GNULIB_STRTOULL=0;
13896 GNULIB_SYSTEM_POSIX=0;
13897 GNULIB_UNLOCKPT=0;
13898 GNULIB_UNSETENV=0;
13899 GNULIB_WCTOMB=0;
13900 HAVE__EXIT=1;
13901 HAVE_ATOLL=1;
13902 HAVE_CANONICALIZE_FILE_NAME=1;
13903 HAVE_DECL_GETLOADAVG=1;
13904 HAVE_GETSUBOPT=1;
13905 HAVE_GRANTPT=1;
13906 HAVE_MKDTEMP=1;
13907 HAVE_MKOSTEMP=1;
13908 HAVE_MKOSTEMPS=1;
13909 HAVE_MKSTEMP=1;
13910 HAVE_MKSTEMPS=1;
13911 HAVE_PTSNAME=1;
13912 HAVE_RANDOM_H=1;
13913 HAVE_RANDOM_R=1;
13914 HAVE_REALPATH=1;
13915 HAVE_RPMATCH=1;
13916 HAVE_SETENV=1;
13917 HAVE_DECL_SETENV=1;
13918 HAVE_STRTOD=1;
13919 HAVE_STRTOLL=1;
13920 HAVE_STRTOULL=1;
13921 HAVE_STRUCT_RANDOM_DATA=1;
13922 HAVE_SYS_LOADAVG_H=0;
13923 HAVE_UNLOCKPT=1;
13924 HAVE_DECL_UNSETENV=1;
13925 REPLACE_CALLOC=0;
13926 REPLACE_CANONICALIZE_FILE_NAME=0;
13927 REPLACE_MALLOC=0;
13928 REPLACE_MBTOWC=0;
13929 REPLACE_MKSTEMP=0;
13930 REPLACE_PUTENV=0;
13931 REPLACE_REALLOC=0;
13932 REPLACE_REALPATH=0;
13933 REPLACE_SETENV=0;
13934 REPLACE_STRTOD=0;
13935 REPLACE_UNSETENV=0;
13936 REPLACE_WCTOMB=0;
13939 GNULIB_CHOWN=0;
13940 GNULIB_CLOSE=0;
13941 GNULIB_DUP2=0;
13942 GNULIB_DUP3=0;
13943 GNULIB_ENVIRON=0;
13944 GNULIB_EUIDACCESS=0;
13945 GNULIB_FACCESSAT=0;
13946 GNULIB_FCHDIR=0;
13947 GNULIB_FCHOWNAT=0;
13948 GNULIB_FSYNC=0;
13949 GNULIB_FTRUNCATE=0;
13950 GNULIB_GETCWD=0;
13951 GNULIB_GETDOMAINNAME=0;
13952 GNULIB_GETDTABLESIZE=0;
13953 GNULIB_GETGROUPS=0;
13954 GNULIB_GETHOSTNAME=0;
13955 GNULIB_GETLOGIN=0;
13956 GNULIB_GETLOGIN_R=0;
13957 GNULIB_GETPAGESIZE=0;
13958 GNULIB_GETUSERSHELL=0;
13959 GNULIB_LCHOWN=0;
13960 GNULIB_LINK=0;
13961 GNULIB_LINKAT=0;
13962 GNULIB_LSEEK=0;
13963 GNULIB_PIPE=0;
13964 GNULIB_PIPE2=0;
13965 GNULIB_PREAD=0;
13966 GNULIB_PWRITE=0;
13967 GNULIB_READLINK=0;
13968 GNULIB_READLINKAT=0;
13969 GNULIB_RMDIR=0;
13970 GNULIB_SLEEP=0;
13971 GNULIB_SYMLINK=0;
13972 GNULIB_SYMLINKAT=0;
13973 GNULIB_TTYNAME_R=0;
13974 GNULIB_UNISTD_H_GETOPT=0;
13975 GNULIB_UNISTD_H_SIGPIPE=0;
13976 GNULIB_UNLINK=0;
13977 GNULIB_UNLINKAT=0;
13978 GNULIB_USLEEP=0;
13979 GNULIB_WRITE=0;
13980 HAVE_CHOWN=1;
13981 HAVE_DUP2=1;
13982 HAVE_DUP3=1;
13983 HAVE_EUIDACCESS=1;
13984 HAVE_FACCESSAT=1;
13985 HAVE_FCHDIR=1;
13986 HAVE_FCHOWNAT=1;
13987 HAVE_FSYNC=1;
13988 HAVE_FTRUNCATE=1;
13989 HAVE_GETDTABLESIZE=1;
13990 HAVE_GETGROUPS=1;
13991 HAVE_GETHOSTNAME=1;
13992 HAVE_GETLOGIN=1;
13993 HAVE_GETPAGESIZE=1;
13994 HAVE_LCHOWN=1;
13995 HAVE_LINK=1;
13996 HAVE_LINKAT=1;
13997 HAVE_PIPE=1;
13998 HAVE_PIPE2=1;
13999 HAVE_PREAD=1;
14000 HAVE_PWRITE=1;
14001 HAVE_READLINK=1;
14002 HAVE_READLINKAT=1;
14003 HAVE_SLEEP=1;
14004 HAVE_SYMLINK=1;
14005 HAVE_SYMLINKAT=1;
14006 HAVE_UNLINKAT=1;
14007 HAVE_USLEEP=1;
14008 HAVE_DECL_ENVIRON=1;
14009 HAVE_DECL_FCHDIR=1;
14010 HAVE_DECL_GETDOMAINNAME=1;
14011 HAVE_DECL_GETLOGIN_R=1;
14012 HAVE_DECL_GETPAGESIZE=1;
14013 HAVE_DECL_GETUSERSHELL=1;
14014 HAVE_DECL_TTYNAME_R=1;
14015 HAVE_OS_H=0;
14016 HAVE_SYS_PARAM_H=0;
14017 REPLACE_CHOWN=0;
14018 REPLACE_CLOSE=0;
14019 REPLACE_DUP=0;
14020 REPLACE_DUP2=0;
14021 REPLACE_FCHOWNAT=0;
14022 REPLACE_GETCWD=0;
14023 REPLACE_GETDOMAINNAME=0;
14024 REPLACE_GETLOGIN_R=0;
14025 REPLACE_GETGROUPS=0;
14026 REPLACE_GETPAGESIZE=0;
14027 REPLACE_LCHOWN=0;
14028 REPLACE_LINK=0;
14029 REPLACE_LINKAT=0;
14030 REPLACE_LSEEK=0;
14031 REPLACE_PREAD=0;
14032 REPLACE_PWRITE=0;
14033 REPLACE_READLINK=0;
14034 REPLACE_RMDIR=0;
14035 REPLACE_SLEEP=0;
14036 REPLACE_SYMLINK=0;
14037 REPLACE_TTYNAME_R=0;
14038 REPLACE_UNLINK=0;
14039 REPLACE_UNLINKAT=0;
14040 REPLACE_USLEEP=0;
14041 REPLACE_WRITE=0;
14042 UNISTD_H_HAVE_WINSOCK2_H=0;
14043 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14049 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14050 if ${gl_cv_have_include_next+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 rm -rf conftestd1a conftestd1b conftestd2
14054 mkdir conftestd1a conftestd1b conftestd2
14055 cat <<EOF > conftestd1a/conftest.h
14056 #define DEFINED_IN_CONFTESTD1
14057 #include_next <conftest.h>
14058 #ifdef DEFINED_IN_CONFTESTD2
14059 int foo;
14060 #else
14061 #error "include_next doesn't work"
14062 #endif
14064 cat <<EOF > conftestd1b/conftest.h
14065 #define DEFINED_IN_CONFTESTD1
14066 #include <stdio.h>
14067 #include_next <conftest.h>
14068 #ifdef DEFINED_IN_CONFTESTD2
14069 int foo;
14070 #else
14071 #error "include_next doesn't work"
14072 #endif
14074 cat <<EOF > conftestd2/conftest.h
14075 #ifndef DEFINED_IN_CONFTESTD1
14076 #error "include_next test doesn't work"
14077 #endif
14078 #define DEFINED_IN_CONFTESTD2
14080 gl_save_CPPFLAGS="$CPPFLAGS"
14081 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084 #include <conftest.h>
14085 _ACEOF
14086 if ac_fn_c_try_compile "$LINENO"; then :
14087 gl_cv_have_include_next=yes
14088 else
14089 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092 #include <conftest.h>
14093 _ACEOF
14094 if ac_fn_c_try_compile "$LINENO"; then :
14095 gl_cv_have_include_next=buggy
14096 else
14097 gl_cv_have_include_next=no
14099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14103 CPPFLAGS="$gl_save_CPPFLAGS"
14104 rm -rf conftestd1a conftestd1b conftestd2
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14108 $as_echo "$gl_cv_have_include_next" >&6; }
14109 PRAGMA_SYSTEM_HEADER=
14110 if test $gl_cv_have_include_next = yes; then
14111 INCLUDE_NEXT=include_next
14112 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14113 if test -n "$GCC"; then
14114 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14116 else
14117 if test $gl_cv_have_include_next = buggy; then
14118 INCLUDE_NEXT=include
14119 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14120 else
14121 INCLUDE_NEXT=include
14122 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14129 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14130 if ${gl_cv_pragma_columns+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132 else
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14136 #ifdef __TANDEM
14137 choke me
14138 #endif
14140 _ACEOF
14141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14142 $EGREP "choke me" >/dev/null 2>&1; then :
14143 gl_cv_pragma_columns=yes
14144 else
14145 gl_cv_pragma_columns=no
14147 rm -f conftest*
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14152 $as_echo "$gl_cv_pragma_columns" >&6; }
14153 if test $gl_cv_pragma_columns = yes; then
14154 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14155 else
14156 PRAGMA_COLUMNS=
14175 if test $gl_cv_have_include_next = yes; then
14176 gl_cv_next_getopt_h='<'getopt.h'>'
14177 else
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14179 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14180 if ${gl_cv_next_getopt_h+:} false; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14184 if test $ac_cv_header_getopt_h = yes; then
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14189 #include <getopt.h>
14191 _ACEOF
14192 case "$host_os" in
14193 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14194 *) gl_absname_cpp="$ac_cpp" ;;
14195 esac
14196 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14197 sed -n '\#/getopt.h#{
14198 s#.*"\(.*/getopt.h\)".*#\1#
14199 s#^/[^/]#//&#
14202 }'`'"'
14203 else
14204 gl_cv_next_getopt_h='<'getopt.h'>'
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14210 $as_echo "$gl_cv_next_getopt_h" >&6; }
14212 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14214 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14215 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14216 gl_next_as_first_directive='<'getopt.h'>'
14217 else
14218 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14219 gl_next_as_first_directive=$gl_cv_next_getopt_h
14221 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14226 if test $ac_cv_header_getopt_h = yes; then
14227 HAVE_GETOPT_H=1
14228 else
14229 HAVE_GETOPT_H=0
14233 gl_replace_getopt=
14235 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14236 for ac_header in getopt.h
14237 do :
14238 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14239 if test "x$ac_cv_header_getopt_h" = xyes; then :
14240 cat >>confdefs.h <<_ACEOF
14241 #define HAVE_GETOPT_H 1
14242 _ACEOF
14244 else
14245 gl_replace_getopt=yes
14248 done
14252 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14253 for ac_func in getopt_long_only
14254 do :
14255 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14256 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
14257 cat >>confdefs.h <<_ACEOF
14258 #define HAVE_GETOPT_LONG_ONLY 1
14259 _ACEOF
14261 else
14262 gl_replace_getopt=yes
14264 done
14268 if test -z "$gl_replace_getopt"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14270 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14271 if ${gl_cv_func_getopt_posix+:} false; then :
14272 $as_echo_n "(cached) " >&6
14273 else
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 #include <unistd.h>
14279 main ()
14281 int *p = &optreset; return optreset;
14283 return 0;
14285 _ACEOF
14286 if ac_fn_c_try_compile "$LINENO"; then :
14287 gl_optind_min=1
14288 else
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291 #include <getopt.h>
14293 main ()
14295 return !getopt_clip;
14297 return 0;
14299 _ACEOF
14300 if ac_fn_c_try_compile "$LINENO"; then :
14301 gl_optind_min=1
14302 else
14303 gl_optind_min=0
14305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14309 gl_save_CPPFLAGS=$CPPFLAGS
14310 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14311 if test "$cross_compiling" = yes; then :
14312 case "$host_os" in
14313 mingw*) gl_cv_func_getopt_posix="guessing no";;
14314 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14315 *) gl_cv_func_getopt_posix="guessing yes";;
14316 esac
14318 else
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14322 #include <unistd.h>
14323 #include <stdlib.h>
14324 #include <string.h>
14327 main ()
14330 int argc = 0;
14331 char *argv[10];
14332 int c;
14334 argv[argc++] = "program";
14335 argv[argc++] = "-a";
14336 argv[argc++] = "foo";
14337 argv[argc++] = "bar";
14338 argv[argc] = NULL;
14339 optind = OPTIND_MIN;
14340 opterr = 0;
14342 c = getopt (argc, argv, "ab");
14343 if (!(c == 'a'))
14344 return 1;
14345 c = getopt (argc, argv, "ab");
14346 if (!(c == -1))
14347 return 2;
14348 if (!(optind == 2))
14349 return 3;
14351 /* Some internal state exists at this point. */
14353 int argc = 0;
14354 char *argv[10];
14355 int c;
14357 argv[argc++] = "program";
14358 argv[argc++] = "donald";
14359 argv[argc++] = "-p";
14360 argv[argc++] = "billy";
14361 argv[argc++] = "duck";
14362 argv[argc++] = "-a";
14363 argv[argc++] = "bar";
14364 argv[argc] = NULL;
14365 optind = OPTIND_MIN;
14366 opterr = 0;
14368 c = getopt (argc, argv, "+abp:q:");
14369 if (!(c == -1))
14370 return 4;
14371 if (!(strcmp (argv[0], "program") == 0))
14372 return 5;
14373 if (!(strcmp (argv[1], "donald") == 0))
14374 return 6;
14375 if (!(strcmp (argv[2], "-p") == 0))
14376 return 7;
14377 if (!(strcmp (argv[3], "billy") == 0))
14378 return 8;
14379 if (!(strcmp (argv[4], "duck") == 0))
14380 return 9;
14381 if (!(strcmp (argv[5], "-a") == 0))
14382 return 10;
14383 if (!(strcmp (argv[6], "bar") == 0))
14384 return 11;
14385 if (!(optind == 1))
14386 return 12;
14388 /* Detect MacOS 10.5, AIX 7.1 bug. */
14390 char *argv[3] = { "program", "-ab", NULL };
14391 optind = OPTIND_MIN;
14392 opterr = 0;
14393 if (getopt (2, argv, "ab:") != 'a')
14394 return 13;
14395 if (getopt (2, argv, "ab:") != '?')
14396 return 14;
14397 if (optopt != 'b')
14398 return 15;
14399 if (optind != 2)
14400 return 16;
14403 return 0;
14406 _ACEOF
14407 if ac_fn_c_try_run "$LINENO"; then :
14408 gl_cv_func_getopt_posix=yes
14409 else
14410 gl_cv_func_getopt_posix=no
14412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14413 conftest.$ac_objext conftest.beam conftest.$ac_ext
14416 CPPFLAGS=$gl_save_CPPFLAGS
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14420 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14421 case "$gl_cv_func_getopt_posix" in
14422 *no) gl_replace_getopt=yes ;;
14423 esac
14426 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14428 $as_echo_n "checking for working GNU getopt function... " >&6; }
14429 if ${gl_cv_func_getopt_gnu+:} false; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14433 # optstring is necessary for programs like m4 that have POSIX-mandated
14434 # semantics for supporting options interspersed with files.
14435 # Also, since getopt_long is a GNU extension, we require optind=0.
14436 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14437 # so take care to revert to the correct (non-)export state.
14438 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14439 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14440 xx) gl_had_POSIXLY_CORRECT=exported ;;
14441 x) gl_had_POSIXLY_CORRECT=yes ;;
14442 *) gl_had_POSIXLY_CORRECT= ;;
14443 esac
14444 POSIXLY_CORRECT=1
14445 export POSIXLY_CORRECT
14446 if test "$cross_compiling" = yes; then :
14447 case $host_os:$ac_cv_have_decl_optreset in
14448 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14449 *:yes) gl_cv_func_getopt_gnu=no;;
14450 *) gl_cv_func_getopt_gnu=yes;;
14451 esac
14453 else
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 #include <getopt.h>
14457 #include <stddef.h>
14458 #include <string.h>
14461 main ()
14464 int result = 0;
14465 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14466 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14467 OSF/1 5.1, Solaris 10. */
14469 char *myargv[3];
14470 myargv[0] = "conftest";
14471 myargv[1] = "-+";
14472 myargv[2] = 0;
14473 opterr = 0;
14474 if (getopt (2, myargv, "+a") != '?')
14475 result |= 1;
14477 /* This code succeeds on glibc 2.8, mingw,
14478 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14479 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14481 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14483 optind = 1;
14484 if (getopt (4, argv, "p::") != 'p')
14485 result |= 2;
14486 else if (optarg != NULL)
14487 result |= 4;
14488 else if (getopt (4, argv, "p::") != -1)
14489 result |= 6;
14490 else if (optind != 2)
14491 result |= 8;
14493 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14495 char *argv[] = { "program", "foo", "-p", NULL };
14496 optind = 0;
14497 if (getopt (3, argv, "-p") != 1)
14498 result |= 16;
14499 else if (getopt (3, argv, "-p") != 'p')
14500 result |= 32;
14502 /* This code fails on glibc 2.11. */
14504 char *argv[] = { "program", "-b", "-a", NULL };
14505 optind = opterr = 0;
14506 if (getopt (3, argv, "+:a:b") != 'b')
14507 result |= 64;
14508 else if (getopt (3, argv, "+:a:b") != ':')
14509 result |= 64;
14511 return result;
14514 return 0;
14516 _ACEOF
14517 if ac_fn_c_try_run "$LINENO"; then :
14518 gl_cv_func_getopt_gnu=yes
14519 else
14520 gl_cv_func_getopt_gnu=no
14522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14523 conftest.$ac_objext conftest.beam conftest.$ac_ext
14526 case $gl_had_POSIXLY_CORRECT in
14527 exported) ;;
14528 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14529 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14530 esac
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14534 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14535 if test "$gl_cv_func_getopt_gnu" = "no"; then
14536 gl_replace_getopt=yes
14540 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14541 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14542 ac_have_decl=1
14543 else
14544 ac_have_decl=0
14547 cat >>confdefs.h <<_ACEOF
14548 #define HAVE_DECL_GETENV $ac_have_decl
14549 _ACEOF
14556 if test -n "$gl_replace_getopt"; then :
14560 GETOPT_H=getopt.h
14562 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14566 GNULIB_UNISTD_H_GETOPT=1
14575 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14585 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14596 GNULIB_FCHMODAT=0;
14597 GNULIB_FSTATAT=0;
14598 GNULIB_FUTIMENS=0;
14599 GNULIB_LCHMOD=0;
14600 GNULIB_LSTAT=0;
14601 GNULIB_MKDIRAT=0;
14602 GNULIB_MKFIFO=0;
14603 GNULIB_MKFIFOAT=0;
14604 GNULIB_MKNOD=0;
14605 GNULIB_MKNODAT=0;
14606 GNULIB_STAT=0;
14607 GNULIB_UTIMENSAT=0;
14608 HAVE_FCHMODAT=1;
14609 HAVE_FSTATAT=1;
14610 HAVE_FUTIMENS=1;
14611 HAVE_LCHMOD=1;
14612 HAVE_LSTAT=1;
14613 HAVE_MKDIRAT=1;
14614 HAVE_MKFIFO=1;
14615 HAVE_MKFIFOAT=1;
14616 HAVE_MKNOD=1;
14617 HAVE_MKNODAT=1;
14618 HAVE_UTIMENSAT=1;
14619 REPLACE_FSTAT=0;
14620 REPLACE_FSTATAT=0;
14621 REPLACE_FUTIMENS=0;
14622 REPLACE_LSTAT=0;
14623 REPLACE_MKDIR=0;
14624 REPLACE_MKFIFO=0;
14625 REPLACE_MKNOD=0;
14626 REPLACE_STAT=0;
14627 REPLACE_UTIMENSAT=0;
14632 for ac_func in $ac_func_list
14633 do :
14634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14635 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14636 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14637 cat >>confdefs.h <<_ACEOF
14638 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14639 _ACEOF
14642 done
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14648 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14649 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
14650 $as_echo_n "(cached) " >&6
14651 else
14652 rm -f conftest.sym conftest.file
14653 echo >conftest.file
14654 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14655 if test "$cross_compiling" = yes; then :
14656 # When cross-compiling, be pessimistic so we will end up using the
14657 # replacement version of lstat that checks for trailing slashes and
14658 # calls lstat a second time when necessary.
14659 ac_cv_func_lstat_dereferences_slashed_symlink=no
14661 else
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14664 $ac_includes_default
14666 main ()
14668 struct stat sbuf;
14669 /* Linux will dereference the symlink and fail, as required by
14670 POSIX. That is better in the sense that it means we will not
14671 have to compile and use the lstat wrapper. */
14672 return lstat ("conftest.sym/", &sbuf) == 0;
14675 return 0;
14677 _ACEOF
14678 if ac_fn_c_try_run "$LINENO"; then :
14679 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14680 else
14681 ac_cv_func_lstat_dereferences_slashed_symlink=no
14683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14684 conftest.$ac_objext conftest.beam conftest.$ac_ext
14687 else
14688 # If the 'ln -s' command failed, then we probably don't even
14689 # have an lstat function.
14690 ac_cv_func_lstat_dereferences_slashed_symlink=no
14692 rm -f conftest.sym conftest.file
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14696 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14697 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14699 cat >>confdefs.h <<_ACEOF
14700 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14701 _ACEOF
14703 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14712 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14717 GNULIB_MKTIME=0;
14718 GNULIB_NANOSLEEP=0;
14719 GNULIB_STRPTIME=0;
14720 GNULIB_TIMEGM=0;
14721 GNULIB_TIME_R=0;
14722 HAVE_DECL_LOCALTIME_R=1;
14723 HAVE_NANOSLEEP=1;
14724 HAVE_STRPTIME=1;
14725 HAVE_TIMEGM=1;
14726 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14727 REPLACE_MKTIME=GNULIB_PORTCHECK;
14728 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14729 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14734 gl_cv_c_multiarch=no
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14737 #ifndef __APPLE_CC__
14738 not a universal capable compiler
14739 #endif
14740 typedef int dummy;
14742 _ACEOF
14743 if ac_fn_c_try_compile "$LINENO"; then :
14745 arch=
14746 prev=
14747 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14748 if test -n "$prev"; then
14749 case $word in
14750 i?86 | x86_64 | ppc | ppc64)
14751 if test -z "$arch" || test "$arch" = "$word"; then
14752 arch="$word"
14753 else
14754 gl_cv_c_multiarch=yes
14757 esac
14758 prev=
14759 else
14760 if test "x$word" = "x-arch"; then
14761 prev=arch
14764 done
14767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14768 if test $gl_cv_c_multiarch = yes; then
14769 APPLE_UNIVERSAL_BUILD=1
14770 else
14771 APPLE_UNIVERSAL_BUILD=0
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14782 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14783 if ${ac_cv_header_stdbool_h+:} false; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14789 #include <stdbool.h>
14790 #ifndef bool
14791 "error: bool is not defined"
14792 #endif
14793 #ifndef false
14794 "error: false is not defined"
14795 #endif
14796 #if false
14797 "error: false is not 0"
14798 #endif
14799 #ifndef true
14800 "error: true is not defined"
14801 #endif
14802 #if true != 1
14803 "error: true is not 1"
14804 #endif
14805 #ifndef __bool_true_false_are_defined
14806 "error: __bool_true_false_are_defined is not defined"
14807 #endif
14809 struct s { _Bool s: 1; _Bool t; } s;
14811 char a[true == 1 ? 1 : -1];
14812 char b[false == 0 ? 1 : -1];
14813 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14814 char d[(bool) 0.5 == true ? 1 : -1];
14815 /* See body of main program for 'e'. */
14816 char f[(_Bool) 0.0 == false ? 1 : -1];
14817 char g[true];
14818 char h[sizeof (_Bool)];
14819 char i[sizeof s.t];
14820 enum { j = false, k = true, l = false * true, m = true * 256 };
14821 /* The following fails for
14822 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14823 _Bool n[m];
14824 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14825 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14826 /* Catch a bug in an HP-UX C compiler. See
14827 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14828 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14830 _Bool q = true;
14831 _Bool *pq = &q;
14834 main ()
14837 bool e = &s;
14838 *pq |= q;
14839 *pq |= ! q;
14840 /* Refer to every declared value, to avoid compiler optimizations. */
14841 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14842 + !m + !n + !o + !p + !q + !pq);
14845 return 0;
14847 _ACEOF
14848 if ac_fn_c_try_compile "$LINENO"; then :
14849 ac_cv_header_stdbool_h=yes
14850 else
14851 ac_cv_header_stdbool_h=no
14853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14856 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14857 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14858 if test "x$ac_cv_type__Bool" = xyes; then :
14860 cat >>confdefs.h <<_ACEOF
14861 #define HAVE__BOOL 1
14862 _ACEOF
14869 REPLACE_NULL=0;
14870 HAVE_WCHAR_T=1;
14871 STDDEF_H='';
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14875 $as_echo_n "checking for wchar_t... " >&6; }
14876 if ${gt_cv_c_wchar_t+:} false; then :
14877 $as_echo_n "(cached) " >&6
14878 else
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14881 #include <stddef.h>
14882 wchar_t foo = (wchar_t)'\0';
14884 main ()
14888 return 0;
14890 _ACEOF
14891 if ac_fn_c_try_compile "$LINENO"; then :
14892 gt_cv_c_wchar_t=yes
14893 else
14894 gt_cv_c_wchar_t=no
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14899 $as_echo "$gt_cv_c_wchar_t" >&6; }
14900 if test $gt_cv_c_wchar_t = yes; then
14902 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14908 $as_echo_n "checking for unsigned long long int... " >&6; }
14909 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 ac_cv_type_unsigned_long_long_int=yes
14913 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14917 /* For now, do not test the preprocessor; as of 2007 there are too many
14918 implementations with broken preprocessors. Perhaps this can
14919 be revisited in 2012. In the meantime, code should not expect
14920 #if to work with literals wider than 32 bits. */
14921 /* Test literals. */
14922 long long int ll = 9223372036854775807ll;
14923 long long int nll = -9223372036854775807LL;
14924 unsigned long long int ull = 18446744073709551615ULL;
14925 /* Test constant expressions. */
14926 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14927 ? 1 : -1)];
14928 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14929 ? 1 : -1)];
14930 int i = 63;
14932 main ()
14934 /* Test availability of runtime routines for shift and division. */
14935 long long int llmax = 9223372036854775807ll;
14936 unsigned long long int ullmax = 18446744073709551615ull;
14937 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14938 | (llmax / ll) | (llmax % ll)
14939 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14940 | (ullmax / ull) | (ullmax % ull));
14942 return 0;
14945 _ACEOF
14946 if ac_fn_c_try_link "$LINENO"; then :
14948 else
14949 ac_cv_type_unsigned_long_long_int=no
14951 rm -f core conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14956 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14957 if test $ac_cv_type_unsigned_long_long_int = yes; then
14959 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14966 $as_echo_n "checking for long long int... " >&6; }
14967 if ${ac_cv_type_long_long_int+:} false; then :
14968 $as_echo_n "(cached) " >&6
14969 else
14970 ac_cv_type_long_long_int=yes
14971 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14972 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14973 if test $ac_cv_type_long_long_int = yes; then
14974 if test "$cross_compiling" = yes; then :
14976 else
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14979 #include <limits.h>
14980 #ifndef LLONG_MAX
14981 # define HALF \
14982 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14983 # define LLONG_MAX (HALF - 1 + HALF)
14984 #endif
14986 main ()
14988 long long int n = 1;
14989 int i;
14990 for (i = 0; ; i++)
14992 long long int m = n << i;
14993 if (m >> i != n)
14994 return 1;
14995 if (LLONG_MAX / 2 < m)
14996 break;
14998 return 0;
15000 return 0;
15002 _ACEOF
15003 if ac_fn_c_try_run "$LINENO"; then :
15005 else
15006 ac_cv_type_long_long_int=no
15008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15009 conftest.$ac_objext conftest.beam conftest.$ac_ext
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15016 $as_echo "$ac_cv_type_long_long_int" >&6; }
15017 if test $ac_cv_type_long_long_int = yes; then
15019 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15028 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15030 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
15032 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15042 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15043 if ${ac_cv_header_stat_broken+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15048 #include <sys/types.h>
15049 #include <sys/stat.h>
15051 #if defined S_ISBLK && defined S_IFDIR
15052 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15053 #endif
15055 #if defined S_ISBLK && defined S_IFCHR
15056 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15057 #endif
15059 #if defined S_ISLNK && defined S_IFREG
15060 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15061 #endif
15063 #if defined S_ISSOCK && defined S_IFREG
15064 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15065 #endif
15067 _ACEOF
15068 if ac_fn_c_try_compile "$LINENO"; then :
15069 ac_cv_header_stat_broken=no
15070 else
15071 ac_cv_header_stat_broken=yes
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15076 $as_echo "$ac_cv_header_stat_broken" >&6; }
15077 if test $ac_cv_header_stat_broken = yes; then
15079 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15086 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15087 if ${ac_cv_c_restrict+:} false; then :
15088 $as_echo_n "(cached) " >&6
15089 else
15090 ac_cv_c_restrict=no
15091 # The order here caters to the fact that C++ does not require restrict.
15092 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095 typedef int * int_ptr;
15096 int foo (int_ptr $ac_kw ip) {
15097 return ip[0];
15100 main ()
15102 int s[1];
15103 int * $ac_kw t = s;
15104 t[0] = 0;
15105 return foo(t)
15107 return 0;
15109 _ACEOF
15110 if ac_fn_c_try_compile "$LINENO"; then :
15111 ac_cv_c_restrict=$ac_kw
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 test "$ac_cv_c_restrict" != no && break
15115 done
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15119 $as_echo "$ac_cv_c_restrict" >&6; }
15121 case $ac_cv_c_restrict in
15122 restrict) ;;
15123 no) $as_echo "#define restrict /**/" >>confdefs.h
15125 *) cat >>confdefs.h <<_ACEOF
15126 #define restrict $ac_cv_c_restrict
15127 _ACEOF
15129 esac
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15136 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15137 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
15138 $as_echo_n "(cached) " >&6
15139 else
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15142 #include <time.h>
15145 main ()
15147 static struct timespec x; x.tv_sec = x.tv_nsec;
15149 return 0;
15151 _ACEOF
15152 if ac_fn_c_try_compile "$LINENO"; then :
15153 gl_cv_sys_struct_timespec_in_time_h=yes
15154 else
15155 gl_cv_sys_struct_timespec_in_time_h=no
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15160 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15162 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15163 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15164 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15165 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15166 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15167 else
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15169 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15170 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
15171 $as_echo_n "(cached) " >&6
15172 else
15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15175 #include <sys/time.h>
15178 main ()
15180 static struct timespec x; x.tv_sec = x.tv_nsec;
15182 return 0;
15184 _ACEOF
15185 if ac_fn_c_try_compile "$LINENO"; then :
15186 gl_cv_sys_struct_timespec_in_sys_time_h=yes
15187 else
15188 gl_cv_sys_struct_timespec_in_sys_time_h=no
15190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15193 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15194 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15195 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15196 else
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15198 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15199 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
15200 $as_echo_n "(cached) " >&6
15201 else
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204 #include <pthread.h>
15207 main ()
15209 static struct timespec x; x.tv_sec = x.tv_nsec;
15211 return 0;
15213 _ACEOF
15214 if ac_fn_c_try_compile "$LINENO"; then :
15215 gl_cv_sys_struct_timespec_in_pthread_h=yes
15216 else
15217 gl_cv_sys_struct_timespec_in_pthread_h=no
15219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15222 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15223 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15224 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15243 if test $gl_cv_have_include_next = yes; then
15244 gl_cv_next_time_h='<'time.h'>'
15245 else
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15247 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15248 if ${gl_cv_next_time_h+:} false; then :
15249 $as_echo_n "(cached) " >&6
15250 else
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15254 #include <time.h>
15256 _ACEOF
15257 case "$host_os" in
15258 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15259 *) gl_absname_cpp="$ac_cpp" ;;
15260 esac
15261 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15262 sed -n '\#/time.h#{
15263 s#.*"\(.*/time.h\)".*#\1#
15264 s#^/[^/]#//&#
15267 }'`'"'
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15272 $as_echo "$gl_cv_next_time_h" >&6; }
15274 NEXT_TIME_H=$gl_cv_next_time_h
15276 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15278 gl_next_as_first_directive='<'time.h'>'
15279 else
15280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15281 gl_next_as_first_directive=$gl_cv_next_time_h
15283 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15290 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15291 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
15292 ac_have_decl=1
15293 else
15294 ac_have_decl=0
15297 cat >>confdefs.h <<_ACEOF
15298 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15299 _ACEOF
15304 if false; then
15305 GL_COND_LIBTOOL_TRUE=
15306 GL_COND_LIBTOOL_FALSE='#'
15307 else
15308 GL_COND_LIBTOOL_TRUE='#'
15309 GL_COND_LIBTOOL_FALSE=
15312 gl_cond_libtool=false
15313 gl_libdeps=
15314 gl_ltlibdeps=
15315 gl_m4_base='m4'
15325 gl_source_base='lib'
15326 # Code from module arg-nonnull:
15327 # Code from module c++defs:
15328 # Code from module crypto/md5:
15338 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15345 # Code from module dosname:
15346 # Code from module dtoastr:
15348 # Code from module extensions:
15349 # Code from module filemode:
15360 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15364 # Code from module getloadavg:
15367 # Persuade glibc <stdlib.h> to declare getloadavg().
15370 # Make sure getloadavg.c is where it belongs, at configure-time.
15371 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15372 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15374 gl_save_LIBS=$LIBS
15376 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15377 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15378 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15379 if test "x$ac_cv_func_getloadavg" = xyes; then :
15381 else
15382 gl_have_func=no
15384 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15385 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15386 # to get the right answer into the cache.
15387 # For kstat on solaris, we need to test for libelf and libkvm to force the
15388 # definition of SVR4 below.
15389 if test $gl_have_func = no; then
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15391 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15392 if ${ac_cv_lib_elf_elf_begin+:} false; then :
15393 $as_echo_n "(cached) " >&6
15394 else
15395 ac_check_lib_save_LIBS=$LIBS
15396 LIBS="-lelf $LIBS"
15397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398 /* end confdefs.h. */
15400 /* Override any GCC internal prototype to avoid an error.
15401 Use char because int might match the return type of a GCC
15402 builtin and then its argument prototype would still apply. */
15403 #ifdef __cplusplus
15404 extern "C"
15405 #endif
15406 char elf_begin ();
15408 main ()
15410 return elf_begin ();
15412 return 0;
15414 _ACEOF
15415 if ac_fn_c_try_link "$LINENO"; then :
15416 ac_cv_lib_elf_elf_begin=yes
15417 else
15418 ac_cv_lib_elf_elf_begin=no
15420 rm -f core conftest.err conftest.$ac_objext \
15421 conftest$ac_exeext conftest.$ac_ext
15422 LIBS=$ac_check_lib_save_LIBS
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15425 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15426 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
15427 LIBS="-lelf $LIBS"
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15431 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15432 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
15433 $as_echo_n "(cached) " >&6
15434 else
15435 ac_check_lib_save_LIBS=$LIBS
15436 LIBS="-lkvm $LIBS"
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15440 /* Override any GCC internal prototype to avoid an error.
15441 Use char because int might match the return type of a GCC
15442 builtin and then its argument prototype would still apply. */
15443 #ifdef __cplusplus
15444 extern "C"
15445 #endif
15446 char kvm_open ();
15448 main ()
15450 return kvm_open ();
15452 return 0;
15454 _ACEOF
15455 if ac_fn_c_try_link "$LINENO"; then :
15456 ac_cv_lib_kvm_kvm_open=yes
15457 else
15458 ac_cv_lib_kvm_kvm_open=no
15460 rm -f core conftest.err conftest.$ac_objext \
15461 conftest$ac_exeext conftest.$ac_ext
15462 LIBS=$ac_check_lib_save_LIBS
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15465 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15466 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
15467 LIBS="-lkvm $LIBS"
15470 # Check for the 4.4BSD definition of getloadavg.
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15472 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15473 if ${ac_cv_lib_util_getloadavg+:} false; then :
15474 $as_echo_n "(cached) " >&6
15475 else
15476 ac_check_lib_save_LIBS=$LIBS
15477 LIBS="-lutil $LIBS"
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15481 /* Override any GCC internal prototype to avoid an error.
15482 Use char because int might match the return type of a GCC
15483 builtin and then its argument prototype would still apply. */
15484 #ifdef __cplusplus
15485 extern "C"
15486 #endif
15487 char getloadavg ();
15489 main ()
15491 return getloadavg ();
15493 return 0;
15495 _ACEOF
15496 if ac_fn_c_try_link "$LINENO"; then :
15497 ac_cv_lib_util_getloadavg=yes
15498 else
15499 ac_cv_lib_util_getloadavg=no
15501 rm -f core conftest.err conftest.$ac_objext \
15502 conftest$ac_exeext conftest.$ac_ext
15503 LIBS=$ac_check_lib_save_LIBS
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15506 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15507 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
15508 LIBS="-lutil $LIBS" gl_have_func=yes
15513 if test $gl_have_func = no; then
15514 # There is a commonly available library for RS/6000 AIX.
15515 # Since it is not a standard part of AIX, it might be installed locally.
15516 gl_getloadavg_LIBS=$LIBS
15517 LIBS="-L/usr/local/lib $LIBS"
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15519 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15520 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
15521 $as_echo_n "(cached) " >&6
15522 else
15523 ac_check_lib_save_LIBS=$LIBS
15524 LIBS="-lgetloadavg $LIBS"
15525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15526 /* end confdefs.h. */
15528 /* Override any GCC internal prototype to avoid an error.
15529 Use char because int might match the return type of a GCC
15530 builtin and then its argument prototype would still apply. */
15531 #ifdef __cplusplus
15532 extern "C"
15533 #endif
15534 char getloadavg ();
15536 main ()
15538 return getloadavg ();
15540 return 0;
15542 _ACEOF
15543 if ac_fn_c_try_link "$LINENO"; then :
15544 ac_cv_lib_getloadavg_getloadavg=yes
15545 else
15546 ac_cv_lib_getloadavg_getloadavg=no
15548 rm -f core conftest.err conftest.$ac_objext \
15549 conftest$ac_exeext conftest.$ac_ext
15550 LIBS=$ac_check_lib_save_LIBS
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15553 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15554 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
15555 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15556 else
15557 LIBS=$gl_getloadavg_LIBS
15562 # Set up the replacement function if necessary.
15563 if test $gl_have_func = no; then
15572 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15575 # Figure out what our getloadavg.c needs.
15577 # Solaris has libkstat which does not require root.
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15579 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15580 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
15581 $as_echo_n "(cached) " >&6
15582 else
15583 ac_check_lib_save_LIBS=$LIBS
15584 LIBS="-lkstat $LIBS"
15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15586 /* end confdefs.h. */
15588 /* Override any GCC internal prototype to avoid an error.
15589 Use char because int might match the return type of a GCC
15590 builtin and then its argument prototype would still apply. */
15591 #ifdef __cplusplus
15592 extern "C"
15593 #endif
15594 char kstat_open ();
15596 main ()
15598 return kstat_open ();
15600 return 0;
15602 _ACEOF
15603 if ac_fn_c_try_link "$LINENO"; then :
15604 ac_cv_lib_kstat_kstat_open=yes
15605 else
15606 ac_cv_lib_kstat_kstat_open=no
15608 rm -f core conftest.err conftest.$ac_objext \
15609 conftest$ac_exeext conftest.$ac_ext
15610 LIBS=$ac_check_lib_save_LIBS
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15613 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15614 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
15615 cat >>confdefs.h <<_ACEOF
15616 #define HAVE_LIBKSTAT 1
15617 _ACEOF
15619 LIBS="-lkstat $LIBS"
15623 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15625 # On HPUX9, an unprivileged user can get load averages this way.
15626 if test $gl_have_func = no; then
15627 for ac_func in pstat_getdynamic
15628 do :
15629 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15630 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
15631 cat >>confdefs.h <<_ACEOF
15632 #define HAVE_PSTAT_GETDYNAMIC 1
15633 _ACEOF
15634 gl_have_func=yes
15636 done
15640 # AIX has libperfstat which does not require root
15641 if test $gl_have_func = no; then
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15643 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15644 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
15645 $as_echo_n "(cached) " >&6
15646 else
15647 ac_check_lib_save_LIBS=$LIBS
15648 LIBS="-lperfstat $LIBS"
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h. */
15652 /* Override any GCC internal prototype to avoid an error.
15653 Use char because int might match the return type of a GCC
15654 builtin and then its argument prototype would still apply. */
15655 #ifdef __cplusplus
15656 extern "C"
15657 #endif
15658 char perfstat_cpu_total ();
15660 main ()
15662 return perfstat_cpu_total ();
15664 return 0;
15666 _ACEOF
15667 if ac_fn_c_try_link "$LINENO"; then :
15668 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15669 else
15670 ac_cv_lib_perfstat_perfstat_cpu_total=no
15672 rm -f core conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15674 LIBS=$ac_check_lib_save_LIBS
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15677 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15678 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
15679 cat >>confdefs.h <<_ACEOF
15680 #define HAVE_LIBPERFSTAT 1
15681 _ACEOF
15683 LIBS="-lperfstat $LIBS"
15687 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15690 if test $gl_have_func = no; then
15691 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15692 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
15693 gl_have_func=yes
15695 $as_echo "#define DGUX 1" >>confdefs.h
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15698 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15699 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
15700 $as_echo_n "(cached) " >&6
15701 else
15702 ac_check_lib_save_LIBS=$LIBS
15703 LIBS="-ldgc $LIBS"
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15707 /* Override any GCC internal prototype to avoid an error.
15708 Use char because int might match the return type of a GCC
15709 builtin and then its argument prototype would still apply. */
15710 #ifdef __cplusplus
15711 extern "C"
15712 #endif
15713 char dg_sys_info ();
15715 main ()
15717 return dg_sys_info ();
15719 return 0;
15721 _ACEOF
15722 if ac_fn_c_try_link "$LINENO"; then :
15723 ac_cv_lib_dgc_dg_sys_info=yes
15724 else
15725 ac_cv_lib_dgc_dg_sys_info=no
15727 rm -f core conftest.err conftest.$ac_objext \
15728 conftest$ac_exeext conftest.$ac_ext
15729 LIBS=$ac_check_lib_save_LIBS
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15732 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15733 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
15734 cat >>confdefs.h <<_ACEOF
15735 #define HAVE_LIBDGC 1
15736 _ACEOF
15738 LIBS="-ldgc $LIBS"
15747 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15748 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15749 # Irix 4.0.5F has the header but not the library.
15750 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15751 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15752 gl_have_func=yes
15754 $as_echo "#define SVR4 1" >>confdefs.h
15758 if test $gl_have_func = no; then
15759 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15760 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
15761 gl_have_func=yes
15763 $as_echo "#define UMAX 1" >>confdefs.h
15766 $as_echo "#define UMAX4_3 1" >>confdefs.h
15773 if test $gl_have_func = no; then
15774 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15775 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
15776 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15783 if test $gl_have_func = no; then
15784 for ac_header in mach/mach.h
15785 do :
15786 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15787 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
15788 cat >>confdefs.h <<_ACEOF
15789 #define HAVE_MACH_MACH_H 1
15790 _ACEOF
15794 done
15798 for ac_header in nlist.h
15799 do :
15800 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15801 if test "x$ac_cv_header_nlist_h" = xyes; then :
15802 cat >>confdefs.h <<_ACEOF
15803 #define HAVE_NLIST_H 1
15804 _ACEOF
15805 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15807 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
15809 cat >>confdefs.h <<_ACEOF
15810 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15811 _ACEOF
15816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h. */
15818 #include <nlist.h>
15820 main ()
15822 struct nlist x;
15823 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15824 x.n_un.n_name = "";
15825 #else
15826 x.n_name = "";
15827 #endif
15829 return 0;
15831 _ACEOF
15832 if ac_fn_c_try_link "$LINENO"; then :
15834 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15837 rm -f core conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15842 done
15848 if test "x$gl_save_LIBS" = x; then
15849 GETLOADAVG_LIBS=$LIBS
15850 else
15851 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15853 LIBS=$gl_save_LIBS
15856 # Test whether the system declares getloadavg. Solaris has the function
15857 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15858 for ac_header in sys/loadavg.h
15859 do :
15860 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15861 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
15862 cat >>confdefs.h <<_ACEOF
15863 #define HAVE_SYS_LOADAVG_H 1
15864 _ACEOF
15868 done
15870 if test $ac_cv_header_sys_loadavg_h = yes; then
15871 HAVE_SYS_LOADAVG_H=1
15872 else
15873 HAVE_SYS_LOADAVG_H=0
15875 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15876 # include <sys/loadavg.h>
15877 #endif
15878 #include <stdlib.h>
15880 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
15882 else
15883 HAVE_DECL_GETLOADAVG=0
15890 GNULIB_GETLOADAVG=1
15894 # Code from module getopt-gnu:
15901 # Code from module getopt-posix:
15907 if test -n "$gl_replace_getopt"; then :
15911 GETOPT_H=getopt.h
15913 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15917 GNULIB_UNISTD_H_GETOPT=1
15926 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15936 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15946 # Code from module gettext-h:
15949 # Code from module ignore-value:
15951 # Code from module include_next:
15952 # Code from module intprops:
15953 # Code from module lstat:
15957 if test $ac_cv_func_lstat = yes; then
15959 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15960 REPLACE_LSTAT=1
15962 # Prerequisites of lib/lstat.c.
15964 else
15965 HAVE_LSTAT=0
15971 GNULIB_LSTAT=1
15975 # Code from module mktime:
15981 if test $APPLE_UNIVERSAL_BUILD = 1; then
15982 # A universal build on Apple MacOS X platforms.
15983 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15984 # But we need a configuration result that is valid in both modes.
15985 ac_cv_func_working_mktime=no
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15988 $as_echo_n "checking for working mktime... " >&6; }
15989 if ${ac_cv_func_working_mktime+:} false; then :
15990 $as_echo_n "(cached) " >&6
15991 else
15992 if test "$cross_compiling" = yes; then :
15993 ac_cv_func_working_mktime=no
15994 else
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997 /* Test program from Paul Eggert and Tony Leneis. */
15998 #include <limits.h>
15999 #include <stdlib.h>
16000 #include <time.h>
16002 #ifdef HAVE_UNISTD_H
16003 # include <unistd.h>
16004 #endif
16006 #ifndef HAVE_ALARM
16007 # define alarm(X) /* empty */
16008 #endif
16010 /* Work around redefinition to rpl_putenv by other config tests. */
16011 #undef putenv
16013 static time_t time_t_max;
16014 static time_t time_t_min;
16016 /* Values we'll use to set the TZ environment variable. */
16017 static char *tz_strings[] = {
16018 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16019 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16021 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16023 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16024 Based on a problem report from Andreas Jaeger. */
16025 static int
16026 spring_forward_gap ()
16028 /* glibc (up to about 1998-10-07) failed this test. */
16029 struct tm tm;
16031 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16032 instead of "TZ=America/Vancouver" in order to detect the bug even
16033 on systems that don't support the Olson extension, or don't have the
16034 full zoneinfo tables installed. */
16035 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16037 tm.tm_year = 98;
16038 tm.tm_mon = 3;
16039 tm.tm_mday = 5;
16040 tm.tm_hour = 2;
16041 tm.tm_min = 0;
16042 tm.tm_sec = 0;
16043 tm.tm_isdst = -1;
16044 return mktime (&tm) != (time_t) -1;
16047 static int
16048 mktime_test1 (time_t now)
16050 struct tm *lt;
16051 return ! (lt = localtime (&now)) || mktime (lt) == now;
16054 static int
16055 mktime_test (time_t now)
16057 return (mktime_test1 (now)
16058 && mktime_test1 ((time_t) (time_t_max - now))
16059 && mktime_test1 ((time_t) (time_t_min + now)));
16062 static int
16063 irix_6_4_bug ()
16065 /* Based on code from Ariel Faigon. */
16066 struct tm tm;
16067 tm.tm_year = 96;
16068 tm.tm_mon = 3;
16069 tm.tm_mday = 0;
16070 tm.tm_hour = 0;
16071 tm.tm_min = 0;
16072 tm.tm_sec = 0;
16073 tm.tm_isdst = -1;
16074 mktime (&tm);
16075 return tm.tm_mon == 2 && tm.tm_mday == 31;
16078 static int
16079 bigtime_test (int j)
16081 struct tm tm;
16082 time_t now;
16083 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16084 now = mktime (&tm);
16085 if (now != (time_t) -1)
16087 struct tm *lt = localtime (&now);
16088 if (! (lt
16089 && lt->tm_year == tm.tm_year
16090 && lt->tm_mon == tm.tm_mon
16091 && lt->tm_mday == tm.tm_mday
16092 && lt->tm_hour == tm.tm_hour
16093 && lt->tm_min == tm.tm_min
16094 && lt->tm_sec == tm.tm_sec
16095 && lt->tm_yday == tm.tm_yday
16096 && lt->tm_wday == tm.tm_wday
16097 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16098 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16099 return 0;
16101 return 1;
16104 static int
16105 year_2050_test ()
16107 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16108 ignoring leap seconds. */
16109 unsigned long int answer = 2527315200UL;
16111 struct tm tm;
16112 time_t t;
16113 tm.tm_year = 2050 - 1900;
16114 tm.tm_mon = 2 - 1;
16115 tm.tm_mday = 1;
16116 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16117 tm.tm_isdst = -1;
16119 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16120 instead of "TZ=America/Vancouver" in order to detect the bug even
16121 on systems that don't support the Olson extension, or don't have the
16122 full zoneinfo tables installed. */
16123 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16125 t = mktime (&tm);
16127 /* Check that the result is either a failure, or close enough
16128 to the correct answer that we can assume the discrepancy is
16129 due to leap seconds. */
16130 return (t == (time_t) -1
16131 || (0 < t && answer - 120 <= t && t <= answer + 120));
16135 main ()
16137 int result = 0;
16138 time_t t, delta;
16139 int i, j;
16140 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16141 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16143 /* This test makes some buggy mktime implementations loop.
16144 Give up after 60 seconds; a mktime slower than that
16145 isn't worth using anyway. */
16146 alarm (60);
16148 time_t_max = (! time_t_signed
16149 ? (time_t) -1
16150 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16151 * 2 + 1));
16152 time_t_min = (! time_t_signed
16153 ? (time_t) 0
16154 : time_t_signed_magnitude
16155 ? ~ (time_t) 0
16156 : ~ time_t_max);
16158 delta = time_t_max / 997; /* a suitable prime number */
16159 for (i = 0; i < N_STRINGS; i++)
16161 if (tz_strings[i])
16162 putenv (tz_strings[i]);
16164 for (t = 0; t <= time_t_max - delta; t += delta)
16165 if (! mktime_test (t))
16166 result |= 1;
16167 if (! (mktime_test ((time_t) 1)
16168 && mktime_test ((time_t) (60 * 60))
16169 && mktime_test ((time_t) (60 * 60 * 24))))
16170 result |= 2;
16172 for (j = 1; ; j <<= 1)
16173 if (! bigtime_test (j))
16174 result |= 4;
16175 else if (INT_MAX / 2 < j)
16176 break;
16177 if (! bigtime_test (INT_MAX))
16178 result |= 8;
16180 if (! irix_6_4_bug ())
16181 result |= 16;
16182 if (! spring_forward_gap ())
16183 result |= 32;
16184 if (! year_2050_test ())
16185 result |= 64;
16186 return result;
16188 _ACEOF
16189 if ac_fn_c_try_run "$LINENO"; then :
16190 ac_cv_func_working_mktime=yes
16191 else
16192 ac_cv_func_working_mktime=no
16194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16195 conftest.$ac_objext conftest.beam conftest.$ac_ext
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16200 $as_echo "$ac_cv_func_working_mktime" >&6; }
16201 if test $ac_cv_func_working_mktime = no; then
16210 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
16214 if test $ac_cv_func_working_mktime = no; then
16215 REPLACE_MKTIME=1
16219 else
16220 REPLACE_MKTIME=0
16226 GNULIB_MKTIME=1
16230 # Code from module multiarch:
16232 # Code from module readlink:
16236 if test $ac_cv_func_readlink = no; then
16237 HAVE_READLINK=0
16246 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16251 else
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16253 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16254 if ${gl_cv_decl_readlink_works+:} false; then :
16255 $as_echo_n "(cached) " >&6
16256 else
16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16259 #include <unistd.h>
16260 /* Cause compilation failure if original declaration has wrong type. */
16261 ssize_t readlink (const char *, char *, size_t);
16263 main ()
16267 return 0;
16269 _ACEOF
16270 if ac_fn_c_try_compile "$LINENO"; then :
16271 gl_cv_decl_readlink_works=yes
16272 else
16273 gl_cv_decl_readlink_works=no
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16278 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16280 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16281 if ${gl_cv_func_readlink_works+:} false; then :
16282 $as_echo_n "(cached) " >&6
16283 else
16284 # We have readlink, so assume ln -s works.
16285 ln -s conftest.no-such conftest.link
16286 ln -s conftest.link conftest.lnk2
16287 if test "$cross_compiling" = yes; then :
16288 gl_cv_func_readlink_works="guessing no"
16289 else
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 #include <unistd.h>
16295 main ()
16297 char buf[20];
16298 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16300 return 0;
16302 _ACEOF
16303 if ac_fn_c_try_run "$LINENO"; then :
16304 gl_cv_func_readlink_works=yes
16305 else
16306 gl_cv_func_readlink_works=no
16308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16309 conftest.$ac_objext conftest.beam conftest.$ac_ext
16312 rm -f conftest.link conftest.lnk2
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16315 $as_echo "$gl_cv_func_readlink_works" >&6; }
16316 if test "$gl_cv_func_readlink_works" != yes; then
16318 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16320 REPLACE_READLINK=1
16329 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16331 elif test "$gl_cv_decl_readlink_works" != yes; then
16332 REPLACE_READLINK=1
16341 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16349 GNULIB_READLINK=1
16353 # Code from module socklen:
16354 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
16355 #if HAVE_SYS_SOCKET_H
16356 # include <sys/socket.h>
16357 #endif
16359 if test "x$ac_cv_type_socklen_t" = xyes; then :
16361 else
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16363 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16364 if ${gl_cv_socklen_t_equiv+:} false; then :
16365 $as_echo_n "(cached) " >&6
16366 else
16367 # Systems have either "struct sockaddr *" or
16368 # "void *" as the second argument to getpeername
16369 gl_cv_socklen_t_equiv=
16370 for arg2 in "struct sockaddr" void; do
16371 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16374 #include <sys/types.h>
16375 #include <sys/socket.h>
16377 int getpeername (int, $arg2 *, $t *);
16379 main ()
16381 $t len;
16382 getpeername (0, 0, &len);
16384 return 0;
16386 _ACEOF
16387 if ac_fn_c_try_compile "$LINENO"; then :
16388 gl_cv_socklen_t_equiv="$t"
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 test "$gl_cv_socklen_t_equiv" != "" && break
16392 done
16393 test "$gl_cv_socklen_t_equiv" != "" && break
16394 done
16398 if test "$gl_cv_socklen_t_equiv" = ""; then
16399 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16402 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16404 cat >>confdefs.h <<_ACEOF
16405 #define socklen_t $gl_cv_socklen_t_equiv
16406 _ACEOF
16410 # Code from module stat:
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16415 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16416 if ${gl_cv_func_stat_dir_slash+:} false; then :
16417 $as_echo_n "(cached) " >&6
16418 else
16419 if test "$cross_compiling" = yes; then :
16420 case $host_os in
16421 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16422 *) gl_cv_func_stat_dir_slash="guessing yes";;
16423 esac
16424 else
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16427 #include <sys/stat.h>
16430 main ()
16432 struct stat st; return stat (".", &st) != stat ("./", &st);
16434 return 0;
16436 _ACEOF
16437 if ac_fn_c_try_run "$LINENO"; then :
16438 gl_cv_func_stat_dir_slash=yes
16439 else
16440 gl_cv_func_stat_dir_slash=no
16442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16443 conftest.$ac_objext conftest.beam conftest.$ac_ext
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16448 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16450 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16451 if ${gl_cv_func_stat_file_slash+:} false; then :
16452 $as_echo_n "(cached) " >&6
16453 else
16454 touch conftest.tmp
16455 # Assume that if we have lstat, we can also check symlinks.
16456 if test $ac_cv_func_lstat = yes; then
16457 ln -s conftest.tmp conftest.lnk
16459 if test "$cross_compiling" = yes; then :
16460 gl_cv_func_stat_file_slash="guessing no"
16461 else
16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h. */
16464 #include <sys/stat.h>
16467 main ()
16469 int result = 0;
16470 struct stat st;
16471 if (!stat ("conftest.tmp/", &st))
16472 result |= 1;
16473 #if HAVE_LSTAT
16474 if (!stat ("conftest.lnk/", &st))
16475 result |= 2;
16476 #endif
16477 return result;
16480 return 0;
16482 _ACEOF
16483 if ac_fn_c_try_run "$LINENO"; then :
16484 gl_cv_func_stat_file_slash=yes
16485 else
16486 gl_cv_func_stat_file_slash=no
16488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16489 conftest.$ac_objext conftest.beam conftest.$ac_ext
16492 rm -f conftest.tmp conftest.lnk
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16495 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16496 case $gl_cv_func_stat_dir_slash in
16497 *no) REPLACE_STAT=1
16499 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16501 esac
16502 case $gl_cv_func_stat_file_slash in
16503 *no) REPLACE_STAT=1
16505 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16507 esac
16508 if test $REPLACE_STAT = 1; then
16517 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16525 GNULIB_STAT=1
16529 # Code from module stdbool:
16533 # Define two additional variables used in the Makefile substitution.
16535 if test "$ac_cv_header_stdbool_h" = yes; then
16536 STDBOOL_H=''
16537 else
16538 STDBOOL_H='stdbool.h'
16542 if test "$ac_cv_type__Bool" = yes; then
16543 HAVE__BOOL=1
16544 else
16545 HAVE__BOOL=0
16549 # Code from module stddef:
16553 if test $gt_cv_c_wchar_t = no; then
16554 HAVE_WCHAR_T=0
16555 STDDEF_H=stddef.h
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16558 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16559 if ${gl_cv_decl_null_works+:} false; then :
16560 $as_echo_n "(cached) " >&6
16561 else
16562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h. */
16564 #include <stddef.h>
16565 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16568 main ()
16572 return 0;
16574 _ACEOF
16575 if ac_fn_c_try_compile "$LINENO"; then :
16576 gl_cv_decl_null_works=yes
16577 else
16578 gl_cv_decl_null_works=no
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16583 $as_echo "$gl_cv_decl_null_works" >&6; }
16584 if test $gl_cv_decl_null_works = no; then
16585 REPLACE_NULL=1
16586 STDDEF_H=stddef.h
16588 if test -n "$STDDEF_H"; then
16597 if test $gl_cv_have_include_next = yes; then
16598 gl_cv_next_stddef_h='<'stddef.h'>'
16599 else
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16601 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16602 if ${gl_cv_next_stddef_h+:} false; then :
16603 $as_echo_n "(cached) " >&6
16604 else
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16608 #include <stddef.h>
16610 _ACEOF
16611 case "$host_os" in
16612 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16613 *) gl_absname_cpp="$ac_cpp" ;;
16614 esac
16615 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16616 sed -n '\#/stddef.h#{
16617 s#.*"\(.*/stddef.h\)".*#\1#
16618 s#^/[^/]#//&#
16621 }'`'"'
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16626 $as_echo "$gl_cv_next_stddef_h" >&6; }
16628 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16630 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16632 gl_next_as_first_directive='<'stddef.h'>'
16633 else
16634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16635 gl_next_as_first_directive=$gl_cv_next_stddef_h
16637 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16644 # Code from module stdint:
16648 if test $ac_cv_type_long_long_int = yes; then
16649 HAVE_LONG_LONG_INT=1
16650 else
16651 HAVE_LONG_LONG_INT=0
16655 if test $ac_cv_type_unsigned_long_long_int = yes; then
16656 HAVE_UNSIGNED_LONG_LONG_INT=1
16657 else
16658 HAVE_UNSIGNED_LONG_LONG_INT=0
16663 if test $ac_cv_header_wchar_h = yes; then
16664 HAVE_WCHAR_H=1
16665 else
16666 HAVE_WCHAR_H=0
16670 if test $ac_cv_header_inttypes_h = yes; then
16671 HAVE_INTTYPES_H=1
16672 else
16673 HAVE_INTTYPES_H=0
16677 if test $ac_cv_header_sys_types_h = yes; then
16678 HAVE_SYS_TYPES_H=1
16679 else
16680 HAVE_SYS_TYPES_H=0
16693 if test $gl_cv_have_include_next = yes; then
16694 gl_cv_next_stdint_h='<'stdint.h'>'
16695 else
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16697 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16698 if ${gl_cv_next_stdint_h+:} false; then :
16699 $as_echo_n "(cached) " >&6
16700 else
16702 if test $ac_cv_header_stdint_h = yes; then
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16707 #include <stdint.h>
16709 _ACEOF
16710 case "$host_os" in
16711 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16712 *) gl_absname_cpp="$ac_cpp" ;;
16713 esac
16714 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16715 sed -n '\#/stdint.h#{
16716 s#.*"\(.*/stdint.h\)".*#\1#
16717 s#^/[^/]#//&#
16720 }'`'"'
16721 else
16722 gl_cv_next_stdint_h='<'stdint.h'>'
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16728 $as_echo "$gl_cv_next_stdint_h" >&6; }
16730 NEXT_STDINT_H=$gl_cv_next_stdint_h
16732 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16733 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16734 gl_next_as_first_directive='<'stdint.h'>'
16735 else
16736 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16737 gl_next_as_first_directive=$gl_cv_next_stdint_h
16739 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16744 if test $ac_cv_header_stdint_h = yes; then
16745 HAVE_STDINT_H=1
16746 else
16747 HAVE_STDINT_H=0
16751 if test $ac_cv_header_stdint_h = yes; then
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16753 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16754 if ${gl_cv_header_working_stdint_h+:} false; then :
16755 $as_echo_n "(cached) " >&6
16756 else
16757 gl_cv_header_working_stdint_h=no
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h. */
16762 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16763 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16764 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16765 #include <stdint.h>
16766 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16767 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16768 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16769 #endif
16772 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16773 included before <wchar.h>. */
16774 #include <stddef.h>
16775 #include <signal.h>
16776 #if HAVE_WCHAR_H
16777 # include <stdio.h>
16778 # include <time.h>
16779 # include <wchar.h>
16780 #endif
16783 #ifdef INT8_MAX
16784 int8_t a1 = INT8_MAX;
16785 int8_t a1min = INT8_MIN;
16786 #endif
16787 #ifdef INT16_MAX
16788 int16_t a2 = INT16_MAX;
16789 int16_t a2min = INT16_MIN;
16790 #endif
16791 #ifdef INT32_MAX
16792 int32_t a3 = INT32_MAX;
16793 int32_t a3min = INT32_MIN;
16794 #endif
16795 #ifdef INT64_MAX
16796 int64_t a4 = INT64_MAX;
16797 int64_t a4min = INT64_MIN;
16798 #endif
16799 #ifdef UINT8_MAX
16800 uint8_t b1 = UINT8_MAX;
16801 #else
16802 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16803 #endif
16804 #ifdef UINT16_MAX
16805 uint16_t b2 = UINT16_MAX;
16806 #endif
16807 #ifdef UINT32_MAX
16808 uint32_t b3 = UINT32_MAX;
16809 #endif
16810 #ifdef UINT64_MAX
16811 uint64_t b4 = UINT64_MAX;
16812 #endif
16813 int_least8_t c1 = INT8_C (0x7f);
16814 int_least8_t c1max = INT_LEAST8_MAX;
16815 int_least8_t c1min = INT_LEAST8_MIN;
16816 int_least16_t c2 = INT16_C (0x7fff);
16817 int_least16_t c2max = INT_LEAST16_MAX;
16818 int_least16_t c2min = INT_LEAST16_MIN;
16819 int_least32_t c3 = INT32_C (0x7fffffff);
16820 int_least32_t c3max = INT_LEAST32_MAX;
16821 int_least32_t c3min = INT_LEAST32_MIN;
16822 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16823 int_least64_t c4max = INT_LEAST64_MAX;
16824 int_least64_t c4min = INT_LEAST64_MIN;
16825 uint_least8_t d1 = UINT8_C (0xff);
16826 uint_least8_t d1max = UINT_LEAST8_MAX;
16827 uint_least16_t d2 = UINT16_C (0xffff);
16828 uint_least16_t d2max = UINT_LEAST16_MAX;
16829 uint_least32_t d3 = UINT32_C (0xffffffff);
16830 uint_least32_t d3max = UINT_LEAST32_MAX;
16831 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16832 uint_least64_t d4max = UINT_LEAST64_MAX;
16833 int_fast8_t e1 = INT_FAST8_MAX;
16834 int_fast8_t e1min = INT_FAST8_MIN;
16835 int_fast16_t e2 = INT_FAST16_MAX;
16836 int_fast16_t e2min = INT_FAST16_MIN;
16837 int_fast32_t e3 = INT_FAST32_MAX;
16838 int_fast32_t e3min = INT_FAST32_MIN;
16839 int_fast64_t e4 = INT_FAST64_MAX;
16840 int_fast64_t e4min = INT_FAST64_MIN;
16841 uint_fast8_t f1 = UINT_FAST8_MAX;
16842 uint_fast16_t f2 = UINT_FAST16_MAX;
16843 uint_fast32_t f3 = UINT_FAST32_MAX;
16844 uint_fast64_t f4 = UINT_FAST64_MAX;
16845 #ifdef INTPTR_MAX
16846 intptr_t g = INTPTR_MAX;
16847 intptr_t gmin = INTPTR_MIN;
16848 #endif
16849 #ifdef UINTPTR_MAX
16850 uintptr_t h = UINTPTR_MAX;
16851 #endif
16852 intmax_t i = INTMAX_MAX;
16853 uintmax_t j = UINTMAX_MAX;
16855 #include <limits.h> /* for CHAR_BIT */
16856 #define TYPE_MINIMUM(t) \
16857 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16858 #define TYPE_MAXIMUM(t) \
16859 ((t) ((t) 0 < (t) -1 \
16860 ? (t) -1 \
16861 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16862 struct s {
16863 int check_PTRDIFF:
16864 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16865 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16866 ? 1 : -1;
16867 /* Detect bug in FreeBSD 6.0 / ia64. */
16868 int check_SIG_ATOMIC:
16869 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16870 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16871 ? 1 : -1;
16872 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16873 int check_WCHAR:
16874 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16875 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16876 ? 1 : -1;
16877 /* Detect bug in mingw. */
16878 int check_WINT:
16879 WINT_MIN == TYPE_MINIMUM (wint_t)
16880 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16881 ? 1 : -1;
16883 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16884 int check_UINT8_C:
16885 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16886 int check_UINT16_C:
16887 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16889 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16890 #ifdef UINT8_MAX
16891 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16892 #endif
16893 #ifdef UINT16_MAX
16894 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16895 #endif
16896 #ifdef UINT32_MAX
16897 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16898 #endif
16899 #ifdef UINT64_MAX
16900 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16901 #endif
16902 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16903 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16904 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16905 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16906 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16907 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16908 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16909 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16910 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16911 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16912 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16916 main ()
16920 return 0;
16922 _ACEOF
16923 if ac_fn_c_try_compile "$LINENO"; then :
16924 if test "$cross_compiling" = yes; then :
16925 gl_cv_header_working_stdint_h=yes
16927 else
16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h. */
16932 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16933 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16934 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16935 #include <stdint.h>
16938 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16939 included before <wchar.h>. */
16940 #include <stddef.h>
16941 #include <signal.h>
16942 #if HAVE_WCHAR_H
16943 # include <stdio.h>
16944 # include <time.h>
16945 # include <wchar.h>
16946 #endif
16949 #include <stdio.h>
16950 #include <string.h>
16951 #define MVAL(macro) MVAL1(macro)
16952 #define MVAL1(expression) #expression
16953 static const char *macro_values[] =
16955 #ifdef INT8_MAX
16956 MVAL (INT8_MAX),
16957 #endif
16958 #ifdef INT16_MAX
16959 MVAL (INT16_MAX),
16960 #endif
16961 #ifdef INT32_MAX
16962 MVAL (INT32_MAX),
16963 #endif
16964 #ifdef INT64_MAX
16965 MVAL (INT64_MAX),
16966 #endif
16967 #ifdef UINT8_MAX
16968 MVAL (UINT8_MAX),
16969 #endif
16970 #ifdef UINT16_MAX
16971 MVAL (UINT16_MAX),
16972 #endif
16973 #ifdef UINT32_MAX
16974 MVAL (UINT32_MAX),
16975 #endif
16976 #ifdef UINT64_MAX
16977 MVAL (UINT64_MAX),
16978 #endif
16979 NULL
16983 main ()
16986 const char **mv;
16987 for (mv = macro_values; *mv != NULL; mv++)
16989 const char *value = *mv;
16990 /* Test whether it looks like a cast expression. */
16991 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16992 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16993 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16994 || strncmp (value, "((int)"/*)*/, 6) == 0
16995 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16996 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16997 return mv - macro_values + 1;
16999 return 0;
17002 return 0;
17004 _ACEOF
17005 if ac_fn_c_try_run "$LINENO"; then :
17006 gl_cv_header_working_stdint_h=yes
17008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17009 conftest.$ac_objext conftest.beam conftest.$ac_ext
17014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17018 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17020 if test "$gl_cv_header_working_stdint_h" = yes; then
17021 STDINT_H=
17022 else
17023 for ac_header in sys/inttypes.h sys/bitypes.h
17024 do :
17025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17026 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17027 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17028 cat >>confdefs.h <<_ACEOF
17029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17030 _ACEOF
17034 done
17036 if test $ac_cv_header_sys_inttypes_h = yes; then
17037 HAVE_SYS_INTTYPES_H=1
17038 else
17039 HAVE_SYS_INTTYPES_H=0
17042 if test $ac_cv_header_sys_bitypes_h = yes; then
17043 HAVE_SYS_BITYPES_H=1
17044 else
17045 HAVE_SYS_BITYPES_H=0
17051 if test $APPLE_UNIVERSAL_BUILD = 0; then
17054 for gltype in ptrdiff_t size_t ; do
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17056 $as_echo_n "checking for bit size of $gltype... " >&6; }
17057 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17058 $as_echo_n "(cached) " >&6
17059 else
17060 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17061 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17062 included before <wchar.h>. */
17063 #include <stddef.h>
17064 #include <signal.h>
17065 #if HAVE_WCHAR_H
17066 # include <stdio.h>
17067 # include <time.h>
17068 # include <wchar.h>
17069 #endif
17071 #include <limits.h>"; then :
17073 else
17074 result=unknown
17077 eval gl_cv_bitsizeof_${gltype}=\$result
17080 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17082 $as_echo "$ac_res" >&6; }
17083 eval result=\$gl_cv_bitsizeof_${gltype}
17084 if test $result = unknown; then
17085 result=0
17087 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17088 cat >>confdefs.h <<_ACEOF
17089 #define BITSIZEOF_${GLTYPE} $result
17090 _ACEOF
17092 eval BITSIZEOF_${GLTYPE}=\$result
17093 done
17099 for gltype in sig_atomic_t wchar_t wint_t ; do
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17101 $as_echo_n "checking for bit size of $gltype... " >&6; }
17102 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17103 $as_echo_n "(cached) " >&6
17104 else
17105 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17106 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17107 included before <wchar.h>. */
17108 #include <stddef.h>
17109 #include <signal.h>
17110 #if HAVE_WCHAR_H
17111 # include <stdio.h>
17112 # include <time.h>
17113 # include <wchar.h>
17114 #endif
17116 #include <limits.h>"; then :
17118 else
17119 result=unknown
17122 eval gl_cv_bitsizeof_${gltype}=\$result
17125 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17127 $as_echo "$ac_res" >&6; }
17128 eval result=\$gl_cv_bitsizeof_${gltype}
17129 if test $result = unknown; then
17130 result=0
17132 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17133 cat >>confdefs.h <<_ACEOF
17134 #define BITSIZEOF_${GLTYPE} $result
17135 _ACEOF
17137 eval BITSIZEOF_${GLTYPE}=\$result
17138 done
17143 for gltype in sig_atomic_t wchar_t wint_t ; do
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17145 $as_echo_n "checking whether $gltype is signed... " >&6; }
17146 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
17147 $as_echo_n "(cached) " >&6
17148 else
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17152 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17153 included before <wchar.h>. */
17154 #include <stddef.h>
17155 #include <signal.h>
17156 #if HAVE_WCHAR_H
17157 # include <stdio.h>
17158 # include <time.h>
17159 # include <wchar.h>
17160 #endif
17162 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17164 main ()
17168 return 0;
17170 _ACEOF
17171 if ac_fn_c_try_compile "$LINENO"; then :
17172 result=yes
17173 else
17174 result=no
17176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17177 eval gl_cv_type_${gltype}_signed=\$result
17180 eval ac_res=\$gl_cv_type_${gltype}_signed
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17182 $as_echo "$ac_res" >&6; }
17183 eval result=\$gl_cv_type_${gltype}_signed
17184 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17185 if test "$result" = yes; then
17186 cat >>confdefs.h <<_ACEOF
17187 #define HAVE_SIGNED_${GLTYPE} 1
17188 _ACEOF
17190 eval HAVE_SIGNED_${GLTYPE}=1
17191 else
17192 eval HAVE_SIGNED_${GLTYPE}=0
17194 done
17197 gl_cv_type_ptrdiff_t_signed=yes
17198 gl_cv_type_size_t_signed=no
17199 if test $APPLE_UNIVERSAL_BUILD = 0; then
17202 for gltype in ptrdiff_t size_t ; do
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17204 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17205 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
17206 $as_echo_n "(cached) " >&6
17207 else
17208 eval gl_cv_type_${gltype}_suffix=no
17209 eval result=\$gl_cv_type_${gltype}_signed
17210 if test "$result" = yes; then
17211 glsufu=
17212 else
17213 glsufu=u
17215 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17216 case $glsuf in
17217 '') gltype1='int';;
17218 l) gltype1='long int';;
17219 ll) gltype1='long long int';;
17220 i64) gltype1='__int64';;
17221 u) gltype1='unsigned int';;
17222 ul) gltype1='unsigned long int';;
17223 ull) gltype1='unsigned long long int';;
17224 ui64)gltype1='unsigned __int64';;
17225 esac
17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227 /* end confdefs.h. */
17229 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17230 included before <wchar.h>. */
17231 #include <stddef.h>
17232 #include <signal.h>
17233 #if HAVE_WCHAR_H
17234 # include <stdio.h>
17235 # include <time.h>
17236 # include <wchar.h>
17237 #endif
17239 extern $gltype foo;
17240 extern $gltype1 foo;
17242 main ()
17246 return 0;
17248 _ACEOF
17249 if ac_fn_c_try_compile "$LINENO"; then :
17250 eval gl_cv_type_${gltype}_suffix=\$glsuf
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253 eval result=\$gl_cv_type_${gltype}_suffix
17254 test "$result" != no && break
17255 done
17257 eval ac_res=\$gl_cv_type_${gltype}_suffix
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17259 $as_echo "$ac_res" >&6; }
17260 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17261 eval result=\$gl_cv_type_${gltype}_suffix
17262 test "$result" = no && result=
17263 eval ${GLTYPE}_SUFFIX=\$result
17264 cat >>confdefs.h <<_ACEOF
17265 #define ${GLTYPE}_SUFFIX $result
17266 _ACEOF
17268 done
17274 for gltype in sig_atomic_t wchar_t wint_t ; do
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17276 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17277 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
17278 $as_echo_n "(cached) " >&6
17279 else
17280 eval gl_cv_type_${gltype}_suffix=no
17281 eval result=\$gl_cv_type_${gltype}_signed
17282 if test "$result" = yes; then
17283 glsufu=
17284 else
17285 glsufu=u
17287 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17288 case $glsuf in
17289 '') gltype1='int';;
17290 l) gltype1='long int';;
17291 ll) gltype1='long long int';;
17292 i64) gltype1='__int64';;
17293 u) gltype1='unsigned int';;
17294 ul) gltype1='unsigned long int';;
17295 ull) gltype1='unsigned long long int';;
17296 ui64)gltype1='unsigned __int64';;
17297 esac
17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299 /* end confdefs.h. */
17301 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17302 included before <wchar.h>. */
17303 #include <stddef.h>
17304 #include <signal.h>
17305 #if HAVE_WCHAR_H
17306 # include <stdio.h>
17307 # include <time.h>
17308 # include <wchar.h>
17309 #endif
17311 extern $gltype foo;
17312 extern $gltype1 foo;
17314 main ()
17318 return 0;
17320 _ACEOF
17321 if ac_fn_c_try_compile "$LINENO"; then :
17322 eval gl_cv_type_${gltype}_suffix=\$glsuf
17324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17325 eval result=\$gl_cv_type_${gltype}_suffix
17326 test "$result" != no && break
17327 done
17329 eval ac_res=\$gl_cv_type_${gltype}_suffix
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17331 $as_echo "$ac_res" >&6; }
17332 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17333 eval result=\$gl_cv_type_${gltype}_suffix
17334 test "$result" = no && result=
17335 eval ${GLTYPE}_SUFFIX=\$result
17336 cat >>confdefs.h <<_ACEOF
17337 #define ${GLTYPE}_SUFFIX $result
17338 _ACEOF
17340 done
17344 STDINT_H=stdint.h
17348 # Code from module stdlib:
17359 if test $gl_cv_have_include_next = yes; then
17360 gl_cv_next_stdlib_h='<'stdlib.h'>'
17361 else
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17363 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17364 if ${gl_cv_next_stdlib_h+:} false; then :
17365 $as_echo_n "(cached) " >&6
17366 else
17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369 /* end confdefs.h. */
17370 #include <stdlib.h>
17372 _ACEOF
17373 case "$host_os" in
17374 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17375 *) gl_absname_cpp="$ac_cpp" ;;
17376 esac
17377 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17378 sed -n '\#/stdlib.h#{
17379 s#.*"\(.*/stdlib.h\)".*#\1#
17380 s#^/[^/]#//&#
17383 }'`'"'
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17388 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17390 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17392 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17393 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17394 gl_next_as_first_directive='<'stdlib.h'>'
17395 else
17396 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17397 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17399 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17407 # Code from module strftime:
17418 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
17421 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17429 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17433 # Code from module symlink:
17437 if test $ac_cv_func_symlink = no; then
17438 HAVE_SYMLINK=0
17447 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17449 else
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17451 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17452 if ${gl_cv_func_symlink_works+:} false; then :
17453 $as_echo_n "(cached) " >&6
17454 else
17455 if test "$cross_compiling" = yes; then :
17456 gl_cv_func_symlink_works="guessing no"
17457 else
17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h. */
17460 #include <unistd.h>
17463 main ()
17465 int result = 0;
17466 if (!symlink ("a", "conftest.link/"))
17467 result |= 1;
17468 if (symlink ("conftest.f", "conftest.lnk2"))
17469 result |= 2;
17470 else if (!symlink ("a", "conftest.lnk2/"))
17471 result |= 4;
17472 return result;
17475 return 0;
17477 _ACEOF
17478 if ac_fn_c_try_run "$LINENO"; then :
17479 gl_cv_func_symlink_works=yes
17480 else
17481 gl_cv_func_symlink_works=no
17483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17484 conftest.$ac_objext conftest.beam conftest.$ac_ext
17487 rm -f conftest.f conftest.link conftest.lnk2
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17490 $as_echo "$gl_cv_func_symlink_works" >&6; }
17491 if test "$gl_cv_func_symlink_works" != yes; then
17492 REPLACE_SYMLINK=1
17501 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17509 GNULIB_SYMLINK=1
17513 # Code from module sys_stat:
17530 if test $gl_cv_have_include_next = yes; then
17531 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17532 else
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17534 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17535 if ${gl_cv_next_sys_stat_h+:} false; then :
17536 $as_echo_n "(cached) " >&6
17537 else
17539 if test $ac_cv_header_sys_stat_h = yes; then
17542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17543 /* end confdefs.h. */
17544 #include <sys/stat.h>
17546 _ACEOF
17547 case "$host_os" in
17548 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17549 *) gl_absname_cpp="$ac_cpp" ;;
17550 esac
17551 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17552 sed -n '\#/sys/stat.h#{
17553 s#.*"\(.*/sys/stat.h\)".*#\1#
17554 s#^/[^/]#//&#
17557 }'`'"'
17558 else
17559 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17565 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17567 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17569 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17570 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17571 gl_next_as_first_directive='<'sys/stat.h'>'
17572 else
17573 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17574 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17576 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17582 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17583 #include <sys/stat.h>
17585 if test "x$ac_cv_type_nlink_t" = xyes; then :
17587 else
17589 $as_echo "#define nlink_t int" >>confdefs.h
17597 # Code from module time:
17601 # Code from module time_r:
17609 if test $ac_cv_have_decl_localtime_r = no; then
17610 HAVE_DECL_LOCALTIME_R=0
17614 if test $ac_cv_func_localtime_r = yes; then
17615 HAVE_LOCALTIME_R=1
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17617 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17618 if ${gl_cv_time_r_posix+:} false; then :
17619 $as_echo_n "(cached) " >&6
17620 else
17621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17622 /* end confdefs.h. */
17623 #include <time.h>
17625 main ()
17627 /* We don't need to append 'restrict's to the argument types,
17628 even though the POSIX signature has the 'restrict's,
17629 since C99 says they can't affect type compatibility. */
17630 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17631 if (ptr) return 0;
17632 /* Check the return type is a pointer.
17633 On HP-UX 10 it is 'int'. */
17634 *localtime_r (0, 0);
17636 return 0;
17639 _ACEOF
17640 if ac_fn_c_try_compile "$LINENO"; then :
17641 gl_cv_time_r_posix=yes
17642 else
17643 gl_cv_time_r_posix=no
17645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17649 $as_echo "$gl_cv_time_r_posix" >&6; }
17650 if test $gl_cv_time_r_posix = yes; then
17651 REPLACE_LOCALTIME_R=0
17652 else
17653 REPLACE_LOCALTIME_R=1
17655 else
17656 HAVE_LOCALTIME_R=0
17658 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
17667 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
17677 GNULIB_TIME_R=1
17681 # Code from module unistd:
17695 if test $gl_cv_have_include_next = yes; then
17696 gl_cv_next_unistd_h='<'unistd.h'>'
17697 else
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17699 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17700 if ${gl_cv_next_unistd_h+:} false; then :
17701 $as_echo_n "(cached) " >&6
17702 else
17704 if test $ac_cv_header_unistd_h = yes; then
17707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17709 #include <unistd.h>
17711 _ACEOF
17712 case "$host_os" in
17713 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17714 *) gl_absname_cpp="$ac_cpp" ;;
17715 esac
17716 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17717 sed -n '\#/unistd.h#{
17718 s#.*"\(.*/unistd.h\)".*#\1#
17719 s#^/[^/]#//&#
17722 }'`'"'
17723 else
17724 gl_cv_next_unistd_h='<'unistd.h'>'
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17730 $as_echo "$gl_cv_next_unistd_h" >&6; }
17732 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17734 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17736 gl_next_as_first_directive='<'unistd.h'>'
17737 else
17738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17739 gl_next_as_first_directive=$gl_cv_next_unistd_h
17741 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17746 if test $ac_cv_header_unistd_h = yes; then
17747 HAVE_UNISTD_H=1
17748 else
17749 HAVE_UNISTD_H=0
17755 # Code from module warn-on-use:
17756 # End of code from modules
17766 gltests_libdeps=
17767 gltests_ltlibdeps=
17777 gl_source_base='tests'
17778 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
17780 gl_module_indicator_condition=$gltests_WITNESS
17790 LIBGNU_LIBDEPS="$gl_libdeps"
17792 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17796 # UNIX98 PTYs.
17797 for ac_func in grantpt
17798 do :
17799 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
17800 if test "x$ac_cv_func_grantpt" = xyes; then :
17801 cat >>confdefs.h <<_ACEOF
17802 #define HAVE_GRANTPT 1
17803 _ACEOF
17806 done
17809 # PTY-related GNU extensions.
17810 for ac_func in getpt
17811 do :
17812 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
17813 if test "x$ac_cv_func_getpt" = xyes; then :
17814 cat >>confdefs.h <<_ACEOF
17815 #define HAVE_GETPT 1
17816 _ACEOF
17819 done
17822 # Check this now, so that we will NOT find the above functions in ncurses.
17823 # That is because we have not set up to link ncurses in lib-src.
17824 # It's better to believe a function is not available
17825 # than to expect to find it in ncurses.
17826 # Also we need tputs and friends to be able to build at all.
17827 have_tputs_et_al=true
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17829 $as_echo_n "checking for library containing tputs... " >&6; }
17830 if ${ac_cv_search_tputs+:} false; then :
17831 $as_echo_n "(cached) " >&6
17832 else
17833 ac_func_search_save_LIBS=$LIBS
17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17837 /* Override any GCC internal prototype to avoid an error.
17838 Use char because int might match the return type of a GCC
17839 builtin and then its argument prototype would still apply. */
17840 #ifdef __cplusplus
17841 extern "C"
17842 #endif
17843 char tputs ();
17845 main ()
17847 return tputs ();
17849 return 0;
17851 _ACEOF
17852 for ac_lib in '' ncurses terminfo termcap; do
17853 if test -z "$ac_lib"; then
17854 ac_res="none required"
17855 else
17856 ac_res=-l$ac_lib
17857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17859 if ac_fn_c_try_link "$LINENO"; then :
17860 ac_cv_search_tputs=$ac_res
17862 rm -f core conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext
17864 if ${ac_cv_search_tputs+:} false; then :
17865 break
17867 done
17868 if ${ac_cv_search_tputs+:} false; then :
17870 else
17871 ac_cv_search_tputs=no
17873 rm conftest.$ac_ext
17874 LIBS=$ac_func_search_save_LIBS
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17877 $as_echo "$ac_cv_search_tputs" >&6; }
17878 ac_res=$ac_cv_search_tputs
17879 if test "$ac_res" != no; then :
17880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17882 else
17883 have_tputs_et_al=false
17886 if test "$have_tputs_et_al" != true; then
17887 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
17888 Maybe some development libraries/packages are missing? Try installing
17889 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17891 # Must define this when any termcap library is found.
17893 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17895 ## FIXME This was the cpp logic, but I am not sure it is right.
17896 ## The above test has not necessarily found libncurses.
17897 HAVE_LIBNCURSES=yes
17899 ## Use terminfo instead of termcap?
17900 ## Note only system files NOT using terminfo are:
17901 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17902 ## darwin|gnu without ncurses.
17903 TERMINFO=no
17904 LIBS_TERMCAP=
17905 case "$opsys" in
17906 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17907 ## hpux10-20: Use the system provided termcap(3) library.
17908 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17909 ## is necessary. Otherwise Emacs dumps core when run -nw.
17910 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
17912 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17913 ## The ncurses library has been moved out of the System framework in
17914 ## Mac OS X 10.2. So if configure detects it, set the command-line
17915 ## option to use it.
17916 darwin|gnu*)
17917 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17918 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17919 TERMINFO=yes
17920 LIBS_TERMCAP="-lncurses"
17924 freebsd)
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17926 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17927 if ${emacs_cv_freebsd_terminfo+:} false; then :
17928 $as_echo_n "(cached) " >&6
17929 else
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17932 #include <osreldate.h>
17934 main ()
17936 #if __FreeBSD_version < 400000
17937 fail;
17938 #endif
17941 return 0;
17943 _ACEOF
17944 if ac_fn_c_try_link "$LINENO"; then :
17945 emacs_cv_freebsd_terminfo=yes
17946 else
17947 emacs_cv_freebsd_terminfo=no
17949 rm -f core conftest.err conftest.$ac_objext \
17950 conftest$ac_exeext conftest.$ac_ext
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17955 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17957 if test $emacs_cv_freebsd_terminfo = yes; then
17958 TERMINFO=yes
17959 LIBS_TERMCAP="-lncurses"
17960 else
17961 LIBS_TERMCAP="-ltermcap"
17965 netbsd)
17966 if test $ac_cv_search_tputs = -lterminfo; then
17967 TERMINFO=yes
17968 LIBS_TERMCAP="-lterminfo"
17969 else
17970 LIBS_TERMCAP="-ltermcap"
17974 esac
17976 case "$opsys" in
17977 ## hpux: Make sure we get select from libc rather than from libcurses
17978 ## because libcurses on HPUX 10.10 has a broken version of select.
17979 ## We used to use -lc -lcurses, but this may be cleaner.
17980 hpux*) LIBS_TERMCAP="-ltermcap" ;;
17982 openbsd) LIBS_TERMCAP="-lncurses" ;;
17984 ## Must use system termcap, if we use any termcap. It does special things.
17985 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
17986 esac
17988 TERMCAP_OBJ=tparam.o
17989 if test $TERMINFO = yes; then
17991 $as_echo "#define TERMINFO 1" >>confdefs.h
17994 ## Default used to be -ltermcap. Add a case above if need something else.
17995 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
17997 TERMCAP_OBJ=terminfo.o
18003 # Do we have res_init, for detecting changes in /etc/resolv.conf?
18004 resolv=no
18005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006 /* end confdefs.h. */
18007 #include <netinet/in.h>
18008 #include <arpa/nameser.h>
18009 #include <resolv.h>
18011 main ()
18013 return res_init();
18015 return 0;
18017 _ACEOF
18018 if ac_fn_c_try_link "$LINENO"; then :
18019 have_res_init=yes
18020 else
18021 have_res_init=no
18023 rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025 if test "$have_res_init" = no; then
18026 OLIBS="$LIBS"
18027 LIBS="$LIBS -lresolv"
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
18029 $as_echo_n "checking for res_init with -lresolv... " >&6; }
18030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h. */
18032 #include <netinet/in.h>
18033 #include <arpa/nameser.h>
18034 #include <resolv.h>
18036 main ()
18038 return res_init();
18040 return 0;
18042 _ACEOF
18043 if ac_fn_c_try_link "$LINENO"; then :
18044 have_res_init=yes
18045 else
18046 have_res_init=no
18048 rm -f core conftest.err conftest.$ac_objext \
18049 conftest$ac_exeext conftest.$ac_ext
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18051 $as_echo "$have_res_init" >&6; }
18052 if test "$have_res_init" = yes ; then
18053 resolv=yes
18055 LIBS="$OLIBS"
18058 if test "$have_res_init" = yes; then
18060 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18064 # Do we need the Hesiod library to provide the support routines?
18065 LIBHESIOD=
18066 if test "$with_hesiod" != no ; then
18067 # Don't set $LIBS here -- see comments above. FIXME which comments?
18068 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
18069 if test "x$ac_cv_func_res_send" = xyes; then :
18071 else
18072 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
18073 if test "x$ac_cv_func___res_send" = xyes; then :
18075 else
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18077 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18078 if ${ac_cv_lib_resolv_res_send+:} false; then :
18079 $as_echo_n "(cached) " >&6
18080 else
18081 ac_check_lib_save_LIBS=$LIBS
18082 LIBS="-lresolv $LIBS"
18083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h. */
18086 /* Override any GCC internal prototype to avoid an error.
18087 Use char because int might match the return type of a GCC
18088 builtin and then its argument prototype would still apply. */
18089 #ifdef __cplusplus
18090 extern "C"
18091 #endif
18092 char res_send ();
18094 main ()
18096 return res_send ();
18098 return 0;
18100 _ACEOF
18101 if ac_fn_c_try_link "$LINENO"; then :
18102 ac_cv_lib_resolv_res_send=yes
18103 else
18104 ac_cv_lib_resolv_res_send=no
18106 rm -f core conftest.err conftest.$ac_objext \
18107 conftest$ac_exeext conftest.$ac_ext
18108 LIBS=$ac_check_lib_save_LIBS
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18111 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18112 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
18113 resolv=yes
18114 else
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18116 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18117 if ${ac_cv_lib_resolv___res_send+:} false; then :
18118 $as_echo_n "(cached) " >&6
18119 else
18120 ac_check_lib_save_LIBS=$LIBS
18121 LIBS="-lresolv $LIBS"
18122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h. */
18125 /* Override any GCC internal prototype to avoid an error.
18126 Use char because int might match the return type of a GCC
18127 builtin and then its argument prototype would still apply. */
18128 #ifdef __cplusplus
18129 extern "C"
18130 #endif
18131 char __res_send ();
18133 main ()
18135 return __res_send ();
18137 return 0;
18139 _ACEOF
18140 if ac_fn_c_try_link "$LINENO"; then :
18141 ac_cv_lib_resolv___res_send=yes
18142 else
18143 ac_cv_lib_resolv___res_send=no
18145 rm -f core conftest.err conftest.$ac_objext \
18146 conftest$ac_exeext conftest.$ac_ext
18147 LIBS=$ac_check_lib_save_LIBS
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18150 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18151 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
18152 resolv=yes
18161 if test "$resolv" = yes ; then
18162 RESOLVLIB=-lresolv
18163 else
18164 RESOLVLIB=
18166 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18167 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
18169 else
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18171 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18172 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
18173 $as_echo_n "(cached) " >&6
18174 else
18175 ac_check_lib_save_LIBS=$LIBS
18176 LIBS="-lhesiod $RESOLVLIB $LIBS"
18177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18180 /* Override any GCC internal prototype to avoid an error.
18181 Use char because int might match the return type of a GCC
18182 builtin and then its argument prototype would still apply. */
18183 #ifdef __cplusplus
18184 extern "C"
18185 #endif
18186 char hes_getmailhost ();
18188 main ()
18190 return hes_getmailhost ();
18192 return 0;
18194 _ACEOF
18195 if ac_fn_c_try_link "$LINENO"; then :
18196 ac_cv_lib_hesiod_hes_getmailhost=yes
18197 else
18198 ac_cv_lib_hesiod_hes_getmailhost=no
18200 rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
18202 LIBS=$ac_check_lib_save_LIBS
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18205 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18206 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
18207 hesiod=yes
18208 else
18215 if test x"$hesiod" = xyes; then
18217 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18219 LIBHESIOD=-lhesiod
18224 # Do we need libresolv (due to res_init or Hesiod)?
18225 if test "$resolv" = yes ; then
18227 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18229 LIBRESOLV=-lresolv
18230 else
18231 LIBRESOLV=
18235 # These tell us which Kerberos-related libraries to use.
18236 COM_ERRLIB=
18237 CRYPTOLIB=
18238 KRB5LIB=
18239 DESLIB=
18240 KRB4LIB=
18242 if test "${with_kerberos}" != no; then
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18244 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18245 if ${ac_cv_lib_com_err_com_err+:} false; then :
18246 $as_echo_n "(cached) " >&6
18247 else
18248 ac_check_lib_save_LIBS=$LIBS
18249 LIBS="-lcom_err $LIBS"
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18253 /* Override any GCC internal prototype to avoid an error.
18254 Use char because int might match the return type of a GCC
18255 builtin and then its argument prototype would still apply. */
18256 #ifdef __cplusplus
18257 extern "C"
18258 #endif
18259 char com_err ();
18261 main ()
18263 return com_err ();
18265 return 0;
18267 _ACEOF
18268 if ac_fn_c_try_link "$LINENO"; then :
18269 ac_cv_lib_com_err_com_err=yes
18270 else
18271 ac_cv_lib_com_err_com_err=no
18273 rm -f core conftest.err conftest.$ac_objext \
18274 conftest$ac_exeext conftest.$ac_ext
18275 LIBS=$ac_check_lib_save_LIBS
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18278 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18279 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
18280 have_com_err=yes
18281 else
18282 have_com_err=no
18285 if test $have_com_err = yes; then
18286 COM_ERRLIB=-lcom_err
18287 LIBS="$COM_ERRLIB $LIBS"
18289 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18293 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18294 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
18295 $as_echo_n "(cached) " >&6
18296 else
18297 ac_check_lib_save_LIBS=$LIBS
18298 LIBS="-lcrypto $LIBS"
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18302 /* Override any GCC internal prototype to avoid an error.
18303 Use char because int might match the return type of a GCC
18304 builtin and then its argument prototype would still apply. */
18305 #ifdef __cplusplus
18306 extern "C"
18307 #endif
18308 char mit_des_cbc_encrypt ();
18310 main ()
18312 return mit_des_cbc_encrypt ();
18314 return 0;
18316 _ACEOF
18317 if ac_fn_c_try_link "$LINENO"; then :
18318 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18319 else
18320 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18322 rm -f core conftest.err conftest.$ac_objext \
18323 conftest$ac_exeext conftest.$ac_ext
18324 LIBS=$ac_check_lib_save_LIBS
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18327 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18328 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
18329 have_crypto=yes
18330 else
18331 have_crypto=no
18334 if test $have_crypto = yes; then
18335 CRYPTOLIB=-lcrypto
18336 LIBS="$CRYPTOLIB $LIBS"
18338 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18342 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18343 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
18344 $as_echo_n "(cached) " >&6
18345 else
18346 ac_check_lib_save_LIBS=$LIBS
18347 LIBS="-lk5crypto $LIBS"
18348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18349 /* end confdefs.h. */
18351 /* Override any GCC internal prototype to avoid an error.
18352 Use char because int might match the return type of a GCC
18353 builtin and then its argument prototype would still apply. */
18354 #ifdef __cplusplus
18355 extern "C"
18356 #endif
18357 char mit_des_cbc_encrypt ();
18359 main ()
18361 return mit_des_cbc_encrypt ();
18363 return 0;
18365 _ACEOF
18366 if ac_fn_c_try_link "$LINENO"; then :
18367 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18368 else
18369 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18371 rm -f core conftest.err conftest.$ac_objext \
18372 conftest$ac_exeext conftest.$ac_ext
18373 LIBS=$ac_check_lib_save_LIBS
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18376 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18377 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
18378 have_k5crypto=yes
18379 else
18380 have_k5crypto=no
18383 if test $have_k5crypto = yes; then
18384 CRYPTOLIB=-lk5crypto
18385 LIBS="$CRYPTOLIB $LIBS"
18387 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18391 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18392 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
18393 $as_echo_n "(cached) " >&6
18394 else
18395 ac_check_lib_save_LIBS=$LIBS
18396 LIBS="-lkrb5 $LIBS"
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18400 /* Override any GCC internal prototype to avoid an error.
18401 Use char because int might match the return type of a GCC
18402 builtin and then its argument prototype would still apply. */
18403 #ifdef __cplusplus
18404 extern "C"
18405 #endif
18406 char krb5_init_context ();
18408 main ()
18410 return krb5_init_context ();
18412 return 0;
18414 _ACEOF
18415 if ac_fn_c_try_link "$LINENO"; then :
18416 ac_cv_lib_krb5_krb5_init_context=yes
18417 else
18418 ac_cv_lib_krb5_krb5_init_context=no
18420 rm -f core conftest.err conftest.$ac_objext \
18421 conftest$ac_exeext conftest.$ac_ext
18422 LIBS=$ac_check_lib_save_LIBS
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18425 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18426 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
18427 have_krb5=yes
18428 else
18429 have_krb5=no
18432 if test $have_krb5=yes; then
18433 KRB5LIB=-lkrb5
18434 LIBS="$KRB5LIB $LIBS"
18436 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18439 if test "${with_kerberos5}" = no; then
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18441 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18442 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
18443 $as_echo_n "(cached) " >&6
18444 else
18445 ac_check_lib_save_LIBS=$LIBS
18446 LIBS="-ldes425 $LIBS"
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18450 /* Override any GCC internal prototype to avoid an error.
18451 Use char because int might match the return type of a GCC
18452 builtin and then its argument prototype would still apply. */
18453 #ifdef __cplusplus
18454 extern "C"
18455 #endif
18456 char des_cbc_encrypt ();
18458 main ()
18460 return des_cbc_encrypt ();
18462 return 0;
18464 _ACEOF
18465 if ac_fn_c_try_link "$LINENO"; then :
18466 ac_cv_lib_des425_des_cbc_encrypt=yes
18467 else
18468 ac_cv_lib_des425_des_cbc_encrypt=no
18470 rm -f core conftest.err conftest.$ac_objext \
18471 conftest$ac_exeext conftest.$ac_ext
18472 LIBS=$ac_check_lib_save_LIBS
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18475 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18476 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
18477 have_des425=yes
18478 else
18479 have_des425=no
18482 if test $have_des425 = yes; then
18483 DESLIB=-ldes425
18484 LIBS="$DESLIB $LIBS"
18486 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18488 else
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18490 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18491 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
18492 $as_echo_n "(cached) " >&6
18493 else
18494 ac_check_lib_save_LIBS=$LIBS
18495 LIBS="-ldes $LIBS"
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18499 /* Override any GCC internal prototype to avoid an error.
18500 Use char because int might match the return type of a GCC
18501 builtin and then its argument prototype would still apply. */
18502 #ifdef __cplusplus
18503 extern "C"
18504 #endif
18505 char des_cbc_encrypt ();
18507 main ()
18509 return des_cbc_encrypt ();
18511 return 0;
18513 _ACEOF
18514 if ac_fn_c_try_link "$LINENO"; then :
18515 ac_cv_lib_des_des_cbc_encrypt=yes
18516 else
18517 ac_cv_lib_des_des_cbc_encrypt=no
18519 rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18521 LIBS=$ac_check_lib_save_LIBS
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18524 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18525 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
18526 have_des=yes
18527 else
18528 have_des=no
18531 if test $have_des = yes; then
18532 DESLIB=-ldes
18533 LIBS="$DESLIB $LIBS"
18535 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18540 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18541 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
18542 $as_echo_n "(cached) " >&6
18543 else
18544 ac_check_lib_save_LIBS=$LIBS
18545 LIBS="-lkrb4 $LIBS"
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h. */
18549 /* Override any GCC internal prototype to avoid an error.
18550 Use char because int might match the return type of a GCC
18551 builtin and then its argument prototype would still apply. */
18552 #ifdef __cplusplus
18553 extern "C"
18554 #endif
18555 char krb_get_cred ();
18557 main ()
18559 return krb_get_cred ();
18561 return 0;
18563 _ACEOF
18564 if ac_fn_c_try_link "$LINENO"; then :
18565 ac_cv_lib_krb4_krb_get_cred=yes
18566 else
18567 ac_cv_lib_krb4_krb_get_cred=no
18569 rm -f core conftest.err conftest.$ac_objext \
18570 conftest$ac_exeext conftest.$ac_ext
18571 LIBS=$ac_check_lib_save_LIBS
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18574 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18575 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
18576 have_krb4=yes
18577 else
18578 have_krb4=no
18581 if test $have_krb4 = yes; then
18582 KRB4LIB=-lkrb4
18583 LIBS="$KRB4LIB $LIBS"
18585 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18587 else
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18589 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18590 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
18591 $as_echo_n "(cached) " >&6
18592 else
18593 ac_check_lib_save_LIBS=$LIBS
18594 LIBS="-lkrb $LIBS"
18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596 /* end confdefs.h. */
18598 /* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18601 #ifdef __cplusplus
18602 extern "C"
18603 #endif
18604 char krb_get_cred ();
18606 main ()
18608 return krb_get_cred ();
18610 return 0;
18612 _ACEOF
18613 if ac_fn_c_try_link "$LINENO"; then :
18614 ac_cv_lib_krb_krb_get_cred=yes
18615 else
18616 ac_cv_lib_krb_krb_get_cred=no
18618 rm -f core conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18620 LIBS=$ac_check_lib_save_LIBS
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18623 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18624 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
18625 have_krb=yes
18626 else
18627 have_krb=no
18630 if test $have_krb = yes; then
18631 KRB4LIB=-lkrb
18632 LIBS="$KRB4LIB $LIBS"
18634 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18640 if test "${with_kerberos5}" != no; then
18641 for ac_header in krb5.h
18642 do :
18643 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18644 if test "x$ac_cv_header_krb5_h" = xyes; then :
18645 cat >>confdefs.h <<_ACEOF
18646 #define HAVE_KRB5_H 1
18647 _ACEOF
18648 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18650 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
18652 cat >>confdefs.h <<_ACEOF
18653 #define HAVE_KRB5_ERROR_TEXT 1
18654 _ACEOF
18658 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18660 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
18662 cat >>confdefs.h <<_ACEOF
18663 #define HAVE_KRB5_ERROR_E_TEXT 1
18664 _ACEOF
18671 done
18673 else
18674 for ac_header in des.h
18675 do :
18676 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18677 if test "x$ac_cv_header_des_h" = xyes; then :
18678 cat >>confdefs.h <<_ACEOF
18679 #define HAVE_DES_H 1
18680 _ACEOF
18682 else
18683 for ac_header in kerberosIV/des.h
18684 do :
18685 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18686 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
18687 cat >>confdefs.h <<_ACEOF
18688 #define HAVE_KERBEROSIV_DES_H 1
18689 _ACEOF
18691 else
18692 for ac_header in kerberos/des.h
18693 do :
18694 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18695 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
18696 cat >>confdefs.h <<_ACEOF
18697 #define HAVE_KERBEROS_DES_H 1
18698 _ACEOF
18702 done
18706 done
18710 done
18712 for ac_header in krb.h
18713 do :
18714 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18715 if test "x$ac_cv_header_krb_h" = xyes; then :
18716 cat >>confdefs.h <<_ACEOF
18717 #define HAVE_KRB_H 1
18718 _ACEOF
18720 else
18721 for ac_header in kerberosIV/krb.h
18722 do :
18723 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18724 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
18725 cat >>confdefs.h <<_ACEOF
18726 #define HAVE_KERBEROSIV_KRB_H 1
18727 _ACEOF
18729 else
18730 for ac_header in kerberos/krb.h
18731 do :
18732 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18733 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
18734 cat >>confdefs.h <<_ACEOF
18735 #define HAVE_KERBEROS_KRB_H 1
18736 _ACEOF
18740 done
18744 done
18748 done
18751 for ac_header in com_err.h
18752 do :
18753 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18754 if test "x$ac_cv_header_com_err_h" = xyes; then :
18755 cat >>confdefs.h <<_ACEOF
18756 #define HAVE_COM_ERR_H 1
18757 _ACEOF
18761 done
18771 # Solaris requires -lintl if you want strerror (which calls dgettext)
18772 # to return localized messages.
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18774 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18775 if ${ac_cv_lib_intl_dgettext+:} false; then :
18776 $as_echo_n "(cached) " >&6
18777 else
18778 ac_check_lib_save_LIBS=$LIBS
18779 LIBS="-lintl $LIBS"
18780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h. */
18783 /* Override any GCC internal prototype to avoid an error.
18784 Use char because int might match the return type of a GCC
18785 builtin and then its argument prototype would still apply. */
18786 #ifdef __cplusplus
18787 extern "C"
18788 #endif
18789 char dgettext ();
18791 main ()
18793 return dgettext ();
18795 return 0;
18797 _ACEOF
18798 if ac_fn_c_try_link "$LINENO"; then :
18799 ac_cv_lib_intl_dgettext=yes
18800 else
18801 ac_cv_lib_intl_dgettext=no
18803 rm -f core conftest.err conftest.$ac_objext \
18804 conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18808 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18809 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
18810 cat >>confdefs.h <<_ACEOF
18811 #define HAVE_LIBINTL 1
18812 _ACEOF
18814 LIBS="-lintl $LIBS"
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18820 $as_echo_n "checking whether localtime caches TZ... " >&6; }
18821 if ${emacs_cv_localtime_cache+:} false; then :
18822 $as_echo_n "(cached) " >&6
18823 else
18824 if test x$ac_cv_func_tzset = xyes; then
18825 if test "$cross_compiling" = yes; then :
18826 # If we have tzset, assume the worst when cross-compiling.
18827 emacs_cv_localtime_cache=yes
18828 else
18829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830 /* end confdefs.h. */
18831 #include <time.h>
18832 char TZ_GMT0[] = "TZ=GMT0";
18833 char TZ_PST8[] = "TZ=PST8";
18834 main()
18836 time_t now = time ((time_t *) 0);
18837 int hour_GMT0, hour_unset;
18838 if (putenv (TZ_GMT0) != 0)
18839 exit (1);
18840 hour_GMT0 = localtime (&now)->tm_hour;
18841 unsetenv("TZ");
18842 hour_unset = localtime (&now)->tm_hour;
18843 if (putenv (TZ_PST8) != 0)
18844 exit (1);
18845 if (localtime (&now)->tm_hour == hour_GMT0)
18846 exit (1);
18847 unsetenv("TZ");
18848 if (localtime (&now)->tm_hour != hour_unset)
18849 exit (1);
18850 exit (0);
18852 _ACEOF
18853 if ac_fn_c_try_run "$LINENO"; then :
18854 emacs_cv_localtime_cache=no
18855 else
18856 emacs_cv_localtime_cache=yes
18858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18859 conftest.$ac_objext conftest.beam conftest.$ac_ext
18862 else
18863 # If we lack tzset, report that localtime does not cache TZ,
18864 # since we can't invalidate the cache if we don't have tzset.
18865 emacs_cv_localtime_cache=no
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18869 $as_echo "$emacs_cv_localtime_cache" >&6; }
18870 if test $emacs_cv_localtime_cache = yes; then
18872 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18876 if test "x$HAVE_TIMEVAL" = xyes; then
18877 for ac_func in gettimeofday
18878 do :
18879 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18880 if test "x$ac_cv_func_gettimeofday" = xyes; then :
18881 cat >>confdefs.h <<_ACEOF
18882 #define HAVE_GETTIMEOFDAY 1
18883 _ACEOF
18886 done
18888 if test $ac_cv_func_gettimeofday = yes; then
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18890 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18891 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
18892 $as_echo_n "(cached) " >&6
18893 else
18894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895 /* end confdefs.h. */
18897 #ifdef TIME_WITH_SYS_TIME
18898 #include <sys/time.h>
18899 #include <time.h>
18900 #else
18901 #ifdef HAVE_SYS_TIME_H
18902 #include <sys/time.h>
18903 #else
18904 #include <time.h>
18905 #endif
18906 #endif
18908 main ()
18910 struct timeval time;
18911 gettimeofday (&time, 0);
18913 return 0;
18915 _ACEOF
18916 if ac_fn_c_try_compile "$LINENO"; then :
18917 emacs_cv_gettimeofday_two_arguments=yes
18918 else
18919 emacs_cv_gettimeofday_two_arguments=no
18921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18924 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18925 if test $emacs_cv_gettimeofday_two_arguments = no; then
18927 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18933 ok_so_far=yes
18934 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
18935 if test "x$ac_cv_func_socket" = xyes; then :
18937 else
18938 ok_so_far=no
18941 if test $ok_so_far = yes; then
18942 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18943 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
18945 else
18946 ok_so_far=no
18951 if test $ok_so_far = yes; then
18952 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18953 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
18955 else
18956 ok_so_far=no
18961 if test $ok_so_far = yes; then
18963 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18967 if test -f /usr/lpp/X11/bin/smt.exp; then
18969 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18974 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18975 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18977 $as_echo "yes" >&6; }
18979 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18981 else
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983 $as_echo "no" >&6; }
18986 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18987 if test "x$ac_cv_type_pid_t" = xyes; then :
18989 else
18991 cat >>confdefs.h <<_ACEOF
18992 #define pid_t int
18993 _ACEOF
18997 for ac_header in vfork.h
18998 do :
18999 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19000 if test "x$ac_cv_header_vfork_h" = xyes; then :
19001 cat >>confdefs.h <<_ACEOF
19002 #define HAVE_VFORK_H 1
19003 _ACEOF
19007 done
19009 for ac_func in fork vfork
19010 do :
19011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19012 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19013 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19014 cat >>confdefs.h <<_ACEOF
19015 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19016 _ACEOF
19019 done
19021 if test "x$ac_cv_func_fork" = xyes; then
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19023 $as_echo_n "checking for working fork... " >&6; }
19024 if ${ac_cv_func_fork_works+:} false; then :
19025 $as_echo_n "(cached) " >&6
19026 else
19027 if test "$cross_compiling" = yes; then :
19028 ac_cv_func_fork_works=cross
19029 else
19030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19031 /* end confdefs.h. */
19032 $ac_includes_default
19034 main ()
19037 /* By Ruediger Kuhlmann. */
19038 return fork () < 0;
19041 return 0;
19043 _ACEOF
19044 if ac_fn_c_try_run "$LINENO"; then :
19045 ac_cv_func_fork_works=yes
19046 else
19047 ac_cv_func_fork_works=no
19049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19050 conftest.$ac_objext conftest.beam conftest.$ac_ext
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19055 $as_echo "$ac_cv_func_fork_works" >&6; }
19057 else
19058 ac_cv_func_fork_works=$ac_cv_func_fork
19060 if test "x$ac_cv_func_fork_works" = xcross; then
19061 case $host in
19062 *-*-amigaos* | *-*-msdosdjgpp*)
19063 # Override, as these systems have only a dummy fork() stub
19064 ac_cv_func_fork_works=no
19067 ac_cv_func_fork_works=yes
19069 esac
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19071 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19073 ac_cv_func_vfork_works=$ac_cv_func_vfork
19074 if test "x$ac_cv_func_vfork" = xyes; then
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19076 $as_echo_n "checking for working vfork... " >&6; }
19077 if ${ac_cv_func_vfork_works+:} false; then :
19078 $as_echo_n "(cached) " >&6
19079 else
19080 if test "$cross_compiling" = yes; then :
19081 ac_cv_func_vfork_works=cross
19082 else
19083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h. */
19085 /* Thanks to Paul Eggert for this test. */
19086 $ac_includes_default
19087 #include <sys/wait.h>
19088 #ifdef HAVE_VFORK_H
19089 # include <vfork.h>
19090 #endif
19091 /* On some sparc systems, changes by the child to local and incoming
19092 argument registers are propagated back to the parent. The compiler
19093 is told about this with #include <vfork.h>, but some compilers
19094 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19095 static variable whose address is put into a register that is
19096 clobbered by the vfork. */
19097 static void
19098 #ifdef __cplusplus
19099 sparc_address_test (int arg)
19100 # else
19101 sparc_address_test (arg) int arg;
19102 #endif
19104 static pid_t child;
19105 if (!child) {
19106 child = vfork ();
19107 if (child < 0) {
19108 perror ("vfork");
19109 _exit(2);
19111 if (!child) {
19112 arg = getpid();
19113 write(-1, "", 0);
19114 _exit (arg);
19120 main ()
19122 pid_t parent = getpid ();
19123 pid_t child;
19125 sparc_address_test (0);
19127 child = vfork ();
19129 if (child == 0) {
19130 /* Here is another test for sparc vfork register problems. This
19131 test uses lots of local variables, at least as many local
19132 variables as main has allocated so far including compiler
19133 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19134 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19135 reuse the register of parent for one of the local variables,
19136 since it will think that parent can't possibly be used any more
19137 in this routine. Assigning to the local variable will thus
19138 munge parent in the parent process. */
19139 pid_t
19140 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19141 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19142 /* Convince the compiler that p..p7 are live; otherwise, it might
19143 use the same hardware register for all 8 local variables. */
19144 if (p != p1 || p != p2 || p != p3 || p != p4
19145 || p != p5 || p != p6 || p != p7)
19146 _exit(1);
19148 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19149 from child file descriptors. If the child closes a descriptor
19150 before it execs or exits, this munges the parent's descriptor
19151 as well. Test for this by closing stdout in the child. */
19152 _exit(close(fileno(stdout)) != 0);
19153 } else {
19154 int status;
19155 struct stat st;
19157 while (wait(&status) != child)
19159 return (
19160 /* Was there some problem with vforking? */
19161 child < 0
19163 /* Did the child fail? (This shouldn't happen.) */
19164 || status
19166 /* Did the vfork/compiler bug occur? */
19167 || parent != getpid()
19169 /* Did the file descriptor bug occur? */
19170 || fstat(fileno(stdout), &st) != 0
19174 _ACEOF
19175 if ac_fn_c_try_run "$LINENO"; then :
19176 ac_cv_func_vfork_works=yes
19177 else
19178 ac_cv_func_vfork_works=no
19180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19181 conftest.$ac_objext conftest.beam conftest.$ac_ext
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19186 $as_echo "$ac_cv_func_vfork_works" >&6; }
19189 if test "x$ac_cv_func_fork_works" = xcross; then
19190 ac_cv_func_vfork_works=$ac_cv_func_vfork
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19192 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19195 if test "x$ac_cv_func_vfork_works" = xyes; then
19197 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19199 else
19201 $as_echo "#define vfork fork" >>confdefs.h
19204 if test "x$ac_cv_func_fork_works" = xyes; then
19206 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19212 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19213 if ${emacs_cv_langinfo_codeset+:} false; then :
19214 $as_echo_n "(cached) " >&6
19215 else
19216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19217 /* end confdefs.h. */
19218 #include <langinfo.h>
19220 main ()
19222 char* cs = nl_langinfo(CODESET);
19224 return 0;
19226 _ACEOF
19227 if ac_fn_c_try_link "$LINENO"; then :
19228 emacs_cv_langinfo_codeset=yes
19229 else
19230 emacs_cv_langinfo_codeset=no
19232 rm -f core conftest.err conftest.$ac_objext \
19233 conftest$ac_exeext conftest.$ac_ext
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19237 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19238 if test $emacs_cv_langinfo_codeset = yes; then
19240 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19244 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19245 if test "x$ac_cv_type_size_t" = xyes; then :
19247 cat >>confdefs.h <<_ACEOF
19248 #define HAVE_SIZE_T 1
19249 _ACEOF
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19256 $as_echo_n "checking for mbstate_t... " >&6; }
19257 if ${ac_cv_type_mbstate_t+:} false; then :
19258 $as_echo_n "(cached) " >&6
19259 else
19260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19261 /* end confdefs.h. */
19262 $ac_includes_default
19263 # include <wchar.h>
19265 main ()
19267 mbstate_t x; return sizeof x;
19269 return 0;
19271 _ACEOF
19272 if ac_fn_c_try_compile "$LINENO"; then :
19273 ac_cv_type_mbstate_t=yes
19274 else
19275 ac_cv_type_mbstate_t=no
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19280 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19281 if test $ac_cv_type_mbstate_t = yes; then
19283 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19285 else
19287 $as_echo "#define mbstate_t int" >>confdefs.h
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19292 $as_echo_n "checking for C restricted array declarations... " >&6; }
19293 if ${emacs_cv_c_restrict_arr+:} false; then :
19294 $as_echo_n "(cached) " >&6
19295 else
19296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19297 /* end confdefs.h. */
19298 void fred (int x[__restrict]);
19300 main ()
19304 return 0;
19306 _ACEOF
19307 if ac_fn_c_try_compile "$LINENO"; then :
19308 emacs_cv_c_restrict_arr=yes
19309 else
19310 emacs_cv_c_restrict_arr=no
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19315 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19316 if test "$emacs_cv_c_restrict_arr" = yes; then
19318 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19324 # Set up the CFLAGS for real compilation, so we can substitute it.
19325 CFLAGS="$REAL_CFLAGS"
19326 CPPFLAGS="$REAL_CPPFLAGS"
19328 ## Hack to detect a buggy GCC version.
19329 if test "x$GCC" = xyes \
19330 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19331 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
19332 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
19333 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19336 version=$PACKAGE_VERSION
19338 ### Specify what sort of things we'll be editing into Makefile and config.h.
19339 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19342 ## Unused?
19363 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19364 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19365 ## end of LIBX_BASE, but nothing ever set it.
19370 ## Used in lwlib/Makefile.in.
19372 if test -n "${machfile}"; then
19373 M_FILE="\$(srcdir)/${machfile}"
19374 else
19375 M_FILE=
19377 S_FILE="\$(srcdir)/${opsysfile}"
19388 cat >>confdefs.h <<_ACEOF
19389 #define EMACS_CONFIGURATION "${canonical}"
19390 _ACEOF
19393 cat >>confdefs.h <<_ACEOF
19394 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19395 _ACEOF
19397 if test -n "$machfile"; then
19399 cat >>confdefs.h <<_ACEOF
19400 #define config_machfile "${machfile}"
19401 _ACEOF
19405 cat >>confdefs.h <<_ACEOF
19406 #define config_opsysfile "${opsysfile}"
19407 _ACEOF
19410 XMENU_OBJ=
19411 XOBJ=
19412 FONT_OBJ=
19413 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19415 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19417 XMENU_OBJ=xmenu.o
19418 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19419 FONT_OBJ=xfont.o
19420 if test "$HAVE_XFT" = "yes"; then
19421 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19422 elif test "$HAVE_FREETYPE" = "yes"; then
19423 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
19431 WIDGET_OBJ=
19432 MOTIF_LIBW=
19433 if test "${USE_X_TOOLKIT}" != "none" ; then
19434 WIDGET_OBJ=widget.o
19436 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19438 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19440 $as_echo "#define USE_LUCID 1" >>confdefs.h
19442 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19444 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19446 MOTIF_LIBW=-lXm
19447 case "$opsys" in
19448 gnu-linux)
19449 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19450 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
19453 unixware)
19454 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19455 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19456 MOTIF_LIBW="MOTIF_LIBW -lXimp"
19459 aix4-2)
19460 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19461 MOTIF_LIBW="$MOTIF_LIBW -li18n"
19463 esac
19464 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
19469 TOOLKIT_LIBW=
19470 case "$USE_X_TOOLKIT" in
19471 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
19472 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
19473 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
19474 esac
19477 if test "$USE_X_TOOLKIT" = "none"; then
19478 LIBXT_OTHER="\$(LIBXSM)"
19479 OLDXMENU_TARGET="really-oldXMenu"
19480 else
19481 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19482 OLDXMENU_TARGET="really-lwlib"
19486 ## The X Menu stuff is present in the X10 distribution, but missing
19487 ## from X11. If we have X10, just use the installed library;
19488 ## otherwise, use our own copy.
19489 if test "${HAVE_X11}" = "yes" ; then
19491 $as_echo "#define HAVE_X11 1" >>confdefs.h
19494 if test "$USE_X_TOOLKIT" = "none"; then
19495 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
19496 else
19497 OLDXMENU="\${lwlibdir}/liblw.a"
19499 LIBXMENU="\$(OLDXMENU)"
19500 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
19501 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
19502 else
19503 ## For a syntactically valid Makefile; not actually used for anything.
19504 ## See comments in src/Makefile.in.
19505 OLDXMENU=nothing
19506 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19507 if test "${HAVE_X_WINDOWS}" = "yes"; then
19508 LIBXMENU="-lXMenu"
19509 else
19510 LIBXMENU=
19512 LIBX_OTHER=
19513 OLDXMENU_DEPS=
19516 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
19517 OLDXMENU_TARGET=
19518 OLDXMENU=nothing
19519 LIBXMENU=
19520 OLDXMENU_DEPS=
19529 if test "${HAVE_MENUS}" = "yes" ; then
19531 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19535 if test "${GNU_MALLOC}" = "yes" ; then
19537 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19541 RALLOC_OBJ=
19542 if test "${REL_ALLOC}" = "yes" ; then
19544 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19547 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
19551 if test "$opsys" = "cygwin"; then
19552 CYGWIN_OBJ="sheap.o"
19553 ## Cygwin differs because of its unexec().
19554 PRE_ALLOC_OBJ=
19555 POST_ALLOC_OBJ=lastfile.o
19556 else
19557 CYGWIN_OBJ=
19558 PRE_ALLOC_OBJ=lastfile.o
19559 POST_ALLOC_OBJ=
19566 case "$opsys" in
19567 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19569 darwin)
19570 ## The -headerpad option tells ld (see man page) to leave room at the
19571 ## end of the header for adding load commands. Needed for dumping.
19572 ## 0x690 is the total size of 30 segment load commands (at 56
19573 ## each); under Cocoa 31 commands are required.
19574 if test "$HAVE_NS" = "yes"; then
19575 libs_nsgui="-framework AppKit"
19576 headerpad_extra=6C8
19577 else
19578 libs_nsgui=
19579 headerpad_extra=690
19581 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19583 ## This is here because src/Makefile.in did some extra fiddling around
19584 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19585 ## #ifndef LD_SWITCH_SYSTEM
19586 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19587 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19588 ## not using gcc, darwin system not on an alpha (ie darwin, since
19589 ## darwin + alpha does not occur).
19590 ## Because this was done in src/Makefile.in, the resulting part of
19591 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19592 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19593 ## rather than LD_SWITCH_SYSTEM.
19594 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19595 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19598 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19599 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19600 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19601 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19602 ## had different values in configure (in ac_link) and src/Makefile.in.
19603 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19604 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19606 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19607 esac
19609 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19610 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19616 LD_FIRSTFLAG=
19617 ORDINARY_LINK=
19618 case "$opsys" in
19619 ## gnu: GNU needs its own crt0.
19620 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19622 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19623 ## library search parth, i.e. it won't search /usr/lib for libc and
19624 ## friends. Using -nostartfiles instead avoids this problem, and
19625 ## will also work on earlier NetBSD releases.
19626 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19628 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19629 ## MkLinux/LinuxPPC needs this.
19630 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19631 gnu-*)
19632 case "$machine" in
19633 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19634 esac
19636 esac
19639 if test "x$ORDINARY_LINK" = "xyes"; then
19641 LD_FIRSTFLAG=""
19643 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19646 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19647 ## freebsd, gnu-* not on macppc|ibms390x.
19648 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19650 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19651 ## places that are difficult to figure out at make time. Fortunately,
19652 ## these same versions allow you to pass arbitrary flags on to the
19653 ## linker, so there is no reason not to use it as a linker.
19655 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19656 ## searching for libraries in its internal directories, so we have to
19657 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19658 LD_FIRSTFLAG="-nostdlib"
19661 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19662 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19667 ## FIXME? The logic here is not precisely the same as that above.
19668 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19669 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19670 LIB_GCC=
19671 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19673 case "$opsys" in
19674 freebsd|netbsd|openbsd) LIB_GCC= ;;
19676 gnu-*)
19677 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19678 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19679 case $host_cpu in
19680 arm*)
19681 LIB_GCC="-lgcc_s"
19684 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19685 ## immediately undefine it again and redefine it to empty.
19686 ## Was the C_SWITCH_X_SITE part really necessary?
19687 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19688 LIB_GCC=
19690 esac
19693 ## Ask GCC where to find libgcc.a.
19694 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19695 esac
19699 TOOLTIP_SUPPORT=
19700 WINDOW_SUPPORT=
19701 ## If we're using X11/GNUstep, define some consequences.
19702 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19704 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19707 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19709 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19710 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19712 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19713 test "$HAVE_X_WINDOWS" = "yes" && \
19714 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19724 #### Report on what we decided to do.
19725 #### Report GTK as a toolkit, even if it doesn't use Xt.
19726 #### It makes printing result more understandable as using GTK sets
19727 #### toolkit_scroll_bars to yes by default.
19728 if test "${HAVE_GTK}" = "yes"; then
19729 USE_X_TOOLKIT=GTK
19732 and_machfile=
19733 if test -n "$machfile"; then
19734 and_machfile=" and \`${machfile}'"
19737 echo "
19738 Configured for \`${canonical}'.
19740 Where should the build process find the source code? ${srcdir}
19741 What operating system and machine description files should Emacs use?
19742 \`${opsysfile}'${and_machfile}
19743 What compiler should emacs be built with? ${CC} ${CFLAGS}
19744 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19745 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19746 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19747 What window system should Emacs use? ${window_system}
19748 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19750 if test -n "${x_includes}"; then
19751 echo " Where do we find X Windows header files? ${x_includes}"
19752 else
19753 echo " Where do we find X Windows header files? Standard dirs"
19755 if test -n "${x_libraries}"; then
19756 echo " Where do we find X Windows libraries? ${x_libraries}"
19757 else
19758 echo " Where do we find X Windows libraries? Standard dirs"
19761 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19762 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19763 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19764 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19765 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19766 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19767 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19768 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19770 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19771 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19772 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19773 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19774 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19775 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19777 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19778 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19779 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19780 echo " Does Emacs use -lxft? ${HAVE_XFT}"
19782 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19783 echo
19785 if test $USE_XASSERTS = yes; then
19786 echo " Compiling with asserts turned on."
19787 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
19790 echo
19792 if test "$HAVE_NS" = "yes"; then
19793 echo
19794 echo "You must run \"make install\" in order to test the built application.
19795 The installed application will go to nextstep/Emacs.app and can be
19796 run or moved from there."
19797 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19798 echo "The application will be fully self-contained."
19799 else
19800 echo "The lisp resources for the application will be installed under ${prefix}.
19801 You may need to run \"make install\" with sudo. The application will fail
19802 to run if these resources are not installed."
19804 echo
19808 # Remove any trailing slashes in these variables.
19809 test "${prefix}" != NONE &&
19810 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19811 test "${exec_prefix}" != NONE &&
19812 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19814 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"
19817 ac_config_commands="$ac_config_commands mkdirs"
19820 ac_config_commands="$ac_config_commands epaths"
19823 ac_config_commands="$ac_config_commands gdbinit"
19826 cat >confcache <<\_ACEOF
19827 # This file is a shell script that caches the results of configure
19828 # tests run on this system so they can be shared between configure
19829 # scripts and configure runs, see configure's option --config-cache.
19830 # It is not useful on other systems. If it contains results you don't
19831 # want to keep, you may remove or edit it.
19833 # config.status only pays attention to the cache file if you give it
19834 # the --recheck option to rerun configure.
19836 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19837 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19838 # following values.
19840 _ACEOF
19842 # The following way of writing the cache mishandles newlines in values,
19843 # but we know of no workaround that is simple, portable, and efficient.
19844 # So, we kill variables containing newlines.
19845 # Ultrix sh set writes to stderr and can't be redirected directly,
19846 # and sets the high bit in the cache file unless we assign to the vars.
19848 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19849 eval ac_val=\$$ac_var
19850 case $ac_val in #(
19851 *${as_nl}*)
19852 case $ac_var in #(
19853 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19854 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19855 esac
19856 case $ac_var in #(
19857 _ | IFS | as_nl) ;; #(
19858 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19859 *) { eval $ac_var=; unset $ac_var;} ;;
19860 esac ;;
19861 esac
19862 done
19864 (set) 2>&1 |
19865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19866 *${as_nl}ac_space=\ *)
19867 # `set' does not quote correctly, so add quotes: double-quote
19868 # substitution turns \\\\ into \\, and sed turns \\ into \.
19869 sed -n \
19870 "s/'/'\\\\''/g;
19871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19872 ;; #(
19874 # `set' quotes correctly as required by POSIX, so do not add quotes.
19875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19877 esac |
19878 sort
19880 sed '
19881 /^ac_cv_env_/b end
19882 t clear
19883 :clear
19884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19885 t end
19886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19887 :end' >>confcache
19888 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19889 if test -w "$cache_file"; then
19890 if test "x$cache_file" != "x/dev/null"; then
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19892 $as_echo "$as_me: updating cache $cache_file" >&6;}
19893 if test ! -f "$cache_file" || test -h "$cache_file"; then
19894 cat confcache >"$cache_file"
19895 else
19896 case $cache_file in #(
19897 */* | ?:*)
19898 mv -f confcache "$cache_file"$$ &&
19899 mv -f "$cache_file"$$ "$cache_file" ;; #(
19901 mv -f confcache "$cache_file" ;;
19902 esac
19905 else
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19907 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19910 rm -f confcache
19912 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19913 # Let make expand exec_prefix.
19914 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19916 DEFS=-DHAVE_CONFIG_H
19918 ac_libobjs=
19919 ac_ltlibobjs=
19921 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19922 # 1. Remove the extension, and $U if already installed.
19923 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19924 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19925 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19926 # will be set to the directory where LIBOBJS objects are built.
19927 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19928 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19929 done
19930 LIBOBJS=$ac_libobjs
19932 LTLIBOBJS=$ac_ltlibobjs
19935 if test -n "$EXEEXT"; then
19936 am__EXEEXT_TRUE=
19937 am__EXEEXT_FALSE='#'
19938 else
19939 am__EXEEXT_TRUE='#'
19940 am__EXEEXT_FALSE=
19943 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19944 as_fn_error $? "conditional \"AMDEP\" was never defined.
19945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19947 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19948 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19952 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19953 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19958 gl_libobjs=
19959 gl_ltlibobjs=
19960 if test -n "$gl_LIBOBJS"; then
19961 # Remove the extension.
19962 sed_drop_objext='s/\.o$//;s/\.obj$//'
19963 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19964 gl_libobjs="$gl_libobjs $i.$ac_objext"
19965 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19966 done
19968 gl_LIBOBJS=$gl_libobjs
19970 gl_LTLIBOBJS=$gl_ltlibobjs
19974 gltests_libobjs=
19975 gltests_ltlibobjs=
19976 if test -n "$gltests_LIBOBJS"; then
19977 # Remove the extension.
19978 sed_drop_objext='s/\.o$//;s/\.obj$//'
19979 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19980 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19981 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19982 done
19984 gltests_LIBOBJS=$gltests_libobjs
19986 gltests_LTLIBOBJS=$gltests_ltlibobjs
19990 : "${CONFIG_STATUS=./config.status}"
19991 ac_write_fail=0
19992 ac_clean_files_save=$ac_clean_files
19993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19995 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19996 as_write_fail=0
19997 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19998 #! $SHELL
19999 # Generated by $as_me.
20000 # Run this file to recreate the current configuration.
20001 # Compiler output produced by configure, useful for debugging
20002 # configure, is in config.log if it exists.
20004 debug=false
20005 ac_cs_recheck=false
20006 ac_cs_silent=false
20008 SHELL=\${CONFIG_SHELL-$SHELL}
20009 export SHELL
20010 _ASEOF
20011 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20012 ## -------------------- ##
20013 ## M4sh Initialization. ##
20014 ## -------------------- ##
20016 # Be more Bourne compatible
20017 DUALCASE=1; export DUALCASE # for MKS sh
20018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20019 emulate sh
20020 NULLCMD=:
20021 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20022 # is contrary to our usage. Disable this feature.
20023 alias -g '${1+"$@"}'='"$@"'
20024 setopt NO_GLOB_SUBST
20025 else
20026 case `(set -o) 2>/dev/null` in #(
20027 *posix*) :
20028 set -o posix ;; #(
20029 *) :
20031 esac
20035 as_nl='
20037 export as_nl
20038 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20039 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20040 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20042 # Prefer a ksh shell builtin over an external printf program on Solaris,
20043 # but without wasting forks for bash or zsh.
20044 if test -z "$BASH_VERSION$ZSH_VERSION" \
20045 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20046 as_echo='print -r --'
20047 as_echo_n='print -rn --'
20048 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20049 as_echo='printf %s\n'
20050 as_echo_n='printf %s'
20051 else
20052 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20053 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20054 as_echo_n='/usr/ucb/echo -n'
20055 else
20056 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20057 as_echo_n_body='eval
20058 arg=$1;
20059 case $arg in #(
20060 *"$as_nl"*)
20061 expr "X$arg" : "X\\(.*\\)$as_nl";
20062 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20063 esac;
20064 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20066 export as_echo_n_body
20067 as_echo_n='sh -c $as_echo_n_body as_echo'
20069 export as_echo_body
20070 as_echo='sh -c $as_echo_body as_echo'
20073 # The user is always right.
20074 if test "${PATH_SEPARATOR+set}" != set; then
20075 PATH_SEPARATOR=:
20076 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20077 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20078 PATH_SEPARATOR=';'
20083 # IFS
20084 # We need space, tab and new line, in precisely that order. Quoting is
20085 # there to prevent editors from complaining about space-tab.
20086 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20087 # splitting by setting IFS to empty value.)
20088 IFS=" "" $as_nl"
20090 # Find who we are. Look in the path if we contain no directory separator.
20091 as_myself=
20092 case $0 in #((
20093 *[\\/]* ) as_myself=$0 ;;
20094 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20095 for as_dir in $PATH
20097 IFS=$as_save_IFS
20098 test -z "$as_dir" && as_dir=.
20099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20100 done
20101 IFS=$as_save_IFS
20104 esac
20105 # We did not find ourselves, most probably we were run as `sh COMMAND'
20106 # in which case we are not to be found in the path.
20107 if test "x$as_myself" = x; then
20108 as_myself=$0
20110 if test ! -f "$as_myself"; then
20111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20112 exit 1
20115 # Unset variables that we do not need and which cause bugs (e.g. in
20116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20117 # suppresses any "Segmentation fault" message there. '((' could
20118 # trigger a bug in pdksh 5.2.14.
20119 for as_var in BASH_ENV ENV MAIL MAILPATH
20120 do eval test x\${$as_var+set} = xset \
20121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20122 done
20123 PS1='$ '
20124 PS2='> '
20125 PS4='+ '
20127 # NLS nuisances.
20128 LC_ALL=C
20129 export LC_ALL
20130 LANGUAGE=C
20131 export LANGUAGE
20133 # CDPATH.
20134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20137 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20138 # ----------------------------------------
20139 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20140 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20141 # script with STATUS, using 1 if that was 0.
20142 as_fn_error ()
20144 as_status=$1; test $as_status -eq 0 && as_status=1
20145 if test "$4"; then
20146 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20147 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20149 $as_echo "$as_me: error: $2" >&2
20150 as_fn_exit $as_status
20151 } # as_fn_error
20154 # as_fn_set_status STATUS
20155 # -----------------------
20156 # Set $? to STATUS, without forking.
20157 as_fn_set_status ()
20159 return $1
20160 } # as_fn_set_status
20162 # as_fn_exit STATUS
20163 # -----------------
20164 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20165 as_fn_exit ()
20167 set +e
20168 as_fn_set_status $1
20169 exit $1
20170 } # as_fn_exit
20172 # as_fn_unset VAR
20173 # ---------------
20174 # Portably unset VAR.
20175 as_fn_unset ()
20177 { eval $1=; unset $1;}
20179 as_unset=as_fn_unset
20180 # as_fn_append VAR VALUE
20181 # ----------------------
20182 # Append the text in VALUE to the end of the definition contained in VAR. Take
20183 # advantage of any shell optimizations that allow amortized linear growth over
20184 # repeated appends, instead of the typical quadratic growth present in naive
20185 # implementations.
20186 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20187 eval 'as_fn_append ()
20189 eval $1+=\$2
20191 else
20192 as_fn_append ()
20194 eval $1=\$$1\$2
20196 fi # as_fn_append
20198 # as_fn_arith ARG...
20199 # ------------------
20200 # Perform arithmetic evaluation on the ARGs, and store the result in the
20201 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20202 # must be portable across $(()) and expr.
20203 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20204 eval 'as_fn_arith ()
20206 as_val=$(( $* ))
20208 else
20209 as_fn_arith ()
20211 as_val=`expr "$@" || test $? -eq 1`
20213 fi # as_fn_arith
20216 if expr a : '\(a\)' >/dev/null 2>&1 &&
20217 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20218 as_expr=expr
20219 else
20220 as_expr=false
20223 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20224 as_basename=basename
20225 else
20226 as_basename=false
20229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20230 as_dirname=dirname
20231 else
20232 as_dirname=false
20235 as_me=`$as_basename -- "$0" ||
20236 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20237 X"$0" : 'X\(//\)$' \| \
20238 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20239 $as_echo X/"$0" |
20240 sed '/^.*\/\([^/][^/]*\)\/*$/{
20241 s//\1/
20244 /^X\/\(\/\/\)$/{
20245 s//\1/
20248 /^X\/\(\/\).*/{
20249 s//\1/
20252 s/.*/./; q'`
20254 # Avoid depending upon Character Ranges.
20255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20258 as_cr_digits='0123456789'
20259 as_cr_alnum=$as_cr_Letters$as_cr_digits
20261 ECHO_C= ECHO_N= ECHO_T=
20262 case `echo -n x` in #(((((
20263 -n*)
20264 case `echo 'xy\c'` in
20265 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20266 xy) ECHO_C='\c';;
20267 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20268 ECHO_T=' ';;
20269 esac;;
20271 ECHO_N='-n';;
20272 esac
20274 rm -f conf$$ conf$$.exe conf$$.file
20275 if test -d conf$$.dir; then
20276 rm -f conf$$.dir/conf$$.file
20277 else
20278 rm -f conf$$.dir
20279 mkdir conf$$.dir 2>/dev/null
20281 if (echo >conf$$.file) 2>/dev/null; then
20282 if ln -s conf$$.file conf$$ 2>/dev/null; then
20283 as_ln_s='ln -s'
20284 # ... but there are two gotchas:
20285 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20286 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20287 # In both cases, we have to default to `cp -p'.
20288 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20289 as_ln_s='cp -p'
20290 elif ln conf$$.file conf$$ 2>/dev/null; then
20291 as_ln_s=ln
20292 else
20293 as_ln_s='cp -p'
20295 else
20296 as_ln_s='cp -p'
20298 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20299 rmdir conf$$.dir 2>/dev/null
20302 # as_fn_mkdir_p
20303 # -------------
20304 # Create "$as_dir" as a directory, including parents if necessary.
20305 as_fn_mkdir_p ()
20308 case $as_dir in #(
20309 -*) as_dir=./$as_dir;;
20310 esac
20311 test -d "$as_dir" || eval $as_mkdir_p || {
20312 as_dirs=
20313 while :; do
20314 case $as_dir in #(
20315 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20316 *) as_qdir=$as_dir;;
20317 esac
20318 as_dirs="'$as_qdir' $as_dirs"
20319 as_dir=`$as_dirname -- "$as_dir" ||
20320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20321 X"$as_dir" : 'X\(//\)[^/]' \| \
20322 X"$as_dir" : 'X\(//\)$' \| \
20323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20324 $as_echo X"$as_dir" |
20325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20326 s//\1/
20329 /^X\(\/\/\)[^/].*/{
20330 s//\1/
20333 /^X\(\/\/\)$/{
20334 s//\1/
20337 /^X\(\/\).*/{
20338 s//\1/
20341 s/.*/./; q'`
20342 test -d "$as_dir" && break
20343 done
20344 test -z "$as_dirs" || eval "mkdir $as_dirs"
20345 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20348 } # as_fn_mkdir_p
20349 if mkdir -p . 2>/dev/null; then
20350 as_mkdir_p='mkdir -p "$as_dir"'
20351 else
20352 test -d ./-p && rmdir ./-p
20353 as_mkdir_p=false
20356 if test -x / >/dev/null 2>&1; then
20357 as_test_x='test -x'
20358 else
20359 if ls -dL / >/dev/null 2>&1; then
20360 as_ls_L_option=L
20361 else
20362 as_ls_L_option=
20364 as_test_x='
20365 eval sh -c '\''
20366 if test -d "$1"; then
20367 test -d "$1/.";
20368 else
20369 case $1 in #(
20370 -*)set "./$1";;
20371 esac;
20372 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20373 ???[sx]*):;;*)false;;esac;fi
20374 '\'' sh
20377 as_executable_p=$as_test_x
20379 # Sed expression to map a string onto a valid CPP name.
20380 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20382 # Sed expression to map a string onto a valid variable name.
20383 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20386 exec 6>&1
20387 ## ----------------------------------- ##
20388 ## Main body of $CONFIG_STATUS script. ##
20389 ## ----------------------------------- ##
20390 _ASEOF
20391 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20394 # Save the log message, to keep $0 and so on meaningful, and to
20395 # report actual input values of CONFIG_FILES etc. instead of their
20396 # values after options handling.
20397 ac_log="
20398 This file was extended by emacs $as_me 24.0.50, which was
20399 generated by GNU Autoconf 2.68. Invocation command line was
20401 CONFIG_FILES = $CONFIG_FILES
20402 CONFIG_HEADERS = $CONFIG_HEADERS
20403 CONFIG_LINKS = $CONFIG_LINKS
20404 CONFIG_COMMANDS = $CONFIG_COMMANDS
20405 $ $0 $@
20407 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20410 _ACEOF
20412 case $ac_config_files in *"
20413 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20414 esac
20416 case $ac_config_headers in *"
20417 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20418 esac
20421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20422 # Files that config.status was made for.
20423 config_files="$ac_config_files"
20424 config_headers="$ac_config_headers"
20425 config_commands="$ac_config_commands"
20427 _ACEOF
20429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20430 ac_cs_usage="\
20431 \`$as_me' instantiates files and other configuration actions
20432 from templates according to the current configuration. Unless the files
20433 and actions are specified as TAGs, all are instantiated by default.
20435 Usage: $0 [OPTION]... [TAG]...
20437 -h, --help print this help, then exit
20438 -V, --version print version number and configuration settings, then exit
20439 --config print configuration, then exit
20440 -q, --quiet, --silent
20441 do not print progress messages
20442 -d, --debug don't remove temporary files
20443 --recheck update $as_me by reconfiguring in the same conditions
20444 --file=FILE[:TEMPLATE]
20445 instantiate the configuration file FILE
20446 --header=FILE[:TEMPLATE]
20447 instantiate the configuration header FILE
20449 Configuration files:
20450 $config_files
20452 Configuration headers:
20453 $config_headers
20455 Configuration commands:
20456 $config_commands
20458 Report bugs to the package provider."
20460 _ACEOF
20461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20462 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20463 ac_cs_version="\\
20464 emacs config.status 24.0.50
20465 configured by $0, generated by GNU Autoconf 2.68,
20466 with options \\"\$ac_cs_config\\"
20468 Copyright (C) 2010 Free Software Foundation, Inc.
20469 This config.status script is free software; the Free Software Foundation
20470 gives unlimited permission to copy, distribute and modify it."
20472 ac_pwd='$ac_pwd'
20473 srcdir='$srcdir'
20474 INSTALL='$INSTALL'
20475 MKDIR_P='$MKDIR_P'
20476 AWK='$AWK'
20477 test -n "\$AWK" || AWK=awk
20478 _ACEOF
20480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20481 # The default lists apply if the user does not specify any file.
20482 ac_need_defaults=:
20483 while test $# != 0
20485 case $1 in
20486 --*=?*)
20487 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20488 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20489 ac_shift=:
20491 --*=)
20492 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20493 ac_optarg=
20494 ac_shift=:
20497 ac_option=$1
20498 ac_optarg=$2
20499 ac_shift=shift
20501 esac
20503 case $ac_option in
20504 # Handling of the options.
20505 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20506 ac_cs_recheck=: ;;
20507 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20508 $as_echo "$ac_cs_version"; exit ;;
20509 --config | --confi | --conf | --con | --co | --c )
20510 $as_echo "$ac_cs_config"; exit ;;
20511 --debug | --debu | --deb | --de | --d | -d )
20512 debug=: ;;
20513 --file | --fil | --fi | --f )
20514 $ac_shift
20515 case $ac_optarg in
20516 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20517 '') as_fn_error $? "missing file argument" ;;
20518 esac
20519 as_fn_append CONFIG_FILES " '$ac_optarg'"
20520 ac_need_defaults=false;;
20521 --header | --heade | --head | --hea )
20522 $ac_shift
20523 case $ac_optarg in
20524 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20525 esac
20526 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20527 ac_need_defaults=false;;
20528 --he | --h)
20529 # Conflict between --help and --header
20530 as_fn_error $? "ambiguous option: \`$1'
20531 Try \`$0 --help' for more information.";;
20532 --help | --hel | -h )
20533 $as_echo "$ac_cs_usage"; exit ;;
20534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20535 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20536 ac_cs_silent=: ;;
20538 # This is an error.
20539 -*) as_fn_error $? "unrecognized option: \`$1'
20540 Try \`$0 --help' for more information." ;;
20542 *) as_fn_append ac_config_targets " $1"
20543 ac_need_defaults=false ;;
20545 esac
20546 shift
20547 done
20549 ac_configure_extra_args=
20551 if $ac_cs_silent; then
20552 exec 6>/dev/null
20553 ac_configure_extra_args="$ac_configure_extra_args --silent"
20556 _ACEOF
20557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20558 if \$ac_cs_recheck; then
20559 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20560 shift
20561 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20562 CONFIG_SHELL='$SHELL'
20563 export CONFIG_SHELL
20564 exec "\$@"
20567 _ACEOF
20568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20569 exec 5>>config.log
20571 echo
20572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20573 ## Running $as_me. ##
20574 _ASBOX
20575 $as_echo "$ac_log"
20576 } >&5
20578 _ACEOF
20579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20581 # INIT-COMMANDS
20583 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20584 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20586 _ACEOF
20588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20590 # Handling of arguments.
20591 for ac_config_target in $ac_config_targets
20593 case $ac_config_target in
20594 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20595 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20596 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20597 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20598 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20599 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20600 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20601 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20602 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20603 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20604 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20605 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20606 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20607 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
20608 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
20609 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
20610 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
20611 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
20613 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20614 esac
20615 done
20618 # If the user did not use the arguments to specify the items to instantiate,
20619 # then the envvar interface is used. Set only those that are not.
20620 # We use the long form for the default assignment because of an extremely
20621 # bizarre bug on SunOS 4.1.3.
20622 if $ac_need_defaults; then
20623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20625 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20628 # Have a temporary directory for convenience. Make it in the build tree
20629 # simply because there is no reason against having it here, and in addition,
20630 # creating and moving files from /tmp can sometimes cause problems.
20631 # Hook for its removal unless debugging.
20632 # Note that there is a small window in which the directory will not be cleaned:
20633 # after its creation but before its name has been assigned to `$tmp'.
20634 $debug ||
20636 tmp= ac_tmp=
20637 trap 'exit_status=$?
20638 : "${ac_tmp:=$tmp}"
20639 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20641 trap 'as_fn_exit 1' 1 2 13 15
20643 # Create a (secure) tmp directory for tmp files.
20646 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20647 test -d "$tmp"
20648 } ||
20650 tmp=./conf$$-$RANDOM
20651 (umask 077 && mkdir "$tmp")
20652 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20653 ac_tmp=$tmp
20655 # Set up the scripts for CONFIG_FILES section.
20656 # No need to generate them if there are no CONFIG_FILES.
20657 # This happens for instance with `./config.status config.h'.
20658 if test -n "$CONFIG_FILES"; then
20660 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20661 ac_cs_awk_getline=:
20662 ac_cs_awk_pipe_init=
20663 ac_cs_awk_read_file='
20664 while ((getline aline < (F[key])) > 0)
20665 print(aline)
20666 close(F[key])'
20667 ac_cs_awk_pipe_fini=
20668 else
20669 ac_cs_awk_getline=false
20670 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20671 ac_cs_awk_read_file='
20672 print "|#_!!_#|"
20673 print "cat " F[key] " &&"
20674 '$ac_cs_awk_pipe_init
20675 # The final `:' finishes the AND list.
20676 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20678 ac_cr=`echo X | tr X '\015'`
20679 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20680 # But we know of no other shell where ac_cr would be empty at this
20681 # point, so we can use a bashism as a fallback.
20682 if test "x$ac_cr" = x; then
20683 eval ac_cr=\$\'\\r\'
20685 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20686 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20687 ac_cs_awk_cr='\\r'
20688 else
20689 ac_cs_awk_cr=$ac_cr
20692 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20693 _ACEOF
20695 # Create commands to substitute file output variables.
20697 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20698 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20699 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20700 echo "_ACAWK" &&
20701 echo "_ACEOF"
20702 } >conf$$files.sh &&
20703 . ./conf$$files.sh ||
20704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20705 rm -f conf$$files.sh
20708 echo "cat >conf$$subs.awk <<_ACEOF" &&
20709 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20710 echo "_ACEOF"
20711 } >conf$$subs.sh ||
20712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20713 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20714 ac_delim='%!_!# '
20715 for ac_last_try in false false false false false :; do
20716 . ./conf$$subs.sh ||
20717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20719 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20720 if test $ac_delim_n = $ac_delim_num; then
20721 break
20722 elif $ac_last_try; then
20723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20724 else
20725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20727 done
20728 rm -f conf$$subs.sh
20730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20731 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20732 _ACEOF
20733 sed -n '
20735 s/^/S["/; s/!.*/"]=/
20738 s/^[^!]*!//
20739 :repl
20740 t repl
20741 s/'"$ac_delim"'$//
20742 t delim
20745 s/\(.\{148\}\)..*/\1/
20746 t more1
20747 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20750 b repl
20751 :more1
20752 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20755 s/.\{148\}//
20756 t nl
20757 :delim
20759 s/\(.\{148\}\)..*/\1/
20760 t more2
20761 s/["\\]/\\&/g; s/^/"/; s/$/"/
20764 :more2
20765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20768 s/.\{148\}//
20769 t delim
20770 ' <conf$$subs.awk | sed '
20771 /^[^""]/{
20773 s/\n//
20775 ' >>$CONFIG_STATUS || ac_write_fail=1
20776 rm -f conf$$subs.awk
20777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20778 _ACAWK
20779 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20780 for (key in S) S_is_set[key] = 1
20781 FS = "\a"
20782 \$ac_cs_awk_pipe_init
20785 line = $ 0
20786 nfields = split(line, field, "@")
20787 substed = 0
20788 len = length(field[1])
20789 for (i = 2; i < nfields; i++) {
20790 key = field[i]
20791 keylen = length(key)
20792 if (S_is_set[key]) {
20793 value = S[key]
20794 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20795 len += length(value) + length(field[++i])
20796 substed = 1
20797 } else
20798 len += 1 + keylen
20800 if (nfields == 3 && !substed) {
20801 key = field[2]
20802 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20803 \$ac_cs_awk_read_file
20804 next
20807 print line
20809 \$ac_cs_awk_pipe_fini
20810 _ACAWK
20811 _ACEOF
20812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20813 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20814 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20815 else
20817 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20818 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20819 _ACEOF
20821 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20822 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20823 # trailing colons and then remove the whole line if VPATH becomes empty
20824 # (actually we leave an empty line to preserve line numbers).
20825 if test "x$srcdir" = x.; then
20826 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20828 s///
20829 s/^/:/
20830 s/[ ]*$/:/
20831 s/:\$(srcdir):/:/g
20832 s/:\${srcdir}:/:/g
20833 s/:@srcdir@:/:/g
20834 s/^:*//
20835 s/:*$//
20837 s/\(=[ ]*\).*/\1/
20839 s/\n//
20840 s/^[^=]*=[ ]*$//
20844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20845 fi # test -n "$CONFIG_FILES"
20847 # Set up the scripts for CONFIG_HEADERS section.
20848 # No need to generate them if there are no CONFIG_HEADERS.
20849 # This happens for instance with `./config.status Makefile'.
20850 if test -n "$CONFIG_HEADERS"; then
20851 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20852 BEGIN {
20853 _ACEOF
20855 # Transform confdefs.h into an awk script `defines.awk', embedded as
20856 # here-document in config.status, that substitutes the proper values into
20857 # config.h.in to produce config.h.
20859 # Create a delimiter string that does not exist in confdefs.h, to ease
20860 # handling of long lines.
20861 ac_delim='%!_!# '
20862 for ac_last_try in false false :; do
20863 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20864 if test -z "$ac_tt"; then
20865 break
20866 elif $ac_last_try; then
20867 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20868 else
20869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20871 done
20873 # For the awk script, D is an array of macro values keyed by name,
20874 # likewise P contains macro parameters if any. Preserve backslash
20875 # newline sequences.
20877 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20878 sed -n '
20879 s/.\{148\}/&'"$ac_delim"'/g
20880 t rset
20881 :rset
20882 s/^[ ]*#[ ]*define[ ][ ]*/ /
20883 t def
20885 :def
20886 s/\\$//
20887 t bsnl
20888 s/["\\]/\\&/g
20889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20890 D["\1"]=" \3"/p
20891 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20893 :bsnl
20894 s/["\\]/\\&/g
20895 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20896 D["\1"]=" \3\\\\\\n"\\/p
20897 t cont
20898 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20899 t cont
20901 :cont
20903 s/.\{148\}/&'"$ac_delim"'/g
20904 t clear
20905 :clear
20906 s/\\$//
20907 t bsnlc
20908 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20910 :bsnlc
20911 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20912 b cont
20913 ' <confdefs.h | sed '
20914 s/'"$ac_delim"'/"\\\
20915 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20918 for (key in D) D_is_set[key] = 1
20919 FS = "\a"
20921 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20922 line = \$ 0
20923 split(line, arg, " ")
20924 if (arg[1] == "#") {
20925 defundef = arg[2]
20926 mac1 = arg[3]
20927 } else {
20928 defundef = substr(arg[1], 2)
20929 mac1 = arg[2]
20931 split(mac1, mac2, "(") #)
20932 macro = mac2[1]
20933 prefix = substr(line, 1, index(line, defundef) - 1)
20934 if (D_is_set[macro]) {
20935 # Preserve the white space surrounding the "#".
20936 print prefix "define", macro P[macro] D[macro]
20937 next
20938 } else {
20939 # Replace #undef with comments. This is necessary, for example,
20940 # in the case of _POSIX_SOURCE, which is predefined and required
20941 # on some systems where configure will not decide to define it.
20942 if (defundef == "undef") {
20943 print "/*", prefix defundef, macro, "*/"
20944 next
20948 { print }
20949 _ACAWK
20950 _ACEOF
20951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20952 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20953 fi # test -n "$CONFIG_HEADERS"
20956 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20957 shift
20958 for ac_tag
20960 case $ac_tag in
20961 :[FHLC]) ac_mode=$ac_tag; continue;;
20962 esac
20963 case $ac_mode$ac_tag in
20964 :[FHL]*:*);;
20965 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20966 :[FH]-) ac_tag=-:-;;
20967 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20968 esac
20969 ac_save_IFS=$IFS
20970 IFS=:
20971 set x $ac_tag
20972 IFS=$ac_save_IFS
20973 shift
20974 ac_file=$1
20975 shift
20977 case $ac_mode in
20978 :L) ac_source=$1;;
20979 :[FH])
20980 ac_file_inputs=
20981 for ac_f
20983 case $ac_f in
20984 -) ac_f="$ac_tmp/stdin";;
20985 *) # Look for the file first in the build tree, then in the source tree
20986 # (if the path is not absolute). The absolute path cannot be DOS-style,
20987 # because $ac_f cannot contain `:'.
20988 test -f "$ac_f" ||
20989 case $ac_f in
20990 [\\/$]*) false;;
20991 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20992 esac ||
20993 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20994 esac
20995 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20996 as_fn_append ac_file_inputs " '$ac_f'"
20997 done
20999 # Let's still pretend it is `configure' which instantiates (i.e., don't
21000 # use $as_me), people would be surprised to read:
21001 # /* config.h. Generated by config.status. */
21002 configure_input='Generated from '`
21003 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21004 `' by configure.'
21005 if test x"$ac_file" != x-; then
21006 configure_input="$ac_file. $configure_input"
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21008 $as_echo "$as_me: creating $ac_file" >&6;}
21010 # Neutralize special characters interpreted by sed in replacement strings.
21011 case $configure_input in #(
21012 *\&* | *\|* | *\\* )
21013 ac_sed_conf_input=`$as_echo "$configure_input" |
21014 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21015 *) ac_sed_conf_input=$configure_input;;
21016 esac
21018 case $ac_tag in
21019 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21021 esac
21023 esac
21025 ac_dir=`$as_dirname -- "$ac_file" ||
21026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21027 X"$ac_file" : 'X\(//\)[^/]' \| \
21028 X"$ac_file" : 'X\(//\)$' \| \
21029 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21030 $as_echo X"$ac_file" |
21031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21032 s//\1/
21035 /^X\(\/\/\)[^/].*/{
21036 s//\1/
21039 /^X\(\/\/\)$/{
21040 s//\1/
21043 /^X\(\/\).*/{
21044 s//\1/
21047 s/.*/./; q'`
21048 as_dir="$ac_dir"; as_fn_mkdir_p
21049 ac_builddir=.
21051 case "$ac_dir" in
21052 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21054 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21055 # A ".." for each directory in $ac_dir_suffix.
21056 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21057 case $ac_top_builddir_sub in
21058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21060 esac ;;
21061 esac
21062 ac_abs_top_builddir=$ac_pwd
21063 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21064 # for backward compatibility:
21065 ac_top_builddir=$ac_top_build_prefix
21067 case $srcdir in
21068 .) # We are building in place.
21069 ac_srcdir=.
21070 ac_top_srcdir=$ac_top_builddir_sub
21071 ac_abs_top_srcdir=$ac_pwd ;;
21072 [\\/]* | ?:[\\/]* ) # Absolute name.
21073 ac_srcdir=$srcdir$ac_dir_suffix;
21074 ac_top_srcdir=$srcdir
21075 ac_abs_top_srcdir=$srcdir ;;
21076 *) # Relative name.
21077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21078 ac_top_srcdir=$ac_top_build_prefix$srcdir
21079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21080 esac
21081 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21084 case $ac_mode in
21087 # CONFIG_FILE
21090 case $INSTALL in
21091 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21092 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21093 esac
21094 ac_MKDIR_P=$MKDIR_P
21095 case $MKDIR_P in
21096 [\\/$]* | ?:[\\/]* ) ;;
21097 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21098 esac
21099 _ACEOF
21101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21102 # If the template does not know about datarootdir, expand it.
21103 # FIXME: This hack should be removed a few years after 2.60.
21104 ac_datarootdir_hack=; ac_datarootdir_seen=
21105 ac_sed_dataroot='
21106 /datarootdir/ {
21110 /@datadir@/p
21111 /@docdir@/p
21112 /@infodir@/p
21113 /@localedir@/p
21114 /@mandir@/p'
21115 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21116 *datarootdir*) ac_datarootdir_seen=yes;;
21117 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21119 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21120 _ACEOF
21121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21122 ac_datarootdir_hack='
21123 s&@datadir@&$datadir&g
21124 s&@docdir@&$docdir&g
21125 s&@infodir@&$infodir&g
21126 s&@localedir@&$localedir&g
21127 s&@mandir@&$mandir&g
21128 s&\\\${datarootdir}&$datarootdir&g' ;;
21129 esac
21130 _ACEOF
21132 # Neutralize VPATH when `$srcdir' = `.'.
21133 # Shell code in configure.ac might set extrasub.
21134 # FIXME: do we really want to maintain this feature?
21135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21136 ac_sed_extra="$ac_vpsub
21137 $extrasub
21138 _ACEOF
21139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21142 s|@configure_input@|$ac_sed_conf_input|;t t
21143 s&@top_builddir@&$ac_top_builddir_sub&;t t
21144 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21145 s&@srcdir@&$ac_srcdir&;t t
21146 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21147 s&@top_srcdir@&$ac_top_srcdir&;t t
21148 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21149 s&@builddir@&$ac_builddir&;t t
21150 s&@abs_builddir@&$ac_abs_builddir&;t t
21151 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21152 s&@INSTALL@&$ac_INSTALL&;t t
21153 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21154 $ac_datarootdir_hack
21156 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21157 if $ac_cs_awk_getline; then
21158 $AWK -f "$ac_tmp/subs.awk"
21159 else
21160 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21161 fi \
21162 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21164 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21165 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21166 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21167 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21169 which seems to be undefined. Please make sure it is defined" >&5
21170 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21171 which seems to be undefined. Please make sure it is defined" >&2;}
21173 rm -f "$ac_tmp/stdin"
21174 case $ac_file in
21175 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21176 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21177 esac \
21178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21182 # CONFIG_HEADER
21184 if test x"$ac_file" != x-; then
21186 $as_echo "/* $configure_input */" \
21187 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21188 } >"$ac_tmp/config.h" \
21189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21190 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21192 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21193 else
21194 rm -f "$ac_file"
21195 mv "$ac_tmp/config.h" "$ac_file" \
21196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21198 else
21199 $as_echo "/* $configure_input */" \
21200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21201 || as_fn_error $? "could not create -" "$LINENO" 5
21203 # Compute "$ac_file"'s index in $config_headers.
21204 _am_arg="$ac_file"
21205 _am_stamp_count=1
21206 for _am_header in $config_headers :; do
21207 case $_am_header in
21208 $_am_arg | $_am_arg:* )
21209 break ;;
21211 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21212 esac
21213 done
21214 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21215 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21216 X"$_am_arg" : 'X\(//\)[^/]' \| \
21217 X"$_am_arg" : 'X\(//\)$' \| \
21218 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21219 $as_echo X"$_am_arg" |
21220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21221 s//\1/
21224 /^X\(\/\/\)[^/].*/{
21225 s//\1/
21228 /^X\(\/\/\)$/{
21229 s//\1/
21232 /^X\(\/\).*/{
21233 s//\1/
21236 s/.*/./; q'`/stamp-h$_am_stamp_count
21239 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21240 $as_echo "$as_me: executing $ac_file commands" >&6;}
21242 esac
21245 case $ac_file$ac_mode in
21246 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21247 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21248 # are listed without --file. Let's play safe and only enable the eval
21249 # if we detect the quoting.
21250 case $CONFIG_FILES in
21251 *\'*) eval set x "$CONFIG_FILES" ;;
21252 *) set x $CONFIG_FILES ;;
21253 esac
21254 shift
21255 for mf
21257 # Strip MF so we end up with the name of the file.
21258 mf=`echo "$mf" | sed -e 's/:.*$//'`
21259 # Check whether this is an Automake generated Makefile or not.
21260 # We used to match only the files named `Makefile.in', but
21261 # some people rename them; so instead we look at the file content.
21262 # Grep'ing the first line is not enough: some people post-process
21263 # each Makefile.in and add a new line on top of each file to say so.
21264 # Grep'ing the whole file is not good either: AIX grep has a line
21265 # limit of 2048, but all sed's we know have understand at least 4000.
21266 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21267 dirpart=`$as_dirname -- "$mf" ||
21268 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21269 X"$mf" : 'X\(//\)[^/]' \| \
21270 X"$mf" : 'X\(//\)$' \| \
21271 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21272 $as_echo X"$mf" |
21273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21274 s//\1/
21277 /^X\(\/\/\)[^/].*/{
21278 s//\1/
21281 /^X\(\/\/\)$/{
21282 s//\1/
21285 /^X\(\/\).*/{
21286 s//\1/
21289 s/.*/./; q'`
21290 else
21291 continue
21293 # Extract the definition of DEPDIR, am__include, and am__quote
21294 # from the Makefile without running `make'.
21295 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21296 test -z "$DEPDIR" && continue
21297 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21298 test -z "am__include" && continue
21299 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21300 # When using ansi2knr, U may be empty or an underscore; expand it
21301 U=`sed -n 's/^U = //p' < "$mf"`
21302 # Find all dependency output files, they are included files with
21303 # $(DEPDIR) in their names. We invoke sed twice because it is the
21304 # simplest approach to changing $(DEPDIR) to its actual value in the
21305 # expansion.
21306 for file in `sed -n "
21307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21309 # Make sure the directory exists.
21310 test -f "$dirpart/$file" && continue
21311 fdir=`$as_dirname -- "$file" ||
21312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21313 X"$file" : 'X\(//\)[^/]' \| \
21314 X"$file" : 'X\(//\)$' \| \
21315 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21316 $as_echo X"$file" |
21317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21318 s//\1/
21321 /^X\(\/\/\)[^/].*/{
21322 s//\1/
21325 /^X\(\/\/\)$/{
21326 s//\1/
21329 /^X\(\/\).*/{
21330 s//\1/
21333 s/.*/./; q'`
21334 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21335 # echo "creating $dirpart/$file"
21336 echo '# dummy' > "$dirpart/$file"
21337 done
21338 done
21341 "mkdirs":C)
21342 for dir in etc lisp ; do
21343 test -d ${dir} || mkdir ${dir}
21344 done
21346 "epaths":C)
21347 echo creating src/epaths.h
21348 ${MAKE-make} epaths-force
21350 "gdbinit":C)
21351 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21352 echo creating src/.gdbinit
21353 echo source $srcdir/src/.gdbinit > src/.gdbinit
21357 esac
21358 done # for ac_tag
21361 as_fn_exit 0
21362 _ACEOF
21363 ac_clean_files=$ac_clean_files_save
21365 test $ac_write_fail = 0 ||
21366 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21369 # configure is writing to config.log, and then calls config.status.
21370 # config.status does its own redirection, appending to config.log.
21371 # Unfortunately, on DOS this fails, as config.log is still kept open
21372 # by configure, so config.status won't be able to write to it; its
21373 # output is simply discarded. So we exec the FD to /dev/null,
21374 # effectively closing config.log, so it can be properly (re)opened and
21375 # appended to by config.status. When coming back to configure, we
21376 # need to make the FD available again.
21377 if test "$no_create" != yes; then
21378 ac_cs_success=:
21379 ac_config_status_args=
21380 test "$silent" = yes &&
21381 ac_config_status_args="$ac_config_status_args --quiet"
21382 exec 5>/dev/null
21383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21384 exec 5>>config.log
21385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21386 # would make configure fail if this is the last instruction.
21387 $ac_cs_success || as_fn_exit 1
21389 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21391 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}