]> code.delx.au - gnu-emacs/blob - autogen/configure
Auto-commit of generated files.
[gnu-emacs] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.2.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
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 ## -------------------- ##
16
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 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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=';'
80 }
81 fi
82
83
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"
90
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
96 do
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
102
103 ;;
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
109 fi
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
113 fi
114
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='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
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 *) :
149 ;;
150 esac
151 fi
152 "
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; }
158
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 :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
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
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
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
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
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
200 fi
201 fi
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
211
212
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+"$@"}
222 fi
223
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."
235 fi
236 exit 1
237 fi
238 fi
239 fi
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
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
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 ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
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/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
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"
320
321
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 ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
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 ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
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
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
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
392 fi
393
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/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
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
419
420
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 '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
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; }
443
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
450 }
451
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;;
461 *)
462 ECHO_N='-n';;
463 esac
464
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
471 fi
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'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
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
497 fi
498
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=
506 fi
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
518 '
519 fi
520 as_executable_p=$as_test_x
521
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'"
524
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'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
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=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.2.50'
553 PACKAGE_STRING='emacs 24.2.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
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"
593
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 WINDOW_SYSTEM_OBJ
608 LIB_GCC
609 LD_FIRSTFLAG
610 LD_SWITCH_SYSTEM_TEMACS
611 LIBGNU_LTLIBDEPS
612 LIBGNU_LIBDEPS
613 gltests_WITNESS
614 gl_GNULIB_ENABLED_verify_FALSE
615 gl_GNULIB_ENABLED_verify_TRUE
616 gl_GNULIB_ENABLED_strtoull_FALSE
617 gl_GNULIB_ENABLED_strtoull_TRUE
618 gl_GNULIB_ENABLED_strtoll_FALSE
619 gl_GNULIB_ENABLED_strtoll_TRUE
620 gl_GNULIB_ENABLED_stat_FALSE
621 gl_GNULIB_ENABLED_stat_TRUE
622 gl_GNULIB_ENABLED_pathmax_FALSE
623 gl_GNULIB_ENABLED_pathmax_TRUE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
626 gl_GNULIB_ENABLED_dosname_FALSE
627 gl_GNULIB_ENABLED_dosname_TRUE
628 LTLIBINTL
629 LIBINTL
630 WINDOWS_64_BIT_OFF_T
631 HAVE_UNISTD_H
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
633 NEXT_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
638 NEXT_TIME_H
639 WINDOWS_64_BIT_ST_SIZE
640 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
641 NEXT_SYS_STAT_H
642 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
643 NEXT_STDLIB_H
644 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
645 NEXT_STDIO_H
646 REPLACE_VSPRINTF
647 REPLACE_VSNPRINTF
648 REPLACE_VPRINTF
649 REPLACE_VFPRINTF
650 REPLACE_VDPRINTF
651 REPLACE_VASPRINTF
652 REPLACE_TMPFILE
653 REPLACE_STDIO_WRITE_FUNCS
654 REPLACE_STDIO_READ_FUNCS
655 REPLACE_SPRINTF
656 REPLACE_SNPRINTF
657 REPLACE_RENAMEAT
658 REPLACE_RENAME
659 REPLACE_REMOVE
660 REPLACE_PRINTF
661 REPLACE_POPEN
662 REPLACE_PERROR
663 REPLACE_OBSTACK_PRINTF
664 REPLACE_GETLINE
665 REPLACE_GETDELIM
666 REPLACE_FTELLO
667 REPLACE_FTELL
668 REPLACE_FSEEKO
669 REPLACE_FSEEK
670 REPLACE_FREOPEN
671 REPLACE_FPURGE
672 REPLACE_FPRINTF
673 REPLACE_FOPEN
674 REPLACE_FFLUSH
675 REPLACE_FDOPEN
676 REPLACE_FCLOSE
677 REPLACE_DPRINTF
678 HAVE_VDPRINTF
679 HAVE_VASPRINTF
680 HAVE_RENAMEAT
681 HAVE_POPEN
682 HAVE_PCLOSE
683 HAVE_FTELLO
684 HAVE_FSEEKO
685 HAVE_DPRINTF
686 HAVE_DECL_VSNPRINTF
687 HAVE_DECL_SNPRINTF
688 HAVE_DECL_OBSTACK_PRINTF
689 HAVE_DECL_GETLINE
690 HAVE_DECL_GETDELIM
691 HAVE_DECL_FTELLO
692 HAVE_DECL_FSEEKO
693 HAVE_DECL_FPURGE
694 GNULIB_VSPRINTF_POSIX
695 GNULIB_VSNPRINTF
696 GNULIB_VPRINTF_POSIX
697 GNULIB_VPRINTF
698 GNULIB_VFPRINTF_POSIX
699 GNULIB_VFPRINTF
700 GNULIB_VDPRINTF
701 GNULIB_VSCANF
702 GNULIB_VFSCANF
703 GNULIB_VASPRINTF
704 GNULIB_TMPFILE
705 GNULIB_STDIO_H_SIGPIPE
706 GNULIB_STDIO_H_NONBLOCKING
707 GNULIB_SPRINTF_POSIX
708 GNULIB_SNPRINTF
709 GNULIB_SCANF
710 GNULIB_RENAMEAT
711 GNULIB_RENAME
712 GNULIB_REMOVE
713 GNULIB_PUTS
714 GNULIB_PUTCHAR
715 GNULIB_PUTC
716 GNULIB_PRINTF_POSIX
717 GNULIB_PRINTF
718 GNULIB_POPEN
719 GNULIB_PERROR
720 GNULIB_PCLOSE
721 GNULIB_OBSTACK_PRINTF_POSIX
722 GNULIB_OBSTACK_PRINTF
723 GNULIB_GETLINE
724 GNULIB_GETDELIM
725 GNULIB_GETCHAR
726 GNULIB_GETC
727 GNULIB_FWRITE
728 GNULIB_FTELLO
729 GNULIB_FTELL
730 GNULIB_FSEEKO
731 GNULIB_FSEEK
732 GNULIB_FSCANF
733 GNULIB_FREOPEN
734 GNULIB_FREAD
735 GNULIB_FPUTS
736 GNULIB_FPUTC
737 GNULIB_FPURGE
738 GNULIB_FPRINTF_POSIX
739 GNULIB_FPRINTF
740 GNULIB_FOPEN
741 GNULIB_FGETS
742 GNULIB_FGETC
743 GNULIB_FFLUSH
744 GNULIB_FDOPEN
745 GNULIB_FCLOSE
746 GNULIB_DPRINTF
747 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
748 NEXT_STDDEF_H
749 GL_GENERATE_STDDEF_H_FALSE
750 GL_GENERATE_STDDEF_H_TRUE
751 STDDEF_H
752 HAVE_WCHAR_T
753 REPLACE_NULL
754 HAVE__BOOL
755 GL_GENERATE_STDBOOL_H_FALSE
756 GL_GENERATE_STDBOOL_H_TRUE
757 STDBOOL_H
758 GL_GENERATE_STDARG_H_FALSE
759 GL_GENERATE_STDARG_H_TRUE
760 STDARG_H
761 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
762 NEXT_STDARG_H
763 GL_GENERATE_STDALIGN_H_FALSE
764 GL_GENERATE_STDALIGN_H_TRUE
765 STDALIGN_H
766 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
767 NEXT_SIGNAL_H
768 LIB_PTHREAD_SIGMASK
769 REPLACE_RAISE
770 REPLACE_PTHREAD_SIGMASK
771 HAVE_SIGHANDLER_T
772 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
773 HAVE_STRUCT_SIGACTION_SA_SIGACTION
774 HAVE_SIGACTION
775 HAVE_SIGINFO_T
776 HAVE_SIGSET_T
777 HAVE_RAISE
778 HAVE_PTHREAD_SIGMASK
779 HAVE_POSIX_SIGNALBLOCKING
780 GNULIB_SIGACTION
781 GNULIB_SIGPROCMASK
782 GNULIB_SIGNAL_H_SIGPIPE
783 GNULIB_RAISE
784 GNULIB_PTHREAD_SIGMASK
785 HAVE_SYS_SELECT_H
786 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
787 NEXT_SYS_SELECT_H
788 REPLACE_SELECT
789 REPLACE_PSELECT
790 HAVE_PSELECT
791 GNULIB_SELECT
792 GNULIB_PSELECT
793 REPLACE_TIMEGM
794 REPLACE_NANOSLEEP
795 REPLACE_MKTIME
796 REPLACE_LOCALTIME_R
797 HAVE_TIMEGM
798 HAVE_STRPTIME
799 HAVE_NANOSLEEP
800 HAVE_DECL_LOCALTIME_R
801 GNULIB_TIME_R
802 GNULIB_TIMEGM
803 GNULIB_STRPTIME
804 GNULIB_NANOSLEEP
805 GNULIB_MKTIME
806 REPLACE_UTIMENSAT
807 REPLACE_STAT
808 REPLACE_MKNOD
809 REPLACE_MKFIFO
810 REPLACE_MKDIR
811 REPLACE_LSTAT
812 REPLACE_FUTIMENS
813 REPLACE_FSTATAT
814 REPLACE_FSTAT
815 HAVE_UTIMENSAT
816 HAVE_MKNODAT
817 HAVE_MKNOD
818 HAVE_MKFIFOAT
819 HAVE_MKFIFO
820 HAVE_MKDIRAT
821 HAVE_LSTAT
822 HAVE_LCHMOD
823 HAVE_FUTIMENS
824 HAVE_FSTATAT
825 HAVE_FCHMODAT
826 GNULIB_UTIMENSAT
827 GNULIB_STAT
828 GNULIB_MKNODAT
829 GNULIB_MKNOD
830 GNULIB_MKFIFOAT
831 GNULIB_MKFIFO
832 GNULIB_MKDIRAT
833 GNULIB_LSTAT
834 GNULIB_LCHMOD
835 GNULIB_FUTIMENS
836 GNULIB_FSTATAT
837 GNULIB_FSTAT
838 GNULIB_FCHMODAT
839 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
840 NEXT_INTTYPES_H
841 UINT64_MAX_EQ_ULONG_MAX
842 UINT32_MAX_LT_UINTMAX_MAX
843 PRIPTR_PREFIX
844 PRI_MACROS_BROKEN
845 INT64_MAX_EQ_LONG_MAX
846 INT32_MAX_LT_INTMAX_MAX
847 REPLACE_STRTOIMAX
848 HAVE_DECL_STRTOUMAX
849 HAVE_DECL_STRTOIMAX
850 HAVE_DECL_IMAXDIV
851 HAVE_DECL_IMAXABS
852 GNULIB_STRTOUMAX
853 GNULIB_STRTOIMAX
854 GNULIB_IMAXDIV
855 GNULIB_IMAXABS
856 GL_GENERATE_STDINT_H_FALSE
857 GL_GENERATE_STDINT_H_TRUE
858 STDINT_H
859 WINT_T_SUFFIX
860 WCHAR_T_SUFFIX
861 SIG_ATOMIC_T_SUFFIX
862 SIZE_T_SUFFIX
863 PTRDIFF_T_SUFFIX
864 HAVE_SIGNED_WINT_T
865 HAVE_SIGNED_WCHAR_T
866 HAVE_SIGNED_SIG_ATOMIC_T
867 BITSIZEOF_WINT_T
868 BITSIZEOF_WCHAR_T
869 BITSIZEOF_SIG_ATOMIC_T
870 BITSIZEOF_SIZE_T
871 BITSIZEOF_PTRDIFF_T
872 APPLE_UNIVERSAL_BUILD
873 HAVE_SYS_BITYPES_H
874 HAVE_SYS_INTTYPES_H
875 HAVE_STDINT_H
876 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
877 NEXT_STDINT_H
878 HAVE_SYS_TYPES_H
879 HAVE_INTTYPES_H
880 HAVE_WCHAR_H
881 HAVE_UNSIGNED_LONG_LONG_INT
882 HAVE_LONG_LONG_INT
883 HAVE_WINSOCK2_H
884 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
885 NEXT_SYS_TIME_H
886 REPLACE_STRUCT_TIMEVAL
887 REPLACE_GETTIMEOFDAY
888 HAVE_SYS_TIME_H
889 HAVE_STRUCT_TIMEVAL
890 HAVE_GETTIMEOFDAY
891 GNULIB_GETTIMEOFDAY
892 GNULIB_GL_UNISTD_H_GETOPT
893 GETOPT_H
894 HAVE_GETOPT_H
895 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
896 NEXT_GETOPT_H
897 PRAGMA_COLUMNS
898 PRAGMA_SYSTEM_HEADER
899 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
900 INCLUDE_NEXT
901 GETLOADAVG_LIBS
902 REPLACE_WCTOMB
903 REPLACE_UNSETENV
904 REPLACE_STRTOD
905 REPLACE_SETENV
906 REPLACE_REALPATH
907 REPLACE_REALLOC
908 REPLACE_RANDOM_R
909 REPLACE_PUTENV
910 REPLACE_PTSNAME_R
911 REPLACE_MKSTEMP
912 REPLACE_MBTOWC
913 REPLACE_MALLOC
914 REPLACE_CANONICALIZE_FILE_NAME
915 REPLACE_CALLOC
916 HAVE_DECL_UNSETENV
917 HAVE_UNLOCKPT
918 HAVE_SYS_LOADAVG_H
919 HAVE_STRUCT_RANDOM_DATA
920 HAVE_STRTOULL
921 HAVE_STRTOLL
922 HAVE_STRTOD
923 HAVE_DECL_SETENV
924 HAVE_SETENV
925 HAVE_RPMATCH
926 HAVE_REALPATH
927 HAVE_RANDOM_R
928 HAVE_RANDOM_H
929 HAVE_RANDOM
930 HAVE_PTSNAME_R
931 HAVE_PTSNAME
932 HAVE_POSIX_OPENPT
933 HAVE_MKSTEMPS
934 HAVE_MKSTEMP
935 HAVE_MKOSTEMPS
936 HAVE_MKOSTEMP
937 HAVE_MKDTEMP
938 HAVE_GRANTPT
939 HAVE_GETSUBOPT
940 HAVE_DECL_GETLOADAVG
941 HAVE_CANONICALIZE_FILE_NAME
942 HAVE_ATOLL
943 HAVE__EXIT
944 GNULIB_WCTOMB
945 GNULIB_UNSETENV
946 GNULIB_UNLOCKPT
947 GNULIB_SYSTEM_POSIX
948 GNULIB_STRTOULL
949 GNULIB_STRTOLL
950 GNULIB_STRTOD
951 GNULIB_SETENV
952 GNULIB_RPMATCH
953 GNULIB_REALPATH
954 GNULIB_REALLOC_POSIX
955 GNULIB_RANDOM_R
956 GNULIB_RANDOM
957 GNULIB_PUTENV
958 GNULIB_PTSNAME_R
959 GNULIB_PTSNAME
960 GNULIB_POSIX_OPENPT
961 GNULIB_MKSTEMPS
962 GNULIB_MKSTEMP
963 GNULIB_MKOSTEMPS
964 GNULIB_MKOSTEMP
965 GNULIB_MKDTEMP
966 GNULIB_MBTOWC
967 GNULIB_MALLOC_POSIX
968 GNULIB_GRANTPT
969 GNULIB_GETSUBOPT
970 GNULIB_GETLOADAVG
971 GNULIB_CANONICALIZE_FILE_NAME
972 GNULIB_CALLOC_POSIX
973 GNULIB_ATOLL
974 GNULIB__EXIT
975 GL_GENERATE_EXECINFO_H_FALSE
976 GL_GENERATE_EXECINFO_H_TRUE
977 LIB_EXECINFO
978 EXECINFO_H
979 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
980 UNISTD_H_HAVE_WINSOCK2_H
981 REPLACE_WRITE
982 REPLACE_USLEEP
983 REPLACE_UNLINKAT
984 REPLACE_UNLINK
985 REPLACE_TTYNAME_R
986 REPLACE_SYMLINK
987 REPLACE_SLEEP
988 REPLACE_RMDIR
989 REPLACE_READLINK
990 REPLACE_READ
991 REPLACE_PWRITE
992 REPLACE_PREAD
993 REPLACE_LSEEK
994 REPLACE_LINKAT
995 REPLACE_LINK
996 REPLACE_LCHOWN
997 REPLACE_ISATTY
998 REPLACE_GETPAGESIZE
999 REPLACE_GETGROUPS
1000 REPLACE_GETLOGIN_R
1001 REPLACE_GETDOMAINNAME
1002 REPLACE_GETCWD
1003 REPLACE_FTRUNCATE
1004 REPLACE_FCHOWNAT
1005 REPLACE_DUP2
1006 REPLACE_DUP
1007 REPLACE_CLOSE
1008 REPLACE_CHOWN
1009 HAVE_SYS_PARAM_H
1010 HAVE_OS_H
1011 HAVE_DECL_TTYNAME_R
1012 HAVE_DECL_SETHOSTNAME
1013 HAVE_DECL_GETUSERSHELL
1014 HAVE_DECL_GETPAGESIZE
1015 HAVE_DECL_GETLOGIN_R
1016 HAVE_DECL_GETDOMAINNAME
1017 HAVE_DECL_FDATASYNC
1018 HAVE_DECL_FCHDIR
1019 HAVE_DECL_ENVIRON
1020 HAVE_USLEEP
1021 HAVE_UNLINKAT
1022 HAVE_SYMLINKAT
1023 HAVE_SYMLINK
1024 HAVE_SLEEP
1025 HAVE_SETHOSTNAME
1026 HAVE_READLINKAT
1027 HAVE_READLINK
1028 HAVE_PWRITE
1029 HAVE_PREAD
1030 HAVE_PIPE2
1031 HAVE_PIPE
1032 HAVE_LINKAT
1033 HAVE_LINK
1034 HAVE_LCHOWN
1035 HAVE_GROUP_MEMBER
1036 HAVE_GETPAGESIZE
1037 HAVE_GETLOGIN
1038 HAVE_GETHOSTNAME
1039 HAVE_GETGROUPS
1040 HAVE_GETDTABLESIZE
1041 HAVE_FTRUNCATE
1042 HAVE_FSYNC
1043 HAVE_FDATASYNC
1044 HAVE_FCHOWNAT
1045 HAVE_FCHDIR
1046 HAVE_FACCESSAT
1047 HAVE_EUIDACCESS
1048 HAVE_DUP3
1049 HAVE_DUP2
1050 HAVE_CHOWN
1051 GNULIB_WRITE
1052 GNULIB_USLEEP
1053 GNULIB_UNLINKAT
1054 GNULIB_UNLINK
1055 GNULIB_UNISTD_H_SIGPIPE
1056 GNULIB_UNISTD_H_NONBLOCKING
1057 GNULIB_TTYNAME_R
1058 GNULIB_SYMLINKAT
1059 GNULIB_SYMLINK
1060 GNULIB_SLEEP
1061 GNULIB_SETHOSTNAME
1062 GNULIB_RMDIR
1063 GNULIB_READLINKAT
1064 GNULIB_READLINK
1065 GNULIB_READ
1066 GNULIB_PWRITE
1067 GNULIB_PREAD
1068 GNULIB_PIPE2
1069 GNULIB_PIPE
1070 GNULIB_LSEEK
1071 GNULIB_LINKAT
1072 GNULIB_LINK
1073 GNULIB_LCHOWN
1074 GNULIB_ISATTY
1075 GNULIB_GROUP_MEMBER
1076 GNULIB_GETUSERSHELL
1077 GNULIB_GETPAGESIZE
1078 GNULIB_GETLOGIN_R
1079 GNULIB_GETLOGIN
1080 GNULIB_GETHOSTNAME
1081 GNULIB_GETGROUPS
1082 GNULIB_GETDTABLESIZE
1083 GNULIB_GETDOMAINNAME
1084 GNULIB_GETCWD
1085 GNULIB_FTRUNCATE
1086 GNULIB_FSYNC
1087 GNULIB_FDATASYNC
1088 GNULIB_FCHOWNAT
1089 GNULIB_FCHDIR
1090 GNULIB_FACCESSAT
1091 GNULIB_EUIDACCESS
1092 GNULIB_ENVIRON
1093 GNULIB_DUP3
1094 GNULIB_DUP2
1095 GNULIB_DUP
1096 GNULIB_CLOSE
1097 GNULIB_CHOWN
1098 GNULIB_CHDIR
1099 LIB_CLOCK_GETTIME
1100 GL_GENERATE_ALLOCA_H_FALSE
1101 GL_GENERATE_ALLOCA_H_TRUE
1102 ALLOCA_H
1103 ALLOCA
1104 GL_COND_LIBTOOL_FALSE
1105 GL_COND_LIBTOOL_TRUE
1106 POST_ALLOC_OBJ
1107 PRE_ALLOC_OBJ
1108 CYGWIN_OBJ
1109 RALLOC_OBJ
1110 OLDXMENU_DEPS
1111 LIBX_OTHER
1112 LIBXMENU
1113 OLDXMENU
1114 OLDXMENU_TARGET
1115 LIBXT_OTHER
1116 TOOLKIT_LIBW
1117 WIDGET_OBJ
1118 XOBJ
1119 XMENU_OBJ
1120 FONT_OBJ
1121 OTHER_FILES
1122 GNU_OBJC_CFLAGS
1123 ns_appsrc
1124 ns_appresdir
1125 ns_appbindir
1126 ns_appdir
1127 X_TOOLKIT_TYPE
1128 GNUSTEP_CFLAGS
1129 C_SWITCH_X_SITE
1130 LD_SWITCH_X_SITE
1131 gameuser
1132 gamedir
1133 bitmapdir
1134 archlibdir
1135 etcdir
1136 x_default_search_path
1137 lisppath
1138 locallisppath
1139 standardlisppath
1140 leimdir
1141 lispdir
1142 srcdir
1143 canonical
1144 configuration
1145 version
1146 KRB4LIB
1147 DESLIB
1148 KRB5LIB
1149 CRYPTOLIB
1150 COM_ERRLIB
1151 LIBRESOLV
1152 LIBHESIOD
1153 TERMCAP_OBJ
1154 LIBS_TERMCAP
1155 BLESSMAIL_TARGET
1156 LIBS_MAIL
1157 liblockfile
1158 LIBXML2_LIBS
1159 LIBXML2_CFLAGS
1160 LIBXSM
1161 LIBGPM
1162 LIBGIF
1163 LIBTIFF
1164 LIBPNG
1165 LIBJPEG
1166 LIBXPM
1167 M17N_FLT_LIBS
1168 M17N_FLT_CFLAGS
1169 LIBOTF_LIBS
1170 LIBOTF_CFLAGS
1171 FREETYPE_LIBS
1172 FREETYPE_CFLAGS
1173 XFT_LIBS
1174 XFT_CFLAGS
1175 FONTCONFIG_LIBS
1176 FONTCONFIG_CFLAGS
1177 LIBXMU
1178 LIBXTR6
1179 LIBGNUTLS_LIBS
1180 LIBGNUTLS_CFLAGS
1181 LIBSELINUX_LIBS
1182 SETTINGS_LIBS
1183 SETTINGS_CFLAGS
1184 GOBJECT_LIBS
1185 GOBJECT_CFLAGS
1186 GCONF_LIBS
1187 GCONF_CFLAGS
1188 GSETTINGS_LIBS
1189 GSETTINGS_CFLAGS
1190 DBUS_OBJ
1191 DBUS_LIBS
1192 DBUS_CFLAGS
1193 GTK_OBJ
1194 GTK_LIBS
1195 GTK_CFLAGS
1196 IMAGEMAGICK_LIBS
1197 IMAGEMAGICK_CFLAGS
1198 RSVG_LIBS
1199 RSVG_CFLAGS
1200 LIB_PTHREAD
1201 VMLIMIT_OBJ
1202 GMALLOC_OBJ
1203 HAVE_XSERVER
1204 LIB_STANDARD
1205 NS_OBJC_OBJ
1206 NS_OBJ
1207 ns_self_contained
1208 INSTALL_ARCH_INDEP_EXTRA
1209 TEMACS_LDFLAGS2
1210 LD_SWITCH_X_SITE_RPATH
1211 XMKMF
1212 DEPFLAGS
1213 MKDEPDIR
1214 CFLAGS_SOUND
1215 ALSA_LIBS
1216 ALSA_CFLAGS
1217 LIBSOUND
1218 PKG_CONFIG
1219 CRT_DIR
1220 START_FILES
1221 LIB_MATH
1222 LIBS_SYSTEM
1223 C_SWITCH_SYSTEM
1224 UNEXEC_OBJ
1225 C_SWITCH_MACHINE
1226 LD_SWITCH_SYSTEM
1227 CANNOT_DUMP
1228 INFO_OPTS
1229 INFO_EXT
1230 HAVE_MAKEINFO
1231 PAXCTL
1232 GZIP_PROG
1233 INSTALL_INFO
1234 LN_S
1235 GNULIB_WARN_CFLAGS
1236 WARN_CFLAGS
1237 WERROR_CFLAGS
1238 RANLIB
1239 ARFLAGS
1240 AR
1241 EGREP
1242 GREP
1243 CPP
1244 am__fastdepCC_FALSE
1245 am__fastdepCC_TRUE
1246 CCDEPMODE
1247 AMDEPBACKSLASH
1248 AMDEP_FALSE
1249 AMDEP_TRUE
1250 am__quote
1251 am__include
1252 DEPDIR
1253 OBJEXT
1254 EXEEXT
1255 ac_ct_CC
1256 CPPFLAGS
1257 LDFLAGS
1258 CFLAGS
1259 CC
1260 host_os
1261 host_vendor
1262 host_cpu
1263 host
1264 build_os
1265 build_vendor
1266 build_cpu
1267 build
1268 PROFILING_CFLAGS
1269 GZIP_INFO
1270 cache_file
1271 am__untar
1272 am__tar
1273 AMTAR
1274 am__leading_dot
1275 SET_MAKE
1276 AWK
1277 mkdir_p
1278 MKDIR_P
1279 INSTALL_STRIP_PROGRAM
1280 STRIP
1281 install_sh
1282 MAKEINFO
1283 AUTOHEADER
1284 AUTOMAKE
1285 AUTOCONF
1286 ACLOCAL
1287 VERSION
1288 PACKAGE
1289 CYGPATH_W
1290 am__isrc
1291 INSTALL_DATA
1292 INSTALL_SCRIPT
1293 INSTALL_PROGRAM
1294 target_alias
1295 host_alias
1296 build_alias
1297 LIBS
1298 ECHO_T
1299 ECHO_N
1300 ECHO_C
1301 DEFS
1302 mandir
1303 localedir
1304 libdir
1305 psdir
1306 pdfdir
1307 dvidir
1308 htmldir
1309 infodir
1310 docdir
1311 oldincludedir
1312 includedir
1313 localstatedir
1314 sharedstatedir
1315 sysconfdir
1316 datadir
1317 datarootdir
1318 libexecdir
1319 sbindir
1320 bindir
1321 program_transform_name
1322 prefix
1323 exec_prefix
1324 PACKAGE_URL
1325 PACKAGE_BUGREPORT
1326 PACKAGE_STRING
1327 PACKAGE_VERSION
1328 PACKAGE_TARNAME
1329 PACKAGE_NAME
1330 PATH_SEPARATOR
1331 SHELL'
1332 ac_subst_files='deps_frag
1333 lisp_frag
1334 ns_frag'
1335 ac_user_opts='
1336 enable_option_checking
1337 with_all
1338 with_pop
1339 with_kerberos
1340 with_kerberos5
1341 with_hesiod
1342 with_mmdf
1343 with_mail_unlink
1344 with_mailhost
1345 with_sound
1346 with_sync_input
1347 with_x_toolkit
1348 with_wide_int
1349 with_xpm
1350 with_jpeg
1351 with_tiff
1352 with_gif
1353 with_png
1354 with_rsvg
1355 with_xml2
1356 with_imagemagick
1357 with_xft
1358 with_libotf
1359 with_m17n_flt
1360 with_toolkit_scroll_bars
1361 with_xaw3d
1362 with_xim
1363 with_ns
1364 with_gpm
1365 with_dbus
1366 with_gconf
1367 with_gsettings
1368 with_selinux
1369 with_gnutls
1370 with_makeinfo
1371 with_compress_info
1372 with_pkg_config_prog
1373 with_crt_dir
1374 with_gameuser
1375 with_gnustep_conf
1376 enable_ns_self_contained
1377 enable_locallisppath
1378 enable_checking
1379 enable_check_lisp_object_type
1380 enable_profiling
1381 enable_autodepend
1382 enable_dependency_tracking
1383 enable_largefile
1384 enable_gcc_warnings
1385 enable_link_time_optimization
1386 with_x
1387 '
1388 ac_precious_vars='build_alias
1389 host_alias
1390 target_alias
1391 CC
1392 CFLAGS
1393 LDFLAGS
1394 LIBS
1395 CPPFLAGS
1396 CPP
1397 XMKMF'
1398
1399
1400 # Initialize some variables set by options.
1401 ac_init_help=
1402 ac_init_version=false
1403 ac_unrecognized_opts=
1404 ac_unrecognized_sep=
1405 # The variables have the same names as the options, with
1406 # dashes changed to underlines.
1407 cache_file=/dev/null
1408 exec_prefix=NONE
1409 no_create=
1410 no_recursion=
1411 prefix=NONE
1412 program_prefix=NONE
1413 program_suffix=NONE
1414 program_transform_name=s,x,x,
1415 silent=
1416 site=
1417 srcdir=
1418 verbose=
1419 x_includes=NONE
1420 x_libraries=NONE
1421
1422 # Installation directory options.
1423 # These are left unexpanded so users can "make install exec_prefix=/foo"
1424 # and all the variables that are supposed to be based on exec_prefix
1425 # by default will actually change.
1426 # Use braces instead of parens because sh, perl, etc. also accept them.
1427 # (The list follows the same order as the GNU Coding Standards.)
1428 bindir='${exec_prefix}/bin'
1429 sbindir='${exec_prefix}/sbin'
1430 libexecdir='${exec_prefix}/libexec'
1431 datarootdir='${prefix}/share'
1432 datadir='${datarootdir}'
1433 sysconfdir='${prefix}/etc'
1434 sharedstatedir='${prefix}/com'
1435 localstatedir='${prefix}/var'
1436 includedir='${prefix}/include'
1437 oldincludedir='/usr/include'
1438 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1439 infodir='${datarootdir}/info'
1440 htmldir='${docdir}'
1441 dvidir='${docdir}'
1442 pdfdir='${docdir}'
1443 psdir='${docdir}'
1444 libdir='${exec_prefix}/lib'
1445 localedir='${datarootdir}/locale'
1446 mandir='${datarootdir}/man'
1447
1448 ac_prev=
1449 ac_dashdash=
1450 for ac_option
1451 do
1452 # If the previous option needs an argument, assign it.
1453 if test -n "$ac_prev"; then
1454 eval $ac_prev=\$ac_option
1455 ac_prev=
1456 continue
1457 fi
1458
1459 case $ac_option in
1460 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1461 *) ac_optarg=yes ;;
1462 esac
1463
1464 # Accept the important Cygnus configure options, so we can diagnose typos.
1465
1466 case $ac_dashdash$ac_option in
1467 --)
1468 ac_dashdash=yes ;;
1469
1470 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1471 ac_prev=bindir ;;
1472 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1473 bindir=$ac_optarg ;;
1474
1475 -build | --build | --buil | --bui | --bu)
1476 ac_prev=build_alias ;;
1477 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1478 build_alias=$ac_optarg ;;
1479
1480 -cache-file | --cache-file | --cache-fil | --cache-fi \
1481 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1482 ac_prev=cache_file ;;
1483 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1484 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1485 cache_file=$ac_optarg ;;
1486
1487 --config-cache | -C)
1488 cache_file=config.cache ;;
1489
1490 -datadir | --datadir | --datadi | --datad)
1491 ac_prev=datadir ;;
1492 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1493 datadir=$ac_optarg ;;
1494
1495 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1496 | --dataroo | --dataro | --datar)
1497 ac_prev=datarootdir ;;
1498 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1499 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1500 datarootdir=$ac_optarg ;;
1501
1502 -disable-* | --disable-*)
1503 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1506 as_fn_error "invalid feature name: $ac_useropt"
1507 ac_useropt_orig=$ac_useropt
1508 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1510 *"
1511 "enable_$ac_useropt"
1512 "*) ;;
1513 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1514 ac_unrecognized_sep=', ';;
1515 esac
1516 eval enable_$ac_useropt=no ;;
1517
1518 -docdir | --docdir | --docdi | --doc | --do)
1519 ac_prev=docdir ;;
1520 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1521 docdir=$ac_optarg ;;
1522
1523 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1524 ac_prev=dvidir ;;
1525 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1526 dvidir=$ac_optarg ;;
1527
1528 -enable-* | --enable-*)
1529 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1532 as_fn_error "invalid feature name: $ac_useropt"
1533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1536 *"
1537 "enable_$ac_useropt"
1538 "*) ;;
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1541 esac
1542 eval enable_$ac_useropt=\$ac_optarg ;;
1543
1544 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1545 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1546 | --exec | --exe | --ex)
1547 ac_prev=exec_prefix ;;
1548 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1549 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1550 | --exec=* | --exe=* | --ex=*)
1551 exec_prefix=$ac_optarg ;;
1552
1553 -gas | --gas | --ga | --g)
1554 # Obsolete; use --with-gas.
1555 with_gas=yes ;;
1556
1557 -help | --help | --hel | --he | -h)
1558 ac_init_help=long ;;
1559 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1560 ac_init_help=recursive ;;
1561 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1562 ac_init_help=short ;;
1563
1564 -host | --host | --hos | --ho)
1565 ac_prev=host_alias ;;
1566 -host=* | --host=* | --hos=* | --ho=*)
1567 host_alias=$ac_optarg ;;
1568
1569 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1570 ac_prev=htmldir ;;
1571 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1572 | --ht=*)
1573 htmldir=$ac_optarg ;;
1574
1575 -includedir | --includedir | --includedi | --included | --include \
1576 | --includ | --inclu | --incl | --inc)
1577 ac_prev=includedir ;;
1578 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1579 | --includ=* | --inclu=* | --incl=* | --inc=*)
1580 includedir=$ac_optarg ;;
1581
1582 -infodir | --infodir | --infodi | --infod | --info | --inf)
1583 ac_prev=infodir ;;
1584 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1585 infodir=$ac_optarg ;;
1586
1587 -libdir | --libdir | --libdi | --libd)
1588 ac_prev=libdir ;;
1589 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1590 libdir=$ac_optarg ;;
1591
1592 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1593 | --libexe | --libex | --libe)
1594 ac_prev=libexecdir ;;
1595 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1596 | --libexe=* | --libex=* | --libe=*)
1597 libexecdir=$ac_optarg ;;
1598
1599 -localedir | --localedir | --localedi | --localed | --locale)
1600 ac_prev=localedir ;;
1601 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1602 localedir=$ac_optarg ;;
1603
1604 -localstatedir | --localstatedir | --localstatedi | --localstated \
1605 | --localstate | --localstat | --localsta | --localst | --locals)
1606 ac_prev=localstatedir ;;
1607 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1608 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1609 localstatedir=$ac_optarg ;;
1610
1611 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1612 ac_prev=mandir ;;
1613 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1614 mandir=$ac_optarg ;;
1615
1616 -nfp | --nfp | --nf)
1617 # Obsolete; use --without-fp.
1618 with_fp=no ;;
1619
1620 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1621 | --no-cr | --no-c | -n)
1622 no_create=yes ;;
1623
1624 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1625 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1626 no_recursion=yes ;;
1627
1628 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1629 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1630 | --oldin | --oldi | --old | --ol | --o)
1631 ac_prev=oldincludedir ;;
1632 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1633 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1634 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1635 oldincludedir=$ac_optarg ;;
1636
1637 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1638 ac_prev=prefix ;;
1639 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1640 prefix=$ac_optarg ;;
1641
1642 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1643 | --program-pre | --program-pr | --program-p)
1644 ac_prev=program_prefix ;;
1645 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1646 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1647 program_prefix=$ac_optarg ;;
1648
1649 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1650 | --program-suf | --program-su | --program-s)
1651 ac_prev=program_suffix ;;
1652 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1653 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1654 program_suffix=$ac_optarg ;;
1655
1656 -program-transform-name | --program-transform-name \
1657 | --program-transform-nam | --program-transform-na \
1658 | --program-transform-n | --program-transform- \
1659 | --program-transform | --program-transfor \
1660 | --program-transfo | --program-transf \
1661 | --program-trans | --program-tran \
1662 | --progr-tra | --program-tr | --program-t)
1663 ac_prev=program_transform_name ;;
1664 -program-transform-name=* | --program-transform-name=* \
1665 | --program-transform-nam=* | --program-transform-na=* \
1666 | --program-transform-n=* | --program-transform-=* \
1667 | --program-transform=* | --program-transfor=* \
1668 | --program-transfo=* | --program-transf=* \
1669 | --program-trans=* | --program-tran=* \
1670 | --progr-tra=* | --program-tr=* | --program-t=*)
1671 program_transform_name=$ac_optarg ;;
1672
1673 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1674 ac_prev=pdfdir ;;
1675 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1676 pdfdir=$ac_optarg ;;
1677
1678 -psdir | --psdir | --psdi | --psd | --ps)
1679 ac_prev=psdir ;;
1680 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1681 psdir=$ac_optarg ;;
1682
1683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684 | -silent | --silent | --silen | --sile | --sil)
1685 silent=yes ;;
1686
1687 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1688 ac_prev=sbindir ;;
1689 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1690 | --sbi=* | --sb=*)
1691 sbindir=$ac_optarg ;;
1692
1693 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1694 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1695 | --sharedst | --shareds | --shared | --share | --shar \
1696 | --sha | --sh)
1697 ac_prev=sharedstatedir ;;
1698 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1699 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1700 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1701 | --sha=* | --sh=*)
1702 sharedstatedir=$ac_optarg ;;
1703
1704 -site | --site | --sit)
1705 ac_prev=site ;;
1706 -site=* | --site=* | --sit=*)
1707 site=$ac_optarg ;;
1708
1709 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1710 ac_prev=srcdir ;;
1711 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1712 srcdir=$ac_optarg ;;
1713
1714 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1715 | --syscon | --sysco | --sysc | --sys | --sy)
1716 ac_prev=sysconfdir ;;
1717 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1718 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1719 sysconfdir=$ac_optarg ;;
1720
1721 -target | --target | --targe | --targ | --tar | --ta | --t)
1722 ac_prev=target_alias ;;
1723 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1724 target_alias=$ac_optarg ;;
1725
1726 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1727 verbose=yes ;;
1728
1729 -version | --version | --versio | --versi | --vers | -V)
1730 ac_init_version=: ;;
1731
1732 -with-* | --with-*)
1733 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1734 # Reject names that are not valid shell variable names.
1735 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1736 as_fn_error "invalid package name: $ac_useropt"
1737 ac_useropt_orig=$ac_useropt
1738 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1739 case $ac_user_opts in
1740 *"
1741 "with_$ac_useropt"
1742 "*) ;;
1743 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1744 ac_unrecognized_sep=', ';;
1745 esac
1746 eval with_$ac_useropt=\$ac_optarg ;;
1747
1748 -without-* | --without-*)
1749 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1750 # Reject names that are not valid shell variable names.
1751 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1752 as_fn_error "invalid package name: $ac_useropt"
1753 ac_useropt_orig=$ac_useropt
1754 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1755 case $ac_user_opts in
1756 *"
1757 "with_$ac_useropt"
1758 "*) ;;
1759 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1760 ac_unrecognized_sep=', ';;
1761 esac
1762 eval with_$ac_useropt=no ;;
1763
1764 --x)
1765 # Obsolete; use --with-x.
1766 with_x=yes ;;
1767
1768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1769 | --x-incl | --x-inc | --x-in | --x-i)
1770 ac_prev=x_includes ;;
1771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1773 x_includes=$ac_optarg ;;
1774
1775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1777 ac_prev=x_libraries ;;
1778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1780 x_libraries=$ac_optarg ;;
1781
1782 -*) as_fn_error "unrecognized option: \`$ac_option'
1783 Try \`$0 --help' for more information."
1784 ;;
1785
1786 *=*)
1787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1788 # Reject names that are not valid shell variable names.
1789 case $ac_envvar in #(
1790 '' | [0-9]* | *[!_$as_cr_alnum]* )
1791 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1792 esac
1793 eval $ac_envvar=\$ac_optarg
1794 export $ac_envvar ;;
1795
1796 *)
1797 # FIXME: should be removed in autoconf 3.0.
1798 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1800 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1802 ;;
1803
1804 esac
1805 done
1806
1807 if test -n "$ac_prev"; then
1808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1809 as_fn_error "missing argument to $ac_option"
1810 fi
1811
1812 if test -n "$ac_unrecognized_opts"; then
1813 case $enable_option_checking in
1814 no) ;;
1815 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1816 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1817 esac
1818 fi
1819
1820 # Check all directory arguments for consistency.
1821 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1822 datadir sysconfdir sharedstatedir localstatedir includedir \
1823 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1824 libdir localedir mandir
1825 do
1826 eval ac_val=\$$ac_var
1827 # Remove trailing slashes.
1828 case $ac_val in
1829 */ )
1830 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1831 eval $ac_var=\$ac_val;;
1832 esac
1833 # Be sure to have absolute directory names.
1834 case $ac_val in
1835 [\\/$]* | ?:[\\/]* ) continue;;
1836 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1837 esac
1838 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1839 done
1840
1841 # There might be people who depend on the old broken behavior: `$host'
1842 # used to hold the argument of --host etc.
1843 # FIXME: To remove some day.
1844 build=$build_alias
1845 host=$host_alias
1846 target=$target_alias
1847
1848 # FIXME: To remove some day.
1849 if test "x$host_alias" != x; then
1850 if test "x$build_alias" = x; then
1851 cross_compiling=maybe
1852 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1853 If a cross compiler is detected then cross compile mode will be used." >&2
1854 elif test "x$build_alias" != "x$host_alias"; then
1855 cross_compiling=yes
1856 fi
1857 fi
1858
1859 ac_tool_prefix=
1860 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1861
1862 test "$silent" = yes && exec 6>/dev/null
1863
1864
1865 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1866 ac_ls_di=`ls -di .` &&
1867 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1868 as_fn_error "working directory cannot be determined"
1869 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1870 as_fn_error "pwd does not report name of working directory"
1871
1872
1873 # Find the source files, if location was not specified.
1874 if test -z "$srcdir"; then
1875 ac_srcdir_defaulted=yes
1876 # Try the directory containing this script, then the parent directory.
1877 ac_confdir=`$as_dirname -- "$as_myself" ||
1878 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1879 X"$as_myself" : 'X\(//\)[^/]' \| \
1880 X"$as_myself" : 'X\(//\)$' \| \
1881 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1882 $as_echo X"$as_myself" |
1883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1884 s//\1/
1885 q
1886 }
1887 /^X\(\/\/\)[^/].*/{
1888 s//\1/
1889 q
1890 }
1891 /^X\(\/\/\)$/{
1892 s//\1/
1893 q
1894 }
1895 /^X\(\/\).*/{
1896 s//\1/
1897 q
1898 }
1899 s/.*/./; q'`
1900 srcdir=$ac_confdir
1901 if test ! -r "$srcdir/$ac_unique_file"; then
1902 srcdir=..
1903 fi
1904 else
1905 ac_srcdir_defaulted=no
1906 fi
1907 if test ! -r "$srcdir/$ac_unique_file"; then
1908 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1909 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1910 fi
1911 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1912 ac_abs_confdir=`(
1913 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1914 pwd)`
1915 # When building in place, set srcdir=.
1916 if test "$ac_abs_confdir" = "$ac_pwd"; then
1917 srcdir=.
1918 fi
1919 # Remove unnecessary trailing slashes from srcdir.
1920 # Double slashes in file names in object file debugging info
1921 # mess up M-x gdb in Emacs.
1922 case $srcdir in
1923 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1924 esac
1925 for ac_var in $ac_precious_vars; do
1926 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1927 eval ac_env_${ac_var}_value=\$${ac_var}
1928 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1929 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1930 done
1931
1932 #
1933 # Report the --help message.
1934 #
1935 if test "$ac_init_help" = "long"; then
1936 # Omit some internal or obsolete options to make the list less imposing.
1937 # This message is too long to be a string in the A/UX 3.1 sh.
1938 cat <<_ACEOF
1939 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1940
1941 Usage: $0 [OPTION]... [VAR=VALUE]...
1942
1943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1944 VAR=VALUE. See below for descriptions of some of the useful variables.
1945
1946 Defaults for the options are specified in brackets.
1947
1948 Configuration:
1949 -h, --help display this help and exit
1950 --help=short display options specific to this package
1951 --help=recursive display the short help of all the included packages
1952 -V, --version display version information and exit
1953 -q, --quiet, --silent do not print \`checking...' messages
1954 --cache-file=FILE cache test results in FILE [disabled]
1955 -C, --config-cache alias for \`--cache-file=config.cache'
1956 -n, --no-create do not create output files
1957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1958
1959 Installation directories:
1960 --prefix=PREFIX install architecture-independent files in PREFIX
1961 [$ac_default_prefix]
1962 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1963 [PREFIX]
1964
1965 By default, \`make install' will install all the files in
1966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1968 for instance \`--prefix=\$HOME'.
1969
1970 For better control, use the options below.
1971
1972 Fine tuning of the installation directories:
1973 --bindir=DIR user executables [EPREFIX/bin]
1974 --sbindir=DIR system admin executables [EPREFIX/sbin]
1975 --libexecdir=DIR program executables [EPREFIX/libexec]
1976 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1977 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1978 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1979 --libdir=DIR object code libraries [EPREFIX/lib]
1980 --includedir=DIR C header files [PREFIX/include]
1981 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1982 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1983 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1984 --infodir=DIR info documentation [DATAROOTDIR/info]
1985 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1986 --mandir=DIR man documentation [DATAROOTDIR/man]
1987 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1988 --htmldir=DIR html documentation [DOCDIR]
1989 --dvidir=DIR dvi documentation [DOCDIR]
1990 --pdfdir=DIR pdf documentation [DOCDIR]
1991 --psdir=DIR ps documentation [DOCDIR]
1992 _ACEOF
1993
1994 cat <<\_ACEOF
1995
1996 Program names:
1997 --program-prefix=PREFIX prepend PREFIX to installed program names
1998 --program-suffix=SUFFIX append SUFFIX to installed program names
1999 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2000
2001 X features:
2002 --x-includes=DIR X include files are in DIR
2003 --x-libraries=DIR X library files are in DIR
2004
2005 System types:
2006 --build=BUILD configure for building on BUILD [guessed]
2007 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2008 _ACEOF
2009 fi
2010
2011 if test -n "$ac_init_help"; then
2012 case $ac_init_help in
2013 short | recursive ) echo "Configuration of emacs 24.2.50:";;
2014 esac
2015 cat <<\_ACEOF
2016
2017 Optional Features:
2018 --disable-option-checking ignore unrecognized --enable/--with options
2019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2021 --disable-ns-self-contained
2022 disable self contained build under NeXTstep
2023 --enable-locallisppath=PATH
2024 directories Emacs should search for lisp files
2025 specific to this site
2026 --enable-checking[=LIST]
2027 enable expensive run-time checks. With LIST, enable
2028 only specific categories of checks. Categories are:
2029 all,yes,no. Flags are: stringbytes, stringoverrun,
2030 stringfreelist, xmallocoverrun, conslist, glyphs
2031 --enable-check-lisp-object-type
2032 enable compile time checks for the Lisp_Object data
2033 type. This is useful for development for catching
2034 certain types of bugs.
2035 --enable-profiling build emacs with profiling support. This might not
2036 work on all platforms
2037 --enable-autodepend automatically generate dependencies to .h-files.
2038 Requires GNU Make and Gcc. Enabled if GNU Make and
2039 Gcc is found
2040 --disable-dependency-tracking speeds up one-time build
2041 --enable-dependency-tracking do not reject slow dependency extractors
2042 --disable-largefile omit support for large files
2043 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2044 developers, and may generate false alarms when used
2045 with older or non-GNU development tools.
2046 --enable-link-time-optimization
2047 build emacs with link-time optimization. This is
2048 supported only for GCC since 4.5.0.
2049
2050 Optional Packages:
2051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2053 --without-all omit almost all features and build small executable
2054 with minimal dependencies
2055 --without-pop don't support POP mail retrieval with movemail
2056 --with-kerberos support Kerberos-authenticated POP
2057 --with-kerberos5 support Kerberos version 5 authenticated POP
2058 --with-hesiod support Hesiod to get the POP server host
2059 --with-mmdf support MMDF mailboxes
2060 --with-mail-unlink unlink, rather than empty, mail spool after reading
2061 --with-mailhost=HOSTNAME
2062 string giving default POP mail host
2063 --without-sound don't compile with sound support
2064 --without-sync-input don't process async input synchronously
2065 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2066 gtk3, lucid or athena, motif, no)
2067 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2068 --without-xpm don't compile with XPM image support
2069 --without-jpeg don't compile with JPEG image support
2070 --without-tiff don't compile with TIFF image support
2071 --without-gif don't compile with GIF image support
2072 --without-png don't compile with PNG image support
2073 --without-rsvg don't compile with SVG image support
2074 --without-xml2 don't compile with XML parsing support
2075 --without-imagemagick don't compile with ImageMagick image support
2076 --without-xft don't use XFT for anti aliased fonts
2077 --without-libotf don't use libotf for OpenType font support
2078 --without-m17n-flt don't use m17n-flt for text shaping
2079 --without-toolkit-scroll-bars
2080 don't use Motif or Xaw3d scroll bars
2081 --without-xaw3d don't use Xaw3d
2082 --without-xim don't use X11 XIM
2083 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2084 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2085 console
2086 --without-dbus don't compile with D-Bus support
2087 --without-gconf don't compile with GConf support
2088 --without-gsettings don't compile with GSettings support
2089 --without-selinux don't compile with SELinux support
2090 --without-gnutls don't use -lgnutls for SSL/TLS support
2091 --without-makeinfo don't require makeinfo for building manuals
2092 --without-compress-info don't compress the installed Info pages
2093 --with-pkg-config-prog=PATH
2094 path to pkg-config for finding GTK and librsvg
2095 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2096 /usr/lib, or /usr/lib64 on some platforms.
2097 --with-gameuser=USER user for shared game score files
2098 --with-gnustep-conf=PATH
2099 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2100 or /etc/GNUstep/GNUstep.conf
2101 --with-x use the X Window System
2102
2103 Some influential environment variables:
2104 CC C compiler command
2105 CFLAGS C compiler flags
2106 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2107 nonstandard directory <lib dir>
2108 LIBS libraries to pass to the linker, e.g. -l<library>
2109 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2110 you have headers in a nonstandard directory <include dir>
2111 CPP C preprocessor
2112 XMKMF Path to xmkmf, Makefile generator for X Window System
2113
2114 Use these variables to override the choices made by `configure' or to help
2115 it to find libraries and programs with nonstandard names/locations.
2116
2117 Report bugs to the package provider.
2118 _ACEOF
2119 ac_status=$?
2120 fi
2121
2122 if test "$ac_init_help" = "recursive"; then
2123 # If there are subdirs, report their specific --help.
2124 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2125 test -d "$ac_dir" ||
2126 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2127 continue
2128 ac_builddir=.
2129
2130 case "$ac_dir" in
2131 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2132 *)
2133 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2134 # A ".." for each directory in $ac_dir_suffix.
2135 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2136 case $ac_top_builddir_sub in
2137 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2138 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2139 esac ;;
2140 esac
2141 ac_abs_top_builddir=$ac_pwd
2142 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2143 # for backward compatibility:
2144 ac_top_builddir=$ac_top_build_prefix
2145
2146 case $srcdir in
2147 .) # We are building in place.
2148 ac_srcdir=.
2149 ac_top_srcdir=$ac_top_builddir_sub
2150 ac_abs_top_srcdir=$ac_pwd ;;
2151 [\\/]* | ?:[\\/]* ) # Absolute name.
2152 ac_srcdir=$srcdir$ac_dir_suffix;
2153 ac_top_srcdir=$srcdir
2154 ac_abs_top_srcdir=$srcdir ;;
2155 *) # Relative name.
2156 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2157 ac_top_srcdir=$ac_top_build_prefix$srcdir
2158 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2159 esac
2160 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2161
2162 cd "$ac_dir" || { ac_status=$?; continue; }
2163 # Check for guested configure.
2164 if test -f "$ac_srcdir/configure.gnu"; then
2165 echo &&
2166 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2167 elif test -f "$ac_srcdir/configure"; then
2168 echo &&
2169 $SHELL "$ac_srcdir/configure" --help=recursive
2170 else
2171 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2172 fi || ac_status=$?
2173 cd "$ac_pwd" || { ac_status=$?; break; }
2174 done
2175 fi
2176
2177 test -n "$ac_init_help" && exit $ac_status
2178 if $ac_init_version; then
2179 cat <<\_ACEOF
2180 emacs configure 24.2.50
2181 generated by GNU Autoconf 2.65
2182
2183 Copyright (C) 2009 Free Software Foundation, Inc.
2184 This configure script is free software; the Free Software Foundation
2185 gives unlimited permission to copy, distribute and modify it.
2186 _ACEOF
2187 exit
2188 fi
2189
2190 ## ------------------------ ##
2191 ## Autoconf initialization. ##
2192 ## ------------------------ ##
2193
2194 # ac_fn_c_try_compile LINENO
2195 # --------------------------
2196 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_c_try_compile ()
2198 {
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 rm -f conftest.$ac_objext
2201 if { { ac_try="$ac_compile"
2202 case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2205 esac
2206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207 $as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_compile") 2>conftest.err
2209 ac_status=$?
2210 if test -s conftest.err; then
2211 grep -v '^ *+' conftest.err >conftest.er1
2212 cat conftest.er1 >&5
2213 mv -f conftest.er1 conftest.err
2214 fi
2215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216 test $ac_status = 0; } && {
2217 test -z "$ac_c_werror_flag" ||
2218 test ! -s conftest.err
2219 } && test -s conftest.$ac_objext; then :
2220 ac_retval=0
2221 else
2222 $as_echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2224
2225 ac_retval=1
2226 fi
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228 as_fn_set_status $ac_retval
2229
2230 } # ac_fn_c_try_compile
2231
2232 # ac_fn_c_try_cpp LINENO
2233 # ----------------------
2234 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2235 ac_fn_c_try_cpp ()
2236 {
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 if { { ac_try="$ac_cpp conftest.$ac_ext"
2239 case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2246 ac_status=$?
2247 if test -s conftest.err; then
2248 grep -v '^ *+' conftest.err >conftest.er1
2249 cat conftest.er1 >&5
2250 mv -f conftest.er1 conftest.err
2251 fi
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; } >/dev/null && {
2254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2255 test ! -s conftest.err
2256 }; then :
2257 ac_retval=0
2258 else
2259 $as_echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2261
2262 ac_retval=1
2263 fi
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 as_fn_set_status $ac_retval
2266
2267 } # ac_fn_c_try_cpp
2268
2269 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2270 # -------------------------------------------------------
2271 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2272 # the include files in INCLUDES and setting the cache variable VAR
2273 # accordingly.
2274 ac_fn_c_check_header_mongrel ()
2275 {
2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2282 fi
2283 eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286 else
2287 # Is the header compilable?
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2289 $as_echo_n "checking $2 usability... " >&6; }
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2292 $4
2293 #include <$2>
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 ac_header_compiler=yes
2297 else
2298 ac_header_compiler=no
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2302 $as_echo "$ac_header_compiler" >&6; }
2303
2304 # Is the header present?
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2306 $as_echo_n "checking $2 presence... " >&6; }
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 #include <$2>
2310 _ACEOF
2311 if ac_fn_c_try_cpp "$LINENO"; then :
2312 ac_header_preproc=yes
2313 else
2314 ac_header_preproc=no
2315 fi
2316 rm -f conftest.err conftest.$ac_ext
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2318 $as_echo "$ac_header_preproc" >&6; }
2319
2320 # So? What about this header?
2321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2322 yes:no: )
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2324 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2326 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2327 ;;
2328 no:yes:* )
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2330 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2332 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2334 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2336 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2338 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2339 ;;
2340 esac
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 eval "$3=\$ac_header_compiler"
2347 fi
2348 eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 fi
2352 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2353
2354 } # ac_fn_c_check_header_mongrel
2355
2356 # ac_fn_c_try_run LINENO
2357 # ----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2359 # that executables *can* be run.
2360 ac_fn_c_try_run ()
2361 {
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 if { { ac_try="$ac_link"
2364 case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>&5
2371 ac_status=$?
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2374 { { case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377 esac
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_try") 2>&5
2381 ac_status=$?
2382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2383 test $ac_status = 0; }; }; then :
2384 ac_retval=0
2385 else
2386 $as_echo "$as_me: program exited with status $ac_status" >&5
2387 $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 ac_retval=$ac_status
2391 fi
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 as_fn_set_status $ac_retval
2395
2396 } # ac_fn_c_try_run
2397
2398 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2399 # -------------------------------------------------------
2400 # Tests whether HEADER exists and can be compiled using the include files in
2401 # INCLUDES, setting the cache variable VAR accordingly.
2402 ac_fn_c_check_header_compile ()
2403 {
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406 $as_echo_n "checking for $2... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $4
2413 #include <$2>
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416 eval "$3=yes"
2417 else
2418 eval "$3=no"
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 fi
2422 eval ac_res=\$$3
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2424 $as_echo "$ac_res" >&6; }
2425 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2426
2427 } # ac_fn_c_check_header_compile
2428
2429 # ac_fn_c_try_link LINENO
2430 # -----------------------
2431 # Try to link conftest.$ac_ext, and return whether this succeeded.
2432 ac_fn_c_try_link ()
2433 {
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 rm -f conftest.$ac_objext conftest$ac_exeext
2436 if { { ac_try="$ac_link"
2437 case "(($ac_try" in
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2440 esac
2441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2442 $as_echo "$ac_try_echo"; } >&5
2443 (eval "$ac_link") 2>conftest.err
2444 ac_status=$?
2445 if test -s conftest.err; then
2446 grep -v '^ *+' conftest.err >conftest.er1
2447 cat conftest.er1 >&5
2448 mv -f conftest.er1 conftest.err
2449 fi
2450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451 test $ac_status = 0; } && {
2452 test -z "$ac_c_werror_flag" ||
2453 test ! -s conftest.err
2454 } && test -s conftest$ac_exeext && {
2455 test "$cross_compiling" = yes ||
2456 $as_test_x conftest$ac_exeext
2457 }; then :
2458 ac_retval=0
2459 else
2460 $as_echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463 ac_retval=1
2464 fi
2465 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2466 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2467 # interfere with the next link command; also delete a directory that is
2468 # left behind by Apple's compiler. We do this before executing the actions.
2469 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2470 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2471 as_fn_set_status $ac_retval
2472
2473 } # ac_fn_c_try_link
2474
2475 # ac_fn_c_check_decl LINENO SYMBOL VAR
2476 # ------------------------------------
2477 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2478 ac_fn_c_check_decl ()
2479 {
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2482 $as_echo_n "checking whether $2 is declared... " >&6; }
2483 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2488 $4
2489 int
2490 main ()
2491 {
2492 #ifndef $2
2493 (void) $2;
2494 #endif
2495
2496 ;
2497 return 0;
2498 }
2499 _ACEOF
2500 if ac_fn_c_try_compile "$LINENO"; then :
2501 eval "$3=yes"
2502 else
2503 eval "$3=no"
2504 fi
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 fi
2507 eval ac_res=\$$3
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511
2512 } # ac_fn_c_check_decl
2513
2514 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2515 # ----------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_c_check_header_preproc ()
2518 {
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527 #include <$2>
2528 _ACEOF
2529 if ac_fn_c_try_cpp "$LINENO"; then :
2530 eval "$3=yes"
2531 else
2532 eval "$3=no"
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535 fi
2536 eval ac_res=\$$3
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540
2541 } # ac_fn_c_check_header_preproc
2542
2543 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2544 # ----------------------------------------------------
2545 # Tries to find if the field MEMBER exists in type AGGR, after including
2546 # INCLUDES, setting cache variable VAR accordingly.
2547 ac_fn_c_check_member ()
2548 {
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2551 $as_echo_n "checking for $2.$3... " >&6; }
2552 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 $5
2558 int
2559 main ()
2560 {
2561 static $2 ac_aggr;
2562 if (ac_aggr.$3)
2563 return 0;
2564 ;
2565 return 0;
2566 }
2567 _ACEOF
2568 if ac_fn_c_try_compile "$LINENO"; then :
2569 eval "$4=yes"
2570 else
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2573 $5
2574 int
2575 main ()
2576 {
2577 static $2 ac_aggr;
2578 if (sizeof ac_aggr.$3)
2579 return 0;
2580 ;
2581 return 0;
2582 }
2583 _ACEOF
2584 if ac_fn_c_try_compile "$LINENO"; then :
2585 eval "$4=yes"
2586 else
2587 eval "$4=no"
2588 fi
2589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590 fi
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 fi
2593 eval ac_res=\$$4
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595 $as_echo "$ac_res" >&6; }
2596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2597
2598 } # ac_fn_c_check_member
2599
2600 # ac_fn_c_check_func LINENO FUNC VAR
2601 # ----------------------------------
2602 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2603 ac_fn_c_check_func ()
2604 {
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2607 $as_echo_n "checking for $2... " >&6; }
2608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2613 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2615 #define $2 innocuous_$2
2616
2617 /* System header to define __stub macros and hopefully few prototypes,
2618 which can conflict with char $2 (); below.
2619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2620 <limits.h> exists even on freestanding compilers. */
2621
2622 #ifdef __STDC__
2623 # include <limits.h>
2624 #else
2625 # include <assert.h>
2626 #endif
2627
2628 #undef $2
2629
2630 /* Override any GCC internal prototype to avoid an error.
2631 Use char because int might match the return type of a GCC
2632 builtin and then its argument prototype would still apply. */
2633 #ifdef __cplusplus
2634 extern "C"
2635 #endif
2636 char $2 ();
2637 /* The GNU C library defines this for functions which it implements
2638 to always fail with ENOSYS. Some functions are actually named
2639 something starting with __ and the normal name is an alias. */
2640 #if defined __stub_$2 || defined __stub___$2
2641 choke me
2642 #endif
2643
2644 int
2645 main ()
2646 {
2647 return $2 ();
2648 ;
2649 return 0;
2650 }
2651 _ACEOF
2652 if ac_fn_c_try_link "$LINENO"; then :
2653 eval "$3=yes"
2654 else
2655 eval "$3=no"
2656 fi
2657 rm -f core conftest.err conftest.$ac_objext \
2658 conftest$ac_exeext conftest.$ac_ext
2659 fi
2660 eval ac_res=\$$3
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662 $as_echo "$ac_res" >&6; }
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664
2665 } # ac_fn_c_check_func
2666
2667 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2668 # -------------------------------------------
2669 # Tests whether TYPE exists after having included INCLUDES, setting cache
2670 # variable VAR accordingly.
2671 ac_fn_c_check_type ()
2672 {
2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2675 $as_echo_n "checking for $2... " >&6; }
2676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 eval "$3=no"
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2682 $4
2683 int
2684 main ()
2685 {
2686 if (sizeof ($2))
2687 return 0;
2688 ;
2689 return 0;
2690 }
2691 _ACEOF
2692 if ac_fn_c_try_compile "$LINENO"; then :
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2695 $4
2696 int
2697 main ()
2698 {
2699 if (sizeof (($2)))
2700 return 0;
2701 ;
2702 return 0;
2703 }
2704 _ACEOF
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706
2707 else
2708 eval "$3=yes"
2709 fi
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 fi
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 fi
2714 eval ac_res=\$$3
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2718
2719 } # ac_fn_c_check_type
2720
2721 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2722 # --------------------------------------------
2723 # Tries to find the compile-time value of EXPR in a program that includes
2724 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2725 # computed
2726 ac_fn_c_compute_int ()
2727 {
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 if test "$cross_compiling" = yes; then
2730 # Depending upon the size, compute the lo and hi bounds.
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2733 $4
2734 int
2735 main ()
2736 {
2737 static int test_array [1 - 2 * !(($2) >= 0)];
2738 test_array [0] = 0
2739
2740 ;
2741 return 0;
2742 }
2743 _ACEOF
2744 if ac_fn_c_try_compile "$LINENO"; then :
2745 ac_lo=0 ac_mid=0
2746 while :; do
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2749 $4
2750 int
2751 main ()
2752 {
2753 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2754 test_array [0] = 0
2755
2756 ;
2757 return 0;
2758 }
2759 _ACEOF
2760 if ac_fn_c_try_compile "$LINENO"; then :
2761 ac_hi=$ac_mid; break
2762 else
2763 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2764 if test $ac_lo -le $ac_mid; then
2765 ac_lo= ac_hi=
2766 break
2767 fi
2768 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2769 fi
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772 else
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2775 $4
2776 int
2777 main ()
2778 {
2779 static int test_array [1 - 2 * !(($2) < 0)];
2780 test_array [0] = 0
2781
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 if ac_fn_c_try_compile "$LINENO"; then :
2787 ac_hi=-1 ac_mid=-1
2788 while :; do
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h. */
2791 $4
2792 int
2793 main ()
2794 {
2795 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2796 test_array [0] = 0
2797
2798 ;
2799 return 0;
2800 }
2801 _ACEOF
2802 if ac_fn_c_try_compile "$LINENO"; then :
2803 ac_lo=$ac_mid; break
2804 else
2805 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2806 if test $ac_mid -le $ac_hi; then
2807 ac_lo= ac_hi=
2808 break
2809 fi
2810 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2811 fi
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 done
2814 else
2815 ac_lo= ac_hi=
2816 fi
2817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818 fi
2819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820 # Binary search between lo and hi bounds.
2821 while test "x$ac_lo" != "x$ac_hi"; do
2822 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2825 $4
2826 int
2827 main ()
2828 {
2829 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2830 test_array [0] = 0
2831
2832 ;
2833 return 0;
2834 }
2835 _ACEOF
2836 if ac_fn_c_try_compile "$LINENO"; then :
2837 ac_hi=$ac_mid
2838 else
2839 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2840 fi
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 done
2843 case $ac_lo in #((
2844 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2845 '') ac_retval=1 ;;
2846 esac
2847 else
2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h. */
2850 $4
2851 static long int longval () { return $2; }
2852 static unsigned long int ulongval () { return $2; }
2853 #include <stdio.h>
2854 #include <stdlib.h>
2855 int
2856 main ()
2857 {
2858
2859 FILE *f = fopen ("conftest.val", "w");
2860 if (! f)
2861 return 1;
2862 if (($2) < 0)
2863 {
2864 long int i = longval ();
2865 if (i != ($2))
2866 return 1;
2867 fprintf (f, "%ld", i);
2868 }
2869 else
2870 {
2871 unsigned long int i = ulongval ();
2872 if (i != ($2))
2873 return 1;
2874 fprintf (f, "%lu", i);
2875 }
2876 /* Do not output a trailing newline, as this causes \r\n confusion
2877 on some platforms. */
2878 return ferror (f) || fclose (f) != 0;
2879
2880 ;
2881 return 0;
2882 }
2883 _ACEOF
2884 if ac_fn_c_try_run "$LINENO"; then :
2885 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2886 else
2887 ac_retval=1
2888 fi
2889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2890 conftest.$ac_objext conftest.beam conftest.$ac_ext
2891 rm -f conftest.val
2892
2893 fi
2894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2895 as_fn_set_status $ac_retval
2896
2897 } # ac_fn_c_compute_int
2898 cat >config.log <<_ACEOF
2899 This file contains any messages produced by compilers while
2900 running configure, to aid debugging if configure makes a mistake.
2901
2902 It was created by emacs $as_me 24.2.50, which was
2903 generated by GNU Autoconf 2.65. Invocation command line was
2904
2905 $ $0 $@
2906
2907 _ACEOF
2908 exec 5>>config.log
2909 {
2910 cat <<_ASUNAME
2911 ## --------- ##
2912 ## Platform. ##
2913 ## --------- ##
2914
2915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2920
2921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2923
2924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2931
2932 _ASUNAME
2933
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 $as_echo "PATH: $as_dir"
2940 done
2941 IFS=$as_save_IFS
2942
2943 } >&5
2944
2945 cat >&5 <<_ACEOF
2946
2947
2948 ## ----------- ##
2949 ## Core tests. ##
2950 ## ----------- ##
2951
2952 _ACEOF
2953
2954
2955 # Keep a trace of the command line.
2956 # Strip out --no-create and --no-recursion so they do not pile up.
2957 # Strip out --silent because we don't want to record it for future runs.
2958 # Also quote any args containing shell meta-characters.
2959 # Make two passes to allow for proper duplicate-argument suppression.
2960 ac_configure_args=
2961 ac_configure_args0=
2962 ac_configure_args1=
2963 ac_must_keep_next=false
2964 for ac_pass in 1 2
2965 do
2966 for ac_arg
2967 do
2968 case $ac_arg in
2969 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2971 | -silent | --silent | --silen | --sile | --sil)
2972 continue ;;
2973 *\'*)
2974 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2975 esac
2976 case $ac_pass in
2977 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2978 2)
2979 as_fn_append ac_configure_args1 " '$ac_arg'"
2980 if test $ac_must_keep_next = true; then
2981 ac_must_keep_next=false # Got value, back to normal.
2982 else
2983 case $ac_arg in
2984 *=* | --config-cache | -C | -disable-* | --disable-* \
2985 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2986 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2987 | -with-* | --with-* | -without-* | --without-* | --x)
2988 case "$ac_configure_args0 " in
2989 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2990 esac
2991 ;;
2992 -* ) ac_must_keep_next=true ;;
2993 esac
2994 fi
2995 as_fn_append ac_configure_args " '$ac_arg'"
2996 ;;
2997 esac
2998 done
2999 done
3000 { ac_configure_args0=; unset ac_configure_args0;}
3001 { ac_configure_args1=; unset ac_configure_args1;}
3002
3003 # When interrupted or exit'd, cleanup temporary files, and complete
3004 # config.log. We remove comments because anyway the quotes in there
3005 # would cause problems or look ugly.
3006 # WARNING: Use '\'' to represent an apostrophe within the trap.
3007 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3008 trap 'exit_status=$?
3009 # Save into config.log some information that might help in debugging.
3010 {
3011 echo
3012
3013 cat <<\_ASBOX
3014 ## ---------------- ##
3015 ## Cache variables. ##
3016 ## ---------------- ##
3017 _ASBOX
3018 echo
3019 # The following way of writing the cache mishandles newlines in values,
3020 (
3021 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3022 eval ac_val=\$$ac_var
3023 case $ac_val in #(
3024 *${as_nl}*)
3025 case $ac_var in #(
3026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3028 esac
3029 case $ac_var in #(
3030 _ | IFS | as_nl) ;; #(
3031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3032 *) { eval $ac_var=; unset $ac_var;} ;;
3033 esac ;;
3034 esac
3035 done
3036 (set) 2>&1 |
3037 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3038 *${as_nl}ac_space=\ *)
3039 sed -n \
3040 "s/'\''/'\''\\\\'\'''\''/g;
3041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3042 ;; #(
3043 *)
3044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3045 ;;
3046 esac |
3047 sort
3048 )
3049 echo
3050
3051 cat <<\_ASBOX
3052 ## ----------------- ##
3053 ## Output variables. ##
3054 ## ----------------- ##
3055 _ASBOX
3056 echo
3057 for ac_var in $ac_subst_vars
3058 do
3059 eval ac_val=\$$ac_var
3060 case $ac_val in
3061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3062 esac
3063 $as_echo "$ac_var='\''$ac_val'\''"
3064 done | sort
3065 echo
3066
3067 if test -n "$ac_subst_files"; then
3068 cat <<\_ASBOX
3069 ## ------------------- ##
3070 ## File substitutions. ##
3071 ## ------------------- ##
3072 _ASBOX
3073 echo
3074 for ac_var in $ac_subst_files
3075 do
3076 eval ac_val=\$$ac_var
3077 case $ac_val in
3078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3079 esac
3080 $as_echo "$ac_var='\''$ac_val'\''"
3081 done | sort
3082 echo
3083 fi
3084
3085 if test -s confdefs.h; then
3086 cat <<\_ASBOX
3087 ## ----------- ##
3088 ## confdefs.h. ##
3089 ## ----------- ##
3090 _ASBOX
3091 echo
3092 cat confdefs.h
3093 echo
3094 fi
3095 test "$ac_signal" != 0 &&
3096 $as_echo "$as_me: caught signal $ac_signal"
3097 $as_echo "$as_me: exit $exit_status"
3098 } >&5
3099 rm -f core *.core core.conftest.* &&
3100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3101 exit $exit_status
3102 ' 0
3103 for ac_signal in 1 2 13 15; do
3104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3105 done
3106 ac_signal=0
3107
3108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3109 rm -f -r conftest* confdefs.h
3110
3111 $as_echo "/* confdefs.h */" > confdefs.h
3112
3113 # Predefined preprocessor variables.
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_NAME "$PACKAGE_NAME"
3117 _ACEOF
3118
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3121 _ACEOF
3122
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3125 _ACEOF
3126
3127 cat >>confdefs.h <<_ACEOF
3128 #define PACKAGE_STRING "$PACKAGE_STRING"
3129 _ACEOF
3130
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3133 _ACEOF
3134
3135 cat >>confdefs.h <<_ACEOF
3136 #define PACKAGE_URL "$PACKAGE_URL"
3137 _ACEOF
3138
3139
3140 # Let the site file select an alternate cache file if it wants to.
3141 # Prefer an explicitly selected file to automatically selected ones.
3142 ac_site_file1=NONE
3143 ac_site_file2=NONE
3144 if test -n "$CONFIG_SITE"; then
3145 ac_site_file1=$CONFIG_SITE
3146 elif test "x$prefix" != xNONE; then
3147 ac_site_file1=$prefix/share/config.site
3148 ac_site_file2=$prefix/etc/config.site
3149 else
3150 ac_site_file1=$ac_default_prefix/share/config.site
3151 ac_site_file2=$ac_default_prefix/etc/config.site
3152 fi
3153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3154 do
3155 test "x$ac_site_file" = xNONE && continue
3156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3159 sed 's/^/| /' "$ac_site_file" >&5
3160 . "$ac_site_file"
3161 fi
3162 done
3163
3164 if test -r "$cache_file"; then
3165 # Some versions of bash will fail to source /dev/null (special files
3166 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3169 $as_echo "$as_me: loading cache $cache_file" >&6;}
3170 case $cache_file in
3171 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3172 *) . "./$cache_file";;
3173 esac
3174 fi
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3177 $as_echo "$as_me: creating cache $cache_file" >&6;}
3178 >$cache_file
3179 fi
3180
3181 as_fn_append ac_header_list " linux/version.h"
3182 as_fn_append ac_header_list " sys/systeminfo.h"
3183 as_fn_append ac_header_list " stdio_ext.h"
3184 as_fn_append ac_header_list " fcntl.h"
3185 as_fn_append ac_header_list " coff.h"
3186 as_fn_append ac_header_list " pty.h"
3187 as_fn_append ac_header_list " sys/vlimit.h"
3188 as_fn_append ac_header_list " sys/resource.h"
3189 as_fn_append ac_header_list " sys/utsname.h"
3190 as_fn_append ac_header_list " pwd.h"
3191 as_fn_append ac_header_list " utmp.h"
3192 as_fn_append ac_header_list " dirent.h"
3193 as_fn_append ac_header_list " util.h"
3194 as_fn_append ac_header_list " sys/socket.h"
3195 as_fn_append ac_header_list " stdlib.h"
3196 as_fn_append ac_header_list " unistd.h"
3197 as_fn_append ac_header_list " sys/param.h"
3198 as_fn_append ac_header_list " pthread.h"
3199 as_fn_append ac_header_list " malloc/malloc.h"
3200 as_fn_append ac_header_list " maillock.h"
3201 as_fn_append ac_header_list " sys/un.h"
3202 as_fn_append ac_func_list " tzset"
3203 as_fn_append ac_func_list " readlinkat"
3204 as_fn_append ac_header_list " execinfo.h"
3205 gl_getopt_required=GNU
3206 as_fn_append ac_header_list " getopt.h"
3207 as_fn_append ac_func_list " gettimeofday"
3208 as_fn_append ac_func_list " nanotime"
3209 as_fn_append ac_header_list " sys/time.h"
3210 as_fn_append ac_header_list " wchar.h"
3211 as_fn_append ac_header_list " stdint.h"
3212 as_fn_append ac_header_list " inttypes.h"
3213 as_fn_append ac_func_list " lstat"
3214 as_fn_append ac_func_list " alarm"
3215 as_fn_append ac_header_list " sys/select.h"
3216 as_fn_append ac_func_list " pselect"
3217 as_fn_append ac_func_list " pthread_sigmask"
3218 as_fn_append ac_func_list " readlink"
3219 as_fn_append ac_func_list " strtoimax"
3220 as_fn_append ac_func_list " strtoumax"
3221 as_fn_append ac_func_list " symlink"
3222 as_fn_append ac_header_list " sys/stat.h"
3223 as_fn_append ac_func_list " localtime_r"
3224 as_fn_append ac_header_list " utime.h"
3225 as_fn_append ac_func_list " futimes"
3226 as_fn_append ac_func_list " futimesat"
3227 as_fn_append ac_func_list " futimens"
3228 as_fn_append ac_func_list " utimensat"
3229 as_fn_append ac_func_list " lutimes"
3230 # Check that the precious variables saved in the cache have kept the same
3231 # value.
3232 ac_cache_corrupted=false
3233 for ac_var in $ac_precious_vars; do
3234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3235 eval ac_new_set=\$ac_env_${ac_var}_set
3236 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3237 eval ac_new_val=\$ac_env_${ac_var}_value
3238 case $ac_old_set,$ac_new_set in
3239 set,)
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3241 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3242 ac_cache_corrupted=: ;;
3243 ,set)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3245 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3246 ac_cache_corrupted=: ;;
3247 ,);;
3248 *)
3249 if test "x$ac_old_val" != "x$ac_new_val"; then
3250 # differences in whitespace do not lead to failure.
3251 ac_old_val_w=`echo x $ac_old_val`
3252 ac_new_val_w=`echo x $ac_new_val`
3253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3255 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3256 ac_cache_corrupted=:
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3259 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3260 eval $ac_var=\$ac_old_val
3261 fi
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3263 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3265 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3266 fi;;
3267 esac
3268 # Pass precious variables to config.status.
3269 if test "$ac_new_set" = set; then
3270 case $ac_new_val in
3271 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3272 *) ac_arg=$ac_var=$ac_new_val ;;
3273 esac
3274 case " $ac_configure_args " in
3275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3276 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3277 esac
3278 fi
3279 done
3280 if $ac_cache_corrupted; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3284 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3285 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3286 fi
3287 ## -------------------- ##
3288 ## Main body of script. ##
3289 ## -------------------- ##
3290
3291 ac_ext=c
3292 ac_cpp='$CPP $CPPFLAGS'
3293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296
3297
3298 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3299
3300
3301 ac_aux_dir=
3302 for ac_dir in build-aux "$srcdir"/build-aux; do
3303 for ac_t in install-sh install.sh shtool; do
3304 if test -f "$ac_dir/$ac_t"; then
3305 ac_aux_dir=$ac_dir
3306 ac_install_sh="$ac_aux_dir/$ac_t -c"
3307 break 2
3308 fi
3309 done
3310 done
3311 if test -z "$ac_aux_dir"; then
3312 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3313 fi
3314
3315 # These three variables are undocumented and unsupported,
3316 # and are intended to be withdrawn in a future Autoconf release.
3317 # They can cause serious problems if a builder's source tree is in a directory
3318 # whose full name contains unusual characters.
3319 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3320 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3321 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3322
3323
3324 am__api_version='1.11'
3325
3326 # Find a good install program. We prefer a C program (faster),
3327 # so one script is as good as another. But avoid the broken or
3328 # incompatible versions:
3329 # SysV /etc/install, /usr/sbin/install
3330 # SunOS /usr/etc/install
3331 # IRIX /sbin/install
3332 # AIX /bin/install
3333 # AmigaOS /C/install, which installs bootblocks on floppy discs
3334 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3335 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3336 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3337 # OS/2's system install, which has a completely different semantic
3338 # ./install, which can be erroneously created by make from ./install.sh.
3339 # Reject install programs that cannot install multiple files.
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3341 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3342 if test -z "$INSTALL"; then
3343 if test "${ac_cv_path_install+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 # Account for people who put trailing slashes in PATH elements.
3352 case $as_dir/ in #((
3353 ./ | .// | /[cC]/* | \
3354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3355 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3356 /usr/ucb/* ) ;;
3357 *)
3358 # OSF1 and SCO ODT 3.0 have their own names for install.
3359 # Don't use installbsd from OSF since it installs stuff as root
3360 # by default.
3361 for ac_prog in ginstall scoinst install; do
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3364 if test $ac_prog = install &&
3365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3366 # AIX install. It has an incompatible calling convention.
3367 :
3368 elif test $ac_prog = install &&
3369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3370 # program-specific install script used by HP pwplus--don't use.
3371 :
3372 else
3373 rm -rf conftest.one conftest.two conftest.dir
3374 echo one > conftest.one
3375 echo two > conftest.two
3376 mkdir conftest.dir
3377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3378 test -s conftest.one && test -s conftest.two &&
3379 test -s conftest.dir/conftest.one &&
3380 test -s conftest.dir/conftest.two
3381 then
3382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3383 break 3
3384 fi
3385 fi
3386 fi
3387 done
3388 done
3389 ;;
3390 esac
3391
3392 done
3393 IFS=$as_save_IFS
3394
3395 rm -rf conftest.one conftest.two conftest.dir
3396
3397 fi
3398 if test "${ac_cv_path_install+set}" = set; then
3399 INSTALL=$ac_cv_path_install
3400 else
3401 # As a last resort, use the slow shell script. Don't cache a
3402 # value for INSTALL within a source directory, because that will
3403 # break other packages using the cache if that directory is
3404 # removed, or if the value is a relative name.
3405 INSTALL=$ac_install_sh
3406 fi
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3409 $as_echo "$INSTALL" >&6; }
3410
3411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3412 # It thinks the first close brace ends the variable substitution.
3413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3414
3415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3416
3417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3418
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3420 $as_echo_n "checking whether build environment is sane... " >&6; }
3421 # Just in case
3422 sleep 1
3423 echo timestamp > conftest.file
3424 # Reject unsafe characters in $srcdir or the absolute working directory
3425 # name. Accept space and tab only in the latter.
3426 am_lf='
3427 '
3428 case `pwd` in
3429 *[\\\"\#\$\&\'\`$am_lf]*)
3430 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3431 esac
3432 case $srcdir in
3433 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3434 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3435 esac
3436
3437 # Do `set' in a subshell so we don't clobber the current shell's
3438 # arguments. Must try -L first in case configure is actually a
3439 # symlink; some systems play weird games with the mod time of symlinks
3440 # (eg FreeBSD returns the mod time of the symlink's containing
3441 # directory).
3442 if (
3443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3444 if test "$*" = "X"; then
3445 # -L didn't work.
3446 set X `ls -t "$srcdir/configure" conftest.file`
3447 fi
3448 rm -f conftest.file
3449 if test "$*" != "X $srcdir/configure conftest.file" \
3450 && test "$*" != "X conftest.file $srcdir/configure"; then
3451
3452 # If neither matched, then we have a broken ls. This can happen
3453 # if, for instance, CONFIG_SHELL is bash and it inherits a
3454 # broken ls alias from the environment. This has actually
3455 # happened. Such a system could not be considered "sane".
3456 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3457 alias in your environment" "$LINENO" 5
3458 fi
3459
3460 test "$2" = conftest.file
3461 )
3462 then
3463 # Ok.
3464 :
3465 else
3466 as_fn_error "newly created file is older than distributed files!
3467 Check your system clock" "$LINENO" 5
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3470 $as_echo "yes" >&6; }
3471 test "$program_prefix" != NONE &&
3472 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3473 # Use a double $ so make ignores it.
3474 test "$program_suffix" != NONE &&
3475 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3476 # Double any \ or $.
3477 # By default was `s,x,x', remove it if useless.
3478 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3479 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3480
3481 # expand $ac_aux_dir to an absolute path
3482 am_aux_dir=`cd $ac_aux_dir && pwd`
3483
3484 if test x"${MISSING+set}" != xset; then
3485 case $am_aux_dir in
3486 *\ * | *\ *)
3487 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3488 *)
3489 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3490 esac
3491 fi
3492 # Use eval to expand $SHELL
3493 if eval "$MISSING --run true"; then
3494 am_missing_run="$MISSING --run "
3495 else
3496 am_missing_run=
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3498 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3499 fi
3500
3501 if test x"${install_sh}" != xset; then
3502 case $am_aux_dir in
3503 *\ * | *\ *)
3504 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3505 *)
3506 install_sh="\${SHELL} $am_aux_dir/install-sh"
3507 esac
3508 fi
3509
3510 # Installed binaries are usually stripped using `strip' when the user
3511 # run `make install-strip'. However `strip' might not be the right
3512 # tool to use in cross-compilation environments, therefore Automake
3513 # will honor the `STRIP' environment variable to overrule this program.
3514 if test "$cross_compiling" != no; then
3515 if test -n "$ac_tool_prefix"; then
3516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3517 set dummy ${ac_tool_prefix}strip; ac_word=$2
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519 $as_echo_n "checking for $ac_word... " >&6; }
3520 if test "${ac_cv_prog_STRIP+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 if test -n "$STRIP"; then
3524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3525 else
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3528 do
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3533 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 break 2
3536 fi
3537 done
3538 done
3539 IFS=$as_save_IFS
3540
3541 fi
3542 fi
3543 STRIP=$ac_cv_prog_STRIP
3544 if test -n "$STRIP"; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3546 $as_echo "$STRIP" >&6; }
3547 else
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3550 fi
3551
3552
3553 fi
3554 if test -z "$ac_cv_prog_STRIP"; then
3555 ac_ct_STRIP=$STRIP
3556 # Extract the first word of "strip", so it can be a program name with args.
3557 set dummy strip; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -n "$ac_ct_STRIP"; then
3564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_ac_ct_STRIP="strip"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577 done
3578 done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3584 if test -n "$ac_ct_STRIP"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3586 $as_echo "$ac_ct_STRIP" >&6; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 fi
3591
3592 if test "x$ac_ct_STRIP" = x; then
3593 STRIP=":"
3594 else
3595 case $cross_compiling:$ac_tool_warned in
3596 yes:)
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3599 ac_tool_warned=yes ;;
3600 esac
3601 STRIP=$ac_ct_STRIP
3602 fi
3603 else
3604 STRIP="$ac_cv_prog_STRIP"
3605 fi
3606
3607 fi
3608 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3609
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3611 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3612 if test -z "$MKDIR_P"; then
3613 if test "${ac_cv_path_mkdir+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3618 do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_prog in mkdir gmkdir; do
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3624 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3625 'mkdir (GNU coreutils) '* | \
3626 'mkdir (coreutils) '* | \
3627 'mkdir (fileutils) '4.1*)
3628 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3629 break 3;;
3630 esac
3631 done
3632 done
3633 done
3634 IFS=$as_save_IFS
3635
3636 fi
3637
3638 test -d ./--version && rmdir ./--version
3639 if test "${ac_cv_path_mkdir+set}" = set; then
3640 MKDIR_P="$ac_cv_path_mkdir -p"
3641 else
3642 # As a last resort, use the slow shell script. Don't cache a
3643 # value for MKDIR_P within a source directory, because that will
3644 # break other packages using the cache if that directory is
3645 # removed, or if the value is a relative name.
3646 MKDIR_P="$ac_install_sh -d"
3647 fi
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3650 $as_echo "$MKDIR_P" >&6; }
3651
3652
3653 mkdir_p="$MKDIR_P"
3654 case $mkdir_p in
3655 [\\/$]* | ?:[\\/]*) ;;
3656 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3657 esac
3658
3659 for ac_prog in gawk mawk nawk awk
3660 do
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662 set dummy $ac_prog; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_AWK+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test -n "$AWK"; then
3669 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_AWK="$ac_prog"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3681 fi
3682 done
3683 done
3684 IFS=$as_save_IFS
3685
3686 fi
3687 fi
3688 AWK=$ac_cv_prog_AWK
3689 if test -n "$AWK"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3691 $as_echo "$AWK" >&6; }
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3695 fi
3696
3697
3698 test -n "$AWK" && break
3699 done
3700
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3702 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3703 set x ${MAKE-make}
3704 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3705 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 cat >conftest.make <<\_ACEOF
3709 SHELL = /bin/sh
3710 all:
3711 @echo '@@@%%%=$(MAKE)=@@@%%%'
3712 _ACEOF
3713 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3714 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3715 *@@@%%%=?*=@@@%%%*)
3716 eval ac_cv_prog_make_${ac_make}_set=yes;;
3717 *)
3718 eval ac_cv_prog_make_${ac_make}_set=no;;
3719 esac
3720 rm -f conftest.make
3721 fi
3722 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3724 $as_echo "yes" >&6; }
3725 SET_MAKE=
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 SET_MAKE="MAKE=${MAKE-make}"
3730 fi
3731
3732 rm -rf .tst 2>/dev/null
3733 mkdir .tst 2>/dev/null
3734 if test -d .tst; then
3735 am__leading_dot=.
3736 else
3737 am__leading_dot=_
3738 fi
3739 rmdir .tst 2>/dev/null
3740
3741 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3742 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3743 # is not polluted with repeated "-I."
3744 am__isrc=' -I$(srcdir)'
3745 # test to see if srcdir already configured
3746 if test -f $srcdir/config.status; then
3747 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3748 fi
3749 fi
3750
3751 # test whether we have cygpath
3752 if test -z "$CYGPATH_W"; then
3753 if (cygpath --version) >/dev/null 2>/dev/null; then
3754 CYGPATH_W='cygpath -w'
3755 else
3756 CYGPATH_W=echo
3757 fi
3758 fi
3759
3760
3761 # Define the identity of the package.
3762 PACKAGE='emacs'
3763 VERSION='24.2.50'
3764
3765
3766 cat >>confdefs.h <<_ACEOF
3767 #define PACKAGE "$PACKAGE"
3768 _ACEOF
3769
3770
3771 cat >>confdefs.h <<_ACEOF
3772 #define VERSION "$VERSION"
3773 _ACEOF
3774
3775 # Some tools Automake needs.
3776
3777 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3778
3779
3780 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3781
3782
3783 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3784
3785
3786 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3787
3788
3789 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3790
3791 # We need awk for the "check" target. The system "awk" is bad on
3792 # some platforms.
3793 # Always define AMTAR for backward compatibility.
3794
3795 AMTAR=${AMTAR-"${am_missing_run}tar"}
3796
3797 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3798
3799
3800
3801
3802
3803
3804
3805
3806 lispdir='${datadir}/emacs/${version}/lisp'
3807 leimdir='${datadir}/emacs/${version}/leim'
3808 standardlisppath='${lispdir}:${leimdir}'
3809 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3810 '${datadir}/emacs/site-lisp'
3811 lisppath='${locallisppath}:${standardlisppath}'
3812 etcdir='${datadir}/emacs/${version}/etc'
3813 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3814 docdir='${datadir}/emacs/${version}/etc'
3815 gamedir='${localstatedir}/games/emacs'
3816
3817
3818 # Check whether --with-all was given.
3819 if test "${with_all+set}" = set; then :
3820 withval=$with_all; with_features=$withval
3821 else
3822 with_features=yes
3823 fi
3824
3825
3826
3827
3828
3829 # Check whether --with-pop was given.
3830 if test "${with_pop+set}" = set; then :
3831 withval=$with_pop;
3832 else
3833 with_pop=$with_features
3834 fi
3835
3836 if test "$with_pop" = yes; then
3837 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3838
3839 fi
3840
3841
3842 # Check whether --with-kerberos was given.
3843 if test "${with_kerberos+set}" = set; then :
3844 withval=$with_kerberos;
3845 else
3846 with_kerberos=no
3847 fi
3848
3849 if test "$with_kerberos" != no; then
3850 $as_echo "#define KERBEROS 1" >>confdefs.h
3851
3852 fi
3853
3854
3855 # Check whether --with-kerberos5 was given.
3856 if test "${with_kerberos5+set}" = set; then :
3857 withval=$with_kerberos5;
3858 else
3859 with_kerberos5=no
3860 fi
3861
3862 if test "${with_kerberos5}" != no; then
3863 if test "${with_kerberos}" = no; then
3864 with_kerberos=yes
3865 $as_echo "#define KERBEROS 1" >>confdefs.h
3866
3867 fi
3868
3869 $as_echo "#define KERBEROS5 1" >>confdefs.h
3870
3871 fi
3872
3873
3874 # Check whether --with-hesiod was given.
3875 if test "${with_hesiod+set}" = set; then :
3876 withval=$with_hesiod;
3877 else
3878 with_hesiod=no
3879 fi
3880
3881 if test "$with_hesiod" != no; then
3882
3883 $as_echo "#define HESIOD 1" >>confdefs.h
3884
3885 fi
3886
3887
3888 # Check whether --with-mmdf was given.
3889 if test "${with_mmdf+set}" = set; then :
3890 withval=$with_mmdf;
3891 else
3892 with_mmdf=no
3893 fi
3894
3895 if test "$with_mmdf" != no; then
3896
3897 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3898
3899 fi
3900
3901
3902 # Check whether --with-mail-unlink was given.
3903 if test "${with_mail_unlink+set}" = set; then :
3904 withval=$with_mail_unlink;
3905 else
3906 with_mail_unlink=no
3907 fi
3908
3909 if test "$with_mail_unlink" != no; then
3910
3911 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3912
3913 fi
3914
3915
3916 # Check whether --with-mailhost was given.
3917 if test "${with_mailhost+set}" = set; then :
3918 withval=$with_mailhost;
3919 cat >>confdefs.h <<_ACEOF
3920 #define MAILHOST "$withval"
3921 _ACEOF
3922
3923 fi
3924
3925
3926
3927 # Check whether --with-sound was given.
3928 if test "${with_sound+set}" = set; then :
3929 withval=$with_sound;
3930 else
3931 with_sound=$with_features
3932 fi
3933
3934
3935
3936 # Check whether --with-sync-input was given.
3937 if test "${with_sync_input+set}" = set; then :
3938 withval=$with_sync_input;
3939 else
3940 with_sync_input=$with_features
3941 fi
3942
3943 if test "$with_sync_input" = yes; then
3944
3945 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3946
3947 fi
3948
3949
3950 # Check whether --with-x-toolkit was given.
3951 if test "${with_x_toolkit+set}" = set; then :
3952 withval=$with_x_toolkit; case "${withval}" in
3953 y | ye | yes ) val=gtk ;;
3954 n | no ) val=no ;;
3955 l | lu | luc | luci | lucid ) val=lucid ;;
3956 a | at | ath | athe | athen | athena ) val=athena ;;
3957 m | mo | mot | moti | motif ) val=motif ;;
3958 g | gt | gtk ) val=gtk ;;
3959 gtk2 ) val=gtk2 ;;
3960 gtk3 ) val=gtk3 ;;
3961 * )
3962 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3963 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3964 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3965 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3966 ;;
3967 esac
3968 with_x_toolkit=$val
3969
3970 fi
3971
3972
3973
3974 # Check whether --with-wide-int was given.
3975 if test "${with_wide_int+set}" = set; then :
3976 withval=$with_wide_int;
3977 else
3978 with_wide_int=no
3979 fi
3980
3981 if test "$with_wide_int" = yes; then
3982
3983 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3984
3985 fi
3986
3987
3988 # Check whether --with-xpm was given.
3989 if test "${with_xpm+set}" = set; then :
3990 withval=$with_xpm;
3991 else
3992 with_xpm=$with_features
3993 fi
3994
3995
3996 # Check whether --with-jpeg was given.
3997 if test "${with_jpeg+set}" = set; then :
3998 withval=$with_jpeg;
3999 else
4000 with_jpeg=$with_features
4001 fi
4002
4003
4004 # Check whether --with-tiff was given.
4005 if test "${with_tiff+set}" = set; then :
4006 withval=$with_tiff;
4007 else
4008 with_tiff=$with_features
4009 fi
4010
4011
4012 # Check whether --with-gif was given.
4013 if test "${with_gif+set}" = set; then :
4014 withval=$with_gif;
4015 else
4016 with_gif=$with_features
4017 fi
4018
4019
4020 # Check whether --with-png was given.
4021 if test "${with_png+set}" = set; then :
4022 withval=$with_png;
4023 else
4024 with_png=$with_features
4025 fi
4026
4027
4028 # Check whether --with-rsvg was given.
4029 if test "${with_rsvg+set}" = set; then :
4030 withval=$with_rsvg;
4031 else
4032 with_rsvg=$with_features
4033 fi
4034
4035
4036 # Check whether --with-xml2 was given.
4037 if test "${with_xml2+set}" = set; then :
4038 withval=$with_xml2;
4039 else
4040 with_xml2=$with_features
4041 fi
4042
4043
4044 # Check whether --with-imagemagick was given.
4045 if test "${with_imagemagick+set}" = set; then :
4046 withval=$with_imagemagick;
4047 else
4048 with_imagemagick=$with_features
4049 fi
4050
4051
4052
4053 # Check whether --with-xft was given.
4054 if test "${with_xft+set}" = set; then :
4055 withval=$with_xft;
4056 else
4057 with_xft=$with_features
4058 fi
4059
4060
4061 # Check whether --with-libotf was given.
4062 if test "${with_libotf+set}" = set; then :
4063 withval=$with_libotf;
4064 else
4065 with_libotf=$with_features
4066 fi
4067
4068
4069 # Check whether --with-m17n-flt was given.
4070 if test "${with_m17n_flt+set}" = set; then :
4071 withval=$with_m17n_flt;
4072 else
4073 with_m17n_flt=$with_features
4074 fi
4075
4076
4077
4078 # Check whether --with-toolkit-scroll-bars was given.
4079 if test "${with_toolkit_scroll_bars+set}" = set; then :
4080 withval=$with_toolkit_scroll_bars;
4081 else
4082 with_toolkit_scroll_bars=$with_features
4083 fi
4084
4085
4086 # Check whether --with-xaw3d was given.
4087 if test "${with_xaw3d+set}" = set; then :
4088 withval=$with_xaw3d;
4089 else
4090 with_xaw3d=$with_features
4091 fi
4092
4093
4094 # Check whether --with-xim was given.
4095 if test "${with_xim+set}" = set; then :
4096 withval=$with_xim;
4097 else
4098 with_xim=$with_features
4099 fi
4100
4101
4102 # Check whether --with-ns was given.
4103 if test "${with_ns+set}" = set; then :
4104 withval=$with_ns;
4105 else
4106 with_ns=no
4107 fi
4108
4109
4110
4111 # Check whether --with-gpm was given.
4112 if test "${with_gpm+set}" = set; then :
4113 withval=$with_gpm;
4114 else
4115 with_gpm=$with_features
4116 fi
4117
4118
4119 # Check whether --with-dbus was given.
4120 if test "${with_dbus+set}" = set; then :
4121 withval=$with_dbus;
4122 else
4123 with_dbus=$with_features
4124 fi
4125
4126
4127 # Check whether --with-gconf was given.
4128 if test "${with_gconf+set}" = set; then :
4129 withval=$with_gconf;
4130 else
4131 with_gconf=$with_features
4132 fi
4133
4134
4135 # Check whether --with-gsettings was given.
4136 if test "${with_gsettings+set}" = set; then :
4137 withval=$with_gsettings;
4138 else
4139 with_gsettings=$with_features
4140 fi
4141
4142
4143 # Check whether --with-selinux was given.
4144 if test "${with_selinux+set}" = set; then :
4145 withval=$with_selinux;
4146 else
4147 with_selinux=$with_features
4148 fi
4149
4150
4151 # Check whether --with-gnutls was given.
4152 if test "${with_gnutls+set}" = set; then :
4153 withval=$with_gnutls;
4154 else
4155 with_gnutls=$with_features
4156 fi
4157
4158
4159 ## For the times when you want to build Emacs but don't have
4160 ## a suitable makeinfo, and can live without the manuals.
4161
4162 # Check whether --with-makeinfo was given.
4163 if test "${with_makeinfo+set}" = set; then :
4164 withval=$with_makeinfo;
4165 else
4166 with_makeinfo=$with_features
4167 fi
4168
4169
4170 ## Makefile.in needs the cache file name.
4171
4172
4173 ## This is an option because I do not know if all info/man support
4174 ## compressed files, nor how to test if they do so.
4175
4176 # Check whether --with-compress-info was given.
4177 if test "${with_compress_info+set}" = set; then :
4178 withval=$with_compress_info;
4179 else
4180 with_compress_info=$with_features
4181 fi
4182
4183 if test $with_compress_info = yes; then
4184 GZIP_INFO=yes
4185 else
4186 GZIP_INFO=
4187 fi
4188
4189
4190
4191 # Check whether --with-pkg-config-prog was given.
4192 if test "${with_pkg_config_prog+set}" = set; then :
4193 withval=$with_pkg_config_prog;
4194 fi
4195
4196 if test "X${with_pkg_config_prog}" != X; then
4197 if test "${with_pkg_config_prog}" != yes; then
4198 PKG_CONFIG="${with_pkg_config_prog}"
4199 fi
4200 fi
4201
4202 CRT_DIR=
4203
4204 # Check whether --with-crt-dir was given.
4205 if test "${with_crt_dir+set}" = set; then :
4206 withval=$with_crt_dir;
4207 fi
4208
4209 CRT_DIR="${with_crt_dir}"
4210
4211
4212 # Check whether --with-gameuser was given.
4213 if test "${with_gameuser+set}" = set; then :
4214 withval=$with_gameuser;
4215 fi
4216
4217 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4218 && gameuser="${with_gameuser}"
4219 test "X$gameuser" = X && gameuser=games
4220
4221
4222 # Check whether --with-gnustep-conf was given.
4223 if test "${with_gnustep_conf+set}" = set; then :
4224 withval=$with_gnustep_conf;
4225 fi
4226
4227 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4228 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4229 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4230 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4231
4232 # Check whether --enable-ns-self-contained was given.
4233 if test "${enable_ns_self_contained+set}" = set; then :
4234 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4235 else
4236 EN_NS_SELF_CONTAINED=yes
4237 fi
4238
4239
4240 # Check whether --enable-locallisppath was given.
4241 if test "${enable_locallisppath+set}" = set; then :
4242 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4243 locallisppath=
4244 elif test "${enableval}" != "yes"; then
4245 locallisppath=${enableval}
4246 fi
4247 fi
4248
4249
4250 # Check whether --enable-checking was given.
4251 if test "${enable_checking+set}" = set; then :
4252 enableval=$enable_checking; ac_checking_flags="${enableval}"
4253 fi
4254
4255 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4256 for check in $ac_checking_flags
4257 do
4258 case $check in
4259 # these set all the flags to specific states
4260 yes) ac_enable_checking=1 ;;
4261 no) ac_enable_checking= ;
4262 ac_gc_check_stringbytes= ;
4263 ac_gc_check_string_overrun= ;
4264 ac_gc_check_string_free_list= ;
4265 ac_xmalloc_overrun= ;
4266 ac_gc_check_cons_list= ;
4267 ac_glyphs_debug= ;;
4268 all) ac_enable_checking=1 ;
4269 ac_gc_check_stringbytes=1 ;
4270 ac_gc_check_string_overrun=1 ;
4271 ac_gc_check_string_free_list=1 ;
4272 ac_xmalloc_overrun=1 ;
4273 ac_gc_check_cons_list=1 ;
4274 ac_glyphs_debug=1 ;;
4275 # these enable particular checks
4276 stringbytes) ac_gc_check_stringbytes=1 ;;
4277 stringoverrun) ac_gc_check_string_overrun=1 ;;
4278 stringfreelist) ac_gc_check_string_free_list=1 ;;
4279 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4280 conslist) ac_gc_check_cons_list=1 ;;
4281 glyphs) ac_glyphs_debug=1 ;;
4282 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4283 esac
4284 done
4285 IFS="$ac_save_IFS"
4286
4287 if test x$ac_enable_checking != x ; then
4288
4289 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4290
4291 fi
4292 if test x$ac_gc_check_stringbytes != x ; then
4293
4294 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4295
4296 fi
4297 if test x$ac_gc_check_string_overrun != x ; then
4298
4299 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4300
4301 fi
4302 if test x$ac_gc_check_string_free_list != x ; then
4303
4304 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4305
4306 fi
4307 if test x$ac_xmalloc_overrun != x ; then
4308
4309 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4310
4311 fi
4312 if test x$ac_gc_check_cons_list != x ; then
4313
4314 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4315
4316 fi
4317 if test x$ac_glyphs_debug != x ; then
4318
4319 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4320
4321 fi
4322
4323 # Check whether --enable-check-lisp-object-type was given.
4324 if test "${enable_check_lisp_object_type+set}" = set; then :
4325 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4326
4327 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4328
4329 fi
4330 fi
4331
4332
4333
4334 # Check whether --enable-profiling was given.
4335 if test "${enable_profiling+set}" = set; then :
4336 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4337 fi
4338
4339 if test x$ac_enable_profiling != x ; then
4340 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4341 else
4342 PROFILING_CFLAGS=
4343 fi
4344
4345
4346 # Check whether --enable-autodepend was given.
4347 if test "${enable_autodepend+set}" = set; then :
4348 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4349 else
4350 ac_enable_autodepend=yes
4351 fi
4352
4353
4354 #### Make srcdir absolute, if it isn't already. It's important to
4355 #### avoid running the path through pwd unnecessarily, since pwd can
4356 #### give you automounter prefixes, which can go away. We do all this
4357 #### so Emacs can find its files when run uninstalled.
4358 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4359 unset CDPATH
4360 case "${srcdir}" in
4361 /* ) ;;
4362 . )
4363 ## We may be able to use the $PWD environment variable to make this
4364 ## absolute. But sometimes PWD is inaccurate.
4365 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4366 ## but that tested only for a well-formed and valid PWD,
4367 ## it did not object when PWD was well-formed and valid but just wrong.
4368 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4369 then
4370 srcdir="$PWD"
4371 else
4372 srcdir="`(cd ${srcdir}; pwd)`"
4373 fi
4374 ;;
4375 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4376 esac
4377
4378 ### Canonicalize the configuration name.
4379
4380 # Make sure we can run config.sub.
4381 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4382 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4383
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4385 $as_echo_n "checking build system type... " >&6; }
4386 if test "${ac_cv_build+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 ac_build_alias=$build_alias
4390 test "x$ac_build_alias" = x &&
4391 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4392 test "x$ac_build_alias" = x &&
4393 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4394 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4395 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4396
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4399 $as_echo "$ac_cv_build" >&6; }
4400 case $ac_cv_build in
4401 *-*-*) ;;
4402 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4403 esac
4404 build=$ac_cv_build
4405 ac_save_IFS=$IFS; IFS='-'
4406 set x $ac_cv_build
4407 shift
4408 build_cpu=$1
4409 build_vendor=$2
4410 shift; shift
4411 # Remember, the first character of IFS is used to create $*,
4412 # except with old shells:
4413 build_os=$*
4414 IFS=$ac_save_IFS
4415 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4416
4417
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4419 $as_echo_n "checking host system type... " >&6; }
4420 if test "${ac_cv_host+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test "x$host_alias" = x; then
4424 ac_cv_host=$ac_cv_build
4425 else
4426 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4427 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4428 fi
4429
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4432 $as_echo "$ac_cv_host" >&6; }
4433 case $ac_cv_host in
4434 *-*-*) ;;
4435 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4436 esac
4437 host=$ac_cv_host
4438 ac_save_IFS=$IFS; IFS='-'
4439 set x $ac_cv_host
4440 shift
4441 host_cpu=$1
4442 host_vendor=$2
4443 shift; shift
4444 # Remember, the first character of IFS is used to create $*,
4445 # except with old shells:
4446 host_os=$*
4447 IFS=$ac_save_IFS
4448 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4449
4450
4451 canonical=$host
4452 configuration=${host_alias-${build_alias-$host}}
4453
4454
4455
4456 ### If you add support for a new configuration, add code to this
4457 ### switch statement to recognize your configuration name and select
4458 ### the appropriate operating system file.
4459
4460 ### You would hope that you could choose an s/*.h
4461 ### file based on the operating system portion. However, it turns out
4462 ### that each s/*.h file is pretty manufacturer-specific.
4463 ### So we basically have to have a special case for each
4464 ### configuration name.
4465 ###
4466 ### As far as handling version numbers on operating systems is
4467 ### concerned, make sure things will fail in a fixable way. If
4468 ### /etc/MACHINES doesn't say anything about version numbers, be
4469 ### prepared to handle anything reasonably. If version numbers
4470 ### matter, be sure /etc/MACHINES says something about it.
4471
4472 opsys='' unported=no
4473 case "${canonical}" in
4474
4475 ## GNU/Linux and similar ports
4476 *-*-linux* )
4477 opsys=gnu-linux
4478 ;;
4479
4480 ## FreeBSD ports
4481 *-*-freebsd* )
4482 opsys=freebsd
4483 ;;
4484
4485 ## FreeBSD kernel + glibc based userland
4486 *-*-kfreebsd*gnu* )
4487 opsys=gnu-kfreebsd
4488 ;;
4489
4490 ## NetBSD ports
4491 *-*-netbsd* )
4492 opsys=netbsd
4493 ;;
4494
4495 ## OpenBSD ports
4496 *-*-openbsd* )
4497 opsys=openbsd
4498 ;;
4499
4500 ## Apple Darwin / Mac OS X
4501 *-apple-darwin* )
4502 case "${canonical}" in
4503 i[3456]86-* ) ;;
4504 powerpc-* ) ;;
4505 x86_64-* ) ;;
4506 * ) unported=yes ;;
4507 esac
4508 opsys=darwin
4509 ## Use fink packages if available.
4510 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4511 ## if test -d /sw/include && test -d /sw/lib; then
4512 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4513 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4514 ## fi
4515 ;;
4516
4517 ## HP 9000 series 700 and 800, running HP/UX
4518 hppa*-hp-hpux10.2* )
4519 opsys=hpux10-20
4520 ;;
4521 hppa*-hp-hpux1[1-9]* )
4522 opsys=hpux11
4523 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4524 ;;
4525
4526 ## IBM machines
4527 rs6000-ibm-aix4.[23]* )
4528 opsys=aix4-2
4529 ;;
4530 powerpc-ibm-aix4.[23]* )
4531 opsys=aix4-2
4532 ;;
4533 rs6000-ibm-aix[56]* )
4534 opsys=aix4-2
4535 ;;
4536 powerpc-ibm-aix[56]* )
4537 opsys=aix4-2
4538 ;;
4539
4540 ## Silicon Graphics machines
4541 ## Iris 4D
4542 mips-sgi-irix6.5 )
4543 opsys=irix6-5
4544 # Without defining _LANGUAGE_C, things get masked out in the headers
4545 # so that, for instance, grepping for `free' in stdlib.h fails and
4546 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4547 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4548 ;;
4549
4550 ## Suns
4551 *-sun-solaris* \
4552 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4553 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4554 case "${canonical}" in
4555 i[3456]86-*-* ) ;;
4556 amd64-*-*|x86_64-*-*) ;;
4557 sparc* ) ;;
4558 * ) unported=yes ;;
4559 esac
4560 case "${canonical}" in
4561 *-sunos5.6* | *-solaris2.6* )
4562 opsys=sol2-6
4563 RANLIB="ar -ts"
4564 ;;
4565 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4566 opsys=sol2-6
4567 emacs_check_sunpro_c=yes
4568 ;;
4569 *-sunos5* | *-solaris* )
4570 opsys=sol2-10
4571 emacs_check_sunpro_c=yes
4572 ;;
4573 esac
4574 ## Watch out for a compiler that we know will not work.
4575 case "${canonical}" in
4576 *-solaris* | *-sunos5* )
4577 if [ "x$CC" = x/usr/ucb/cc ]; then
4578 ## /usr/ucb/cc doesn't work;
4579 ## we should find some other compiler that does work.
4580 unset CC
4581 fi
4582 ;;
4583 *) ;;
4584 esac
4585 ;;
4586
4587 ## Intel 386 machines where we don't care about the manufacturer.
4588 i[3456]86-*-* )
4589 case "${canonical}" in
4590 *-cygwin ) opsys=cygwin ;;
4591 *-darwin* ) opsys=darwin ;;
4592 *-sysv4.2uw* ) opsys=unixware ;;
4593 *-sysv5uw* ) opsys=unixware ;;
4594 *-sysv5OpenUNIX* ) opsys=unixware ;;
4595 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4596 esac
4597 ;;
4598
4599 * )
4600 unported=yes
4601 ;;
4602 esac
4603
4604 ### If the code above didn't choose an operating system, just choose
4605 ### an operating system based on the configuration name. You really
4606 ### only want to use this when you have no idea what the right
4607 ### operating system is; if you know what operating systems a machine
4608 ### runs, it's cleaner to make it explicit in the case statement
4609 ### above.
4610 if test x"${opsys}" = x; then
4611 case "${canonical}" in
4612 *-gnu* ) opsys=gnu ;;
4613 * )
4614 unported=yes
4615 ;;
4616 esac
4617 fi
4618
4619
4620
4621 if test $unported = yes; then
4622 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4623 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4624 fi
4625
4626
4627 #### Choose a compiler.
4628
4629 ac_ext=c
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634 if test -n "$ac_tool_prefix"; then
4635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if test "${ac_cv_prog_CC+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660 fi
4661 fi
4662 CC=$ac_cv_prog_CC
4663 if test -n "$CC"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4665 $as_echo "$CC" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4669 fi
4670
4671
4672 fi
4673 if test -z "$ac_cv_prog_CC"; then
4674 ac_ct_CC=$CC
4675 # Extract the first word of "gcc", so it can be a program name with args.
4676 set dummy gcc; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$ac_ct_CC"; then
4683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_ac_ct_CC="gcc"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 fi
4701 fi
4702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4703 if test -n "$ac_ct_CC"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4705 $as_echo "$ac_ct_CC" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 fi
4710
4711 if test "x$ac_ct_CC" = x; then
4712 CC=""
4713 else
4714 case $cross_compiling:$ac_tool_warned in
4715 yes:)
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718 ac_tool_warned=yes ;;
4719 esac
4720 CC=$ac_ct_CC
4721 fi
4722 else
4723 CC="$ac_cv_prog_CC"
4724 fi
4725
4726 if test -z "$CC"; then
4727 if test -n "$ac_tool_prefix"; then
4728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4729 set dummy ${ac_tool_prefix}cc; ac_word=$2
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731 $as_echo_n "checking for $ac_word... " >&6; }
4732 if test "${ac_cv_prog_CC+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 if test -n "$CC"; then
4736 ac_cv_prog_CC="$CC" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745 ac_cv_prog_CC="${ac_tool_prefix}cc"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749 done
4750 done
4751 IFS=$as_save_IFS
4752
4753 fi
4754 fi
4755 CC=$ac_cv_prog_CC
4756 if test -n "$CC"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4758 $as_echo "$CC" >&6; }
4759 else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4762 fi
4763
4764
4765 fi
4766 fi
4767 if test -z "$CC"; then
4768 # Extract the first word of "cc", so it can be a program name with args.
4769 set dummy cc; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_prog_CC+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if test -n "$CC"; then
4776 ac_cv_prog_CC="$CC" # Let the user override the test.
4777 else
4778 ac_prog_rejected=no
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4787 ac_prog_rejected=yes
4788 continue
4789 fi
4790 ac_cv_prog_CC="cc"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4793 fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798 if test $ac_prog_rejected = yes; then
4799 # We found a bogon in the path, so make sure we never use it.
4800 set dummy $ac_cv_prog_CC
4801 shift
4802 if test $# != 0; then
4803 # We chose a different compiler from the bogus one.
4804 # However, it has the same basename, so the bogon will be chosen
4805 # first if we set CC to just the basename; use the full file name.
4806 shift
4807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4808 fi
4809 fi
4810 fi
4811 fi
4812 CC=$ac_cv_prog_CC
4813 if test -n "$CC"; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4815 $as_echo "$CC" >&6; }
4816 else
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4819 fi
4820
4821
4822 fi
4823 if test -z "$CC"; then
4824 if test -n "$ac_tool_prefix"; then
4825 for ac_prog in cl.exe
4826 do
4827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if test "${ac_cv_prog_CC+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -n "$CC"; then
4835 ac_cv_prog_CC="$CC" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4847 fi
4848 done
4849 done
4850 IFS=$as_save_IFS
4851
4852 fi
4853 fi
4854 CC=$ac_cv_prog_CC
4855 if test -n "$CC"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4857 $as_echo "$CC" >&6; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4861 fi
4862
4863
4864 test -n "$CC" && break
4865 done
4866 fi
4867 if test -z "$CC"; then
4868 ac_ct_CC=$CC
4869 for ac_prog in cl.exe
4870 do
4871 # Extract the first word of "$ac_prog", so it can be a program name with args.
4872 set dummy $ac_prog; ac_word=$2
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 $as_echo_n "checking for $ac_word... " >&6; }
4875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -n "$ac_ct_CC"; then
4879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_prog_ac_ct_CC="$ac_prog"
4889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4891 fi
4892 done
4893 done
4894 IFS=$as_save_IFS
4895
4896 fi
4897 fi
4898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4899 if test -n "$ac_ct_CC"; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4901 $as_echo "$ac_ct_CC" >&6; }
4902 else
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4905 fi
4906
4907
4908 test -n "$ac_ct_CC" && break
4909 done
4910
4911 if test "x$ac_ct_CC" = x; then
4912 CC=""
4913 else
4914 case $cross_compiling:$ac_tool_warned in
4915 yes:)
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4918 ac_tool_warned=yes ;;
4919 esac
4920 CC=$ac_ct_CC
4921 fi
4922 fi
4923
4924 fi
4925
4926
4927 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4929 as_fn_error "no acceptable C compiler found in \$PATH
4930 See \`config.log' for more details." "$LINENO" 5; }
4931
4932 # Provide some information about the compiler.
4933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4934 set X $ac_compile
4935 ac_compiler=$2
4936 for ac_option in --version -v -V -qversion; do
4937 { { ac_try="$ac_compiler $ac_option >&5"
4938 case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4943 $as_echo "$ac_try_echo"; } >&5
4944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4945 ac_status=$?
4946 if test -s conftest.err; then
4947 sed '10a\
4948 ... rest of stderr output deleted ...
4949 10q' conftest.err >conftest.er1
4950 cat conftest.er1 >&5
4951 fi
4952 rm -f conftest.er1 conftest.err
4953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954 test $ac_status = 0; }
4955 done
4956
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959
4960 int
4961 main ()
4962 {
4963
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 ac_clean_files_save=$ac_clean_files
4969 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4970 # Try to create an executable without -o first, disregard a.out.
4971 # It will help us diagnose broken compilers, and finding out an intuition
4972 # of exeext.
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4974 $as_echo_n "checking whether the C compiler works... " >&6; }
4975 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4976
4977 # The possible output files:
4978 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4979
4980 ac_rmfiles=
4981 for ac_file in $ac_files
4982 do
4983 case $ac_file in
4984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4985 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4986 esac
4987 done
4988 rm -f $ac_rmfiles
4989
4990 if { { ac_try="$ac_link_default"
4991 case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994 esac
4995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4996 $as_echo "$ac_try_echo"; } >&5
4997 (eval "$ac_link_default") 2>&5
4998 ac_status=$?
4999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5000 test $ac_status = 0; }; then :
5001 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5003 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5004 # so that the user can short-circuit this test for compilers unknown to
5005 # Autoconf.
5006 for ac_file in $ac_files ''
5007 do
5008 test -f "$ac_file" || continue
5009 case $ac_file in
5010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5011 ;;
5012 [ab].out )
5013 # We found the default executable, but exeext='' is most
5014 # certainly right.
5015 break;;
5016 *.* )
5017 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5018 then :; else
5019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5020 fi
5021 # We set ac_cv_exeext here because the later test for it is not
5022 # safe: cross compilers may not add the suffix if given an `-o'
5023 # argument, so we may need to know it at that point already.
5024 # Even if this section looks crufty: it has the advantage of
5025 # actually working.
5026 break;;
5027 * )
5028 break;;
5029 esac
5030 done
5031 test "$ac_cv_exeext" = no && ac_cv_exeext=
5032
5033 else
5034 ac_file=''
5035 fi
5036 if test -z "$ac_file"; then :
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039 $as_echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5041
5042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5044 { as_fn_set_status 77
5045 as_fn_error "C compiler cannot create executables
5046 See \`config.log' for more details." "$LINENO" 5; }; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049 $as_echo "yes" >&6; }
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5052 $as_echo_n "checking for C compiler default output file name... " >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5054 $as_echo "$ac_file" >&6; }
5055 ac_exeext=$ac_cv_exeext
5056
5057 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5058 ac_clean_files=$ac_clean_files_save
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5060 $as_echo_n "checking for suffix of executables... " >&6; }
5061 if { { ac_try="$ac_link"
5062 case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065 esac
5066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5067 $as_echo "$ac_try_echo"; } >&5
5068 (eval "$ac_link") 2>&5
5069 ac_status=$?
5070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5071 test $ac_status = 0; }; then :
5072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5073 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5074 # work properly (i.e., refer to `conftest.exe'), while it won't with
5075 # `rm'.
5076 for ac_file in conftest.exe conftest conftest.*; do
5077 test -f "$ac_file" || continue
5078 case $ac_file in
5079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5081 break;;
5082 * ) break;;
5083 esac
5084 done
5085 else
5086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5088 as_fn_error "cannot compute suffix of executables: cannot compile and link
5089 See \`config.log' for more details." "$LINENO" 5; }
5090 fi
5091 rm -f conftest conftest$ac_cv_exeext
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5093 $as_echo "$ac_cv_exeext" >&6; }
5094
5095 rm -f conftest.$ac_ext
5096 EXEEXT=$ac_cv_exeext
5097 ac_exeext=$EXEEXT
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5100 #include <stdio.h>
5101 int
5102 main ()
5103 {
5104 FILE *f = fopen ("conftest.out", "w");
5105 return ferror (f) || fclose (f) != 0;
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 ac_clean_files="$ac_clean_files conftest.out"
5112 # Check that the compiler produces executables we can run. If not, either
5113 # the compiler is broken, or we cross compile.
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5115 $as_echo_n "checking whether we are cross compiling... " >&6; }
5116 if test "$cross_compiling" != yes; then
5117 { { ac_try="$ac_link"
5118 case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121 esac
5122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123 $as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_link") 2>&5
5125 ac_status=$?
5126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5127 test $ac_status = 0; }
5128 if { ac_try='./conftest$ac_cv_exeext'
5129 { { case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132 esac
5133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5134 $as_echo "$ac_try_echo"; } >&5
5135 (eval "$ac_try") 2>&5
5136 ac_status=$?
5137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138 test $ac_status = 0; }; }; then
5139 cross_compiling=no
5140 else
5141 if test "$cross_compiling" = maybe; then
5142 cross_compiling=yes
5143 else
5144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5146 as_fn_error "cannot run C compiled programs.
5147 If you meant to cross compile, use \`--host'.
5148 See \`config.log' for more details." "$LINENO" 5; }
5149 fi
5150 fi
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5153 $as_echo "$cross_compiling" >&6; }
5154
5155 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5156 ac_clean_files=$ac_clean_files_save
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5158 $as_echo_n "checking for suffix of object files... " >&6; }
5159 if test "${ac_cv_objext+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164
5165 int
5166 main ()
5167 {
5168
5169 ;
5170 return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest.o conftest.obj
5174 if { { ac_try="$ac_compile"
5175 case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178 esac
5179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5180 $as_echo "$ac_try_echo"; } >&5
5181 (eval "$ac_compile") 2>&5
5182 ac_status=$?
5183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184 test $ac_status = 0; }; then :
5185 for ac_file in conftest.o conftest.obj conftest.*; do
5186 test -f "$ac_file" || continue;
5187 case $ac_file in
5188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5190 break;;
5191 esac
5192 done
5193 else
5194 $as_echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5196
5197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5199 as_fn_error "cannot compute suffix of object files: cannot compile
5200 See \`config.log' for more details." "$LINENO" 5; }
5201 fi
5202 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5203 fi
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5205 $as_echo "$ac_cv_objext" >&6; }
5206 OBJEXT=$ac_cv_objext
5207 ac_objext=$OBJEXT
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5209 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5210 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215
5216 int
5217 main ()
5218 {
5219 #ifndef __GNUC__
5220 choke me
5221 #endif
5222
5223 ;
5224 return 0;
5225 }
5226 _ACEOF
5227 if ac_fn_c_try_compile "$LINENO"; then :
5228 ac_compiler_gnu=yes
5229 else
5230 ac_compiler_gnu=no
5231 fi
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5234
5235 fi
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5237 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5238 if test $ac_compiler_gnu = yes; then
5239 GCC=yes
5240 else
5241 GCC=
5242 fi
5243 ac_test_CFLAGS=${CFLAGS+set}
5244 ac_save_CFLAGS=$CFLAGS
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5246 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5247 if test "${ac_cv_prog_cc_g+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 ac_save_c_werror_flag=$ac_c_werror_flag
5251 ac_c_werror_flag=yes
5252 ac_cv_prog_cc_g=no
5253 CFLAGS="-g"
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256
5257 int
5258 main ()
5259 {
5260
5261 ;
5262 return 0;
5263 }
5264 _ACEOF
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266 ac_cv_prog_cc_g=yes
5267 else
5268 CFLAGS=""
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271
5272 int
5273 main ()
5274 {
5275
5276 ;
5277 return 0;
5278 }
5279 _ACEOF
5280 if ac_fn_c_try_compile "$LINENO"; then :
5281
5282 else
5283 ac_c_werror_flag=$ac_save_c_werror_flag
5284 CFLAGS="-g"
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287
5288 int
5289 main ()
5290 {
5291
5292 ;
5293 return 0;
5294 }
5295 _ACEOF
5296 if ac_fn_c_try_compile "$LINENO"; then :
5297 ac_cv_prog_cc_g=yes
5298 fi
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 fi
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 fi
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 ac_c_werror_flag=$ac_save_c_werror_flag
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5307 $as_echo "$ac_cv_prog_cc_g" >&6; }
5308 if test "$ac_test_CFLAGS" = set; then
5309 CFLAGS=$ac_save_CFLAGS
5310 elif test $ac_cv_prog_cc_g = yes; then
5311 if test "$GCC" = yes; then
5312 CFLAGS="-g -O2"
5313 else
5314 CFLAGS="-g"
5315 fi
5316 else
5317 if test "$GCC" = yes; then
5318 CFLAGS="-O2"
5319 else
5320 CFLAGS=
5321 fi
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5324 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5325 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 ac_cv_prog_cc_c89=no
5329 ac_save_CC=$CC
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #include <stdarg.h>
5333 #include <stdio.h>
5334 #include <sys/types.h>
5335 #include <sys/stat.h>
5336 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5337 struct buf { int x; };
5338 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5339 static char *e (p, i)
5340 char **p;
5341 int i;
5342 {
5343 return p[i];
5344 }
5345 static char *f (char * (*g) (char **, int), char **p, ...)
5346 {
5347 char *s;
5348 va_list v;
5349 va_start (v,p);
5350 s = g (p, va_arg (v,int));
5351 va_end (v);
5352 return s;
5353 }
5354
5355 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5356 function prototypes and stuff, but not '\xHH' hex character constants.
5357 These don't provoke an error unfortunately, instead are silently treated
5358 as 'x'. The following induces an error, until -std is added to get
5359 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5360 array size at least. It's necessary to write '\x00'==0 to get something
5361 that's true only with -std. */
5362 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5363
5364 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5365 inside strings and character constants. */
5366 #define FOO(x) 'x'
5367 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5368
5369 int test (int i, double x);
5370 struct s1 {int (*f) (int a);};
5371 struct s2 {int (*f) (double a);};
5372 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5373 int argc;
5374 char **argv;
5375 int
5376 main ()
5377 {
5378 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5384 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5385 do
5386 CC="$ac_save_CC $ac_arg"
5387 if ac_fn_c_try_compile "$LINENO"; then :
5388 ac_cv_prog_cc_c89=$ac_arg
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext
5391 test "x$ac_cv_prog_cc_c89" != "xno" && break
5392 done
5393 rm -f conftest.$ac_ext
5394 CC=$ac_save_CC
5395
5396 fi
5397 # AC_CACHE_VAL
5398 case "x$ac_cv_prog_cc_c89" in
5399 x)
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5401 $as_echo "none needed" >&6; } ;;
5402 xno)
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5404 $as_echo "unsupported" >&6; } ;;
5405 *)
5406 CC="$CC $ac_cv_prog_cc_c89"
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5408 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5409 esac
5410 if test "x$ac_cv_prog_cc_c89" != xno; then :
5411
5412 fi
5413
5414 ac_ext=c
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419 DEPDIR="${am__leading_dot}deps"
5420
5421 ac_config_commands="$ac_config_commands depfiles"
5422
5423
5424 am_make=${MAKE-make}
5425 cat > confinc << 'END'
5426 am__doit:
5427 @echo this is the am__doit target
5428 .PHONY: am__doit
5429 END
5430 # If we don't find an include directive, just comment out the code.
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5432 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5433 am__include="#"
5434 am__quote=
5435 _am_result=none
5436 # First try GNU make style include.
5437 echo "include confinc" > confmf
5438 # Ignore all kinds of additional output from `make'.
5439 case `$am_make -s -f confmf 2> /dev/null` in #(
5440 *the\ am__doit\ target*)
5441 am__include=include
5442 am__quote=
5443 _am_result=GNU
5444 ;;
5445 esac
5446 # Now try BSD make style include.
5447 if test "$am__include" = "#"; then
5448 echo '.include "confinc"' > confmf
5449 case `$am_make -s -f confmf 2> /dev/null` in #(
5450 *the\ am__doit\ target*)
5451 am__include=.include
5452 am__quote="\""
5453 _am_result=BSD
5454 ;;
5455 esac
5456 fi
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5460 $as_echo "$_am_result" >&6; }
5461 rm -f confinc confmf
5462
5463 # Check whether --enable-dependency-tracking was given.
5464 if test "${enable_dependency_tracking+set}" = set; then :
5465 enableval=$enable_dependency_tracking;
5466 fi
5467
5468 if test "x$enable_dependency_tracking" != xno; then
5469 am_depcomp="$ac_aux_dir/depcomp"
5470 AMDEPBACKSLASH='\'
5471 fi
5472 if test "x$enable_dependency_tracking" != xno; then
5473 AMDEP_TRUE=
5474 AMDEP_FALSE='#'
5475 else
5476 AMDEP_TRUE='#'
5477 AMDEP_FALSE=
5478 fi
5479
5480
5481
5482 depcc="$CC" am_compiler_list=
5483
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5485 $as_echo_n "checking dependency style of $depcc... " >&6; }
5486 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5490 # We make a subdir and do the tests there. Otherwise we can end up
5491 # making bogus files that we don't know about and never remove. For
5492 # instance it was reported that on HP-UX the gcc test will end up
5493 # making a dummy file named `D' -- because `-MD' means `put the output
5494 # in D'.
5495 mkdir conftest.dir
5496 # Copy depcomp to subdir because otherwise we won't find it if we're
5497 # using a relative directory.
5498 cp "$am_depcomp" conftest.dir
5499 cd conftest.dir
5500 # We will build objects and dependencies in a subdirectory because
5501 # it helps to detect inapplicable dependency modes. For instance
5502 # both Tru64's cc and ICC support -MD to output dependencies as a
5503 # side effect of compilation, but ICC will put the dependencies in
5504 # the current directory while Tru64 will put them in the object
5505 # directory.
5506 mkdir sub
5507
5508 am_cv_CC_dependencies_compiler_type=none
5509 if test "$am_compiler_list" = ""; then
5510 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5511 fi
5512 am__universal=false
5513 case " $depcc " in #(
5514 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5515 esac
5516
5517 for depmode in $am_compiler_list; do
5518 # Setup a source with many dependencies, because some compilers
5519 # like to wrap large dependency lists on column 80 (with \), and
5520 # we should not choose a depcomp mode which is confused by this.
5521 #
5522 # We need to recreate these files for each test, as the compiler may
5523 # overwrite some of them when testing with obscure command lines.
5524 # This happens at least with the AIX C compiler.
5525 : > sub/conftest.c
5526 for i in 1 2 3 4 5 6; do
5527 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5528 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5529 # Solaris 8's {/usr,}/bin/sh.
5530 touch sub/conftst$i.h
5531 done
5532 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5533
5534 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5535 # mode. It turns out that the SunPro C++ compiler does not properly
5536 # handle `-M -o', and we need to detect this. Also, some Intel
5537 # versions had trouble with output in subdirs
5538 am__obj=sub/conftest.${OBJEXT-o}
5539 am__minus_obj="-o $am__obj"
5540 case $depmode in
5541 gcc)
5542 # This depmode causes a compiler race in universal mode.
5543 test "$am__universal" = false || continue
5544 ;;
5545 nosideeffect)
5546 # after this tag, mechanisms are not by side-effect, so they'll
5547 # only be used when explicitly requested
5548 if test "x$enable_dependency_tracking" = xyes; then
5549 continue
5550 else
5551 break
5552 fi
5553 ;;
5554 msvisualcpp | msvcmsys)
5555 # This compiler won't grok `-c -o', but also, the minuso test has
5556 # not run yet. These depmodes are late enough in the game, and
5557 # so weak that their functioning should not be impacted.
5558 am__obj=conftest.${OBJEXT-o}
5559 am__minus_obj=
5560 ;;
5561 none) break ;;
5562 esac
5563 if depmode=$depmode \
5564 source=sub/conftest.c object=$am__obj \
5565 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5566 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5567 >/dev/null 2>conftest.err &&
5568 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5569 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5570 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5571 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5572 # icc doesn't choke on unknown options, it will just issue warnings
5573 # or remarks (even with -Werror). So we grep stderr for any message
5574 # that says an option was ignored or not supported.
5575 # When given -MP, icc 7.0 and 7.1 complain thusly:
5576 # icc: Command line warning: ignoring option '-M'; no argument required
5577 # The diagnosis changed in icc 8.0:
5578 # icc: Command line remark: option '-MP' not supported
5579 if (grep 'ignoring option' conftest.err ||
5580 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5581 am_cv_CC_dependencies_compiler_type=$depmode
5582 break
5583 fi
5584 fi
5585 done
5586
5587 cd ..
5588 rm -rf conftest.dir
5589 else
5590 am_cv_CC_dependencies_compiler_type=none
5591 fi
5592
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5595 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5596 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5597
5598 if
5599 test "x$enable_dependency_tracking" != xno \
5600 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5601 am__fastdepCC_TRUE=
5602 am__fastdepCC_FALSE='#'
5603 else
5604 am__fastdepCC_TRUE='#'
5605 am__fastdepCC_FALSE=
5606 fi
5607
5608
5609 if test "x$CC" != xcc; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5611 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5614 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5615 fi
5616 set dummy $CC; ac_cc=`$as_echo "$2" |
5617 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5618 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623
5624 int
5625 main ()
5626 {
5627
5628 ;
5629 return 0;
5630 }
5631 _ACEOF
5632 # Make sure it works both with $CC and with simple cc.
5633 # We do the test twice because some compilers refuse to overwrite an
5634 # existing .o file with -o, though they will create one.
5635 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5636 rm -f conftest2.*
5637 if { { case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5640 esac
5641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5642 $as_echo "$ac_try_echo"; } >&5
5643 (eval "$ac_try") 2>&5
5644 ac_status=$?
5645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5646 test $ac_status = 0; } &&
5647 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650 esac
5651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5652 $as_echo "$ac_try_echo"; } >&5
5653 (eval "$ac_try") 2>&5
5654 ac_status=$?
5655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5656 test $ac_status = 0; };
5657 then
5658 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5659 if test "x$CC" != xcc; then
5660 # Test first that cc exists at all.
5661 if { ac_try='cc -c conftest.$ac_ext >&5'
5662 { { case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5667 $as_echo "$ac_try_echo"; } >&5
5668 (eval "$ac_try") 2>&5
5669 ac_status=$?
5670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671 test $ac_status = 0; }; }; then
5672 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5673 rm -f conftest2.*
5674 if { { case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677 esac
5678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5679 $as_echo "$ac_try_echo"; } >&5
5680 (eval "$ac_try") 2>&5
5681 ac_status=$?
5682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5683 test $ac_status = 0; } &&
5684 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5689 $as_echo "$ac_try_echo"; } >&5
5690 (eval "$ac_try") 2>&5
5691 ac_status=$?
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; };
5694 then
5695 # cc works too.
5696 :
5697 else
5698 # cc exists but doesn't like -o.
5699 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5700 fi
5701 fi
5702 fi
5703 else
5704 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5705 fi
5706 rm -f core conftest*
5707
5708 fi
5709 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5711 $as_echo "yes" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5715
5716 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5717
5718 fi
5719
5720 # FIXME: we rely on the cache variable name because
5721 # there is no other way.
5722 set dummy $CC
5723 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5724 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5725 if test "$am_t" != yes; then
5726 # Losing compiler, so override with the script.
5727 # FIXME: It is wrong to rewrite CC.
5728 # But if we don't then we get into trouble of one sort or another.
5729 # A longer-term fix would be to have automake use am__CC in this case,
5730 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5731 CC="$am_aux_dir/compile $CC"
5732 fi
5733
5734
5735
5736 if test x$GCC = xyes; then
5737 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5738 else
5739 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5740 fi
5741
5742 # Initialize gnulib right after choosing the compiler.
5743
5744 ac_ext=c
5745 ac_cpp='$CPP $CPPFLAGS'
5746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5750 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5751 # On Suns, sometimes $CPP names a directory.
5752 if test -n "$CPP" && test -d "$CPP"; then
5753 CPP=
5754 fi
5755 if test -z "$CPP"; then
5756 if test "${ac_cv_prog_CPP+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 # Double quotes because CPP needs to be expanded
5760 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5761 do
5762 ac_preproc_ok=false
5763 for ac_c_preproc_warn_flag in '' yes
5764 do
5765 # Use a header file that comes with gcc, so configuring glibc
5766 # with a fresh cross-compiler works.
5767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5768 # <limits.h> exists even on freestanding compilers.
5769 # On the NeXT, cc -E runs the code through the compiler's parser,
5770 # not just through cpp. "Syntax error" is here to catch this case.
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #ifdef __STDC__
5774 # include <limits.h>
5775 #else
5776 # include <assert.h>
5777 #endif
5778 Syntax error
5779 _ACEOF
5780 if ac_fn_c_try_cpp "$LINENO"; then :
5781
5782 else
5783 # Broken: fails on valid input.
5784 continue
5785 fi
5786 rm -f conftest.err conftest.$ac_ext
5787
5788 # OK, works on sane cases. Now check whether nonexistent headers
5789 # can be detected and how.
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #include <ac_nonexistent.h>
5793 _ACEOF
5794 if ac_fn_c_try_cpp "$LINENO"; then :
5795 # Broken: success on invalid input.
5796 continue
5797 else
5798 # Passes both tests.
5799 ac_preproc_ok=:
5800 break
5801 fi
5802 rm -f conftest.err conftest.$ac_ext
5803
5804 done
5805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5806 rm -f conftest.err conftest.$ac_ext
5807 if $ac_preproc_ok; then :
5808 break
5809 fi
5810
5811 done
5812 ac_cv_prog_CPP=$CPP
5813
5814 fi
5815 CPP=$ac_cv_prog_CPP
5816 else
5817 ac_cv_prog_CPP=$CPP
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5820 $as_echo "$CPP" >&6; }
5821 ac_preproc_ok=false
5822 for ac_c_preproc_warn_flag in '' yes
5823 do
5824 # Use a header file that comes with gcc, so configuring glibc
5825 # with a fresh cross-compiler works.
5826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5827 # <limits.h> exists even on freestanding compilers.
5828 # On the NeXT, cc -E runs the code through the compiler's parser,
5829 # not just through cpp. "Syntax error" is here to catch this case.
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #ifdef __STDC__
5833 # include <limits.h>
5834 #else
5835 # include <assert.h>
5836 #endif
5837 Syntax error
5838 _ACEOF
5839 if ac_fn_c_try_cpp "$LINENO"; then :
5840
5841 else
5842 # Broken: fails on valid input.
5843 continue
5844 fi
5845 rm -f conftest.err conftest.$ac_ext
5846
5847 # OK, works on sane cases. Now check whether nonexistent headers
5848 # can be detected and how.
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851 #include <ac_nonexistent.h>
5852 _ACEOF
5853 if ac_fn_c_try_cpp "$LINENO"; then :
5854 # Broken: success on invalid input.
5855 continue
5856 else
5857 # Passes both tests.
5858 ac_preproc_ok=:
5859 break
5860 fi
5861 rm -f conftest.err conftest.$ac_ext
5862
5863 done
5864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5865 rm -f conftest.err conftest.$ac_ext
5866 if $ac_preproc_ok; then :
5867
5868 else
5869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5871 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5872 See \`config.log' for more details." "$LINENO" 5; }
5873 fi
5874
5875 ac_ext=c
5876 ac_cpp='$CPP $CPPFLAGS'
5877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5880
5881
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5883 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5884 if test "${ac_cv_path_GREP+set}" = set; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 if test -z "$GREP"; then
5888 ac_path_GREP_found=false
5889 # Loop through the user's path and test for each of PROGNAME-LIST
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5892 do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_prog in grep ggrep; do
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5898 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5899 # Check for GNU ac_path_GREP and select it if it is found.
5900 # Check for GNU $ac_path_GREP
5901 case `"$ac_path_GREP" --version 2>&1` in
5902 *GNU*)
5903 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5904 *)
5905 ac_count=0
5906 $as_echo_n 0123456789 >"conftest.in"
5907 while :
5908 do
5909 cat "conftest.in" "conftest.in" >"conftest.tmp"
5910 mv "conftest.tmp" "conftest.in"
5911 cp "conftest.in" "conftest.nl"
5912 $as_echo 'GREP' >> "conftest.nl"
5913 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5915 as_fn_arith $ac_count + 1 && ac_count=$as_val
5916 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5917 # Best one so far, save it but keep looking for a better one
5918 ac_cv_path_GREP="$ac_path_GREP"
5919 ac_path_GREP_max=$ac_count
5920 fi
5921 # 10*(2^10) chars as input seems more than enough
5922 test $ac_count -gt 10 && break
5923 done
5924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5925 esac
5926
5927 $ac_path_GREP_found && break 3
5928 done
5929 done
5930 done
5931 IFS=$as_save_IFS
5932 if test -z "$ac_cv_path_GREP"; then
5933 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5934 fi
5935 else
5936 ac_cv_path_GREP=$GREP
5937 fi
5938
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5941 $as_echo "$ac_cv_path_GREP" >&6; }
5942 GREP="$ac_cv_path_GREP"
5943
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5946 $as_echo_n "checking for egrep... " >&6; }
5947 if test "${ac_cv_path_EGREP+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5951 then ac_cv_path_EGREP="$GREP -E"
5952 else
5953 if test -z "$EGREP"; then
5954 ac_path_EGREP_found=false
5955 # Loop through the user's path and test for each of PROGNAME-LIST
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5958 do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_prog in egrep; do
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5964 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5965 # Check for GNU ac_path_EGREP and select it if it is found.
5966 # Check for GNU $ac_path_EGREP
5967 case `"$ac_path_EGREP" --version 2>&1` in
5968 *GNU*)
5969 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5970 *)
5971 ac_count=0
5972 $as_echo_n 0123456789 >"conftest.in"
5973 while :
5974 do
5975 cat "conftest.in" "conftest.in" >"conftest.tmp"
5976 mv "conftest.tmp" "conftest.in"
5977 cp "conftest.in" "conftest.nl"
5978 $as_echo 'EGREP' >> "conftest.nl"
5979 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5980 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5981 as_fn_arith $ac_count + 1 && ac_count=$as_val
5982 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5983 # Best one so far, save it but keep looking for a better one
5984 ac_cv_path_EGREP="$ac_path_EGREP"
5985 ac_path_EGREP_max=$ac_count
5986 fi
5987 # 10*(2^10) chars as input seems more than enough
5988 test $ac_count -gt 10 && break
5989 done
5990 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5991 esac
5992
5993 $ac_path_EGREP_found && break 3
5994 done
5995 done
5996 done
5997 IFS=$as_save_IFS
5998 if test -z "$ac_cv_path_EGREP"; then
5999 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6000 fi
6001 else
6002 ac_cv_path_EGREP=$EGREP
6003 fi
6004
6005 fi
6006 fi
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6008 $as_echo "$ac_cv_path_EGREP" >&6; }
6009 EGREP="$ac_cv_path_EGREP"
6010
6011
6012
6013
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6015 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6016 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022
6023 #ifdef __ACK__
6024 Amsterdam
6025 #endif
6026
6027 _ACEOF
6028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6029 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6030 gl_cv_c_amsterdam_compiler=yes
6031 else
6032 gl_cv_c_amsterdam_compiler=no
6033 fi
6034 rm -f conftest*
6035
6036
6037 fi
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6039 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6040 if test -z "$AR"; then
6041 if test $gl_cv_c_amsterdam_compiler = yes; then
6042 AR='cc -c.a'
6043 if test -z "$ARFLAGS"; then
6044 ARFLAGS='-o'
6045 fi
6046 else
6047 if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}ar; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if test "${ac_cv_prog_AR+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -n "$AR"; then
6056 ac_cv_prog_AR="$AR" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_AR="${ac_tool_prefix}ar"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 AR=$ac_cv_prog_AR
6076 if test -n "$AR"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6078 $as_echo "$AR" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084
6085 fi
6086 if test -z "$ac_cv_prog_AR"; then
6087 ac_ct_AR=$AR
6088 # Extract the first word of "ar", so it can be a program name with args.
6089 set dummy ar; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if test -n "$ac_ct_AR"; then
6096 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_ac_ct_AR="ar"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6116 if test -n "$ac_ct_AR"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6118 $as_echo "$ac_ct_AR" >&6; }
6119 else
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124 if test "x$ac_ct_AR" = x; then
6125 AR="ar"
6126 else
6127 case $cross_compiling:$ac_tool_warned in
6128 yes:)
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131 ac_tool_warned=yes ;;
6132 esac
6133 AR=$ac_ct_AR
6134 fi
6135 else
6136 AR="$ac_cv_prog_AR"
6137 fi
6138
6139 if test -z "$ARFLAGS"; then
6140 ARFLAGS='cru'
6141 fi
6142 fi
6143 else
6144 if test -z "$ARFLAGS"; then
6145 ARFLAGS='cru'
6146 fi
6147 fi
6148
6149
6150 if test -z "$RANLIB"; then
6151 if test $gl_cv_c_amsterdam_compiler = yes; then
6152 RANLIB=':'
6153 else
6154 if test -n "$ac_tool_prefix"; then
6155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -n "$RANLIB"; then
6163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6167 do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 RANLIB=$ac_cv_prog_RANLIB
6183 if test -n "$RANLIB"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6185 $as_echo "$RANLIB" >&6; }
6186 else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6189 fi
6190
6191
6192 fi
6193 if test -z "$ac_cv_prog_RANLIB"; then
6194 ac_ct_RANLIB=$RANLIB
6195 # Extract the first word of "ranlib", so it can be a program name with args.
6196 set dummy ranlib; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$ac_ct_RANLIB"; then
6203 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_prog_ac_ct_RANLIB="ranlib"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6223 if test -n "$ac_ct_RANLIB"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6225 $as_echo "$ac_ct_RANLIB" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231 if test "x$ac_ct_RANLIB" = x; then
6232 RANLIB=":"
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235 yes:)
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238 ac_tool_warned=yes ;;
6239 esac
6240 RANLIB=$ac_ct_RANLIB
6241 fi
6242 else
6243 RANLIB="$ac_cv_prog_RANLIB"
6244 fi
6245
6246 fi
6247 fi
6248
6249
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6251 $as_echo_n "checking for ANSI C header files... " >&6; }
6252 if test "${ac_cv_header_stdc+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #include <stdlib.h>
6258 #include <stdarg.h>
6259 #include <string.h>
6260 #include <float.h>
6261
6262 int
6263 main ()
6264 {
6265
6266 ;
6267 return 0;
6268 }
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271 ac_cv_header_stdc=yes
6272 else
6273 ac_cv_header_stdc=no
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276
6277 if test $ac_cv_header_stdc = yes; then
6278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 #include <string.h>
6282
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "memchr" >/dev/null 2>&1; then :
6286
6287 else
6288 ac_cv_header_stdc=no
6289 fi
6290 rm -f conftest*
6291
6292 fi
6293
6294 if test $ac_cv_header_stdc = yes; then
6295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298 #include <stdlib.h>
6299
6300 _ACEOF
6301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6302 $EGREP "free" >/dev/null 2>&1; then :
6303
6304 else
6305 ac_cv_header_stdc=no
6306 fi
6307 rm -f conftest*
6308
6309 fi
6310
6311 if test $ac_cv_header_stdc = yes; then
6312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6313 if test "$cross_compiling" = yes; then :
6314 :
6315 else
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6318 #include <ctype.h>
6319 #include <stdlib.h>
6320 #if ((' ' & 0x0FF) == 0x020)
6321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6323 #else
6324 # define ISLOWER(c) \
6325 (('a' <= (c) && (c) <= 'i') \
6326 || ('j' <= (c) && (c) <= 'r') \
6327 || ('s' <= (c) && (c) <= 'z'))
6328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6329 #endif
6330
6331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6332 int
6333 main ()
6334 {
6335 int i;
6336 for (i = 0; i < 256; i++)
6337 if (XOR (islower (i), ISLOWER (i))
6338 || toupper (i) != TOUPPER (i))
6339 return 2;
6340 return 0;
6341 }
6342 _ACEOF
6343 if ac_fn_c_try_run "$LINENO"; then :
6344
6345 else
6346 ac_cv_header_stdc=no
6347 fi
6348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6349 conftest.$ac_objext conftest.beam conftest.$ac_ext
6350 fi
6351
6352 fi
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6355 $as_echo "$ac_cv_header_stdc" >&6; }
6356 if test $ac_cv_header_stdc = yes; then
6357
6358 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6359
6360 fi
6361
6362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6364 inttypes.h stdint.h unistd.h
6365 do :
6366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6367 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6368 "
6369 eval as_val=\$$as_ac_Header
6370 if test "x$as_val" = x""yes; then :
6371 cat >>confdefs.h <<_ACEOF
6372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6373 _ACEOF
6374
6375 fi
6376
6377 done
6378
6379
6380
6381
6382
6383 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6384 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6385 MINIX=yes
6386 else
6387 MINIX=
6388 fi
6389
6390
6391 if test "$MINIX" = yes; then
6392
6393 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6394
6395
6396 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6397
6398
6399 $as_echo "#define _MINIX 1" >>confdefs.h
6400
6401 fi
6402
6403 case "$host_os" in
6404 hpux*)
6405
6406 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6407
6408 ;;
6409 esac
6410
6411
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6413 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6414 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6419
6420 # define __EXTENSIONS__ 1
6421 $ac_includes_default
6422 int
6423 main ()
6424 {
6425
6426 ;
6427 return 0;
6428 }
6429 _ACEOF
6430 if ac_fn_c_try_compile "$LINENO"; then :
6431 ac_cv_safe_to_define___extensions__=yes
6432 else
6433 ac_cv_safe_to_define___extensions__=no
6434 fi
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6438 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6439 test $ac_cv_safe_to_define___extensions__ = yes &&
6440 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6441
6442 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6443
6444 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6445
6446 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6447
6448 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6449
6450 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6451
6452
6453
6454
6455
6456
6457
6458
6459 # Check whether --enable-largefile was given.
6460 if test "${enable_largefile+set}" = set; then :
6461 enableval=$enable_largefile;
6462 fi
6463
6464 if test "$enable_largefile" != no; then
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6467 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6468 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 ac_cv_sys_largefile_CC=no
6472 if test "$GCC" != yes; then
6473 ac_save_CC=$CC
6474 while :; do
6475 # IRIX 6.2 and later do not support large files by default,
6476 # so use the C compiler's -n32 option if that helps.
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 #include <sys/types.h>
6480 /* Check that off_t can represent 2**63 - 1 correctly.
6481 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6482 since some C++ compilers masquerading as C compilers
6483 incorrectly reject 9223372036854775807. */
6484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6486 && LARGE_OFF_T % 2147483647 == 1)
6487 ? 1 : -1];
6488 int
6489 main ()
6490 {
6491
6492 ;
6493 return 0;
6494 }
6495 _ACEOF
6496 if ac_fn_c_try_compile "$LINENO"; then :
6497 break
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext
6500 CC="$CC -n32"
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502 ac_cv_sys_largefile_CC=' -n32'; break
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext
6505 break
6506 done
6507 CC=$ac_save_CC
6508 rm -f conftest.$ac_ext
6509 fi
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6512 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6513 if test "$ac_cv_sys_largefile_CC" != no; then
6514 CC=$CC$ac_cv_sys_largefile_CC
6515 fi
6516
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6518 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6519 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 while :; do
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #include <sys/types.h>
6526 /* Check that off_t can represent 2**63 - 1 correctly.
6527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6528 since some C++ compilers masquerading as C compilers
6529 incorrectly reject 9223372036854775807. */
6530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6532 && LARGE_OFF_T % 2147483647 == 1)
6533 ? 1 : -1];
6534 int
6535 main ()
6536 {
6537
6538 ;
6539 return 0;
6540 }
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"; then :
6543 ac_cv_sys_file_offset_bits=no; break
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548 #define _FILE_OFFSET_BITS 64
6549 #include <sys/types.h>
6550 /* Check that off_t can represent 2**63 - 1 correctly.
6551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6552 since some C++ compilers masquerading as C compilers
6553 incorrectly reject 9223372036854775807. */
6554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6556 && LARGE_OFF_T % 2147483647 == 1)
6557 ? 1 : -1];
6558 int
6559 main ()
6560 {
6561
6562 ;
6563 return 0;
6564 }
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567 ac_cv_sys_file_offset_bits=64; break
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 ac_cv_sys_file_offset_bits=unknown
6571 break
6572 done
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6575 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6576 case $ac_cv_sys_file_offset_bits in #(
6577 no | unknown) ;;
6578 *)
6579 cat >>confdefs.h <<_ACEOF
6580 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6581 _ACEOF
6582 ;;
6583 esac
6584 rm -rf conftest*
6585 if test $ac_cv_sys_file_offset_bits = unknown; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6587 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6588 if test "${ac_cv_sys_large_files+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 while :; do
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 #include <sys/types.h>
6595 /* Check that off_t can represent 2**63 - 1 correctly.
6596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6597 since some C++ compilers masquerading as C compilers
6598 incorrectly reject 9223372036854775807. */
6599 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6601 && LARGE_OFF_T % 2147483647 == 1)
6602 ? 1 : -1];
6603 int
6604 main ()
6605 {
6606
6607 ;
6608 return 0;
6609 }
6610 _ACEOF
6611 if ac_fn_c_try_compile "$LINENO"; then :
6612 ac_cv_sys_large_files=no; break
6613 fi
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 #define _LARGE_FILES 1
6618 #include <sys/types.h>
6619 /* Check that off_t can represent 2**63 - 1 correctly.
6620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6621 since some C++ compilers masquerading as C compilers
6622 incorrectly reject 9223372036854775807. */
6623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6625 && LARGE_OFF_T % 2147483647 == 1)
6626 ? 1 : -1];
6627 int
6628 main ()
6629 {
6630
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 if ac_fn_c_try_compile "$LINENO"; then :
6636 ac_cv_sys_large_files=1; break
6637 fi
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639 ac_cv_sys_large_files=unknown
6640 break
6641 done
6642 fi
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6644 $as_echo "$ac_cv_sys_large_files" >&6; }
6645 case $ac_cv_sys_large_files in #(
6646 no | unknown) ;;
6647 *)
6648 cat >>confdefs.h <<_ACEOF
6649 #define _LARGE_FILES $ac_cv_sys_large_files
6650 _ACEOF
6651 ;;
6652 esac
6653 rm -rf conftest*
6654 fi
6655
6656
6657 fi
6658
6659 case $ac_cv_prog_cc_stdc in #(
6660 no) :
6661 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6662 *) :
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6664 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6665 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 ac_cv_prog_cc_c99=no
6669 ac_save_CC=$CC
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 #include <stdarg.h>
6673 #include <stdbool.h>
6674 #include <stdlib.h>
6675 #include <wchar.h>
6676 #include <stdio.h>
6677
6678 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6679 #define debug(...) fprintf (stderr, __VA_ARGS__)
6680 #define showlist(...) puts (#__VA_ARGS__)
6681 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6682 static void
6683 test_varargs_macros (void)
6684 {
6685 int x = 1234;
6686 int y = 5678;
6687 debug ("Flag");
6688 debug ("X = %d\n", x);
6689 showlist (The first, second, and third items.);
6690 report (x>y, "x is %d but y is %d", x, y);
6691 }
6692
6693 // Check long long types.
6694 #define BIG64 18446744073709551615ull
6695 #define BIG32 4294967295ul
6696 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6697 #if !BIG_OK
6698 your preprocessor is broken;
6699 #endif
6700 #if BIG_OK
6701 #else
6702 your preprocessor is broken;
6703 #endif
6704 static long long int bignum = -9223372036854775807LL;
6705 static unsigned long long int ubignum = BIG64;
6706
6707 struct incomplete_array
6708 {
6709 int datasize;
6710 double data[];
6711 };
6712
6713 struct named_init {
6714 int number;
6715 const wchar_t *name;
6716 double average;
6717 };
6718
6719 typedef const char *ccp;
6720
6721 static inline int
6722 test_restrict (ccp restrict text)
6723 {
6724 // See if C++-style comments work.
6725 // Iterate through items via the restricted pointer.
6726 // Also check for declarations in for loops.
6727 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6728 continue;
6729 return 0;
6730 }
6731
6732 // Check varargs and va_copy.
6733 static void
6734 test_varargs (const char *format, ...)
6735 {
6736 va_list args;
6737 va_start (args, format);
6738 va_list args_copy;
6739 va_copy (args_copy, args);
6740
6741 const char *str;
6742 int number;
6743 float fnumber;
6744
6745 while (*format)
6746 {
6747 switch (*format++)
6748 {
6749 case 's': // string
6750 str = va_arg (args_copy, const char *);
6751 break;
6752 case 'd': // int
6753 number = va_arg (args_copy, int);
6754 break;
6755 case 'f': // float
6756 fnumber = va_arg (args_copy, double);
6757 break;
6758 default:
6759 break;
6760 }
6761 }
6762 va_end (args_copy);
6763 va_end (args);
6764 }
6765
6766 int
6767 main ()
6768 {
6769
6770 // Check bool.
6771 _Bool success = false;
6772
6773 // Check restrict.
6774 if (test_restrict ("String literal") == 0)
6775 success = true;
6776 char *restrict newvar = "Another string";
6777
6778 // Check varargs.
6779 test_varargs ("s, d' f .", "string", 65, 34.234);
6780 test_varargs_macros ();
6781
6782 // Check flexible array members.
6783 struct incomplete_array *ia =
6784 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6785 ia->datasize = 10;
6786 for (int i = 0; i < ia->datasize; ++i)
6787 ia->data[i] = i * 1.234;
6788
6789 // Check named initializers.
6790 struct named_init ni = {
6791 .number = 34,
6792 .name = L"Test wide string",
6793 .average = 543.34343,
6794 };
6795
6796 ni.number = 58;
6797
6798 int dynamic_array[ni.number];
6799 dynamic_array[ni.number - 1] = 543;
6800
6801 // work around unused variable warnings
6802 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6803 || dynamic_array[ni.number - 1] != 543);
6804
6805 ;
6806 return 0;
6807 }
6808 _ACEOF
6809 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6810 do
6811 CC="$ac_save_CC $ac_arg"
6812 if ac_fn_c_try_compile "$LINENO"; then :
6813 ac_cv_prog_cc_c99=$ac_arg
6814 fi
6815 rm -f core conftest.err conftest.$ac_objext
6816 test "x$ac_cv_prog_cc_c99" != "xno" && break
6817 done
6818 rm -f conftest.$ac_ext
6819 CC=$ac_save_CC
6820
6821 fi
6822 # AC_CACHE_VAL
6823 case "x$ac_cv_prog_cc_c99" in
6824 x)
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6826 $as_echo "none needed" >&6; } ;;
6827 xno)
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6829 $as_echo "unsupported" >&6; } ;;
6830 *)
6831 CC="$CC $ac_cv_prog_cc_c99"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6833 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6834 esac
6835 if test "x$ac_cv_prog_cc_c99" != xno; then :
6836 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6839 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6840 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 ac_cv_prog_cc_c89=no
6844 ac_save_CC=$CC
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 #include <stdarg.h>
6848 #include <stdio.h>
6849 #include <sys/types.h>
6850 #include <sys/stat.h>
6851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6852 struct buf { int x; };
6853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6854 static char *e (p, i)
6855 char **p;
6856 int i;
6857 {
6858 return p[i];
6859 }
6860 static char *f (char * (*g) (char **, int), char **p, ...)
6861 {
6862 char *s;
6863 va_list v;
6864 va_start (v,p);
6865 s = g (p, va_arg (v,int));
6866 va_end (v);
6867 return s;
6868 }
6869
6870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6871 function prototypes and stuff, but not '\xHH' hex character constants.
6872 These don't provoke an error unfortunately, instead are silently treated
6873 as 'x'. The following induces an error, until -std is added to get
6874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6875 array size at least. It's necessary to write '\x00'==0 to get something
6876 that's true only with -std. */
6877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6878
6879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6880 inside strings and character constants. */
6881 #define FOO(x) 'x'
6882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6883
6884 int test (int i, double x);
6885 struct s1 {int (*f) (int a);};
6886 struct s2 {int (*f) (double a);};
6887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6888 int argc;
6889 char **argv;
6890 int
6891 main ()
6892 {
6893 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6894 ;
6895 return 0;
6896 }
6897 _ACEOF
6898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6900 do
6901 CC="$ac_save_CC $ac_arg"
6902 if ac_fn_c_try_compile "$LINENO"; then :
6903 ac_cv_prog_cc_c89=$ac_arg
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext
6906 test "x$ac_cv_prog_cc_c89" != "xno" && break
6907 done
6908 rm -f conftest.$ac_ext
6909 CC=$ac_save_CC
6910
6911 fi
6912 # AC_CACHE_VAL
6913 case "x$ac_cv_prog_cc_c89" in
6914 x)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6916 $as_echo "none needed" >&6; } ;;
6917 xno)
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6919 $as_echo "unsupported" >&6; } ;;
6920 *)
6921 CC="$CC $ac_cv_prog_cc_c89"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6923 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6924 esac
6925 if test "x$ac_cv_prog_cc_c89" != xno; then :
6926 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6927 else
6928 ac_cv_prog_cc_stdc=no
6929 fi
6930
6931 fi
6932 ;;
6933 esac
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6935 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6936 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938 fi
6939
6940 case $ac_cv_prog_cc_stdc in #(
6941 no) :
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6943 $as_echo "unsupported" >&6; } ;; #(
6944 '') :
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6946 $as_echo "none needed" >&6; } ;; #(
6947 *) :
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6949 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6950 esac
6951
6952
6953
6954 # Code from module alloca-opt:
6955 # Code from module allocator:
6956 # Code from module c-ctype:
6957 # Code from module c-strcase:
6958 # Code from module careadlinkat:
6959 # Code from module clock-time:
6960 # Code from module crypto/md5:
6961 # Code from module crypto/sha1:
6962 # Code from module crypto/sha256:
6963 # Code from module crypto/sha512:
6964 # Code from module dosname:
6965 # Code from module dtoastr:
6966 # Code from module dtotimespec:
6967 # Code from module dup2:
6968 # Code from module environ:
6969 # Code from module execinfo:
6970 # Code from module extensions:
6971
6972 # Code from module extern-inline:
6973 # Code from module filemode:
6974 # Code from module getloadavg:
6975 # Code from module getopt-gnu:
6976 # Code from module getopt-posix:
6977 # Code from module gettext-h:
6978 # Code from module gettime:
6979 # Code from module gettimeofday:
6980 # Code from module ignore-value:
6981 # Code from module include_next:
6982 # Code from module intprops:
6983 # Code from module inttypes-incomplete:
6984 # Code from module largefile:
6985
6986 # Code from module lstat:
6987 # Code from module manywarnings:
6988 # Code from module mktime:
6989 # Code from module multiarch:
6990 # Code from module nocrash:
6991 # Code from module pathmax:
6992 # Code from module pselect:
6993 # Code from module pthread_sigmask:
6994 # Code from module readlink:
6995 # Code from module signal-h:
6996 # Code from module snippet/_Noreturn:
6997 # Code from module snippet/arg-nonnull:
6998 # Code from module snippet/c++defs:
6999 # Code from module snippet/warn-on-use:
7000 # Code from module socklen:
7001 # Code from module ssize_t:
7002 # Code from module stat:
7003 # Code from module stat-time:
7004 # Code from module stdalign:
7005 # Code from module stdarg:
7006
7007
7008
7009 # Code from module stdbool:
7010 # Code from module stddef:
7011 # Code from module stdint:
7012 # Code from module stdio:
7013 # Code from module stdlib:
7014 # Code from module strftime:
7015 # Code from module strtoimax:
7016 # Code from module strtoll:
7017 # Code from module strtoull:
7018 # Code from module strtoumax:
7019 # Code from module symlink:
7020 # Code from module sys_select:
7021 # Code from module sys_stat:
7022 # Code from module sys_time:
7023 # Code from module time:
7024 # Code from module time_r:
7025 # Code from module timespec:
7026 # Code from module timespec-add:
7027 # Code from module timespec-sub:
7028 # Code from module u64:
7029 # Code from module unistd:
7030 # Code from module utimens:
7031 # Code from module verify:
7032 # Code from module warnings:
7033
7034
7035 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7036 # if -g3 works and the user does not specify CFLAGS.
7037 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7038 if test "$ac_test_CFLAGS" != set; then
7039 case $CFLAGS in
7040 '-g')
7041 emacs_g3_CFLAGS='-g3';;
7042 '-g -O2')
7043 emacs_g3_CFLAGS='-g3 -O2';;
7044 *)
7045 emacs_g3_CFLAGS='';;
7046 esac
7047 if test -n "$emacs_g3_CFLAGS"; then
7048 emacs_save_CFLAGS=$CFLAGS
7049 CFLAGS=$emacs_g3_CFLAGS
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7051 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7052 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057
7058 int
7059 main ()
7060 {
7061
7062 ;
7063 return 0;
7064 }
7065 _ACEOF
7066 if ac_fn_c_try_link "$LINENO"; then :
7067 emacs_cv_prog_cc_g3=yes
7068 else
7069 emacs_cv_prog_cc_g3=no
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext \
7072 conftest$ac_exeext conftest.$ac_ext
7073 fi
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7075 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7076 if test $emacs_cv_prog_cc_g3 = yes; then
7077 CFLAGS=$emacs_g3_CFLAGS
7078 else
7079 CFLAGS=$emacs_save_CFLAGS
7080 fi
7081 fi
7082 fi
7083
7084 # Check whether --enable-gcc-warnings was given.
7085 if test "${enable_gcc_warnings+set}" = set; then :
7086 enableval=$enable_gcc_warnings; case $enableval in
7087 yes|no) ;;
7088 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7089 esac
7090 gl_gcc_warnings=$enableval
7091 else
7092 gl_gcc_warnings=no
7093
7094 fi
7095
7096
7097 # Check whether --enable-link-time-optimization was given.
7098 if test "${enable_link_time_optimization+set}" = set; then :
7099 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7101 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7102 ac_lto_supported=no
7103 if test x$GCC = xyes; then
7104 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7105 if test x$CPUS != x; then
7106 LTO="-flto=$CPUS"
7107 else
7108 LTO="-flto"
7109 fi
7110 old_CFLAGS=$CFLAGS
7111 CFLAGS="$CFLAGS $LTO"
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114
7115 int
7116 main ()
7117 {
7118
7119 ;
7120 return 0;
7121 }
7122 _ACEOF
7123 if ac_fn_c_try_compile "$LINENO"; then :
7124 ac_lto_supported=yes
7125 else
7126 ac_lto_supported=no
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 CFLAGS="$old_CFLAGS"
7130 fi
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7132 $as_echo "$ac_lto_supported" >&6; }
7133 if test "$ac_lto_supported" = "yes"; then
7134 CFLAGS="$CFLAGS $LTO"
7135 fi
7136 fi
7137 fi
7138
7139
7140 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7141 # ------------------------------------------------
7142 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7143 # Otherwise, run RUN-IF-NOT-FOUND.
7144
7145
7146 # When compiling with GCC, prefer -isystem to -I when including system
7147 # include files, to avoid generating useless diagnostics for the files.
7148 if test "$gl_gcc_warnings" != yes; then
7149 isystem='-I'
7150 else
7151 isystem='-isystem '
7152
7153 # This, $nw, is the list of warnings we disable.
7154 nw=
7155
7156 case $with_x_toolkit in
7157 lucid | athena | motif)
7158 # Old toolkits mishandle 'const'.
7159 nw="$nw -Wwrite-strings"
7160 ;;
7161 *)
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7163 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7164 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167
7168 gl_save_compiler_FLAGS="$CFLAGS"
7169 as_fn_append CFLAGS " -Werror"
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172
7173 int
7174 main ()
7175 {
7176
7177 ;
7178 return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_compile "$LINENO"; then :
7182 gl_cv_warn_c__Werror=yes
7183 else
7184 gl_cv_warn_c__Werror=no
7185 fi
7186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187 CFLAGS="$gl_save_compiler_FLAGS"
7188
7189 fi
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7191 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7192 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7193 as_fn_append WERROR_CFLAGS " -Werror"
7194 fi
7195
7196
7197 ;;
7198 esac
7199
7200
7201 nw="$nw -Waggregate-return" # anachronistic
7202 nw="$nw -Wlong-long" # C90 is anachronistic
7203 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7204 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7205 nw="$nw -Wtraditional" # Warns on #elif which we use often
7206 nw="$nw -Wcast-qual" # Too many warnings for now
7207 nw="$nw -Wconversion" # Too many warnings for now
7208 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7209 nw="$nw -Wsign-conversion" # Too many warnings for now
7210 nw="$nw -Woverlength-strings" # Not a problem these days
7211 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7212 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7213 nw="$nw -Wpadded" # Our structs are not padded
7214 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7215 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7216 nw="$nw -Wformat-nonliteral" # we do this a lot
7217 nw="$nw -Wvla" # warnings in gettext.h
7218 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7219 nw="$nw -Wswitch-enum" # Too many warnings for now
7220 nw="$nw -Wswitch-default" # Too many warnings for now
7221 nw="$nw -Wfloat-equal" # warns about high-quality code
7222 nw="$nw -Winline" # OK to ignore 'inline'
7223 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7224 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7225 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7226
7227 # Emacs doesn't care about shadowing; see
7228 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7229 nw="$nw -Wshadow"
7230
7231 # The following lines should be removable at some point.
7232 nw="$nw -Wstack-protector"
7233 nw="$nw -Wstrict-overflow"
7234 nw="$nw -Wsuggest-attribute=pure"
7235
7236
7237
7238 if test -n "$GCC"; then
7239
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7241 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7242 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245
7246 gl_save_CFLAGS="$CFLAGS"
7247 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250
7251 int
7252 main ()
7253 {
7254
7255 ;
7256 return 0;
7257 }
7258 _ACEOF
7259 if ac_fn_c_try_compile "$LINENO"; then :
7260 gl_cv_cc_nomfi_supported=yes
7261 else
7262 gl_cv_cc_nomfi_supported=no
7263 fi
7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 CFLAGS="$gl_save_CFLAGS"
7266 fi
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7269 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7270
7271 if test "$gl_cv_cc_nomfi_supported" = yes; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7273 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7274 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277
7278 gl_save_CFLAGS="$CFLAGS"
7279 CFLAGS="$CFLAGS -W -Werror"
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282 void f (void)
7283 {
7284 typedef struct { int a; int b; } s_t;
7285 s_t s1 = { 0, };
7286 }
7287
7288 int
7289 main ()
7290 {
7291
7292 ;
7293 return 0;
7294 }
7295 _ACEOF
7296 if ac_fn_c_try_compile "$LINENO"; then :
7297 gl_cv_cc_nomfi_needed=no
7298 else
7299 gl_cv_cc_nomfi_needed=yes
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 CFLAGS="$gl_save_CFLAGS"
7303
7304 fi
7305
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7307 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7308 fi
7309 fi
7310
7311 gl_manywarn_set=
7312 for gl_manywarn_item in \
7313 -W \
7314 -Wabi \
7315 -Waddress \
7316 -Wall \
7317 -Warray-bounds \
7318 -Wattributes \
7319 -Wbad-function-cast \
7320 -Wbuiltin-macro-redefined \
7321 -Wcast-align \
7322 -Wchar-subscripts \
7323 -Wclobbered \
7324 -Wcomment \
7325 -Wcomments \
7326 -Wcoverage-mismatch \
7327 -Wcpp \
7328 -Wdeprecated \
7329 -Wdeprecated-declarations \
7330 -Wdisabled-optimization \
7331 -Wdiv-by-zero \
7332 -Wdouble-promotion \
7333 -Wempty-body \
7334 -Wendif-labels \
7335 -Wenum-compare \
7336 -Wextra \
7337 -Wformat-contains-nul \
7338 -Wformat-extra-args \
7339 -Wformat-nonliteral \
7340 -Wformat-security \
7341 -Wformat-y2k \
7342 -Wformat-zero-length \
7343 -Wformat=2 \
7344 -Wfree-nonheap-object \
7345 -Wignored-qualifiers \
7346 -Wimplicit \
7347 -Wimplicit-function-declaration \
7348 -Wimplicit-int \
7349 -Winit-self \
7350 -Winline \
7351 -Wint-to-pointer-cast \
7352 -Winvalid-memory-model \
7353 -Winvalid-pch \
7354 -Wjump-misses-init \
7355 -Wlogical-op \
7356 -Wmain \
7357 -Wmaybe-uninitialized \
7358 -Wmissing-braces \
7359 -Wmissing-declarations \
7360 -Wmissing-field-initializers \
7361 -Wmissing-format-attribute \
7362 -Wmissing-include-dirs \
7363 -Wmissing-noreturn \
7364 -Wmissing-parameter-type \
7365 -Wmissing-prototypes \
7366 -Wmudflap \
7367 -Wmultichar \
7368 -Wnarrowing \
7369 -Wnested-externs \
7370 -Wnonnull \
7371 -Wnormalized=nfc \
7372 -Wold-style-declaration \
7373 -Wold-style-definition \
7374 -Woverflow \
7375 -Woverlength-strings \
7376 -Woverride-init \
7377 -Wpacked \
7378 -Wpacked-bitfield-compat \
7379 -Wparentheses \
7380 -Wpointer-arith \
7381 -Wpointer-sign \
7382 -Wpointer-to-int-cast \
7383 -Wpragmas \
7384 -Wreturn-type \
7385 -Wsequence-point \
7386 -Wshadow \
7387 -Wsizeof-pointer-memaccess \
7388 -Wstack-protector \
7389 -Wstrict-aliasing \
7390 -Wstrict-overflow \
7391 -Wstrict-prototypes \
7392 -Wsuggest-attribute=const \
7393 -Wsuggest-attribute=format \
7394 -Wsuggest-attribute=noreturn \
7395 -Wsuggest-attribute=pure \
7396 -Wswitch \
7397 -Wswitch-default \
7398 -Wsync-nand \
7399 -Wsystem-headers \
7400 -Wtrampolines \
7401 -Wtrigraphs \
7402 -Wtype-limits \
7403 -Wuninitialized \
7404 -Wunknown-pragmas \
7405 -Wunreachable-code \
7406 -Wunsafe-loop-optimizations \
7407 -Wunused \
7408 -Wunused-but-set-parameter \
7409 -Wunused-but-set-variable \
7410 -Wunused-function \
7411 -Wunused-label \
7412 -Wunused-local-typedefs \
7413 -Wunused-macros \
7414 -Wunused-parameter \
7415 -Wunused-result \
7416 -Wunused-value \
7417 -Wunused-variable \
7418 -Wvarargs \
7419 -Wvariadic-macros \
7420 -Wvector-operation-performance \
7421 -Wvla \
7422 -Wvolatile-register-var \
7423 -Wwrite-strings \
7424 \
7425 ; do
7426 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7427 done
7428
7429 # Disable the missing-field-initializers warning if needed
7430 if test "$gl_cv_cc_nomfi_needed" = yes; then
7431 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7432 fi
7433
7434 ws=$gl_manywarn_set
7435
7436
7437 gl_warn_set=
7438 set x $ws; shift
7439 for gl_warn_item
7440 do
7441 case " $nw " in
7442 *" $gl_warn_item "*)
7443 ;;
7444 *)
7445 gl_warn_set="$gl_warn_set $gl_warn_item"
7446 ;;
7447 esac
7448 done
7449 ws=$gl_warn_set
7450
7451 for w in $ws; do
7452 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7454 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7455 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458
7459 gl_save_compiler_FLAGS="$CFLAGS"
7460 as_fn_append CFLAGS " $w"
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463
7464 int
7465 main ()
7466 {
7467
7468 ;
7469 return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473 eval "$as_gl_Warn=yes"
7474 else
7475 eval "$as_gl_Warn=no"
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 CFLAGS="$gl_save_compiler_FLAGS"
7479
7480 fi
7481 eval ac_res=\$$as_gl_Warn
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7483 $as_echo "$ac_res" >&6; }
7484 eval as_val=\$$as_gl_Warn
7485 if test "x$as_val" = x""yes; then :
7486 as_fn_append WARN_CFLAGS " $w"
7487 fi
7488
7489
7490 done
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7492 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7493 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496
7497 gl_save_compiler_FLAGS="$CFLAGS"
7498 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7501
7502 int
7503 main ()
7504 {
7505
7506 ;
7507 return 0;
7508 }
7509 _ACEOF
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 gl_cv_warn_c__Wno_missing_field_initializers=yes
7512 else
7513 gl_cv_warn_c__Wno_missing_field_initializers=no
7514 fi
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516 CFLAGS="$gl_save_compiler_FLAGS"
7517
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7520 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7521 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7522 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7523 fi
7524
7525 # We need this one
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7527 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7528 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531
7532 gl_save_compiler_FLAGS="$CFLAGS"
7533 as_fn_append CFLAGS " -Wno-sign-compare"
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536
7537 int
7538 main ()
7539 {
7540
7541 ;
7542 return 0;
7543 }
7544 _ACEOF
7545 if ac_fn_c_try_compile "$LINENO"; then :
7546 gl_cv_warn_c__Wno_sign_compare=yes
7547 else
7548 gl_cv_warn_c__Wno_sign_compare=no
7549 fi
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 CFLAGS="$gl_save_compiler_FLAGS"
7552
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7555 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7556 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7557 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7558 fi
7559
7560 # Too many warnings for now
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7562 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7563 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566
7567 gl_save_compiler_FLAGS="$CFLAGS"
7568 as_fn_append CFLAGS " -Wno-type-limits"
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571
7572 int
7573 main ()
7574 {
7575
7576 ;
7577 return 0;
7578 }
7579 _ACEOF
7580 if ac_fn_c_try_compile "$LINENO"; then :
7581 gl_cv_warn_c__Wno_type_limits=yes
7582 else
7583 gl_cv_warn_c__Wno_type_limits=no
7584 fi
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 CFLAGS="$gl_save_compiler_FLAGS"
7587
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7590 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7591 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7592 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7593 fi
7594
7595 # Too many warnings for now
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7597 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7598 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601
7602 gl_save_compiler_FLAGS="$CFLAGS"
7603 as_fn_append CFLAGS " -Wno-switch"
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606
7607 int
7608 main ()
7609 {
7610
7611 ;
7612 return 0;
7613 }
7614 _ACEOF
7615 if ac_fn_c_try_compile "$LINENO"; then :
7616 gl_cv_warn_c__Wno_switch=yes
7617 else
7618 gl_cv_warn_c__Wno_switch=no
7619 fi
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 CFLAGS="$gl_save_compiler_FLAGS"
7622
7623 fi
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7625 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7626 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7627 as_fn_append WARN_CFLAGS " -Wno-switch"
7628 fi
7629
7630 # Too many warnings for now
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7632 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7633 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636
7637 gl_save_compiler_FLAGS="$CFLAGS"
7638 as_fn_append CFLAGS " -Wno-unused-parameter"
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641
7642 int
7643 main ()
7644 {
7645
7646 ;
7647 return 0;
7648 }
7649 _ACEOF
7650 if ac_fn_c_try_compile "$LINENO"; then :
7651 gl_cv_warn_c__Wno_unused_parameter=yes
7652 else
7653 gl_cv_warn_c__Wno_unused_parameter=no
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 CFLAGS="$gl_save_compiler_FLAGS"
7657
7658 fi
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7660 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7661 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7662 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7663 fi
7664
7665 # Too many warnings for now
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7667 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7668 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671
7672 gl_save_compiler_FLAGS="$CFLAGS"
7673 as_fn_append CFLAGS " -Wno-format-nonliteral"
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676
7677 int
7678 main ()
7679 {
7680
7681 ;
7682 return 0;
7683 }
7684 _ACEOF
7685 if ac_fn_c_try_compile "$LINENO"; then :
7686 gl_cv_warn_c__Wno_format_nonliteral=yes
7687 else
7688 gl_cv_warn_c__Wno_format_nonliteral=no
7689 fi
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 CFLAGS="$gl_save_compiler_FLAGS"
7692
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7695 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7696 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7697 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7698 fi
7699
7700
7701
7702 # In spite of excluding -Wlogical-op above, it is enabled, as of
7703 # gcc 4.5.0 20090517.
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7705 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7706 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709
7710 gl_save_compiler_FLAGS="$CFLAGS"
7711 as_fn_append CFLAGS " -Wno-logical-op"
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7714
7715 int
7716 main ()
7717 {
7718
7719 ;
7720 return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_compile "$LINENO"; then :
7724 gl_cv_warn_c__Wno_logical_op=yes
7725 else
7726 gl_cv_warn_c__Wno_logical_op=no
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 CFLAGS="$gl_save_compiler_FLAGS"
7730
7731 fi
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7733 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7734 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7735 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7736 fi
7737
7738
7739
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7741 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7742 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745
7746 gl_save_compiler_FLAGS="$CFLAGS"
7747 as_fn_append CFLAGS " -fdiagnostics-show-option"
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7750
7751 int
7752 main ()
7753 {
7754
7755 ;
7756 return 0;
7757 }
7758 _ACEOF
7759 if ac_fn_c_try_compile "$LINENO"; then :
7760 gl_cv_warn_c__fdiagnostics_show_option=yes
7761 else
7762 gl_cv_warn_c__fdiagnostics_show_option=no
7763 fi
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 CFLAGS="$gl_save_compiler_FLAGS"
7766
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7769 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7770 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7771 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7772 fi
7773
7774
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7776 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7777 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780
7781 gl_save_compiler_FLAGS="$CFLAGS"
7782 as_fn_append CFLAGS " -funit-at-a-time"
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785
7786 int
7787 main ()
7788 {
7789
7790 ;
7791 return 0;
7792 }
7793 _ACEOF
7794 if ac_fn_c_try_compile "$LINENO"; then :
7795 gl_cv_warn_c__funit_at_a_time=yes
7796 else
7797 gl_cv_warn_c__funit_at_a_time=no
7798 fi
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 CFLAGS="$gl_save_compiler_FLAGS"
7801
7802 fi
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7804 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7805 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7806 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7807 fi
7808
7809
7810
7811
7812 $as_echo "#define lint 1" >>confdefs.h
7813
7814
7815
7816 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7817
7818
7819 # We use a slightly smaller set of warning options for lib/.
7820 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7821 nw=
7822 nw="$nw -Wunused-macros"
7823
7824
7825 gl_warn_set=
7826 set x $WARN_CFLAGS; shift
7827 for gl_warn_item
7828 do
7829 case " $nw " in
7830 *" $gl_warn_item "*)
7831 ;;
7832 *)
7833 gl_warn_set="$gl_warn_set $gl_warn_item"
7834 ;;
7835 esac
7836 done
7837 GNULIB_WARN_CFLAGS=$gl_warn_set
7838
7839
7840 fi
7841
7842
7843
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7845 $as_echo_n "checking whether ln -s works... " >&6; }
7846 LN_S=$as_ln_s
7847 if test "$LN_S" = "ln -s"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7849 $as_echo "yes" >&6; }
7850 else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7852 $as_echo "no, using $LN_S" >&6; }
7853 fi
7854
7855
7856 # Extract the first word of "install-info", so it can be a program name with args.
7857 set dummy install-info; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 case $INSTALL_INFO in
7864 [\\/]* | ?:[\\/]*)
7865 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7866 ;;
7867 *)
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7870 do
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7878 fi
7879 done
7880 done
7881 IFS=$as_save_IFS
7882
7883 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7884 ;;
7885 esac
7886 fi
7887 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7888 if test -n "$INSTALL_INFO"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7890 $as_echo "$INSTALL_INFO" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7894 fi
7895
7896
7897 # Extract the first word of "gzip", so it can be a program name with args.
7898 set dummy gzip; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 case $GZIP_PROG in
7905 [\\/]* | ?:[\\/]*)
7906 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7907 ;;
7908 *)
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920 done
7921 done
7922 IFS=$as_save_IFS
7923
7924 ;;
7925 esac
7926 fi
7927 GZIP_PROG=$ac_cv_path_GZIP_PROG
7928 if test -n "$GZIP_PROG"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7930 $as_echo "$GZIP_PROG" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936
7937
7938 if test $opsys = gnu-linux; then
7939 # Extract the first word of "paxctl", so it can be a program name with args.
7940 set dummy paxctl; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 case $PAXCTL in
7947 [\\/]* | ?:[\\/]*)
7948 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7949 ;;
7950 *)
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7953 do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7958 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7961 fi
7962 done
7963 done
7964 IFS=$as_save_IFS
7965
7966 ;;
7967 esac
7968 fi
7969 PAXCTL=$ac_cv_path_PAXCTL
7970 if test -n "$PAXCTL"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7972 $as_echo "$PAXCTL" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7976 fi
7977
7978
7979 if test "X$PAXCTL" != X; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
7981 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7984
7985 int
7986 main ()
7987 {
7988
7989 ;
7990 return 0;
7991 }
7992 _ACEOF
7993 if ac_fn_c_try_link "$LINENO"; then :
7994 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7995 $as_echo "yes" >&6; }
7996 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }; PAXCTL=""; fi
7998 fi
7999 rm -f core conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
8001 fi
8002 fi
8003
8004 ## Need makeinfo >= 4.7 (?) to build the manuals.
8005 # Extract the first word of "makeinfo", so it can be a program name with args.
8006 set dummy makeinfo; ac_word=$2
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008 $as_echo_n "checking for $ac_word... " >&6; }
8009 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 case $MAKEINFO in
8013 [\\/]* | ?:[\\/]*)
8014 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8015 ;;
8016 *)
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8024 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028 done
8029 done
8030 IFS=$as_save_IFS
8031
8032 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8033 ;;
8034 esac
8035 fi
8036 MAKEINFO=$ac_cv_path_MAKEINFO
8037 if test -n "$MAKEINFO"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8039 $as_echo "$MAKEINFO" >&6; }
8040 else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044
8045
8046 if test "$MAKEINFO" != "no" && \
8047 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then
8048 MAKEINFO=no
8049 fi
8050
8051 ## Makeinfo is unusual. For a released Emacs, the manuals are
8052 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8053 ## therefore in the category of "special tools" not normally required, which
8054 ## configure does not have to check for (eg autoconf itself).
8055 ## In a Bazaar checkout on the other hand, the manuals are not included.
8056 ## So makeinfo is a requirement to build from Bazaar, and configure
8057 ## should test for it as it does for any other build requirement.
8058 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8059 ## with pre-built manuals, from a Bazaar checkout.
8060 HAVE_MAKEINFO=yes
8061
8062 if test "$MAKEINFO" = "no"; then
8063 MAKEINFO=makeinfo
8064 if test "x${with_makeinfo}" = "xno"; then
8065 HAVE_MAKEINFO=no
8066 elif test ! -e $srcdir/info/emacs; then
8067 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8068 source tree does not seem to have pre-built manuals in the \`info' directory.
8069 Either install a suitable version of makeinfo, or re-run configure
8070 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8071 fi
8072 fi
8073
8074
8075 INFO_EXT=.info
8076 INFO_OPTS=--no-split
8077
8078
8079
8080
8081 if test x$GCC = xyes; then
8082 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8083 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8084 else
8085 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8086 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8087 fi
8088
8089
8090 late_LDFLAGS=$LDFLAGS
8091 if test x$GCC = xyes; then
8092 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8093 else
8094 LDFLAGS="$LDFLAGS -znocombreloc"
8095 fi
8096
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8098 $as_echo_n "checking for -znocombreloc... " >&6; }
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8101
8102 int
8103 main ()
8104 {
8105
8106 ;
8107 return 0;
8108 }
8109 _ACEOF
8110 if ac_fn_c_try_link "$LINENO"; then :
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8112 $as_echo "yes" >&6; }
8113 else
8114 LDFLAGS=$late_LDFLAGS
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 fi
8118 rm -f core conftest.err conftest.$ac_objext \
8119 conftest$ac_exeext conftest.$ac_ext
8120
8121
8122 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8123 case "$opsys" in
8124 your-opsys-here) CANNOT_DUMP=yes ;;
8125 esac
8126
8127 test "$CANNOT_DUMP" = "yes" && \
8128
8129 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8130
8131
8132
8133
8134
8135 UNEXEC_OBJ=unexelf.o
8136 case "$opsys" in
8137 # MSDOS uses unexcoff.o
8138 # MSWindows uses unexw32.o
8139 aix4-2)
8140 UNEXEC_OBJ=unexaix.o
8141 ;;
8142 cygwin)
8143 UNEXEC_OBJ=unexcw.o
8144 ;;
8145 darwin)
8146 UNEXEC_OBJ=unexmacosx.o
8147 ;;
8148 hpux10-20 | hpux11)
8149 UNEXEC_OBJ=unexhp9k800.o
8150 ;;
8151 sol2-10)
8152 # Use the Solaris dldump() function, called from unexsol.c, to dump
8153 # emacs, instead of the generic ELF dump code found in unexelf.c.
8154 # The resulting binary has a complete symbol table, and is better
8155 # for debugging and other observability tools (debuggers, pstack, etc).
8156 #
8157 # If you encounter a problem using dldump(), please consider sending
8158 # a message to the OpenSolaris tools-linking mailing list:
8159 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8160 #
8161 # It is likely that dldump() works with older Solaris too, but this has
8162 # not been tested, so for now this change is for Solaris 10 or newer.
8163 UNEXEC_OBJ=unexsol.o
8164 ;;
8165 esac
8166
8167 LD_SWITCH_SYSTEM=
8168 case "$opsys" in
8169 freebsd)
8170 ## Let `ld' find image libs and similar things in /usr/local/lib.
8171 ## The system compiler, GCC, has apparently been modified to not
8172 ## look there, contrary to what a stock GCC would do.
8173 ### It's not our place to do this. See bug#10313#17.
8174 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8175 :
8176 ;;
8177
8178 gnu-linux)
8179 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8180 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8181 ;;
8182
8183 netbsd)
8184 ### It's not our place to do this. See bug#10313#17.
8185 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8186 :
8187 ;;
8188
8189 openbsd)
8190 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8191 ## otherwise Emacs dumps core on elf systems.
8192 LD_SWITCH_SYSTEM="-Z"
8193 ;;
8194 esac
8195
8196
8197 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8198
8199 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8200 ## which has not been defined yet. When this was handled with cpp,
8201 ## it was expanded to null when configure sourced the s/*.h file.
8202 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8203 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8204 ## (or somesuch), but because it is supposed to go at the _front_
8205 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8206 ## Compare with the gnu-linux case below, which added to the end
8207 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8208 ## LD_SWITCH_SYSTEM_TEMACS.
8209 case "$opsys" in
8210 netbsd|openbsd)
8211 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8212 esac
8213
8214
8215 C_SWITCH_MACHINE=
8216 case $canonical in
8217 alpha*)
8218 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8219 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8220
8221 fi
8222
8223 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8224 ## With ELF, make sure that all common symbols get allocated to in the
8225 ## data section. Otherwise, the dump of temacs may miss variables in
8226 ## the shared library that have been initialized. For example, with
8227 ## GNU libc, __malloc_initialized would normally be resolved to the
8228 ## shared library's .bss section, which is fatal.
8229 if test "x$GCC" = "xyes"; then
8230 C_SWITCH_MACHINE="-fno-common"
8231 else
8232 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8233 fi
8234 else
8235 UNEXEC_OBJ=unexalpha.o
8236 fi
8237 ;;
8238 esac
8239
8240
8241
8242
8243 C_SWITCH_SYSTEM=
8244 ## Some programs in src produce warnings saying certain subprograms
8245 ## are too complex and need a MAXMEM value greater than 2000 for
8246 ## additional optimization. --nils@exp-math.uni-essen.de
8247 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8248 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8249 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8250 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8251
8252
8253
8254 LIBS_SYSTEM=
8255 case "$opsys" in
8256 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8257 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8258
8259 freebsd) LIBS_SYSTEM="-lutil" ;;
8260
8261 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8262
8263 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8264
8265 ## Motif needs -lgen.
8266 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8267 esac
8268
8269
8270
8271 ### Make sure subsequent tests use flags consistent with the build flags.
8272
8273 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8274 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8275 else
8276 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8277 fi
8278
8279 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8280
8281 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8282
8283
8284
8285 LIB_MATH=-lm
8286 LIB_STANDARD=
8287 START_FILES=
8288 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8289
8290 case $opsys in
8291 cygwin )
8292 LIB_MATH=
8293 START_FILES='pre-crt0.o'
8294 ;;
8295 darwin )
8296 ## Adding -lm confuses the dynamic linker, so omit it.
8297 LIB_MATH=
8298 START_FILES='pre-crt0.o'
8299 ;;
8300 freebsd )
8301 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8302 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8303 SYSTEM_TYPE=berkeley-unix
8304 ;;
8305 gnu-linux | gnu-kfreebsd )
8306 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8307 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8308 ;;
8309 hpux10-20 | hpux11 )
8310 LIB_STANDARD=-lc
8311 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8312 ;;
8313 netbsd | openbsd )
8314 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8315 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8316 SYSTEM_TYPE=berkeley-unix
8317 ;;
8318
8319 sol2* | unixware )
8320 SYSTEM_TYPE=usg-unix-v
8321 ;;
8322
8323 esac
8324
8325
8326
8327
8328 cat >>confdefs.h <<_ACEOF
8329 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8330 _ACEOF
8331
8332
8333 crt_files=
8334
8335 for file in x $LIB_STANDARD $START_FILES; do
8336 case "$file" in
8337 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8338 esac
8339 done
8340
8341 if test "x$crt_files" != x; then
8342
8343 ## If user specified a crt-dir, use that unconditionally.
8344 crt_gcc=no
8345
8346 if test "X$CRT_DIR" = "X"; then
8347
8348 CRT_DIR=/usr/lib # default
8349
8350 case "$canonical" in
8351 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8352 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8353 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8354 ## For anything else (eg /usr/lib32), it is up the user to specify
8355 ## the location (bug#5655).
8356 ## Test for crtn.o, not just the directory, because sometimes the
8357 ## directory exists but does not have the relevant files (bug#1287).
8358 ## FIXME better to test for binary compatibility somehow.
8359 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8360 ;;
8361
8362 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8363 esac
8364
8365 case "$opsys" in
8366 hpux10-20) CRT_DIR=/lib ;;
8367 esac
8368
8369 test "x${GCC}" = xyes && crt_gcc=yes
8370
8371 fi # CRT_DIR = ""
8372
8373 crt_missing=
8374
8375 for file in $crt_files; do
8376
8377 ## If we're using gcc, try to determine it automatically by asking
8378 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8379 ## system-dependent default from above.]
8380 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8381
8382 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8383 case "$crt_file" in
8384 */*)
8385 CRT_DIR=`$as_dirname -- "$crt_file" ||
8386 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8387 X"$crt_file" : 'X\(//\)[^/]' \| \
8388 X"$crt_file" : 'X\(//\)$' \| \
8389 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8390 $as_echo X"$crt_file" |
8391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8392 s//\1/
8393 q
8394 }
8395 /^X\(\/\/\)[^/].*/{
8396 s//\1/
8397 q
8398 }
8399 /^X\(\/\/\)$/{
8400 s//\1/
8401 q
8402 }
8403 /^X\(\/\).*/{
8404 s//\1/
8405 q
8406 }
8407 s/.*/./; q'`
8408 ;;
8409 esac
8410 fi
8411
8412 crt_gcc=no
8413
8414 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8415 done # $crt_files
8416
8417 test "x$crt_missing" = x || \
8418 as_fn_error "Required file(s) not found:$crt_missing
8419 Try using the --with-crt-dir option." "$LINENO" 5
8420
8421 fi # crt_files != ""
8422
8423
8424
8425 case $opsys in
8426 netbsd | openbsd )
8427 if test -f $CRT_DIR/crti.o; then
8428
8429 test -f $CRT_DIR/crtn.o || \
8430 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8431
8432 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8433 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8434 fi
8435 ;;
8436 esac
8437
8438
8439 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8440 pre_PKG_CONFIG_LIBS=$LIBS
8441
8442 # Extract the first word of "pkg-config", so it can be a program name with args.
8443 set dummy pkg-config; ac_word=$2
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 $as_echo_n "checking for $ac_word... " >&6; }
8446 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 case $PKG_CONFIG in
8450 [\\/]* | ?:[\\/]*)
8451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8452 ;;
8453 *)
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8456 do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 break 2
8464 fi
8465 done
8466 done
8467 IFS=$as_save_IFS
8468
8469 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8470 ;;
8471 esac
8472 fi
8473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8474 if test -n "$PKG_CONFIG"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8476 $as_echo "$PKG_CONFIG" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481
8482
8483
8484
8485
8486
8487 if test "${with_sound}" != "no"; then
8488 # Sound support for GNU/Linux and the free BSDs.
8489 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8490 do :
8491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8492 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8493 eval as_val=\$$as_ac_Header
8494 if test "x$as_val" = x""yes; then :
8495 cat >>confdefs.h <<_ACEOF
8496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8497 _ACEOF
8498 have_sound_header=yes
8499 fi
8500
8501 done
8502
8503 # Emulation library used on NetBSD.
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8505 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8506 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 ac_check_lib_save_LIBS=$LIBS
8510 LIBS="-lossaudio $LIBS"
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513
8514 /* Override any GCC internal prototype to avoid an error.
8515 Use char because int might match the return type of a GCC
8516 builtin and then its argument prototype would still apply. */
8517 #ifdef __cplusplus
8518 extern "C"
8519 #endif
8520 char _oss_ioctl ();
8521 int
8522 main ()
8523 {
8524 return _oss_ioctl ();
8525 ;
8526 return 0;
8527 }
8528 _ACEOF
8529 if ac_fn_c_try_link "$LINENO"; then :
8530 ac_cv_lib_ossaudio__oss_ioctl=yes
8531 else
8532 ac_cv_lib_ossaudio__oss_ioctl=no
8533 fi
8534 rm -f core conftest.err conftest.$ac_objext \
8535 conftest$ac_exeext conftest.$ac_ext
8536 LIBS=$ac_check_lib_save_LIBS
8537 fi
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8539 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8540 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8541 LIBSOUND=-lossaudio
8542 else
8543 LIBSOUND=
8544 fi
8545
8546
8547
8548 ALSA_REQUIRED=1.0.0
8549 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8550
8551 succeeded=no
8552
8553 if test "$PKG_CONFIG" = "no" ; then
8554 HAVE_ALSA=no
8555 else
8556 PKG_CONFIG_MIN_VERSION=0.9.0
8557 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8559 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8560
8561 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8562 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8563 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8564 edit_cflags="
8565 s,///*,/,g
8566 s/^/ /
8567 s/ -I/ $isystem/g
8568 s/^ //
8569 "
8570 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8571 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8573 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8574 succeeded=yes
8575 else
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8578 ALSA_CFLAGS=""
8579 ALSA_LIBS=""
8580 ## If we have a custom action on failure, don't print errors, but
8581 ## do set a variable so people can do so. Do it in a subshell
8582 ## to capture any diagnostics in invoking pkg-config.
8583 ALSA_PKG_ERRORS=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8584
8585 fi
8586
8587
8588
8589 else
8590 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8591 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8592 fi
8593 fi
8594
8595 if test $succeeded = yes; then
8596 HAVE_ALSA=yes
8597 else
8598 HAVE_ALSA=no
8599 fi
8600
8601 if test $HAVE_ALSA = yes; then
8602 SAVE_CFLAGS="$CFLAGS"
8603 SAVE_LIBS="$LIBS"
8604 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8605 LIBS="$ALSA_LIBS $LIBS"
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8608 #include <asoundlib.h>
8609 int
8610 main ()
8611 {
8612 snd_lib_error_set_handler (0);
8613 ;
8614 return 0;
8615 }
8616 _ACEOF
8617 if ac_fn_c_try_compile "$LINENO"; then :
8618 emacs_alsa_normal=yes
8619 else
8620 emacs_alsa_normal=no
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 if test "$emacs_alsa_normal" != yes; then
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 #include <alsa/asoundlib.h>
8627 int
8628 main ()
8629 {
8630 snd_lib_error_set_handler (0);
8631 ;
8632 return 0;
8633 }
8634 _ACEOF
8635 if ac_fn_c_try_compile "$LINENO"; then :
8636 emacs_alsa_subdir=yes
8637 else
8638 emacs_alsa_subdir=no
8639 fi
8640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641 if test "$emacs_alsa_subdir" != yes; then
8642 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8643 fi
8644 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8645 fi
8646
8647 CFLAGS="$SAVE_CFLAGS"
8648 LIBS="$SAVE_LIBS"
8649 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8650 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8651
8652 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8653
8654 fi
8655
8656 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8657 case "$opsys" in
8658 gnu-linux|freebsd|netbsd)
8659
8660 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8661
8662 ;;
8663 esac
8664 fi
8665
8666
8667 fi
8668
8669
8670
8671
8672 for ac_header in $ac_header_list
8673 do :
8674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8675 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8676 "
8677 eval as_val=\$$as_ac_Header
8678 if test "x$as_val" = x""yes; then :
8679 cat >>confdefs.h <<_ACEOF
8680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8681 _ACEOF
8682
8683 fi
8684
8685 done
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8716 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 #include <sys/personality.h>
8720 int
8721 main ()
8722 {
8723 personality (PER_LINUX32)
8724 ;
8725 return 0;
8726 }
8727 _ACEOF
8728 if ac_fn_c_try_compile "$LINENO"; then :
8729 emacs_cv_personality_linux32=yes
8730 else
8731 emacs_cv_personality_linux32=no
8732 fi
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8735 $as_echo "$emacs_cv_personality_linux32" >&6; }
8736
8737 if test $emacs_cv_personality_linux32 = yes; then
8738
8739 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8740
8741 fi
8742
8743 for ac_header in term.h
8744 do :
8745 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8746 if test "x$ac_cv_header_term_h" = x""yes; then :
8747 cat >>confdefs.h <<_ACEOF
8748 #define HAVE_TERM_H 1
8749 _ACEOF
8750
8751 fi
8752
8753 done
8754
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8756 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8757 if test "${ac_cv_header_time+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8762 #include <sys/types.h>
8763 #include <sys/time.h>
8764 #include <time.h>
8765
8766 int
8767 main ()
8768 {
8769 if ((struct tm *) 0)
8770 return 0;
8771 ;
8772 return 0;
8773 }
8774 _ACEOF
8775 if ac_fn_c_try_compile "$LINENO"; then :
8776 ac_cv_header_time=yes
8777 else
8778 ac_cv_header_time=no
8779 fi
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8783 $as_echo "$ac_cv_header_time" >&6; }
8784 if test $ac_cv_header_time = yes; then
8785
8786 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8787
8788 fi
8789
8790 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8791 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8792 ac_have_decl=1
8793 else
8794 ac_have_decl=0
8795 fi
8796
8797 cat >>confdefs.h <<_ACEOF
8798 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8799 _ACEOF
8800
8801 if test $ac_cv_have_decl_sys_siglist != yes; then
8802 # For Tru64, at least:
8803 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8804 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8805 ac_have_decl=1
8806 else
8807 ac_have_decl=0
8808 fi
8809
8810 cat >>confdefs.h <<_ACEOF
8811 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8812 _ACEOF
8813
8814 if test $ac_cv_have_decl___sys_siglist = yes; then
8815
8816 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8817
8818 fi
8819 fi
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8821 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8822 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <sys/types.h>
8828 #include <sys/wait.h>
8829 #ifndef WEXITSTATUS
8830 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8831 #endif
8832 #ifndef WIFEXITED
8833 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8834 #endif
8835
8836 int
8837 main ()
8838 {
8839 int s;
8840 wait (&s);
8841 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8842 ;
8843 return 0;
8844 }
8845 _ACEOF
8846 if ac_fn_c_try_compile "$LINENO"; then :
8847 ac_cv_header_sys_wait_h=yes
8848 else
8849 ac_cv_header_sys_wait_h=no
8850 fi
8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 fi
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8854 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8855 if test $ac_cv_header_sys_wait_h = yes; then
8856
8857 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8858
8859 fi
8860
8861
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8863 $as_echo_n "checking for speed_t... " >&6; }
8864 if test "${emacs_cv_speed_t+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 #include <termios.h>
8870 int
8871 main ()
8872 {
8873 speed_t x = 1;
8874 ;
8875 return 0;
8876 }
8877 _ACEOF
8878 if ac_fn_c_try_compile "$LINENO"; then :
8879 emacs_cv_speed_t=yes
8880 else
8881 emacs_cv_speed_t=no
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8886 $as_echo "$emacs_cv_speed_t" >&6; }
8887 if test $emacs_cv_speed_t = yes; then
8888
8889 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8890
8891 fi
8892
8893
8894
8895
8896 for ac_header in net/if.h
8897 do :
8898 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8899 #if HAVE_SYS_SOCKET_H
8900 #include <sys/socket.h>
8901 #endif
8902 "
8903 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8904 cat >>confdefs.h <<_ACEOF
8905 #define HAVE_NET_IF_H 1
8906 _ACEOF
8907
8908 fi
8909
8910 done
8911
8912 for ac_header in ifaddrs.h
8913 do :
8914 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8915 #if HAVE_SYS_SOCKET_H
8916 #include <sys/socket.h>
8917 #endif
8918 "
8919 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8920 cat >>confdefs.h <<_ACEOF
8921 #define HAVE_IFADDRS_H 1
8922 _ACEOF
8923
8924 fi
8925
8926 done
8927
8928 for ac_header in net/if_dl.h
8929 do :
8930 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8931 #if HAVE_SYS_SOCKET_H
8932 #include <sys/socket.h>
8933 #endif
8934 "
8935 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_NET_IF_DL_H 1
8938 _ACEOF
8939
8940 fi
8941
8942 done
8943
8944
8945 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8946 #if HAVE_SYS_SOCKET_H
8947 #include <sys/socket.h>
8948 #endif
8949 #if HAVE_NET_IF_H
8950 #include <net/if.h>
8951 #endif
8952 "
8953 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8954
8955 cat >>confdefs.h <<_ACEOF
8956 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8957 _ACEOF
8958
8959
8960 fi
8961 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8962 #if HAVE_SYS_SOCKET_H
8963 #include <sys/socket.h>
8964 #endif
8965 #if HAVE_NET_IF_H
8966 #include <net/if.h>
8967 #endif
8968 "
8969 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8973 _ACEOF
8974
8975
8976 fi
8977 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8978 #if HAVE_SYS_SOCKET_H
8979 #include <sys/socket.h>
8980 #endif
8981 #if HAVE_NET_IF_H
8982 #include <net/if.h>
8983 #endif
8984 "
8985 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8986
8987 cat >>confdefs.h <<_ACEOF
8988 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8989 _ACEOF
8990
8991
8992 fi
8993 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8994 #if HAVE_SYS_SOCKET_H
8995 #include <sys/socket.h>
8996 #endif
8997 #if HAVE_NET_IF_H
8998 #include <net/if.h>
8999 #endif
9000 "
9001 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9002
9003 cat >>confdefs.h <<_ACEOF
9004 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9005 _ACEOF
9006
9007
9008 fi
9009 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9010 #if HAVE_SYS_SOCKET_H
9011 #include <sys/socket.h>
9012 #endif
9013 #if HAVE_NET_IF_H
9014 #include <net/if.h>
9015 #endif
9016 "
9017 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9018
9019 cat >>confdefs.h <<_ACEOF
9020 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9021 _ACEOF
9022
9023
9024 fi
9025 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9026 #if HAVE_SYS_SOCKET_H
9027 #include <sys/socket.h>
9028 #endif
9029 #if HAVE_NET_IF_H
9030 #include <net/if.h>
9031 #endif
9032 "
9033 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9034
9035 cat >>confdefs.h <<_ACEOF
9036 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9037 _ACEOF
9038
9039
9040 fi
9041
9042
9043
9044
9045 DEPFLAGS=
9046 MKDEPDIR=":"
9047 deps_frag=deps.mk
9048 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9050 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9051 HAVE_GNU_MAKE=no
9052 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9053 if test "x$testval" != x; then
9054 HAVE_GNU_MAKE=yes
9055 else
9056 ac_enable_autodepend=no
9057 fi
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9059 $as_echo "$HAVE_GNU_MAKE" >&6; }
9060 if test $HAVE_GNU_MAKE = yes; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9062 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9063 SAVE_CFLAGS="$CFLAGS"
9064 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9067
9068 int
9069 main ()
9070 {
9071
9072 ;
9073 return 0;
9074 }
9075 _ACEOF
9076 if ac_fn_c_try_compile "$LINENO"; then :
9077
9078 else
9079 ac_enable_autodepend=no
9080 fi
9081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 CFLAGS="$SAVE_CFLAGS"
9083 test -f deps.d || ac_enable_autodepend=no
9084 rm -rf deps.d
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9086 $as_echo "$ac_enable_autodepend" >&6; }
9087 fi
9088 if test $ac_enable_autodepend = yes; then
9089 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9090 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9091 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9092 deps_frag=autodeps.mk
9093 fi
9094 fi
9095 deps_frag=$srcdir/src/$deps_frag
9096
9097
9098
9099
9100
9101 lisp_frag=$srcdir/src/lisp.mk
9102
9103
9104
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9106 $as_echo_n "checking for long file names... " >&6; }
9107 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 ac_cv_sys_long_file_names=yes
9111 # Test for long file names in all the places we know might matter:
9112 # . the current directory, where building will happen
9113 # $prefix/lib where we will be installing things
9114 # $exec_prefix/lib likewise
9115 # $TMPDIR if set, where it might want to write temporary files
9116 # /tmp where it might want to write temporary files
9117 # /var/tmp likewise
9118 # /usr/tmp likewise
9119 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9120 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9121 # in the usual case where exec_prefix is '${prefix}'.
9122 case $ac_dir in #(
9123 . | /* | ?:[\\/]*) ;; #(
9124 *) continue;;
9125 esac
9126 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9127 ac_xdir=$ac_dir/cf$$
9128 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9129 ac_tf1=$ac_xdir/conftest9012345
9130 ac_tf2=$ac_xdir/conftest9012346
9131 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9132 ac_cv_sys_long_file_names=no
9133 rm -f -r "$ac_xdir" 2>/dev/null
9134 test $ac_cv_sys_long_file_names = no && break
9135 done
9136 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9138 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9139 if test $ac_cv_sys_long_file_names = yes; then
9140
9141 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9142
9143 fi
9144
9145
9146 #### Choose a window system.
9147
9148 ## We leave window_system equal to none if
9149 ## we end up building without one. Any new window system should
9150 ## set window_system to an appropriate value and add objects to
9151 ## window-system-specific substs.
9152
9153 window_system=none
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9155 $as_echo_n "checking for X... " >&6; }
9156
9157
9158 # Check whether --with-x was given.
9159 if test "${with_x+set}" = set; then :
9160 withval=$with_x;
9161 fi
9162
9163 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9164 if test "x$with_x" = xno; then
9165 # The user explicitly disabled X.
9166 have_x=disabled
9167 else
9168 case $x_includes,$x_libraries in #(
9169 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9170 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 # One or both of the vars are not set, and there is no cached value.
9174 ac_x_includes=no ac_x_libraries=no
9175 rm -f -r conftest.dir
9176 if mkdir conftest.dir; then
9177 cd conftest.dir
9178 cat >Imakefile <<'_ACEOF'
9179 incroot:
9180 @echo incroot='${INCROOT}'
9181 usrlibdir:
9182 @echo usrlibdir='${USRLIBDIR}'
9183 libdir:
9184 @echo libdir='${LIBDIR}'
9185 _ACEOF
9186 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9188 for ac_var in incroot usrlibdir libdir; do
9189 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9190 done
9191 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9192 for ac_extension in a so sl dylib la dll; do
9193 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9194 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9195 ac_im_usrlibdir=$ac_im_libdir; break
9196 fi
9197 done
9198 # Screen out bogus values from the imake configuration. They are
9199 # bogus both because they are the default anyway, and because
9200 # using them would break gcc on systems where it needs fixed includes.
9201 case $ac_im_incroot in
9202 /usr/include) ac_x_includes= ;;
9203 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9204 esac
9205 case $ac_im_usrlibdir in
9206 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9207 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9208 esac
9209 fi
9210 cd ..
9211 rm -f -r conftest.dir
9212 fi
9213
9214 # Standard set of common directories for X headers.
9215 # Check X11 before X11Rn because it is often a symlink to the current release.
9216 ac_x_header_dirs='
9217 /usr/X11/include
9218 /usr/X11R7/include
9219 /usr/X11R6/include
9220 /usr/X11R5/include
9221 /usr/X11R4/include
9222
9223 /usr/include/X11
9224 /usr/include/X11R7
9225 /usr/include/X11R6
9226 /usr/include/X11R5
9227 /usr/include/X11R4
9228
9229 /usr/local/X11/include
9230 /usr/local/X11R7/include
9231 /usr/local/X11R6/include
9232 /usr/local/X11R5/include
9233 /usr/local/X11R4/include
9234
9235 /usr/local/include/X11
9236 /usr/local/include/X11R7
9237 /usr/local/include/X11R6
9238 /usr/local/include/X11R5
9239 /usr/local/include/X11R4
9240
9241 /usr/X386/include
9242 /usr/x386/include
9243 /usr/XFree86/include/X11
9244
9245 /usr/include
9246 /usr/local/include
9247 /usr/unsupported/include
9248 /usr/athena/include
9249 /usr/local/x11r5/include
9250 /usr/lpp/Xamples/include
9251
9252 /usr/openwin/include
9253 /usr/openwin/share/include'
9254
9255 if test "$ac_x_includes" = no; then
9256 # Guess where to find include files, by looking for Xlib.h.
9257 # First, try using that file with no special directory specified.
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9260 #include <X11/Xlib.h>
9261 _ACEOF
9262 if ac_fn_c_try_cpp "$LINENO"; then :
9263 # We can compile using X headers with no special include directory.
9264 ac_x_includes=
9265 else
9266 for ac_dir in $ac_x_header_dirs; do
9267 if test -r "$ac_dir/X11/Xlib.h"; then
9268 ac_x_includes=$ac_dir
9269 break
9270 fi
9271 done
9272 fi
9273 rm -f conftest.err conftest.$ac_ext
9274 fi # $ac_x_includes = no
9275
9276 if test "$ac_x_libraries" = no; then
9277 # Check for the libraries.
9278 # See if we find them without any special options.
9279 # Don't add to $LIBS permanently.
9280 ac_save_LIBS=$LIBS
9281 LIBS="-lX11 $LIBS"
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284 #include <X11/Xlib.h>
9285 int
9286 main ()
9287 {
9288 XrmInitialize ()
9289 ;
9290 return 0;
9291 }
9292 _ACEOF
9293 if ac_fn_c_try_link "$LINENO"; then :
9294 LIBS=$ac_save_LIBS
9295 # We can link X programs with no special library path.
9296 ac_x_libraries=
9297 else
9298 LIBS=$ac_save_LIBS
9299 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9300 do
9301 # Don't even attempt the hair of trying to link an X program!
9302 for ac_extension in a so sl dylib la dll; do
9303 if test -r "$ac_dir/libX11.$ac_extension"; then
9304 ac_x_libraries=$ac_dir
9305 break 2
9306 fi
9307 done
9308 done
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext \
9311 conftest$ac_exeext conftest.$ac_ext
9312 fi # $ac_x_libraries = no
9313
9314 case $ac_x_includes,$ac_x_libraries in #(
9315 no,* | *,no | *\'*)
9316 # Didn't find X, or a directory has "'" in its name.
9317 ac_cv_have_x="have_x=no";; #(
9318 *)
9319 # Record where we found X for the cache.
9320 ac_cv_have_x="have_x=yes\
9321 ac_x_includes='$ac_x_includes'\
9322 ac_x_libraries='$ac_x_libraries'"
9323 esac
9324 fi
9325 ;; #(
9326 *) have_x=yes;;
9327 esac
9328 eval "$ac_cv_have_x"
9329 fi # $with_x != no
9330
9331 if test "$have_x" != yes; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9333 $as_echo "$have_x" >&6; }
9334 no_x=yes
9335 else
9336 # If each of the values was on the command line, it overrides each guess.
9337 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9338 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9339 # Update the cache value to reflect the command line values.
9340 ac_cv_have_x="have_x=yes\
9341 ac_x_includes='$x_includes'\
9342 ac_x_libraries='$x_libraries'"
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9344 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9345 fi
9346
9347 if test "$no_x" != yes; then
9348 window_system=x11
9349 fi
9350
9351 LD_SWITCH_X_SITE_RPATH=
9352 if test "${x_libraries}" != NONE; then
9353 if test -n "${x_libraries}"; then
9354 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9355 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9356 fi
9357 x_default_search_path=""
9358 x_search_path=${x_libraries}
9359 if test -z "${x_search_path}"; then
9360 x_search_path=/usr/lib
9361 fi
9362 for x_library in `echo ${x_search_path}: | \
9363 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9364 x_search_path="\
9365 ${x_library}/X11/%L/%T/%N%C%S:\
9366 ${x_library}/X11/%l/%T/%N%C%S:\
9367 ${x_library}/X11/%T/%N%C%S:\
9368 ${x_library}/X11/%L/%T/%N%S:\
9369 ${x_library}/X11/%l/%T/%N%S:\
9370 ${x_library}/X11/%T/%N%S"
9371 if test x"${x_default_search_path}" = x; then
9372 x_default_search_path=${x_search_path}
9373 else
9374 x_default_search_path="${x_search_path}:${x_default_search_path}"
9375 fi
9376 done
9377 fi
9378
9379
9380 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9381 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9382 fi
9383
9384 if test x"${x_includes}" = x; then
9385 bitmapdir=/usr/include/X11/bitmaps
9386 else
9387 # accumulate include directories that have X11 bitmap subdirectories
9388 bmd_acc="dummyval"
9389 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9390 if test -d "${bmd}/X11/bitmaps"; then
9391 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9392 fi
9393 if test -d "${bmd}/bitmaps"; then
9394 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9395 fi
9396 done
9397 if test ${bmd_acc} != "dummyval"; then
9398 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9399 fi
9400 fi
9401
9402 HAVE_NS=no
9403 NS_IMPL_COCOA=no
9404 NS_IMPL_GNUSTEP=no
9405 tmp_CPPFLAGS="$CPPFLAGS"
9406 tmp_CFLAGS="$CFLAGS"
9407 CPPFLAGS="$CPPFLAGS -x objective-c"
9408 CFLAGS="$CFLAGS -x objective-c"
9409 TEMACS_LDFLAGS2="\${LDFLAGS}"
9410 GNU_OBJC_CFLAGS=
9411 if test "${with_ns}" != no; then
9412 if test "${opsys}" = darwin; then
9413 NS_IMPL_COCOA=yes
9414 ns_appdir=`pwd`/nextstep/Emacs.app
9415 ns_appbindir=${ns_appdir}/Contents/MacOS
9416 ns_appresdir=${ns_appdir}/Contents/Resources
9417 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9418 elif test -f $GNUSTEP_CONFIG_FILE; then
9419 NS_IMPL_GNUSTEP=yes
9420 ns_appdir=`pwd`/nextstep/Emacs.app
9421 ns_appbindir=${ns_appdir}
9422 ns_appresdir=${ns_appdir}/Resources
9423 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9424 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9425 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9426 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9427 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9428 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9429 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9430 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9431 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9432 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9433 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9434 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9435 LIB_STANDARD=
9436 START_FILES=
9437 TEMACS_LDFLAGS2=
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9439 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9440 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9445 #include <GNUstepBase/GSConfig.h>
9446 int
9447 main ()
9448 {
9449 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9450 1;
9451 #else
9452 fail;
9453 #endif
9454 ;
9455 return 0;
9456 }
9457 _ACEOF
9458 if ac_fn_c_try_compile "$LINENO"; then :
9459 emacs_cv_objc_exceptions=yes
9460 else
9461 emacs_cv_objc_exceptions=no
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 fi
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9466 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9467 if test $emacs_cv_objc_exceptions = yes; then
9468
9469 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9470
9471 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9472 fi
9473 fi
9474
9475 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9476
9477 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9478 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9479 HAVE_NS=yes
9480 else
9481 as_fn_error "\`--with-ns' was specified, but the include
9482 files are missing or cannot be compiled." "$LINENO" 5
9483 fi
9484
9485
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9488 #include <Foundation/NSObjCRuntime.h>
9489 int
9490 main ()
9491 {
9492 NSInteger i;
9493 ;
9494 return 0;
9495 }
9496 _ACEOF
9497 if ac_fn_c_try_compile "$LINENO"; then :
9498 ns_have_nsinteger=yes
9499 else
9500 ns_have_nsinteger=no
9501 fi
9502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9503 if test $ns_have_nsinteger = yes; then
9504
9505 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9506
9507 fi
9508 fi
9509
9510
9511 INSTALL_ARCH_INDEP_EXTRA=install-etc
9512 ns_self_contained=no
9513 ns_frag=/dev/null
9514 NS_OBJ=
9515 NS_OBJC_OBJ=
9516 if test "${HAVE_NS}" = yes; then
9517 if test "$with_toolkit_scroll_bars" = "no"; then
9518 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9519 fi
9520
9521 window_system=nextstep
9522 # set up packaging dirs
9523 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9524 ns_self_contained=yes
9525 prefix=${ns_appresdir}
9526 exec_prefix=${ns_appbindir}
9527 libexecdir="\${ns_appbindir}/libexec"
9528 archlibdir="\${ns_appbindir}/libexec"
9529 docdir="\${ns_appresdir}/etc"
9530 etcdir="\${ns_appresdir}/etc"
9531 infodir="\${ns_appresdir}/info"
9532 mandir="\${ns_appresdir}/man"
9533 lispdir="\${ns_appresdir}/lisp"
9534 leimdir="\${ns_appresdir}/leim"
9535 INSTALL_ARCH_INDEP_EXTRA=
9536 fi
9537 ns_frag=$srcdir/src/ns.mk
9538 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9539 fi
9540 CFLAGS="$tmp_CFLAGS"
9541 CPPFLAGS="$tmp_CPPFLAGS"
9542
9543
9544
9545
9546
9547
9548
9549 ## $window_system is now set to the window system we will
9550 ## ultimately use.
9551
9552 term_header=
9553 HAVE_X_WINDOWS=no
9554 HAVE_X11=no
9555 USE_X_TOOLKIT=none
9556
9557 case "${window_system}" in
9558 x11 )
9559 HAVE_X_WINDOWS=yes
9560 HAVE_X11=yes
9561 term_header=xterm.h
9562 case "${with_x_toolkit}" in
9563 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9564 motif ) USE_X_TOOLKIT=MOTIF ;;
9565 gtk ) with_gtk=yes
9566 term_header=gtkutil.h
9567 USE_X_TOOLKIT=none ;;
9568 gtk2 ) with_gtk2=yes
9569 term_header=gtkutil.h
9570 USE_X_TOOLKIT=none ;;
9571 gtk3 ) with_gtk3=yes
9572 term_header=gtkutil.h
9573 USE_X_TOOLKIT=none ;;
9574 no ) USE_X_TOOLKIT=none ;;
9575 * ) USE_X_TOOLKIT=maybe ;;
9576 esac
9577 ;;
9578 nextstep )
9579 term_header=nsterm.h
9580 ;;
9581 esac
9582
9583 if test -n "${term_header}"; then
9584
9585 cat >>confdefs.h <<_ACEOF
9586 #define TERM_HEADER "${term_header}"
9587 _ACEOF
9588
9589 fi
9590
9591 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9592 # Extract the first word of "X", so it can be a program name with args.
9593 set dummy X; ac_word=$2
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 $as_echo_n "checking for $ac_word... " >&6; }
9596 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 if test -n "$HAVE_XSERVER"; then
9600 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9601 else
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 for as_dir in $PATH
9604 do
9605 IFS=$as_save_IFS
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9609 ac_cv_prog_HAVE_XSERVER="true"
9610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9611 break 2
9612 fi
9613 done
9614 done
9615 IFS=$as_save_IFS
9616
9617 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9618 fi
9619 fi
9620 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9621 if test -n "$HAVE_XSERVER"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9623 $as_echo "$HAVE_XSERVER" >&6; }
9624 else
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9627 fi
9628
9629
9630 if test "$HAVE_XSERVER" = true ||
9631 test -n "$DISPLAY" ||
9632 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9633 as_fn_error "You seem to be running X, but no X development libraries
9634 were found. You should install the relevant development files for X
9635 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9636 sure you have development files for image handling, i.e.
9637 tiff, gif, jpeg, png and xpm.
9638 If you are sure you want Emacs compiled without X window support, pass
9639 --without-x
9640 to configure." "$LINENO" 5
9641 fi
9642 fi
9643
9644 ### If we're using X11, we should use the X menu package.
9645 HAVE_MENUS=no
9646 case ${HAVE_X11} in
9647 yes ) HAVE_MENUS=yes ;;
9648 esac
9649
9650 # Does the opsystem file prohibit the use of the GNU malloc?
9651 # Assume not, until told otherwise.
9652 GNU_MALLOC=yes
9653
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9655 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9656 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h. */
9661 #include <malloc.h>
9662 static void hook (void) {}
9663 int
9664 main ()
9665 {
9666 malloc_set_state (malloc_get_state ());
9667 __after_morecore_hook = hook;
9668 __malloc_initialize_hook = hook;
9669 ;
9670 return 0;
9671 }
9672 _ACEOF
9673 if ac_fn_c_try_link "$LINENO"; then :
9674 emacs_cv_var_doug_lea_malloc=yes
9675 else
9676 emacs_cv_var_doug_lea_malloc=no
9677 fi
9678 rm -f core conftest.err conftest.$ac_objext \
9679 conftest$ac_exeext conftest.$ac_ext
9680 fi
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9682 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9683 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9684
9685
9686 system_malloc=no
9687 case "$opsys" in
9688 ## darwin ld insists on the use of malloc routines in the System framework.
9689 darwin|sol2-10) system_malloc=yes ;;
9690 esac
9691
9692 if test "${system_malloc}" = "yes"; then
9693
9694 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9695
9696 GNU_MALLOC=no
9697 GNU_MALLOC_reason="
9698 (The GNU allocators don't work with this system configuration.)"
9699 GMALLOC_OBJ=
9700 VMLIMIT_OBJ=
9701 else
9702 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9703 VMLIMIT_OBJ=vm-limit.o
9704 fi
9705
9706
9707
9708 if test "$doug_lea_malloc" = "yes" ; then
9709 if test "$GNU_MALLOC" = yes ; then
9710 GNU_MALLOC_reason="
9711 (Using Doug Lea's new malloc from the GNU C Library.)"
9712 fi
9713
9714 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9715
9716
9717 ## Use mmap directly for allocating larger buffers.
9718 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9719 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9720 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9721 case "$opsys" in
9722 gnu*) REL_ALLOC=no ;;
9723 esac
9724 fi
9725
9726 if test x"${REL_ALLOC}" = x; then
9727 REL_ALLOC=${GNU_MALLOC}
9728 fi
9729
9730 use_mmap_for_buffers=no
9731 case "$opsys" in
9732 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9733 esac
9734
9735
9736
9737
9738
9739
9740
9741
9742 for ac_func in getpagesize
9743 do :
9744 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9745 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9746 cat >>confdefs.h <<_ACEOF
9747 #define HAVE_GETPAGESIZE 1
9748 _ACEOF
9749
9750 fi
9751 done
9752
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9754 $as_echo_n "checking for working mmap... " >&6; }
9755 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 if test "$cross_compiling" = yes; then :
9759 ac_cv_func_mmap_fixed_mapped=no
9760 else
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9763 $ac_includes_default
9764 /* malloc might have been renamed as rpl_malloc. */
9765 #undef malloc
9766
9767 /* Thanks to Mike Haertel and Jim Avera for this test.
9768 Here is a matrix of mmap possibilities:
9769 mmap private not fixed
9770 mmap private fixed at somewhere currently unmapped
9771 mmap private fixed at somewhere already mapped
9772 mmap shared not fixed
9773 mmap shared fixed at somewhere currently unmapped
9774 mmap shared fixed at somewhere already mapped
9775 For private mappings, we should verify that changes cannot be read()
9776 back from the file, nor mmap's back from the file at a different
9777 address. (There have been systems where private was not correctly
9778 implemented like the infamous i386 svr4.0, and systems where the
9779 VM page cache was not coherent with the file system buffer cache
9780 like early versions of FreeBSD and possibly contemporary NetBSD.)
9781 For shared mappings, we should conversely verify that changes get
9782 propagated back to all the places they're supposed to be.
9783
9784 Grep wants private fixed already mapped.
9785 The main things grep needs to know about mmap are:
9786 * does it exist and is it safe to write into the mmap'd area
9787 * how to use it (BSD variants) */
9788
9789 #include <fcntl.h>
9790 #include <sys/mman.h>
9791
9792 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9793 char *malloc ();
9794 #endif
9795
9796 /* This mess was copied from the GNU getpagesize.h. */
9797 #ifndef HAVE_GETPAGESIZE
9798 # ifdef _SC_PAGESIZE
9799 # define getpagesize() sysconf(_SC_PAGESIZE)
9800 # else /* no _SC_PAGESIZE */
9801 # ifdef HAVE_SYS_PARAM_H
9802 # include <sys/param.h>
9803 # ifdef EXEC_PAGESIZE
9804 # define getpagesize() EXEC_PAGESIZE
9805 # else /* no EXEC_PAGESIZE */
9806 # ifdef NBPG
9807 # define getpagesize() NBPG * CLSIZE
9808 # ifndef CLSIZE
9809 # define CLSIZE 1
9810 # endif /* no CLSIZE */
9811 # else /* no NBPG */
9812 # ifdef NBPC
9813 # define getpagesize() NBPC
9814 # else /* no NBPC */
9815 # ifdef PAGESIZE
9816 # define getpagesize() PAGESIZE
9817 # endif /* PAGESIZE */
9818 # endif /* no NBPC */
9819 # endif /* no NBPG */
9820 # endif /* no EXEC_PAGESIZE */
9821 # else /* no HAVE_SYS_PARAM_H */
9822 # define getpagesize() 8192 /* punt totally */
9823 # endif /* no HAVE_SYS_PARAM_H */
9824 # endif /* no _SC_PAGESIZE */
9825
9826 #endif /* no HAVE_GETPAGESIZE */
9827
9828 int
9829 main ()
9830 {
9831 char *data, *data2, *data3;
9832 const char *cdata2;
9833 int i, pagesize;
9834 int fd, fd2;
9835
9836 pagesize = getpagesize ();
9837
9838 /* First, make a file with some known garbage in it. */
9839 data = (char *) malloc (pagesize);
9840 if (!data)
9841 return 1;
9842 for (i = 0; i < pagesize; ++i)
9843 *(data + i) = rand ();
9844 umask (0);
9845 fd = creat ("conftest.mmap", 0600);
9846 if (fd < 0)
9847 return 2;
9848 if (write (fd, data, pagesize) != pagesize)
9849 return 3;
9850 close (fd);
9851
9852 /* Next, check that the tail of a page is zero-filled. File must have
9853 non-zero length, otherwise we risk SIGBUS for entire page. */
9854 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9855 if (fd2 < 0)
9856 return 4;
9857 cdata2 = "";
9858 if (write (fd2, cdata2, 1) != 1)
9859 return 5;
9860 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9861 if (data2 == MAP_FAILED)
9862 return 6;
9863 for (i = 0; i < pagesize; ++i)
9864 if (*(data2 + i))
9865 return 7;
9866 close (fd2);
9867 if (munmap (data2, pagesize))
9868 return 8;
9869
9870 /* Next, try to mmap the file at a fixed address which already has
9871 something else allocated at it. If we can, also make sure that
9872 we see the same garbage. */
9873 fd = open ("conftest.mmap", O_RDWR);
9874 if (fd < 0)
9875 return 9;
9876 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9877 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9878 return 10;
9879 for (i = 0; i < pagesize; ++i)
9880 if (*(data + i) != *(data2 + i))
9881 return 11;
9882
9883 /* Finally, make sure that changes to the mapped area do not
9884 percolate back to the file as seen by read(). (This is a bug on
9885 some variants of i386 svr4.0.) */
9886 for (i = 0; i < pagesize; ++i)
9887 *(data2 + i) = *(data2 + i) + 1;
9888 data3 = (char *) malloc (pagesize);
9889 if (!data3)
9890 return 12;
9891 if (read (fd, data3, pagesize) != pagesize)
9892 return 13;
9893 for (i = 0; i < pagesize; ++i)
9894 if (*(data + i) != *(data3 + i))
9895 return 14;
9896 close (fd);
9897 return 0;
9898 }
9899 _ACEOF
9900 if ac_fn_c_try_run "$LINENO"; then :
9901 ac_cv_func_mmap_fixed_mapped=yes
9902 else
9903 ac_cv_func_mmap_fixed_mapped=no
9904 fi
9905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9906 conftest.$ac_objext conftest.beam conftest.$ac_ext
9907 fi
9908
9909 fi
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9911 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9912 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9913
9914 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9915
9916 fi
9917 rm -f conftest.mmap conftest.txt
9918
9919 if test $use_mmap_for_buffers = yes; then
9920
9921 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9922
9923 REL_ALLOC=no
9924 fi
9925
9926 LIBS="$LIBS_SYSTEM $LIBS"
9927
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9929 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9930 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 ac_check_lib_save_LIBS=$LIBS
9934 LIBS="-ldnet $LIBS"
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937
9938 /* Override any GCC internal prototype to avoid an error.
9939 Use char because int might match the return type of a GCC
9940 builtin and then its argument prototype would still apply. */
9941 #ifdef __cplusplus
9942 extern "C"
9943 #endif
9944 char dnet_ntoa ();
9945 int
9946 main ()
9947 {
9948 return dnet_ntoa ();
9949 ;
9950 return 0;
9951 }
9952 _ACEOF
9953 if ac_fn_c_try_link "$LINENO"; then :
9954 ac_cv_lib_dnet_dnet_ntoa=yes
9955 else
9956 ac_cv_lib_dnet_dnet_ntoa=no
9957 fi
9958 rm -f core conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960 LIBS=$ac_check_lib_save_LIBS
9961 fi
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9963 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9964 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_LIBDNET 1
9967 _ACEOF
9968
9969 LIBS="-ldnet $LIBS"
9970
9971 fi
9972
9973
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9975 $as_echo_n "checking for main in -lXbsd... " >&6; }
9976 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
9978 else
9979 ac_check_lib_save_LIBS=$LIBS
9980 LIBS="-lXbsd $LIBS"
9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h. */
9983
9984
9985 int
9986 main ()
9987 {
9988 return main ();
9989 ;
9990 return 0;
9991 }
9992 _ACEOF
9993 if ac_fn_c_try_link "$LINENO"; then :
9994 ac_cv_lib_Xbsd_main=yes
9995 else
9996 ac_cv_lib_Xbsd_main=no
9997 fi
9998 rm -f core conftest.err conftest.$ac_objext \
9999 conftest$ac_exeext conftest.$ac_ext
10000 LIBS=$ac_check_lib_save_LIBS
10001 fi
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10003 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10004 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10005 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10006 fi
10007
10008
10009 LIB_PTHREAD=
10010
10011
10012
10013 if test "$ac_cv_header_pthread_h"; then
10014 if test "$GMALLOC_OBJ" = gmalloc.o; then
10015 emacs_pthread_function=pthread_atfork
10016 else
10017 emacs_pthread_function=pthread_self
10018 fi
10019 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10021 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10022 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lpthread $LIBS"
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029
10030 /* Override any GCC internal prototype to avoid an error.
10031 Use char because int might match the return type of a GCC
10032 builtin and then its argument prototype would still apply. */
10033 #ifdef __cplusplus
10034 extern "C"
10035 #endif
10036 char $emacs_pthread_function ();
10037 int
10038 main ()
10039 {
10040 return $emacs_pthread_function ();
10041 ;
10042 return 0;
10043 }
10044 _ACEOF
10045 if ac_fn_c_try_link "$LINENO"; then :
10046 eval "$as_ac_Lib=yes"
10047 else
10048 eval "$as_ac_Lib=no"
10049 fi
10050 rm -f core conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 LIBS=$ac_check_lib_save_LIBS
10053 fi
10054 eval ac_res=\$$as_ac_Lib
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10056 $as_echo "$ac_res" >&6; }
10057 eval as_val=\$$as_ac_Lib
10058 if test "x$as_val" = x""yes; then :
10059 HAVE_PTHREAD=yes
10060 fi
10061
10062 fi
10063 if test "$HAVE_PTHREAD" = yes; then
10064 case "${canonical}" in
10065 *-hpux*) ;;
10066 *) LIB_PTHREAD="-lpthread"
10067 LIBS="$LIB_PTHREAD $LIBS" ;;
10068 esac
10069
10070 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10071
10072 fi
10073
10074
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10076 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10077 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 ac_check_lib_save_LIBS=$LIBS
10081 LIBS="-lpthreads $LIBS"
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10084
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 char cma_open ();
10092 int
10093 main ()
10094 {
10095 return cma_open ();
10096 ;
10097 return 0;
10098 }
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 ac_cv_lib_pthreads_cma_open=yes
10102 else
10103 ac_cv_lib_pthreads_cma_open=no
10104 fi
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 LIBS=$ac_check_lib_save_LIBS
10108 fi
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10110 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10111 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10112 cat >>confdefs.h <<_ACEOF
10113 #define HAVE_LIBPTHREADS 1
10114 _ACEOF
10115
10116 LIBS="-lpthreads $LIBS"
10117
10118 fi
10119
10120
10121 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10122 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10123 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10124 ## added to LIBS in configure would never contain the pthreads part,
10125 ## but the value used in Makefiles might. FIXME?
10126 ##
10127 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10128 ## be harmless on older versions of X where it happens to exist.
10129 test "$opsys" = "aix4-2" && \
10130 test $ac_cv_lib_pthreads_cma_open = yes && \
10131 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10132
10133
10134 case ${host_os} in
10135 aix*)
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10137 $as_echo_n "checking for -bbigtoc option... " >&6; }
10138 if test "${gdb_cv_bigtoc+set}" = set; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141
10142 case $GCC in
10143 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10144 *) gdb_cv_bigtoc=-bbigtoc ;;
10145 esac
10146
10147 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10150
10151 int
10152 main ()
10153 {
10154 int i;
10155 ;
10156 return 0;
10157 }
10158 _ACEOF
10159 if ac_fn_c_try_link "$LINENO"; then :
10160
10161 else
10162 gdb_cv_bigtoc=
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166
10167 fi
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10169 $as_echo "$gdb_cv_bigtoc" >&6; }
10170 ;;
10171 esac
10172
10173 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10174 # used for the tests that follow. We set them back to REAL_CFLAGS and
10175 # REAL_CPPFLAGS later on.
10176
10177 REAL_CFLAGS="$CFLAGS"
10178 REAL_CPPFLAGS="$CPPFLAGS"
10179
10180 if test "${HAVE_X11}" = "yes"; then
10181 DEFS="$C_SWITCH_X_SITE $DEFS"
10182 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10183 LIBS="-lX11 $LIBS"
10184 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10185 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10186
10187 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10188 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10189 # but it's more convenient here to set LD_RUN_PATH since this
10190 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10191 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10192 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10193 export LD_RUN_PATH
10194 fi
10195
10196 if test "${opsys}" = "gnu-linux"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10198 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10201
10202 int
10203 main ()
10204 {
10205 XOpenDisplay ("foo");
10206 ;
10207 return 0;
10208 }
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211 xgnu_linux_first_failure=no
10212 else
10213 xgnu_linux_first_failure=yes
10214 fi
10215 rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 if test "${xgnu_linux_first_failure}" = "yes"; then
10218 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10219 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10220 OLD_CPPFLAGS="$CPPFLAGS"
10221 OLD_LIBS="$LIBS"
10222 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10223 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10224 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10225 LIBS="$LIBS -b i486-linuxaout"
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228
10229 int
10230 main ()
10231 {
10232 XOpenDisplay ("foo");
10233 ;
10234 return 0;
10235 }
10236 _ACEOF
10237 if ac_fn_c_try_link "$LINENO"; then :
10238 xgnu_linux_second_failure=no
10239 else
10240 xgnu_linux_second_failure=yes
10241 fi
10242 rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 if test "${xgnu_linux_second_failure}" = "yes"; then
10245 # If we get the same failure with -b, there is no use adding -b.
10246 # So take it out. This plays safe.
10247 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10248 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10249 CPPFLAGS="$OLD_CPPFLAGS"
10250 LIBS="$OLD_LIBS"
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252 $as_echo "no" >&6; }
10253 else
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10255 $as_echo "yes" >&6; }
10256 fi
10257 else
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 $as_echo "no" >&6; }
10260 fi
10261 fi
10262
10263 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10264 # header files included from there.
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10266 $as_echo_n "checking for Xkb... " >&6; }
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10269 #include <X11/Xlib.h>
10270 #include <X11/XKBlib.h>
10271 int
10272 main ()
10273 {
10274 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10275 ;
10276 return 0;
10277 }
10278 _ACEOF
10279 if ac_fn_c_try_link "$LINENO"; then :
10280 emacs_xkb=yes
10281 else
10282 emacs_xkb=no
10283 fi
10284 rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10287 $as_echo "$emacs_xkb" >&6; }
10288 if test $emacs_xkb = yes; then
10289
10290 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10291
10292 fi
10293
10294 for ac_func in XrmSetDatabase XScreenResourceString \
10295 XScreenNumberOfScreen
10296 do :
10297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10298 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10299 eval as_val=\$$as_ac_var
10300 if test "x$as_val" = x""yes; then :
10301 cat >>confdefs.h <<_ACEOF
10302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10303 _ACEOF
10304
10305 fi
10306 done
10307
10308 fi
10309
10310 if test "${window_system}" = "x11"; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10312 $as_echo_n "checking X11 version 6... " >&6; }
10313 if test "${emacs_cv_x11_version_6+set}" = set; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10318 #include <X11/Xlib.h>
10319 int
10320 main ()
10321 {
10322 #if XlibSpecificationRelease < 6
10323 fail;
10324 #endif
10325
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 if ac_fn_c_try_link "$LINENO"; then :
10331 emacs_cv_x11_version_6=yes
10332 else
10333 emacs_cv_x11_version_6=no
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10337 fi
10338
10339 if test $emacs_cv_x11_version_6 = yes; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10341 $as_echo "6 or newer" >&6; }
10342
10343 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10344
10345
10346 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10347
10348 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10349 ## XIM support.
10350 case "$opsys" in
10351 sol2-*) : ;;
10352 *)
10353 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10354
10355 ;;
10356 esac
10357 else
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10359 $as_echo "before 6" >&6; }
10360 fi
10361 fi
10362
10363
10364 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10365 HAVE_RSVG=no
10366 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10367 if test "${with_rsvg}" != "no"; then
10368 RSVG_REQUIRED=2.11.0
10369 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10370
10371
10372 succeeded=no
10373
10374 if test "$PKG_CONFIG" = "no" ; then
10375 :
10376 else
10377 PKG_CONFIG_MIN_VERSION=0.9.0
10378 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10380 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10381
10382 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10383 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10384 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10385 edit_cflags="
10386 s,///*,/,g
10387 s/^/ /
10388 s/ -I/ $isystem/g
10389 s/^ //
10390 "
10391 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10392 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10394 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10395 succeeded=yes
10396 else
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398 $as_echo "no" >&6; }
10399 RSVG_CFLAGS=""
10400 RSVG_LIBS=""
10401 ## If we have a custom action on failure, don't print errors, but
10402 ## do set a variable so people can do so. Do it in a subshell
10403 ## to capture any diagnostics in invoking pkg-config.
10404 RSVG_PKG_ERRORS=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10405
10406 fi
10407
10408
10409
10410 else
10411 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10412 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10413 fi
10414 fi
10415
10416 if test $succeeded = yes; then
10417 HAVE_RSVG=yes
10418 else
10419 :
10420 fi
10421
10422
10423
10424
10425 if test $HAVE_RSVG = yes; then
10426
10427 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10428
10429 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10430 LIBS="$RSVG_LIBS $LIBS"
10431 fi
10432 fi
10433 fi
10434
10435 HAVE_IMAGEMAGICK=no
10436 if test "${HAVE_X11}" = "yes"; then
10437 if test "${with_imagemagick}" != "no"; then
10438 ## 6.2.8 is the earliest version known to work, but earlier versions
10439 ## might work - let us know if you find one.
10440 ## 6.0.7 does not work. See bug#7955.
10441 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10442
10443 succeeded=no
10444
10445 if test "$PKG_CONFIG" = "no" ; then
10446 :
10447 else
10448 PKG_CONFIG_MIN_VERSION=0.9.0
10449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10451 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10452
10453 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10454 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10455 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10456 edit_cflags="
10457 s,///*,/,g
10458 s/^/ /
10459 s/ -I/ $isystem/g
10460 s/^ //
10461 "
10462 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10463 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10465 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10466 succeeded=yes
10467 else
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469 $as_echo "no" >&6; }
10470 IMAGEMAGICK_CFLAGS=""
10471 IMAGEMAGICK_LIBS=""
10472 ## If we have a custom action on failure, don't print errors, but
10473 ## do set a variable so people can do so. Do it in a subshell
10474 ## to capture any diagnostics in invoking pkg-config.
10475 IMAGEMAGICK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10476
10477 fi
10478
10479
10480
10481 else
10482 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10483 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10484 fi
10485 fi
10486
10487 if test $succeeded = yes; then
10488 HAVE_IMAGEMAGICK=yes
10489 else
10490 :
10491 fi
10492
10493
10494
10495
10496 if test $HAVE_IMAGEMAGICK = yes; then
10497
10498 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10499
10500 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10501 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10502 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10503 do :
10504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10505 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10506 eval as_val=\$$as_ac_var
10507 if test "x$as_val" = x""yes; then :
10508 cat >>confdefs.h <<_ACEOF
10509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10510 _ACEOF
10511
10512 fi
10513 done
10514
10515 fi
10516 fi
10517 fi
10518
10519
10520 HAVE_GTK=no
10521 GTK_OBJ=
10522 check_gtk2=no
10523 gtk3_pkg_errors=
10524 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10525 GLIB_REQUIRED=2.28
10526 GTK_REQUIRED=3.0
10527 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10528
10529
10530 succeeded=no
10531
10532 if test "$PKG_CONFIG" = "no" ; then
10533 pkg_check_gtk=no
10534 else
10535 PKG_CONFIG_MIN_VERSION=0.9.0
10536 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10538 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10539
10540 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10541 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10542 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10543 edit_cflags="
10544 s,///*,/,g
10545 s/^/ /
10546 s/ -I/ $isystem/g
10547 s/^ //
10548 "
10549 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10550 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10552 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10553 succeeded=yes
10554 else
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10557 GTK_CFLAGS=""
10558 GTK_LIBS=""
10559 ## If we have a custom action on failure, don't print errors, but
10560 ## do set a variable so people can do so. Do it in a subshell
10561 ## to capture any diagnostics in invoking pkg-config.
10562 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10563
10564 fi
10565
10566
10567
10568 else
10569 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10570 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10571 fi
10572 fi
10573
10574 if test $succeeded = yes; then
10575 pkg_check_gtk=yes
10576 else
10577 pkg_check_gtk=no
10578 fi
10579
10580 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10581 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10582 fi
10583 if test "$pkg_check_gtk" = "yes"; then
10584
10585 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10586
10587 GTK_OBJ=emacsgtkfixed.o
10588 term_header=gtkutil.h
10589 else
10590 check_gtk2=yes
10591 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10592 fi
10593 fi
10594
10595 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10596 GLIB_REQUIRED=2.10
10597 GTK_REQUIRED=2.10
10598 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10599
10600
10601 succeeded=no
10602
10603 if test "$PKG_CONFIG" = "no" ; then
10604 pkg_check_gtk=no
10605 else
10606 PKG_CONFIG_MIN_VERSION=0.9.0
10607 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10609 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10610
10611 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10612 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10613 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10614 edit_cflags="
10615 s,///*,/,g
10616 s/^/ /
10617 s/ -I/ $isystem/g
10618 s/^ //
10619 "
10620 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10621 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10623 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10624 succeeded=yes
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10628 GTK_CFLAGS=""
10629 GTK_LIBS=""
10630 ## If we have a custom action on failure, don't print errors, but
10631 ## do set a variable so people can do so. Do it in a subshell
10632 ## to capture any diagnostics in invoking pkg-config.
10633 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10634
10635 fi
10636
10637
10638
10639 else
10640 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10641 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10642 fi
10643 fi
10644
10645 if test $succeeded = yes; then
10646 pkg_check_gtk=yes
10647 else
10648 pkg_check_gtk=no
10649 fi
10650
10651 if test "$pkg_check_gtk" = "no" &&
10652 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
10653 then
10654 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10655 fi
10656 fi
10657
10658 if test x"$pkg_check_gtk" = xyes; then
10659
10660
10661
10662 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10663 CFLAGS="$CFLAGS $GTK_CFLAGS"
10664 LIBS="$GTK_LIBS $LIBS"
10665 GTK_COMPILES=no
10666 for ac_func in gtk_main
10667 do :
10668 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10669 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10670 cat >>confdefs.h <<_ACEOF
10671 #define HAVE_GTK_MAIN 1
10672 _ACEOF
10673 GTK_COMPILES=yes
10674 fi
10675 done
10676
10677 if test "${GTK_COMPILES}" != "yes"; then
10678 if test "$USE_X_TOOLKIT" != "maybe"; then
10679 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10680 fi
10681 else
10682 HAVE_GTK=yes
10683
10684 $as_echo "#define USE_GTK 1" >>confdefs.h
10685
10686 GTK_OBJ="gtkutil.o $GTK_OBJ"
10687 USE_X_TOOLKIT=none
10688 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10689 :
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10692 closing open displays. This is no problem if you just use
10693 one display, but if you use more than one and close one of them
10694 Emacs may crash." >&5
10695 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10696 closing open displays. This is no problem if you just use
10697 one display, but if you use more than one and close one of them
10698 Emacs may crash." >&2;}
10699 sleep 3
10700 fi
10701 fi
10702
10703 fi
10704
10705
10706
10707 if test "${HAVE_GTK}" = "yes"; then
10708
10709 if test "$with_toolkit_scroll_bars" != no; then
10710 with_toolkit_scroll_bars=yes
10711 fi
10712
10713 HAVE_GTK_FILE_SELECTION=no
10714 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10715 #include <gtk/gtk.h>
10716 "
10717 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10718 HAVE_GTK_FILE_SELECTION=yes
10719 else
10720 HAVE_GTK_FILE_SELECTION=no
10721 fi
10722
10723 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10724 for ac_func in gtk_file_selection_new
10725 do :
10726 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10727 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10728 cat >>confdefs.h <<_ACEOF
10729 #define HAVE_GTK_FILE_SELECTION_NEW 1
10730 _ACEOF
10731
10732 fi
10733 done
10734
10735 fi
10736
10737
10738 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10739 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10740 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10741 gtk_orientable_set_orientation \
10742 gtk_window_set_has_resize_grip
10743 do :
10744 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10745 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10746 eval as_val=\$$as_ac_var
10747 if test "x$as_val" = x""yes; then :
10748 cat >>confdefs.h <<_ACEOF
10749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10750 _ACEOF
10751
10752 fi
10753 done
10754
10755
10756 term_header=gtkutil.h
10757 fi
10758
10759 HAVE_DBUS=no
10760 DBUS_OBJ=
10761 if test "${with_dbus}" = "yes"; then
10762
10763 succeeded=no
10764
10765 if test "$PKG_CONFIG" = "no" ; then
10766 HAVE_DBUS=no
10767 else
10768 PKG_CONFIG_MIN_VERSION=0.9.0
10769 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10771 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10772
10773 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10774 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10775 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10776 edit_cflags="
10777 s,///*,/,g
10778 s/^/ /
10779 s/ -I/ $isystem/g
10780 s/^ //
10781 "
10782 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10783 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10785 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10786 succeeded=yes
10787 else
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 $as_echo "no" >&6; }
10790 DBUS_CFLAGS=""
10791 DBUS_LIBS=""
10792 ## If we have a custom action on failure, don't print errors, but
10793 ## do set a variable so people can do so. Do it in a subshell
10794 ## to capture any diagnostics in invoking pkg-config.
10795 DBUS_PKG_ERRORS=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10796
10797 fi
10798
10799
10800
10801 else
10802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10804 fi
10805 fi
10806
10807 if test $succeeded = yes; then
10808 HAVE_DBUS=yes
10809 else
10810 HAVE_DBUS=no
10811 fi
10812
10813 if test "$HAVE_DBUS" = yes; then
10814 LIBS="$LIBS $DBUS_LIBS"
10815
10816 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10817
10818 for ac_func in dbus_watch_get_unix_fd \
10819 dbus_type_is_valid \
10820 dbus_validate_bus_name \
10821 dbus_validate_path \
10822 dbus_validate_interface \
10823 dbus_validate_member
10824 do :
10825 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10826 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10827 eval as_val=\$$as_ac_var
10828 if test "x$as_val" = x""yes; then :
10829 cat >>confdefs.h <<_ACEOF
10830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10831 _ACEOF
10832
10833 fi
10834 done
10835
10836 DBUS_OBJ=dbusbind.o
10837 fi
10838 fi
10839
10840
10841 HAVE_GSETTINGS=no
10842 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10843
10844 succeeded=no
10845
10846 if test "$PKG_CONFIG" = "no" ; then
10847 HAVE_GSETTINGS=no
10848 else
10849 PKG_CONFIG_MIN_VERSION=0.9.0
10850 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10852 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10853
10854 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10855 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10856 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10857 edit_cflags="
10858 s,///*,/,g
10859 s/^/ /
10860 s/ -I/ $isystem/g
10861 s/^ //
10862 "
10863 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10864 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10866 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10867 succeeded=yes
10868 else
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870 $as_echo "no" >&6; }
10871 GSETTINGS_CFLAGS=""
10872 GSETTINGS_LIBS=""
10873 ## If we have a custom action on failure, don't print errors, but
10874 ## do set a variable so people can do so. Do it in a subshell
10875 ## to capture any diagnostics in invoking pkg-config.
10876 GSETTINGS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
10877
10878 fi
10879
10880
10881
10882 else
10883 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10884 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10885 fi
10886 fi
10887
10888 if test $succeeded = yes; then
10889 HAVE_GSETTINGS=yes
10890 else
10891 HAVE_GSETTINGS=no
10892 fi
10893
10894 if test "$HAVE_GSETTINGS" = "yes"; then
10895
10896 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10897
10898 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
10899 SETTINGS_LIBS="$GSETTINGS_LIBS"
10900 fi
10901 fi
10902
10903 HAVE_GCONF=no
10904 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10905
10906 succeeded=no
10907
10908 if test "$PKG_CONFIG" = "no" ; then
10909 HAVE_GCONF=no
10910 else
10911 PKG_CONFIG_MIN_VERSION=0.9.0
10912 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10914 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10915
10916 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10917 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10918 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10919 edit_cflags="
10920 s,///*,/,g
10921 s/^/ /
10922 s/ -I/ $isystem/g
10923 s/^ //
10924 "
10925 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10926 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10928 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10929 succeeded=yes
10930 else
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; }
10933 GCONF_CFLAGS=""
10934 GCONF_LIBS=""
10935 ## If we have a custom action on failure, don't print errors, but
10936 ## do set a variable so people can do so. Do it in a subshell
10937 ## to capture any diagnostics in invoking pkg-config.
10938 GCONF_PKG_ERRORS=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
10939
10940 fi
10941
10942
10943
10944 else
10945 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10946 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10947 fi
10948 fi
10949
10950 if test $succeeded = yes; then
10951 HAVE_GCONF=yes
10952 else
10953 HAVE_GCONF=no
10954 fi
10955
10956 if test "$HAVE_GCONF" = yes; then
10957
10958 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10959
10960 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10961 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
10962 fi
10963 fi
10964
10965 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
10966
10967 succeeded=no
10968
10969 if test "$PKG_CONFIG" = "no" ; then
10970 HAVE_GOBJECT=no
10971 else
10972 PKG_CONFIG_MIN_VERSION=0.9.0
10973 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
10975 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
10976
10977 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
10978 GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
10979 GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
10980 edit_cflags="
10981 s,///*,/,g
10982 s/^/ /
10983 s/ -I/ $isystem/g
10984 s/^ //
10985 "
10986 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
10987 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
10989 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
10990 succeeded=yes
10991 else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10994 GOBJECT_CFLAGS=""
10995 GOBJECT_LIBS=""
10996 ## If we have a custom action on failure, don't print errors, but
10997 ## do set a variable so people can do so. Do it in a subshell
10998 ## to capture any diagnostics in invoking pkg-config.
10999 GOBJECT_PKG_ERRORS=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
11000
11001 fi
11002
11003
11004
11005 else
11006 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11007 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11008 fi
11009 fi
11010
11011 if test $succeeded = yes; then
11012 HAVE_GOBJECT=yes
11013 else
11014 HAVE_GOBJECT=no
11015 fi
11016
11017 if test "$HAVE_GOBJECT" = "yes"; then
11018 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11019 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11020 fi
11021 SAVE_CFLAGS="$CFLAGS"
11022 SAVE_LIBS="$LIBS"
11023 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11024 LIBS="$SETTINGS_LIBS $LIBS"
11025 for ac_func in g_type_init
11026 do :
11027 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11028 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11029 cat >>confdefs.h <<_ACEOF
11030 #define HAVE_G_TYPE_INIT 1
11031 _ACEOF
11032
11033 fi
11034 done
11035
11036 CFLAGS="$SAVE_CFLAGS"
11037 LIBS="$SAVE_LIBS"
11038 fi
11039
11040
11041
11042
11043 HAVE_LIBSELINUX=no
11044 LIBSELINUX_LIBS=
11045 if test "${with_selinux}" = "yes"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11047 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11048 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 ac_check_lib_save_LIBS=$LIBS
11052 LIBS="-lselinux $LIBS"
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11055
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 char lgetfilecon ();
11063 int
11064 main ()
11065 {
11066 return lgetfilecon ();
11067 ;
11068 return 0;
11069 }
11070 _ACEOF
11071 if ac_fn_c_try_link "$LINENO"; then :
11072 ac_cv_lib_selinux_lgetfilecon=yes
11073 else
11074 ac_cv_lib_selinux_lgetfilecon=no
11075 fi
11076 rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11078 LIBS=$ac_check_lib_save_LIBS
11079 fi
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11081 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11082 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11083 HAVE_LIBSELINUX=yes
11084 else
11085 HAVE_LIBSELINUX=no
11086 fi
11087
11088 if test "$HAVE_LIBSELINUX" = yes; then
11089
11090 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11091
11092 LIBSELINUX_LIBS=-lselinux
11093 fi
11094 fi
11095
11096
11097 HAVE_GNUTLS=no
11098 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11099 if test "${with_gnutls}" = "yes" ; then
11100
11101 succeeded=no
11102
11103 if test "$PKG_CONFIG" = "no" ; then
11104 HAVE_GNUTLS=no
11105 else
11106 PKG_CONFIG_MIN_VERSION=0.9.0
11107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11109 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11110
11111 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11112 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11113 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11114 edit_cflags="
11115 s,///*,/,g
11116 s/^/ /
11117 s/ -I/ $isystem/g
11118 s/^ //
11119 "
11120 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11121 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11123 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11124 succeeded=yes
11125 else
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 $as_echo "no" >&6; }
11128 LIBGNUTLS_CFLAGS=""
11129 LIBGNUTLS_LIBS=""
11130 ## If we have a custom action on failure, don't print errors, but
11131 ## do set a variable so people can do so. Do it in a subshell
11132 ## to capture any diagnostics in invoking pkg-config.
11133 LIBGNUTLS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11134
11135 fi
11136
11137
11138
11139 else
11140 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11141 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11142 fi
11143 fi
11144
11145 if test $succeeded = yes; then
11146 HAVE_GNUTLS=yes
11147 else
11148 HAVE_GNUTLS=no
11149 fi
11150
11151 if test "${HAVE_GNUTLS}" = "yes"; then
11152
11153 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11154
11155 fi
11156
11157 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11158 LIBS="$LIBGNUTLS_LIBS $LIBS"
11159 for ac_func in gnutls_certificate_set_verify_function
11160 do :
11161 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11162 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11163 cat >>confdefs.h <<_ACEOF
11164 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11165 _ACEOF
11166 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11167 fi
11168 done
11169
11170
11171 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11172
11173 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11174
11175 fi
11176 fi
11177
11178
11179
11180
11181 HAVE_XAW3D=no
11182 LUCID_LIBW=
11183 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11184 if test "$with_xaw3d" != no; then
11185 if test "${emacs_cv_xaw3d+set}" = set; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11190
11191 #include <X11/Intrinsic.h>
11192 #include <X11/Xaw3d/Simple.h>
11193 int
11194 main ()
11195 {
11196
11197 ;
11198 return 0;
11199 }
11200 _ACEOF
11201 if ac_fn_c_try_link "$LINENO"; then :
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11203 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11204 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 ac_check_lib_save_LIBS=$LIBS
11208 LIBS="-lXaw3d $LIBS"
11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h. */
11211
11212 /* Override any GCC internal prototype to avoid an error.
11213 Use char because int might match the return type of a GCC
11214 builtin and then its argument prototype would still apply. */
11215 #ifdef __cplusplus
11216 extern "C"
11217 #endif
11218 char XawScrollbarSetThumb ();
11219 int
11220 main ()
11221 {
11222 return XawScrollbarSetThumb ();
11223 ;
11224 return 0;
11225 }
11226 _ACEOF
11227 if ac_fn_c_try_link "$LINENO"; then :
11228 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11229 else
11230 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11231 fi
11232 rm -f core conftest.err conftest.$ac_objext \
11233 conftest$ac_exeext conftest.$ac_ext
11234 LIBS=$ac_check_lib_save_LIBS
11235 fi
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11237 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11238 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11239 emacs_cv_xaw3d=yes
11240 else
11241 emacs_cv_xaw3d=no
11242 fi
11243
11244 else
11245 emacs_cv_xaw3d=no
11246 fi
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11249 fi
11250
11251 else
11252 emacs_cv_xaw3d=no
11253 fi
11254 if test $emacs_cv_xaw3d = yes; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11256 $as_echo_n "checking for xaw3d... " >&6; }
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11258 $as_echo "yes; using Lucid toolkit" >&6; }
11259 USE_X_TOOLKIT=LUCID
11260 HAVE_XAW3D=yes
11261 LUCID_LIBW=-lXaw3d
11262
11263 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11264
11265 else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11267 $as_echo_n "checking for xaw3d... " >&6; }
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11271 $as_echo_n "checking for libXaw... " >&6; }
11272 if test "${emacs_cv_xaw+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277
11278 #include <X11/Intrinsic.h>
11279 #include <X11/Xaw/Simple.h>
11280 int
11281 main ()
11282 {
11283
11284 ;
11285 return 0;
11286 }
11287 _ACEOF
11288 if ac_fn_c_try_link "$LINENO"; then :
11289 emacs_cv_xaw=yes
11290 else
11291 emacs_cv_xaw=no
11292 fi
11293 rm -f core conftest.err conftest.$ac_objext \
11294 conftest$ac_exeext conftest.$ac_ext
11295 fi
11296
11297 if test $emacs_cv_xaw = yes; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11299 $as_echo "yes; using Lucid toolkit" >&6; }
11300 USE_X_TOOLKIT=LUCID
11301 LUCID_LIBW=-lXaw
11302 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11303 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11304 else
11305 as_fn_error "No X toolkit could be found.
11306 If you are sure you want Emacs compiled without an X toolkit, pass
11307 --with-x-toolkit=no
11308 to configure. Otherwise, install the development libraries for the toolkit
11309 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11310 fi
11311 fi
11312 fi
11313
11314 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11315
11316 LIBXTR6=
11317 if test "${USE_X_TOOLKIT}" != "none"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11319 $as_echo_n "checking X11 toolkit version... " >&6; }
11320 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11325 #include <X11/Intrinsic.h>
11326 int
11327 main ()
11328 {
11329 #if XtSpecificationRelease < 6
11330 fail;
11331 #endif
11332
11333 ;
11334 return 0;
11335 }
11336 _ACEOF
11337 if ac_fn_c_try_link "$LINENO"; then :
11338 emacs_cv_x11_toolkit_version_6=yes
11339 else
11340 emacs_cv_x11_toolkit_version_6=no
11341 fi
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 fi
11345
11346 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11347 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11349 $as_echo "6 or newer" >&6; }
11350
11351 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11352
11353 LIBXTR6="-lSM -lICE"
11354 case "$opsys" in
11355 ## Use libw.a along with X11R6 Xt.
11356 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11357 esac
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11360 $as_echo "before 6" >&6; }
11361 fi
11362
11363 OLDLIBS="$LIBS"
11364 if test x$HAVE_X11XTR6 = xyes; then
11365 LIBS="-lXt -lSM -lICE $LIBS"
11366 else
11367 LIBS="-lXt $LIBS"
11368 fi
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11370 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11371 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11372 $as_echo_n "(cached) " >&6
11373 else
11374 ac_check_lib_save_LIBS=$LIBS
11375 LIBS="-lXmu $LIBS"
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378
11379 /* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
11382 #ifdef __cplusplus
11383 extern "C"
11384 #endif
11385 char XmuConvertStandardSelection ();
11386 int
11387 main ()
11388 {
11389 return XmuConvertStandardSelection ();
11390 ;
11391 return 0;
11392 }
11393 _ACEOF
11394 if ac_fn_c_try_link "$LINENO"; then :
11395 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11396 else
11397 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
11401 LIBS=$ac_check_lib_save_LIBS
11402 fi
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11404 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11405 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11406 cat >>confdefs.h <<_ACEOF
11407 #define HAVE_LIBXMU 1
11408 _ACEOF
11409
11410 LIBS="-lXmu $LIBS"
11411
11412 fi
11413
11414 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11415 fi
11416
11417
11418 LIBXMU=-lXmu
11419 case $opsys in
11420 ## These systems don't supply Xmu.
11421 hpux* | aix4-2 )
11422 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11423 ;;
11424 esac
11425
11426
11427 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11428 if test "${HAVE_X11}" = "yes"; then
11429 if test "${USE_X_TOOLKIT}" != "none"; then
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11431 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11432 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11433 $as_echo_n "(cached) " >&6
11434 else
11435 ac_check_lib_save_LIBS=$LIBS
11436 LIBS="-lXext $LIBS"
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11439
11440 /* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443 #ifdef __cplusplus
11444 extern "C"
11445 #endif
11446 char XShapeQueryExtension ();
11447 int
11448 main ()
11449 {
11450 return XShapeQueryExtension ();
11451 ;
11452 return 0;
11453 }
11454 _ACEOF
11455 if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_lib_Xext_XShapeQueryExtension=yes
11457 else
11458 ac_cv_lib_Xext_XShapeQueryExtension=no
11459 fi
11460 rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11463 fi
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11465 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11466 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11467 cat >>confdefs.h <<_ACEOF
11468 #define HAVE_LIBXEXT 1
11469 _ACEOF
11470
11471 LIBS="-lXext $LIBS"
11472
11473 fi
11474
11475 fi
11476 fi
11477
11478 LIBXP=
11479 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11480 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11481 if test -d /usr/include/openmotif; then
11482 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11483 emacs_cv_openmotif=yes
11484 case "$canonical" in
11485 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11486 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11487 ;;
11488 *)
11489 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11490 esac
11491 else
11492 emacs_cv_openmotif=no
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11495 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11496 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11501 #include <Xm/Xm.h>
11502 int
11503 main ()
11504 {
11505 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11506 int x = 5;
11507 #else
11508 Motif version prior to 2.1.
11509 #endif
11510 ;
11511 return 0;
11512 }
11513 _ACEOF
11514 if ac_fn_c_try_compile "$LINENO"; then :
11515 emacs_cv_motif_version_2_1=yes
11516 else
11517 emacs_cv_motif_version_2_1=no
11518 fi
11519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520 fi
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11522 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11523 if test $emacs_cv_motif_version_2_1 = yes; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11525 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11526 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 ac_check_lib_save_LIBS=$LIBS
11530 LIBS="-lXp $LIBS"
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11533
11534 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 char XpCreateContext ();
11541 int
11542 main ()
11543 {
11544 return XpCreateContext ();
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 if ac_fn_c_try_link "$LINENO"; then :
11550 ac_cv_lib_Xp_XpCreateContext=yes
11551 else
11552 ac_cv_lib_Xp_XpCreateContext=no
11553 fi
11554 rm -f core conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11556 LIBS=$ac_check_lib_save_LIBS
11557 fi
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11559 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11560 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11561 LIBXP=-lXp
11562 fi
11563
11564 if test x$emacs_cv_openmotif = xyes; then
11565 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11566 fi
11567 else
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11569 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11570 if test "${emacs_cv_lesstif+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 # We put this in CFLAGS temporarily to precede other -I options
11574 # that might be in CFLAGS temporarily.
11575 # We put this in CPPFLAGS where it precedes the other -I options.
11576 OLD_CPPFLAGS=$CPPFLAGS
11577 OLD_CFLAGS=$CFLAGS
11578 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11579 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11583 int
11584 main ()
11585 {
11586 int x = 5;
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_compile "$LINENO"; then :
11592 emacs_cv_lesstif=yes
11593 else
11594 emacs_cv_lesstif=no
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11599 $as_echo "$emacs_cv_lesstif" >&6; }
11600 if test $emacs_cv_lesstif = yes; then
11601 # Make sure this -I option remains in CPPFLAGS after it is set
11602 # back to REAL_CPPFLAGS.
11603 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11604 # have those other -I options anyway. Ultimately, having this
11605 # directory ultimately in CPPFLAGS will be enough.
11606 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11607 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11608 else
11609 CFLAGS=$OLD_CFLAGS
11610 CPPFLAGS=$OLD_CPPFLAGS
11611 fi
11612 fi
11613 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11614 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11615
11616 else
11617 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11618 fi
11619
11620
11621 fi
11622
11623
11624 USE_TOOLKIT_SCROLL_BARS=no
11625 if test "${with_toolkit_scroll_bars}" != "no"; then
11626 if test "${USE_X_TOOLKIT}" != "none"; then
11627 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11628 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11629
11630 HAVE_XAW3D=no
11631 USE_TOOLKIT_SCROLL_BARS=yes
11632 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11633 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11634
11635 USE_TOOLKIT_SCROLL_BARS=yes
11636 fi
11637 elif test "${HAVE_GTK}" = "yes"; then
11638 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11639
11640 USE_TOOLKIT_SCROLL_BARS=yes
11641 elif test "${HAVE_NS}" = "yes"; then
11642 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11643
11644 USE_TOOLKIT_SCROLL_BARS=yes
11645 fi
11646 fi
11647
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11650
11651 #include <X11/Xlib.h>
11652 #include <X11/Xresource.h>
11653 int
11654 main ()
11655 {
11656 XIMProc callback;
11657 ;
11658 return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_c_try_compile "$LINENO"; then :
11662 HAVE_XIM=yes
11663
11664 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11665
11666 else
11667 HAVE_XIM=no
11668 fi
11669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670
11671
11672 if test "${with_xim}" != "no"; then
11673
11674 $as_echo "#define USE_XIM 1" >>confdefs.h
11675
11676 fi
11677
11678
11679 if test "${HAVE_XIM}" != "no"; then
11680 late_CFLAGS=$CFLAGS
11681 if test "$GCC" = yes; then
11682 CFLAGS="$CFLAGS --pedantic-errors"
11683 fi
11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h. */
11686
11687 #include <X11/Xlib.h>
11688 #include <X11/Xresource.h>
11689 int
11690 main ()
11691 {
11692 Display *display;
11693 XrmDatabase db;
11694 char *res_name;
11695 char *res_class;
11696 XIMProc callback;
11697 XPointer *client_data;
11698 #ifndef __GNUC__
11699 /* If we're not using GCC, it's probably not XFree86, and this is
11700 probably right, but we can't use something like --pedantic-errors. */
11701 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11702 char*, XIMProc, XPointer*);
11703 #endif
11704 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11705 client_data);
11706 ;
11707 return 0;
11708 }
11709 _ACEOF
11710 if ac_fn_c_try_compile "$LINENO"; then :
11711 emacs_cv_arg6_star=yes
11712 fi
11713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11714 if test "$emacs_cv_arg6_star" = yes; then
11715 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11716
11717 else
11718 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11719
11720 fi
11721 CFLAGS=$late_CFLAGS
11722 fi
11723
11724 ### Start of font-backend (under any platform) section.
11725 # (nothing here yet -- this is a placeholder)
11726 ### End of font-backend (under any platform) section.
11727
11728 ### Start of font-backend (under X11) section.
11729 if test "${HAVE_X11}" = "yes"; then
11730
11731 succeeded=no
11732
11733 if test "$PKG_CONFIG" = "no" ; then
11734 HAVE_FC=no
11735 else
11736 PKG_CONFIG_MIN_VERSION=0.9.0
11737 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11739 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11740
11741 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11742 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11743 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11744 edit_cflags="
11745 s,///*,/,g
11746 s/^/ /
11747 s/ -I/ $isystem/g
11748 s/^ //
11749 "
11750 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11751 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11753 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11754 succeeded=yes
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11758 FONTCONFIG_CFLAGS=""
11759 FONTCONFIG_LIBS=""
11760 ## If we have a custom action on failure, don't print errors, but
11761 ## do set a variable so people can do so. Do it in a subshell
11762 ## to capture any diagnostics in invoking pkg-config.
11763 FONTCONFIG_PKG_ERRORS=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11764
11765 fi
11766
11767
11768
11769 else
11770 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11771 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11772 fi
11773 fi
11774
11775 if test $succeeded = yes; then
11776 HAVE_FC=yes
11777 else
11778 HAVE_FC=no
11779 fi
11780
11781
11782 ## Use -lXft if available, unless `--with-xft=no'.
11783 HAVE_XFT=maybe
11784 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11785 with_xft="no";
11786 fi
11787 if test "x${with_xft}" != "xno"; then
11788
11789
11790 succeeded=no
11791
11792 if test "$PKG_CONFIG" = "no" ; then
11793 HAVE_XFT=no
11794 else
11795 PKG_CONFIG_MIN_VERSION=0.9.0
11796 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11798 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11799
11800 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11801 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11802 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11803 edit_cflags="
11804 s,///*,/,g
11805 s/^/ /
11806 s/ -I/ $isystem/g
11807 s/^ //
11808 "
11809 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11810 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11812 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11813 succeeded=yes
11814 else
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11817 XFT_CFLAGS=""
11818 XFT_LIBS=""
11819 ## If we have a custom action on failure, don't print errors, but
11820 ## do set a variable so people can do so. Do it in a subshell
11821 ## to capture any diagnostics in invoking pkg-config.
11822 XFT_PKG_ERRORS=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11823
11824 fi
11825
11826
11827
11828 else
11829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11831 fi
11832 fi
11833
11834 if test $succeeded = yes; then
11835 :
11836 else
11837 HAVE_XFT=no
11838 fi
11839
11840 ## Because xftfont.c uses XRenderQueryExtension, we also
11841 ## need to link to -lXrender.
11842 HAVE_XRENDER=no
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11844 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11845 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 ac_check_lib_save_LIBS=$LIBS
11849 LIBS="-lXrender $LIBS"
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char XRenderQueryExtension ();
11860 int
11861 main ()
11862 {
11863 return XRenderQueryExtension ();
11864 ;
11865 return 0;
11866 }
11867 _ACEOF
11868 if ac_fn_c_try_link "$LINENO"; then :
11869 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11870 else
11871 ac_cv_lib_Xrender_XRenderQueryExtension=no
11872 fi
11873 rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11875 LIBS=$ac_check_lib_save_LIBS
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11878 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11879 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11880 HAVE_XRENDER=yes
11881 fi
11882
11883 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11884 OLD_CPPFLAGS="$CPPFLAGS"
11885 OLD_CFLAGS="$CFLAGS"
11886 OLD_LIBS="$LIBS"
11887 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11888 CFLAGS="$CFLAGS $XFT_CFLAGS"
11889 XFT_LIBS="-lXrender $XFT_LIBS"
11890 LIBS="$XFT_LIBS $LIBS"
11891 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11892 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11894 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11895 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-lXft $XFT_LIBS $LIBS"
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902
11903 /* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char XftFontOpen ();
11910 int
11911 main ()
11912 {
11913 return XftFontOpen ();
11914 ;
11915 return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919 ac_cv_lib_Xft_XftFontOpen=yes
11920 else
11921 ac_cv_lib_Xft_XftFontOpen=no
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11928 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11929 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11930 HAVE_XFT=yes
11931 fi
11932
11933 fi
11934
11935
11936
11937 if test "${HAVE_XFT}" = "yes"; then
11938
11939 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11940
11941
11942 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11943 else
11944 CPPFLAGS="$OLD_CPPFLAGS"
11945 CFLAGS="$OLD_CFLAGS"
11946 LIBS="$OLD_LIBS"
11947 fi # "${HAVE_XFT}" = "yes"
11948 fi # "$HAVE_XFT" != no
11949 fi # "x${with_xft}" != "xno"
11950
11951 ## We used to allow building with FreeType and without Xft.
11952 ## However, the ftx font backend driver is not in good shape.
11953 if test "$HAVE_XFT" != "yes"; then
11954 HAVE_XFT=no
11955 HAVE_FREETYPE=no
11956 else
11957
11958 succeeded=no
11959
11960 if test "$PKG_CONFIG" = "no" ; then
11961 HAVE_FREETYPE=no
11962 else
11963 PKG_CONFIG_MIN_VERSION=0.9.0
11964 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11966 $as_echo_n "checking for freetype2... " >&6; }
11967
11968 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11969 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11970 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11971 edit_cflags="
11972 s,///*,/,g
11973 s/^/ /
11974 s/ -I/ $isystem/g
11975 s/^ //
11976 "
11977 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11978 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11980 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11981 succeeded=yes
11982 else
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11985 FREETYPE_CFLAGS=""
11986 FREETYPE_LIBS=""
11987 ## If we have a custom action on failure, don't print errors, but
11988 ## do set a variable so people can do so. Do it in a subshell
11989 ## to capture any diagnostics in invoking pkg-config.
11990 FREETYPE_PKG_ERRORS=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
11991
11992 fi
11993
11994
11995
11996 else
11997 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11998 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11999 fi
12000 fi
12001
12002 if test $succeeded = yes; then
12003 HAVE_FREETYPE=yes
12004 else
12005 HAVE_FREETYPE=no
12006 fi
12007
12008
12009 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12010 fi
12011
12012 HAVE_LIBOTF=no
12013 if test "${HAVE_FREETYPE}" = "yes"; then
12014
12015 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12016
12017 if test "${with_libotf}" != "no"; then
12018
12019 succeeded=no
12020
12021 if test "$PKG_CONFIG" = "no" ; then
12022 HAVE_LIBOTF=no
12023 else
12024 PKG_CONFIG_MIN_VERSION=0.9.0
12025 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12027 $as_echo_n "checking for libotf... " >&6; }
12028
12029 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12030 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12031 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12032 edit_cflags="
12033 s,///*,/,g
12034 s/^/ /
12035 s/ -I/ $isystem/g
12036 s/^ //
12037 "
12038 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12039 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12041 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12042 succeeded=yes
12043 else
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 $as_echo "no" >&6; }
12046 LIBOTF_CFLAGS=""
12047 LIBOTF_LIBS=""
12048 ## If we have a custom action on failure, don't print errors, but
12049 ## do set a variable so people can do so. Do it in a subshell
12050 ## to capture any diagnostics in invoking pkg-config.
12051 LIBOTF_PKG_ERRORS=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12052
12053 fi
12054
12055
12056
12057 else
12058 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12059 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12060 fi
12061 fi
12062
12063 if test $succeeded = yes; then
12064 HAVE_LIBOTF=yes
12065 else
12066 HAVE_LIBOTF=no
12067 fi
12068
12069 if test "$HAVE_LIBOTF" = "yes"; then
12070
12071 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12072
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12074 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12075 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 ac_check_lib_save_LIBS=$LIBS
12079 LIBS="-lotf $LIBS"
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082
12083 /* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 char OTF_get_variation_glyphs ();
12090 int
12091 main ()
12092 {
12093 return OTF_get_variation_glyphs ();
12094 ;
12095 return 0;
12096 }
12097 _ACEOF
12098 if ac_fn_c_try_link "$LINENO"; then :
12099 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12100 else
12101 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12106 fi
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12108 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12109 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12110 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12111 else
12112 HAVE_OTF_GET_VARIATION_GLYPHS=no
12113 fi
12114
12115 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12116
12117 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12118
12119 fi
12120 fi
12121 fi
12122 fi
12123
12124 HAVE_M17N_FLT=no
12125 if test "${HAVE_LIBOTF}" = yes; then
12126 if test "${with_m17n_flt}" != "no"; then
12127
12128 succeeded=no
12129
12130 if test "$PKG_CONFIG" = "no" ; then
12131 HAVE_M17N_FLT=no
12132 else
12133 PKG_CONFIG_MIN_VERSION=0.9.0
12134 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12136 $as_echo_n "checking for m17n-flt... " >&6; }
12137
12138 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12139 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12140 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12141 edit_cflags="
12142 s,///*,/,g
12143 s/^/ /
12144 s/ -I/ $isystem/g
12145 s/^ //
12146 "
12147 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12148 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12150 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12151 succeeded=yes
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 M17N_FLT_CFLAGS=""
12156 M17N_FLT_LIBS=""
12157 ## If we have a custom action on failure, don't print errors, but
12158 ## do set a variable so people can do so. Do it in a subshell
12159 ## to capture any diagnostics in invoking pkg-config.
12160 M17N_FLT_PKG_ERRORS=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12161
12162 fi
12163
12164
12165
12166 else
12167 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12168 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12169 fi
12170 fi
12171
12172 if test $succeeded = yes; then
12173 HAVE_M17N_FLT=yes
12174 else
12175 HAVE_M17N_FLT=no
12176 fi
12177
12178 if test "$HAVE_M17N_FLT" = "yes"; then
12179
12180 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12181
12182 fi
12183 fi
12184 fi
12185 else
12186 HAVE_XFT=no
12187 HAVE_FREETYPE=no
12188 HAVE_LIBOTF=no
12189 HAVE_M17N_FLT=no
12190 fi
12191
12192 ### End of font-backend (under X11) section.
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203 ### Use -lXpm if available, unless `--with-xpm=no'.
12204 HAVE_XPM=no
12205 LIBXPM=
12206 if test "${HAVE_X11}" = "yes"; then
12207 if test "${with_xpm}" != "no"; then
12208 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12209 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12211 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12212 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12213 $as_echo_n "(cached) " >&6
12214 else
12215 ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-lXpm -lX11 $LIBS"
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h. */
12219
12220 /* Override any GCC internal prototype to avoid an error.
12221 Use char because int might match the return type of a GCC
12222 builtin and then its argument prototype would still apply. */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 char XpmReadFileToPixmap ();
12227 int
12228 main ()
12229 {
12230 return XpmReadFileToPixmap ();
12231 ;
12232 return 0;
12233 }
12234 _ACEOF
12235 if ac_fn_c_try_link "$LINENO"; then :
12236 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12237 else
12238 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12239 fi
12240 rm -f core conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12243 fi
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12245 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12246 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12247 HAVE_XPM=yes
12248 fi
12249
12250 fi
12251
12252
12253 if test "${HAVE_XPM}" = "yes"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12255 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258 #include "X11/xpm.h"
12259 #ifndef XpmReturnAllocPixels
12260 no_return_alloc_pixels
12261 #endif
12262
12263 _ACEOF
12264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12265 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12266 HAVE_XPM=no
12267 else
12268 HAVE_XPM=yes
12269 fi
12270 rm -f conftest*
12271
12272
12273 if test "${HAVE_XPM}" = "yes"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12275 $as_echo "yes" >&6; }
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279 fi
12280 fi
12281 fi
12282
12283 if test "${HAVE_XPM}" = "yes"; then
12284
12285 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12286
12287 LIBXPM=-lXpm
12288 fi
12289 fi
12290
12291
12292 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12293 HAVE_JPEG=no
12294 LIBJPEG=
12295 if test "${HAVE_X11}" = "yes"; then
12296 if test "${with_jpeg}" != "no"; then
12297 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12298 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12300 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12301 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12302 $as_echo_n "(cached) " >&6
12303 else
12304 ac_check_lib_save_LIBS=$LIBS
12305 LIBS="-ljpeg $LIBS"
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308
12309 /* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12312 #ifdef __cplusplus
12313 extern "C"
12314 #endif
12315 char jpeg_destroy_compress ();
12316 int
12317 main ()
12318 {
12319 return jpeg_destroy_compress ();
12320 ;
12321 return 0;
12322 }
12323 _ACEOF
12324 if ac_fn_c_try_link "$LINENO"; then :
12325 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12326 else
12327 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12328 fi
12329 rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331 LIBS=$ac_check_lib_save_LIBS
12332 fi
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12334 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12335 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12336 HAVE_JPEG=yes
12337 fi
12338
12339 fi
12340
12341
12342 fi
12343
12344 if test "${HAVE_JPEG}" = "yes"; then
12345 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12346
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349 #include <jpeglib.h>
12350 version=JPEG_LIB_VERSION
12351
12352 _ACEOF
12353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12354 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12355 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12356
12357 else
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12359 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12360 HAVE_JPEG=no
12361 fi
12362 rm -f conftest*
12363
12364 fi
12365 if test "${HAVE_JPEG}" = "yes"; then
12366 LIBJPEG=-ljpeg
12367 fi
12368 fi
12369
12370
12371 ### Use -lpng if available, unless `--with-png=no'.
12372 HAVE_PNG=no
12373 LIBPNG=
12374 if test "${HAVE_X11}" = "yes"; then
12375 if test "${with_png}" != "no"; then
12376 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12377 # in /usr/include/libpng.
12378 for ac_header in png.h libpng/png.h
12379 do :
12380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12381 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12382 eval as_val=\$$as_ac_Header
12383 if test "x$as_val" = x""yes; then :
12384 cat >>confdefs.h <<_ACEOF
12385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12386 _ACEOF
12387 break
12388 fi
12389
12390 done
12391
12392 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12394 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12395 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 ac_check_lib_save_LIBS=$LIBS
12399 LIBS="-lpng -lz -lm $LIBS"
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12402
12403 /* Override any GCC internal prototype to avoid an error.
12404 Use char because int might match the return type of a GCC
12405 builtin and then its argument prototype would still apply. */
12406 #ifdef __cplusplus
12407 extern "C"
12408 #endif
12409 char png_get_channels ();
12410 int
12411 main ()
12412 {
12413 return png_get_channels ();
12414 ;
12415 return 0;
12416 }
12417 _ACEOF
12418 if ac_fn_c_try_link "$LINENO"; then :
12419 ac_cv_lib_png_png_get_channels=yes
12420 else
12421 ac_cv_lib_png_png_get_channels=no
12422 fi
12423 rm -f core conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12428 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12429 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12430 HAVE_PNG=yes
12431 fi
12432
12433 fi
12434 fi
12435
12436 if test "${HAVE_PNG}" = "yes"; then
12437
12438 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12439
12440 LIBPNG="-lpng -lz -lm"
12441
12442 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12443 # include <libpng/png.h>
12444 #else
12445 # include <png.h>
12446 #endif
12447
12448 "
12449 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12450
12451 else
12452
12453 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12454
12455 fi
12456
12457 fi
12458 fi
12459
12460
12461 ### Use -ltiff if available, unless `--with-tiff=no'.
12462 HAVE_TIFF=no
12463 LIBTIFF=
12464 if test "${HAVE_X11}" = "yes"; then
12465 if test "${with_tiff}" != "no"; then
12466 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12467 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12468 tifflibs="-lz -lm"
12469 # At least one tiff package requires the jpeg library.
12470 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12472 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12473 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 ac_check_lib_save_LIBS=$LIBS
12477 LIBS="-ltiff $tifflibs $LIBS"
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480
12481 /* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
12484 #ifdef __cplusplus
12485 extern "C"
12486 #endif
12487 char TIFFGetVersion ();
12488 int
12489 main ()
12490 {
12491 return TIFFGetVersion ();
12492 ;
12493 return 0;
12494 }
12495 _ACEOF
12496 if ac_fn_c_try_link "$LINENO"; then :
12497 ac_cv_lib_tiff_TIFFGetVersion=yes
12498 else
12499 ac_cv_lib_tiff_TIFFGetVersion=no
12500 fi
12501 rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 LIBS=$ac_check_lib_save_LIBS
12504 fi
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12506 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12507 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12508 HAVE_TIFF=yes
12509 fi
12510
12511 fi
12512
12513
12514 fi
12515
12516 if test "${HAVE_TIFF}" = "yes"; then
12517
12518 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12519
12520 LIBTIFF=-ltiff
12521 fi
12522 fi
12523
12524
12525 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12526 HAVE_GIF=no
12527 LIBGIF=
12528 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12529 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12530 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12531 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12532 # Earlier versions can crash Emacs.
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12534 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12535 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 ac_check_lib_save_LIBS=$LIBS
12539 LIBS="-lgif $LIBS"
12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12542
12543 /* Override any GCC internal prototype to avoid an error.
12544 Use char because int might match the return type of a GCC
12545 builtin and then its argument prototype would still apply. */
12546 #ifdef __cplusplus
12547 extern "C"
12548 #endif
12549 char EGifPutExtensionLast ();
12550 int
12551 main ()
12552 {
12553 return EGifPutExtensionLast ();
12554 ;
12555 return 0;
12556 }
12557 _ACEOF
12558 if ac_fn_c_try_link "$LINENO"; then :
12559 ac_cv_lib_gif_EGifPutExtensionLast=yes
12560 else
12561 ac_cv_lib_gif_EGifPutExtensionLast=no
12562 fi
12563 rm -f core conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_lib_save_LIBS
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12568 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12569 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12570 HAVE_GIF=yes
12571 else
12572 HAVE_GIF=maybe
12573 fi
12574
12575 fi
12576
12577
12578
12579 if test "$HAVE_GIF" = yes; then
12580 LIBGIF=-lgif
12581 elif test "$HAVE_GIF" = maybe; then
12582 # If gif_lib.h but no libgif, try libungif.
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12584 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12585 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588 ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-lungif $LIBS"
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12592
12593 /* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 char EGifPutExtensionLast ();
12600 int
12601 main ()
12602 {
12603 return EGifPutExtensionLast ();
12604 ;
12605 return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_link "$LINENO"; then :
12609 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12610 else
12611 ac_cv_lib_ungif_EGifPutExtensionLast=no
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12616 fi
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12618 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12619 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12620 HAVE_GIF=yes
12621 else
12622 HAVE_GIF=no
12623 fi
12624
12625 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12626 fi
12627
12628 if test "${HAVE_GIF}" = "yes"; then
12629
12630 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12631
12632 fi
12633 fi
12634
12635
12636 if test "${HAVE_X11}" = "yes"; then
12637 MISSING=""
12638 WITH_NO=""
12639 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12640 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12641 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12642 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12643 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12644 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12645 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12646 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12647 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12648 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12649
12650 if test "X${MISSING}" != X; then
12651 as_fn_error "The following required libraries were not found:
12652 $MISSING
12653 Maybe some development libraries/packages are missing?
12654 If you don't want to link with them give
12655 $WITH_NO
12656 as options to configure" "$LINENO" 5
12657 fi
12658 fi
12659
12660 ### Use -lgpm if available, unless `--with-gpm=no'.
12661 HAVE_GPM=no
12662 LIBGPM=
12663 if test "${with_gpm}" != "no"; then
12664 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12665 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12667 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12668 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12671 ac_check_lib_save_LIBS=$LIBS
12672 LIBS="-lgpm $LIBS"
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12675
12676 /* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
12679 #ifdef __cplusplus
12680 extern "C"
12681 #endif
12682 char Gpm_Open ();
12683 int
12684 main ()
12685 {
12686 return Gpm_Open ();
12687 ;
12688 return 0;
12689 }
12690 _ACEOF
12691 if ac_fn_c_try_link "$LINENO"; then :
12692 ac_cv_lib_gpm_Gpm_Open=yes
12693 else
12694 ac_cv_lib_gpm_Gpm_Open=no
12695 fi
12696 rm -f core conftest.err conftest.$ac_objext \
12697 conftest$ac_exeext conftest.$ac_ext
12698 LIBS=$ac_check_lib_save_LIBS
12699 fi
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12701 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12702 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12703 HAVE_GPM=yes
12704 fi
12705
12706 fi
12707
12708
12709
12710 if test "${HAVE_GPM}" = "yes"; then
12711
12712 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12713
12714 LIBGPM=-lgpm
12715 fi
12716 fi
12717
12718
12719
12720
12721
12722
12723 GNUSTEP_CFLAGS=
12724 ### Use NeXTstep API to implement GUI.
12725 if test "${HAVE_NS}" = "yes"; then
12726
12727 $as_echo "#define HAVE_NS 1" >>confdefs.h
12728
12729 if test "${NS_IMPL_COCOA}" = "yes"; then
12730
12731 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12732
12733 fi
12734 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12735
12736 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12737
12738 # See also .m.o rule in Makefile.in */
12739 # FIXME: are all these flags really needed? Document here why. */
12740 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12741 ## Extra CFLAGS applied to src/*.m files.
12742 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12743 fi
12744 # We also have mouse menus.
12745 HAVE_MENUS=yes
12746 OTHER_FILES=ns-app
12747 fi
12748
12749
12750 ### Use session management (-lSM -lICE) if available
12751 HAVE_X_SM=no
12752 LIBXSM=
12753 if test "${HAVE_X11}" = "yes"; then
12754 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12755 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12757 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12758 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 ac_check_lib_save_LIBS=$LIBS
12762 LIBS="-lSM -lICE $LIBS"
12763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h. */
12765
12766 /* Override any GCC internal prototype to avoid an error.
12767 Use char because int might match the return type of a GCC
12768 builtin and then its argument prototype would still apply. */
12769 #ifdef __cplusplus
12770 extern "C"
12771 #endif
12772 char SmcOpenConnection ();
12773 int
12774 main ()
12775 {
12776 return SmcOpenConnection ();
12777 ;
12778 return 0;
12779 }
12780 _ACEOF
12781 if ac_fn_c_try_link "$LINENO"; then :
12782 ac_cv_lib_SM_SmcOpenConnection=yes
12783 else
12784 ac_cv_lib_SM_SmcOpenConnection=no
12785 fi
12786 rm -f core conftest.err conftest.$ac_objext \
12787 conftest$ac_exeext conftest.$ac_ext
12788 LIBS=$ac_check_lib_save_LIBS
12789 fi
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12791 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12792 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12793 HAVE_X_SM=yes
12794 fi
12795
12796 fi
12797
12798
12799
12800 if test "${HAVE_X_SM}" = "yes"; then
12801
12802 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12803
12804 LIBXSM="-lSM -lICE"
12805 case "$LIBS" in
12806 *-lSM*) ;;
12807 *) LIBS="$LIBXSM $LIBS" ;;
12808 esac
12809 fi
12810 fi
12811
12812
12813 ### Use libxml (-lxml2) if available
12814 HAVE_LIBXML2=no
12815 if test "${with_xml2}" != "no"; then
12816 ### I'm not sure what the version number should be, so I just guessed.
12817
12818 succeeded=no
12819
12820 if test "$PKG_CONFIG" = "no" ; then
12821 HAVE_LIBXML2=no
12822 else
12823 PKG_CONFIG_MIN_VERSION=0.9.0
12824 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12826 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12827
12828 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12829 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12830 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12831 edit_cflags="
12832 s,///*,/,g
12833 s/^/ /
12834 s/ -I/ $isystem/g
12835 s/^ //
12836 "
12837 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12838 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12840 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12841 succeeded=yes
12842 else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845 LIBXML2_CFLAGS=""
12846 LIBXML2_LIBS=""
12847 ## If we have a custom action on failure, don't print errors, but
12848 ## do set a variable so people can do so. Do it in a subshell
12849 ## to capture any diagnostics in invoking pkg-config.
12850 LIBXML2_PKG_ERRORS=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
12851
12852 fi
12853
12854
12855
12856 else
12857 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12858 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12859 fi
12860 fi
12861
12862 if test $succeeded = yes; then
12863 HAVE_LIBXML2=yes
12864 else
12865 HAVE_LIBXML2=no
12866 fi
12867
12868 if test "${HAVE_LIBXML2}" = "yes"; then
12869 LIBS="$LIBXML2_LIBS $LIBS"
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12871 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12872 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 ac_check_lib_save_LIBS=$LIBS
12876 LIBS="-lxml2 $LIBS"
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879
12880 /* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */
12883 #ifdef __cplusplus
12884 extern "C"
12885 #endif
12886 char htmlReadMemory ();
12887 int
12888 main ()
12889 {
12890 return htmlReadMemory ();
12891 ;
12892 return 0;
12893 }
12894 _ACEOF
12895 if ac_fn_c_try_link "$LINENO"; then :
12896 ac_cv_lib_xml2_htmlReadMemory=yes
12897 else
12898 ac_cv_lib_xml2_htmlReadMemory=no
12899 fi
12900 rm -f core conftest.err conftest.$ac_objext \
12901 conftest$ac_exeext conftest.$ac_ext
12902 LIBS=$ac_check_lib_save_LIBS
12903 fi
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12905 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12906 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12907 HAVE_LIBXML2=yes
12908 else
12909 HAVE_LIBXML2=no
12910 fi
12911
12912 if test "${HAVE_LIBXML2}" = "yes"; then
12913
12914 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12915
12916 else
12917 LIBXML2_LIBS=""
12918 LIBXML2_CFLAGS=""
12919 fi
12920 fi
12921 fi
12922
12923
12924
12925 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12927 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12928 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12933 #include <netdb.h>
12934 int
12935 main ()
12936 {
12937 return h_errno;
12938 ;
12939 return 0;
12940 }
12941 _ACEOF
12942 if ac_fn_c_try_link "$LINENO"; then :
12943 emacs_cv_netdb_declares_h_errno=yes
12944 else
12945 emacs_cv_netdb_declares_h_errno=no
12946 fi
12947 rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext conftest.$ac_ext
12949 fi
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12951 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12952 if test $emacs_cv_netdb_declares_h_errno = yes; then
12953
12954 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12955
12956 fi
12957
12958 # sqrt and other floating-point functions such as fmod and frexp
12959 # are found in -lm on most systems.
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12961 $as_echo_n "checking for sqrt in -lm... " >&6; }
12962 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12964 else
12965 ac_check_lib_save_LIBS=$LIBS
12966 LIBS="-lm $LIBS"
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969
12970 /* Override any GCC internal prototype to avoid an error.
12971 Use char because int might match the return type of a GCC
12972 builtin and then its argument prototype would still apply. */
12973 #ifdef __cplusplus
12974 extern "C"
12975 #endif
12976 char sqrt ();
12977 int
12978 main ()
12979 {
12980 return sqrt ();
12981 ;
12982 return 0;
12983 }
12984 _ACEOF
12985 if ac_fn_c_try_link "$LINENO"; then :
12986 ac_cv_lib_m_sqrt=yes
12987 else
12988 ac_cv_lib_m_sqrt=no
12989 fi
12990 rm -f core conftest.err conftest.$ac_objext \
12991 conftest$ac_exeext conftest.$ac_ext
12992 LIBS=$ac_check_lib_save_LIBS
12993 fi
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12995 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12996 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12997 cat >>confdefs.h <<_ACEOF
12998 #define HAVE_LIBM 1
12999 _ACEOF
13000
13001 LIBS="-lm $LIBS"
13002
13003 fi
13004
13005
13006 # Check for mail-locking functions in a "mail" library. Probably this should
13007 # have the same check as for liblockfile below.
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13009 $as_echo_n "checking for maillock in -lmail... " >&6; }
13010 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 ac_check_lib_save_LIBS=$LIBS
13014 LIBS="-lmail $LIBS"
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13017
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13021 #ifdef __cplusplus
13022 extern "C"
13023 #endif
13024 char maillock ();
13025 int
13026 main ()
13027 {
13028 return maillock ();
13029 ;
13030 return 0;
13031 }
13032 _ACEOF
13033 if ac_fn_c_try_link "$LINENO"; then :
13034 ac_cv_lib_mail_maillock=yes
13035 else
13036 ac_cv_lib_mail_maillock=no
13037 fi
13038 rm -f core conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040 LIBS=$ac_check_lib_save_LIBS
13041 fi
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13043 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13044 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13045 have_mail=yes
13046 else
13047 have_mail=no
13048 fi
13049
13050 if test $have_mail = yes; then
13051 LIBS_MAIL=-lmail
13052 LIBS="$LIBS_MAIL $LIBS"
13053
13054 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13055
13056 else
13057 LIBS_MAIL=
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13060 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13061 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 ac_check_lib_save_LIBS=$LIBS
13065 LIBS="-llockfile $LIBS"
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13068
13069 /* Override any GCC internal prototype to avoid an error.
13070 Use char because int might match the return type of a GCC
13071 builtin and then its argument prototype would still apply. */
13072 #ifdef __cplusplus
13073 extern "C"
13074 #endif
13075 char maillock ();
13076 int
13077 main ()
13078 {
13079 return maillock ();
13080 ;
13081 return 0;
13082 }
13083 _ACEOF
13084 if ac_fn_c_try_link "$LINENO"; then :
13085 ac_cv_lib_lockfile_maillock=yes
13086 else
13087 ac_cv_lib_lockfile_maillock=no
13088 fi
13089 rm -f core conftest.err conftest.$ac_objext \
13090 conftest$ac_exeext conftest.$ac_ext
13091 LIBS=$ac_check_lib_save_LIBS
13092 fi
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13094 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13095 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13096 have_lockfile=yes
13097 else
13098 have_lockfile=no
13099 fi
13100
13101 if test $have_lockfile = yes; then
13102 LIBS_MAIL=-llockfile
13103 LIBS="$LIBS_MAIL $LIBS"
13104
13105 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13106
13107 else
13108 # If we have the shared liblockfile, assume we must use it for mail
13109 # locking (e.g. Debian). If we couldn't link against liblockfile
13110 # (no liblockfile.a installed), ensure that we don't need to.
13111 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13112 set dummy liblockfile.so; ac_word=$2
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114 $as_echo_n "checking for $ac_word... " >&6; }
13115 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13116 $as_echo_n "(cached) " >&6
13117 else
13118 if test -n "$liblockfile"; then
13119 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13120 else
13121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13123 for as_dir in $as_dummy
13124 do
13125 IFS=$as_save_IFS
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13129 ac_cv_prog_liblockfile="yes"
13130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 break 2
13132 fi
13133 done
13134 done
13135 IFS=$as_save_IFS
13136
13137 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13138 fi
13139 fi
13140 liblockfile=$ac_cv_prog_liblockfile
13141 if test -n "$liblockfile"; then
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13143 $as_echo "$liblockfile" >&6; }
13144 else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146 $as_echo "no" >&6; }
13147 fi
13148
13149
13150 if test $ac_cv_prog_liblockfile = yes; then
13151 as_fn_error "Shared liblockfile found but can't link against it.
13152 This probably means that movemail could lose mail.
13153 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13154 fi
13155 fi
13156
13157
13158
13159
13160
13161 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13162 ## interlock access to the mail spool. The alternative is a lock file named
13163 ## /usr/spool/mail/$USER.lock.
13164 mail_lock=no
13165 case "$opsys" in
13166 aix4-2) mail_lock="lockf" ;;
13167
13168 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13169
13170 ## On GNU/Linux systems, both methods are used by various mail programs.
13171 ## I assume most people are using newer mailers that have heard of flock.
13172 ## Change this if you need to.
13173 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13174 ## configure gets the right answers, and that means *NOT* using flock.
13175 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13176 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13177 ## Debian maintainer hasn't provided a clean fix for Emacs.
13178 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13179 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13180 ## correct logic. -- fx
13181 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13182 ## liblockfile is a Free Software replacement for libmail, used on
13183 ## Debian systems and elsewhere. -rfr.
13184 gnu-*)
13185 mail_lock="flock"
13186 if test $have_mail = yes || test $have_lockfile = yes; then
13187 test $ac_cv_header_maillock_h = yes && mail_lock=no
13188 fi
13189 ;;
13190 esac
13191
13192 BLESSMAIL_TARGET=
13193 case "$mail_lock" in
13194 flock)
13195 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13196 ;;
13197
13198 lockf)
13199 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13200 ;;
13201
13202 *) BLESSMAIL_TARGET="need-blessmail" ;;
13203 esac
13204
13205
13206
13207 for ac_func in gethostname \
13208 closedir getrusage get_current_dir_name \
13209 lrand48 setsid \
13210 fpathconf select euidaccess getpagesize setlocale \
13211 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13212 __fpending strsignal setitimer \
13213 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13214 gai_strerror mkstemp getline getdelim fsync sync \
13215 difftime posix_memalign \
13216 getpwent endpwent getgrent endgrent \
13217 touchlock \
13218 cfmakeraw cfsetspeed 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 eval as_val=\$$as_ac_var
13223 if test "x$as_val" = x""yes; then :
13224 cat >>confdefs.h <<_ACEOF
13225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13226 _ACEOF
13227
13228 fi
13229 done
13230
13231
13232 if test $opsys = unixware; then
13233
13234 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13235
13236 else
13237 for ac_func in getwd
13238 do :
13239 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
13240 if test "x$ac_cv_func_getwd" = x""yes; then :
13241 cat >>confdefs.h <<_ACEOF
13242 #define HAVE_GETWD 1
13243 _ACEOF
13244
13245 fi
13246 done
13247
13248 fi
13249
13250 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13251 ## has a broken `rint' in some library versions including math library
13252 ## version number A.09.05.
13253 ## You can fix the math library by installing patch number PHSS_4630.
13254 ## But we can fix it more reliably for Emacs by just not using rint.
13255 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13256 case $opsys in
13257 hpux*) : ;;
13258 *) for ac_func in random rint
13259 do :
13260 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13261 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13262 eval as_val=\$$as_ac_var
13263 if test "x$as_val" = x""yes; then :
13264 cat >>confdefs.h <<_ACEOF
13265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13266 _ACEOF
13267
13268 fi
13269 done
13270 ;;
13271 esac
13272
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13274 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13275 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280
13281 int
13282 main ()
13283 {
13284 __builtin_unwind_init ();
13285 ;
13286 return 0;
13287 }
13288 _ACEOF
13289 if ac_fn_c_try_link "$LINENO"; then :
13290 emacs_cv_func___builtin_unwind_init=yes
13291 else
13292 emacs_cv_func___builtin_unwind_init=no
13293 fi
13294 rm -f core conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13298 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13299 if test $emacs_cv_func___builtin_unwind_init = yes; then
13300
13301 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13302
13303 fi
13304
13305
13306
13307
13308
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13310 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13311 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13312 $as_echo_n "(cached) " >&6
13313 else
13314 while :; do
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317 #include <sys/types.h> /* for off_t */
13318 #include <stdio.h>
13319 int
13320 main ()
13321 {
13322 int (*fp) (FILE *, off_t, int) = fseeko;
13323 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13324 ;
13325 return 0;
13326 }
13327 _ACEOF
13328 if ac_fn_c_try_link "$LINENO"; then :
13329 ac_cv_sys_largefile_source=no; break
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext \
13332 conftest$ac_exeext conftest.$ac_ext
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335 #define _LARGEFILE_SOURCE 1
13336 #include <sys/types.h> /* for off_t */
13337 #include <stdio.h>
13338 int
13339 main ()
13340 {
13341 int (*fp) (FILE *, off_t, int) = fseeko;
13342 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13343 ;
13344 return 0;
13345 }
13346 _ACEOF
13347 if ac_fn_c_try_link "$LINENO"; then :
13348 ac_cv_sys_largefile_source=1; break
13349 fi
13350 rm -f core conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext conftest.$ac_ext
13352 ac_cv_sys_largefile_source=unknown
13353 break
13354 done
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13357 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13358 case $ac_cv_sys_largefile_source in #(
13359 no | unknown) ;;
13360 *)
13361 cat >>confdefs.h <<_ACEOF
13362 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13363 _ACEOF
13364 ;;
13365 esac
13366 rm -rf conftest*
13367
13368 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13369 # in glibc 2.1.3, but that breaks too many other things.
13370 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13371 if test $ac_cv_sys_largefile_source != unknown; then
13372
13373 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13374
13375 fi
13376
13377
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13379 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13380 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13381 $as_echo_n "(cached) " >&6
13382 else
13383 # Use it with a single arg.
13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385 /* end confdefs.h. */
13386 $ac_includes_default
13387 int
13388 main ()
13389 {
13390 getpgrp (0);
13391 ;
13392 return 0;
13393 }
13394 _ACEOF
13395 if ac_fn_c_try_compile "$LINENO"; then :
13396 ac_cv_func_getpgrp_void=no
13397 else
13398 ac_cv_func_getpgrp_void=yes
13399 fi
13400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13401
13402 fi
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13404 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13405 if test $ac_cv_func_getpgrp_void = yes; then
13406
13407 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13408
13409 fi
13410
13411
13412 # UNIX98 PTYs.
13413 for ac_func in grantpt
13414 do :
13415 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13416 if test "x$ac_cv_func_grantpt" = x""yes; then :
13417 cat >>confdefs.h <<_ACEOF
13418 #define HAVE_GRANTPT 1
13419 _ACEOF
13420
13421 fi
13422 done
13423
13424
13425 # PTY-related GNU extensions.
13426 for ac_func in getpt posix_openpt
13427 do :
13428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13430 eval as_val=\$$as_ac_var
13431 if test "x$as_val" = x""yes; then :
13432 cat >>confdefs.h <<_ACEOF
13433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13434 _ACEOF
13435
13436 fi
13437 done
13438
13439
13440 # Check this now, so that we will NOT find the above functions in ncurses.
13441 # That is because we have not set up to link ncurses in lib-src.
13442 # It's better to believe a function is not available
13443 # than to expect to find it in ncurses.
13444 # Also we need tputs and friends to be able to build at all.
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13446 $as_echo_n "checking for library containing tputs... " >&6; }
13447 # Run a test program that contains a call to tputs, a call that is
13448 # never executed. This tests whether a pre-'main' dynamic linker
13449 # works with the library. It's too much trouble to actually call
13450 # tputs in the test program, due to portability hassles. When
13451 # cross-compiling, assume the test program will run if it links.
13452
13453 # Maybe curses should be tried earlier?
13454 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13455 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13456 OLIBS=$LIBS
13457 if test -z "$tputs_library"; then
13458 LIBS_TERMCAP=
13459 msg='none required'
13460 else
13461 LIBS_TERMCAP=-l$tputs_library
13462 msg=$LIBS_TERMCAP
13463 LIBS="$LIBS_TERMCAP $LIBS"
13464 fi
13465 if test "$cross_compiling" = yes; then :
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468
13469 extern void tputs (const char *, int, int (*)(int));
13470 int main (int argc, char **argv)
13471 {
13472 if (argc == 10000)
13473 tputs (argv[0], 0, 0);
13474 return 0;
13475 }
13476
13477 _ACEOF
13478 if ac_fn_c_try_link "$LINENO"; then :
13479
13480 else
13481 msg=no
13482 fi
13483 rm -f core conftest.err conftest.$ac_objext \
13484 conftest$ac_exeext conftest.$ac_ext
13485 else
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488
13489 extern void tputs (const char *, int, int (*)(int));
13490 int main (int argc, char **argv)
13491 {
13492 if (argc == 10000)
13493 tputs (argv[0], 0, 0);
13494 return 0;
13495 }
13496
13497 _ACEOF
13498 if ac_fn_c_try_run "$LINENO"; then :
13499
13500 else
13501 msg=no
13502 fi
13503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13504 conftest.$ac_objext conftest.beam conftest.$ac_ext
13505 fi
13506
13507 LIBS=$OLIBS
13508 if test "X$msg" != Xno; then
13509 break
13510 fi
13511 done
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13513 $as_echo "$msg" >&6; }
13514 if test "X$msg" = Xno; then
13515 as_fn_error "The required function \`tputs' was not found in any library.
13516 The following libraries were tried (in order):
13517 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13518 Please try installing whichever of these libraries is most appropriate
13519 for your system, together with its header files.
13520 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13521 fi
13522
13523 ## Use termcap instead of terminfo?
13524 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13525 TERMINFO=yes
13526 ## FIXME? In the cases below where we unconditionally set
13527 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13528 ## if that was found above to have tputs.
13529 ## Should we use the gnu* logic everywhere?
13530 case "$opsys" in
13531 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13532 ## The ncurses library has been moved out of the System framework in
13533 ## Mac OS X 10.2. So if configure detects it, set the command-line
13534 ## option to use it.
13535 darwin) LIBS_TERMCAP="-lncurses" ;;
13536
13537 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13538
13539 freebsd)
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13541 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13542 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13547 #include <osreldate.h>
13548 int
13549 main ()
13550 {
13551 #if __FreeBSD_version < 400000
13552 fail;
13553 #endif
13554
13555 ;
13556 return 0;
13557 }
13558 _ACEOF
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 emacs_cv_freebsd_terminfo=yes
13561 else
13562 emacs_cv_freebsd_terminfo=no
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 fi
13567
13568
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13570 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13571
13572 if test $emacs_cv_freebsd_terminfo = yes; then
13573 LIBS_TERMCAP="-lncurses"
13574 else
13575 TERMINFO=no
13576 LIBS_TERMCAP="-ltermcap"
13577 fi
13578 ;;
13579
13580 netbsd)
13581 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13582 TERMINFO=no
13583 LIBS_TERMCAP="-ltermcap"
13584 fi
13585 ;;
13586
13587 openbsd) LIBS_TERMCAP="-lncurses" ;;
13588
13589 ## hpux: Make sure we get select from libc rather than from libcurses
13590 ## because libcurses on HPUX 10.10 has a broken version of select.
13591 ## We used to use -lc -lcurses, but this may be cleaner.
13592 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13593 # set that way, now it uses the default). Isn't this a contradiction?
13594 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13595
13596 esac
13597
13598 TERMCAP_OBJ=tparam.o
13599 if test $TERMINFO = yes; then
13600
13601 $as_echo "#define TERMINFO 1" >>confdefs.h
13602
13603 TERMCAP_OBJ=terminfo.o
13604 fi
13605
13606
13607
13608
13609 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13610 # On Darwin, res_init appears not to be useful: see bug#562 and
13611 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13612 resolv=no
13613
13614 if test $opsys != darwin; then
13615
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13618 #include <netinet/in.h>
13619 #include <arpa/nameser.h>
13620 #include <resolv.h>
13621 int
13622 main ()
13623 {
13624 return res_init();
13625 ;
13626 return 0;
13627 }
13628 _ACEOF
13629 if ac_fn_c_try_link "$LINENO"; then :
13630 have_res_init=yes
13631 else
13632 have_res_init=no
13633 fi
13634 rm -f core conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13636 if test "$have_res_init" = no; then
13637 OLIBS="$LIBS"
13638 LIBS="$LIBS -lresolv"
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13640 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13643 #include <netinet/in.h>
13644 #include <arpa/nameser.h>
13645 #include <resolv.h>
13646 int
13647 main ()
13648 {
13649 return res_init();
13650 ;
13651 return 0;
13652 }
13653 _ACEOF
13654 if ac_fn_c_try_link "$LINENO"; then :
13655 have_res_init=yes
13656 else
13657 have_res_init=no
13658 fi
13659 rm -f core conftest.err conftest.$ac_objext \
13660 conftest$ac_exeext conftest.$ac_ext
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13662 $as_echo "$have_res_init" >&6; }
13663 if test "$have_res_init" = yes ; then
13664 resolv=yes
13665 fi
13666 LIBS="$OLIBS"
13667 fi
13668
13669 if test "$have_res_init" = yes; then
13670
13671 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13672
13673 fi
13674 fi
13675 # Do we need the Hesiod library to provide the support routines?
13676 LIBHESIOD=
13677 if test "$with_hesiod" != no ; then
13678 # Don't set $LIBS here -- see comments above. FIXME which comments?
13679 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13680 if test "x$ac_cv_func_res_send" = x""yes; then :
13681
13682 else
13683 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13684 if test "x$ac_cv_func___res_send" = x""yes; then :
13685
13686 else
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13688 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13689 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 ac_check_lib_save_LIBS=$LIBS
13693 LIBS="-lresolv $LIBS"
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13696
13697 /* Override any GCC internal prototype to avoid an error.
13698 Use char because int might match the return type of a GCC
13699 builtin and then its argument prototype would still apply. */
13700 #ifdef __cplusplus
13701 extern "C"
13702 #endif
13703 char res_send ();
13704 int
13705 main ()
13706 {
13707 return res_send ();
13708 ;
13709 return 0;
13710 }
13711 _ACEOF
13712 if ac_fn_c_try_link "$LINENO"; then :
13713 ac_cv_lib_resolv_res_send=yes
13714 else
13715 ac_cv_lib_resolv_res_send=no
13716 fi
13717 rm -f core conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13720 fi
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13722 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13723 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13724 resolv=yes
13725 else
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13727 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13728 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 ac_check_lib_save_LIBS=$LIBS
13732 LIBS="-lresolv $LIBS"
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735
13736 /* Override any GCC internal prototype to avoid an error.
13737 Use char because int might match the return type of a GCC
13738 builtin and then its argument prototype would still apply. */
13739 #ifdef __cplusplus
13740 extern "C"
13741 #endif
13742 char __res_send ();
13743 int
13744 main ()
13745 {
13746 return __res_send ();
13747 ;
13748 return 0;
13749 }
13750 _ACEOF
13751 if ac_fn_c_try_link "$LINENO"; then :
13752 ac_cv_lib_resolv___res_send=yes
13753 else
13754 ac_cv_lib_resolv___res_send=no
13755 fi
13756 rm -f core conftest.err conftest.$ac_objext \
13757 conftest$ac_exeext conftest.$ac_ext
13758 LIBS=$ac_check_lib_save_LIBS
13759 fi
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13761 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13762 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13763 resolv=yes
13764 fi
13765
13766 fi
13767
13768 fi
13769
13770 fi
13771
13772 if test "$resolv" = yes ; then
13773 RESOLVLIB=-lresolv
13774 else
13775 RESOLVLIB=
13776 fi
13777 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13778 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13779
13780 else
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13782 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13783 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 ac_check_lib_save_LIBS=$LIBS
13787 LIBS="-lhesiod $RESOLVLIB $LIBS"
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790
13791 /* Override any GCC internal prototype to avoid an error.
13792 Use char because int might match the return type of a GCC
13793 builtin and then its argument prototype would still apply. */
13794 #ifdef __cplusplus
13795 extern "C"
13796 #endif
13797 char hes_getmailhost ();
13798 int
13799 main ()
13800 {
13801 return hes_getmailhost ();
13802 ;
13803 return 0;
13804 }
13805 _ACEOF
13806 if ac_fn_c_try_link "$LINENO"; then :
13807 ac_cv_lib_hesiod_hes_getmailhost=yes
13808 else
13809 ac_cv_lib_hesiod_hes_getmailhost=no
13810 fi
13811 rm -f core conftest.err conftest.$ac_objext \
13812 conftest$ac_exeext conftest.$ac_ext
13813 LIBS=$ac_check_lib_save_LIBS
13814 fi
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13816 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13817 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13818 hesiod=yes
13819 else
13820 :
13821 fi
13822
13823 fi
13824
13825
13826 if test x"$hesiod" = xyes; then
13827
13828 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13829
13830 LIBHESIOD=-lhesiod
13831 fi
13832 fi
13833
13834
13835 # Do we need libresolv (due to res_init or Hesiod)?
13836 if test "$resolv" = yes && test $opsys != darwin; then
13837
13838 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13839
13840 LIBRESOLV=-lresolv
13841 else
13842 LIBRESOLV=
13843 fi
13844
13845
13846 # These tell us which Kerberos-related libraries to use.
13847 COM_ERRLIB=
13848 CRYPTOLIB=
13849 KRB5LIB=
13850 DESLIB=
13851 KRB4LIB=
13852
13853 if test "${with_kerberos}" != no; then
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13855 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13856 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13857 $as_echo_n "(cached) " >&6
13858 else
13859 ac_check_lib_save_LIBS=$LIBS
13860 LIBS="-lcom_err $LIBS"
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863
13864 /* Override any GCC internal prototype to avoid an error.
13865 Use char because int might match the return type of a GCC
13866 builtin and then its argument prototype would still apply. */
13867 #ifdef __cplusplus
13868 extern "C"
13869 #endif
13870 char com_err ();
13871 int
13872 main ()
13873 {
13874 return com_err ();
13875 ;
13876 return 0;
13877 }
13878 _ACEOF
13879 if ac_fn_c_try_link "$LINENO"; then :
13880 ac_cv_lib_com_err_com_err=yes
13881 else
13882 ac_cv_lib_com_err_com_err=no
13883 fi
13884 rm -f core conftest.err conftest.$ac_objext \
13885 conftest$ac_exeext conftest.$ac_ext
13886 LIBS=$ac_check_lib_save_LIBS
13887 fi
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13889 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13890 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13891 have_com_err=yes
13892 else
13893 have_com_err=no
13894 fi
13895
13896 if test $have_com_err = yes; then
13897 COM_ERRLIB=-lcom_err
13898 LIBS="$COM_ERRLIB $LIBS"
13899
13900 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13901
13902 fi
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13904 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13905 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13907 else
13908 ac_check_lib_save_LIBS=$LIBS
13909 LIBS="-lcrypto $LIBS"
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13912
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 char mit_des_cbc_encrypt ();
13920 int
13921 main ()
13922 {
13923 return mit_des_cbc_encrypt ();
13924 ;
13925 return 0;
13926 }
13927 _ACEOF
13928 if ac_fn_c_try_link "$LINENO"; then :
13929 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13930 else
13931 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13932 fi
13933 rm -f core conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext conftest.$ac_ext
13935 LIBS=$ac_check_lib_save_LIBS
13936 fi
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13938 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13939 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13940 have_crypto=yes
13941 else
13942 have_crypto=no
13943 fi
13944
13945 if test $have_crypto = yes; then
13946 CRYPTOLIB=-lcrypto
13947 LIBS="$CRYPTOLIB $LIBS"
13948
13949 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13950
13951 fi
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13953 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13954 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13955 $as_echo_n "(cached) " >&6
13956 else
13957 ac_check_lib_save_LIBS=$LIBS
13958 LIBS="-lk5crypto $LIBS"
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13961
13962 /* Override any GCC internal prototype to avoid an error.
13963 Use char because int might match the return type of a GCC
13964 builtin and then its argument prototype would still apply. */
13965 #ifdef __cplusplus
13966 extern "C"
13967 #endif
13968 char mit_des_cbc_encrypt ();
13969 int
13970 main ()
13971 {
13972 return mit_des_cbc_encrypt ();
13973 ;
13974 return 0;
13975 }
13976 _ACEOF
13977 if ac_fn_c_try_link "$LINENO"; then :
13978 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13979 else
13980 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13981 fi
13982 rm -f core conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
13984 LIBS=$ac_check_lib_save_LIBS
13985 fi
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13987 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13988 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13989 have_k5crypto=yes
13990 else
13991 have_k5crypto=no
13992 fi
13993
13994 if test $have_k5crypto = yes; then
13995 CRYPTOLIB=-lk5crypto
13996 LIBS="$CRYPTOLIB $LIBS"
13997
13998 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13999
14000 fi
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14002 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14003 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-lkrb5 $LIBS"
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14010
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14014 #ifdef __cplusplus
14015 extern "C"
14016 #endif
14017 char krb5_init_context ();
14018 int
14019 main ()
14020 {
14021 return krb5_init_context ();
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_link "$LINENO"; then :
14027 ac_cv_lib_krb5_krb5_init_context=yes
14028 else
14029 ac_cv_lib_krb5_krb5_init_context=no
14030 fi
14031 rm -f core conftest.err conftest.$ac_objext \
14032 conftest$ac_exeext conftest.$ac_ext
14033 LIBS=$ac_check_lib_save_LIBS
14034 fi
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14036 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14037 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14038 have_krb5=yes
14039 else
14040 have_krb5=no
14041 fi
14042
14043 if test $have_krb5=yes; then
14044 KRB5LIB=-lkrb5
14045 LIBS="$KRB5LIB $LIBS"
14046
14047 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14048
14049 fi
14050 if test "${with_kerberos5}" = no; then
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14052 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14053 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 ac_check_lib_save_LIBS=$LIBS
14057 LIBS="-ldes425 $LIBS"
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14060
14061 /* Override any GCC internal prototype to avoid an error.
14062 Use char because int might match the return type of a GCC
14063 builtin and then its argument prototype would still apply. */
14064 #ifdef __cplusplus
14065 extern "C"
14066 #endif
14067 char des_cbc_encrypt ();
14068 int
14069 main ()
14070 {
14071 return des_cbc_encrypt ();
14072 ;
14073 return 0;
14074 }
14075 _ACEOF
14076 if ac_fn_c_try_link "$LINENO"; then :
14077 ac_cv_lib_des425_des_cbc_encrypt=yes
14078 else
14079 ac_cv_lib_des425_des_cbc_encrypt=no
14080 fi
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083 LIBS=$ac_check_lib_save_LIBS
14084 fi
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14086 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14087 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14088 have_des425=yes
14089 else
14090 have_des425=no
14091 fi
14092
14093 if test $have_des425 = yes; then
14094 DESLIB=-ldes425
14095 LIBS="$DESLIB $LIBS"
14096
14097 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14098
14099 else
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14101 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14102 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 ac_check_lib_save_LIBS=$LIBS
14106 LIBS="-ldes $LIBS"
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109
14110 /* Override any GCC internal prototype to avoid an error.
14111 Use char because int might match the return type of a GCC
14112 builtin and then its argument prototype would still apply. */
14113 #ifdef __cplusplus
14114 extern "C"
14115 #endif
14116 char des_cbc_encrypt ();
14117 int
14118 main ()
14119 {
14120 return des_cbc_encrypt ();
14121 ;
14122 return 0;
14123 }
14124 _ACEOF
14125 if ac_fn_c_try_link "$LINENO"; then :
14126 ac_cv_lib_des_des_cbc_encrypt=yes
14127 else
14128 ac_cv_lib_des_des_cbc_encrypt=no
14129 fi
14130 rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132 LIBS=$ac_check_lib_save_LIBS
14133 fi
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14135 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14136 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14137 have_des=yes
14138 else
14139 have_des=no
14140 fi
14141
14142 if test $have_des = yes; then
14143 DESLIB=-ldes
14144 LIBS="$DESLIB $LIBS"
14145
14146 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14147
14148 fi
14149 fi
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14151 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14152 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14153 $as_echo_n "(cached) " >&6
14154 else
14155 ac_check_lib_save_LIBS=$LIBS
14156 LIBS="-lkrb4 $LIBS"
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14159
14160 /* Override any GCC internal prototype to avoid an error.
14161 Use char because int might match the return type of a GCC
14162 builtin and then its argument prototype would still apply. */
14163 #ifdef __cplusplus
14164 extern "C"
14165 #endif
14166 char krb_get_cred ();
14167 int
14168 main ()
14169 {
14170 return krb_get_cred ();
14171 ;
14172 return 0;
14173 }
14174 _ACEOF
14175 if ac_fn_c_try_link "$LINENO"; then :
14176 ac_cv_lib_krb4_krb_get_cred=yes
14177 else
14178 ac_cv_lib_krb4_krb_get_cred=no
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext \
14181 conftest$ac_exeext conftest.$ac_ext
14182 LIBS=$ac_check_lib_save_LIBS
14183 fi
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14185 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14186 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14187 have_krb4=yes
14188 else
14189 have_krb4=no
14190 fi
14191
14192 if test $have_krb4 = yes; then
14193 KRB4LIB=-lkrb4
14194 LIBS="$KRB4LIB $LIBS"
14195
14196 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14197
14198 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14200 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14201 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 ac_check_lib_save_LIBS=$LIBS
14205 LIBS="-lkrb $LIBS"
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208
14209 /* Override any GCC internal prototype to avoid an error.
14210 Use char because int might match the return type of a GCC
14211 builtin and then its argument prototype would still apply. */
14212 #ifdef __cplusplus
14213 extern "C"
14214 #endif
14215 char krb_get_cred ();
14216 int
14217 main ()
14218 {
14219 return krb_get_cred ();
14220 ;
14221 return 0;
14222 }
14223 _ACEOF
14224 if ac_fn_c_try_link "$LINENO"; then :
14225 ac_cv_lib_krb_krb_get_cred=yes
14226 else
14227 ac_cv_lib_krb_krb_get_cred=no
14228 fi
14229 rm -f core conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
14231 LIBS=$ac_check_lib_save_LIBS
14232 fi
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14234 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14235 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14236 have_krb=yes
14237 else
14238 have_krb=no
14239 fi
14240
14241 if test $have_krb = yes; then
14242 KRB4LIB=-lkrb
14243 LIBS="$KRB4LIB $LIBS"
14244
14245 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14246
14247 fi
14248 fi
14249 fi
14250
14251 if test "${with_kerberos5}" != no; then
14252 for ac_header in krb5.h
14253 do :
14254 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14255 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14256 cat >>confdefs.h <<_ACEOF
14257 #define HAVE_KRB5_H 1
14258 _ACEOF
14259 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14260 "
14261 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14262
14263 cat >>confdefs.h <<_ACEOF
14264 #define HAVE_KRB5_ERROR_TEXT 1
14265 _ACEOF
14266
14267
14268 fi
14269 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14270 "
14271 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14272
14273 cat >>confdefs.h <<_ACEOF
14274 #define HAVE_KRB5_ERROR_E_TEXT 1
14275 _ACEOF
14276
14277
14278 fi
14279
14280 fi
14281
14282 done
14283
14284 else
14285 for ac_header in des.h
14286 do :
14287 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14288 if test "x$ac_cv_header_des_h" = x""yes; then :
14289 cat >>confdefs.h <<_ACEOF
14290 #define HAVE_DES_H 1
14291 _ACEOF
14292
14293 else
14294 for ac_header in kerberosIV/des.h
14295 do :
14296 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14297 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14298 cat >>confdefs.h <<_ACEOF
14299 #define HAVE_KERBEROSIV_DES_H 1
14300 _ACEOF
14301
14302 else
14303 for ac_header in kerberos/des.h
14304 do :
14305 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14306 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14307 cat >>confdefs.h <<_ACEOF
14308 #define HAVE_KERBEROS_DES_H 1
14309 _ACEOF
14310
14311 fi
14312
14313 done
14314
14315 fi
14316
14317 done
14318
14319 fi
14320
14321 done
14322
14323 for ac_header in krb.h
14324 do :
14325 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14326 if test "x$ac_cv_header_krb_h" = x""yes; then :
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_KRB_H 1
14329 _ACEOF
14330
14331 else
14332 for ac_header in kerberosIV/krb.h
14333 do :
14334 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14335 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14336 cat >>confdefs.h <<_ACEOF
14337 #define HAVE_KERBEROSIV_KRB_H 1
14338 _ACEOF
14339
14340 else
14341 for ac_header in kerberos/krb.h
14342 do :
14343 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14344 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14345 cat >>confdefs.h <<_ACEOF
14346 #define HAVE_KERBEROS_KRB_H 1
14347 _ACEOF
14348
14349 fi
14350
14351 done
14352
14353 fi
14354
14355 done
14356
14357 fi
14358
14359 done
14360
14361 fi
14362 for ac_header in com_err.h
14363 do :
14364 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14365 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14366 cat >>confdefs.h <<_ACEOF
14367 #define HAVE_COM_ERR_H 1
14368 _ACEOF
14369
14370 fi
14371
14372 done
14373
14374 fi
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385 for ac_func in $ac_func_list
14386 do :
14387 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14388 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14389 eval as_val=\$$as_ac_var
14390 if test "x$as_val" = x""yes; then :
14391 cat >>confdefs.h <<_ACEOF
14392 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14393 _ACEOF
14394
14395 fi
14396 done
14397
14398
14399
14400
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14402 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14403 if test "${emacs_cv_localtime_cache+set}" = set; then :
14404 $as_echo_n "(cached) " >&6
14405 else
14406 if test x$ac_cv_func_tzset = xyes; then
14407 if test "$cross_compiling" = yes; then :
14408 # If we have tzset, assume the worst when cross-compiling.
14409 emacs_cv_localtime_cache=yes
14410 else
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14413 #include <time.h>
14414 char TZ_GMT0[] = "TZ=GMT0";
14415 char TZ_PST8[] = "TZ=PST8";
14416 main()
14417 {
14418 time_t now = time ((time_t *) 0);
14419 int hour_GMT0, hour_unset;
14420 if (putenv (TZ_GMT0) != 0)
14421 exit (1);
14422 hour_GMT0 = localtime (&now)->tm_hour;
14423 unsetenv("TZ");
14424 hour_unset = localtime (&now)->tm_hour;
14425 if (putenv (TZ_PST8) != 0)
14426 exit (1);
14427 if (localtime (&now)->tm_hour == hour_GMT0)
14428 exit (1);
14429 unsetenv("TZ");
14430 if (localtime (&now)->tm_hour != hour_unset)
14431 exit (1);
14432 exit (0);
14433 }
14434 _ACEOF
14435 if ac_fn_c_try_run "$LINENO"; then :
14436 emacs_cv_localtime_cache=no
14437 else
14438 emacs_cv_localtime_cache=yes
14439 fi
14440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14441 conftest.$ac_objext conftest.beam conftest.$ac_ext
14442 fi
14443
14444 else
14445 # If we lack tzset, report that localtime does not cache TZ,
14446 # since we can't invalidate the cache if we don't have tzset.
14447 emacs_cv_localtime_cache=no
14448 fi
14449 fi
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14451 $as_echo "$emacs_cv_localtime_cache" >&6; }
14452 if test $emacs_cv_localtime_cache = yes; then
14453
14454 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14455
14456 fi
14457
14458 ok_so_far=yes
14459 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14460 if test "x$ac_cv_func_socket" = x""yes; then :
14461
14462 else
14463 ok_so_far=no
14464 fi
14465
14466 if test $ok_so_far = yes; then
14467 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14468 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14469
14470 else
14471 ok_so_far=no
14472 fi
14473
14474
14475 fi
14476 if test $ok_so_far = yes; then
14477 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14478 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14479
14480 else
14481 ok_so_far=no
14482 fi
14483
14484
14485 fi
14486 if test $ok_so_far = yes; then
14487
14488 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14489
14490 fi
14491
14492 if test -f /usr/lpp/X11/bin/smt.exp; then
14493
14494 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14495
14496 fi
14497
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14499 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14500 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14502 $as_echo "yes" >&6; }
14503
14504 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14505
14506 else
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14508 $as_echo "no" >&6; }
14509 fi
14510
14511 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14512 if test "x$ac_cv_type_pid_t" = x""yes; then :
14513
14514 else
14515
14516 cat >>confdefs.h <<_ACEOF
14517 #define pid_t int
14518 _ACEOF
14519
14520 fi
14521
14522 for ac_header in vfork.h
14523 do :
14524 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14525 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14526 cat >>confdefs.h <<_ACEOF
14527 #define HAVE_VFORK_H 1
14528 _ACEOF
14529
14530 fi
14531
14532 done
14533
14534 for ac_func in fork vfork
14535 do :
14536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14537 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14538 eval as_val=\$$as_ac_var
14539 if test "x$as_val" = x""yes; then :
14540 cat >>confdefs.h <<_ACEOF
14541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14542 _ACEOF
14543
14544 fi
14545 done
14546
14547 if test "x$ac_cv_func_fork" = xyes; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14549 $as_echo_n "checking for working fork... " >&6; }
14550 if test "${ac_cv_func_fork_works+set}" = set; then :
14551 $as_echo_n "(cached) " >&6
14552 else
14553 if test "$cross_compiling" = yes; then :
14554 ac_cv_func_fork_works=cross
14555 else
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14558 $ac_includes_default
14559 int
14560 main ()
14561 {
14562
14563 /* By Ruediger Kuhlmann. */
14564 return fork () < 0;
14565
14566 ;
14567 return 0;
14568 }
14569 _ACEOF
14570 if ac_fn_c_try_run "$LINENO"; then :
14571 ac_cv_func_fork_works=yes
14572 else
14573 ac_cv_func_fork_works=no
14574 fi
14575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14576 conftest.$ac_objext conftest.beam conftest.$ac_ext
14577 fi
14578
14579 fi
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14581 $as_echo "$ac_cv_func_fork_works" >&6; }
14582
14583 else
14584 ac_cv_func_fork_works=$ac_cv_func_fork
14585 fi
14586 if test "x$ac_cv_func_fork_works" = xcross; then
14587 case $host in
14588 *-*-amigaos* | *-*-msdosdjgpp*)
14589 # Override, as these systems have only a dummy fork() stub
14590 ac_cv_func_fork_works=no
14591 ;;
14592 *)
14593 ac_cv_func_fork_works=yes
14594 ;;
14595 esac
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14597 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14598 fi
14599 ac_cv_func_vfork_works=$ac_cv_func_vfork
14600 if test "x$ac_cv_func_vfork" = xyes; then
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14602 $as_echo_n "checking for working vfork... " >&6; }
14603 if test "${ac_cv_func_vfork_works+set}" = set; then :
14604 $as_echo_n "(cached) " >&6
14605 else
14606 if test "$cross_compiling" = yes; then :
14607 ac_cv_func_vfork_works=cross
14608 else
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14611 /* Thanks to Paul Eggert for this test. */
14612 $ac_includes_default
14613 #include <sys/wait.h>
14614 #ifdef HAVE_VFORK_H
14615 # include <vfork.h>
14616 #endif
14617 /* On some sparc systems, changes by the child to local and incoming
14618 argument registers are propagated back to the parent. The compiler
14619 is told about this with #include <vfork.h>, but some compilers
14620 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14621 static variable whose address is put into a register that is
14622 clobbered by the vfork. */
14623 static void
14624 #ifdef __cplusplus
14625 sparc_address_test (int arg)
14626 # else
14627 sparc_address_test (arg) int arg;
14628 #endif
14629 {
14630 static pid_t child;
14631 if (!child) {
14632 child = vfork ();
14633 if (child < 0) {
14634 perror ("vfork");
14635 _exit(2);
14636 }
14637 if (!child) {
14638 arg = getpid();
14639 write(-1, "", 0);
14640 _exit (arg);
14641 }
14642 }
14643 }
14644
14645 int
14646 main ()
14647 {
14648 pid_t parent = getpid ();
14649 pid_t child;
14650
14651 sparc_address_test (0);
14652
14653 child = vfork ();
14654
14655 if (child == 0) {
14656 /* Here is another test for sparc vfork register problems. This
14657 test uses lots of local variables, at least as many local
14658 variables as main has allocated so far including compiler
14659 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14660 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14661 reuse the register of parent for one of the local variables,
14662 since it will think that parent can't possibly be used any more
14663 in this routine. Assigning to the local variable will thus
14664 munge parent in the parent process. */
14665 pid_t
14666 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14667 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14668 /* Convince the compiler that p..p7 are live; otherwise, it might
14669 use the same hardware register for all 8 local variables. */
14670 if (p != p1 || p != p2 || p != p3 || p != p4
14671 || p != p5 || p != p6 || p != p7)
14672 _exit(1);
14673
14674 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14675 from child file descriptors. If the child closes a descriptor
14676 before it execs or exits, this munges the parent's descriptor
14677 as well. Test for this by closing stdout in the child. */
14678 _exit(close(fileno(stdout)) != 0);
14679 } else {
14680 int status;
14681 struct stat st;
14682
14683 while (wait(&status) != child)
14684 ;
14685 return (
14686 /* Was there some problem with vforking? */
14687 child < 0
14688
14689 /* Did the child fail? (This shouldn't happen.) */
14690 || status
14691
14692 /* Did the vfork/compiler bug occur? */
14693 || parent != getpid()
14694
14695 /* Did the file descriptor bug occur? */
14696 || fstat(fileno(stdout), &st) != 0
14697 );
14698 }
14699 }
14700 _ACEOF
14701 if ac_fn_c_try_run "$LINENO"; then :
14702 ac_cv_func_vfork_works=yes
14703 else
14704 ac_cv_func_vfork_works=no
14705 fi
14706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14707 conftest.$ac_objext conftest.beam conftest.$ac_ext
14708 fi
14709
14710 fi
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14712 $as_echo "$ac_cv_func_vfork_works" >&6; }
14713
14714 fi;
14715 if test "x$ac_cv_func_fork_works" = xcross; then
14716 ac_cv_func_vfork_works=$ac_cv_func_vfork
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14718 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14719 fi
14720
14721 if test "x$ac_cv_func_vfork_works" = xyes; then
14722
14723 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14724
14725 else
14726
14727 $as_echo "#define vfork fork" >>confdefs.h
14728
14729 fi
14730 if test "x$ac_cv_func_fork_works" = xyes; then
14731
14732 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14733
14734 fi
14735
14736
14737 for ac_func in snprintf
14738 do :
14739 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14740 if test "x$ac_cv_func_snprintf" = x""yes; then :
14741 cat >>confdefs.h <<_ACEOF
14742 #define HAVE_SNPRINTF 1
14743 _ACEOF
14744
14745 fi
14746 done
14747
14748
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14750 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14751 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14752 $as_echo_n "(cached) " >&6
14753 else
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14756 #include <langinfo.h>
14757 int
14758 main ()
14759 {
14760 char* cs = nl_langinfo(CODESET);
14761 ;
14762 return 0;
14763 }
14764 _ACEOF
14765 if ac_fn_c_try_link "$LINENO"; then :
14766 emacs_cv_langinfo_codeset=yes
14767 else
14768 emacs_cv_langinfo_codeset=no
14769 fi
14770 rm -f core conftest.err conftest.$ac_objext \
14771 conftest$ac_exeext conftest.$ac_ext
14772
14773 fi
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14775 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14776 if test $emacs_cv_langinfo_codeset = yes; then
14777
14778 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14779
14780 fi
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14783 $as_echo_n "checking for mbstate_t... " >&6; }
14784 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14785 $as_echo_n "(cached) " >&6
14786 else
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14789 $ac_includes_default
14790 # include <wchar.h>
14791 int
14792 main ()
14793 {
14794 mbstate_t x; return sizeof x;
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 if ac_fn_c_try_compile "$LINENO"; then :
14800 ac_cv_type_mbstate_t=yes
14801 else
14802 ac_cv_type_mbstate_t=no
14803 fi
14804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805 fi
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14807 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14808 if test $ac_cv_type_mbstate_t = yes; then
14809
14810 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14811
14812 else
14813
14814 $as_echo "#define mbstate_t int" >>confdefs.h
14815
14816 fi
14817
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14819 $as_echo_n "checking for C restricted array declarations... " >&6; }
14820 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14821 $as_echo_n "(cached) " >&6
14822 else
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 void fred (int x[__restrict]);
14826 int
14827 main ()
14828 {
14829
14830 ;
14831 return 0;
14832 }
14833 _ACEOF
14834 if ac_fn_c_try_compile "$LINENO"; then :
14835 emacs_cv_c_restrict_arr=yes
14836 else
14837 emacs_cv_c_restrict_arr=no
14838 fi
14839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840 fi
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14842 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14843 if test "$emacs_cv_c_restrict_arr" = yes; then
14844
14845 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14846
14847 fi
14848
14849
14850
14851 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14852
14853
14854
14855 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14856
14857
14858 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14859
14860 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14861
14862
14863
14864 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14865
14866
14867
14868
14869
14870 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14871
14872
14873
14874 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14875
14876
14877
14878 $as_echo "#define subprocesses 1" >>confdefs.h
14879
14880
14881
14882 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14883
14884
14885
14886
14887 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14888
14889
14890
14891
14892
14893 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14894
14895
14896
14897 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14898
14899
14900
14901 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14902
14903
14904
14905
14906
14907 case $opsys in
14908 aix4-2)
14909 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
14910 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14911
14912 fi
14913 ;;
14914
14915 hpux*)
14916 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14917
14918 ;;
14919 esac
14920
14921
14922 case $opsys in
14923 irix6-5 | sol2* | unixware )
14924
14925 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14926
14927 ;;
14928 esac
14929
14930 emacs_broken_SIGIO=no
14931
14932 case $opsys in
14933 hpux* | irix6-5 | openbsd | sol2* | unixware )
14934 emacs_broken_SIGIO=yes
14935 ;;
14936
14937 aix4-2)
14938
14939 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14940
14941 ;;
14942
14943 freebsd)
14944
14945 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14946
14947 ;;
14948 esac
14949
14950 case $opsys in
14951 gnu-* | sol2-10 )
14952
14953 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14954
14955 ;;
14956 esac
14957
14958 case $opsys in
14959 darwin | freebsd | netbsd | openbsd )
14960
14961 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14962
14963 ;;
14964 esac
14965
14966 case $opsys in
14967 netbsd | openbsd) sound_device="/dev/audio" ;;
14968 *) sound_device="/dev/dsp" ;;
14969 esac
14970
14971
14972 cat >>confdefs.h <<_ACEOF
14973 #define DEFAULT_SOUND_DEVICE "$sound_device"
14974 _ACEOF
14975
14976
14977
14978 case $opsys in
14979 darwin | gnu-linux | gnu-kfreebsd )
14980
14981 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14982
14983 ;;
14984 esac
14985
14986
14987 case $opsys in
14988 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
14989
14990 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14991
14992 ;;
14993 esac
14994
14995
14996
14997
14998
14999
15000
15001
15002 case $opsys in
15003 aix4-2 )
15004 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15005
15006 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15007
15008 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15009
15010 ;;
15011
15012 cygwin )
15013 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15014
15015 $as_echo "#define PTY_OPEN do { int dummy; sigset_t blocked, procmask; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, &procmask); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; pthread_sigmask (SIG_SETMASK, &procmask, 0); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
15016
15017 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15018
15019 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15020
15021 ;;
15022
15023 darwin )
15024 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15025
15026 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15027
15028 $as_echo "#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)" >>confdefs.h
15029
15030 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15031
15032 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15033
15034 ;;
15035
15036 gnu | openbsd )
15037 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15038
15039 ;;
15040
15041 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15042 if test "x$ac_cv_func_grantpt" = xyes; then
15043
15044 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15045
15046 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15047
15048 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15049
15050 if test "x$ac_cv_func_posix_openpt" = xyes; then
15051 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15052
15053 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15054
15055 elif test "x$ac_cv_func_getpt" = xyes; then
15056 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15057
15058 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15059
15060 else
15061 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15062
15063 fi
15064 else
15065 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15066
15067 fi
15068 ;;
15069
15070 hpux*)
15071 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15072
15073 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15074
15075 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15076
15077 ;;
15078
15079 irix6-5 )
15080 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15081
15082 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15083
15084 $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h
15085
15086 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15087
15088 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15089
15090 ;;
15091
15092 sol2* )
15093 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15094
15095 ;;
15096
15097 unixware )
15098 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15099
15100 ;;
15101 esac
15102
15103
15104 case $opsys in
15105 sol2* | unixware )
15106 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15107
15108 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15109
15110
15111 $as_echo "#define SETUP_SLAVE_PTY if (ioctl (xforkin, I_PUSH, \"ptem\") == -1) fatal (\"ioctl I_PUSH ptem\"); if (ioctl (xforkin, I_PUSH, \"ldterm\") == -1) fatal (\"ioctl I_PUSH ldterm\"); if (ioctl (xforkin, I_PUSH, \"ttcompat\") == -1) fatal (\"ioctl I_PUSH ttcompat\");" >>confdefs.h
15112
15113 ;;
15114 esac
15115
15116
15117
15118
15119 case $opsys in
15120 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
15121 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15122
15123 ;;
15124
15125 gnu-linux | gnu-kfreebsd )
15126
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15128 $as_echo_n "checking for signals via characters... " >&6; }
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15131
15132 #include <linux/version.h>
15133 #if LINUX_VERSION_CODE < 0x20400
15134 # error "Linux version too old"
15135 #endif
15136
15137 int
15138 main ()
15139 {
15140
15141 ;
15142 return 0;
15143 }
15144 _ACEOF
15145 if ac_fn_c_try_cpp "$LINENO"; then :
15146 emacs_signals_via_chars=yes
15147 else
15148 emacs_signals_via_chars=no
15149 fi
15150 rm -f conftest.err conftest.$ac_ext
15151
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15153 $as_echo "$emacs_signals_via_chars" >&6; }
15154 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15155
15156 ;;
15157 esac
15158
15159
15160
15161
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15163 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166
15167 #include <features.h>
15168 #ifndef __GNU_LIBRARY__
15169 # error "this is not the GNU C library"
15170 #endif
15171
15172 int
15173 main ()
15174 {
15175
15176 ;
15177 return 0;
15178 }
15179 _ACEOF
15180 if ac_fn_c_try_cpp "$LINENO"; then :
15181 emacs_glibc=yes
15182 else
15183 emacs_glibc=no
15184 fi
15185 rm -f conftest.err conftest.$ac_ext
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15187 $as_echo "$emacs_glibc" >&6; }
15188
15189 if test $emacs_glibc = yes; then
15190
15191 emacs_pending_output=unknown
15192
15193 case $opsys in
15194 gnu | gnu-linux | gnu-kfreebsd )
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15196 $as_echo_n "checking for style of pending output formalism... " >&6; }
15197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h. */
15199
15200 #include <stdio.h>
15201 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15202 # error "stdio definitions not found"
15203 #endif
15204
15205 int
15206 main ()
15207 {
15208
15209 ;
15210 return 0;
15211 }
15212 _ACEOF
15213 if ac_fn_c_try_cpp "$LINENO"; then :
15214 emacs_pending_output=new
15215 fi
15216 rm -f conftest.err conftest.$ac_ext
15217
15218 if test $emacs_pending_output = unknown; then
15219 case $opsys in
15220 gnu-linux | gnu-kfreebsd)
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15223
15224 #include <stdio.h>
15225 #ifndef __UCLIBC__
15226 # error "not using uclibc"
15227 #endif
15228
15229 int
15230 main ()
15231 {
15232
15233 ;
15234 return 0;
15235 }
15236 _ACEOF
15237 if ac_fn_c_try_cpp "$LINENO"; then :
15238 emacs_pending_output=uclibc
15239 else
15240 emacs_pending_output=old
15241 fi
15242 rm -f conftest.err conftest.$ac_ext
15243 ;;
15244 esac
15245 fi
15246
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15248 $as_echo "$emacs_pending_output" >&6; }
15249
15250 case $emacs_pending_output in
15251 new)
15252 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15253
15254 ;;
15255 uclibc)
15256 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15257
15258 ;;
15259 old)
15260 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15261
15262 ;;
15263 esac
15264 ;;
15265 esac
15266 if test $emacs_pending_output = unknown; then
15267 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15268
15269 fi
15270
15271 else
15272 case $opsys in
15273 cygwin | darwin | freebsd | netbsd | openbsd )
15274 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15275
15276 ;;
15277
15278 unixware)
15279 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15280
15281 ;;
15282
15283 *)
15284 if test x$ac_cv_header_stdio_ext_h = xyes && \
15285 test x$ac_cv_func___fpending = xyes; then
15286 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15287
15288
15289 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15290
15291 else
15292 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15293
15294 fi
15295 ;;
15296 esac
15297 fi
15298
15299
15300
15301
15302 case $opsys in
15303 gnu)
15304 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15305
15306 ;;
15307
15308 hpux*)
15309 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15310
15311 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15312
15313 ;;
15314 irix6-5)
15315 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15316
15317 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15318
15319 ;;
15320 esac
15321
15322
15323
15324
15325
15326 case $opsys in
15327 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15328 ;;
15329
15330 gnu | freebsd | netbsd | openbsd )
15331
15332 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15333
15334 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15335
15336 ;;
15337
15338 gnu-linux | gnu-kfreebsd )
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341
15342 #ifndef __i386__
15343 # error "not i386"
15344 #endif
15345
15346 int
15347 main ()
15348 {
15349
15350 ;
15351 return 0;
15352 }
15353 _ACEOF
15354 if ac_fn_c_try_cpp "$LINENO"; then :
15355 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15356
15357 fi
15358 rm -f conftest.err conftest.$ac_ext
15359
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362
15363 #ifndef __ia64__
15364 # error "not ia64"
15365 #endif
15366
15367 int
15368 main ()
15369 {
15370
15371 ;
15372 return 0;
15373 }
15374 _ACEOF
15375 if ac_fn_c_try_cpp "$LINENO"; then :
15376
15377 $as_echo "#define GC_MARK_SECONDARY_STACK() do { extern void *__libc_ia64_register_backing_store_base; __builtin_ia64_flushrs (); mark_memory (__libc_ia64_register_backing_store_base, __builtin_ia64_bsp ());} while (0)" >>confdefs.h
15378
15379 fi
15380 rm -f conftest.err conftest.$ac_ext
15381 ;;
15382
15383 hpux*)
15384
15385 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15386
15387 ;;
15388
15389 irix6-5)
15390 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15391
15392 ;;
15393 esac
15394
15395
15396
15397
15398
15399
15400
15401 case $opsys in
15402 aix4-2 | hpux* | unixware)
15403 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15404
15405 ;;
15406
15407 gnu-linux | gnu-kfreebsd )
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15410
15411 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15412 || defined __alpha__ || defined __mips__ || defined __s390__ \
15413 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15414 || defined __ia64__ || defined __sh__
15415 /* ok */
15416 #else
15417 # error "setjmp not known to work on this arch"
15418 #endif
15419
15420 int
15421 main ()
15422 {
15423
15424 ;
15425 return 0;
15426 }
15427 _ACEOF
15428 if ac_fn_c_try_cpp "$LINENO"; then :
15429 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15430
15431 else
15432 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15433
15434 fi
15435 rm -f conftest.err conftest.$ac_ext
15436 ;;
15437 esac
15438
15439
15440 if test x$GCC = xyes; then
15441 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15442
15443 else
15444 case $opsys in
15445 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15446 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15447
15448 ;;
15449 esac
15450 fi
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15452 $as_echo_n "checking for _setjmp... " >&6; }
15453 if test "${emacs_cv_func__setjmp+set}" = set; then :
15454 $as_echo_n "(cached) " >&6
15455 else
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458 #include <setjmp.h>
15459
15460 int
15461 main ()
15462 {
15463 jmp_buf j;
15464 if (! _setjmp (j))
15465 _longjmp (j, 1);
15466 ;
15467 return 0;
15468 }
15469 _ACEOF
15470 if ac_fn_c_try_link "$LINENO"; then :
15471 emacs_cv_func__setjmp=yes
15472 else
15473 emacs_cv_func__setjmp=no
15474 fi
15475 rm -f core conftest.err conftest.$ac_objext \
15476 conftest$ac_exeext conftest.$ac_ext
15477 fi
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15479 $as_echo "$emacs_cv_func__setjmp" >&6; }
15480 if test $emacs_cv_func__setjmp = yes; then
15481
15482 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15483
15484 else
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15486 $as_echo_n "checking for sigsetjmp... " >&6; }
15487 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15488 $as_echo_n "(cached) " >&6
15489 else
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15492 #include <setjmp.h>
15493
15494 int
15495 main ()
15496 {
15497 sigjmp_buf j;
15498 if (! sigsetjmp (j, 1))
15499 siglongjmp (j, 1);
15500 ;
15501 return 0;
15502 }
15503 _ACEOF
15504 if ac_fn_c_try_link "$LINENO"; then :
15505 emacs_cv_func_sigsetjmp=yes
15506 else
15507 emacs_cv_func_sigsetjmp=no
15508 fi
15509 rm -f core conftest.err conftest.$ac_objext \
15510 conftest$ac_exeext conftest.$ac_ext
15511 fi
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15513 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15514 if test $emacs_cv_func_sigsetjmp = yes; then
15515
15516 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15517
15518 fi
15519 fi
15520
15521 case $opsys in
15522 sol2* | unixware )
15523
15524 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15525
15526 ;;
15527 esac
15528
15529
15530 case $opsys in
15531 hpux* | sol2* )
15532
15533 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15534
15535 ;;
15536 esac
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547 case $opsys in
15548 aix4-2)
15549 $as_echo "#define USG /**/" >>confdefs.h
15550
15551 $as_echo "#define USG5 /**/" >>confdefs.h
15552
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555
15556 #ifndef _AIX
15557 # error "_AIX not defined"
15558 #endif
15559
15560 int
15561 main ()
15562 {
15563
15564 ;
15565 return 0;
15566 }
15567 _ACEOF
15568 if ac_fn_c_try_cpp "$LINENO"; then :
15569
15570 else
15571
15572 $as_echo "#define _AIX /**/" >>confdefs.h
15573
15574 fi
15575 rm -f conftest.err conftest.$ac_ext
15576 ;;
15577
15578 cygwin)
15579
15580 $as_echo "#define CYGWIN 1" >>confdefs.h
15581
15582 ;;
15583
15584 darwin)
15585 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15586
15587 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15588
15589
15590 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15591
15592 ;;
15593
15594 freebsd)
15595 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15596
15597
15598 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15599
15600 ;;
15601
15602 gnu | netbsd | openbsd )
15603 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15604
15605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h. */
15607
15608 #ifndef BSD_SYSTEM
15609 # error "BSD_SYSTEM not defined"
15610 #endif
15611
15612 int
15613 main ()
15614 {
15615
15616 ;
15617 return 0;
15618 }
15619 _ACEOF
15620 if ac_fn_c_try_cpp "$LINENO"; then :
15621
15622 else
15623 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15624
15625 fi
15626 rm -f conftest.err conftest.$ac_ext
15627 ;;
15628
15629 gnu-linux | gnu-kfreebsd )
15630 $as_echo "#define USG /**/" >>confdefs.h
15631
15632
15633 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15634
15635 ;;
15636
15637 hpux*)
15638 $as_echo "#define USG /**/" >>confdefs.h
15639
15640 $as_echo "#define USG5 /**/" >>confdefs.h
15641
15642
15643 $as_echo "#define HPUX /**/" >>confdefs.h
15644
15645 ;;
15646
15647 irix6-5)
15648 $as_echo "#define USG /**/" >>confdefs.h
15649
15650 $as_echo "#define USG5 /**/" >>confdefs.h
15651
15652 $as_echo "#define USG5_4 /**/" >>confdefs.h
15653
15654
15655 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15656
15657 ;;
15658
15659 sol2*)
15660 $as_echo "#define USG /**/" >>confdefs.h
15661
15662 $as_echo "#define USG5 /**/" >>confdefs.h
15663
15664 $as_echo "#define USG5_4 /**/" >>confdefs.h
15665
15666
15667 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15668
15669 ;;
15670
15671 unixware)
15672 $as_echo "#define USG /**/" >>confdefs.h
15673
15674 $as_echo "#define USG5 /**/" >>confdefs.h
15675
15676 $as_echo "#define USG5_4 /**/" >>confdefs.h
15677
15678 ;;
15679 esac
15680
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15682 $as_echo_n "checking for usable FIONREAD... " >&6; }
15683 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15684 $as_echo_n "(cached) " >&6
15685 else
15686 case $opsys in
15687 aix4-2)
15688 emacs_cv_usable_FIONREAD=no
15689 ;;
15690
15691 *)
15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h. */
15694 #include <sys/types.h>
15695 #include <sys/ioctl.h>
15696 #ifdef USG5_4
15697 # include <sys/filio.h>
15698 #endif
15699
15700 int
15701 main ()
15702 {
15703 int foo = ioctl (0, FIONREAD, &foo);
15704 ;
15705 return 0;
15706 }
15707 _ACEOF
15708 if ac_fn_c_try_compile "$LINENO"; then :
15709 emacs_cv_usable_FIONREAD=yes
15710 else
15711 emacs_cv_usable_FIONREAD=no
15712 fi
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 ;;
15715 esac
15716 fi
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15718 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15719 if test $emacs_cv_usable_FIONREAD = yes; then
15720
15721 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15722
15723
15724 if test $emacs_broken_SIGIO = no; then
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15726 $as_echo_n "checking for usable SIGIO... " >&6; }
15727 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15728 $as_echo_n "(cached) " >&6
15729 else
15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731 /* end confdefs.h. */
15732 #include <fcntl.h>
15733 #include <signal.h>
15734
15735 int
15736 main ()
15737 {
15738 int foo = SIGIO | F_SETFL | FASYNC;
15739 ;
15740 return 0;
15741 }
15742 _ACEOF
15743 if ac_fn_c_try_compile "$LINENO"; then :
15744 emacs_cv_usable_SIGIO=yes
15745 else
15746 emacs_cv_usable_SIGIO=no
15747 fi
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15749 fi
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15751 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15752 if test $emacs_cv_usable_SIGIO = yes; then
15753
15754 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15755
15756 fi
15757 fi
15758 fi
15759
15760
15761 case $opsys in
15762 cygwin)
15763
15764 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15765
15766 ;;
15767
15768 hpux11)
15769
15770 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
15771
15772
15773 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15774
15775 ;;
15776
15777 irix6-5)
15778
15779 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15780
15781
15782 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15783
15784 ;;
15785
15786 sol2-10)
15787
15788 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15789
15790 ;;
15791 esac
15792
15793 # Set up the CFLAGS for real compilation, so we can substitute it.
15794 CFLAGS="$REAL_CFLAGS"
15795 CPPFLAGS="$REAL_CPPFLAGS"
15796
15797 ## Hack to detect a buggy GCC version.
15798 if test "x$GCC" = xyes \
15799 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15800 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15801 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15802 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15803 fi
15804
15805 version=$PACKAGE_VERSION
15806
15807 ### Specify what sort of things we'll be editing into Makefile and config.h.
15808 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15809
15810
15811 ## Unused?
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15835 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15836 ## end of LIBX_BASE, but nothing ever set it.
15837
15838
15839
15840
15841 ## Used in lwlib/Makefile.in.
15842
15843
15844
15845
15846
15847
15848
15849
15850 if test -n "${term_header}"; then
15851
15852 cat >>confdefs.h <<_ACEOF
15853 #define TERM_HEADER "${term_header}"
15854 _ACEOF
15855
15856 fi
15857
15858
15859 cat >>confdefs.h <<_ACEOF
15860 #define EMACS_CONFIGURATION "${canonical}"
15861 _ACEOF
15862
15863
15864 cat >>confdefs.h <<_ACEOF
15865 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15866 _ACEOF
15867
15868
15869
15870 XMENU_OBJ=
15871 XOBJ=
15872 FONT_OBJ=
15873 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15874
15875 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15876
15877 XMENU_OBJ=xmenu.o
15878 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15879 FONT_OBJ=xfont.o
15880 if test "$HAVE_XFT" = "yes"; then
15881 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15882 elif test "$HAVE_FREETYPE" = "yes"; then
15883 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15884 fi
15885
15886 fi
15887
15888
15889
15890
15891 WIDGET_OBJ=
15892 MOTIF_LIBW=
15893 if test "${USE_X_TOOLKIT}" != "none" ; then
15894 WIDGET_OBJ=widget.o
15895
15896 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15897
15898 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15899
15900 $as_echo "#define USE_LUCID 1" >>confdefs.h
15901
15902 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15903
15904 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15905
15906 MOTIF_LIBW=-lXm
15907 case "$opsys" in
15908 gnu-linux)
15909 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15910 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15911 ;;
15912
15913 unixware)
15914 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15915 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15916 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15917 ;;
15918
15919 aix4-2)
15920 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15921 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15922 ;;
15923 esac
15924 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15925 fi
15926 fi
15927
15928
15929 TOOLKIT_LIBW=
15930 case "$USE_X_TOOLKIT" in
15931 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15932 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15933 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15934 esac
15935
15936
15937 if test "$USE_X_TOOLKIT" = "none"; then
15938 LIBXT_OTHER="\$(LIBXSM)"
15939 OLDXMENU_TARGET="really-oldXMenu"
15940 else
15941 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15942 OLDXMENU_TARGET="really-lwlib"
15943 fi
15944
15945
15946 ## The X Menu stuff is present in the X10 distribution, but missing
15947 ## from X11. If we have X10, just use the installed library;
15948 ## otherwise, use our own copy.
15949 if test "${HAVE_X11}" = "yes" ; then
15950
15951 $as_echo "#define HAVE_X11 1" >>confdefs.h
15952
15953
15954 if test "$USE_X_TOOLKIT" = "none"; then
15955 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15956 else
15957 OLDXMENU="\${lwlibdir}/liblw.a"
15958 fi
15959 LIBXMENU="\$(OLDXMENU)"
15960 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15961 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15962 else
15963 ## For a syntactically valid Makefile; not actually used for anything.
15964 ## See comments in src/Makefile.in.
15965 OLDXMENU=nothing
15966 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15967 if test "${HAVE_X_WINDOWS}" = "yes"; then
15968 LIBXMENU="-lXMenu"
15969 else
15970 LIBXMENU=
15971 fi
15972 LIBX_OTHER=
15973 OLDXMENU_DEPS=
15974 fi
15975
15976 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15977 OLDXMENU_TARGET=
15978 OLDXMENU=nothing
15979 LIBXMENU=
15980 OLDXMENU_DEPS=
15981 fi
15982
15983
15984
15985
15986
15987
15988
15989 if test "${HAVE_MENUS}" = "yes" ; then
15990
15991 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15992
15993 fi
15994
15995 if test "${GNU_MALLOC}" = "yes" ; then
15996
15997 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15998
15999 fi
16000
16001 RALLOC_OBJ=
16002 if test "${REL_ALLOC}" = "yes" ; then
16003
16004 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16005
16006
16007 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16008 fi
16009
16010
16011 if test "$opsys" = "cygwin"; then
16012 CYGWIN_OBJ="sheap.o"
16013 ## Cygwin differs because of its unexec().
16014 PRE_ALLOC_OBJ=
16015 POST_ALLOC_OBJ=lastfile.o
16016 else
16017 CYGWIN_OBJ=
16018 PRE_ALLOC_OBJ=lastfile.o
16019 POST_ALLOC_OBJ=
16020 fi
16021
16022
16023
16024
16025 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16026 # it temporarily reverts them to their pre-pkg-config values,
16027 # because gnulib needs to work with both src (which uses the
16028 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16029 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16030 # and it therefore needs to run in an environment where LIBS does not
16031 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16032 # for some package unrelated to lib-src.
16033 SAVE_CFLAGS=$CFLAGS
16034 SAVE_LIBS=$LIBS
16035 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16036 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048 LIBC_FATAL_STDERR_=1
16049 export LIBC_FATAL_STDERR_
16050
16051 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16052 # for constant arguments. Useless!
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16054 $as_echo_n "checking for working alloca.h... " >&6; }
16055 if test "${ac_cv_working_alloca_h+set}" = set; then :
16056 $as_echo_n "(cached) " >&6
16057 else
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 #include <alloca.h>
16061 int
16062 main ()
16063 {
16064 char *p = (char *) alloca (2 * sizeof (int));
16065 if (p) return 0;
16066 ;
16067 return 0;
16068 }
16069 _ACEOF
16070 if ac_fn_c_try_link "$LINENO"; then :
16071 ac_cv_working_alloca_h=yes
16072 else
16073 ac_cv_working_alloca_h=no
16074 fi
16075 rm -f core conftest.err conftest.$ac_objext \
16076 conftest$ac_exeext conftest.$ac_ext
16077 fi
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16079 $as_echo "$ac_cv_working_alloca_h" >&6; }
16080 if test $ac_cv_working_alloca_h = yes; then
16081
16082 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16083
16084 fi
16085
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16087 $as_echo_n "checking for alloca... " >&6; }
16088 if test "${ac_cv_func_alloca_works+set}" = set; then :
16089 $as_echo_n "(cached) " >&6
16090 else
16091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h. */
16093 #ifdef __GNUC__
16094 # define alloca __builtin_alloca
16095 #else
16096 # ifdef _MSC_VER
16097 # include <malloc.h>
16098 # define alloca _alloca
16099 # else
16100 # ifdef HAVE_ALLOCA_H
16101 # include <alloca.h>
16102 # else
16103 # ifdef _AIX
16104 #pragma alloca
16105 # else
16106 # ifndef alloca /* predefined by HP cc +Olibcalls */
16107 char *alloca ();
16108 # endif
16109 # endif
16110 # endif
16111 # endif
16112 #endif
16113
16114 int
16115 main ()
16116 {
16117 char *p = (char *) alloca (1);
16118 if (p) return 0;
16119 ;
16120 return 0;
16121 }
16122 _ACEOF
16123 if ac_fn_c_try_link "$LINENO"; then :
16124 ac_cv_func_alloca_works=yes
16125 else
16126 ac_cv_func_alloca_works=no
16127 fi
16128 rm -f core conftest.err conftest.$ac_objext \
16129 conftest$ac_exeext conftest.$ac_ext
16130 fi
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16132 $as_echo "$ac_cv_func_alloca_works" >&6; }
16133
16134 if test $ac_cv_func_alloca_works = yes; then
16135
16136 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16137
16138 else
16139 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16140 # that cause trouble. Some versions do not even contain alloca or
16141 # contain a buggy version. If you still want to use their alloca,
16142 # use ar to extract alloca.o from them instead of compiling alloca.c.
16143
16144
16145
16146
16147
16148 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16149
16150 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16151
16152
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16154 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16155 if test "${ac_cv_os_cray+set}" = set; then :
16156 $as_echo_n "(cached) " >&6
16157 else
16158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16160 #if defined CRAY && ! defined CRAY2
16161 webecray
16162 #else
16163 wenotbecray
16164 #endif
16165
16166 _ACEOF
16167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16168 $EGREP "webecray" >/dev/null 2>&1; then :
16169 ac_cv_os_cray=yes
16170 else
16171 ac_cv_os_cray=no
16172 fi
16173 rm -f conftest*
16174
16175 fi
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16177 $as_echo "$ac_cv_os_cray" >&6; }
16178 if test $ac_cv_os_cray = yes; then
16179 for ac_func in _getb67 GETB67 getb67; do
16180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16182 eval as_val=\$$as_ac_var
16183 if test "x$as_val" = x""yes; then :
16184
16185 cat >>confdefs.h <<_ACEOF
16186 #define CRAY_STACKSEG_END $ac_func
16187 _ACEOF
16188
16189 break
16190 fi
16191
16192 done
16193 fi
16194
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16196 $as_echo_n "checking stack direction for C alloca... " >&6; }
16197 if test "${ac_cv_c_stack_direction+set}" = set; then :
16198 $as_echo_n "(cached) " >&6
16199 else
16200 if test "$cross_compiling" = yes; then :
16201 ac_cv_c_stack_direction=0
16202 else
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 $ac_includes_default
16206 int
16207 find_stack_direction (int *addr, int depth)
16208 {
16209 int dir, dummy = 0;
16210 if (! addr)
16211 addr = &dummy;
16212 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16213 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16214 return dir + dummy;
16215 }
16216
16217 int
16218 main (int argc, char **argv)
16219 {
16220 return find_stack_direction (0, argc + !argv + 20) < 0;
16221 }
16222 _ACEOF
16223 if ac_fn_c_try_run "$LINENO"; then :
16224 ac_cv_c_stack_direction=1
16225 else
16226 ac_cv_c_stack_direction=-1
16227 fi
16228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16229 conftest.$ac_objext conftest.beam conftest.$ac_ext
16230 fi
16231
16232 fi
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16234 $as_echo "$ac_cv_c_stack_direction" >&6; }
16235 cat >>confdefs.h <<_ACEOF
16236 #define STACK_DIRECTION $ac_cv_c_stack_direction
16237 _ACEOF
16238
16239
16240 fi
16241
16242
16243
16244
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16246 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16247 if test "${ac_cv_c_bigendian+set}" = set; then :
16248 $as_echo_n "(cached) " >&6
16249 else
16250 ac_cv_c_bigendian=unknown
16251 # See if we're dealing with a universal compiler.
16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16253 /* end confdefs.h. */
16254 #ifndef __APPLE_CC__
16255 not a universal capable compiler
16256 #endif
16257 typedef int dummy;
16258
16259 _ACEOF
16260 if ac_fn_c_try_compile "$LINENO"; then :
16261
16262 # Check for potential -arch flags. It is not universal unless
16263 # there are at least two -arch flags with different values.
16264 ac_arch=
16265 ac_prev=
16266 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16267 if test -n "$ac_prev"; then
16268 case $ac_word in
16269 i?86 | x86_64 | ppc | ppc64)
16270 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16271 ac_arch=$ac_word
16272 else
16273 ac_cv_c_bigendian=universal
16274 break
16275 fi
16276 ;;
16277 esac
16278 ac_prev=
16279 elif test "x$ac_word" = "x-arch"; then
16280 ac_prev=arch
16281 fi
16282 done
16283 fi
16284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 if test $ac_cv_c_bigendian = unknown; then
16286 # See if sys/param.h defines the BYTE_ORDER macro.
16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16289 #include <sys/types.h>
16290 #include <sys/param.h>
16291
16292 int
16293 main ()
16294 {
16295 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16296 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16297 && LITTLE_ENDIAN)
16298 bogus endian macros
16299 #endif
16300
16301 ;
16302 return 0;
16303 }
16304 _ACEOF
16305 if ac_fn_c_try_compile "$LINENO"; then :
16306 # It does; now see whether it defined to BIG_ENDIAN or not.
16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308 /* end confdefs.h. */
16309 #include <sys/types.h>
16310 #include <sys/param.h>
16311
16312 int
16313 main ()
16314 {
16315 #if BYTE_ORDER != BIG_ENDIAN
16316 not big endian
16317 #endif
16318
16319 ;
16320 return 0;
16321 }
16322 _ACEOF
16323 if ac_fn_c_try_compile "$LINENO"; then :
16324 ac_cv_c_bigendian=yes
16325 else
16326 ac_cv_c_bigendian=no
16327 fi
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16329 fi
16330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16331 fi
16332 if test $ac_cv_c_bigendian = unknown; then
16333 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16336 #include <limits.h>
16337
16338 int
16339 main ()
16340 {
16341 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16342 bogus endian macros
16343 #endif
16344
16345 ;
16346 return 0;
16347 }
16348 _ACEOF
16349 if ac_fn_c_try_compile "$LINENO"; then :
16350 # It does; now see whether it defined to _BIG_ENDIAN or not.
16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h. */
16353 #include <limits.h>
16354
16355 int
16356 main ()
16357 {
16358 #ifndef _BIG_ENDIAN
16359 not big endian
16360 #endif
16361
16362 ;
16363 return 0;
16364 }
16365 _ACEOF
16366 if ac_fn_c_try_compile "$LINENO"; then :
16367 ac_cv_c_bigendian=yes
16368 else
16369 ac_cv_c_bigendian=no
16370 fi
16371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16372 fi
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 fi
16375 if test $ac_cv_c_bigendian = unknown; then
16376 # Compile a test program.
16377 if test "$cross_compiling" = yes; then :
16378 # Try to guess by grepping values from an object file.
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16381 short int ascii_mm[] =
16382 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16383 short int ascii_ii[] =
16384 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16385 int use_ascii (int i) {
16386 return ascii_mm[i] + ascii_ii[i];
16387 }
16388 short int ebcdic_ii[] =
16389 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16390 short int ebcdic_mm[] =
16391 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16392 int use_ebcdic (int i) {
16393 return ebcdic_mm[i] + ebcdic_ii[i];
16394 }
16395 extern int foo;
16396
16397 int
16398 main ()
16399 {
16400 return use_ascii (foo) == use_ebcdic (foo);
16401 ;
16402 return 0;
16403 }
16404 _ACEOF
16405 if ac_fn_c_try_compile "$LINENO"; then :
16406 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16407 ac_cv_c_bigendian=yes
16408 fi
16409 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16410 if test "$ac_cv_c_bigendian" = unknown; then
16411 ac_cv_c_bigendian=no
16412 else
16413 # finding both strings is unlikely to happen, but who knows?
16414 ac_cv_c_bigendian=unknown
16415 fi
16416 fi
16417 fi
16418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16419 else
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422 $ac_includes_default
16423 int
16424 main ()
16425 {
16426
16427 /* Are we little or big endian? From Harbison&Steele. */
16428 union
16429 {
16430 long int l;
16431 char c[sizeof (long int)];
16432 } u;
16433 u.l = 1;
16434 return u.c[sizeof (long int) - 1] == 1;
16435
16436 ;
16437 return 0;
16438 }
16439 _ACEOF
16440 if ac_fn_c_try_run "$LINENO"; then :
16441 ac_cv_c_bigendian=no
16442 else
16443 ac_cv_c_bigendian=yes
16444 fi
16445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16446 conftest.$ac_objext conftest.beam conftest.$ac_ext
16447 fi
16448
16449 fi
16450 fi
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16452 $as_echo "$ac_cv_c_bigendian" >&6; }
16453 case $ac_cv_c_bigendian in #(
16454 yes)
16455 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16456 ;; #(
16457 no)
16458 ;; #(
16459 universal)
16460
16461 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16462
16463 ;; #(
16464 *)
16465 as_fn_error "unknown endianness
16466 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16467 esac
16468
16469
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16471 $as_echo_n "checking for inline... " >&6; }
16472 if test "${ac_cv_c_inline+set}" = set; then :
16473 $as_echo_n "(cached) " >&6
16474 else
16475 ac_cv_c_inline=no
16476 for ac_kw in inline __inline__ __inline; do
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16479 #ifndef __cplusplus
16480 typedef int foo_t;
16481 static $ac_kw foo_t static_foo () {return 0; }
16482 $ac_kw foo_t foo () {return 0; }
16483 #endif
16484
16485 _ACEOF
16486 if ac_fn_c_try_compile "$LINENO"; then :
16487 ac_cv_c_inline=$ac_kw
16488 fi
16489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490 test "$ac_cv_c_inline" != no && break
16491 done
16492
16493 fi
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16495 $as_echo "$ac_cv_c_inline" >&6; }
16496
16497 case $ac_cv_c_inline in
16498 inline | yes) ;;
16499 *)
16500 case $ac_cv_c_inline in
16501 no) ac_val=;;
16502 *) ac_val=$ac_cv_c_inline;;
16503 esac
16504 cat >>confdefs.h <<_ACEOF
16505 #ifndef __cplusplus
16506 #define inline $ac_val
16507 #endif
16508 _ACEOF
16509 ;;
16510 esac
16511
16512
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16514 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16515 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16516 $as_echo_n "(cached) " >&6
16517 else
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h. */
16520 /* On HP-UX before 11.23, strtold returns a struct instead of
16521 long double. Reject implementations like that, by requiring
16522 compatibility with the C99 prototype. */
16523 #include <stdlib.h>
16524 static long double (*p) (char const *, char **) = strtold;
16525 static long double
16526 test (char const *nptr, char **endptr)
16527 {
16528 long double r;
16529 r = strtold (nptr, endptr);
16530 return r;
16531 }
16532 int
16533 main ()
16534 {
16535 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16536 ;
16537 return 0;
16538 }
16539 _ACEOF
16540 if ac_fn_c_try_link "$LINENO"; then :
16541 gl_cv_func_c99_strtold=yes
16542 else
16543 gl_cv_func_c99_strtold=no
16544 fi
16545 rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547 fi
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16549 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16550 if test $gl_cv_func_c99_strtold = yes; then
16551
16552 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16553
16554 fi
16555
16556
16557 GNULIB_CHDIR=0;
16558 GNULIB_CHOWN=0;
16559 GNULIB_CLOSE=0;
16560 GNULIB_DUP=0;
16561 GNULIB_DUP2=0;
16562 GNULIB_DUP3=0;
16563 GNULIB_ENVIRON=0;
16564 GNULIB_EUIDACCESS=0;
16565 GNULIB_FACCESSAT=0;
16566 GNULIB_FCHDIR=0;
16567 GNULIB_FCHOWNAT=0;
16568 GNULIB_FDATASYNC=0;
16569 GNULIB_FSYNC=0;
16570 GNULIB_FTRUNCATE=0;
16571 GNULIB_GETCWD=0;
16572 GNULIB_GETDOMAINNAME=0;
16573 GNULIB_GETDTABLESIZE=0;
16574 GNULIB_GETGROUPS=0;
16575 GNULIB_GETHOSTNAME=0;
16576 GNULIB_GETLOGIN=0;
16577 GNULIB_GETLOGIN_R=0;
16578 GNULIB_GETPAGESIZE=0;
16579 GNULIB_GETUSERSHELL=0;
16580 GNULIB_GROUP_MEMBER=0;
16581 GNULIB_ISATTY=0;
16582 GNULIB_LCHOWN=0;
16583 GNULIB_LINK=0;
16584 GNULIB_LINKAT=0;
16585 GNULIB_LSEEK=0;
16586 GNULIB_PIPE=0;
16587 GNULIB_PIPE2=0;
16588 GNULIB_PREAD=0;
16589 GNULIB_PWRITE=0;
16590 GNULIB_READ=0;
16591 GNULIB_READLINK=0;
16592 GNULIB_READLINKAT=0;
16593 GNULIB_RMDIR=0;
16594 GNULIB_SETHOSTNAME=0;
16595 GNULIB_SLEEP=0;
16596 GNULIB_SYMLINK=0;
16597 GNULIB_SYMLINKAT=0;
16598 GNULIB_TTYNAME_R=0;
16599 GNULIB_UNISTD_H_NONBLOCKING=0;
16600 GNULIB_UNISTD_H_SIGPIPE=0;
16601 GNULIB_UNLINK=0;
16602 GNULIB_UNLINKAT=0;
16603 GNULIB_USLEEP=0;
16604 GNULIB_WRITE=0;
16605 HAVE_CHOWN=1;
16606 HAVE_DUP2=1;
16607 HAVE_DUP3=1;
16608 HAVE_EUIDACCESS=1;
16609 HAVE_FACCESSAT=1;
16610 HAVE_FCHDIR=1;
16611 HAVE_FCHOWNAT=1;
16612 HAVE_FDATASYNC=1;
16613 HAVE_FSYNC=1;
16614 HAVE_FTRUNCATE=1;
16615 HAVE_GETDTABLESIZE=1;
16616 HAVE_GETGROUPS=1;
16617 HAVE_GETHOSTNAME=1;
16618 HAVE_GETLOGIN=1;
16619 HAVE_GETPAGESIZE=1;
16620 HAVE_GROUP_MEMBER=1;
16621 HAVE_LCHOWN=1;
16622 HAVE_LINK=1;
16623 HAVE_LINKAT=1;
16624 HAVE_PIPE=1;
16625 HAVE_PIPE2=1;
16626 HAVE_PREAD=1;
16627 HAVE_PWRITE=1;
16628 HAVE_READLINK=1;
16629 HAVE_READLINKAT=1;
16630 HAVE_SETHOSTNAME=1;
16631 HAVE_SLEEP=1;
16632 HAVE_SYMLINK=1;
16633 HAVE_SYMLINKAT=1;
16634 HAVE_UNLINKAT=1;
16635 HAVE_USLEEP=1;
16636 HAVE_DECL_ENVIRON=1;
16637 HAVE_DECL_FCHDIR=1;
16638 HAVE_DECL_FDATASYNC=1;
16639 HAVE_DECL_GETDOMAINNAME=1;
16640 HAVE_DECL_GETLOGIN_R=1;
16641 HAVE_DECL_GETPAGESIZE=1;
16642 HAVE_DECL_GETUSERSHELL=1;
16643 HAVE_DECL_SETHOSTNAME=1;
16644 HAVE_DECL_TTYNAME_R=1;
16645 HAVE_OS_H=0;
16646 HAVE_SYS_PARAM_H=0;
16647 REPLACE_CHOWN=0;
16648 REPLACE_CLOSE=0;
16649 REPLACE_DUP=0;
16650 REPLACE_DUP2=0;
16651 REPLACE_FCHOWNAT=0;
16652 REPLACE_FTRUNCATE=0;
16653 REPLACE_GETCWD=0;
16654 REPLACE_GETDOMAINNAME=0;
16655 REPLACE_GETLOGIN_R=0;
16656 REPLACE_GETGROUPS=0;
16657 REPLACE_GETPAGESIZE=0;
16658 REPLACE_ISATTY=0;
16659 REPLACE_LCHOWN=0;
16660 REPLACE_LINK=0;
16661 REPLACE_LINKAT=0;
16662 REPLACE_LSEEK=0;
16663 REPLACE_PREAD=0;
16664 REPLACE_PWRITE=0;
16665 REPLACE_READ=0;
16666 REPLACE_READLINK=0;
16667 REPLACE_RMDIR=0;
16668 REPLACE_SLEEP=0;
16669 REPLACE_SYMLINK=0;
16670 REPLACE_TTYNAME_R=0;
16671 REPLACE_UNLINK=0;
16672 REPLACE_UNLINKAT=0;
16673 REPLACE_USLEEP=0;
16674 REPLACE_WRITE=0;
16675 UNISTD_H_HAVE_WINSOCK2_H=0;
16676 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16687 $as_echo_n "checking if environ is properly declared... " >&6; }
16688 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16689 $as_echo_n "(cached) " >&6
16690 else
16691
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693 /* end confdefs.h. */
16694 #if HAVE_UNISTD_H
16695 #include <unistd.h>
16696 #endif
16697 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16698 #include <stdlib.h>
16699
16700 extern struct { int foo; } environ;
16701 int
16702 main ()
16703 {
16704 environ.foo = 1;
16705 ;
16706 return 0;
16707 }
16708 _ACEOF
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710 gt_cv_var_environ_declaration=no
16711 else
16712 gt_cv_var_environ_declaration=yes
16713 fi
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 fi
16716
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16718 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16719 if test $gt_cv_var_environ_declaration = yes; then
16720
16721 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16722
16723 fi
16724
16725
16726 if test $gt_cv_var_environ_declaration != yes; then
16727 HAVE_DECL_ENVIRON=0
16728 fi
16729
16730
16731
16732
16733
16734
16735
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16737 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16738 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16739 $as_echo_n "(cached) " >&6
16740 else
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743
16744 #include <sys/types.h>
16745 #include <sys/stat.h>
16746 int
16747 main ()
16748 {
16749 struct stat s; s.st_dm_mode;
16750 ;
16751 return 0;
16752 }
16753 _ACEOF
16754 if ac_fn_c_try_compile "$LINENO"; then :
16755 ac_cv_struct_st_dm_mode=yes
16756 else
16757 ac_cv_struct_st_dm_mode=no
16758 fi
16759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16760 fi
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16762 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16763
16764 if test $ac_cv_struct_st_dm_mode = yes; then
16765
16766 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16767
16768 fi
16769
16770
16771 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16772 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16773 ac_have_decl=1
16774 else
16775 ac_have_decl=0
16776 fi
16777
16778 cat >>confdefs.h <<_ACEOF
16779 #define HAVE_DECL_STRMODE $ac_have_decl
16780 _ACEOF
16781
16782
16783 GNULIB__EXIT=0;
16784 GNULIB_ATOLL=0;
16785 GNULIB_CALLOC_POSIX=0;
16786 GNULIB_CANONICALIZE_FILE_NAME=0;
16787 GNULIB_GETLOADAVG=0;
16788 GNULIB_GETSUBOPT=0;
16789 GNULIB_GRANTPT=0;
16790 GNULIB_MALLOC_POSIX=0;
16791 GNULIB_MBTOWC=0;
16792 GNULIB_MKDTEMP=0;
16793 GNULIB_MKOSTEMP=0;
16794 GNULIB_MKOSTEMPS=0;
16795 GNULIB_MKSTEMP=0;
16796 GNULIB_MKSTEMPS=0;
16797 GNULIB_POSIX_OPENPT=0;
16798 GNULIB_PTSNAME=0;
16799 GNULIB_PTSNAME_R=0;
16800 GNULIB_PUTENV=0;
16801 GNULIB_RANDOM=0;
16802 GNULIB_RANDOM_R=0;
16803 GNULIB_REALLOC_POSIX=0;
16804 GNULIB_REALPATH=0;
16805 GNULIB_RPMATCH=0;
16806 GNULIB_SETENV=0;
16807 GNULIB_STRTOD=0;
16808 GNULIB_STRTOLL=0;
16809 GNULIB_STRTOULL=0;
16810 GNULIB_SYSTEM_POSIX=0;
16811 GNULIB_UNLOCKPT=0;
16812 GNULIB_UNSETENV=0;
16813 GNULIB_WCTOMB=0;
16814 HAVE__EXIT=1;
16815 HAVE_ATOLL=1;
16816 HAVE_CANONICALIZE_FILE_NAME=1;
16817 HAVE_DECL_GETLOADAVG=1;
16818 HAVE_GETSUBOPT=1;
16819 HAVE_GRANTPT=1;
16820 HAVE_MKDTEMP=1;
16821 HAVE_MKOSTEMP=1;
16822 HAVE_MKOSTEMPS=1;
16823 HAVE_MKSTEMP=1;
16824 HAVE_MKSTEMPS=1;
16825 HAVE_POSIX_OPENPT=1;
16826 HAVE_PTSNAME=1;
16827 HAVE_PTSNAME_R=1;
16828 HAVE_RANDOM=1;
16829 HAVE_RANDOM_H=1;
16830 HAVE_RANDOM_R=1;
16831 HAVE_REALPATH=1;
16832 HAVE_RPMATCH=1;
16833 HAVE_SETENV=1;
16834 HAVE_DECL_SETENV=1;
16835 HAVE_STRTOD=1;
16836 HAVE_STRTOLL=1;
16837 HAVE_STRTOULL=1;
16838 HAVE_STRUCT_RANDOM_DATA=1;
16839 HAVE_SYS_LOADAVG_H=0;
16840 HAVE_UNLOCKPT=1;
16841 HAVE_DECL_UNSETENV=1;
16842 REPLACE_CALLOC=0;
16843 REPLACE_CANONICALIZE_FILE_NAME=0;
16844 REPLACE_MALLOC=0;
16845 REPLACE_MBTOWC=0;
16846 REPLACE_MKSTEMP=0;
16847 REPLACE_PTSNAME_R=0;
16848 REPLACE_PUTENV=0;
16849 REPLACE_RANDOM_R=0;
16850 REPLACE_REALLOC=0;
16851 REPLACE_REALPATH=0;
16852 REPLACE_SETENV=0;
16853 REPLACE_STRTOD=0;
16854 REPLACE_UNSETENV=0;
16855 REPLACE_WCTOMB=0;
16856
16857
16858
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16860 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16861 if test "${gl_cv_have_include_next+set}" = set; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16864 rm -rf conftestd1a conftestd1b conftestd2
16865 mkdir conftestd1a conftestd1b conftestd2
16866 cat <<EOF > conftestd1a/conftest.h
16867 #define DEFINED_IN_CONFTESTD1
16868 #include_next <conftest.h>
16869 #ifdef DEFINED_IN_CONFTESTD2
16870 int foo;
16871 #else
16872 #error "include_next doesn't work"
16873 #endif
16874 EOF
16875 cat <<EOF > conftestd1b/conftest.h
16876 #define DEFINED_IN_CONFTESTD1
16877 #include <stdio.h>
16878 #include_next <conftest.h>
16879 #ifdef DEFINED_IN_CONFTESTD2
16880 int foo;
16881 #else
16882 #error "include_next doesn't work"
16883 #endif
16884 EOF
16885 cat <<EOF > conftestd2/conftest.h
16886 #ifndef DEFINED_IN_CONFTESTD1
16887 #error "include_next test doesn't work"
16888 #endif
16889 #define DEFINED_IN_CONFTESTD2
16890 EOF
16891 gl_save_CPPFLAGS="$CPPFLAGS"
16892 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h. */
16895 #include <conftest.h>
16896 _ACEOF
16897 if ac_fn_c_try_compile "$LINENO"; then :
16898 gl_cv_have_include_next=yes
16899 else
16900 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16903 #include <conftest.h>
16904 _ACEOF
16905 if ac_fn_c_try_compile "$LINENO"; then :
16906 gl_cv_have_include_next=buggy
16907 else
16908 gl_cv_have_include_next=no
16909 fi
16910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16911
16912 fi
16913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16914 CPPFLAGS="$gl_save_CPPFLAGS"
16915 rm -rf conftestd1a conftestd1b conftestd2
16916
16917 fi
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16919 $as_echo "$gl_cv_have_include_next" >&6; }
16920 PRAGMA_SYSTEM_HEADER=
16921 if test $gl_cv_have_include_next = yes; then
16922 INCLUDE_NEXT=include_next
16923 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16924 if test -n "$GCC"; then
16925 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16926 fi
16927 else
16928 if test $gl_cv_have_include_next = buggy; then
16929 INCLUDE_NEXT=include
16930 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16931 else
16932 INCLUDE_NEXT=include
16933 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16934 fi
16935 fi
16936
16937
16938
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16940 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16941 if test "${gl_cv_pragma_columns+set}" = set; then :
16942 $as_echo_n "(cached) " >&6
16943 else
16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945 /* end confdefs.h. */
16946
16947 #ifdef __TANDEM
16948 choke me
16949 #endif
16950
16951 _ACEOF
16952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16953 $EGREP "choke me" >/dev/null 2>&1; then :
16954 gl_cv_pragma_columns=yes
16955 else
16956 gl_cv_pragma_columns=no
16957 fi
16958 rm -f conftest*
16959
16960
16961 fi
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16963 $as_echo "$gl_cv_pragma_columns" >&6; }
16964 if test $gl_cv_pragma_columns = yes; then
16965 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16966 else
16967 PRAGMA_COLUMNS=
16968 fi
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986 if test $gl_cv_have_include_next = yes; then
16987 gl_cv_next_getopt_h='<'getopt.h'>'
16988 else
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16990 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16991 if test "${gl_cv_next_getopt_h+set}" = set; then :
16992 $as_echo_n "(cached) " >&6
16993 else
16994
16995 if test $ac_cv_header_getopt_h = yes; then
16996
16997
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17000 #include <getopt.h>
17001
17002 _ACEOF
17003 case "$host_os" in
17004 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17005 *) gl_absname_cpp="$ac_cpp" ;;
17006 esac
17007
17008 case "$host_os" in
17009 mingw*)
17010 gl_dirsep_regex='[/\\]'
17011 ;;
17012 *)
17013 gl_dirsep_regex='\/'
17014 ;;
17015 esac
17016 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17017
17018 gl_header_literal_regex=`echo 'getopt.h' \
17019 | sed -e "$gl_make_literal_regex_sed"`
17020 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17021 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17022 s|^/[^/]|//&|
17023 p
17024 q
17025 }'
17026 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17027 sed -n "$gl_absolute_header_sed"`'"'
17028 else
17029 gl_cv_next_getopt_h='<'getopt.h'>'
17030 fi
17031
17032
17033 fi
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17035 $as_echo "$gl_cv_next_getopt_h" >&6; }
17036 fi
17037 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17038
17039 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17040 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17041 gl_next_as_first_directive='<'getopt.h'>'
17042 else
17043 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17044 gl_next_as_first_directive=$gl_cv_next_getopt_h
17045 fi
17046 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17047
17048
17049
17050
17051 if test $ac_cv_header_getopt_h = yes; then
17052 HAVE_GETOPT_H=1
17053 else
17054 HAVE_GETOPT_H=0
17055 fi
17056
17057
17058 gl_replace_getopt=
17059
17060 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17061 for ac_header in getopt.h
17062 do :
17063 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17064 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17065 cat >>confdefs.h <<_ACEOF
17066 #define HAVE_GETOPT_H 1
17067 _ACEOF
17068
17069 else
17070 gl_replace_getopt=yes
17071 fi
17072
17073 done
17074
17075 fi
17076
17077 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17078 for ac_func in getopt_long_only
17079 do :
17080 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17081 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17082 cat >>confdefs.h <<_ACEOF
17083 #define HAVE_GETOPT_LONG_ONLY 1
17084 _ACEOF
17085
17086 else
17087 gl_replace_getopt=yes
17088 fi
17089 done
17090
17091 fi
17092
17093 if test -z "$gl_replace_getopt"; then
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17095 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17096 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17097 $as_echo_n "(cached) " >&6
17098 else
17099
17100 if test $cross_compiling = no; then
17101 if test "$cross_compiling" = yes; then :
17102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17104 as_fn_error "cannot run test program while cross compiling
17105 See \`config.log' for more details." "$LINENO" 5; }
17106 else
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h. */
17109
17110 #include <unistd.h>
17111 #include <stdlib.h>
17112 #include <string.h>
17113
17114 int
17115 main ()
17116 {
17117 static char program[] = "program";
17118 static char a[] = "-a";
17119 static char foo[] = "foo";
17120 static char bar[] = "bar";
17121 char *argv[] = { program, a, foo, bar, NULL };
17122 int c;
17123
17124 c = getopt (4, argv, "ab");
17125 if (!(c == 'a'))
17126 return 1;
17127 c = getopt (4, argv, "ab");
17128 if (!(c == -1))
17129 return 2;
17130 if (!(optind == 2))
17131 return 3;
17132 return 0;
17133 }
17134
17135 _ACEOF
17136 if ac_fn_c_try_run "$LINENO"; then :
17137 gl_cv_func_getopt_posix=maybe
17138 else
17139 gl_cv_func_getopt_posix=no
17140 fi
17141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17142 conftest.$ac_objext conftest.beam conftest.$ac_ext
17143 fi
17144
17145 if test $gl_cv_func_getopt_posix = maybe; then
17146 if test "$cross_compiling" = yes; then :
17147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17149 as_fn_error "cannot run test program while cross compiling
17150 See \`config.log' for more details." "$LINENO" 5; }
17151 else
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h. */
17154
17155 #include <unistd.h>
17156 #include <stdlib.h>
17157 #include <string.h>
17158
17159 int
17160 main ()
17161 {
17162 static char program[] = "program";
17163 static char donald[] = "donald";
17164 static char p[] = "-p";
17165 static char billy[] = "billy";
17166 static char duck[] = "duck";
17167 static char a[] = "-a";
17168 static char bar[] = "bar";
17169 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17170 int c;
17171
17172 c = getopt (7, argv, "+abp:q:");
17173 if (!(c == -1))
17174 return 4;
17175 if (!(strcmp (argv[0], "program") == 0))
17176 return 5;
17177 if (!(strcmp (argv[1], "donald") == 0))
17178 return 6;
17179 if (!(strcmp (argv[2], "-p") == 0))
17180 return 7;
17181 if (!(strcmp (argv[3], "billy") == 0))
17182 return 8;
17183 if (!(strcmp (argv[4], "duck") == 0))
17184 return 9;
17185 if (!(strcmp (argv[5], "-a") == 0))
17186 return 10;
17187 if (!(strcmp (argv[6], "bar") == 0))
17188 return 11;
17189 if (!(optind == 1))
17190 return 12;
17191 return 0;
17192 }
17193
17194 _ACEOF
17195 if ac_fn_c_try_run "$LINENO"; then :
17196 gl_cv_func_getopt_posix=maybe
17197 else
17198 gl_cv_func_getopt_posix=no
17199 fi
17200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17201 conftest.$ac_objext conftest.beam conftest.$ac_ext
17202 fi
17203
17204 fi
17205 if test $gl_cv_func_getopt_posix = maybe; then
17206 if test "$cross_compiling" = yes; then :
17207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17209 as_fn_error "cannot run test program while cross compiling
17210 See \`config.log' for more details." "$LINENO" 5; }
17211 else
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17214
17215 #include <unistd.h>
17216 #include <stdlib.h>
17217 #include <string.h>
17218
17219 int
17220 main ()
17221 {
17222 static char program[] = "program";
17223 static char ab[] = "-ab";
17224 char *argv[3] = { program, ab, NULL };
17225 if (getopt (2, argv, "ab:") != 'a')
17226 return 13;
17227 if (getopt (2, argv, "ab:") != '?')
17228 return 14;
17229 if (optopt != 'b')
17230 return 15;
17231 if (optind != 2)
17232 return 16;
17233 return 0;
17234 }
17235
17236 _ACEOF
17237 if ac_fn_c_try_run "$LINENO"; then :
17238 gl_cv_func_getopt_posix=yes
17239 else
17240 gl_cv_func_getopt_posix=no
17241 fi
17242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17243 conftest.$ac_objext conftest.beam conftest.$ac_ext
17244 fi
17245
17246 fi
17247 else
17248 case "$host_os" in
17249 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17250 *) gl_cv_func_getopt_posix="guessing yes";;
17251 esac
17252 fi
17253
17254 fi
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17256 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17257 case "$gl_cv_func_getopt_posix" in
17258 *no) gl_replace_getopt=yes ;;
17259 esac
17260 fi
17261
17262 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17264 $as_echo_n "checking for working GNU getopt function... " >&6; }
17265 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17266 $as_echo_n "(cached) " >&6
17267 else
17268 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17269 # optstring is necessary for programs like m4 that have POSIX-mandated
17270 # semantics for supporting options interspersed with files.
17271 # Also, since getopt_long is a GNU extension, we require optind=0.
17272 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17273 # so take care to revert to the correct (non-)export state.
17274 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17275 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17276 xx) gl_had_POSIXLY_CORRECT=exported ;;
17277 x) gl_had_POSIXLY_CORRECT=yes ;;
17278 *) gl_had_POSIXLY_CORRECT= ;;
17279 esac
17280 POSIXLY_CORRECT=1
17281 export POSIXLY_CORRECT
17282 if test "$cross_compiling" = yes; then :
17283 gl_cv_func_getopt_gnu="guessing no"
17284
17285 else
17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h. */
17288 #include <getopt.h>
17289 #include <stddef.h>
17290 #include <string.h>
17291
17292 #include <stdlib.h>
17293 #if defined __MACH__ && defined __APPLE__
17294 /* Avoid a crash on Mac OS X. */
17295 #include <mach/mach.h>
17296 #include <mach/mach_error.h>
17297 #include <mach/thread_status.h>
17298 #include <mach/exception.h>
17299 #include <mach/task.h>
17300 #include <pthread.h>
17301 /* The exception port on which our thread listens. */
17302 static mach_port_t our_exception_port;
17303 /* The main function of the thread listening for exceptions of type
17304 EXC_BAD_ACCESS. */
17305 static void *
17306 mach_exception_thread (void *arg)
17307 {
17308 /* Buffer for a message to be received. */
17309 struct {
17310 mach_msg_header_t head;
17311 mach_msg_body_t msgh_body;
17312 char data[1024];
17313 } msg;
17314 mach_msg_return_t retval;
17315 /* Wait for a message on the exception port. */
17316 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17317 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17318 if (retval != MACH_MSG_SUCCESS)
17319 abort ();
17320 exit (1);
17321 }
17322 static void
17323 nocrash_init (void)
17324 {
17325 mach_port_t self = mach_task_self ();
17326 /* Allocate a port on which the thread shall listen for exceptions. */
17327 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17328 == KERN_SUCCESS) {
17329 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17330 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17331 MACH_MSG_TYPE_MAKE_SEND)
17332 == KERN_SUCCESS) {
17333 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17334 for us. */
17335 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17336 /* Create the thread listening on the exception port. */
17337 pthread_attr_t attr;
17338 pthread_t thread;
17339 if (pthread_attr_init (&attr) == 0
17340 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17341 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17342 pthread_attr_destroy (&attr);
17343 /* Replace the exception port info for these exceptions with our own.
17344 Note that we replace the exception port for the entire task, not only
17345 for a particular thread. This has the effect that when our exception
17346 port gets the message, the thread specific exception port has already
17347 been asked, and we don't need to bother about it.
17348 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17349 task_set_exception_ports (self, mask, our_exception_port,
17350 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17351 }
17352 }
17353 }
17354 }
17355 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17356 /* Avoid a crash on native Windows. */
17357 #define WIN32_LEAN_AND_MEAN
17358 #include <windows.h>
17359 #include <winerror.h>
17360 static LONG WINAPI
17361 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17362 {
17363 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17364 {
17365 case EXCEPTION_ACCESS_VIOLATION:
17366 case EXCEPTION_IN_PAGE_ERROR:
17367 case EXCEPTION_STACK_OVERFLOW:
17368 case EXCEPTION_GUARD_PAGE:
17369 case EXCEPTION_PRIV_INSTRUCTION:
17370 case EXCEPTION_ILLEGAL_INSTRUCTION:
17371 case EXCEPTION_DATATYPE_MISALIGNMENT:
17372 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17373 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17374 exit (1);
17375 }
17376 return EXCEPTION_CONTINUE_SEARCH;
17377 }
17378 static void
17379 nocrash_init (void)
17380 {
17381 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17382 }
17383 #else
17384 /* Avoid a crash on POSIX systems. */
17385 #include <signal.h>
17386 /* A POSIX signal handler. */
17387 static void
17388 exception_handler (int sig)
17389 {
17390 exit (1);
17391 }
17392 static void
17393 nocrash_init (void)
17394 {
17395 #ifdef SIGSEGV
17396 signal (SIGSEGV, exception_handler);
17397 #endif
17398 #ifdef SIGBUS
17399 signal (SIGBUS, exception_handler);
17400 #endif
17401 }
17402 #endif
17403
17404
17405 int
17406 main ()
17407 {
17408
17409 int result = 0;
17410
17411 nocrash_init();
17412
17413 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17414 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17415 OSF/1 5.1, Solaris 10. */
17416 {
17417 static char conftest[] = "conftest";
17418 static char plus[] = "-+";
17419 char *argv[3] = { conftest, plus, NULL };
17420 opterr = 0;
17421 if (getopt (2, argv, "+a") != '?')
17422 result |= 1;
17423 }
17424 /* This code succeeds on glibc 2.8, mingw,
17425 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17426 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17427 {
17428 static char program[] = "program";
17429 static char p[] = "-p";
17430 static char foo[] = "foo";
17431 static char bar[] = "bar";
17432 char *argv[] = { program, p, foo, bar, NULL };
17433
17434 optind = 1;
17435 if (getopt (4, argv, "p::") != 'p')
17436 result |= 2;
17437 else if (optarg != NULL)
17438 result |= 4;
17439 else if (getopt (4, argv, "p::") != -1)
17440 result |= 6;
17441 else if (optind != 2)
17442 result |= 8;
17443 }
17444 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17445 {
17446 static char program[] = "program";
17447 static char foo[] = "foo";
17448 static char p[] = "-p";
17449 char *argv[] = { program, foo, p, NULL };
17450 optind = 0;
17451 if (getopt (3, argv, "-p") != 1)
17452 result |= 16;
17453 else if (getopt (3, argv, "-p") != 'p')
17454 result |= 16;
17455 }
17456 /* This code fails on glibc 2.11. */
17457 {
17458 static char program[] = "program";
17459 static char b[] = "-b";
17460 static char a[] = "-a";
17461 char *argv[] = { program, b, a, NULL };
17462 optind = opterr = 0;
17463 if (getopt (3, argv, "+:a:b") != 'b')
17464 result |= 32;
17465 else if (getopt (3, argv, "+:a:b") != ':')
17466 result |= 32;
17467 }
17468 /* This code dumps core on glibc 2.14. */
17469 {
17470 static char program[] = "program";
17471 static char w[] = "-W";
17472 static char dummy[] = "dummy";
17473 char *argv[] = { program, w, dummy, NULL };
17474 optind = opterr = 1;
17475 if (getopt (3, argv, "W;") != 'W')
17476 result |= 64;
17477 }
17478 return result;
17479
17480 ;
17481 return 0;
17482 }
17483 _ACEOF
17484 if ac_fn_c_try_run "$LINENO"; then :
17485 gl_cv_func_getopt_gnu=yes
17486 else
17487 gl_cv_func_getopt_gnu=no
17488 fi
17489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17490 conftest.$ac_objext conftest.beam conftest.$ac_ext
17491 fi
17492
17493 case $gl_had_POSIXLY_CORRECT in
17494 exported) ;;
17495 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17496 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17497 esac
17498
17499 fi
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17501 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17502 if test "$gl_cv_func_getopt_gnu" != yes; then
17503 gl_replace_getopt=yes
17504 else
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17506 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17507 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17508 $as_echo_n "(cached) " >&6
17509 else
17510 if test "$cross_compiling" = yes; then :
17511 case "$host_os" in
17512 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17513 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17514 esac
17515
17516 else
17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h. */
17519 #include <getopt.h>
17520 #include <stddef.h>
17521 #include <string.h>
17522
17523 int
17524 main ()
17525 {
17526 static const struct option long_options[] =
17527 {
17528 { "xtremely-",no_argument, NULL, 1003 },
17529 { "xtra", no_argument, NULL, 1001 },
17530 { "xtreme", no_argument, NULL, 1002 },
17531 { "xtremely", no_argument, NULL, 1003 },
17532 { NULL, 0, NULL, 0 }
17533 };
17534 /* This code fails on OpenBSD 5.0. */
17535 {
17536 static char program[] = "program";
17537 static char xtremel[] = "--xtremel";
17538 char *argv[] = { program, xtremel, NULL };
17539 int option_index;
17540 optind = 1; opterr = 0;
17541 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17542 return 1;
17543 }
17544 return 0;
17545
17546 ;
17547 return 0;
17548 }
17549 _ACEOF
17550 if ac_fn_c_try_run "$LINENO"; then :
17551 gl_cv_func_getopt_long_gnu=yes
17552 else
17553 gl_cv_func_getopt_long_gnu=no
17554 fi
17555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17556 conftest.$ac_objext conftest.beam conftest.$ac_ext
17557 fi
17558
17559
17560 fi
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17562 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17563 case "$gl_cv_func_getopt_long_gnu" in
17564 *yes) ;;
17565 *) gl_replace_getopt=yes ;;
17566 esac
17567 fi
17568 fi
17569
17570
17571
17572
17573
17574
17575 REPLACE_GETOPT=0
17576 if test -n "$gl_replace_getopt"; then
17577 REPLACE_GETOPT=1
17578 fi
17579
17580 if test $REPLACE_GETOPT = 1; then
17581
17582 GETOPT_H=getopt.h
17583
17584 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17585
17586
17587
17588 fi
17589
17590 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17591 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17592 ac_have_decl=1
17593 else
17594 ac_have_decl=0
17595 fi
17596
17597 cat >>confdefs.h <<_ACEOF
17598 #define HAVE_DECL_GETENV $ac_have_decl
17599 _ACEOF
17600
17601 :
17602
17603
17604
17605
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17607 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17608 if test "${ac_cv_c_restrict+set}" = set; then :
17609 $as_echo_n "(cached) " >&6
17610 else
17611 ac_cv_c_restrict=no
17612 # The order here caters to the fact that C++ does not require restrict.
17613 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17616 typedef int * int_ptr;
17617 int foo (int_ptr $ac_kw ip) {
17618 return ip[0];
17619 }
17620 int
17621 main ()
17622 {
17623 int s[1];
17624 int * $ac_kw t = s;
17625 t[0] = 0;
17626 return foo(t)
17627 ;
17628 return 0;
17629 }
17630 _ACEOF
17631 if ac_fn_c_try_compile "$LINENO"; then :
17632 ac_cv_c_restrict=$ac_kw
17633 fi
17634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17635 test "$ac_cv_c_restrict" != no && break
17636 done
17637
17638 fi
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17640 $as_echo "$ac_cv_c_restrict" >&6; }
17641
17642 case $ac_cv_c_restrict in
17643 restrict) ;;
17644 no) $as_echo "#define restrict /**/" >>confdefs.h
17645 ;;
17646 *) cat >>confdefs.h <<_ACEOF
17647 #define restrict $ac_cv_c_restrict
17648 _ACEOF
17649 ;;
17650 esac
17651
17652
17653 GNULIB_GETTIMEOFDAY=0;
17654 HAVE_GETTIMEOFDAY=1;
17655 HAVE_STRUCT_TIMEVAL=1;
17656 HAVE_SYS_TIME_H=1;
17657 REPLACE_GETTIMEOFDAY=0;
17658 REPLACE_STRUCT_TIMEVAL=0;
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675 if test $gl_cv_have_include_next = yes; then
17676 gl_cv_next_sys_time_h='<'sys/time.h'>'
17677 else
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17679 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17680 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17681 $as_echo_n "(cached) " >&6
17682 else
17683
17684 if test $ac_cv_header_sys_time_h = yes; then
17685
17686
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17689 #include <sys/time.h>
17690
17691 _ACEOF
17692 case "$host_os" in
17693 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17694 *) gl_absname_cpp="$ac_cpp" ;;
17695 esac
17696
17697 case "$host_os" in
17698 mingw*)
17699 gl_dirsep_regex='[/\\]'
17700 ;;
17701 *)
17702 gl_dirsep_regex='\/'
17703 ;;
17704 esac
17705 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17706
17707 gl_header_literal_regex=`echo 'sys/time.h' \
17708 | sed -e "$gl_make_literal_regex_sed"`
17709 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17710 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17711 s|^/[^/]|//&|
17712 p
17713 q
17714 }'
17715 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17716 sed -n "$gl_absolute_header_sed"`'"'
17717 else
17718 gl_cv_next_sys_time_h='<'sys/time.h'>'
17719 fi
17720
17721
17722 fi
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17724 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17725 fi
17726 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17727
17728 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17729 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17730 gl_next_as_first_directive='<'sys/time.h'>'
17731 else
17732 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17733 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17734 fi
17735 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17736
17737
17738
17739
17740
17741 if test $ac_cv_header_sys_time_h != yes; then
17742 HAVE_SYS_TIME_H=0
17743 fi
17744
17745
17746
17747
17748
17749 if test $ac_cv_header_sys_socket_h != yes; then
17750 for ac_header in winsock2.h
17751 do :
17752 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17753 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17754 cat >>confdefs.h <<_ACEOF
17755 #define HAVE_WINSOCK2_H 1
17756 _ACEOF
17757
17758 fi
17759
17760 done
17761
17762 fi
17763 if test "$ac_cv_header_winsock2_h" = yes; then
17764 HAVE_WINSOCK2_H=1
17765 UNISTD_H_HAVE_WINSOCK2_H=1
17766 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17767 else
17768 HAVE_WINSOCK2_H=0
17769 fi
17770
17771
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17773 $as_echo_n "checking for struct timeval... " >&6; }
17774 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17775 $as_echo_n "(cached) " >&6
17776 else
17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778 /* end confdefs.h. */
17779 #if HAVE_SYS_TIME_H
17780 #include <sys/time.h>
17781 #endif
17782 #include <time.h>
17783 #if HAVE_WINSOCK2_H
17784 # include <winsock2.h>
17785 #endif
17786
17787 int
17788 main ()
17789 {
17790 static struct timeval x; x.tv_sec = x.tv_usec;
17791 ;
17792 return 0;
17793 }
17794 _ACEOF
17795 if ac_fn_c_try_compile "$LINENO"; then :
17796 gl_cv_sys_struct_timeval=yes
17797 else
17798 gl_cv_sys_struct_timeval=no
17799 fi
17800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17801
17802 fi
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17804 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17805 if test $gl_cv_sys_struct_timeval != yes; then
17806 HAVE_STRUCT_TIMEVAL=0
17807 else
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17809 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17810 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17811 $as_echo_n "(cached) " >&6
17812 else
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17815 #if HAVE_SYS_TIME_H
17816 #include <sys/time.h>
17817 #endif
17818 #include <time.h>
17819 #if HAVE_WINSOCK2_H
17820 # include <winsock2.h>
17821 #endif
17822
17823 int
17824 main ()
17825 {
17826 static struct timeval x;
17827 typedef int verify_tv_sec_type[
17828 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17829 ];
17830
17831 ;
17832 return 0;
17833 }
17834 _ACEOF
17835 if ac_fn_c_try_compile "$LINENO"; then :
17836 gl_cv_sys_struct_timeval_tv_sec=yes
17837 else
17838 gl_cv_sys_struct_timeval_tv_sec=no
17839 fi
17840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17841
17842 fi
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17844 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17845 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17846 REPLACE_STRUCT_TIMEVAL=1
17847 fi
17848 fi
17849
17850
17851
17852
17853
17854
17855
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17857 $as_echo_n "checking for unsigned long long int... " >&6; }
17858 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17859 $as_echo_n "(cached) " >&6
17860 else
17861 ac_cv_type_unsigned_long_long_int=yes
17862 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17864 /* end confdefs.h. */
17865
17866 /* For now, do not test the preprocessor; as of 2007 there are too many
17867 implementations with broken preprocessors. Perhaps this can
17868 be revisited in 2012. In the meantime, code should not expect
17869 #if to work with literals wider than 32 bits. */
17870 /* Test literals. */
17871 long long int ll = 9223372036854775807ll;
17872 long long int nll = -9223372036854775807LL;
17873 unsigned long long int ull = 18446744073709551615ULL;
17874 /* Test constant expressions. */
17875 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17876 ? 1 : -1)];
17877 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17878 ? 1 : -1)];
17879 int i = 63;
17880 int
17881 main ()
17882 {
17883 /* Test availability of runtime routines for shift and division. */
17884 long long int llmax = 9223372036854775807ll;
17885 unsigned long long int ullmax = 18446744073709551615ull;
17886 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17887 | (llmax / ll) | (llmax % ll)
17888 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17889 | (ullmax / ull) | (ullmax % ull));
17890 ;
17891 return 0;
17892 }
17893
17894 _ACEOF
17895 if ac_fn_c_try_link "$LINENO"; then :
17896
17897 else
17898 ac_cv_type_unsigned_long_long_int=no
17899 fi
17900 rm -f core conftest.err conftest.$ac_objext \
17901 conftest$ac_exeext conftest.$ac_ext
17902 fi
17903 fi
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17905 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17906 if test $ac_cv_type_unsigned_long_long_int = yes; then
17907
17908 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17909
17910 fi
17911
17912
17913
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17915 $as_echo_n "checking for long long int... " >&6; }
17916 if test "${ac_cv_type_long_long_int+set}" = set; then :
17917 $as_echo_n "(cached) " >&6
17918 else
17919 ac_cv_type_long_long_int=yes
17920 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17921 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17922 if test $ac_cv_type_long_long_int = yes; then
17923 if test "$cross_compiling" = yes; then :
17924 :
17925 else
17926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17927 /* end confdefs.h. */
17928 #include <limits.h>
17929 #ifndef LLONG_MAX
17930 # define HALF \
17931 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17932 # define LLONG_MAX (HALF - 1 + HALF)
17933 #endif
17934 int
17935 main ()
17936 {
17937 long long int n = 1;
17938 int i;
17939 for (i = 0; ; i++)
17940 {
17941 long long int m = n << i;
17942 if (m >> i != n)
17943 return 1;
17944 if (LLONG_MAX / 2 < m)
17945 break;
17946 }
17947 return 0;
17948 ;
17949 return 0;
17950 }
17951 _ACEOF
17952 if ac_fn_c_try_run "$LINENO"; then :
17953
17954 else
17955 ac_cv_type_long_long_int=no
17956 fi
17957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17958 conftest.$ac_objext conftest.beam conftest.$ac_ext
17959 fi
17960
17961 fi
17962 fi
17963 fi
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17965 $as_echo "$ac_cv_type_long_long_int" >&6; }
17966 if test $ac_cv_type_long_long_int = yes; then
17967
17968 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17969
17970 fi
17971
17972
17973
17974
17975
17976
17977 gl_cv_c_multiarch=no
17978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979 /* end confdefs.h. */
17980 #ifndef __APPLE_CC__
17981 not a universal capable compiler
17982 #endif
17983 typedef int dummy;
17984
17985 _ACEOF
17986 if ac_fn_c_try_compile "$LINENO"; then :
17987
17988 arch=
17989 prev=
17990 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17991 if test -n "$prev"; then
17992 case $word in
17993 i?86 | x86_64 | ppc | ppc64)
17994 if test -z "$arch" || test "$arch" = "$word"; then
17995 arch="$word"
17996 else
17997 gl_cv_c_multiarch=yes
17998 fi
17999 ;;
18000 esac
18001 prev=
18002 else
18003 if test "x$word" = "x-arch"; then
18004 prev=arch
18005 fi
18006 fi
18007 done
18008
18009 fi
18010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18011 if test $gl_cv_c_multiarch = yes; then
18012 APPLE_UNIVERSAL_BUILD=1
18013 else
18014 APPLE_UNIVERSAL_BUILD=0
18015 fi
18016
18017
18018
18019
18020
18021 if test $ac_cv_type_long_long_int = yes; then
18022 HAVE_LONG_LONG_INT=1
18023 else
18024 HAVE_LONG_LONG_INT=0
18025 fi
18026
18027
18028 if test $ac_cv_type_unsigned_long_long_int = yes; then
18029 HAVE_UNSIGNED_LONG_LONG_INT=1
18030 else
18031 HAVE_UNSIGNED_LONG_LONG_INT=0
18032 fi
18033
18034
18035
18036 if test $ac_cv_header_wchar_h = yes; then
18037 HAVE_WCHAR_H=1
18038 else
18039 HAVE_WCHAR_H=0
18040 fi
18041
18042
18043 if test $ac_cv_header_inttypes_h = yes; then
18044 HAVE_INTTYPES_H=1
18045 else
18046 HAVE_INTTYPES_H=0
18047 fi
18048
18049
18050 if test $ac_cv_header_sys_types_h = yes; then
18051 HAVE_SYS_TYPES_H=1
18052 else
18053 HAVE_SYS_TYPES_H=0
18054 fi
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066 if test $gl_cv_have_include_next = yes; then
18067 gl_cv_next_stdint_h='<'stdint.h'>'
18068 else
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18070 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18071 if test "${gl_cv_next_stdint_h+set}" = set; then :
18072 $as_echo_n "(cached) " >&6
18073 else
18074
18075 if test $ac_cv_header_stdint_h = yes; then
18076
18077
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18080 #include <stdint.h>
18081
18082 _ACEOF
18083 case "$host_os" in
18084 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18085 *) gl_absname_cpp="$ac_cpp" ;;
18086 esac
18087
18088 case "$host_os" in
18089 mingw*)
18090 gl_dirsep_regex='[/\\]'
18091 ;;
18092 *)
18093 gl_dirsep_regex='\/'
18094 ;;
18095 esac
18096 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18097
18098 gl_header_literal_regex=`echo 'stdint.h' \
18099 | sed -e "$gl_make_literal_regex_sed"`
18100 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18101 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18102 s|^/[^/]|//&|
18103 p
18104 q
18105 }'
18106 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18107 sed -n "$gl_absolute_header_sed"`'"'
18108 else
18109 gl_cv_next_stdint_h='<'stdint.h'>'
18110 fi
18111
18112
18113 fi
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18115 $as_echo "$gl_cv_next_stdint_h" >&6; }
18116 fi
18117 NEXT_STDINT_H=$gl_cv_next_stdint_h
18118
18119 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18120 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18121 gl_next_as_first_directive='<'stdint.h'>'
18122 else
18123 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18124 gl_next_as_first_directive=$gl_cv_next_stdint_h
18125 fi
18126 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18127
18128
18129
18130
18131 if test $ac_cv_header_stdint_h = yes; then
18132 HAVE_STDINT_H=1
18133 else
18134 HAVE_STDINT_H=0
18135 fi
18136
18137
18138 if test $ac_cv_header_stdint_h = yes; then
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18140 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18141 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18142 $as_echo_n "(cached) " >&6
18143 else
18144 gl_cv_header_working_stdint_h=no
18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h. */
18147
18148
18149 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18150 #include <stdint.h>
18151 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18152 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18153 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18154 #endif
18155
18156
18157 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18158 included before <wchar.h>. */
18159 #include <stddef.h>
18160 #include <signal.h>
18161 #if HAVE_WCHAR_H
18162 # include <stdio.h>
18163 # include <time.h>
18164 # include <wchar.h>
18165 #endif
18166
18167
18168 #ifdef INT8_MAX
18169 int8_t a1 = INT8_MAX;
18170 int8_t a1min = INT8_MIN;
18171 #endif
18172 #ifdef INT16_MAX
18173 int16_t a2 = INT16_MAX;
18174 int16_t a2min = INT16_MIN;
18175 #endif
18176 #ifdef INT32_MAX
18177 int32_t a3 = INT32_MAX;
18178 int32_t a3min = INT32_MIN;
18179 #endif
18180 #ifdef INT64_MAX
18181 int64_t a4 = INT64_MAX;
18182 int64_t a4min = INT64_MIN;
18183 #endif
18184 #ifdef UINT8_MAX
18185 uint8_t b1 = UINT8_MAX;
18186 #else
18187 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18188 #endif
18189 #ifdef UINT16_MAX
18190 uint16_t b2 = UINT16_MAX;
18191 #endif
18192 #ifdef UINT32_MAX
18193 uint32_t b3 = UINT32_MAX;
18194 #endif
18195 #ifdef UINT64_MAX
18196 uint64_t b4 = UINT64_MAX;
18197 #endif
18198 int_least8_t c1 = INT8_C (0x7f);
18199 int_least8_t c1max = INT_LEAST8_MAX;
18200 int_least8_t c1min = INT_LEAST8_MIN;
18201 int_least16_t c2 = INT16_C (0x7fff);
18202 int_least16_t c2max = INT_LEAST16_MAX;
18203 int_least16_t c2min = INT_LEAST16_MIN;
18204 int_least32_t c3 = INT32_C (0x7fffffff);
18205 int_least32_t c3max = INT_LEAST32_MAX;
18206 int_least32_t c3min = INT_LEAST32_MIN;
18207 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18208 int_least64_t c4max = INT_LEAST64_MAX;
18209 int_least64_t c4min = INT_LEAST64_MIN;
18210 uint_least8_t d1 = UINT8_C (0xff);
18211 uint_least8_t d1max = UINT_LEAST8_MAX;
18212 uint_least16_t d2 = UINT16_C (0xffff);
18213 uint_least16_t d2max = UINT_LEAST16_MAX;
18214 uint_least32_t d3 = UINT32_C (0xffffffff);
18215 uint_least32_t d3max = UINT_LEAST32_MAX;
18216 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18217 uint_least64_t d4max = UINT_LEAST64_MAX;
18218 int_fast8_t e1 = INT_FAST8_MAX;
18219 int_fast8_t e1min = INT_FAST8_MIN;
18220 int_fast16_t e2 = INT_FAST16_MAX;
18221 int_fast16_t e2min = INT_FAST16_MIN;
18222 int_fast32_t e3 = INT_FAST32_MAX;
18223 int_fast32_t e3min = INT_FAST32_MIN;
18224 int_fast64_t e4 = INT_FAST64_MAX;
18225 int_fast64_t e4min = INT_FAST64_MIN;
18226 uint_fast8_t f1 = UINT_FAST8_MAX;
18227 uint_fast16_t f2 = UINT_FAST16_MAX;
18228 uint_fast32_t f3 = UINT_FAST32_MAX;
18229 uint_fast64_t f4 = UINT_FAST64_MAX;
18230 #ifdef INTPTR_MAX
18231 intptr_t g = INTPTR_MAX;
18232 intptr_t gmin = INTPTR_MIN;
18233 #endif
18234 #ifdef UINTPTR_MAX
18235 uintptr_t h = UINTPTR_MAX;
18236 #endif
18237 intmax_t i = INTMAX_MAX;
18238 uintmax_t j = UINTMAX_MAX;
18239
18240 #include <limits.h> /* for CHAR_BIT */
18241 #define TYPE_MINIMUM(t) \
18242 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18243 #define TYPE_MAXIMUM(t) \
18244 ((t) ((t) 0 < (t) -1 \
18245 ? (t) -1 \
18246 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18247 struct s {
18248 int check_PTRDIFF:
18249 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18250 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18251 ? 1 : -1;
18252 /* Detect bug in FreeBSD 6.0 / ia64. */
18253 int check_SIG_ATOMIC:
18254 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18255 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18256 ? 1 : -1;
18257 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18258 int check_WCHAR:
18259 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18260 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18261 ? 1 : -1;
18262 /* Detect bug in mingw. */
18263 int check_WINT:
18264 WINT_MIN == TYPE_MINIMUM (wint_t)
18265 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18266 ? 1 : -1;
18267
18268 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18269 int check_UINT8_C:
18270 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18271 int check_UINT16_C:
18272 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18273
18274 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18275 #ifdef UINT8_MAX
18276 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18277 #endif
18278 #ifdef UINT16_MAX
18279 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18280 #endif
18281 #ifdef UINT32_MAX
18282 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18283 #endif
18284 #ifdef UINT64_MAX
18285 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18286 #endif
18287 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18288 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18289 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18290 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18291 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18292 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18293 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18294 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18295 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18296 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18297 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18298 };
18299
18300 int
18301 main ()
18302 {
18303
18304 ;
18305 return 0;
18306 }
18307 _ACEOF
18308 if ac_fn_c_try_compile "$LINENO"; then :
18309 if test "$cross_compiling" = yes; then :
18310 gl_cv_header_working_stdint_h=yes
18311
18312 else
18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315
18316
18317 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18318 #include <stdint.h>
18319
18320
18321 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18322 included before <wchar.h>. */
18323 #include <stddef.h>
18324 #include <signal.h>
18325 #if HAVE_WCHAR_H
18326 # include <stdio.h>
18327 # include <time.h>
18328 # include <wchar.h>
18329 #endif
18330
18331
18332 #include <stdio.h>
18333 #include <string.h>
18334 #define MVAL(macro) MVAL1(macro)
18335 #define MVAL1(expression) #expression
18336 static const char *macro_values[] =
18337 {
18338 #ifdef INT8_MAX
18339 MVAL (INT8_MAX),
18340 #endif
18341 #ifdef INT16_MAX
18342 MVAL (INT16_MAX),
18343 #endif
18344 #ifdef INT32_MAX
18345 MVAL (INT32_MAX),
18346 #endif
18347 #ifdef INT64_MAX
18348 MVAL (INT64_MAX),
18349 #endif
18350 #ifdef UINT8_MAX
18351 MVAL (UINT8_MAX),
18352 #endif
18353 #ifdef UINT16_MAX
18354 MVAL (UINT16_MAX),
18355 #endif
18356 #ifdef UINT32_MAX
18357 MVAL (UINT32_MAX),
18358 #endif
18359 #ifdef UINT64_MAX
18360 MVAL (UINT64_MAX),
18361 #endif
18362 NULL
18363 };
18364
18365 int
18366 main ()
18367 {
18368
18369 const char **mv;
18370 for (mv = macro_values; *mv != NULL; mv++)
18371 {
18372 const char *value = *mv;
18373 /* Test whether it looks like a cast expression. */
18374 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18375 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18376 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18377 || strncmp (value, "((int)"/*)*/, 6) == 0
18378 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18379 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18380 return mv - macro_values + 1;
18381 }
18382 return 0;
18383
18384 ;
18385 return 0;
18386 }
18387 _ACEOF
18388 if ac_fn_c_try_run "$LINENO"; then :
18389 gl_cv_header_working_stdint_h=yes
18390 fi
18391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18392 conftest.$ac_objext conftest.beam conftest.$ac_ext
18393 fi
18394
18395
18396 fi
18397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18398
18399 fi
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18401 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18402 fi
18403 if test "$gl_cv_header_working_stdint_h" = yes; then
18404 STDINT_H=
18405 else
18406 for ac_header in sys/inttypes.h sys/bitypes.h
18407 do :
18408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18409 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18410 eval as_val=\$$as_ac_Header
18411 if test "x$as_val" = x""yes; then :
18412 cat >>confdefs.h <<_ACEOF
18413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18414 _ACEOF
18415
18416 fi
18417
18418 done
18419
18420 if test $ac_cv_header_sys_inttypes_h = yes; then
18421 HAVE_SYS_INTTYPES_H=1
18422 else
18423 HAVE_SYS_INTTYPES_H=0
18424 fi
18425
18426 if test $ac_cv_header_sys_bitypes_h = yes; then
18427 HAVE_SYS_BITYPES_H=1
18428 else
18429 HAVE_SYS_BITYPES_H=0
18430 fi
18431
18432
18433
18434
18435 if test $APPLE_UNIVERSAL_BUILD = 0; then
18436
18437
18438 for gltype in ptrdiff_t size_t ; do
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18440 $as_echo_n "checking for bit size of $gltype... " >&6; }
18441 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18442 $as_echo_n "(cached) " >&6
18443 else
18444 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18445 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18446 included before <wchar.h>. */
18447 #include <stddef.h>
18448 #include <signal.h>
18449 #if HAVE_WCHAR_H
18450 # include <stdio.h>
18451 # include <time.h>
18452 # include <wchar.h>
18453 #endif
18454
18455 #include <limits.h>"; then :
18456
18457 else
18458 result=unknown
18459 fi
18460
18461 eval gl_cv_bitsizeof_${gltype}=\$result
18462
18463 fi
18464 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18466 $as_echo "$ac_res" >&6; }
18467 eval result=\$gl_cv_bitsizeof_${gltype}
18468 if test $result = unknown; then
18469 result=0
18470 fi
18471 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18472 cat >>confdefs.h <<_ACEOF
18473 #define BITSIZEOF_${GLTYPE} $result
18474 _ACEOF
18475
18476 eval BITSIZEOF_${GLTYPE}=\$result
18477 done
18478
18479
18480 fi
18481
18482
18483 for gltype in sig_atomic_t wchar_t wint_t ; do
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18485 $as_echo_n "checking for bit size of $gltype... " >&6; }
18486 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18487 $as_echo_n "(cached) " >&6
18488 else
18489 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18490 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18491 included before <wchar.h>. */
18492 #include <stddef.h>
18493 #include <signal.h>
18494 #if HAVE_WCHAR_H
18495 # include <stdio.h>
18496 # include <time.h>
18497 # include <wchar.h>
18498 #endif
18499
18500 #include <limits.h>"; then :
18501
18502 else
18503 result=unknown
18504 fi
18505
18506 eval gl_cv_bitsizeof_${gltype}=\$result
18507
18508 fi
18509 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18511 $as_echo "$ac_res" >&6; }
18512 eval result=\$gl_cv_bitsizeof_${gltype}
18513 if test $result = unknown; then
18514 result=0
18515 fi
18516 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18517 cat >>confdefs.h <<_ACEOF
18518 #define BITSIZEOF_${GLTYPE} $result
18519 _ACEOF
18520
18521 eval BITSIZEOF_${GLTYPE}=\$result
18522 done
18523
18524
18525
18526
18527 for gltype in sig_atomic_t wchar_t wint_t ; do
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18529 $as_echo_n "checking whether $gltype is signed... " >&6; }
18530 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18531 $as_echo_n "(cached) " >&6
18532 else
18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h. */
18535
18536 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18537 included before <wchar.h>. */
18538 #include <stddef.h>
18539 #include <signal.h>
18540 #if HAVE_WCHAR_H
18541 # include <stdio.h>
18542 # include <time.h>
18543 # include <wchar.h>
18544 #endif
18545
18546 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18547 int
18548 main ()
18549 {
18550
18551 ;
18552 return 0;
18553 }
18554 _ACEOF
18555 if ac_fn_c_try_compile "$LINENO"; then :
18556 result=yes
18557 else
18558 result=no
18559 fi
18560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18561 eval gl_cv_type_${gltype}_signed=\$result
18562
18563 fi
18564 eval ac_res=\$gl_cv_type_${gltype}_signed
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18566 $as_echo "$ac_res" >&6; }
18567 eval result=\$gl_cv_type_${gltype}_signed
18568 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18569 if test "$result" = yes; then
18570 cat >>confdefs.h <<_ACEOF
18571 #define HAVE_SIGNED_${GLTYPE} 1
18572 _ACEOF
18573
18574 eval HAVE_SIGNED_${GLTYPE}=1
18575 else
18576 eval HAVE_SIGNED_${GLTYPE}=0
18577 fi
18578 done
18579
18580
18581 gl_cv_type_ptrdiff_t_signed=yes
18582 gl_cv_type_size_t_signed=no
18583 if test $APPLE_UNIVERSAL_BUILD = 0; then
18584
18585
18586 for gltype in ptrdiff_t size_t ; do
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18588 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18589 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18590 $as_echo_n "(cached) " >&6
18591 else
18592 eval gl_cv_type_${gltype}_suffix=no
18593 eval result=\$gl_cv_type_${gltype}_signed
18594 if test "$result" = yes; then
18595 glsufu=
18596 else
18597 glsufu=u
18598 fi
18599 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18600 case $glsuf in
18601 '') gltype1='int';;
18602 l) gltype1='long int';;
18603 ll) gltype1='long long int';;
18604 i64) gltype1='__int64';;
18605 u) gltype1='unsigned int';;
18606 ul) gltype1='unsigned long int';;
18607 ull) gltype1='unsigned long long int';;
18608 ui64)gltype1='unsigned __int64';;
18609 esac
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18612
18613 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18614 included before <wchar.h>. */
18615 #include <stddef.h>
18616 #include <signal.h>
18617 #if HAVE_WCHAR_H
18618 # include <stdio.h>
18619 # include <time.h>
18620 # include <wchar.h>
18621 #endif
18622
18623 extern $gltype foo;
18624 extern $gltype1 foo;
18625 int
18626 main ()
18627 {
18628
18629 ;
18630 return 0;
18631 }
18632 _ACEOF
18633 if ac_fn_c_try_compile "$LINENO"; then :
18634 eval gl_cv_type_${gltype}_suffix=\$glsuf
18635 fi
18636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18637 eval result=\$gl_cv_type_${gltype}_suffix
18638 test "$result" != no && break
18639 done
18640 fi
18641 eval ac_res=\$gl_cv_type_${gltype}_suffix
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18643 $as_echo "$ac_res" >&6; }
18644 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18645 eval result=\$gl_cv_type_${gltype}_suffix
18646 test "$result" = no && result=
18647 eval ${GLTYPE}_SUFFIX=\$result
18648 cat >>confdefs.h <<_ACEOF
18649 #define ${GLTYPE}_SUFFIX $result
18650 _ACEOF
18651
18652 done
18653
18654
18655 fi
18656
18657
18658 for gltype in sig_atomic_t wchar_t wint_t ; do
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18660 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18661 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18662 $as_echo_n "(cached) " >&6
18663 else
18664 eval gl_cv_type_${gltype}_suffix=no
18665 eval result=\$gl_cv_type_${gltype}_signed
18666 if test "$result" = yes; then
18667 glsufu=
18668 else
18669 glsufu=u
18670 fi
18671 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18672 case $glsuf in
18673 '') gltype1='int';;
18674 l) gltype1='long int';;
18675 ll) gltype1='long long int';;
18676 i64) gltype1='__int64';;
18677 u) gltype1='unsigned int';;
18678 ul) gltype1='unsigned long int';;
18679 ull) gltype1='unsigned long long int';;
18680 ui64)gltype1='unsigned __int64';;
18681 esac
18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h. */
18684
18685 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18686 included before <wchar.h>. */
18687 #include <stddef.h>
18688 #include <signal.h>
18689 #if HAVE_WCHAR_H
18690 # include <stdio.h>
18691 # include <time.h>
18692 # include <wchar.h>
18693 #endif
18694
18695 extern $gltype foo;
18696 extern $gltype1 foo;
18697 int
18698 main ()
18699 {
18700
18701 ;
18702 return 0;
18703 }
18704 _ACEOF
18705 if ac_fn_c_try_compile "$LINENO"; then :
18706 eval gl_cv_type_${gltype}_suffix=\$glsuf
18707 fi
18708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18709 eval result=\$gl_cv_type_${gltype}_suffix
18710 test "$result" != no && break
18711 done
18712 fi
18713 eval ac_res=\$gl_cv_type_${gltype}_suffix
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18715 $as_echo "$ac_res" >&6; }
18716 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18717 eval result=\$gl_cv_type_${gltype}_suffix
18718 test "$result" = no && result=
18719 eval ${GLTYPE}_SUFFIX=\$result
18720 cat >>confdefs.h <<_ACEOF
18721 #define ${GLTYPE}_SUFFIX $result
18722 _ACEOF
18723
18724 done
18725
18726
18727
18728 if test $BITSIZEOF_WINT_T -lt 32; then
18729 BITSIZEOF_WINT_T=32
18730 fi
18731
18732 STDINT_H=stdint.h
18733 fi
18734
18735 if test -n "$STDINT_H"; then
18736 GL_GENERATE_STDINT_H_TRUE=
18737 GL_GENERATE_STDINT_H_FALSE='#'
18738 else
18739 GL_GENERATE_STDINT_H_TRUE='#'
18740 GL_GENERATE_STDINT_H_FALSE=
18741 fi
18742
18743
18744
18745
18746
18747 GNULIB_IMAXABS=0;
18748 GNULIB_IMAXDIV=0;
18749 GNULIB_STRTOIMAX=0;
18750 GNULIB_STRTOUMAX=0;
18751 HAVE_DECL_IMAXABS=1;
18752 HAVE_DECL_IMAXDIV=1;
18753 HAVE_DECL_STRTOIMAX=1;
18754 HAVE_DECL_STRTOUMAX=1;
18755 REPLACE_STRTOIMAX=0;
18756 INT32_MAX_LT_INTMAX_MAX=1;
18757 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18758 PRI_MACROS_BROKEN=0;
18759 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18760 UINT32_MAX_LT_UINTMAX_MAX=1;
18761 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777 if test $gl_cv_have_include_next = yes; then
18778 gl_cv_next_inttypes_h='<'inttypes.h'>'
18779 else
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18781 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18782 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18783 $as_echo_n "(cached) " >&6
18784 else
18785
18786 if test $ac_cv_header_inttypes_h = yes; then
18787
18788
18789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18790 /* end confdefs.h. */
18791 #include <inttypes.h>
18792
18793 _ACEOF
18794 case "$host_os" in
18795 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18796 *) gl_absname_cpp="$ac_cpp" ;;
18797 esac
18798
18799 case "$host_os" in
18800 mingw*)
18801 gl_dirsep_regex='[/\\]'
18802 ;;
18803 *)
18804 gl_dirsep_regex='\/'
18805 ;;
18806 esac
18807 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18808
18809 gl_header_literal_regex=`echo 'inttypes.h' \
18810 | sed -e "$gl_make_literal_regex_sed"`
18811 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18812 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18813 s|^/[^/]|//&|
18814 p
18815 q
18816 }'
18817 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18818 sed -n "$gl_absolute_header_sed"`'"'
18819 else
18820 gl_cv_next_inttypes_h='<'inttypes.h'>'
18821 fi
18822
18823
18824 fi
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18826 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18827 fi
18828 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18829
18830 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18832 gl_next_as_first_directive='<'inttypes.h'>'
18833 else
18834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18835 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18836 fi
18837 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849 case "$host_os" in
18850 mingw*)
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18852 $as_echo_n "checking for 64-bit off_t... " >&6; }
18853 if test "${gl_cv_type_off_t_64+set}" = set; then :
18854 $as_echo_n "(cached) " >&6
18855 else
18856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18857 /* end confdefs.h. */
18858 #include <sys/types.h>
18859 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18860
18861 int
18862 main ()
18863 {
18864
18865 ;
18866 return 0;
18867 }
18868 _ACEOF
18869 if ac_fn_c_try_compile "$LINENO"; then :
18870 gl_cv_type_off_t_64=yes
18871 else
18872 gl_cv_type_off_t_64=no
18873 fi
18874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18875
18876 fi
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18878 $as_echo "$gl_cv_type_off_t_64" >&6; }
18879 if test $gl_cv_type_off_t_64 = no; then
18880 WINDOWS_64_BIT_OFF_T=1
18881 else
18882 WINDOWS_64_BIT_OFF_T=0
18883 fi
18884 WINDOWS_64_BIT_ST_SIZE=1
18885 ;;
18886 *)
18887 WINDOWS_64_BIT_OFF_T=0
18888 WINDOWS_64_BIT_ST_SIZE=0
18889 ;;
18890 esac
18891
18892
18893 GNULIB_FCHMODAT=0;
18894 GNULIB_FSTAT=0;
18895 GNULIB_FSTATAT=0;
18896 GNULIB_FUTIMENS=0;
18897 GNULIB_LCHMOD=0;
18898 GNULIB_LSTAT=0;
18899 GNULIB_MKDIRAT=0;
18900 GNULIB_MKFIFO=0;
18901 GNULIB_MKFIFOAT=0;
18902 GNULIB_MKNOD=0;
18903 GNULIB_MKNODAT=0;
18904 GNULIB_STAT=0;
18905 GNULIB_UTIMENSAT=0;
18906 HAVE_FCHMODAT=1;
18907 HAVE_FSTATAT=1;
18908 HAVE_FUTIMENS=1;
18909 HAVE_LCHMOD=1;
18910 HAVE_LSTAT=1;
18911 HAVE_MKDIRAT=1;
18912 HAVE_MKFIFO=1;
18913 HAVE_MKFIFOAT=1;
18914 HAVE_MKNOD=1;
18915 HAVE_MKNODAT=1;
18916 HAVE_UTIMENSAT=1;
18917 REPLACE_FSTAT=0;
18918 REPLACE_FSTATAT=0;
18919 REPLACE_FUTIMENS=0;
18920 REPLACE_LSTAT=0;
18921 REPLACE_MKDIR=0;
18922 REPLACE_MKFIFO=0;
18923 REPLACE_MKNOD=0;
18924 REPLACE_STAT=0;
18925 REPLACE_UTIMENSAT=0;
18926
18927
18928
18929
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18931 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18932 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18933 $as_echo_n "(cached) " >&6
18934 else
18935 rm -f conftest.sym conftest.file
18936 echo >conftest.file
18937 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18938 if test "$cross_compiling" = yes; then :
18939 case "$host_os" in
18940 # Guess yes on glibc systems.
18941 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18942 # If we don't know, assume the worst.
18943 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18944 esac
18945
18946 else
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18949 $ac_includes_default
18950 int
18951 main ()
18952 {
18953 struct stat sbuf;
18954 /* Linux will dereference the symlink and fail, as required by
18955 POSIX. That is better in the sense that it means we will not
18956 have to compile and use the lstat wrapper. */
18957 return lstat ("conftest.sym/", &sbuf) == 0;
18958
18959 ;
18960 return 0;
18961 }
18962 _ACEOF
18963 if ac_fn_c_try_run "$LINENO"; then :
18964 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18965 else
18966 gl_cv_func_lstat_dereferences_slashed_symlink=no
18967 fi
18968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18969 conftest.$ac_objext conftest.beam conftest.$ac_ext
18970 fi
18971
18972 else
18973 # If the 'ln -s' command failed, then we probably don't even
18974 # have an lstat function.
18975 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18976 fi
18977 rm -f conftest.sym conftest.file
18978
18979 fi
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18981 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18982 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18983 *yes)
18984
18985 cat >>confdefs.h <<_ACEOF
18986 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18987 _ACEOF
18988
18989 ;;
18990 esac
18991
18992
18993 GNULIB_MKTIME=0;
18994 GNULIB_NANOSLEEP=0;
18995 GNULIB_STRPTIME=0;
18996 GNULIB_TIMEGM=0;
18997 GNULIB_TIME_R=0;
18998 HAVE_DECL_LOCALTIME_R=1;
18999 HAVE_NANOSLEEP=1;
19000 HAVE_STRPTIME=1;
19001 HAVE_TIMEGM=1;
19002 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19003 REPLACE_MKTIME=GNULIB_PORTCHECK;
19004 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19005 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19006
19007
19008
19009
19010 GNULIB_PSELECT=0;
19011 GNULIB_SELECT=0;
19012 HAVE_PSELECT=1;
19013 REPLACE_PSELECT=0;
19014 REPLACE_SELECT=0;
19015
19016
19017
19018
19019
19020
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19022 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19023 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19024 $as_echo_n "(cached) " >&6
19025 else
19026
19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19028 /* end confdefs.h. */
19029 #include <sys/select.h>
19030 int
19031 main ()
19032 {
19033 struct timeval b;
19034 ;
19035 return 0;
19036 }
19037 _ACEOF
19038 if ac_fn_c_try_compile "$LINENO"; then :
19039 gl_cv_header_sys_select_h_selfcontained=yes
19040 else
19041 gl_cv_header_sys_select_h_selfcontained=no
19042 fi
19043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19044 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19047 #include <sys/select.h>
19048 int
19049 main ()
19050 {
19051 int memset; int bzero;
19052 ;
19053 return 0;
19054 }
19055
19056 _ACEOF
19057 if ac_fn_c_try_compile "$LINENO"; then :
19058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059 /* end confdefs.h. */
19060 #include <sys/select.h>
19061 int
19062 main ()
19063 {
19064
19065 #undef memset
19066 #define memset nonexistent_memset
19067 extern
19068 #ifdef __cplusplus
19069 "C"
19070 #endif
19071 void *memset (void *, int, unsigned long);
19072 #undef bzero
19073 #define bzero nonexistent_bzero
19074 extern
19075 #ifdef __cplusplus
19076 "C"
19077 #endif
19078 void bzero (void *, unsigned long);
19079 fd_set fds;
19080 FD_ZERO (&fds);
19081
19082 ;
19083 return 0;
19084 }
19085
19086 _ACEOF
19087 if ac_fn_c_try_link "$LINENO"; then :
19088
19089 else
19090 gl_cv_header_sys_select_h_selfcontained=no
19091 fi
19092 rm -f core conftest.err conftest.$ac_objext \
19093 conftest$ac_exeext conftest.$ac_ext
19094
19095 fi
19096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097 fi
19098
19099 fi
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19101 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111 if test $gl_cv_have_include_next = yes; then
19112 gl_cv_next_sys_select_h='<'sys/select.h'>'
19113 else
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19115 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19116 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19117 $as_echo_n "(cached) " >&6
19118 else
19119
19120 if test $ac_cv_header_sys_select_h = yes; then
19121
19122
19123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h. */
19125 #include <sys/select.h>
19126
19127 _ACEOF
19128 case "$host_os" in
19129 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19130 *) gl_absname_cpp="$ac_cpp" ;;
19131 esac
19132
19133 case "$host_os" in
19134 mingw*)
19135 gl_dirsep_regex='[/\\]'
19136 ;;
19137 *)
19138 gl_dirsep_regex='\/'
19139 ;;
19140 esac
19141 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19142
19143 gl_header_literal_regex=`echo 'sys/select.h' \
19144 | sed -e "$gl_make_literal_regex_sed"`
19145 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19146 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19147 s|^/[^/]|//&|
19148 p
19149 q
19150 }'
19151 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19152 sed -n "$gl_absolute_header_sed"`'"'
19153 else
19154 gl_cv_next_sys_select_h='<'sys/select.h'>'
19155 fi
19156
19157
19158 fi
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19160 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19161 fi
19162 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19163
19164 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19165 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19166 gl_next_as_first_directive='<'sys/select.h'>'
19167 else
19168 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19169 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19170 fi
19171 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19172
19173
19174
19175
19176 if test $ac_cv_header_sys_select_h = yes; then
19177 HAVE_SYS_SELECT_H=1
19178 else
19179 HAVE_SYS_SELECT_H=0
19180 fi
19181
19182
19183
19184
19185
19186 if test $ac_cv_header_sys_socket_h != yes; then
19187 for ac_header in winsock2.h
19188 do :
19189 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19190 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19191 cat >>confdefs.h <<_ACEOF
19192 #define HAVE_WINSOCK2_H 1
19193 _ACEOF
19194
19195 fi
19196
19197 done
19198
19199 fi
19200 if test "$ac_cv_header_winsock2_h" = yes; then
19201 HAVE_WINSOCK2_H=1
19202 UNISTD_H_HAVE_WINSOCK2_H=1
19203 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19204 else
19205 HAVE_WINSOCK2_H=0
19206 fi
19207
19208
19209
19210
19211
19212
19213
19214
19215 GNULIB_PTHREAD_SIGMASK=0;
19216 GNULIB_RAISE=0;
19217 GNULIB_SIGNAL_H_SIGPIPE=0;
19218 GNULIB_SIGPROCMASK=0;
19219 GNULIB_SIGACTION=0;
19220 HAVE_POSIX_SIGNALBLOCKING=1;
19221 HAVE_PTHREAD_SIGMASK=1;
19222 HAVE_RAISE=1;
19223 HAVE_SIGSET_T=1;
19224 HAVE_SIGINFO_T=1;
19225 HAVE_SIGACTION=1;
19226 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19227
19228 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19229
19230 HAVE_SIGHANDLER_T=1;
19231 REPLACE_PTHREAD_SIGMASK=0;
19232 REPLACE_RAISE=0;
19233
19234
19235
19236
19237
19238
19239 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19240 #include <signal.h>
19241 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19242 #include <sys/types.h>
19243
19244 "
19245 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19246
19247 cat >>confdefs.h <<_ACEOF
19248 #define HAVE_SIGSET_T 1
19249 _ACEOF
19250
19251 gl_cv_type_sigset_t=yes
19252 else
19253 gl_cv_type_sigset_t=no
19254 fi
19255
19256 if test $gl_cv_type_sigset_t != yes; then
19257 HAVE_SIGSET_T=0
19258 fi
19259
19260
19261
19262 if test $ac_cv_header_sys_socket_h = no; then
19263 for ac_header in ws2tcpip.h
19264 do :
19265 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19266 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19267 cat >>confdefs.h <<_ACEOF
19268 #define HAVE_WS2TCPIP_H 1
19269 _ACEOF
19270
19271 fi
19272
19273 done
19274
19275 fi
19276
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19278 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19279 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19280 $as_echo_n "(cached) " >&6
19281 else
19282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19283 /* end confdefs.h. */
19284
19285 #include <stdbool.h>
19286 #ifndef bool
19287 "error: bool is not defined"
19288 #endif
19289 #ifndef false
19290 "error: false is not defined"
19291 #endif
19292 #if false
19293 "error: false is not 0"
19294 #endif
19295 #ifndef true
19296 "error: true is not defined"
19297 #endif
19298 #if true != 1
19299 "error: true is not 1"
19300 #endif
19301 #ifndef __bool_true_false_are_defined
19302 "error: __bool_true_false_are_defined is not defined"
19303 #endif
19304
19305 struct s { _Bool s: 1; _Bool t; } s;
19306
19307 char a[true == 1 ? 1 : -1];
19308 char b[false == 0 ? 1 : -1];
19309 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19310 char d[(bool) 0.5 == true ? 1 : -1];
19311 /* See body of main program for 'e'. */
19312 char f[(_Bool) 0.0 == false ? 1 : -1];
19313 char g[true];
19314 char h[sizeof (_Bool)];
19315 char i[sizeof s.t];
19316 enum { j = false, k = true, l = false * true, m = true * 256 };
19317 /* The following fails for
19318 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19319 _Bool n[m];
19320 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19321 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19322 /* Catch a bug in an HP-UX C compiler. See
19323 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19324 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19325 */
19326 _Bool q = true;
19327 _Bool *pq = &q;
19328
19329 int
19330 main ()
19331 {
19332
19333 bool e = &s;
19334 *pq |= q;
19335 *pq |= ! q;
19336 /* Refer to every declared value, to avoid compiler optimizations. */
19337 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19338 + !m + !n + !o + !p + !q + !pq);
19339
19340 ;
19341 return 0;
19342 }
19343 _ACEOF
19344 if ac_fn_c_try_compile "$LINENO"; then :
19345 ac_cv_header_stdbool_h=yes
19346 else
19347 ac_cv_header_stdbool_h=no
19348 fi
19349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19350 fi
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19352 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19353 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19354 if test "x$ac_cv_type__Bool" = x""yes; then :
19355
19356 cat >>confdefs.h <<_ACEOF
19357 #define HAVE__BOOL 1
19358 _ACEOF
19359
19360
19361 fi
19362
19363
19364
19365 REPLACE_NULL=0;
19366 HAVE_WCHAR_T=1;
19367
19368
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19370 $as_echo_n "checking for wchar_t... " >&6; }
19371 if test "${gt_cv_c_wchar_t+set}" = set; then :
19372 $as_echo_n "(cached) " >&6
19373 else
19374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375 /* end confdefs.h. */
19376 #include <stddef.h>
19377 wchar_t foo = (wchar_t)'\0';
19378 int
19379 main ()
19380 {
19381
19382 ;
19383 return 0;
19384 }
19385 _ACEOF
19386 if ac_fn_c_try_compile "$LINENO"; then :
19387 gt_cv_c_wchar_t=yes
19388 else
19389 gt_cv_c_wchar_t=no
19390 fi
19391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19392 fi
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19394 $as_echo "$gt_cv_c_wchar_t" >&6; }
19395 if test $gt_cv_c_wchar_t = yes; then
19396
19397 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19398
19399 fi
19400
19401
19402 GNULIB_DPRINTF=0;
19403 GNULIB_FCLOSE=0;
19404 GNULIB_FDOPEN=0;
19405 GNULIB_FFLUSH=0;
19406 GNULIB_FGETC=0;
19407 GNULIB_FGETS=0;
19408 GNULIB_FOPEN=0;
19409 GNULIB_FPRINTF=0;
19410 GNULIB_FPRINTF_POSIX=0;
19411 GNULIB_FPURGE=0;
19412 GNULIB_FPUTC=0;
19413 GNULIB_FPUTS=0;
19414 GNULIB_FREAD=0;
19415 GNULIB_FREOPEN=0;
19416 GNULIB_FSCANF=0;
19417 GNULIB_FSEEK=0;
19418 GNULIB_FSEEKO=0;
19419 GNULIB_FTELL=0;
19420 GNULIB_FTELLO=0;
19421 GNULIB_FWRITE=0;
19422 GNULIB_GETC=0;
19423 GNULIB_GETCHAR=0;
19424 GNULIB_GETDELIM=0;
19425 GNULIB_GETLINE=0;
19426 GNULIB_OBSTACK_PRINTF=0;
19427 GNULIB_OBSTACK_PRINTF_POSIX=0;
19428 GNULIB_PCLOSE=0;
19429 GNULIB_PERROR=0;
19430 GNULIB_POPEN=0;
19431 GNULIB_PRINTF=0;
19432 GNULIB_PRINTF_POSIX=0;
19433 GNULIB_PUTC=0;
19434 GNULIB_PUTCHAR=0;
19435 GNULIB_PUTS=0;
19436 GNULIB_REMOVE=0;
19437 GNULIB_RENAME=0;
19438 GNULIB_RENAMEAT=0;
19439 GNULIB_SCANF=0;
19440 GNULIB_SNPRINTF=0;
19441 GNULIB_SPRINTF_POSIX=0;
19442 GNULIB_STDIO_H_NONBLOCKING=0;
19443 GNULIB_STDIO_H_SIGPIPE=0;
19444 GNULIB_TMPFILE=0;
19445 GNULIB_VASPRINTF=0;
19446 GNULIB_VFSCANF=0;
19447 GNULIB_VSCANF=0;
19448 GNULIB_VDPRINTF=0;
19449 GNULIB_VFPRINTF=0;
19450 GNULIB_VFPRINTF_POSIX=0;
19451 GNULIB_VPRINTF=0;
19452 GNULIB_VPRINTF_POSIX=0;
19453 GNULIB_VSNPRINTF=0;
19454 GNULIB_VSPRINTF_POSIX=0;
19455 HAVE_DECL_FPURGE=1;
19456 HAVE_DECL_FSEEKO=1;
19457 HAVE_DECL_FTELLO=1;
19458 HAVE_DECL_GETDELIM=1;
19459 HAVE_DECL_GETLINE=1;
19460 HAVE_DECL_OBSTACK_PRINTF=1;
19461 HAVE_DECL_SNPRINTF=1;
19462 HAVE_DECL_VSNPRINTF=1;
19463 HAVE_DPRINTF=1;
19464 HAVE_FSEEKO=1;
19465 HAVE_FTELLO=1;
19466 HAVE_PCLOSE=1;
19467 HAVE_POPEN=1;
19468 HAVE_RENAMEAT=1;
19469 HAVE_VASPRINTF=1;
19470 HAVE_VDPRINTF=1;
19471 REPLACE_DPRINTF=0;
19472 REPLACE_FCLOSE=0;
19473 REPLACE_FDOPEN=0;
19474 REPLACE_FFLUSH=0;
19475 REPLACE_FOPEN=0;
19476 REPLACE_FPRINTF=0;
19477 REPLACE_FPURGE=0;
19478 REPLACE_FREOPEN=0;
19479 REPLACE_FSEEK=0;
19480 REPLACE_FSEEKO=0;
19481 REPLACE_FTELL=0;
19482 REPLACE_FTELLO=0;
19483 REPLACE_GETDELIM=0;
19484 REPLACE_GETLINE=0;
19485 REPLACE_OBSTACK_PRINTF=0;
19486 REPLACE_PERROR=0;
19487 REPLACE_POPEN=0;
19488 REPLACE_PRINTF=0;
19489 REPLACE_REMOVE=0;
19490 REPLACE_RENAME=0;
19491 REPLACE_RENAMEAT=0;
19492 REPLACE_SNPRINTF=0;
19493 REPLACE_SPRINTF=0;
19494 REPLACE_STDIO_READ_FUNCS=0;
19495 REPLACE_STDIO_WRITE_FUNCS=0;
19496 REPLACE_TMPFILE=0;
19497 REPLACE_VASPRINTF=0;
19498 REPLACE_VDPRINTF=0;
19499 REPLACE_VFPRINTF=0;
19500 REPLACE_VPRINTF=0;
19501 REPLACE_VSNPRINTF=0;
19502 REPLACE_VSPRINTF=0;
19503
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19505 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19506 if test "${ac_cv_struct_tm+set}" = set; then :
19507 $as_echo_n "(cached) " >&6
19508 else
19509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19510 /* end confdefs.h. */
19511 #include <sys/types.h>
19512 #include <time.h>
19513
19514 int
19515 main ()
19516 {
19517 struct tm tm;
19518 int *p = &tm.tm_sec;
19519 return !p;
19520 ;
19521 return 0;
19522 }
19523 _ACEOF
19524 if ac_fn_c_try_compile "$LINENO"; then :
19525 ac_cv_struct_tm=time.h
19526 else
19527 ac_cv_struct_tm=sys/time.h
19528 fi
19529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530 fi
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19532 $as_echo "$ac_cv_struct_tm" >&6; }
19533 if test $ac_cv_struct_tm = sys/time.h; then
19534
19535 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19536
19537 fi
19538
19539 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19540 #include <$ac_cv_struct_tm>
19541
19542 "
19543 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19544
19545 cat >>confdefs.h <<_ACEOF
19546 #define HAVE_STRUCT_TM_TM_ZONE 1
19547 _ACEOF
19548
19549
19550 fi
19551
19552 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19553
19554 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19555
19556 else
19557 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19558 "
19559 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19560 ac_have_decl=1
19561 else
19562 ac_have_decl=0
19563 fi
19564
19565 cat >>confdefs.h <<_ACEOF
19566 #define HAVE_DECL_TZNAME $ac_have_decl
19567 _ACEOF
19568
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19570 $as_echo_n "checking for tzname... " >&6; }
19571 if test "${ac_cv_var_tzname+set}" = set; then :
19572 $as_echo_n "(cached) " >&6
19573 else
19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19576 #include <time.h>
19577 #if !HAVE_DECL_TZNAME
19578 extern char *tzname[];
19579 #endif
19580
19581 int
19582 main ()
19583 {
19584 return tzname[0][0];
19585 ;
19586 return 0;
19587 }
19588 _ACEOF
19589 if ac_fn_c_try_link "$LINENO"; then :
19590 ac_cv_var_tzname=yes
19591 else
19592 ac_cv_var_tzname=no
19593 fi
19594 rm -f core conftest.err conftest.$ac_objext \
19595 conftest$ac_exeext conftest.$ac_ext
19596 fi
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19598 $as_echo "$ac_cv_var_tzname" >&6; }
19599 if test $ac_cv_var_tzname = yes; then
19600
19601 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19602
19603 fi
19604 fi
19605
19606
19607 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19608 "
19609 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19610
19611 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19612
19613 fi
19614
19615
19616
19617
19618 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19619 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19620 ac_have_decl=1
19621 else
19622 ac_have_decl=0
19623 fi
19624
19625 cat >>confdefs.h <<_ACEOF
19626 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19627 _ACEOF
19628
19629
19630
19631 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19632 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19633 ac_have_decl=1
19634 else
19635 ac_have_decl=0
19636 fi
19637
19638 cat >>confdefs.h <<_ACEOF
19639 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19640 _ACEOF
19641
19642
19643
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19645 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19646 if test "${ac_cv_header_stat_broken+set}" = set; then :
19647 $as_echo_n "(cached) " >&6
19648 else
19649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h. */
19651 #include <sys/types.h>
19652 #include <sys/stat.h>
19653
19654 #if defined S_ISBLK && defined S_IFDIR
19655 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19656 #endif
19657
19658 #if defined S_ISBLK && defined S_IFCHR
19659 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19660 #endif
19661
19662 #if defined S_ISLNK && defined S_IFREG
19663 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19664 #endif
19665
19666 #if defined S_ISSOCK && defined S_IFREG
19667 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19668 #endif
19669
19670 _ACEOF
19671 if ac_fn_c_try_compile "$LINENO"; then :
19672 ac_cv_header_stat_broken=no
19673 else
19674 ac_cv_header_stat_broken=yes
19675 fi
19676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19677 fi
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19679 $as_echo "$ac_cv_header_stat_broken" >&6; }
19680 if test $ac_cv_header_stat_broken = yes; then
19681
19682 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19683
19684 fi
19685
19686
19687
19688 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19689 if test "x$ac_cv_type_mode_t" = x""yes; then :
19690
19691 else
19692
19693 cat >>confdefs.h <<_ACEOF
19694 #define mode_t int
19695 _ACEOF
19696
19697 fi
19698
19699
19700
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19702 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19703 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19704 $as_echo_n "(cached) " >&6
19705 else
19706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19707 /* end confdefs.h. */
19708 #include <time.h>
19709
19710 int
19711 main ()
19712 {
19713 static struct timespec x; x.tv_sec = x.tv_nsec;
19714 ;
19715 return 0;
19716 }
19717 _ACEOF
19718 if ac_fn_c_try_compile "$LINENO"; then :
19719 gl_cv_sys_struct_timespec_in_time_h=yes
19720 else
19721 gl_cv_sys_struct_timespec_in_time_h=no
19722 fi
19723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19724 fi
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19726 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19727
19728 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19729 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19730 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19731 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19732 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19733 else
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19735 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19736 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19737 $as_echo_n "(cached) " >&6
19738 else
19739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h. */
19741 #include <sys/time.h>
19742
19743 int
19744 main ()
19745 {
19746 static struct timespec x; x.tv_sec = x.tv_nsec;
19747 ;
19748 return 0;
19749 }
19750 _ACEOF
19751 if ac_fn_c_try_compile "$LINENO"; then :
19752 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19753 else
19754 gl_cv_sys_struct_timespec_in_sys_time_h=no
19755 fi
19756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19757 fi
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19759 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19760 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19761 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19762 else
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19764 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19765 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19766 $as_echo_n "(cached) " >&6
19767 else
19768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19769 /* end confdefs.h. */
19770 #include <pthread.h>
19771
19772 int
19773 main ()
19774 {
19775 static struct timespec x; x.tv_sec = x.tv_nsec;
19776 ;
19777 return 0;
19778 }
19779 _ACEOF
19780 if ac_fn_c_try_compile "$LINENO"; then :
19781 gl_cv_sys_struct_timespec_in_pthread_h=yes
19782 else
19783 gl_cv_sys_struct_timespec_in_pthread_h=no
19784 fi
19785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19786 fi
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19788 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19789 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19790 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19791 fi
19792 fi
19793 fi
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809 if test $gl_cv_have_include_next = yes; then
19810 gl_cv_next_time_h='<'time.h'>'
19811 else
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19813 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19814 if test "${gl_cv_next_time_h+set}" = set; then :
19815 $as_echo_n "(cached) " >&6
19816 else
19817
19818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19819 /* end confdefs.h. */
19820 #include <time.h>
19821
19822 _ACEOF
19823 case "$host_os" in
19824 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19825 *) gl_absname_cpp="$ac_cpp" ;;
19826 esac
19827
19828 case "$host_os" in
19829 mingw*)
19830 gl_dirsep_regex='[/\\]'
19831 ;;
19832 *)
19833 gl_dirsep_regex='\/'
19834 ;;
19835 esac
19836 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19837
19838 gl_header_literal_regex=`echo 'time.h' \
19839 | sed -e "$gl_make_literal_regex_sed"`
19840 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19841 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19842 s|^/[^/]|//&|
19843 p
19844 q
19845 }'
19846 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19847 sed -n "$gl_absolute_header_sed"`'"'
19848
19849
19850 fi
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19852 $as_echo "$gl_cv_next_time_h" >&6; }
19853 fi
19854 NEXT_TIME_H=$gl_cv_next_time_h
19855
19856 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19857 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19858 gl_next_as_first_directive='<'time.h'>'
19859 else
19860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19861 gl_next_as_first_directive=$gl_cv_next_time_h
19862 fi
19863 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19880 $as_echo_n "checking whether the utimes function works... " >&6; }
19881 if test "${gl_cv_func_working_utimes+set}" = set; then :
19882 $as_echo_n "(cached) " >&6
19883 else
19884
19885 if test "$cross_compiling" = yes; then :
19886 gl_cv_func_working_utimes=no
19887 else
19888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19889 /* end confdefs.h. */
19890
19891 #include <sys/types.h>
19892 #include <sys/stat.h>
19893 #include <fcntl.h>
19894 #include <sys/time.h>
19895 #include <time.h>
19896 #include <unistd.h>
19897 #include <stdlib.h>
19898 #include <stdio.h>
19899 #include <utime.h>
19900
19901 static int
19902 inorder (time_t a, time_t b, time_t c)
19903 {
19904 return a <= b && b <= c;
19905 }
19906
19907 int
19908 main ()
19909 {
19910 int result = 0;
19911 char const *file = "conftest.utimes";
19912 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19913
19914 /* Test whether utimes() essentially works. */
19915 {
19916 struct stat sbuf;
19917 FILE *f = fopen (file, "w");
19918 if (f == NULL)
19919 result |= 1;
19920 else if (fclose (f) != 0)
19921 result |= 1;
19922 else if (utimes (file, timeval) != 0)
19923 result |= 2;
19924 else if (lstat (file, &sbuf) != 0)
19925 result |= 1;
19926 else if (!(sbuf.st_atime == timeval[0].tv_sec
19927 && sbuf.st_mtime == timeval[1].tv_sec))
19928 result |= 4;
19929 if (unlink (file) != 0)
19930 result |= 1;
19931 }
19932
19933 /* Test whether utimes() with a NULL argument sets the file's timestamp
19934 to the current time. Use 'fstat' as well as 'time' to
19935 determine the "current" time, to accommodate NFS file systems
19936 if there is a time skew between the host and the NFS server. */
19937 {
19938 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19939 if (fd < 0)
19940 result |= 1;
19941 else
19942 {
19943 time_t t0, t2;
19944 struct stat st0, st1, st2;
19945 if (time (&t0) == (time_t) -1)
19946 result |= 1;
19947 else if (fstat (fd, &st0) != 0)
19948 result |= 1;
19949 else if (utimes (file, timeval) != 0)
19950 result |= 2;
19951 else if (utimes (file, NULL) != 0)
19952 result |= 8;
19953 else if (fstat (fd, &st1) != 0)
19954 result |= 1;
19955 else if (write (fd, "\n", 1) != 1)
19956 result |= 1;
19957 else if (fstat (fd, &st2) != 0)
19958 result |= 1;
19959 else if (time (&t2) == (time_t) -1)
19960 result |= 1;
19961 else
19962 {
19963 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19964 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19965 if (! (st1.st_atime == st1.st_mtime))
19966 result |= 16;
19967 if (! (m_ok_POSIX || m_ok_NFS))
19968 result |= 32;
19969 }
19970 if (close (fd) != 0)
19971 result |= 1;
19972 }
19973 if (unlink (file) != 0)
19974 result |= 1;
19975 }
19976
19977 /* Test whether utimes() with a NULL argument works on read-only files. */
19978 {
19979 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19980 if (fd < 0)
19981 result |= 1;
19982 else if (close (fd) != 0)
19983 result |= 1;
19984 else if (utimes (file, NULL) != 0)
19985 result |= 64;
19986 if (unlink (file) != 0)
19987 result |= 1;
19988 }
19989
19990 return result;
19991 }
19992
19993 _ACEOF
19994 if ac_fn_c_try_run "$LINENO"; then :
19995 gl_cv_func_working_utimes=yes
19996 else
19997 gl_cv_func_working_utimes=no
19998 fi
19999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20000 conftest.$ac_objext conftest.beam conftest.$ac_ext
20001 fi
20002
20003 fi
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20005 $as_echo "$gl_cv_func_working_utimes" >&6; }
20006
20007 if test $gl_cv_func_working_utimes = yes; then
20008
20009 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20010
20011 fi
20012
20013
20014
20015
20016
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20018 $as_echo_n "checking for struct utimbuf... " >&6; }
20019 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20020 $as_echo_n "(cached) " >&6
20021 else
20022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h. */
20024 #if HAVE_SYS_TIME_H
20025 #include <sys/time.h>
20026 #endif
20027 #include <time.h>
20028 #ifdef HAVE_UTIME_H
20029 #include <utime.h>
20030 #endif
20031
20032 int
20033 main ()
20034 {
20035 static struct utimbuf x; x.actime = x.modtime;
20036 ;
20037 return 0;
20038 }
20039 _ACEOF
20040 if ac_fn_c_try_compile "$LINENO"; then :
20041 gl_cv_sys_struct_utimbuf=yes
20042 else
20043 gl_cv_sys_struct_utimbuf=no
20044 fi
20045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20046 fi
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20048 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20049
20050 if test $gl_cv_sys_struct_utimbuf = yes; then
20051
20052 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20053
20054 fi
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067 if false; then
20068 GL_COND_LIBTOOL_TRUE=
20069 GL_COND_LIBTOOL_FALSE='#'
20070 else
20071 GL_COND_LIBTOOL_TRUE='#'
20072 GL_COND_LIBTOOL_FALSE=
20073 fi
20074
20075 gl_cond_libtool=false
20076 gl_libdeps=
20077 gl_ltlibdeps=
20078 gl_m4_base='m4'
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088 gl_source_base='lib'
20089
20090
20091 if test $ac_cv_func_alloca_works = no; then
20092 :
20093 fi
20094
20095 # Define an additional variable used in the Makefile substitution.
20096 if test $ac_cv_working_alloca_h = yes; then
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20098 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20099 if test "${gl_cv_rpl_alloca+set}" = set; then :
20100 $as_echo_n "(cached) " >&6
20101 else
20102
20103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104 /* end confdefs.h. */
20105
20106 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20107 Need own alloca
20108 #endif
20109
20110 _ACEOF
20111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20112 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20113 gl_cv_rpl_alloca=yes
20114 else
20115 gl_cv_rpl_alloca=no
20116 fi
20117 rm -f conftest*
20118
20119
20120 fi
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20122 $as_echo "$gl_cv_rpl_alloca" >&6; }
20123 if test $gl_cv_rpl_alloca = yes; then
20124
20125 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20126
20127 ALLOCA_H=alloca.h
20128 else
20129 ALLOCA_H=
20130 fi
20131 else
20132 ALLOCA_H=alloca.h
20133 fi
20134
20135 if test -n "$ALLOCA_H"; then
20136 GL_GENERATE_ALLOCA_H_TRUE=
20137 GL_GENERATE_ALLOCA_H_FALSE='#'
20138 else
20139 GL_GENERATE_ALLOCA_H_TRUE='#'
20140 GL_GENERATE_ALLOCA_H_FALSE=
20141 fi
20142
20143
20144
20145
20146
20147
20148 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20149 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20150
20151 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20152 # programs in the package would end up linked with that potentially-shared
20153 # library, inducing unnecessary run-time overhead.
20154 LIB_CLOCK_GETTIME=
20155
20156 gl_saved_libs=$LIBS
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20158 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20159 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20160 $as_echo_n "(cached) " >&6
20161 else
20162 ac_func_search_save_LIBS=$LIBS
20163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20165
20166 /* Override any GCC internal prototype to avoid an error.
20167 Use char because int might match the return type of a GCC
20168 builtin and then its argument prototype would still apply. */
20169 #ifdef __cplusplus
20170 extern "C"
20171 #endif
20172 char clock_gettime ();
20173 int
20174 main ()
20175 {
20176 return clock_gettime ();
20177 ;
20178 return 0;
20179 }
20180 _ACEOF
20181 for ac_lib in '' rt posix4; do
20182 if test -z "$ac_lib"; then
20183 ac_res="none required"
20184 else
20185 ac_res=-l$ac_lib
20186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20187 fi
20188 if ac_fn_c_try_link "$LINENO"; then :
20189 ac_cv_search_clock_gettime=$ac_res
20190 fi
20191 rm -f core conftest.err conftest.$ac_objext \
20192 conftest$ac_exeext
20193 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20194 break
20195 fi
20196 done
20197 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20198
20199 else
20200 ac_cv_search_clock_gettime=no
20201 fi
20202 rm conftest.$ac_ext
20203 LIBS=$ac_func_search_save_LIBS
20204 fi
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20206 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20207 ac_res=$ac_cv_search_clock_gettime
20208 if test "$ac_res" != no; then :
20209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20210 test "$ac_cv_search_clock_gettime" = "none required" ||
20211 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20212 fi
20213
20214 for ac_func in clock_gettime clock_settime
20215 do :
20216 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20217 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20218 eval as_val=\$$as_ac_var
20219 if test "x$as_val" = x""yes; then :
20220 cat >>confdefs.h <<_ACEOF
20221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20222 _ACEOF
20223
20224 fi
20225 done
20226
20227 LIBS=$gl_saved_libs
20228
20229
20230
20231
20232 :
20233
20234
20235
20236
20237 :
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20254
20255
20256 if test $HAVE_DUP2 = 1; then
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20258 $as_echo_n "checking whether dup2 works... " >&6; }
20259 if test "${gl_cv_func_dup2_works+set}" = set; then :
20260 $as_echo_n "(cached) " >&6
20261 else
20262 if test "$cross_compiling" = yes; then :
20263 case "$host_os" in
20264 mingw*) # on this platform, dup2 always returns 0 for success
20265 gl_cv_func_dup2_works="guessing no" ;;
20266 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20267 gl_cv_func_dup2_works="guessing no" ;;
20268 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20269 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20270 gl_cv_func_dup2_works="guessing no" ;;
20271 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20272 gl_cv_func_dup2_works="guessing no" ;;
20273 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20274 gl_cv_func_dup2_works="guessing no" ;;
20275 *) gl_cv_func_dup2_works="guessing yes" ;;
20276 esac
20277 else
20278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20279 /* end confdefs.h. */
20280
20281 #include <unistd.h>
20282 #include <fcntl.h>
20283 #include <errno.h>
20284 int
20285 main ()
20286 {
20287 int result = 0;
20288 #ifdef FD_CLOEXEC
20289 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20290 result |= 1;
20291 #endif
20292 if (dup2 (1, 1) == 0)
20293 result |= 2;
20294 #ifdef FD_CLOEXEC
20295 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20296 result |= 4;
20297 #endif
20298 close (0);
20299 if (dup2 (0, 0) != -1)
20300 result |= 8;
20301 /* Many gnulib modules require POSIX conformance of EBADF. */
20302 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20303 result |= 16;
20304 return result;
20305
20306 ;
20307 return 0;
20308 }
20309
20310 _ACEOF
20311 if ac_fn_c_try_run "$LINENO"; then :
20312 gl_cv_func_dup2_works=yes
20313 else
20314 gl_cv_func_dup2_works=no
20315 fi
20316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20317 conftest.$ac_objext conftest.beam conftest.$ac_ext
20318 fi
20319
20320
20321 fi
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20323 $as_echo "$gl_cv_func_dup2_works" >&6; }
20324 case "$gl_cv_func_dup2_works" in
20325 *yes) ;;
20326 *)
20327 REPLACE_DUP2=1
20328 ;;
20329 esac
20330 fi
20331
20332
20333 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20334
20335
20336
20337
20338
20339
20340
20341
20342 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20343
20344
20345 fi
20346
20347
20348
20349
20350
20351 GNULIB_DUP2=1
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363 GNULIB_ENVIRON=1
20364
20365
20366
20367
20368
20369
20370
20371
20372 LIB_EXECINFO=''
20373 EXECINFO_H='execinfo.h'
20374
20375 if test $ac_cv_header_execinfo_h = yes; then
20376 gl_saved_libs=$LIBS
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20378 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20379 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20380 $as_echo_n "(cached) " >&6
20381 else
20382 ac_func_search_save_LIBS=$LIBS
20383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20384 /* end confdefs.h. */
20385
20386 /* Override any GCC internal prototype to avoid an error.
20387 Use char because int might match the return type of a GCC
20388 builtin and then its argument prototype would still apply. */
20389 #ifdef __cplusplus
20390 extern "C"
20391 #endif
20392 char backtrace_symbols_fd ();
20393 int
20394 main ()
20395 {
20396 return backtrace_symbols_fd ();
20397 ;
20398 return 0;
20399 }
20400 _ACEOF
20401 for ac_lib in '' execinfo; do
20402 if test -z "$ac_lib"; then
20403 ac_res="none required"
20404 else
20405 ac_res=-l$ac_lib
20406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20407 fi
20408 if ac_fn_c_try_link "$LINENO"; then :
20409 ac_cv_search_backtrace_symbols_fd=$ac_res
20410 fi
20411 rm -f core conftest.err conftest.$ac_objext \
20412 conftest$ac_exeext
20413 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20414 break
20415 fi
20416 done
20417 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20418
20419 else
20420 ac_cv_search_backtrace_symbols_fd=no
20421 fi
20422 rm conftest.$ac_ext
20423 LIBS=$ac_func_search_save_LIBS
20424 fi
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20426 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20427 ac_res=$ac_cv_search_backtrace_symbols_fd
20428 if test "$ac_res" != no; then :
20429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20430 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20431 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20432 fi
20433
20434 LIBS=$gl_saved_libs
20435 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
20436 fi
20437
20438 if test -n "$EXECINFO_H"; then
20439
20440
20441
20442
20443
20444
20445
20446
20447 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
20448
20449 fi
20450
20451
20452
20453 if test -n "$EXECINFO_H"; then
20454 GL_GENERATE_EXECINFO_H_TRUE=
20455 GL_GENERATE_EXECINFO_H_FALSE='#'
20456 else
20457 GL_GENERATE_EXECINFO_H_TRUE='#'
20458 GL_GENERATE_EXECINFO_H_FALSE=
20459 fi
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469 # Persuade glibc <stdlib.h> to declare getloadavg().
20470
20471
20472 gl_save_LIBS=$LIBS
20473
20474 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20475 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20476 HAVE_GETLOADAVG=1
20477 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20478 if test "x$ac_cv_func_getloadavg" = x""yes; then :
20479
20480 else
20481 gl_func_getloadavg_done=no
20482
20483 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20484 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20485 # to get the right answer into the cache.
20486 # For kstat on solaris, we need to test for libelf and libkvm to force the
20487 # definition of SVR4 below.
20488 if test $gl_func_getloadavg_done = no; then
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20490 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20491 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20492 $as_echo_n "(cached) " >&6
20493 else
20494 ac_check_lib_save_LIBS=$LIBS
20495 LIBS="-lelf $LIBS"
20496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20497 /* end confdefs.h. */
20498
20499 /* Override any GCC internal prototype to avoid an error.
20500 Use char because int might match the return type of a GCC
20501 builtin and then its argument prototype would still apply. */
20502 #ifdef __cplusplus
20503 extern "C"
20504 #endif
20505 char elf_begin ();
20506 int
20507 main ()
20508 {
20509 return elf_begin ();
20510 ;
20511 return 0;
20512 }
20513 _ACEOF
20514 if ac_fn_c_try_link "$LINENO"; then :
20515 ac_cv_lib_elf_elf_begin=yes
20516 else
20517 ac_cv_lib_elf_elf_begin=no
20518 fi
20519 rm -f core conftest.err conftest.$ac_objext \
20520 conftest$ac_exeext conftest.$ac_ext
20521 LIBS=$ac_check_lib_save_LIBS
20522 fi
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20524 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20525 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20526 LIBS="-lelf $LIBS"
20527 fi
20528
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20530 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20531 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20532 $as_echo_n "(cached) " >&6
20533 else
20534 ac_check_lib_save_LIBS=$LIBS
20535 LIBS="-lkvm $LIBS"
20536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20537 /* end confdefs.h. */
20538
20539 /* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20542 #ifdef __cplusplus
20543 extern "C"
20544 #endif
20545 char kvm_open ();
20546 int
20547 main ()
20548 {
20549 return kvm_open ();
20550 ;
20551 return 0;
20552 }
20553 _ACEOF
20554 if ac_fn_c_try_link "$LINENO"; then :
20555 ac_cv_lib_kvm_kvm_open=yes
20556 else
20557 ac_cv_lib_kvm_kvm_open=no
20558 fi
20559 rm -f core conftest.err conftest.$ac_objext \
20560 conftest$ac_exeext conftest.$ac_ext
20561 LIBS=$ac_check_lib_save_LIBS
20562 fi
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20564 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20565 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20566 LIBS="-lkvm $LIBS"
20567 fi
20568
20569 # Check for the 4.4BSD definition of getloadavg.
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20571 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20572 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20573 $as_echo_n "(cached) " >&6
20574 else
20575 ac_check_lib_save_LIBS=$LIBS
20576 LIBS="-lutil $LIBS"
20577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20578 /* end confdefs.h. */
20579
20580 /* Override any GCC internal prototype to avoid an error.
20581 Use char because int might match the return type of a GCC
20582 builtin and then its argument prototype would still apply. */
20583 #ifdef __cplusplus
20584 extern "C"
20585 #endif
20586 char getloadavg ();
20587 int
20588 main ()
20589 {
20590 return getloadavg ();
20591 ;
20592 return 0;
20593 }
20594 _ACEOF
20595 if ac_fn_c_try_link "$LINENO"; then :
20596 ac_cv_lib_util_getloadavg=yes
20597 else
20598 ac_cv_lib_util_getloadavg=no
20599 fi
20600 rm -f core conftest.err conftest.$ac_objext \
20601 conftest$ac_exeext conftest.$ac_ext
20602 LIBS=$ac_check_lib_save_LIBS
20603 fi
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20605 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20606 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20607 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20608 fi
20609
20610 fi
20611
20612 if test $gl_func_getloadavg_done = no; then
20613 # There is a commonly available library for RS/6000 AIX.
20614 # Since it is not a standard part of AIX, it might be installed locally.
20615 gl_getloadavg_LIBS=$LIBS
20616 LIBS="-L/usr/local/lib $LIBS"
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20618 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20619 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20620 $as_echo_n "(cached) " >&6
20621 else
20622 ac_check_lib_save_LIBS=$LIBS
20623 LIBS="-lgetloadavg $LIBS"
20624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20625 /* end confdefs.h. */
20626
20627 /* Override any GCC internal prototype to avoid an error.
20628 Use char because int might match the return type of a GCC
20629 builtin and then its argument prototype would still apply. */
20630 #ifdef __cplusplus
20631 extern "C"
20632 #endif
20633 char getloadavg ();
20634 int
20635 main ()
20636 {
20637 return getloadavg ();
20638 ;
20639 return 0;
20640 }
20641 _ACEOF
20642 if ac_fn_c_try_link "$LINENO"; then :
20643 ac_cv_lib_getloadavg_getloadavg=yes
20644 else
20645 ac_cv_lib_getloadavg_getloadavg=no
20646 fi
20647 rm -f core conftest.err conftest.$ac_objext \
20648 conftest$ac_exeext conftest.$ac_ext
20649 LIBS=$ac_check_lib_save_LIBS
20650 fi
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20652 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20653 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
20654 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
20655 else
20656 LIBS=$gl_getloadavg_LIBS
20657 fi
20658
20659 fi
20660
20661 # Set up the replacement function if necessary.
20662 if test $gl_func_getloadavg_done = no; then
20663 HAVE_GETLOADAVG=0
20664
20665 # Solaris has libkstat which does not require root.
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20667 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20668 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20669 $as_echo_n "(cached) " >&6
20670 else
20671 ac_check_lib_save_LIBS=$LIBS
20672 LIBS="-lkstat $LIBS"
20673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20674 /* end confdefs.h. */
20675
20676 /* Override any GCC internal prototype to avoid an error.
20677 Use char because int might match the return type of a GCC
20678 builtin and then its argument prototype would still apply. */
20679 #ifdef __cplusplus
20680 extern "C"
20681 #endif
20682 char kstat_open ();
20683 int
20684 main ()
20685 {
20686 return kstat_open ();
20687 ;
20688 return 0;
20689 }
20690 _ACEOF
20691 if ac_fn_c_try_link "$LINENO"; then :
20692 ac_cv_lib_kstat_kstat_open=yes
20693 else
20694 ac_cv_lib_kstat_kstat_open=no
20695 fi
20696 rm -f core conftest.err conftest.$ac_objext \
20697 conftest$ac_exeext conftest.$ac_ext
20698 LIBS=$ac_check_lib_save_LIBS
20699 fi
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20701 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20702 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
20703 cat >>confdefs.h <<_ACEOF
20704 #define HAVE_LIBKSTAT 1
20705 _ACEOF
20706
20707 LIBS="-lkstat $LIBS"
20708
20709 fi
20710
20711 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
20712
20713 # AIX has libperfstat which does not require root
20714 if test $gl_func_getloadavg_done = no; then
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20716 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20717 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20718 $as_echo_n "(cached) " >&6
20719 else
20720 ac_check_lib_save_LIBS=$LIBS
20721 LIBS="-lperfstat $LIBS"
20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20724
20725 /* Override any GCC internal prototype to avoid an error.
20726 Use char because int might match the return type of a GCC
20727 builtin and then its argument prototype would still apply. */
20728 #ifdef __cplusplus
20729 extern "C"
20730 #endif
20731 char perfstat_cpu_total ();
20732 int
20733 main ()
20734 {
20735 return perfstat_cpu_total ();
20736 ;
20737 return 0;
20738 }
20739 _ACEOF
20740 if ac_fn_c_try_link "$LINENO"; then :
20741 ac_cv_lib_perfstat_perfstat_cpu_total=yes
20742 else
20743 ac_cv_lib_perfstat_perfstat_cpu_total=no
20744 fi
20745 rm -f core conftest.err conftest.$ac_objext \
20746 conftest$ac_exeext conftest.$ac_ext
20747 LIBS=$ac_check_lib_save_LIBS
20748 fi
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20750 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20751 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
20752 cat >>confdefs.h <<_ACEOF
20753 #define HAVE_LIBPERFSTAT 1
20754 _ACEOF
20755
20756 LIBS="-lperfstat $LIBS"
20757
20758 fi
20759
20760 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
20761 fi
20762
20763 if test $gl_func_getloadavg_done = no; then
20764 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20765 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
20766 gl_func_getloadavg_done=yes
20767
20768 $as_echo "#define DGUX 1" >>confdefs.h
20769
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20771 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20772 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20773 $as_echo_n "(cached) " >&6
20774 else
20775 ac_check_lib_save_LIBS=$LIBS
20776 LIBS="-ldgc $LIBS"
20777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20778 /* end confdefs.h. */
20779
20780 /* Override any GCC internal prototype to avoid an error.
20781 Use char because int might match the return type of a GCC
20782 builtin and then its argument prototype would still apply. */
20783 #ifdef __cplusplus
20784 extern "C"
20785 #endif
20786 char dg_sys_info ();
20787 int
20788 main ()
20789 {
20790 return dg_sys_info ();
20791 ;
20792 return 0;
20793 }
20794 _ACEOF
20795 if ac_fn_c_try_link "$LINENO"; then :
20796 ac_cv_lib_dgc_dg_sys_info=yes
20797 else
20798 ac_cv_lib_dgc_dg_sys_info=no
20799 fi
20800 rm -f core conftest.err conftest.$ac_objext \
20801 conftest$ac_exeext conftest.$ac_ext
20802 LIBS=$ac_check_lib_save_LIBS
20803 fi
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20805 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20806 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
20807 cat >>confdefs.h <<_ACEOF
20808 #define HAVE_LIBDGC 1
20809 _ACEOF
20810
20811 LIBS="-ldgc $LIBS"
20812
20813 fi
20814
20815 fi
20816
20817
20818 fi
20819 fi
20820 fi
20821
20822
20823 if test "x$gl_save_LIBS" = x; then
20824 GETLOADAVG_LIBS=$LIBS
20825 else
20826 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20827 fi
20828 LIBS=$gl_save_LIBS
20829
20830
20831 # Test whether the system declares getloadavg. Solaris has the function
20832 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20833 for ac_header in sys/loadavg.h
20834 do :
20835 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20836 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
20837 cat >>confdefs.h <<_ACEOF
20838 #define HAVE_SYS_LOADAVG_H 1
20839 _ACEOF
20840
20841 fi
20842
20843 done
20844
20845 if test $ac_cv_header_sys_loadavg_h = yes; then
20846 HAVE_SYS_LOADAVG_H=1
20847 else
20848 HAVE_SYS_LOADAVG_H=0
20849 fi
20850 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20851 # include <sys/loadavg.h>
20852 #endif
20853 #include <stdlib.h>
20854 "
20855 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
20856
20857 else
20858 HAVE_DECL_GETLOADAVG=0
20859 fi
20860
20861
20862 if test $HAVE_GETLOADAVG = 0; then
20863
20864
20865
20866
20867
20868
20869
20870
20871 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
20872
20873
20874 # Figure out what our getloadavg.c needs.
20875
20876
20877
20878 # On HPUX9, an unprivileged user can get load averages this way.
20879 if test $gl_func_getloadavg_done = no; then
20880 for ac_func in pstat_getdynamic
20881 do :
20882 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20883 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
20884 cat >>confdefs.h <<_ACEOF
20885 #define HAVE_PSTAT_GETDYNAMIC 1
20886 _ACEOF
20887 gl_func_getloadavg_done=yes
20888 fi
20889 done
20890
20891 fi
20892
20893 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20894 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20895 # Irix 4.0.5F has the header but not the library.
20896 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
20897 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20898 gl_func_getloadavg_done=yes
20899
20900 $as_echo "#define SVR4 1" >>confdefs.h
20901
20902 fi
20903
20904 if test $gl_func_getloadavg_done = no; then
20905 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20906 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
20907 gl_func_getloadavg_done=yes
20908
20909 $as_echo "#define UMAX 1" >>confdefs.h
20910
20911
20912 $as_echo "#define UMAX4_3 1" >>confdefs.h
20913
20914 fi
20915
20916
20917 fi
20918
20919 if test $gl_func_getloadavg_done = no; then
20920 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20921 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
20922 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
20923
20924 fi
20925
20926
20927 fi
20928
20929 if test $gl_func_getloadavg_done = no; then
20930 for ac_header in mach/mach.h
20931 do :
20932 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20933 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20934 cat >>confdefs.h <<_ACEOF
20935 #define HAVE_MACH_MACH_H 1
20936 _ACEOF
20937
20938 fi
20939
20940 done
20941
20942 fi
20943
20944 for ac_header in nlist.h
20945 do :
20946 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20947 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20948 cat >>confdefs.h <<_ACEOF
20949 #define HAVE_NLIST_H 1
20950 _ACEOF
20951 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20952 "
20953 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20954
20955 cat >>confdefs.h <<_ACEOF
20956 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20957 _ACEOF
20958
20959
20960 fi
20961
20962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20963 /* end confdefs.h. */
20964 #include <nlist.h>
20965 int
20966 main ()
20967 {
20968 struct nlist x;
20969 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20970 x.n_un.n_name = "";
20971 #else
20972 x.n_name = "";
20973 #endif
20974 ;
20975 return 0;
20976 }
20977 _ACEOF
20978 if ac_fn_c_try_link "$LINENO"; then :
20979
20980 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20981
20982 fi
20983 rm -f core conftest.err conftest.$ac_objext \
20984 conftest$ac_exeext conftest.$ac_ext
20985
20986 fi
20987
20988 done
20989
20990 fi
20991
20992
20993
20994
20995
20996 GNULIB_GETLOADAVG=1
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007 if test $REPLACE_GETOPT = 1; then
21008
21009
21010
21011
21012
21013
21014
21015
21016 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21027
21028
21029
21030
21031 GNULIB_GL_UNISTD_H_GETOPT=1
21032 fi
21033
21034
21035
21036
21037
21038
21039
21040 REPLACE_GETOPT=0
21041 if test -n "$gl_replace_getopt"; then
21042 REPLACE_GETOPT=1
21043 fi
21044
21045 if test $REPLACE_GETOPT = 1; then
21046
21047 GETOPT_H=getopt.h
21048
21049 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21050
21051
21052
21053 fi
21054
21055 if test $REPLACE_GETOPT = 1; then
21056
21057
21058
21059
21060
21061
21062
21063
21064 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21075
21076
21077
21078
21079 GNULIB_GL_UNISTD_H_GETOPT=1
21080 fi
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093 gl_gettimeofday_timezone=void
21094 if test $ac_cv_func_gettimeofday != yes; then
21095 HAVE_GETTIMEOFDAY=0
21096 else
21097
21098
21099
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21101 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21102 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21103 $as_echo_n "(cached) " >&6
21104 else
21105 if test "$cross_compiling" = yes; then :
21106 # When cross-compiling:
21107 case "$host_os" in
21108 # Guess all is fine on glibc systems.
21109 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21110 # If we don't know, assume the worst.
21111 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21112 esac
21113
21114 else
21115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21116 /* end confdefs.h. */
21117 #include <string.h>
21118 #include <sys/time.h>
21119 #include <time.h>
21120 #include <stdlib.h>
21121
21122 int
21123 main ()
21124 {
21125
21126 time_t t = 0;
21127 struct tm *lt;
21128 struct tm saved_lt;
21129 struct timeval tv;
21130 lt = localtime (&t);
21131 saved_lt = *lt;
21132 gettimeofday (&tv, NULL);
21133 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21134
21135 ;
21136 return 0;
21137 }
21138 _ACEOF
21139 if ac_fn_c_try_run "$LINENO"; then :
21140 gl_cv_func_gettimeofday_clobber=no
21141 else
21142 gl_cv_func_gettimeofday_clobber=yes
21143 fi
21144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21145 conftest.$ac_objext conftest.beam conftest.$ac_ext
21146 fi
21147
21148 fi
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21150 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21151
21152 case "$gl_cv_func_gettimeofday_clobber" in
21153 *yes)
21154 REPLACE_GETTIMEOFDAY=1
21155
21156
21157 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21158
21159
21160 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21161
21162
21163
21164 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21165
21166 ;;
21167 esac
21168
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21170 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21171 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21172 $as_echo_n "(cached) " >&6
21173 else
21174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h. */
21176 #include <sys/time.h>
21177 struct timeval c;
21178 int gettimeofday (struct timeval *restrict, void *restrict);
21179
21180 int
21181 main ()
21182 {
21183 /* glibc uses struct timezone * rather than the POSIX void *
21184 if _GNU_SOURCE is defined. However, since the only portable
21185 use of gettimeofday uses NULL as the second parameter, and
21186 since the glibc definition is actually more typesafe, it is
21187 not worth wrapping this to get a compliant signature. */
21188 int (*f) (struct timeval *restrict, void *restrict)
21189 = gettimeofday;
21190 int x = f (&c, 0);
21191 return !(x | c.tv_sec | c.tv_usec);
21192
21193 ;
21194 return 0;
21195 }
21196 _ACEOF
21197 if ac_fn_c_try_compile "$LINENO"; then :
21198 gl_cv_func_gettimeofday_posix_signature=yes
21199 else
21200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21201 /* end confdefs.h. */
21202 #include <sys/time.h>
21203 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21204
21205 int
21206 main ()
21207 {
21208
21209 ;
21210 return 0;
21211 }
21212 _ACEOF
21213 if ac_fn_c_try_compile "$LINENO"; then :
21214 gl_cv_func_gettimeofday_posix_signature=almost
21215 else
21216 gl_cv_func_gettimeofday_posix_signature=no
21217 fi
21218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219 fi
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221 fi
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21223 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21224 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21225 gl_gettimeofday_timezone='struct timezone'
21226 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21227 REPLACE_GETTIMEOFDAY=1
21228 fi
21229 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21230 REPLACE_GETTIMEOFDAY=1
21231 fi
21232
21233 fi
21234
21235 cat >>confdefs.h <<_ACEOF
21236 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21237 _ACEOF
21238
21239
21240 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21241
21242
21243
21244
21245
21246
21247
21248
21249 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21250
21251
21252 for ac_header in sys/timeb.h
21253 do :
21254 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21255 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
21256 cat >>confdefs.h <<_ACEOF
21257 #define HAVE_SYS_TIMEB_H 1
21258 _ACEOF
21259
21260 fi
21261
21262 done
21263
21264 for ac_func in _ftime
21265 do :
21266 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21267 if test "x$ac_cv_func__ftime" = x""yes; then :
21268 cat >>confdefs.h <<_ACEOF
21269 #define HAVE__FTIME 1
21270 _ACEOF
21271
21272 fi
21273 done
21274
21275
21276 fi
21277
21278
21279
21280
21281
21282 GNULIB_GETTIMEOFDAY=1
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293 if test $ac_cv_func_lstat = yes; then
21294
21295 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21296 *no)
21297 REPLACE_LSTAT=1
21298 ;;
21299 esac
21300 else
21301 HAVE_LSTAT=0
21302 fi
21303
21304 if test $REPLACE_LSTAT = 1; then
21305
21306
21307
21308
21309
21310
21311
21312
21313 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
21314
21315
21316
21317 :
21318
21319 fi
21320
21321
21322
21323
21324
21325 GNULIB_LSTAT=1
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337 if test $APPLE_UNIVERSAL_BUILD = 1; then
21338 # A universal build on Apple Mac OS X platforms.
21339 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21340 # But we need a configuration result that is valid in both modes.
21341 gl_cv_func_working_mktime=no
21342 fi
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21344 $as_echo_n "checking for working mktime... " >&6; }
21345 if test "${gl_cv_func_working_mktime+set}" = set; then :
21346 $as_echo_n "(cached) " >&6
21347 else
21348 if test "$cross_compiling" = yes; then :
21349 gl_cv_func_working_mktime=no
21350 else
21351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21352 /* end confdefs.h. */
21353 /* Test program from Paul Eggert and Tony Leneis. */
21354 #include <limits.h>
21355 #include <stdlib.h>
21356 #include <time.h>
21357
21358 #ifdef HAVE_UNISTD_H
21359 # include <unistd.h>
21360 #endif
21361
21362 #ifndef HAVE_ALARM
21363 # define alarm(X) /* empty */
21364 #endif
21365
21366 /* Work around redefinition to rpl_putenv by other config tests. */
21367 #undef putenv
21368
21369 static time_t time_t_max;
21370 static time_t time_t_min;
21371
21372 /* Values we'll use to set the TZ environment variable. */
21373 static char *tz_strings[] = {
21374 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21375 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21376 };
21377 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21378
21379 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21380 Based on a problem report from Andreas Jaeger. */
21381 static int
21382 spring_forward_gap ()
21383 {
21384 /* glibc (up to about 1998-10-07) failed this test. */
21385 struct tm tm;
21386
21387 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21388 instead of "TZ=America/Vancouver" in order to detect the bug even
21389 on systems that don't support the Olson extension, or don't have the
21390 full zoneinfo tables installed. */
21391 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21392
21393 tm.tm_year = 98;
21394 tm.tm_mon = 3;
21395 tm.tm_mday = 5;
21396 tm.tm_hour = 2;
21397 tm.tm_min = 0;
21398 tm.tm_sec = 0;
21399 tm.tm_isdst = -1;
21400 return mktime (&tm) != (time_t) -1;
21401 }
21402
21403 static int
21404 mktime_test1 (time_t now)
21405 {
21406 struct tm *lt;
21407 return ! (lt = localtime (&now)) || mktime (lt) == now;
21408 }
21409
21410 static int
21411 mktime_test (time_t now)
21412 {
21413 return (mktime_test1 (now)
21414 && mktime_test1 ((time_t) (time_t_max - now))
21415 && mktime_test1 ((time_t) (time_t_min + now)));
21416 }
21417
21418 static int
21419 irix_6_4_bug ()
21420 {
21421 /* Based on code from Ariel Faigon. */
21422 struct tm tm;
21423 tm.tm_year = 96;
21424 tm.tm_mon = 3;
21425 tm.tm_mday = 0;
21426 tm.tm_hour = 0;
21427 tm.tm_min = 0;
21428 tm.tm_sec = 0;
21429 tm.tm_isdst = -1;
21430 mktime (&tm);
21431 return tm.tm_mon == 2 && tm.tm_mday == 31;
21432 }
21433
21434 static int
21435 bigtime_test (int j)
21436 {
21437 struct tm tm;
21438 time_t now;
21439 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21440 now = mktime (&tm);
21441 if (now != (time_t) -1)
21442 {
21443 struct tm *lt = localtime (&now);
21444 if (! (lt
21445 && lt->tm_year == tm.tm_year
21446 && lt->tm_mon == tm.tm_mon
21447 && lt->tm_mday == tm.tm_mday
21448 && lt->tm_hour == tm.tm_hour
21449 && lt->tm_min == tm.tm_min
21450 && lt->tm_sec == tm.tm_sec
21451 && lt->tm_yday == tm.tm_yday
21452 && lt->tm_wday == tm.tm_wday
21453 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21454 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21455 return 0;
21456 }
21457 return 1;
21458 }
21459
21460 static int
21461 year_2050_test ()
21462 {
21463 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21464 ignoring leap seconds. */
21465 unsigned long int answer = 2527315200UL;
21466
21467 struct tm tm;
21468 time_t t;
21469 tm.tm_year = 2050 - 1900;
21470 tm.tm_mon = 2 - 1;
21471 tm.tm_mday = 1;
21472 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21473 tm.tm_isdst = -1;
21474
21475 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21476 instead of "TZ=America/Vancouver" in order to detect the bug even
21477 on systems that don't support the Olson extension, or don't have the
21478 full zoneinfo tables installed. */
21479 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21480
21481 t = mktime (&tm);
21482
21483 /* Check that the result is either a failure, or close enough
21484 to the correct answer that we can assume the discrepancy is
21485 due to leap seconds. */
21486 return (t == (time_t) -1
21487 || (0 < t && answer - 120 <= t && t <= answer + 120));
21488 }
21489
21490 int
21491 main ()
21492 {
21493 int result = 0;
21494 time_t t, delta;
21495 int i, j;
21496 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21497 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21498
21499 /* This test makes some buggy mktime implementations loop.
21500 Give up after 60 seconds; a mktime slower than that
21501 isn't worth using anyway. */
21502 alarm (60);
21503
21504 time_t_max = (! time_t_signed
21505 ? (time_t) -1
21506 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21507 * 2 + 1));
21508 time_t_min = (! time_t_signed
21509 ? (time_t) 0
21510 : time_t_signed_magnitude
21511 ? ~ (time_t) 0
21512 : ~ time_t_max);
21513
21514 delta = time_t_max / 997; /* a suitable prime number */
21515 for (i = 0; i < N_STRINGS; i++)
21516 {
21517 if (tz_strings[i])
21518 putenv (tz_strings[i]);
21519
21520 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21521 if (! mktime_test (t))
21522 result |= 1;
21523 if ((result & 2) == 0
21524 && ! (mktime_test ((time_t) 1)
21525 && mktime_test ((time_t) (60 * 60))
21526 && mktime_test ((time_t) (60 * 60 * 24))))
21527 result |= 2;
21528
21529 for (j = 1; (result & 4) == 0; j <<= 1)
21530 {
21531 if (! bigtime_test (j))
21532 result |= 4;
21533 if (INT_MAX / 2 < j)
21534 break;
21535 }
21536 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21537 result |= 8;
21538 }
21539 if (! irix_6_4_bug ())
21540 result |= 16;
21541 if (! spring_forward_gap ())
21542 result |= 32;
21543 if (! year_2050_test ())
21544 result |= 64;
21545 return result;
21546 }
21547 _ACEOF
21548 if ac_fn_c_try_run "$LINENO"; then :
21549 gl_cv_func_working_mktime=yes
21550 else
21551 gl_cv_func_working_mktime=no
21552 fi
21553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21554 conftest.$ac_objext conftest.beam conftest.$ac_ext
21555 fi
21556
21557
21558 fi
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21560 $as_echo "$gl_cv_func_working_mktime" >&6; }
21561
21562 if test $gl_cv_func_working_mktime = no; then
21563 REPLACE_MKTIME=1
21564 else
21565 REPLACE_MKTIME=0
21566 fi
21567
21568 if test $REPLACE_MKTIME = 1; then
21569
21570
21571
21572
21573
21574
21575
21576
21577 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
21578
21579 :
21580 fi
21581
21582
21583
21584
21585
21586 GNULIB_MKTIME=1
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598 if test $ac_cv_func_pselect = yes; then
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21600 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21601 if test "${gl_cv_sig_pselect+set}" = set; then :
21602 $as_echo_n "(cached) " >&6
21603 else
21604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21605 /* end confdefs.h. */
21606 #include <sys/select.h>
21607
21608 int
21609 main ()
21610 {
21611 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21612 struct timespec const *restrict,
21613 sigset_t const *restrict) = pselect;
21614 return !p;
21615 ;
21616 return 0;
21617 }
21618 _ACEOF
21619 if ac_fn_c_try_link "$LINENO"; then :
21620 gl_cv_sig_pselect=yes
21621 else
21622 gl_cv_sig_pselect=no
21623 fi
21624 rm -f core conftest.err conftest.$ac_objext \
21625 conftest$ac_exeext conftest.$ac_ext
21626 fi
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21628 $as_echo "$gl_cv_sig_pselect" >&6; }
21629 fi
21630
21631 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
21632 REPLACE_PSELECT=1
21633 fi
21634
21635 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
21636
21637
21638
21639
21640
21641
21642
21643
21644 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
21645
21646 fi
21647
21648
21649
21650
21651
21652 GNULIB_PSELECT=1
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662 LIB_PTHREAD_SIGMASK=
21663
21664
21665 if test $ac_cv_func_pthread_sigmask = yes; then
21666 :
21667 else
21668 HAVE_PTHREAD_SIGMASK=0
21669 REPLACE_PTHREAD_SIGMASK=1
21670 fi
21671
21672
21673
21674
21675 if test $HAVE_PTHREAD_SIGMASK = 1; then
21676
21677
21678 if test -z "$LIB_PTHREAD_SIGMASK"; then
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21680 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21681 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21682 $as_echo_n "(cached) " >&6
21683 else
21684
21685 if test "$cross_compiling" = yes; then :
21686
21687 case "$host_os" in
21688 freebsd* | hpux* | solaris | solaris2.[2-9]*)
21689 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
21690 *)
21691 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
21692 esac
21693
21694 else
21695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h. */
21697
21698 #include <pthread.h>
21699 #include <signal.h>
21700 #include <stddef.h>
21701 int main ()
21702 {
21703 sigset_t set;
21704 sigemptyset (&set);
21705 return pthread_sigmask (1729, &set, NULL) != 0;
21706 }
21707 _ACEOF
21708 if ac_fn_c_try_run "$LINENO"; then :
21709 gl_cv_func_pthread_sigmask_in_libc_works=no
21710 else
21711 gl_cv_func_pthread_sigmask_in_libc_works=yes
21712 fi
21713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21714 conftest.$ac_objext conftest.beam conftest.$ac_ext
21715 fi
21716
21717
21718 fi
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21720 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21721 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21722 *no)
21723 REPLACE_PTHREAD_SIGMASK=1
21724
21725 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21726
21727 ;;
21728 esac
21729 fi
21730
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21732 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21733 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21734 $as_echo_n "(cached) " >&6
21735 else
21736
21737 gl_save_LIBS="$LIBS"
21738 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
21739 if test "$cross_compiling" = yes; then :
21740 case "$host_os" in
21741 cygwin*)
21742 gl_cv_func_pthread_sigmask_return_works="guessing no";;
21743 *)
21744 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
21745 esac
21746
21747 else
21748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21749 /* end confdefs.h. */
21750
21751 #include <pthread.h>
21752 #include <signal.h>
21753 #include <stddef.h>
21754 int main ()
21755 {
21756 sigset_t set;
21757 sigemptyset (&set);
21758 if (pthread_sigmask (1729, &set, NULL) == -1)
21759 return 1;
21760 return 0;
21761 }
21762 _ACEOF
21763 if ac_fn_c_try_run "$LINENO"; then :
21764 gl_cv_func_pthread_sigmask_return_works=yes
21765 else
21766 gl_cv_func_pthread_sigmask_return_works=no
21767 fi
21768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21769 conftest.$ac_objext conftest.beam conftest.$ac_ext
21770 fi
21771
21772 LIBS="$gl_save_LIBS"
21773
21774 fi
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21776 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21777 case "$gl_cv_func_pthread_sigmask_return_works" in
21778 *no)
21779 REPLACE_PTHREAD_SIGMASK=1
21780
21781 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21782
21783 ;;
21784 esac
21785
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21787 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21788 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21789 $as_echo_n "(cached) " >&6
21790 else
21791
21792 case "$host_os" in
21793 irix*)
21794 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
21795 *)
21796 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
21797 esac
21798 gl_save_LIBS="$LIBS"
21799 LIBS="$LIBS $LIBMULTITHREAD"
21800 if test "$cross_compiling" = yes; then :
21801 :
21802 else
21803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h. */
21805
21806 #include <pthread.h>
21807 #include <signal.h>
21808 #include <stdio.h>
21809 #include <stdlib.h>
21810 #include <unistd.h>
21811 static volatile int sigint_occurred;
21812 static void
21813 sigint_handler (int sig)
21814 {
21815 sigint_occurred++;
21816 }
21817 int main ()
21818 {
21819 sigset_t set;
21820 int pid = getpid ();
21821 char command[80];
21822 signal (SIGINT, sigint_handler);
21823 sigemptyset (&set);
21824 sigaddset (&set, SIGINT);
21825 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21826 return 1;
21827 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21828 if (!(system (command) == 0))
21829 return 2;
21830 sleep (2);
21831 if (!(sigint_occurred == 0))
21832 return 3;
21833 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21834 return 4;
21835 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21836 return 5;
21837 return 0;
21838 }
21839 _ACEOF
21840 if ac_fn_c_try_run "$LINENO"; then :
21841 :
21842 else
21843 gl_cv_func_pthread_sigmask_unblock_works=no
21844 fi
21845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21846 conftest.$ac_objext conftest.beam conftest.$ac_ext
21847 fi
21848
21849 LIBS="$gl_save_LIBS"
21850
21851 fi
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21853 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21854 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21855 *no)
21856 REPLACE_PTHREAD_SIGMASK=1
21857
21858 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21859
21860 ;;
21861 esac
21862 fi
21863
21864 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21865
21866
21867
21868
21869
21870
21871
21872
21873 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21874
21875
21876 if test $HAVE_PTHREAD_SIGMASK = 1; then
21877
21878 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21879
21880 fi
21881
21882 fi
21883
21884
21885
21886
21887
21888 GNULIB_PTHREAD_SIGMASK=1
21889
21890
21891
21892
21893
21894
21895
21896
21897 if test $ac_cv_func_readlink = no; then
21898 HAVE_READLINK=0
21899 else
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21901 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21902 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21903 $as_echo_n "(cached) " >&6
21904 else
21905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21906 /* end confdefs.h. */
21907 #include <unistd.h>
21908 /* Cause compilation failure if original declaration has wrong type. */
21909 ssize_t readlink (const char *, char *, size_t);
21910 int
21911 main ()
21912 {
21913
21914 ;
21915 return 0;
21916 }
21917 _ACEOF
21918 if ac_fn_c_try_compile "$LINENO"; then :
21919 gl_cv_decl_readlink_works=yes
21920 else
21921 gl_cv_decl_readlink_works=no
21922 fi
21923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21924 fi
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21926 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21928 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21929 if test "${gl_cv_func_readlink_works+set}" = set; then :
21930 $as_echo_n "(cached) " >&6
21931 else
21932 # We have readlink, so assume ln -s works.
21933 ln -s conftest.no-such conftest.link
21934 ln -s conftest.link conftest.lnk2
21935 if test "$cross_compiling" = yes; then :
21936 case "$host_os" in
21937 # Guess yes on glibc systems.
21938 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
21939 # If we don't know, assume the worst.
21940 *) gl_cv_func_readlink_works="guessing no" ;;
21941 esac
21942
21943 else
21944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21945 /* end confdefs.h. */
21946 #include <unistd.h>
21947
21948 int
21949 main ()
21950 {
21951 char buf[20];
21952 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21953 ;
21954 return 0;
21955 }
21956 _ACEOF
21957 if ac_fn_c_try_run "$LINENO"; then :
21958 gl_cv_func_readlink_works=yes
21959 else
21960 gl_cv_func_readlink_works=no
21961 fi
21962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21963 conftest.$ac_objext conftest.beam conftest.$ac_ext
21964 fi
21965
21966 rm -f conftest.link conftest.lnk2
21967 fi
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21969 $as_echo "$gl_cv_func_readlink_works" >&6; }
21970 case "$gl_cv_func_readlink_works" in
21971 *yes)
21972 if test "$gl_cv_decl_readlink_works" != yes; then
21973 REPLACE_READLINK=1
21974 fi
21975 ;;
21976 *)
21977
21978 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21979
21980 REPLACE_READLINK=1
21981 ;;
21982 esac
21983 fi
21984
21985 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21986
21987
21988
21989
21990
21991
21992
21993
21994 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
21995
21996
21997 :
21998
21999 fi
22000
22001
22002
22003
22004
22005 GNULIB_READLINK=1
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022 if test $gl_cv_have_include_next = yes; then
22023 gl_cv_next_signal_h='<'signal.h'>'
22024 else
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22026 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22027 if test "${gl_cv_next_signal_h+set}" = set; then :
22028 $as_echo_n "(cached) " >&6
22029 else
22030
22031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22032 /* end confdefs.h. */
22033 #include <signal.h>
22034
22035 _ACEOF
22036 case "$host_os" in
22037 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22038 *) gl_absname_cpp="$ac_cpp" ;;
22039 esac
22040
22041 case "$host_os" in
22042 mingw*)
22043 gl_dirsep_regex='[/\\]'
22044 ;;
22045 *)
22046 gl_dirsep_regex='\/'
22047 ;;
22048 esac
22049 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22050
22051 gl_header_literal_regex=`echo 'signal.h' \
22052 | sed -e "$gl_make_literal_regex_sed"`
22053 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22054 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22055 s|^/[^/]|//&|
22056 p
22057 q
22058 }'
22059 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22060 sed -n "$gl_absolute_header_sed"`'"'
22061
22062
22063 fi
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22065 $as_echo "$gl_cv_next_signal_h" >&6; }
22066 fi
22067 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22068
22069 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22070 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22071 gl_next_as_first_directive='<'signal.h'>'
22072 else
22073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22074 gl_next_as_first_directive=$gl_cv_next_signal_h
22075 fi
22076 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22077
22078
22079
22080
22081
22082 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22083 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22084 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22085 #include <signal.h>
22086
22087 "
22088 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
22089
22090 else
22091 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22092 fi
22093
22094
22095
22096
22097
22098
22099
22100 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22101 #include <signal.h>
22102
22103 "
22104 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
22105
22106 else
22107 HAVE_SIGHANDLER_T=0
22108 fi
22109
22110
22111
22112
22113 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22114 /* <sys/types.h> is not needed according to POSIX, but the
22115 <sys/socket.h> in i386-unknown-freebsd4.10 and
22116 powerpc-apple-darwin5.5 required it. */
22117 #include <sys/types.h>
22118 #if HAVE_SYS_SOCKET_H
22119 # include <sys/socket.h>
22120 #elif HAVE_WS2TCPIP_H
22121 # include <ws2tcpip.h>
22122 #endif
22123
22124 "
22125 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22126
22127 else
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22129 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22130 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22131 $as_echo_n "(cached) " >&6
22132 else
22133 # Systems have either "struct sockaddr *" or
22134 # "void *" as the second argument to getpeername
22135 gl_cv_socklen_t_equiv=
22136 for arg2 in "struct sockaddr" void; do
22137 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h. */
22140 #include <sys/types.h>
22141 #include <sys/socket.h>
22142
22143 int getpeername (int, $arg2 *, $t *);
22144 int
22145 main ()
22146 {
22147 $t len;
22148 getpeername (0, 0, &len);
22149 ;
22150 return 0;
22151 }
22152 _ACEOF
22153 if ac_fn_c_try_compile "$LINENO"; then :
22154 gl_cv_socklen_t_equiv="$t"
22155 fi
22156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157 test "$gl_cv_socklen_t_equiv" != "" && break
22158 done
22159 test "$gl_cv_socklen_t_equiv" != "" && break
22160 done
22161
22162 fi
22163
22164 if test "$gl_cv_socklen_t_equiv" = ""; then
22165 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22166 fi
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22168 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22169
22170 cat >>confdefs.h <<_ACEOF
22171 #define socklen_t $gl_cv_socklen_t_equiv
22172 _ACEOF
22173
22174 fi
22175
22176
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22178 $as_echo_n "checking for ssize_t... " >&6; }
22179 if test "${gt_cv_ssize_t+set}" = set; then :
22180 $as_echo_n "(cached) " >&6
22181 else
22182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22184 #include <sys/types.h>
22185 int
22186 main ()
22187 {
22188 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22189 return !x;
22190 ;
22191 return 0;
22192 }
22193 _ACEOF
22194 if ac_fn_c_try_compile "$LINENO"; then :
22195 gt_cv_ssize_t=yes
22196 else
22197 gt_cv_ssize_t=no
22198 fi
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200 fi
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22202 $as_echo "$gt_cv_ssize_t" >&6; }
22203 if test $gt_cv_ssize_t = no; then
22204
22205 $as_echo "#define ssize_t int" >>confdefs.h
22206
22207 fi
22208
22209
22210
22211
22212
22213 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
22214 #include <sys/stat.h>
22215 "
22216 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22217
22218 cat >>confdefs.h <<_ACEOF
22219 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22220 _ACEOF
22221
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22223 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22224 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22225 $as_echo_n "(cached) " >&6
22226 else
22227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22228 /* end confdefs.h. */
22229
22230 #include <sys/types.h>
22231 #include <sys/stat.h>
22232 #if HAVE_SYS_TIME_H
22233 # include <sys/time.h>
22234 #endif
22235 #include <time.h>
22236 struct timespec ts;
22237 struct stat st;
22238
22239 int
22240 main ()
22241 {
22242
22243 st.st_atim = ts;
22244
22245 ;
22246 return 0;
22247 }
22248 _ACEOF
22249 if ac_fn_c_try_compile "$LINENO"; then :
22250 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
22251 else
22252 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
22253 fi
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255 fi
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22257 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22258 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22259
22260 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22261
22262 fi
22263 else
22264 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
22265 #include <sys/stat.h>
22266 "
22267 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
22268
22269 cat >>confdefs.h <<_ACEOF
22270 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22271 _ACEOF
22272
22273
22274 else
22275 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22276 #include <sys/stat.h>
22277 "
22278 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
22279
22280 cat >>confdefs.h <<_ACEOF
22281 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22282 _ACEOF
22283
22284
22285 else
22286 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
22287 #include <sys/stat.h>
22288 "
22289 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
22290
22291 cat >>confdefs.h <<_ACEOF
22292 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22293 _ACEOF
22294
22295
22296 fi
22297
22298 fi
22299
22300 fi
22301
22302 fi
22303
22304
22305
22306
22307
22308 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
22309 #include <sys/stat.h>
22310 "
22311 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
22312
22313 cat >>confdefs.h <<_ACEOF
22314 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22315 _ACEOF
22316
22317
22318 else
22319 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22320 #include <sys/stat.h>
22321 "
22322 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
22323
22324 cat >>confdefs.h <<_ACEOF
22325 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22326 _ACEOF
22327
22328
22329 else
22330 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
22331 #include <sys/stat.h>
22332 "
22333 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
22334
22335 cat >>confdefs.h <<_ACEOF
22336 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22337 _ACEOF
22338
22339
22340 fi
22341
22342 fi
22343
22344 fi
22345
22346
22347
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22349 $as_echo_n "checking for working stdalign.h... " >&6; }
22350 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22351 $as_echo_n "(cached) " >&6
22352 else
22353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22354 /* end confdefs.h. */
22355 #include <stdalign.h>
22356 #include <stddef.h>
22357
22358 /* Test that alignof yields a result consistent with offsetof.
22359 This catches GCC bug 52023
22360 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22361 #ifdef __cplusplus
22362 template <class t> struct alignof_helper { char a; t b; };
22363 # define ao(type) offsetof (alignof_helper<type>, b)
22364 #else
22365 # define ao(type) offsetof (struct { char a; type b; }, b)
22366 #endif
22367 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22368 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22369 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22370
22371 /* Test _Alignas only on platforms where gnulib can help. */
22372 #if \
22373 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22374 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22375 int alignas (8) alignas_int = 1;
22376 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22377 #endif
22378
22379 int
22380 main ()
22381 {
22382
22383 ;
22384 return 0;
22385 }
22386 _ACEOF
22387 if ac_fn_c_try_compile "$LINENO"; then :
22388 gl_cv_header_working_stdalign_h=yes
22389 else
22390 gl_cv_header_working_stdalign_h=no
22391 fi
22392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22393 fi
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22395 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22396
22397 if test $gl_cv_header_working_stdalign_h = yes; then
22398 STDALIGN_H=''
22399 else
22400 STDALIGN_H='stdalign.h'
22401 fi
22402
22403
22404 if test -n "$STDALIGN_H"; then
22405 GL_GENERATE_STDALIGN_H_TRUE=
22406 GL_GENERATE_STDALIGN_H_FALSE='#'
22407 else
22408 GL_GENERATE_STDALIGN_H_TRUE='#'
22409 GL_GENERATE_STDALIGN_H_FALSE=
22410 fi
22411
22412
22413
22414 STDARG_H=''
22415 NEXT_STDARG_H='<stdarg.h>'
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22417 $as_echo_n "checking for va_copy... " >&6; }
22418 if test "${gl_cv_func_va_copy+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22420 else
22421
22422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22423 /* end confdefs.h. */
22424 #include <stdarg.h>
22425 int
22426 main ()
22427 {
22428
22429 #ifndef va_copy
22430 void (*func) (va_list, va_list) = va_copy;
22431 #endif
22432
22433 ;
22434 return 0;
22435 }
22436 _ACEOF
22437 if ac_fn_c_try_compile "$LINENO"; then :
22438 gl_cv_func_va_copy=yes
22439 else
22440 gl_cv_func_va_copy=no
22441 fi
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 fi
22444
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22446 $as_echo "$gl_cv_func_va_copy" >&6; }
22447 if test $gl_cv_func_va_copy = no; then
22448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22449 /* end confdefs.h. */
22450 #if defined _AIX && !defined __GNUC__
22451 AIX vaccine
22452 #endif
22453
22454 _ACEOF
22455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22456 $EGREP "vaccine" >/dev/null 2>&1; then :
22457 gl_aixcc=yes
22458 else
22459 gl_aixcc=no
22460 fi
22461 rm -f conftest*
22462
22463 if test $gl_aixcc = yes; then
22464 STDARG_H=stdarg.h
22465
22466
22467
22468
22469
22470
22471
22472
22473 if test $gl_cv_have_include_next = yes; then
22474 gl_cv_next_stdarg_h='<'stdarg.h'>'
22475 else
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22477 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22478 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22479 $as_echo_n "(cached) " >&6
22480 else
22481
22482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22483 /* end confdefs.h. */
22484 #include <stdarg.h>
22485
22486 _ACEOF
22487 case "$host_os" in
22488 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22489 *) gl_absname_cpp="$ac_cpp" ;;
22490 esac
22491
22492 case "$host_os" in
22493 mingw*)
22494 gl_dirsep_regex='[/\\]'
22495 ;;
22496 *)
22497 gl_dirsep_regex='\/'
22498 ;;
22499 esac
22500 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22501
22502 gl_header_literal_regex=`echo 'stdarg.h' \
22503 | sed -e "$gl_make_literal_regex_sed"`
22504 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22505 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22506 s|^/[^/]|//&|
22507 p
22508 q
22509 }'
22510 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22511 sed -n "$gl_absolute_header_sed"`'"'
22512
22513
22514 fi
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22516 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22517 fi
22518 NEXT_STDARG_H=$gl_cv_next_stdarg_h
22519
22520 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22521 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22522 gl_next_as_first_directive='<'stdarg.h'>'
22523 else
22524 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22525 gl_next_as_first_directive=$gl_cv_next_stdarg_h
22526 fi
22527 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22528
22529
22530
22531
22532 if test "$gl_cv_next_stdarg_h" = '""'; then
22533 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22534 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22535 fi
22536 else
22537
22538 saved_as_echo_n="$as_echo_n"
22539 as_echo_n=':'
22540 if test "${gl_cv_func___va_copy+set}" = set; then :
22541 $as_echo_n "(cached) " >&6
22542 else
22543
22544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22545 /* end confdefs.h. */
22546 #include <stdarg.h>
22547 int
22548 main ()
22549 {
22550
22551 #ifndef __va_copy
22552 error, bail out
22553 #endif
22554
22555 ;
22556 return 0;
22557 }
22558 _ACEOF
22559 if ac_fn_c_try_compile "$LINENO"; then :
22560 gl_cv_func___va_copy=yes
22561 else
22562 gl_cv_func___va_copy=no
22563 fi
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 fi
22566
22567 as_echo_n="$saved_as_echo_n"
22568
22569 if test $gl_cv_func___va_copy = yes; then
22570
22571 $as_echo "#define va_copy __va_copy" >>confdefs.h
22572
22573 else
22574
22575
22576 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22577
22578 fi
22579 fi
22580 fi
22581
22582 if test -n "$STDARG_H"; then
22583 GL_GENERATE_STDARG_H_TRUE=
22584 GL_GENERATE_STDARG_H_FALSE='#'
22585 else
22586 GL_GENERATE_STDARG_H_TRUE='#'
22587 GL_GENERATE_STDARG_H_FALSE=
22588 fi
22589
22590
22591
22592
22593
22594
22595 # Define two additional variables used in the Makefile substitution.
22596
22597 if test "$ac_cv_header_stdbool_h" = yes; then
22598 STDBOOL_H=''
22599 else
22600 STDBOOL_H='stdbool.h'
22601 fi
22602
22603 if test -n "$STDBOOL_H"; then
22604 GL_GENERATE_STDBOOL_H_TRUE=
22605 GL_GENERATE_STDBOOL_H_FALSE='#'
22606 else
22607 GL_GENERATE_STDBOOL_H_TRUE='#'
22608 GL_GENERATE_STDBOOL_H_FALSE=
22609 fi
22610
22611
22612 if test "$ac_cv_type__Bool" = yes; then
22613 HAVE__BOOL=1
22614 else
22615 HAVE__BOOL=0
22616 fi
22617
22618
22619
22620
22621
22622 STDDEF_H=
22623 if test $gt_cv_c_wchar_t = no; then
22624 HAVE_WCHAR_T=0
22625 STDDEF_H=stddef.h
22626 fi
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22628 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22629 if test "${gl_cv_decl_null_works+set}" = set; then :
22630 $as_echo_n "(cached) " >&6
22631 else
22632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22633 /* end confdefs.h. */
22634 #include <stddef.h>
22635 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22636
22637 int
22638 main ()
22639 {
22640
22641 ;
22642 return 0;
22643 }
22644 _ACEOF
22645 if ac_fn_c_try_compile "$LINENO"; then :
22646 gl_cv_decl_null_works=yes
22647 else
22648 gl_cv_decl_null_works=no
22649 fi
22650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22651 fi
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22653 $as_echo "$gl_cv_decl_null_works" >&6; }
22654 if test $gl_cv_decl_null_works = no; then
22655 REPLACE_NULL=1
22656 STDDEF_H=stddef.h
22657 fi
22658
22659 if test -n "$STDDEF_H"; then
22660 GL_GENERATE_STDDEF_H_TRUE=
22661 GL_GENERATE_STDDEF_H_FALSE='#'
22662 else
22663 GL_GENERATE_STDDEF_H_TRUE='#'
22664 GL_GENERATE_STDDEF_H_FALSE=
22665 fi
22666
22667 if test -n "$STDDEF_H"; then
22668
22669
22670
22671
22672
22673
22674
22675
22676 if test $gl_cv_have_include_next = yes; then
22677 gl_cv_next_stddef_h='<'stddef.h'>'
22678 else
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22680 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22681 if test "${gl_cv_next_stddef_h+set}" = set; then :
22682 $as_echo_n "(cached) " >&6
22683 else
22684
22685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22686 /* end confdefs.h. */
22687 #include <stddef.h>
22688
22689 _ACEOF
22690 case "$host_os" in
22691 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22692 *) gl_absname_cpp="$ac_cpp" ;;
22693 esac
22694
22695 case "$host_os" in
22696 mingw*)
22697 gl_dirsep_regex='[/\\]'
22698 ;;
22699 *)
22700 gl_dirsep_regex='\/'
22701 ;;
22702 esac
22703 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22704
22705 gl_header_literal_regex=`echo 'stddef.h' \
22706 | sed -e "$gl_make_literal_regex_sed"`
22707 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22708 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22709 s|^/[^/]|//&|
22710 p
22711 q
22712 }'
22713 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22714 sed -n "$gl_absolute_header_sed"`'"'
22715
22716
22717 fi
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22719 $as_echo "$gl_cv_next_stddef_h" >&6; }
22720 fi
22721 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22722
22723 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22725 gl_next_as_first_directive='<'stddef.h'>'
22726 else
22727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22728 gl_next_as_first_directive=$gl_cv_next_stddef_h
22729 fi
22730 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22731
22732
22733
22734
22735 fi
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749 if test $gl_cv_have_include_next = yes; then
22750 gl_cv_next_stdio_h='<'stdio.h'>'
22751 else
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22753 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22754 if test "${gl_cv_next_stdio_h+set}" = set; then :
22755 $as_echo_n "(cached) " >&6
22756 else
22757
22758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22759 /* end confdefs.h. */
22760 #include <stdio.h>
22761
22762 _ACEOF
22763 case "$host_os" in
22764 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22765 *) gl_absname_cpp="$ac_cpp" ;;
22766 esac
22767
22768 case "$host_os" in
22769 mingw*)
22770 gl_dirsep_regex='[/\\]'
22771 ;;
22772 *)
22773 gl_dirsep_regex='\/'
22774 ;;
22775 esac
22776 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22777
22778 gl_header_literal_regex=`echo 'stdio.h' \
22779 | sed -e "$gl_make_literal_regex_sed"`
22780 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22781 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22782 s|^/[^/]|//&|
22783 p
22784 q
22785 }'
22786 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22787 sed -n "$gl_absolute_header_sed"`'"'
22788
22789
22790 fi
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22792 $as_echo "$gl_cv_next_stdio_h" >&6; }
22793 fi
22794 NEXT_STDIO_H=$gl_cv_next_stdio_h
22795
22796 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22798 gl_next_as_first_directive='<'stdio.h'>'
22799 else
22800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22801 gl_next_as_first_directive=$gl_cv_next_stdio_h
22802 fi
22803 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22804
22805
22806
22807
22808
22809 GNULIB_FSCANF=1
22810
22811
22812 cat >>confdefs.h <<_ACEOF
22813 #define GNULIB_FSCANF 1
22814 _ACEOF
22815
22816
22817 GNULIB_SCANF=1
22818
22819
22820 cat >>confdefs.h <<_ACEOF
22821 #define GNULIB_SCANF 1
22822 _ACEOF
22823
22824
22825 GNULIB_FGETC=1
22826 GNULIB_GETC=1
22827 GNULIB_GETCHAR=1
22828 GNULIB_FGETS=1
22829 GNULIB_FREAD=1
22830
22831
22832 GNULIB_FPRINTF=1
22833 GNULIB_PRINTF=1
22834 GNULIB_VFPRINTF=1
22835 GNULIB_VPRINTF=1
22836 GNULIB_FPUTC=1
22837 GNULIB_PUTC=1
22838 GNULIB_PUTCHAR=1
22839 GNULIB_FPUTS=1
22840 GNULIB_PUTS=1
22841 GNULIB_FWRITE=1
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857 if test $gl_cv_have_include_next = yes; then
22858 gl_cv_next_stdlib_h='<'stdlib.h'>'
22859 else
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22861 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22862 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22863 $as_echo_n "(cached) " >&6
22864 else
22865
22866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22867 /* end confdefs.h. */
22868 #include <stdlib.h>
22869
22870 _ACEOF
22871 case "$host_os" in
22872 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22873 *) gl_absname_cpp="$ac_cpp" ;;
22874 esac
22875
22876 case "$host_os" in
22877 mingw*)
22878 gl_dirsep_regex='[/\\]'
22879 ;;
22880 *)
22881 gl_dirsep_regex='\/'
22882 ;;
22883 esac
22884 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22885
22886 gl_header_literal_regex=`echo 'stdlib.h' \
22887 | sed -e "$gl_make_literal_regex_sed"`
22888 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22889 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22890 s|^/[^/]|//&|
22891 p
22892 q
22893 }'
22894 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22895 sed -n "$gl_absolute_header_sed"`'"'
22896
22897
22898 fi
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22900 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22901 fi
22902 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22903
22904 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22905 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22906 gl_next_as_first_directive='<'stdlib.h'>'
22907 else
22908 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22909 gl_next_as_first_directive=$gl_cv_next_stdlib_h
22910 fi
22911 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22922
22923
22924
22925
22926
22927
22928
22929 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22930
22931
22932
22933
22934
22935
22936
22937
22938 if test "$ac_cv_have_decl_strtoimax" != yes; then
22939 HAVE_DECL_STRTOIMAX=0
22940 fi
22941
22942 if test $ac_cv_func_strtoimax = yes; then
22943 HAVE_STRTOIMAX=1
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22945 $as_echo_n "checking whether strtoimax works... " >&6; }
22946 if test "${gl_cv_func_strtoimax+set}" = set; then :
22947 $as_echo_n "(cached) " >&6
22948 else
22949 if test "$cross_compiling" = yes; then :
22950 case "$host_os" in
22951 # Guess no on AIX 5.
22952 aix5*) gl_cv_func_strtoimax="guessing no" ;;
22953 # Guess yes otherwise.
22954 *) gl_cv_func_strtoimax="guessing yes" ;;
22955 esac
22956
22957 else
22958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22959 /* end confdefs.h. */
22960
22961 #include <errno.h>
22962 #include <string.h>
22963 #include <inttypes.h>
22964 int main ()
22965 {
22966 if (sizeof (intmax_t) > sizeof (int))
22967 {
22968 const char *s = "4294967295";
22969 char *p;
22970 intmax_t res;
22971 errno = 0;
22972 res = strtoimax (s, &p, 10);
22973 if (p != s + strlen (s))
22974 return 1;
22975 if (errno != 0)
22976 return 2;
22977 if (res != (intmax_t) 65535 * (intmax_t) 65537)
22978 return 3;
22979 }
22980 else
22981 {
22982 const char *s = "2147483647";
22983 char *p;
22984 intmax_t res;
22985 errno = 0;
22986 res = strtoimax (s, &p, 10);
22987 if (p != s + strlen (s))
22988 return 1;
22989 if (errno != 0)
22990 return 2;
22991 if (res != 2147483647)
22992 return 3;
22993 }
22994 return 0;
22995 }
22996
22997 _ACEOF
22998 if ac_fn_c_try_run "$LINENO"; then :
22999 gl_cv_func_strtoimax=yes
23000 else
23001 gl_cv_func_strtoimax=no
23002 fi
23003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23004 conftest.$ac_objext conftest.beam conftest.$ac_ext
23005 fi
23006
23007
23008 fi
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23010 $as_echo "$gl_cv_func_strtoimax" >&6; }
23011 case "$gl_cv_func_strtoimax" in
23012 *no) REPLACE_STRTOIMAX=1 ;;
23013 esac
23014 else
23015 HAVE_STRTOIMAX=0
23016 fi
23017
23018 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23019
23020
23021
23022
23023
23024
23025
23026
23027 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
23028
23029
23030 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23031 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
23032 ac_have_decl=1
23033 else
23034 ac_have_decl=0
23035 fi
23036
23037 cat >>confdefs.h <<_ACEOF
23038 #define HAVE_DECL_STRTOLL $ac_have_decl
23039 _ACEOF
23040
23041
23042
23043 fi
23044
23045
23046
23047
23048
23049 GNULIB_STRTOIMAX=1
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059 if test "$ac_cv_have_decl_strtoumax" != yes; then
23060 HAVE_DECL_STRTOUMAX=0
23061 fi
23062
23063 if test $ac_cv_func_strtoumax = no; then
23064
23065
23066
23067
23068
23069
23070
23071
23072 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
23073
23074
23075 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23076 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
23077 ac_have_decl=1
23078 else
23079 ac_have_decl=0
23080 fi
23081
23082 cat >>confdefs.h <<_ACEOF
23083 #define HAVE_DECL_STRTOULL $ac_have_decl
23084 _ACEOF
23085
23086
23087
23088 fi
23089
23090
23091
23092
23093
23094 GNULIB_STRTOUMAX=1
23095
23096
23097
23098
23099
23100
23101
23102 if test $ac_cv_func_symlink = no; then
23103 HAVE_SYMLINK=0
23104 else
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23106 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23107 if test "${gl_cv_func_symlink_works+set}" = set; then :
23108 $as_echo_n "(cached) " >&6
23109 else
23110 if test "$cross_compiling" = yes; then :
23111 case "$host_os" in
23112 # Guess yes on glibc systems.
23113 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
23114 # If we don't know, assume the worst.
23115 *) gl_cv_func_symlink_works="guessing no" ;;
23116 esac
23117
23118 else
23119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23120 /* end confdefs.h. */
23121 #include <unistd.h>
23122
23123 int
23124 main ()
23125 {
23126 int result = 0;
23127 if (!symlink ("a", "conftest.link/"))
23128 result |= 1;
23129 if (symlink ("conftest.f", "conftest.lnk2"))
23130 result |= 2;
23131 else if (!symlink ("a", "conftest.lnk2/"))
23132 result |= 4;
23133 return result;
23134
23135 ;
23136 return 0;
23137 }
23138 _ACEOF
23139 if ac_fn_c_try_run "$LINENO"; then :
23140 gl_cv_func_symlink_works=yes
23141 else
23142 gl_cv_func_symlink_works=no
23143 fi
23144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23145 conftest.$ac_objext conftest.beam conftest.$ac_ext
23146 fi
23147
23148 rm -f conftest.f conftest.link conftest.lnk2
23149 fi
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23151 $as_echo "$gl_cv_func_symlink_works" >&6; }
23152 case "$gl_cv_func_symlink_works" in
23153 *yes) ;;
23154 *)
23155 REPLACE_SYMLINK=1
23156 ;;
23157 esac
23158 fi
23159
23160 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
23161
23162
23163
23164
23165
23166
23167
23168
23169 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
23170
23171 fi
23172
23173
23174
23175
23176
23177 GNULIB_SYMLINK=1
23178
23179
23180
23181
23182
23183
23184
23185
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23187 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23188 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23189 $as_echo_n "(cached) " >&6
23190 else
23191
23192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23193 /* end confdefs.h. */
23194 #include <sys/select.h>
23195 int
23196 main ()
23197 {
23198 struct timeval b;
23199 ;
23200 return 0;
23201 }
23202 _ACEOF
23203 if ac_fn_c_try_compile "$LINENO"; then :
23204 gl_cv_header_sys_select_h_selfcontained=yes
23205 else
23206 gl_cv_header_sys_select_h_selfcontained=no
23207 fi
23208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23209 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23211 /* end confdefs.h. */
23212 #include <sys/select.h>
23213 int
23214 main ()
23215 {
23216 int memset; int bzero;
23217 ;
23218 return 0;
23219 }
23220
23221 _ACEOF
23222 if ac_fn_c_try_compile "$LINENO"; then :
23223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23224 /* end confdefs.h. */
23225 #include <sys/select.h>
23226 int
23227 main ()
23228 {
23229
23230 #undef memset
23231 #define memset nonexistent_memset
23232 extern
23233 #ifdef __cplusplus
23234 "C"
23235 #endif
23236 void *memset (void *, int, unsigned long);
23237 #undef bzero
23238 #define bzero nonexistent_bzero
23239 extern
23240 #ifdef __cplusplus
23241 "C"
23242 #endif
23243 void bzero (void *, unsigned long);
23244 fd_set fds;
23245 FD_ZERO (&fds);
23246
23247 ;
23248 return 0;
23249 }
23250
23251 _ACEOF
23252 if ac_fn_c_try_link "$LINENO"; then :
23253
23254 else
23255 gl_cv_header_sys_select_h_selfcontained=no
23256 fi
23257 rm -f core conftest.err conftest.$ac_objext \
23258 conftest$ac_exeext conftest.$ac_ext
23259
23260 fi
23261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23262 fi
23263
23264 fi
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23266 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276 if test $gl_cv_have_include_next = yes; then
23277 gl_cv_next_sys_select_h='<'sys/select.h'>'
23278 else
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23280 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23281 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23282 $as_echo_n "(cached) " >&6
23283 else
23284
23285 if test $ac_cv_header_sys_select_h = yes; then
23286
23287
23288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23289 /* end confdefs.h. */
23290 #include <sys/select.h>
23291
23292 _ACEOF
23293 case "$host_os" in
23294 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23295 *) gl_absname_cpp="$ac_cpp" ;;
23296 esac
23297
23298 case "$host_os" in
23299 mingw*)
23300 gl_dirsep_regex='[/\\]'
23301 ;;
23302 *)
23303 gl_dirsep_regex='\/'
23304 ;;
23305 esac
23306 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23307
23308 gl_header_literal_regex=`echo 'sys/select.h' \
23309 | sed -e "$gl_make_literal_regex_sed"`
23310 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23311 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23312 s|^/[^/]|//&|
23313 p
23314 q
23315 }'
23316 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23317 sed -n "$gl_absolute_header_sed"`'"'
23318 else
23319 gl_cv_next_sys_select_h='<'sys/select.h'>'
23320 fi
23321
23322
23323 fi
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23325 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23326 fi
23327 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23328
23329 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23331 gl_next_as_first_directive='<'sys/select.h'>'
23332 else
23333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23334 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23335 fi
23336 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23337
23338
23339
23340
23341 if test $ac_cv_header_sys_select_h = yes; then
23342 HAVE_SYS_SELECT_H=1
23343 else
23344 HAVE_SYS_SELECT_H=0
23345 fi
23346
23347
23348
23349
23350
23351 if test $ac_cv_header_sys_socket_h != yes; then
23352 for ac_header in winsock2.h
23353 do :
23354 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23355 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
23356 cat >>confdefs.h <<_ACEOF
23357 #define HAVE_WINSOCK2_H 1
23358 _ACEOF
23359
23360 fi
23361
23362 done
23363
23364 fi
23365 if test "$ac_cv_header_winsock2_h" = yes; then
23366 HAVE_WINSOCK2_H=1
23367 UNISTD_H_HAVE_WINSOCK2_H=1
23368 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23369 else
23370 HAVE_WINSOCK2_H=0
23371 fi
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394 if test $gl_cv_have_include_next = yes; then
23395 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23396 else
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23398 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23399 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23400 $as_echo_n "(cached) " >&6
23401 else
23402
23403 if test $ac_cv_header_sys_stat_h = yes; then
23404
23405
23406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23407 /* end confdefs.h. */
23408 #include <sys/stat.h>
23409
23410 _ACEOF
23411 case "$host_os" in
23412 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23413 *) gl_absname_cpp="$ac_cpp" ;;
23414 esac
23415
23416 case "$host_os" in
23417 mingw*)
23418 gl_dirsep_regex='[/\\]'
23419 ;;
23420 *)
23421 gl_dirsep_regex='\/'
23422 ;;
23423 esac
23424 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23425
23426 gl_header_literal_regex=`echo 'sys/stat.h' \
23427 | sed -e "$gl_make_literal_regex_sed"`
23428 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23429 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23430 s|^/[^/]|//&|
23431 p
23432 q
23433 }'
23434 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23435 sed -n "$gl_absolute_header_sed"`'"'
23436 else
23437 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23438 fi
23439
23440
23441 fi
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23443 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23444 fi
23445 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23446
23447 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23448 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23449 gl_next_as_first_directive='<'sys/stat.h'>'
23450 else
23451 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23452 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23453 fi
23454 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23467
23468 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23469
23470 fi
23471
23472 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23473 #include <sys/stat.h>
23474 "
23475 if test "x$ac_cv_type_nlink_t" = x""yes; then :
23476
23477 else
23478
23479 $as_echo "#define nlink_t int" >>confdefs.h
23480
23481 fi
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23501 "
23502 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
23503 ac_have_decl=1
23504 else
23505 ac_have_decl=0
23506 fi
23507
23508 cat >>confdefs.h <<_ACEOF
23509 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23510 _ACEOF
23511
23512 if test $ac_cv_have_decl_localtime_r = no; then
23513 HAVE_DECL_LOCALTIME_R=0
23514 fi
23515
23516
23517 if test $ac_cv_func_localtime_r = yes; then
23518 HAVE_LOCALTIME_R=1
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23520 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23521 if test "${gl_cv_time_r_posix+set}" = set; then :
23522 $as_echo_n "(cached) " >&6
23523 else
23524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23525 /* end confdefs.h. */
23526 #include <time.h>
23527 int
23528 main ()
23529 {
23530 /* We don't need to append 'restrict's to the argument types,
23531 even though the POSIX signature has the 'restrict's,
23532 since C99 says they can't affect type compatibility. */
23533 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23534 if (ptr) return 0;
23535 /* Check the return type is a pointer.
23536 On HP-UX 10 it is 'int'. */
23537 *localtime_r (0, 0);
23538 ;
23539 return 0;
23540 }
23541
23542 _ACEOF
23543 if ac_fn_c_try_compile "$LINENO"; then :
23544 gl_cv_time_r_posix=yes
23545 else
23546 gl_cv_time_r_posix=no
23547 fi
23548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23549
23550 fi
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23552 $as_echo "$gl_cv_time_r_posix" >&6; }
23553 if test $gl_cv_time_r_posix = yes; then
23554 REPLACE_LOCALTIME_R=0
23555 else
23556 REPLACE_LOCALTIME_R=1
23557 fi
23558 else
23559 HAVE_LOCALTIME_R=0
23560 fi
23561
23562 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
23563
23564
23565
23566
23567
23568
23569
23570
23571 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
23572
23573
23574 :
23575
23576 fi
23577
23578
23579
23580
23581
23582 GNULIB_TIME_R=1
23583
23584
23585
23586
23587
23588 :
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602 if test $gl_cv_have_include_next = yes; then
23603 gl_cv_next_unistd_h='<'unistd.h'>'
23604 else
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23606 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23607 if test "${gl_cv_next_unistd_h+set}" = set; then :
23608 $as_echo_n "(cached) " >&6
23609 else
23610
23611 if test $ac_cv_header_unistd_h = yes; then
23612
23613
23614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23615 /* end confdefs.h. */
23616 #include <unistd.h>
23617
23618 _ACEOF
23619 case "$host_os" in
23620 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23621 *) gl_absname_cpp="$ac_cpp" ;;
23622 esac
23623
23624 case "$host_os" in
23625 mingw*)
23626 gl_dirsep_regex='[/\\]'
23627 ;;
23628 *)
23629 gl_dirsep_regex='\/'
23630 ;;
23631 esac
23632 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23633
23634 gl_header_literal_regex=`echo 'unistd.h' \
23635 | sed -e "$gl_make_literal_regex_sed"`
23636 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23637 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23638 s|^/[^/]|//&|
23639 p
23640 q
23641 }'
23642 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23643 sed -n "$gl_absolute_header_sed"`'"'
23644 else
23645 gl_cv_next_unistd_h='<'unistd.h'>'
23646 fi
23647
23648
23649 fi
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23651 $as_echo "$gl_cv_next_unistd_h" >&6; }
23652 fi
23653 NEXT_UNISTD_H=$gl_cv_next_unistd_h
23654
23655 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23656 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23657 gl_next_as_first_directive='<'unistd.h'>'
23658 else
23659 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23660 gl_next_as_first_directive=$gl_cv_next_unistd_h
23661 fi
23662 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23663
23664
23665
23666
23667 if test $ac_cv_header_unistd_h = yes; then
23668 HAVE_UNISTD_H=1
23669 else
23670 HAVE_UNISTD_H=0
23671 fi
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23688 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23689 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23690 $as_echo_n "(cached) " >&6
23691 else
23692 touch conftest.file
23693 if test "$cross_compiling" = yes; then :
23694 case "$host_os" in
23695 # Guess yes on glibc systems.
23696 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
23697 # If we don't know, assume the worst.
23698 *) gl_cv_func_futimesat_works="guessing no" ;;
23699 esac
23700
23701 else
23702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23703 /* end confdefs.h. */
23704
23705 #include <stddef.h>
23706 #include <sys/times.h>
23707 #include <fcntl.h>
23708
23709 int
23710 main ()
23711 {
23712 int fd = open ("conftest.file", O_RDWR);
23713 if (fd < 0) return 1;
23714 if (futimesat (fd, NULL, NULL)) return 2;
23715
23716 ;
23717 return 0;
23718 }
23719 _ACEOF
23720 if ac_fn_c_try_run "$LINENO"; then :
23721 gl_cv_func_futimesat_works=yes
23722 else
23723 gl_cv_func_futimesat_works=no
23724 fi
23725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23726 conftest.$ac_objext conftest.beam conftest.$ac_ext
23727 fi
23728
23729 rm -f conftest.file
23730 fi
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23732 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23733 case "$gl_cv_func_futimesat_works" in
23734 *yes) ;;
23735 *)
23736
23737 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23738
23739 ;;
23740 esac
23741 fi
23742
23743 gl_gnulib_enabled_dosname=false
23744 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
23745 gl_gnulib_enabled_pathmax=false
23746 gl_gnulib_enabled_stat=false
23747 gl_gnulib_enabled_strtoll=false
23748 gl_gnulib_enabled_strtoull=false
23749 gl_gnulib_enabled_verify=false
23750 func_gl_gnulib_m4code_dosname ()
23751 {
23752 if ! $gl_gnulib_enabled_dosname; then
23753 gl_gnulib_enabled_dosname=true
23754 fi
23755 }
23756 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
23757 {
23758 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23759
23760
23761 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
23762 fi
23763 }
23764 func_gl_gnulib_m4code_pathmax ()
23765 {
23766 if ! $gl_gnulib_enabled_pathmax; then
23767
23768
23769
23770 gl_gnulib_enabled_pathmax=true
23771 fi
23772 }
23773 func_gl_gnulib_m4code_stat ()
23774 {
23775 if ! $gl_gnulib_enabled_stat; then
23776
23777
23778
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23780 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23781 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23782 $as_echo_n "(cached) " >&6
23783 else
23784 if test "$cross_compiling" = yes; then :
23785 case $host_os in
23786 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
23787 *) gl_cv_func_stat_dir_slash="guessing yes";;
23788 esac
23789 else
23790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23791 /* end confdefs.h. */
23792 #include <sys/stat.h>
23793
23794 int
23795 main ()
23796 {
23797 struct stat st; return stat (".", &st) != stat ("./", &st);
23798 ;
23799 return 0;
23800 }
23801 _ACEOF
23802 if ac_fn_c_try_run "$LINENO"; then :
23803 gl_cv_func_stat_dir_slash=yes
23804 else
23805 gl_cv_func_stat_dir_slash=no
23806 fi
23807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23808 conftest.$ac_objext conftest.beam conftest.$ac_ext
23809 fi
23810
23811 fi
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23813 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23815 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23816 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23817 $as_echo_n "(cached) " >&6
23818 else
23819 touch conftest.tmp
23820 # Assume that if we have lstat, we can also check symlinks.
23821 if test $ac_cv_func_lstat = yes; then
23822 ln -s conftest.tmp conftest.lnk
23823 fi
23824 if test "$cross_compiling" = yes; then :
23825 case "$host_os" in
23826 # Guess yes on glibc systems.
23827 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
23828 # If we don't know, assume the worst.
23829 *) gl_cv_func_stat_file_slash="guessing no" ;;
23830 esac
23831
23832 else
23833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23834 /* end confdefs.h. */
23835 #include <sys/stat.h>
23836
23837 int
23838 main ()
23839 {
23840 int result = 0;
23841 struct stat st;
23842 if (!stat ("conftest.tmp/", &st))
23843 result |= 1;
23844 #if HAVE_LSTAT
23845 if (!stat ("conftest.lnk/", &st))
23846 result |= 2;
23847 #endif
23848 return result;
23849
23850 ;
23851 return 0;
23852 }
23853 _ACEOF
23854 if ac_fn_c_try_run "$LINENO"; then :
23855 gl_cv_func_stat_file_slash=yes
23856 else
23857 gl_cv_func_stat_file_slash=no
23858 fi
23859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23860 conftest.$ac_objext conftest.beam conftest.$ac_ext
23861 fi
23862
23863 rm -f conftest.tmp conftest.lnk
23864 fi
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23866 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23867 case $gl_cv_func_stat_dir_slash in
23868 *no) REPLACE_STAT=1
23869
23870 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23871 ;;
23872 esac
23873 case $gl_cv_func_stat_file_slash in
23874 *no) REPLACE_STAT=1
23875
23876 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23877 ;;
23878 esac
23879
23880 if test $REPLACE_STAT = 1; then
23881
23882
23883
23884
23885
23886
23887
23888
23889 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
23890
23891
23892
23893 :
23894
23895 fi
23896
23897
23898
23899
23900
23901 GNULIB_STAT=1
23902
23903
23904
23905
23906
23907 gl_gnulib_enabled_stat=true
23908 if test $REPLACE_STAT = 1; then
23909 func_gl_gnulib_m4code_dosname
23910 fi
23911 if test $REPLACE_STAT = 1; then
23912 func_gl_gnulib_m4code_pathmax
23913 fi
23914 if test $REPLACE_STAT = 1; then
23915 func_gl_gnulib_m4code_verify
23916 fi
23917 fi
23918 }
23919 func_gl_gnulib_m4code_strtoll ()
23920 {
23921 if ! $gl_gnulib_enabled_strtoll; then
23922
23923
23924
23925 if test "$ac_cv_type_long_long_int" = yes; then
23926 for ac_func in strtoll
23927 do :
23928 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
23929 if test "x$ac_cv_func_strtoll" = x""yes; then :
23930 cat >>confdefs.h <<_ACEOF
23931 #define HAVE_STRTOLL 1
23932 _ACEOF
23933
23934 fi
23935 done
23936
23937 if test $ac_cv_func_strtoll = no; then
23938 HAVE_STRTOLL=0
23939 fi
23940 fi
23941
23942 if test $HAVE_STRTOLL = 0; then
23943
23944
23945
23946
23947
23948
23949
23950
23951 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
23952
23953
23954 :
23955
23956 fi
23957
23958
23959
23960
23961
23962 GNULIB_STRTOLL=1
23963
23964
23965
23966
23967
23968 gl_gnulib_enabled_strtoll=true
23969 fi
23970 }
23971 func_gl_gnulib_m4code_strtoull ()
23972 {
23973 if ! $gl_gnulib_enabled_strtoull; then
23974
23975
23976
23977 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23978 for ac_func in strtoull
23979 do :
23980 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
23981 if test "x$ac_cv_func_strtoull" = x""yes; then :
23982 cat >>confdefs.h <<_ACEOF
23983 #define HAVE_STRTOULL 1
23984 _ACEOF
23985
23986 fi
23987 done
23988
23989 if test $ac_cv_func_strtoull = no; then
23990 HAVE_STRTOULL=0
23991 fi
23992 fi
23993
23994 if test $HAVE_STRTOULL = 0; then
23995
23996
23997
23998
23999
24000
24001
24002
24003 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
24004
24005
24006 :
24007
24008 fi
24009
24010
24011
24012
24013
24014 GNULIB_STRTOULL=1
24015
24016
24017
24018
24019
24020 gl_gnulib_enabled_strtoull=true
24021 fi
24022 }
24023 func_gl_gnulib_m4code_verify ()
24024 {
24025 if ! $gl_gnulib_enabled_verify; then
24026 gl_gnulib_enabled_verify=true
24027 fi
24028 }
24029 if test $REPLACE_GETOPT = 1; then
24030 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
24031 fi
24032 if test $REPLACE_LSTAT = 1; then
24033 func_gl_gnulib_m4code_dosname
24034 fi
24035 if test $REPLACE_LSTAT = 1; then
24036 func_gl_gnulib_m4code_stat
24037 fi
24038 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
24039 func_gl_gnulib_m4code_stat
24040 fi
24041 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
24042 func_gl_gnulib_m4code_strtoll
24043 fi
24044 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24045 func_gl_gnulib_m4code_verify
24046 fi
24047 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
24048 func_gl_gnulib_m4code_strtoull
24049 fi
24050 if test $ac_cv_func_strtoumax = no; then
24051 func_gl_gnulib_m4code_verify
24052 fi
24053
24054 if $gl_gnulib_enabled_dosname; then
24055 gl_GNULIB_ENABLED_dosname_TRUE=
24056 gl_GNULIB_ENABLED_dosname_FALSE='#'
24057 else
24058 gl_GNULIB_ENABLED_dosname_TRUE='#'
24059 gl_GNULIB_ENABLED_dosname_FALSE=
24060 fi
24061
24062 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24063 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
24064 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
24065 else
24066 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
24067 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
24068 fi
24069
24070 if $gl_gnulib_enabled_pathmax; then
24071 gl_GNULIB_ENABLED_pathmax_TRUE=
24072 gl_GNULIB_ENABLED_pathmax_FALSE='#'
24073 else
24074 gl_GNULIB_ENABLED_pathmax_TRUE='#'
24075 gl_GNULIB_ENABLED_pathmax_FALSE=
24076 fi
24077
24078 if $gl_gnulib_enabled_stat; then
24079 gl_GNULIB_ENABLED_stat_TRUE=
24080 gl_GNULIB_ENABLED_stat_FALSE='#'
24081 else
24082 gl_GNULIB_ENABLED_stat_TRUE='#'
24083 gl_GNULIB_ENABLED_stat_FALSE=
24084 fi
24085
24086 if $gl_gnulib_enabled_strtoll; then
24087 gl_GNULIB_ENABLED_strtoll_TRUE=
24088 gl_GNULIB_ENABLED_strtoll_FALSE='#'
24089 else
24090 gl_GNULIB_ENABLED_strtoll_TRUE='#'
24091 gl_GNULIB_ENABLED_strtoll_FALSE=
24092 fi
24093
24094 if $gl_gnulib_enabled_strtoull; then
24095 gl_GNULIB_ENABLED_strtoull_TRUE=
24096 gl_GNULIB_ENABLED_strtoull_FALSE='#'
24097 else
24098 gl_GNULIB_ENABLED_strtoull_TRUE='#'
24099 gl_GNULIB_ENABLED_strtoull_FALSE=
24100 fi
24101
24102 if $gl_gnulib_enabled_verify; then
24103 gl_GNULIB_ENABLED_verify_TRUE=
24104 gl_GNULIB_ENABLED_verify_FALSE='#'
24105 else
24106 gl_GNULIB_ENABLED_verify_TRUE='#'
24107 gl_GNULIB_ENABLED_verify_FALSE=
24108 fi
24109
24110 # End of code from modules
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120 gltests_libdeps=
24121 gltests_ltlibdeps=
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131 gl_source_base='tests'
24132 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
24133
24134 gl_module_indicator_condition=$gltests_WITNESS
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145 LIBGNU_LIBDEPS="$gl_libdeps"
24146
24147 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
24148
24149
24150 CFLAGS=$SAVE_CFLAGS
24151 LIBS=$SAVE_LIBS
24152
24153 case "$opsys" in
24154 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
24155
24156 darwin)
24157 ## The -headerpad option tells ld (see man page) to leave room at the
24158 ## end of the header for adding load commands. Needed for dumping.
24159 ## 0x690 is the total size of 30 segment load commands (at 56
24160 ## each); under Cocoa 31 commands are required.
24161 if test "$HAVE_NS" = "yes"; then
24162 libs_nsgui="-framework AppKit"
24163 headerpad_extra=6C8
24164 else
24165 libs_nsgui=
24166 headerpad_extra=690
24167 fi
24168 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24169
24170 ## This is here because src/Makefile.in did some extra fiddling around
24171 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24172 ## #ifndef LD_SWITCH_SYSTEM
24173 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24174 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24175 ## not using gcc, darwin.
24176 ## Because this was done in src/Makefile.in, the resulting part of
24177 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24178 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24179 ## rather than LD_SWITCH_SYSTEM.
24180 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24181 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
24182 ;;
24183
24184 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24185 ## find X at run-time.
24186 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24187 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24188 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24189 ## had different values in configure (in ac_link) and src/Makefile.in.
24190 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24191 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24192
24193 *) LD_SWITCH_SYSTEM_TEMACS= ;;
24194 esac
24195
24196 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24197 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24198 fi
24199
24200
24201
24202
24203 LD_FIRSTFLAG=
24204 ORDINARY_LINK=
24205 case "$opsys" in
24206 ## gnu: GNU needs its own crt0.
24207 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
24208
24209 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24210 ## library search parth, i.e. it won't search /usr/lib for libc and
24211 ## friends. Using -nostartfiles instead avoids this problem, and
24212 ## will also work on earlier NetBSD releases.
24213 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
24214
24215 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24216 ## MkLinux/LinuxPPC needs this.
24217 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24218 gnu-*)
24219 case "$canonical" in
24220 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
24221 esac
24222 ;;
24223 esac
24224
24225
24226 if test "x$ORDINARY_LINK" = "xyes"; then
24227
24228 LD_FIRSTFLAG=""
24229
24230 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24231
24232
24233 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24234 ## freebsd, gnu-* not on powerpc*|s390x*.
24235 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24236
24237 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24238 ## places that are difficult to figure out at make time. Fortunately,
24239 ## these same versions allow you to pass arbitrary flags on to the
24240 ## linker, so there is no reason not to use it as a linker.
24241 ##
24242 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24243 ## searching for libraries in its internal directories, so we have to
24244 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24245 LD_FIRSTFLAG="-nostdlib"
24246 fi
24247
24248 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24249 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
24250
24251
24252
24253
24254 ## FIXME? The logic here is not precisely the same as that above.
24255 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24256 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24257 LIB_GCC=
24258 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24259
24260 case "$opsys" in
24261 freebsd|netbsd|openbsd) LIB_GCC= ;;
24262
24263 gnu-*)
24264 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24265 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24266 case $host_cpu in
24267 arm*)
24268 LIB_GCC="-lgcc_s"
24269 ;;
24270 *)
24271 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24272 ## immediately undefine it again and redefine it to empty.
24273 ## Was the C_SWITCH_X_SITE part really necessary?
24274 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24275 LIB_GCC=
24276 ;;
24277 esac
24278 ;;
24279
24280 ## Ask GCC where to find libgcc.a.
24281 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24282 esac
24283 fi
24284
24285 ## Common for all window systems
24286 if test "$window_system" != "none"; then
24287
24288 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24289
24290
24291 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24292
24293 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
24294 fi
24295
24296
24297
24298
24299
24300 #### Report on what we decided to do.
24301 #### Report GTK as a toolkit, even if it doesn't use Xt.
24302 #### It makes printing result more understandable as using GTK sets
24303 #### toolkit_scroll_bars to yes by default.
24304 if test "${HAVE_GTK}" = "yes"; then
24305 USE_X_TOOLKIT=GTK
24306 fi
24307
24308 echo "
24309 Configured for \`${canonical}'.
24310
24311 Where should the build process find the source code? ${srcdir}
24312 What compiler should emacs be built with? ${CC} ${CFLAGS}
24313 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24314 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24315 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24316 What window system should Emacs use? ${window_system}
24317 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24318
24319 if test -n "${x_includes}"; then
24320 echo " Where do we find X Windows header files? ${x_includes}"
24321 else
24322 echo " Where do we find X Windows header files? Standard dirs"
24323 fi
24324 if test -n "${x_libraries}"; then
24325 echo " Where do we find X Windows libraries? ${x_libraries}"
24326 else
24327 echo " Where do we find X Windows libraries? Standard dirs"
24328 fi
24329
24330 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24331 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24332 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24333 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24334 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24335 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24336 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24337 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24338
24339 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24340 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24341 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24342 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24343 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24344 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24345 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24346
24347 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24348 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24349 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24350 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24351
24352 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24353 echo
24354
24355 if test -n "${EMACSDATA}"; then
24356 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24357 fi
24358 if test -n "${EMACSDOC}"; then
24359 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24360 fi
24361
24362 echo
24363
24364 if test "$HAVE_NS" = "yes"; then
24365 echo
24366 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24367 The installed application will go to nextstep/Emacs.app and can be
24368 run or moved from there."
24369 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24370 echo "The application will be fully self-contained."
24371 else
24372 echo "The lisp resources for the application will be installed under ${prefix}.
24373 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24374 to run if these resources are not installed."
24375 fi
24376 echo
24377 fi
24378
24379 if test "${opsys}" = "cygwin"; then
24380 case `uname -r` in
24381 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24382 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24383 echo
24384 ;;
24385 esac
24386 fi
24387
24388 # Remove any trailing slashes in these variables.
24389 test "${prefix}" != NONE &&
24390 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24391 test "${exec_prefix}" != NONE &&
24392 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24393
24394 SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
24395
24396 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"
24397
24398
24399 opt_makefile=test/automated/Makefile
24400
24401 if test -f $srcdir/${opt_makefile}.in; then
24402 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24403 ac_config_files="$ac_config_files test/automated/Makefile"
24404
24405 fi
24406
24407
24408 opt_makefile=admin/unidata/Makefile
24409
24410 if test -f $srcdir/${opt_makefile}.in; then
24411 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24412 ac_config_files="$ac_config_files admin/unidata/Makefile"
24413
24414 fi
24415
24416
24417 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24418
24419
24420
24421 ac_config_commands="$ac_config_commands mkdirs"
24422
24423
24424 ac_config_commands="$ac_config_commands epaths"
24425
24426
24427 ac_config_commands="$ac_config_commands gdbinit"
24428
24429
24430 cat >confcache <<\_ACEOF
24431 # This file is a shell script that caches the results of configure
24432 # tests run on this system so they can be shared between configure
24433 # scripts and configure runs, see configure's option --config-cache.
24434 # It is not useful on other systems. If it contains results you don't
24435 # want to keep, you may remove or edit it.
24436 #
24437 # config.status only pays attention to the cache file if you give it
24438 # the --recheck option to rerun configure.
24439 #
24440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24442 # following values.
24443
24444 _ACEOF
24445
24446 # The following way of writing the cache mishandles newlines in values,
24447 # but we know of no workaround that is simple, portable, and efficient.
24448 # So, we kill variables containing newlines.
24449 # Ultrix sh set writes to stderr and can't be redirected directly,
24450 # and sets the high bit in the cache file unless we assign to the vars.
24451 (
24452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24453 eval ac_val=\$$ac_var
24454 case $ac_val in #(
24455 *${as_nl}*)
24456 case $ac_var in #(
24457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24459 esac
24460 case $ac_var in #(
24461 _ | IFS | as_nl) ;; #(
24462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24463 *) { eval $ac_var=; unset $ac_var;} ;;
24464 esac ;;
24465 esac
24466 done
24467
24468 (set) 2>&1 |
24469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24470 *${as_nl}ac_space=\ *)
24471 # `set' does not quote correctly, so add quotes: double-quote
24472 # substitution turns \\\\ into \\, and sed turns \\ into \.
24473 sed -n \
24474 "s/'/'\\\\''/g;
24475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24476 ;; #(
24477 *)
24478 # `set' quotes correctly as required by POSIX, so do not add quotes.
24479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24480 ;;
24481 esac |
24482 sort
24483 ) |
24484 sed '
24485 /^ac_cv_env_/b end
24486 t clear
24487 :clear
24488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24489 t end
24490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24491 :end' >>confcache
24492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24493 if test -w "$cache_file"; then
24494 test "x$cache_file" != "x/dev/null" &&
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24496 $as_echo "$as_me: updating cache $cache_file" >&6;}
24497 cat confcache >$cache_file
24498 else
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24500 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24501 fi
24502 fi
24503 rm -f confcache
24504
24505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24506 # Let make expand exec_prefix.
24507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24508
24509 DEFS=-DHAVE_CONFIG_H
24510
24511 ac_libobjs=
24512 ac_ltlibobjs=
24513 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24514 # 1. Remove the extension, and $U if already installed.
24515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24516 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24518 # will be set to the directory where LIBOBJS objects are built.
24519 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24520 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24521 done
24522 LIBOBJS=$ac_libobjs
24523
24524 LTLIBOBJS=$ac_ltlibobjs
24525
24526
24527 if test -n "$EXEEXT"; then
24528 am__EXEEXT_TRUE=
24529 am__EXEEXT_FALSE='#'
24530 else
24531 am__EXEEXT_TRUE='#'
24532 am__EXEEXT_FALSE=
24533 fi
24534
24535 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24536 as_fn_error "conditional \"AMDEP\" was never defined.
24537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24538 fi
24539 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24540 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24542 fi
24543 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24544 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24546 fi
24547 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24548 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24550 fi
24551
24552 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24553 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24555 fi
24556 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24557 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24559 fi
24560 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24561 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24563 fi
24564 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24565 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24567 fi
24568 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24569 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24571 fi
24572 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24573 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24575 fi
24576 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24577 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24579 fi
24580 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24581 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24583 fi
24584 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24585 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24587 fi
24588 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24589 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24591 fi
24592 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24593 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24595 fi
24596 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24597 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24599 fi
24600 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24601 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24603 fi
24604
24605 gl_libobjs=
24606 gl_ltlibobjs=
24607 if test -n "$gl_LIBOBJS"; then
24608 # Remove the extension.
24609 sed_drop_objext='s/\.o$//;s/\.obj$//'
24610 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24611 gl_libobjs="$gl_libobjs $i.$ac_objext"
24612 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24613 done
24614 fi
24615 gl_LIBOBJS=$gl_libobjs
24616
24617 gl_LTLIBOBJS=$gl_ltlibobjs
24618
24619
24620
24621 gltests_libobjs=
24622 gltests_ltlibobjs=
24623 if test -n "$gltests_LIBOBJS"; then
24624 # Remove the extension.
24625 sed_drop_objext='s/\.o$//;s/\.obj$//'
24626 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24627 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24628 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24629 done
24630 fi
24631 gltests_LIBOBJS=$gltests_libobjs
24632
24633 gltests_LTLIBOBJS=$gltests_ltlibobjs
24634
24635
24636
24637 : ${CONFIG_STATUS=./config.status}
24638 ac_write_fail=0
24639 ac_clean_files_save=$ac_clean_files
24640 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24642 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24643 as_write_fail=0
24644 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24645 #! $SHELL
24646 # Generated by $as_me.
24647 # Run this file to recreate the current configuration.
24648 # Compiler output produced by configure, useful for debugging
24649 # configure, is in config.log if it exists.
24650
24651 debug=false
24652 ac_cs_recheck=false
24653 ac_cs_silent=false
24654
24655 SHELL=\${CONFIG_SHELL-$SHELL}
24656 export SHELL
24657 _ASEOF
24658 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24659 ## -------------------- ##
24660 ## M4sh Initialization. ##
24661 ## -------------------- ##
24662
24663 # Be more Bourne compatible
24664 DUALCASE=1; export DUALCASE # for MKS sh
24665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24666 emulate sh
24667 NULLCMD=:
24668 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24669 # is contrary to our usage. Disable this feature.
24670 alias -g '${1+"$@"}'='"$@"'
24671 setopt NO_GLOB_SUBST
24672 else
24673 case `(set -o) 2>/dev/null` in #(
24674 *posix*) :
24675 set -o posix ;; #(
24676 *) :
24677 ;;
24678 esac
24679 fi
24680
24681
24682 as_nl='
24683 '
24684 export as_nl
24685 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24686 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24687 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24689 # Prefer a ksh shell builtin over an external printf program on Solaris,
24690 # but without wasting forks for bash or zsh.
24691 if test -z "$BASH_VERSION$ZSH_VERSION" \
24692 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24693 as_echo='print -r --'
24694 as_echo_n='print -rn --'
24695 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24696 as_echo='printf %s\n'
24697 as_echo_n='printf %s'
24698 else
24699 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24700 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24701 as_echo_n='/usr/ucb/echo -n'
24702 else
24703 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24704 as_echo_n_body='eval
24705 arg=$1;
24706 case $arg in #(
24707 *"$as_nl"*)
24708 expr "X$arg" : "X\\(.*\\)$as_nl";
24709 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24710 esac;
24711 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24712 '
24713 export as_echo_n_body
24714 as_echo_n='sh -c $as_echo_n_body as_echo'
24715 fi
24716 export as_echo_body
24717 as_echo='sh -c $as_echo_body as_echo'
24718 fi
24719
24720 # The user is always right.
24721 if test "${PATH_SEPARATOR+set}" != set; then
24722 PATH_SEPARATOR=:
24723 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24724 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24725 PATH_SEPARATOR=';'
24726 }
24727 fi
24728
24729
24730 # IFS
24731 # We need space, tab and new line, in precisely that order. Quoting is
24732 # there to prevent editors from complaining about space-tab.
24733 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24734 # splitting by setting IFS to empty value.)
24735 IFS=" "" $as_nl"
24736
24737 # Find who we are. Look in the path if we contain no directory separator.
24738 case $0 in #((
24739 *[\\/]* ) as_myself=$0 ;;
24740 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24741 for as_dir in $PATH
24742 do
24743 IFS=$as_save_IFS
24744 test -z "$as_dir" && as_dir=.
24745 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24746 done
24747 IFS=$as_save_IFS
24748
24749 ;;
24750 esac
24751 # We did not find ourselves, most probably we were run as `sh COMMAND'
24752 # in which case we are not to be found in the path.
24753 if test "x$as_myself" = x; then
24754 as_myself=$0
24755 fi
24756 if test ! -f "$as_myself"; then
24757 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24758 exit 1
24759 fi
24760
24761 # Unset variables that we do not need and which cause bugs (e.g. in
24762 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24763 # suppresses any "Segmentation fault" message there. '((' could
24764 # trigger a bug in pdksh 5.2.14.
24765 for as_var in BASH_ENV ENV MAIL MAILPATH
24766 do eval test x\${$as_var+set} = xset \
24767 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24768 done
24769 PS1='$ '
24770 PS2='> '
24771 PS4='+ '
24772
24773 # NLS nuisances.
24774 LC_ALL=C
24775 export LC_ALL
24776 LANGUAGE=C
24777 export LANGUAGE
24778
24779 # CDPATH.
24780 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24781
24782
24783 # as_fn_error ERROR [LINENO LOG_FD]
24784 # ---------------------------------
24785 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24786 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24787 # script with status $?, using 1 if that was 0.
24788 as_fn_error ()
24789 {
24790 as_status=$?; test $as_status -eq 0 && as_status=1
24791 if test "$3"; then
24792 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24793 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24794 fi
24795 $as_echo "$as_me: error: $1" >&2
24796 as_fn_exit $as_status
24797 } # as_fn_error
24798
24799
24800 # as_fn_set_status STATUS
24801 # -----------------------
24802 # Set $? to STATUS, without forking.
24803 as_fn_set_status ()
24804 {
24805 return $1
24806 } # as_fn_set_status
24807
24808 # as_fn_exit STATUS
24809 # -----------------
24810 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24811 as_fn_exit ()
24812 {
24813 set +e
24814 as_fn_set_status $1
24815 exit $1
24816 } # as_fn_exit
24817
24818 # as_fn_unset VAR
24819 # ---------------
24820 # Portably unset VAR.
24821 as_fn_unset ()
24822 {
24823 { eval $1=; unset $1;}
24824 }
24825 as_unset=as_fn_unset
24826 # as_fn_append VAR VALUE
24827 # ----------------------
24828 # Append the text in VALUE to the end of the definition contained in VAR. Take
24829 # advantage of any shell optimizations that allow amortized linear growth over
24830 # repeated appends, instead of the typical quadratic growth present in naive
24831 # implementations.
24832 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24833 eval 'as_fn_append ()
24834 {
24835 eval $1+=\$2
24836 }'
24837 else
24838 as_fn_append ()
24839 {
24840 eval $1=\$$1\$2
24841 }
24842 fi # as_fn_append
24843
24844 # as_fn_arith ARG...
24845 # ------------------
24846 # Perform arithmetic evaluation on the ARGs, and store the result in the
24847 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24848 # must be portable across $(()) and expr.
24849 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24850 eval 'as_fn_arith ()
24851 {
24852 as_val=$(( $* ))
24853 }'
24854 else
24855 as_fn_arith ()
24856 {
24857 as_val=`expr "$@" || test $? -eq 1`
24858 }
24859 fi # as_fn_arith
24860
24861
24862 if expr a : '\(a\)' >/dev/null 2>&1 &&
24863 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24864 as_expr=expr
24865 else
24866 as_expr=false
24867 fi
24868
24869 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24870 as_basename=basename
24871 else
24872 as_basename=false
24873 fi
24874
24875 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24876 as_dirname=dirname
24877 else
24878 as_dirname=false
24879 fi
24880
24881 as_me=`$as_basename -- "$0" ||
24882 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24883 X"$0" : 'X\(//\)$' \| \
24884 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24885 $as_echo X/"$0" |
24886 sed '/^.*\/\([^/][^/]*\)\/*$/{
24887 s//\1/
24888 q
24889 }
24890 /^X\/\(\/\/\)$/{
24891 s//\1/
24892 q
24893 }
24894 /^X\/\(\/\).*/{
24895 s//\1/
24896 q
24897 }
24898 s/.*/./; q'`
24899
24900 # Avoid depending upon Character Ranges.
24901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24904 as_cr_digits='0123456789'
24905 as_cr_alnum=$as_cr_Letters$as_cr_digits
24906
24907 ECHO_C= ECHO_N= ECHO_T=
24908 case `echo -n x` in #(((((
24909 -n*)
24910 case `echo 'xy\c'` in
24911 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24912 xy) ECHO_C='\c';;
24913 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24914 ECHO_T=' ';;
24915 esac;;
24916 *)
24917 ECHO_N='-n';;
24918 esac
24919
24920 rm -f conf$$ conf$$.exe conf$$.file
24921 if test -d conf$$.dir; then
24922 rm -f conf$$.dir/conf$$.file
24923 else
24924 rm -f conf$$.dir
24925 mkdir conf$$.dir 2>/dev/null
24926 fi
24927 if (echo >conf$$.file) 2>/dev/null; then
24928 if ln -s conf$$.file conf$$ 2>/dev/null; then
24929 as_ln_s='ln -s'
24930 # ... but there are two gotchas:
24931 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24932 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24933 # In both cases, we have to default to `cp -p'.
24934 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24935 as_ln_s='cp -p'
24936 elif ln conf$$.file conf$$ 2>/dev/null; then
24937 as_ln_s=ln
24938 else
24939 as_ln_s='cp -p'
24940 fi
24941 else
24942 as_ln_s='cp -p'
24943 fi
24944 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24945 rmdir conf$$.dir 2>/dev/null
24946
24947
24948 # as_fn_mkdir_p
24949 # -------------
24950 # Create "$as_dir" as a directory, including parents if necessary.
24951 as_fn_mkdir_p ()
24952 {
24953
24954 case $as_dir in #(
24955 -*) as_dir=./$as_dir;;
24956 esac
24957 test -d "$as_dir" || eval $as_mkdir_p || {
24958 as_dirs=
24959 while :; do
24960 case $as_dir in #(
24961 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24962 *) as_qdir=$as_dir;;
24963 esac
24964 as_dirs="'$as_qdir' $as_dirs"
24965 as_dir=`$as_dirname -- "$as_dir" ||
24966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24967 X"$as_dir" : 'X\(//\)[^/]' \| \
24968 X"$as_dir" : 'X\(//\)$' \| \
24969 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24970 $as_echo X"$as_dir" |
24971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24972 s//\1/
24973 q
24974 }
24975 /^X\(\/\/\)[^/].*/{
24976 s//\1/
24977 q
24978 }
24979 /^X\(\/\/\)$/{
24980 s//\1/
24981 q
24982 }
24983 /^X\(\/\).*/{
24984 s//\1/
24985 q
24986 }
24987 s/.*/./; q'`
24988 test -d "$as_dir" && break
24989 done
24990 test -z "$as_dirs" || eval "mkdir $as_dirs"
24991 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24992
24993
24994 } # as_fn_mkdir_p
24995 if mkdir -p . 2>/dev/null; then
24996 as_mkdir_p='mkdir -p "$as_dir"'
24997 else
24998 test -d ./-p && rmdir ./-p
24999 as_mkdir_p=false
25000 fi
25001
25002 if test -x / >/dev/null 2>&1; then
25003 as_test_x='test -x'
25004 else
25005 if ls -dL / >/dev/null 2>&1; then
25006 as_ls_L_option=L
25007 else
25008 as_ls_L_option=
25009 fi
25010 as_test_x='
25011 eval sh -c '\''
25012 if test -d "$1"; then
25013 test -d "$1/.";
25014 else
25015 case $1 in #(
25016 -*)set "./$1";;
25017 esac;
25018 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25019 ???[sx]*):;;*)false;;esac;fi
25020 '\'' sh
25021 '
25022 fi
25023 as_executable_p=$as_test_x
25024
25025 # Sed expression to map a string onto a valid CPP name.
25026 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25027
25028 # Sed expression to map a string onto a valid variable name.
25029 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25030
25031
25032 exec 6>&1
25033 ## ----------------------------------- ##
25034 ## Main body of $CONFIG_STATUS script. ##
25035 ## ----------------------------------- ##
25036 _ASEOF
25037 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25038
25039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25040 # Save the log message, to keep $0 and so on meaningful, and to
25041 # report actual input values of CONFIG_FILES etc. instead of their
25042 # values after options handling.
25043 ac_log="
25044 This file was extended by emacs $as_me 24.2.50, which was
25045 generated by GNU Autoconf 2.65. Invocation command line was
25046
25047 CONFIG_FILES = $CONFIG_FILES
25048 CONFIG_HEADERS = $CONFIG_HEADERS
25049 CONFIG_LINKS = $CONFIG_LINKS
25050 CONFIG_COMMANDS = $CONFIG_COMMANDS
25051 $ $0 $@
25052
25053 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25054 "
25055
25056 _ACEOF
25057
25058 case $ac_config_files in *"
25059 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25060 esac
25061
25062 case $ac_config_headers in *"
25063 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25064 esac
25065
25066
25067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25068 # Files that config.status was made for.
25069 config_files="$ac_config_files"
25070 config_headers="$ac_config_headers"
25071 config_commands="$ac_config_commands"
25072
25073 _ACEOF
25074
25075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25076 ac_cs_usage="\
25077 \`$as_me' instantiates files and other configuration actions
25078 from templates according to the current configuration. Unless the files
25079 and actions are specified as TAGs, all are instantiated by default.
25080
25081 Usage: $0 [OPTION]... [TAG]...
25082
25083 -h, --help print this help, then exit
25084 -V, --version print version number and configuration settings, then exit
25085 --config print configuration, then exit
25086 -q, --quiet, --silent
25087 do not print progress messages
25088 -d, --debug don't remove temporary files
25089 --recheck update $as_me by reconfiguring in the same conditions
25090 --file=FILE[:TEMPLATE]
25091 instantiate the configuration file FILE
25092 --header=FILE[:TEMPLATE]
25093 instantiate the configuration header FILE
25094
25095 Configuration files:
25096 $config_files
25097
25098 Configuration headers:
25099 $config_headers
25100
25101 Configuration commands:
25102 $config_commands
25103
25104 Report bugs to the package provider."
25105
25106 _ACEOF
25107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25108 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25109 ac_cs_version="\\
25110 emacs config.status 24.2.50
25111 configured by $0, generated by GNU Autoconf 2.65,
25112 with options \\"\$ac_cs_config\\"
25113
25114 Copyright (C) 2009 Free Software Foundation, Inc.
25115 This config.status script is free software; the Free Software Foundation
25116 gives unlimited permission to copy, distribute and modify it."
25117
25118 ac_pwd='$ac_pwd'
25119 srcdir='$srcdir'
25120 INSTALL='$INSTALL'
25121 MKDIR_P='$MKDIR_P'
25122 AWK='$AWK'
25123 test -n "\$AWK" || AWK=awk
25124 _ACEOF
25125
25126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25127 # The default lists apply if the user does not specify any file.
25128 ac_need_defaults=:
25129 while test $# != 0
25130 do
25131 case $1 in
25132 --*=*)
25133 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25134 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25135 ac_shift=:
25136 ;;
25137 *)
25138 ac_option=$1
25139 ac_optarg=$2
25140 ac_shift=shift
25141 ;;
25142 esac
25143
25144 case $ac_option in
25145 # Handling of the options.
25146 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25147 ac_cs_recheck=: ;;
25148 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25149 $as_echo "$ac_cs_version"; exit ;;
25150 --config | --confi | --conf | --con | --co | --c )
25151 $as_echo "$ac_cs_config"; exit ;;
25152 --debug | --debu | --deb | --de | --d | -d )
25153 debug=: ;;
25154 --file | --fil | --fi | --f )
25155 $ac_shift
25156 case $ac_optarg in
25157 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25158 esac
25159 as_fn_append CONFIG_FILES " '$ac_optarg'"
25160 ac_need_defaults=false;;
25161 --header | --heade | --head | --hea )
25162 $ac_shift
25163 case $ac_optarg in
25164 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25165 esac
25166 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25167 ac_need_defaults=false;;
25168 --he | --h)
25169 # Conflict between --help and --header
25170 as_fn_error "ambiguous option: \`$1'
25171 Try \`$0 --help' for more information.";;
25172 --help | --hel | -h )
25173 $as_echo "$ac_cs_usage"; exit ;;
25174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25175 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25176 ac_cs_silent=: ;;
25177
25178 # This is an error.
25179 -*) as_fn_error "unrecognized option: \`$1'
25180 Try \`$0 --help' for more information." ;;
25181
25182 *) as_fn_append ac_config_targets " $1"
25183 ac_need_defaults=false ;;
25184
25185 esac
25186 shift
25187 done
25188
25189 ac_configure_extra_args=
25190
25191 if $ac_cs_silent; then
25192 exec 6>/dev/null
25193 ac_configure_extra_args="$ac_configure_extra_args --silent"
25194 fi
25195
25196 _ACEOF
25197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25198 if \$ac_cs_recheck; then
25199 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25200 shift
25201 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25202 CONFIG_SHELL='$SHELL'
25203 export CONFIG_SHELL
25204 exec "\$@"
25205 fi
25206
25207 _ACEOF
25208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25209 exec 5>>config.log
25210 {
25211 echo
25212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25213 ## Running $as_me. ##
25214 _ASBOX
25215 $as_echo "$ac_log"
25216 } >&5
25217
25218 _ACEOF
25219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25220 #
25221 # INIT-COMMANDS
25222 #
25223 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25224 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25225
25226 _ACEOF
25227
25228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25229
25230 # Handling of arguments.
25231 for ac_config_target in $ac_config_targets
25232 do
25233 case $ac_config_target in
25234 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25235 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25236 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25237 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25238 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
25239 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25240 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25241 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25242 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25243 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25244 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25245 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25246 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25247 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25248 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
25249 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
25250 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
25251 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
25252 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
25253
25254 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25255 esac
25256 done
25257
25258
25259 # If the user did not use the arguments to specify the items to instantiate,
25260 # then the envvar interface is used. Set only those that are not.
25261 # We use the long form for the default assignment because of an extremely
25262 # bizarre bug on SunOS 4.1.3.
25263 if $ac_need_defaults; then
25264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25267 fi
25268
25269 # Have a temporary directory for convenience. Make it in the build tree
25270 # simply because there is no reason against having it here, and in addition,
25271 # creating and moving files from /tmp can sometimes cause problems.
25272 # Hook for its removal unless debugging.
25273 # Note that there is a small window in which the directory will not be cleaned:
25274 # after its creation but before its name has been assigned to `$tmp'.
25275 $debug ||
25276 {
25277 tmp=
25278 trap 'exit_status=$?
25279 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25280 ' 0
25281 trap 'as_fn_exit 1' 1 2 13 15
25282 }
25283 # Create a (secure) tmp directory for tmp files.
25284
25285 {
25286 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25287 test -n "$tmp" && test -d "$tmp"
25288 } ||
25289 {
25290 tmp=./conf$$-$RANDOM
25291 (umask 077 && mkdir "$tmp")
25292 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25293
25294 # Set up the scripts for CONFIG_FILES section.
25295 # No need to generate them if there are no CONFIG_FILES.
25296 # This happens for instance with `./config.status config.h'.
25297 if test -n "$CONFIG_FILES"; then
25298
25299 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25300 ac_cs_awk_getline=:
25301 ac_cs_awk_pipe_init=
25302 ac_cs_awk_read_file='
25303 while ((getline aline < (F[key])) > 0)
25304 print(aline)
25305 close(F[key])'
25306 ac_cs_awk_pipe_fini=
25307 else
25308 ac_cs_awk_getline=false
25309 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25310 ac_cs_awk_read_file='
25311 print "|#_!!_#|"
25312 print "cat " F[key] " &&"
25313 '$ac_cs_awk_pipe_init
25314 # The final `:' finishes the AND list.
25315 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25316 fi
25317 ac_cr=`echo X | tr X '\015'`
25318 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25319 # But we know of no other shell where ac_cr would be empty at this
25320 # point, so we can use a bashism as a fallback.
25321 if test "x$ac_cr" = x; then
25322 eval ac_cr=\$\'\\r\'
25323 fi
25324 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25325 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25326 ac_cs_awk_cr='\r'
25327 else
25328 ac_cs_awk_cr=$ac_cr
25329 fi
25330
25331 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25332 _ACEOF
25333
25334 # Create commands to substitute file output variables.
25335 {
25336 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25337 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25338 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25339 echo "_ACAWK" &&
25340 echo "_ACEOF"
25341 } >conf$$files.sh &&
25342 . ./conf$$files.sh ||
25343 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25344 rm -f conf$$files.sh
25345
25346 {
25347 echo "cat >conf$$subs.awk <<_ACEOF" &&
25348 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25349 echo "_ACEOF"
25350 } >conf$$subs.sh ||
25351 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25352 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25353 ac_delim='%!_!# '
25354 for ac_last_try in false false false false false :; do
25355 . ./conf$$subs.sh ||
25356 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25357
25358 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25359 if test $ac_delim_n = $ac_delim_num; then
25360 break
25361 elif $ac_last_try; then
25362 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25363 else
25364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25365 fi
25366 done
25367 rm -f conf$$subs.sh
25368
25369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25370 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25371 _ACEOF
25372 sed -n '
25373 h
25374 s/^/S["/; s/!.*/"]=/
25375 p
25376 g
25377 s/^[^!]*!//
25378 :repl
25379 t repl
25380 s/'"$ac_delim"'$//
25381 t delim
25382 :nl
25383 h
25384 s/\(.\{148\}\)..*/\1/
25385 t more1
25386 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25387 p
25388 n
25389 b repl
25390 :more1
25391 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25392 p
25393 g
25394 s/.\{148\}//
25395 t nl
25396 :delim
25397 h
25398 s/\(.\{148\}\)..*/\1/
25399 t more2
25400 s/["\\]/\\&/g; s/^/"/; s/$/"/
25401 p
25402 b
25403 :more2
25404 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25405 p
25406 g
25407 s/.\{148\}//
25408 t delim
25409 ' <conf$$subs.awk | sed '
25410 /^[^""]/{
25411 N
25412 s/\n//
25413 }
25414 ' >>$CONFIG_STATUS || ac_write_fail=1
25415 rm -f conf$$subs.awk
25416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25417 _ACAWK
25418 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25419 for (key in S) S_is_set[key] = 1
25420 FS = "\a"
25421 \$ac_cs_awk_pipe_init
25422 }
25423 {
25424 line = $ 0
25425 nfields = split(line, field, "@")
25426 substed = 0
25427 len = length(field[1])
25428 for (i = 2; i < nfields; i++) {
25429 key = field[i]
25430 keylen = length(key)
25431 if (S_is_set[key]) {
25432 value = S[key]
25433 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25434 len += length(value) + length(field[++i])
25435 substed = 1
25436 } else
25437 len += 1 + keylen
25438 }
25439 if (nfields == 3 && !substed) {
25440 key = field[2]
25441 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25442 \$ac_cs_awk_read_file
25443 next
25444 }
25445 }
25446 print line
25447 }
25448 \$ac_cs_awk_pipe_fini
25449 _ACAWK
25450 _ACEOF
25451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25452 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25453 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25454 else
25455 cat
25456 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25457 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25458 _ACEOF
25459
25460 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25461 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25462 # trailing colons and then remove the whole line if VPATH becomes empty
25463 # (actually we leave an empty line to preserve line numbers).
25464 if test "x$srcdir" = x.; then
25465 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25466 s/:*\$(srcdir):*/:/
25467 s/:*\${srcdir}:*/:/
25468 s/:*@srcdir@:*/:/
25469 s/^\([^=]*=[ ]*\):*/\1/
25470 s/:*$//
25471 s/^[^=]*=[ ]*$//
25472 }'
25473 fi
25474
25475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25476 fi # test -n "$CONFIG_FILES"
25477
25478 # Set up the scripts for CONFIG_HEADERS section.
25479 # No need to generate them if there are no CONFIG_HEADERS.
25480 # This happens for instance with `./config.status Makefile'.
25481 if test -n "$CONFIG_HEADERS"; then
25482 cat >"$tmp/defines.awk" <<\_ACAWK ||
25483 BEGIN {
25484 _ACEOF
25485
25486 # Transform confdefs.h into an awk script `defines.awk', embedded as
25487 # here-document in config.status, that substitutes the proper values into
25488 # config.h.in to produce config.h.
25489
25490 # Create a delimiter string that does not exist in confdefs.h, to ease
25491 # handling of long lines.
25492 ac_delim='%!_!# '
25493 for ac_last_try in false false :; do
25494 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25495 if test -z "$ac_t"; then
25496 break
25497 elif $ac_last_try; then
25498 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25499 else
25500 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25501 fi
25502 done
25503
25504 # For the awk script, D is an array of macro values keyed by name,
25505 # likewise P contains macro parameters if any. Preserve backslash
25506 # newline sequences.
25507
25508 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25509 sed -n '
25510 s/.\{148\}/&'"$ac_delim"'/g
25511 t rset
25512 :rset
25513 s/^[ ]*#[ ]*define[ ][ ]*/ /
25514 t def
25515 d
25516 :def
25517 s/\\$//
25518 t bsnl
25519 s/["\\]/\\&/g
25520 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25521 D["\1"]=" \3"/p
25522 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25523 d
25524 :bsnl
25525 s/["\\]/\\&/g
25526 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25527 D["\1"]=" \3\\\\\\n"\\/p
25528 t cont
25529 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25530 t cont
25531 d
25532 :cont
25533 n
25534 s/.\{148\}/&'"$ac_delim"'/g
25535 t clear
25536 :clear
25537 s/\\$//
25538 t bsnlc
25539 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25540 d
25541 :bsnlc
25542 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25543 b cont
25544 ' <confdefs.h | sed '
25545 s/'"$ac_delim"'/"\\\
25546 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25547
25548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25549 for (key in D) D_is_set[key] = 1
25550 FS = "\a"
25551 }
25552 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25553 line = \$ 0
25554 split(line, arg, " ")
25555 if (arg[1] == "#") {
25556 defundef = arg[2]
25557 mac1 = arg[3]
25558 } else {
25559 defundef = substr(arg[1], 2)
25560 mac1 = arg[2]
25561 }
25562 split(mac1, mac2, "(") #)
25563 macro = mac2[1]
25564 prefix = substr(line, 1, index(line, defundef) - 1)
25565 if (D_is_set[macro]) {
25566 # Preserve the white space surrounding the "#".
25567 print prefix "define", macro P[macro] D[macro]
25568 next
25569 } else {
25570 # Replace #undef with comments. This is necessary, for example,
25571 # in the case of _POSIX_SOURCE, which is predefined and required
25572 # on some systems where configure will not decide to define it.
25573 if (defundef == "undef") {
25574 print "/*", prefix defundef, macro, "*/"
25575 next
25576 }
25577 }
25578 }
25579 { print }
25580 _ACAWK
25581 _ACEOF
25582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25583 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25584 fi # test -n "$CONFIG_HEADERS"
25585
25586
25587 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25588 shift
25589 for ac_tag
25590 do
25591 case $ac_tag in
25592 :[FHLC]) ac_mode=$ac_tag; continue;;
25593 esac
25594 case $ac_mode$ac_tag in
25595 :[FHL]*:*);;
25596 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25597 :[FH]-) ac_tag=-:-;;
25598 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25599 esac
25600 ac_save_IFS=$IFS
25601 IFS=:
25602 set x $ac_tag
25603 IFS=$ac_save_IFS
25604 shift
25605 ac_file=$1
25606 shift
25607
25608 case $ac_mode in
25609 :L) ac_source=$1;;
25610 :[FH])
25611 ac_file_inputs=
25612 for ac_f
25613 do
25614 case $ac_f in
25615 -) ac_f="$tmp/stdin";;
25616 *) # Look for the file first in the build tree, then in the source tree
25617 # (if the path is not absolute). The absolute path cannot be DOS-style,
25618 # because $ac_f cannot contain `:'.
25619 test -f "$ac_f" ||
25620 case $ac_f in
25621 [\\/$]*) false;;
25622 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25623 esac ||
25624 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25625 esac
25626 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25627 as_fn_append ac_file_inputs " '$ac_f'"
25628 done
25629
25630 # Let's still pretend it is `configure' which instantiates (i.e., don't
25631 # use $as_me), people would be surprised to read:
25632 # /* config.h. Generated by config.status. */
25633 configure_input='Generated from '`
25634 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25635 `' by configure.'
25636 if test x"$ac_file" != x-; then
25637 configure_input="$ac_file. $configure_input"
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25639 $as_echo "$as_me: creating $ac_file" >&6;}
25640 fi
25641 # Neutralize special characters interpreted by sed in replacement strings.
25642 case $configure_input in #(
25643 *\&* | *\|* | *\\* )
25644 ac_sed_conf_input=`$as_echo "$configure_input" |
25645 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25646 *) ac_sed_conf_input=$configure_input;;
25647 esac
25648
25649 case $ac_tag in
25650 *:-:* | *:-) cat >"$tmp/stdin" \
25651 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25652 esac
25653 ;;
25654 esac
25655
25656 ac_dir=`$as_dirname -- "$ac_file" ||
25657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25658 X"$ac_file" : 'X\(//\)[^/]' \| \
25659 X"$ac_file" : 'X\(//\)$' \| \
25660 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25661 $as_echo X"$ac_file" |
25662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25663 s//\1/
25664 q
25665 }
25666 /^X\(\/\/\)[^/].*/{
25667 s//\1/
25668 q
25669 }
25670 /^X\(\/\/\)$/{
25671 s//\1/
25672 q
25673 }
25674 /^X\(\/\).*/{
25675 s//\1/
25676 q
25677 }
25678 s/.*/./; q'`
25679 as_dir="$ac_dir"; as_fn_mkdir_p
25680 ac_builddir=.
25681
25682 case "$ac_dir" in
25683 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25684 *)
25685 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25686 # A ".." for each directory in $ac_dir_suffix.
25687 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25688 case $ac_top_builddir_sub in
25689 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25690 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25691 esac ;;
25692 esac
25693 ac_abs_top_builddir=$ac_pwd
25694 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25695 # for backward compatibility:
25696 ac_top_builddir=$ac_top_build_prefix
25697
25698 case $srcdir in
25699 .) # We are building in place.
25700 ac_srcdir=.
25701 ac_top_srcdir=$ac_top_builddir_sub
25702 ac_abs_top_srcdir=$ac_pwd ;;
25703 [\\/]* | ?:[\\/]* ) # Absolute name.
25704 ac_srcdir=$srcdir$ac_dir_suffix;
25705 ac_top_srcdir=$srcdir
25706 ac_abs_top_srcdir=$srcdir ;;
25707 *) # Relative name.
25708 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25709 ac_top_srcdir=$ac_top_build_prefix$srcdir
25710 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25711 esac
25712 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25713
25714
25715 case $ac_mode in
25716 :F)
25717 #
25718 # CONFIG_FILE
25719 #
25720
25721 case $INSTALL in
25722 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25723 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25724 esac
25725 ac_MKDIR_P=$MKDIR_P
25726 case $MKDIR_P in
25727 [\\/$]* | ?:[\\/]* ) ;;
25728 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25729 esac
25730 _ACEOF
25731
25732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25733 # If the template does not know about datarootdir, expand it.
25734 # FIXME: This hack should be removed a few years after 2.60.
25735 ac_datarootdir_hack=; ac_datarootdir_seen=
25736 ac_sed_dataroot='
25737 /datarootdir/ {
25738 p
25739 q
25740 }
25741 /@datadir@/p
25742 /@docdir@/p
25743 /@infodir@/p
25744 /@localedir@/p
25745 /@mandir@/p'
25746 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25747 *datarootdir*) ac_datarootdir_seen=yes;;
25748 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25750 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25751 _ACEOF
25752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25753 ac_datarootdir_hack='
25754 s&@datadir@&$datadir&g
25755 s&@docdir@&$docdir&g
25756 s&@infodir@&$infodir&g
25757 s&@localedir@&$localedir&g
25758 s&@mandir@&$mandir&g
25759 s&\\\${datarootdir}&$datarootdir&g' ;;
25760 esac
25761 _ACEOF
25762
25763 # Neutralize VPATH when `$srcdir' = `.'.
25764 # Shell code in configure.ac might set extrasub.
25765 # FIXME: do we really want to maintain this feature?
25766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25767 ac_sed_extra="$ac_vpsub
25768 $extrasub
25769 _ACEOF
25770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25771 :t
25772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25773 s|@configure_input@|$ac_sed_conf_input|;t t
25774 s&@top_builddir@&$ac_top_builddir_sub&;t t
25775 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25776 s&@srcdir@&$ac_srcdir&;t t
25777 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25778 s&@top_srcdir@&$ac_top_srcdir&;t t
25779 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25780 s&@builddir@&$ac_builddir&;t t
25781 s&@abs_builddir@&$ac_abs_builddir&;t t
25782 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25783 s&@INSTALL@&$ac_INSTALL&;t t
25784 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25785 $ac_datarootdir_hack
25786 "
25787 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25788 if $ac_cs_awk_getline; then
25789 $AWK -f "$tmp/subs.awk"
25790 else
25791 $AWK -f "$tmp/subs.awk" | $SHELL
25792 fi >$tmp/out \
25793 || as_fn_error "could not create $ac_file" "$LINENO" 5
25794
25795 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25796 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25797 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25799 which seems to be undefined. Please make sure it is defined." >&5
25800 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25801 which seems to be undefined. Please make sure it is defined." >&2;}
25802
25803 rm -f "$tmp/stdin"
25804 case $ac_file in
25805 -) cat "$tmp/out" && rm -f "$tmp/out";;
25806 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25807 esac \
25808 || as_fn_error "could not create $ac_file" "$LINENO" 5
25809 ;;
25810 :H)
25811 #
25812 # CONFIG_HEADER
25813 #
25814 if test x"$ac_file" != x-; then
25815 {
25816 $as_echo "/* $configure_input */" \
25817 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25818 } >"$tmp/config.h" \
25819 || as_fn_error "could not create $ac_file" "$LINENO" 5
25820 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25822 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25823 else
25824 rm -f "$ac_file"
25825 mv "$tmp/config.h" "$ac_file" \
25826 || as_fn_error "could not create $ac_file" "$LINENO" 5
25827 fi
25828 else
25829 $as_echo "/* $configure_input */" \
25830 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25831 || as_fn_error "could not create -" "$LINENO" 5
25832 fi
25833 # Compute "$ac_file"'s index in $config_headers.
25834 _am_arg="$ac_file"
25835 _am_stamp_count=1
25836 for _am_header in $config_headers :; do
25837 case $_am_header in
25838 $_am_arg | $_am_arg:* )
25839 break ;;
25840 * )
25841 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25842 esac
25843 done
25844 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25845 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25846 X"$_am_arg" : 'X\(//\)[^/]' \| \
25847 X"$_am_arg" : 'X\(//\)$' \| \
25848 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25849 $as_echo X"$_am_arg" |
25850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25851 s//\1/
25852 q
25853 }
25854 /^X\(\/\/\)[^/].*/{
25855 s//\1/
25856 q
25857 }
25858 /^X\(\/\/\)$/{
25859 s//\1/
25860 q
25861 }
25862 /^X\(\/\).*/{
25863 s//\1/
25864 q
25865 }
25866 s/.*/./; q'`/stamp-h$_am_stamp_count
25867 ;;
25868
25869 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25870 $as_echo "$as_me: executing $ac_file commands" >&6;}
25871 ;;
25872 esac
25873
25874
25875 case $ac_file$ac_mode in
25876 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25877 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25878 # are listed without --file. Let's play safe and only enable the eval
25879 # if we detect the quoting.
25880 case $CONFIG_FILES in
25881 *\'*) eval set x "$CONFIG_FILES" ;;
25882 *) set x $CONFIG_FILES ;;
25883 esac
25884 shift
25885 for mf
25886 do
25887 # Strip MF so we end up with the name of the file.
25888 mf=`echo "$mf" | sed -e 's/:.*$//'`
25889 # Check whether this is an Automake generated Makefile or not.
25890 # We used to match only the files named `Makefile.in', but
25891 # some people rename them; so instead we look at the file content.
25892 # Grep'ing the first line is not enough: some people post-process
25893 # each Makefile.in and add a new line on top of each file to say so.
25894 # Grep'ing the whole file is not good either: AIX grep has a line
25895 # limit of 2048, but all sed's we know have understand at least 4000.
25896 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25897 dirpart=`$as_dirname -- "$mf" ||
25898 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25899 X"$mf" : 'X\(//\)[^/]' \| \
25900 X"$mf" : 'X\(//\)$' \| \
25901 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25902 $as_echo X"$mf" |
25903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25904 s//\1/
25905 q
25906 }
25907 /^X\(\/\/\)[^/].*/{
25908 s//\1/
25909 q
25910 }
25911 /^X\(\/\/\)$/{
25912 s//\1/
25913 q
25914 }
25915 /^X\(\/\).*/{
25916 s//\1/
25917 q
25918 }
25919 s/.*/./; q'`
25920 else
25921 continue
25922 fi
25923 # Extract the definition of DEPDIR, am__include, and am__quote
25924 # from the Makefile without running `make'.
25925 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25926 test -z "$DEPDIR" && continue
25927 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25928 test -z "am__include" && continue
25929 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25930 # When using ansi2knr, U may be empty or an underscore; expand it
25931 U=`sed -n 's/^U = //p' < "$mf"`
25932 # Find all dependency output files, they are included files with
25933 # $(DEPDIR) in their names. We invoke sed twice because it is the
25934 # simplest approach to changing $(DEPDIR) to its actual value in the
25935 # expansion.
25936 for file in `sed -n "
25937 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25938 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25939 # Make sure the directory exists.
25940 test -f "$dirpart/$file" && continue
25941 fdir=`$as_dirname -- "$file" ||
25942 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25943 X"$file" : 'X\(//\)[^/]' \| \
25944 X"$file" : 'X\(//\)$' \| \
25945 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25946 $as_echo X"$file" |
25947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25948 s//\1/
25949 q
25950 }
25951 /^X\(\/\/\)[^/].*/{
25952 s//\1/
25953 q
25954 }
25955 /^X\(\/\/\)$/{
25956 s//\1/
25957 q
25958 }
25959 /^X\(\/\).*/{
25960 s//\1/
25961 q
25962 }
25963 s/.*/./; q'`
25964 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25965 # echo "creating $dirpart/$file"
25966 echo '# dummy' > "$dirpart/$file"
25967 done
25968 done
25969 }
25970 ;;
25971 "mkdirs":C)
25972 for dir in etc lisp ; do
25973 test -d ${dir} || mkdir ${dir}
25974 done
25975 ;;
25976 "epaths":C)
25977 echo creating src/epaths.h
25978 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
25979 ;;
25980 "gdbinit":C)
25981 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25982 echo creating src/.gdbinit
25983 echo source $srcdir/src/.gdbinit > src/.gdbinit
25984 fi
25985 ;;
25986
25987 esac
25988 done # for ac_tag
25989
25990
25991 as_fn_exit 0
25992 _ACEOF
25993 ac_clean_files=$ac_clean_files_save
25994
25995 test $ac_write_fail = 0 ||
25996 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25997
25998
25999 # configure is writing to config.log, and then calls config.status.
26000 # config.status does its own redirection, appending to config.log.
26001 # Unfortunately, on DOS this fails, as config.log is still kept open
26002 # by configure, so config.status won't be able to write to it; its
26003 # output is simply discarded. So we exec the FD to /dev/null,
26004 # effectively closing config.log, so it can be properly (re)opened and
26005 # appended to by config.status. When coming back to configure, we
26006 # need to make the FD available again.
26007 if test "$no_create" != yes; then
26008 ac_cs_success=:
26009 ac_config_status_args=
26010 test "$silent" = yes &&
26011 ac_config_status_args="$ac_config_status_args --quiet"
26012 exec 5>/dev/null
26013 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26014 exec 5>>config.log
26015 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26016 # would make configure fail if this is the last instruction.
26017 $ac_cs_success || as_fn_exit $?
26018 fi
26019 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26021 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26022 fi
26023