Merge from trunk
[emacs.git] / configure
blob66a7ca44a804ad81cb93943384be9e69f38ef244
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 gl_getopt_required=POSIX
596 gl_getopt_required=POSIX
597 ac_func_list=
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 WINDOW_SUPPORT
607 TOOLTIP_SUPPORT
608 MOUSE_SUPPORT
609 LIB_GCC
610 LD_FIRSTFLAG
611 LD_SWITCH_SYSTEM_TEMACS
612 POST_ALLOC_OBJ
613 PRE_ALLOC_OBJ
614 CYGWIN_OBJ
615 RALLOC_OBJ
616 OLDXMENU_DEPS
617 LIBX_OTHER
618 LIBXMENU
619 OLDXMENU
620 OLDXMENU_TARGET
621 LIBXT_OTHER
622 TOOLKIT_LIBW
623 WIDGET_OBJ
624 XOBJ
625 XMENU_OBJ
626 FONT_OBJ
627 OTHER_FILES
628 GNU_OBJC_CFLAGS
629 ns_appsrc
630 ns_appresdir
631 ns_appbindir
632 ns_appdir
633 S_FILE
634 M_FILE
635 X_TOOLKIT_TYPE
636 C_SWITCH_X_SYSTEM
637 C_SWITCH_X_SITE
638 LD_SWITCH_X_SITE
639 gameuser
640 gamedir
641 bitmapdir
642 archlibdir
643 etcdir
644 x_default_search_path
645 lisppath
646 locallisppath
647 lispdir
648 srcdir
649 canonical
650 configuration
651 version
652 KRB4LIB
653 DESLIB
654 KRB5LIB
655 CRYPTOLIB
656 COM_ERRLIB
657 LIBRESOLV
658 LIBHESIOD
659 TERMCAP_OBJ
660 LIBS_TERMCAP
661 LIBGNU_LTLIBDEPS
662 LIBGNU_LIBDEPS
663 gltests_WITNESS
664 HAVE_UNISTD_H
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
666 NEXT_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
671 NEXT_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
673 NEXT_SYS_STAT_H
674 REPLACE_UTIMENSAT
675 REPLACE_STAT
676 REPLACE_MKNOD
677 REPLACE_MKFIFO
678 REPLACE_MKDIR
679 REPLACE_LSTAT
680 REPLACE_FUTIMENS
681 REPLACE_FSTATAT
682 REPLACE_FSTAT
683 HAVE_UTIMENSAT
684 HAVE_MKNODAT
685 HAVE_MKNOD
686 HAVE_MKFIFOAT
687 HAVE_MKFIFO
688 HAVE_MKDIRAT
689 HAVE_LSTAT
690 HAVE_LCHMOD
691 HAVE_FUTIMENS
692 HAVE_FSTATAT
693 HAVE_FCHMODAT
694 GNULIB_UTIMENSAT
695 GNULIB_STAT
696 GNULIB_MKNODAT
697 GNULIB_MKNOD
698 GNULIB_MKFIFOAT
699 GNULIB_MKFIFO
700 GNULIB_MKDIRAT
701 GNULIB_LSTAT
702 GNULIB_LCHMOD
703 GNULIB_FUTIMENS
704 GNULIB_FSTATAT
705 GNULIB_FCHMODAT
706 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
707 NEXT_STDLIB_H
708 STDINT_H
709 WINT_T_SUFFIX
710 WCHAR_T_SUFFIX
711 SIG_ATOMIC_T_SUFFIX
712 SIZE_T_SUFFIX
713 PTRDIFF_T_SUFFIX
714 HAVE_SIGNED_WINT_T
715 HAVE_SIGNED_WCHAR_T
716 HAVE_SIGNED_SIG_ATOMIC_T
717 BITSIZEOF_WINT_T
718 BITSIZEOF_WCHAR_T
719 BITSIZEOF_SIG_ATOMIC_T
720 BITSIZEOF_SIZE_T
721 BITSIZEOF_PTRDIFF_T
722 HAVE_SYS_BITYPES_H
723 HAVE_SYS_INTTYPES_H
724 HAVE_STDINT_H
725 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
726 NEXT_STDINT_H
727 HAVE_SYS_TYPES_H
728 HAVE_INTTYPES_H
729 HAVE_WCHAR_H
730 HAVE_UNSIGNED_LONG_LONG_INT
731 HAVE_LONG_LONG_INT
732 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
733 NEXT_STDDEF_H
734 STDDEF_H
735 HAVE_WCHAR_T
736 REPLACE_NULL
737 HAVE__BOOL
738 STDBOOL_H
739 APPLE_UNIVERSAL_BUILD
740 REPLACE_TIMEGM
741 REPLACE_NANOSLEEP
742 REPLACE_MKTIME
743 REPLACE_LOCALTIME_R
744 HAVE_TIMEGM
745 HAVE_STRPTIME
746 HAVE_NANOSLEEP
747 HAVE_DECL_LOCALTIME_R
748 GNULIB_TIME_R
749 GNULIB_TIMEGM
750 GNULIB_STRPTIME
751 GNULIB_NANOSLEEP
752 GNULIB_MKTIME
753 LTLIBINTL
754 LIBINTL
755 GETOPT_H
756 HAVE_GETOPT_H
757 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
758 NEXT_GETOPT_H
759 PRAGMA_COLUMNS
760 PRAGMA_SYSTEM_HEADER
761 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
762 INCLUDE_NEXT
763 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
764 UNISTD_H_HAVE_WINSOCK2_H
765 REPLACE_WRITE
766 REPLACE_USLEEP
767 REPLACE_UNLINKAT
768 REPLACE_UNLINK
769 REPLACE_TTYNAME_R
770 REPLACE_SYMLINK
771 REPLACE_SLEEP
772 REPLACE_RMDIR
773 REPLACE_READLINK
774 REPLACE_PWRITE
775 REPLACE_PREAD
776 REPLACE_LSEEK
777 REPLACE_LINKAT
778 REPLACE_LINK
779 REPLACE_LCHOWN
780 REPLACE_GETPAGESIZE
781 REPLACE_GETGROUPS
782 REPLACE_GETLOGIN_R
783 REPLACE_GETDOMAINNAME
784 REPLACE_GETCWD
785 REPLACE_FCHOWNAT
786 REPLACE_DUP2
787 REPLACE_DUP
788 REPLACE_CLOSE
789 REPLACE_CHOWN
790 HAVE_SYS_PARAM_H
791 HAVE_OS_H
792 HAVE_DECL_TTYNAME_R
793 HAVE_DECL_GETUSERSHELL
794 HAVE_DECL_GETPAGESIZE
795 HAVE_DECL_GETLOGIN_R
796 HAVE_DECL_GETDOMAINNAME
797 HAVE_DECL_FCHDIR
798 HAVE_DECL_ENVIRON
799 HAVE_USLEEP
800 HAVE_UNLINKAT
801 HAVE_SYMLINKAT
802 HAVE_SYMLINK
803 HAVE_SLEEP
804 HAVE_READLINKAT
805 HAVE_READLINK
806 HAVE_PWRITE
807 HAVE_PREAD
808 HAVE_PIPE2
809 HAVE_PIPE
810 HAVE_LINKAT
811 HAVE_LINK
812 HAVE_LCHOWN
813 HAVE_GETPAGESIZE
814 HAVE_GETLOGIN
815 HAVE_GETHOSTNAME
816 HAVE_GETGROUPS
817 HAVE_GETDTABLESIZE
818 HAVE_FTRUNCATE
819 HAVE_FSYNC
820 HAVE_FCHOWNAT
821 HAVE_FCHDIR
822 HAVE_FACCESSAT
823 HAVE_EUIDACCESS
824 HAVE_DUP3
825 HAVE_DUP2
826 HAVE_CHOWN
827 GNULIB_WRITE
828 GNULIB_USLEEP
829 GNULIB_UNLINKAT
830 GNULIB_UNLINK
831 GNULIB_UNISTD_H_SIGPIPE
832 GNULIB_UNISTD_H_GETOPT
833 GNULIB_TTYNAME_R
834 GNULIB_SYMLINKAT
835 GNULIB_SYMLINK
836 GNULIB_SLEEP
837 GNULIB_RMDIR
838 GNULIB_READLINKAT
839 GNULIB_READLINK
840 GNULIB_PWRITE
841 GNULIB_PREAD
842 GNULIB_PIPE2
843 GNULIB_PIPE
844 GNULIB_LSEEK
845 GNULIB_LINKAT
846 GNULIB_LINK
847 GNULIB_LCHOWN
848 GNULIB_GETUSERSHELL
849 GNULIB_GETPAGESIZE
850 GNULIB_GETLOGIN_R
851 GNULIB_GETLOGIN
852 GNULIB_GETHOSTNAME
853 GNULIB_GETGROUPS
854 GNULIB_GETDTABLESIZE
855 GNULIB_GETDOMAINNAME
856 GNULIB_GETCWD
857 GNULIB_FTRUNCATE
858 GNULIB_FSYNC
859 GNULIB_FCHOWNAT
860 GNULIB_FCHDIR
861 GNULIB_FACCESSAT
862 GNULIB_EUIDACCESS
863 GNULIB_ENVIRON
864 GNULIB_DUP3
865 GNULIB_DUP2
866 GNULIB_CLOSE
867 GNULIB_CHOWN
868 GETLOADAVG_LIBS
869 REPLACE_UNSETENV
870 REPLACE_STRTOD
871 REPLACE_SETENV
872 REPLACE_REALPATH
873 REPLACE_REALLOC
874 REPLACE_PUTENV
875 REPLACE_MKSTEMP
876 REPLACE_MALLOC
877 REPLACE_CANONICALIZE_FILE_NAME
878 REPLACE_CALLOC
879 HAVE_DECL_UNSETENV
880 HAVE_UNLOCKPT
881 HAVE_SYS_LOADAVG_H
882 HAVE_STRUCT_RANDOM_DATA
883 HAVE_STRTOULL
884 HAVE_STRTOLL
885 HAVE_STRTOD
886 HAVE_DECL_SETENV
887 HAVE_SETENV
888 HAVE_RPMATCH
889 HAVE_REALPATH
890 HAVE_RANDOM_R
891 HAVE_RANDOM_H
892 HAVE_PTSNAME
893 HAVE_MKSTEMPS
894 HAVE_MKSTEMP
895 HAVE_MKOSTEMPS
896 HAVE_MKOSTEMP
897 HAVE_MKDTEMP
898 HAVE_GRANTPT
899 HAVE_GETSUBOPT
900 HAVE_DECL_GETLOADAVG
901 HAVE_CANONICALIZE_FILE_NAME
902 HAVE_ATOLL
903 HAVE__EXIT
904 GNULIB_UNSETENV
905 GNULIB_UNLOCKPT
906 GNULIB_SYSTEM_POSIX
907 GNULIB_STRTOULL
908 GNULIB_STRTOLL
909 GNULIB_STRTOD
910 GNULIB_SETENV
911 GNULIB_RPMATCH
912 GNULIB_REALPATH
913 GNULIB_REALLOC_POSIX
914 GNULIB_RANDOM_R
915 GNULIB_PUTENV
916 GNULIB_PTSNAME
917 GNULIB_MKSTEMPS
918 GNULIB_MKSTEMP
919 GNULIB_MKOSTEMPS
920 GNULIB_MKOSTEMP
921 GNULIB_MKDTEMP
922 GNULIB_MALLOC_POSIX
923 GNULIB_GRANTPT
924 GNULIB_GETSUBOPT
925 GNULIB_GETLOADAVG
926 GNULIB_CANONICALIZE_FILE_NAME
927 GNULIB_CALLOC_POSIX
928 GNULIB_ATOLL
929 GNULIB__EXIT
930 GL_COND_LIBTOOL_FALSE
931 GL_COND_LIBTOOL_TRUE
932 BLESSMAIL_TARGET
933 LIBS_MAIL
934 liblockfile
935 ALLOCA
936 LIBXML2_LIBS
937 LIBXML2_CFLAGS
938 LIBXSM
939 LIBGPM
940 LIBGIF
941 LIBTIFF
942 LIBPNG
943 LIBJPEG
944 LIBXPM
945 FREETYPE_LIBS
946 FREETYPE_CFLAGS
947 M17N_FLT_LIBS
948 M17N_FLT_CFLAGS
949 LIBOTF_LIBS
950 LIBOTF_CFLAGS
951 XFT_LIBS
952 XFT_CFLAGS
953 FONTCONFIG_LIBS
954 FONTCONFIG_CFLAGS
955 LIBXMU
956 LIBXTR6
957 LIBGNUTLS_LIBS
958 LIBGNUTLS_CFLAGS
959 LIBSELINUX_LIBS
960 GCONF_LIBS
961 GCONF_CFLAGS
962 DBUS_OBJ
963 DBUS_LIBS
964 DBUS_CFLAGS
965 GTK_OBJ
966 GTK_LIBS
967 GTK_CFLAGS
968 IMAGEMAGICK_LIBS
969 IMAGEMAGICK_CFLAGS
970 RSVG_LIBS
971 RSVG_CFLAGS
972 VMLIMIT_OBJ
973 GMALLOC_OBJ
974 HAVE_XSERVER
975 LIB_STANDARD
976 NS_SUPPORT
977 NS_OBJC_OBJ
978 NS_OBJ
979 TEMACS_LDFLAGS2
980 LD_SWITCH_X_SITE_AUX_RPATH
981 LD_SWITCH_X_SITE_AUX
982 XMKMF
983 DEPFLAGS
984 MKDEPDIR
985 CFLAGS_SOUND
986 ALSA_LIBS
987 ALSA_CFLAGS
988 PKG_CONFIG
989 LIBSOUND
990 START_FILES
991 LIB_MATH
992 CRT_DIR
993 LIBS_SYSTEM
994 C_SWITCH_SYSTEM
995 UNEXEC_OBJ
996 C_SWITCH_MACHINE
997 LD_SWITCH_SYSTEM
998 CANNOT_DUMP
999 HAVE_MAKEINFO
1000 GZIP_PROG
1001 INSTALL_INFO
1002 C_WARNINGS_SWITCH
1003 EGREP
1004 GREP
1006 RANLIB
1007 am__fastdepCC_FALSE
1008 am__fastdepCC_TRUE
1009 CCDEPMODE
1010 AMDEPBACKSLASH
1011 AMDEP_FALSE
1012 AMDEP_TRUE
1013 am__quote
1014 am__include
1015 DEPDIR
1016 OBJEXT
1017 EXEEXT
1018 ac_ct_CC
1019 CPPFLAGS
1020 LDFLAGS
1021 CFLAGS
1023 host_os
1024 host_vendor
1025 host_cpu
1026 host
1027 build_os
1028 build_vendor
1029 build_cpu
1030 build
1031 PROFILING_CFLAGS
1032 MAINT
1033 GZIP_INFO
1034 am__untar
1035 am__tar
1036 AMTAR
1037 am__leading_dot
1038 SET_MAKE
1040 mkdir_p
1041 MKDIR_P
1042 INSTALL_STRIP_PROGRAM
1043 STRIP
1044 install_sh
1045 MAKEINFO
1046 AUTOHEADER
1047 AUTOMAKE
1048 AUTOCONF
1049 ACLOCAL
1050 VERSION
1051 PACKAGE
1052 CYGPATH_W
1053 am__isrc
1054 INSTALL_DATA
1055 INSTALL_SCRIPT
1056 INSTALL_PROGRAM
1057 target_alias
1058 host_alias
1059 build_alias
1060 LIBS
1061 ECHO_T
1062 ECHO_N
1063 ECHO_C
1064 DEFS
1065 mandir
1066 localedir
1067 libdir
1068 psdir
1069 pdfdir
1070 dvidir
1071 htmldir
1072 infodir
1073 docdir
1074 oldincludedir
1075 includedir
1076 localstatedir
1077 sharedstatedir
1078 sysconfdir
1079 datadir
1080 datarootdir
1081 libexecdir
1082 sbindir
1083 bindir
1084 program_transform_name
1085 prefix
1086 exec_prefix
1087 PACKAGE_URL
1088 PACKAGE_BUGREPORT
1089 PACKAGE_STRING
1090 PACKAGE_VERSION
1091 PACKAGE_TARNAME
1092 PACKAGE_NAME
1093 PATH_SEPARATOR
1094 SHELL'
1095 ac_subst_files='deps_frag
1096 ns_frag'
1097 ac_user_opts='
1098 enable_option_checking
1099 with_pop
1100 with_kerberos
1101 with_kerberos5
1102 with_hesiod
1103 with_mmdf
1104 with_mail_unlink
1105 with_mailhost
1106 with_sound
1107 with_sync_input
1108 with_x_toolkit
1109 with_xpm
1110 with_jpeg
1111 with_tiff
1112 with_gif
1113 with_png
1114 with_rsvg
1115 with_xml2
1116 with_imagemagick
1117 with_xft
1118 with_libotf
1119 with_m17n_flt
1120 with_toolkit_scroll_bars
1121 with_xaw3d
1122 with_xim
1123 with_ns
1124 with_gpm
1125 with_dbus
1126 with_gconf
1127 with_selinux
1128 with_gnutls
1129 with_makeinfo
1130 with_compress_info
1131 with_pkg_config_prog
1132 with_crt_dir
1133 with_gameuser
1134 with_gnustep_conf
1135 enable_ns_self_contained
1136 enable_asserts
1137 enable_maintainer_mode
1138 enable_locallisppath
1139 enable_checking
1140 enable_use_lisp_union_type
1141 enable_profiling
1142 enable_autodepend
1143 enable_dependency_tracking
1144 enable_largefile
1145 with_x
1147 ac_precious_vars='build_alias
1148 host_alias
1149 target_alias
1151 CFLAGS
1152 LDFLAGS
1153 LIBS
1154 CPPFLAGS
1156 XMKMF'
1159 # Initialize some variables set by options.
1160 ac_init_help=
1161 ac_init_version=false
1162 ac_unrecognized_opts=
1163 ac_unrecognized_sep=
1164 # The variables have the same names as the options, with
1165 # dashes changed to underlines.
1166 cache_file=/dev/null
1167 exec_prefix=NONE
1168 no_create=
1169 no_recursion=
1170 prefix=NONE
1171 program_prefix=NONE
1172 program_suffix=NONE
1173 program_transform_name=s,x,x,
1174 silent=
1175 site=
1176 srcdir=
1177 verbose=
1178 x_includes=NONE
1179 x_libraries=NONE
1181 # Installation directory options.
1182 # These are left unexpanded so users can "make install exec_prefix=/foo"
1183 # and all the variables that are supposed to be based on exec_prefix
1184 # by default will actually change.
1185 # Use braces instead of parens because sh, perl, etc. also accept them.
1186 # (The list follows the same order as the GNU Coding Standards.)
1187 bindir='${exec_prefix}/bin'
1188 sbindir='${exec_prefix}/sbin'
1189 libexecdir='${exec_prefix}/libexec'
1190 datarootdir='${prefix}/share'
1191 datadir='${datarootdir}'
1192 sysconfdir='${prefix}/etc'
1193 sharedstatedir='${prefix}/com'
1194 localstatedir='${prefix}/var'
1195 includedir='${prefix}/include'
1196 oldincludedir='/usr/include'
1197 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1198 infodir='${datarootdir}/info'
1199 htmldir='${docdir}'
1200 dvidir='${docdir}'
1201 pdfdir='${docdir}'
1202 psdir='${docdir}'
1203 libdir='${exec_prefix}/lib'
1204 localedir='${datarootdir}/locale'
1205 mandir='${datarootdir}/man'
1207 ac_prev=
1208 ac_dashdash=
1209 for ac_option
1211 # If the previous option needs an argument, assign it.
1212 if test -n "$ac_prev"; then
1213 eval $ac_prev=\$ac_option
1214 ac_prev=
1215 continue
1218 case $ac_option in
1219 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1220 *=) ac_optarg= ;;
1221 *) ac_optarg=yes ;;
1222 esac
1224 # Accept the important Cygnus configure options, so we can diagnose typos.
1226 case $ac_dashdash$ac_option in
1228 ac_dashdash=yes ;;
1230 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1231 ac_prev=bindir ;;
1232 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1233 bindir=$ac_optarg ;;
1235 -build | --build | --buil | --bui | --bu)
1236 ac_prev=build_alias ;;
1237 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1238 build_alias=$ac_optarg ;;
1240 -cache-file | --cache-file | --cache-fil | --cache-fi \
1241 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1242 ac_prev=cache_file ;;
1243 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1244 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1245 cache_file=$ac_optarg ;;
1247 --config-cache | -C)
1248 cache_file=config.cache ;;
1250 -datadir | --datadir | --datadi | --datad)
1251 ac_prev=datadir ;;
1252 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1253 datadir=$ac_optarg ;;
1255 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1256 | --dataroo | --dataro | --datar)
1257 ac_prev=datarootdir ;;
1258 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1259 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1260 datarootdir=$ac_optarg ;;
1262 -disable-* | --disable-*)
1263 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 as_fn_error $? "invalid feature name: $ac_useropt"
1267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1271 "enable_$ac_useropt"
1272 "*) ;;
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
1275 esac
1276 eval enable_$ac_useropt=no ;;
1278 -docdir | --docdir | --docdi | --doc | --do)
1279 ac_prev=docdir ;;
1280 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1281 docdir=$ac_optarg ;;
1283 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1284 ac_prev=dvidir ;;
1285 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1286 dvidir=$ac_optarg ;;
1288 -enable-* | --enable-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error $? "invalid feature name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1297 "enable_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval enable_$ac_useropt=\$ac_optarg ;;
1304 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1305 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1306 | --exec | --exe | --ex)
1307 ac_prev=exec_prefix ;;
1308 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1309 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1310 | --exec=* | --exe=* | --ex=*)
1311 exec_prefix=$ac_optarg ;;
1313 -gas | --gas | --ga | --g)
1314 # Obsolete; use --with-gas.
1315 with_gas=yes ;;
1317 -help | --help | --hel | --he | -h)
1318 ac_init_help=long ;;
1319 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1320 ac_init_help=recursive ;;
1321 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1322 ac_init_help=short ;;
1324 -host | --host | --hos | --ho)
1325 ac_prev=host_alias ;;
1326 -host=* | --host=* | --hos=* | --ho=*)
1327 host_alias=$ac_optarg ;;
1329 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1330 ac_prev=htmldir ;;
1331 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1332 | --ht=*)
1333 htmldir=$ac_optarg ;;
1335 -includedir | --includedir | --includedi | --included | --include \
1336 | --includ | --inclu | --incl | --inc)
1337 ac_prev=includedir ;;
1338 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1339 | --includ=* | --inclu=* | --incl=* | --inc=*)
1340 includedir=$ac_optarg ;;
1342 -infodir | --infodir | --infodi | --infod | --info | --inf)
1343 ac_prev=infodir ;;
1344 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1345 infodir=$ac_optarg ;;
1347 -libdir | --libdir | --libdi | --libd)
1348 ac_prev=libdir ;;
1349 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1350 libdir=$ac_optarg ;;
1352 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1353 | --libexe | --libex | --libe)
1354 ac_prev=libexecdir ;;
1355 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1356 | --libexe=* | --libex=* | --libe=*)
1357 libexecdir=$ac_optarg ;;
1359 -localedir | --localedir | --localedi | --localed | --locale)
1360 ac_prev=localedir ;;
1361 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1362 localedir=$ac_optarg ;;
1364 -localstatedir | --localstatedir | --localstatedi | --localstated \
1365 | --localstate | --localstat | --localsta | --localst | --locals)
1366 ac_prev=localstatedir ;;
1367 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1368 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1369 localstatedir=$ac_optarg ;;
1371 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1372 ac_prev=mandir ;;
1373 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1374 mandir=$ac_optarg ;;
1376 -nfp | --nfp | --nf)
1377 # Obsolete; use --without-fp.
1378 with_fp=no ;;
1380 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1381 | --no-cr | --no-c | -n)
1382 no_create=yes ;;
1384 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1385 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1386 no_recursion=yes ;;
1388 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1389 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1390 | --oldin | --oldi | --old | --ol | --o)
1391 ac_prev=oldincludedir ;;
1392 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1393 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1394 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1395 oldincludedir=$ac_optarg ;;
1397 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1398 ac_prev=prefix ;;
1399 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1400 prefix=$ac_optarg ;;
1402 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1403 | --program-pre | --program-pr | --program-p)
1404 ac_prev=program_prefix ;;
1405 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1406 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1407 program_prefix=$ac_optarg ;;
1409 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1410 | --program-suf | --program-su | --program-s)
1411 ac_prev=program_suffix ;;
1412 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1413 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1414 program_suffix=$ac_optarg ;;
1416 -program-transform-name | --program-transform-name \
1417 | --program-transform-nam | --program-transform-na \
1418 | --program-transform-n | --program-transform- \
1419 | --program-transform | --program-transfor \
1420 | --program-transfo | --program-transf \
1421 | --program-trans | --program-tran \
1422 | --progr-tra | --program-tr | --program-t)
1423 ac_prev=program_transform_name ;;
1424 -program-transform-name=* | --program-transform-name=* \
1425 | --program-transform-nam=* | --program-transform-na=* \
1426 | --program-transform-n=* | --program-transform-=* \
1427 | --program-transform=* | --program-transfor=* \
1428 | --program-transfo=* | --program-transf=* \
1429 | --program-trans=* | --program-tran=* \
1430 | --progr-tra=* | --program-tr=* | --program-t=*)
1431 program_transform_name=$ac_optarg ;;
1433 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1434 ac_prev=pdfdir ;;
1435 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1436 pdfdir=$ac_optarg ;;
1438 -psdir | --psdir | --psdi | --psd | --ps)
1439 ac_prev=psdir ;;
1440 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1441 psdir=$ac_optarg ;;
1443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1444 | -silent | --silent | --silen | --sile | --sil)
1445 silent=yes ;;
1447 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1448 ac_prev=sbindir ;;
1449 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1450 | --sbi=* | --sb=*)
1451 sbindir=$ac_optarg ;;
1453 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1454 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1455 | --sharedst | --shareds | --shared | --share | --shar \
1456 | --sha | --sh)
1457 ac_prev=sharedstatedir ;;
1458 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1459 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1460 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1461 | --sha=* | --sh=*)
1462 sharedstatedir=$ac_optarg ;;
1464 -site | --site | --sit)
1465 ac_prev=site ;;
1466 -site=* | --site=* | --sit=*)
1467 site=$ac_optarg ;;
1469 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1470 ac_prev=srcdir ;;
1471 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1472 srcdir=$ac_optarg ;;
1474 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1475 | --syscon | --sysco | --sysc | --sys | --sy)
1476 ac_prev=sysconfdir ;;
1477 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1478 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1479 sysconfdir=$ac_optarg ;;
1481 -target | --target | --targe | --targ | --tar | --ta | --t)
1482 ac_prev=target_alias ;;
1483 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1484 target_alias=$ac_optarg ;;
1486 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1487 verbose=yes ;;
1489 -version | --version | --versio | --versi | --vers | -V)
1490 ac_init_version=: ;;
1492 -with-* | --with-*)
1493 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1494 # Reject names that are not valid shell variable names.
1495 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1496 as_fn_error $? "invalid package name: $ac_useropt"
1497 ac_useropt_orig=$ac_useropt
1498 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1499 case $ac_user_opts in
1501 "with_$ac_useropt"
1502 "*) ;;
1503 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1504 ac_unrecognized_sep=', ';;
1505 esac
1506 eval with_$ac_useropt=\$ac_optarg ;;
1508 -without-* | --without-*)
1509 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1510 # Reject names that are not valid shell variable names.
1511 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1512 as_fn_error $? "invalid package name: $ac_useropt"
1513 ac_useropt_orig=$ac_useropt
1514 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1515 case $ac_user_opts in
1517 "with_$ac_useropt"
1518 "*) ;;
1519 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1520 ac_unrecognized_sep=', ';;
1521 esac
1522 eval with_$ac_useropt=no ;;
1524 --x)
1525 # Obsolete; use --with-x.
1526 with_x=yes ;;
1528 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1529 | --x-incl | --x-inc | --x-in | --x-i)
1530 ac_prev=x_includes ;;
1531 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1532 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1533 x_includes=$ac_optarg ;;
1535 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1536 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1537 ac_prev=x_libraries ;;
1538 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1539 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1540 x_libraries=$ac_optarg ;;
1542 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1543 Try \`$0 --help' for more information"
1546 *=*)
1547 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1548 # Reject names that are not valid shell variable names.
1549 case $ac_envvar in #(
1550 '' | [0-9]* | *[!_$as_cr_alnum]* )
1551 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1552 esac
1553 eval $ac_envvar=\$ac_optarg
1554 export $ac_envvar ;;
1557 # FIXME: should be removed in autoconf 3.0.
1558 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1559 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1560 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1561 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1564 esac
1565 done
1567 if test -n "$ac_prev"; then
1568 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1569 as_fn_error $? "missing argument to $ac_option"
1572 if test -n "$ac_unrecognized_opts"; then
1573 case $enable_option_checking in
1574 no) ;;
1575 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1576 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1577 esac
1580 # Check all directory arguments for consistency.
1581 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1582 datadir sysconfdir sharedstatedir localstatedir includedir \
1583 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1584 libdir localedir mandir
1586 eval ac_val=\$$ac_var
1587 # Remove trailing slashes.
1588 case $ac_val in
1589 */ )
1590 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1591 eval $ac_var=\$ac_val;;
1592 esac
1593 # Be sure to have absolute directory names.
1594 case $ac_val in
1595 [\\/$]* | ?:[\\/]* ) continue;;
1596 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1597 esac
1598 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1599 done
1601 # There might be people who depend on the old broken behavior: `$host'
1602 # used to hold the argument of --host etc.
1603 # FIXME: To remove some day.
1604 build=$build_alias
1605 host=$host_alias
1606 target=$target_alias
1608 # FIXME: To remove some day.
1609 if test "x$host_alias" != x; then
1610 if test "x$build_alias" = x; then
1611 cross_compiling=maybe
1612 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1613 If a cross compiler is detected then cross compile mode will be used" >&2
1614 elif test "x$build_alias" != "x$host_alias"; then
1615 cross_compiling=yes
1619 ac_tool_prefix=
1620 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1622 test "$silent" = yes && exec 6>/dev/null
1625 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1626 ac_ls_di=`ls -di .` &&
1627 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1628 as_fn_error $? "working directory cannot be determined"
1629 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1630 as_fn_error $? "pwd does not report name of working directory"
1633 # Find the source files, if location was not specified.
1634 if test -z "$srcdir"; then
1635 ac_srcdir_defaulted=yes
1636 # Try the directory containing this script, then the parent directory.
1637 ac_confdir=`$as_dirname -- "$as_myself" ||
1638 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1639 X"$as_myself" : 'X\(//\)[^/]' \| \
1640 X"$as_myself" : 'X\(//\)$' \| \
1641 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1642 $as_echo X"$as_myself" |
1643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1644 s//\1/
1647 /^X\(\/\/\)[^/].*/{
1648 s//\1/
1651 /^X\(\/\/\)$/{
1652 s//\1/
1655 /^X\(\/\).*/{
1656 s//\1/
1659 s/.*/./; q'`
1660 srcdir=$ac_confdir
1661 if test ! -r "$srcdir/$ac_unique_file"; then
1662 srcdir=..
1664 else
1665 ac_srcdir_defaulted=no
1667 if test ! -r "$srcdir/$ac_unique_file"; then
1668 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1669 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1671 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1672 ac_abs_confdir=`(
1673 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1674 pwd)`
1675 # When building in place, set srcdir=.
1676 if test "$ac_abs_confdir" = "$ac_pwd"; then
1677 srcdir=.
1679 # Remove unnecessary trailing slashes from srcdir.
1680 # Double slashes in file names in object file debugging info
1681 # mess up M-x gdb in Emacs.
1682 case $srcdir in
1683 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1684 esac
1685 for ac_var in $ac_precious_vars; do
1686 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1687 eval ac_env_${ac_var}_value=\$${ac_var}
1688 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1689 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1690 done
1693 # Report the --help message.
1695 if test "$ac_init_help" = "long"; then
1696 # Omit some internal or obsolete options to make the list less imposing.
1697 # This message is too long to be a string in the A/UX 3.1 sh.
1698 cat <<_ACEOF
1699 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1701 Usage: $0 [OPTION]... [VAR=VALUE]...
1703 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1704 VAR=VALUE. See below for descriptions of some of the useful variables.
1706 Defaults for the options are specified in brackets.
1708 Configuration:
1709 -h, --help display this help and exit
1710 --help=short display options specific to this package
1711 --help=recursive display the short help of all the included packages
1712 -V, --version display version information and exit
1713 -q, --quiet, --silent do not print \`checking ...' messages
1714 --cache-file=FILE cache test results in FILE [disabled]
1715 -C, --config-cache alias for \`--cache-file=config.cache'
1716 -n, --no-create do not create output files
1717 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1719 Installation directories:
1720 --prefix=PREFIX install architecture-independent files in PREFIX
1721 [$ac_default_prefix]
1722 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1723 [PREFIX]
1725 By default, \`make install' will install all the files in
1726 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1727 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1728 for instance \`--prefix=\$HOME'.
1730 For better control, use the options below.
1732 Fine tuning of the installation directories:
1733 --bindir=DIR user executables [EPREFIX/bin]
1734 --sbindir=DIR system admin executables [EPREFIX/sbin]
1735 --libexecdir=DIR program executables [EPREFIX/libexec]
1736 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1737 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1738 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1739 --libdir=DIR object code libraries [EPREFIX/lib]
1740 --includedir=DIR C header files [PREFIX/include]
1741 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1742 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1743 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1744 --infodir=DIR info documentation [DATAROOTDIR/info]
1745 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1746 --mandir=DIR man documentation [DATAROOTDIR/man]
1747 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1748 --htmldir=DIR html documentation [DOCDIR]
1749 --dvidir=DIR dvi documentation [DOCDIR]
1750 --pdfdir=DIR pdf documentation [DOCDIR]
1751 --psdir=DIR ps documentation [DOCDIR]
1752 _ACEOF
1754 cat <<\_ACEOF
1756 Program names:
1757 --program-prefix=PREFIX prepend PREFIX to installed program names
1758 --program-suffix=SUFFIX append SUFFIX to installed program names
1759 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1761 X features:
1762 --x-includes=DIR X include files are in DIR
1763 --x-libraries=DIR X library files are in DIR
1765 System types:
1766 --build=BUILD configure for building on BUILD [guessed]
1767 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1768 _ACEOF
1771 if test -n "$ac_init_help"; then
1772 case $ac_init_help in
1773 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1774 esac
1775 cat <<\_ACEOF
1777 Optional Features:
1778 --disable-option-checking ignore unrecognized --enable/--with options
1779 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1780 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1781 --disable-ns-self-contained
1782 disable self contained build under NeXTstep
1783 --enable-asserts compile code with asserts enabled
1784 --enable-maintainer-mode
1785 enable make rules and dependencies not useful (and
1786 sometimes confusing) to the casual installer
1787 --enable-locallisppath=PATH
1788 directories Emacs should search for lisp files
1789 specific to this site
1790 --enable-checking[=LIST]
1791 enable expensive run-time checks. With LIST, enable
1792 only specific categories of checks. Categories are:
1793 all,yes,no. Flags are: stringbytes, stringoverrun,
1794 stringfreelist, xmallocoverrun, conslist
1795 --enable-use-lisp-union-type
1796 use a union for the Lisp_Object data type. This is
1797 only useful for development for catching certain
1798 types of bugs.
1799 --enable-profiling build emacs with profiling support. This might not
1800 work on all platforms
1801 --enable-autodepend automatically generate dependencies to .h-files.
1802 Requires GNU Make and Gcc. Enabled if GNU Make and
1803 Gcc is found
1804 --disable-dependency-tracking speeds up one-time build
1805 --enable-dependency-tracking do not reject slow dependency extractors
1806 --disable-largefile omit support for large files
1808 Optional Packages:
1809 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1810 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1811 --without-pop don't support POP mail retrieval with movemail
1812 --with-kerberos support Kerberos-authenticated POP
1813 --with-kerberos5 support Kerberos version 5 authenticated POP
1814 --with-hesiod support Hesiod to get the POP server host
1815 --with-mmdf support MMDF mailboxes
1816 --with-mail-unlink unlink, rather than empty, mail spool after reading
1817 --with-mailhost=HOSTNAME
1818 string giving default POP mail host
1819 --without-sound don't compile with sound support
1820 --without-sync-input process async input synchronously
1821 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1822 lucid or athena, motif, no)
1823 --without-xpm don't compile with XPM image support
1824 --without-jpeg don't compile with JPEG image support
1825 --without-tiff don't compile with TIFF image support
1826 --without-gif don't compile with GIF image support
1827 --without-png don't compile with PNG image support
1828 --without-rsvg don't compile with SVG image support
1829 --without-xml2 don't compile with XML parsing support
1830 --without-imagemagick don't compile with ImageMagick image support
1831 --without-xft don't use XFT for anti aliased fonts
1832 --without-libotf don't use libotf for OpenType font support
1833 --without-m17n-flt don't use m17n-flt for text shaping
1834 --without-toolkit-scroll-bars
1835 don't use Motif or Xaw3d scroll bars
1836 --without-xaw3d don't use Xaw3d
1837 --without-xim don't use X11 XIM
1838 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1839 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1840 console
1841 --without-dbus don't compile with D-Bus support
1842 --without-gconf don't compile with GConf support
1843 --without-selinux don't compile with SELinux support
1844 --without-gnutls don't use -lgnutls for SSL/TLS support
1845 --without-makeinfo don't require makeinfo for building manuals
1846 --without-compress-info don't compress the installed Info pages
1847 --with-pkg-config-prog=PATH
1848 path to pkg-config for finding GTK and librsvg
1849 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1850 /usr/lib, or /usr/lib64 on some platforms.
1851 --with-gameuser=USER user for shared game score files
1852 --with-gnustep-conf=PATH
1853 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1854 or /etc/GNUstep/GNUstep.conf
1855 --with-x use the X Window System
1857 Some influential environment variables:
1858 CC C compiler command
1859 CFLAGS C compiler flags
1860 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1861 nonstandard directory <lib dir>
1862 LIBS libraries to pass to the linker, e.g. -l<library>
1863 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1864 you have headers in a nonstandard directory <include dir>
1865 CPP C preprocessor
1866 XMKMF Path to xmkmf, Makefile generator for X Window System
1868 Use these variables to override the choices made by `configure' or to help
1869 it to find libraries and programs with nonstandard names/locations.
1871 Report bugs to the package provider.
1872 _ACEOF
1873 ac_status=$?
1876 if test "$ac_init_help" = "recursive"; then
1877 # If there are subdirs, report their specific --help.
1878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1879 test -d "$ac_dir" ||
1880 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1881 continue
1882 ac_builddir=.
1884 case "$ac_dir" in
1885 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1887 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1888 # A ".." for each directory in $ac_dir_suffix.
1889 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1890 case $ac_top_builddir_sub in
1891 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1892 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1893 esac ;;
1894 esac
1895 ac_abs_top_builddir=$ac_pwd
1896 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1897 # for backward compatibility:
1898 ac_top_builddir=$ac_top_build_prefix
1900 case $srcdir in
1901 .) # We are building in place.
1902 ac_srcdir=.
1903 ac_top_srcdir=$ac_top_builddir_sub
1904 ac_abs_top_srcdir=$ac_pwd ;;
1905 [\\/]* | ?:[\\/]* ) # Absolute name.
1906 ac_srcdir=$srcdir$ac_dir_suffix;
1907 ac_top_srcdir=$srcdir
1908 ac_abs_top_srcdir=$srcdir ;;
1909 *) # Relative name.
1910 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1911 ac_top_srcdir=$ac_top_build_prefix$srcdir
1912 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1913 esac
1914 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1916 cd "$ac_dir" || { ac_status=$?; continue; }
1917 # Check for guested configure.
1918 if test -f "$ac_srcdir/configure.gnu"; then
1919 echo &&
1920 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1921 elif test -f "$ac_srcdir/configure"; then
1922 echo &&
1923 $SHELL "$ac_srcdir/configure" --help=recursive
1924 else
1925 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1926 fi || ac_status=$?
1927 cd "$ac_pwd" || { ac_status=$?; break; }
1928 done
1931 test -n "$ac_init_help" && exit $ac_status
1932 if $ac_init_version; then
1933 cat <<\_ACEOF
1934 emacs configure 24.0.50
1935 generated by GNU Autoconf 2.67
1937 Copyright (C) 2010 Free Software Foundation, Inc.
1938 This configure script is free software; the Free Software Foundation
1939 gives unlimited permission to copy, distribute and modify it.
1940 _ACEOF
1941 exit
1944 ## ------------------------ ##
1945 ## Autoconf initialization. ##
1946 ## ------------------------ ##
1948 # ac_fn_c_try_compile LINENO
1949 # --------------------------
1950 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_c_try_compile ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 rm -f conftest.$ac_objext
1955 if { { ac_try="$ac_compile"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_compile") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && {
1971 test -z "$ac_c_werror_flag" ||
1972 test ! -s conftest.err
1973 } && test -s conftest.$ac_objext; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1979 ac_retval=1
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982 as_fn_set_status $ac_retval
1984 } # ac_fn_c_try_compile
1986 # ac_fn_c_try_cpp LINENO
1987 # ----------------------
1988 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_c_try_cpp ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if { { ac_try="$ac_cpp conftest.$ac_ext"
1993 case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } > conftest.i && {
2008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2009 test ! -s conftest.err
2010 }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 ac_retval=1
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019 as_fn_set_status $ac_retval
2021 } # ac_fn_c_try_cpp
2023 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2024 # -------------------------------------------------------
2025 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2026 # the include files in INCLUDES and setting the cache variable VAR
2027 # accordingly.
2028 ac_fn_c_check_header_mongrel ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if eval "test \"\${$3+set}\"" = set; then :
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval "test \"\${$3+set}\"" = set; then :
2035 $as_echo_n "(cached) " >&6
2037 eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 else
2041 # Is the header compilable?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2043 $as_echo_n "checking $2 usability... " >&6; }
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2047 #include <$2>
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 ac_header_compiler=yes
2051 else
2052 ac_header_compiler=no
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2056 $as_echo "$ac_header_compiler" >&6; }
2058 # Is the header present?
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2060 $as_echo_n "checking $2 presence... " >&6; }
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 #include <$2>
2064 _ACEOF
2065 if ac_fn_c_try_cpp "$LINENO"; then :
2066 ac_header_preproc=yes
2067 else
2068 ac_header_preproc=no
2070 rm -f conftest.err conftest.i conftest.$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2072 $as_echo "$ac_header_preproc" >&6; }
2074 # So? What about this header?
2075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2076 yes:no: )
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2078 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2080 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2082 no:yes:* )
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2084 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2086 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2088 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2090 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 esac
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if eval "test \"\${$3+set}\"" = set; then :
2098 $as_echo_n "(cached) " >&6
2099 else
2100 eval "$3=\$ac_header_compiler"
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108 } # ac_fn_c_check_header_mongrel
2110 # ac_fn_c_try_run LINENO
2111 # ----------------------
2112 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2113 # that executables *can* be run.
2114 ac_fn_c_try_run ()
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 if { { ac_try="$ac_link"
2118 case "(($ac_try" in
2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2121 esac
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 $as_echo "$ac_try_echo"; } >&5
2124 (eval "$ac_link") 2>&5
2125 ac_status=$?
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2128 { { case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_try") 2>&5
2135 ac_status=$?
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; }; }; then :
2138 ac_retval=0
2139 else
2140 $as_echo "$as_me: program exited with status $ac_status" >&5
2141 $as_echo "$as_me: failed program was:" >&5
2142 sed 's/^/| /' conftest.$ac_ext >&5
2144 ac_retval=$ac_status
2146 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2147 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2148 as_fn_set_status $ac_retval
2150 } # ac_fn_c_try_run
2152 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2153 # -------------------------------------------------------
2154 # Tests whether HEADER exists and can be compiled using the include files in
2155 # INCLUDES, setting the cache variable VAR accordingly.
2156 ac_fn_c_check_header_compile ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval "test \"\${$3+set}\"" = set; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2167 #include <$2>
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 eval "$3=yes"
2171 else
2172 eval "$3=no"
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181 } # ac_fn_c_check_header_compile
2183 # ac_fn_c_try_link LINENO
2184 # -----------------------
2185 # Try to link conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_c_try_link ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 rm -f conftest.$ac_objext conftest$ac_exeext
2190 if { { ac_try="$ac_link"
2191 case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_link") 2>conftest.err
2198 ac_status=$?
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } && {
2206 test -z "$ac_c_werror_flag" ||
2207 test ! -s conftest.err
2208 } && test -s conftest$ac_exeext && {
2209 test "$cross_compiling" = yes ||
2210 $as_test_x conftest$ac_exeext
2211 }; then :
2212 ac_retval=0
2213 else
2214 $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2217 ac_retval=1
2219 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2220 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2221 # interfere with the next link command; also delete a directory that is
2222 # left behind by Apple's compiler. We do this before executing the actions.
2223 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2224 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2225 as_fn_set_status $ac_retval
2227 } # ac_fn_c_try_link
2229 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2230 # ---------------------------------------------
2231 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2232 # accordingly.
2233 ac_fn_c_check_decl ()
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 as_decl_name=`echo $2|sed 's/ *(.*//'`
2237 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2239 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2240 if eval "test \"\${$3+set}\"" = set; then :
2241 $as_echo_n "(cached) " >&6
2242 else
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2247 main ()
2249 #ifndef $as_decl_name
2250 #ifdef __cplusplus
2251 (void) $as_decl_use;
2252 #else
2253 (void) $as_decl_name;
2254 #endif
2255 #endif
2258 return 0;
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262 eval "$3=yes"
2263 else
2264 eval "$3=no"
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 eval ac_res=\$$3
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 $as_echo "$ac_res" >&6; }
2271 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2273 } # ac_fn_c_check_decl
2275 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2276 # ----------------------------------------------
2277 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2278 ac_fn_c_check_header_preproc ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if eval "test \"\${$3+set}\"" = set; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2288 #include <$2>
2289 _ACEOF
2290 if ac_fn_c_try_cpp "$LINENO"; then :
2291 eval "$3=yes"
2292 else
2293 eval "$3=no"
2295 rm -f conftest.err conftest.i conftest.$ac_ext
2297 eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2302 } # ac_fn_c_check_header_preproc
2304 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2305 # ----------------------------------------------------
2306 # Tries to find if the field MEMBER exists in type AGGR, after including
2307 # INCLUDES, setting cache variable VAR accordingly.
2308 ac_fn_c_check_member ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2312 $as_echo_n "checking for $2.$3... " >&6; }
2313 if eval "test \"\${$4+set}\"" = set; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2320 main ()
2322 static $2 ac_aggr;
2323 if (ac_aggr.$3)
2324 return 0;
2326 return 0;
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330 eval "$4=yes"
2331 else
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2336 main ()
2338 static $2 ac_aggr;
2339 if (sizeof ac_aggr.$3)
2340 return 0;
2342 return 0;
2344 _ACEOF
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346 eval "$4=yes"
2347 else
2348 eval "$4=no"
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 eval ac_res=\$$4
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2357 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2359 } # ac_fn_c_check_member
2361 # ac_fn_c_check_func LINENO FUNC VAR
2362 # ----------------------------------
2363 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2364 ac_fn_c_check_func ()
2366 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if eval "test \"\${$3+set}\"" = set; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2374 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2376 #define $2 innocuous_$2
2378 /* System header to define __stub macros and hopefully few prototypes,
2379 which can conflict with char $2 (); below.
2380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2381 <limits.h> exists even on freestanding compilers. */
2383 #ifdef __STDC__
2384 # include <limits.h>
2385 #else
2386 # include <assert.h>
2387 #endif
2389 #undef $2
2391 /* Override any GCC internal prototype to avoid an error.
2392 Use char because int might match the return type of a GCC
2393 builtin and then its argument prototype would still apply. */
2394 #ifdef __cplusplus
2395 extern "C"
2396 #endif
2397 char $2 ();
2398 /* The GNU C library defines this for functions which it implements
2399 to always fail with ENOSYS. Some functions are actually named
2400 something starting with __ and the normal name is an alias. */
2401 #if defined __stub_$2 || defined __stub___$2
2402 choke me
2403 #endif
2406 main ()
2408 return $2 ();
2410 return 0;
2412 _ACEOF
2413 if ac_fn_c_try_link "$LINENO"; then :
2414 eval "$3=yes"
2415 else
2416 eval "$3=no"
2418 rm -f core conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2421 eval ac_res=\$$3
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2423 $as_echo "$ac_res" >&6; }
2424 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2426 } # ac_fn_c_check_func
2428 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2429 # -------------------------------------------
2430 # Tests whether TYPE exists after having included INCLUDES, setting cache
2431 # variable VAR accordingly.
2432 ac_fn_c_check_type ()
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2436 $as_echo_n "checking for $2... " >&6; }
2437 if eval "test \"\${$3+set}\"" = set; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 eval "$3=no"
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2445 main ()
2447 if (sizeof ($2))
2448 return 0;
2450 return 0;
2452 _ACEOF
2453 if ac_fn_c_try_compile "$LINENO"; then :
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2458 main ()
2460 if (sizeof (($2)))
2461 return 0;
2463 return 0;
2465 _ACEOF
2466 if ac_fn_c_try_compile "$LINENO"; then :
2468 else
2469 eval "$3=yes"
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 eval ac_res=\$$3
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2480 } # ac_fn_c_check_type
2482 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2483 # --------------------------------------------
2484 # Tries to find the compile-time value of EXPR in a program that includes
2485 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2486 # computed
2487 ac_fn_c_compute_int ()
2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490 if test "$cross_compiling" = yes; then
2491 # Depending upon the size, compute the lo and hi bounds.
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2496 main ()
2498 static int test_array [1 - 2 * !(($2) >= 0)];
2499 test_array [0] = 0
2502 return 0;
2504 _ACEOF
2505 if ac_fn_c_try_compile "$LINENO"; then :
2506 ac_lo=0 ac_mid=0
2507 while :; do
2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509 /* end confdefs.h. */
2512 main ()
2514 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2515 test_array [0] = 0
2518 return 0;
2520 _ACEOF
2521 if ac_fn_c_try_compile "$LINENO"; then :
2522 ac_hi=$ac_mid; break
2523 else
2524 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2525 if test $ac_lo -le $ac_mid; then
2526 ac_lo= ac_hi=
2527 break
2529 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 done
2533 else
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2538 main ()
2540 static int test_array [1 - 2 * !(($2) < 0)];
2541 test_array [0] = 0
2544 return 0;
2546 _ACEOF
2547 if ac_fn_c_try_compile "$LINENO"; then :
2548 ac_hi=-1 ac_mid=-1
2549 while :; do
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2554 main ()
2556 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2557 test_array [0] = 0
2560 return 0;
2562 _ACEOF
2563 if ac_fn_c_try_compile "$LINENO"; then :
2564 ac_lo=$ac_mid; break
2565 else
2566 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2567 if test $ac_mid -le $ac_hi; then
2568 ac_lo= ac_hi=
2569 break
2571 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 done
2575 else
2576 ac_lo= ac_hi=
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 # Binary search between lo and hi bounds.
2582 while test "x$ac_lo" != "x$ac_hi"; do
2583 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2588 main ()
2590 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2591 test_array [0] = 0
2594 return 0;
2596 _ACEOF
2597 if ac_fn_c_try_compile "$LINENO"; then :
2598 ac_hi=$ac_mid
2599 else
2600 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 done
2604 case $ac_lo in #((
2605 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2606 '') ac_retval=1 ;;
2607 esac
2608 else
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2612 static long int longval () { return $2; }
2613 static unsigned long int ulongval () { return $2; }
2614 #include <stdio.h>
2615 #include <stdlib.h>
2617 main ()
2620 FILE *f = fopen ("conftest.val", "w");
2621 if (! f)
2622 return 1;
2623 if (($2) < 0)
2625 long int i = longval ();
2626 if (i != ($2))
2627 return 1;
2628 fprintf (f, "%ld", i);
2630 else
2632 unsigned long int i = ulongval ();
2633 if (i != ($2))
2634 return 1;
2635 fprintf (f, "%lu", i);
2637 /* Do not output a trailing newline, as this causes \r\n confusion
2638 on some platforms. */
2639 return ferror (f) || fclose (f) != 0;
2642 return 0;
2644 _ACEOF
2645 if ac_fn_c_try_run "$LINENO"; then :
2646 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2647 else
2648 ac_retval=1
2650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2651 conftest.$ac_objext conftest.beam conftest.$ac_ext
2652 rm -f conftest.val
2655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2656 as_fn_set_status $ac_retval
2658 } # ac_fn_c_compute_int
2659 cat >config.log <<_ACEOF
2660 This file contains any messages produced by compilers while
2661 running configure, to aid debugging if configure makes a mistake.
2663 It was created by emacs $as_me 24.0.50, which was
2664 generated by GNU Autoconf 2.67. Invocation command line was
2666 $ $0 $@
2668 _ACEOF
2669 exec 5>>config.log
2671 cat <<_ASUNAME
2672 ## --------- ##
2673 ## Platform. ##
2674 ## --------- ##
2676 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2677 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2678 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2679 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2680 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2682 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2683 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2685 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2686 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2687 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2688 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2689 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2690 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2691 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2693 _ASUNAME
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 $as_echo "PATH: $as_dir"
2701 done
2702 IFS=$as_save_IFS
2704 } >&5
2706 cat >&5 <<_ACEOF
2709 ## ----------- ##
2710 ## Core tests. ##
2711 ## ----------- ##
2713 _ACEOF
2716 # Keep a trace of the command line.
2717 # Strip out --no-create and --no-recursion so they do not pile up.
2718 # Strip out --silent because we don't want to record it for future runs.
2719 # Also quote any args containing shell meta-characters.
2720 # Make two passes to allow for proper duplicate-argument suppression.
2721 ac_configure_args=
2722 ac_configure_args0=
2723 ac_configure_args1=
2724 ac_must_keep_next=false
2725 for ac_pass in 1 2
2727 for ac_arg
2729 case $ac_arg in
2730 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2732 | -silent | --silent | --silen | --sile | --sil)
2733 continue ;;
2734 *\'*)
2735 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2736 esac
2737 case $ac_pass in
2738 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2740 as_fn_append ac_configure_args1 " '$ac_arg'"
2741 if test $ac_must_keep_next = true; then
2742 ac_must_keep_next=false # Got value, back to normal.
2743 else
2744 case $ac_arg in
2745 *=* | --config-cache | -C | -disable-* | --disable-* \
2746 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2747 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2748 | -with-* | --with-* | -without-* | --without-* | --x)
2749 case "$ac_configure_args0 " in
2750 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2751 esac
2753 -* ) ac_must_keep_next=true ;;
2754 esac
2756 as_fn_append ac_configure_args " '$ac_arg'"
2758 esac
2759 done
2760 done
2761 { ac_configure_args0=; unset ac_configure_args0;}
2762 { ac_configure_args1=; unset ac_configure_args1;}
2764 # When interrupted or exit'd, cleanup temporary files, and complete
2765 # config.log. We remove comments because anyway the quotes in there
2766 # would cause problems or look ugly.
2767 # WARNING: Use '\'' to represent an apostrophe within the trap.
2768 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2769 trap 'exit_status=$?
2770 # Save into config.log some information that might help in debugging.
2772 echo
2774 $as_echo "## ---------------- ##
2775 ## Cache variables. ##
2776 ## ---------------- ##"
2777 echo
2778 # The following way of writing the cache mishandles newlines in values,
2780 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2781 eval ac_val=\$$ac_var
2782 case $ac_val in #(
2783 *${as_nl}*)
2784 case $ac_var in #(
2785 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2787 esac
2788 case $ac_var in #(
2789 _ | IFS | as_nl) ;; #(
2790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2791 *) { eval $ac_var=; unset $ac_var;} ;;
2792 esac ;;
2793 esac
2794 done
2795 (set) 2>&1 |
2796 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2797 *${as_nl}ac_space=\ *)
2798 sed -n \
2799 "s/'\''/'\''\\\\'\'''\''/g;
2800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2801 ;; #(
2803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2805 esac |
2806 sort
2808 echo
2810 $as_echo "## ----------------- ##
2811 ## Output variables. ##
2812 ## ----------------- ##"
2813 echo
2814 for ac_var in $ac_subst_vars
2816 eval ac_val=\$$ac_var
2817 case $ac_val in
2818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819 esac
2820 $as_echo "$ac_var='\''$ac_val'\''"
2821 done | sort
2822 echo
2824 if test -n "$ac_subst_files"; then
2825 $as_echo "## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##"
2828 echo
2829 for ac_var in $ac_subst_files
2831 eval ac_val=\$$ac_var
2832 case $ac_val in
2833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2834 esac
2835 $as_echo "$ac_var='\''$ac_val'\''"
2836 done | sort
2837 echo
2840 if test -s confdefs.h; then
2841 $as_echo "## ----------- ##
2842 ## confdefs.h. ##
2843 ## ----------- ##"
2844 echo
2845 cat confdefs.h
2846 echo
2848 test "$ac_signal" != 0 &&
2849 $as_echo "$as_me: caught signal $ac_signal"
2850 $as_echo "$as_me: exit $exit_status"
2851 } >&5
2852 rm -f core *.core core.conftest.* &&
2853 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2854 exit $exit_status
2856 for ac_signal in 1 2 13 15; do
2857 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2858 done
2859 ac_signal=0
2861 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2862 rm -f -r conftest* confdefs.h
2864 $as_echo "/* confdefs.h */" > confdefs.h
2866 # Predefined preprocessor variables.
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_NAME "$PACKAGE_NAME"
2870 _ACEOF
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2874 _ACEOF
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2878 _ACEOF
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_STRING "$PACKAGE_STRING"
2882 _ACEOF
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2886 _ACEOF
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_URL "$PACKAGE_URL"
2890 _ACEOF
2893 # Let the site file select an alternate cache file if it wants to.
2894 # Prefer an explicitly selected file to automatically selected ones.
2895 ac_site_file1=NONE
2896 ac_site_file2=NONE
2897 if test -n "$CONFIG_SITE"; then
2898 # We do not want a PATH search for config.site.
2899 case $CONFIG_SITE in #((
2900 -*) ac_site_file1=./$CONFIG_SITE;;
2901 */*) ac_site_file1=$CONFIG_SITE;;
2902 *) ac_site_file1=./$CONFIG_SITE;;
2903 esac
2904 elif test "x$prefix" != xNONE; then
2905 ac_site_file1=$prefix/share/config.site
2906 ac_site_file2=$prefix/etc/config.site
2907 else
2908 ac_site_file1=$ac_default_prefix/share/config.site
2909 ac_site_file2=$ac_default_prefix/etc/config.site
2911 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2913 test "x$ac_site_file" = xNONE && continue
2914 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2916 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2917 sed 's/^/| /' "$ac_site_file" >&5
2918 . "$ac_site_file" \
2919 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 as_fn_error $? "failed to load site script $ac_site_file
2922 See \`config.log' for more details" "$LINENO" 5 ; }
2924 done
2926 if test -r "$cache_file"; then
2927 # Some versions of bash will fail to source /dev/null (special files
2928 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2929 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2931 $as_echo "$as_me: loading cache $cache_file" >&6;}
2932 case $cache_file in
2933 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2934 *) . "./$cache_file";;
2935 esac
2937 else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2939 $as_echo "$as_me: creating cache $cache_file" >&6;}
2940 >$cache_file
2943 as_fn_append ac_header_list " stdlib.h"
2944 as_fn_append ac_header_list " unistd.h"
2945 as_fn_append ac_header_list " sys/param.h"
2946 gl_getopt_required=GNU
2947 as_fn_append ac_header_list " getopt.h"
2948 as_fn_append ac_func_list " alarm"
2949 as_fn_append ac_header_list " wchar.h"
2950 as_fn_append ac_header_list " stdint.h"
2951 as_fn_append ac_func_list " tzset"
2952 as_fn_append ac_header_list " sys/stat.h"
2953 as_fn_append ac_header_list " sys/time.h"
2954 as_fn_append ac_func_list " localtime_r"
2955 # Check that the precious variables saved in the cache have kept the same
2956 # value.
2957 ac_cache_corrupted=false
2958 for ac_var in $ac_precious_vars; do
2959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2960 eval ac_new_set=\$ac_env_${ac_var}_set
2961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2962 eval ac_new_val=\$ac_env_${ac_var}_value
2963 case $ac_old_set,$ac_new_set in
2964 set,)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2966 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2967 ac_cache_corrupted=: ;;
2968 ,set)
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2970 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2971 ac_cache_corrupted=: ;;
2972 ,);;
2974 if test "x$ac_old_val" != "x$ac_new_val"; then
2975 # differences in whitespace do not lead to failure.
2976 ac_old_val_w=`echo x $ac_old_val`
2977 ac_new_val_w=`echo x $ac_new_val`
2978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2981 ac_cache_corrupted=:
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2985 eval $ac_var=\$ac_old_val
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2988 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2990 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2991 fi;;
2992 esac
2993 # Pass precious variables to config.status.
2994 if test "$ac_new_set" = set; then
2995 case $ac_new_val in
2996 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2997 *) ac_arg=$ac_var=$ac_new_val ;;
2998 esac
2999 case " $ac_configure_args " in
3000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3001 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3002 esac
3004 done
3005 if $ac_cache_corrupted; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3009 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3010 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3012 ## -------------------- ##
3013 ## Main body of script. ##
3014 ## -------------------- ##
3016 ac_ext=c
3017 ac_cpp='$CPP $CPPFLAGS'
3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3026 am__api_version='1.11'
3028 ac_aux_dir=
3029 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3030 if test -f "$ac_dir/install-sh"; then
3031 ac_aux_dir=$ac_dir
3032 ac_install_sh="$ac_aux_dir/install-sh -c"
3033 break
3034 elif test -f "$ac_dir/install.sh"; then
3035 ac_aux_dir=$ac_dir
3036 ac_install_sh="$ac_aux_dir/install.sh -c"
3037 break
3038 elif test -f "$ac_dir/shtool"; then
3039 ac_aux_dir=$ac_dir
3040 ac_install_sh="$ac_aux_dir/shtool install -c"
3041 break
3043 done
3044 if test -z "$ac_aux_dir"; then
3045 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3048 # These three variables are undocumented and unsupported,
3049 # and are intended to be withdrawn in a future Autoconf release.
3050 # They can cause serious problems if a builder's source tree is in a directory
3051 # whose full name contains unusual characters.
3052 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3053 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3054 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3057 # Find a good install program. We prefer a C program (faster),
3058 # so one script is as good as another. But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3063 # AIX /bin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # OS/2's system install, which has a completely different semantic
3069 # ./install, which can be erroneously created by make from ./install.sh.
3070 # Reject install programs that cannot install multiple files.
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3072 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3073 if test -z "$INSTALL"; then
3074 if test "${ac_cv_path_install+set}" = set; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 # Account for people who put trailing slashes in PATH elements.
3083 case $as_dir/ in #((
3084 ./ | .// | /[cC]/* | \
3085 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3086 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3087 /usr/ucb/* ) ;;
3089 # OSF1 and SCO ODT 3.0 have their own names for install.
3090 # Don't use installbsd from OSF since it installs stuff as root
3091 # by default.
3092 for ac_prog in ginstall scoinst install; do
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3095 if test $ac_prog = install &&
3096 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3097 # AIX install. It has an incompatible calling convention.
3099 elif test $ac_prog = install &&
3100 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3101 # program-specific install script used by HP pwplus--don't use.
3103 else
3104 rm -rf conftest.one conftest.two conftest.dir
3105 echo one > conftest.one
3106 echo two > conftest.two
3107 mkdir conftest.dir
3108 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3109 test -s conftest.one && test -s conftest.two &&
3110 test -s conftest.dir/conftest.one &&
3111 test -s conftest.dir/conftest.two
3112 then
3113 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3114 break 3
3118 done
3119 done
3121 esac
3123 done
3124 IFS=$as_save_IFS
3126 rm -rf conftest.one conftest.two conftest.dir
3129 if test "${ac_cv_path_install+set}" = set; then
3130 INSTALL=$ac_cv_path_install
3131 else
3132 # As a last resort, use the slow shell script. Don't cache a
3133 # value for INSTALL within a source directory, because that will
3134 # break other packages using the cache if that directory is
3135 # removed, or if the value is a relative name.
3136 INSTALL=$ac_install_sh
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3140 $as_echo "$INSTALL" >&6; }
3142 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3143 # It thinks the first close brace ends the variable substitution.
3144 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3146 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3148 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3151 $as_echo_n "checking whether build environment is sane... " >&6; }
3152 # Just in case
3153 sleep 1
3154 echo timestamp > conftest.file
3155 # Reject unsafe characters in $srcdir or the absolute working directory
3156 # name. Accept space and tab only in the latter.
3157 am_lf='
3159 case `pwd` in
3160 *[\\\"\#\$\&\'\`$am_lf]*)
3161 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3162 esac
3163 case $srcdir in
3164 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3165 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3166 esac
3168 # Do `set' in a subshell so we don't clobber the current shell's
3169 # arguments. Must try -L first in case configure is actually a
3170 # symlink; some systems play weird games with the mod time of symlinks
3171 # (eg FreeBSD returns the mod time of the symlink's containing
3172 # directory).
3173 if (
3174 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3175 if test "$*" = "X"; then
3176 # -L didn't work.
3177 set X `ls -t "$srcdir/configure" conftest.file`
3179 rm -f conftest.file
3180 if test "$*" != "X $srcdir/configure conftest.file" \
3181 && test "$*" != "X conftest.file $srcdir/configure"; then
3183 # If neither matched, then we have a broken ls. This can happen
3184 # if, for instance, CONFIG_SHELL is bash and it inherits a
3185 # broken ls alias from the environment. This has actually
3186 # happened. Such a system could not be considered "sane".
3187 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3188 alias in your environment" "$LINENO" 5
3191 test "$2" = conftest.file
3193 then
3194 # Ok.
3196 else
3197 as_fn_error $? "newly created file is older than distributed files!
3198 Check your system clock" "$LINENO" 5
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3202 test "$program_prefix" != NONE &&
3203 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s,x,x', remove it if useless.
3209 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3212 # expand $ac_aux_dir to an absolute path
3213 am_aux_dir=`cd $ac_aux_dir && pwd`
3215 if test x"${MISSING+set}" != xset; then
3216 case $am_aux_dir in
3217 *\ * | *\ *)
3218 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3220 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3221 esac
3223 # Use eval to expand $SHELL
3224 if eval "$MISSING --run true"; then
3225 am_missing_run="$MISSING --run "
3226 else
3227 am_missing_run=
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3229 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3232 if test x"${install_sh}" != xset; then
3233 case $am_aux_dir in
3234 *\ * | *\ *)
3235 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3237 install_sh="\${SHELL} $am_aux_dir/install-sh"
3238 esac
3241 # Installed binaries are usually stripped using `strip' when the user
3242 # run `make install-strip'. However `strip' might not be the right
3243 # tool to use in cross-compilation environments, therefore Automake
3244 # will honor the `STRIP' environment variable to overrule this program.
3245 if test "$cross_compiling" != no; then
3246 if test -n "$ac_tool_prefix"; then
3247 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3248 set dummy ${ac_tool_prefix}strip; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if test "${ac_cv_prog_STRIP+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 if test -n "$STRIP"; then
3255 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3268 done
3269 done
3270 IFS=$as_save_IFS
3274 STRIP=$ac_cv_prog_STRIP
3275 if test -n "$STRIP"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3277 $as_echo "$STRIP" >&6; }
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3285 if test -z "$ac_cv_prog_STRIP"; then
3286 ac_ct_STRIP=$STRIP
3287 # Extract the first word of "strip", so it can be a program name with args.
3288 set dummy strip; ac_word=$2
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 if test -n "$ac_ct_STRIP"; then
3295 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3296 else
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3304 ac_cv_prog_ac_ct_STRIP="strip"
3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3308 done
3309 done
3310 IFS=$as_save_IFS
3314 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3315 if test -n "$ac_ct_STRIP"; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3317 $as_echo "$ac_ct_STRIP" >&6; }
3318 else
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3323 if test "x$ac_ct_STRIP" = x; then
3324 STRIP=":"
3325 else
3326 case $cross_compiling:$ac_tool_warned in
3327 yes:)
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3330 ac_tool_warned=yes ;;
3331 esac
3332 STRIP=$ac_ct_STRIP
3334 else
3335 STRIP="$ac_cv_prog_STRIP"
3339 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3342 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3343 if test -z "$MKDIR_P"; then
3344 if test "${ac_cv_path_mkdir+set}" = set; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_prog in mkdir gmkdir; do
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3355 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3356 'mkdir (GNU coreutils) '* | \
3357 'mkdir (coreutils) '* | \
3358 'mkdir (fileutils) '4.1*)
3359 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3360 break 3;;
3361 esac
3362 done
3363 done
3364 done
3365 IFS=$as_save_IFS
3369 test -d ./--version && rmdir ./--version
3370 if test "${ac_cv_path_mkdir+set}" = set; then
3371 MKDIR_P="$ac_cv_path_mkdir -p"
3372 else
3373 # As a last resort, use the slow shell script. Don't cache a
3374 # value for MKDIR_P within a source directory, because that will
3375 # break other packages using the cache if that directory is
3376 # removed, or if the value is a relative name.
3377 MKDIR_P="$ac_install_sh -d"
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3381 $as_echo "$MKDIR_P" >&6; }
3384 mkdir_p="$MKDIR_P"
3385 case $mkdir_p in
3386 [\\/$]* | ?:[\\/]*) ;;
3387 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3388 esac
3390 for ac_prog in gawk mawk nawk awk
3392 # Extract the first word of "$ac_prog", so it can be a program name with args.
3393 set dummy $ac_prog; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if test "${ac_cv_prog_AWK+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 if test -n "$AWK"; then
3400 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_AWK="$ac_prog"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3413 done
3414 done
3415 IFS=$as_save_IFS
3419 AWK=$ac_cv_prog_AWK
3420 if test -n "$AWK"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3422 $as_echo "$AWK" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3429 test -n "$AWK" && break
3430 done
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3433 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3434 set x ${MAKE-make}
3435 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3436 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 cat >conftest.make <<\_ACEOF
3440 SHELL = /bin/sh
3441 all:
3442 @echo '@@@%%%=$(MAKE)=@@@%%%'
3443 _ACEOF
3444 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3445 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3446 *@@@%%%=?*=@@@%%%*)
3447 eval ac_cv_prog_make_${ac_make}_set=yes;;
3449 eval ac_cv_prog_make_${ac_make}_set=no;;
3450 esac
3451 rm -f conftest.make
3453 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3455 $as_echo "yes" >&6; }
3456 SET_MAKE=
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3460 SET_MAKE="MAKE=${MAKE-make}"
3463 rm -rf .tst 2>/dev/null
3464 mkdir .tst 2>/dev/null
3465 if test -d .tst; then
3466 am__leading_dot=.
3467 else
3468 am__leading_dot=_
3470 rmdir .tst 2>/dev/null
3472 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3473 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3474 # is not polluted with repeated "-I."
3475 am__isrc=' -I$(srcdir)'
3476 # test to see if srcdir already configured
3477 if test -f $srcdir/config.status; then
3478 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3482 # test whether we have cygpath
3483 if test -z "$CYGPATH_W"; then
3484 if (cygpath --version) >/dev/null 2>/dev/null; then
3485 CYGPATH_W='cygpath -w'
3486 else
3487 CYGPATH_W=echo
3492 # Define the identity of the package.
3493 PACKAGE='emacs'
3494 VERSION='24.0.50'
3497 cat >>confdefs.h <<_ACEOF
3498 #define PACKAGE "$PACKAGE"
3499 _ACEOF
3502 cat >>confdefs.h <<_ACEOF
3503 #define VERSION "$VERSION"
3504 _ACEOF
3506 # Some tools Automake needs.
3508 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3511 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3514 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3517 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3520 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3522 # We need awk for the "check" target. The system "awk" is bad on
3523 # some platforms.
3524 # Always define AMTAR for backward compatibility.
3526 AMTAR=${AMTAR-"${am_missing_run}tar"}
3528 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3537 lispdir='${datadir}/emacs/${version}/lisp'
3538 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3539 '${datadir}/emacs/site-lisp'
3540 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3541 etcdir='${datadir}/emacs/${version}/etc'
3542 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3543 docdir='${datadir}/emacs/${version}/etc'
3544 gamedir='${localstatedir}/games/emacs'
3549 # Check whether --with-pop was given.
3550 if test "${with_pop+set}" = set; then :
3551 withval=$with_pop;
3552 else
3553 with_pop=yes
3556 if test "$with_pop" = yes; then
3557 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3562 # Check whether --with-kerberos was given.
3563 if test "${with_kerberos+set}" = set; then :
3564 withval=$with_kerberos;
3565 else
3566 with_kerberos=no
3569 if test "$with_kerberos" != no; then
3570 $as_echo "#define KERBEROS 1" >>confdefs.h
3575 # Check whether --with-kerberos5 was given.
3576 if test "${with_kerberos5+set}" = set; then :
3577 withval=$with_kerberos5;
3578 else
3579 with_kerberos5=no
3582 if test "${with_kerberos5}" != no; then
3583 if test "${with_kerberos}" = no; then
3584 with_kerberos=yes
3585 $as_echo "#define KERBEROS 1" >>confdefs.h
3589 $as_echo "#define KERBEROS5 1" >>confdefs.h
3594 # Check whether --with-hesiod was given.
3595 if test "${with_hesiod+set}" = set; then :
3596 withval=$with_hesiod;
3597 else
3598 with_hesiod=no
3601 if test "$with_hesiod" != no; then
3603 $as_echo "#define HESIOD 1" >>confdefs.h
3608 # Check whether --with-mmdf was given.
3609 if test "${with_mmdf+set}" = set; then :
3610 withval=$with_mmdf;
3611 else
3612 with_mmdf=no
3615 if test "$with_mmdf" != no; then
3617 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3622 # Check whether --with-mail-unlink was given.
3623 if test "${with_mail_unlink+set}" = set; then :
3624 withval=$with_mail_unlink;
3625 else
3626 with_mail_unlink=no
3629 if test "$with_mail_unlink" != no; then
3631 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3636 # Check whether --with-mailhost was given.
3637 if test "${with_mailhost+set}" = set; then :
3638 withval=$with_mailhost;
3639 cat >>confdefs.h <<_ACEOF
3640 #define MAILHOST "$withval"
3641 _ACEOF
3647 # Check whether --with-sound was given.
3648 if test "${with_sound+set}" = set; then :
3649 withval=$with_sound;
3650 else
3651 with_sound=yes
3656 # Check whether --with-sync-input was given.
3657 if test "${with_sync_input+set}" = set; then :
3658 withval=$with_sync_input;
3659 else
3660 with_sync_input=yes
3663 if test "$with_sync_input" = yes; then
3665 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3670 # Check whether --with-x-toolkit was given.
3671 if test "${with_x_toolkit+set}" = set; then :
3672 withval=$with_x_toolkit; case "${withval}" in
3673 y | ye | yes ) val=gtk ;;
3674 n | no ) val=no ;;
3675 l | lu | luc | luci | lucid ) val=lucid ;;
3676 a | at | ath | athe | athen | athena ) val=athena ;;
3677 m | mo | mot | moti | motif ) val=motif ;;
3678 g | gt | gtk ) val=gtk ;;
3679 gtk3 ) val=gtk3 ;;
3681 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3682 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3683 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3685 esac
3686 with_x_toolkit=$val
3692 # Check whether --with-xpm was given.
3693 if test "${with_xpm+set}" = set; then :
3694 withval=$with_xpm;
3695 else
3696 with_xpm=yes
3700 # Check whether --with-jpeg was given.
3701 if test "${with_jpeg+set}" = set; then :
3702 withval=$with_jpeg;
3703 else
3704 with_jpeg=yes
3708 # Check whether --with-tiff was given.
3709 if test "${with_tiff+set}" = set; then :
3710 withval=$with_tiff;
3711 else
3712 with_tiff=yes
3716 # Check whether --with-gif was given.
3717 if test "${with_gif+set}" = set; then :
3718 withval=$with_gif;
3719 else
3720 with_gif=yes
3724 # Check whether --with-png was given.
3725 if test "${with_png+set}" = set; then :
3726 withval=$with_png;
3727 else
3728 with_png=yes
3732 # Check whether --with-rsvg was given.
3733 if test "${with_rsvg+set}" = set; then :
3734 withval=$with_rsvg;
3735 else
3736 with_rsvg=yes
3740 # Check whether --with-xml2 was given.
3741 if test "${with_xml2+set}" = set; then :
3742 withval=$with_xml2;
3743 else
3744 with_xml2=yes
3748 # Check whether --with-imagemagick was given.
3749 if test "${with_imagemagick+set}" = set; then :
3750 withval=$with_imagemagick;
3751 else
3752 with_imagemagick=yes
3757 # Check whether --with-xft was given.
3758 if test "${with_xft+set}" = set; then :
3759 withval=$with_xft;
3760 else
3761 with_xft=yes
3765 # Check whether --with-libotf was given.
3766 if test "${with_libotf+set}" = set; then :
3767 withval=$with_libotf;
3768 else
3769 with_libotf=yes
3773 # Check whether --with-m17n-flt was given.
3774 if test "${with_m17n_flt+set}" = set; then :
3775 withval=$with_m17n_flt;
3776 else
3777 with_m17n_flt=yes
3782 # Check whether --with-toolkit-scroll-bars was given.
3783 if test "${with_toolkit_scroll_bars+set}" = set; then :
3784 withval=$with_toolkit_scroll_bars;
3785 else
3786 with_toolkit_scroll_bars=yes
3790 # Check whether --with-xaw3d was given.
3791 if test "${with_xaw3d+set}" = set; then :
3792 withval=$with_xaw3d;
3793 else
3794 with_xaw3d=yes
3798 # Check whether --with-xim was given.
3799 if test "${with_xim+set}" = set; then :
3800 withval=$with_xim;
3801 else
3802 with_xim=yes
3806 # Check whether --with-ns was given.
3807 if test "${with_ns+set}" = set; then :
3808 withval=$with_ns;
3809 else
3810 with_ns=no
3815 # Check whether --with-gpm was given.
3816 if test "${with_gpm+set}" = set; then :
3817 withval=$with_gpm;
3818 else
3819 with_gpm=yes
3823 # Check whether --with-dbus was given.
3824 if test "${with_dbus+set}" = set; then :
3825 withval=$with_dbus;
3826 else
3827 with_dbus=yes
3831 # Check whether --with-gconf was given.
3832 if test "${with_gconf+set}" = set; then :
3833 withval=$with_gconf;
3834 else
3835 with_gconf=yes
3839 # Check whether --with-selinux was given.
3840 if test "${with_selinux+set}" = set; then :
3841 withval=$with_selinux;
3842 else
3843 with_selinux=yes
3847 # Check whether --with-gnutls was given.
3848 if test "${with_gnutls+set}" = set; then :
3849 withval=$with_gnutls;
3850 else
3851 with_gnutls=yes
3855 ## For the times when you want to build Emacs but don't have
3856 ## a suitable makeinfo, and can live without the manuals.
3858 # Check whether --with-makeinfo was given.
3859 if test "${with_makeinfo+set}" = set; then :
3860 withval=$with_makeinfo;
3861 else
3862 with_makeinfo=yes
3866 ## This is an option because I do not know if all info/man support
3867 ## compressed files, nor how to test if they do so.
3869 # Check whether --with-compress-info was given.
3870 if test "${with_compress_info+set}" = set; then :
3871 withval=$with_compress_info;
3872 else
3873 with_compress_info=yes
3876 if test $with_compress_info = yes; then
3877 GZIP_INFO=yes
3878 else
3879 GZIP_INFO=
3884 # Check whether --with-pkg-config-prog was given.
3885 if test "${with_pkg_config_prog+set}" = set; then :
3886 withval=$with_pkg_config_prog;
3889 if test "X${with_pkg_config_prog}" != X; then
3890 if test "${with_pkg_config_prog}" != yes; then
3891 PKG_CONFIG="${with_pkg_config_prog}"
3895 CRT_DIR=
3897 # Check whether --with-crt-dir was given.
3898 if test "${with_crt_dir+set}" = set; then :
3899 withval=$with_crt_dir;
3902 CRT_DIR="${with_crt_dir}"
3905 # Check whether --with-gameuser was given.
3906 if test "${with_gameuser+set}" = set; then :
3907 withval=$with_gameuser;
3910 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3911 && gameuser="${with_gameuser}"
3912 test "X$gameuser" = X && gameuser=games
3915 # Check whether --with-gnustep-conf was given.
3916 if test "${with_gnustep_conf+set}" = set; then :
3917 withval=$with_gnustep_conf;
3920 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3921 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3922 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3923 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3925 # Check whether --enable-ns-self-contained was given.
3926 if test "${enable_ns_self_contained+set}" = set; then :
3927 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3928 else
3929 EN_NS_SELF_CONTAINED=yes
3933 # Check whether --enable-asserts was given.
3934 if test "${enable_asserts+set}" = set; then :
3935 enableval=$enable_asserts; USE_XASSERTS=$enableval
3936 else
3937 USE_XASSERTS=no
3941 # Check whether --enable-maintainer-mode was given.
3942 if test "${enable_maintainer_mode+set}" = set; then :
3943 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3944 else
3945 USE_MAINTAINER_MODE=no
3948 if test $USE_MAINTAINER_MODE = yes; then
3949 MAINT=
3950 else
3951 MAINT=#
3955 # Check whether --enable-locallisppath was given.
3956 if test "${enable_locallisppath+set}" = set; then :
3957 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3958 locallisppath=
3959 elif test "${enableval}" != "yes"; then
3960 locallisppath=${enableval}
3965 # Check whether --enable-checking was given.
3966 if test "${enable_checking+set}" = set; then :
3967 enableval=$enable_checking; ac_checking_flags="${enableval}"
3970 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3971 for check in $ac_checking_flags
3973 case $check in
3974 # these set all the flags to specific states
3975 yes) ac_enable_checking=1 ;;
3976 no) ac_enable_checking= ;
3977 ac_gc_check_stringbytes= ;
3978 ac_gc_check_string_overrun= ;
3979 ac_gc_check_string_free_list= ;
3980 ac_xmalloc_overrun= ;
3981 ac_gc_check_cons_list= ;;
3982 all) ac_enable_checking=1 ;
3983 ac_gc_check_stringbytes=1 ;
3984 ac_gc_check_string_overrun=1 ;
3985 ac_gc_check_string_free_list=1 ;
3986 ac_xmalloc_overrun=1 ;
3987 ac_gc_check_cons_list=1 ;;
3988 # these enable particular checks
3989 stringbytes) ac_gc_check_stringbytes=1 ;;
3990 stringoverrun) ac_gc_check_string_overrun=1 ;;
3991 stringfreelist) ac_gc_check_string_free_list=1 ;;
3992 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3993 conslist) ac_gc_check_cons_list=1 ;;
3994 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3995 esac
3996 done
3997 IFS="$ac_save_IFS"
3999 if test x$ac_enable_checking != x ; then
4001 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4004 if test x$ac_gc_check_stringbytes != x ; then
4006 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4009 if test x$ac_gc_check_stringoverrun != x ; then
4011 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4014 if test x$ac_gc_check_string_free_list != x ; then
4016 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4019 if test x$ac_xmalloc_overrun != x ; then
4021 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4024 if test x$ac_gc_check_cons_list != x ; then
4026 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4030 # Check whether --enable-use-lisp-union-type was given.
4031 if test "${enable_use_lisp_union_type+set}" = set; then :
4032 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4034 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4041 # Check whether --enable-profiling was given.
4042 if test "${enable_profiling+set}" = set; then :
4043 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4046 if test x$ac_enable_profiling != x ; then
4047 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4048 else
4049 PROFILING_CFLAGS=
4053 # Check whether --enable-autodepend was given.
4054 if test "${enable_autodepend+set}" = set; then :
4055 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4056 else
4057 ac_enable_autodepend=yes
4061 #### Make srcdir absolute, if it isn't already. It's important to
4062 #### avoid running the path through pwd unnecessarily, since pwd can
4063 #### give you automounter prefixes, which can go away. We do all this
4064 #### so Emacs can find its files when run uninstalled.
4065 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4066 unset CDPATH
4067 case "${srcdir}" in
4068 /* ) ;;
4070 ## We may be able to use the $PWD environment variable to make this
4071 ## absolute. But sometimes PWD is inaccurate.
4072 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4073 ## but that tested only for a well-formed and valid PWD,
4074 ## it did not object when PWD was well-formed and valid but just wrong.
4075 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4076 then
4077 srcdir="$PWD"
4078 else
4079 srcdir="`(cd ${srcdir}; pwd)`"
4082 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4083 esac
4085 #### Check if the source directory already has a configured system in it.
4086 if test `pwd` != `(cd ${srcdir} && pwd)` \
4087 && test -f "${srcdir}/src/config.h" ; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4089 as a build directory right now; it has been configured in its own
4090 right. To configure in another directory as well, you MUST
4091 use GNU make. If you do not have GNU make, then you must
4092 now do \`make distclean' in ${srcdir},
4093 and then run $0 again." >&5
4094 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4095 as a build directory right now; it has been configured in its own
4096 right. To configure in another directory as well, you MUST
4097 use GNU make. If you do not have GNU make, then you must
4098 now do \`make distclean' in ${srcdir},
4099 and then run $0 again." >&2;}
4102 #### Given the configuration name, set machfile and opsysfile to the
4103 #### names of the m/*.h and s/*.h files we should use.
4105 ### Canonicalize the configuration name.
4107 # Make sure we can run config.sub.
4108 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4109 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4112 $as_echo_n "checking build system type... " >&6; }
4113 if test "${ac_cv_build+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 ac_build_alias=$build_alias
4117 test "x$ac_build_alias" = x &&
4118 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4119 test "x$ac_build_alias" = x &&
4120 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4121 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4122 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4126 $as_echo "$ac_cv_build" >&6; }
4127 case $ac_cv_build in
4128 *-*-*) ;;
4129 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4130 esac
4131 build=$ac_cv_build
4132 ac_save_IFS=$IFS; IFS='-'
4133 set x $ac_cv_build
4134 shift
4135 build_cpu=$1
4136 build_vendor=$2
4137 shift; shift
4138 # Remember, the first character of IFS is used to create $*,
4139 # except with old shells:
4140 build_os=$*
4141 IFS=$ac_save_IFS
4142 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4146 $as_echo_n "checking host system type... " >&6; }
4147 if test "${ac_cv_host+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if test "x$host_alias" = x; then
4151 ac_cv_host=$ac_cv_build
4152 else
4153 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4154 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4159 $as_echo "$ac_cv_host" >&6; }
4160 case $ac_cv_host in
4161 *-*-*) ;;
4162 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4163 esac
4164 host=$ac_cv_host
4165 ac_save_IFS=$IFS; IFS='-'
4166 set x $ac_cv_host
4167 shift
4168 host_cpu=$1
4169 host_vendor=$2
4170 shift; shift
4171 # Remember, the first character of IFS is used to create $*,
4172 # except with old shells:
4173 host_os=$*
4174 IFS=$ac_save_IFS
4175 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4178 canonical=$host
4179 configuration=${host_alias-${build_alias-$host}}
4183 ### If you add support for a new configuration, add code to this
4184 ### switch statement to recognize your configuration name and select
4185 ### the appropriate operating system and machine description files.
4187 ### You would hope that you could choose an m/*.h file pretty much
4188 ### based on the machine portion of the configuration name, and an s/*.h
4189 ### file based on the operating system portion. However, it turns out
4190 ### that each m/*.h file is pretty manufacturer-specific - for
4191 ### example mips.h is MIPS
4192 ### So we basically have to have a special case for each
4193 ### configuration name.
4195 ### As far as handling version numbers on operating systems is
4196 ### concerned, make sure things will fail in a fixable way. If
4197 ### /etc/MACHINES doesn't say anything about version numbers, be
4198 ### prepared to handle anything reasonably. If version numbers
4199 ### matter, be sure /etc/MACHINES says something about it.
4201 machine='' opsys='' unported=no
4202 case "${canonical}" in
4204 ## GNU/Linux ports
4205 *-*-linux-gnu*)
4206 opsys=gnu-linux
4207 case ${canonical} in
4208 alpha*) machine=alpha ;;
4209 s390-*) machine=ibms390 ;;
4210 s390x-*) machine=ibms390x ;;
4211 powerpc*) machine=macppc ;;
4212 sparc*) machine=sparc ;;
4213 ia64*) machine=ia64 ;;
4214 m68k*) machine=m68k ;;
4215 x86_64*) machine=amdx86-64 ;;
4216 esac
4219 ## FreeBSD ports
4220 *-*-freebsd* )
4221 opsys=freebsd
4222 case "${canonical}" in
4223 alpha*) machine=alpha ;;
4224 amd64-*|x86_64-*) machine=amdx86-64 ;;
4225 ia64-*) machine=ia64 ;;
4226 i[3456]86-*) machine=intel386 ;;
4227 powerpc-*) machine=macppc ;;
4228 sparc-*) machine=sparc ;;
4229 sparc64-*) machine=sparc ;;
4230 esac
4233 ## FreeBSD kernel + glibc based userland
4234 *-*-kfreebsd*gnu* )
4235 opsys=gnu-kfreebsd
4236 case "${canonical}" in
4237 alpha*) machine=alpha ;;
4238 amd64-*|x86_64-*) machine=amdx86-64 ;;
4239 ia64-*) machine=ia64 ;;
4240 i[3456]86-*) machine=intel386 ;;
4241 powerpc-*) machine=macppc ;;
4242 sparc-*) machine=sparc ;;
4243 sparc64-*) machine=sparc ;;
4244 esac
4247 ## NetBSD ports
4248 *-*-netbsd* )
4249 opsys=netbsd
4250 case "${canonical}" in
4251 alpha*) machine=alpha ;;
4252 x86_64-*) machine=amdx86-64 ;;
4253 i[3456]86-*) machine=intel386 ;;
4254 m68k-*) machine=m68k ;;
4255 powerpc-*) machine=macppc ;;
4256 sparc*-) machine=sparc ;;
4257 vax-*) machine=vax ;;
4258 esac
4261 ## OpenBSD ports
4262 *-*-openbsd* )
4263 opsys=openbsd
4264 case "${canonical}" in
4265 alpha*) machine=alpha ;;
4266 x86_64-*) machine=amdx86-64 ;;
4267 i386-*) machine=intel386 ;;
4268 powerpc-*) machine=macppc ;;
4269 sparc*) machine=sparc ;;
4270 vax-*) machine=vax ;;
4271 esac
4274 ## Apple Darwin / Mac OS X
4275 *-apple-darwin* )
4276 case "${canonical}" in
4277 i[3456]86-* ) machine=intel386 ;;
4278 powerpc-* ) machine=macppc ;;
4279 x86_64-* ) machine=amdx86-64 ;;
4280 * ) unported=yes ;;
4281 esac
4282 opsys=darwin
4283 # Define CPP as follows to make autoconf work correctly.
4284 CPP="${CC-cc} -E -no-cpp-precomp"
4285 # Use fink packages if available.
4286 if test -d /sw/include && test -d /sw/lib; then
4287 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4288 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4289 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4293 ## HP 9000 series 700 and 800, running HP/UX
4294 hppa*-hp-hpux10.2* )
4295 opsys=hpux10-20
4297 hppa*-hp-hpux1[1-9]* )
4298 opsys=hpux11
4299 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4302 ia64*-hp-hpux1[1-9]* )
4303 machine=hp800 opsys=hpux11
4304 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4305 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4306 CANNOT_DUMP=yes
4309 hppa*-*-linux-gnu* )
4310 machine=hp800 opsys=gnu-linux
4313 ## IBM machines
4314 rs6000-ibm-aix4.[23]* )
4315 machine=ibmrs6000 opsys=aix4-2
4317 powerpc-ibm-aix4.[23]* )
4318 machine=ibmrs6000 opsys=aix4-2
4320 rs6000-ibm-aix[56]* )
4321 machine=ibmrs6000 opsys=aix4-2
4323 powerpc-ibm-aix[56]* )
4324 machine=ibmrs6000 opsys=aix4-2
4327 ## Silicon Graphics machines
4328 ## Iris 4D
4329 mips-sgi-irix6.5 )
4330 machine=iris4d opsys=irix6-5
4331 # Without defining _LANGUAGE_C, things get masked out in the headers
4332 # so that, for instance, grepping for `free' in stdlib.h fails and
4333 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4334 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4335 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4338 ## Suns
4339 *-sun-solaris* \
4340 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4341 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4342 case "${canonical}" in
4343 i[3456]86-*-* ) machine=intel386 ;;
4344 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4345 sparc* ) machine=sparc ;;
4346 * ) unported=yes ;;
4347 esac
4348 case "${canonical}" in
4349 *-sunos5.6* | *-solaris2.6* )
4350 opsys=sol2-6
4351 NON_GNU_CPP=/usr/ccs/lib/cpp
4352 RANLIB="ar -ts"
4354 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4355 opsys=sol2-6
4356 emacs_check_sunpro_c=yes
4357 NON_GNU_CPP=/usr/ccs/lib/cpp
4359 *-sunos5* | *-solaris* )
4360 opsys=sol2-10
4361 emacs_check_sunpro_c=yes
4362 NON_GNU_CPP=/usr/ccs/lib/cpp
4364 esac
4365 ## Watch out for a compiler that we know will not work.
4366 case "${canonical}" in
4367 *-solaris* | *-sunos5* )
4368 if [ "x$CC" = x/usr/ucb/cc ]; then
4369 ## /usr/ucb/cc doesn't work;
4370 ## we should find some other compiler that does work.
4371 unset CC
4374 *) ;;
4375 esac
4378 ## Intel 386 machines where we don't care about the manufacturer.
4379 i[3456]86-*-* )
4380 machine=intel386
4381 case "${canonical}" in
4382 *-cygwin ) opsys=cygwin ;;
4383 *-darwin* ) opsys=darwin
4384 CPP="${CC-cc} -E -no-cpp-precomp"
4386 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4387 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4388 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4389 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4390 esac
4394 unported=yes
4396 esac
4398 ### If the code above didn't choose an operating system, just choose
4399 ### an operating system based on the configuration name. You really
4400 ### only want to use this when you have no idea what the right
4401 ### operating system is; if you know what operating systems a machine
4402 ### runs, it's cleaner to make it explicit in the case statement
4403 ### above.
4404 if test x"${opsys}" = x; then
4405 case "${canonical}" in
4406 *-gnu* ) opsys=gnu ;;
4408 unported=yes
4410 esac
4415 if test $unported = yes; then
4416 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4417 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4420 if test -n "$machine"; then
4421 machfile="m/${machine}.h"
4422 else
4423 machfile=
4425 opsysfile="s/${opsys}.h"
4428 #### Choose a compiler.
4429 test -n "$CC" && cc_specified=yes
4431 # Save the value of CFLAGS that the user specified.
4432 SPECIFIED_CFLAGS="$CFLAGS"
4434 ac_ext=c
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439 if test -n "$ac_tool_prefix"; then
4440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if test "${ac_cv_prog_CC+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -n "$CC"; then
4448 ac_cv_prog_CC="$CC" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4461 done
4462 done
4463 IFS=$as_save_IFS
4467 CC=$ac_cv_prog_CC
4468 if test -n "$CC"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4470 $as_echo "$CC" >&6; }
4471 else
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4478 if test -z "$ac_cv_prog_CC"; then
4479 ac_ct_CC=$CC
4480 # Extract the first word of "gcc", so it can be a program name with args.
4481 set dummy gcc; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -n "$ac_ct_CC"; then
4488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_prog_ac_ct_CC="gcc"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4501 done
4502 done
4503 IFS=$as_save_IFS
4507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4508 if test -n "$ac_ct_CC"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4510 $as_echo "$ac_ct_CC" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4516 if test "x$ac_ct_CC" = x; then
4517 CC=""
4518 else
4519 case $cross_compiling:$ac_tool_warned in
4520 yes:)
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523 ac_tool_warned=yes ;;
4524 esac
4525 CC=$ac_ct_CC
4527 else
4528 CC="$ac_cv_prog_CC"
4531 if test -z "$CC"; then
4532 if test -n "$ac_tool_prefix"; then
4533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4534 set dummy ${ac_tool_prefix}cc; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if test "${ac_cv_prog_CC+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 if test -n "$CC"; then
4541 ac_cv_prog_CC="$CC" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_CC="${ac_tool_prefix}cc"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4554 done
4555 done
4556 IFS=$as_save_IFS
4560 CC=$ac_cv_prog_CC
4561 if test -n "$CC"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4563 $as_echo "$CC" >&6; }
4564 else
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4572 if test -z "$CC"; then
4573 # Extract the first word of "cc", so it can be a program name with args.
4574 set dummy cc; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if test "${ac_cv_prog_CC+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$CC"; then
4581 ac_cv_prog_CC="$CC" # Let the user override the test.
4582 else
4583 ac_prog_rejected=no
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4592 ac_prog_rejected=yes
4593 continue
4595 ac_cv_prog_CC="cc"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4599 done
4600 done
4601 IFS=$as_save_IFS
4603 if test $ac_prog_rejected = yes; then
4604 # We found a bogon in the path, so make sure we never use it.
4605 set dummy $ac_cv_prog_CC
4606 shift
4607 if test $# != 0; then
4608 # We chose a different compiler from the bogus one.
4609 # However, it has the same basename, so the bogon will be chosen
4610 # first if we set CC to just the basename; use the full file name.
4611 shift
4612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4617 CC=$ac_cv_prog_CC
4618 if test -n "$CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620 $as_echo "$CC" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4628 if test -z "$CC"; then
4629 if test -n "$ac_tool_prefix"; then
4630 for ac_prog in cl.exe
4632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_CC+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC="$CC" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4659 CC=$ac_cv_prog_CC
4660 if test -n "$CC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4662 $as_echo "$CC" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4669 test -n "$CC" && break
4670 done
4672 if test -z "$CC"; then
4673 ac_ct_CC=$CC
4674 for ac_prog in cl.exe
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677 set dummy $ac_prog; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_ac_ct_CC="$ac_prog"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4699 IFS=$as_save_IFS
4703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4704 if test -n "$ac_ct_CC"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4706 $as_echo "$ac_ct_CC" >&6; }
4707 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4713 test -n "$ac_ct_CC" && break
4714 done
4716 if test "x$ac_ct_CC" = x; then
4717 CC=""
4718 else
4719 case $cross_compiling:$ac_tool_warned in
4720 yes:)
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723 ac_tool_warned=yes ;;
4724 esac
4725 CC=$ac_ct_CC
4732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4734 as_fn_error $? "no acceptable C compiler found in \$PATH
4735 See \`config.log' for more details" "$LINENO" 5 ; }
4737 # Provide some information about the compiler.
4738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4739 set X $ac_compile
4740 ac_compiler=$2
4741 for ac_option in --version -v -V -qversion; do
4742 { { ac_try="$ac_compiler $ac_option >&5"
4743 case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746 esac
4747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4748 $as_echo "$ac_try_echo"; } >&5
4749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4750 ac_status=$?
4751 if test -s conftest.err; then
4752 sed '10a\
4753 ... rest of stderr output deleted ...
4754 10q' conftest.err >conftest.er1
4755 cat conftest.er1 >&5
4757 rm -f conftest.er1 conftest.err
4758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4759 test $ac_status = 0; }
4760 done
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4766 main ()
4770 return 0;
4772 _ACEOF
4773 ac_clean_files_save=$ac_clean_files
4774 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4775 # Try to create an executable without -o first, disregard a.out.
4776 # It will help us diagnose broken compilers, and finding out an intuition
4777 # of exeext.
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4779 $as_echo_n "checking whether the C compiler works... " >&6; }
4780 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4782 # The possible output files:
4783 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4785 ac_rmfiles=
4786 for ac_file in $ac_files
4788 case $ac_file in
4789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4791 esac
4792 done
4793 rm -f $ac_rmfiles
4795 if { { ac_try="$ac_link_default"
4796 case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799 esac
4800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4801 $as_echo "$ac_try_echo"; } >&5
4802 (eval "$ac_link_default") 2>&5
4803 ac_status=$?
4804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805 test $ac_status = 0; }; then :
4806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4808 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4809 # so that the user can short-circuit this test for compilers unknown to
4810 # Autoconf.
4811 for ac_file in $ac_files ''
4813 test -f "$ac_file" || continue
4814 case $ac_file in
4815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4817 [ab].out )
4818 # We found the default executable, but exeext='' is most
4819 # certainly right.
4820 break;;
4821 *.* )
4822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4823 then :; else
4824 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4826 # We set ac_cv_exeext here because the later test for it is not
4827 # safe: cross compilers may not add the suffix if given an `-o'
4828 # argument, so we may need to know it at that point already.
4829 # Even if this section looks crufty: it has the advantage of
4830 # actually working.
4831 break;;
4833 break;;
4834 esac
4835 done
4836 test "$ac_cv_exeext" = no && ac_cv_exeext=
4838 else
4839 ac_file=''
4841 if test -z "$ac_file"; then :
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 $as_echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4849 as_fn_error 77 "C compiler cannot create executables
4850 See \`config.log' for more details" "$LINENO" 5 ; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4853 $as_echo "yes" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4856 $as_echo_n "checking for C compiler default output file name... " >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4858 $as_echo "$ac_file" >&6; }
4859 ac_exeext=$ac_cv_exeext
4861 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4862 ac_clean_files=$ac_clean_files_save
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4864 $as_echo_n "checking for suffix of executables... " >&6; }
4865 if { { ac_try="$ac_link"
4866 case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869 esac
4870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4871 $as_echo "$ac_try_echo"; } >&5
4872 (eval "$ac_link") 2>&5
4873 ac_status=$?
4874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875 test $ac_status = 0; }; then :
4876 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4877 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4878 # work properly (i.e., refer to `conftest.exe'), while it won't with
4879 # `rm'.
4880 for ac_file in conftest.exe conftest conftest.*; do
4881 test -f "$ac_file" || continue
4882 case $ac_file in
4883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4884 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4885 break;;
4886 * ) break;;
4887 esac
4888 done
4889 else
4890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4892 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4893 See \`config.log' for more details" "$LINENO" 5 ; }
4895 rm -f conftest conftest$ac_cv_exeext
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4897 $as_echo "$ac_cv_exeext" >&6; }
4899 rm -f conftest.$ac_ext
4900 EXEEXT=$ac_cv_exeext
4901 ac_exeext=$EXEEXT
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <stdio.h>
4906 main ()
4908 FILE *f = fopen ("conftest.out", "w");
4909 return ferror (f) || fclose (f) != 0;
4912 return 0;
4914 _ACEOF
4915 ac_clean_files="$ac_clean_files conftest.out"
4916 # Check that the compiler produces executables we can run. If not, either
4917 # the compiler is broken, or we cross compile.
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4919 $as_echo_n "checking whether we are cross compiling... " >&6; }
4920 if test "$cross_compiling" != yes; then
4921 { { ac_try="$ac_link"
4922 case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925 esac
4926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927 $as_echo "$ac_try_echo"; } >&5
4928 (eval "$ac_link") 2>&5
4929 ac_status=$?
4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }
4932 if { ac_try='./conftest$ac_cv_exeext'
4933 { { case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4938 $as_echo "$ac_try_echo"; } >&5
4939 (eval "$ac_try") 2>&5
4940 ac_status=$?
4941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942 test $ac_status = 0; }; }; then
4943 cross_compiling=no
4944 else
4945 if test "$cross_compiling" = maybe; then
4946 cross_compiling=yes
4947 else
4948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4950 as_fn_error $? "cannot run C compiled programs.
4951 If you meant to cross compile, use \`--host'.
4952 See \`config.log' for more details" "$LINENO" 5 ; }
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4957 $as_echo "$cross_compiling" >&6; }
4959 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4960 ac_clean_files=$ac_clean_files_save
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4962 $as_echo_n "checking for suffix of object files... " >&6; }
4963 if test "${ac_cv_objext+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4970 main ()
4974 return 0;
4976 _ACEOF
4977 rm -f conftest.o conftest.obj
4978 if { { ac_try="$ac_compile"
4979 case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984 $as_echo "$ac_try_echo"; } >&5
4985 (eval "$ac_compile") 2>&5
4986 ac_status=$?
4987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }; then :
4989 for ac_file in conftest.o conftest.obj conftest.*; do
4990 test -f "$ac_file" || continue;
4991 case $ac_file in
4992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4993 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4994 break;;
4995 esac
4996 done
4997 else
4998 $as_echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5003 as_fn_error $? "cannot compute suffix of object files: cannot compile
5004 See \`config.log' for more details" "$LINENO" 5 ; }
5006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5009 $as_echo "$ac_cv_objext" >&6; }
5010 OBJEXT=$ac_cv_objext
5011 ac_objext=$OBJEXT
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5013 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5014 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5021 main ()
5023 #ifndef __GNUC__
5024 choke me
5025 #endif
5028 return 0;
5030 _ACEOF
5031 if ac_fn_c_try_compile "$LINENO"; then :
5032 ac_compiler_gnu=yes
5033 else
5034 ac_compiler_gnu=no
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5041 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5042 if test $ac_compiler_gnu = yes; then
5043 GCC=yes
5044 else
5045 GCC=
5047 ac_test_CFLAGS=${CFLAGS+set}
5048 ac_save_CFLAGS=$CFLAGS
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5050 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5051 if test "${ac_cv_prog_cc_g+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 ac_save_c_werror_flag=$ac_c_werror_flag
5055 ac_c_werror_flag=yes
5056 ac_cv_prog_cc_g=no
5057 CFLAGS="-g"
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5062 main ()
5066 return 0;
5068 _ACEOF
5069 if ac_fn_c_try_compile "$LINENO"; then :
5070 ac_cv_prog_cc_g=yes
5071 else
5072 CFLAGS=""
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5077 main ()
5081 return 0;
5083 _ACEOF
5084 if ac_fn_c_try_compile "$LINENO"; then :
5086 else
5087 ac_c_werror_flag=$ac_save_c_werror_flag
5088 CFLAGS="-g"
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 :
5101 ac_cv_prog_cc_g=yes
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108 ac_c_werror_flag=$ac_save_c_werror_flag
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5111 $as_echo "$ac_cv_prog_cc_g" >&6; }
5112 if test "$ac_test_CFLAGS" = set; then
5113 CFLAGS=$ac_save_CFLAGS
5114 elif test $ac_cv_prog_cc_g = yes; then
5115 if test "$GCC" = yes; then
5116 CFLAGS="-g -O2"
5117 else
5118 CFLAGS="-g"
5120 else
5121 if test "$GCC" = yes; then
5122 CFLAGS="-O2"
5123 else
5124 CFLAGS=
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5128 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5129 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 ac_cv_prog_cc_c89=no
5133 ac_save_CC=$CC
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 #include <stdarg.h>
5137 #include <stdio.h>
5138 #include <sys/types.h>
5139 #include <sys/stat.h>
5140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5141 struct buf { int x; };
5142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5143 static char *e (p, i)
5144 char **p;
5145 int i;
5147 return p[i];
5149 static char *f (char * (*g) (char **, int), char **p, ...)
5151 char *s;
5152 va_list v;
5153 va_start (v,p);
5154 s = g (p, va_arg (v,int));
5155 va_end (v);
5156 return s;
5159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5160 function prototypes and stuff, but not '\xHH' hex character constants.
5161 These don't provoke an error unfortunately, instead are silently treated
5162 as 'x'. The following induces an error, until -std is added to get
5163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5164 array size at least. It's necessary to write '\x00'==0 to get something
5165 that's true only with -std. */
5166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5168 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5169 inside strings and character constants. */
5170 #define FOO(x) 'x'
5171 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5173 int test (int i, double x);
5174 struct s1 {int (*f) (int a);};
5175 struct s2 {int (*f) (double a);};
5176 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5177 int argc;
5178 char **argv;
5180 main ()
5182 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5184 return 0;
5186 _ACEOF
5187 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5188 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5190 CC="$ac_save_CC $ac_arg"
5191 if ac_fn_c_try_compile "$LINENO"; then :
5192 ac_cv_prog_cc_c89=$ac_arg
5194 rm -f core conftest.err conftest.$ac_objext
5195 test "x$ac_cv_prog_cc_c89" != "xno" && break
5196 done
5197 rm -f conftest.$ac_ext
5198 CC=$ac_save_CC
5201 # AC_CACHE_VAL
5202 case "x$ac_cv_prog_cc_c89" in
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5205 $as_echo "none needed" >&6; } ;;
5206 xno)
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5208 $as_echo "unsupported" >&6; } ;;
5210 CC="$CC $ac_cv_prog_cc_c89"
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5212 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5213 esac
5214 if test "x$ac_cv_prog_cc_c89" != xno; then :
5218 ac_ext=c
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223 DEPDIR="${am__leading_dot}deps"
5225 ac_config_commands="$ac_config_commands depfiles"
5228 am_make=${MAKE-make}
5229 cat > confinc << 'END'
5230 am__doit:
5231 @echo this is the am__doit target
5232 .PHONY: am__doit
5234 # If we don't find an include directive, just comment out the code.
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5236 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5237 am__include="#"
5238 am__quote=
5239 _am_result=none
5240 # First try GNU make style include.
5241 echo "include confinc" > confmf
5242 # Ignore all kinds of additional output from `make'.
5243 case `$am_make -s -f confmf 2> /dev/null` in #(
5244 *the\ am__doit\ target*)
5245 am__include=include
5246 am__quote=
5247 _am_result=GNU
5249 esac
5250 # Now try BSD make style include.
5251 if test "$am__include" = "#"; then
5252 echo '.include "confinc"' > confmf
5253 case `$am_make -s -f confmf 2> /dev/null` in #(
5254 *the\ am__doit\ target*)
5255 am__include=.include
5256 am__quote="\""
5257 _am_result=BSD
5259 esac
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5264 $as_echo "$_am_result" >&6; }
5265 rm -f confinc confmf
5267 # Check whether --enable-dependency-tracking was given.
5268 if test "${enable_dependency_tracking+set}" = set; then :
5269 enableval=$enable_dependency_tracking;
5272 if test "x$enable_dependency_tracking" != xno; then
5273 am_depcomp="$ac_aux_dir/depcomp"
5274 AMDEPBACKSLASH='\'
5276 if test "x$enable_dependency_tracking" != xno; then
5277 AMDEP_TRUE=
5278 AMDEP_FALSE='#'
5279 else
5280 AMDEP_TRUE='#'
5281 AMDEP_FALSE=
5286 depcc="$CC" am_compiler_list=
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5289 $as_echo_n "checking dependency style of $depcc... " >&6; }
5290 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5294 # We make a subdir and do the tests there. Otherwise we can end up
5295 # making bogus files that we don't know about and never remove. For
5296 # instance it was reported that on HP-UX the gcc test will end up
5297 # making a dummy file named `D' -- because `-MD' means `put the output
5298 # in D'.
5299 mkdir conftest.dir
5300 # Copy depcomp to subdir because otherwise we won't find it if we're
5301 # using a relative directory.
5302 cp "$am_depcomp" conftest.dir
5303 cd conftest.dir
5304 # We will build objects and dependencies in a subdirectory because
5305 # it helps to detect inapplicable dependency modes. For instance
5306 # both Tru64's cc and ICC support -MD to output dependencies as a
5307 # side effect of compilation, but ICC will put the dependencies in
5308 # the current directory while Tru64 will put them in the object
5309 # directory.
5310 mkdir sub
5312 am_cv_CC_dependencies_compiler_type=none
5313 if test "$am_compiler_list" = ""; then
5314 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5316 am__universal=false
5317 case " $depcc " in #(
5318 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5319 esac
5321 for depmode in $am_compiler_list; do
5322 # Setup a source with many dependencies, because some compilers
5323 # like to wrap large dependency lists on column 80 (with \), and
5324 # we should not choose a depcomp mode which is confused by this.
5326 # We need to recreate these files for each test, as the compiler may
5327 # overwrite some of them when testing with obscure command lines.
5328 # This happens at least with the AIX C compiler.
5329 : > sub/conftest.c
5330 for i in 1 2 3 4 5 6; do
5331 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5332 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5333 # Solaris 8's {/usr,}/bin/sh.
5334 touch sub/conftst$i.h
5335 done
5336 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5338 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5339 # mode. It turns out that the SunPro C++ compiler does not properly
5340 # handle `-M -o', and we need to detect this. Also, some Intel
5341 # versions had trouble with output in subdirs
5342 am__obj=sub/conftest.${OBJEXT-o}
5343 am__minus_obj="-o $am__obj"
5344 case $depmode in
5345 gcc)
5346 # This depmode causes a compiler race in universal mode.
5347 test "$am__universal" = false || continue
5349 nosideeffect)
5350 # after this tag, mechanisms are not by side-effect, so they'll
5351 # only be used when explicitly requested
5352 if test "x$enable_dependency_tracking" = xyes; then
5353 continue
5354 else
5355 break
5358 msvisualcpp | msvcmsys)
5359 # This compiler won't grok `-c -o', but also, the minuso test has
5360 # not run yet. These depmodes are late enough in the game, and
5361 # so weak that their functioning should not be impacted.
5362 am__obj=conftest.${OBJEXT-o}
5363 am__minus_obj=
5365 none) break ;;
5366 esac
5367 if depmode=$depmode \
5368 source=sub/conftest.c object=$am__obj \
5369 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5370 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5371 >/dev/null 2>conftest.err &&
5372 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5373 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5374 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5375 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5376 # icc doesn't choke on unknown options, it will just issue warnings
5377 # or remarks (even with -Werror). So we grep stderr for any message
5378 # that says an option was ignored or not supported.
5379 # When given -MP, icc 7.0 and 7.1 complain thusly:
5380 # icc: Command line warning: ignoring option '-M'; no argument required
5381 # The diagnosis changed in icc 8.0:
5382 # icc: Command line remark: option '-MP' not supported
5383 if (grep 'ignoring option' conftest.err ||
5384 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5385 am_cv_CC_dependencies_compiler_type=$depmode
5386 break
5389 done
5391 cd ..
5392 rm -rf conftest.dir
5393 else
5394 am_cv_CC_dependencies_compiler_type=none
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5399 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5400 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5403 test "x$enable_dependency_tracking" != xno \
5404 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5405 am__fastdepCC_TRUE=
5406 am__fastdepCC_FALSE='#'
5407 else
5408 am__fastdepCC_TRUE='#'
5409 am__fastdepCC_FALSE=
5413 if test "x$CC" != xcc; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5415 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5418 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5420 set dummy $CC; ac_cc=`$as_echo "$2" |
5421 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5422 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5429 main ()
5433 return 0;
5435 _ACEOF
5436 # Make sure it works both with $CC and with simple cc.
5437 # We do the test twice because some compilers refuse to overwrite an
5438 # existing .o file with -o, though they will create one.
5439 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5440 rm -f conftest2.*
5441 if { { case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5446 $as_echo "$ac_try_echo"; } >&5
5447 (eval "$ac_try") 2>&5
5448 ac_status=$?
5449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5450 test $ac_status = 0; } &&
5451 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5454 esac
5455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5456 $as_echo "$ac_try_echo"; } >&5
5457 (eval "$ac_try") 2>&5
5458 ac_status=$?
5459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5460 test $ac_status = 0; };
5461 then
5462 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5463 if test "x$CC" != xcc; then
5464 # Test first that cc exists at all.
5465 if { ac_try='cc -c conftest.$ac_ext >&5'
5466 { { case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469 esac
5470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5471 $as_echo "$ac_try_echo"; } >&5
5472 (eval "$ac_try") 2>&5
5473 ac_status=$?
5474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475 test $ac_status = 0; }; }; then
5476 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5477 rm -f conftest2.*
5478 if { { case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481 esac
5482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5483 $as_echo "$ac_try_echo"; } >&5
5484 (eval "$ac_try") 2>&5
5485 ac_status=$?
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5487 test $ac_status = 0; } &&
5488 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5493 $as_echo "$ac_try_echo"; } >&5
5494 (eval "$ac_try") 2>&5
5495 ac_status=$?
5496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5497 test $ac_status = 0; };
5498 then
5499 # cc works too.
5501 else
5502 # cc exists but doesn't like -o.
5503 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5507 else
5508 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5510 rm -f core conftest*
5513 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515 $as_echo "yes" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5520 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5524 # FIXME: we rely on the cache variable name because
5525 # there is no other way.
5526 set dummy $CC
5527 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5528 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5529 if test "$am_t" != yes; then
5530 # Losing compiler, so override with the script.
5531 # FIXME: It is wrong to rewrite CC.
5532 # But if we don't then we get into trouble of one sort or another.
5533 # A longer-term fix would be to have automake use am__CC in this case,
5534 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5535 CC="$am_aux_dir/compile $CC"
5540 # Initialize gnulib right after verifying that the C compiler works.
5541 if test -n "$ac_tool_prefix"; then
5542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5543 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 if test -n "$RANLIB"; then
5550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5563 done
5564 done
5565 IFS=$as_save_IFS
5569 RANLIB=$ac_cv_prog_RANLIB
5570 if test -n "$RANLIB"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5572 $as_echo "$RANLIB" >&6; }
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5580 if test -z "$ac_cv_prog_RANLIB"; then
5581 ac_ct_RANLIB=$RANLIB
5582 # Extract the first word of "ranlib", so it can be a program name with args.
5583 set dummy ranlib; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 if test -n "$ac_ct_RANLIB"; then
5590 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 ac_cv_prog_ac_ct_RANLIB="ranlib"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5603 done
5604 done
5605 IFS=$as_save_IFS
5609 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5610 if test -n "$ac_ct_RANLIB"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5612 $as_echo "$ac_ct_RANLIB" >&6; }
5613 else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5618 if test "x$ac_ct_RANLIB" = x; then
5619 RANLIB=":"
5620 else
5621 case $cross_compiling:$ac_tool_warned in
5622 yes:)
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625 ac_tool_warned=yes ;;
5626 esac
5627 RANLIB=$ac_ct_RANLIB
5629 else
5630 RANLIB="$ac_cv_prog_RANLIB"
5634 ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5640 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5641 # On Suns, sometimes $CPP names a directory.
5642 if test -n "$CPP" && test -d "$CPP"; then
5643 CPP=
5645 if test -z "$CPP"; then
5646 if test "${ac_cv_prog_CPP+set}" = set; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 # Double quotes because CPP needs to be expanded
5650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5652 ac_preproc_ok=false
5653 for ac_c_preproc_warn_flag in '' yes
5655 # Use a header file that comes with gcc, so configuring glibc
5656 # with a fresh cross-compiler works.
5657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5658 # <limits.h> exists even on freestanding compilers.
5659 # On the NeXT, cc -E runs the code through the compiler's parser,
5660 # not just through cpp. "Syntax error" is here to catch this case.
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 #ifdef __STDC__
5664 # include <limits.h>
5665 #else
5666 # include <assert.h>
5667 #endif
5668 Syntax error
5669 _ACEOF
5670 if ac_fn_c_try_cpp "$LINENO"; then :
5672 else
5673 # Broken: fails on valid input.
5674 continue
5676 rm -f conftest.err conftest.i conftest.$ac_ext
5678 # OK, works on sane cases. Now check whether nonexistent headers
5679 # can be detected and how.
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <ac_nonexistent.h>
5683 _ACEOF
5684 if ac_fn_c_try_cpp "$LINENO"; then :
5685 # Broken: success on invalid input.
5686 continue
5687 else
5688 # Passes both tests.
5689 ac_preproc_ok=:
5690 break
5692 rm -f conftest.err conftest.i conftest.$ac_ext
5694 done
5695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5696 rm -f conftest.i conftest.err conftest.$ac_ext
5697 if $ac_preproc_ok; then :
5698 break
5701 done
5702 ac_cv_prog_CPP=$CPP
5705 CPP=$ac_cv_prog_CPP
5706 else
5707 ac_cv_prog_CPP=$CPP
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5710 $as_echo "$CPP" >&6; }
5711 ac_preproc_ok=false
5712 for ac_c_preproc_warn_flag in '' yes
5714 # Use a header file that comes with gcc, so configuring glibc
5715 # with a fresh cross-compiler works.
5716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5717 # <limits.h> exists even on freestanding compilers.
5718 # On the NeXT, cc -E runs the code through the compiler's parser,
5719 # not just through cpp. "Syntax error" is here to catch this case.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 #ifdef __STDC__
5723 # include <limits.h>
5724 #else
5725 # include <assert.h>
5726 #endif
5727 Syntax error
5728 _ACEOF
5729 if ac_fn_c_try_cpp "$LINENO"; then :
5731 else
5732 # Broken: fails on valid input.
5733 continue
5735 rm -f conftest.err conftest.i conftest.$ac_ext
5737 # OK, works on sane cases. Now check whether nonexistent headers
5738 # can be detected and how.
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <ac_nonexistent.h>
5742 _ACEOF
5743 if ac_fn_c_try_cpp "$LINENO"; then :
5744 # Broken: success on invalid input.
5745 continue
5746 else
5747 # Passes both tests.
5748 ac_preproc_ok=:
5749 break
5751 rm -f conftest.err conftest.i conftest.$ac_ext
5753 done
5754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5755 rm -f conftest.i conftest.err conftest.$ac_ext
5756 if $ac_preproc_ok; then :
5758 else
5759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5761 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5762 See \`config.log' for more details" "$LINENO" 5 ; }
5765 ac_ext=c
5766 ac_cpp='$CPP $CPPFLAGS'
5767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5773 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5774 if test "${ac_cv_path_GREP+set}" = set; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777 if test -z "$GREP"; then
5778 ac_path_GREP_found=false
5779 # Loop through the user's path and test for each of PROGNAME-LIST
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_prog in grep ggrep; do
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5788 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5789 # Check for GNU ac_path_GREP and select it if it is found.
5790 # Check for GNU $ac_path_GREP
5791 case `"$ac_path_GREP" --version 2>&1` in
5792 *GNU*)
5793 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5795 ac_count=0
5796 $as_echo_n 0123456789 >"conftest.in"
5797 while :
5799 cat "conftest.in" "conftest.in" >"conftest.tmp"
5800 mv "conftest.tmp" "conftest.in"
5801 cp "conftest.in" "conftest.nl"
5802 $as_echo 'GREP' >> "conftest.nl"
5803 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5805 as_fn_arith $ac_count + 1 && ac_count=$as_val
5806 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5807 # Best one so far, save it but keep looking for a better one
5808 ac_cv_path_GREP="$ac_path_GREP"
5809 ac_path_GREP_max=$ac_count
5811 # 10*(2^10) chars as input seems more than enough
5812 test $ac_count -gt 10 && break
5813 done
5814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5815 esac
5817 $ac_path_GREP_found && break 3
5818 done
5819 done
5820 done
5821 IFS=$as_save_IFS
5822 if test -z "$ac_cv_path_GREP"; then
5823 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5825 else
5826 ac_cv_path_GREP=$GREP
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5831 $as_echo "$ac_cv_path_GREP" >&6; }
5832 GREP="$ac_cv_path_GREP"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5836 $as_echo_n "checking for egrep... " >&6; }
5837 if test "${ac_cv_path_EGREP+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5841 then ac_cv_path_EGREP="$GREP -E"
5842 else
5843 if test -z "$EGREP"; then
5844 ac_path_EGREP_found=false
5845 # Loop through the user's path and test for each of PROGNAME-LIST
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_prog in egrep; do
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5854 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5855 # Check for GNU ac_path_EGREP and select it if it is found.
5856 # Check for GNU $ac_path_EGREP
5857 case `"$ac_path_EGREP" --version 2>&1` in
5858 *GNU*)
5859 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5861 ac_count=0
5862 $as_echo_n 0123456789 >"conftest.in"
5863 while :
5865 cat "conftest.in" "conftest.in" >"conftest.tmp"
5866 mv "conftest.tmp" "conftest.in"
5867 cp "conftest.in" "conftest.nl"
5868 $as_echo 'EGREP' >> "conftest.nl"
5869 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5871 as_fn_arith $ac_count + 1 && ac_count=$as_val
5872 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5873 # Best one so far, save it but keep looking for a better one
5874 ac_cv_path_EGREP="$ac_path_EGREP"
5875 ac_path_EGREP_max=$ac_count
5877 # 10*(2^10) chars as input seems more than enough
5878 test $ac_count -gt 10 && break
5879 done
5880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5881 esac
5883 $ac_path_EGREP_found && break 3
5884 done
5885 done
5886 done
5887 IFS=$as_save_IFS
5888 if test -z "$ac_cv_path_EGREP"; then
5889 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5891 else
5892 ac_cv_path_EGREP=$EGREP
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5898 $as_echo "$ac_cv_path_EGREP" >&6; }
5899 EGREP="$ac_cv_path_EGREP"
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5903 $as_echo_n "checking for ANSI C header files... " >&6; }
5904 if test "${ac_cv_header_stdc+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 #include <stdlib.h>
5910 #include <stdarg.h>
5911 #include <string.h>
5912 #include <float.h>
5915 main ()
5919 return 0;
5921 _ACEOF
5922 if ac_fn_c_try_compile "$LINENO"; then :
5923 ac_cv_header_stdc=yes
5924 else
5925 ac_cv_header_stdc=no
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 if test $ac_cv_header_stdc = yes; then
5930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 #include <string.h>
5935 _ACEOF
5936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5937 $EGREP "memchr" >/dev/null 2>&1; then :
5939 else
5940 ac_cv_header_stdc=no
5942 rm -f conftest*
5946 if test $ac_cv_header_stdc = yes; then
5947 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 #include <stdlib.h>
5952 _ACEOF
5953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5954 $EGREP "free" >/dev/null 2>&1; then :
5956 else
5957 ac_cv_header_stdc=no
5959 rm -f conftest*
5963 if test $ac_cv_header_stdc = yes; then
5964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5965 if test "$cross_compiling" = yes; then :
5967 else
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 #include <ctype.h>
5971 #include <stdlib.h>
5972 #if ((' ' & 0x0FF) == 0x020)
5973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5975 #else
5976 # define ISLOWER(c) \
5977 (('a' <= (c) && (c) <= 'i') \
5978 || ('j' <= (c) && (c) <= 'r') \
5979 || ('s' <= (c) && (c) <= 'z'))
5980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5981 #endif
5983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5985 main ()
5987 int i;
5988 for (i = 0; i < 256; i++)
5989 if (XOR (islower (i), ISLOWER (i))
5990 || toupper (i) != TOUPPER (i))
5991 return 2;
5992 return 0;
5994 _ACEOF
5995 if ac_fn_c_try_run "$LINENO"; then :
5997 else
5998 ac_cv_header_stdc=no
6000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6001 conftest.$ac_objext conftest.beam conftest.$ac_ext
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6007 $as_echo "$ac_cv_header_stdc" >&6; }
6008 if test $ac_cv_header_stdc = yes; then
6010 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6014 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6016 inttypes.h stdint.h unistd.h
6017 do :
6018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6019 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6021 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6022 cat >>confdefs.h <<_ACEOF
6023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6024 _ACEOF
6028 done
6034 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6035 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6036 MINIX=yes
6037 else
6038 MINIX=
6042 if test "$MINIX" = yes; then
6044 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6047 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6050 $as_echo "#define _MINIX 1" >>confdefs.h
6054 case "$host_os" in
6055 hpux*)
6057 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6060 esac
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6064 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6065 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6071 # define __EXTENSIONS__ 1
6072 $ac_includes_default
6074 main ()
6078 return 0;
6080 _ACEOF
6081 if ac_fn_c_try_compile "$LINENO"; then :
6082 ac_cv_safe_to_define___extensions__=yes
6083 else
6084 ac_cv_safe_to_define___extensions__=no
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6089 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6090 test $ac_cv_safe_to_define___extensions__ = yes &&
6091 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6093 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6095 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6097 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6099 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6110 # Code from module arg-nonnull:
6111 # Code from module c++defs:
6112 # Code from module crypto/md5:
6113 # Code from module dtoastr:
6114 # Code from module extensions:
6116 # Code from module filemode:
6117 # Code from module getloadavg:
6118 # Code from module getopt-gnu:
6119 # Code from module getopt-posix:
6120 # Code from module gettext-h:
6121 # Code from module ignore-value:
6122 # Code from module include_next:
6123 # Code from module intprops:
6124 # Code from module mktime:
6125 # Code from module multiarch:
6126 # Code from module stdbool:
6127 # Code from module stddef:
6128 # Code from module stdint:
6129 # Code from module stdlib:
6130 # Code from module strftime:
6131 # Code from module sys_stat:
6132 # Code from module time:
6133 # Code from module time_r:
6134 # Code from module unistd:
6135 # Code from module warn-on-use:
6138 # On Suns, sometimes $CPP names a directory.
6139 if test -n "$CPP" && test -d "$CPP"; then
6140 CPP=
6143 ## If not using gcc, and on Solaris, and no CPP specified, see if
6144 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6145 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6146 test x"$CPP" = x; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6148 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6149 if test "${emacs_cv_sunpro_c+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6156 main ()
6158 #ifndef __SUNPRO_C
6159 fail;
6160 #endif
6163 return 0;
6165 _ACEOF
6166 if ac_fn_c_try_link "$LINENO"; then :
6167 emacs_cv_sunpro_c=yes
6168 else
6169 emacs_cv_sunpro_c=no
6171 rm -f core conftest.err conftest.$ac_objext \
6172 conftest$ac_exeext conftest.$ac_ext
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6176 $as_echo "$emacs_cv_sunpro_c" >&6; }
6178 if test x"$emacs_cv_sunpro_c" = xyes; then
6179 NON_GNU_CPP="$CC -E -Xs"
6183 #### Some systems specify a CPP to use unless we are using GCC.
6184 #### Now that we know whether we are using GCC, we can decide whether
6185 #### to use that one.
6186 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6187 then
6188 CPP="$NON_GNU_CPP"
6191 #### Some systems specify a CC to use unless we are using GCC.
6192 #### Now that we know whether we are using GCC, we can decide whether
6193 #### to use that one.
6194 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6195 test x$cc_specified != xyes
6196 then
6197 CC="$NON_GNU_CC"
6200 if test x$GCC = xyes; then
6201 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6202 else
6203 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6206 ### Use -Wdeclaration-after-statement if the compiler supports it
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6208 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6209 SAVE_CFLAGS="$CFLAGS"
6210 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6215 main ()
6219 return 0;
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223 has_option=yes
6224 else
6225 has_option=no
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 if test $has_option = yes; then
6229 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6232 $as_echo "$has_option" >&6; }
6233 CFLAGS="$SAVE_CFLAGS"
6234 unset has_option
6235 unset SAVE_CFLAGS
6237 ### Use -Wold-style-definition if the compiler supports it
6238 # This can be removed when conversion to standard C is finished.
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6240 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6241 SAVE_CFLAGS="$CFLAGS"
6242 CFLAGS="$CFLAGS -Wold-style-definition"
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6247 main ()
6251 return 0;
6253 _ACEOF
6254 if ac_fn_c_try_compile "$LINENO"; then :
6255 has_option=yes
6256 else
6257 has_option=no
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 if test $has_option = yes; then
6261 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6264 $as_echo "$has_option" >&6; }
6265 CFLAGS="$SAVE_CFLAGS"
6266 unset has_option
6267 unset SAVE_CFLAGS
6269 ### Use -Wimplicit-function-declaration if the compiler supports it
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6271 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6272 SAVE_CFLAGS="$CFLAGS"
6273 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6278 main ()
6282 return 0;
6284 _ACEOF
6285 if ac_fn_c_try_compile "$LINENO"; then :
6286 has_option=yes
6287 else
6288 has_option=no
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 if test $has_option = yes; then
6292 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6295 $as_echo "$has_option" >&6; }
6296 CFLAGS="$SAVE_CFLAGS"
6297 unset has_option
6298 unset SAVE_CFLAGS
6303 #### Some other nice autoconf tests.
6305 ac_ext=c
6306 ac_cpp='$CPP $CPPFLAGS'
6307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6311 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6312 # On Suns, sometimes $CPP names a directory.
6313 if test -n "$CPP" && test -d "$CPP"; then
6314 CPP=
6316 if test -z "$CPP"; then
6317 if test "${ac_cv_prog_CPP+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 # Double quotes because CPP needs to be expanded
6321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6323 ac_preproc_ok=false
6324 for ac_c_preproc_warn_flag in '' yes
6326 # Use a header file that comes with gcc, so configuring glibc
6327 # with a fresh cross-compiler works.
6328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6329 # <limits.h> exists even on freestanding compilers.
6330 # On the NeXT, cc -E runs the code through the compiler's parser,
6331 # not just through cpp. "Syntax error" is here to catch this case.
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334 #ifdef __STDC__
6335 # include <limits.h>
6336 #else
6337 # include <assert.h>
6338 #endif
6339 Syntax error
6340 _ACEOF
6341 if ac_fn_c_try_cpp "$LINENO"; then :
6343 else
6344 # Broken: fails on valid input.
6345 continue
6347 rm -f conftest.err conftest.i conftest.$ac_ext
6349 # OK, works on sane cases. Now check whether nonexistent headers
6350 # can be detected and how.
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 #include <ac_nonexistent.h>
6354 _ACEOF
6355 if ac_fn_c_try_cpp "$LINENO"; then :
6356 # Broken: success on invalid input.
6357 continue
6358 else
6359 # Passes both tests.
6360 ac_preproc_ok=:
6361 break
6363 rm -f conftest.err conftest.i conftest.$ac_ext
6365 done
6366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6367 rm -f conftest.i conftest.err conftest.$ac_ext
6368 if $ac_preproc_ok; then :
6369 break
6372 done
6373 ac_cv_prog_CPP=$CPP
6376 CPP=$ac_cv_prog_CPP
6377 else
6378 ac_cv_prog_CPP=$CPP
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6381 $as_echo "$CPP" >&6; }
6382 ac_preproc_ok=false
6383 for ac_c_preproc_warn_flag in '' yes
6385 # Use a header file that comes with gcc, so configuring glibc
6386 # with a fresh cross-compiler works.
6387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6388 # <limits.h> exists even on freestanding compilers.
6389 # On the NeXT, cc -E runs the code through the compiler's parser,
6390 # not just through cpp. "Syntax error" is here to catch this case.
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 #ifdef __STDC__
6394 # include <limits.h>
6395 #else
6396 # include <assert.h>
6397 #endif
6398 Syntax error
6399 _ACEOF
6400 if ac_fn_c_try_cpp "$LINENO"; then :
6402 else
6403 # Broken: fails on valid input.
6404 continue
6406 rm -f conftest.err conftest.i conftest.$ac_ext
6408 # OK, works on sane cases. Now check whether nonexistent headers
6409 # can be detected and how.
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6412 #include <ac_nonexistent.h>
6413 _ACEOF
6414 if ac_fn_c_try_cpp "$LINENO"; then :
6415 # Broken: success on invalid input.
6416 continue
6417 else
6418 # Passes both tests.
6419 ac_preproc_ok=:
6420 break
6422 rm -f conftest.err conftest.i conftest.$ac_ext
6424 done
6425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6426 rm -f conftest.i conftest.err conftest.$ac_ext
6427 if $ac_preproc_ok; then :
6429 else
6430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6433 See \`config.log' for more details" "$LINENO" 5 ; }
6436 ac_ext=c
6437 ac_cpp='$CPP $CPPFLAGS'
6438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6443 if test "x$RANLIB" = x; then
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$RANLIB"; then
6453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6466 done
6467 done
6468 IFS=$as_save_IFS
6472 RANLIB=$ac_cv_prog_RANLIB
6473 if test -n "$RANLIB"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6475 $as_echo "$RANLIB" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6483 if test -z "$ac_cv_prog_RANLIB"; then
6484 ac_ct_RANLIB=$RANLIB
6485 # Extract the first word of "ranlib", so it can be a program name with args.
6486 set dummy ranlib; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if test -n "$ac_ct_RANLIB"; then
6493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_ac_ct_RANLIB="ranlib"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6506 done
6507 done
6508 IFS=$as_save_IFS
6512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6513 if test -n "$ac_ct_RANLIB"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6515 $as_echo "$ac_ct_RANLIB" >&6; }
6516 else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6521 if test "x$ac_ct_RANLIB" = x; then
6522 RANLIB=":"
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6529 esac
6530 RANLIB=$ac_ct_RANLIB
6532 else
6533 RANLIB="$ac_cv_prog_RANLIB"
6538 ## Although we're running on an amd64 kernel, we're actually compiling for
6539 ## the x86 architecture. The user should probably have provided an
6540 ## explicit --build to `configure', but if everything else than the kernel
6541 ## is running in i386 mode, we can help them out.
6542 if test "$machine" = "amdx86-64"; then
6543 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6544 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6548 if test "$ac_cv_have_decl_i386" = "yes"; then
6549 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6550 machine=intel386
6551 machfile="m/${machine}.h"
6555 # Extract the first word of "install-info", so it can be a program name with args.
6556 set dummy install-info; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 case $INSTALL_INFO in
6563 [\\/]* | ?:[\\/]*)
6564 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 break 2
6578 done
6579 done
6580 IFS=$as_save_IFS
6583 esac
6585 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6586 if test -n "$INSTALL_INFO"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6588 $as_echo "$INSTALL_INFO" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6595 # Extract the first word of "install-info", so it can be a program name with args.
6596 set dummy install-info; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 case $INSTALL_INFO in
6603 [\\/]* | ?:[\\/]*)
6604 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in /usr/sbin
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6618 done
6619 done
6620 IFS=$as_save_IFS
6623 esac
6625 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6626 if test -n "$INSTALL_INFO"; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6628 $as_echo "$INSTALL_INFO" >&6; }
6629 else
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6635 # Extract the first word of "install-info", so it can be a program name with args.
6636 set dummy install-info; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 case $INSTALL_INFO in
6643 [\\/]* | ?:[\\/]*)
6644 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in /sbin
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 break 2
6658 done
6659 done
6660 IFS=$as_save_IFS
6662 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6664 esac
6666 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6667 if test -n "$INSTALL_INFO"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6669 $as_echo "$INSTALL_INFO" >&6; }
6670 else
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6676 # Extract the first word of "gzip", so it can be a program name with args.
6677 set dummy gzip; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 case $GZIP_PROG in
6684 [\\/]* | ?:[\\/]*)
6685 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6699 done
6700 done
6701 IFS=$as_save_IFS
6704 esac
6706 GZIP_PROG=$ac_cv_path_GZIP_PROG
6707 if test -n "$GZIP_PROG"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6709 $as_echo "$GZIP_PROG" >&6; }
6710 else
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6718 ## Need makeinfo >= 4.6 (?) to build the manuals.
6719 # Extract the first word of "makeinfo", so it can be a program name with args.
6720 set dummy makeinfo; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 case $MAKEINFO in
6727 [\\/]* | ?:[\\/]*)
6728 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6742 done
6743 done
6744 IFS=$as_save_IFS
6746 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6748 esac
6750 MAKEINFO=$ac_cv_path_MAKEINFO
6751 if test -n "$MAKEINFO"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6753 $as_echo "$MAKEINFO" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6760 if test "$MAKEINFO" != "no" && \
6761 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
6762 MAKEINFO=no
6765 ## Makeinfo is unusual. For a released Emacs, the manuals are
6766 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6767 ## therefore in the category of "special tools" not normally required, which
6768 ## configure does not have to check for (eg autoconf itself).
6769 ## In a Bazaar checkout on the other hand, the manuals are not included.
6770 ## So makeinfo is a requirement to build from Bazaar, and configure
6771 ## should test for it as it does for any other build requirement.
6772 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6773 ## with pre-built manuals, from a Bazaar checkout.
6774 HAVE_MAKEINFO=yes
6776 if test "$MAKEINFO" = "no"; then
6777 MAKEINFO=makeinfo
6778 if test "x${with_makeinfo}" = "xno"; then
6779 HAVE_MAKEINFO=no
6780 elif test ! -e $srcdir/info/emacs; then
6781 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6782 source tree does not seem to have pre-built manuals in the \`info' directory.
6783 Either install a suitable version of makeinfo, or re-run configure
6784 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6790 if test x$GCC = xyes; then
6791 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6792 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6793 else
6794 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6795 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6799 late_LDFLAGS=$LDFLAGS
6800 if test x$GCC = xyes; then
6801 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6802 else
6803 LDFLAGS="$LDFLAGS -znocombreloc"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6807 $as_echo_n "checking for -znocombreloc... " >&6; }
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6812 main ()
6816 return 0;
6818 _ACEOF
6819 if ac_fn_c_try_link "$LINENO"; then :
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6821 $as_echo "yes" >&6; }
6822 else
6823 LDFLAGS=$late_LDFLAGS
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6827 rm -f core conftest.err conftest.$ac_objext \
6828 conftest$ac_exeext conftest.$ac_ext
6831 # The value of CPP is a quoted variable reference, so we need to do this
6832 # to get its actual value...
6833 CPP=`eval "echo $CPP"`
6836 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6837 case "$opsys" in
6838 your-opsys-here) CANNOT_DUMP=yes ;;
6839 esac
6841 test "$CANNOT_DUMP" = "yes" && \
6843 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6849 UNEXEC_OBJ=unexelf.o
6850 case "$opsys" in
6851 # MSDOS uses unexcoff.o
6852 # MSWindows uses unexw32.o
6853 aix4-2)
6854 UNEXEC_OBJ=unexaix.o
6856 cygwin)
6857 UNEXEC_OBJ=unexcw.o
6859 darwin)
6860 UNEXEC_OBJ=unexmacosx.o
6862 hpux10-20 | hpux11)
6863 UNEXEC_OBJ=unexhp9k800.o
6865 sol2-10)
6866 # Use the Solaris dldump() function, called from unexsol.c, to dump
6867 # emacs, instead of the generic ELF dump code found in unexelf.c.
6868 # The resulting binary has a complete symbol table, and is better
6869 # for debugging and other observability tools (debuggers, pstack, etc).
6871 # If you encounter a problem using dldump(), please consider sending
6872 # a message to the OpenSolaris tools-linking mailing list:
6873 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6875 # It is likely that dldump() works with older Solaris too, but this has
6876 # not been tested, so for now this change is for Solaris 10 or newer.
6877 UNEXEC_OBJ=unexsol.o
6879 esac
6881 LD_SWITCH_SYSTEM=
6882 case "$opsys" in
6883 freebsd)
6884 ## Let `ld' find image libs and similar things in /usr/local/lib.
6885 ## The system compiler, GCC, has apparently been modified to not
6886 ## look there, contrary to what a stock GCC would do.
6887 LD_SWITCH_SYSTEM=-L/usr/local/lib
6890 gnu-linux)
6891 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6892 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6895 netbsd)
6896 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6899 openbsd)
6900 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6901 ## otherwise Emacs dumps core on elf systems.
6902 LD_SWITCH_SYSTEM="-Z"
6904 esac
6907 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6909 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6910 ## which has not been defined yet. When this was handled with cpp,
6911 ## it was expanded to null when configure sourced the s/*.h file.
6912 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6913 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6914 ## (or somesuch), but because it is supposed to go at the _front_
6915 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6916 ## Compare with the gnu-linux case below, which added to the end
6917 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6918 ## LD_SWITCH_SYSTEM_TEMACS.
6919 case "$opsys" in
6920 netbsd|openbsd)
6921 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6922 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6923 esac
6926 C_SWITCH_MACHINE=
6927 if test "$machine" = "alpha"; then
6928 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6929 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
6933 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6934 ## With ELF, make sure that all common symbols get allocated to in the
6935 ## data section. Otherwise, the dump of temacs may miss variables in
6936 ## the shared library that have been initialized. For example, with
6937 ## GNU libc, __malloc_initialized would normally be resolved to the
6938 ## shared library's .bss section, which is fatal.
6939 if test "x$GCC" = "xyes"; then
6940 C_SWITCH_MACHINE="-fno-common"
6941 else
6942 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6944 else
6945 UNEXEC_OBJ=unexalpha.o
6952 C_SWITCH_SYSTEM=
6953 ## Some programs in src produce warnings saying certain subprograms
6954 ## are too complex and need a MAXMEM value greater than 2000 for
6955 ## additional optimization. --nils@exp-math.uni-essen.de
6956 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6957 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6958 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6959 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6963 LIBS_SYSTEM=
6964 case "$opsys" in
6965 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6966 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6968 freebsd) LIBS_SYSTEM="-lutil" ;;
6970 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6972 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
6974 ## Motif needs -lgen.
6975 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6976 esac
6980 ### Make sure subsequent tests use flags consistent with the build flags.
6982 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6983 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6984 else
6985 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6988 # Check whether --enable-largefile was given.
6989 if test "${enable_largefile+set}" = set; then :
6990 enableval=$enable_largefile;
6993 if test "$enable_largefile" != no; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6996 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6997 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 ac_cv_sys_largefile_CC=no
7001 if test "$GCC" != yes; then
7002 ac_save_CC=$CC
7003 while :; do
7004 # IRIX 6.2 and later do not support large files by default,
7005 # so use the C compiler's -n32 option if that helps.
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008 #include <sys/types.h>
7009 /* Check that off_t can represent 2**63 - 1 correctly.
7010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7011 since some C++ compilers masquerading as C compilers
7012 incorrectly reject 9223372036854775807. */
7013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7015 && LARGE_OFF_T % 2147483647 == 1)
7016 ? 1 : -1];
7018 main ()
7022 return 0;
7024 _ACEOF
7025 if ac_fn_c_try_compile "$LINENO"; then :
7026 break
7028 rm -f core conftest.err conftest.$ac_objext
7029 CC="$CC -n32"
7030 if ac_fn_c_try_compile "$LINENO"; then :
7031 ac_cv_sys_largefile_CC=' -n32'; break
7033 rm -f core conftest.err conftest.$ac_objext
7034 break
7035 done
7036 CC=$ac_save_CC
7037 rm -f conftest.$ac_ext
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7041 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7042 if test "$ac_cv_sys_largefile_CC" != no; then
7043 CC=$CC$ac_cv_sys_largefile_CC
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7047 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7048 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 while :; do
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 #include <sys/types.h>
7055 /* Check that off_t can represent 2**63 - 1 correctly.
7056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7057 since some C++ compilers masquerading as C compilers
7058 incorrectly reject 9223372036854775807. */
7059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7061 && LARGE_OFF_T % 2147483647 == 1)
7062 ? 1 : -1];
7064 main ()
7068 return 0;
7070 _ACEOF
7071 if ac_fn_c_try_compile "$LINENO"; then :
7072 ac_cv_sys_file_offset_bits=no; break
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7077 #define _FILE_OFFSET_BITS 64
7078 #include <sys/types.h>
7079 /* Check that off_t can represent 2**63 - 1 correctly.
7080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7081 since some C++ compilers masquerading as C compilers
7082 incorrectly reject 9223372036854775807. */
7083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7085 && LARGE_OFF_T % 2147483647 == 1)
7086 ? 1 : -1];
7088 main ()
7092 return 0;
7094 _ACEOF
7095 if ac_fn_c_try_compile "$LINENO"; then :
7096 ac_cv_sys_file_offset_bits=64; break
7098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 ac_cv_sys_file_offset_bits=unknown
7100 break
7101 done
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7104 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7105 case $ac_cv_sys_file_offset_bits in #(
7106 no | unknown) ;;
7108 cat >>confdefs.h <<_ACEOF
7109 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7110 _ACEOF
7112 esac
7113 rm -rf conftest*
7114 if test $ac_cv_sys_file_offset_bits = unknown; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7116 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7117 if test "${ac_cv_sys_large_files+set}" = set; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 while :; do
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 #include <sys/types.h>
7124 /* Check that off_t can represent 2**63 - 1 correctly.
7125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7126 since some C++ compilers masquerading as C compilers
7127 incorrectly reject 9223372036854775807. */
7128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7130 && LARGE_OFF_T % 2147483647 == 1)
7131 ? 1 : -1];
7133 main ()
7137 return 0;
7139 _ACEOF
7140 if ac_fn_c_try_compile "$LINENO"; then :
7141 ac_cv_sys_large_files=no; break
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 #define _LARGE_FILES 1
7147 #include <sys/types.h>
7148 /* Check that off_t can represent 2**63 - 1 correctly.
7149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7150 since some C++ compilers masquerading as C compilers
7151 incorrectly reject 9223372036854775807. */
7152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7154 && LARGE_OFF_T % 2147483647 == 1)
7155 ? 1 : -1];
7157 main ()
7161 return 0;
7163 _ACEOF
7164 if ac_fn_c_try_compile "$LINENO"; then :
7165 ac_cv_sys_large_files=1; break
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 ac_cv_sys_large_files=unknown
7169 break
7170 done
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7173 $as_echo "$ac_cv_sys_large_files" >&6; }
7174 case $ac_cv_sys_large_files in #(
7175 no | unknown) ;;
7177 cat >>confdefs.h <<_ACEOF
7178 #define _LARGE_FILES $ac_cv_sys_large_files
7179 _ACEOF
7181 esac
7182 rm -rf conftest*
7188 ## If user specified a crt-dir, use that unconditionally.
7189 if test "X$CRT_DIR" = "X"; then
7191 case "$canonical" in
7192 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7193 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7194 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7195 ## For anything else (eg /usr/lib32), it is up the user to specify
7196 ## the location (bug#5655).
7197 ## Test for crtn.o, not just the directory, because sometimes the
7198 ## directory exists but does not have the relevant files (bug#1287).
7199 ## FIXME better to test for binary compatibility somehow.
7200 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7203 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7204 esac
7206 case "$opsys" in
7207 hpux10-20) CRT_DIR=/lib ;;
7208 esac
7210 ## Default is /usr/lib.
7211 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7213 else
7215 ## Some platforms don't use any of these files, so it is not
7216 ## appropriate to put this test outside the if block.
7217 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7218 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
7224 LIB_MATH=-lm
7225 LIB_STANDARD=
7226 START_FILES=
7228 case $opsys in
7229 cygwin )
7230 LIB_MATH=
7231 START_FILES='pre-crt0.o'
7233 darwin )
7234 ## Adding -lm confuses the dynamic linker, so omit it.
7235 LIB_MATH=
7236 START_FILES='pre-crt0.o'
7238 freebsd )
7239 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7240 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7242 gnu-linux | gnu-kfreebsd )
7243 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7244 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7246 hpux10-20 | hpux11 )
7247 LIB_STANDARD=-lc
7248 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7250 netbsd | openbsd )
7251 if test -f $CRT_DIR/crti.o; then
7252 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7253 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7254 else
7255 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7256 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7259 esac
7267 if test "${with_sound}" != "no"; then
7268 # Sound support for GNU/Linux and the free BSDs.
7269 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7270 do :
7271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7273 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7274 cat >>confdefs.h <<_ACEOF
7275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7276 _ACEOF
7277 have_sound_header=yes
7280 done
7282 # Emulation library used on NetBSD.
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7284 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7285 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 ac_check_lib_save_LIBS=$LIBS
7289 LIBS="-lossaudio $LIBS"
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7293 /* Override any GCC internal prototype to avoid an error.
7294 Use char because int might match the return type of a GCC
7295 builtin and then its argument prototype would still apply. */
7296 #ifdef __cplusplus
7297 extern "C"
7298 #endif
7299 char _oss_ioctl ();
7301 main ()
7303 return _oss_ioctl ();
7305 return 0;
7307 _ACEOF
7308 if ac_fn_c_try_link "$LINENO"; then :
7309 ac_cv_lib_ossaudio__oss_ioctl=yes
7310 else
7311 ac_cv_lib_ossaudio__oss_ioctl=no
7313 rm -f core conftest.err conftest.$ac_objext \
7314 conftest$ac_exeext conftest.$ac_ext
7315 LIBS=$ac_check_lib_save_LIBS
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7318 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7319 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7320 LIBSOUND=-lossaudio
7321 else
7322 LIBSOUND=
7327 ALSA_REQUIRED=1.0.0
7328 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7330 succeeded=no
7332 # Extract the first word of "pkg-config", so it can be a program name with args.
7333 set dummy pkg-config; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 case $PKG_CONFIG in
7340 [\\/]* | ?:[\\/]*)
7341 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7355 done
7356 done
7357 IFS=$as_save_IFS
7359 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7361 esac
7363 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7364 if test -n "$PKG_CONFIG"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7366 $as_echo "$PKG_CONFIG" >&6; }
7367 else
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7374 if test "$PKG_CONFIG" = "no" ; then
7375 HAVE_ALSA=no
7376 else
7377 PKG_CONFIG_MIN_VERSION=0.9.0
7378 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7380 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7382 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7384 $as_echo "yes" >&6; }
7385 succeeded=yes
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7388 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7389 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7391 $as_echo "$ALSA_CFLAGS" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7394 $as_echo_n "checking ALSA_LIBS... " >&6; }
7395 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7397 $as_echo "$ALSA_LIBS" >&6; }
7398 else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7401 ALSA_CFLAGS=""
7402 ALSA_LIBS=""
7403 ## If we have a custom action on failure, don't print errors, but
7404 ## do set a variable so people can do so.
7405 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7411 else
7412 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7413 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7417 if test $succeeded = yes; then
7418 HAVE_ALSA=yes
7419 else
7420 HAVE_ALSA=no
7423 if test $HAVE_ALSA = yes; then
7424 SAVE_CFLAGS="$CFLAGS"
7425 SAVE_LDFLAGS="$LDFLAGS"
7426 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7427 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7430 #include <asoundlib.h>
7432 main ()
7434 snd_lib_error_set_handler (0);
7436 return 0;
7438 _ACEOF
7439 if ac_fn_c_try_compile "$LINENO"; then :
7440 emacs_alsa_normal=yes
7441 else
7442 emacs_alsa_normal=no
7444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 if test "$emacs_alsa_normal" != yes; then
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 #include <alsa/asoundlib.h>
7450 main ()
7452 snd_lib_error_set_handler (0);
7454 return 0;
7456 _ACEOF
7457 if ac_fn_c_try_compile "$LINENO"; then :
7458 emacs_alsa_subdir=yes
7459 else
7460 emacs_alsa_subdir=no
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 if test "$emacs_alsa_subdir" != yes; then
7464 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7466 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7469 CFLAGS="$SAVE_CFLAGS"
7470 LDFLAGS="$SAVE_LDFLAGS"
7471 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7472 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7474 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7478 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7479 case "$opsys" in
7480 gnu-linux|freebsd|netbsd)
7482 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7485 esac
7491 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7492 linux/version.h sys/systeminfo.h limits.h \
7493 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7494 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7495 sys/utsname.h pwd.h utmp.h dirent.h util.h
7496 do :
7497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7498 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7499 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7500 cat >>confdefs.h <<_ACEOF
7501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7502 _ACEOF
7506 done
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7510 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513 #include <sys/personality.h>
7515 main ()
7517 personality (PER_LINUX32)
7519 return 0;
7521 _ACEOF
7522 if ac_fn_c_try_compile "$LINENO"; then :
7523 emacs_cv_personality_linux32=yes
7524 else
7525 emacs_cv_personality_linux32=no
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7529 $as_echo "$emacs_cv_personality_linux32" >&6; }
7531 if test $emacs_cv_personality_linux32 = yes; then
7533 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7537 for ac_header in term.h
7538 do :
7539 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7540 if test "x$ac_cv_header_term_h" = x""yes; then :
7541 cat >>confdefs.h <<_ACEOF
7542 #define HAVE_TERM_H 1
7543 _ACEOF
7547 done
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7550 $as_echo_n "checking for ANSI C header files... " >&6; }
7551 if test "${ac_cv_header_stdc+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 #include <stdlib.h>
7557 #include <stdarg.h>
7558 #include <string.h>
7559 #include <float.h>
7562 main ()
7566 return 0;
7568 _ACEOF
7569 if ac_fn_c_try_compile "$LINENO"; then :
7570 ac_cv_header_stdc=yes
7571 else
7572 ac_cv_header_stdc=no
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 if test $ac_cv_header_stdc = yes; then
7577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 #include <string.h>
7582 _ACEOF
7583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7584 $EGREP "memchr" >/dev/null 2>&1; then :
7586 else
7587 ac_cv_header_stdc=no
7589 rm -f conftest*
7593 if test $ac_cv_header_stdc = yes; then
7594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 #include <stdlib.h>
7599 _ACEOF
7600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7601 $EGREP "free" >/dev/null 2>&1; then :
7603 else
7604 ac_cv_header_stdc=no
7606 rm -f conftest*
7610 if test $ac_cv_header_stdc = yes; then
7611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7612 if test "$cross_compiling" = yes; then :
7614 else
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617 #include <ctype.h>
7618 #include <stdlib.h>
7619 #if ((' ' & 0x0FF) == 0x020)
7620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7622 #else
7623 # define ISLOWER(c) \
7624 (('a' <= (c) && (c) <= 'i') \
7625 || ('j' <= (c) && (c) <= 'r') \
7626 || ('s' <= (c) && (c) <= 'z'))
7627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7628 #endif
7630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7632 main ()
7634 int i;
7635 for (i = 0; i < 256; i++)
7636 if (XOR (islower (i), ISLOWER (i))
7637 || toupper (i) != TOUPPER (i))
7638 return 2;
7639 return 0;
7641 _ACEOF
7642 if ac_fn_c_try_run "$LINENO"; then :
7644 else
7645 ac_cv_header_stdc=no
7647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7648 conftest.$ac_objext conftest.beam conftest.$ac_ext
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7654 $as_echo "$ac_cv_header_stdc" >&6; }
7655 if test $ac_cv_header_stdc = yes; then
7657 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7662 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7663 if test "${ac_cv_header_time+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 #include <sys/types.h>
7669 #include <sys/time.h>
7670 #include <time.h>
7673 main ()
7675 if ((struct tm *) 0)
7676 return 0;
7678 return 0;
7680 _ACEOF
7681 if ac_fn_c_try_compile "$LINENO"; then :
7682 ac_cv_header_time=yes
7683 else
7684 ac_cv_header_time=no
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7689 $as_echo "$ac_cv_header_time" >&6; }
7690 if test $ac_cv_header_time = yes; then
7692 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7696 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7697 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
7698 ac_have_decl=1
7699 else
7700 ac_have_decl=0
7703 cat >>confdefs.h <<_ACEOF
7704 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7705 _ACEOF
7707 if test $ac_cv_have_decl_sys_siglist != yes; then
7708 # For Tru64, at least:
7709 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7710 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
7711 ac_have_decl=1
7712 else
7713 ac_have_decl=0
7716 cat >>confdefs.h <<_ACEOF
7717 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7718 _ACEOF
7720 if test $ac_cv_have_decl___sys_siglist = yes; then
7722 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7727 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7728 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733 #include <sys/types.h>
7734 #include <sys/wait.h>
7735 #ifndef WEXITSTATUS
7736 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7737 #endif
7738 #ifndef WIFEXITED
7739 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7740 #endif
7743 main ()
7745 int s;
7746 wait (&s);
7747 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7749 return 0;
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 ac_cv_header_sys_wait_h=yes
7754 else
7755 ac_cv_header_sys_wait_h=no
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7760 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7761 if test $ac_cv_header_sys_wait_h = yes; then
7763 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7769 $as_echo_n "checking for struct utimbuf... " >&6; }
7770 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 #ifdef TIME_WITH_SYS_TIME
7776 #include <sys/time.h>
7777 #include <time.h>
7778 #else
7779 #ifdef HAVE_SYS_TIME_H
7780 #include <sys/time.h>
7781 #else
7782 #include <time.h>
7783 #endif
7784 #endif
7785 #ifdef HAVE_UTIME_H
7786 #include <utime.h>
7787 #endif
7789 main ()
7791 static struct utimbuf x; x.actime = x.modtime;
7793 return 0;
7795 _ACEOF
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797 emacs_cv_struct_utimbuf=yes
7798 else
7799 emacs_cv_struct_utimbuf=no
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7804 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7805 if test $emacs_cv_struct_utimbuf = yes; then
7807 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7812 $as_echo_n "checking return type of signal handlers... " >&6; }
7813 if test "${ac_cv_type_signal+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818 #include <sys/types.h>
7819 #include <signal.h>
7822 main ()
7824 return *(signal (0, 0)) (0) == 1;
7826 return 0;
7828 _ACEOF
7829 if ac_fn_c_try_compile "$LINENO"; then :
7830 ac_cv_type_signal=int
7831 else
7832 ac_cv_type_signal=void
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7837 $as_echo "$ac_cv_type_signal" >&6; }
7839 cat >>confdefs.h <<_ACEOF
7840 #define RETSIGTYPE $ac_cv_type_signal
7841 _ACEOF
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7846 $as_echo_n "checking for speed_t... " >&6; }
7847 if test "${emacs_cv_speed_t+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852 #include <termios.h>
7854 main ()
7856 speed_t x = 1;
7858 return 0;
7860 _ACEOF
7861 if ac_fn_c_try_compile "$LINENO"; then :
7862 emacs_cv_speed_t=yes
7863 else
7864 emacs_cv_speed_t=no
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7869 $as_echo "$emacs_cv_speed_t" >&6; }
7870 if test $emacs_cv_speed_t = yes; then
7872 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7877 $as_echo_n "checking for struct timeval... " >&6; }
7878 if test "${emacs_cv_struct_timeval+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7883 #ifdef TIME_WITH_SYS_TIME
7884 #include <sys/time.h>
7885 #include <time.h>
7886 #else
7887 #ifdef HAVE_SYS_TIME_H
7888 #include <sys/time.h>
7889 #else
7890 #include <time.h>
7891 #endif
7892 #endif
7894 main ()
7896 static struct timeval x; x.tv_sec = x.tv_usec;
7898 return 0;
7900 _ACEOF
7901 if ac_fn_c_try_compile "$LINENO"; then :
7902 emacs_cv_struct_timeval=yes
7903 else
7904 emacs_cv_struct_timeval=no
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7909 $as_echo "$emacs_cv_struct_timeval" >&6; }
7910 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7911 if test $emacs_cv_struct_timeval = yes; then
7913 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7918 $as_echo_n "checking for struct exception... " >&6; }
7919 if test "${emacs_cv_struct_exception+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 #include <math.h>
7926 main ()
7928 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7930 return 0;
7932 _ACEOF
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934 emacs_cv_struct_exception=yes
7935 else
7936 emacs_cv_struct_exception=no
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7941 $as_echo "$emacs_cv_struct_exception" >&6; }
7942 HAVE_EXCEPTION=$emacs_cv_struct_exception
7943 if test $emacs_cv_struct_exception != yes; then
7945 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7949 for ac_header in sys/socket.h
7950 do :
7951 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7952 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
7953 cat >>confdefs.h <<_ACEOF
7954 #define HAVE_SYS_SOCKET_H 1
7955 _ACEOF
7959 done
7961 for ac_header in net/if.h
7962 do :
7963 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7964 #if HAVE_SYS_SOCKET_H
7965 #include <sys/socket.h>
7966 #endif
7968 if test "x$ac_cv_header_net_if_h" = x""yes; then :
7969 cat >>confdefs.h <<_ACEOF
7970 #define HAVE_NET_IF_H 1
7971 _ACEOF
7975 done
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7979 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7980 if test "${ac_cv_struct_tm+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 #include <sys/types.h>
7986 #include <time.h>
7989 main ()
7991 struct tm tm;
7992 int *p = &tm.tm_sec;
7993 return !p;
7995 return 0;
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 ac_cv_struct_tm=time.h
8000 else
8001 ac_cv_struct_tm=sys/time.h
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8006 $as_echo "$ac_cv_struct_tm" >&6; }
8007 if test $ac_cv_struct_tm = sys/time.h; then
8009 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8013 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8014 #include <$ac_cv_struct_tm>
8017 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8019 cat >>confdefs.h <<_ACEOF
8020 #define HAVE_STRUCT_TM_TM_ZONE 1
8021 _ACEOF
8026 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8028 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8030 else
8031 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8033 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8034 ac_have_decl=1
8035 else
8036 ac_have_decl=0
8039 cat >>confdefs.h <<_ACEOF
8040 #define HAVE_DECL_TZNAME $ac_have_decl
8041 _ACEOF
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8044 $as_echo_n "checking for tzname... " >&6; }
8045 if test "${ac_cv_var_tzname+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 #include <time.h>
8051 #if !HAVE_DECL_TZNAME
8052 extern char *tzname[];
8053 #endif
8056 main ()
8058 return tzname[0][0];
8060 return 0;
8062 _ACEOF
8063 if ac_fn_c_try_link "$LINENO"; then :
8064 ac_cv_var_tzname=yes
8065 else
8066 ac_cv_var_tzname=no
8068 rm -f core conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8072 $as_echo "$ac_cv_var_tzname" >&6; }
8073 if test $ac_cv_var_tzname = yes; then
8075 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8080 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8082 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8084 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8088 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8089 #if HAVE_SYS_SOCKET_H
8090 #include <sys/socket.h>
8091 #endif
8092 #if HAVE_NET_IF_H
8093 #include <net/if.h>
8094 #endif
8096 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8098 cat >>confdefs.h <<_ACEOF
8099 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8100 _ACEOF
8104 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8105 #if HAVE_SYS_SOCKET_H
8106 #include <sys/socket.h>
8107 #endif
8108 #if HAVE_NET_IF_H
8109 #include <net/if.h>
8110 #endif
8112 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8114 cat >>confdefs.h <<_ACEOF
8115 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8116 _ACEOF
8120 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8121 #if HAVE_SYS_SOCKET_H
8122 #include <sys/socket.h>
8123 #endif
8124 #if HAVE_NET_IF_H
8125 #include <net/if.h>
8126 #endif
8128 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8130 cat >>confdefs.h <<_ACEOF
8131 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8132 _ACEOF
8136 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8137 #if HAVE_SYS_SOCKET_H
8138 #include <sys/socket.h>
8139 #endif
8140 #if HAVE_NET_IF_H
8141 #include <net/if.h>
8142 #endif
8144 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8146 cat >>confdefs.h <<_ACEOF
8147 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8148 _ACEOF
8152 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8153 #if HAVE_SYS_SOCKET_H
8154 #include <sys/socket.h>
8155 #endif
8156 #if HAVE_NET_IF_H
8157 #include <net/if.h>
8158 #endif
8160 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8162 cat >>confdefs.h <<_ACEOF
8163 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8164 _ACEOF
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8172 $as_echo_n "checking for function prototypes... " >&6; }
8173 if test "$ac_cv_prog_cc_c89" != no; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8175 $as_echo "yes" >&6; }
8177 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8180 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8182 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8188 $as_echo_n "checking for working volatile... " >&6; }
8189 if test "${ac_cv_c_volatile+set}" = set; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8196 main ()
8199 volatile int x;
8200 int * volatile y = (int *) 0;
8201 return !x && !y;
8203 return 0;
8205 _ACEOF
8206 if ac_fn_c_try_compile "$LINENO"; then :
8207 ac_cv_c_volatile=yes
8208 else
8209 ac_cv_c_volatile=no
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8214 $as_echo "$ac_cv_c_volatile" >&6; }
8215 if test $ac_cv_c_volatile = no; then
8217 $as_echo "#define volatile /**/" >>confdefs.h
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8222 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8223 if test "${ac_cv_c_const+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8230 main ()
8232 /* FIXME: Include the comments suggested by Paul. */
8233 #ifndef __cplusplus
8234 /* Ultrix mips cc rejects this. */
8235 typedef int charset[2];
8236 const charset cs;
8237 /* SunOS 4.1.1 cc rejects this. */
8238 char const *const *pcpcc;
8239 char **ppc;
8240 /* NEC SVR4.0.2 mips cc rejects this. */
8241 struct point {int x, y;};
8242 static struct point const zero = {0,0};
8243 /* AIX XL C 1.02.0.0 rejects this.
8244 It does not let you subtract one const X* pointer from another in
8245 an arm of an if-expression whose if-part is not a constant
8246 expression */
8247 const char *g = "string";
8248 pcpcc = &g + (g ? g-g : 0);
8249 /* HPUX 7.0 cc rejects these. */
8250 ++pcpcc;
8251 ppc = (char**) pcpcc;
8252 pcpcc = (char const *const *) ppc;
8253 { /* SCO 3.2v4 cc rejects this. */
8254 char *t;
8255 char const *s = 0 ? (char *) 0 : (char const *) 0;
8257 *t++ = 0;
8258 if (s) return 0;
8260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8261 int x[] = {25, 17};
8262 const int *foo = &x[0];
8263 ++foo;
8265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8266 typedef const int *iptr;
8267 iptr p = 0;
8268 ++p;
8270 { /* AIX XL C 1.02.0.0 rejects this saying
8271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8272 struct s { int j; const int *ap[3]; };
8273 struct s *b; b->j = 5;
8275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8276 const int foo = 10;
8277 if (!foo) return 0;
8279 return !cs[0] && !zero.x;
8280 #endif
8283 return 0;
8285 _ACEOF
8286 if ac_fn_c_try_compile "$LINENO"; then :
8287 ac_cv_c_const=yes
8288 else
8289 ac_cv_c_const=no
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8294 $as_echo "$ac_cv_c_const" >&6; }
8295 if test $ac_cv_c_const = no; then
8297 $as_echo "#define const /**/" >>confdefs.h
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8302 $as_echo_n "checking for void * support... " >&6; }
8303 if test "${emacs_cv_void_star+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8310 main ()
8312 void * foo;
8314 return 0;
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 emacs_cv_void_star=yes
8319 else
8320 emacs_cv_void_star=no
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8325 $as_echo "$emacs_cv_void_star" >&6; }
8326 if test $emacs_cv_void_star = yes; then
8327 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8329 else
8330 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8335 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8336 if test "${ac_cv_c_bigendian+set}" = set; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 ac_cv_c_bigendian=unknown
8340 # See if we're dealing with a universal compiler.
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #ifndef __APPLE_CC__
8344 not a universal capable compiler
8345 #endif
8346 typedef int dummy;
8348 _ACEOF
8349 if ac_fn_c_try_compile "$LINENO"; then :
8351 # Check for potential -arch flags. It is not universal unless
8352 # there are at least two -arch flags with different values.
8353 ac_arch=
8354 ac_prev=
8355 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8356 if test -n "$ac_prev"; then
8357 case $ac_word in
8358 i?86 | x86_64 | ppc | ppc64)
8359 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8360 ac_arch=$ac_word
8361 else
8362 ac_cv_c_bigendian=universal
8363 break
8366 esac
8367 ac_prev=
8368 elif test "x$ac_word" = "x-arch"; then
8369 ac_prev=arch
8371 done
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 if test $ac_cv_c_bigendian = unknown; then
8375 # See if sys/param.h defines the BYTE_ORDER macro.
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 #include <sys/types.h>
8379 #include <sys/param.h>
8382 main ()
8384 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8385 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8386 && LITTLE_ENDIAN)
8387 bogus endian macros
8388 #endif
8391 return 0;
8393 _ACEOF
8394 if ac_fn_c_try_compile "$LINENO"; then :
8395 # It does; now see whether it defined to BIG_ENDIAN or not.
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 #include <sys/types.h>
8399 #include <sys/param.h>
8402 main ()
8404 #if BYTE_ORDER != BIG_ENDIAN
8405 not big endian
8406 #endif
8409 return 0;
8411 _ACEOF
8412 if ac_fn_c_try_compile "$LINENO"; then :
8413 ac_cv_c_bigendian=yes
8414 else
8415 ac_cv_c_bigendian=no
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421 if test $ac_cv_c_bigendian = unknown; then
8422 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425 #include <limits.h>
8428 main ()
8430 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8431 bogus endian macros
8432 #endif
8435 return 0;
8437 _ACEOF
8438 if ac_fn_c_try_compile "$LINENO"; then :
8439 # It does; now see whether it defined to _BIG_ENDIAN or not.
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442 #include <limits.h>
8445 main ()
8447 #ifndef _BIG_ENDIAN
8448 not big endian
8449 #endif
8452 return 0;
8454 _ACEOF
8455 if ac_fn_c_try_compile "$LINENO"; then :
8456 ac_cv_c_bigendian=yes
8457 else
8458 ac_cv_c_bigendian=no
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 if test $ac_cv_c_bigendian = unknown; then
8465 # Compile a test program.
8466 if test "$cross_compiling" = yes; then :
8467 # Try to guess by grepping values from an object file.
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 short int ascii_mm[] =
8471 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8472 short int ascii_ii[] =
8473 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8474 int use_ascii (int i) {
8475 return ascii_mm[i] + ascii_ii[i];
8477 short int ebcdic_ii[] =
8478 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8479 short int ebcdic_mm[] =
8480 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8481 int use_ebcdic (int i) {
8482 return ebcdic_mm[i] + ebcdic_ii[i];
8484 extern int foo;
8487 main ()
8489 return use_ascii (foo) == use_ebcdic (foo);
8491 return 0;
8493 _ACEOF
8494 if ac_fn_c_try_compile "$LINENO"; then :
8495 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8496 ac_cv_c_bigendian=yes
8498 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8499 if test "$ac_cv_c_bigendian" = unknown; then
8500 ac_cv_c_bigendian=no
8501 else
8502 # finding both strings is unlikely to happen, but who knows?
8503 ac_cv_c_bigendian=unknown
8507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508 else
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 $ac_includes_default
8513 main ()
8516 /* Are we little or big endian? From Harbison&Steele. */
8517 union
8519 long int l;
8520 char c[sizeof (long int)];
8521 } u;
8522 u.l = 1;
8523 return u.c[sizeof (long int) - 1] == 1;
8526 return 0;
8528 _ACEOF
8529 if ac_fn_c_try_run "$LINENO"; then :
8530 ac_cv_c_bigendian=no
8531 else
8532 ac_cv_c_bigendian=yes
8534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8535 conftest.$ac_objext conftest.beam conftest.$ac_ext
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8541 $as_echo "$ac_cv_c_bigendian" >&6; }
8542 case $ac_cv_c_bigendian in #(
8543 yes)
8544 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8545 ;; #(
8547 ;; #(
8548 universal)
8550 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8552 ;; #(
8554 as_fn_error $? "unknown endianness
8555 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8556 esac
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8560 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8561 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 char __attribute__ ((__aligned__ (1 << 3))) c;
8568 main ()
8572 return 0;
8574 _ACEOF
8575 if ac_fn_c_try_compile "$LINENO"; then :
8576 emacs_cv_attribute_aligned=yes
8577 else
8578 emacs_cv_attribute_aligned=no
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8583 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8584 if test $emacs_cv_attribute_aligned = yes; then
8586 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8591 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8592 set x ${MAKE-make}
8593 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8594 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 cat >conftest.make <<\_ACEOF
8598 SHELL = /bin/sh
8599 all:
8600 @echo '@@@%%%=$(MAKE)=@@@%%%'
8601 _ACEOF
8602 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8603 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8604 *@@@%%%=?*=@@@%%%*)
8605 eval ac_cv_prog_make_${ac_make}_set=yes;;
8607 eval ac_cv_prog_make_${ac_make}_set=no;;
8608 esac
8609 rm -f conftest.make
8611 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8613 $as_echo "yes" >&6; }
8614 SET_MAKE=
8615 else
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8618 SET_MAKE="MAKE=${MAKE-make}"
8622 DEPFLAGS=
8623 MKDEPDIR=":"
8624 deps_frag=deps.mk
8625 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8627 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8628 HAVE_GNU_MAKE=no
8629 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8630 if test "x$testval" != x; then
8631 HAVE_GNU_MAKE=yes
8632 else
8633 ac_enable_autodepend=no
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8636 $as_echo "$HAVE_GNU_MAKE" >&6; }
8637 if test $HAVE_GNU_MAKE = yes; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8639 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8640 SAVE_CFLAGS="$CFLAGS"
8641 CFLAGS="$CFLAGS -MMD -MF deps.d"
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8646 main ()
8650 return 0;
8652 _ACEOF
8653 if ac_fn_c_try_compile "$LINENO"; then :
8655 else
8656 ac_enable_autodepend=no
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 CFLAGS="$SAVE_CFLAGS"
8660 test -f deps.d || ac_enable_autodepend=no
8661 rm -rf deps.d
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8663 $as_echo "$ac_enable_autodepend" >&6; }
8665 if test $ac_enable_autodepend = yes; then
8666 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8667 ## In parallel builds, another make might create depdir between
8668 ## the first test and mkdir, so stick another test on the end.
8669 ## Or use mkinstalldirs? mkdir -p is not portable.
8670 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8671 deps_frag=autodeps.mk
8674 deps_frag=$srcdir/src/$deps_frag
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8681 $as_echo_n "checking for long file names... " >&6; }
8682 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 ac_cv_sys_long_file_names=yes
8686 # Test for long file names in all the places we know might matter:
8687 # . the current directory, where building will happen
8688 # $prefix/lib where we will be installing things
8689 # $exec_prefix/lib likewise
8690 # $TMPDIR if set, where it might want to write temporary files
8691 # /tmp where it might want to write temporary files
8692 # /var/tmp likewise
8693 # /usr/tmp likewise
8694 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8695 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8696 # in the usual case where exec_prefix is '${prefix}'.
8697 case $ac_dir in #(
8698 . | /* | ?:[\\/]*) ;; #(
8699 *) continue;;
8700 esac
8701 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8702 ac_xdir=$ac_dir/cf$$
8703 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8704 ac_tf1=$ac_xdir/conftest9012345
8705 ac_tf2=$ac_xdir/conftest9012346
8706 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8707 ac_cv_sys_long_file_names=no
8708 rm -f -r "$ac_xdir" 2>/dev/null
8709 test $ac_cv_sys_long_file_names = no && break
8710 done
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8713 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8714 if test $ac_cv_sys_long_file_names = yes; then
8716 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8721 #### Choose a window system.
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8724 $as_echo_n "checking for X... " >&6; }
8727 # Check whether --with-x was given.
8728 if test "${with_x+set}" = set; then :
8729 withval=$with_x;
8732 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8733 if test "x$with_x" = xno; then
8734 # The user explicitly disabled X.
8735 have_x=disabled
8736 else
8737 case $x_includes,$x_libraries in #(
8738 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
8739 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 # One or both of the vars are not set, and there is no cached value.
8743 ac_x_includes=no ac_x_libraries=no
8744 rm -f -r conftest.dir
8745 if mkdir conftest.dir; then
8746 cd conftest.dir
8747 cat >Imakefile <<'_ACEOF'
8748 incroot:
8749 @echo incroot='${INCROOT}'
8750 usrlibdir:
8751 @echo usrlibdir='${USRLIBDIR}'
8752 libdir:
8753 @echo libdir='${LIBDIR}'
8754 _ACEOF
8755 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8756 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8757 for ac_var in incroot usrlibdir libdir; do
8758 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8759 done
8760 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8761 for ac_extension in a so sl dylib la dll; do
8762 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8763 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8764 ac_im_usrlibdir=$ac_im_libdir; break
8766 done
8767 # Screen out bogus values from the imake configuration. They are
8768 # bogus both because they are the default anyway, and because
8769 # using them would break gcc on systems where it needs fixed includes.
8770 case $ac_im_incroot in
8771 /usr/include) ac_x_includes= ;;
8772 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8773 esac
8774 case $ac_im_usrlibdir in
8775 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8776 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8777 esac
8779 cd ..
8780 rm -f -r conftest.dir
8783 # Standard set of common directories for X headers.
8784 # Check X11 before X11Rn because it is often a symlink to the current release.
8785 ac_x_header_dirs='
8786 /usr/X11/include
8787 /usr/X11R7/include
8788 /usr/X11R6/include
8789 /usr/X11R5/include
8790 /usr/X11R4/include
8792 /usr/include/X11
8793 /usr/include/X11R7
8794 /usr/include/X11R6
8795 /usr/include/X11R5
8796 /usr/include/X11R4
8798 /usr/local/X11/include
8799 /usr/local/X11R7/include
8800 /usr/local/X11R6/include
8801 /usr/local/X11R5/include
8802 /usr/local/X11R4/include
8804 /usr/local/include/X11
8805 /usr/local/include/X11R7
8806 /usr/local/include/X11R6
8807 /usr/local/include/X11R5
8808 /usr/local/include/X11R4
8810 /usr/X386/include
8811 /usr/x386/include
8812 /usr/XFree86/include/X11
8814 /usr/include
8815 /usr/local/include
8816 /usr/unsupported/include
8817 /usr/athena/include
8818 /usr/local/x11r5/include
8819 /usr/lpp/Xamples/include
8821 /usr/openwin/include
8822 /usr/openwin/share/include'
8824 if test "$ac_x_includes" = no; then
8825 # Guess where to find include files, by looking for Xlib.h.
8826 # First, try using that file with no special directory specified.
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8829 #include <X11/Xlib.h>
8830 _ACEOF
8831 if ac_fn_c_try_cpp "$LINENO"; then :
8832 # We can compile using X headers with no special include directory.
8833 ac_x_includes=
8834 else
8835 for ac_dir in $ac_x_header_dirs; do
8836 if test -r "$ac_dir/X11/Xlib.h"; then
8837 ac_x_includes=$ac_dir
8838 break
8840 done
8842 rm -f conftest.err conftest.i conftest.$ac_ext
8843 fi # $ac_x_includes = no
8845 if test "$ac_x_libraries" = no; then
8846 # Check for the libraries.
8847 # See if we find them without any special options.
8848 # Don't add to $LIBS permanently.
8849 ac_save_LIBS=$LIBS
8850 LIBS="-lX11 $LIBS"
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 #include <X11/Xlib.h>
8855 main ()
8857 XrmInitialize ()
8859 return 0;
8861 _ACEOF
8862 if ac_fn_c_try_link "$LINENO"; then :
8863 LIBS=$ac_save_LIBS
8864 # We can link X programs with no special library path.
8865 ac_x_libraries=
8866 else
8867 LIBS=$ac_save_LIBS
8868 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8870 # Don't even attempt the hair of trying to link an X program!
8871 for ac_extension in a so sl dylib la dll; do
8872 if test -r "$ac_dir/libX11.$ac_extension"; then
8873 ac_x_libraries=$ac_dir
8874 break 2
8876 done
8877 done
8879 rm -f core conftest.err conftest.$ac_objext \
8880 conftest$ac_exeext conftest.$ac_ext
8881 fi # $ac_x_libraries = no
8883 case $ac_x_includes,$ac_x_libraries in #(
8884 no,* | *,no | *\'*)
8885 # Didn't find X, or a directory has "'" in its name.
8886 ac_cv_have_x="have_x=no";; #(
8888 # Record where we found X for the cache.
8889 ac_cv_have_x="have_x=yes\
8890 ac_x_includes='$ac_x_includes'\
8891 ac_x_libraries='$ac_x_libraries'"
8892 esac
8894 ;; #(
8895 *) have_x=yes;;
8896 esac
8897 eval "$ac_cv_have_x"
8898 fi # $with_x != no
8900 if test "$have_x" != yes; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8902 $as_echo "$have_x" >&6; }
8903 no_x=yes
8904 else
8905 # If each of the values was on the command line, it overrides each guess.
8906 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8907 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8908 # Update the cache value to reflect the command line values.
8909 ac_cv_have_x="have_x=yes\
8910 ac_x_includes='$x_includes'\
8911 ac_x_libraries='$x_libraries'"
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8913 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8916 if test "$no_x" = yes; then
8917 window_system=none
8918 else
8919 window_system=x11
8922 ## Workaround for bug in autoconf <= 2.62.
8923 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8924 ## No need to do anything special for these standard directories.
8925 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8927 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8931 LD_SWITCH_X_SITE_AUX=
8932 LD_SWITCH_X_SITE_AUX_RPATH=
8933 if test "${x_libraries}" != NONE; then
8934 if test -n "${x_libraries}"; then
8935 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8936 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8937 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8939 x_default_search_path=""
8940 x_search_path=${x_libraries}
8941 if test -z "${x_search_path}"; then
8942 x_search_path=/usr/lib
8944 for x_library in `echo ${x_search_path}: | \
8945 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8946 x_search_path="\
8947 ${x_library}/X11/%L/%T/%N%C%S:\
8948 ${x_library}/X11/%l/%T/%N%C%S:\
8949 ${x_library}/X11/%T/%N%C%S:\
8950 ${x_library}/X11/%L/%T/%N%S:\
8951 ${x_library}/X11/%l/%T/%N%S:\
8952 ${x_library}/X11/%T/%N%S"
8953 if test x"${x_default_search_path}" = x; then
8954 x_default_search_path=${x_search_path}
8955 else
8956 x_default_search_path="${x_search_path}:${x_default_search_path}"
8958 done
8963 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8964 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8967 if test x"${x_includes}" = x; then
8968 bitmapdir=/usr/include/X11/bitmaps
8969 else
8970 # accumulate include directories that have X11 bitmap subdirectories
8971 bmd_acc="dummyval"
8972 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8973 if test -d "${bmd}/X11/bitmaps"; then
8974 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8976 if test -d "${bmd}/bitmaps"; then
8977 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8979 done
8980 if test ${bmd_acc} != "dummyval"; then
8981 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8985 HAVE_NS=no
8986 NS_IMPL_COCOA=no
8987 NS_IMPL_GNUSTEP=no
8988 tmp_CPPFLAGS="$CPPFLAGS"
8989 tmp_CFLAGS="$CFLAGS"
8990 CPPFLAGS="$CPPFLAGS -x objective-c"
8991 CFLAGS="$CFLAGS -x objective-c"
8992 TEMACS_LDFLAGS2="\${LDFLAGS}"
8993 if test "${with_ns}" != no; then
8994 if test "${opsys}" = darwin; then
8995 NS_IMPL_COCOA=yes
8996 ns_appdir=`pwd`/nextstep/Emacs.app
8997 ns_appbindir=${ns_appdir}/Contents/MacOS/
8998 ns_appresdir=${ns_appdir}/Contents/Resources
8999 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9000 elif test -f $GNUSTEP_CONFIG_FILE; then
9001 NS_IMPL_GNUSTEP=yes
9002 ns_appdir=`pwd`/nextstep/Emacs.app
9003 ns_appbindir=${ns_appdir}/
9004 ns_appresdir=${ns_appdir}/Resources
9005 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9006 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9007 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9008 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9009 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9010 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9011 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9012 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9013 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9014 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9015 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9016 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9017 LIB_STANDARD=
9018 START_FILES=
9019 TEMACS_LDFLAGS2=
9021 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9022 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9023 HAVE_NS=yes
9024 else
9025 as_fn_error $? "\`--with-ns' was specified, but the include
9026 files are missing or cannot be compiled." "$LINENO" 5
9030 NS_HAVE_NSINTEGER=yes
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033 #include <Foundation/NSObjCRuntime.h>
9035 main ()
9037 NSInteger i;
9039 return 0;
9041 _ACEOF
9042 if ac_fn_c_try_compile "$LINENO"; then :
9043 ns_have_nsinteger=yes
9044 else
9045 ns_have_nsinteger=no
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048 if test $ns_have_nsinteger = no; then
9049 NS_HAVE_NSINTEGER=no
9054 ns_frag=/dev/null
9055 NS_OBJ=
9056 NS_OBJC_OBJ=
9057 NS_SUPPORT=
9058 if test "${HAVE_NS}" = yes; then
9059 window_system=nextstep
9060 with_xft=no
9061 # set up packaging dirs
9062 exec_prefix=${ns_appbindir}
9063 libexecdir=${ns_appbindir}/libexec
9064 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9065 prefix=${ns_appresdir}
9067 ns_frag=$srcdir/src/ns.mk
9068 NS_OBJ="fontset.o fringe.o image.o"
9069 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9070 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9072 CFLAGS="$tmp_CFLAGS"
9073 CPPFLAGS="$tmp_CPPFLAGS"
9080 case "${window_system}" in
9081 x11 )
9082 HAVE_X_WINDOWS=yes
9083 HAVE_X11=yes
9084 case "${with_x_toolkit}" in
9085 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9086 motif ) USE_X_TOOLKIT=MOTIF ;;
9087 gtk ) with_gtk=yes
9088 USE_X_TOOLKIT=none ;;
9089 gtk3 ) with_gtk3=yes
9090 USE_X_TOOLKIT=none ;;
9091 no ) USE_X_TOOLKIT=none ;;
9092 * ) USE_X_TOOLKIT=maybe ;;
9093 esac
9095 nextstep | none )
9096 HAVE_X_WINDOWS=no
9097 HAVE_X11=no
9098 USE_X_TOOLKIT=none
9100 esac
9102 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9103 # Extract the first word of "X", so it can be a program name with args.
9104 set dummy X; ac_word=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 if test -n "$HAVE_XSERVER"; then
9111 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9112 else
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $PATH
9116 IFS=$as_save_IFS
9117 test -z "$as_dir" && as_dir=.
9118 for ac_exec_ext in '' $ac_executable_extensions; do
9119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9120 ac_cv_prog_HAVE_XSERVER="true"
9121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 break 2
9124 done
9125 done
9126 IFS=$as_save_IFS
9128 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9131 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9132 if test -n "$HAVE_XSERVER"; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9134 $as_echo "$HAVE_XSERVER" >&6; }
9135 else
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9141 if test "$HAVE_XSERVER" = true ||
9142 test -n "$DISPLAY" ||
9143 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9144 as_fn_error $? "You seem to be running X, but no X development libraries
9145 were found. You should install the relevant development files for X
9146 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9147 sure you have development files for image handling, i.e.
9148 tiff, gif, jpeg, png and xpm.
9149 If you are sure you want Emacs compiled without X window support, pass
9150 --without-x
9151 to configure." "$LINENO" 5
9155 ### If we're using X11, we should use the X menu package.
9156 HAVE_MENUS=no
9157 case ${HAVE_X11} in
9158 yes ) HAVE_MENUS=yes ;;
9159 esac
9161 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9162 # Assume not, until told otherwise.
9163 GNU_MALLOC=yes
9164 doug_lea_malloc=yes
9165 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9166 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9168 else
9169 doug_lea_malloc=no
9172 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9173 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9175 else
9176 doug_lea_malloc=no
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9180 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9181 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 extern void (* __after_morecore_hook)();
9188 main ()
9190 __after_morecore_hook = 0
9192 return 0;
9194 _ACEOF
9195 if ac_fn_c_try_link "$LINENO"; then :
9196 emacs_cv_var___after_morecore_hook=yes
9197 else
9198 emacs_cv_var___after_morecore_hook=no
9200 rm -f core conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9204 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9205 if test $emacs_cv_var___after_morecore_hook = no; then
9206 doug_lea_malloc=no
9210 system_malloc=no
9211 case "$opsys" in
9212 ## darwin ld insists on the use of malloc routines in the System framework.
9213 darwin|sol2-10) system_malloc=yes ;;
9214 esac
9216 if test "${system_malloc}" = "yes"; then
9218 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9220 GNU_MALLOC=no
9221 GNU_MALLOC_reason="
9222 (The GNU allocators don't work with this system configuration.)"
9223 GMALLOC_OBJ=
9224 VMLIMIT_OBJ=
9225 else
9226 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9227 VMLIMIT_OBJ=vm-limit.o
9232 if test "$doug_lea_malloc" = "yes" ; then
9233 if test "$GNU_MALLOC" = yes ; then
9234 GNU_MALLOC_reason="
9235 (Using Doug Lea's new malloc from the GNU C Library.)"
9238 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9241 ## Use mmap directly for allocating larger buffers.
9242 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9243 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9244 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9245 case "$opsys" in
9246 gnu*) REL_ALLOC=no ;;
9247 esac
9250 if test x"${REL_ALLOC}" = x; then
9251 REL_ALLOC=${GNU_MALLOC}
9254 use_mmap_for_buffers=no
9255 case "$opsys" in
9256 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9257 esac
9262 for ac_header in $ac_header_list
9263 do :
9264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9267 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9268 cat >>confdefs.h <<_ACEOF
9269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9270 _ACEOF
9274 done
9283 for ac_func in getpagesize
9284 do :
9285 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9286 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9287 cat >>confdefs.h <<_ACEOF
9288 #define HAVE_GETPAGESIZE 1
9289 _ACEOF
9292 done
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9295 $as_echo_n "checking for working mmap... " >&6; }
9296 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9298 else
9299 if test "$cross_compiling" = yes; then :
9300 ac_cv_func_mmap_fixed_mapped=no
9301 else
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 $ac_includes_default
9305 /* malloc might have been renamed as rpl_malloc. */
9306 #undef malloc
9308 /* Thanks to Mike Haertel and Jim Avera for this test.
9309 Here is a matrix of mmap possibilities:
9310 mmap private not fixed
9311 mmap private fixed at somewhere currently unmapped
9312 mmap private fixed at somewhere already mapped
9313 mmap shared not fixed
9314 mmap shared fixed at somewhere currently unmapped
9315 mmap shared fixed at somewhere already mapped
9316 For private mappings, we should verify that changes cannot be read()
9317 back from the file, nor mmap's back from the file at a different
9318 address. (There have been systems where private was not correctly
9319 implemented like the infamous i386 svr4.0, and systems where the
9320 VM page cache was not coherent with the file system buffer cache
9321 like early versions of FreeBSD and possibly contemporary NetBSD.)
9322 For shared mappings, we should conversely verify that changes get
9323 propagated back to all the places they're supposed to be.
9325 Grep wants private fixed already mapped.
9326 The main things grep needs to know about mmap are:
9327 * does it exist and is it safe to write into the mmap'd area
9328 * how to use it (BSD variants) */
9330 #include <fcntl.h>
9331 #include <sys/mman.h>
9333 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9334 char *malloc ();
9335 #endif
9337 /* This mess was copied from the GNU getpagesize.h. */
9338 #ifndef HAVE_GETPAGESIZE
9339 # ifdef _SC_PAGESIZE
9340 # define getpagesize() sysconf(_SC_PAGESIZE)
9341 # else /* no _SC_PAGESIZE */
9342 # ifdef HAVE_SYS_PARAM_H
9343 # include <sys/param.h>
9344 # ifdef EXEC_PAGESIZE
9345 # define getpagesize() EXEC_PAGESIZE
9346 # else /* no EXEC_PAGESIZE */
9347 # ifdef NBPG
9348 # define getpagesize() NBPG * CLSIZE
9349 # ifndef CLSIZE
9350 # define CLSIZE 1
9351 # endif /* no CLSIZE */
9352 # else /* no NBPG */
9353 # ifdef NBPC
9354 # define getpagesize() NBPC
9355 # else /* no NBPC */
9356 # ifdef PAGESIZE
9357 # define getpagesize() PAGESIZE
9358 # endif /* PAGESIZE */
9359 # endif /* no NBPC */
9360 # endif /* no NBPG */
9361 # endif /* no EXEC_PAGESIZE */
9362 # else /* no HAVE_SYS_PARAM_H */
9363 # define getpagesize() 8192 /* punt totally */
9364 # endif /* no HAVE_SYS_PARAM_H */
9365 # endif /* no _SC_PAGESIZE */
9367 #endif /* no HAVE_GETPAGESIZE */
9370 main ()
9372 char *data, *data2, *data3;
9373 const char *cdata2;
9374 int i, pagesize;
9375 int fd, fd2;
9377 pagesize = getpagesize ();
9379 /* First, make a file with some known garbage in it. */
9380 data = (char *) malloc (pagesize);
9381 if (!data)
9382 return 1;
9383 for (i = 0; i < pagesize; ++i)
9384 *(data + i) = rand ();
9385 umask (0);
9386 fd = creat ("conftest.mmap", 0600);
9387 if (fd < 0)
9388 return 2;
9389 if (write (fd, data, pagesize) != pagesize)
9390 return 3;
9391 close (fd);
9393 /* Next, check that the tail of a page is zero-filled. File must have
9394 non-zero length, otherwise we risk SIGBUS for entire page. */
9395 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9396 if (fd2 < 0)
9397 return 4;
9398 cdata2 = "";
9399 if (write (fd2, cdata2, 1) != 1)
9400 return 5;
9401 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9402 if (data2 == MAP_FAILED)
9403 return 6;
9404 for (i = 0; i < pagesize; ++i)
9405 if (*(data2 + i))
9406 return 7;
9407 close (fd2);
9408 if (munmap (data2, pagesize))
9409 return 8;
9411 /* Next, try to mmap the file at a fixed address which already has
9412 something else allocated at it. If we can, also make sure that
9413 we see the same garbage. */
9414 fd = open ("conftest.mmap", O_RDWR);
9415 if (fd < 0)
9416 return 9;
9417 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9418 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9419 return 10;
9420 for (i = 0; i < pagesize; ++i)
9421 if (*(data + i) != *(data2 + i))
9422 return 11;
9424 /* Finally, make sure that changes to the mapped area do not
9425 percolate back to the file as seen by read(). (This is a bug on
9426 some variants of i386 svr4.0.) */
9427 for (i = 0; i < pagesize; ++i)
9428 *(data2 + i) = *(data2 + i) + 1;
9429 data3 = (char *) malloc (pagesize);
9430 if (!data3)
9431 return 12;
9432 if (read (fd, data3, pagesize) != pagesize)
9433 return 13;
9434 for (i = 0; i < pagesize; ++i)
9435 if (*(data + i) != *(data3 + i))
9436 return 14;
9437 close (fd);
9438 return 0;
9440 _ACEOF
9441 if ac_fn_c_try_run "$LINENO"; then :
9442 ac_cv_func_mmap_fixed_mapped=yes
9443 else
9444 ac_cv_func_mmap_fixed_mapped=no
9446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9447 conftest.$ac_objext conftest.beam conftest.$ac_ext
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9452 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9453 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9455 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9458 rm -f conftest.mmap conftest.txt
9460 if test $use_mmap_for_buffers = yes; then
9462 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9464 REL_ALLOC=no
9467 LIBS="$LIBS_SYSTEM $LIBS"
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9470 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9471 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 ac_check_lib_save_LIBS=$LIBS
9475 LIBS="-ldnet $LIBS"
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9482 #ifdef __cplusplus
9483 extern "C"
9484 #endif
9485 char dnet_ntoa ();
9487 main ()
9489 return dnet_ntoa ();
9491 return 0;
9493 _ACEOF
9494 if ac_fn_c_try_link "$LINENO"; then :
9495 ac_cv_lib_dnet_dnet_ntoa=yes
9496 else
9497 ac_cv_lib_dnet_dnet_ntoa=no
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9504 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9505 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9506 cat >>confdefs.h <<_ACEOF
9507 #define HAVE_LIBDNET 1
9508 _ACEOF
9510 LIBS="-ldnet $LIBS"
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9516 $as_echo_n "checking for main in -lXbsd... " >&6; }
9517 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 ac_check_lib_save_LIBS=$LIBS
9521 LIBS="-lXbsd $LIBS"
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9527 main ()
9529 return main ();
9531 return 0;
9533 _ACEOF
9534 if ac_fn_c_try_link "$LINENO"; then :
9535 ac_cv_lib_Xbsd_main=yes
9536 else
9537 ac_cv_lib_Xbsd_main=no
9539 rm -f core conftest.err conftest.$ac_objext \
9540 conftest$ac_exeext conftest.$ac_ext
9541 LIBS=$ac_check_lib_save_LIBS
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9544 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9545 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9546 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9551 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9552 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 ac_check_lib_save_LIBS=$LIBS
9556 LIBS="-lpthreads $LIBS"
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9560 /* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
9563 #ifdef __cplusplus
9564 extern "C"
9565 #endif
9566 char cma_open ();
9568 main ()
9570 return cma_open ();
9572 return 0;
9574 _ACEOF
9575 if ac_fn_c_try_link "$LINENO"; then :
9576 ac_cv_lib_pthreads_cma_open=yes
9577 else
9578 ac_cv_lib_pthreads_cma_open=no
9580 rm -f core conftest.err conftest.$ac_objext \
9581 conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9585 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9586 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9587 cat >>confdefs.h <<_ACEOF
9588 #define HAVE_LIBPTHREADS 1
9589 _ACEOF
9591 LIBS="-lpthreads $LIBS"
9596 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9597 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9598 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9599 ## added to LIBS in configure would never contain the pthreads part,
9600 ## but the value used in Makefiles might. FIXME?
9602 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9603 ## be harmless on older versions of X where it happens to exist.
9604 test "$opsys" = "aix4-2" && \
9605 test $ac_cv_lib_pthreads_cma_open = yes && \
9606 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9609 case ${host_os} in
9610 aix*)
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9612 $as_echo_n "checking for -bbigtoc option... " >&6; }
9613 if test "${gdb_cv_bigtoc+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9615 else
9617 case $GCC in
9618 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9619 *) gdb_cv_bigtoc=-bbigtoc ;;
9620 esac
9622 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h. */
9627 main ()
9629 int i;
9631 return 0;
9633 _ACEOF
9634 if ac_fn_c_try_link "$LINENO"; then :
9636 else
9637 gdb_cv_bigtoc=
9639 rm -f core conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9644 $as_echo "$gdb_cv_bigtoc" >&6; }
9646 esac
9648 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9649 # used for the tests that follow. We set them back to REAL_CFLAGS and
9650 # REAL_CPPFLAGS later on.
9652 REAL_CFLAGS="$CFLAGS"
9653 REAL_CPPFLAGS="$CPPFLAGS"
9655 if test "${HAVE_X11}" = "yes"; then
9656 DEFS="$C_SWITCH_X_SITE $DEFS"
9657 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9658 LIBS="-lX11 $LIBS"
9659 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9660 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9662 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9663 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9664 # but it's more convenient here to set LD_RUN_PATH
9665 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9666 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9667 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9668 export LD_RUN_PATH
9671 if test "${opsys}" = "gnu-linux"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9673 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9678 main ()
9680 XOpenDisplay ("foo");
9682 return 0;
9684 _ACEOF
9685 if ac_fn_c_try_link "$LINENO"; then :
9686 xlinux_first_failure=no
9687 else
9688 xlinux_first_failure=yes
9690 rm -f core conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692 if test "${xlinux_first_failure}" = "yes"; then
9693 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9694 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9695 OLD_CPPFLAGS="$CPPFLAGS"
9696 OLD_LIBS="$LIBS"
9697 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9698 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9699 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9700 LIBS="$LIBS -b i486-linuxaout"
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9705 main ()
9707 XOpenDisplay ("foo");
9709 return 0;
9711 _ACEOF
9712 if ac_fn_c_try_link "$LINENO"; then :
9713 xlinux_second_failure=no
9714 else
9715 xlinux_second_failure=yes
9717 rm -f core conftest.err conftest.$ac_objext \
9718 conftest$ac_exeext conftest.$ac_ext
9719 if test "${xlinux_second_failure}" = "yes"; then
9720 # If we get the same failure with -b, there is no use adding -b.
9721 # So take it out. This plays safe.
9722 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9723 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9724 CPPFLAGS="$OLD_CPPFLAGS"
9725 LIBS="$OLD_LIBS"
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727 $as_echo "no" >&6; }
9728 else
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9730 $as_echo "yes" >&6; }
9732 else
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9738 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9739 # header files included from there.
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9741 $as_echo_n "checking for Xkb... " >&6; }
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 #include <X11/Xlib.h>
9745 #include <X11/XKBlib.h>
9747 main ()
9749 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9751 return 0;
9753 _ACEOF
9754 if ac_fn_c_try_link "$LINENO"; then :
9755 emacs_xkb=yes
9756 else
9757 emacs_xkb=no
9759 rm -f core conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9762 $as_echo "$emacs_xkb" >&6; }
9763 if test $emacs_xkb = yes; then
9765 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9769 for ac_func in XrmSetDatabase XScreenResourceString \
9770 XScreenNumberOfScreen XSetWMProtocols
9771 do :
9772 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9773 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9774 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9775 cat >>confdefs.h <<_ACEOF
9776 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9777 _ACEOF
9780 done
9784 if test "${window_system}" = "x11"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9786 $as_echo_n "checking X11 version 6... " >&6; }
9787 if test "${emacs_cv_x11_version_6+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 #include <X11/Xlib.h>
9794 main ()
9796 #if XlibSpecificationRelease < 6
9797 fail;
9798 #endif
9801 return 0;
9803 _ACEOF
9804 if ac_fn_c_try_link "$LINENO"; then :
9805 emacs_cv_x11_version_6=yes
9806 else
9807 emacs_cv_x11_version_6=no
9809 rm -f core conftest.err conftest.$ac_objext \
9810 conftest$ac_exeext conftest.$ac_ext
9813 if test $emacs_cv_x11_version_6 = yes; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9815 $as_echo "6 or newer" >&6; }
9817 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9820 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9822 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9823 ## XIM support.
9824 case "$opsys" in
9825 sol2-*) : ;;
9827 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9830 esac
9831 else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9833 $as_echo "before 6" >&6; }
9838 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9839 HAVE_RSVG=no
9840 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9841 if test "${with_rsvg}" != "no"; then
9842 RSVG_REQUIRED=2.11.0
9843 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9846 succeeded=no
9848 # Extract the first word of "pkg-config", so it can be a program name with args.
9849 set dummy pkg-config; ac_word=$2
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9851 $as_echo_n "checking for $ac_word... " >&6; }
9852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9853 $as_echo_n "(cached) " >&6
9854 else
9855 case $PKG_CONFIG in
9856 [\\/]* | ?:[\\/]*)
9857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861 for as_dir in $PATH
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 break 2
9871 done
9872 done
9873 IFS=$as_save_IFS
9875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9877 esac
9879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9880 if test -n "$PKG_CONFIG"; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9882 $as_echo "$PKG_CONFIG" >&6; }
9883 else
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885 $as_echo "no" >&6; }
9890 if test "$PKG_CONFIG" = "no" ; then
9892 else
9893 PKG_CONFIG_MIN_VERSION=0.9.0
9894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9896 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9898 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9900 $as_echo "yes" >&6; }
9901 succeeded=yes
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9904 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9905 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9907 $as_echo "$RSVG_CFLAGS" >&6; }
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9910 $as_echo_n "checking RSVG_LIBS... " >&6; }
9911 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9913 $as_echo "$RSVG_LIBS" >&6; }
9914 else
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9917 RSVG_CFLAGS=""
9918 RSVG_LIBS=""
9919 ## If we have a custom action on failure, don't print errors, but
9920 ## do set a variable so people can do so.
9921 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9927 else
9928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9933 if test $succeeded = yes; then
9934 HAVE_RSVG=yes
9935 else
9942 if test $HAVE_RSVG = yes; then
9944 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9946 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9947 LIBS="$RSVG_LIBS $LIBS"
9952 HAVE_IMAGEMAGICK=no
9953 if test "${HAVE_X11}" = "yes"; then
9954 if test "${with_imagemagick}" != "no"; then
9955 IMAGEMAGICK_MODULE="Wand"
9957 succeeded=no
9959 # Extract the first word of "pkg-config", so it can be a program name with args.
9960 set dummy pkg-config; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 case $PKG_CONFIG in
9967 [\\/]* | ?:[\\/]*)
9968 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9974 IFS=$as_save_IFS
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 break 2
9982 done
9983 done
9984 IFS=$as_save_IFS
9986 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9988 esac
9990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9991 if test -n "$PKG_CONFIG"; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9993 $as_echo "$PKG_CONFIG" >&6; }
9994 else
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
10001 if test "$PKG_CONFIG" = "no" ; then
10003 else
10004 PKG_CONFIG_MIN_VERSION=0.9.0
10005 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10007 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10009 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10011 $as_echo "yes" >&6; }
10012 succeeded=yes
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10015 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10016 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10018 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10021 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10022 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10024 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10025 else
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10028 IMAGEMAGICK_CFLAGS=""
10029 IMAGEMAGICK_LIBS=""
10030 ## If we have a custom action on failure, don't print errors, but
10031 ## do set a variable so people can do so.
10032 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10038 else
10039 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10040 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10044 if test $succeeded = yes; then
10045 HAVE_IMAGEMAGICK=yes
10046 else
10053 if test $HAVE_IMAGEMAGICK = yes; then
10055 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10057 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10058 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10059 for ac_func in MagickExportImagePixels
10060 do :
10061 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10062 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10063 cat >>confdefs.h <<_ACEOF
10064 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10065 _ACEOF
10068 done
10075 HAVE_GTK=no
10076 if test "${with_gtk3}" = "yes"; then
10077 GLIB_REQUIRED=2.6
10078 GTK_REQUIRED=2.90
10079 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10082 succeeded=no
10084 # Extract the first word of "pkg-config", so it can be a program name with args.
10085 set dummy pkg-config; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 case $PKG_CONFIG in
10092 [\\/]* | ?:[\\/]*)
10093 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10107 done
10108 done
10109 IFS=$as_save_IFS
10111 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10113 esac
10115 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10116 if test -n "$PKG_CONFIG"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10118 $as_echo "$PKG_CONFIG" >&6; }
10119 else
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10126 if test "$PKG_CONFIG" = "no" ; then
10127 pkg_check_gtk=no
10128 else
10129 PKG_CONFIG_MIN_VERSION=0.9.0
10130 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10132 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10134 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10136 $as_echo "yes" >&6; }
10137 succeeded=yes
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10140 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10141 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10143 $as_echo "$GTK_CFLAGS" >&6; }
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10146 $as_echo_n "checking GTK_LIBS... " >&6; }
10147 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10149 $as_echo "$GTK_LIBS" >&6; }
10150 else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10153 GTK_CFLAGS=""
10154 GTK_LIBS=""
10155 ## If we have a custom action on failure, don't print errors, but
10156 ## do set a variable so people can do so.
10157 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10163 else
10164 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10165 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10169 if test $succeeded = yes; then
10170 pkg_check_gtk=yes
10171 else
10172 pkg_check_gtk=no
10175 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10176 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10180 if test "$pkg_check_gtk" != "yes"; then
10181 HAVE_GTK=no
10182 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10183 GLIB_REQUIRED=2.6
10184 GTK_REQUIRED=2.6
10185 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10188 succeeded=no
10190 # Extract the first word of "pkg-config", so it can be a program name with args.
10191 set dummy pkg-config; ac_word=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 case $PKG_CONFIG in
10198 [\\/]* | ?:[\\/]*)
10199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10203 for as_dir in $PATH
10205 IFS=$as_save_IFS
10206 test -z "$as_dir" && as_dir=.
10207 for ac_exec_ext in '' $ac_executable_extensions; do
10208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10209 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10211 break 2
10213 done
10214 done
10215 IFS=$as_save_IFS
10217 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10219 esac
10221 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10222 if test -n "$PKG_CONFIG"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10224 $as_echo "$PKG_CONFIG" >&6; }
10225 else
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10232 if test "$PKG_CONFIG" = "no" ; then
10233 pkg_check_gtk=no
10234 else
10235 PKG_CONFIG_MIN_VERSION=0.9.0
10236 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10238 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10240 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10242 $as_echo "yes" >&6; }
10243 succeeded=yes
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10246 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10247 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10249 $as_echo "$GTK_CFLAGS" >&6; }
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10252 $as_echo_n "checking GTK_LIBS... " >&6; }
10253 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10255 $as_echo "$GTK_LIBS" >&6; }
10256 else
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10259 GTK_CFLAGS=""
10260 GTK_LIBS=""
10261 ## If we have a custom action on failure, don't print errors, but
10262 ## do set a variable so people can do so.
10263 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10269 else
10270 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10271 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10275 if test $succeeded = yes; then
10276 pkg_check_gtk=yes
10277 else
10278 pkg_check_gtk=no
10281 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10282 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10287 GTK_OBJ=
10288 if test x"$pkg_check_gtk" = xyes; then
10292 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10293 CFLAGS="$CFLAGS $GTK_CFLAGS"
10294 LIBS="$GTK_LIBS $LIBS"
10295 GTK_COMPILES=no
10296 for ac_func in gtk_main
10297 do :
10298 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10299 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10300 cat >>confdefs.h <<_ACEOF
10301 #define HAVE_GTK_MAIN 1
10302 _ACEOF
10303 GTK_COMPILES=yes
10305 done
10307 if test "${GTK_COMPILES}" != "yes"; then
10308 if test "$USE_X_TOOLKIT" != "maybe"; then
10309 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5 ;
10311 else
10312 HAVE_GTK=yes
10314 $as_echo "#define USE_GTK 1" >>confdefs.h
10316 GTK_OBJ=gtkutil.o
10317 USE_X_TOOLKIT=none
10318 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10320 else
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10322 closing open displays. This is no problem if you just use
10323 one display, but if you use more than one and close one of them
10324 Emacs may crash." >&5
10325 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10326 closing open displays. This is no problem if you just use
10327 one display, but if you use more than one and close one of them
10328 Emacs may crash." >&2;}
10329 sleep 3
10337 if test "${HAVE_GTK}" = "yes"; then
10339 if test "$with_toolkit_scroll_bars" != no; then
10340 with_toolkit_scroll_bars=yes
10343 HAVE_GTK_FILE_SELECTION=no
10344 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10345 #include <gtk/gtk.h>
10347 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10348 HAVE_GTK_FILE_SELECTION=yes
10349 else
10350 HAVE_GTK_FILE_SELECTION=no
10353 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10354 for ac_func in gtk_file_selection_new
10355 do :
10356 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10357 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10358 cat >>confdefs.h <<_ACEOF
10359 #define HAVE_GTK_FILE_SELECTION_NEW 1
10360 _ACEOF
10363 done
10367 HAVE_GTK_AND_PTHREAD=no
10368 for ac_header in pthread.h
10369 do :
10370 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10371 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10372 cat >>confdefs.h <<_ACEOF
10373 #define HAVE_PTHREAD_H 1
10374 _ACEOF
10378 done
10380 if test "$ac_cv_header_pthread_h"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10382 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10383 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 ac_check_lib_save_LIBS=$LIBS
10387 LIBS="-lpthread $LIBS"
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10391 /* Override any GCC internal prototype to avoid an error.
10392 Use char because int might match the return type of a GCC
10393 builtin and then its argument prototype would still apply. */
10394 #ifdef __cplusplus
10395 extern "C"
10396 #endif
10397 char pthread_self ();
10399 main ()
10401 return pthread_self ();
10403 return 0;
10405 _ACEOF
10406 if ac_fn_c_try_link "$LINENO"; then :
10407 ac_cv_lib_pthread_pthread_self=yes
10408 else
10409 ac_cv_lib_pthread_pthread_self=no
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 LIBS=$ac_check_lib_save_LIBS
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10416 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10417 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10418 HAVE_GTK_AND_PTHREAD=yes
10422 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10423 case "${canonical}" in
10424 *-hpux*) ;;
10425 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10426 esac
10428 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10432 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10433 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10434 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10435 gtk_orientable_set_orientation
10436 do :
10437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10438 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10439 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10440 cat >>confdefs.h <<_ACEOF
10441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10442 _ACEOF
10445 done
10450 HAVE_DBUS=no
10451 DBUS_OBJ=
10452 if test "${with_dbus}" = "yes"; then
10454 succeeded=no
10456 # Extract the first word of "pkg-config", so it can be a program name with args.
10457 set dummy pkg-config; ac_word=$2
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459 $as_echo_n "checking for $ac_word... " >&6; }
10460 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10461 $as_echo_n "(cached) " >&6
10462 else
10463 case $PKG_CONFIG in
10464 [\\/]* | ?:[\\/]*)
10465 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $PATH
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10475 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 break 2
10479 done
10480 done
10481 IFS=$as_save_IFS
10483 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10485 esac
10487 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10488 if test -n "$PKG_CONFIG"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10490 $as_echo "$PKG_CONFIG" >&6; }
10491 else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10498 if test "$PKG_CONFIG" = "no" ; then
10499 HAVE_DBUS=no
10500 else
10501 PKG_CONFIG_MIN_VERSION=0.9.0
10502 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10504 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10506 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10508 $as_echo "yes" >&6; }
10509 succeeded=yes
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10512 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10513 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10515 $as_echo "$DBUS_CFLAGS" >&6; }
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10518 $as_echo_n "checking DBUS_LIBS... " >&6; }
10519 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10521 $as_echo "$DBUS_LIBS" >&6; }
10522 else
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524 $as_echo "no" >&6; }
10525 DBUS_CFLAGS=""
10526 DBUS_LIBS=""
10527 ## If we have a custom action on failure, don't print errors, but
10528 ## do set a variable so people can do so.
10529 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10535 else
10536 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10537 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10541 if test $succeeded = yes; then
10542 HAVE_DBUS=yes
10543 else
10544 HAVE_DBUS=no
10547 if test "$HAVE_DBUS" = yes; then
10548 LIBS="$LIBS $DBUS_LIBS"
10550 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10552 for ac_func in dbus_watch_get_unix_fd
10553 do :
10554 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10555 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10556 cat >>confdefs.h <<_ACEOF
10557 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10558 _ACEOF
10561 done
10563 DBUS_OBJ=dbusbind.o
10568 HAVE_GCONF=no
10569 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10571 succeeded=no
10573 # Extract the first word of "pkg-config", so it can be a program name with args.
10574 set dummy pkg-config; ac_word=$2
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576 $as_echo_n "checking for $ac_word... " >&6; }
10577 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10578 $as_echo_n "(cached) " >&6
10579 else
10580 case $PKG_CONFIG in
10581 [\\/]* | ?:[\\/]*)
10582 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10592 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10596 done
10597 done
10598 IFS=$as_save_IFS
10600 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10602 esac
10604 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10605 if test -n "$PKG_CONFIG"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10607 $as_echo "$PKG_CONFIG" >&6; }
10608 else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610 $as_echo "no" >&6; }
10615 if test "$PKG_CONFIG" = "no" ; then
10616 HAVE_GCONF=no
10617 else
10618 PKG_CONFIG_MIN_VERSION=0.9.0
10619 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10621 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10623 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10625 $as_echo "yes" >&6; }
10626 succeeded=yes
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10629 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10630 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10632 $as_echo "$GCONF_CFLAGS" >&6; }
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10635 $as_echo_n "checking GCONF_LIBS... " >&6; }
10636 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10638 $as_echo "$GCONF_LIBS" >&6; }
10639 else
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641 $as_echo "no" >&6; }
10642 GCONF_CFLAGS=""
10643 GCONF_LIBS=""
10644 ## If we have a custom action on failure, don't print errors, but
10645 ## do set a variable so people can do so.
10646 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10652 else
10653 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10654 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10658 if test $succeeded = yes; then
10659 HAVE_GCONF=yes
10660 else
10661 HAVE_GCONF=no
10664 if test "$HAVE_GCONF" = yes; then
10666 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10668 for ac_func in g_type_init
10669 do :
10670 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10671 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10672 cat >>confdefs.h <<_ACEOF
10673 #define HAVE_G_TYPE_INIT 1
10674 _ACEOF
10677 done
10682 HAVE_LIBSELINUX=no
10683 LIBSELINUX_LIBS=
10684 if test "${with_selinux}" = "yes"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10686 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10687 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10688 $as_echo_n "(cached) " >&6
10689 else
10690 ac_check_lib_save_LIBS=$LIBS
10691 LIBS="-lselinux $LIBS"
10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h. */
10695 /* Override any GCC internal prototype to avoid an error.
10696 Use char because int might match the return type of a GCC
10697 builtin and then its argument prototype would still apply. */
10698 #ifdef __cplusplus
10699 extern "C"
10700 #endif
10701 char lgetfilecon ();
10703 main ()
10705 return lgetfilecon ();
10707 return 0;
10709 _ACEOF
10710 if ac_fn_c_try_link "$LINENO"; then :
10711 ac_cv_lib_selinux_lgetfilecon=yes
10712 else
10713 ac_cv_lib_selinux_lgetfilecon=no
10715 rm -f core conftest.err conftest.$ac_objext \
10716 conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10720 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10721 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10722 HAVE_LIBSELINUX=yes
10723 else
10724 HAVE_LIBSELINUX=no
10727 if test "$HAVE_LIBSELINUX" = yes; then
10729 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10731 LIBSELINUX_LIBS=-lselinux
10736 HAVE_GNUTLS=no
10737 if test "${with_gnutls}" = "yes" ; then
10739 succeeded=no
10741 # Extract the first word of "pkg-config", so it can be a program name with args.
10742 set dummy pkg-config; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10747 else
10748 case $PKG_CONFIG in
10749 [\\/]* | ?:[\\/]*)
10750 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in $PATH
10756 IFS=$as_save_IFS
10757 test -z "$as_dir" && as_dir=.
10758 for ac_exec_ext in '' $ac_executable_extensions; do
10759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10760 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10762 break 2
10764 done
10765 done
10766 IFS=$as_save_IFS
10768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10770 esac
10772 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10773 if test -n "$PKG_CONFIG"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10775 $as_echo "$PKG_CONFIG" >&6; }
10776 else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10783 if test "$PKG_CONFIG" = "no" ; then
10784 HAVE_GNUTLS=no
10785 else
10786 PKG_CONFIG_MIN_VERSION=0.9.0
10787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10789 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10791 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10793 $as_echo "yes" >&6; }
10794 succeeded=yes
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10797 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10798 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10800 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10803 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10804 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10806 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10810 LIBGNUTLS_CFLAGS=""
10811 LIBGNUTLS_LIBS=""
10812 ## If we have a custom action on failure, don't print errors, but
10813 ## do set a variable so people can do so.
10814 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10820 else
10821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10826 if test $succeeded = yes; then
10827 HAVE_GNUTLS=yes
10828 else
10829 HAVE_GNUTLS=no
10832 if test "${HAVE_GNUTLS}" = "yes"; then
10834 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10841 HAVE_XAW3D=no
10842 LUCID_LIBW=
10843 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10844 if test "$with_xaw3d" != no; then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10846 $as_echo_n "checking for xaw3d... " >&6; }
10847 if test "${emacs_cv_xaw3d+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10849 else
10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10853 #include <X11/Intrinsic.h>
10854 #include <X11/Xaw3d/Simple.h>
10856 main ()
10860 return 0;
10862 _ACEOF
10863 if ac_fn_c_try_link "$LINENO"; then :
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10865 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10866 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-lXaw3d $LIBS"
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char XawScrollbarSetThumb ();
10882 main ()
10884 return XawScrollbarSetThumb ();
10886 return 0;
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10891 else
10892 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10894 rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10896 LIBS=$ac_check_lib_save_LIBS
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10899 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10900 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
10901 emacs_cv_xaw3d=yes
10902 else
10903 emacs_cv_xaw3d=no
10906 else
10907 emacs_cv_xaw3d=no
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10913 else
10914 emacs_cv_xaw3d=no
10916 if test $emacs_cv_xaw3d = yes; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10918 $as_echo "yes; using Lucid toolkit" >&6; }
10919 USE_X_TOOLKIT=LUCID
10920 HAVE_XAW3D=yes
10921 LUCID_LIBW=-lXaw3d
10923 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10929 $as_echo_n "checking for libXaw... " >&6; }
10930 if test "${emacs_cv_xaw+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10936 #include <X11/Intrinsic.h>
10937 #include <X11/Xaw/Simple.h>
10939 main ()
10943 return 0;
10945 _ACEOF
10946 if ac_fn_c_try_link "$LINENO"; then :
10947 emacs_cv_xaw=yes
10948 else
10949 emacs_cv_xaw=no
10951 rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10955 if test $emacs_cv_xaw = yes; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10957 $as_echo "yes; using Lucid toolkit" >&6; }
10958 USE_X_TOOLKIT=LUCID
10959 LUCID_LIBW=-lXaw
10960 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10961 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10964 $as_echo "no; do not use toolkit by default" >&6; }
10965 USE_X_TOOLKIT=none
10970 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10972 LIBXTR6=
10973 if test "${USE_X_TOOLKIT}" != "none"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10975 $as_echo_n "checking X11 toolkit version... " >&6; }
10976 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10981 #include <X11/Intrinsic.h>
10983 main ()
10985 #if XtSpecificationRelease < 6
10986 fail;
10987 #endif
10990 return 0;
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994 emacs_cv_x11_toolkit_version_6=yes
10995 else
10996 emacs_cv_x11_toolkit_version_6=no
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11002 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11003 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11005 $as_echo "6 or newer" >&6; }
11007 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11009 LIBXTR6="-lSM -lICE"
11010 case "$opsys" in
11011 ## Use libw.a along with X11R6 Xt.
11012 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11013 esac
11014 else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11016 $as_echo "before 6" >&6; }
11019 OLDLIBS="$LIBS"
11020 if test x$HAVE_X11XTR6 = xyes; then
11021 LIBS="-lXt -lSM -lICE $LIBS"
11022 else
11023 LIBS="-lXt $LIBS"
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11026 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11027 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-lXmu $LIBS"
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11035 /* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 char XmuConvertStandardSelection ();
11043 main ()
11045 return XmuConvertStandardSelection ();
11047 return 0;
11049 _ACEOF
11050 if ac_fn_c_try_link "$LINENO"; then :
11051 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11052 else
11053 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11055 rm -f core conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
11057 LIBS=$ac_check_lib_save_LIBS
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11060 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11061 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11062 cat >>confdefs.h <<_ACEOF
11063 #define HAVE_LIBXMU 1
11064 _ACEOF
11066 LIBS="-lXmu $LIBS"
11070 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11074 LIBXMU=-lXmu
11075 case $opsys in
11076 ## These systems don't supply Xmu.
11077 hpux* | aix4-2 )
11078 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11080 esac
11083 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11084 if test "${HAVE_X11}" = "yes"; then
11085 if test "${USE_X_TOOLKIT}" != "none"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11087 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11088 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 ac_check_lib_save_LIBS=$LIBS
11092 LIBS="-lXext $LIBS"
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11096 /* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11099 #ifdef __cplusplus
11100 extern "C"
11101 #endif
11102 char XShapeQueryExtension ();
11104 main ()
11106 return XShapeQueryExtension ();
11108 return 0;
11110 _ACEOF
11111 if ac_fn_c_try_link "$LINENO"; then :
11112 ac_cv_lib_Xext_XShapeQueryExtension=yes
11113 else
11114 ac_cv_lib_Xext_XShapeQueryExtension=no
11116 rm -f core conftest.err conftest.$ac_objext \
11117 conftest$ac_exeext conftest.$ac_ext
11118 LIBS=$ac_check_lib_save_LIBS
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11121 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11122 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11123 cat >>confdefs.h <<_ACEOF
11124 #define HAVE_LIBXEXT 1
11125 _ACEOF
11127 LIBS="-lXext $LIBS"
11134 LIBXP=
11135 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11137 $as_echo_n "checking for Motif version 2.1... " >&6; }
11138 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11143 #include <Xm/Xm.h>
11145 main ()
11147 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11148 int x = 5;
11149 #else
11150 Motif version prior to 2.1.
11151 #endif
11153 return 0;
11155 _ACEOF
11156 if ac_fn_c_try_compile "$LINENO"; then :
11157 emacs_cv_motif_version_2_1=yes
11158 else
11159 emacs_cv_motif_version_2_1=no
11161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11164 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11165 if test $emacs_cv_motif_version_2_1 = yes; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11167 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11168 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 ac_check_lib_save_LIBS=$LIBS
11172 LIBS="-lXp $LIBS"
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11176 /* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11179 #ifdef __cplusplus
11180 extern "C"
11181 #endif
11182 char XpCreateContext ();
11184 main ()
11186 return XpCreateContext ();
11188 return 0;
11190 _ACEOF
11191 if ac_fn_c_try_link "$LINENO"; then :
11192 ac_cv_lib_Xp_XpCreateContext=yes
11193 else
11194 ac_cv_lib_Xp_XpCreateContext=no
11196 rm -f core conftest.err conftest.$ac_objext \
11197 conftest$ac_exeext conftest.$ac_ext
11198 LIBS=$ac_check_lib_save_LIBS
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11201 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11202 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11203 LIBXP=-lXp
11206 else
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11208 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11209 if test "${emacs_cv_lesstif+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 # We put this in CFLAGS temporarily to precede other -I options
11213 # that might be in CFLAGS temporarily.
11214 # We put this in CPPFLAGS where it precedes the other -I options.
11215 OLD_CPPFLAGS=$CPPFLAGS
11216 OLD_CFLAGS=$CFLAGS
11217 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11218 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11221 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11223 main ()
11225 int x = 5;
11227 return 0;
11229 _ACEOF
11230 if ac_fn_c_try_compile "$LINENO"; then :
11231 emacs_cv_lesstif=yes
11232 else
11233 emacs_cv_lesstif=no
11235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11238 $as_echo "$emacs_cv_lesstif" >&6; }
11239 if test $emacs_cv_lesstif = yes; then
11240 # Make sure this -I option remains in CPPFLAGS after it is set
11241 # back to REAL_CPPFLAGS.
11242 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11243 # have those other -I options anyway. Ultimately, having this
11244 # directory ultimately in CPPFLAGS will be enough.
11245 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11246 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11247 else
11248 CFLAGS=$OLD_CFLAGS
11249 CPPFLAGS=$OLD_CPPFLAGS
11255 USE_TOOLKIT_SCROLL_BARS=no
11256 if test "${with_toolkit_scroll_bars}" != "no"; then
11257 if test "${USE_X_TOOLKIT}" != "none"; then
11258 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11259 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11261 HAVE_XAW3D=no
11262 USE_TOOLKIT_SCROLL_BARS=yes
11263 elif test "${HAVE_XAW3D}" = "yes"; then
11264 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11266 USE_TOOLKIT_SCROLL_BARS=yes
11268 elif test "${HAVE_GTK}" = "yes"; then
11269 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11271 USE_TOOLKIT_SCROLL_BARS=yes
11272 elif test "${HAVE_NS}" = "yes"; then
11273 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11275 USE_TOOLKIT_SCROLL_BARS=yes
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11282 #include <X11/Xlib.h>
11283 #include <X11/Xresource.h>
11285 main ()
11287 XIMProc callback;
11289 return 0;
11291 _ACEOF
11292 if ac_fn_c_try_compile "$LINENO"; then :
11293 HAVE_XIM=yes
11295 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11297 else
11298 HAVE_XIM=no
11300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303 if test "${with_xim}" != "no"; then
11305 $as_echo "#define USE_XIM 1" >>confdefs.h
11310 if test "${HAVE_XIM}" != "no"; then
11311 late_CFLAGS=$CFLAGS
11312 if test "$GCC" = yes; then
11313 CFLAGS="$CFLAGS --pedantic-errors"
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11318 #include <X11/Xlib.h>
11319 #include <X11/Xresource.h>
11321 main ()
11323 Display *display;
11324 XrmDatabase db;
11325 char *res_name;
11326 char *res_class;
11327 XIMProc callback;
11328 XPointer *client_data;
11329 #ifndef __GNUC__
11330 /* If we're not using GCC, it's probably not XFree86, and this is
11331 probably right, but we can't use something like --pedantic-errors. */
11332 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11333 char*, XIMProc, XPointer*);
11334 #endif
11335 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11336 client_data);
11338 return 0;
11340 _ACEOF
11341 if ac_fn_c_try_compile "$LINENO"; then :
11342 emacs_cv_arg6_star=yes
11344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11345 if test "$emacs_cv_arg6_star" = yes; then
11346 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11348 else
11349 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11352 CFLAGS=$late_CFLAGS
11355 ### Start of font-backend (under any platform) section.
11356 # (nothing here yet -- this is a placeholder)
11357 ### End of font-backend (under any platform) section.
11359 ### Start of font-backend (under X11) section.
11360 if test "${HAVE_X11}" = "yes"; then
11362 succeeded=no
11364 # Extract the first word of "pkg-config", so it can be a program name with args.
11365 set dummy pkg-config; ac_word=$2
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11367 $as_echo_n "checking for $ac_word... " >&6; }
11368 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11369 $as_echo_n "(cached) " >&6
11370 else
11371 case $PKG_CONFIG in
11372 [\\/]* | ?:[\\/]*)
11373 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11383 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 break 2
11387 done
11388 done
11389 IFS=$as_save_IFS
11391 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11393 esac
11395 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11396 if test -n "$PKG_CONFIG"; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11398 $as_echo "$PKG_CONFIG" >&6; }
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11406 if test "$PKG_CONFIG" = "no" ; then
11407 HAVE_FC=no
11408 else
11409 PKG_CONFIG_MIN_VERSION=0.9.0
11410 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11412 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11414 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11416 $as_echo "yes" >&6; }
11417 succeeded=yes
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11420 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11421 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11423 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11426 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11427 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11429 $as_echo "$FONTCONFIG_LIBS" >&6; }
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11433 FONTCONFIG_CFLAGS=""
11434 FONTCONFIG_LIBS=""
11435 ## If we have a custom action on failure, don't print errors, but
11436 ## do set a variable so people can do so.
11437 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11443 else
11444 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11445 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11449 if test $succeeded = yes; then
11450 HAVE_FC=yes
11451 else
11452 HAVE_FC=no
11456 ## Use -lXft if available, unless `--with-xft=no'.
11457 HAVE_XFT=maybe
11458 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11459 with_xft="no";
11461 if test "x${with_xft}" != "xno"; then
11464 succeeded=no
11466 # Extract the first word of "pkg-config", so it can be a program name with args.
11467 set dummy pkg-config; ac_word=$2
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469 $as_echo_n "checking for $ac_word... " >&6; }
11470 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 case $PKG_CONFIG in
11474 [\\/]* | ?:[\\/]*)
11475 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11485 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11489 done
11490 done
11491 IFS=$as_save_IFS
11493 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11495 esac
11497 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11498 if test -n "$PKG_CONFIG"; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11500 $as_echo "$PKG_CONFIG" >&6; }
11501 else
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11508 if test "$PKG_CONFIG" = "no" ; then
11509 HAVE_XFT=no
11510 else
11511 PKG_CONFIG_MIN_VERSION=0.9.0
11512 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11514 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11516 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518 $as_echo "yes" >&6; }
11519 succeeded=yes
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11522 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11523 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11525 $as_echo "$XFT_CFLAGS" >&6; }
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11528 $as_echo_n "checking XFT_LIBS... " >&6; }
11529 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11531 $as_echo "$XFT_LIBS" >&6; }
11532 else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11535 XFT_CFLAGS=""
11536 XFT_LIBS=""
11537 ## If we have a custom action on failure, don't print errors, but
11538 ## do set a variable so people can do so.
11539 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11545 else
11546 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11547 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11551 if test $succeeded = yes; then
11553 else
11554 HAVE_XFT=no
11557 ## Because xftfont.c uses XRenderQueryExtension, we also
11558 ## need to link to -lXrender.
11559 HAVE_XRENDER=no
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11561 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11562 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11563 $as_echo_n "(cached) " >&6
11564 else
11565 ac_check_lib_save_LIBS=$LIBS
11566 LIBS="-lXrender $LIBS"
11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568 /* end confdefs.h. */
11570 /* Override any GCC internal prototype to avoid an error.
11571 Use char because int might match the return type of a GCC
11572 builtin and then its argument prototype would still apply. */
11573 #ifdef __cplusplus
11574 extern "C"
11575 #endif
11576 char XRenderQueryExtension ();
11578 main ()
11580 return XRenderQueryExtension ();
11582 return 0;
11584 _ACEOF
11585 if ac_fn_c_try_link "$LINENO"; then :
11586 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11587 else
11588 ac_cv_lib_Xrender_XRenderQueryExtension=no
11590 rm -f core conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
11592 LIBS=$ac_check_lib_save_LIBS
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11595 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11596 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11597 HAVE_XRENDER=yes
11600 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11601 OLD_CPPFLAGS="$CPPFLAGS"
11602 OLD_CFLAGS="$CFLAGS"
11603 OLD_LIBS="$LIBS"
11604 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11605 CFLAGS="$CFLAGS $XFT_CFLAGS"
11606 XFT_LIBS="-lXrender $XFT_LIBS"
11607 LIBS="$XFT_LIBS $LIBS"
11608 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11609 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11611 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11612 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-lXft $XFT_LIBS $LIBS"
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char XftFontOpen ();
11628 main ()
11630 return XftFontOpen ();
11632 return 0;
11634 _ACEOF
11635 if ac_fn_c_try_link "$LINENO"; then :
11636 ac_cv_lib_Xft_XftFontOpen=yes
11637 else
11638 ac_cv_lib_Xft_XftFontOpen=no
11640 rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642 LIBS=$ac_check_lib_save_LIBS
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11645 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11646 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11647 HAVE_XFT=yes
11654 if test "${HAVE_XFT}" = "yes"; then
11656 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11659 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11660 else
11661 CPPFLAGS="$OLD_CPPFLAGS"
11662 CFLAGS="$OLD_CFLAGS"
11663 LIBS="$OLD_LIBS"
11664 fi # "${HAVE_XFT}" = "yes"
11665 fi # "$HAVE_XFT" != no
11666 fi # "x${with_xft}" != "xno"
11668 if test "$HAVE_XFT" != "yes"; then
11669 HAVE_XFT=no
11672 ## We used to allow building with FreeType and without Xft.
11673 ## However, the ftx font backend driver is not in good shape.
11674 HAVE_FREETYPE=$HAVE_XFT
11676 HAVE_LIBOTF=no
11677 if test "${HAVE_FREETYPE}" = "yes"; then
11679 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11681 if test "${with_libotf}" != "no"; then
11683 succeeded=no
11685 # Extract the first word of "pkg-config", so it can be a program name with args.
11686 set dummy pkg-config; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 case $PKG_CONFIG in
11693 [\\/]* | ?:[\\/]*)
11694 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11704 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11708 done
11709 done
11710 IFS=$as_save_IFS
11712 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11714 esac
11716 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11717 if test -n "$PKG_CONFIG"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11719 $as_echo "$PKG_CONFIG" >&6; }
11720 else
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11727 if test "$PKG_CONFIG" = "no" ; then
11728 HAVE_LIBOTF=no
11729 else
11730 PKG_CONFIG_MIN_VERSION=0.9.0
11731 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11733 $as_echo_n "checking for libotf... " >&6; }
11735 if $PKG_CONFIG --exists "libotf" 2>&5; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737 $as_echo "yes" >&6; }
11738 succeeded=yes
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11741 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11742 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11744 $as_echo "$LIBOTF_CFLAGS" >&6; }
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11747 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11748 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11750 $as_echo "$LIBOTF_LIBS" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11754 LIBOTF_CFLAGS=""
11755 LIBOTF_LIBS=""
11756 ## If we have a custom action on failure, don't print errors, but
11757 ## do set a variable so people can do so.
11758 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11764 else
11765 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11766 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11770 if test $succeeded = yes; then
11771 HAVE_LIBOTF=yes
11772 else
11773 HAVE_LIBOTF=no
11776 if test "$HAVE_LIBOTF" = "yes"; then
11778 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11781 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11782 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 ac_check_lib_save_LIBS=$LIBS
11786 LIBS="-lotf $LIBS"
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11790 /* Override any GCC internal prototype to avoid an error.
11791 Use char because int might match the return type of a GCC
11792 builtin and then its argument prototype would still apply. */
11793 #ifdef __cplusplus
11794 extern "C"
11795 #endif
11796 char OTF_get_variation_glyphs ();
11798 main ()
11800 return OTF_get_variation_glyphs ();
11802 return 0;
11804 _ACEOF
11805 if ac_fn_c_try_link "$LINENO"; then :
11806 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11807 else
11808 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11812 LIBS=$ac_check_lib_save_LIBS
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11815 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11816 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11817 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11818 else
11819 HAVE_OTF_GET_VARIATION_GLYPHS=no
11822 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11824 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11831 HAVE_M17N_FLT=no
11832 if test "${HAVE_LIBOTF}" = yes; then
11833 if test "${with_m17n_flt}" != "no"; then
11835 succeeded=no
11837 # Extract the first word of "pkg-config", so it can be a program name with args.
11838 set dummy pkg-config; ac_word=$2
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840 $as_echo_n "checking for $ac_word... " >&6; }
11841 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11842 $as_echo_n "(cached) " >&6
11843 else
11844 case $PKG_CONFIG in
11845 [\\/]* | ?:[\\/]*)
11846 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11852 IFS=$as_save_IFS
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11856 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 break 2
11860 done
11861 done
11862 IFS=$as_save_IFS
11864 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11866 esac
11868 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11869 if test -n "$PKG_CONFIG"; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11871 $as_echo "$PKG_CONFIG" >&6; }
11872 else
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11879 if test "$PKG_CONFIG" = "no" ; then
11880 HAVE_M17N_FLT=no
11881 else
11882 PKG_CONFIG_MIN_VERSION=0.9.0
11883 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11885 $as_echo_n "checking for m17n-flt... " >&6; }
11887 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889 $as_echo "yes" >&6; }
11890 succeeded=yes
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11893 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11894 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11896 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11899 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11900 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11902 $as_echo "$M17N_FLT_LIBS" >&6; }
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 M17N_FLT_CFLAGS=""
11907 M17N_FLT_LIBS=""
11908 ## If we have a custom action on failure, don't print errors, but
11909 ## do set a variable so people can do so.
11910 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11916 else
11917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11922 if test $succeeded = yes; then
11923 HAVE_M17N_FLT=yes
11924 else
11925 HAVE_M17N_FLT=no
11928 if test "$HAVE_M17N_FLT" = "yes"; then
11930 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11935 else
11936 HAVE_XFT=no
11937 HAVE_FREETYPE=no
11938 HAVE_LIBOTF=no
11939 HAVE_M17N_FLT=no
11942 ### End of font-backend (under X11) section.
11953 ### Use -lXpm if available, unless `--with-xpm=no'.
11954 HAVE_XPM=no
11955 LIBXPM=
11956 if test "${HAVE_X11}" = "yes"; then
11957 if test "${with_xpm}" != "no"; then
11958 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11959 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11961 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11962 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 ac_check_lib_save_LIBS=$LIBS
11966 LIBS="-lXpm -lX11 $LIBS"
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 char XpmReadFileToPixmap ();
11978 main ()
11980 return XpmReadFileToPixmap ();
11982 return 0;
11984 _ACEOF
11985 if ac_fn_c_try_link "$LINENO"; then :
11986 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11987 else
11988 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11990 rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992 LIBS=$ac_check_lib_save_LIBS
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11995 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11996 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
11997 HAVE_XPM=yes
12003 if test "${HAVE_XPM}" = "yes"; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12005 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12008 #include "X11/xpm.h"
12009 #ifndef XpmReturnAllocPixels
12010 no_return_alloc_pixels
12011 #endif
12013 _ACEOF
12014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12015 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12016 HAVE_XPM=no
12017 else
12018 HAVE_XPM=yes
12020 rm -f conftest*
12023 if test "${HAVE_XPM}" = "yes"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025 $as_echo "yes" >&6; }
12026 else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12033 if test "${HAVE_XPM}" = "yes"; then
12035 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12037 LIBXPM=-lXpm
12042 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12043 HAVE_JPEG=no
12044 LIBJPEG=
12045 if test "${HAVE_X11}" = "yes"; then
12046 if test "${with_jpeg}" != "no"; then
12047 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12048 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12050 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12051 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 ac_check_lib_save_LIBS=$LIBS
12055 LIBS="-ljpeg $LIBS"
12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char jpeg_destroy_compress ();
12067 main ()
12069 return jpeg_destroy_compress ();
12071 return 0;
12073 _ACEOF
12074 if ac_fn_c_try_link "$LINENO"; then :
12075 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12076 else
12077 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12079 rm -f core conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
12081 LIBS=$ac_check_lib_save_LIBS
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12084 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12085 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12086 HAVE_JPEG=yes
12094 if test "${HAVE_JPEG}" = "yes"; then
12095 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #include <jpeglib.h>
12100 version=JPEG_LIB_VERSION
12102 _ACEOF
12103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12104 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12105 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12107 else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12109 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12110 HAVE_JPEG=no
12112 rm -f conftest*
12115 if test "${HAVE_JPEG}" = "yes"; then
12116 LIBJPEG=-ljpeg
12121 ### Use -lpng if available, unless `--with-png=no'.
12122 HAVE_PNG=no
12123 LIBPNG=
12124 if test "${HAVE_X11}" = "yes"; then
12125 if test "${with_png}" != "no"; then
12126 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12127 # in /usr/include/libpng.
12128 for ac_header in png.h libpng/png.h
12129 do :
12130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12131 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12132 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12133 cat >>confdefs.h <<_ACEOF
12134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12135 _ACEOF
12139 done
12141 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12143 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12144 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 ac_check_lib_save_LIBS=$LIBS
12148 LIBS="-lpng -lz -lm $LIBS"
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12152 /* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 char png_get_channels ();
12160 main ()
12162 return png_get_channels ();
12164 return 0;
12166 _ACEOF
12167 if ac_fn_c_try_link "$LINENO"; then :
12168 ac_cv_lib_png_png_get_channels=yes
12169 else
12170 ac_cv_lib_png_png_get_channels=no
12172 rm -f core conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext conftest.$ac_ext
12174 LIBS=$ac_check_lib_save_LIBS
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12177 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12178 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12179 HAVE_PNG=yes
12185 if test "${HAVE_PNG}" = "yes"; then
12187 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12189 LIBPNG="-lpng -lz -lm"
12194 ### Use -ltiff if available, unless `--with-tiff=no'.
12195 HAVE_TIFF=no
12196 LIBTIFF=
12197 if test "${HAVE_X11}" = "yes"; then
12198 if test "${with_tiff}" != "no"; then
12199 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12200 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12201 tifflibs="-lz -lm"
12202 # At least one tiff package requires the jpeg library.
12203 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12205 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12206 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 ac_check_lib_save_LIBS=$LIBS
12210 LIBS="-ltiff $tifflibs $LIBS"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char TIFFGetVersion ();
12222 main ()
12224 return TIFFGetVersion ();
12226 return 0;
12228 _ACEOF
12229 if ac_fn_c_try_link "$LINENO"; then :
12230 ac_cv_lib_tiff_TIFFGetVersion=yes
12231 else
12232 ac_cv_lib_tiff_TIFFGetVersion=no
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12239 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12240 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12241 HAVE_TIFF=yes
12249 if test "${HAVE_TIFF}" = "yes"; then
12251 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12253 LIBTIFF=-ltiff
12258 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12259 HAVE_GIF=no
12260 LIBGIF=
12261 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12262 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12263 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12264 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12265 # Earlier versions can crash Emacs.
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12267 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12268 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 ac_check_lib_save_LIBS=$LIBS
12272 LIBS="-lgif $LIBS"
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char EGifPutExtensionLast ();
12284 main ()
12286 return EGifPutExtensionLast ();
12288 return 0;
12290 _ACEOF
12291 if ac_fn_c_try_link "$LINENO"; then :
12292 ac_cv_lib_gif_EGifPutExtensionLast=yes
12293 else
12294 ac_cv_lib_gif_EGifPutExtensionLast=no
12296 rm -f core conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
12298 LIBS=$ac_check_lib_save_LIBS
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12301 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12302 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12303 HAVE_GIF=yes
12304 else
12305 HAVE_GIF=maybe
12312 if test "$HAVE_GIF" = yes; then
12313 LIBGIF=-lgif
12314 elif test "$HAVE_GIF" = maybe; then
12315 # If gif_lib.h but no libgif, try libungif.
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12317 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12318 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 ac_check_lib_save_LIBS=$LIBS
12322 LIBS="-lungif $LIBS"
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12326 /* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply. */
12329 #ifdef __cplusplus
12330 extern "C"
12331 #endif
12332 char EGifPutExtensionLast ();
12334 main ()
12336 return EGifPutExtensionLast ();
12338 return 0;
12340 _ACEOF
12341 if ac_fn_c_try_link "$LINENO"; then :
12342 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12343 else
12344 ac_cv_lib_ungif_EGifPutExtensionLast=no
12346 rm -f core conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12351 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12352 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12353 HAVE_GIF=yes
12354 else
12355 HAVE_GIF=no
12358 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12361 if test "${HAVE_GIF}" = "yes"; then
12363 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12369 if test "${HAVE_X11}" = "yes"; then
12370 MISSING=""
12371 WITH_NO=""
12372 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12373 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12374 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12375 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12376 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12377 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12378 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12379 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12380 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12381 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12383 if test "X${MISSING}" != X; then
12384 as_fn_error $? "The following required libraries were not found:
12385 $MISSING
12386 Maybe some development libraries/packages are missing?
12387 If you don't want to link with them give
12388 $WITH_NO
12389 as options to configure" "$LINENO" 5
12393 ### Use -lgpm if available, unless `--with-gpm=no'.
12394 HAVE_GPM=no
12395 LIBGPM=
12396 MOUSE_SUPPORT=
12397 if test "${with_gpm}" != "no"; then
12398 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12399 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12401 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12402 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-lgpm $LIBS"
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char Gpm_Open ();
12418 main ()
12420 return Gpm_Open ();
12422 return 0;
12424 _ACEOF
12425 if ac_fn_c_try_link "$LINENO"; then :
12426 ac_cv_lib_gpm_Gpm_Open=yes
12427 else
12428 ac_cv_lib_gpm_Gpm_Open=no
12430 rm -f core conftest.err conftest.$ac_objext \
12431 conftest$ac_exeext conftest.$ac_ext
12432 LIBS=$ac_check_lib_save_LIBS
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12435 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12436 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12437 HAVE_GPM=yes
12444 if test "${HAVE_GPM}" = "yes"; then
12446 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12448 LIBGPM=-lgpm
12449 ## May be reset below.
12450 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12455 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12456 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12458 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12464 C_SWITCH_X_SYSTEM=
12465 ### Use NeXTstep API to implement GUI.
12466 if test "${HAVE_NS}" = "yes"; then
12468 $as_echo "#define HAVE_NS 1" >>confdefs.h
12470 if test "${NS_IMPL_COCOA}" = "yes"; then
12472 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12474 GNU_OBJC_CFLAGS=
12476 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12478 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12480 # See also .m.o rule in Makefile.in */
12481 # FIXME: are all these flags really needed? Document here why. */
12482 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12483 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12485 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12487 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12490 # We also have mouse menus.
12491 HAVE_MENUS=yes
12492 OTHER_FILES=ns-app
12496 ### Use session management (-lSM -lICE) if available
12497 HAVE_X_SM=no
12498 LIBXSM=
12499 if test "${HAVE_X11}" = "yes"; then
12500 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12501 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12503 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12504 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 ac_check_lib_save_LIBS=$LIBS
12508 LIBS="-lSM -lICE $LIBS"
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12512 /* Override any GCC internal prototype to avoid an error.
12513 Use char because int might match the return type of a GCC
12514 builtin and then its argument prototype would still apply. */
12515 #ifdef __cplusplus
12516 extern "C"
12517 #endif
12518 char SmcOpenConnection ();
12520 main ()
12522 return SmcOpenConnection ();
12524 return 0;
12526 _ACEOF
12527 if ac_fn_c_try_link "$LINENO"; then :
12528 ac_cv_lib_SM_SmcOpenConnection=yes
12529 else
12530 ac_cv_lib_SM_SmcOpenConnection=no
12532 rm -f core conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
12534 LIBS=$ac_check_lib_save_LIBS
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12537 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12538 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12539 HAVE_X_SM=yes
12546 if test "${HAVE_X_SM}" = "yes"; then
12548 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12550 LIBXSM="-lSM -lICE"
12551 case "$LIBS" in
12552 *-lSM*) ;;
12553 *) LIBS="$LIBXSM $LIBS" ;;
12554 esac
12559 ### Use libxml (-lxml2) if available
12560 if test "${with_xml2}" != "no"; then
12561 ### I'm not sure what the version number should be, so I just guessed.
12563 succeeded=no
12565 # Extract the first word of "pkg-config", so it can be a program name with args.
12566 set dummy pkg-config; ac_word=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12572 case $PKG_CONFIG in
12573 [\\/]* | ?:[\\/]*)
12574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12588 done
12589 done
12590 IFS=$as_save_IFS
12592 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12594 esac
12596 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12597 if test -n "$PKG_CONFIG"; then
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12599 $as_echo "$PKG_CONFIG" >&6; }
12600 else
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602 $as_echo "no" >&6; }
12607 if test "$PKG_CONFIG" = "no" ; then
12608 HAVE_LIBXML2=no
12609 else
12610 PKG_CONFIG_MIN_VERSION=0.9.0
12611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12613 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12615 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12618 succeeded=yes
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12621 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12622 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12624 $as_echo "$LIBXML2_CFLAGS" >&6; }
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12627 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12628 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12630 $as_echo "$LIBXML2_LIBS" >&6; }
12631 else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
12634 LIBXML2_CFLAGS=""
12635 LIBXML2_LIBS=""
12636 ## If we have a custom action on failure, don't print errors, but
12637 ## do set a variable so people can do so.
12638 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12644 else
12645 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12646 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12650 if test $succeeded = yes; then
12651 HAVE_LIBXML2=yes
12652 else
12653 HAVE_LIBXML2=no
12656 if test "${HAVE_LIBXML2}" = "yes"; then
12657 LIBS="$LIBXML2_LIBS $LIBS"
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12659 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12660 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 ac_check_lib_save_LIBS=$LIBS
12664 LIBS="-lxml2 $LIBS"
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12668 /* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
12671 #ifdef __cplusplus
12672 extern "C"
12673 #endif
12674 char htmlReadMemory ();
12676 main ()
12678 return htmlReadMemory ();
12680 return 0;
12682 _ACEOF
12683 if ac_fn_c_try_link "$LINENO"; then :
12684 ac_cv_lib_xml2_htmlReadMemory=yes
12685 else
12686 ac_cv_lib_xml2_htmlReadMemory=no
12688 rm -f core conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
12690 LIBS=$ac_check_lib_save_LIBS
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12693 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12694 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12695 HAVE_LIBXML2=yes
12696 else
12697 HAVE_LIBXML2=no
12700 if test "${HAVE_LIBXML2}" = "yes"; then
12702 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12704 else
12705 LIBXML2_LIBS=""
12706 LIBXML2_CFLAGS=""
12713 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12715 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12716 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721 #include <netdb.h>
12723 main ()
12725 return h_errno;
12727 return 0;
12729 _ACEOF
12730 if ac_fn_c_try_link "$LINENO"; then :
12731 emacs_cv_netdb_declares_h_errno=yes
12732 else
12733 emacs_cv_netdb_declares_h_errno=no
12735 rm -f core conftest.err conftest.$ac_objext \
12736 conftest$ac_exeext conftest.$ac_ext
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12739 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12740 if test $emacs_cv_netdb_declares_h_errno = yes; then
12742 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12746 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12747 # for constant arguments. Useless!
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12749 $as_echo_n "checking for working alloca.h... " >&6; }
12750 if test "${ac_cv_working_alloca_h+set}" = set; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755 #include <alloca.h>
12757 main ()
12759 char *p = (char *) alloca (2 * sizeof (int));
12760 if (p) return 0;
12762 return 0;
12764 _ACEOF
12765 if ac_fn_c_try_link "$LINENO"; then :
12766 ac_cv_working_alloca_h=yes
12767 else
12768 ac_cv_working_alloca_h=no
12770 rm -f core conftest.err conftest.$ac_objext \
12771 conftest$ac_exeext conftest.$ac_ext
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12774 $as_echo "$ac_cv_working_alloca_h" >&6; }
12775 if test $ac_cv_working_alloca_h = yes; then
12777 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12782 $as_echo_n "checking for alloca... " >&6; }
12783 if test "${ac_cv_func_alloca_works+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12788 #ifdef __GNUC__
12789 # define alloca __builtin_alloca
12790 #else
12791 # ifdef _MSC_VER
12792 # include <malloc.h>
12793 # define alloca _alloca
12794 # else
12795 # ifdef HAVE_ALLOCA_H
12796 # include <alloca.h>
12797 # else
12798 # ifdef _AIX
12799 #pragma alloca
12800 # else
12801 # ifndef alloca /* predefined by HP cc +Olibcalls */
12802 char *alloca ();
12803 # endif
12804 # endif
12805 # endif
12806 # endif
12807 #endif
12810 main ()
12812 char *p = (char *) alloca (1);
12813 if (p) return 0;
12815 return 0;
12817 _ACEOF
12818 if ac_fn_c_try_link "$LINENO"; then :
12819 ac_cv_func_alloca_works=yes
12820 else
12821 ac_cv_func_alloca_works=no
12823 rm -f core conftest.err conftest.$ac_objext \
12824 conftest$ac_exeext conftest.$ac_ext
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12827 $as_echo "$ac_cv_func_alloca_works" >&6; }
12829 if test $ac_cv_func_alloca_works = yes; then
12831 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12833 else
12834 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12835 # that cause trouble. Some versions do not even contain alloca or
12836 # contain a buggy version. If you still want to use their alloca,
12837 # use ar to extract alloca.o from them instead of compiling alloca.c.
12839 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12841 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12845 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12846 if test "${ac_cv_os_cray+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 #if defined CRAY && ! defined CRAY2
12852 webecray
12853 #else
12854 wenotbecray
12855 #endif
12857 _ACEOF
12858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12859 $EGREP "webecray" >/dev/null 2>&1; then :
12860 ac_cv_os_cray=yes
12861 else
12862 ac_cv_os_cray=no
12864 rm -f conftest*
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12868 $as_echo "$ac_cv_os_cray" >&6; }
12869 if test $ac_cv_os_cray = yes; then
12870 for ac_func in _getb67 GETB67 getb67; do
12871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12873 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12875 cat >>confdefs.h <<_ACEOF
12876 #define CRAY_STACKSEG_END $ac_func
12877 _ACEOF
12879 break
12882 done
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12886 $as_echo_n "checking stack direction for C alloca... " >&6; }
12887 if test "${ac_cv_c_stack_direction+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 if test "$cross_compiling" = yes; then :
12891 ac_cv_c_stack_direction=0
12892 else
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12895 $ac_includes_default
12897 find_stack_direction ()
12899 static char *addr = 0;
12900 auto char dummy;
12901 if (addr == 0)
12903 addr = &dummy;
12904 return find_stack_direction ();
12906 else
12907 return (&dummy > addr) ? 1 : -1;
12911 main ()
12913 return find_stack_direction () < 0;
12915 _ACEOF
12916 if ac_fn_c_try_run "$LINENO"; then :
12917 ac_cv_c_stack_direction=1
12918 else
12919 ac_cv_c_stack_direction=-1
12921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12922 conftest.$ac_objext conftest.beam conftest.$ac_ext
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12927 $as_echo "$ac_cv_c_stack_direction" >&6; }
12928 cat >>confdefs.h <<_ACEOF
12929 #define STACK_DIRECTION $ac_cv_c_stack_direction
12930 _ACEOF
12936 if test x"$ac_cv_func_alloca_works" != xyes; then
12937 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12940 # fmod, logb, and frexp are found in -lm on most systems.
12941 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12943 $as_echo_n "checking for sqrt in -lm... " >&6; }
12944 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 ac_check_lib_save_LIBS=$LIBS
12948 LIBS="-lm $LIBS"
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12952 /* Override any GCC internal prototype to avoid an error.
12953 Use char because int might match the return type of a GCC
12954 builtin and then its argument prototype would still apply. */
12955 #ifdef __cplusplus
12956 extern "C"
12957 #endif
12958 char sqrt ();
12960 main ()
12962 return sqrt ();
12964 return 0;
12966 _ACEOF
12967 if ac_fn_c_try_link "$LINENO"; then :
12968 ac_cv_lib_m_sqrt=yes
12969 else
12970 ac_cv_lib_m_sqrt=no
12972 rm -f core conftest.err conftest.$ac_objext \
12973 conftest$ac_exeext conftest.$ac_ext
12974 LIBS=$ac_check_lib_save_LIBS
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12977 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12978 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12979 cat >>confdefs.h <<_ACEOF
12980 #define HAVE_LIBM 1
12981 _ACEOF
12983 LIBS="-lm $LIBS"
12988 # Check for mail-locking functions in a "mail" library. Probably this should
12989 # have the same check as for liblockfile below.
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12991 $as_echo_n "checking for maillock in -lmail... " >&6; }
12992 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12993 $as_echo_n "(cached) " >&6
12994 else
12995 ac_check_lib_save_LIBS=$LIBS
12996 LIBS="-lmail $LIBS"
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
13000 /* Override any GCC internal prototype to avoid an error.
13001 Use char because int might match the return type of a GCC
13002 builtin and then its argument prototype would still apply. */
13003 #ifdef __cplusplus
13004 extern "C"
13005 #endif
13006 char maillock ();
13008 main ()
13010 return maillock ();
13012 return 0;
13014 _ACEOF
13015 if ac_fn_c_try_link "$LINENO"; then :
13016 ac_cv_lib_mail_maillock=yes
13017 else
13018 ac_cv_lib_mail_maillock=no
13020 rm -f core conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13022 LIBS=$ac_check_lib_save_LIBS
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13025 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13026 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13027 have_mail=yes
13028 else
13029 have_mail=no
13032 if test $have_mail = yes; then
13033 LIBS_MAIL=-lmail
13034 LIBS="$LIBS_MAIL $LIBS"
13036 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13038 else
13039 LIBS_MAIL=
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13042 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13043 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 ac_check_lib_save_LIBS=$LIBS
13047 LIBS="-llockfile $LIBS"
13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13051 /* Override any GCC internal prototype to avoid an error.
13052 Use char because int might match the return type of a GCC
13053 builtin and then its argument prototype would still apply. */
13054 #ifdef __cplusplus
13055 extern "C"
13056 #endif
13057 char maillock ();
13059 main ()
13061 return maillock ();
13063 return 0;
13065 _ACEOF
13066 if ac_fn_c_try_link "$LINENO"; then :
13067 ac_cv_lib_lockfile_maillock=yes
13068 else
13069 ac_cv_lib_lockfile_maillock=no
13071 rm -f core conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13073 LIBS=$ac_check_lib_save_LIBS
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13076 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13077 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13078 have_lockfile=yes
13079 else
13080 have_lockfile=no
13083 if test $have_lockfile = yes; then
13084 LIBS_MAIL=-llockfile
13085 LIBS="$LIBS_MAIL $LIBS"
13087 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13089 else
13090 # If we have the shared liblockfile, assume we must use it for mail
13091 # locking (e.g. Debian). If we couldn't link against liblockfile
13092 # (no liblockfile.a installed), ensure that we don't need to.
13093 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13094 set dummy liblockfile.so; ac_word=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096 $as_echo_n "checking for $ac_word... " >&6; }
13097 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 if test -n "$liblockfile"; then
13101 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13102 else
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13105 for as_dir in $as_dummy
13107 IFS=$as_save_IFS
13108 test -z "$as_dir" && as_dir=.
13109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13111 ac_cv_prog_liblockfile="yes"
13112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13113 break 2
13115 done
13116 done
13117 IFS=$as_save_IFS
13119 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13122 liblockfile=$ac_cv_prog_liblockfile
13123 if test -n "$liblockfile"; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13125 $as_echo "$liblockfile" >&6; }
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13132 if test $ac_cv_prog_liblockfile = yes; then
13133 as_fn_error $? "Shared liblockfile found but can't link against it.
13134 This probably means that movemail could lose mail.
13135 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13138 for ac_func in touchlock
13139 do :
13140 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13141 if test "x$ac_cv_func_touchlock" = x""yes; then :
13142 cat >>confdefs.h <<_ACEOF
13143 #define HAVE_TOUCHLOCK 1
13144 _ACEOF
13147 done
13149 for ac_header in maillock.h
13150 do :
13151 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13152 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13153 cat >>confdefs.h <<_ACEOF
13154 #define HAVE_MAILLOCK_H 1
13155 _ACEOF
13159 done
13163 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13164 ## interlock access to the mail spool. The alternative is a lock file named
13165 ## /usr/spool/mail/$USER.lock.
13166 mail_lock=no
13167 case "$opsys" in
13168 aix4-2) mail_lock="lockf" ;;
13170 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13172 ## On GNU/Linux systems, both methods are used by various mail programs.
13173 ## I assume most people are using newer mailers that have heard of flock.
13174 ## Change this if you need to.
13175 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13176 ## configure gets the right answers, and that means *NOT* using flock.
13177 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13178 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13179 ## Debian maintainer hasn't provided a clean fix for Emacs.
13180 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13181 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13182 ## correct logic. -- fx
13183 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13184 ## liblockfile is a Free Software replacement for libmail, used on
13185 ## Debian systems and elsewhere. -rfr.
13186 gnu-*)
13187 mail_lock="flock"
13188 if test $have_mail = yes || test $have_lockfile = yes; then
13189 test $ac_cv_header_maillock_h = yes && mail_lock=no
13192 esac
13194 BLESSMAIL_TARGET=
13195 case "$mail_lock" in
13196 flock)
13197 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13200 lockf)
13201 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13204 *) BLESSMAIL_TARGET="need-blessmail" ;;
13205 esac
13209 for ac_func in gethostname getdomainname dup2 \
13210 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13211 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13212 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13213 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13214 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13215 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13216 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13217 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13218 cfmakeraw cfsetspeed isnan copysign __executable_start
13219 do :
13220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13221 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13222 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13223 cat >>confdefs.h <<_ACEOF
13224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13225 _ACEOF
13228 done
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13232 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13233 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13235 else
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13240 main ()
13242 __builtin_unwind_init ();
13244 return 0;
13246 _ACEOF
13247 if ac_fn_c_try_link "$LINENO"; then :
13248 emacs_cv_func___builtin_unwind_init=yes
13249 else
13250 emacs_cv_func___builtin_unwind_init=no
13252 rm -f core conftest.err conftest.$ac_objext \
13253 conftest$ac_exeext conftest.$ac_ext
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13256 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13257 if test $emacs_cv_func___builtin_unwind_init = yes; then
13259 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13263 for ac_header in sys/un.h
13264 do :
13265 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13266 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13267 cat >>confdefs.h <<_ACEOF
13268 #define HAVE_SYS_UN_H 1
13269 _ACEOF
13273 done
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13277 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13278 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 while :; do
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13284 #include <sys/types.h> /* for off_t */
13285 #include <stdio.h>
13287 main ()
13289 int (*fp) (FILE *, off_t, int) = fseeko;
13290 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13292 return 0;
13294 _ACEOF
13295 if ac_fn_c_try_link "$LINENO"; then :
13296 ac_cv_sys_largefile_source=no; break
13298 rm -f core conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext conftest.$ac_ext
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302 #define _LARGEFILE_SOURCE 1
13303 #include <sys/types.h> /* for off_t */
13304 #include <stdio.h>
13306 main ()
13308 int (*fp) (FILE *, off_t, int) = fseeko;
13309 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13311 return 0;
13313 _ACEOF
13314 if ac_fn_c_try_link "$LINENO"; then :
13315 ac_cv_sys_largefile_source=1; break
13317 rm -f core conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13319 ac_cv_sys_largefile_source=unknown
13320 break
13321 done
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13324 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13325 case $ac_cv_sys_largefile_source in #(
13326 no | unknown) ;;
13328 cat >>confdefs.h <<_ACEOF
13329 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13330 _ACEOF
13332 esac
13333 rm -rf conftest*
13335 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13336 # in glibc 2.1.3, but that breaks too many other things.
13337 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13338 if test $ac_cv_sys_largefile_source != unknown; then
13340 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13346 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13347 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13350 # Use it with a single arg.
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353 $ac_includes_default
13355 main ()
13357 getpgrp (0);
13359 return 0;
13361 _ACEOF
13362 if ac_fn_c_try_compile "$LINENO"; then :
13363 ac_cv_func_getpgrp_void=no
13364 else
13365 ac_cv_func_getpgrp_void=yes
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13371 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13372 if test $ac_cv_func_getpgrp_void = yes; then
13374 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13379 # Configure gnulib.
13390 LIBC_FATAL_STDERR_=1
13391 export LIBC_FATAL_STDERR_
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13395 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13396 if test "${ac_cv_c_bigendian+set}" = set; then :
13397 $as_echo_n "(cached) " >&6
13398 else
13399 ac_cv_c_bigendian=unknown
13400 # See if we're dealing with a universal compiler.
13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13403 #ifndef __APPLE_CC__
13404 not a universal capable compiler
13405 #endif
13406 typedef int dummy;
13408 _ACEOF
13409 if ac_fn_c_try_compile "$LINENO"; then :
13411 # Check for potential -arch flags. It is not universal unless
13412 # there are at least two -arch flags with different values.
13413 ac_arch=
13414 ac_prev=
13415 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13416 if test -n "$ac_prev"; then
13417 case $ac_word in
13418 i?86 | x86_64 | ppc | ppc64)
13419 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13420 ac_arch=$ac_word
13421 else
13422 ac_cv_c_bigendian=universal
13423 break
13426 esac
13427 ac_prev=
13428 elif test "x$ac_word" = "x-arch"; then
13429 ac_prev=arch
13431 done
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 if test $ac_cv_c_bigendian = unknown; then
13435 # See if sys/param.h defines the BYTE_ORDER macro.
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438 #include <sys/types.h>
13439 #include <sys/param.h>
13442 main ()
13444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13446 && LITTLE_ENDIAN)
13447 bogus endian macros
13448 #endif
13451 return 0;
13453 _ACEOF
13454 if ac_fn_c_try_compile "$LINENO"; then :
13455 # It does; now see whether it defined to BIG_ENDIAN or not.
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13458 #include <sys/types.h>
13459 #include <sys/param.h>
13462 main ()
13464 #if BYTE_ORDER != BIG_ENDIAN
13465 not big endian
13466 #endif
13469 return 0;
13471 _ACEOF
13472 if ac_fn_c_try_compile "$LINENO"; then :
13473 ac_cv_c_bigendian=yes
13474 else
13475 ac_cv_c_bigendian=no
13477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 if test $ac_cv_c_bigendian = unknown; then
13482 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 #include <limits.h>
13488 main ()
13490 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13491 bogus endian macros
13492 #endif
13495 return 0;
13497 _ACEOF
13498 if ac_fn_c_try_compile "$LINENO"; then :
13499 # It does; now see whether it defined to _BIG_ENDIAN or not.
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13502 #include <limits.h>
13505 main ()
13507 #ifndef _BIG_ENDIAN
13508 not big endian
13509 #endif
13512 return 0;
13514 _ACEOF
13515 if ac_fn_c_try_compile "$LINENO"; then :
13516 ac_cv_c_bigendian=yes
13517 else
13518 ac_cv_c_bigendian=no
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13524 if test $ac_cv_c_bigendian = unknown; then
13525 # Compile a test program.
13526 if test "$cross_compiling" = yes; then :
13527 # Try to guess by grepping values from an object file.
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 short int ascii_mm[] =
13531 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13532 short int ascii_ii[] =
13533 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13534 int use_ascii (int i) {
13535 return ascii_mm[i] + ascii_ii[i];
13537 short int ebcdic_ii[] =
13538 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13539 short int ebcdic_mm[] =
13540 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13541 int use_ebcdic (int i) {
13542 return ebcdic_mm[i] + ebcdic_ii[i];
13544 extern int foo;
13547 main ()
13549 return use_ascii (foo) == use_ebcdic (foo);
13551 return 0;
13553 _ACEOF
13554 if ac_fn_c_try_compile "$LINENO"; then :
13555 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13556 ac_cv_c_bigendian=yes
13558 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13559 if test "$ac_cv_c_bigendian" = unknown; then
13560 ac_cv_c_bigendian=no
13561 else
13562 # finding both strings is unlikely to happen, but who knows?
13563 ac_cv_c_bigendian=unknown
13567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13568 else
13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13571 $ac_includes_default
13573 main ()
13576 /* Are we little or big endian? From Harbison&Steele. */
13577 union
13579 long int l;
13580 char c[sizeof (long int)];
13581 } u;
13582 u.l = 1;
13583 return u.c[sizeof (long int) - 1] == 1;
13586 return 0;
13588 _ACEOF
13589 if ac_fn_c_try_run "$LINENO"; then :
13590 ac_cv_c_bigendian=no
13591 else
13592 ac_cv_c_bigendian=yes
13594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13595 conftest.$ac_objext conftest.beam conftest.$ac_ext
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13601 $as_echo "$ac_cv_c_bigendian" >&6; }
13602 case $ac_cv_c_bigendian in #(
13603 yes)
13604 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13605 ;; #(
13607 ;; #(
13608 universal)
13610 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13612 ;; #(
13614 as_fn_error $? "unknown endianness
13615 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13616 esac
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13620 $as_echo_n "checking for inline... " >&6; }
13621 if test "${ac_cv_c_inline+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 ac_cv_c_inline=no
13625 for ac_kw in inline __inline__ __inline; do
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628 #ifndef __cplusplus
13629 typedef int foo_t;
13630 static $ac_kw foo_t static_foo () {return 0; }
13631 $ac_kw foo_t foo () {return 0; }
13632 #endif
13634 _ACEOF
13635 if ac_fn_c_try_compile "$LINENO"; then :
13636 ac_cv_c_inline=$ac_kw
13638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 test "$ac_cv_c_inline" != no && break
13640 done
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13644 $as_echo "$ac_cv_c_inline" >&6; }
13646 case $ac_cv_c_inline in
13647 inline | yes) ;;
13649 case $ac_cv_c_inline in
13650 no) ac_val=;;
13651 *) ac_val=$ac_cv_c_inline;;
13652 esac
13653 cat >>confdefs.h <<_ACEOF
13654 #ifndef __cplusplus
13655 #define inline $ac_val
13656 #endif
13657 _ACEOF
13659 esac
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13663 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13664 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13665 $as_echo_n "(cached) " >&6
13666 else
13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13669 /* On HP-UX before 11.23, strtold returns a struct instead of
13670 long double. Reject implementations like that, by requiring
13671 compatibility with the C99 prototype. */
13672 #include <stdlib.h>
13673 static long double (*p) (char const *, char **) = strtold;
13674 static long double
13675 test (char const *nptr, char **endptr)
13677 long double r;
13678 r = strtold (nptr, endptr);
13679 return r;
13682 main ()
13684 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13686 return 0;
13688 _ACEOF
13689 if ac_fn_c_try_link "$LINENO"; then :
13690 gl_cv_func_c99_strtold=yes
13691 else
13692 gl_cv_func_c99_strtold=no
13694 rm -f core conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13698 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13699 if test $gl_cv_func_c99_strtold = yes; then
13701 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13706 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13707 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13713 #include <sys/types.h>
13714 #include <sys/stat.h>
13716 main ()
13718 struct stat s; s.st_dm_mode;
13720 return 0;
13722 _ACEOF
13723 if ac_fn_c_try_compile "$LINENO"; then :
13724 ac_cv_struct_st_dm_mode=yes
13725 else
13726 ac_cv_struct_st_dm_mode=no
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13731 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13733 if test $ac_cv_struct_st_dm_mode = yes; then
13735 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13740 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13741 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
13742 ac_have_decl=1
13743 else
13744 ac_have_decl=0
13747 cat >>confdefs.h <<_ACEOF
13748 #define HAVE_DECL_STRMODE $ac_have_decl
13749 _ACEOF
13752 GNULIB__EXIT=0;
13753 GNULIB_ATOLL=0;
13754 GNULIB_CALLOC_POSIX=0;
13755 GNULIB_CANONICALIZE_FILE_NAME=0;
13756 GNULIB_GETLOADAVG=0;
13757 GNULIB_GETSUBOPT=0;
13758 GNULIB_GRANTPT=0;
13759 GNULIB_MALLOC_POSIX=0;
13760 GNULIB_MKDTEMP=0;
13761 GNULIB_MKOSTEMP=0;
13762 GNULIB_MKOSTEMPS=0;
13763 GNULIB_MKSTEMP=0;
13764 GNULIB_MKSTEMPS=0;
13765 GNULIB_PTSNAME=0;
13766 GNULIB_PUTENV=0;
13767 GNULIB_RANDOM_R=0;
13768 GNULIB_REALLOC_POSIX=0;
13769 GNULIB_REALPATH=0;
13770 GNULIB_RPMATCH=0;
13771 GNULIB_SETENV=0;
13772 GNULIB_STRTOD=0;
13773 GNULIB_STRTOLL=0;
13774 GNULIB_STRTOULL=0;
13775 GNULIB_SYSTEM_POSIX=0;
13776 GNULIB_UNLOCKPT=0;
13777 GNULIB_UNSETENV=0;
13778 HAVE__EXIT=1;
13779 HAVE_ATOLL=1;
13780 HAVE_CANONICALIZE_FILE_NAME=1;
13781 HAVE_DECL_GETLOADAVG=1;
13782 HAVE_GETSUBOPT=1;
13783 HAVE_GRANTPT=1;
13784 HAVE_MKDTEMP=1;
13785 HAVE_MKOSTEMP=1;
13786 HAVE_MKOSTEMPS=1;
13787 HAVE_MKSTEMP=1;
13788 HAVE_MKSTEMPS=1;
13789 HAVE_PTSNAME=1;
13790 HAVE_RANDOM_H=1;
13791 HAVE_RANDOM_R=1;
13792 HAVE_REALPATH=1;
13793 HAVE_RPMATCH=1;
13794 HAVE_SETENV=1;
13795 HAVE_DECL_SETENV=1;
13796 HAVE_STRTOD=1;
13797 HAVE_STRTOLL=1;
13798 HAVE_STRTOULL=1;
13799 HAVE_STRUCT_RANDOM_DATA=1;
13800 HAVE_SYS_LOADAVG_H=0;
13801 HAVE_UNLOCKPT=1;
13802 HAVE_DECL_UNSETENV=1;
13803 REPLACE_CALLOC=0;
13804 REPLACE_CANONICALIZE_FILE_NAME=0;
13805 REPLACE_MALLOC=0;
13806 REPLACE_MKSTEMP=0;
13807 REPLACE_PUTENV=0;
13808 REPLACE_REALLOC=0;
13809 REPLACE_REALPATH=0;
13810 REPLACE_SETENV=0;
13811 REPLACE_STRTOD=0;
13812 REPLACE_UNSETENV=0;
13815 GNULIB_CHOWN=0;
13816 GNULIB_CLOSE=0;
13817 GNULIB_DUP2=0;
13818 GNULIB_DUP3=0;
13819 GNULIB_ENVIRON=0;
13820 GNULIB_EUIDACCESS=0;
13821 GNULIB_FACCESSAT=0;
13822 GNULIB_FCHDIR=0;
13823 GNULIB_FCHOWNAT=0;
13824 GNULIB_FSYNC=0;
13825 GNULIB_FTRUNCATE=0;
13826 GNULIB_GETCWD=0;
13827 GNULIB_GETDOMAINNAME=0;
13828 GNULIB_GETDTABLESIZE=0;
13829 GNULIB_GETGROUPS=0;
13830 GNULIB_GETHOSTNAME=0;
13831 GNULIB_GETLOGIN=0;
13832 GNULIB_GETLOGIN_R=0;
13833 GNULIB_GETPAGESIZE=0;
13834 GNULIB_GETUSERSHELL=0;
13835 GNULIB_LCHOWN=0;
13836 GNULIB_LINK=0;
13837 GNULIB_LINKAT=0;
13838 GNULIB_LSEEK=0;
13839 GNULIB_PIPE=0;
13840 GNULIB_PIPE2=0;
13841 GNULIB_PREAD=0;
13842 GNULIB_PWRITE=0;
13843 GNULIB_READLINK=0;
13844 GNULIB_READLINKAT=0;
13845 GNULIB_RMDIR=0;
13846 GNULIB_SLEEP=0;
13847 GNULIB_SYMLINK=0;
13848 GNULIB_SYMLINKAT=0;
13849 GNULIB_TTYNAME_R=0;
13850 GNULIB_UNISTD_H_GETOPT=0;
13851 GNULIB_UNISTD_H_SIGPIPE=0;
13852 GNULIB_UNLINK=0;
13853 GNULIB_UNLINKAT=0;
13854 GNULIB_USLEEP=0;
13855 GNULIB_WRITE=0;
13856 HAVE_CHOWN=1;
13857 HAVE_DUP2=1;
13858 HAVE_DUP3=1;
13859 HAVE_EUIDACCESS=1;
13860 HAVE_FACCESSAT=1;
13861 HAVE_FCHDIR=1;
13862 HAVE_FCHOWNAT=1;
13863 HAVE_FSYNC=1;
13864 HAVE_FTRUNCATE=1;
13865 HAVE_GETDTABLESIZE=1;
13866 HAVE_GETGROUPS=1;
13867 HAVE_GETHOSTNAME=1;
13868 HAVE_GETLOGIN=1;
13869 HAVE_GETPAGESIZE=1;
13870 HAVE_LCHOWN=1;
13871 HAVE_LINK=1;
13872 HAVE_LINKAT=1;
13873 HAVE_PIPE=1;
13874 HAVE_PIPE2=1;
13875 HAVE_PREAD=1;
13876 HAVE_PWRITE=1;
13877 HAVE_READLINK=1;
13878 HAVE_READLINKAT=1;
13879 HAVE_SLEEP=1;
13880 HAVE_SYMLINK=1;
13881 HAVE_SYMLINKAT=1;
13882 HAVE_UNLINKAT=1;
13883 HAVE_USLEEP=1;
13884 HAVE_DECL_ENVIRON=1;
13885 HAVE_DECL_FCHDIR=1;
13886 HAVE_DECL_GETDOMAINNAME=1;
13887 HAVE_DECL_GETLOGIN_R=1;
13888 HAVE_DECL_GETPAGESIZE=1;
13889 HAVE_DECL_GETUSERSHELL=1;
13890 HAVE_DECL_TTYNAME_R=1;
13891 HAVE_OS_H=0;
13892 HAVE_SYS_PARAM_H=0;
13893 REPLACE_CHOWN=0;
13894 REPLACE_CLOSE=0;
13895 REPLACE_DUP=0;
13896 REPLACE_DUP2=0;
13897 REPLACE_FCHOWNAT=0;
13898 REPLACE_GETCWD=0;
13899 REPLACE_GETDOMAINNAME=0;
13900 REPLACE_GETLOGIN_R=0;
13901 REPLACE_GETGROUPS=0;
13902 REPLACE_GETPAGESIZE=0;
13903 REPLACE_LCHOWN=0;
13904 REPLACE_LINK=0;
13905 REPLACE_LINKAT=0;
13906 REPLACE_LSEEK=0;
13907 REPLACE_PREAD=0;
13908 REPLACE_PWRITE=0;
13909 REPLACE_READLINK=0;
13910 REPLACE_RMDIR=0;
13911 REPLACE_SLEEP=0;
13912 REPLACE_SYMLINK=0;
13913 REPLACE_TTYNAME_R=0;
13914 REPLACE_UNLINK=0;
13915 REPLACE_UNLINKAT=0;
13916 REPLACE_USLEEP=0;
13917 REPLACE_WRITE=0;
13918 UNISTD_H_HAVE_WINSOCK2_H=0;
13919 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13925 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13926 if test "${gl_cv_have_include_next+set}" = set; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 rm -rf conftestd1a conftestd1b conftestd2
13930 mkdir conftestd1a conftestd1b conftestd2
13931 cat <<EOF > conftestd1a/conftest.h
13932 #define DEFINED_IN_CONFTESTD1
13933 #include_next <conftest.h>
13934 #ifdef DEFINED_IN_CONFTESTD2
13935 int foo;
13936 #else
13937 #error "include_next doesn't work"
13938 #endif
13940 cat <<EOF > conftestd1b/conftest.h
13941 #define DEFINED_IN_CONFTESTD1
13942 #include <stdio.h>
13943 #include_next <conftest.h>
13944 #ifdef DEFINED_IN_CONFTESTD2
13945 int foo;
13946 #else
13947 #error "include_next doesn't work"
13948 #endif
13950 cat <<EOF > conftestd2/conftest.h
13951 #ifndef DEFINED_IN_CONFTESTD1
13952 #error "include_next test doesn't work"
13953 #endif
13954 #define DEFINED_IN_CONFTESTD2
13956 gl_save_CPPFLAGS="$CPPFLAGS"
13957 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 #include <conftest.h>
13961 _ACEOF
13962 if ac_fn_c_try_compile "$LINENO"; then :
13963 gl_cv_have_include_next=yes
13964 else
13965 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13968 #include <conftest.h>
13969 _ACEOF
13970 if ac_fn_c_try_compile "$LINENO"; then :
13971 gl_cv_have_include_next=buggy
13972 else
13973 gl_cv_have_include_next=no
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979 CPPFLAGS="$gl_save_CPPFLAGS"
13980 rm -rf conftestd1a conftestd1b conftestd2
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13984 $as_echo "$gl_cv_have_include_next" >&6; }
13985 PRAGMA_SYSTEM_HEADER=
13986 if test $gl_cv_have_include_next = yes; then
13987 INCLUDE_NEXT=include_next
13988 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13989 if test -n "$GCC"; then
13990 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13992 else
13993 if test $gl_cv_have_include_next = buggy; then
13994 INCLUDE_NEXT=include
13995 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13996 else
13997 INCLUDE_NEXT=include
13998 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14005 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14006 if test "${gl_cv_pragma_columns+set}" = set; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14012 #ifdef __TANDEM
14013 choke me
14014 #endif
14016 _ACEOF
14017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14018 $EGREP "choke me" >/dev/null 2>&1; then :
14019 gl_cv_pragma_columns=yes
14020 else
14021 gl_cv_pragma_columns=no
14023 rm -f conftest*
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14028 $as_echo "$gl_cv_pragma_columns" >&6; }
14029 if test $gl_cv_pragma_columns = yes; then
14030 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14031 else
14032 PRAGMA_COLUMNS=
14051 if test $gl_cv_have_include_next = yes; then
14052 gl_cv_next_getopt_h='<'getopt.h'>'
14053 else
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14055 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14056 if test "${gl_cv_next_getopt_h+set}" = set; then :
14057 $as_echo_n "(cached) " >&6
14058 else
14060 if test $ac_cv_header_getopt_h = yes; then
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14065 #include <getopt.h>
14067 _ACEOF
14068 case "$host_os" in
14069 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14070 *) gl_absname_cpp="$ac_cpp" ;;
14071 esac
14072 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14073 sed -n '\#/getopt.h#{
14074 s#.*"\(.*/getopt.h\)".*#\1#
14075 s#^/[^/]#//&#
14078 }'`'"'
14079 else
14080 gl_cv_next_getopt_h='<'getopt.h'>'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14086 $as_echo "$gl_cv_next_getopt_h" >&6; }
14088 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14090 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14091 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14092 gl_next_as_first_directive='<'getopt.h'>'
14093 else
14094 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14095 gl_next_as_first_directive=$gl_cv_next_getopt_h
14097 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14102 if test $ac_cv_header_getopt_h = yes; then
14103 HAVE_GETOPT_H=1
14104 else
14105 HAVE_GETOPT_H=0
14109 gl_replace_getopt=
14111 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14112 for ac_header in getopt.h
14113 do :
14114 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14115 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14116 cat >>confdefs.h <<_ACEOF
14117 #define HAVE_GETOPT_H 1
14118 _ACEOF
14120 else
14121 gl_replace_getopt=yes
14124 done
14128 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14129 for ac_func in getopt_long_only
14130 do :
14131 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14132 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14133 cat >>confdefs.h <<_ACEOF
14134 #define HAVE_GETOPT_LONG_ONLY 1
14135 _ACEOF
14137 else
14138 gl_replace_getopt=yes
14140 done
14144 if test -z "$gl_replace_getopt"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14146 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14147 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14148 $as_echo_n "(cached) " >&6
14149 else
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 #include <unistd.h>
14155 main ()
14157 int *p = &optreset; return optreset;
14159 return 0;
14161 _ACEOF
14162 if ac_fn_c_try_compile "$LINENO"; then :
14163 gl_optind_min=1
14164 else
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167 #include <getopt.h>
14169 main ()
14171 return !getopt_clip;
14173 return 0;
14175 _ACEOF
14176 if ac_fn_c_try_compile "$LINENO"; then :
14177 gl_optind_min=1
14178 else
14179 gl_optind_min=0
14181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185 gl_save_CPPFLAGS=$CPPFLAGS
14186 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14187 if test "$cross_compiling" = yes; then :
14188 case "$host_os" in
14189 mingw*) gl_cv_func_getopt_posix="guessing no";;
14190 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14191 *) gl_cv_func_getopt_posix="guessing yes";;
14192 esac
14194 else
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14198 #include <unistd.h>
14199 #include <stdlib.h>
14200 #include <string.h>
14203 main ()
14206 int argc = 0;
14207 char *argv[10];
14208 int c;
14210 argv[argc++] = "program";
14211 argv[argc++] = "-a";
14212 argv[argc++] = "foo";
14213 argv[argc++] = "bar";
14214 argv[argc] = NULL;
14215 optind = OPTIND_MIN;
14216 opterr = 0;
14218 c = getopt (argc, argv, "ab");
14219 if (!(c == 'a'))
14220 return 1;
14221 c = getopt (argc, argv, "ab");
14222 if (!(c == -1))
14223 return 2;
14224 if (!(optind == 2))
14225 return 3;
14227 /* Some internal state exists at this point. */
14229 int argc = 0;
14230 char *argv[10];
14231 int c;
14233 argv[argc++] = "program";
14234 argv[argc++] = "donald";
14235 argv[argc++] = "-p";
14236 argv[argc++] = "billy";
14237 argv[argc++] = "duck";
14238 argv[argc++] = "-a";
14239 argv[argc++] = "bar";
14240 argv[argc] = NULL;
14241 optind = OPTIND_MIN;
14242 opterr = 0;
14244 c = getopt (argc, argv, "+abp:q:");
14245 if (!(c == -1))
14246 return 4;
14247 if (!(strcmp (argv[0], "program") == 0))
14248 return 5;
14249 if (!(strcmp (argv[1], "donald") == 0))
14250 return 6;
14251 if (!(strcmp (argv[2], "-p") == 0))
14252 return 7;
14253 if (!(strcmp (argv[3], "billy") == 0))
14254 return 8;
14255 if (!(strcmp (argv[4], "duck") == 0))
14256 return 9;
14257 if (!(strcmp (argv[5], "-a") == 0))
14258 return 10;
14259 if (!(strcmp (argv[6], "bar") == 0))
14260 return 11;
14261 if (!(optind == 1))
14262 return 12;
14264 /* Detect MacOS 10.5, AIX 7.1 bug. */
14266 char *argv[3] = { "program", "-ab", NULL };
14267 optind = OPTIND_MIN;
14268 opterr = 0;
14269 if (getopt (2, argv, "ab:") != 'a')
14270 return 13;
14271 if (getopt (2, argv, "ab:") != '?')
14272 return 14;
14273 if (optopt != 'b')
14274 return 15;
14275 if (optind != 2)
14276 return 16;
14279 return 0;
14282 _ACEOF
14283 if ac_fn_c_try_run "$LINENO"; then :
14284 gl_cv_func_getopt_posix=yes
14285 else
14286 gl_cv_func_getopt_posix=no
14288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14289 conftest.$ac_objext conftest.beam conftest.$ac_ext
14292 CPPFLAGS=$gl_save_CPPFLAGS
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14296 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14297 case "$gl_cv_func_getopt_posix" in
14298 *no) gl_replace_getopt=yes ;;
14299 esac
14302 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14304 $as_echo_n "checking for working GNU getopt function... " >&6; }
14305 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14309 # optstring is necessary for programs like m4 that have POSIX-mandated
14310 # semantics for supporting options interspersed with files.
14311 # Also, since getopt_long is a GNU extension, we require optind=0.
14312 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14313 # so take care to revert to the correct (non-)export state.
14314 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14315 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14316 xx) gl_had_POSIXLY_CORRECT=exported ;;
14317 x) gl_had_POSIXLY_CORRECT=yes ;;
14318 *) gl_had_POSIXLY_CORRECT= ;;
14319 esac
14320 POSIXLY_CORRECT=1
14321 export POSIXLY_CORRECT
14322 if test "$cross_compiling" = yes; then :
14323 case $host_os:$ac_cv_have_decl_optreset in
14324 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14325 *:yes) gl_cv_func_getopt_gnu=no;;
14326 *) gl_cv_func_getopt_gnu=yes;;
14327 esac
14329 else
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332 #include <getopt.h>
14333 #include <stddef.h>
14334 #include <string.h>
14337 main ()
14340 int result = 0;
14341 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14342 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14343 OSF/1 5.1, Solaris 10. */
14345 char *myargv[3];
14346 myargv[0] = "conftest";
14347 myargv[1] = "-+";
14348 myargv[2] = 0;
14349 opterr = 0;
14350 if (getopt (2, myargv, "+a") != '?')
14351 result |= 1;
14353 /* This code succeeds on glibc 2.8, mingw,
14354 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14355 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14357 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14359 optind = 1;
14360 if (getopt (4, argv, "p::") != 'p')
14361 result |= 2;
14362 else if (optarg != NULL)
14363 result |= 4;
14364 else if (getopt (4, argv, "p::") != -1)
14365 result |= 6;
14366 else if (optind != 2)
14367 result |= 8;
14369 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14371 char *argv[] = { "program", "foo", "-p", NULL };
14372 optind = 0;
14373 if (getopt (3, argv, "-p") != 1)
14374 result |= 16;
14375 else if (getopt (3, argv, "-p") != 'p')
14376 result |= 32;
14378 /* This code fails on glibc 2.11. */
14380 char *argv[] = { "program", "-b", "-a", NULL };
14381 optind = opterr = 0;
14382 if (getopt (3, argv, "+:a:b") != 'b')
14383 result |= 64;
14384 else if (getopt (3, argv, "+:a:b") != ':')
14385 result |= 64;
14387 return result;
14390 return 0;
14392 _ACEOF
14393 if ac_fn_c_try_run "$LINENO"; then :
14394 gl_cv_func_getopt_gnu=yes
14395 else
14396 gl_cv_func_getopt_gnu=no
14398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14399 conftest.$ac_objext conftest.beam conftest.$ac_ext
14402 case $gl_had_POSIXLY_CORRECT in
14403 exported) ;;
14404 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14405 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14406 esac
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14410 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14411 if test "$gl_cv_func_getopt_gnu" = "no"; then
14412 gl_replace_getopt=yes
14416 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14417 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14418 ac_have_decl=1
14419 else
14420 ac_have_decl=0
14423 cat >>confdefs.h <<_ACEOF
14424 #define HAVE_DECL_GETENV $ac_have_decl
14425 _ACEOF
14432 if test -n "$gl_replace_getopt"; then :
14436 GETOPT_H=getopt.h
14438 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14442 GNULIB_UNISTD_H_GETOPT=1
14451 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14461 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14472 GNULIB_MKTIME=0;
14473 GNULIB_NANOSLEEP=0;
14474 GNULIB_STRPTIME=0;
14475 GNULIB_TIMEGM=0;
14476 GNULIB_TIME_R=0;
14477 HAVE_DECL_LOCALTIME_R=1;
14478 HAVE_NANOSLEEP=1;
14479 HAVE_STRPTIME=1;
14480 HAVE_TIMEGM=1;
14481 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14482 REPLACE_MKTIME=GNULIB_PORTCHECK;
14483 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14484 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14489 for ac_func in $ac_func_list
14490 do :
14491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14492 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14493 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14494 cat >>confdefs.h <<_ACEOF
14495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14496 _ACEOF
14499 done
14504 gl_cv_c_multiarch=no
14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14507 #ifndef __APPLE_CC__
14508 not a universal capable compiler
14509 #endif
14510 typedef int dummy;
14512 _ACEOF
14513 if ac_fn_c_try_compile "$LINENO"; then :
14515 arch=
14516 prev=
14517 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14518 if test -n "$prev"; then
14519 case $word in
14520 i?86 | x86_64 | ppc | ppc64)
14521 if test -z "$arch" || test "$arch" = "$word"; then
14522 arch="$word"
14523 else
14524 gl_cv_c_multiarch=yes
14527 esac
14528 prev=
14529 else
14530 if test "x$word" = "x-arch"; then
14531 prev=arch
14534 done
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 if test $gl_cv_c_multiarch = yes; then
14539 APPLE_UNIVERSAL_BUILD=1
14540 else
14541 APPLE_UNIVERSAL_BUILD=0
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14546 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14547 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14548 $as_echo_n "(cached) " >&6
14549 else
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14553 #include <stdbool.h>
14554 #ifndef bool
14555 "error: bool is not defined"
14556 #endif
14557 #ifndef false
14558 "error: false is not defined"
14559 #endif
14560 #if false
14561 "error: false is not 0"
14562 #endif
14563 #ifndef true
14564 "error: true is not defined"
14565 #endif
14566 #if true != 1
14567 "error: true is not 1"
14568 #endif
14569 #ifndef __bool_true_false_are_defined
14570 "error: __bool_true_false_are_defined is not defined"
14571 #endif
14573 struct s { _Bool s: 1; _Bool t; } s;
14575 char a[true == 1 ? 1 : -1];
14576 char b[false == 0 ? 1 : -1];
14577 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14578 char d[(bool) 0.5 == true ? 1 : -1];
14579 /* See body of main program for 'e'. */
14580 char f[(_Bool) 0.0 == false ? 1 : -1];
14581 char g[true];
14582 char h[sizeof (_Bool)];
14583 char i[sizeof s.t];
14584 enum { j = false, k = true, l = false * true, m = true * 256 };
14585 /* The following fails for
14586 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14587 _Bool n[m];
14588 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14589 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14590 /* Catch a bug in an HP-UX C compiler. See
14591 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14592 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14594 _Bool q = true;
14595 _Bool *pq = &q;
14598 main ()
14601 bool e = &s;
14602 *pq |= q;
14603 *pq |= ! q;
14604 /* Refer to every declared value, to avoid compiler optimizations. */
14605 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14606 + !m + !n + !o + !p + !q + !pq);
14609 return 0;
14611 _ACEOF
14612 if ac_fn_c_try_compile "$LINENO"; then :
14613 ac_cv_header_stdbool_h=yes
14614 else
14615 ac_cv_header_stdbool_h=no
14617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14620 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14621 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14622 if test "x$ac_cv_type__Bool" = x""yes; then :
14624 cat >>confdefs.h <<_ACEOF
14625 #define HAVE__BOOL 1
14626 _ACEOF
14633 REPLACE_NULL=0;
14634 HAVE_WCHAR_T=1;
14635 STDDEF_H='';
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14639 $as_echo_n "checking for wchar_t... " >&6; }
14640 if test "${gt_cv_c_wchar_t+set}" = set; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14645 #include <stddef.h>
14646 wchar_t foo = (wchar_t)'\0';
14648 main ()
14652 return 0;
14654 _ACEOF
14655 if ac_fn_c_try_compile "$LINENO"; then :
14656 gt_cv_c_wchar_t=yes
14657 else
14658 gt_cv_c_wchar_t=no
14660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14663 $as_echo "$gt_cv_c_wchar_t" >&6; }
14664 if test $gt_cv_c_wchar_t = yes; then
14666 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14672 $as_echo_n "checking for unsigned long long int... " >&6; }
14673 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14674 $as_echo_n "(cached) " >&6
14675 else
14676 ac_cv_type_unsigned_long_long_int=yes
14677 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14681 /* For now, do not test the preprocessor; as of 2007 there are too many
14682 implementations with broken preprocessors. Perhaps this can
14683 be revisited in 2012. In the meantime, code should not expect
14684 #if to work with literals wider than 32 bits. */
14685 /* Test literals. */
14686 long long int ll = 9223372036854775807ll;
14687 long long int nll = -9223372036854775807LL;
14688 unsigned long long int ull = 18446744073709551615ULL;
14689 /* Test constant expressions. */
14690 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14691 ? 1 : -1)];
14692 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14693 ? 1 : -1)];
14694 int i = 63;
14696 main ()
14698 /* Test availability of runtime routines for shift and division. */
14699 long long int llmax = 9223372036854775807ll;
14700 unsigned long long int ullmax = 18446744073709551615ull;
14701 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14702 | (llmax / ll) | (llmax % ll)
14703 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14704 | (ullmax / ull) | (ullmax % ull));
14706 return 0;
14709 _ACEOF
14710 if ac_fn_c_try_link "$LINENO"; then :
14712 else
14713 ac_cv_type_unsigned_long_long_int=no
14715 rm -f core conftest.err conftest.$ac_objext \
14716 conftest$ac_exeext conftest.$ac_ext
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14720 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14721 if test $ac_cv_type_unsigned_long_long_int = yes; then
14723 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14730 $as_echo_n "checking for long long int... " >&6; }
14731 if test "${ac_cv_type_long_long_int+set}" = set; then :
14732 $as_echo_n "(cached) " >&6
14733 else
14734 ac_cv_type_long_long_int=yes
14735 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14736 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14737 if test $ac_cv_type_long_long_int = yes; then
14738 if test "$cross_compiling" = yes; then :
14740 else
14741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14743 #include <limits.h>
14744 #ifndef LLONG_MAX
14745 # define HALF \
14746 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14747 # define LLONG_MAX (HALF - 1 + HALF)
14748 #endif
14750 main ()
14752 long long int n = 1;
14753 int i;
14754 for (i = 0; ; i++)
14756 long long int m = n << i;
14757 if (m >> i != n)
14758 return 1;
14759 if (LLONG_MAX / 2 < m)
14760 break;
14762 return 0;
14764 return 0;
14766 _ACEOF
14767 if ac_fn_c_try_run "$LINENO"; then :
14769 else
14770 ac_cv_type_long_long_int=no
14772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14773 conftest.$ac_objext conftest.beam conftest.$ac_ext
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14780 $as_echo "$ac_cv_type_long_long_int" >&6; }
14781 if test $ac_cv_type_long_long_int = yes; then
14783 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14792 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14794 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
14796 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14804 GNULIB_FCHMODAT=0;
14805 GNULIB_FSTATAT=0;
14806 GNULIB_FUTIMENS=0;
14807 GNULIB_LCHMOD=0;
14808 GNULIB_LSTAT=0;
14809 GNULIB_MKDIRAT=0;
14810 GNULIB_MKFIFO=0;
14811 GNULIB_MKFIFOAT=0;
14812 GNULIB_MKNOD=0;
14813 GNULIB_MKNODAT=0;
14814 GNULIB_STAT=0;
14815 GNULIB_UTIMENSAT=0;
14816 HAVE_FCHMODAT=1;
14817 HAVE_FSTATAT=1;
14818 HAVE_FUTIMENS=1;
14819 HAVE_LCHMOD=1;
14820 HAVE_LSTAT=1;
14821 HAVE_MKDIRAT=1;
14822 HAVE_MKFIFO=1;
14823 HAVE_MKFIFOAT=1;
14824 HAVE_MKNOD=1;
14825 HAVE_MKNODAT=1;
14826 HAVE_UTIMENSAT=1;
14827 REPLACE_FSTAT=0;
14828 REPLACE_FSTATAT=0;
14829 REPLACE_FUTIMENS=0;
14830 REPLACE_LSTAT=0;
14831 REPLACE_MKDIR=0;
14832 REPLACE_MKFIFO=0;
14833 REPLACE_MKNOD=0;
14834 REPLACE_STAT=0;
14835 REPLACE_UTIMENSAT=0;
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
14838 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14839 if test "${ac_cv_header_stat_broken+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 #include <sys/types.h>
14845 #include <sys/stat.h>
14847 #if defined S_ISBLK && defined S_IFDIR
14848 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14849 #endif
14851 #if defined S_ISBLK && defined S_IFCHR
14852 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14853 #endif
14855 #if defined S_ISLNK && defined S_IFREG
14856 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14857 #endif
14859 #if defined S_ISSOCK && defined S_IFREG
14860 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14861 #endif
14863 _ACEOF
14864 if ac_fn_c_try_compile "$LINENO"; then :
14865 ac_cv_header_stat_broken=no
14866 else
14867 ac_cv_header_stat_broken=yes
14869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
14872 $as_echo "$ac_cv_header_stat_broken" >&6; }
14873 if test $ac_cv_header_stat_broken = yes; then
14875 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14882 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14883 if test "${ac_cv_c_restrict+set}" = set; then :
14884 $as_echo_n "(cached) " >&6
14885 else
14886 ac_cv_c_restrict=no
14887 # The order here caters to the fact that C++ does not require restrict.
14888 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891 typedef int * int_ptr;
14892 int foo (int_ptr $ac_kw ip) {
14893 return ip[0];
14896 main ()
14898 int s[1];
14899 int * $ac_kw t = s;
14900 t[0] = 0;
14901 return foo(t)
14903 return 0;
14905 _ACEOF
14906 if ac_fn_c_try_compile "$LINENO"; then :
14907 ac_cv_c_restrict=$ac_kw
14909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910 test "$ac_cv_c_restrict" != no && break
14911 done
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14915 $as_echo "$ac_cv_c_restrict" >&6; }
14917 case $ac_cv_c_restrict in
14918 restrict) ;;
14919 no) $as_echo "#define restrict /**/" >>confdefs.h
14921 *) cat >>confdefs.h <<_ACEOF
14922 #define restrict $ac_cv_c_restrict
14923 _ACEOF
14925 esac
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14932 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14933 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
14934 $as_echo_n "(cached) " >&6
14935 else
14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14938 #include <time.h>
14941 main ()
14943 static struct timespec x; x.tv_sec = x.tv_nsec;
14945 return 0;
14947 _ACEOF
14948 if ac_fn_c_try_compile "$LINENO"; then :
14949 gl_cv_sys_struct_timespec_in_time_h=yes
14950 else
14951 gl_cv_sys_struct_timespec_in_time_h=no
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14956 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14958 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14959 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14960 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14961 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14962 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14963 else
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14965 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14966 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
14967 $as_echo_n "(cached) " >&6
14968 else
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 #include <sys/time.h>
14974 main ()
14976 static struct timespec x; x.tv_sec = x.tv_nsec;
14978 return 0;
14980 _ACEOF
14981 if ac_fn_c_try_compile "$LINENO"; then :
14982 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14983 else
14984 gl_cv_sys_struct_timespec_in_sys_time_h=no
14986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14989 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14990 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14991 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14992 else
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14994 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14995 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
14996 $as_echo_n "(cached) " >&6
14997 else
14998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999 /* end confdefs.h. */
15000 #include <pthread.h>
15003 main ()
15005 static struct timespec x; x.tv_sec = x.tv_nsec;
15007 return 0;
15009 _ACEOF
15010 if ac_fn_c_try_compile "$LINENO"; then :
15011 gl_cv_sys_struct_timespec_in_pthread_h=yes
15012 else
15013 gl_cv_sys_struct_timespec_in_pthread_h=no
15015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15018 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15019 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15020 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15039 if test $gl_cv_have_include_next = yes; then
15040 gl_cv_next_time_h='<'time.h'>'
15041 else
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15043 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15044 if test "${gl_cv_next_time_h+set}" = set; then :
15045 $as_echo_n "(cached) " >&6
15046 else
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h. */
15050 #include <time.h>
15052 _ACEOF
15053 case "$host_os" in
15054 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15055 *) gl_absname_cpp="$ac_cpp" ;;
15056 esac
15057 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15058 sed -n '\#/time.h#{
15059 s#.*"\(.*/time.h\)".*#\1#
15060 s#^/[^/]#//&#
15063 }'`'"'
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15068 $as_echo "$gl_cv_next_time_h" >&6; }
15070 NEXT_TIME_H=$gl_cv_next_time_h
15072 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15074 gl_next_as_first_directive='<'time.h'>'
15075 else
15076 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15077 gl_next_as_first_directive=$gl_cv_next_time_h
15079 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15086 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15087 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
15088 ac_have_decl=1
15089 else
15090 ac_have_decl=0
15093 cat >>confdefs.h <<_ACEOF
15094 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15095 _ACEOF
15100 if false; then
15101 GL_COND_LIBTOOL_TRUE=
15102 GL_COND_LIBTOOL_FALSE='#'
15103 else
15104 GL_COND_LIBTOOL_TRUE='#'
15105 GL_COND_LIBTOOL_FALSE=
15108 gl_cond_libtool=false
15109 gl_libdeps=
15110 gl_ltlibdeps=
15111 gl_m4_base='m4'
15121 gl_source_base='lib'
15122 # Code from module arg-nonnull:
15123 # Code from module c++defs:
15124 # Code from module crypto/md5:
15134 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15141 # Code from module dtoastr:
15143 # Code from module extensions:
15144 # Code from module filemode:
15155 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15159 # Code from module getloadavg:
15162 # Persuade glibc <stdlib.h> to declare getloadavg().
15165 # Make sure getloadavg.c is where it belongs, at configure-time.
15166 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15167 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15169 gl_save_LIBS=$LIBS
15171 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15172 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15173 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15174 if test "x$ac_cv_func_getloadavg" = x""yes; then :
15176 else
15177 gl_have_func=no
15179 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15180 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15181 # to get the right answer into the cache.
15182 # For kstat on solaris, we need to test for libelf and libkvm to force the
15183 # definition of SVR4 below.
15184 if test $gl_have_func = no; then
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15186 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15187 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15188 $as_echo_n "(cached) " >&6
15189 else
15190 ac_check_lib_save_LIBS=$LIBS
15191 LIBS="-lelf $LIBS"
15192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15193 /* end confdefs.h. */
15195 /* Override any GCC internal prototype to avoid an error.
15196 Use char because int might match the return type of a GCC
15197 builtin and then its argument prototype would still apply. */
15198 #ifdef __cplusplus
15199 extern "C"
15200 #endif
15201 char elf_begin ();
15203 main ()
15205 return elf_begin ();
15207 return 0;
15209 _ACEOF
15210 if ac_fn_c_try_link "$LINENO"; then :
15211 ac_cv_lib_elf_elf_begin=yes
15212 else
15213 ac_cv_lib_elf_elf_begin=no
15215 rm -f core conftest.err conftest.$ac_objext \
15216 conftest$ac_exeext conftest.$ac_ext
15217 LIBS=$ac_check_lib_save_LIBS
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15220 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15221 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
15222 LIBS="-lelf $LIBS"
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15226 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15227 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15228 $as_echo_n "(cached) " >&6
15229 else
15230 ac_check_lib_save_LIBS=$LIBS
15231 LIBS="-lkvm $LIBS"
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15235 /* Override any GCC internal prototype to avoid an error.
15236 Use char because int might match the return type of a GCC
15237 builtin and then its argument prototype would still apply. */
15238 #ifdef __cplusplus
15239 extern "C"
15240 #endif
15241 char kvm_open ();
15243 main ()
15245 return kvm_open ();
15247 return 0;
15249 _ACEOF
15250 if ac_fn_c_try_link "$LINENO"; then :
15251 ac_cv_lib_kvm_kvm_open=yes
15252 else
15253 ac_cv_lib_kvm_kvm_open=no
15255 rm -f core conftest.err conftest.$ac_objext \
15256 conftest$ac_exeext conftest.$ac_ext
15257 LIBS=$ac_check_lib_save_LIBS
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15260 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15261 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
15262 LIBS="-lkvm $LIBS"
15265 # Check for the 4.4BSD definition of getloadavg.
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15267 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15268 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15269 $as_echo_n "(cached) " >&6
15270 else
15271 ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lutil $LIBS"
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15276 /* Override any GCC internal prototype to avoid an error.
15277 Use char because int might match the return type of a GCC
15278 builtin and then its argument prototype would still apply. */
15279 #ifdef __cplusplus
15280 extern "C"
15281 #endif
15282 char getloadavg ();
15284 main ()
15286 return getloadavg ();
15288 return 0;
15290 _ACEOF
15291 if ac_fn_c_try_link "$LINENO"; then :
15292 ac_cv_lib_util_getloadavg=yes
15293 else
15294 ac_cv_lib_util_getloadavg=no
15296 rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15298 LIBS=$ac_check_lib_save_LIBS
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15301 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15302 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
15303 LIBS="-lutil $LIBS" gl_have_func=yes
15308 if test $gl_have_func = no; then
15309 # There is a commonly available library for RS/6000 AIX.
15310 # Since it is not a standard part of AIX, it might be installed locally.
15311 gl_getloadavg_LIBS=$LIBS
15312 LIBS="-L/usr/local/lib $LIBS"
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15314 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15315 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15316 $as_echo_n "(cached) " >&6
15317 else
15318 ac_check_lib_save_LIBS=$LIBS
15319 LIBS="-lgetloadavg $LIBS"
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15323 /* Override any GCC internal prototype to avoid an error.
15324 Use char because int might match the return type of a GCC
15325 builtin and then its argument prototype would still apply. */
15326 #ifdef __cplusplus
15327 extern "C"
15328 #endif
15329 char getloadavg ();
15331 main ()
15333 return getloadavg ();
15335 return 0;
15337 _ACEOF
15338 if ac_fn_c_try_link "$LINENO"; then :
15339 ac_cv_lib_getloadavg_getloadavg=yes
15340 else
15341 ac_cv_lib_getloadavg_getloadavg=no
15343 rm -f core conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15345 LIBS=$ac_check_lib_save_LIBS
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15348 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15349 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
15350 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15351 else
15352 LIBS=$gl_getloadavg_LIBS
15357 # Set up the replacement function if necessary.
15358 if test $gl_have_func = no; then
15367 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15370 # Figure out what our getloadavg.c needs.
15372 # Solaris has libkstat which does not require root.
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15374 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15375 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15376 $as_echo_n "(cached) " >&6
15377 else
15378 ac_check_lib_save_LIBS=$LIBS
15379 LIBS="-lkstat $LIBS"
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15383 /* Override any GCC internal prototype to avoid an error.
15384 Use char because int might match the return type of a GCC
15385 builtin and then its argument prototype would still apply. */
15386 #ifdef __cplusplus
15387 extern "C"
15388 #endif
15389 char kstat_open ();
15391 main ()
15393 return kstat_open ();
15395 return 0;
15397 _ACEOF
15398 if ac_fn_c_try_link "$LINENO"; then :
15399 ac_cv_lib_kstat_kstat_open=yes
15400 else
15401 ac_cv_lib_kstat_kstat_open=no
15403 rm -f core conftest.err conftest.$ac_objext \
15404 conftest$ac_exeext conftest.$ac_ext
15405 LIBS=$ac_check_lib_save_LIBS
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15408 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15409 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
15410 cat >>confdefs.h <<_ACEOF
15411 #define HAVE_LIBKSTAT 1
15412 _ACEOF
15414 LIBS="-lkstat $LIBS"
15418 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15420 # On HPUX9, an unprivileged user can get load averages this way.
15421 if test $gl_have_func = no; then
15422 for ac_func in pstat_getdynamic
15423 do :
15424 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15425 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
15426 cat >>confdefs.h <<_ACEOF
15427 #define HAVE_PSTAT_GETDYNAMIC 1
15428 _ACEOF
15429 gl_have_func=yes
15431 done
15435 # AIX has libperfstat which does not require root
15436 if test $gl_have_func = no; then
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15438 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15439 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 ac_check_lib_save_LIBS=$LIBS
15443 LIBS="-lperfstat $LIBS"
15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15447 /* Override any GCC internal prototype to avoid an error.
15448 Use char because int might match the return type of a GCC
15449 builtin and then its argument prototype would still apply. */
15450 #ifdef __cplusplus
15451 extern "C"
15452 #endif
15453 char perfstat_cpu_total ();
15455 main ()
15457 return perfstat_cpu_total ();
15459 return 0;
15461 _ACEOF
15462 if ac_fn_c_try_link "$LINENO"; then :
15463 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15464 else
15465 ac_cv_lib_perfstat_perfstat_cpu_total=no
15467 rm -f core conftest.err conftest.$ac_objext \
15468 conftest$ac_exeext conftest.$ac_ext
15469 LIBS=$ac_check_lib_save_LIBS
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15472 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15473 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
15474 cat >>confdefs.h <<_ACEOF
15475 #define HAVE_LIBPERFSTAT 1
15476 _ACEOF
15478 LIBS="-lperfstat $LIBS"
15482 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15485 if test $gl_have_func = no; then
15486 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15487 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
15488 gl_have_func=yes
15490 $as_echo "#define DGUX 1" >>confdefs.h
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15493 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15494 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15495 $as_echo_n "(cached) " >&6
15496 else
15497 ac_check_lib_save_LIBS=$LIBS
15498 LIBS="-ldgc $LIBS"
15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h. */
15502 /* Override any GCC internal prototype to avoid an error.
15503 Use char because int might match the return type of a GCC
15504 builtin and then its argument prototype would still apply. */
15505 #ifdef __cplusplus
15506 extern "C"
15507 #endif
15508 char dg_sys_info ();
15510 main ()
15512 return dg_sys_info ();
15514 return 0;
15516 _ACEOF
15517 if ac_fn_c_try_link "$LINENO"; then :
15518 ac_cv_lib_dgc_dg_sys_info=yes
15519 else
15520 ac_cv_lib_dgc_dg_sys_info=no
15522 rm -f core conftest.err conftest.$ac_objext \
15523 conftest$ac_exeext conftest.$ac_ext
15524 LIBS=$ac_check_lib_save_LIBS
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15527 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15528 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
15529 cat >>confdefs.h <<_ACEOF
15530 #define HAVE_LIBDGC 1
15531 _ACEOF
15533 LIBS="-ldgc $LIBS"
15542 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15543 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15544 # Irix 4.0.5F has the header but not the library.
15545 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15546 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15547 gl_have_func=yes
15549 $as_echo "#define SVR4 1" >>confdefs.h
15553 if test $gl_have_func = no; then
15554 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15555 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
15556 gl_have_func=yes
15558 $as_echo "#define UMAX 1" >>confdefs.h
15561 $as_echo "#define UMAX4_3 1" >>confdefs.h
15568 if test $gl_have_func = no; then
15569 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15570 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
15571 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15578 if test $gl_have_func = no; then
15579 for ac_header in mach/mach.h
15580 do :
15581 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15582 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
15583 cat >>confdefs.h <<_ACEOF
15584 #define HAVE_MACH_MACH_H 1
15585 _ACEOF
15589 done
15593 for ac_header in nlist.h
15594 do :
15595 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15596 if test "x$ac_cv_header_nlist_h" = x""yes; then :
15597 cat >>confdefs.h <<_ACEOF
15598 #define HAVE_NLIST_H 1
15599 _ACEOF
15600 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15602 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
15604 cat >>confdefs.h <<_ACEOF
15605 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15606 _ACEOF
15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15613 #include <nlist.h>
15615 main ()
15617 struct nlist x;
15618 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15619 x.n_un.n_name = "";
15620 #else
15621 x.n_name = "";
15622 #endif
15624 return 0;
15626 _ACEOF
15627 if ac_fn_c_try_link "$LINENO"; then :
15629 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15632 rm -f core conftest.err conftest.$ac_objext \
15633 conftest$ac_exeext conftest.$ac_ext
15637 done
15643 if test "x$gl_save_LIBS" = x; then
15644 GETLOADAVG_LIBS=$LIBS
15645 else
15646 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15648 LIBS=$gl_save_LIBS
15651 # Test whether the system declares getloadavg. Solaris has the function
15652 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15653 for ac_header in sys/loadavg.h
15654 do :
15655 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15656 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
15657 cat >>confdefs.h <<_ACEOF
15658 #define HAVE_SYS_LOADAVG_H 1
15659 _ACEOF
15663 done
15665 if test $ac_cv_header_sys_loadavg_h = yes; then
15666 HAVE_SYS_LOADAVG_H=1
15667 else
15668 HAVE_SYS_LOADAVG_H=0
15670 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15671 # include <sys/loadavg.h>
15672 #endif
15673 #include <stdlib.h>
15675 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
15677 else
15678 HAVE_DECL_GETLOADAVG=0
15685 GNULIB_GETLOADAVG=1
15689 # Code from module getopt-gnu:
15696 # Code from module getopt-posix:
15702 if test -n "$gl_replace_getopt"; then :
15706 GETOPT_H=getopt.h
15708 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15712 GNULIB_UNISTD_H_GETOPT=1
15721 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15731 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15741 # Code from module gettext-h:
15744 # Code from module ignore-value:
15746 # Code from module include_next:
15747 # Code from module intprops:
15748 # Code from module mktime:
15754 if test $APPLE_UNIVERSAL_BUILD = 1; then
15755 # A universal build on Apple MacOS X platforms.
15756 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15757 # But we need a configuration result that is valid in both modes.
15758 ac_cv_func_working_mktime=no
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15761 $as_echo_n "checking for working mktime... " >&6; }
15762 if test "${ac_cv_func_working_mktime+set}" = set; then :
15763 $as_echo_n "(cached) " >&6
15764 else
15765 if test "$cross_compiling" = yes; then :
15766 ac_cv_func_working_mktime=no
15767 else
15768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15769 /* end confdefs.h. */
15770 /* Test program from Paul Eggert and Tony Leneis. */
15771 #include <limits.h>
15772 #include <stdlib.h>
15773 #include <time.h>
15775 #ifdef HAVE_UNISTD_H
15776 # include <unistd.h>
15777 #endif
15779 #ifndef HAVE_ALARM
15780 # define alarm(X) /* empty */
15781 #endif
15783 /* Work around redefinition to rpl_putenv by other config tests. */
15784 #undef putenv
15786 static time_t time_t_max;
15787 static time_t time_t_min;
15789 /* Values we'll use to set the TZ environment variable. */
15790 static char *tz_strings[] = {
15791 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15792 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15794 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15796 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15797 Based on a problem report from Andreas Jaeger. */
15798 static int
15799 spring_forward_gap ()
15801 /* glibc (up to about 1998-10-07) failed this test. */
15802 struct tm tm;
15804 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15805 instead of "TZ=America/Vancouver" in order to detect the bug even
15806 on systems that don't support the Olson extension, or don't have the
15807 full zoneinfo tables installed. */
15808 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15810 tm.tm_year = 98;
15811 tm.tm_mon = 3;
15812 tm.tm_mday = 5;
15813 tm.tm_hour = 2;
15814 tm.tm_min = 0;
15815 tm.tm_sec = 0;
15816 tm.tm_isdst = -1;
15817 return mktime (&tm) != (time_t) -1;
15820 static int
15821 mktime_test1 (time_t now)
15823 struct tm *lt;
15824 return ! (lt = localtime (&now)) || mktime (lt) == now;
15827 static int
15828 mktime_test (time_t now)
15830 return (mktime_test1 (now)
15831 && mktime_test1 ((time_t) (time_t_max - now))
15832 && mktime_test1 ((time_t) (time_t_min + now)));
15835 static int
15836 irix_6_4_bug ()
15838 /* Based on code from Ariel Faigon. */
15839 struct tm tm;
15840 tm.tm_year = 96;
15841 tm.tm_mon = 3;
15842 tm.tm_mday = 0;
15843 tm.tm_hour = 0;
15844 tm.tm_min = 0;
15845 tm.tm_sec = 0;
15846 tm.tm_isdst = -1;
15847 mktime (&tm);
15848 return tm.tm_mon == 2 && tm.tm_mday == 31;
15851 static int
15852 bigtime_test (int j)
15854 struct tm tm;
15855 time_t now;
15856 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15857 now = mktime (&tm);
15858 if (now != (time_t) -1)
15860 struct tm *lt = localtime (&now);
15861 if (! (lt
15862 && lt->tm_year == tm.tm_year
15863 && lt->tm_mon == tm.tm_mon
15864 && lt->tm_mday == tm.tm_mday
15865 && lt->tm_hour == tm.tm_hour
15866 && lt->tm_min == tm.tm_min
15867 && lt->tm_sec == tm.tm_sec
15868 && lt->tm_yday == tm.tm_yday
15869 && lt->tm_wday == tm.tm_wday
15870 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15871 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15872 return 0;
15874 return 1;
15877 static int
15878 year_2050_test ()
15880 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15881 ignoring leap seconds. */
15882 unsigned long int answer = 2527315200UL;
15884 struct tm tm;
15885 time_t t;
15886 tm.tm_year = 2050 - 1900;
15887 tm.tm_mon = 2 - 1;
15888 tm.tm_mday = 1;
15889 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15890 tm.tm_isdst = -1;
15892 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15893 instead of "TZ=America/Vancouver" in order to detect the bug even
15894 on systems that don't support the Olson extension, or don't have the
15895 full zoneinfo tables installed. */
15896 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15898 t = mktime (&tm);
15900 /* Check that the result is either a failure, or close enough
15901 to the correct answer that we can assume the discrepancy is
15902 due to leap seconds. */
15903 return (t == (time_t) -1
15904 || (0 < t && answer - 120 <= t && t <= answer + 120));
15908 main ()
15910 int result = 0;
15911 time_t t, delta;
15912 int i, j;
15913 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15914 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15916 /* This test makes some buggy mktime implementations loop.
15917 Give up after 60 seconds; a mktime slower than that
15918 isn't worth using anyway. */
15919 alarm (60);
15921 time_t_max = (! time_t_signed
15922 ? (time_t) -1
15923 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15924 * 2 + 1));
15925 time_t_min = (! time_t_signed
15926 ? (time_t) 0
15927 : time_t_signed_magnitude
15928 ? ~ (time_t) 0
15929 : ~ time_t_max);
15931 delta = time_t_max / 997; /* a suitable prime number */
15932 for (i = 0; i < N_STRINGS; i++)
15934 if (tz_strings[i])
15935 putenv (tz_strings[i]);
15937 for (t = 0; t <= time_t_max - delta; t += delta)
15938 if (! mktime_test (t))
15939 result |= 1;
15940 if (! (mktime_test ((time_t) 1)
15941 && mktime_test ((time_t) (60 * 60))
15942 && mktime_test ((time_t) (60 * 60 * 24))))
15943 result |= 2;
15945 for (j = 1; ; j <<= 1)
15946 if (! bigtime_test (j))
15947 result |= 4;
15948 else if (INT_MAX / 2 < j)
15949 break;
15950 if (! bigtime_test (INT_MAX))
15951 result |= 8;
15953 if (! irix_6_4_bug ())
15954 result |= 16;
15955 if (! spring_forward_gap ())
15956 result |= 32;
15957 if (! year_2050_test ())
15958 result |= 64;
15959 return result;
15961 _ACEOF
15962 if ac_fn_c_try_run "$LINENO"; then :
15963 ac_cv_func_working_mktime=yes
15964 else
15965 ac_cv_func_working_mktime=no
15967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15968 conftest.$ac_objext conftest.beam conftest.$ac_ext
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15973 $as_echo "$ac_cv_func_working_mktime" >&6; }
15974 if test $ac_cv_func_working_mktime = no; then
15983 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
15987 if test $ac_cv_func_working_mktime = no; then
15988 REPLACE_MKTIME=1
15992 else
15993 REPLACE_MKTIME=0
15999 GNULIB_MKTIME=1
16003 # Code from module multiarch:
16005 # Code from module stdbool:
16009 # Define two additional variables used in the Makefile substitution.
16011 if test "$ac_cv_header_stdbool_h" = yes; then
16012 STDBOOL_H=''
16013 else
16014 STDBOOL_H='stdbool.h'
16018 if test "$ac_cv_type__Bool" = yes; then
16019 HAVE__BOOL=1
16020 else
16021 HAVE__BOOL=0
16025 # Code from module stddef:
16029 if test $gt_cv_c_wchar_t = no; then
16030 HAVE_WCHAR_T=0
16031 STDDEF_H=stddef.h
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16034 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16035 if test "${gl_cv_decl_null_works+set}" = set; then :
16036 $as_echo_n "(cached) " >&6
16037 else
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040 #include <stddef.h>
16041 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16044 main ()
16048 return 0;
16050 _ACEOF
16051 if ac_fn_c_try_compile "$LINENO"; then :
16052 gl_cv_decl_null_works=yes
16053 else
16054 gl_cv_decl_null_works=no
16056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16059 $as_echo "$gl_cv_decl_null_works" >&6; }
16060 if test $gl_cv_decl_null_works = no; then
16061 REPLACE_NULL=1
16062 STDDEF_H=stddef.h
16064 if test -n "$STDDEF_H"; then
16073 if test $gl_cv_have_include_next = yes; then
16074 gl_cv_next_stddef_h='<'stddef.h'>'
16075 else
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16077 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16078 if test "${gl_cv_next_stddef_h+set}" = set; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 #include <stddef.h>
16086 _ACEOF
16087 case "$host_os" in
16088 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16089 *) gl_absname_cpp="$ac_cpp" ;;
16090 esac
16091 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16092 sed -n '\#/stddef.h#{
16093 s#.*"\(.*/stddef.h\)".*#\1#
16094 s#^/[^/]#//&#
16097 }'`'"'
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16102 $as_echo "$gl_cv_next_stddef_h" >&6; }
16104 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16106 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16107 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16108 gl_next_as_first_directive='<'stddef.h'>'
16109 else
16110 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16111 gl_next_as_first_directive=$gl_cv_next_stddef_h
16113 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16120 # Code from module stdint:
16124 if test $ac_cv_type_long_long_int = yes; then
16125 HAVE_LONG_LONG_INT=1
16126 else
16127 HAVE_LONG_LONG_INT=0
16131 if test $ac_cv_type_unsigned_long_long_int = yes; then
16132 HAVE_UNSIGNED_LONG_LONG_INT=1
16133 else
16134 HAVE_UNSIGNED_LONG_LONG_INT=0
16139 if test $ac_cv_header_wchar_h = yes; then
16140 HAVE_WCHAR_H=1
16141 else
16142 HAVE_WCHAR_H=0
16146 if test $ac_cv_header_inttypes_h = yes; then
16147 HAVE_INTTYPES_H=1
16148 else
16149 HAVE_INTTYPES_H=0
16153 if test $ac_cv_header_sys_types_h = yes; then
16154 HAVE_SYS_TYPES_H=1
16155 else
16156 HAVE_SYS_TYPES_H=0
16169 if test $gl_cv_have_include_next = yes; then
16170 gl_cv_next_stdint_h='<'stdint.h'>'
16171 else
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16173 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16174 if test "${gl_cv_next_stdint_h+set}" = set; then :
16175 $as_echo_n "(cached) " >&6
16176 else
16178 if test $ac_cv_header_stdint_h = yes; then
16181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h. */
16183 #include <stdint.h>
16185 _ACEOF
16186 case "$host_os" in
16187 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16188 *) gl_absname_cpp="$ac_cpp" ;;
16189 esac
16190 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16191 sed -n '\#/stdint.h#{
16192 s#.*"\(.*/stdint.h\)".*#\1#
16193 s#^/[^/]#//&#
16196 }'`'"'
16197 else
16198 gl_cv_next_stdint_h='<'stdint.h'>'
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16204 $as_echo "$gl_cv_next_stdint_h" >&6; }
16206 NEXT_STDINT_H=$gl_cv_next_stdint_h
16208 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16209 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16210 gl_next_as_first_directive='<'stdint.h'>'
16211 else
16212 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16213 gl_next_as_first_directive=$gl_cv_next_stdint_h
16215 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16220 if test $ac_cv_header_stdint_h = yes; then
16221 HAVE_STDINT_H=1
16222 else
16223 HAVE_STDINT_H=0
16227 if test $ac_cv_header_stdint_h = yes; then
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16229 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16230 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16231 $as_echo_n "(cached) " >&6
16232 else
16233 gl_cv_header_working_stdint_h=no
16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235 /* end confdefs.h. */
16238 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16239 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16240 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16241 #include <stdint.h>
16242 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16243 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16244 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16245 #endif
16248 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16249 included before <wchar.h>. */
16250 #include <stddef.h>
16251 #include <signal.h>
16252 #if HAVE_WCHAR_H
16253 # include <stdio.h>
16254 # include <time.h>
16255 # include <wchar.h>
16256 #endif
16259 #ifdef INT8_MAX
16260 int8_t a1 = INT8_MAX;
16261 int8_t a1min = INT8_MIN;
16262 #endif
16263 #ifdef INT16_MAX
16264 int16_t a2 = INT16_MAX;
16265 int16_t a2min = INT16_MIN;
16266 #endif
16267 #ifdef INT32_MAX
16268 int32_t a3 = INT32_MAX;
16269 int32_t a3min = INT32_MIN;
16270 #endif
16271 #ifdef INT64_MAX
16272 int64_t a4 = INT64_MAX;
16273 int64_t a4min = INT64_MIN;
16274 #endif
16275 #ifdef UINT8_MAX
16276 uint8_t b1 = UINT8_MAX;
16277 #else
16278 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16279 #endif
16280 #ifdef UINT16_MAX
16281 uint16_t b2 = UINT16_MAX;
16282 #endif
16283 #ifdef UINT32_MAX
16284 uint32_t b3 = UINT32_MAX;
16285 #endif
16286 #ifdef UINT64_MAX
16287 uint64_t b4 = UINT64_MAX;
16288 #endif
16289 int_least8_t c1 = INT8_C (0x7f);
16290 int_least8_t c1max = INT_LEAST8_MAX;
16291 int_least8_t c1min = INT_LEAST8_MIN;
16292 int_least16_t c2 = INT16_C (0x7fff);
16293 int_least16_t c2max = INT_LEAST16_MAX;
16294 int_least16_t c2min = INT_LEAST16_MIN;
16295 int_least32_t c3 = INT32_C (0x7fffffff);
16296 int_least32_t c3max = INT_LEAST32_MAX;
16297 int_least32_t c3min = INT_LEAST32_MIN;
16298 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16299 int_least64_t c4max = INT_LEAST64_MAX;
16300 int_least64_t c4min = INT_LEAST64_MIN;
16301 uint_least8_t d1 = UINT8_C (0xff);
16302 uint_least8_t d1max = UINT_LEAST8_MAX;
16303 uint_least16_t d2 = UINT16_C (0xffff);
16304 uint_least16_t d2max = UINT_LEAST16_MAX;
16305 uint_least32_t d3 = UINT32_C (0xffffffff);
16306 uint_least32_t d3max = UINT_LEAST32_MAX;
16307 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16308 uint_least64_t d4max = UINT_LEAST64_MAX;
16309 int_fast8_t e1 = INT_FAST8_MAX;
16310 int_fast8_t e1min = INT_FAST8_MIN;
16311 int_fast16_t e2 = INT_FAST16_MAX;
16312 int_fast16_t e2min = INT_FAST16_MIN;
16313 int_fast32_t e3 = INT_FAST32_MAX;
16314 int_fast32_t e3min = INT_FAST32_MIN;
16315 int_fast64_t e4 = INT_FAST64_MAX;
16316 int_fast64_t e4min = INT_FAST64_MIN;
16317 uint_fast8_t f1 = UINT_FAST8_MAX;
16318 uint_fast16_t f2 = UINT_FAST16_MAX;
16319 uint_fast32_t f3 = UINT_FAST32_MAX;
16320 uint_fast64_t f4 = UINT_FAST64_MAX;
16321 #ifdef INTPTR_MAX
16322 intptr_t g = INTPTR_MAX;
16323 intptr_t gmin = INTPTR_MIN;
16324 #endif
16325 #ifdef UINTPTR_MAX
16326 uintptr_t h = UINTPTR_MAX;
16327 #endif
16328 intmax_t i = INTMAX_MAX;
16329 uintmax_t j = UINTMAX_MAX;
16331 #include <limits.h> /* for CHAR_BIT */
16332 #define TYPE_MINIMUM(t) \
16333 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16334 #define TYPE_MAXIMUM(t) \
16335 ((t) ((t) 0 < (t) -1 \
16336 ? (t) -1 \
16337 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16338 struct s {
16339 int check_PTRDIFF:
16340 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16341 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16342 ? 1 : -1;
16343 /* Detect bug in FreeBSD 6.0 / ia64. */
16344 int check_SIG_ATOMIC:
16345 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16346 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16347 ? 1 : -1;
16348 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16349 int check_WCHAR:
16350 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16351 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16352 ? 1 : -1;
16353 /* Detect bug in mingw. */
16354 int check_WINT:
16355 WINT_MIN == TYPE_MINIMUM (wint_t)
16356 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16357 ? 1 : -1;
16359 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16360 int check_UINT8_C:
16361 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16362 int check_UINT16_C:
16363 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16365 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16366 #ifdef UINT8_MAX
16367 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16368 #endif
16369 #ifdef UINT16_MAX
16370 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16371 #endif
16372 #ifdef UINT32_MAX
16373 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16374 #endif
16375 #ifdef UINT64_MAX
16376 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16377 #endif
16378 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16379 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16380 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16381 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16382 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16383 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16384 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16385 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16386 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16387 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16388 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16392 main ()
16396 return 0;
16398 _ACEOF
16399 if ac_fn_c_try_compile "$LINENO"; then :
16400 if test "$cross_compiling" = yes; then :
16401 gl_cv_header_working_stdint_h=yes
16403 else
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16408 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16409 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16410 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16411 #include <stdint.h>
16414 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16415 included before <wchar.h>. */
16416 #include <stddef.h>
16417 #include <signal.h>
16418 #if HAVE_WCHAR_H
16419 # include <stdio.h>
16420 # include <time.h>
16421 # include <wchar.h>
16422 #endif
16425 #include <stdio.h>
16426 #include <string.h>
16427 #define MVAL(macro) MVAL1(macro)
16428 #define MVAL1(expression) #expression
16429 static const char *macro_values[] =
16431 #ifdef INT8_MAX
16432 MVAL (INT8_MAX),
16433 #endif
16434 #ifdef INT16_MAX
16435 MVAL (INT16_MAX),
16436 #endif
16437 #ifdef INT32_MAX
16438 MVAL (INT32_MAX),
16439 #endif
16440 #ifdef INT64_MAX
16441 MVAL (INT64_MAX),
16442 #endif
16443 #ifdef UINT8_MAX
16444 MVAL (UINT8_MAX),
16445 #endif
16446 #ifdef UINT16_MAX
16447 MVAL (UINT16_MAX),
16448 #endif
16449 #ifdef UINT32_MAX
16450 MVAL (UINT32_MAX),
16451 #endif
16452 #ifdef UINT64_MAX
16453 MVAL (UINT64_MAX),
16454 #endif
16455 NULL
16459 main ()
16462 const char **mv;
16463 for (mv = macro_values; *mv != NULL; mv++)
16465 const char *value = *mv;
16466 /* Test whether it looks like a cast expression. */
16467 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16468 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16469 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16470 || strncmp (value, "((int)"/*)*/, 6) == 0
16471 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16472 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16473 return mv - macro_values + 1;
16475 return 0;
16478 return 0;
16480 _ACEOF
16481 if ac_fn_c_try_run "$LINENO"; then :
16482 gl_cv_header_working_stdint_h=yes
16484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16485 conftest.$ac_objext conftest.beam conftest.$ac_ext
16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16494 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16496 if test "$gl_cv_header_working_stdint_h" = yes; then
16497 STDINT_H=
16498 else
16499 for ac_header in sys/inttypes.h sys/bitypes.h
16500 do :
16501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16502 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16503 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16504 cat >>confdefs.h <<_ACEOF
16505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16506 _ACEOF
16510 done
16512 if test $ac_cv_header_sys_inttypes_h = yes; then
16513 HAVE_SYS_INTTYPES_H=1
16514 else
16515 HAVE_SYS_INTTYPES_H=0
16518 if test $ac_cv_header_sys_bitypes_h = yes; then
16519 HAVE_SYS_BITYPES_H=1
16520 else
16521 HAVE_SYS_BITYPES_H=0
16527 if test $APPLE_UNIVERSAL_BUILD = 0; then
16530 for gltype in ptrdiff_t size_t ; do
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16532 $as_echo_n "checking for bit size of $gltype... " >&6; }
16533 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
16534 $as_echo_n "(cached) " >&6
16535 else
16536 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16537 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16538 included before <wchar.h>. */
16539 #include <stddef.h>
16540 #include <signal.h>
16541 #if HAVE_WCHAR_H
16542 # include <stdio.h>
16543 # include <time.h>
16544 # include <wchar.h>
16545 #endif
16547 #include <limits.h>"; then :
16549 else
16550 result=unknown
16553 eval gl_cv_bitsizeof_${gltype}=\$result
16556 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16558 $as_echo "$ac_res" >&6; }
16559 eval result=\$gl_cv_bitsizeof_${gltype}
16560 if test $result = unknown; then
16561 result=0
16563 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16564 cat >>confdefs.h <<_ACEOF
16565 #define BITSIZEOF_${GLTYPE} $result
16566 _ACEOF
16568 eval BITSIZEOF_${GLTYPE}=\$result
16569 done
16575 for gltype in sig_atomic_t wchar_t wint_t ; do
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16577 $as_echo_n "checking for bit size of $gltype... " >&6; }
16578 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
16579 $as_echo_n "(cached) " >&6
16580 else
16581 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16582 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16583 included before <wchar.h>. */
16584 #include <stddef.h>
16585 #include <signal.h>
16586 #if HAVE_WCHAR_H
16587 # include <stdio.h>
16588 # include <time.h>
16589 # include <wchar.h>
16590 #endif
16592 #include <limits.h>"; then :
16594 else
16595 result=unknown
16598 eval gl_cv_bitsizeof_${gltype}=\$result
16601 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16603 $as_echo "$ac_res" >&6; }
16604 eval result=\$gl_cv_bitsizeof_${gltype}
16605 if test $result = unknown; then
16606 result=0
16608 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16609 cat >>confdefs.h <<_ACEOF
16610 #define BITSIZEOF_${GLTYPE} $result
16611 _ACEOF
16613 eval BITSIZEOF_${GLTYPE}=\$result
16614 done
16619 for gltype in sig_atomic_t wchar_t wint_t ; do
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16621 $as_echo_n "checking whether $gltype is signed... " >&6; }
16622 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
16623 $as_echo_n "(cached) " >&6
16624 else
16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16628 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16629 included before <wchar.h>. */
16630 #include <stddef.h>
16631 #include <signal.h>
16632 #if HAVE_WCHAR_H
16633 # include <stdio.h>
16634 # include <time.h>
16635 # include <wchar.h>
16636 #endif
16638 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16640 main ()
16644 return 0;
16646 _ACEOF
16647 if ac_fn_c_try_compile "$LINENO"; then :
16648 result=yes
16649 else
16650 result=no
16652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16653 eval gl_cv_type_${gltype}_signed=\$result
16656 eval ac_res=\$gl_cv_type_${gltype}_signed
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16658 $as_echo "$ac_res" >&6; }
16659 eval result=\$gl_cv_type_${gltype}_signed
16660 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16661 if test "$result" = yes; then
16662 cat >>confdefs.h <<_ACEOF
16663 #define HAVE_SIGNED_${GLTYPE} 1
16664 _ACEOF
16666 eval HAVE_SIGNED_${GLTYPE}=1
16667 else
16668 eval HAVE_SIGNED_${GLTYPE}=0
16670 done
16673 gl_cv_type_ptrdiff_t_signed=yes
16674 gl_cv_type_size_t_signed=no
16675 if test $APPLE_UNIVERSAL_BUILD = 0; then
16678 for gltype in ptrdiff_t size_t ; do
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16680 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16681 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
16682 $as_echo_n "(cached) " >&6
16683 else
16684 eval gl_cv_type_${gltype}_suffix=no
16685 eval result=\$gl_cv_type_${gltype}_signed
16686 if test "$result" = yes; then
16687 glsufu=
16688 else
16689 glsufu=u
16691 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16692 case $glsuf in
16693 '') gltype1='int';;
16694 l) gltype1='long int';;
16695 ll) gltype1='long long int';;
16696 i64) gltype1='__int64';;
16697 u) gltype1='unsigned int';;
16698 ul) gltype1='unsigned long int';;
16699 ull) gltype1='unsigned long long int';;
16700 ui64)gltype1='unsigned __int64';;
16701 esac
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16705 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16706 included before <wchar.h>. */
16707 #include <stddef.h>
16708 #include <signal.h>
16709 #if HAVE_WCHAR_H
16710 # include <stdio.h>
16711 # include <time.h>
16712 # include <wchar.h>
16713 #endif
16715 extern $gltype foo;
16716 extern $gltype1 foo;
16718 main ()
16722 return 0;
16724 _ACEOF
16725 if ac_fn_c_try_compile "$LINENO"; then :
16726 eval gl_cv_type_${gltype}_suffix=\$glsuf
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 eval result=\$gl_cv_type_${gltype}_suffix
16730 test "$result" != no && break
16731 done
16733 eval ac_res=\$gl_cv_type_${gltype}_suffix
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16735 $as_echo "$ac_res" >&6; }
16736 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16737 eval result=\$gl_cv_type_${gltype}_suffix
16738 test "$result" = no && result=
16739 eval ${GLTYPE}_SUFFIX=\$result
16740 cat >>confdefs.h <<_ACEOF
16741 #define ${GLTYPE}_SUFFIX $result
16742 _ACEOF
16744 done
16750 for gltype in sig_atomic_t wchar_t wint_t ; do
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16752 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16753 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
16754 $as_echo_n "(cached) " >&6
16755 else
16756 eval gl_cv_type_${gltype}_suffix=no
16757 eval result=\$gl_cv_type_${gltype}_signed
16758 if test "$result" = yes; then
16759 glsufu=
16760 else
16761 glsufu=u
16763 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16764 case $glsuf in
16765 '') gltype1='int';;
16766 l) gltype1='long int';;
16767 ll) gltype1='long long int';;
16768 i64) gltype1='__int64';;
16769 u) gltype1='unsigned int';;
16770 ul) gltype1='unsigned long int';;
16771 ull) gltype1='unsigned long long int';;
16772 ui64)gltype1='unsigned __int64';;
16773 esac
16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16777 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16778 included before <wchar.h>. */
16779 #include <stddef.h>
16780 #include <signal.h>
16781 #if HAVE_WCHAR_H
16782 # include <stdio.h>
16783 # include <time.h>
16784 # include <wchar.h>
16785 #endif
16787 extern $gltype foo;
16788 extern $gltype1 foo;
16790 main ()
16794 return 0;
16796 _ACEOF
16797 if ac_fn_c_try_compile "$LINENO"; then :
16798 eval gl_cv_type_${gltype}_suffix=\$glsuf
16800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16801 eval result=\$gl_cv_type_${gltype}_suffix
16802 test "$result" != no && break
16803 done
16805 eval ac_res=\$gl_cv_type_${gltype}_suffix
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16807 $as_echo "$ac_res" >&6; }
16808 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16809 eval result=\$gl_cv_type_${gltype}_suffix
16810 test "$result" = no && result=
16811 eval ${GLTYPE}_SUFFIX=\$result
16812 cat >>confdefs.h <<_ACEOF
16813 #define ${GLTYPE}_SUFFIX $result
16814 _ACEOF
16816 done
16820 STDINT_H=stdint.h
16824 # Code from module stdlib:
16835 if test $gl_cv_have_include_next = yes; then
16836 gl_cv_next_stdlib_h='<'stdlib.h'>'
16837 else
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16839 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16840 if test "${gl_cv_next_stdlib_h+set}" = set; then :
16841 $as_echo_n "(cached) " >&6
16842 else
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16846 #include <stdlib.h>
16848 _ACEOF
16849 case "$host_os" in
16850 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16851 *) gl_absname_cpp="$ac_cpp" ;;
16852 esac
16853 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16854 sed -n '\#/stdlib.h#{
16855 s#.*"\(.*/stdlib.h\)".*#\1#
16856 s#^/[^/]#//&#
16859 }'`'"'
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16864 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16866 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16868 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16869 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16870 gl_next_as_first_directive='<'stdlib.h'>'
16871 else
16872 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16873 gl_next_as_first_directive=$gl_cv_next_stdlib_h
16875 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
16883 # Code from module strftime:
16894 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
16897 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16905 $as_echo "#define my_strftime nstrftime" >>confdefs.h
16909 # Code from module sys_stat:
16926 if test $gl_cv_have_include_next = yes; then
16927 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16928 else
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16930 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16931 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
16932 $as_echo_n "(cached) " >&6
16933 else
16935 if test $ac_cv_header_sys_stat_h = yes; then
16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16940 #include <sys/stat.h>
16942 _ACEOF
16943 case "$host_os" in
16944 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16945 *) gl_absname_cpp="$ac_cpp" ;;
16946 esac
16947 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16948 sed -n '\#/sys/stat.h#{
16949 s#.*"\(.*/sys/stat.h\)".*#\1#
16950 s#^/[^/]#//&#
16953 }'`'"'
16954 else
16955 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16961 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
16963 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
16965 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16966 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16967 gl_next_as_first_directive='<'sys/stat.h'>'
16968 else
16969 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16970 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
16972 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
16978 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
16979 #include <sys/stat.h>
16981 if test "x$ac_cv_type_nlink_t" = x""yes; then :
16983 else
16985 $as_echo "#define nlink_t int" >>confdefs.h
16993 # Code from module time:
16997 # Code from module time_r:
17005 if test $ac_cv_have_decl_localtime_r = no; then
17006 HAVE_DECL_LOCALTIME_R=0
17010 if test $ac_cv_func_localtime_r = yes; then
17011 HAVE_LOCALTIME_R=1
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17013 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17014 if test "${gl_cv_time_r_posix+set}" = set; then :
17015 $as_echo_n "(cached) " >&6
17016 else
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17019 #include <time.h>
17021 main ()
17023 /* We don't need to append 'restrict's to the argument types,
17024 even though the POSIX signature has the 'restrict's,
17025 since C99 says they can't affect type compatibility. */
17026 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17027 if (ptr) return 0;
17028 /* Check the return type is a pointer.
17029 On HP-UX 10 it is 'int'. */
17030 *localtime_r (0, 0);
17032 return 0;
17035 _ACEOF
17036 if ac_fn_c_try_compile "$LINENO"; then :
17037 gl_cv_time_r_posix=yes
17038 else
17039 gl_cv_time_r_posix=no
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17045 $as_echo "$gl_cv_time_r_posix" >&6; }
17046 if test $gl_cv_time_r_posix = yes; then
17047 REPLACE_LOCALTIME_R=0
17048 else
17049 REPLACE_LOCALTIME_R=1
17051 else
17052 HAVE_LOCALTIME_R=0
17054 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
17063 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
17073 GNULIB_TIME_R=1
17077 # Code from module unistd:
17091 if test $gl_cv_have_include_next = yes; then
17092 gl_cv_next_unistd_h='<'unistd.h'>'
17093 else
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17095 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17096 if test "${gl_cv_next_unistd_h+set}" = set; then :
17097 $as_echo_n "(cached) " >&6
17098 else
17100 if test $ac_cv_header_unistd_h = yes; then
17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104 /* end confdefs.h. */
17105 #include <unistd.h>
17107 _ACEOF
17108 case "$host_os" in
17109 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17110 *) gl_absname_cpp="$ac_cpp" ;;
17111 esac
17112 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17113 sed -n '\#/unistd.h#{
17114 s#.*"\(.*/unistd.h\)".*#\1#
17115 s#^/[^/]#//&#
17118 }'`'"'
17119 else
17120 gl_cv_next_unistd_h='<'unistd.h'>'
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17126 $as_echo "$gl_cv_next_unistd_h" >&6; }
17128 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17130 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17132 gl_next_as_first_directive='<'unistd.h'>'
17133 else
17134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17135 gl_next_as_first_directive=$gl_cv_next_unistd_h
17137 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17142 if test $ac_cv_header_unistd_h = yes; then
17143 HAVE_UNISTD_H=1
17144 else
17145 HAVE_UNISTD_H=0
17151 # Code from module warn-on-use:
17152 # End of code from modules
17162 gltests_libdeps=
17163 gltests_ltlibdeps=
17173 gl_source_base='tests'
17174 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
17176 gl_module_indicator_condition=$gltests_WITNESS
17186 LIBGNU_LIBDEPS="$gl_libdeps"
17188 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17192 # UNIX98 PTYs.
17193 for ac_func in grantpt
17194 do :
17195 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
17196 if test "x$ac_cv_func_grantpt" = x""yes; then :
17197 cat >>confdefs.h <<_ACEOF
17198 #define HAVE_GRANTPT 1
17199 _ACEOF
17202 done
17205 # PTY-related GNU extensions.
17206 for ac_func in getpt
17207 do :
17208 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
17209 if test "x$ac_cv_func_getpt" = x""yes; then :
17210 cat >>confdefs.h <<_ACEOF
17211 #define HAVE_GETPT 1
17212 _ACEOF
17215 done
17218 # Check this now, so that we will NOT find the above functions in ncurses.
17219 # That is because we have not set up to link ncurses in lib-src.
17220 # It's better to believe a function is not available
17221 # than to expect to find it in ncurses.
17222 # Also we need tputs and friends to be able to build at all.
17223 have_tputs_et_al=true
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17225 $as_echo_n "checking for library containing tputs... " >&6; }
17226 if test "${ac_cv_search_tputs+set}" = set; then :
17227 $as_echo_n "(cached) " >&6
17228 else
17229 ac_func_search_save_LIBS=$LIBS
17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h. */
17233 /* Override any GCC internal prototype to avoid an error.
17234 Use char because int might match the return type of a GCC
17235 builtin and then its argument prototype would still apply. */
17236 #ifdef __cplusplus
17237 extern "C"
17238 #endif
17239 char tputs ();
17241 main ()
17243 return tputs ();
17245 return 0;
17247 _ACEOF
17248 for ac_lib in '' ncurses terminfo termcap; do
17249 if test -z "$ac_lib"; then
17250 ac_res="none required"
17251 else
17252 ac_res=-l$ac_lib
17253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17255 if ac_fn_c_try_link "$LINENO"; then :
17256 ac_cv_search_tputs=$ac_res
17258 rm -f core conftest.err conftest.$ac_objext \
17259 conftest$ac_exeext
17260 if test "${ac_cv_search_tputs+set}" = set; then :
17261 break
17263 done
17264 if test "${ac_cv_search_tputs+set}" = set; then :
17266 else
17267 ac_cv_search_tputs=no
17269 rm conftest.$ac_ext
17270 LIBS=$ac_func_search_save_LIBS
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17273 $as_echo "$ac_cv_search_tputs" >&6; }
17274 ac_res=$ac_cv_search_tputs
17275 if test "$ac_res" != no; then :
17276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17278 else
17279 have_tputs_et_al=false
17282 if test "$have_tputs_et_al" != true; then
17283 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
17284 Maybe some development libraries/packages are missing? Try installing
17285 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17287 # Must define this when any termcap library is found.
17289 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17291 ## FIXME This was the cpp logic, but I am not sure it is right.
17292 ## The above test has not necessarily found libncurses.
17293 HAVE_LIBNCURSES=yes
17295 ## Use terminfo instead of termcap?
17296 ## Note only system files NOT using terminfo are:
17297 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17298 ## darwin|gnu without ncurses.
17299 TERMINFO=no
17300 LIBS_TERMCAP=
17301 case "$opsys" in
17302 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17303 ## hpux10-20: Use the system provided termcap(3) library.
17304 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17305 ## is necessary. Otherwise Emacs dumps core when run -nw.
17306 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
17308 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17309 ## The ncurses library has been moved out of the System framework in
17310 ## Mac OS X 10.2. So if configure detects it, set the command-line
17311 ## option to use it.
17312 darwin|gnu*)
17313 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17314 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17315 TERMINFO=yes
17316 LIBS_TERMCAP="-lncurses"
17320 freebsd)
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17322 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17323 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
17324 $as_echo_n "(cached) " >&6
17325 else
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328 #include <osreldate.h>
17330 main ()
17332 #if __FreeBSD_version < 400000
17333 fail;
17334 #endif
17337 return 0;
17339 _ACEOF
17340 if ac_fn_c_try_link "$LINENO"; then :
17341 emacs_cv_freebsd_terminfo=yes
17342 else
17343 emacs_cv_freebsd_terminfo=no
17345 rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17351 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17353 if test $emacs_cv_freebsd_terminfo = yes; then
17354 TERMINFO=yes
17355 LIBS_TERMCAP="-lncurses"
17356 else
17357 LIBS_TERMCAP="-ltermcap"
17361 netbsd)
17362 if test $ac_cv_search_tputs = -lterminfo; then
17363 TERMINFO=yes
17364 LIBS_TERMCAP="-lterminfo"
17365 else
17366 LIBS_TERMCAP="-ltermcap"
17370 esac
17372 case "$opsys" in
17373 ## hpux: Make sure we get select from libc rather than from libcurses
17374 ## because libcurses on HPUX 10.10 has a broken version of select.
17375 ## We used to use -lc -lcurses, but this may be cleaner.
17376 hpux*) LIBS_TERMCAP="-ltermcap" ;;
17378 openbsd) LIBS_TERMCAP="-lncurses" ;;
17380 ## Must use system termcap, if we use any termcap. It does special things.
17381 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
17382 esac
17384 TERMCAP_OBJ=tparam.o
17385 if test $TERMINFO = yes; then
17387 $as_echo "#define TERMINFO 1" >>confdefs.h
17390 ## Default used to be -ltermcap. Add a case above if need something else.
17391 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
17393 TERMCAP_OBJ=terminfo.o
17399 # Do we have res_init, for detecting changes in /etc/resolv.conf?
17400 resolv=no
17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17402 /* end confdefs.h. */
17403 #include <netinet/in.h>
17404 #include <arpa/nameser.h>
17405 #include <resolv.h>
17407 main ()
17409 return res_init();
17411 return 0;
17413 _ACEOF
17414 if ac_fn_c_try_link "$LINENO"; then :
17415 have_res_init=yes
17416 else
17417 have_res_init=no
17419 rm -f core conftest.err conftest.$ac_objext \
17420 conftest$ac_exeext conftest.$ac_ext
17421 if test "$have_res_init" = no; then
17422 OLIBS="$LIBS"
17423 LIBS="$LIBS -lresolv"
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17425 $as_echo_n "checking for res_init with -lresolv... " >&6; }
17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h. */
17428 #include <netinet/in.h>
17429 #include <arpa/nameser.h>
17430 #include <resolv.h>
17432 main ()
17434 return res_init();
17436 return 0;
17438 _ACEOF
17439 if ac_fn_c_try_link "$LINENO"; then :
17440 have_res_init=yes
17441 else
17442 have_res_init=no
17444 rm -f core conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17447 $as_echo "$have_res_init" >&6; }
17448 if test "$have_res_init" = yes ; then
17449 resolv=yes
17451 LIBS="$OLIBS"
17454 if test "$have_res_init" = yes; then
17456 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17460 # Do we need the Hesiod library to provide the support routines?
17461 LIBHESIOD=
17462 if test "$with_hesiod" != no ; then
17463 # Don't set $LIBS here -- see comments above. FIXME which comments?
17464 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
17465 if test "x$ac_cv_func_res_send" = x""yes; then :
17467 else
17468 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
17469 if test "x$ac_cv_func___res_send" = x""yes; then :
17471 else
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17473 $as_echo_n "checking for res_send in -lresolv... " >&6; }
17474 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
17475 $as_echo_n "(cached) " >&6
17476 else
17477 ac_check_lib_save_LIBS=$LIBS
17478 LIBS="-lresolv $LIBS"
17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17482 /* Override any GCC internal prototype to avoid an error.
17483 Use char because int might match the return type of a GCC
17484 builtin and then its argument prototype would still apply. */
17485 #ifdef __cplusplus
17486 extern "C"
17487 #endif
17488 char res_send ();
17490 main ()
17492 return res_send ();
17494 return 0;
17496 _ACEOF
17497 if ac_fn_c_try_link "$LINENO"; then :
17498 ac_cv_lib_resolv_res_send=yes
17499 else
17500 ac_cv_lib_resolv_res_send=no
17502 rm -f core conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17504 LIBS=$ac_check_lib_save_LIBS
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17507 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
17508 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
17509 resolv=yes
17510 else
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17512 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
17513 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
17514 $as_echo_n "(cached) " >&6
17515 else
17516 ac_check_lib_save_LIBS=$LIBS
17517 LIBS="-lresolv $LIBS"
17518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17521 /* Override any GCC internal prototype to avoid an error.
17522 Use char because int might match the return type of a GCC
17523 builtin and then its argument prototype would still apply. */
17524 #ifdef __cplusplus
17525 extern "C"
17526 #endif
17527 char __res_send ();
17529 main ()
17531 return __res_send ();
17533 return 0;
17535 _ACEOF
17536 if ac_fn_c_try_link "$LINENO"; then :
17537 ac_cv_lib_resolv___res_send=yes
17538 else
17539 ac_cv_lib_resolv___res_send=no
17541 rm -f core conftest.err conftest.$ac_objext \
17542 conftest$ac_exeext conftest.$ac_ext
17543 LIBS=$ac_check_lib_save_LIBS
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
17546 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
17547 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
17548 resolv=yes
17557 if test "$resolv" = yes ; then
17558 RESOLVLIB=-lresolv
17559 else
17560 RESOLVLIB=
17562 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
17563 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
17565 else
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
17567 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
17568 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
17569 $as_echo_n "(cached) " >&6
17570 else
17571 ac_check_lib_save_LIBS=$LIBS
17572 LIBS="-lhesiod $RESOLVLIB $LIBS"
17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17576 /* Override any GCC internal prototype to avoid an error.
17577 Use char because int might match the return type of a GCC
17578 builtin and then its argument prototype would still apply. */
17579 #ifdef __cplusplus
17580 extern "C"
17581 #endif
17582 char hes_getmailhost ();
17584 main ()
17586 return hes_getmailhost ();
17588 return 0;
17590 _ACEOF
17591 if ac_fn_c_try_link "$LINENO"; then :
17592 ac_cv_lib_hesiod_hes_getmailhost=yes
17593 else
17594 ac_cv_lib_hesiod_hes_getmailhost=no
17596 rm -f core conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
17598 LIBS=$ac_check_lib_save_LIBS
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17601 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
17602 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
17603 hesiod=yes
17604 else
17611 if test x"$hesiod" = xyes; then
17613 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
17615 LIBHESIOD=-lhesiod
17620 # Do we need libresolv (due to res_init or Hesiod)?
17621 if test "$resolv" = yes ; then
17623 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
17625 LIBRESOLV=-lresolv
17626 else
17627 LIBRESOLV=
17631 # These tell us which Kerberos-related libraries to use.
17632 COM_ERRLIB=
17633 CRYPTOLIB=
17634 KRB5LIB=
17635 DESLIB=
17636 KRB4LIB=
17638 if test "${with_kerberos}" != no; then
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
17640 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
17641 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
17642 $as_echo_n "(cached) " >&6
17643 else
17644 ac_check_lib_save_LIBS=$LIBS
17645 LIBS="-lcom_err $LIBS"
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17649 /* Override any GCC internal prototype to avoid an error.
17650 Use char because int might match the return type of a GCC
17651 builtin and then its argument prototype would still apply. */
17652 #ifdef __cplusplus
17653 extern "C"
17654 #endif
17655 char com_err ();
17657 main ()
17659 return com_err ();
17661 return 0;
17663 _ACEOF
17664 if ac_fn_c_try_link "$LINENO"; then :
17665 ac_cv_lib_com_err_com_err=yes
17666 else
17667 ac_cv_lib_com_err_com_err=no
17669 rm -f core conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17671 LIBS=$ac_check_lib_save_LIBS
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
17674 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
17675 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
17676 have_com_err=yes
17677 else
17678 have_com_err=no
17681 if test $have_com_err = yes; then
17682 COM_ERRLIB=-lcom_err
17683 LIBS="$COM_ERRLIB $LIBS"
17685 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17689 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
17690 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
17691 $as_echo_n "(cached) " >&6
17692 else
17693 ac_check_lib_save_LIBS=$LIBS
17694 LIBS="-lcrypto $LIBS"
17695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17696 /* end confdefs.h. */
17698 /* Override any GCC internal prototype to avoid an error.
17699 Use char because int might match the return type of a GCC
17700 builtin and then its argument prototype would still apply. */
17701 #ifdef __cplusplus
17702 extern "C"
17703 #endif
17704 char mit_des_cbc_encrypt ();
17706 main ()
17708 return mit_des_cbc_encrypt ();
17710 return 0;
17712 _ACEOF
17713 if ac_fn_c_try_link "$LINENO"; then :
17714 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17715 else
17716 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17718 rm -f core conftest.err conftest.$ac_objext \
17719 conftest$ac_exeext conftest.$ac_ext
17720 LIBS=$ac_check_lib_save_LIBS
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17723 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
17724 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
17725 have_crypto=yes
17726 else
17727 have_crypto=no
17730 if test $have_crypto = yes; then
17731 CRYPTOLIB=-lcrypto
17732 LIBS="$CRYPTOLIB $LIBS"
17734 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17738 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
17739 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
17740 $as_echo_n "(cached) " >&6
17741 else
17742 ac_check_lib_save_LIBS=$LIBS
17743 LIBS="-lk5crypto $LIBS"
17744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745 /* end confdefs.h. */
17747 /* Override any GCC internal prototype to avoid an error.
17748 Use char because int might match the return type of a GCC
17749 builtin and then its argument prototype would still apply. */
17750 #ifdef __cplusplus
17751 extern "C"
17752 #endif
17753 char mit_des_cbc_encrypt ();
17755 main ()
17757 return mit_des_cbc_encrypt ();
17759 return 0;
17761 _ACEOF
17762 if ac_fn_c_try_link "$LINENO"; then :
17763 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17764 else
17765 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17767 rm -f core conftest.err conftest.$ac_objext \
17768 conftest$ac_exeext conftest.$ac_ext
17769 LIBS=$ac_check_lib_save_LIBS
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17772 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
17773 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
17774 have_k5crypto=yes
17775 else
17776 have_k5crypto=no
17779 if test $have_k5crypto = yes; then
17780 CRYPTOLIB=-lk5crypto
17781 LIBS="$CRYPTOLIB $LIBS"
17783 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17787 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
17788 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
17789 $as_echo_n "(cached) " >&6
17790 else
17791 ac_check_lib_save_LIBS=$LIBS
17792 LIBS="-lkrb5 $LIBS"
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17796 /* Override any GCC internal prototype to avoid an error.
17797 Use char because int might match the return type of a GCC
17798 builtin and then its argument prototype would still apply. */
17799 #ifdef __cplusplus
17800 extern "C"
17801 #endif
17802 char krb5_init_context ();
17804 main ()
17806 return krb5_init_context ();
17808 return 0;
17810 _ACEOF
17811 if ac_fn_c_try_link "$LINENO"; then :
17812 ac_cv_lib_krb5_krb5_init_context=yes
17813 else
17814 ac_cv_lib_krb5_krb5_init_context=no
17816 rm -f core conftest.err conftest.$ac_objext \
17817 conftest$ac_exeext conftest.$ac_ext
17818 LIBS=$ac_check_lib_save_LIBS
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17821 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17822 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
17823 have_krb5=yes
17824 else
17825 have_krb5=no
17828 if test $have_krb5=yes; then
17829 KRB5LIB=-lkrb5
17830 LIBS="$KRB5LIB $LIBS"
17832 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
17835 if test "${with_kerberos5}" = no; then
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17837 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17838 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
17839 $as_echo_n "(cached) " >&6
17840 else
17841 ac_check_lib_save_LIBS=$LIBS
17842 LIBS="-ldes425 $LIBS"
17843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17849 #ifdef __cplusplus
17850 extern "C"
17851 #endif
17852 char des_cbc_encrypt ();
17854 main ()
17856 return des_cbc_encrypt ();
17858 return 0;
17860 _ACEOF
17861 if ac_fn_c_try_link "$LINENO"; then :
17862 ac_cv_lib_des425_des_cbc_encrypt=yes
17863 else
17864 ac_cv_lib_des425_des_cbc_encrypt=no
17866 rm -f core conftest.err conftest.$ac_objext \
17867 conftest$ac_exeext conftest.$ac_ext
17868 LIBS=$ac_check_lib_save_LIBS
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17871 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17872 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
17873 have_des425=yes
17874 else
17875 have_des425=no
17878 if test $have_des425 = yes; then
17879 DESLIB=-ldes425
17880 LIBS="$DESLIB $LIBS"
17882 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
17884 else
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17886 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17887 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
17888 $as_echo_n "(cached) " >&6
17889 else
17890 ac_check_lib_save_LIBS=$LIBS
17891 LIBS="-ldes $LIBS"
17892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17895 /* Override any GCC internal prototype to avoid an error.
17896 Use char because int might match the return type of a GCC
17897 builtin and then its argument prototype would still apply. */
17898 #ifdef __cplusplus
17899 extern "C"
17900 #endif
17901 char des_cbc_encrypt ();
17903 main ()
17905 return des_cbc_encrypt ();
17907 return 0;
17909 _ACEOF
17910 if ac_fn_c_try_link "$LINENO"; then :
17911 ac_cv_lib_des_des_cbc_encrypt=yes
17912 else
17913 ac_cv_lib_des_des_cbc_encrypt=no
17915 rm -f core conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917 LIBS=$ac_check_lib_save_LIBS
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17920 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17921 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
17922 have_des=yes
17923 else
17924 have_des=no
17927 if test $have_des = yes; then
17928 DESLIB=-ldes
17929 LIBS="$DESLIB $LIBS"
17931 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
17936 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
17937 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
17938 $as_echo_n "(cached) " >&6
17939 else
17940 ac_check_lib_save_LIBS=$LIBS
17941 LIBS="-lkrb4 $LIBS"
17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17943 /* end confdefs.h. */
17945 /* Override any GCC internal prototype to avoid an error.
17946 Use char because int might match the return type of a GCC
17947 builtin and then its argument prototype would still apply. */
17948 #ifdef __cplusplus
17949 extern "C"
17950 #endif
17951 char krb_get_cred ();
17953 main ()
17955 return krb_get_cred ();
17957 return 0;
17959 _ACEOF
17960 if ac_fn_c_try_link "$LINENO"; then :
17961 ac_cv_lib_krb4_krb_get_cred=yes
17962 else
17963 ac_cv_lib_krb4_krb_get_cred=no
17965 rm -f core conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 LIBS=$ac_check_lib_save_LIBS
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17970 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
17971 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
17972 have_krb4=yes
17973 else
17974 have_krb4=no
17977 if test $have_krb4 = yes; then
17978 KRB4LIB=-lkrb4
17979 LIBS="$KRB4LIB $LIBS"
17981 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
17983 else
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
17985 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
17986 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
17987 $as_echo_n "(cached) " >&6
17988 else
17989 ac_check_lib_save_LIBS=$LIBS
17990 LIBS="-lkrb $LIBS"
17991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17992 /* end confdefs.h. */
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
17997 #ifdef __cplusplus
17998 extern "C"
17999 #endif
18000 char krb_get_cred ();
18002 main ()
18004 return krb_get_cred ();
18006 return 0;
18008 _ACEOF
18009 if ac_fn_c_try_link "$LINENO"; then :
18010 ac_cv_lib_krb_krb_get_cred=yes
18011 else
18012 ac_cv_lib_krb_krb_get_cred=no
18014 rm -f core conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
18016 LIBS=$ac_check_lib_save_LIBS
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18019 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18020 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
18021 have_krb=yes
18022 else
18023 have_krb=no
18026 if test $have_krb = yes; then
18027 KRB4LIB=-lkrb
18028 LIBS="$KRB4LIB $LIBS"
18030 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18036 if test "${with_kerberos5}" != no; then
18037 for ac_header in krb5.h
18038 do :
18039 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18040 if test "x$ac_cv_header_krb5_h" = x""yes; then :
18041 cat >>confdefs.h <<_ACEOF
18042 #define HAVE_KRB5_H 1
18043 _ACEOF
18044 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18046 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
18048 cat >>confdefs.h <<_ACEOF
18049 #define HAVE_KRB5_ERROR_TEXT 1
18050 _ACEOF
18054 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18056 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
18058 cat >>confdefs.h <<_ACEOF
18059 #define HAVE_KRB5_ERROR_E_TEXT 1
18060 _ACEOF
18067 done
18069 else
18070 for ac_header in des.h
18071 do :
18072 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18073 if test "x$ac_cv_header_des_h" = x""yes; then :
18074 cat >>confdefs.h <<_ACEOF
18075 #define HAVE_DES_H 1
18076 _ACEOF
18078 else
18079 for ac_header in kerberosIV/des.h
18080 do :
18081 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18082 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
18083 cat >>confdefs.h <<_ACEOF
18084 #define HAVE_KERBEROSIV_DES_H 1
18085 _ACEOF
18087 else
18088 for ac_header in kerberos/des.h
18089 do :
18090 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18091 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
18092 cat >>confdefs.h <<_ACEOF
18093 #define HAVE_KERBEROS_DES_H 1
18094 _ACEOF
18098 done
18102 done
18106 done
18108 for ac_header in krb.h
18109 do :
18110 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18111 if test "x$ac_cv_header_krb_h" = x""yes; then :
18112 cat >>confdefs.h <<_ACEOF
18113 #define HAVE_KRB_H 1
18114 _ACEOF
18116 else
18117 for ac_header in kerberosIV/krb.h
18118 do :
18119 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18120 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
18121 cat >>confdefs.h <<_ACEOF
18122 #define HAVE_KERBEROSIV_KRB_H 1
18123 _ACEOF
18125 else
18126 for ac_header in kerberos/krb.h
18127 do :
18128 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18129 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
18130 cat >>confdefs.h <<_ACEOF
18131 #define HAVE_KERBEROS_KRB_H 1
18132 _ACEOF
18136 done
18140 done
18144 done
18147 for ac_header in com_err.h
18148 do :
18149 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18150 if test "x$ac_cv_header_com_err_h" = x""yes; then :
18151 cat >>confdefs.h <<_ACEOF
18152 #define HAVE_COM_ERR_H 1
18153 _ACEOF
18157 done
18167 # Solaris requires -lintl if you want strerror (which calls dgettext)
18168 # to return localized messages.
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18170 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18171 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
18172 $as_echo_n "(cached) " >&6
18173 else
18174 ac_check_lib_save_LIBS=$LIBS
18175 LIBS="-lintl $LIBS"
18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h. */
18179 /* Override any GCC internal prototype to avoid an error.
18180 Use char because int might match the return type of a GCC
18181 builtin and then its argument prototype would still apply. */
18182 #ifdef __cplusplus
18183 extern "C"
18184 #endif
18185 char dgettext ();
18187 main ()
18189 return dgettext ();
18191 return 0;
18193 _ACEOF
18194 if ac_fn_c_try_link "$LINENO"; then :
18195 ac_cv_lib_intl_dgettext=yes
18196 else
18197 ac_cv_lib_intl_dgettext=no
18199 rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18201 LIBS=$ac_check_lib_save_LIBS
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18204 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18205 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
18206 cat >>confdefs.h <<_ACEOF
18207 #define HAVE_LIBINTL 1
18208 _ACEOF
18210 LIBS="-lintl $LIBS"
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18216 $as_echo_n "checking whether localtime caches TZ... " >&6; }
18217 if test "${emacs_cv_localtime_cache+set}" = set; then :
18218 $as_echo_n "(cached) " >&6
18219 else
18220 if test x$ac_cv_func_tzset = xyes; then
18221 if test "$cross_compiling" = yes; then :
18222 # If we have tzset, assume the worst when cross-compiling.
18223 emacs_cv_localtime_cache=yes
18224 else
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227 #include <time.h>
18228 char TZ_GMT0[] = "TZ=GMT0";
18229 char TZ_PST8[] = "TZ=PST8";
18230 main()
18232 time_t now = time ((time_t *) 0);
18233 int hour_GMT0, hour_unset;
18234 if (putenv (TZ_GMT0) != 0)
18235 exit (1);
18236 hour_GMT0 = localtime (&now)->tm_hour;
18237 unsetenv("TZ");
18238 hour_unset = localtime (&now)->tm_hour;
18239 if (putenv (TZ_PST8) != 0)
18240 exit (1);
18241 if (localtime (&now)->tm_hour == hour_GMT0)
18242 exit (1);
18243 unsetenv("TZ");
18244 if (localtime (&now)->tm_hour != hour_unset)
18245 exit (1);
18246 exit (0);
18248 _ACEOF
18249 if ac_fn_c_try_run "$LINENO"; then :
18250 emacs_cv_localtime_cache=no
18251 else
18252 emacs_cv_localtime_cache=yes
18254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18255 conftest.$ac_objext conftest.beam conftest.$ac_ext
18258 else
18259 # If we lack tzset, report that localtime does not cache TZ,
18260 # since we can't invalidate the cache if we don't have tzset.
18261 emacs_cv_localtime_cache=no
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18265 $as_echo "$emacs_cv_localtime_cache" >&6; }
18266 if test $emacs_cv_localtime_cache = yes; then
18268 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18272 if test "x$HAVE_TIMEVAL" = xyes; then
18273 for ac_func in gettimeofday
18274 do :
18275 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18276 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
18277 cat >>confdefs.h <<_ACEOF
18278 #define HAVE_GETTIMEOFDAY 1
18279 _ACEOF
18282 done
18284 if test $ac_cv_func_gettimeofday = yes; then
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18286 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18287 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
18288 $as_echo_n "(cached) " >&6
18289 else
18290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h. */
18293 #ifdef TIME_WITH_SYS_TIME
18294 #include <sys/time.h>
18295 #include <time.h>
18296 #else
18297 #ifdef HAVE_SYS_TIME_H
18298 #include <sys/time.h>
18299 #else
18300 #include <time.h>
18301 #endif
18302 #endif
18304 main ()
18306 struct timeval time;
18307 gettimeofday (&time, 0);
18309 return 0;
18311 _ACEOF
18312 if ac_fn_c_try_compile "$LINENO"; then :
18313 emacs_cv_gettimeofday_two_arguments=yes
18314 else
18315 emacs_cv_gettimeofday_two_arguments=no
18317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18320 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18321 if test $emacs_cv_gettimeofday_two_arguments = no; then
18323 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18329 ok_so_far=yes
18330 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
18331 if test "x$ac_cv_func_socket" = x""yes; then :
18333 else
18334 ok_so_far=no
18337 if test $ok_so_far = yes; then
18338 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18339 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
18341 else
18342 ok_so_far=no
18347 if test $ok_so_far = yes; then
18348 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18349 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
18351 else
18352 ok_so_far=no
18357 if test $ok_so_far = yes; then
18359 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18363 if test -f /usr/lpp/X11/bin/smt.exp; then
18365 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18370 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18371 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18373 $as_echo "yes" >&6; }
18375 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18377 else
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18379 $as_echo "no" >&6; }
18382 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18383 if test "x$ac_cv_type_pid_t" = x""yes; then :
18385 else
18387 cat >>confdefs.h <<_ACEOF
18388 #define pid_t int
18389 _ACEOF
18393 for ac_header in vfork.h
18394 do :
18395 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18396 if test "x$ac_cv_header_vfork_h" = x""yes; then :
18397 cat >>confdefs.h <<_ACEOF
18398 #define HAVE_VFORK_H 1
18399 _ACEOF
18403 done
18405 for ac_func in fork vfork
18406 do :
18407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18408 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18409 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18410 cat >>confdefs.h <<_ACEOF
18411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18412 _ACEOF
18415 done
18417 if test "x$ac_cv_func_fork" = xyes; then
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18419 $as_echo_n "checking for working fork... " >&6; }
18420 if test "${ac_cv_func_fork_works+set}" = set; then :
18421 $as_echo_n "(cached) " >&6
18422 else
18423 if test "$cross_compiling" = yes; then :
18424 ac_cv_func_fork_works=cross
18425 else
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 $ac_includes_default
18430 main ()
18433 /* By Ruediger Kuhlmann. */
18434 return fork () < 0;
18437 return 0;
18439 _ACEOF
18440 if ac_fn_c_try_run "$LINENO"; then :
18441 ac_cv_func_fork_works=yes
18442 else
18443 ac_cv_func_fork_works=no
18445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18446 conftest.$ac_objext conftest.beam conftest.$ac_ext
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18451 $as_echo "$ac_cv_func_fork_works" >&6; }
18453 else
18454 ac_cv_func_fork_works=$ac_cv_func_fork
18456 if test "x$ac_cv_func_fork_works" = xcross; then
18457 case $host in
18458 *-*-amigaos* | *-*-msdosdjgpp*)
18459 # Override, as these systems have only a dummy fork() stub
18460 ac_cv_func_fork_works=no
18463 ac_cv_func_fork_works=yes
18465 esac
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18467 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18469 ac_cv_func_vfork_works=$ac_cv_func_vfork
18470 if test "x$ac_cv_func_vfork" = xyes; then
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18472 $as_echo_n "checking for working vfork... " >&6; }
18473 if test "${ac_cv_func_vfork_works+set}" = set; then :
18474 $as_echo_n "(cached) " >&6
18475 else
18476 if test "$cross_compiling" = yes; then :
18477 ac_cv_func_vfork_works=cross
18478 else
18479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18481 /* Thanks to Paul Eggert for this test. */
18482 $ac_includes_default
18483 #include <sys/wait.h>
18484 #ifdef HAVE_VFORK_H
18485 # include <vfork.h>
18486 #endif
18487 /* On some sparc systems, changes by the child to local and incoming
18488 argument registers are propagated back to the parent. The compiler
18489 is told about this with #include <vfork.h>, but some compilers
18490 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18491 static variable whose address is put into a register that is
18492 clobbered by the vfork. */
18493 static void
18494 #ifdef __cplusplus
18495 sparc_address_test (int arg)
18496 # else
18497 sparc_address_test (arg) int arg;
18498 #endif
18500 static pid_t child;
18501 if (!child) {
18502 child = vfork ();
18503 if (child < 0) {
18504 perror ("vfork");
18505 _exit(2);
18507 if (!child) {
18508 arg = getpid();
18509 write(-1, "", 0);
18510 _exit (arg);
18516 main ()
18518 pid_t parent = getpid ();
18519 pid_t child;
18521 sparc_address_test (0);
18523 child = vfork ();
18525 if (child == 0) {
18526 /* Here is another test for sparc vfork register problems. This
18527 test uses lots of local variables, at least as many local
18528 variables as main has allocated so far including compiler
18529 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18530 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18531 reuse the register of parent for one of the local variables,
18532 since it will think that parent can't possibly be used any more
18533 in this routine. Assigning to the local variable will thus
18534 munge parent in the parent process. */
18535 pid_t
18536 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18537 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18538 /* Convince the compiler that p..p7 are live; otherwise, it might
18539 use the same hardware register for all 8 local variables. */
18540 if (p != p1 || p != p2 || p != p3 || p != p4
18541 || p != p5 || p != p6 || p != p7)
18542 _exit(1);
18544 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18545 from child file descriptors. If the child closes a descriptor
18546 before it execs or exits, this munges the parent's descriptor
18547 as well. Test for this by closing stdout in the child. */
18548 _exit(close(fileno(stdout)) != 0);
18549 } else {
18550 int status;
18551 struct stat st;
18553 while (wait(&status) != child)
18555 return (
18556 /* Was there some problem with vforking? */
18557 child < 0
18559 /* Did the child fail? (This shouldn't happen.) */
18560 || status
18562 /* Did the vfork/compiler bug occur? */
18563 || parent != getpid()
18565 /* Did the file descriptor bug occur? */
18566 || fstat(fileno(stdout), &st) != 0
18570 _ACEOF
18571 if ac_fn_c_try_run "$LINENO"; then :
18572 ac_cv_func_vfork_works=yes
18573 else
18574 ac_cv_func_vfork_works=no
18576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18577 conftest.$ac_objext conftest.beam conftest.$ac_ext
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18582 $as_echo "$ac_cv_func_vfork_works" >&6; }
18585 if test "x$ac_cv_func_fork_works" = xcross; then
18586 ac_cv_func_vfork_works=$ac_cv_func_vfork
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18588 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18591 if test "x$ac_cv_func_vfork_works" = xyes; then
18593 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18595 else
18597 $as_echo "#define vfork fork" >>confdefs.h
18600 if test "x$ac_cv_func_fork_works" = xyes; then
18602 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18608 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18609 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
18610 $as_echo_n "(cached) " >&6
18611 else
18612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613 /* end confdefs.h. */
18614 #include <langinfo.h>
18616 main ()
18618 char* cs = nl_langinfo(CODESET);
18620 return 0;
18622 _ACEOF
18623 if ac_fn_c_try_link "$LINENO"; then :
18624 emacs_cv_langinfo_codeset=yes
18625 else
18626 emacs_cv_langinfo_codeset=no
18628 rm -f core conftest.err conftest.$ac_objext \
18629 conftest$ac_exeext conftest.$ac_ext
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
18633 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
18634 if test $emacs_cv_langinfo_codeset = yes; then
18636 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18640 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18641 if test "x$ac_cv_type_size_t" = x""yes; then :
18643 cat >>confdefs.h <<_ACEOF
18644 #define HAVE_SIZE_T 1
18645 _ACEOF
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
18652 $as_echo_n "checking for mbstate_t... " >&6; }
18653 if test "${ac_cv_type_mbstate_t+set}" = set; then :
18654 $as_echo_n "(cached) " >&6
18655 else
18656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18657 /* end confdefs.h. */
18658 $ac_includes_default
18659 # include <wchar.h>
18661 main ()
18663 mbstate_t x; return sizeof x;
18665 return 0;
18667 _ACEOF
18668 if ac_fn_c_try_compile "$LINENO"; then :
18669 ac_cv_type_mbstate_t=yes
18670 else
18671 ac_cv_type_mbstate_t=no
18673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
18676 $as_echo "$ac_cv_type_mbstate_t" >&6; }
18677 if test $ac_cv_type_mbstate_t = yes; then
18679 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
18681 else
18683 $as_echo "#define mbstate_t int" >>confdefs.h
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
18688 $as_echo_n "checking for C restricted array declarations... " >&6; }
18689 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
18690 $as_echo_n "(cached) " >&6
18691 else
18692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18693 /* end confdefs.h. */
18694 void fred (int x[__restrict]);
18696 main ()
18700 return 0;
18702 _ACEOF
18703 if ac_fn_c_try_compile "$LINENO"; then :
18704 emacs_cv_c_restrict_arr=yes
18705 else
18706 emacs_cv_c_restrict_arr=no
18708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
18711 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
18712 if test "$emacs_cv_c_restrict_arr" = yes; then
18714 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
18720 # Set up the CFLAGS for real compilation, so we can substitute it.
18721 CFLAGS="$REAL_CFLAGS"
18722 CPPFLAGS="$REAL_CPPFLAGS"
18724 ## Hack to detect a buggy GCC version.
18725 if test "x$GCC" = xyes \
18726 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
18727 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
18728 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
18729 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
18732 version=$PACKAGE_VERSION
18734 ### Specify what sort of things we'll be editing into Makefile and config.h.
18735 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18738 ## Unused?
18759 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
18760 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
18761 ## end of LIBX_BASE, but nothing ever set it.
18766 ## Used in lwlib/Makefile.in.
18768 if test -n "${machfile}"; then
18769 M_FILE="\$(srcdir)/${machfile}"
18770 else
18771 M_FILE=
18773 S_FILE="\$(srcdir)/${opsysfile}"
18784 cat >>confdefs.h <<_ACEOF
18785 #define EMACS_CONFIGURATION "${canonical}"
18786 _ACEOF
18789 cat >>confdefs.h <<_ACEOF
18790 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18791 _ACEOF
18793 if test -n "$machfile"; then
18795 cat >>confdefs.h <<_ACEOF
18796 #define config_machfile "${machfile}"
18797 _ACEOF
18801 cat >>confdefs.h <<_ACEOF
18802 #define config_opsysfile "${opsysfile}"
18803 _ACEOF
18806 XMENU_OBJ=
18807 XOBJ=
18808 FONT_OBJ=
18809 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18811 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
18813 XMENU_OBJ=xmenu.o
18814 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
18815 FONT_OBJ=xfont.o
18816 if test "$HAVE_XFT" = "yes"; then
18817 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
18818 elif test "$HAVE_FREETYPE" = "yes"; then
18819 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
18827 WIDGET_OBJ=
18828 MOTIF_LIBW=
18829 if test "${USE_X_TOOLKIT}" != "none" ; then
18830 WIDGET_OBJ=widget.o
18832 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
18834 if test "${USE_X_TOOLKIT}" = "LUCID"; then
18836 $as_echo "#define USE_LUCID 1" >>confdefs.h
18838 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
18840 $as_echo "#define USE_MOTIF 1" >>confdefs.h
18842 MOTIF_LIBW=-lXm
18843 case "$opsys" in
18844 gnu-linux)
18845 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
18846 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
18849 unixware)
18850 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
18851 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
18852 MOTIF_LIBW="MOTIF_LIBW -lXimp"
18855 aix4-2)
18856 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
18857 MOTIF_LIBW="$MOTIF_LIBW -li18n"
18859 esac
18860 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
18865 TOOLKIT_LIBW=
18866 case "$USE_X_TOOLKIT" in
18867 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
18868 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
18869 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
18870 esac
18873 if test "$USE_X_TOOLKIT" = "none"; then
18874 LIBXT_OTHER="\$(LIBXSM)"
18875 OLDXMENU_TARGET="really-oldXMenu"
18876 else
18877 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
18878 OLDXMENU_TARGET="really-lwlib"
18882 ## The X Menu stuff is present in the X10 distribution, but missing
18883 ## from X11. If we have X10, just use the installed library;
18884 ## otherwise, use our own copy.
18885 if test "${HAVE_X11}" = "yes" ; then
18887 $as_echo "#define HAVE_X11 1" >>confdefs.h
18890 if test "$USE_X_TOOLKIT" = "none"; then
18891 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
18892 else
18893 OLDXMENU="\${lwlibdir}/liblw.a"
18895 LIBXMENU="\$(OLDXMENU)"
18896 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
18897 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
18898 else
18899 ## For a syntactically valid Makefile; not actually used for anything.
18900 ## See comments in src/Makefile.in.
18901 OLDXMENU=nothing
18902 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
18903 if test "${HAVE_X_WINDOWS}" = "yes"; then
18904 LIBXMENU="-lXMenu"
18905 else
18906 LIBXMENU=
18908 LIBX_OTHER=
18909 OLDXMENU_DEPS=
18912 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
18913 OLDXMENU_TARGET=
18914 OLDXMENU=nothing
18915 LIBXMENU=
18916 OLDXMENU_DEPS=
18925 if test "${HAVE_MENUS}" = "yes" ; then
18927 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
18931 if test "${GNU_MALLOC}" = "yes" ; then
18933 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
18937 RALLOC_OBJ=
18938 if test "${REL_ALLOC}" = "yes" ; then
18940 $as_echo "#define REL_ALLOC 1" >>confdefs.h
18943 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
18947 if test "$opsys" = "cygwin"; then
18948 CYGWIN_OBJ="sheap.o"
18949 ## Cygwin differs because of its unexec().
18950 PRE_ALLOC_OBJ=
18951 POST_ALLOC_OBJ=lastfile.o
18952 else
18953 CYGWIN_OBJ=
18954 PRE_ALLOC_OBJ=lastfile.o
18955 POST_ALLOC_OBJ=
18962 case "$opsys" in
18963 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
18965 darwin)
18966 ## The -headerpad option tells ld (see man page) to leave room at the
18967 ## end of the header for adding load commands. Needed for dumping.
18968 ## 0x690 is the total size of 30 segment load commands (at 56
18969 ## each); under Cocoa 31 commands are required.
18970 if test "$HAVE_NS" = "yes"; then
18971 libs_nsgui="-framework AppKit"
18972 headerpad_extra=6C8
18973 else
18974 libs_nsgui=
18975 headerpad_extra=690
18977 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
18979 ## This is here because src/Makefile.in did some extra fiddling around
18980 ## with LD_SWITCH_SYSTEM. The cpp logic was:
18981 ## #ifndef LD_SWITCH_SYSTEM
18982 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
18983 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
18984 ## not using gcc, darwin system not on an alpha (ie darwin, since
18985 ## darwin + alpha does not occur).
18986 ## Because this was done in src/Makefile.in, the resulting part of
18987 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
18988 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
18989 ## rather than LD_SWITCH_SYSTEM.
18990 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
18991 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
18994 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
18995 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
18996 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
18997 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
18998 ## had different values in configure (in ac_link) and src/Makefile.in.
18999 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19000 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19002 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19003 esac
19005 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19006 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19012 LD_FIRSTFLAG=
19013 ORDINARY_LINK=
19014 case "$opsys" in
19015 ## gnu: GNU needs its own crt0.
19016 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19018 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19019 ## library search parth, i.e. it won't search /usr/lib for libc and
19020 ## friends. Using -nostartfiles instead avoids this problem, and
19021 ## will also work on earlier NetBSD releases.
19022 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19024 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19025 ## MkLinux/LinuxPPC needs this.
19026 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19027 gnu-*)
19028 case "$machine" in
19029 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19030 esac
19032 esac
19035 if test "x$ORDINARY_LINK" = "xyes"; then
19037 LD_FIRSTFLAG=""
19039 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19042 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19043 ## freebsd, gnu-* not on macppc|ibms390x.
19044 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19046 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19047 ## places that are difficult to figure out at make time. Fortunately,
19048 ## these same versions allow you to pass arbitrary flags on to the
19049 ## linker, so there is no reason not to use it as a linker.
19051 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19052 ## searching for libraries in its internal directories, so we have to
19053 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19054 LD_FIRSTFLAG="-nostdlib"
19057 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19058 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19063 ## FIXME? The logic here is not precisely the same as that above.
19064 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19065 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19066 LIB_GCC=
19067 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19069 case "$opsys" in
19070 freebsd|netbsd|openbsd) LIB_GCC= ;;
19072 gnu-*)
19073 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19074 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19075 case $host_cpu in
19076 arm*)
19077 LIB_GCC="-lgcc_s"
19080 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19081 ## immediately undefine it again and redefine it to empty.
19082 ## Was the C_SWITCH_X_SITE part really necessary?
19083 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19084 LIB_GCC=
19086 esac
19089 ## Ask GCC where to find libgcc.a.
19090 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19091 esac
19095 TOOLTIP_SUPPORT=
19096 WINDOW_SUPPORT=
19097 ## If we're using X11/GNUstep, define some consequences.
19098 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19100 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19103 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19105 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19106 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19108 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19109 test "$HAVE_X_WINDOWS" = "yes" && \
19110 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19120 #### Report on what we decided to do.
19121 #### Report GTK as a toolkit, even if it doesn't use Xt.
19122 #### It makes printing result more understandable as using GTK sets
19123 #### toolkit_scroll_bars to yes by default.
19124 if test "${HAVE_GTK}" = "yes"; then
19125 USE_X_TOOLKIT=GTK
19128 and_machfile=
19129 if test -n "$machfile"; then
19130 and_machfile=" and \`${machfile}'"
19133 echo "
19134 Configured for \`${canonical}'.
19136 Where should the build process find the source code? ${srcdir}
19137 What operating system and machine description files should Emacs use?
19138 \`${opsysfile}'${and_machfile}
19139 What compiler should emacs be built with? ${CC} ${CFLAGS}
19140 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19141 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19142 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19143 What window system should Emacs use? ${window_system}
19144 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19146 if test -n "${x_includes}"; then
19147 echo " Where do we find X Windows header files? ${x_includes}"
19148 else
19149 echo " Where do we find X Windows header files? Standard dirs"
19151 if test -n "${x_libraries}"; then
19152 echo " Where do we find X Windows libraries? ${x_libraries}"
19153 else
19154 echo " Where do we find X Windows libraries? Standard dirs"
19157 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19158 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19159 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19160 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19161 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19162 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19163 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19164 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19166 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19167 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19168 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19169 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19170 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19171 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19173 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19174 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19175 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19176 echo " Does Emacs use -lxft? ${HAVE_XFT}"
19178 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19179 echo
19181 if test $USE_XASSERTS = yes; then
19182 echo " Compiling with asserts turned on."
19183 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
19186 echo
19188 if test "$HAVE_NS" = "yes"; then
19189 echo
19190 echo "You must run \"make install\" in order to test the built application.
19191 The installed application will go to nextstep/Emacs.app and can be
19192 run or moved from there."
19193 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19194 echo "The application will be fully self-contained."
19195 else
19196 echo "The lisp resources for the application will be installed under ${prefix}.
19197 You may need to run \"make install\" with sudo. The application will fail
19198 to run if these resources are not installed."
19200 echo
19204 # Remove any trailing slashes in these variables.
19205 test "${prefix}" != NONE &&
19206 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19207 test "${exec_prefix}" != NONE &&
19208 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19210 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"
19212 ac_config_commands="$ac_config_commands default"
19214 cat >confcache <<\_ACEOF
19215 # This file is a shell script that caches the results of configure
19216 # tests run on this system so they can be shared between configure
19217 # scripts and configure runs, see configure's option --config-cache.
19218 # It is not useful on other systems. If it contains results you don't
19219 # want to keep, you may remove or edit it.
19221 # config.status only pays attention to the cache file if you give it
19222 # the --recheck option to rerun configure.
19224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19226 # following values.
19228 _ACEOF
19230 # The following way of writing the cache mishandles newlines in values,
19231 # but we know of no workaround that is simple, portable, and efficient.
19232 # So, we kill variables containing newlines.
19233 # Ultrix sh set writes to stderr and can't be redirected directly,
19234 # and sets the high bit in the cache file unless we assign to the vars.
19236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19237 eval ac_val=\$$ac_var
19238 case $ac_val in #(
19239 *${as_nl}*)
19240 case $ac_var in #(
19241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19243 esac
19244 case $ac_var in #(
19245 _ | IFS | as_nl) ;; #(
19246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19247 *) { eval $ac_var=; unset $ac_var;} ;;
19248 esac ;;
19249 esac
19250 done
19252 (set) 2>&1 |
19253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19254 *${as_nl}ac_space=\ *)
19255 # `set' does not quote correctly, so add quotes: double-quote
19256 # substitution turns \\\\ into \\, and sed turns \\ into \.
19257 sed -n \
19258 "s/'/'\\\\''/g;
19259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19260 ;; #(
19262 # `set' quotes correctly as required by POSIX, so do not add quotes.
19263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19265 esac |
19266 sort
19268 sed '
19269 /^ac_cv_env_/b end
19270 t clear
19271 :clear
19272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19273 t end
19274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19275 :end' >>confcache
19276 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19277 if test -w "$cache_file"; then
19278 test "x$cache_file" != "x/dev/null" &&
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19280 $as_echo "$as_me: updating cache $cache_file" >&6;}
19281 cat confcache >$cache_file
19282 else
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19284 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19287 rm -f confcache
19289 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19290 # Let make expand exec_prefix.
19291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19293 DEFS=-DHAVE_CONFIG_H
19295 ac_libobjs=
19296 ac_ltlibobjs=
19298 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19299 # 1. Remove the extension, and $U if already installed.
19300 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19301 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19302 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19303 # will be set to the directory where LIBOBJS objects are built.
19304 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19305 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19306 done
19307 LIBOBJS=$ac_libobjs
19309 LTLIBOBJS=$ac_ltlibobjs
19312 if test -n "$EXEEXT"; then
19313 am__EXEEXT_TRUE=
19314 am__EXEEXT_FALSE='#'
19315 else
19316 am__EXEEXT_TRUE='#'
19317 am__EXEEXT_FALSE=
19320 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19321 as_fn_error $? "conditional \"AMDEP\" was never defined.
19322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19324 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19325 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19329 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19330 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19335 gl_libobjs=
19336 gl_ltlibobjs=
19337 if test -n "$gl_LIBOBJS"; then
19338 # Remove the extension.
19339 sed_drop_objext='s/\.o$//;s/\.obj$//'
19340 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19341 gl_libobjs="$gl_libobjs $i.$ac_objext"
19342 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19343 done
19345 gl_LIBOBJS=$gl_libobjs
19347 gl_LTLIBOBJS=$gl_ltlibobjs
19351 gltests_libobjs=
19352 gltests_ltlibobjs=
19353 if test -n "$gltests_LIBOBJS"; then
19354 # Remove the extension.
19355 sed_drop_objext='s/\.o$//;s/\.obj$//'
19356 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19357 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19358 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19359 done
19361 gltests_LIBOBJS=$gltests_libobjs
19363 gltests_LTLIBOBJS=$gltests_ltlibobjs
19367 : ${CONFIG_STATUS=./config.status}
19368 ac_write_fail=0
19369 ac_clean_files_save=$ac_clean_files
19370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19372 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19373 as_write_fail=0
19374 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19375 #! $SHELL
19376 # Generated by $as_me.
19377 # Run this file to recreate the current configuration.
19378 # Compiler output produced by configure, useful for debugging
19379 # configure, is in config.log if it exists.
19381 debug=false
19382 ac_cs_recheck=false
19383 ac_cs_silent=false
19385 SHELL=\${CONFIG_SHELL-$SHELL}
19386 export SHELL
19387 _ASEOF
19388 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19389 ## -------------------- ##
19390 ## M4sh Initialization. ##
19391 ## -------------------- ##
19393 # Be more Bourne compatible
19394 DUALCASE=1; export DUALCASE # for MKS sh
19395 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19396 emulate sh
19397 NULLCMD=:
19398 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19399 # is contrary to our usage. Disable this feature.
19400 alias -g '${1+"$@"}'='"$@"'
19401 setopt NO_GLOB_SUBST
19402 else
19403 case `(set -o) 2>/dev/null` in #(
19404 *posix*) :
19405 set -o posix ;; #(
19406 *) :
19408 esac
19412 as_nl='
19414 export as_nl
19415 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19416 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19417 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19418 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19419 # Prefer a ksh shell builtin over an external printf program on Solaris,
19420 # but without wasting forks for bash or zsh.
19421 if test -z "$BASH_VERSION$ZSH_VERSION" \
19422 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19423 as_echo='print -r --'
19424 as_echo_n='print -rn --'
19425 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19426 as_echo='printf %s\n'
19427 as_echo_n='printf %s'
19428 else
19429 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19430 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19431 as_echo_n='/usr/ucb/echo -n'
19432 else
19433 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19434 as_echo_n_body='eval
19435 arg=$1;
19436 case $arg in #(
19437 *"$as_nl"*)
19438 expr "X$arg" : "X\\(.*\\)$as_nl";
19439 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19440 esac;
19441 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19443 export as_echo_n_body
19444 as_echo_n='sh -c $as_echo_n_body as_echo'
19446 export as_echo_body
19447 as_echo='sh -c $as_echo_body as_echo'
19450 # The user is always right.
19451 if test "${PATH_SEPARATOR+set}" != set; then
19452 PATH_SEPARATOR=:
19453 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19454 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19455 PATH_SEPARATOR=';'
19460 # IFS
19461 # We need space, tab and new line, in precisely that order. Quoting is
19462 # there to prevent editors from complaining about space-tab.
19463 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19464 # splitting by setting IFS to empty value.)
19465 IFS=" "" $as_nl"
19467 # Find who we are. Look in the path if we contain no directory separator.
19468 case $0 in #((
19469 *[\\/]* ) as_myself=$0 ;;
19470 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19471 for as_dir in $PATH
19473 IFS=$as_save_IFS
19474 test -z "$as_dir" && as_dir=.
19475 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19476 done
19477 IFS=$as_save_IFS
19480 esac
19481 # We did not find ourselves, most probably we were run as `sh COMMAND'
19482 # in which case we are not to be found in the path.
19483 if test "x$as_myself" = x; then
19484 as_myself=$0
19486 if test ! -f "$as_myself"; then
19487 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19488 exit 1
19491 # Unset variables that we do not need and which cause bugs (e.g. in
19492 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19493 # suppresses any "Segmentation fault" message there. '((' could
19494 # trigger a bug in pdksh 5.2.14.
19495 for as_var in BASH_ENV ENV MAIL MAILPATH
19496 do eval test x\${$as_var+set} = xset \
19497 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19498 done
19499 PS1='$ '
19500 PS2='> '
19501 PS4='+ '
19503 # NLS nuisances.
19504 LC_ALL=C
19505 export LC_ALL
19506 LANGUAGE=C
19507 export LANGUAGE
19509 # CDPATH.
19510 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19513 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19514 # ----------------------------------------
19515 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19516 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19517 # script with STATUS, using 1 if that was 0.
19518 as_fn_error ()
19520 as_status=$1; test $as_status -eq 0 && as_status=1
19521 if test "$4"; then
19522 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19523 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19525 $as_echo "$as_me: error: $2" >&2
19526 as_fn_exit $as_status
19527 } # as_fn_error
19530 # as_fn_set_status STATUS
19531 # -----------------------
19532 # Set $? to STATUS, without forking.
19533 as_fn_set_status ()
19535 return $1
19536 } # as_fn_set_status
19538 # as_fn_exit STATUS
19539 # -----------------
19540 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19541 as_fn_exit ()
19543 set +e
19544 as_fn_set_status $1
19545 exit $1
19546 } # as_fn_exit
19548 # as_fn_unset VAR
19549 # ---------------
19550 # Portably unset VAR.
19551 as_fn_unset ()
19553 { eval $1=; unset $1;}
19555 as_unset=as_fn_unset
19556 # as_fn_append VAR VALUE
19557 # ----------------------
19558 # Append the text in VALUE to the end of the definition contained in VAR. Take
19559 # advantage of any shell optimizations that allow amortized linear growth over
19560 # repeated appends, instead of the typical quadratic growth present in naive
19561 # implementations.
19562 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19563 eval 'as_fn_append ()
19565 eval $1+=\$2
19567 else
19568 as_fn_append ()
19570 eval $1=\$$1\$2
19572 fi # as_fn_append
19574 # as_fn_arith ARG...
19575 # ------------------
19576 # Perform arithmetic evaluation on the ARGs, and store the result in the
19577 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19578 # must be portable across $(()) and expr.
19579 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19580 eval 'as_fn_arith ()
19582 as_val=$(( $* ))
19584 else
19585 as_fn_arith ()
19587 as_val=`expr "$@" || test $? -eq 1`
19589 fi # as_fn_arith
19592 if expr a : '\(a\)' >/dev/null 2>&1 &&
19593 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19594 as_expr=expr
19595 else
19596 as_expr=false
19599 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19600 as_basename=basename
19601 else
19602 as_basename=false
19605 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19606 as_dirname=dirname
19607 else
19608 as_dirname=false
19611 as_me=`$as_basename -- "$0" ||
19612 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19613 X"$0" : 'X\(//\)$' \| \
19614 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19615 $as_echo X/"$0" |
19616 sed '/^.*\/\([^/][^/]*\)\/*$/{
19617 s//\1/
19620 /^X\/\(\/\/\)$/{
19621 s//\1/
19624 /^X\/\(\/\).*/{
19625 s//\1/
19628 s/.*/./; q'`
19630 # Avoid depending upon Character Ranges.
19631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19634 as_cr_digits='0123456789'
19635 as_cr_alnum=$as_cr_Letters$as_cr_digits
19637 ECHO_C= ECHO_N= ECHO_T=
19638 case `echo -n x` in #(((((
19639 -n*)
19640 case `echo 'xy\c'` in
19641 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19642 xy) ECHO_C='\c';;
19643 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19644 ECHO_T=' ';;
19645 esac;;
19647 ECHO_N='-n';;
19648 esac
19650 rm -f conf$$ conf$$.exe conf$$.file
19651 if test -d conf$$.dir; then
19652 rm -f conf$$.dir/conf$$.file
19653 else
19654 rm -f conf$$.dir
19655 mkdir conf$$.dir 2>/dev/null
19657 if (echo >conf$$.file) 2>/dev/null; then
19658 if ln -s conf$$.file conf$$ 2>/dev/null; then
19659 as_ln_s='ln -s'
19660 # ... but there are two gotchas:
19661 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19662 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19663 # In both cases, we have to default to `cp -p'.
19664 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19665 as_ln_s='cp -p'
19666 elif ln conf$$.file conf$$ 2>/dev/null; then
19667 as_ln_s=ln
19668 else
19669 as_ln_s='cp -p'
19671 else
19672 as_ln_s='cp -p'
19674 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19675 rmdir conf$$.dir 2>/dev/null
19678 # as_fn_mkdir_p
19679 # -------------
19680 # Create "$as_dir" as a directory, including parents if necessary.
19681 as_fn_mkdir_p ()
19684 case $as_dir in #(
19685 -*) as_dir=./$as_dir;;
19686 esac
19687 test -d "$as_dir" || eval $as_mkdir_p || {
19688 as_dirs=
19689 while :; do
19690 case $as_dir in #(
19691 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19692 *) as_qdir=$as_dir;;
19693 esac
19694 as_dirs="'$as_qdir' $as_dirs"
19695 as_dir=`$as_dirname -- "$as_dir" ||
19696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19697 X"$as_dir" : 'X\(//\)[^/]' \| \
19698 X"$as_dir" : 'X\(//\)$' \| \
19699 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19700 $as_echo X"$as_dir" |
19701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19702 s//\1/
19705 /^X\(\/\/\)[^/].*/{
19706 s//\1/
19709 /^X\(\/\/\)$/{
19710 s//\1/
19713 /^X\(\/\).*/{
19714 s//\1/
19717 s/.*/./; q'`
19718 test -d "$as_dir" && break
19719 done
19720 test -z "$as_dirs" || eval "mkdir $as_dirs"
19721 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19724 } # as_fn_mkdir_p
19725 if mkdir -p . 2>/dev/null; then
19726 as_mkdir_p='mkdir -p "$as_dir"'
19727 else
19728 test -d ./-p && rmdir ./-p
19729 as_mkdir_p=false
19732 if test -x / >/dev/null 2>&1; then
19733 as_test_x='test -x'
19734 else
19735 if ls -dL / >/dev/null 2>&1; then
19736 as_ls_L_option=L
19737 else
19738 as_ls_L_option=
19740 as_test_x='
19741 eval sh -c '\''
19742 if test -d "$1"; then
19743 test -d "$1/.";
19744 else
19745 case $1 in #(
19746 -*)set "./$1";;
19747 esac;
19748 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19749 ???[sx]*):;;*)false;;esac;fi
19750 '\'' sh
19753 as_executable_p=$as_test_x
19755 # Sed expression to map a string onto a valid CPP name.
19756 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19758 # Sed expression to map a string onto a valid variable name.
19759 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19762 exec 6>&1
19763 ## ----------------------------------- ##
19764 ## Main body of $CONFIG_STATUS script. ##
19765 ## ----------------------------------- ##
19766 _ASEOF
19767 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19770 # Save the log message, to keep $0 and so on meaningful, and to
19771 # report actual input values of CONFIG_FILES etc. instead of their
19772 # values after options handling.
19773 ac_log="
19774 This file was extended by emacs $as_me 24.0.50, which was
19775 generated by GNU Autoconf 2.67. Invocation command line was
19777 CONFIG_FILES = $CONFIG_FILES
19778 CONFIG_HEADERS = $CONFIG_HEADERS
19779 CONFIG_LINKS = $CONFIG_LINKS
19780 CONFIG_COMMANDS = $CONFIG_COMMANDS
19781 $ $0 $@
19783 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19786 _ACEOF
19788 case $ac_config_files in *"
19789 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19790 esac
19792 case $ac_config_headers in *"
19793 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19794 esac
19797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19798 # Files that config.status was made for.
19799 config_files="$ac_config_files"
19800 config_headers="$ac_config_headers"
19801 config_commands="$ac_config_commands"
19803 _ACEOF
19805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19806 ac_cs_usage="\
19807 \`$as_me' instantiates files and other configuration actions
19808 from templates according to the current configuration. Unless the files
19809 and actions are specified as TAGs, all are instantiated by default.
19811 Usage: $0 [OPTION]... [TAG]...
19813 -h, --help print this help, then exit
19814 -V, --version print version number and configuration settings, then exit
19815 --config print configuration, then exit
19816 -q, --quiet, --silent
19817 do not print progress messages
19818 -d, --debug don't remove temporary files
19819 --recheck update $as_me by reconfiguring in the same conditions
19820 --file=FILE[:TEMPLATE]
19821 instantiate the configuration file FILE
19822 --header=FILE[:TEMPLATE]
19823 instantiate the configuration header FILE
19825 Configuration files:
19826 $config_files
19828 Configuration headers:
19829 $config_headers
19831 Configuration commands:
19832 $config_commands
19834 Report bugs to the package provider."
19836 _ACEOF
19837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19838 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19839 ac_cs_version="\\
19840 emacs config.status 24.0.50
19841 configured by $0, generated by GNU Autoconf 2.67,
19842 with options \\"\$ac_cs_config\\"
19844 Copyright (C) 2010 Free Software Foundation, Inc.
19845 This config.status script is free software; the Free Software Foundation
19846 gives unlimited permission to copy, distribute and modify it."
19848 ac_pwd='$ac_pwd'
19849 srcdir='$srcdir'
19850 INSTALL='$INSTALL'
19851 MKDIR_P='$MKDIR_P'
19852 AWK='$AWK'
19853 test -n "\$AWK" || AWK=awk
19854 _ACEOF
19856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19857 # The default lists apply if the user does not specify any file.
19858 ac_need_defaults=:
19859 while test $# != 0
19861 case $1 in
19862 --*=?*)
19863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19864 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19865 ac_shift=:
19867 --*=)
19868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19869 ac_optarg=
19870 ac_shift=:
19873 ac_option=$1
19874 ac_optarg=$2
19875 ac_shift=shift
19877 esac
19879 case $ac_option in
19880 # Handling of the options.
19881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19882 ac_cs_recheck=: ;;
19883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19884 $as_echo "$ac_cs_version"; exit ;;
19885 --config | --confi | --conf | --con | --co | --c )
19886 $as_echo "$ac_cs_config"; exit ;;
19887 --debug | --debu | --deb | --de | --d | -d )
19888 debug=: ;;
19889 --file | --fil | --fi | --f )
19890 $ac_shift
19891 case $ac_optarg in
19892 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19893 '') as_fn_error $? "missing file argument" ;;
19894 esac
19895 as_fn_append CONFIG_FILES " '$ac_optarg'"
19896 ac_need_defaults=false;;
19897 --header | --heade | --head | --hea )
19898 $ac_shift
19899 case $ac_optarg in
19900 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19901 esac
19902 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19903 ac_need_defaults=false;;
19904 --he | --h)
19905 # Conflict between --help and --header
19906 as_fn_error $? "ambiguous option: \`$1'
19907 Try \`$0 --help' for more information.";;
19908 --help | --hel | -h )
19909 $as_echo "$ac_cs_usage"; exit ;;
19910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19911 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19912 ac_cs_silent=: ;;
19914 # This is an error.
19915 -*) as_fn_error $? "unrecognized option: \`$1'
19916 Try \`$0 --help' for more information." ;;
19918 *) as_fn_append ac_config_targets " $1"
19919 ac_need_defaults=false ;;
19921 esac
19922 shift
19923 done
19925 ac_configure_extra_args=
19927 if $ac_cs_silent; then
19928 exec 6>/dev/null
19929 ac_configure_extra_args="$ac_configure_extra_args --silent"
19932 _ACEOF
19933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19934 if \$ac_cs_recheck; then
19935 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19936 shift
19937 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19938 CONFIG_SHELL='$SHELL'
19939 export CONFIG_SHELL
19940 exec "\$@"
19943 _ACEOF
19944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19945 exec 5>>config.log
19947 echo
19948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19949 ## Running $as_me. ##
19950 _ASBOX
19951 $as_echo "$ac_log"
19952 } >&5
19954 _ACEOF
19955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19957 # INIT-COMMANDS
19959 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19960 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
19962 _ACEOF
19964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19966 # Handling of arguments.
19967 for ac_config_target in $ac_config_targets
19969 case $ac_config_target in
19970 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19971 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19972 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19973 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19974 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
19975 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
19976 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
19977 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
19978 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
19979 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
19980 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19981 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
19982 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
19983 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
19984 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
19985 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19987 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
19988 esac
19989 done
19992 # If the user did not use the arguments to specify the items to instantiate,
19993 # then the envvar interface is used. Set only those that are not.
19994 # We use the long form for the default assignment because of an extremely
19995 # bizarre bug on SunOS 4.1.3.
19996 if $ac_need_defaults; then
19997 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19998 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19999 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20002 # Have a temporary directory for convenience. Make it in the build tree
20003 # simply because there is no reason against having it here, and in addition,
20004 # creating and moving files from /tmp can sometimes cause problems.
20005 # Hook for its removal unless debugging.
20006 # Note that there is a small window in which the directory will not be cleaned:
20007 # after its creation but before its name has been assigned to `$tmp'.
20008 $debug ||
20010 tmp=
20011 trap 'exit_status=$?
20012 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20014 trap 'as_fn_exit 1' 1 2 13 15
20016 # Create a (secure) tmp directory for tmp files.
20019 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20020 test -n "$tmp" && test -d "$tmp"
20021 } ||
20023 tmp=./conf$$-$RANDOM
20024 (umask 077 && mkdir "$tmp")
20025 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20027 # Set up the scripts for CONFIG_FILES section.
20028 # No need to generate them if there are no CONFIG_FILES.
20029 # This happens for instance with `./config.status config.h'.
20030 if test -n "$CONFIG_FILES"; then
20032 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20033 ac_cs_awk_getline=:
20034 ac_cs_awk_pipe_init=
20035 ac_cs_awk_read_file='
20036 while ((getline aline < (F[key])) > 0)
20037 print(aline)
20038 close(F[key])'
20039 ac_cs_awk_pipe_fini=
20040 else
20041 ac_cs_awk_getline=false
20042 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20043 ac_cs_awk_read_file='
20044 print "|#_!!_#|"
20045 print "cat " F[key] " &&"
20046 '$ac_cs_awk_pipe_init
20047 # The final `:' finishes the AND list.
20048 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20050 ac_cr=`echo X | tr X '\015'`
20051 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20052 # But we know of no other shell where ac_cr would be empty at this
20053 # point, so we can use a bashism as a fallback.
20054 if test "x$ac_cr" = x; then
20055 eval ac_cr=\$\'\\r\'
20057 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20058 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20059 ac_cs_awk_cr='\\r'
20060 else
20061 ac_cs_awk_cr=$ac_cr
20064 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20065 _ACEOF
20067 # Create commands to substitute file output variables.
20069 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20070 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20071 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20072 echo "_ACAWK" &&
20073 echo "_ACEOF"
20074 } >conf$$files.sh &&
20075 . ./conf$$files.sh ||
20076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20077 rm -f conf$$files.sh
20080 echo "cat >conf$$subs.awk <<_ACEOF" &&
20081 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20082 echo "_ACEOF"
20083 } >conf$$subs.sh ||
20084 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20085 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20086 ac_delim='%!_!# '
20087 for ac_last_try in false false false false false :; do
20088 . ./conf$$subs.sh ||
20089 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20091 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20092 if test $ac_delim_n = $ac_delim_num; then
20093 break
20094 elif $ac_last_try; then
20095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20096 else
20097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20099 done
20100 rm -f conf$$subs.sh
20102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20103 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20104 _ACEOF
20105 sed -n '
20107 s/^/S["/; s/!.*/"]=/
20110 s/^[^!]*!//
20111 :repl
20112 t repl
20113 s/'"$ac_delim"'$//
20114 t delim
20117 s/\(.\{148\}\)..*/\1/
20118 t more1
20119 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20122 b repl
20123 :more1
20124 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20127 s/.\{148\}//
20128 t nl
20129 :delim
20131 s/\(.\{148\}\)..*/\1/
20132 t more2
20133 s/["\\]/\\&/g; s/^/"/; s/$/"/
20136 :more2
20137 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20140 s/.\{148\}//
20141 t delim
20142 ' <conf$$subs.awk | sed '
20143 /^[^""]/{
20145 s/\n//
20147 ' >>$CONFIG_STATUS || ac_write_fail=1
20148 rm -f conf$$subs.awk
20149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20150 _ACAWK
20151 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20152 for (key in S) S_is_set[key] = 1
20153 FS = "\a"
20154 \$ac_cs_awk_pipe_init
20157 line = $ 0
20158 nfields = split(line, field, "@")
20159 substed = 0
20160 len = length(field[1])
20161 for (i = 2; i < nfields; i++) {
20162 key = field[i]
20163 keylen = length(key)
20164 if (S_is_set[key]) {
20165 value = S[key]
20166 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20167 len += length(value) + length(field[++i])
20168 substed = 1
20169 } else
20170 len += 1 + keylen
20172 if (nfields == 3 && !substed) {
20173 key = field[2]
20174 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20175 \$ac_cs_awk_read_file
20176 next
20179 print line
20181 \$ac_cs_awk_pipe_fini
20182 _ACAWK
20183 _ACEOF
20184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20185 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20187 else
20189 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20190 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20191 _ACEOF
20193 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20194 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20195 # trailing colons and then remove the whole line if VPATH becomes empty
20196 # (actually we leave an empty line to preserve line numbers).
20197 if test "x$srcdir" = x.; then
20198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20200 s///
20201 s/^/:/
20202 s/[ ]*$/:/
20203 s/:\$(srcdir):/:/g
20204 s/:\${srcdir}:/:/g
20205 s/:@srcdir@:/:/g
20206 s/^:*//
20207 s/:*$//
20209 s/\(=[ ]*\).*/\1/
20211 s/\n//
20212 s/^[^=]*=[ ]*$//
20216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20217 fi # test -n "$CONFIG_FILES"
20219 # Set up the scripts for CONFIG_HEADERS section.
20220 # No need to generate them if there are no CONFIG_HEADERS.
20221 # This happens for instance with `./config.status Makefile'.
20222 if test -n "$CONFIG_HEADERS"; then
20223 cat >"$tmp/defines.awk" <<\_ACAWK ||
20224 BEGIN {
20225 _ACEOF
20227 # Transform confdefs.h into an awk script `defines.awk', embedded as
20228 # here-document in config.status, that substitutes the proper values into
20229 # config.h.in to produce config.h.
20231 # Create a delimiter string that does not exist in confdefs.h, to ease
20232 # handling of long lines.
20233 ac_delim='%!_!# '
20234 for ac_last_try in false false :; do
20235 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20236 if test -z "$ac_t"; then
20237 break
20238 elif $ac_last_try; then
20239 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20240 else
20241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20243 done
20245 # For the awk script, D is an array of macro values keyed by name,
20246 # likewise P contains macro parameters if any. Preserve backslash
20247 # newline sequences.
20249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20250 sed -n '
20251 s/.\{148\}/&'"$ac_delim"'/g
20252 t rset
20253 :rset
20254 s/^[ ]*#[ ]*define[ ][ ]*/ /
20255 t def
20257 :def
20258 s/\\$//
20259 t bsnl
20260 s/["\\]/\\&/g
20261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20262 D["\1"]=" \3"/p
20263 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20265 :bsnl
20266 s/["\\]/\\&/g
20267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20268 D["\1"]=" \3\\\\\\n"\\/p
20269 t cont
20270 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20271 t cont
20273 :cont
20275 s/.\{148\}/&'"$ac_delim"'/g
20276 t clear
20277 :clear
20278 s/\\$//
20279 t bsnlc
20280 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20282 :bsnlc
20283 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20284 b cont
20285 ' <confdefs.h | sed '
20286 s/'"$ac_delim"'/"\\\
20287 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20290 for (key in D) D_is_set[key] = 1
20291 FS = "\a"
20293 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20294 line = \$ 0
20295 split(line, arg, " ")
20296 if (arg[1] == "#") {
20297 defundef = arg[2]
20298 mac1 = arg[3]
20299 } else {
20300 defundef = substr(arg[1], 2)
20301 mac1 = arg[2]
20303 split(mac1, mac2, "(") #)
20304 macro = mac2[1]
20305 prefix = substr(line, 1, index(line, defundef) - 1)
20306 if (D_is_set[macro]) {
20307 # Preserve the white space surrounding the "#".
20308 print prefix "define", macro P[macro] D[macro]
20309 next
20310 } else {
20311 # Replace #undef with comments. This is necessary, for example,
20312 # in the case of _POSIX_SOURCE, which is predefined and required
20313 # on some systems where configure will not decide to define it.
20314 if (defundef == "undef") {
20315 print "/*", prefix defundef, macro, "*/"
20316 next
20320 { print }
20321 _ACAWK
20322 _ACEOF
20323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20324 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20325 fi # test -n "$CONFIG_HEADERS"
20328 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20329 shift
20330 for ac_tag
20332 case $ac_tag in
20333 :[FHLC]) ac_mode=$ac_tag; continue;;
20334 esac
20335 case $ac_mode$ac_tag in
20336 :[FHL]*:*);;
20337 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20338 :[FH]-) ac_tag=-:-;;
20339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20340 esac
20341 ac_save_IFS=$IFS
20342 IFS=:
20343 set x $ac_tag
20344 IFS=$ac_save_IFS
20345 shift
20346 ac_file=$1
20347 shift
20349 case $ac_mode in
20350 :L) ac_source=$1;;
20351 :[FH])
20352 ac_file_inputs=
20353 for ac_f
20355 case $ac_f in
20356 -) ac_f="$tmp/stdin";;
20357 *) # Look for the file first in the build tree, then in the source tree
20358 # (if the path is not absolute). The absolute path cannot be DOS-style,
20359 # because $ac_f cannot contain `:'.
20360 test -f "$ac_f" ||
20361 case $ac_f in
20362 [\\/$]*) false;;
20363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20364 esac ||
20365 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20366 esac
20367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20368 as_fn_append ac_file_inputs " '$ac_f'"
20369 done
20371 # Let's still pretend it is `configure' which instantiates (i.e., don't
20372 # use $as_me), people would be surprised to read:
20373 # /* config.h. Generated by config.status. */
20374 configure_input='Generated from '`
20375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20376 `' by configure.'
20377 if test x"$ac_file" != x-; then
20378 configure_input="$ac_file. $configure_input"
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20380 $as_echo "$as_me: creating $ac_file" >&6;}
20382 # Neutralize special characters interpreted by sed in replacement strings.
20383 case $configure_input in #(
20384 *\&* | *\|* | *\\* )
20385 ac_sed_conf_input=`$as_echo "$configure_input" |
20386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20387 *) ac_sed_conf_input=$configure_input;;
20388 esac
20390 case $ac_tag in
20391 *:-:* | *:-) cat >"$tmp/stdin" \
20392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20393 esac
20395 esac
20397 ac_dir=`$as_dirname -- "$ac_file" ||
20398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20399 X"$ac_file" : 'X\(//\)[^/]' \| \
20400 X"$ac_file" : 'X\(//\)$' \| \
20401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20402 $as_echo X"$ac_file" |
20403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20404 s//\1/
20407 /^X\(\/\/\)[^/].*/{
20408 s//\1/
20411 /^X\(\/\/\)$/{
20412 s//\1/
20415 /^X\(\/\).*/{
20416 s//\1/
20419 s/.*/./; q'`
20420 as_dir="$ac_dir"; as_fn_mkdir_p
20421 ac_builddir=.
20423 case "$ac_dir" in
20424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20427 # A ".." for each directory in $ac_dir_suffix.
20428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20429 case $ac_top_builddir_sub in
20430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20432 esac ;;
20433 esac
20434 ac_abs_top_builddir=$ac_pwd
20435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20436 # for backward compatibility:
20437 ac_top_builddir=$ac_top_build_prefix
20439 case $srcdir in
20440 .) # We are building in place.
20441 ac_srcdir=.
20442 ac_top_srcdir=$ac_top_builddir_sub
20443 ac_abs_top_srcdir=$ac_pwd ;;
20444 [\\/]* | ?:[\\/]* ) # Absolute name.
20445 ac_srcdir=$srcdir$ac_dir_suffix;
20446 ac_top_srcdir=$srcdir
20447 ac_abs_top_srcdir=$srcdir ;;
20448 *) # Relative name.
20449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20450 ac_top_srcdir=$ac_top_build_prefix$srcdir
20451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20452 esac
20453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20456 case $ac_mode in
20459 # CONFIG_FILE
20462 case $INSTALL in
20463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20464 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20465 esac
20466 ac_MKDIR_P=$MKDIR_P
20467 case $MKDIR_P in
20468 [\\/$]* | ?:[\\/]* ) ;;
20469 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20470 esac
20471 _ACEOF
20473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20474 # If the template does not know about datarootdir, expand it.
20475 # FIXME: This hack should be removed a few years after 2.60.
20476 ac_datarootdir_hack=; ac_datarootdir_seen=
20477 ac_sed_dataroot='
20478 /datarootdir/ {
20482 /@datadir@/p
20483 /@docdir@/p
20484 /@infodir@/p
20485 /@localedir@/p
20486 /@mandir@/p'
20487 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20488 *datarootdir*) ac_datarootdir_seen=yes;;
20489 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20491 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20492 _ACEOF
20493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20494 ac_datarootdir_hack='
20495 s&@datadir@&$datadir&g
20496 s&@docdir@&$docdir&g
20497 s&@infodir@&$infodir&g
20498 s&@localedir@&$localedir&g
20499 s&@mandir@&$mandir&g
20500 s&\\\${datarootdir}&$datarootdir&g' ;;
20501 esac
20502 _ACEOF
20504 # Neutralize VPATH when `$srcdir' = `.'.
20505 # Shell code in configure.ac might set extrasub.
20506 # FIXME: do we really want to maintain this feature?
20507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20508 ac_sed_extra="$ac_vpsub
20509 $extrasub
20510 _ACEOF
20511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20514 s|@configure_input@|$ac_sed_conf_input|;t t
20515 s&@top_builddir@&$ac_top_builddir_sub&;t t
20516 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20517 s&@srcdir@&$ac_srcdir&;t t
20518 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20519 s&@top_srcdir@&$ac_top_srcdir&;t t
20520 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20521 s&@builddir@&$ac_builddir&;t t
20522 s&@abs_builddir@&$ac_abs_builddir&;t t
20523 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20524 s&@INSTALL@&$ac_INSTALL&;t t
20525 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20526 $ac_datarootdir_hack
20528 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20529 if $ac_cs_awk_getline; then
20530 $AWK -f "$tmp/subs.awk"
20531 else
20532 $AWK -f "$tmp/subs.awk" | $SHELL
20533 fi >$tmp/out \
20534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20536 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20537 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20538 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20540 which seems to be undefined. Please make sure it is defined" >&5
20541 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20542 which seems to be undefined. Please make sure it is defined" >&2;}
20544 rm -f "$tmp/stdin"
20545 case $ac_file in
20546 -) cat "$tmp/out" && rm -f "$tmp/out";;
20547 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20548 esac \
20549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20553 # CONFIG_HEADER
20555 if test x"$ac_file" != x-; then
20557 $as_echo "/* $configure_input */" \
20558 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20559 } >"$tmp/config.h" \
20560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20561 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20563 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20564 else
20565 rm -f "$ac_file"
20566 mv "$tmp/config.h" "$ac_file" \
20567 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20569 else
20570 $as_echo "/* $configure_input */" \
20571 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20572 || as_fn_error $? "could not create -" "$LINENO" 5
20574 # Compute "$ac_file"'s index in $config_headers.
20575 _am_arg="$ac_file"
20576 _am_stamp_count=1
20577 for _am_header in $config_headers :; do
20578 case $_am_header in
20579 $_am_arg | $_am_arg:* )
20580 break ;;
20582 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20583 esac
20584 done
20585 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20586 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20587 X"$_am_arg" : 'X\(//\)[^/]' \| \
20588 X"$_am_arg" : 'X\(//\)$' \| \
20589 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20590 $as_echo X"$_am_arg" |
20591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20592 s//\1/
20595 /^X\(\/\/\)[^/].*/{
20596 s//\1/
20599 /^X\(\/\/\)$/{
20600 s//\1/
20603 /^X\(\/\).*/{
20604 s//\1/
20607 s/.*/./; q'`/stamp-h$_am_stamp_count
20610 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20611 $as_echo "$as_me: executing $ac_file commands" >&6;}
20613 esac
20616 case $ac_file$ac_mode in
20617 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20618 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20619 # are listed without --file. Let's play safe and only enable the eval
20620 # if we detect the quoting.
20621 case $CONFIG_FILES in
20622 *\'*) eval set x "$CONFIG_FILES" ;;
20623 *) set x $CONFIG_FILES ;;
20624 esac
20625 shift
20626 for mf
20628 # Strip MF so we end up with the name of the file.
20629 mf=`echo "$mf" | sed -e 's/:.*$//'`
20630 # Check whether this is an Automake generated Makefile or not.
20631 # We used to match only the files named `Makefile.in', but
20632 # some people rename them; so instead we look at the file content.
20633 # Grep'ing the first line is not enough: some people post-process
20634 # each Makefile.in and add a new line on top of each file to say so.
20635 # Grep'ing the whole file is not good either: AIX grep has a line
20636 # limit of 2048, but all sed's we know have understand at least 4000.
20637 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20638 dirpart=`$as_dirname -- "$mf" ||
20639 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20640 X"$mf" : 'X\(//\)[^/]' \| \
20641 X"$mf" : 'X\(//\)$' \| \
20642 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20643 $as_echo X"$mf" |
20644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20645 s//\1/
20648 /^X\(\/\/\)[^/].*/{
20649 s//\1/
20652 /^X\(\/\/\)$/{
20653 s//\1/
20656 /^X\(\/\).*/{
20657 s//\1/
20660 s/.*/./; q'`
20661 else
20662 continue
20664 # Extract the definition of DEPDIR, am__include, and am__quote
20665 # from the Makefile without running `make'.
20666 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20667 test -z "$DEPDIR" && continue
20668 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20669 test -z "am__include" && continue
20670 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20671 # When using ansi2knr, U may be empty or an underscore; expand it
20672 U=`sed -n 's/^U = //p' < "$mf"`
20673 # Find all dependency output files, they are included files with
20674 # $(DEPDIR) in their names. We invoke sed twice because it is the
20675 # simplest approach to changing $(DEPDIR) to its actual value in the
20676 # expansion.
20677 for file in `sed -n "
20678 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20679 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20680 # Make sure the directory exists.
20681 test -f "$dirpart/$file" && continue
20682 fdir=`$as_dirname -- "$file" ||
20683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20684 X"$file" : 'X\(//\)[^/]' \| \
20685 X"$file" : 'X\(//\)$' \| \
20686 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20687 $as_echo X"$file" |
20688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20689 s//\1/
20692 /^X\(\/\/\)[^/].*/{
20693 s//\1/
20696 /^X\(\/\/\)$/{
20697 s//\1/
20700 /^X\(\/\).*/{
20701 s//\1/
20704 s/.*/./; q'`
20705 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20706 # echo "creating $dirpart/$file"
20707 echo '# dummy' > "$dirpart/$file"
20708 done
20709 done
20712 "default":C)
20714 ### Make the necessary directories, if they don't exist.
20715 for dir in etc lisp ; do
20716 test -d ${dir} || mkdir ${dir}
20717 done
20719 echo creating src/epaths.h
20720 ${MAKE-make} epaths-force
20722 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
20723 echo creating src/.gdbinit
20724 echo source $srcdir/src/.gdbinit > src/.gdbinit
20729 esac
20730 done # for ac_tag
20733 as_fn_exit 0
20734 _ACEOF
20735 ac_clean_files=$ac_clean_files_save
20737 test $ac_write_fail = 0 ||
20738 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20741 # configure is writing to config.log, and then calls config.status.
20742 # config.status does its own redirection, appending to config.log.
20743 # Unfortunately, on DOS this fails, as config.log is still kept open
20744 # by configure, so config.status won't be able to write to it; its
20745 # output is simply discarded. So we exec the FD to /dev/null,
20746 # effectively closing config.log, so it can be properly (re)opened and
20747 # appended to by config.status. When coming back to configure, we
20748 # need to make the FD available again.
20749 if test "$no_create" != yes; then
20750 ac_cs_success=:
20751 ac_config_status_args=
20752 test "$silent" = yes &&
20753 ac_config_status_args="$ac_config_status_args --quiet"
20754 exec 5>/dev/null
20755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20756 exec 5>>config.log
20757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20758 # would make configure fail if this is the last instruction.
20759 $ac_cs_success || as_fn_exit 1
20761 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20763 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}