]> 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.3.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.3.50'
553 PACKAGE_STRING='emacs 24.3.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_682e609604ccaac6be382e4ee3a4eaec_FALSE
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
616 gl_GNULIB_ENABLED_verify_FALSE
617 gl_GNULIB_ENABLED_verify_TRUE
618 gl_GNULIB_ENABLED_strtoull_FALSE
619 gl_GNULIB_ENABLED_strtoull_TRUE
620 gl_GNULIB_ENABLED_strtoll_FALSE
621 gl_GNULIB_ENABLED_strtoll_TRUE
622 gl_GNULIB_ENABLED_stat_FALSE
623 gl_GNULIB_ENABLED_stat_TRUE
624 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
625 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
626 gl_GNULIB_ENABLED_pathmax_FALSE
627 gl_GNULIB_ENABLED_pathmax_TRUE
628 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
632 gl_GNULIB_ENABLED_getgroups_FALSE
633 gl_GNULIB_ENABLED_getgroups_TRUE
634 gl_GNULIB_ENABLED_euidaccess_FALSE
635 gl_GNULIB_ENABLED_euidaccess_TRUE
636 gl_GNULIB_ENABLED_dosname_FALSE
637 gl_GNULIB_ENABLED_dosname_TRUE
638 LTLIBINTL
639 LIBINTL
640 LIB_EACCESS
641 WINDOWS_64_BIT_OFF_T
642 HAVE_UNISTD_H
643 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
644 NEXT_UNISTD_H
645 LIB_TIMER_TIME
646 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
647 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
648 TIME_H_DEFINES_STRUCT_TIMESPEC
649 NEXT_AS_FIRST_DIRECTIVE_TIME_H
650 NEXT_TIME_H
651 WINDOWS_64_BIT_ST_SIZE
652 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
653 NEXT_SYS_STAT_H
654 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
655 NEXT_STDLIB_H
656 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
657 NEXT_STDIO_H
658 REPLACE_VSPRINTF
659 REPLACE_VSNPRINTF
660 REPLACE_VPRINTF
661 REPLACE_VFPRINTF
662 REPLACE_VDPRINTF
663 REPLACE_VASPRINTF
664 REPLACE_TMPFILE
665 REPLACE_STDIO_WRITE_FUNCS
666 REPLACE_STDIO_READ_FUNCS
667 REPLACE_SPRINTF
668 REPLACE_SNPRINTF
669 REPLACE_RENAMEAT
670 REPLACE_RENAME
671 REPLACE_REMOVE
672 REPLACE_PRINTF
673 REPLACE_POPEN
674 REPLACE_PERROR
675 REPLACE_OBSTACK_PRINTF
676 REPLACE_GETLINE
677 REPLACE_GETDELIM
678 REPLACE_FTELLO
679 REPLACE_FTELL
680 REPLACE_FSEEKO
681 REPLACE_FSEEK
682 REPLACE_FREOPEN
683 REPLACE_FPURGE
684 REPLACE_FPRINTF
685 REPLACE_FOPEN
686 REPLACE_FFLUSH
687 REPLACE_FDOPEN
688 REPLACE_FCLOSE
689 REPLACE_DPRINTF
690 HAVE_VDPRINTF
691 HAVE_VASPRINTF
692 HAVE_RENAMEAT
693 HAVE_POPEN
694 HAVE_PCLOSE
695 HAVE_FTELLO
696 HAVE_FSEEKO
697 HAVE_DPRINTF
698 HAVE_DECL_VSNPRINTF
699 HAVE_DECL_SNPRINTF
700 HAVE_DECL_OBSTACK_PRINTF
701 HAVE_DECL_GETLINE
702 HAVE_DECL_GETDELIM
703 HAVE_DECL_FTELLO
704 HAVE_DECL_FSEEKO
705 HAVE_DECL_FPURGE
706 GNULIB_VSPRINTF_POSIX
707 GNULIB_VSNPRINTF
708 GNULIB_VPRINTF_POSIX
709 GNULIB_VPRINTF
710 GNULIB_VFPRINTF_POSIX
711 GNULIB_VFPRINTF
712 GNULIB_VDPRINTF
713 GNULIB_VSCANF
714 GNULIB_VFSCANF
715 GNULIB_VASPRINTF
716 GNULIB_TMPFILE
717 GNULIB_STDIO_H_SIGPIPE
718 GNULIB_STDIO_H_NONBLOCKING
719 GNULIB_SPRINTF_POSIX
720 GNULIB_SNPRINTF
721 GNULIB_SCANF
722 GNULIB_RENAMEAT
723 GNULIB_RENAME
724 GNULIB_REMOVE
725 GNULIB_PUTS
726 GNULIB_PUTCHAR
727 GNULIB_PUTC
728 GNULIB_PRINTF_POSIX
729 GNULIB_PRINTF
730 GNULIB_POPEN
731 GNULIB_PERROR
732 GNULIB_PCLOSE
733 GNULIB_OBSTACK_PRINTF_POSIX
734 GNULIB_OBSTACK_PRINTF
735 GNULIB_GETLINE
736 GNULIB_GETDELIM
737 GNULIB_GETCHAR
738 GNULIB_GETC
739 GNULIB_FWRITE
740 GNULIB_FTELLO
741 GNULIB_FTELL
742 GNULIB_FSEEKO
743 GNULIB_FSEEK
744 GNULIB_FSCANF
745 GNULIB_FREOPEN
746 GNULIB_FREAD
747 GNULIB_FPUTS
748 GNULIB_FPUTC
749 GNULIB_FPURGE
750 GNULIB_FPRINTF_POSIX
751 GNULIB_FPRINTF
752 GNULIB_FOPEN
753 GNULIB_FGETS
754 GNULIB_FGETC
755 GNULIB_FFLUSH
756 GNULIB_FDOPEN
757 GNULIB_FCLOSE
758 GNULIB_DPRINTF
759 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
760 NEXT_STDDEF_H
761 GL_GENERATE_STDDEF_H_FALSE
762 GL_GENERATE_STDDEF_H_TRUE
763 STDDEF_H
764 HAVE_WCHAR_T
765 REPLACE_NULL
766 HAVE__BOOL
767 GL_GENERATE_STDBOOL_H_FALSE
768 GL_GENERATE_STDBOOL_H_TRUE
769 STDBOOL_H
770 GL_GENERATE_STDARG_H_FALSE
771 GL_GENERATE_STDARG_H_TRUE
772 STDARG_H
773 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
774 NEXT_STDARG_H
775 GL_GENERATE_STDALIGN_H_FALSE
776 GL_GENERATE_STDALIGN_H_TRUE
777 STDALIGN_H
778 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
779 NEXT_SIGNAL_H
780 LIB_PTHREAD_SIGMASK
781 REPLACE_RAISE
782 REPLACE_PTHREAD_SIGMASK
783 HAVE_SIGHANDLER_T
784 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
785 HAVE_STRUCT_SIGACTION_SA_SIGACTION
786 HAVE_SIGACTION
787 HAVE_SIGINFO_T
788 HAVE_SIGSET_T
789 HAVE_RAISE
790 HAVE_PTHREAD_SIGMASK
791 HAVE_POSIX_SIGNALBLOCKING
792 GNULIB_SIGACTION
793 GNULIB_SIGPROCMASK
794 GNULIB_SIGNAL_H_SIGPIPE
795 GNULIB_RAISE
796 GNULIB_PTHREAD_SIGMASK
797 HAVE_SYS_SELECT_H
798 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
799 NEXT_SYS_SELECT_H
800 REPLACE_SELECT
801 REPLACE_PSELECT
802 HAVE_PSELECT
803 GNULIB_SELECT
804 GNULIB_PSELECT
805 REPLACE_TIMEGM
806 REPLACE_NANOSLEEP
807 REPLACE_MKTIME
808 REPLACE_LOCALTIME_R
809 HAVE_TIMEGM
810 HAVE_STRPTIME
811 HAVE_NANOSLEEP
812 HAVE_DECL_LOCALTIME_R
813 GNULIB_TIME_R
814 GNULIB_TIMEGM
815 GNULIB_STRPTIME
816 GNULIB_NANOSLEEP
817 GNULIB_MKTIME
818 REPLACE_UTIMENSAT
819 REPLACE_STAT
820 REPLACE_MKNOD
821 REPLACE_MKFIFO
822 REPLACE_MKDIR
823 REPLACE_LSTAT
824 REPLACE_FUTIMENS
825 REPLACE_FSTATAT
826 REPLACE_FSTAT
827 HAVE_UTIMENSAT
828 HAVE_MKNODAT
829 HAVE_MKNOD
830 HAVE_MKFIFOAT
831 HAVE_MKFIFO
832 HAVE_MKDIRAT
833 HAVE_LSTAT
834 HAVE_LCHMOD
835 HAVE_FUTIMENS
836 HAVE_FSTATAT
837 HAVE_FCHMODAT
838 GNULIB_UTIMENSAT
839 GNULIB_STAT
840 GNULIB_MKNODAT
841 GNULIB_MKNOD
842 GNULIB_MKFIFOAT
843 GNULIB_MKFIFO
844 GNULIB_MKDIRAT
845 GNULIB_LSTAT
846 GNULIB_LCHMOD
847 GNULIB_FUTIMENS
848 GNULIB_FSTATAT
849 GNULIB_FSTAT
850 GNULIB_FCHMODAT
851 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
852 NEXT_INTTYPES_H
853 UINT64_MAX_EQ_ULONG_MAX
854 UINT32_MAX_LT_UINTMAX_MAX
855 PRIPTR_PREFIX
856 PRI_MACROS_BROKEN
857 INT64_MAX_EQ_LONG_MAX
858 INT32_MAX_LT_INTMAX_MAX
859 REPLACE_STRTOIMAX
860 HAVE_DECL_STRTOUMAX
861 HAVE_DECL_STRTOIMAX
862 HAVE_DECL_IMAXDIV
863 HAVE_DECL_IMAXABS
864 GNULIB_STRTOUMAX
865 GNULIB_STRTOIMAX
866 GNULIB_IMAXDIV
867 GNULIB_IMAXABS
868 GL_GENERATE_STDINT_H_FALSE
869 GL_GENERATE_STDINT_H_TRUE
870 STDINT_H
871 WINT_T_SUFFIX
872 WCHAR_T_SUFFIX
873 SIG_ATOMIC_T_SUFFIX
874 SIZE_T_SUFFIX
875 PTRDIFF_T_SUFFIX
876 HAVE_SIGNED_WINT_T
877 HAVE_SIGNED_WCHAR_T
878 HAVE_SIGNED_SIG_ATOMIC_T
879 BITSIZEOF_WINT_T
880 BITSIZEOF_WCHAR_T
881 BITSIZEOF_SIG_ATOMIC_T
882 BITSIZEOF_SIZE_T
883 BITSIZEOF_PTRDIFF_T
884 APPLE_UNIVERSAL_BUILD
885 HAVE_SYS_BITYPES_H
886 HAVE_SYS_INTTYPES_H
887 HAVE_STDINT_H
888 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
889 NEXT_STDINT_H
890 HAVE_SYS_TYPES_H
891 HAVE_INTTYPES_H
892 HAVE_WCHAR_H
893 HAVE_UNSIGNED_LONG_LONG_INT
894 HAVE_LONG_LONG_INT
895 HAVE_WINSOCK2_H
896 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
897 NEXT_SYS_TIME_H
898 REPLACE_STRUCT_TIMEVAL
899 REPLACE_GETTIMEOFDAY
900 HAVE_SYS_TIME_H
901 HAVE_STRUCT_TIMEVAL
902 HAVE_GETTIMEOFDAY
903 GNULIB_GETTIMEOFDAY
904 GNULIB_GL_UNISTD_H_GETOPT
905 GETOPT_H
906 HAVE_GETOPT_H
907 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
908 NEXT_GETOPT_H
909 GETLOADAVG_LIBS
910 REPLACE_WCTOMB
911 REPLACE_UNSETENV
912 REPLACE_STRTOD
913 REPLACE_SETENV
914 REPLACE_REALPATH
915 REPLACE_REALLOC
916 REPLACE_RANDOM_R
917 REPLACE_PUTENV
918 REPLACE_PTSNAME_R
919 REPLACE_PTSNAME
920 REPLACE_MKSTEMP
921 REPLACE_MBTOWC
922 REPLACE_MALLOC
923 REPLACE_CANONICALIZE_FILE_NAME
924 REPLACE_CALLOC
925 HAVE_DECL_UNSETENV
926 HAVE_UNLOCKPT
927 HAVE_SYS_LOADAVG_H
928 HAVE_STRUCT_RANDOM_DATA
929 HAVE_STRTOULL
930 HAVE_STRTOLL
931 HAVE_STRTOD
932 HAVE_DECL_SETENV
933 HAVE_SETENV
934 HAVE_RPMATCH
935 HAVE_REALPATH
936 HAVE_RANDOM_R
937 HAVE_RANDOM_H
938 HAVE_RANDOM
939 HAVE_PTSNAME_R
940 HAVE_PTSNAME
941 HAVE_POSIX_OPENPT
942 HAVE_MKSTEMPS
943 HAVE_MKSTEMP
944 HAVE_MKOSTEMPS
945 HAVE_MKOSTEMP
946 HAVE_MKDTEMP
947 HAVE_GRANTPT
948 HAVE_GETSUBOPT
949 HAVE_DECL_GETLOADAVG
950 HAVE_CANONICALIZE_FILE_NAME
951 HAVE_ATOLL
952 HAVE__EXIT
953 GNULIB_WCTOMB
954 GNULIB_UNSETENV
955 GNULIB_UNLOCKPT
956 GNULIB_SYSTEM_POSIX
957 GNULIB_STRTOULL
958 GNULIB_STRTOLL
959 GNULIB_STRTOD
960 GNULIB_SETENV
961 GNULIB_RPMATCH
962 GNULIB_REALPATH
963 GNULIB_REALLOC_POSIX
964 GNULIB_RANDOM_R
965 GNULIB_RANDOM
966 GNULIB_PUTENV
967 GNULIB_PTSNAME_R
968 GNULIB_PTSNAME
969 GNULIB_POSIX_OPENPT
970 GNULIB_MKSTEMPS
971 GNULIB_MKSTEMP
972 GNULIB_MKOSTEMPS
973 GNULIB_MKOSTEMP
974 GNULIB_MKDTEMP
975 GNULIB_MBTOWC
976 GNULIB_MALLOC_POSIX
977 GNULIB_GRANTPT
978 GNULIB_GETSUBOPT
979 GNULIB_GETLOADAVG
980 GNULIB_CANONICALIZE_FILE_NAME
981 GNULIB_CALLOC_POSIX
982 GNULIB_ATOLL
983 GNULIB__EXIT
984 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
985 NEXT_FCNTL_H
986 PRAGMA_COLUMNS
987 PRAGMA_SYSTEM_HEADER
988 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
989 INCLUDE_NEXT
990 REPLACE_OPENAT
991 REPLACE_OPEN
992 REPLACE_FCNTL
993 HAVE_OPENAT
994 HAVE_FCNTL
995 GNULIB_OPENAT
996 GNULIB_OPEN
997 GNULIB_NONBLOCKING
998 GNULIB_FCNTL
999 GL_GENERATE_EXECINFO_H_FALSE
1000 GL_GENERATE_EXECINFO_H_TRUE
1001 LIB_EXECINFO
1002 EXECINFO_H
1003 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1004 UNISTD_H_HAVE_WINSOCK2_H
1005 REPLACE_WRITE
1006 REPLACE_USLEEP
1007 REPLACE_UNLINKAT
1008 REPLACE_UNLINK
1009 REPLACE_TTYNAME_R
1010 REPLACE_SYMLINK
1011 REPLACE_SLEEP
1012 REPLACE_RMDIR
1013 REPLACE_READLINK
1014 REPLACE_READ
1015 REPLACE_PWRITE
1016 REPLACE_PREAD
1017 REPLACE_LSEEK
1018 REPLACE_LINKAT
1019 REPLACE_LINK
1020 REPLACE_LCHOWN
1021 REPLACE_ISATTY
1022 REPLACE_GETPAGESIZE
1023 REPLACE_GETGROUPS
1024 REPLACE_GETLOGIN_R
1025 REPLACE_GETDOMAINNAME
1026 REPLACE_GETCWD
1027 REPLACE_FTRUNCATE
1028 REPLACE_FCHOWNAT
1029 REPLACE_DUP2
1030 REPLACE_DUP
1031 REPLACE_CLOSE
1032 REPLACE_CHOWN
1033 HAVE_SYS_PARAM_H
1034 HAVE_OS_H
1035 HAVE_DECL_TTYNAME_R
1036 HAVE_DECL_SETHOSTNAME
1037 HAVE_DECL_GETUSERSHELL
1038 HAVE_DECL_GETPAGESIZE
1039 HAVE_DECL_GETLOGIN_R
1040 HAVE_DECL_GETDOMAINNAME
1041 HAVE_DECL_FDATASYNC
1042 HAVE_DECL_FCHDIR
1043 HAVE_DECL_ENVIRON
1044 HAVE_USLEEP
1045 HAVE_UNLINKAT
1046 HAVE_SYMLINKAT
1047 HAVE_SYMLINK
1048 HAVE_SLEEP
1049 HAVE_SETHOSTNAME
1050 HAVE_READLINKAT
1051 HAVE_READLINK
1052 HAVE_PWRITE
1053 HAVE_PREAD
1054 HAVE_PIPE2
1055 HAVE_PIPE
1056 HAVE_LINKAT
1057 HAVE_LINK
1058 HAVE_LCHOWN
1059 HAVE_GROUP_MEMBER
1060 HAVE_GETPAGESIZE
1061 HAVE_GETLOGIN
1062 HAVE_GETHOSTNAME
1063 HAVE_GETGROUPS
1064 HAVE_GETDTABLESIZE
1065 HAVE_FTRUNCATE
1066 HAVE_FSYNC
1067 HAVE_FDATASYNC
1068 HAVE_FCHOWNAT
1069 HAVE_FCHDIR
1070 HAVE_FACCESSAT
1071 HAVE_EUIDACCESS
1072 HAVE_DUP3
1073 HAVE_DUP2
1074 HAVE_CHOWN
1075 GNULIB_WRITE
1076 GNULIB_USLEEP
1077 GNULIB_UNLINKAT
1078 GNULIB_UNLINK
1079 GNULIB_UNISTD_H_SIGPIPE
1080 GNULIB_UNISTD_H_NONBLOCKING
1081 GNULIB_TTYNAME_R
1082 GNULIB_SYMLINKAT
1083 GNULIB_SYMLINK
1084 GNULIB_SLEEP
1085 GNULIB_SETHOSTNAME
1086 GNULIB_RMDIR
1087 GNULIB_READLINKAT
1088 GNULIB_READLINK
1089 GNULIB_READ
1090 GNULIB_PWRITE
1091 GNULIB_PREAD
1092 GNULIB_PIPE2
1093 GNULIB_PIPE
1094 GNULIB_LSEEK
1095 GNULIB_LINKAT
1096 GNULIB_LINK
1097 GNULIB_LCHOWN
1098 GNULIB_ISATTY
1099 GNULIB_GROUP_MEMBER
1100 GNULIB_GETUSERSHELL
1101 GNULIB_GETPAGESIZE
1102 GNULIB_GETLOGIN_R
1103 GNULIB_GETLOGIN
1104 GNULIB_GETHOSTNAME
1105 GNULIB_GETGROUPS
1106 GNULIB_GETDTABLESIZE
1107 GNULIB_GETDOMAINNAME
1108 GNULIB_GETCWD
1109 GNULIB_FTRUNCATE
1110 GNULIB_FSYNC
1111 GNULIB_FDATASYNC
1112 GNULIB_FCHOWNAT
1113 GNULIB_FCHDIR
1114 GNULIB_FACCESSAT
1115 GNULIB_EUIDACCESS
1116 GNULIB_ENVIRON
1117 GNULIB_DUP3
1118 GNULIB_DUP2
1119 GNULIB_DUP
1120 GNULIB_CLOSE
1121 GNULIB_CHOWN
1122 GNULIB_CHDIR
1123 LIB_CLOCK_GETTIME
1124 GL_GENERATE_ALLOCA_H_FALSE
1125 GL_GENERATE_ALLOCA_H_TRUE
1126 ALLOCA_H
1127 ALLOCA
1128 GL_COND_LIBTOOL_FALSE
1129 GL_COND_LIBTOOL_TRUE
1130 POST_ALLOC_OBJ
1131 PRE_ALLOC_OBJ
1132 CYGWIN_OBJ
1133 RALLOC_OBJ
1134 OLDXMENU_DEPS
1135 LIBX_OTHER
1136 LIBXMENU
1137 OLDXMENU
1138 OLDXMENU_TARGET
1139 LIBXT_OTHER
1140 TOOLKIT_LIBW
1141 WIDGET_OBJ
1142 XOBJ
1143 XMENU_OBJ
1144 FONT_OBJ
1145 OTHER_FILES
1146 GNU_OBJC_CFLAGS
1147 ns_appsrc
1148 ns_appresdir
1149 ns_appbindir
1150 ns_appdir
1151 X_TOOLKIT_TYPE
1152 GNUSTEP_CFLAGS
1153 C_SWITCH_X_SITE
1154 LD_SWITCH_X_SITE
1155 gameuser
1156 gamedir
1157 bitmapdir
1158 archlibdir
1159 etcdir
1160 x_default_search_path
1161 lisppath
1162 locallisppath
1163 standardlisppath
1164 leimdir
1165 lispdir
1166 srcdir
1167 canonical
1168 configuration
1169 version
1170 copyright
1171 KRB4LIB
1172 DESLIB
1173 KRB5LIB
1174 CRYPTOLIB
1175 COM_ERRLIB
1176 LIBRESOLV
1177 LIBHESIOD
1178 TERMCAP_OBJ
1179 LIBS_TERMCAP
1180 BLESSMAIL_TARGET
1181 LIBS_MAIL
1182 liblockfile
1183 LIBXML2_LIBS
1184 LIBXML2_CFLAGS
1185 LIBXSM
1186 LIBGPM
1187 LIBGIF
1188 LIBTIFF
1189 LIBPNG
1190 LIBJPEG
1191 LIBXPM
1192 M17N_FLT_LIBS
1193 M17N_FLT_CFLAGS
1194 LIBOTF_LIBS
1195 LIBOTF_CFLAGS
1196 FREETYPE_LIBS
1197 FREETYPE_CFLAGS
1198 XFT_LIBS
1199 XFT_CFLAGS
1200 FONTCONFIG_LIBS
1201 FONTCONFIG_CFLAGS
1202 LIBXMU
1203 LIBXTR6
1204 LIBACL_LIBS
1205 LIBGNUTLS_LIBS
1206 LIBGNUTLS_CFLAGS
1207 LIBSELINUX_LIBS
1208 SETTINGS_LIBS
1209 SETTINGS_CFLAGS
1210 GOBJECT_LIBS
1211 GOBJECT_CFLAGS
1212 GCONF_LIBS
1213 GCONF_CFLAGS
1214 GSETTINGS_LIBS
1215 GSETTINGS_CFLAGS
1216 DBUS_OBJ
1217 DBUS_LIBS
1218 DBUS_CFLAGS
1219 GTK_OBJ
1220 GTK_LIBS
1221 GTK_CFLAGS
1222 IMAGEMAGICK_LIBS
1223 IMAGEMAGICK_CFLAGS
1224 RSVG_LIBS
1225 RSVG_CFLAGS
1226 LIB_PTHREAD
1227 VMLIMIT_OBJ
1228 GMALLOC_OBJ
1229 HAVE_XSERVER
1230 W32_RES_LINK
1231 W32_RES
1232 W32_LIBS
1233 W32_OBJ
1234 WINDRES
1235 LIB_STANDARD
1236 NS_OBJC_OBJ
1237 NS_OBJ
1238 ns_self_contained
1239 INSTALL_ARCH_INDEP_EXTRA
1240 TEMACS_LDFLAGS2
1241 LD_SWITCH_X_SITE_RPATH
1242 XMKMF
1243 DEPFLAGS
1244 MKDEPDIR
1245 CFLAGS_SOUND
1246 ALSA_LIBS
1247 ALSA_CFLAGS
1248 LIBSOUND
1249 PKG_CONFIG
1250 CRT_DIR
1251 START_FILES
1252 LIB_MATH
1253 LIBS_SYSTEM
1254 C_SWITCH_SYSTEM
1255 UNEXEC_OBJ
1256 C_SWITCH_MACHINE
1257 LD_SWITCH_SYSTEM
1258 CANNOT_DUMP
1259 INFO_OPTS
1260 INFO_EXT
1261 HAVE_MAKEINFO
1262 PAXCTL
1263 GZIP_PROG
1264 INSTALL_INFO
1265 LN_S
1266 GNULIB_WARN_CFLAGS
1267 WARN_CFLAGS
1268 WERROR_CFLAGS
1269 RANLIB
1270 ARFLAGS
1271 AR
1272 EGREP
1273 GREP
1274 CPP
1275 am__fastdepCC_FALSE
1276 am__fastdepCC_TRUE
1277 CCDEPMODE
1278 AMDEPBACKSLASH
1279 AMDEP_FALSE
1280 AMDEP_TRUE
1281 am__quote
1282 am__include
1283 DEPDIR
1284 OBJEXT
1285 EXEEXT
1286 ac_ct_CC
1287 CPPFLAGS
1288 LDFLAGS
1289 CFLAGS
1290 CC
1291 host_os
1292 host_vendor
1293 host_cpu
1294 host
1295 build_os
1296 build_vendor
1297 build_cpu
1298 build
1299 PROFILING_CFLAGS
1300 GZIP_INFO
1301 cache_file
1302 am__untar
1303 am__tar
1304 AMTAR
1305 am__leading_dot
1306 SET_MAKE
1307 AWK
1308 mkdir_p
1309 MKDIR_P
1310 INSTALL_STRIP_PROGRAM
1311 STRIP
1312 install_sh
1313 MAKEINFO
1314 AUTOHEADER
1315 AUTOMAKE
1316 AUTOCONF
1317 ACLOCAL
1318 VERSION
1319 PACKAGE
1320 CYGPATH_W
1321 am__isrc
1322 INSTALL_DATA
1323 INSTALL_SCRIPT
1324 INSTALL_PROGRAM
1325 target_alias
1326 host_alias
1327 build_alias
1328 LIBS
1329 ECHO_T
1330 ECHO_N
1331 ECHO_C
1332 DEFS
1333 mandir
1334 localedir
1335 libdir
1336 psdir
1337 pdfdir
1338 dvidir
1339 htmldir
1340 infodir
1341 docdir
1342 oldincludedir
1343 includedir
1344 localstatedir
1345 sharedstatedir
1346 sysconfdir
1347 datadir
1348 datarootdir
1349 libexecdir
1350 sbindir
1351 bindir
1352 program_transform_name
1353 prefix
1354 exec_prefix
1355 PACKAGE_URL
1356 PACKAGE_BUGREPORT
1357 PACKAGE_STRING
1358 PACKAGE_VERSION
1359 PACKAGE_TARNAME
1360 PACKAGE_NAME
1361 PATH_SEPARATOR
1362 SHELL'
1363 ac_subst_files='deps_frag
1364 lisp_frag'
1365 ac_user_opts='
1366 enable_option_checking
1367 with_all
1368 with_pop
1369 with_kerberos
1370 with_kerberos5
1371 with_hesiod
1372 with_mmdf
1373 with_mail_unlink
1374 with_mailhost
1375 with_sound
1376 with_x_toolkit
1377 with_wide_int
1378 with_xpm
1379 with_jpeg
1380 with_tiff
1381 with_gif
1382 with_png
1383 with_rsvg
1384 with_xml2
1385 with_imagemagick
1386 with_xft
1387 with_libotf
1388 with_m17n_flt
1389 with_toolkit_scroll_bars
1390 with_xaw3d
1391 with_xim
1392 with_ns
1393 with_w32
1394 with_gpm
1395 with_dbus
1396 with_gconf
1397 with_gsettings
1398 with_selinux
1399 with_acl
1400 with_gnutls
1401 with_inotify
1402 with_makeinfo
1403 with_compress_info
1404 with_pkg_config_prog
1405 with_crt_dir
1406 with_gameuser
1407 with_gnustep_conf
1408 enable_ns_self_contained
1409 enable_locallisppath
1410 enable_checking
1411 enable_check_lisp_object_type
1412 enable_profiling
1413 enable_autodepend
1414 enable_dependency_tracking
1415 enable_largefile
1416 enable_gcc_warnings
1417 enable_link_time_optimization
1418 with_x
1419 '
1420 ac_precious_vars='build_alias
1421 host_alias
1422 target_alias
1423 CC
1424 CFLAGS
1425 LDFLAGS
1426 LIBS
1427 CPPFLAGS
1428 CPP
1429 XMKMF'
1430
1431
1432 # Initialize some variables set by options.
1433 ac_init_help=
1434 ac_init_version=false
1435 ac_unrecognized_opts=
1436 ac_unrecognized_sep=
1437 # The variables have the same names as the options, with
1438 # dashes changed to underlines.
1439 cache_file=/dev/null
1440 exec_prefix=NONE
1441 no_create=
1442 no_recursion=
1443 prefix=NONE
1444 program_prefix=NONE
1445 program_suffix=NONE
1446 program_transform_name=s,x,x,
1447 silent=
1448 site=
1449 srcdir=
1450 verbose=
1451 x_includes=NONE
1452 x_libraries=NONE
1453
1454 # Installation directory options.
1455 # These are left unexpanded so users can "make install exec_prefix=/foo"
1456 # and all the variables that are supposed to be based on exec_prefix
1457 # by default will actually change.
1458 # Use braces instead of parens because sh, perl, etc. also accept them.
1459 # (The list follows the same order as the GNU Coding Standards.)
1460 bindir='${exec_prefix}/bin'
1461 sbindir='${exec_prefix}/sbin'
1462 libexecdir='${exec_prefix}/libexec'
1463 datarootdir='${prefix}/share'
1464 datadir='${datarootdir}'
1465 sysconfdir='${prefix}/etc'
1466 sharedstatedir='${prefix}/com'
1467 localstatedir='${prefix}/var'
1468 includedir='${prefix}/include'
1469 oldincludedir='/usr/include'
1470 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1471 infodir='${datarootdir}/info'
1472 htmldir='${docdir}'
1473 dvidir='${docdir}'
1474 pdfdir='${docdir}'
1475 psdir='${docdir}'
1476 libdir='${exec_prefix}/lib'
1477 localedir='${datarootdir}/locale'
1478 mandir='${datarootdir}/man'
1479
1480 ac_prev=
1481 ac_dashdash=
1482 for ac_option
1483 do
1484 # If the previous option needs an argument, assign it.
1485 if test -n "$ac_prev"; then
1486 eval $ac_prev=\$ac_option
1487 ac_prev=
1488 continue
1489 fi
1490
1491 case $ac_option in
1492 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1493 *) ac_optarg=yes ;;
1494 esac
1495
1496 # Accept the important Cygnus configure options, so we can diagnose typos.
1497
1498 case $ac_dashdash$ac_option in
1499 --)
1500 ac_dashdash=yes ;;
1501
1502 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1503 ac_prev=bindir ;;
1504 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1505 bindir=$ac_optarg ;;
1506
1507 -build | --build | --buil | --bui | --bu)
1508 ac_prev=build_alias ;;
1509 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1510 build_alias=$ac_optarg ;;
1511
1512 -cache-file | --cache-file | --cache-fil | --cache-fi \
1513 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1514 ac_prev=cache_file ;;
1515 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1516 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1517 cache_file=$ac_optarg ;;
1518
1519 --config-cache | -C)
1520 cache_file=config.cache ;;
1521
1522 -datadir | --datadir | --datadi | --datad)
1523 ac_prev=datadir ;;
1524 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1525 datadir=$ac_optarg ;;
1526
1527 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1528 | --dataroo | --dataro | --datar)
1529 ac_prev=datarootdir ;;
1530 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1531 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1532 datarootdir=$ac_optarg ;;
1533
1534 -disable-* | --disable-*)
1535 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1536 # Reject names that are not valid shell variable names.
1537 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1538 as_fn_error "invalid feature name: $ac_useropt"
1539 ac_useropt_orig=$ac_useropt
1540 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1541 case $ac_user_opts in
1542 *"
1543 "enable_$ac_useropt"
1544 "*) ;;
1545 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1546 ac_unrecognized_sep=', ';;
1547 esac
1548 eval enable_$ac_useropt=no ;;
1549
1550 -docdir | --docdir | --docdi | --doc | --do)
1551 ac_prev=docdir ;;
1552 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1553 docdir=$ac_optarg ;;
1554
1555 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1556 ac_prev=dvidir ;;
1557 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1558 dvidir=$ac_optarg ;;
1559
1560 -enable-* | --enable-*)
1561 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1562 # Reject names that are not valid shell variable names.
1563 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1564 as_fn_error "invalid feature name: $ac_useropt"
1565 ac_useropt_orig=$ac_useropt
1566 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1567 case $ac_user_opts in
1568 *"
1569 "enable_$ac_useropt"
1570 "*) ;;
1571 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1572 ac_unrecognized_sep=', ';;
1573 esac
1574 eval enable_$ac_useropt=\$ac_optarg ;;
1575
1576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1578 | --exec | --exe | --ex)
1579 ac_prev=exec_prefix ;;
1580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1582 | --exec=* | --exe=* | --ex=*)
1583 exec_prefix=$ac_optarg ;;
1584
1585 -gas | --gas | --ga | --g)
1586 # Obsolete; use --with-gas.
1587 with_gas=yes ;;
1588
1589 -help | --help | --hel | --he | -h)
1590 ac_init_help=long ;;
1591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1592 ac_init_help=recursive ;;
1593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1594 ac_init_help=short ;;
1595
1596 -host | --host | --hos | --ho)
1597 ac_prev=host_alias ;;
1598 -host=* | --host=* | --hos=* | --ho=*)
1599 host_alias=$ac_optarg ;;
1600
1601 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1602 ac_prev=htmldir ;;
1603 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1604 | --ht=*)
1605 htmldir=$ac_optarg ;;
1606
1607 -includedir | --includedir | --includedi | --included | --include \
1608 | --includ | --inclu | --incl | --inc)
1609 ac_prev=includedir ;;
1610 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1611 | --includ=* | --inclu=* | --incl=* | --inc=*)
1612 includedir=$ac_optarg ;;
1613
1614 -infodir | --infodir | --infodi | --infod | --info | --inf)
1615 ac_prev=infodir ;;
1616 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1617 infodir=$ac_optarg ;;
1618
1619 -libdir | --libdir | --libdi | --libd)
1620 ac_prev=libdir ;;
1621 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1622 libdir=$ac_optarg ;;
1623
1624 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1625 | --libexe | --libex | --libe)
1626 ac_prev=libexecdir ;;
1627 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1628 | --libexe=* | --libex=* | --libe=*)
1629 libexecdir=$ac_optarg ;;
1630
1631 -localedir | --localedir | --localedi | --localed | --locale)
1632 ac_prev=localedir ;;
1633 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1634 localedir=$ac_optarg ;;
1635
1636 -localstatedir | --localstatedir | --localstatedi | --localstated \
1637 | --localstate | --localstat | --localsta | --localst | --locals)
1638 ac_prev=localstatedir ;;
1639 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1640 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1641 localstatedir=$ac_optarg ;;
1642
1643 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1644 ac_prev=mandir ;;
1645 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1646 mandir=$ac_optarg ;;
1647
1648 -nfp | --nfp | --nf)
1649 # Obsolete; use --without-fp.
1650 with_fp=no ;;
1651
1652 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1653 | --no-cr | --no-c | -n)
1654 no_create=yes ;;
1655
1656 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1657 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1658 no_recursion=yes ;;
1659
1660 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1661 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1662 | --oldin | --oldi | --old | --ol | --o)
1663 ac_prev=oldincludedir ;;
1664 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1665 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1666 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1667 oldincludedir=$ac_optarg ;;
1668
1669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1670 ac_prev=prefix ;;
1671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1672 prefix=$ac_optarg ;;
1673
1674 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1675 | --program-pre | --program-pr | --program-p)
1676 ac_prev=program_prefix ;;
1677 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1678 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1679 program_prefix=$ac_optarg ;;
1680
1681 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1682 | --program-suf | --program-su | --program-s)
1683 ac_prev=program_suffix ;;
1684 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1685 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1686 program_suffix=$ac_optarg ;;
1687
1688 -program-transform-name | --program-transform-name \
1689 | --program-transform-nam | --program-transform-na \
1690 | --program-transform-n | --program-transform- \
1691 | --program-transform | --program-transfor \
1692 | --program-transfo | --program-transf \
1693 | --program-trans | --program-tran \
1694 | --progr-tra | --program-tr | --program-t)
1695 ac_prev=program_transform_name ;;
1696 -program-transform-name=* | --program-transform-name=* \
1697 | --program-transform-nam=* | --program-transform-na=* \
1698 | --program-transform-n=* | --program-transform-=* \
1699 | --program-transform=* | --program-transfor=* \
1700 | --program-transfo=* | --program-transf=* \
1701 | --program-trans=* | --program-tran=* \
1702 | --progr-tra=* | --program-tr=* | --program-t=*)
1703 program_transform_name=$ac_optarg ;;
1704
1705 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1706 ac_prev=pdfdir ;;
1707 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1708 pdfdir=$ac_optarg ;;
1709
1710 -psdir | --psdir | --psdi | --psd | --ps)
1711 ac_prev=psdir ;;
1712 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1713 psdir=$ac_optarg ;;
1714
1715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716 | -silent | --silent | --silen | --sile | --sil)
1717 silent=yes ;;
1718
1719 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1720 ac_prev=sbindir ;;
1721 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1722 | --sbi=* | --sb=*)
1723 sbindir=$ac_optarg ;;
1724
1725 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1726 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1727 | --sharedst | --shareds | --shared | --share | --shar \
1728 | --sha | --sh)
1729 ac_prev=sharedstatedir ;;
1730 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1731 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1732 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1733 | --sha=* | --sh=*)
1734 sharedstatedir=$ac_optarg ;;
1735
1736 -site | --site | --sit)
1737 ac_prev=site ;;
1738 -site=* | --site=* | --sit=*)
1739 site=$ac_optarg ;;
1740
1741 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1742 ac_prev=srcdir ;;
1743 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1744 srcdir=$ac_optarg ;;
1745
1746 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1747 | --syscon | --sysco | --sysc | --sys | --sy)
1748 ac_prev=sysconfdir ;;
1749 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1750 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1751 sysconfdir=$ac_optarg ;;
1752
1753 -target | --target | --targe | --targ | --tar | --ta | --t)
1754 ac_prev=target_alias ;;
1755 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1756 target_alias=$ac_optarg ;;
1757
1758 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1759 verbose=yes ;;
1760
1761 -version | --version | --versio | --versi | --vers | -V)
1762 ac_init_version=: ;;
1763
1764 -with-* | --with-*)
1765 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1766 # Reject names that are not valid shell variable names.
1767 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1768 as_fn_error "invalid package name: $ac_useropt"
1769 ac_useropt_orig=$ac_useropt
1770 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1771 case $ac_user_opts in
1772 *"
1773 "with_$ac_useropt"
1774 "*) ;;
1775 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1776 ac_unrecognized_sep=', ';;
1777 esac
1778 eval with_$ac_useropt=\$ac_optarg ;;
1779
1780 -without-* | --without-*)
1781 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1782 # Reject names that are not valid shell variable names.
1783 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1784 as_fn_error "invalid package name: $ac_useropt"
1785 ac_useropt_orig=$ac_useropt
1786 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1787 case $ac_user_opts in
1788 *"
1789 "with_$ac_useropt"
1790 "*) ;;
1791 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1792 ac_unrecognized_sep=', ';;
1793 esac
1794 eval with_$ac_useropt=no ;;
1795
1796 --x)
1797 # Obsolete; use --with-x.
1798 with_x=yes ;;
1799
1800 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1801 | --x-incl | --x-inc | --x-in | --x-i)
1802 ac_prev=x_includes ;;
1803 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1804 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1805 x_includes=$ac_optarg ;;
1806
1807 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1808 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1809 ac_prev=x_libraries ;;
1810 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1811 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1812 x_libraries=$ac_optarg ;;
1813
1814 -*) as_fn_error "unrecognized option: \`$ac_option'
1815 Try \`$0 --help' for more information."
1816 ;;
1817
1818 *=*)
1819 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1820 # Reject names that are not valid shell variable names.
1821 case $ac_envvar in #(
1822 '' | [0-9]* | *[!_$as_cr_alnum]* )
1823 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1824 esac
1825 eval $ac_envvar=\$ac_optarg
1826 export $ac_envvar ;;
1827
1828 *)
1829 # FIXME: should be removed in autoconf 3.0.
1830 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1831 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1832 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1833 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1834 ;;
1835
1836 esac
1837 done
1838
1839 if test -n "$ac_prev"; then
1840 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1841 as_fn_error "missing argument to $ac_option"
1842 fi
1843
1844 if test -n "$ac_unrecognized_opts"; then
1845 case $enable_option_checking in
1846 no) ;;
1847 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1848 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1849 esac
1850 fi
1851
1852 # Check all directory arguments for consistency.
1853 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1854 datadir sysconfdir sharedstatedir localstatedir includedir \
1855 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1856 libdir localedir mandir
1857 do
1858 eval ac_val=\$$ac_var
1859 # Remove trailing slashes.
1860 case $ac_val in
1861 */ )
1862 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1863 eval $ac_var=\$ac_val;;
1864 esac
1865 # Be sure to have absolute directory names.
1866 case $ac_val in
1867 [\\/$]* | ?:[\\/]* ) continue;;
1868 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1869 esac
1870 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1871 done
1872
1873 # There might be people who depend on the old broken behavior: `$host'
1874 # used to hold the argument of --host etc.
1875 # FIXME: To remove some day.
1876 build=$build_alias
1877 host=$host_alias
1878 target=$target_alias
1879
1880 # FIXME: To remove some day.
1881 if test "x$host_alias" != x; then
1882 if test "x$build_alias" = x; then
1883 cross_compiling=maybe
1884 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1885 If a cross compiler is detected then cross compile mode will be used." >&2
1886 elif test "x$build_alias" != "x$host_alias"; then
1887 cross_compiling=yes
1888 fi
1889 fi
1890
1891 ac_tool_prefix=
1892 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1893
1894 test "$silent" = yes && exec 6>/dev/null
1895
1896
1897 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1898 ac_ls_di=`ls -di .` &&
1899 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1900 as_fn_error "working directory cannot be determined"
1901 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1902 as_fn_error "pwd does not report name of working directory"
1903
1904
1905 # Find the source files, if location was not specified.
1906 if test -z "$srcdir"; then
1907 ac_srcdir_defaulted=yes
1908 # Try the directory containing this script, then the parent directory.
1909 ac_confdir=`$as_dirname -- "$as_myself" ||
1910 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1911 X"$as_myself" : 'X\(//\)[^/]' \| \
1912 X"$as_myself" : 'X\(//\)$' \| \
1913 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1914 $as_echo X"$as_myself" |
1915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1916 s//\1/
1917 q
1918 }
1919 /^X\(\/\/\)[^/].*/{
1920 s//\1/
1921 q
1922 }
1923 /^X\(\/\/\)$/{
1924 s//\1/
1925 q
1926 }
1927 /^X\(\/\).*/{
1928 s//\1/
1929 q
1930 }
1931 s/.*/./; q'`
1932 srcdir=$ac_confdir
1933 if test ! -r "$srcdir/$ac_unique_file"; then
1934 srcdir=..
1935 fi
1936 else
1937 ac_srcdir_defaulted=no
1938 fi
1939 if test ! -r "$srcdir/$ac_unique_file"; then
1940 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1941 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1942 fi
1943 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1944 ac_abs_confdir=`(
1945 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1946 pwd)`
1947 # When building in place, set srcdir=.
1948 if test "$ac_abs_confdir" = "$ac_pwd"; then
1949 srcdir=.
1950 fi
1951 # Remove unnecessary trailing slashes from srcdir.
1952 # Double slashes in file names in object file debugging info
1953 # mess up M-x gdb in Emacs.
1954 case $srcdir in
1955 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1956 esac
1957 for ac_var in $ac_precious_vars; do
1958 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1959 eval ac_env_${ac_var}_value=\$${ac_var}
1960 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1961 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1962 done
1963
1964 #
1965 # Report the --help message.
1966 #
1967 if test "$ac_init_help" = "long"; then
1968 # Omit some internal or obsolete options to make the list less imposing.
1969 # This message is too long to be a string in the A/UX 3.1 sh.
1970 cat <<_ACEOF
1971 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
1972
1973 Usage: $0 [OPTION]... [VAR=VALUE]...
1974
1975 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1976 VAR=VALUE. See below for descriptions of some of the useful variables.
1977
1978 Defaults for the options are specified in brackets.
1979
1980 Configuration:
1981 -h, --help display this help and exit
1982 --help=short display options specific to this package
1983 --help=recursive display the short help of all the included packages
1984 -V, --version display version information and exit
1985 -q, --quiet, --silent do not print \`checking...' messages
1986 --cache-file=FILE cache test results in FILE [disabled]
1987 -C, --config-cache alias for \`--cache-file=config.cache'
1988 -n, --no-create do not create output files
1989 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1990
1991 Installation directories:
1992 --prefix=PREFIX install architecture-independent files in PREFIX
1993 [$ac_default_prefix]
1994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1995 [PREFIX]
1996
1997 By default, \`make install' will install all the files in
1998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2000 for instance \`--prefix=\$HOME'.
2001
2002 For better control, use the options below.
2003
2004 Fine tuning of the installation directories:
2005 --bindir=DIR user executables [EPREFIX/bin]
2006 --sbindir=DIR system admin executables [EPREFIX/sbin]
2007 --libexecdir=DIR program executables [EPREFIX/libexec]
2008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2011 --libdir=DIR object code libraries [EPREFIX/lib]
2012 --includedir=DIR C header files [PREFIX/include]
2013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2014 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2015 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2016 --infodir=DIR info documentation [DATAROOTDIR/info]
2017 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2018 --mandir=DIR man documentation [DATAROOTDIR/man]
2019 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2020 --htmldir=DIR html documentation [DOCDIR]
2021 --dvidir=DIR dvi documentation [DOCDIR]
2022 --pdfdir=DIR pdf documentation [DOCDIR]
2023 --psdir=DIR ps documentation [DOCDIR]
2024 _ACEOF
2025
2026 cat <<\_ACEOF
2027
2028 Program names:
2029 --program-prefix=PREFIX prepend PREFIX to installed program names
2030 --program-suffix=SUFFIX append SUFFIX to installed program names
2031 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2032
2033 X features:
2034 --x-includes=DIR X include files are in DIR
2035 --x-libraries=DIR X library files are in DIR
2036
2037 System types:
2038 --build=BUILD configure for building on BUILD [guessed]
2039 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2040 _ACEOF
2041 fi
2042
2043 if test -n "$ac_init_help"; then
2044 case $ac_init_help in
2045 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2046 esac
2047 cat <<\_ACEOF
2048
2049 Optional Features:
2050 --disable-option-checking ignore unrecognized --enable/--with options
2051 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2052 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2053 --disable-ns-self-contained
2054 disable self contained build under NeXTstep
2055 --enable-locallisppath=PATH
2056 directories Emacs should search for lisp files
2057 specific to this site
2058 --enable-checking[=LIST]
2059 enable expensive run-time checks. With LIST, enable
2060 only specific categories of checks. Categories are:
2061 all,yes,no. Flags are: stringbytes, stringoverrun,
2062 stringfreelist, xmallocoverrun, conslist, glyphs
2063 --enable-check-lisp-object-type
2064 enable compile time checks for the Lisp_Object data
2065 type. This is useful for development for catching
2066 certain types of bugs.
2067 --enable-profiling build emacs with low-level, gprof profiling support.
2068 Mainly useful for debugging Emacs itself. May not
2069 work on all platforms. Stops profiler.el working.
2070 --enable-autodepend automatically generate dependencies to .h-files.
2071 Requires GNU Make and Gcc. Enabled if GNU Make and
2072 Gcc is found
2073 --disable-dependency-tracking speeds up one-time build
2074 --enable-dependency-tracking do not reject slow dependency extractors
2075 --disable-largefile omit support for large files
2076 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2077 developers, and may generate false alarms when used
2078 with older or non-GNU development tools.
2079 --enable-link-time-optimization
2080 build emacs with link-time optimization. This is
2081 supported only for GCC since 4.5.0.
2082
2083 Optional Packages:
2084 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2085 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2086 --without-all omit almost all features and build small executable
2087 with minimal dependencies
2088 --without-pop don't support POP mail retrieval with movemail
2089 --with-kerberos support Kerberos-authenticated POP
2090 --with-kerberos5 support Kerberos version 5 authenticated POP
2091 --with-hesiod support Hesiod to get the POP server host
2092 --with-mmdf support MMDF mailboxes
2093 --with-mail-unlink unlink, rather than empty, mail spool after reading
2094 --with-mailhost=HOSTNAME
2095 string giving default POP mail host
2096 --without-sound don't compile with sound support
2097 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2098 gtk3, lucid or athena, motif, no)
2099 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2100 --without-xpm don't compile with XPM image support
2101 --without-jpeg don't compile with JPEG image support
2102 --without-tiff don't compile with TIFF image support
2103 --without-gif don't compile with GIF image support
2104 --without-png don't compile with PNG image support
2105 --without-rsvg don't compile with SVG image support
2106 --without-xml2 don't compile with XML parsing support
2107 --without-imagemagick don't compile with ImageMagick image support
2108 --without-xft don't use XFT for anti aliased fonts
2109 --without-libotf don't use libotf for OpenType font support
2110 --without-m17n-flt don't use m17n-flt for text shaping
2111 --without-toolkit-scroll-bars
2112 don't use Motif or Xaw3d scroll bars
2113 --without-xaw3d don't use Xaw3d
2114 --without-xim don't use X11 XIM
2115 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2116 --with-w32 use native MS Windows GUI
2117 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2118 console
2119 --without-dbus don't compile with D-Bus support
2120 --without-gconf don't compile with GConf support
2121 --without-gsettings don't compile with GSettings support
2122 --without-selinux don't compile with SELinux support
2123 --without-acl don't compile with ACL support
2124 --without-gnutls don't use -lgnutls for SSL/TLS support
2125 --without-inotify don't compile with inotify (file-watch) support
2126 --without-makeinfo don't require makeinfo for building manuals
2127 --without-compress-info don't compress the installed Info pages
2128 --with-pkg-config-prog=FILENAME
2129 file name of pkg-config for finding GTK and librsvg
2130 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2131 /usr/lib, or /usr/lib64 on some platforms.
2132 --with-gameuser=USER user for shared game score files
2133 --with-gnustep-conf=FILENAME
2134 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2135 or /etc/GNUstep/GNUstep.conf
2136 --with-x use the X Window System
2137
2138 Some influential environment variables:
2139 CC C compiler command
2140 CFLAGS C compiler flags
2141 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2142 nonstandard directory <lib dir>
2143 LIBS libraries to pass to the linker, e.g. -l<library>
2144 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2145 you have headers in a nonstandard directory <include dir>
2146 CPP C preprocessor
2147 XMKMF Path to xmkmf, Makefile generator for X Window System
2148
2149 Use these variables to override the choices made by `configure' or to help
2150 it to find libraries and programs with nonstandard names/locations.
2151
2152 Report bugs to the package provider.
2153 _ACEOF
2154 ac_status=$?
2155 fi
2156
2157 if test "$ac_init_help" = "recursive"; then
2158 # If there are subdirs, report their specific --help.
2159 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2160 test -d "$ac_dir" ||
2161 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2162 continue
2163 ac_builddir=.
2164
2165 case "$ac_dir" in
2166 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2167 *)
2168 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2169 # A ".." for each directory in $ac_dir_suffix.
2170 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2171 case $ac_top_builddir_sub in
2172 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2173 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2174 esac ;;
2175 esac
2176 ac_abs_top_builddir=$ac_pwd
2177 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2178 # for backward compatibility:
2179 ac_top_builddir=$ac_top_build_prefix
2180
2181 case $srcdir in
2182 .) # We are building in place.
2183 ac_srcdir=.
2184 ac_top_srcdir=$ac_top_builddir_sub
2185 ac_abs_top_srcdir=$ac_pwd ;;
2186 [\\/]* | ?:[\\/]* ) # Absolute name.
2187 ac_srcdir=$srcdir$ac_dir_suffix;
2188 ac_top_srcdir=$srcdir
2189 ac_abs_top_srcdir=$srcdir ;;
2190 *) # Relative name.
2191 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2192 ac_top_srcdir=$ac_top_build_prefix$srcdir
2193 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2194 esac
2195 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2196
2197 cd "$ac_dir" || { ac_status=$?; continue; }
2198 # Check for guested configure.
2199 if test -f "$ac_srcdir/configure.gnu"; then
2200 echo &&
2201 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2202 elif test -f "$ac_srcdir/configure"; then
2203 echo &&
2204 $SHELL "$ac_srcdir/configure" --help=recursive
2205 else
2206 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2207 fi || ac_status=$?
2208 cd "$ac_pwd" || { ac_status=$?; break; }
2209 done
2210 fi
2211
2212 test -n "$ac_init_help" && exit $ac_status
2213 if $ac_init_version; then
2214 cat <<\_ACEOF
2215 emacs configure 24.3.50
2216 generated by GNU Autoconf 2.65
2217
2218 Copyright (C) 2009 Free Software Foundation, Inc.
2219 This configure script is free software; the Free Software Foundation
2220 gives unlimited permission to copy, distribute and modify it.
2221 _ACEOF
2222 exit
2223 fi
2224
2225 ## ------------------------ ##
2226 ## Autoconf initialization. ##
2227 ## ------------------------ ##
2228
2229 # ac_fn_c_try_compile LINENO
2230 # --------------------------
2231 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2232 ac_fn_c_try_compile ()
2233 {
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 rm -f conftest.$ac_objext
2236 if { { ac_try="$ac_compile"
2237 case "(($ac_try" in
2238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239 *) ac_try_echo=$ac_try;;
2240 esac
2241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2242 $as_echo "$ac_try_echo"; } >&5
2243 (eval "$ac_compile") 2>conftest.err
2244 ac_status=$?
2245 if test -s conftest.err; then
2246 grep -v '^ *+' conftest.err >conftest.er1
2247 cat conftest.er1 >&5
2248 mv -f conftest.er1 conftest.err
2249 fi
2250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2251 test $ac_status = 0; } && {
2252 test -z "$ac_c_werror_flag" ||
2253 test ! -s conftest.err
2254 } && test -s conftest.$ac_objext; then :
2255 ac_retval=0
2256 else
2257 $as_echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2259
2260 ac_retval=1
2261 fi
2262 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263 as_fn_set_status $ac_retval
2264
2265 } # ac_fn_c_try_compile
2266
2267 # ac_fn_c_try_cpp LINENO
2268 # ----------------------
2269 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2270 ac_fn_c_try_cpp ()
2271 {
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 if { { ac_try="$ac_cpp conftest.$ac_ext"
2274 case "(($ac_try" in
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2277 esac
2278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2279 $as_echo "$ac_try_echo"; } >&5
2280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2281 ac_status=$?
2282 if test -s conftest.err; then
2283 grep -v '^ *+' conftest.err >conftest.er1
2284 cat conftest.er1 >&5
2285 mv -f conftest.er1 conftest.err
2286 fi
2287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2288 test $ac_status = 0; } >/dev/null && {
2289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2290 test ! -s conftest.err
2291 }; then :
2292 ac_retval=0
2293 else
2294 $as_echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 ac_retval=1
2298 fi
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300 as_fn_set_status $ac_retval
2301
2302 } # ac_fn_c_try_cpp
2303
2304 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2305 # -------------------------------------------------------
2306 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2307 # the include files in INCLUDES and setting the cache variable VAR
2308 # accordingly.
2309 ac_fn_c_check_header_mongrel ()
2310 {
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2314 $as_echo_n "checking for $2... " >&6; }
2315 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2316 $as_echo_n "(cached) " >&6
2317 fi
2318 eval ac_res=\$$3
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 else
2322 # Is the header compilable?
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2324 $as_echo_n "checking $2 usability... " >&6; }
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2327 $4
2328 #include <$2>
2329 _ACEOF
2330 if ac_fn_c_try_compile "$LINENO"; then :
2331 ac_header_compiler=yes
2332 else
2333 ac_header_compiler=no
2334 fi
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2337 $as_echo "$ac_header_compiler" >&6; }
2338
2339 # Is the header present?
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2341 $as_echo_n "checking $2 presence... " >&6; }
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2344 #include <$2>
2345 _ACEOF
2346 if ac_fn_c_try_cpp "$LINENO"; then :
2347 ac_header_preproc=yes
2348 else
2349 ac_header_preproc=no
2350 fi
2351 rm -f conftest.err conftest.$ac_ext
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2353 $as_echo "$ac_header_preproc" >&6; }
2354
2355 # So? What about this header?
2356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2357 yes:no: )
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2359 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2361 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2362 ;;
2363 no:yes:* )
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2365 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2367 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2369 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2371 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2373 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2374 ;;
2375 esac
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377 $as_echo_n "checking for $2... " >&6; }
2378 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 eval "$3=\$ac_header_compiler"
2382 fi
2383 eval ac_res=\$$3
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386 fi
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388
2389 } # ac_fn_c_check_header_mongrel
2390
2391 # ac_fn_c_try_run LINENO
2392 # ----------------------
2393 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2394 # that executables *can* be run.
2395 ac_fn_c_try_run ()
2396 {
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 if { { ac_try="$ac_link"
2399 case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402 esac
2403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_link") 2>&5
2406 ac_status=$?
2407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2408 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2409 { { case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412 esac
2413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414 $as_echo "$ac_try_echo"; } >&5
2415 (eval "$ac_try") 2>&5
2416 ac_status=$?
2417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2418 test $ac_status = 0; }; }; then :
2419 ac_retval=0
2420 else
2421 $as_echo "$as_me: program exited with status $ac_status" >&5
2422 $as_echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_retval=$ac_status
2426 fi
2427 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2429 as_fn_set_status $ac_retval
2430
2431 } # ac_fn_c_try_run
2432
2433 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2434 # -------------------------------------------------------
2435 # Tests whether HEADER exists and can be compiled using the include files in
2436 # INCLUDES, setting the cache variable VAR accordingly.
2437 ac_fn_c_check_header_compile ()
2438 {
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2441 $as_echo_n "checking for $2... " >&6; }
2442 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2447 $4
2448 #include <$2>
2449 _ACEOF
2450 if ac_fn_c_try_compile "$LINENO"; then :
2451 eval "$3=yes"
2452 else
2453 eval "$3=no"
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 fi
2457 eval ac_res=\$$3
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461
2462 } # ac_fn_c_check_header_compile
2463
2464 # ac_fn_c_try_link LINENO
2465 # -----------------------
2466 # Try to link conftest.$ac_ext, and return whether this succeeded.
2467 ac_fn_c_try_link ()
2468 {
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 rm -f conftest.$ac_objext conftest$ac_exeext
2471 if { { ac_try="$ac_link"
2472 case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475 esac
2476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2477 $as_echo "$ac_try_echo"; } >&5
2478 (eval "$ac_link") 2>conftest.err
2479 ac_status=$?
2480 if test -s conftest.err; then
2481 grep -v '^ *+' conftest.err >conftest.er1
2482 cat conftest.er1 >&5
2483 mv -f conftest.er1 conftest.err
2484 fi
2485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2486 test $ac_status = 0; } && {
2487 test -z "$ac_c_werror_flag" ||
2488 test ! -s conftest.err
2489 } && test -s conftest$ac_exeext && {
2490 test "$cross_compiling" = yes ||
2491 $as_test_x conftest$ac_exeext
2492 }; then :
2493 ac_retval=0
2494 else
2495 $as_echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2497
2498 ac_retval=1
2499 fi
2500 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2501 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2502 # interfere with the next link command; also delete a directory that is
2503 # left behind by Apple's compiler. We do this before executing the actions.
2504 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2505 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2506 as_fn_set_status $ac_retval
2507
2508 } # ac_fn_c_try_link
2509
2510 # ac_fn_c_check_decl LINENO SYMBOL VAR
2511 # ------------------------------------
2512 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2513 ac_fn_c_check_decl ()
2514 {
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2517 $as_echo_n "checking whether $2 is declared... " >&6; }
2518 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2523 $4
2524 int
2525 main ()
2526 {
2527 #ifndef $2
2528 (void) $2;
2529 #endif
2530
2531 ;
2532 return 0;
2533 }
2534 _ACEOF
2535 if ac_fn_c_try_compile "$LINENO"; then :
2536 eval "$3=yes"
2537 else
2538 eval "$3=no"
2539 fi
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 fi
2542 eval ac_res=\$$3
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2546
2547 } # ac_fn_c_check_decl
2548
2549 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2550 # ----------------------------------------------
2551 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2552 ac_fn_c_check_header_preproc ()
2553 {
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2556 $as_echo_n "checking for $2... " >&6; }
2557 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h. */
2562 #include <$2>
2563 _ACEOF
2564 if ac_fn_c_try_cpp "$LINENO"; then :
2565 eval "$3=yes"
2566 else
2567 eval "$3=no"
2568 fi
2569 rm -f conftest.err conftest.$ac_ext
2570 fi
2571 eval ac_res=\$$3
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2573 $as_echo "$ac_res" >&6; }
2574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2575
2576 } # ac_fn_c_check_header_preproc
2577
2578 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2579 # ----------------------------------------------------
2580 # Tries to find if the field MEMBER exists in type AGGR, after including
2581 # INCLUDES, setting cache variable VAR accordingly.
2582 ac_fn_c_check_member ()
2583 {
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2586 $as_echo_n "checking for $2.$3... " >&6; }
2587 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2592 $5
2593 int
2594 main ()
2595 {
2596 static $2 ac_aggr;
2597 if (ac_aggr.$3)
2598 return 0;
2599 ;
2600 return 0;
2601 }
2602 _ACEOF
2603 if ac_fn_c_try_compile "$LINENO"; then :
2604 eval "$4=yes"
2605 else
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2608 $5
2609 int
2610 main ()
2611 {
2612 static $2 ac_aggr;
2613 if (sizeof ac_aggr.$3)
2614 return 0;
2615 ;
2616 return 0;
2617 }
2618 _ACEOF
2619 if ac_fn_c_try_compile "$LINENO"; then :
2620 eval "$4=yes"
2621 else
2622 eval "$4=no"
2623 fi
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 fi
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 fi
2628 eval ac_res=\$$4
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2632
2633 } # ac_fn_c_check_member
2634
2635 # ac_fn_c_check_func LINENO FUNC VAR
2636 # ----------------------------------
2637 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2638 ac_fn_c_check_func ()
2639 {
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2642 $as_echo_n "checking for $2... " >&6; }
2643 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h. */
2648 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2650 #define $2 innocuous_$2
2651
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char $2 (); below.
2654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2655 <limits.h> exists even on freestanding compilers. */
2656
2657 #ifdef __STDC__
2658 # include <limits.h>
2659 #else
2660 # include <assert.h>
2661 #endif
2662
2663 #undef $2
2664
2665 /* Override any GCC internal prototype to avoid an error.
2666 Use char because int might match the return type of a GCC
2667 builtin and then its argument prototype would still apply. */
2668 #ifdef __cplusplus
2669 extern "C"
2670 #endif
2671 char $2 ();
2672 /* The GNU C library defines this for functions which it implements
2673 to always fail with ENOSYS. Some functions are actually named
2674 something starting with __ and the normal name is an alias. */
2675 #if defined __stub_$2 || defined __stub___$2
2676 choke me
2677 #endif
2678
2679 int
2680 main ()
2681 {
2682 return $2 ();
2683 ;
2684 return 0;
2685 }
2686 _ACEOF
2687 if ac_fn_c_try_link "$LINENO"; then :
2688 eval "$3=yes"
2689 else
2690 eval "$3=no"
2691 fi
2692 rm -f core conftest.err conftest.$ac_objext \
2693 conftest$ac_exeext conftest.$ac_ext
2694 fi
2695 eval ac_res=\$$3
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 $as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2699
2700 } # ac_fn_c_check_func
2701
2702 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2703 # -------------------------------------------
2704 # Tests whether TYPE exists after having included INCLUDES, setting cache
2705 # variable VAR accordingly.
2706 ac_fn_c_check_type ()
2707 {
2708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2710 $as_echo_n "checking for $2... " >&6; }
2711 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 eval "$3=no"
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h. */
2717 $4
2718 int
2719 main ()
2720 {
2721 if (sizeof ($2))
2722 return 0;
2723 ;
2724 return 0;
2725 }
2726 _ACEOF
2727 if ac_fn_c_try_compile "$LINENO"; then :
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h. */
2730 $4
2731 int
2732 main ()
2733 {
2734 if (sizeof (($2)))
2735 return 0;
2736 ;
2737 return 0;
2738 }
2739 _ACEOF
2740 if ac_fn_c_try_compile "$LINENO"; then :
2741
2742 else
2743 eval "$3=yes"
2744 fi
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 fi
2747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 fi
2749 eval ac_res=\$$3
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751 $as_echo "$ac_res" >&6; }
2752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2753
2754 } # ac_fn_c_check_type
2755
2756 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2757 # --------------------------------------------
2758 # Tries to find the compile-time value of EXPR in a program that includes
2759 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2760 # computed
2761 ac_fn_c_compute_int ()
2762 {
2763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2764 if test "$cross_compiling" = yes; then
2765 # Depending upon the size, compute the lo and hi bounds.
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2768 $4
2769 int
2770 main ()
2771 {
2772 static int test_array [1 - 2 * !(($2) >= 0)];
2773 test_array [0] = 0
2774
2775 ;
2776 return 0;
2777 }
2778 _ACEOF
2779 if ac_fn_c_try_compile "$LINENO"; then :
2780 ac_lo=0 ac_mid=0
2781 while :; do
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2784 $4
2785 int
2786 main ()
2787 {
2788 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2789 test_array [0] = 0
2790
2791 ;
2792 return 0;
2793 }
2794 _ACEOF
2795 if ac_fn_c_try_compile "$LINENO"; then :
2796 ac_hi=$ac_mid; break
2797 else
2798 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2799 if test $ac_lo -le $ac_mid; then
2800 ac_lo= ac_hi=
2801 break
2802 fi
2803 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2804 fi
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 done
2807 else
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2810 $4
2811 int
2812 main ()
2813 {
2814 static int test_array [1 - 2 * !(($2) < 0)];
2815 test_array [0] = 0
2816
2817 ;
2818 return 0;
2819 }
2820 _ACEOF
2821 if ac_fn_c_try_compile "$LINENO"; then :
2822 ac_hi=-1 ac_mid=-1
2823 while :; do
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2826 $4
2827 int
2828 main ()
2829 {
2830 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2831 test_array [0] = 0
2832
2833 ;
2834 return 0;
2835 }
2836 _ACEOF
2837 if ac_fn_c_try_compile "$LINENO"; then :
2838 ac_lo=$ac_mid; break
2839 else
2840 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2841 if test $ac_mid -le $ac_hi; then
2842 ac_lo= ac_hi=
2843 break
2844 fi
2845 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2846 fi
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 done
2849 else
2850 ac_lo= ac_hi=
2851 fi
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 fi
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855 # Binary search between lo and hi bounds.
2856 while test "x$ac_lo" != "x$ac_hi"; do
2857 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2860 $4
2861 int
2862 main ()
2863 {
2864 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2865 test_array [0] = 0
2866
2867 ;
2868 return 0;
2869 }
2870 _ACEOF
2871 if ac_fn_c_try_compile "$LINENO"; then :
2872 ac_hi=$ac_mid
2873 else
2874 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2875 fi
2876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877 done
2878 case $ac_lo in #((
2879 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2880 '') ac_retval=1 ;;
2881 esac
2882 else
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2885 $4
2886 static long int longval () { return $2; }
2887 static unsigned long int ulongval () { return $2; }
2888 #include <stdio.h>
2889 #include <stdlib.h>
2890 int
2891 main ()
2892 {
2893
2894 FILE *f = fopen ("conftest.val", "w");
2895 if (! f)
2896 return 1;
2897 if (($2) < 0)
2898 {
2899 long int i = longval ();
2900 if (i != ($2))
2901 return 1;
2902 fprintf (f, "%ld", i);
2903 }
2904 else
2905 {
2906 unsigned long int i = ulongval ();
2907 if (i != ($2))
2908 return 1;
2909 fprintf (f, "%lu", i);
2910 }
2911 /* Do not output a trailing newline, as this causes \r\n confusion
2912 on some platforms. */
2913 return ferror (f) || fclose (f) != 0;
2914
2915 ;
2916 return 0;
2917 }
2918 _ACEOF
2919 if ac_fn_c_try_run "$LINENO"; then :
2920 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2921 else
2922 ac_retval=1
2923 fi
2924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2925 conftest.$ac_objext conftest.beam conftest.$ac_ext
2926 rm -f conftest.val
2927
2928 fi
2929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2930 as_fn_set_status $ac_retval
2931
2932 } # ac_fn_c_compute_int
2933 cat >config.log <<_ACEOF
2934 This file contains any messages produced by compilers while
2935 running configure, to aid debugging if configure makes a mistake.
2936
2937 It was created by emacs $as_me 24.3.50, which was
2938 generated by GNU Autoconf 2.65. Invocation command line was
2939
2940 $ $0 $@
2941
2942 _ACEOF
2943 exec 5>>config.log
2944 {
2945 cat <<_ASUNAME
2946 ## --------- ##
2947 ## Platform. ##
2948 ## --------- ##
2949
2950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2955
2956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2958
2959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2962 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2966
2967 _ASUNAME
2968
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 $as_echo "PATH: $as_dir"
2975 done
2976 IFS=$as_save_IFS
2977
2978 } >&5
2979
2980 cat >&5 <<_ACEOF
2981
2982
2983 ## ----------- ##
2984 ## Core tests. ##
2985 ## ----------- ##
2986
2987 _ACEOF
2988
2989
2990 # Keep a trace of the command line.
2991 # Strip out --no-create and --no-recursion so they do not pile up.
2992 # Strip out --silent because we don't want to record it for future runs.
2993 # Also quote any args containing shell meta-characters.
2994 # Make two passes to allow for proper duplicate-argument suppression.
2995 ac_configure_args=
2996 ac_configure_args0=
2997 ac_configure_args1=
2998 ac_must_keep_next=false
2999 for ac_pass in 1 2
3000 do
3001 for ac_arg
3002 do
3003 case $ac_arg in
3004 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3006 | -silent | --silent | --silen | --sile | --sil)
3007 continue ;;
3008 *\'*)
3009 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3010 esac
3011 case $ac_pass in
3012 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3013 2)
3014 as_fn_append ac_configure_args1 " '$ac_arg'"
3015 if test $ac_must_keep_next = true; then
3016 ac_must_keep_next=false # Got value, back to normal.
3017 else
3018 case $ac_arg in
3019 *=* | --config-cache | -C | -disable-* | --disable-* \
3020 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3021 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3022 | -with-* | --with-* | -without-* | --without-* | --x)
3023 case "$ac_configure_args0 " in
3024 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3025 esac
3026 ;;
3027 -* ) ac_must_keep_next=true ;;
3028 esac
3029 fi
3030 as_fn_append ac_configure_args " '$ac_arg'"
3031 ;;
3032 esac
3033 done
3034 done
3035 { ac_configure_args0=; unset ac_configure_args0;}
3036 { ac_configure_args1=; unset ac_configure_args1;}
3037
3038 # When interrupted or exit'd, cleanup temporary files, and complete
3039 # config.log. We remove comments because anyway the quotes in there
3040 # would cause problems or look ugly.
3041 # WARNING: Use '\'' to represent an apostrophe within the trap.
3042 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3043 trap 'exit_status=$?
3044 # Save into config.log some information that might help in debugging.
3045 {
3046 echo
3047
3048 cat <<\_ASBOX
3049 ## ---------------- ##
3050 ## Cache variables. ##
3051 ## ---------------- ##
3052 _ASBOX
3053 echo
3054 # The following way of writing the cache mishandles newlines in values,
3055 (
3056 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3057 eval ac_val=\$$ac_var
3058 case $ac_val in #(
3059 *${as_nl}*)
3060 case $ac_var in #(
3061 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3063 esac
3064 case $ac_var in #(
3065 _ | IFS | as_nl) ;; #(
3066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3067 *) { eval $ac_var=; unset $ac_var;} ;;
3068 esac ;;
3069 esac
3070 done
3071 (set) 2>&1 |
3072 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3073 *${as_nl}ac_space=\ *)
3074 sed -n \
3075 "s/'\''/'\''\\\\'\'''\''/g;
3076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3077 ;; #(
3078 *)
3079 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3080 ;;
3081 esac |
3082 sort
3083 )
3084 echo
3085
3086 cat <<\_ASBOX
3087 ## ----------------- ##
3088 ## Output variables. ##
3089 ## ----------------- ##
3090 _ASBOX
3091 echo
3092 for ac_var in $ac_subst_vars
3093 do
3094 eval ac_val=\$$ac_var
3095 case $ac_val in
3096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3097 esac
3098 $as_echo "$ac_var='\''$ac_val'\''"
3099 done | sort
3100 echo
3101
3102 if test -n "$ac_subst_files"; then
3103 cat <<\_ASBOX
3104 ## ------------------- ##
3105 ## File substitutions. ##
3106 ## ------------------- ##
3107 _ASBOX
3108 echo
3109 for ac_var in $ac_subst_files
3110 do
3111 eval ac_val=\$$ac_var
3112 case $ac_val in
3113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3114 esac
3115 $as_echo "$ac_var='\''$ac_val'\''"
3116 done | sort
3117 echo
3118 fi
3119
3120 if test -s confdefs.h; then
3121 cat <<\_ASBOX
3122 ## ----------- ##
3123 ## confdefs.h. ##
3124 ## ----------- ##
3125 _ASBOX
3126 echo
3127 cat confdefs.h
3128 echo
3129 fi
3130 test "$ac_signal" != 0 &&
3131 $as_echo "$as_me: caught signal $ac_signal"
3132 $as_echo "$as_me: exit $exit_status"
3133 } >&5
3134 rm -f core *.core core.conftest.* &&
3135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3136 exit $exit_status
3137 ' 0
3138 for ac_signal in 1 2 13 15; do
3139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3140 done
3141 ac_signal=0
3142
3143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3144 rm -f -r conftest* confdefs.h
3145
3146 $as_echo "/* confdefs.h */" > confdefs.h
3147
3148 # Predefined preprocessor variables.
3149
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE_NAME "$PACKAGE_NAME"
3152 _ACEOF
3153
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3156 _ACEOF
3157
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3160 _ACEOF
3161
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_STRING "$PACKAGE_STRING"
3164 _ACEOF
3165
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3168 _ACEOF
3169
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_URL "$PACKAGE_URL"
3172 _ACEOF
3173
3174
3175 # Let the site file select an alternate cache file if it wants to.
3176 # Prefer an explicitly selected file to automatically selected ones.
3177 ac_site_file1=NONE
3178 ac_site_file2=NONE
3179 if test -n "$CONFIG_SITE"; then
3180 ac_site_file1=$CONFIG_SITE
3181 elif test "x$prefix" != xNONE; then
3182 ac_site_file1=$prefix/share/config.site
3183 ac_site_file2=$prefix/etc/config.site
3184 else
3185 ac_site_file1=$ac_default_prefix/share/config.site
3186 ac_site_file2=$ac_default_prefix/etc/config.site
3187 fi
3188 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3189 do
3190 test "x$ac_site_file" = xNONE && continue
3191 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3193 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3194 sed 's/^/| /' "$ac_site_file" >&5
3195 . "$ac_site_file"
3196 fi
3197 done
3198
3199 if test -r "$cache_file"; then
3200 # Some versions of bash will fail to source /dev/null (special files
3201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3204 $as_echo "$as_me: loading cache $cache_file" >&6;}
3205 case $cache_file in
3206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3207 *) . "./$cache_file";;
3208 esac
3209 fi
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3212 $as_echo "$as_me: creating cache $cache_file" >&6;}
3213 >$cache_file
3214 fi
3215
3216 as_fn_append ac_header_list " linux/version.h"
3217 as_fn_append ac_header_list " sys/systeminfo.h"
3218 as_fn_append ac_header_list " coff.h"
3219 as_fn_append ac_header_list " pty.h"
3220 as_fn_append ac_header_list " sys/vlimit.h"
3221 as_fn_append ac_header_list " sys/resource.h"
3222 as_fn_append ac_header_list " sys/utsname.h"
3223 as_fn_append ac_header_list " pwd.h"
3224 as_fn_append ac_header_list " utmp.h"
3225 as_fn_append ac_header_list " util.h"
3226 as_fn_append ac_header_list " sys/socket.h"
3227 as_fn_append ac_header_list " stdlib.h"
3228 as_fn_append ac_header_list " unistd.h"
3229 as_fn_append ac_header_list " sys/param.h"
3230 as_fn_append ac_header_list " pthread.h"
3231 as_fn_append ac_header_list " malloc/malloc.h"
3232 as_fn_append ac_header_list " maillock.h"
3233 as_fn_append ac_header_list " sys/un.h"
3234 as_fn_append ac_func_list " tzset"
3235 as_fn_append ac_func_list " readlinkat"
3236 as_fn_append ac_header_list " execinfo.h"
3237 as_fn_append ac_func_list " faccessat"
3238 as_fn_append ac_header_list " stdio_ext.h"
3239 as_fn_append ac_func_list " __fpending"
3240 gl_getopt_required=GNU
3241 as_fn_append ac_header_list " getopt.h"
3242 as_fn_append ac_func_list " gettimeofday"
3243 as_fn_append ac_func_list " nanotime"
3244 as_fn_append ac_header_list " sys/time.h"
3245 as_fn_append ac_header_list " wchar.h"
3246 as_fn_append ac_header_list " stdint.h"
3247 as_fn_append ac_header_list " inttypes.h"
3248 as_fn_append ac_func_list " lstat"
3249 as_fn_append ac_func_list " alarm"
3250 as_fn_append ac_header_list " sys/select.h"
3251 as_fn_append ac_func_list " pselect"
3252 as_fn_append ac_func_list " pthread_sigmask"
3253 as_fn_append ac_func_list " readlink"
3254 as_fn_append ac_func_list " strtoimax"
3255 as_fn_append ac_func_list " strtoumax"
3256 as_fn_append ac_func_list " symlink"
3257 as_fn_append ac_header_list " sys/stat.h"
3258 as_fn_append ac_func_list " localtime_r"
3259 as_fn_append ac_header_list " utime.h"
3260 as_fn_append ac_func_list " futimes"
3261 as_fn_append ac_func_list " futimesat"
3262 as_fn_append ac_func_list " futimens"
3263 as_fn_append ac_func_list " utimensat"
3264 as_fn_append ac_func_list " lutimes"
3265 # Check that the precious variables saved in the cache have kept the same
3266 # value.
3267 ac_cache_corrupted=false
3268 for ac_var in $ac_precious_vars; do
3269 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3270 eval ac_new_set=\$ac_env_${ac_var}_set
3271 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3272 eval ac_new_val=\$ac_env_${ac_var}_value
3273 case $ac_old_set,$ac_new_set in
3274 set,)
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3276 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3277 ac_cache_corrupted=: ;;
3278 ,set)
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3280 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3281 ac_cache_corrupted=: ;;
3282 ,);;
3283 *)
3284 if test "x$ac_old_val" != "x$ac_new_val"; then
3285 # differences in whitespace do not lead to failure.
3286 ac_old_val_w=`echo x $ac_old_val`
3287 ac_new_val_w=`echo x $ac_new_val`
3288 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3290 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3291 ac_cache_corrupted=:
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3294 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3295 eval $ac_var=\$ac_old_val
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3298 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3300 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3301 fi;;
3302 esac
3303 # Pass precious variables to config.status.
3304 if test "$ac_new_set" = set; then
3305 case $ac_new_val in
3306 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3307 *) ac_arg=$ac_var=$ac_new_val ;;
3308 esac
3309 case " $ac_configure_args " in
3310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3311 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3312 esac
3313 fi
3314 done
3315 if $ac_cache_corrupted; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3319 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3320 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3321 fi
3322 ## -------------------- ##
3323 ## Main body of script. ##
3324 ## -------------------- ##
3325
3326 ac_ext=c
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331
3332
3333 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3334
3335
3336 ac_aux_dir=
3337 for ac_dir in build-aux "$srcdir"/build-aux; do
3338 for ac_t in install-sh install.sh shtool; do
3339 if test -f "$ac_dir/$ac_t"; then
3340 ac_aux_dir=$ac_dir
3341 ac_install_sh="$ac_aux_dir/$ac_t -c"
3342 break 2
3343 fi
3344 done
3345 done
3346 if test -z "$ac_aux_dir"; then
3347 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3348 fi
3349
3350 # These three variables are undocumented and unsupported,
3351 # and are intended to be withdrawn in a future Autoconf release.
3352 # They can cause serious problems if a builder's source tree is in a directory
3353 # whose full name contains unusual characters.
3354 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3355 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3356 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3357
3358
3359 am__api_version='1.11'
3360
3361 # Find a good install program. We prefer a C program (faster),
3362 # so one script is as good as another. But avoid the broken or
3363 # incompatible versions:
3364 # SysV /etc/install, /usr/sbin/install
3365 # SunOS /usr/etc/install
3366 # IRIX /sbin/install
3367 # AIX /bin/install
3368 # AmigaOS /C/install, which installs bootblocks on floppy discs
3369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3372 # OS/2's system install, which has a completely different semantic
3373 # ./install, which can be erroneously created by make from ./install.sh.
3374 # Reject install programs that cannot install multiple files.
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3376 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3377 if test -z "$INSTALL"; then
3378 if test "${ac_cv_path_install+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 # Account for people who put trailing slashes in PATH elements.
3387 case $as_dir/ in #((
3388 ./ | .// | /[cC]/* | \
3389 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3390 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3391 /usr/ucb/* ) ;;
3392 *)
3393 # OSF1 and SCO ODT 3.0 have their own names for install.
3394 # Don't use installbsd from OSF since it installs stuff as root
3395 # by default.
3396 for ac_prog in ginstall scoinst install; do
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3399 if test $ac_prog = install &&
3400 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3401 # AIX install. It has an incompatible calling convention.
3402 :
3403 elif test $ac_prog = install &&
3404 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3405 # program-specific install script used by HP pwplus--don't use.
3406 :
3407 else
3408 rm -rf conftest.one conftest.two conftest.dir
3409 echo one > conftest.one
3410 echo two > conftest.two
3411 mkdir conftest.dir
3412 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3413 test -s conftest.one && test -s conftest.two &&
3414 test -s conftest.dir/conftest.one &&
3415 test -s conftest.dir/conftest.two
3416 then
3417 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3418 break 3
3419 fi
3420 fi
3421 fi
3422 done
3423 done
3424 ;;
3425 esac
3426
3427 done
3428 IFS=$as_save_IFS
3429
3430 rm -rf conftest.one conftest.two conftest.dir
3431
3432 fi
3433 if test "${ac_cv_path_install+set}" = set; then
3434 INSTALL=$ac_cv_path_install
3435 else
3436 # As a last resort, use the slow shell script. Don't cache a
3437 # value for INSTALL within a source directory, because that will
3438 # break other packages using the cache if that directory is
3439 # removed, or if the value is a relative name.
3440 INSTALL=$ac_install_sh
3441 fi
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3444 $as_echo "$INSTALL" >&6; }
3445
3446 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3447 # It thinks the first close brace ends the variable substitution.
3448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3449
3450 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3451
3452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3453
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3455 $as_echo_n "checking whether build environment is sane... " >&6; }
3456 # Just in case
3457 sleep 1
3458 echo timestamp > conftest.file
3459 # Reject unsafe characters in $srcdir or the absolute working directory
3460 # name. Accept space and tab only in the latter.
3461 am_lf='
3462 '
3463 case `pwd` in
3464 *[\\\"\#\$\&\'\`$am_lf]*)
3465 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3466 esac
3467 case $srcdir in
3468 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3469 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3470 esac
3471
3472 # Do `set' in a subshell so we don't clobber the current shell's
3473 # arguments. Must try -L first in case configure is actually a
3474 # symlink; some systems play weird games with the mod time of symlinks
3475 # (eg FreeBSD returns the mod time of the symlink's containing
3476 # directory).
3477 if (
3478 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3479 if test "$*" = "X"; then
3480 # -L didn't work.
3481 set X `ls -t "$srcdir/configure" conftest.file`
3482 fi
3483 rm -f conftest.file
3484 if test "$*" != "X $srcdir/configure conftest.file" \
3485 && test "$*" != "X conftest.file $srcdir/configure"; then
3486
3487 # If neither matched, then we have a broken ls. This can happen
3488 # if, for instance, CONFIG_SHELL is bash and it inherits a
3489 # broken ls alias from the environment. This has actually
3490 # happened. Such a system could not be considered "sane".
3491 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3492 alias in your environment" "$LINENO" 5
3493 fi
3494
3495 test "$2" = conftest.file
3496 )
3497 then
3498 # Ok.
3499 :
3500 else
3501 as_fn_error "newly created file is older than distributed files!
3502 Check your system clock" "$LINENO" 5
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3505 $as_echo "yes" >&6; }
3506 test "$program_prefix" != NONE &&
3507 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3508 # Use a double $ so make ignores it.
3509 test "$program_suffix" != NONE &&
3510 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3511 # Double any \ or $.
3512 # By default was `s,x,x', remove it if useless.
3513 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3514 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3515
3516 # expand $ac_aux_dir to an absolute path
3517 am_aux_dir=`cd $ac_aux_dir && pwd`
3518
3519 if test x"${MISSING+set}" != xset; then
3520 case $am_aux_dir in
3521 *\ * | *\ *)
3522 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3523 *)
3524 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3525 esac
3526 fi
3527 # Use eval to expand $SHELL
3528 if eval "$MISSING --run true"; then
3529 am_missing_run="$MISSING --run "
3530 else
3531 am_missing_run=
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3533 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3534 fi
3535
3536 if test x"${install_sh}" != xset; then
3537 case $am_aux_dir in
3538 *\ * | *\ *)
3539 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3540 *)
3541 install_sh="\${SHELL} $am_aux_dir/install-sh"
3542 esac
3543 fi
3544
3545 # Installed binaries are usually stripped using `strip' when the user
3546 # run `make install-strip'. However `strip' might not be the right
3547 # tool to use in cross-compilation environments, therefore Automake
3548 # will honor the `STRIP' environment variable to overrule this program.
3549 if test "$cross_compiling" != no; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}strip; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_STRIP+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$STRIP"; then
3559 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572 done
3573 done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 STRIP=$ac_cv_prog_STRIP
3579 if test -n "$STRIP"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3581 $as_echo "$STRIP" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588 fi
3589 if test -z "$ac_cv_prog_STRIP"; then
3590 ac_ct_STRIP=$STRIP
3591 # Extract the first word of "strip", so it can be a program name with args.
3592 set dummy strip; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$ac_ct_STRIP"; then
3599 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_ac_ct_STRIP="strip"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 fi
3617 fi
3618 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3619 if test -n "$ac_ct_STRIP"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3621 $as_echo "$ac_ct_STRIP" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3625 fi
3626
3627 if test "x$ac_ct_STRIP" = x; then
3628 STRIP=":"
3629 else
3630 case $cross_compiling:$ac_tool_warned in
3631 yes:)
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634 ac_tool_warned=yes ;;
3635 esac
3636 STRIP=$ac_ct_STRIP
3637 fi
3638 else
3639 STRIP="$ac_cv_prog_STRIP"
3640 fi
3641
3642 fi
3643 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3644
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3646 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3647 if test -z "$MKDIR_P"; then
3648 if test "${ac_cv_path_mkdir+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3653 do
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_prog in mkdir gmkdir; do
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3659 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3660 'mkdir (GNU coreutils) '* | \
3661 'mkdir (coreutils) '* | \
3662 'mkdir (fileutils) '4.1*)
3663 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3664 break 3;;
3665 esac
3666 done
3667 done
3668 done
3669 IFS=$as_save_IFS
3670
3671 fi
3672
3673 test -d ./--version && rmdir ./--version
3674 if test "${ac_cv_path_mkdir+set}" = set; then
3675 MKDIR_P="$ac_cv_path_mkdir -p"
3676 else
3677 # As a last resort, use the slow shell script. Don't cache a
3678 # value for MKDIR_P within a source directory, because that will
3679 # break other packages using the cache if that directory is
3680 # removed, or if the value is a relative name.
3681 MKDIR_P="$ac_install_sh -d"
3682 fi
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3685 $as_echo "$MKDIR_P" >&6; }
3686
3687 mkdir_p="$MKDIR_P"
3688 case $mkdir_p in
3689 [\\/$]* | ?:[\\/]*) ;;
3690 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3691 esac
3692
3693 for ac_prog in gawk mawk nawk awk
3694 do
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_AWK+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$AWK"; then
3703 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_AWK="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 AWK=$ac_cv_prog_AWK
3723 if test -n "$AWK"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3725 $as_echo "$AWK" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 fi
3730
3731
3732 test -n "$AWK" && break
3733 done
3734
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3736 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3737 set x ${MAKE-make}
3738 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3739 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 cat >conftest.make <<\_ACEOF
3743 SHELL = /bin/sh
3744 all:
3745 @echo '@@@%%%=$(MAKE)=@@@%%%'
3746 _ACEOF
3747 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3748 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3749 *@@@%%%=?*=@@@%%%*)
3750 eval ac_cv_prog_make_${ac_make}_set=yes;;
3751 *)
3752 eval ac_cv_prog_make_${ac_make}_set=no;;
3753 esac
3754 rm -f conftest.make
3755 fi
3756 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3758 $as_echo "yes" >&6; }
3759 SET_MAKE=
3760 else
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3763 SET_MAKE="MAKE=${MAKE-make}"
3764 fi
3765
3766 rm -rf .tst 2>/dev/null
3767 mkdir .tst 2>/dev/null
3768 if test -d .tst; then
3769 am__leading_dot=.
3770 else
3771 am__leading_dot=_
3772 fi
3773 rmdir .tst 2>/dev/null
3774
3775 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3776 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3777 # is not polluted with repeated "-I."
3778 am__isrc=' -I$(srcdir)'
3779 # test to see if srcdir already configured
3780 if test -f $srcdir/config.status; then
3781 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3782 fi
3783 fi
3784
3785 # test whether we have cygpath
3786 if test -z "$CYGPATH_W"; then
3787 if (cygpath --version) >/dev/null 2>/dev/null; then
3788 CYGPATH_W='cygpath -w'
3789 else
3790 CYGPATH_W=echo
3791 fi
3792 fi
3793
3794
3795 # Define the identity of the package.
3796 PACKAGE='emacs'
3797 VERSION='24.3.50'
3798
3799
3800 cat >>confdefs.h <<_ACEOF
3801 #define PACKAGE "$PACKAGE"
3802 _ACEOF
3803
3804
3805 cat >>confdefs.h <<_ACEOF
3806 #define VERSION "$VERSION"
3807 _ACEOF
3808
3809 # Some tools Automake needs.
3810
3811 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3812
3813
3814 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3815
3816
3817 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3818
3819
3820 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3821
3822
3823 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3824
3825 # We need awk for the "check" target. The system "awk" is bad on
3826 # some platforms.
3827 # Always define AMTAR for backward compatibility.
3828
3829 AMTAR=${AMTAR-"${am_missing_run}tar"}
3830
3831 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3832
3833
3834
3835
3836
3837
3838
3839
3840 lispdir='${datadir}/emacs/${version}/lisp'
3841 leimdir='${datadir}/emacs/${version}/leim'
3842 standardlisppath='${lispdir}:${leimdir}'
3843 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3844 '${datadir}/emacs/site-lisp'
3845 lisppath='${locallisppath}:${standardlisppath}'
3846 etcdir='${datadir}/emacs/${version}/etc'
3847 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3848 docdir='${datadir}/emacs/${version}/etc'
3849 gamedir='${localstatedir}/games/emacs'
3850
3851
3852 # Check whether --with-all was given.
3853 if test "${with_all+set}" = set; then :
3854 withval=$with_all; with_features=$withval
3855 else
3856 with_features=yes
3857 fi
3858
3859
3860
3861
3862
3863 # Check whether --with-pop was given.
3864 if test "${with_pop+set}" = set; then :
3865 withval=$with_pop;
3866 else
3867 with_pop=$with_features
3868 fi
3869
3870 if test "$with_pop" = yes; then
3871 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3872
3873 fi
3874
3875
3876 # Check whether --with-kerberos was given.
3877 if test "${with_kerberos+set}" = set; then :
3878 withval=$with_kerberos;
3879 else
3880 with_kerberos=no
3881 fi
3882
3883 if test "$with_kerberos" != no; then
3884 $as_echo "#define KERBEROS 1" >>confdefs.h
3885
3886 fi
3887
3888
3889 # Check whether --with-kerberos5 was given.
3890 if test "${with_kerberos5+set}" = set; then :
3891 withval=$with_kerberos5;
3892 else
3893 with_kerberos5=no
3894 fi
3895
3896 if test "${with_kerberos5}" != no; then
3897 if test "${with_kerberos}" = no; then
3898 with_kerberos=yes
3899 $as_echo "#define KERBEROS 1" >>confdefs.h
3900
3901 fi
3902
3903 $as_echo "#define KERBEROS5 1" >>confdefs.h
3904
3905 fi
3906
3907
3908 # Check whether --with-hesiod was given.
3909 if test "${with_hesiod+set}" = set; then :
3910 withval=$with_hesiod;
3911 else
3912 with_hesiod=no
3913 fi
3914
3915 if test "$with_hesiod" != no; then
3916
3917 $as_echo "#define HESIOD 1" >>confdefs.h
3918
3919 fi
3920
3921
3922 # Check whether --with-mmdf was given.
3923 if test "${with_mmdf+set}" = set; then :
3924 withval=$with_mmdf;
3925 else
3926 with_mmdf=no
3927 fi
3928
3929 if test "$with_mmdf" != no; then
3930
3931 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3932
3933 fi
3934
3935
3936 # Check whether --with-mail-unlink was given.
3937 if test "${with_mail_unlink+set}" = set; then :
3938 withval=$with_mail_unlink;
3939 else
3940 with_mail_unlink=no
3941 fi
3942
3943 if test "$with_mail_unlink" != no; then
3944
3945 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3946
3947 fi
3948
3949
3950 # Check whether --with-mailhost was given.
3951 if test "${with_mailhost+set}" = set; then :
3952 withval=$with_mailhost;
3953 cat >>confdefs.h <<_ACEOF
3954 #define MAILHOST "$withval"
3955 _ACEOF
3956
3957 fi
3958
3959
3960
3961 # Check whether --with-sound was given.
3962 if test "${with_sound+set}" = set; then :
3963 withval=$with_sound;
3964 else
3965 with_sound=$with_features
3966 fi
3967
3968
3969
3970 # Check whether --with-x-toolkit was given.
3971 if test "${with_x_toolkit+set}" = set; then :
3972 withval=$with_x_toolkit; case "${withval}" in
3973 y | ye | yes ) val=gtk ;;
3974 n | no ) val=no ;;
3975 l | lu | luc | luci | lucid ) val=lucid ;;
3976 a | at | ath | athe | athen | athena ) val=athena ;;
3977 m | mo | mot | moti | motif ) val=motif ;;
3978 g | gt | gtk ) val=gtk ;;
3979 gtk2 ) val=gtk2 ;;
3980 gtk3 ) val=gtk3 ;;
3981 * )
3982 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3983 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3984 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3985 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3986 ;;
3987 esac
3988 with_x_toolkit=$val
3989
3990 fi
3991
3992
3993
3994 # Check whether --with-wide-int was given.
3995 if test "${with_wide_int+set}" = set; then :
3996 withval=$with_wide_int;
3997 else
3998 with_wide_int=no
3999 fi
4000
4001 if test "$with_wide_int" = yes; then
4002
4003 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4004
4005 fi
4006
4007
4008 # Check whether --with-xpm was given.
4009 if test "${with_xpm+set}" = set; then :
4010 withval=$with_xpm;
4011 else
4012 with_xpm=$with_features
4013 fi
4014
4015
4016 # Check whether --with-jpeg was given.
4017 if test "${with_jpeg+set}" = set; then :
4018 withval=$with_jpeg;
4019 else
4020 with_jpeg=$with_features
4021 fi
4022
4023
4024 # Check whether --with-tiff was given.
4025 if test "${with_tiff+set}" = set; then :
4026 withval=$with_tiff;
4027 else
4028 with_tiff=$with_features
4029 fi
4030
4031
4032 # Check whether --with-gif was given.
4033 if test "${with_gif+set}" = set; then :
4034 withval=$with_gif;
4035 else
4036 with_gif=$with_features
4037 fi
4038
4039
4040 # Check whether --with-png was given.
4041 if test "${with_png+set}" = set; then :
4042 withval=$with_png;
4043 else
4044 with_png=$with_features
4045 fi
4046
4047
4048 # Check whether --with-rsvg was given.
4049 if test "${with_rsvg+set}" = set; then :
4050 withval=$with_rsvg;
4051 else
4052 with_rsvg=$with_features
4053 fi
4054
4055
4056 # Check whether --with-xml2 was given.
4057 if test "${with_xml2+set}" = set; then :
4058 withval=$with_xml2;
4059 else
4060 with_xml2=$with_features
4061 fi
4062
4063
4064 # Check whether --with-imagemagick was given.
4065 if test "${with_imagemagick+set}" = set; then :
4066 withval=$with_imagemagick;
4067 else
4068 with_imagemagick=$with_features
4069 fi
4070
4071
4072
4073 # Check whether --with-xft was given.
4074 if test "${with_xft+set}" = set; then :
4075 withval=$with_xft;
4076 else
4077 with_xft=$with_features
4078 fi
4079
4080
4081 # Check whether --with-libotf was given.
4082 if test "${with_libotf+set}" = set; then :
4083 withval=$with_libotf;
4084 else
4085 with_libotf=$with_features
4086 fi
4087
4088
4089 # Check whether --with-m17n-flt was given.
4090 if test "${with_m17n_flt+set}" = set; then :
4091 withval=$with_m17n_flt;
4092 else
4093 with_m17n_flt=$with_features
4094 fi
4095
4096
4097
4098 # Check whether --with-toolkit-scroll-bars was given.
4099 if test "${with_toolkit_scroll_bars+set}" = set; then :
4100 withval=$with_toolkit_scroll_bars;
4101 else
4102 with_toolkit_scroll_bars=$with_features
4103 fi
4104
4105
4106 # Check whether --with-xaw3d was given.
4107 if test "${with_xaw3d+set}" = set; then :
4108 withval=$with_xaw3d;
4109 else
4110 with_xaw3d=$with_features
4111 fi
4112
4113
4114 # Check whether --with-xim was given.
4115 if test "${with_xim+set}" = set; then :
4116 withval=$with_xim;
4117 else
4118 with_xim=$with_features
4119 fi
4120
4121
4122 # Check whether --with-ns was given.
4123 if test "${with_ns+set}" = set; then :
4124 withval=$with_ns;
4125 else
4126 with_ns=no
4127 fi
4128
4129
4130 # Check whether --with-w32 was given.
4131 if test "${with_w32+set}" = set; then :
4132 withval=$with_w32;
4133 else
4134 with_w32=no
4135 fi
4136
4137
4138
4139 # Check whether --with-gpm was given.
4140 if test "${with_gpm+set}" = set; then :
4141 withval=$with_gpm;
4142 else
4143 with_gpm=$with_features
4144 fi
4145
4146
4147 # Check whether --with-dbus was given.
4148 if test "${with_dbus+set}" = set; then :
4149 withval=$with_dbus;
4150 else
4151 with_dbus=$with_features
4152 fi
4153
4154
4155 # Check whether --with-gconf was given.
4156 if test "${with_gconf+set}" = set; then :
4157 withval=$with_gconf;
4158 else
4159 with_gconf=$with_features
4160 fi
4161
4162
4163 # Check whether --with-gsettings was given.
4164 if test "${with_gsettings+set}" = set; then :
4165 withval=$with_gsettings;
4166 else
4167 with_gsettings=$with_features
4168 fi
4169
4170
4171 # Check whether --with-selinux was given.
4172 if test "${with_selinux+set}" = set; then :
4173 withval=$with_selinux;
4174 else
4175 with_selinux=$with_features
4176 fi
4177
4178
4179 # Check whether --with-acl was given.
4180 if test "${with_acl+set}" = set; then :
4181 withval=$with_acl;
4182 else
4183 with_acl=$with_features
4184 fi
4185
4186
4187 # Check whether --with-gnutls was given.
4188 if test "${with_gnutls+set}" = set; then :
4189 withval=$with_gnutls;
4190 else
4191 with_gnutls=$with_features
4192 fi
4193
4194
4195 # Check whether --with-inotify was given.
4196 if test "${with_inotify+set}" = set; then :
4197 withval=$with_inotify;
4198 else
4199 with_inotify=$with_features
4200 fi
4201
4202
4203 ## For the times when you want to build Emacs but don't have
4204 ## a suitable makeinfo, and can live without the manuals.
4205
4206 # Check whether --with-makeinfo was given.
4207 if test "${with_makeinfo+set}" = set; then :
4208 withval=$with_makeinfo;
4209 else
4210 with_makeinfo=$with_features
4211 fi
4212
4213
4214 ## Makefile.in needs the cache file name.
4215
4216
4217 ## This is an option because I do not know if all info/man support
4218 ## compressed files, nor how to test if they do so.
4219
4220 # Check whether --with-compress-info was given.
4221 if test "${with_compress_info+set}" = set; then :
4222 withval=$with_compress_info;
4223 else
4224 with_compress_info=$with_features
4225 fi
4226
4227 if test $with_compress_info = yes; then
4228 GZIP_INFO=yes
4229 else
4230 GZIP_INFO=
4231 fi
4232
4233
4234
4235 # Check whether --with-pkg-config-prog was given.
4236 if test "${with_pkg_config_prog+set}" = set; then :
4237 withval=$with_pkg_config_prog;
4238 fi
4239
4240 if test "X${with_pkg_config_prog}" != X; then
4241 if test "${with_pkg_config_prog}" != yes; then
4242 PKG_CONFIG="${with_pkg_config_prog}"
4243 fi
4244 fi
4245
4246 CRT_DIR=
4247
4248 # Check whether --with-crt-dir was given.
4249 if test "${with_crt_dir+set}" = set; then :
4250 withval=$with_crt_dir;
4251 fi
4252
4253 CRT_DIR="${with_crt_dir}"
4254
4255
4256 # Check whether --with-gameuser was given.
4257 if test "${with_gameuser+set}" = set; then :
4258 withval=$with_gameuser;
4259 fi
4260
4261 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4262 && gameuser="${with_gameuser}"
4263 test "X$gameuser" = X && gameuser=games
4264
4265
4266 # Check whether --with-gnustep-conf was given.
4267 if test "${with_gnustep_conf+set}" = set; then :
4268 withval=$with_gnustep_conf;
4269 fi
4270
4271 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4272 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4273 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4274 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4275
4276 # Check whether --enable-ns-self-contained was given.
4277 if test "${enable_ns_self_contained+set}" = set; then :
4278 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4279 else
4280 EN_NS_SELF_CONTAINED=yes
4281 fi
4282
4283
4284 # Check whether --enable-locallisppath was given.
4285 if test "${enable_locallisppath+set}" = set; then :
4286 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4287 locallisppath=
4288 elif test "${enableval}" != "yes"; then
4289 locallisppath=${enableval}
4290 fi
4291 fi
4292
4293
4294 # Check whether --enable-checking was given.
4295 if test "${enable_checking+set}" = set; then :
4296 enableval=$enable_checking; ac_checking_flags="${enableval}"
4297 fi
4298
4299 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4300 for check in $ac_checking_flags
4301 do
4302 case $check in
4303 # these set all the flags to specific states
4304 yes) ac_enable_checking=1 ;;
4305 no) ac_enable_checking= ;
4306 ac_gc_check_stringbytes= ;
4307 ac_gc_check_string_overrun= ;
4308 ac_gc_check_string_free_list= ;
4309 ac_xmalloc_overrun= ;
4310 ac_gc_check_cons_list= ;
4311 ac_glyphs_debug= ;;
4312 all) ac_enable_checking=1 ;
4313 ac_gc_check_stringbytes=1 ;
4314 ac_gc_check_string_overrun=1 ;
4315 ac_gc_check_string_free_list=1 ;
4316 ac_xmalloc_overrun=1 ;
4317 ac_gc_check_cons_list=1 ;
4318 ac_glyphs_debug=1 ;;
4319 # these enable particular checks
4320 stringbytes) ac_gc_check_stringbytes=1 ;;
4321 stringoverrun) ac_gc_check_string_overrun=1 ;;
4322 stringfreelist) ac_gc_check_string_free_list=1 ;;
4323 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4324 conslist) ac_gc_check_cons_list=1 ;;
4325 glyphs) ac_glyphs_debug=1 ;;
4326 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4327 esac
4328 done
4329 IFS="$ac_save_IFS"
4330
4331 if test x$ac_enable_checking != x ; then
4332
4333 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4334
4335 fi
4336 if test x$ac_gc_check_stringbytes != x ; then
4337
4338 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4339
4340 fi
4341 if test x$ac_gc_check_string_overrun != x ; then
4342
4343 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4344
4345 fi
4346 if test x$ac_gc_check_string_free_list != x ; then
4347
4348 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4349
4350 fi
4351 if test x$ac_xmalloc_overrun != x ; then
4352
4353 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4354
4355 fi
4356 if test x$ac_gc_check_cons_list != x ; then
4357
4358 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4359
4360 fi
4361 if test x$ac_glyphs_debug != x ; then
4362
4363 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4364
4365 fi
4366
4367 # Check whether --enable-check-lisp-object-type was given.
4368 if test "${enable_check_lisp_object_type+set}" = set; then :
4369 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4370
4371 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4372
4373 fi
4374 fi
4375
4376
4377
4378 # Check whether --enable-profiling was given.
4379 if test "${enable_profiling+set}" = set; then :
4380 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4381 fi
4382
4383 if test x$ac_enable_profiling != x ; then
4384 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4385 else
4386 PROFILING_CFLAGS=
4387 fi
4388
4389
4390 # Check whether --enable-autodepend was given.
4391 if test "${enable_autodepend+set}" = set; then :
4392 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4393 else
4394 ac_enable_autodepend=yes
4395 fi
4396
4397
4398 #### Make srcdir absolute, if it isn't already. It's important to
4399 #### avoid running the file name through pwd unnecessarily, since pwd can
4400 #### give you automounter prefixes, which can go away. We do all this
4401 #### so Emacs can find its files when run uninstalled.
4402 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4403 unset CDPATH
4404 case "${srcdir}" in
4405 /* ) ;;
4406 . )
4407 ## We may be able to use the $PWD environment variable to make this
4408 ## absolute. But sometimes PWD is inaccurate.
4409 ## Note: we used to use $PWD at the end instead of `pwd`,
4410 ## but that tested only for a well-formed and valid PWD,
4411 ## it did not object when PWD was well-formed and valid but just wrong.
4412 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4413 then
4414 srcdir="$PWD"
4415 else
4416 srcdir=`(cd "$srcdir"; pwd)`
4417 fi
4418 ;;
4419 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4420 esac
4421
4422 ### Canonicalize the configuration name.
4423
4424 # Make sure we can run config.sub.
4425 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4426 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4429 $as_echo_n "checking build system type... " >&6; }
4430 if test "${ac_cv_build+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 ac_build_alias=$build_alias
4434 test "x$ac_build_alias" = x &&
4435 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4436 test "x$ac_build_alias" = x &&
4437 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4439 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4440
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4443 $as_echo "$ac_cv_build" >&6; }
4444 case $ac_cv_build in
4445 *-*-*) ;;
4446 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4447 esac
4448 build=$ac_cv_build
4449 ac_save_IFS=$IFS; IFS='-'
4450 set x $ac_cv_build
4451 shift
4452 build_cpu=$1
4453 build_vendor=$2
4454 shift; shift
4455 # Remember, the first character of IFS is used to create $*,
4456 # except with old shells:
4457 build_os=$*
4458 IFS=$ac_save_IFS
4459 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4460
4461
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4463 $as_echo_n "checking host system type... " >&6; }
4464 if test "${ac_cv_host+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test "x$host_alias" = x; then
4468 ac_cv_host=$ac_cv_build
4469 else
4470 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4471 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4472 fi
4473
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4476 $as_echo "$ac_cv_host" >&6; }
4477 case $ac_cv_host in
4478 *-*-*) ;;
4479 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4480 esac
4481 host=$ac_cv_host
4482 ac_save_IFS=$IFS; IFS='-'
4483 set x $ac_cv_host
4484 shift
4485 host_cpu=$1
4486 host_vendor=$2
4487 shift; shift
4488 # Remember, the first character of IFS is used to create $*,
4489 # except with old shells:
4490 host_os=$*
4491 IFS=$ac_save_IFS
4492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4493
4494
4495 canonical=$host
4496 configuration=${host_alias-${build_alias-$host}}
4497
4498
4499
4500 ### If you add support for a new configuration, add code to this
4501 ### switch statement to recognize your configuration name and select
4502 ### the appropriate operating system file.
4503
4504 ### You would hope that you could choose an s/*.h
4505 ### file based on the operating system portion. However, it turns out
4506 ### that each s/*.h file is pretty manufacturer-specific.
4507 ### So we basically have to have a special case for each
4508 ### configuration name.
4509 ###
4510 ### As far as handling version numbers on operating systems is
4511 ### concerned, make sure things will fail in a fixable way. If
4512 ### /etc/MACHINES doesn't say anything about version numbers, be
4513 ### prepared to handle anything reasonably. If version numbers
4514 ### matter, be sure /etc/MACHINES says something about it.
4515
4516 opsys='' unported=no
4517 case "${canonical}" in
4518
4519 ## GNU/Linux and similar ports
4520 *-*-linux* )
4521 opsys=gnu-linux
4522 ;;
4523
4524 ## FreeBSD ports
4525 *-*-freebsd* )
4526 opsys=freebsd
4527 ;;
4528
4529 ## FreeBSD kernel + glibc based userland
4530 *-*-kfreebsd*gnu* )
4531 opsys=gnu-kfreebsd
4532 ;;
4533
4534 ## NetBSD ports
4535 *-*-netbsd* )
4536 opsys=netbsd
4537 ;;
4538
4539 ## OpenBSD ports
4540 *-*-openbsd* )
4541 opsys=openbsd
4542 ;;
4543
4544 ## Apple Darwin / Mac OS X
4545 *-apple-darwin* )
4546 case "${canonical}" in
4547 i[3456]86-* ) ;;
4548 powerpc-* ) ;;
4549 x86_64-* ) ;;
4550 * ) unported=yes ;;
4551 esac
4552 opsys=darwin
4553 ## Use fink packages if available.
4554 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4555 ## if test -d /sw/include && test -d /sw/lib; then
4556 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4557 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4558 ## fi
4559 ;;
4560
4561 ## HP 9000 series 700 and 800, running HP/UX
4562 hppa*-hp-hpux10.2* )
4563 opsys=hpux10-20
4564 ;;
4565 hppa*-hp-hpux1[1-9]* )
4566 opsys=hpux11
4567 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4568 ;;
4569
4570 ## IBM machines
4571 rs6000-ibm-aix4.[23]* )
4572 opsys=aix4-2
4573 ;;
4574 powerpc-ibm-aix4.[23]* )
4575 opsys=aix4-2
4576 ;;
4577 rs6000-ibm-aix[56]* )
4578 opsys=aix4-2
4579 ;;
4580 powerpc-ibm-aix[56]* )
4581 opsys=aix4-2
4582 ;;
4583
4584 ## Silicon Graphics machines
4585 ## Iris 4D
4586 mips-sgi-irix6.5 )
4587 opsys=irix6-5
4588 # Without defining _LANGUAGE_C, things get masked out in the headers
4589 # so that, for instance, grepping for `free' in stdlib.h fails and
4590 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4591 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4592 ;;
4593
4594 ## Suns
4595 *-sun-solaris* \
4596 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4597 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4598 case "${canonical}" in
4599 i[3456]86-*-* ) ;;
4600 amd64-*-*|x86_64-*-*) ;;
4601 sparc* ) ;;
4602 * ) unported=yes ;;
4603 esac
4604 case "${canonical}" in
4605 *-sunos5.6* | *-solaris2.6* )
4606 opsys=sol2-6
4607 RANLIB="ar -ts"
4608 ;;
4609 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4610 opsys=sol2-6
4611 emacs_check_sunpro_c=yes
4612 ;;
4613 *-sunos5* | *-solaris* )
4614 opsys=sol2-10
4615 emacs_check_sunpro_c=yes
4616 ;;
4617 esac
4618 ## Watch out for a compiler that we know will not work.
4619 case "${canonical}" in
4620 *-solaris* | *-sunos5* )
4621 if [ "x$CC" = x/usr/ucb/cc ]; then
4622 ## /usr/ucb/cc doesn't work;
4623 ## we should find some other compiler that does work.
4624 unset CC
4625 fi
4626 ;;
4627 *) ;;
4628 esac
4629 ;;
4630
4631 ## Intel 386 machines where we don't care about the manufacturer.
4632 i[3456]86-*-* )
4633 case "${canonical}" in
4634 *-cygwin ) opsys=cygwin ;;
4635 *-darwin* ) opsys=darwin ;;
4636 *-sysv4.2uw* ) opsys=unixware ;;
4637 *-sysv5uw* ) opsys=unixware ;;
4638 *-sysv5OpenUNIX* ) opsys=unixware ;;
4639 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4640 esac
4641 ;;
4642
4643 * )
4644 unported=yes
4645 ;;
4646 esac
4647
4648 ### If the code above didn't choose an operating system, just choose
4649 ### an operating system based on the configuration name. You really
4650 ### only want to use this when you have no idea what the right
4651 ### operating system is; if you know what operating systems a machine
4652 ### runs, it's cleaner to make it explicit in the case statement
4653 ### above.
4654 if test x"${opsys}" = x; then
4655 case "${canonical}" in
4656 *-gnu* ) opsys=gnu ;;
4657 * )
4658 unported=yes
4659 ;;
4660 esac
4661 fi
4662
4663
4664
4665 if test $unported = yes; then
4666 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4667 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4668 fi
4669
4670
4671 #### Choose a compiler.
4672
4673 ac_ext=c
4674 ac_cpp='$CPP $CPPFLAGS'
4675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4678 if test -n "$ac_tool_prefix"; then
4679 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4680 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_prog_CC+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if test -n "$CC"; then
4687 ac_cv_prog_CC="$CC" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4699 fi
4700 done
4701 done
4702 IFS=$as_save_IFS
4703
4704 fi
4705 fi
4706 CC=$ac_cv_prog_CC
4707 if test -n "$CC"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4709 $as_echo "$CC" >&6; }
4710 else
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4713 fi
4714
4715
4716 fi
4717 if test -z "$ac_cv_prog_CC"; then
4718 ac_ct_CC=$CC
4719 # Extract the first word of "gcc", so it can be a program name with args.
4720 set dummy gcc; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 if test -n "$ac_ct_CC"; then
4727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_prog_ac_ct_CC="gcc"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4739 fi
4740 done
4741 done
4742 IFS=$as_save_IFS
4743
4744 fi
4745 fi
4746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4747 if test -n "$ac_ct_CC"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4749 $as_echo "$ac_ct_CC" >&6; }
4750 else
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4753 fi
4754
4755 if test "x$ac_ct_CC" = x; then
4756 CC=""
4757 else
4758 case $cross_compiling:$ac_tool_warned in
4759 yes:)
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4762 ac_tool_warned=yes ;;
4763 esac
4764 CC=$ac_ct_CC
4765 fi
4766 else
4767 CC="$ac_cv_prog_CC"
4768 fi
4769
4770 if test -z "$CC"; then
4771 if test -n "$ac_tool_prefix"; then
4772 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4773 set dummy ${ac_tool_prefix}cc; ac_word=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if test "${ac_cv_prog_CC+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -n "$CC"; then
4780 ac_cv_prog_CC="$CC" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_CC="${ac_tool_prefix}cc"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797 fi
4798 fi
4799 CC=$ac_cv_prog_CC
4800 if test -n "$CC"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4802 $as_echo "$CC" >&6; }
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 fi
4807
4808
4809 fi
4810 fi
4811 if test -z "$CC"; then
4812 # Extract the first word of "cc", so it can be a program name with args.
4813 set dummy cc; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_CC+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$CC"; then
4820 ac_cv_prog_CC="$CC" # Let the user override the test.
4821 else
4822 ac_prog_rejected=no
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4831 ac_prog_rejected=yes
4832 continue
4833 fi
4834 ac_cv_prog_CC="cc"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838 done
4839 done
4840 IFS=$as_save_IFS
4841
4842 if test $ac_prog_rejected = yes; then
4843 # We found a bogon in the path, so make sure we never use it.
4844 set dummy $ac_cv_prog_CC
4845 shift
4846 if test $# != 0; then
4847 # We chose a different compiler from the bogus one.
4848 # However, it has the same basename, so the bogon will be chosen
4849 # first if we set CC to just the basename; use the full file name.
4850 shift
4851 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4852 fi
4853 fi
4854 fi
4855 fi
4856 CC=$ac_cv_prog_CC
4857 if test -n "$CC"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4859 $as_echo "$CC" >&6; }
4860 else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4863 fi
4864
4865
4866 fi
4867 if test -z "$CC"; then
4868 if test -n "$ac_tool_prefix"; then
4869 for ac_prog in cl.exe
4870 do
4871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4872 set dummy $ac_tool_prefix$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_CC+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -n "$CC"; then
4879 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 CC=$ac_cv_prog_CC
4899 if test -n "$CC"; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4901 $as_echo "$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 "$CC" && break
4909 done
4910 fi
4911 if test -z "$CC"; then
4912 ac_ct_CC=$CC
4913 for ac_prog in cl.exe
4914 do
4915 # Extract the first word of "$ac_prog", so it can be a program name with args.
4916 set dummy $ac_prog; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$ac_ct_CC"; then
4923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_ac_ct_CC="$ac_prog"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4935 fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4943 if test -n "$ac_ct_CC"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4945 $as_echo "$ac_ct_CC" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950
4951
4952 test -n "$ac_ct_CC" && break
4953 done
4954
4955 if test "x$ac_ct_CC" = x; then
4956 CC=""
4957 else
4958 case $cross_compiling:$ac_tool_warned in
4959 yes:)
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962 ac_tool_warned=yes ;;
4963 esac
4964 CC=$ac_ct_CC
4965 fi
4966 fi
4967
4968 fi
4969
4970
4971 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4973 as_fn_error "no acceptable C compiler found in \$PATH
4974 See \`config.log' for more details." "$LINENO" 5; }
4975
4976 # Provide some information about the compiler.
4977 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4978 set X $ac_compile
4979 ac_compiler=$2
4980 for ac_option in --version -v -V -qversion; do
4981 { { ac_try="$ac_compiler $ac_option >&5"
4982 case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985 esac
4986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4987 $as_echo "$ac_try_echo"; } >&5
4988 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4989 ac_status=$?
4990 if test -s conftest.err; then
4991 sed '10a\
4992 ... rest of stderr output deleted ...
4993 10q' conftest.err >conftest.er1
4994 cat conftest.er1 >&5
4995 fi
4996 rm -f conftest.er1 conftest.err
4997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4998 test $ac_status = 0; }
4999 done
5000
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003
5004 int
5005 main ()
5006 {
5007
5008 ;
5009 return 0;
5010 }
5011 _ACEOF
5012 ac_clean_files_save=$ac_clean_files
5013 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5014 # Try to create an executable without -o first, disregard a.out.
5015 # It will help us diagnose broken compilers, and finding out an intuition
5016 # of exeext.
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5018 $as_echo_n "checking whether the C compiler works... " >&6; }
5019 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5020
5021 # The possible output files:
5022 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5023
5024 ac_rmfiles=
5025 for ac_file in $ac_files
5026 do
5027 case $ac_file in
5028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5029 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5030 esac
5031 done
5032 rm -f $ac_rmfiles
5033
5034 if { { ac_try="$ac_link_default"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040 $as_echo "$ac_try_echo"; } >&5
5041 (eval "$ac_link_default") 2>&5
5042 ac_status=$?
5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; }; then :
5045 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5046 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5047 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5048 # so that the user can short-circuit this test for compilers unknown to
5049 # Autoconf.
5050 for ac_file in $ac_files ''
5051 do
5052 test -f "$ac_file" || continue
5053 case $ac_file in
5054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5055 ;;
5056 [ab].out )
5057 # We found the default executable, but exeext='' is most
5058 # certainly right.
5059 break;;
5060 *.* )
5061 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5062 then :; else
5063 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5064 fi
5065 # We set ac_cv_exeext here because the later test for it is not
5066 # safe: cross compilers may not add the suffix if given an `-o'
5067 # argument, so we may need to know it at that point already.
5068 # Even if this section looks crufty: it has the advantage of
5069 # actually working.
5070 break;;
5071 * )
5072 break;;
5073 esac
5074 done
5075 test "$ac_cv_exeext" = no && ac_cv_exeext=
5076
5077 else
5078 ac_file=''
5079 fi
5080 if test -z "$ac_file"; then :
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 $as_echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
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_set_status 77
5089 as_fn_error "C compiler cannot create executables
5090 See \`config.log' for more details." "$LINENO" 5; }; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5093 $as_echo "yes" >&6; }
5094 fi
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5096 $as_echo_n "checking for C compiler default output file name... " >&6; }
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5098 $as_echo "$ac_file" >&6; }
5099 ac_exeext=$ac_cv_exeext
5100
5101 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5102 ac_clean_files=$ac_clean_files_save
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5104 $as_echo_n "checking for suffix of executables... " >&6; }
5105 if { { ac_try="$ac_link"
5106 case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5111 $as_echo "$ac_try_echo"; } >&5
5112 (eval "$ac_link") 2>&5
5113 ac_status=$?
5114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5115 test $ac_status = 0; }; then :
5116 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5117 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5118 # work properly (i.e., refer to `conftest.exe'), while it won't with
5119 # `rm'.
5120 for ac_file in conftest.exe conftest conftest.*; do
5121 test -f "$ac_file" || continue
5122 case $ac_file in
5123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5124 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5125 break;;
5126 * ) break;;
5127 esac
5128 done
5129 else
5130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5132 as_fn_error "cannot compute suffix of executables: cannot compile and link
5133 See \`config.log' for more details." "$LINENO" 5; }
5134 fi
5135 rm -f conftest conftest$ac_cv_exeext
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5137 $as_echo "$ac_cv_exeext" >&6; }
5138
5139 rm -f conftest.$ac_ext
5140 EXEEXT=$ac_cv_exeext
5141 ac_exeext=$EXEEXT
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <stdio.h>
5145 int
5146 main ()
5147 {
5148 FILE *f = fopen ("conftest.out", "w");
5149 return ferror (f) || fclose (f) != 0;
5150
5151 ;
5152 return 0;
5153 }
5154 _ACEOF
5155 ac_clean_files="$ac_clean_files conftest.out"
5156 # Check that the compiler produces executables we can run. If not, either
5157 # the compiler is broken, or we cross compile.
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5159 $as_echo_n "checking whether we are cross compiling... " >&6; }
5160 if test "$cross_compiling" != yes; then
5161 { { ac_try="$ac_link"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167 $as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_link") 2>&5
5169 ac_status=$?
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; }
5172 if { ac_try='./conftest$ac_cv_exeext'
5173 { { case "(($ac_try" in
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5176 esac
5177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5178 $as_echo "$ac_try_echo"; } >&5
5179 (eval "$ac_try") 2>&5
5180 ac_status=$?
5181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182 test $ac_status = 0; }; }; then
5183 cross_compiling=no
5184 else
5185 if test "$cross_compiling" = maybe; then
5186 cross_compiling=yes
5187 else
5188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5190 as_fn_error "cannot run C compiled programs.
5191 If you meant to cross compile, use \`--host'.
5192 See \`config.log' for more details." "$LINENO" 5; }
5193 fi
5194 fi
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5197 $as_echo "$cross_compiling" >&6; }
5198
5199 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5200 ac_clean_files=$ac_clean_files_save
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5202 $as_echo_n "checking for suffix of object files... " >&6; }
5203 if test "${ac_cv_objext+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208
5209 int
5210 main ()
5211 {
5212
5213 ;
5214 return 0;
5215 }
5216 _ACEOF
5217 rm -f conftest.o conftest.obj
5218 if { { ac_try="$ac_compile"
5219 case "(($ac_try" in
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5222 esac
5223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5224 $as_echo "$ac_try_echo"; } >&5
5225 (eval "$ac_compile") 2>&5
5226 ac_status=$?
5227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5228 test $ac_status = 0; }; then :
5229 for ac_file in conftest.o conftest.obj conftest.*; do
5230 test -f "$ac_file" || continue;
5231 case $ac_file in
5232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5234 break;;
5235 esac
5236 done
5237 else
5238 $as_echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5243 as_fn_error "cannot compute suffix of object files: cannot compile
5244 See \`config.log' for more details." "$LINENO" 5; }
5245 fi
5246 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5249 $as_echo "$ac_cv_objext" >&6; }
5250 OBJEXT=$ac_cv_objext
5251 ac_objext=$OBJEXT
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5253 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5254 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259
5260 int
5261 main ()
5262 {
5263 #ifndef __GNUC__
5264 choke me
5265 #endif
5266
5267 ;
5268 return 0;
5269 }
5270 _ACEOF
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 ac_compiler_gnu=yes
5273 else
5274 ac_compiler_gnu=no
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5278
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5281 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5282 if test $ac_compiler_gnu = yes; then
5283 GCC=yes
5284 else
5285 GCC=
5286 fi
5287 ac_test_CFLAGS=${CFLAGS+set}
5288 ac_save_CFLAGS=$CFLAGS
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5290 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5291 if test "${ac_cv_prog_cc_g+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 ac_save_c_werror_flag=$ac_c_werror_flag
5295 ac_c_werror_flag=yes
5296 ac_cv_prog_cc_g=no
5297 CFLAGS="-g"
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300
5301 int
5302 main ()
5303 {
5304
5305 ;
5306 return 0;
5307 }
5308 _ACEOF
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 ac_cv_prog_cc_g=yes
5311 else
5312 CFLAGS=""
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315
5316 int
5317 main ()
5318 {
5319
5320 ;
5321 return 0;
5322 }
5323 _ACEOF
5324 if ac_fn_c_try_compile "$LINENO"; then :
5325
5326 else
5327 ac_c_werror_flag=$ac_save_c_werror_flag
5328 CFLAGS="-g"
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331
5332 int
5333 main ()
5334 {
5335
5336 ;
5337 return 0;
5338 }
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341 ac_cv_prog_cc_g=yes
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346 fi
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 ac_c_werror_flag=$ac_save_c_werror_flag
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5351 $as_echo "$ac_cv_prog_cc_g" >&6; }
5352 if test "$ac_test_CFLAGS" = set; then
5353 CFLAGS=$ac_save_CFLAGS
5354 elif test $ac_cv_prog_cc_g = yes; then
5355 if test "$GCC" = yes; then
5356 CFLAGS="-g -O2"
5357 else
5358 CFLAGS="-g"
5359 fi
5360 else
5361 if test "$GCC" = yes; then
5362 CFLAGS="-O2"
5363 else
5364 CFLAGS=
5365 fi
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5368 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5369 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 ac_cv_prog_cc_c89=no
5373 ac_save_CC=$CC
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 #include <stdarg.h>
5377 #include <stdio.h>
5378 #include <sys/types.h>
5379 #include <sys/stat.h>
5380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5381 struct buf { int x; };
5382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5383 static char *e (p, i)
5384 char **p;
5385 int i;
5386 {
5387 return p[i];
5388 }
5389 static char *f (char * (*g) (char **, int), char **p, ...)
5390 {
5391 char *s;
5392 va_list v;
5393 va_start (v,p);
5394 s = g (p, va_arg (v,int));
5395 va_end (v);
5396 return s;
5397 }
5398
5399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5400 function prototypes and stuff, but not '\xHH' hex character constants.
5401 These don't provoke an error unfortunately, instead are silently treated
5402 as 'x'. The following induces an error, until -std is added to get
5403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5404 array size at least. It's necessary to write '\x00'==0 to get something
5405 that's true only with -std. */
5406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5407
5408 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5409 inside strings and character constants. */
5410 #define FOO(x) 'x'
5411 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5412
5413 int test (int i, double x);
5414 struct s1 {int (*f) (int a);};
5415 struct s2 {int (*f) (double a);};
5416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5417 int argc;
5418 char **argv;
5419 int
5420 main ()
5421 {
5422 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5423 ;
5424 return 0;
5425 }
5426 _ACEOF
5427 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5428 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5429 do
5430 CC="$ac_save_CC $ac_arg"
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 ac_cv_prog_cc_c89=$ac_arg
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext
5435 test "x$ac_cv_prog_cc_c89" != "xno" && break
5436 done
5437 rm -f conftest.$ac_ext
5438 CC=$ac_save_CC
5439
5440 fi
5441 # AC_CACHE_VAL
5442 case "x$ac_cv_prog_cc_c89" in
5443 x)
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5445 $as_echo "none needed" >&6; } ;;
5446 xno)
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5448 $as_echo "unsupported" >&6; } ;;
5449 *)
5450 CC="$CC $ac_cv_prog_cc_c89"
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5452 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5453 esac
5454 if test "x$ac_cv_prog_cc_c89" != xno; then :
5455
5456 fi
5457
5458 ac_ext=c
5459 ac_cpp='$CPP $CPPFLAGS'
5460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463 DEPDIR="${am__leading_dot}deps"
5464
5465 ac_config_commands="$ac_config_commands depfiles"
5466
5467
5468 am_make=${MAKE-make}
5469 cat > confinc << 'END'
5470 am__doit:
5471 @echo this is the am__doit target
5472 .PHONY: am__doit
5473 END
5474 # If we don't find an include directive, just comment out the code.
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5476 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5477 am__include="#"
5478 am__quote=
5479 _am_result=none
5480 # First try GNU make style include.
5481 echo "include confinc" > confmf
5482 # Ignore all kinds of additional output from `make'.
5483 case `$am_make -s -f confmf 2> /dev/null` in #(
5484 *the\ am__doit\ target*)
5485 am__include=include
5486 am__quote=
5487 _am_result=GNU
5488 ;;
5489 esac
5490 # Now try BSD make style include.
5491 if test "$am__include" = "#"; then
5492 echo '.include "confinc"' > confmf
5493 case `$am_make -s -f confmf 2> /dev/null` in #(
5494 *the\ am__doit\ target*)
5495 am__include=.include
5496 am__quote="\""
5497 _am_result=BSD
5498 ;;
5499 esac
5500 fi
5501
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5504 $as_echo "$_am_result" >&6; }
5505 rm -f confinc confmf
5506
5507 # Check whether --enable-dependency-tracking was given.
5508 if test "${enable_dependency_tracking+set}" = set; then :
5509 enableval=$enable_dependency_tracking;
5510 fi
5511
5512 if test "x$enable_dependency_tracking" != xno; then
5513 am_depcomp="$ac_aux_dir/depcomp"
5514 AMDEPBACKSLASH='\'
5515 fi
5516 if test "x$enable_dependency_tracking" != xno; then
5517 AMDEP_TRUE=
5518 AMDEP_FALSE='#'
5519 else
5520 AMDEP_TRUE='#'
5521 AMDEP_FALSE=
5522 fi
5523
5524
5525
5526 depcc="$CC" am_compiler_list=
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5529 $as_echo_n "checking dependency style of $depcc... " >&6; }
5530 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5534 # We make a subdir and do the tests there. Otherwise we can end up
5535 # making bogus files that we don't know about and never remove. For
5536 # instance it was reported that on HP-UX the gcc test will end up
5537 # making a dummy file named `D' -- because `-MD' means `put the output
5538 # in D'.
5539 mkdir conftest.dir
5540 # Copy depcomp to subdir because otherwise we won't find it if we're
5541 # using a relative directory.
5542 cp "$am_depcomp" conftest.dir
5543 cd conftest.dir
5544 # We will build objects and dependencies in a subdirectory because
5545 # it helps to detect inapplicable dependency modes. For instance
5546 # both Tru64's cc and ICC support -MD to output dependencies as a
5547 # side effect of compilation, but ICC will put the dependencies in
5548 # the current directory while Tru64 will put them in the object
5549 # directory.
5550 mkdir sub
5551
5552 am_cv_CC_dependencies_compiler_type=none
5553 if test "$am_compiler_list" = ""; then
5554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5555 fi
5556 am__universal=false
5557 case " $depcc " in #(
5558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5559 esac
5560
5561 for depmode in $am_compiler_list; do
5562 # Setup a source with many dependencies, because some compilers
5563 # like to wrap large dependency lists on column 80 (with \), and
5564 # we should not choose a depcomp mode which is confused by this.
5565 #
5566 # We need to recreate these files for each test, as the compiler may
5567 # overwrite some of them when testing with obscure command lines.
5568 # This happens at least with the AIX C compiler.
5569 : > sub/conftest.c
5570 for i in 1 2 3 4 5 6; do
5571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5572 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5573 # Solaris 8's {/usr,}/bin/sh.
5574 touch sub/conftst$i.h
5575 done
5576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5577
5578 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5579 # mode. It turns out that the SunPro C++ compiler does not properly
5580 # handle `-M -o', and we need to detect this. Also, some Intel
5581 # versions had trouble with output in subdirs
5582 am__obj=sub/conftest.${OBJEXT-o}
5583 am__minus_obj="-o $am__obj"
5584 case $depmode in
5585 gcc)
5586 # This depmode causes a compiler race in universal mode.
5587 test "$am__universal" = false || continue
5588 ;;
5589 nosideeffect)
5590 # after this tag, mechanisms are not by side-effect, so they'll
5591 # only be used when explicitly requested
5592 if test "x$enable_dependency_tracking" = xyes; then
5593 continue
5594 else
5595 break
5596 fi
5597 ;;
5598 msvisualcpp | msvcmsys)
5599 # This compiler won't grok `-c -o', but also, the minuso test has
5600 # not run yet. These depmodes are late enough in the game, and
5601 # so weak that their functioning should not be impacted.
5602 am__obj=conftest.${OBJEXT-o}
5603 am__minus_obj=
5604 ;;
5605 none) break ;;
5606 esac
5607 if depmode=$depmode \
5608 source=sub/conftest.c object=$am__obj \
5609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5611 >/dev/null 2>conftest.err &&
5612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5616 # icc doesn't choke on unknown options, it will just issue warnings
5617 # or remarks (even with -Werror). So we grep stderr for any message
5618 # that says an option was ignored or not supported.
5619 # When given -MP, icc 7.0 and 7.1 complain thusly:
5620 # icc: Command line warning: ignoring option '-M'; no argument required
5621 # The diagnosis changed in icc 8.0:
5622 # icc: Command line remark: option '-MP' not supported
5623 if (grep 'ignoring option' conftest.err ||
5624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5625 am_cv_CC_dependencies_compiler_type=$depmode
5626 break
5627 fi
5628 fi
5629 done
5630
5631 cd ..
5632 rm -rf conftest.dir
5633 else
5634 am_cv_CC_dependencies_compiler_type=none
5635 fi
5636
5637 fi
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5639 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5640 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5641
5642 if
5643 test "x$enable_dependency_tracking" != xno \
5644 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5645 am__fastdepCC_TRUE=
5646 am__fastdepCC_FALSE='#'
5647 else
5648 am__fastdepCC_TRUE='#'
5649 am__fastdepCC_FALSE=
5650 fi
5651
5652
5653 if test "x$CC" != xcc; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5655 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5658 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5659 fi
5660 set dummy $CC; ac_cc=`$as_echo "$2" |
5661 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5662 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667
5668 int
5669 main ()
5670 {
5671
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 # Make sure it works both with $CC and with simple cc.
5677 # We do the test twice because some compilers refuse to overwrite an
5678 # existing .o file with -o, though they will create one.
5679 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5680 rm -f conftest2.*
5681 if { { case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5686 $as_echo "$ac_try_echo"; } >&5
5687 (eval "$ac_try") 2>&5
5688 ac_status=$?
5689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5690 test $ac_status = 0; } &&
5691 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5694 esac
5695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5696 $as_echo "$ac_try_echo"; } >&5
5697 (eval "$ac_try") 2>&5
5698 ac_status=$?
5699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5700 test $ac_status = 0; };
5701 then
5702 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5703 if test "x$CC" != xcc; then
5704 # Test first that cc exists at all.
5705 if { ac_try='cc -c conftest.$ac_ext >&5'
5706 { { case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5711 $as_echo "$ac_try_echo"; } >&5
5712 (eval "$ac_try") 2>&5
5713 ac_status=$?
5714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5715 test $ac_status = 0; }; }; then
5716 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5717 rm -f conftest2.*
5718 if { { case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5723 $as_echo "$ac_try_echo"; } >&5
5724 (eval "$ac_try") 2>&5
5725 ac_status=$?
5726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5727 test $ac_status = 0; } &&
5728 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731 esac
5732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5733 $as_echo "$ac_try_echo"; } >&5
5734 (eval "$ac_try") 2>&5
5735 ac_status=$?
5736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737 test $ac_status = 0; };
5738 then
5739 # cc works too.
5740 :
5741 else
5742 # cc exists but doesn't like -o.
5743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5744 fi
5745 fi
5746 fi
5747 else
5748 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5749 fi
5750 rm -f core conftest*
5751
5752 fi
5753 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5755 $as_echo "yes" >&6; }
5756 else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5759
5760 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5761
5762 fi
5763
5764 # FIXME: we rely on the cache variable name because
5765 # there is no other way.
5766 set dummy $CC
5767 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5768 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5769 if test "$am_t" != yes; then
5770 # Losing compiler, so override with the script.
5771 # FIXME: It is wrong to rewrite CC.
5772 # But if we don't then we get into trouble of one sort or another.
5773 # A longer-term fix would be to have automake use am__CC in this case,
5774 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5775 CC="$am_aux_dir/compile $CC"
5776 fi
5777
5778
5779
5780 if test x$GCC = xyes; then
5781 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5782 else
5783 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5784 fi
5785
5786 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5787
5788 # Avoid gnulib's threadlib module, as we do threads our own way.
5789
5790
5791 # Initialize gnulib right after choosing the compiler.
5792
5793 ac_ext=c
5794 ac_cpp='$CPP $CPPFLAGS'
5795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5799 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5800 # On Suns, sometimes $CPP names a directory.
5801 if test -n "$CPP" && test -d "$CPP"; then
5802 CPP=
5803 fi
5804 if test -z "$CPP"; then
5805 if test "${ac_cv_prog_CPP+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 # Double quotes because CPP needs to be expanded
5809 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5810 do
5811 ac_preproc_ok=false
5812 for ac_c_preproc_warn_flag in '' yes
5813 do
5814 # Use a header file that comes with gcc, so configuring glibc
5815 # with a fresh cross-compiler works.
5816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817 # <limits.h> exists even on freestanding compilers.
5818 # On the NeXT, cc -E runs the code through the compiler's parser,
5819 # not just through cpp. "Syntax error" is here to catch this case.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #ifdef __STDC__
5823 # include <limits.h>
5824 #else
5825 # include <assert.h>
5826 #endif
5827 Syntax error
5828 _ACEOF
5829 if ac_fn_c_try_cpp "$LINENO"; then :
5830
5831 else
5832 # Broken: fails on valid input.
5833 continue
5834 fi
5835 rm -f conftest.err conftest.$ac_ext
5836
5837 # OK, works on sane cases. Now check whether nonexistent headers
5838 # can be detected and how.
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #include <ac_nonexistent.h>
5842 _ACEOF
5843 if ac_fn_c_try_cpp "$LINENO"; then :
5844 # Broken: success on invalid input.
5845 continue
5846 else
5847 # Passes both tests.
5848 ac_preproc_ok=:
5849 break
5850 fi
5851 rm -f conftest.err conftest.$ac_ext
5852
5853 done
5854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855 rm -f conftest.err conftest.$ac_ext
5856 if $ac_preproc_ok; then :
5857 break
5858 fi
5859
5860 done
5861 ac_cv_prog_CPP=$CPP
5862
5863 fi
5864 CPP=$ac_cv_prog_CPP
5865 else
5866 ac_cv_prog_CPP=$CPP
5867 fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5869 $as_echo "$CPP" >&6; }
5870 ac_preproc_ok=false
5871 for ac_c_preproc_warn_flag in '' yes
5872 do
5873 # Use a header file that comes with gcc, so configuring glibc
5874 # with a fresh cross-compiler works.
5875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876 # <limits.h> exists even on freestanding compilers.
5877 # On the NeXT, cc -E runs the code through the compiler's parser,
5878 # not just through cpp. "Syntax error" is here to catch this case.
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 #ifdef __STDC__
5882 # include <limits.h>
5883 #else
5884 # include <assert.h>
5885 #endif
5886 Syntax error
5887 _ACEOF
5888 if ac_fn_c_try_cpp "$LINENO"; then :
5889
5890 else
5891 # Broken: fails on valid input.
5892 continue
5893 fi
5894 rm -f conftest.err conftest.$ac_ext
5895
5896 # OK, works on sane cases. Now check whether nonexistent headers
5897 # can be detected and how.
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900 #include <ac_nonexistent.h>
5901 _ACEOF
5902 if ac_fn_c_try_cpp "$LINENO"; then :
5903 # Broken: success on invalid input.
5904 continue
5905 else
5906 # Passes both tests.
5907 ac_preproc_ok=:
5908 break
5909 fi
5910 rm -f conftest.err conftest.$ac_ext
5911
5912 done
5913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5914 rm -f conftest.err conftest.$ac_ext
5915 if $ac_preproc_ok; then :
5916
5917 else
5918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5921 See \`config.log' for more details." "$LINENO" 5; }
5922 fi
5923
5924 ac_ext=c
5925 ac_cpp='$CPP $CPPFLAGS'
5926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5929
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5932 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5933 if test "${ac_cv_path_GREP+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if test -z "$GREP"; then
5937 ac_path_GREP_found=false
5938 # Loop through the user's path and test for each of PROGNAME-LIST
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_prog in grep ggrep; do
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5947 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5948 # Check for GNU ac_path_GREP and select it if it is found.
5949 # Check for GNU $ac_path_GREP
5950 case `"$ac_path_GREP" --version 2>&1` in
5951 *GNU*)
5952 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5953 *)
5954 ac_count=0
5955 $as_echo_n 0123456789 >"conftest.in"
5956 while :
5957 do
5958 cat "conftest.in" "conftest.in" >"conftest.tmp"
5959 mv "conftest.tmp" "conftest.in"
5960 cp "conftest.in" "conftest.nl"
5961 $as_echo 'GREP' >> "conftest.nl"
5962 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5964 as_fn_arith $ac_count + 1 && ac_count=$as_val
5965 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5966 # Best one so far, save it but keep looking for a better one
5967 ac_cv_path_GREP="$ac_path_GREP"
5968 ac_path_GREP_max=$ac_count
5969 fi
5970 # 10*(2^10) chars as input seems more than enough
5971 test $ac_count -gt 10 && break
5972 done
5973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5974 esac
5975
5976 $ac_path_GREP_found && break 3
5977 done
5978 done
5979 done
5980 IFS=$as_save_IFS
5981 if test -z "$ac_cv_path_GREP"; then
5982 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5983 fi
5984 else
5985 ac_cv_path_GREP=$GREP
5986 fi
5987
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5990 $as_echo "$ac_cv_path_GREP" >&6; }
5991 GREP="$ac_cv_path_GREP"
5992
5993
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5995 $as_echo_n "checking for egrep... " >&6; }
5996 if test "${ac_cv_path_EGREP+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6000 then ac_cv_path_EGREP="$GREP -E"
6001 else
6002 if test -z "$EGREP"; then
6003 ac_path_EGREP_found=false
6004 # Loop through the user's path and test for each of PROGNAME-LIST
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6007 do
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_prog in egrep; do
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6013 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6014 # Check for GNU ac_path_EGREP and select it if it is found.
6015 # Check for GNU $ac_path_EGREP
6016 case `"$ac_path_EGREP" --version 2>&1` in
6017 *GNU*)
6018 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6019 *)
6020 ac_count=0
6021 $as_echo_n 0123456789 >"conftest.in"
6022 while :
6023 do
6024 cat "conftest.in" "conftest.in" >"conftest.tmp"
6025 mv "conftest.tmp" "conftest.in"
6026 cp "conftest.in" "conftest.nl"
6027 $as_echo 'EGREP' >> "conftest.nl"
6028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6030 as_fn_arith $ac_count + 1 && ac_count=$as_val
6031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6032 # Best one so far, save it but keep looking for a better one
6033 ac_cv_path_EGREP="$ac_path_EGREP"
6034 ac_path_EGREP_max=$ac_count
6035 fi
6036 # 10*(2^10) chars as input seems more than enough
6037 test $ac_count -gt 10 && break
6038 done
6039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6040 esac
6041
6042 $ac_path_EGREP_found && break 3
6043 done
6044 done
6045 done
6046 IFS=$as_save_IFS
6047 if test -z "$ac_cv_path_EGREP"; then
6048 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6049 fi
6050 else
6051 ac_cv_path_EGREP=$EGREP
6052 fi
6053
6054 fi
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6057 $as_echo "$ac_cv_path_EGREP" >&6; }
6058 EGREP="$ac_cv_path_EGREP"
6059
6060
6061
6062
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6064 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6065 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071
6072 #ifdef __ACK__
6073 Amsterdam
6074 #endif
6075
6076 _ACEOF
6077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6078 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6079 gl_cv_c_amsterdam_compiler=yes
6080 else
6081 gl_cv_c_amsterdam_compiler=no
6082 fi
6083 rm -f conftest*
6084
6085
6086 fi
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6088 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6089 if test -z "$AR"; then
6090 if test $gl_cv_c_amsterdam_compiler = yes; then
6091 AR='cc -c.a'
6092 if test -z "$ARFLAGS"; then
6093 ARFLAGS='-o'
6094 fi
6095 else
6096 if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}ar; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if test "${ac_cv_prog_AR+set}" = set; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 if test -n "$AR"; then
6105 ac_cv_prog_AR="$AR" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_AR="${ac_tool_prefix}ar"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118 done
6119 done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 AR=$ac_cv_prog_AR
6125 if test -n "$AR"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6127 $as_echo "$AR" >&6; }
6128 else
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133
6134 fi
6135 if test -z "$ac_cv_prog_AR"; then
6136 ac_ct_AR=$AR
6137 # Extract the first word of "ar", so it can be a program name with args.
6138 set dummy ar; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 if test -n "$ac_ct_AR"; then
6145 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_ac_ct_AR="ar"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6157 fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6165 if test -n "$ac_ct_AR"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6167 $as_echo "$ac_ct_AR" >&6; }
6168 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172
6173 if test "x$ac_ct_AR" = x; then
6174 AR="ar"
6175 else
6176 case $cross_compiling:$ac_tool_warned in
6177 yes:)
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6181 esac
6182 AR=$ac_ct_AR
6183 fi
6184 else
6185 AR="$ac_cv_prog_AR"
6186 fi
6187
6188 if test -z "$ARFLAGS"; then
6189 ARFLAGS='cru'
6190 fi
6191 fi
6192 else
6193 if test -z "$ARFLAGS"; then
6194 ARFLAGS='cru'
6195 fi
6196 fi
6197
6198
6199 if test -z "$RANLIB"; then
6200 if test $gl_cv_c_amsterdam_compiler = yes; then
6201 RANLIB=':'
6202 else
6203 if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 if test -n "$RANLIB"; then
6212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6224 fi
6225 done
6226 done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 RANLIB=$ac_cv_prog_RANLIB
6232 if test -n "$RANLIB"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6234 $as_echo "$RANLIB" >&6; }
6235 else
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 fi
6239
6240
6241 fi
6242 if test -z "$ac_cv_prog_RANLIB"; then
6243 ac_ct_RANLIB=$RANLIB
6244 # Extract the first word of "ranlib", so it can be a program name with args.
6245 set dummy ranlib; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 if test -n "$ac_ct_RANLIB"; then
6252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_ac_ct_RANLIB="ranlib"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6272 if test -n "$ac_ct_RANLIB"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6274 $as_echo "$ac_ct_RANLIB" >&6; }
6275 else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279
6280 if test "x$ac_ct_RANLIB" = x; then
6281 RANLIB=":"
6282 else
6283 case $cross_compiling:$ac_tool_warned in
6284 yes:)
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289 RANLIB=$ac_ct_RANLIB
6290 fi
6291 else
6292 RANLIB="$ac_cv_prog_RANLIB"
6293 fi
6294
6295 fi
6296 fi
6297
6298
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6300 $as_echo_n "checking for ANSI C header files... " >&6; }
6301 if test "${ac_cv_header_stdc+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <stdlib.h>
6307 #include <stdarg.h>
6308 #include <string.h>
6309 #include <float.h>
6310
6311 int
6312 main ()
6313 {
6314
6315 ;
6316 return 0;
6317 }
6318 _ACEOF
6319 if ac_fn_c_try_compile "$LINENO"; then :
6320 ac_cv_header_stdc=yes
6321 else
6322 ac_cv_header_stdc=no
6323 fi
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325
6326 if test $ac_cv_header_stdc = yes; then
6327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330 #include <string.h>
6331
6332 _ACEOF
6333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6334 $EGREP "memchr" >/dev/null 2>&1; then :
6335
6336 else
6337 ac_cv_header_stdc=no
6338 fi
6339 rm -f conftest*
6340
6341 fi
6342
6343 if test $ac_cv_header_stdc = yes; then
6344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 #include <stdlib.h>
6348
6349 _ACEOF
6350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6351 $EGREP "free" >/dev/null 2>&1; then :
6352
6353 else
6354 ac_cv_header_stdc=no
6355 fi
6356 rm -f conftest*
6357
6358 fi
6359
6360 if test $ac_cv_header_stdc = yes; then
6361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6362 if test "$cross_compiling" = yes; then :
6363 :
6364 else
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 #include <ctype.h>
6368 #include <stdlib.h>
6369 #if ((' ' & 0x0FF) == 0x020)
6370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6372 #else
6373 # define ISLOWER(c) \
6374 (('a' <= (c) && (c) <= 'i') \
6375 || ('j' <= (c) && (c) <= 'r') \
6376 || ('s' <= (c) && (c) <= 'z'))
6377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6378 #endif
6379
6380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6381 int
6382 main ()
6383 {
6384 int i;
6385 for (i = 0; i < 256; i++)
6386 if (XOR (islower (i), ISLOWER (i))
6387 || toupper (i) != TOUPPER (i))
6388 return 2;
6389 return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_run "$LINENO"; then :
6393
6394 else
6395 ac_cv_header_stdc=no
6396 fi
6397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6398 conftest.$ac_objext conftest.beam conftest.$ac_ext
6399 fi
6400
6401 fi
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6404 $as_echo "$ac_cv_header_stdc" >&6; }
6405 if test $ac_cv_header_stdc = yes; then
6406
6407 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6408
6409 fi
6410
6411 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6412 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6413 inttypes.h stdint.h unistd.h
6414 do :
6415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6416 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6417 "
6418 eval as_val=\$$as_ac_Header
6419 if test "x$as_val" = x""yes; then :
6420 cat >>confdefs.h <<_ACEOF
6421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6422 _ACEOF
6423
6424 fi
6425
6426 done
6427
6428
6429
6430
6431
6432 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6433 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6434 MINIX=yes
6435 else
6436 MINIX=
6437 fi
6438
6439
6440 if test "$MINIX" = yes; then
6441
6442 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6443
6444
6445 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6446
6447
6448 $as_echo "#define _MINIX 1" >>confdefs.h
6449
6450 fi
6451
6452 case "$host_os" in
6453 hpux*)
6454
6455 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6456
6457 ;;
6458 esac
6459
6460
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6462 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6463 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468
6469 # define __EXTENSIONS__ 1
6470 $ac_includes_default
6471 int
6472 main ()
6473 {
6474
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 ac_cv_safe_to_define___extensions__=yes
6481 else
6482 ac_cv_safe_to_define___extensions__=no
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 fi
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6487 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6488 test $ac_cv_safe_to_define___extensions__ = yes &&
6489 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6490
6491 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6492
6493 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6494
6495 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6496
6497 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6498
6499 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6500
6501
6502
6503
6504
6505
6506
6507
6508 # Check whether --enable-largefile was given.
6509 if test "${enable_largefile+set}" = set; then :
6510 enableval=$enable_largefile;
6511 fi
6512
6513 if test "$enable_largefile" != no; then
6514
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6516 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6517 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 ac_cv_sys_largefile_CC=no
6521 if test "$GCC" != yes; then
6522 ac_save_CC=$CC
6523 while :; do
6524 # IRIX 6.2 and later do not support large files by default,
6525 # so use the C compiler's -n32 option if that helps.
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 #include <sys/types.h>
6529 /* Check that off_t can represent 2**63 - 1 correctly.
6530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6531 since some C++ compilers masquerading as C compilers
6532 incorrectly reject 9223372036854775807. */
6533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6535 && LARGE_OFF_T % 2147483647 == 1)
6536 ? 1 : -1];
6537 int
6538 main ()
6539 {
6540
6541 ;
6542 return 0;
6543 }
6544 _ACEOF
6545 if ac_fn_c_try_compile "$LINENO"; then :
6546 break
6547 fi
6548 rm -f core conftest.err conftest.$ac_objext
6549 CC="$CC -n32"
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551 ac_cv_sys_largefile_CC=' -n32'; break
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext
6554 break
6555 done
6556 CC=$ac_save_CC
6557 rm -f conftest.$ac_ext
6558 fi
6559 fi
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6561 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6562 if test "$ac_cv_sys_largefile_CC" != no; then
6563 CC=$CC$ac_cv_sys_largefile_CC
6564 fi
6565
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6567 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6568 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 while :; do
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 #include <sys/types.h>
6575 /* Check that off_t can represent 2**63 - 1 correctly.
6576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6577 since some C++ compilers masquerading as C compilers
6578 incorrectly reject 9223372036854775807. */
6579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6581 && LARGE_OFF_T % 2147483647 == 1)
6582 ? 1 : -1];
6583 int
6584 main ()
6585 {
6586
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592 ac_cv_sys_file_offset_bits=no; break
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #define _FILE_OFFSET_BITS 64
6598 #include <sys/types.h>
6599 /* Check that off_t can represent 2**63 - 1 correctly.
6600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6601 since some C++ compilers masquerading as C compilers
6602 incorrectly reject 9223372036854775807. */
6603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6605 && LARGE_OFF_T % 2147483647 == 1)
6606 ? 1 : -1];
6607 int
6608 main ()
6609 {
6610
6611 ;
6612 return 0;
6613 }
6614 _ACEOF
6615 if ac_fn_c_try_compile "$LINENO"; then :
6616 ac_cv_sys_file_offset_bits=64; break
6617 fi
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 ac_cv_sys_file_offset_bits=unknown
6620 break
6621 done
6622 fi
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6624 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6625 case $ac_cv_sys_file_offset_bits in #(
6626 no | unknown) ;;
6627 *)
6628 cat >>confdefs.h <<_ACEOF
6629 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6630 _ACEOF
6631 ;;
6632 esac
6633 rm -rf conftest*
6634 if test $ac_cv_sys_file_offset_bits = unknown; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6636 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6637 if test "${ac_cv_sys_large_files+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 while :; do
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 #include <sys/types.h>
6644 /* Check that off_t can represent 2**63 - 1 correctly.
6645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6646 since some C++ compilers masquerading as C compilers
6647 incorrectly reject 9223372036854775807. */
6648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6650 && LARGE_OFF_T % 2147483647 == 1)
6651 ? 1 : -1];
6652 int
6653 main ()
6654 {
6655
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 if ac_fn_c_try_compile "$LINENO"; then :
6661 ac_cv_sys_large_files=no; break
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #define _LARGE_FILES 1
6667 #include <sys/types.h>
6668 /* Check that off_t can represent 2**63 - 1 correctly.
6669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6670 since some C++ compilers masquerading as C compilers
6671 incorrectly reject 9223372036854775807. */
6672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6674 && LARGE_OFF_T % 2147483647 == 1)
6675 ? 1 : -1];
6676 int
6677 main ()
6678 {
6679
6680 ;
6681 return 0;
6682 }
6683 _ACEOF
6684 if ac_fn_c_try_compile "$LINENO"; then :
6685 ac_cv_sys_large_files=1; break
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 ac_cv_sys_large_files=unknown
6689 break
6690 done
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6693 $as_echo "$ac_cv_sys_large_files" >&6; }
6694 case $ac_cv_sys_large_files in #(
6695 no | unknown) ;;
6696 *)
6697 cat >>confdefs.h <<_ACEOF
6698 #define _LARGE_FILES $ac_cv_sys_large_files
6699 _ACEOF
6700 ;;
6701 esac
6702 rm -rf conftest*
6703 fi
6704
6705
6706 fi
6707
6708 case $ac_cv_prog_cc_stdc in #(
6709 no) :
6710 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6711 *) :
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6713 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6714 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 ac_cv_prog_cc_c99=no
6718 ac_save_CC=$CC
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 #include <stdarg.h>
6722 #include <stdbool.h>
6723 #include <stdlib.h>
6724 #include <wchar.h>
6725 #include <stdio.h>
6726
6727 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6728 #define debug(...) fprintf (stderr, __VA_ARGS__)
6729 #define showlist(...) puts (#__VA_ARGS__)
6730 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6731 static void
6732 test_varargs_macros (void)
6733 {
6734 int x = 1234;
6735 int y = 5678;
6736 debug ("Flag");
6737 debug ("X = %d\n", x);
6738 showlist (The first, second, and third items.);
6739 report (x>y, "x is %d but y is %d", x, y);
6740 }
6741
6742 // Check long long types.
6743 #define BIG64 18446744073709551615ull
6744 #define BIG32 4294967295ul
6745 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6746 #if !BIG_OK
6747 your preprocessor is broken;
6748 #endif
6749 #if BIG_OK
6750 #else
6751 your preprocessor is broken;
6752 #endif
6753 static long long int bignum = -9223372036854775807LL;
6754 static unsigned long long int ubignum = BIG64;
6755
6756 struct incomplete_array
6757 {
6758 int datasize;
6759 double data[];
6760 };
6761
6762 struct named_init {
6763 int number;
6764 const wchar_t *name;
6765 double average;
6766 };
6767
6768 typedef const char *ccp;
6769
6770 static inline int
6771 test_restrict (ccp restrict text)
6772 {
6773 // See if C++-style comments work.
6774 // Iterate through items via the restricted pointer.
6775 // Also check for declarations in for loops.
6776 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6777 continue;
6778 return 0;
6779 }
6780
6781 // Check varargs and va_copy.
6782 static void
6783 test_varargs (const char *format, ...)
6784 {
6785 va_list args;
6786 va_start (args, format);
6787 va_list args_copy;
6788 va_copy (args_copy, args);
6789
6790 const char *str;
6791 int number;
6792 float fnumber;
6793
6794 while (*format)
6795 {
6796 switch (*format++)
6797 {
6798 case 's': // string
6799 str = va_arg (args_copy, const char *);
6800 break;
6801 case 'd': // int
6802 number = va_arg (args_copy, int);
6803 break;
6804 case 'f': // float
6805 fnumber = va_arg (args_copy, double);
6806 break;
6807 default:
6808 break;
6809 }
6810 }
6811 va_end (args_copy);
6812 va_end (args);
6813 }
6814
6815 int
6816 main ()
6817 {
6818
6819 // Check bool.
6820 _Bool success = false;
6821
6822 // Check restrict.
6823 if (test_restrict ("String literal") == 0)
6824 success = true;
6825 char *restrict newvar = "Another string";
6826
6827 // Check varargs.
6828 test_varargs ("s, d' f .", "string", 65, 34.234);
6829 test_varargs_macros ();
6830
6831 // Check flexible array members.
6832 struct incomplete_array *ia =
6833 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6834 ia->datasize = 10;
6835 for (int i = 0; i < ia->datasize; ++i)
6836 ia->data[i] = i * 1.234;
6837
6838 // Check named initializers.
6839 struct named_init ni = {
6840 .number = 34,
6841 .name = L"Test wide string",
6842 .average = 543.34343,
6843 };
6844
6845 ni.number = 58;
6846
6847 int dynamic_array[ni.number];
6848 dynamic_array[ni.number - 1] = 543;
6849
6850 // work around unused variable warnings
6851 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6852 || dynamic_array[ni.number - 1] != 543);
6853
6854 ;
6855 return 0;
6856 }
6857 _ACEOF
6858 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6859 do
6860 CC="$ac_save_CC $ac_arg"
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862 ac_cv_prog_cc_c99=$ac_arg
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext
6865 test "x$ac_cv_prog_cc_c99" != "xno" && break
6866 done
6867 rm -f conftest.$ac_ext
6868 CC=$ac_save_CC
6869
6870 fi
6871 # AC_CACHE_VAL
6872 case "x$ac_cv_prog_cc_c99" in
6873 x)
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6875 $as_echo "none needed" >&6; } ;;
6876 xno)
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6878 $as_echo "unsupported" >&6; } ;;
6879 *)
6880 CC="$CC $ac_cv_prog_cc_c99"
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6882 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6883 esac
6884 if test "x$ac_cv_prog_cc_c99" != xno; then :
6885 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6886 else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6888 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6889 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 ac_cv_prog_cc_c89=no
6893 ac_save_CC=$CC
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 #include <stdarg.h>
6897 #include <stdio.h>
6898 #include <sys/types.h>
6899 #include <sys/stat.h>
6900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6901 struct buf { int x; };
6902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6903 static char *e (p, i)
6904 char **p;
6905 int i;
6906 {
6907 return p[i];
6908 }
6909 static char *f (char * (*g) (char **, int), char **p, ...)
6910 {
6911 char *s;
6912 va_list v;
6913 va_start (v,p);
6914 s = g (p, va_arg (v,int));
6915 va_end (v);
6916 return s;
6917 }
6918
6919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6920 function prototypes and stuff, but not '\xHH' hex character constants.
6921 These don't provoke an error unfortunately, instead are silently treated
6922 as 'x'. The following induces an error, until -std is added to get
6923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6924 array size at least. It's necessary to write '\x00'==0 to get something
6925 that's true only with -std. */
6926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6927
6928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6929 inside strings and character constants. */
6930 #define FOO(x) 'x'
6931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6932
6933 int test (int i, double x);
6934 struct s1 {int (*f) (int a);};
6935 struct s2 {int (*f) (double a);};
6936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6937 int argc;
6938 char **argv;
6939 int
6940 main ()
6941 {
6942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6943 ;
6944 return 0;
6945 }
6946 _ACEOF
6947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6949 do
6950 CC="$ac_save_CC $ac_arg"
6951 if ac_fn_c_try_compile "$LINENO"; then :
6952 ac_cv_prog_cc_c89=$ac_arg
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext
6955 test "x$ac_cv_prog_cc_c89" != "xno" && break
6956 done
6957 rm -f conftest.$ac_ext
6958 CC=$ac_save_CC
6959
6960 fi
6961 # AC_CACHE_VAL
6962 case "x$ac_cv_prog_cc_c89" in
6963 x)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6965 $as_echo "none needed" >&6; } ;;
6966 xno)
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6968 $as_echo "unsupported" >&6; } ;;
6969 *)
6970 CC="$CC $ac_cv_prog_cc_c89"
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6973 esac
6974 if test "x$ac_cv_prog_cc_c89" != xno; then :
6975 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6976 else
6977 ac_cv_prog_cc_stdc=no
6978 fi
6979
6980 fi
6981 ;;
6982 esac
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6984 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6985 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6987 fi
6988
6989 case $ac_cv_prog_cc_stdc in #(
6990 no) :
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6992 $as_echo "unsupported" >&6; } ;; #(
6993 '') :
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6995 $as_echo "none needed" >&6; } ;; #(
6996 *) :
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6998 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6999 esac
7000
7001
7002
7003 # Code from module alloca-opt:
7004 # Code from module allocator:
7005 # Code from module c-ctype:
7006 # Code from module c-strcase:
7007 # Code from module careadlinkat:
7008 # Code from module clock-time:
7009 # Code from module close-stream:
7010 # Code from module crypto/md5:
7011 # Code from module crypto/sha1:
7012 # Code from module crypto/sha256:
7013 # Code from module crypto/sha512:
7014 # Code from module dosname:
7015 # Code from module dtoastr:
7016 # Code from module dtotimespec:
7017 # Code from module dup2:
7018 # Code from module environ:
7019 # Code from module euidaccess:
7020 # Code from module execinfo:
7021 # Code from module extensions:
7022
7023 # Code from module extern-inline:
7024 # Code from module faccessat:
7025 # Code from module fcntl-h:
7026 # Code from module filemode:
7027 # Code from module fpending:
7028 # Code from module getgroups:
7029 # Code from module getloadavg:
7030 # Code from module getopt-gnu:
7031 # Code from module getopt-posix:
7032 # Code from module gettext-h:
7033 # Code from module gettime:
7034 # Code from module gettimeofday:
7035 # Code from module group-member:
7036 # Code from module ignore-value:
7037 # Code from module include_next:
7038 # Code from module intprops:
7039 # Code from module inttypes-incomplete:
7040 # Code from module largefile:
7041
7042 # Code from module lstat:
7043 # Code from module manywarnings:
7044 # Code from module mktime:
7045 # Code from module multiarch:
7046 # Code from module nocrash:
7047 # Code from module pathmax:
7048 # Code from module pselect:
7049 # Code from module pthread_sigmask:
7050 # Code from module putenv:
7051 # Code from module readlink:
7052 # Code from module root-uid:
7053 # Code from module sig2str:
7054 # Code from module signal-h:
7055 # Code from module snippet/_Noreturn:
7056 # Code from module snippet/arg-nonnull:
7057 # Code from module snippet/c++defs:
7058 # Code from module snippet/warn-on-use:
7059 # Code from module socklen:
7060 # Code from module ssize_t:
7061 # Code from module stat:
7062 # Code from module stat-time:
7063 # Code from module stdalign:
7064 # Code from module stdarg:
7065
7066
7067
7068 # Code from module stdbool:
7069 # Code from module stddef:
7070 # Code from module stdint:
7071 # Code from module stdio:
7072 # Code from module stdlib:
7073 # Code from module strftime:
7074 # Code from module strtoimax:
7075 # Code from module strtoll:
7076 # Code from module strtoull:
7077 # Code from module strtoumax:
7078 # Code from module symlink:
7079 # Code from module sys_select:
7080 # Code from module sys_stat:
7081 # Code from module sys_time:
7082 # Code from module time:
7083 # Code from module time_r:
7084 # Code from module timer-time:
7085 # Code from module timespec:
7086 # Code from module timespec-add:
7087 # Code from module timespec-sub:
7088 # Code from module u64:
7089 # Code from module unistd:
7090 # Code from module unsetenv:
7091 # Code from module utimens:
7092 # Code from module verify:
7093 # Code from module warnings:
7094 # Code from module xalloc-oversized:
7095
7096
7097 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7098 # if -g3 works and the user does not specify CFLAGS.
7099 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7100 if test "$ac_test_CFLAGS" != set; then
7101 case $CFLAGS in
7102 '-g')
7103 emacs_g3_CFLAGS='-g3';;
7104 '-g -O2')
7105 emacs_g3_CFLAGS='-g3 -O2';;
7106 *)
7107 emacs_g3_CFLAGS='';;
7108 esac
7109 if test -n "$emacs_g3_CFLAGS"; then
7110 emacs_save_CFLAGS=$CFLAGS
7111 CFLAGS=$emacs_g3_CFLAGS
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7113 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7114 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119
7120 int
7121 main ()
7122 {
7123
7124 ;
7125 return 0;
7126 }
7127 _ACEOF
7128 if ac_fn_c_try_link "$LINENO"; then :
7129 emacs_cv_prog_cc_g3=yes
7130 else
7131 emacs_cv_prog_cc_g3=no
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext \
7134 conftest$ac_exeext conftest.$ac_ext
7135 fi
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7137 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7138 if test $emacs_cv_prog_cc_g3 = yes; then
7139 CFLAGS=$emacs_g3_CFLAGS
7140 else
7141 CFLAGS=$emacs_save_CFLAGS
7142 fi
7143 fi
7144 fi
7145
7146 # Check whether --enable-gcc-warnings was given.
7147 if test "${enable_gcc_warnings+set}" = set; then :
7148 enableval=$enable_gcc_warnings; case $enableval in
7149 yes|no) ;;
7150 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7151 esac
7152 gl_gcc_warnings=$enableval
7153 else
7154 gl_gcc_warnings=no
7155
7156 fi
7157
7158
7159 # Check whether --enable-link-time-optimization was given.
7160 if test "${enable_link_time_optimization+set}" = set; then :
7161 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7163 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7164 ac_lto_supported=no
7165 if test x$GCC = xyes; then
7166 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7167 if test x$CPUS != x; then
7168 LTO="-flto=$CPUS"
7169 else
7170 LTO="-flto"
7171 fi
7172 old_CFLAGS=$CFLAGS
7173 CFLAGS="$CFLAGS $LTO"
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176
7177 int
7178 main ()
7179 {
7180
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_c_try_compile "$LINENO"; then :
7186 ac_lto_supported=yes
7187 else
7188 ac_lto_supported=no
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 CFLAGS="$old_CFLAGS"
7192 fi
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7194 $as_echo "$ac_lto_supported" >&6; }
7195 if test "$ac_lto_supported" = "yes"; then
7196 CFLAGS="$CFLAGS $LTO"
7197 fi
7198 fi
7199 fi
7200
7201
7202 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7203 # ------------------------------------------------
7204 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7205 # Otherwise, run RUN-IF-NOT-FOUND.
7206
7207
7208 # When compiling with GCC, prefer -isystem to -I when including system
7209 # include files, to avoid generating useless diagnostics for the files.
7210 if test "$gl_gcc_warnings" != yes; then
7211 isystem='-I'
7212 else
7213 isystem='-isystem '
7214
7215 # This, $nw, is the list of warnings we disable.
7216 nw=
7217
7218 case $with_x_toolkit in
7219 lucid | athena | motif)
7220 # Old toolkits mishandle 'const'.
7221 nw="$nw -Wwrite-strings"
7222 ;;
7223 *)
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7225 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7226 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229
7230 gl_save_compiler_FLAGS="$CFLAGS"
7231 as_fn_append CFLAGS " -Werror"
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234
7235 int
7236 main ()
7237 {
7238
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 if ac_fn_c_try_compile "$LINENO"; then :
7244 gl_cv_warn_c__Werror=yes
7245 else
7246 gl_cv_warn_c__Werror=no
7247 fi
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 CFLAGS="$gl_save_compiler_FLAGS"
7250
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7253 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7254 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7255 as_fn_append WERROR_CFLAGS " -Werror"
7256 fi
7257
7258
7259 ;;
7260 esac
7261
7262
7263 nw="$nw -Waggregate-return" # anachronistic
7264 nw="$nw -Wlong-long" # C90 is anachronistic
7265 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7266 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7267 nw="$nw -Wtraditional" # Warns on #elif which we use often
7268 nw="$nw -Wcast-qual" # Too many warnings for now
7269 nw="$nw -Wconversion" # Too many warnings for now
7270 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7271 nw="$nw -Wsign-conversion" # Too many warnings for now
7272 nw="$nw -Woverlength-strings" # Not a problem these days
7273 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7274 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7275 nw="$nw -Wpadded" # Our structs are not padded
7276 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7277 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7278 nw="$nw -Wformat-nonliteral" # we do this a lot
7279 nw="$nw -Wvla" # warnings in gettext.h
7280 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7281 nw="$nw -Wswitch-enum" # Too many warnings for now
7282 nw="$nw -Wswitch-default" # Too many warnings for now
7283 nw="$nw -Wfloat-equal" # warns about high-quality code
7284 nw="$nw -Winline" # OK to ignore 'inline'
7285 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7286 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7287 # signed overflow has undefined behavior
7288 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7289 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7290
7291 # Emacs doesn't care about shadowing; see
7292 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7293 nw="$nw -Wshadow"
7294
7295 # Emacs's use of alloca inhibits protecting the stack.
7296 nw="$nw -Wstack-protector"
7297
7298 # The following line should be removable at some point.
7299 nw="$nw -Wsuggest-attribute=pure"
7300
7301
7302
7303 if test -n "$GCC"; then
7304
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7306 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7307 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310
7311 gl_save_CFLAGS="$CFLAGS"
7312 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315
7316 int
7317 main ()
7318 {
7319
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_c_try_compile "$LINENO"; then :
7325 gl_cv_cc_nomfi_supported=yes
7326 else
7327 gl_cv_cc_nomfi_supported=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 CFLAGS="$gl_save_CFLAGS"
7331 fi
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7334 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7335
7336 if test "$gl_cv_cc_nomfi_supported" = yes; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7338 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7339 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342
7343 gl_save_CFLAGS="$CFLAGS"
7344 CFLAGS="$CFLAGS -W -Werror"
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 void f (void)
7348 {
7349 typedef struct { int a; int b; } s_t;
7350 s_t s1 = { 0, };
7351 }
7352
7353 int
7354 main ()
7355 {
7356
7357 ;
7358 return 0;
7359 }
7360 _ACEOF
7361 if ac_fn_c_try_compile "$LINENO"; then :
7362 gl_cv_cc_nomfi_needed=no
7363 else
7364 gl_cv_cc_nomfi_needed=yes
7365 fi
7366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 CFLAGS="$gl_save_CFLAGS"
7368
7369 fi
7370
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7372 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7373 fi
7374
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7376 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7377 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380
7381 gl_save_CFLAGS="$CFLAGS"
7382 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385
7386 int
7387 main ()
7388 {
7389
7390 ;
7391 return 0;
7392 }
7393 _ACEOF
7394 if ac_fn_c_try_compile "$LINENO"; then :
7395 gl_cv_cc_uninitialized_supported=yes
7396 else
7397 gl_cv_cc_uninitialized_supported=no
7398 fi
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 CFLAGS="$gl_save_CFLAGS"
7401 fi
7402
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7404 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7405
7406 fi
7407
7408 # List all gcc warning categories.
7409 gl_manywarn_set=
7410 for gl_manywarn_item in \
7411 -W \
7412 -Wabi \
7413 -Waddress \
7414 -Wall \
7415 -Warray-bounds \
7416 -Wattributes \
7417 -Wbad-function-cast \
7418 -Wbuiltin-macro-redefined \
7419 -Wcast-align \
7420 -Wchar-subscripts \
7421 -Wclobbered \
7422 -Wcomment \
7423 -Wcomments \
7424 -Wcoverage-mismatch \
7425 -Wcpp \
7426 -Wdeprecated \
7427 -Wdeprecated-declarations \
7428 -Wdisabled-optimization \
7429 -Wdiv-by-zero \
7430 -Wdouble-promotion \
7431 -Wempty-body \
7432 -Wendif-labels \
7433 -Wenum-compare \
7434 -Wextra \
7435 -Wformat-contains-nul \
7436 -Wformat-extra-args \
7437 -Wformat-nonliteral \
7438 -Wformat-security \
7439 -Wformat-y2k \
7440 -Wformat-zero-length \
7441 -Wformat=2 \
7442 -Wfree-nonheap-object \
7443 -Wignored-qualifiers \
7444 -Wimplicit \
7445 -Wimplicit-function-declaration \
7446 -Wimplicit-int \
7447 -Winit-self \
7448 -Winline \
7449 -Wint-to-pointer-cast \
7450 -Winvalid-memory-model \
7451 -Winvalid-pch \
7452 -Wjump-misses-init \
7453 -Wlogical-op \
7454 -Wmain \
7455 -Wmaybe-uninitialized \
7456 -Wmissing-braces \
7457 -Wmissing-declarations \
7458 -Wmissing-field-initializers \
7459 -Wmissing-format-attribute \
7460 -Wmissing-include-dirs \
7461 -Wmissing-noreturn \
7462 -Wmissing-parameter-type \
7463 -Wmissing-prototypes \
7464 -Wmudflap \
7465 -Wmultichar \
7466 -Wnarrowing \
7467 -Wnested-externs \
7468 -Wnonnull \
7469 -Wnormalized=nfc \
7470 -Wold-style-declaration \
7471 -Wold-style-definition \
7472 -Woverflow \
7473 -Woverlength-strings \
7474 -Woverride-init \
7475 -Wpacked \
7476 -Wpacked-bitfield-compat \
7477 -Wparentheses \
7478 -Wpointer-arith \
7479 -Wpointer-sign \
7480 -Wpointer-to-int-cast \
7481 -Wpragmas \
7482 -Wreturn-type \
7483 -Wsequence-point \
7484 -Wshadow \
7485 -Wsizeof-pointer-memaccess \
7486 -Wstack-protector \
7487 -Wstrict-aliasing \
7488 -Wstrict-overflow \
7489 -Wstrict-prototypes \
7490 -Wsuggest-attribute=const \
7491 -Wsuggest-attribute=format \
7492 -Wsuggest-attribute=noreturn \
7493 -Wsuggest-attribute=pure \
7494 -Wswitch \
7495 -Wswitch-default \
7496 -Wsync-nand \
7497 -Wsystem-headers \
7498 -Wtrampolines \
7499 -Wtrigraphs \
7500 -Wtype-limits \
7501 -Wuninitialized \
7502 -Wunknown-pragmas \
7503 -Wunreachable-code \
7504 -Wunsafe-loop-optimizations \
7505 -Wunused \
7506 -Wunused-but-set-parameter \
7507 -Wunused-but-set-variable \
7508 -Wunused-function \
7509 -Wunused-label \
7510 -Wunused-local-typedefs \
7511 -Wunused-macros \
7512 -Wunused-parameter \
7513 -Wunused-result \
7514 -Wunused-value \
7515 -Wunused-variable \
7516 -Wvarargs \
7517 -Wvariadic-macros \
7518 -Wvector-operation-performance \
7519 -Wvla \
7520 -Wvolatile-register-var \
7521 -Wwrite-strings \
7522 \
7523 ; do
7524 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7525 done
7526
7527 # Disable specific options as needed.
7528 if test "$gl_cv_cc_nomfi_needed" = yes; then
7529 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7530 fi
7531
7532 if test "$gl_cv_cc_uninitialized_supported" = no; then
7533 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7534 fi
7535
7536 ws=$gl_manywarn_set
7537
7538
7539 gl_warn_set=
7540 set x $ws; shift
7541 for gl_warn_item
7542 do
7543 case " $nw " in
7544 *" $gl_warn_item "*)
7545 ;;
7546 *)
7547 gl_warn_set="$gl_warn_set $gl_warn_item"
7548 ;;
7549 esac
7550 done
7551 ws=$gl_warn_set
7552
7553 for w in $ws; do
7554 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7556 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7557 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560
7561 gl_save_compiler_FLAGS="$CFLAGS"
7562 as_fn_append CFLAGS " $w"
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7565
7566 int
7567 main ()
7568 {
7569
7570 ;
7571 return 0;
7572 }
7573 _ACEOF
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575 eval "$as_gl_Warn=yes"
7576 else
7577 eval "$as_gl_Warn=no"
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 CFLAGS="$gl_save_compiler_FLAGS"
7581
7582 fi
7583 eval ac_res=\$$as_gl_Warn
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7585 $as_echo "$ac_res" >&6; }
7586 eval as_val=\$$as_gl_Warn
7587 if test "x$as_val" = x""yes; then :
7588 as_fn_append WARN_CFLAGS " $w"
7589 fi
7590
7591
7592 done
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7594 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7595 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598
7599 gl_save_compiler_FLAGS="$CFLAGS"
7600 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603
7604 int
7605 main ()
7606 {
7607
7608 ;
7609 return 0;
7610 }
7611 _ACEOF
7612 if ac_fn_c_try_compile "$LINENO"; then :
7613 gl_cv_warn_c__Wno_missing_field_initializers=yes
7614 else
7615 gl_cv_warn_c__Wno_missing_field_initializers=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 CFLAGS="$gl_save_compiler_FLAGS"
7619
7620 fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7622 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7623 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7624 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7625 fi
7626
7627 # We need this one
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7629 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7630 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633
7634 gl_save_compiler_FLAGS="$CFLAGS"
7635 as_fn_append CFLAGS " -Wno-sign-compare"
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638
7639 int
7640 main ()
7641 {
7642
7643 ;
7644 return 0;
7645 }
7646 _ACEOF
7647 if ac_fn_c_try_compile "$LINENO"; then :
7648 gl_cv_warn_c__Wno_sign_compare=yes
7649 else
7650 gl_cv_warn_c__Wno_sign_compare=no
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 CFLAGS="$gl_save_compiler_FLAGS"
7654
7655 fi
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7657 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7658 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7659 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7660 fi
7661
7662 # Too many warnings for now
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7664 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7665 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668
7669 gl_save_compiler_FLAGS="$CFLAGS"
7670 as_fn_append CFLAGS " -Wno-type-limits"
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7673
7674 int
7675 main ()
7676 {
7677
7678 ;
7679 return 0;
7680 }
7681 _ACEOF
7682 if ac_fn_c_try_compile "$LINENO"; then :
7683 gl_cv_warn_c__Wno_type_limits=yes
7684 else
7685 gl_cv_warn_c__Wno_type_limits=no
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688 CFLAGS="$gl_save_compiler_FLAGS"
7689
7690 fi
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7692 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7693 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7694 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7695 fi
7696
7697 # Too many warnings for now
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7699 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7700 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703
7704 gl_save_compiler_FLAGS="$CFLAGS"
7705 as_fn_append CFLAGS " -Wno-switch"
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7708
7709 int
7710 main ()
7711 {
7712
7713 ;
7714 return 0;
7715 }
7716 _ACEOF
7717 if ac_fn_c_try_compile "$LINENO"; then :
7718 gl_cv_warn_c__Wno_switch=yes
7719 else
7720 gl_cv_warn_c__Wno_switch=no
7721 fi
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 CFLAGS="$gl_save_compiler_FLAGS"
7724
7725 fi
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7727 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7728 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7729 as_fn_append WARN_CFLAGS " -Wno-switch"
7730 fi
7731
7732 # Too many warnings for now
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7734 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7735 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738
7739 gl_save_compiler_FLAGS="$CFLAGS"
7740 as_fn_append CFLAGS " -Wno-unused-parameter"
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743
7744 int
7745 main ()
7746 {
7747
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 gl_cv_warn_c__Wno_unused_parameter=yes
7754 else
7755 gl_cv_warn_c__Wno_unused_parameter=no
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 CFLAGS="$gl_save_compiler_FLAGS"
7759
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7762 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7763 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7764 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7765 fi
7766
7767 # Too many warnings for now
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7769 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7770 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773
7774 gl_save_compiler_FLAGS="$CFLAGS"
7775 as_fn_append CFLAGS " -Wno-format-nonliteral"
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778
7779 int
7780 main ()
7781 {
7782
7783 ;
7784 return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788 gl_cv_warn_c__Wno_format_nonliteral=yes
7789 else
7790 gl_cv_warn_c__Wno_format_nonliteral=no
7791 fi
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 CFLAGS="$gl_save_compiler_FLAGS"
7794
7795 fi
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7797 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7798 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7799 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7800 fi
7801
7802
7803
7804 # In spite of excluding -Wlogical-op above, it is enabled, as of
7805 # gcc 4.5.0 20090517.
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7807 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7808 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811
7812 gl_save_compiler_FLAGS="$CFLAGS"
7813 as_fn_append CFLAGS " -Wno-logical-op"
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816
7817 int
7818 main ()
7819 {
7820
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 if ac_fn_c_try_compile "$LINENO"; then :
7826 gl_cv_warn_c__Wno_logical_op=yes
7827 else
7828 gl_cv_warn_c__Wno_logical_op=no
7829 fi
7830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831 CFLAGS="$gl_save_compiler_FLAGS"
7832
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7835 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7836 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7837 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7838 fi
7839
7840
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7843 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7844 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847
7848 gl_save_compiler_FLAGS="$CFLAGS"
7849 as_fn_append CFLAGS " -fdiagnostics-show-option"
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852
7853 int
7854 main ()
7855 {
7856
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_compile "$LINENO"; then :
7862 gl_cv_warn_c__fdiagnostics_show_option=yes
7863 else
7864 gl_cv_warn_c__fdiagnostics_show_option=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 CFLAGS="$gl_save_compiler_FLAGS"
7868
7869 fi
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7871 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7872 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7873 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7874 fi
7875
7876
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7878 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7879 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882
7883 gl_save_compiler_FLAGS="$CFLAGS"
7884 as_fn_append CFLAGS " -funit-at-a-time"
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887
7888 int
7889 main ()
7890 {
7891
7892 ;
7893 return 0;
7894 }
7895 _ACEOF
7896 if ac_fn_c_try_compile "$LINENO"; then :
7897 gl_cv_warn_c__funit_at_a_time=yes
7898 else
7899 gl_cv_warn_c__funit_at_a_time=no
7900 fi
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902 CFLAGS="$gl_save_compiler_FLAGS"
7903
7904 fi
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7906 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7907 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7908 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7909 fi
7910
7911
7912
7913
7914 $as_echo "#define lint 1" >>confdefs.h
7915
7916
7917
7918 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7919
7920
7921 # We use a slightly smaller set of warning options for lib/.
7922 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7923 nw=
7924 nw="$nw -Wunused-macros"
7925
7926
7927 gl_warn_set=
7928 set x $WARN_CFLAGS; shift
7929 for gl_warn_item
7930 do
7931 case " $nw " in
7932 *" $gl_warn_item "*)
7933 ;;
7934 *)
7935 gl_warn_set="$gl_warn_set $gl_warn_item"
7936 ;;
7937 esac
7938 done
7939 GNULIB_WARN_CFLAGS=$gl_warn_set
7940
7941
7942 fi
7943
7944
7945
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7947 $as_echo_n "checking whether ln -s works... " >&6; }
7948 LN_S=$as_ln_s
7949 if test "$LN_S" = "ln -s"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7951 $as_echo "yes" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7954 $as_echo "no, using $LN_S" >&6; }
7955 fi
7956
7957
7958 # Extract the first word of "install-info", so it can be a program name with args.
7959 set dummy install-info; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 case $INSTALL_INFO in
7966 [\\/]* | ?:[\\/]*)
7967 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7968 ;;
7969 *)
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7972 do
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7980 fi
7981 done
7982 done
7983 IFS=$as_save_IFS
7984
7985 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7986 ;;
7987 esac
7988 fi
7989 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7990 if test -n "$INSTALL_INFO"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7992 $as_echo "$INSTALL_INFO" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 fi
7997
7998
7999 # Extract the first word of "gzip", so it can be a program name with args.
8000 set dummy gzip; ac_word=$2
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002 $as_echo_n "checking for $ac_word... " >&6; }
8003 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 case $GZIP_PROG in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022 done
8023 done
8024 IFS=$as_save_IFS
8025
8026 ;;
8027 esac
8028 fi
8029 GZIP_PROG=$ac_cv_path_GZIP_PROG
8030 if test -n "$GZIP_PROG"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8032 $as_echo "$GZIP_PROG" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8036 fi
8037
8038
8039
8040 if test $opsys = gnu-linux; then
8041 # Extract the first word of "paxctl", so it can be a program name with args.
8042 set dummy paxctl; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 case $PAXCTL in
8049 [\\/]* | ?:[\\/]*)
8050 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8051 ;;
8052 *)
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8055 do
8056 IFS=$as_save_IFS
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8060 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 break 2
8063 fi
8064 done
8065 done
8066 IFS=$as_save_IFS
8067
8068 ;;
8069 esac
8070 fi
8071 PAXCTL=$ac_cv_path_PAXCTL
8072 if test -n "$PAXCTL"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8074 $as_echo "$PAXCTL" >&6; }
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8078 fi
8079
8080
8081 if test "X$PAXCTL" != X; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8083 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086
8087 int
8088 main ()
8089 {
8090
8091 ;
8092 return 0;
8093 }
8094 _ACEOF
8095 if ac_fn_c_try_link "$LINENO"; then :
8096 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8097 $as_echo "yes" >&6; }
8098 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }; PAXCTL=""; fi
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext \
8102 conftest$ac_exeext conftest.$ac_ext
8103 fi
8104 fi
8105
8106 ## Need makeinfo >= 4.7 (?) to build the manuals.
8107 # Extract the first word of "makeinfo", so it can be a program name with args.
8108 set dummy makeinfo; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 case $MAKEINFO in
8115 [\\/]* | ?:[\\/]*)
8116 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8117 ;;
8118 *)
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8126 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8129 fi
8130 done
8131 done
8132 IFS=$as_save_IFS
8133
8134 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8135 ;;
8136 esac
8137 fi
8138 MAKEINFO=$ac_cv_path_MAKEINFO
8139 if test -n "$MAKEINFO"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8141 $as_echo "$MAKEINFO" >&6; }
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147
8148 if test "$MAKEINFO" != "no"; then
8149 case `
8150 $MAKEINFO --version 2> /dev/null |
8151 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8152 ` in
8153 '') MAKEINFO=no;;
8154 esac
8155 fi
8156
8157 ## Makeinfo is unusual. For a released Emacs, the manuals are
8158 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8159 ## therefore in the category of "special tools" not normally required, which
8160 ## configure does not have to check for (eg autoconf itself).
8161 ## In a Bazaar checkout on the other hand, the manuals are not included.
8162 ## So makeinfo is a requirement to build from Bazaar, and configure
8163 ## should test for it as it does for any other build requirement.
8164 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8165 ## with pre-built manuals, from a Bazaar checkout.
8166 HAVE_MAKEINFO=yes
8167
8168 if test "$MAKEINFO" = "no"; then
8169 MAKEINFO=makeinfo
8170 if test "x${with_makeinfo}" = "xno"; then
8171 HAVE_MAKEINFO=no
8172 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8173 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8174 source tree does not seem to have pre-built manuals in the \`info' directory.
8175 Either install a suitable version of makeinfo, or re-run configure
8176 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8177 fi
8178 fi
8179
8180
8181 INFO_EXT=.info
8182 INFO_OPTS=--no-split
8183
8184
8185
8186
8187 if test x$GCC = xyes; then
8188 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8189 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8190 else
8191 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8192 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8193 fi
8194
8195
8196 late_LDFLAGS=$LDFLAGS
8197 if test x$GCC = xyes; then
8198 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8199 else
8200 LDFLAGS="$LDFLAGS -znocombreloc"
8201 fi
8202
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8204 $as_echo_n "checking for -znocombreloc... " >&6; }
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207
8208 int
8209 main ()
8210 {
8211
8212 ;
8213 return 0;
8214 }
8215 _ACEOF
8216 if ac_fn_c_try_link "$LINENO"; then :
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8218 $as_echo "yes" >&6; }
8219 else
8220 LDFLAGS=$late_LDFLAGS
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8223 fi
8224 rm -f core conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8226
8227
8228 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8229 case "$opsys" in
8230 your-opsys-here) CANNOT_DUMP=yes ;;
8231 esac
8232
8233 test "$CANNOT_DUMP" = "yes" && \
8234
8235 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8236
8237
8238
8239
8240
8241 UNEXEC_OBJ=unexelf.o
8242 case "$opsys" in
8243 # MSDOS uses unexcoff.o
8244 # MSWindows uses unexw32.o
8245 aix4-2)
8246 UNEXEC_OBJ=unexaix.o
8247 ;;
8248 cygwin)
8249 UNEXEC_OBJ=unexcw.o
8250 ;;
8251 darwin)
8252 UNEXEC_OBJ=unexmacosx.o
8253 ;;
8254 hpux10-20 | hpux11)
8255 UNEXEC_OBJ=unexhp9k800.o
8256 ;;
8257 sol2-10)
8258 # Use the Solaris dldump() function, called from unexsol.c, to dump
8259 # emacs, instead of the generic ELF dump code found in unexelf.c.
8260 # The resulting binary has a complete symbol table, and is better
8261 # for debugging and other observability tools (debuggers, pstack, etc).
8262 #
8263 # If you encounter a problem using dldump(), please consider sending
8264 # a message to the OpenSolaris tools-linking mailing list:
8265 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8266 #
8267 # It is likely that dldump() works with older Solaris too, but this has
8268 # not been tested, so for now this change is for Solaris 10 or newer.
8269 UNEXEC_OBJ=unexsol.o
8270 ;;
8271 esac
8272
8273 LD_SWITCH_SYSTEM=
8274 case "$opsys" in
8275 freebsd)
8276 ## Let `ld' find image libs and similar things in /usr/local/lib.
8277 ## The system compiler, GCC, has apparently been modified to not
8278 ## look there, contrary to what a stock GCC would do.
8279 ### It's not our place to do this. See bug#10313#17.
8280 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8281 :
8282 ;;
8283
8284 gnu-linux)
8285 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8286 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8287 ;;
8288
8289 netbsd)
8290 ### It's not our place to do this. See bug#10313#17.
8291 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8292 :
8293 ;;
8294
8295 openbsd)
8296 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8297 ## otherwise Emacs dumps core on elf systems.
8298 LD_SWITCH_SYSTEM="-Z"
8299 ;;
8300 esac
8301
8302
8303 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8304
8305 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8306 ## which has not been defined yet. When this was handled with cpp,
8307 ## it was expanded to null when configure sourced the s/*.h file.
8308 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8309 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8310 ## (or somesuch), but because it is supposed to go at the _front_
8311 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8312 ## Compare with the gnu-linux case below, which added to the end
8313 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8314 ## LD_SWITCH_SYSTEM_TEMACS.
8315 case "$opsys" in
8316 netbsd|openbsd)
8317 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8318 esac
8319
8320
8321 C_SWITCH_MACHINE=
8322 case $canonical in
8323 alpha*)
8324 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8325 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8326
8327 fi
8328
8329 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8330 ## With ELF, make sure that all common symbols get allocated to in the
8331 ## data section. Otherwise, the dump of temacs may miss variables in
8332 ## the shared library that have been initialized. For example, with
8333 ## GNU libc, __malloc_initialized would normally be resolved to the
8334 ## shared library's .bss section, which is fatal.
8335 if test "x$GCC" = "xyes"; then
8336 C_SWITCH_MACHINE="-fno-common"
8337 else
8338 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8339 fi
8340 else
8341 UNEXEC_OBJ=unexalpha.o
8342 fi
8343 ;;
8344 esac
8345
8346
8347
8348
8349 C_SWITCH_SYSTEM=
8350 ## Some programs in src produce warnings saying certain subprograms
8351 ## are too complex and need a MAXMEM value greater than 2000 for
8352 ## additional optimization. --nils@exp-math.uni-essen.de
8353 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8354 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8355 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8356 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8357
8358
8359
8360 LIBS_SYSTEM=
8361 case "$opsys" in
8362 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8363 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8364
8365 freebsd) LIBS_SYSTEM="-lutil" ;;
8366
8367 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8368
8369 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8370
8371 ## Motif needs -lgen.
8372 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8373 esac
8374
8375
8376
8377 ### Make sure subsequent tests use flags consistent with the build flags.
8378
8379 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8380 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8381 else
8382 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8383 fi
8384
8385 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8386
8387 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8388
8389
8390
8391 LIB_MATH=-lm
8392 LIB_STANDARD=
8393 START_FILES=
8394 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8395
8396 case $opsys in
8397 cygwin )
8398 LIB_MATH=
8399 START_FILES='pre-crt0.o'
8400 ;;
8401 darwin )
8402 ## Adding -lm confuses the dynamic linker, so omit it.
8403 LIB_MATH=
8404 START_FILES='pre-crt0.o'
8405 ;;
8406 freebsd )
8407 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8408 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8409 SYSTEM_TYPE=berkeley-unix
8410 ;;
8411 gnu-linux | gnu-kfreebsd )
8412 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8413 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8414 ;;
8415 hpux10-20 | hpux11 )
8416 LIB_STANDARD=-lc
8417 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8418 ;;
8419 netbsd | openbsd )
8420 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8421 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8422 SYSTEM_TYPE=berkeley-unix
8423 ;;
8424
8425 sol2* | unixware )
8426 SYSTEM_TYPE=usg-unix-v
8427 ;;
8428
8429 esac
8430
8431
8432
8433
8434 cat >>confdefs.h <<_ACEOF
8435 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8436 _ACEOF
8437
8438
8439 crt_files=
8440
8441 for file in x $LIB_STANDARD $START_FILES; do
8442 case "$file" in
8443 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8444 esac
8445 done
8446
8447 if test "x$crt_files" != x; then
8448
8449 ## If user specified a crt-dir, use that unconditionally.
8450 crt_gcc=no
8451
8452 if test "X$CRT_DIR" = "X"; then
8453
8454 CRT_DIR=/usr/lib # default
8455
8456 case "$canonical" in
8457 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8458 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8459 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8460 ## For anything else (eg /usr/lib32), it is up the user to specify
8461 ## the location (bug#5655).
8462 ## Test for crtn.o, not just the directory, because sometimes the
8463 ## directory exists but does not have the relevant files (bug#1287).
8464 ## FIXME better to test for binary compatibility somehow.
8465 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8466 ;;
8467
8468 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8469 esac
8470
8471 case "$opsys" in
8472 hpux10-20) CRT_DIR=/lib ;;
8473 esac
8474
8475 test "x${GCC}" = xyes && crt_gcc=yes
8476
8477 fi # CRT_DIR = ""
8478
8479 crt_missing=
8480
8481 for file in $crt_files; do
8482
8483 ## If we're using gcc, try to determine it automatically by asking
8484 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8485 ## system-dependent default from above.]
8486 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8487
8488 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8489 case "$crt_file" in
8490 */*)
8491 CRT_DIR=`$as_dirname -- "$crt_file" ||
8492 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8493 X"$crt_file" : 'X\(//\)[^/]' \| \
8494 X"$crt_file" : 'X\(//\)$' \| \
8495 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8496 $as_echo X"$crt_file" |
8497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8498 s//\1/
8499 q
8500 }
8501 /^X\(\/\/\)[^/].*/{
8502 s//\1/
8503 q
8504 }
8505 /^X\(\/\/\)$/{
8506 s//\1/
8507 q
8508 }
8509 /^X\(\/\).*/{
8510 s//\1/
8511 q
8512 }
8513 s/.*/./; q'`
8514 ;;
8515 esac
8516 fi
8517
8518 crt_gcc=no
8519
8520 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8521 done # $crt_files
8522
8523 test "x$crt_missing" = x || \
8524 as_fn_error "Required file(s) not found:$crt_missing
8525 Try using the --with-crt-dir option." "$LINENO" 5
8526
8527 fi # crt_files != ""
8528
8529
8530
8531 case $opsys in
8532 netbsd | openbsd )
8533 if test -f $CRT_DIR/crti.o; then
8534
8535 test -f $CRT_DIR/crtn.o || \
8536 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8537
8538 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8539 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8540 fi
8541 ;;
8542 esac
8543
8544
8545 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8546 pre_PKG_CONFIG_LIBS=$LIBS
8547
8548 # Extract the first word of "pkg-config", so it can be a program name with args.
8549 set dummy pkg-config; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 case $PKG_CONFIG in
8556 [\\/]* | ?:[\\/]*)
8557 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8558 ;;
8559 *)
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8562 do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 break 2
8570 fi
8571 done
8572 done
8573 IFS=$as_save_IFS
8574
8575 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8576 ;;
8577 esac
8578 fi
8579 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8580 if test -n "$PKG_CONFIG"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8582 $as_echo "$PKG_CONFIG" >&6; }
8583 else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588
8589
8590
8591
8592
8593 if test "${with_sound}" != "no"; then
8594 # Sound support for GNU/Linux and the free BSDs.
8595 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8596 do :
8597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8598 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8599 eval as_val=\$$as_ac_Header
8600 if test "x$as_val" = x""yes; then :
8601 cat >>confdefs.h <<_ACEOF
8602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8603 _ACEOF
8604 have_sound_header=yes
8605 fi
8606
8607 done
8608
8609 # Emulation library used on NetBSD.
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8611 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8612 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 ac_check_lib_save_LIBS=$LIBS
8616 LIBS="-lossaudio $LIBS"
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619
8620 /* Override any GCC internal prototype to avoid an error.
8621 Use char because int might match the return type of a GCC
8622 builtin and then its argument prototype would still apply. */
8623 #ifdef __cplusplus
8624 extern "C"
8625 #endif
8626 char _oss_ioctl ();
8627 int
8628 main ()
8629 {
8630 return _oss_ioctl ();
8631 ;
8632 return 0;
8633 }
8634 _ACEOF
8635 if ac_fn_c_try_link "$LINENO"; then :
8636 ac_cv_lib_ossaudio__oss_ioctl=yes
8637 else
8638 ac_cv_lib_ossaudio__oss_ioctl=no
8639 fi
8640 rm -f core conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_lib_save_LIBS
8643 fi
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8645 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8646 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8647 LIBSOUND=-lossaudio
8648 else
8649 LIBSOUND=
8650 fi
8651
8652
8653
8654 ALSA_REQUIRED=1.0.0
8655 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8656
8657 succeeded=no
8658
8659 if test "$PKG_CONFIG" = "no" ; then
8660 HAVE_ALSA=no
8661 else
8662 PKG_CONFIG_MIN_VERSION=0.9.0
8663 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8665 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8666
8667 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8668 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8669 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8670 edit_cflags="
8671 s,///*,/,g
8672 s/^/ /
8673 s/ -I/ $isystem/g
8674 s/^ //
8675 "
8676 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8677 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8679 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8680 succeeded=yes
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8684 ALSA_CFLAGS=""
8685 ALSA_LIBS=""
8686 ## If we have a custom action on failure, don't print errors, but
8687 ## do set a variable so people can do so. Do it in a subshell
8688 ## to capture any diagnostics in invoking pkg-config.
8689 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8690
8691 fi
8692
8693
8694
8695 else
8696 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8697 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8698 fi
8699 fi
8700
8701 if test $succeeded = yes; then
8702 HAVE_ALSA=yes
8703 else
8704 HAVE_ALSA=no
8705 fi
8706
8707 if test $HAVE_ALSA = yes; then
8708 SAVE_CFLAGS="$CFLAGS"
8709 SAVE_LIBS="$LIBS"
8710 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8711 LIBS="$ALSA_LIBS $LIBS"
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #include <asoundlib.h>
8715 int
8716 main ()
8717 {
8718 snd_lib_error_set_handler (0);
8719 ;
8720 return 0;
8721 }
8722 _ACEOF
8723 if ac_fn_c_try_compile "$LINENO"; then :
8724 emacs_alsa_normal=yes
8725 else
8726 emacs_alsa_normal=no
8727 fi
8728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 if test "$emacs_alsa_normal" != yes; then
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 #include <alsa/asoundlib.h>
8733 int
8734 main ()
8735 {
8736 snd_lib_error_set_handler (0);
8737 ;
8738 return 0;
8739 }
8740 _ACEOF
8741 if ac_fn_c_try_compile "$LINENO"; then :
8742 emacs_alsa_subdir=yes
8743 else
8744 emacs_alsa_subdir=no
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 if test "$emacs_alsa_subdir" != yes; then
8748 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8749 fi
8750 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8751 fi
8752
8753 CFLAGS="$SAVE_CFLAGS"
8754 LIBS="$SAVE_LIBS"
8755 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8756 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8757
8758 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8759
8760 fi
8761
8762 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8763 case "$opsys" in
8764 gnu-linux|freebsd|netbsd)
8765
8766 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8767
8768 ;;
8769 esac
8770 fi
8771
8772
8773 fi
8774
8775
8776
8777
8778 for ac_header in $ac_header_list
8779 do :
8780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8781 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8782 "
8783 eval as_val=\$$as_ac_Header
8784 if test "x$as_val" = x""yes; then :
8785 cat >>confdefs.h <<_ACEOF
8786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8787 _ACEOF
8788
8789 fi
8790
8791 done
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8816 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 #include <sys/personality.h>
8820 int
8821 main ()
8822 {
8823 personality (PER_LINUX32)
8824 ;
8825 return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829 emacs_cv_personality_linux32=yes
8830 else
8831 emacs_cv_personality_linux32=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8835 $as_echo "$emacs_cv_personality_linux32" >&6; }
8836
8837 if test $emacs_cv_personality_linux32 = yes; then
8838
8839 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8840
8841 fi
8842
8843 for ac_header in term.h
8844 do :
8845 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8846 if test "x$ac_cv_header_term_h" = x""yes; then :
8847 cat >>confdefs.h <<_ACEOF
8848 #define HAVE_TERM_H 1
8849 _ACEOF
8850
8851 fi
8852
8853 done
8854
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8856 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8857 if test "${ac_cv_header_time+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862 #include <sys/types.h>
8863 #include <sys/time.h>
8864 #include <time.h>
8865
8866 int
8867 main ()
8868 {
8869 if ((struct tm *) 0)
8870 return 0;
8871 ;
8872 return 0;
8873 }
8874 _ACEOF
8875 if ac_fn_c_try_compile "$LINENO"; then :
8876 ac_cv_header_time=yes
8877 else
8878 ac_cv_header_time=no
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8883 $as_echo "$ac_cv_header_time" >&6; }
8884 if test $ac_cv_header_time = yes; then
8885
8886 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8887
8888 fi
8889
8890 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8891
8892 "
8893 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8894 ac_have_decl=1
8895 else
8896 ac_have_decl=0
8897 fi
8898
8899 cat >>confdefs.h <<_ACEOF
8900 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8901 _ACEOF
8902
8903 if test $ac_cv_have_decl_sys_siglist != yes; then
8904 # For Tru64, at least:
8905 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8906
8907 "
8908 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8909 ac_have_decl=1
8910 else
8911 ac_have_decl=0
8912 fi
8913
8914 cat >>confdefs.h <<_ACEOF
8915 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8916 _ACEOF
8917
8918 if test $ac_cv_have_decl___sys_siglist = yes; then
8919
8920 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8921
8922 fi
8923 fi
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8925 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8926 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 #include <sys/types.h>
8932 #include <sys/wait.h>
8933 #ifndef WEXITSTATUS
8934 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8935 #endif
8936 #ifndef WIFEXITED
8937 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8938 #endif
8939
8940 int
8941 main ()
8942 {
8943 int s;
8944 wait (&s);
8945 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8946 ;
8947 return 0;
8948 }
8949 _ACEOF
8950 if ac_fn_c_try_compile "$LINENO"; then :
8951 ac_cv_header_sys_wait_h=yes
8952 else
8953 ac_cv_header_sys_wait_h=no
8954 fi
8955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8958 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8959 if test $ac_cv_header_sys_wait_h = yes; then
8960
8961 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8962
8963 fi
8964
8965
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8967 $as_echo_n "checking for speed_t... " >&6; }
8968 if test "${emacs_cv_speed_t+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8973 #include <termios.h>
8974 int
8975 main ()
8976 {
8977 speed_t x = 1;
8978 ;
8979 return 0;
8980 }
8981 _ACEOF
8982 if ac_fn_c_try_compile "$LINENO"; then :
8983 emacs_cv_speed_t=yes
8984 else
8985 emacs_cv_speed_t=no
8986 fi
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8990 $as_echo "$emacs_cv_speed_t" >&6; }
8991 if test $emacs_cv_speed_t = yes; then
8992
8993 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8994
8995 fi
8996
8997
8998
8999
9000 for ac_header in net/if.h
9001 do :
9002 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9003 #if HAVE_SYS_SOCKET_H
9004 #include <sys/socket.h>
9005 #endif
9006 "
9007 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9008 cat >>confdefs.h <<_ACEOF
9009 #define HAVE_NET_IF_H 1
9010 _ACEOF
9011
9012 fi
9013
9014 done
9015
9016 for ac_header in ifaddrs.h
9017 do :
9018 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9019 #if HAVE_SYS_SOCKET_H
9020 #include <sys/socket.h>
9021 #endif
9022 "
9023 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9024 cat >>confdefs.h <<_ACEOF
9025 #define HAVE_IFADDRS_H 1
9026 _ACEOF
9027
9028 fi
9029
9030 done
9031
9032 for ac_header in net/if_dl.h
9033 do :
9034 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9035 #if HAVE_SYS_SOCKET_H
9036 #include <sys/socket.h>
9037 #endif
9038 "
9039 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9040 cat >>confdefs.h <<_ACEOF
9041 #define HAVE_NET_IF_DL_H 1
9042 _ACEOF
9043
9044 fi
9045
9046 done
9047
9048
9049 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9050 #if HAVE_SYS_SOCKET_H
9051 #include <sys/socket.h>
9052 #endif
9053 #if HAVE_NET_IF_H
9054 #include <net/if.h>
9055 #endif
9056 "
9057 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9058
9059 cat >>confdefs.h <<_ACEOF
9060 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9061 _ACEOF
9062
9063
9064 fi
9065 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9066 #if HAVE_SYS_SOCKET_H
9067 #include <sys/socket.h>
9068 #endif
9069 #if HAVE_NET_IF_H
9070 #include <net/if.h>
9071 #endif
9072 "
9073 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9074
9075 cat >>confdefs.h <<_ACEOF
9076 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9077 _ACEOF
9078
9079
9080 fi
9081 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9082 #if HAVE_SYS_SOCKET_H
9083 #include <sys/socket.h>
9084 #endif
9085 #if HAVE_NET_IF_H
9086 #include <net/if.h>
9087 #endif
9088 "
9089 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9090
9091 cat >>confdefs.h <<_ACEOF
9092 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9093 _ACEOF
9094
9095
9096 fi
9097 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9098 #if HAVE_SYS_SOCKET_H
9099 #include <sys/socket.h>
9100 #endif
9101 #if HAVE_NET_IF_H
9102 #include <net/if.h>
9103 #endif
9104 "
9105 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9106
9107 cat >>confdefs.h <<_ACEOF
9108 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9109 _ACEOF
9110
9111
9112 fi
9113 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9114 #if HAVE_SYS_SOCKET_H
9115 #include <sys/socket.h>
9116 #endif
9117 #if HAVE_NET_IF_H
9118 #include <net/if.h>
9119 #endif
9120 "
9121 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9122
9123 cat >>confdefs.h <<_ACEOF
9124 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9125 _ACEOF
9126
9127
9128 fi
9129 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9130 #if HAVE_SYS_SOCKET_H
9131 #include <sys/socket.h>
9132 #endif
9133 #if HAVE_NET_IF_H
9134 #include <net/if.h>
9135 #endif
9136 "
9137 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9138
9139 cat >>confdefs.h <<_ACEOF
9140 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9141 _ACEOF
9142
9143
9144 fi
9145
9146
9147
9148
9149 DEPFLAGS=
9150 MKDEPDIR=":"
9151 deps_frag=deps.mk
9152 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9154 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9155 HAVE_GNU_MAKE=no
9156 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9157 if test "x$testval" != x; then
9158 HAVE_GNU_MAKE=yes
9159 else
9160 ac_enable_autodepend=no
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9163 $as_echo "$HAVE_GNU_MAKE" >&6; }
9164 if test $HAVE_GNU_MAKE = yes; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9166 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9167 SAVE_CFLAGS="$CFLAGS"
9168 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171
9172 int
9173 main ()
9174 {
9175
9176 ;
9177 return 0;
9178 }
9179 _ACEOF
9180 if ac_fn_c_try_compile "$LINENO"; then :
9181
9182 else
9183 ac_enable_autodepend=no
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186 CFLAGS="$SAVE_CFLAGS"
9187 test -f deps.d || ac_enable_autodepend=no
9188 rm -rf deps.d
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9190 $as_echo "$ac_enable_autodepend" >&6; }
9191 fi
9192 if test $ac_enable_autodepend = yes; then
9193 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9194 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9195 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9196 deps_frag=autodeps.mk
9197 fi
9198 fi
9199 deps_frag=$srcdir/src/$deps_frag
9200
9201
9202
9203
9204
9205 lisp_frag=$srcdir/src/lisp.mk
9206
9207
9208
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9210 $as_echo_n "checking for long file names... " >&6; }
9211 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 ac_cv_sys_long_file_names=yes
9215 # Test for long file names in all the places we know might matter:
9216 # . the current directory, where building will happen
9217 # $prefix/lib where we will be installing things
9218 # $exec_prefix/lib likewise
9219 # $TMPDIR if set, where it might want to write temporary files
9220 # /tmp where it might want to write temporary files
9221 # /var/tmp likewise
9222 # /usr/tmp likewise
9223 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9224 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9225 # in the usual case where exec_prefix is '${prefix}'.
9226 case $ac_dir in #(
9227 . | /* | ?:[\\/]*) ;; #(
9228 *) continue;;
9229 esac
9230 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9231 ac_xdir=$ac_dir/cf$$
9232 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9233 ac_tf1=$ac_xdir/conftest9012345
9234 ac_tf2=$ac_xdir/conftest9012346
9235 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9236 ac_cv_sys_long_file_names=no
9237 rm -f -r "$ac_xdir" 2>/dev/null
9238 test $ac_cv_sys_long_file_names = no && break
9239 done
9240 fi
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9242 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9243 if test $ac_cv_sys_long_file_names = yes; then
9244
9245 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9246
9247 fi
9248
9249
9250 #### Choose a window system.
9251
9252 ## We leave window_system equal to none if
9253 ## we end up building without one. Any new window system should
9254 ## set window_system to an appropriate value and add objects to
9255 ## window-system-specific substs.
9256
9257 window_system=none
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9259 $as_echo_n "checking for X... " >&6; }
9260
9261
9262 # Check whether --with-x was given.
9263 if test "${with_x+set}" = set; then :
9264 withval=$with_x;
9265 fi
9266
9267 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9268 if test "x$with_x" = xno; then
9269 # The user explicitly disabled X.
9270 have_x=disabled
9271 else
9272 case $x_includes,$x_libraries in #(
9273 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9274 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 # One or both of the vars are not set, and there is no cached value.
9278 ac_x_includes=no ac_x_libraries=no
9279 rm -f -r conftest.dir
9280 if mkdir conftest.dir; then
9281 cd conftest.dir
9282 cat >Imakefile <<'_ACEOF'
9283 incroot:
9284 @echo incroot='${INCROOT}'
9285 usrlibdir:
9286 @echo usrlibdir='${USRLIBDIR}'
9287 libdir:
9288 @echo libdir='${LIBDIR}'
9289 _ACEOF
9290 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9291 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9292 for ac_var in incroot usrlibdir libdir; do
9293 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9294 done
9295 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9296 for ac_extension in a so sl dylib la dll; do
9297 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9298 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9299 ac_im_usrlibdir=$ac_im_libdir; break
9300 fi
9301 done
9302 # Screen out bogus values from the imake configuration. They are
9303 # bogus both because they are the default anyway, and because
9304 # using them would break gcc on systems where it needs fixed includes.
9305 case $ac_im_incroot in
9306 /usr/include) ac_x_includes= ;;
9307 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9308 esac
9309 case $ac_im_usrlibdir in
9310 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9311 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9312 esac
9313 fi
9314 cd ..
9315 rm -f -r conftest.dir
9316 fi
9317
9318 # Standard set of common directories for X headers.
9319 # Check X11 before X11Rn because it is often a symlink to the current release.
9320 ac_x_header_dirs='
9321 /usr/X11/include
9322 /usr/X11R7/include
9323 /usr/X11R6/include
9324 /usr/X11R5/include
9325 /usr/X11R4/include
9326
9327 /usr/include/X11
9328 /usr/include/X11R7
9329 /usr/include/X11R6
9330 /usr/include/X11R5
9331 /usr/include/X11R4
9332
9333 /usr/local/X11/include
9334 /usr/local/X11R7/include
9335 /usr/local/X11R6/include
9336 /usr/local/X11R5/include
9337 /usr/local/X11R4/include
9338
9339 /usr/local/include/X11
9340 /usr/local/include/X11R7
9341 /usr/local/include/X11R6
9342 /usr/local/include/X11R5
9343 /usr/local/include/X11R4
9344
9345 /usr/X386/include
9346 /usr/x386/include
9347 /usr/XFree86/include/X11
9348
9349 /usr/include
9350 /usr/local/include
9351 /usr/unsupported/include
9352 /usr/athena/include
9353 /usr/local/x11r5/include
9354 /usr/lpp/Xamples/include
9355
9356 /usr/openwin/include
9357 /usr/openwin/share/include'
9358
9359 if test "$ac_x_includes" = no; then
9360 # Guess where to find include files, by looking for Xlib.h.
9361 # First, try using that file with no special directory specified.
9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 #include <X11/Xlib.h>
9365 _ACEOF
9366 if ac_fn_c_try_cpp "$LINENO"; then :
9367 # We can compile using X headers with no special include directory.
9368 ac_x_includes=
9369 else
9370 for ac_dir in $ac_x_header_dirs; do
9371 if test -r "$ac_dir/X11/Xlib.h"; then
9372 ac_x_includes=$ac_dir
9373 break
9374 fi
9375 done
9376 fi
9377 rm -f conftest.err conftest.$ac_ext
9378 fi # $ac_x_includes = no
9379
9380 if test "$ac_x_libraries" = no; then
9381 # Check for the libraries.
9382 # See if we find them without any special options.
9383 # Don't add to $LIBS permanently.
9384 ac_save_LIBS=$LIBS
9385 LIBS="-lX11 $LIBS"
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <X11/Xlib.h>
9389 int
9390 main ()
9391 {
9392 XrmInitialize ()
9393 ;
9394 return 0;
9395 }
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"; then :
9398 LIBS=$ac_save_LIBS
9399 # We can link X programs with no special library path.
9400 ac_x_libraries=
9401 else
9402 LIBS=$ac_save_LIBS
9403 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9404 do
9405 # Don't even attempt the hair of trying to link an X program!
9406 for ac_extension in a so sl dylib la dll; do
9407 if test -r "$ac_dir/libX11.$ac_extension"; then
9408 ac_x_libraries=$ac_dir
9409 break 2
9410 fi
9411 done
9412 done
9413 fi
9414 rm -f core conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 fi # $ac_x_libraries = no
9417
9418 case $ac_x_includes,$ac_x_libraries in #(
9419 no,* | *,no | *\'*)
9420 # Didn't find X, or a directory has "'" in its name.
9421 ac_cv_have_x="have_x=no";; #(
9422 *)
9423 # Record where we found X for the cache.
9424 ac_cv_have_x="have_x=yes\
9425 ac_x_includes='$ac_x_includes'\
9426 ac_x_libraries='$ac_x_libraries'"
9427 esac
9428 fi
9429 ;; #(
9430 *) have_x=yes;;
9431 esac
9432 eval "$ac_cv_have_x"
9433 fi # $with_x != no
9434
9435 if test "$have_x" != yes; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9437 $as_echo "$have_x" >&6; }
9438 no_x=yes
9439 else
9440 # If each of the values was on the command line, it overrides each guess.
9441 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9442 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9443 # Update the cache value to reflect the command line values.
9444 ac_cv_have_x="have_x=yes\
9445 ac_x_includes='$x_includes'\
9446 ac_x_libraries='$x_libraries'"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9448 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9449 fi
9450
9451 if test "$no_x" != yes; then
9452 window_system=x11
9453 fi
9454
9455 LD_SWITCH_X_SITE_RPATH=
9456 if test "${x_libraries}" != NONE; then
9457 if test -n "${x_libraries}"; then
9458 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9459 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9460 fi
9461 x_default_search_path=""
9462 x_search_path=${x_libraries}
9463 if test -z "${x_search_path}"; then
9464 x_search_path=/usr/lib
9465 fi
9466 for x_library in `echo ${x_search_path}: | \
9467 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9468 x_search_path="\
9469 ${x_library}/X11/%L/%T/%N%C%S:\
9470 ${x_library}/X11/%l/%T/%N%C%S:\
9471 ${x_library}/X11/%T/%N%C%S:\
9472 ${x_library}/X11/%L/%T/%N%S:\
9473 ${x_library}/X11/%l/%T/%N%S:\
9474 ${x_library}/X11/%T/%N%S"
9475 if test x"${x_default_search_path}" = x; then
9476 x_default_search_path=${x_search_path}
9477 else
9478 x_default_search_path="${x_search_path}:${x_default_search_path}"
9479 fi
9480 done
9481 fi
9482
9483
9484 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9485 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9486 fi
9487
9488 if test x"${x_includes}" = x; then
9489 bitmapdir=/usr/include/X11/bitmaps
9490 else
9491 # accumulate include directories that have X11 bitmap subdirectories
9492 bmd_acc="dummyval"
9493 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9494 if test -d "${bmd}/X11/bitmaps"; then
9495 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9496 fi
9497 if test -d "${bmd}/bitmaps"; then
9498 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9499 fi
9500 done
9501 if test ${bmd_acc} != "dummyval"; then
9502 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9503 fi
9504 fi
9505
9506 HAVE_NS=no
9507 NS_IMPL_COCOA=no
9508 NS_IMPL_GNUSTEP=no
9509 tmp_CPPFLAGS="$CPPFLAGS"
9510 tmp_CFLAGS="$CFLAGS"
9511 CPPFLAGS="$CPPFLAGS -x objective-c"
9512 CFLAGS="$CFLAGS -x objective-c"
9513 TEMACS_LDFLAGS2="\${LDFLAGS}"
9514 GNU_OBJC_CFLAGS=
9515 if test "${with_ns}" != no; then
9516 if test "${opsys}" = darwin; then
9517 NS_IMPL_COCOA=yes
9518 ns_appdir=`pwd`/nextstep/Emacs.app
9519 ns_appbindir=${ns_appdir}/Contents/MacOS
9520 ns_appresdir=${ns_appdir}/Contents/Resources
9521 ns_appsrc=Cocoa/Emacs.base
9522 elif test -f $GNUSTEP_CONFIG_FILE; then
9523 NS_IMPL_GNUSTEP=yes
9524 ns_appdir=`pwd`/nextstep/Emacs.app
9525 ns_appbindir=${ns_appdir}
9526 ns_appresdir=${ns_appdir}/Resources
9527 ns_appsrc=GNUstep/Emacs.base
9528 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9529 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9530 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9531 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9532 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9533 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9534 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9535 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9536 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9537 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9538 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9539 LIB_STANDARD=
9540 START_FILES=
9541 TEMACS_LDFLAGS2=
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9543 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9544 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 #include <GNUstepBase/GSConfig.h>
9550 int
9551 main ()
9552 {
9553 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9554 1;
9555 #else
9556 fail;
9557 #endif
9558 ;
9559 return 0;
9560 }
9561 _ACEOF
9562 if ac_fn_c_try_compile "$LINENO"; then :
9563 emacs_cv_objc_exceptions=yes
9564 else
9565 emacs_cv_objc_exceptions=no
9566 fi
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568 fi
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9570 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9571 if test $emacs_cv_objc_exceptions = yes; then
9572
9573 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9574
9575 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9576 fi
9577 fi
9578
9579 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9580
9581 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9582 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9583 HAVE_NS=yes
9584 else
9585 as_fn_error "\`--with-ns' was specified, but the include
9586 files are missing or cannot be compiled." "$LINENO" 5
9587 fi
9588
9589
9590
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593 #include <AppKit/AppKit.h>
9594 int
9595 main ()
9596 {
9597
9598 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9599 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9600 ; /* OK */
9601 #else
9602 #error "OSX 10.4 or newer required"
9603 #endif
9604 #endif
9605
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 if ac_fn_c_try_compile "$LINENO"; then :
9611 ns_osx_have_104=yes
9612 else
9613 ns_osx_have_104=no
9614 fi
9615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9618 #include <Foundation/NSObjCRuntime.h>
9619 int
9620 main ()
9621 {
9622 NSInteger i;
9623 ;
9624 return 0;
9625 }
9626 _ACEOF
9627 if ac_fn_c_try_compile "$LINENO"; then :
9628 ns_have_nsinteger=yes
9629 else
9630 ns_have_nsinteger=no
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633 if test $ns_osx_have_104 = no; then
9634 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9635 fi
9636 if test $ns_have_nsinteger = yes; then
9637
9638 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9639
9640 fi
9641 fi
9642
9643
9644
9645 INSTALL_ARCH_INDEP_EXTRA=install-etc
9646 ns_self_contained=no
9647 NS_OBJ=
9648 NS_OBJC_OBJ=
9649 if test "${HAVE_NS}" = yes; then
9650 if test "$with_toolkit_scroll_bars" = "no"; then
9651 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9652 fi
9653
9654 window_system=nextstep
9655 # set up packaging dirs
9656 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9657 ns_self_contained=yes
9658 prefix=${ns_appresdir}
9659 exec_prefix=${ns_appbindir}
9660 libexecdir="\${ns_appbindir}/libexec"
9661 archlibdir="\${ns_appbindir}/libexec"
9662 docdir="\${ns_appresdir}/etc"
9663 etcdir="\${ns_appresdir}/etc"
9664 infodir="\${ns_appresdir}/info"
9665 mandir="\${ns_appresdir}/man"
9666 lispdir="\${ns_appresdir}/lisp"
9667 leimdir="\${ns_appresdir}/leim"
9668 INSTALL_ARCH_INDEP_EXTRA=
9669 fi
9670 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9671 fi
9672 CFLAGS="$tmp_CFLAGS"
9673 CPPFLAGS="$tmp_CPPFLAGS"
9674
9675
9676
9677
9678
9679
9680 HAVE_W32=no
9681 W32_OBJ=
9682 W32_LIBS=
9683 W32_RES=
9684 W32_RES_LINK=
9685 if test "${with_w32}" != no; then
9686 if test "${opsys}" != "cygwin"; then
9687 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9688 fi
9689 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9690 if test "x$ac_cv_header_windows_h" = x""yes; then :
9691 HAVE_W32=yes
9692 else
9693 as_fn_error "\`--with-w32' was specified, but windows.h
9694 cannot be found." "$LINENO" 5
9695 fi
9696
9697
9698
9699 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9700
9701 if test -n "$ac_tool_prefix"; then
9702 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9703 set dummy ${ac_tool_prefix}windres; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 if test -n "$WINDRES"; then
9710 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9711 else
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9714 do
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9719 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 break 2
9722 fi
9723 done
9724 done
9725 IFS=$as_save_IFS
9726
9727 fi
9728 fi
9729 WINDRES=$ac_cv_prog_WINDRES
9730 if test -n "$WINDRES"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9732 $as_echo "$WINDRES" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9736 fi
9737
9738
9739 fi
9740 if test -z "$ac_cv_prog_WINDRES"; then
9741 ac_ct_WINDRES=$WINDRES
9742 # Extract the first word of "windres", so it can be a program name with args.
9743 set dummy windres; ac_word=$2
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9745 $as_echo_n "checking for $ac_word... " >&6; }
9746 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 if test -n "$ac_ct_WINDRES"; then
9750 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9751 else
9752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753 for as_dir in $PATH
9754 do
9755 IFS=$as_save_IFS
9756 test -z "$as_dir" && as_dir=.
9757 for ac_exec_ext in '' $ac_executable_extensions; do
9758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9759 ac_cv_prog_ac_ct_WINDRES="windres"
9760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9761 break 2
9762 fi
9763 done
9764 done
9765 IFS=$as_save_IFS
9766
9767 fi
9768 fi
9769 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9770 if test -n "$ac_ct_WINDRES"; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9772 $as_echo "$ac_ct_WINDRES" >&6; }
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9776 fi
9777
9778 if test "x$ac_ct_WINDRES" = x; then
9779 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
9780 else
9781 case $cross_compiling:$ac_tool_warned in
9782 yes:)
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9785 ac_tool_warned=yes ;;
9786 esac
9787 WINDRES=$ac_ct_WINDRES
9788 fi
9789 else
9790 WINDRES="$ac_cv_prog_WINDRES"
9791 fi
9792
9793 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9794 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9795 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9796 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9797 W32_RES="emacs.res"
9798 # Tell the linker that emacs.res is an object (which we compile from
9799 # the rc file), not a linker script.
9800 W32_RES_LINK="-Wl,-bpe-i386 -Wl,emacs.res"
9801 fi
9802
9803
9804
9805
9806
9807 if test "${HAVE_W32}" = "yes"; then
9808 window_system=w32
9809 with_xft=no
9810 fi
9811
9812 ## $window_system is now set to the window system we will
9813 ## ultimately use.
9814
9815 term_header=
9816 HAVE_X_WINDOWS=no
9817 HAVE_X11=no
9818 USE_X_TOOLKIT=none
9819
9820 case "${window_system}" in
9821 x11 )
9822 HAVE_X_WINDOWS=yes
9823 HAVE_X11=yes
9824 term_header=xterm.h
9825 case "${with_x_toolkit}" in
9826 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9827 motif ) USE_X_TOOLKIT=MOTIF ;;
9828 gtk ) with_gtk=yes
9829 term_header=gtkutil.h
9830 USE_X_TOOLKIT=none ;;
9831 gtk2 ) with_gtk2=yes
9832 term_header=gtkutil.h
9833 USE_X_TOOLKIT=none ;;
9834 gtk3 ) with_gtk3=yes
9835 term_header=gtkutil.h
9836 USE_X_TOOLKIT=none ;;
9837 no ) USE_X_TOOLKIT=none ;;
9838 * ) USE_X_TOOLKIT=maybe ;;
9839 esac
9840 ;;
9841 nextstep )
9842 term_header=nsterm.h
9843 ;;
9844 w32 )
9845 term_header=w32term.h
9846 ;;
9847 esac
9848
9849 if test -n "${term_header}"; then
9850
9851 cat >>confdefs.h <<_ACEOF
9852 #define TERM_HEADER "${term_header}"
9853 _ACEOF
9854
9855 fi
9856
9857 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9858 # Extract the first word of "X", so it can be a program name with args.
9859 set dummy X; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 if test -n "$HAVE_XSERVER"; then
9866 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9867 else
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 for as_dir in $PATH
9870 do
9871 IFS=$as_save_IFS
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9875 ac_cv_prog_HAVE_XSERVER="true"
9876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9877 break 2
9878 fi
9879 done
9880 done
9881 IFS=$as_save_IFS
9882
9883 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9884 fi
9885 fi
9886 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9887 if test -n "$HAVE_XSERVER"; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9889 $as_echo "$HAVE_XSERVER" >&6; }
9890 else
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9893 fi
9894
9895
9896 if test "$HAVE_XSERVER" = true ||
9897 test -n "$DISPLAY" ||
9898 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9899 as_fn_error "You seem to be running X, but no X development libraries
9900 were found. You should install the relevant development files for X
9901 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9902 sure you have development files for image handling, i.e.
9903 tiff, gif, jpeg, png and xpm.
9904 If you are sure you want Emacs compiled without X window support, pass
9905 --without-x
9906 to configure." "$LINENO" 5
9907 fi
9908 fi
9909
9910 ### If we're using X11, we should use the X menu package.
9911 HAVE_MENUS=no
9912 case ${HAVE_X11} in
9913 yes ) HAVE_MENUS=yes ;;
9914 esac
9915
9916 # Does the opsystem file prohibit the use of the GNU malloc?
9917 # Assume not, until told otherwise.
9918 GNU_MALLOC=yes
9919
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9921 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9922 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927 #include <malloc.h>
9928 static void hook (void) {}
9929 int
9930 main ()
9931 {
9932 malloc_set_state (malloc_get_state ());
9933 __after_morecore_hook = hook;
9934 __malloc_initialize_hook = hook;
9935 ;
9936 return 0;
9937 }
9938 _ACEOF
9939 if ac_fn_c_try_link "$LINENO"; then :
9940 emacs_cv_var_doug_lea_malloc=yes
9941 else
9942 emacs_cv_var_doug_lea_malloc=no
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9948 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9949 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9950
9951
9952 system_malloc=no
9953 case "$opsys" in
9954 ## darwin ld insists on the use of malloc routines in the System framework.
9955 darwin|sol2-10) system_malloc=yes ;;
9956 esac
9957
9958 if test "${system_malloc}" = "yes"; then
9959
9960 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9961
9962 GNU_MALLOC=no
9963 GNU_MALLOC_reason="
9964 (The GNU allocators don't work with this system configuration.)"
9965 GMALLOC_OBJ=
9966 VMLIMIT_OBJ=
9967 else
9968 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9969 VMLIMIT_OBJ=vm-limit.o
9970 fi
9971
9972
9973
9974 if test "$doug_lea_malloc" = "yes" ; then
9975 if test "$GNU_MALLOC" = yes ; then
9976 GNU_MALLOC_reason="
9977 (Using Doug Lea's new malloc from the GNU C Library.)"
9978 fi
9979
9980 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9981
9982
9983 ## Use mmap directly for allocating larger buffers.
9984 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9985 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9986 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9987 case "$opsys" in
9988 gnu*) REL_ALLOC=no ;;
9989 esac
9990 fi
9991
9992 if test x"${REL_ALLOC}" = x; then
9993 REL_ALLOC=${GNU_MALLOC}
9994 fi
9995
9996 use_mmap_for_buffers=no
9997 case "$opsys" in
9998 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9999 esac
10000
10001
10002
10003
10004
10005
10006
10007
10008 for ac_func in getpagesize
10009 do :
10010 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10011 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10012 cat >>confdefs.h <<_ACEOF
10013 #define HAVE_GETPAGESIZE 1
10014 _ACEOF
10015
10016 fi
10017 done
10018
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10020 $as_echo_n "checking for working mmap... " >&6; }
10021 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 if test "$cross_compiling" = yes; then :
10025 ac_cv_func_mmap_fixed_mapped=no
10026 else
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 $ac_includes_default
10030 /* malloc might have been renamed as rpl_malloc. */
10031 #undef malloc
10032
10033 /* Thanks to Mike Haertel and Jim Avera for this test.
10034 Here is a matrix of mmap possibilities:
10035 mmap private not fixed
10036 mmap private fixed at somewhere currently unmapped
10037 mmap private fixed at somewhere already mapped
10038 mmap shared not fixed
10039 mmap shared fixed at somewhere currently unmapped
10040 mmap shared fixed at somewhere already mapped
10041 For private mappings, we should verify that changes cannot be read()
10042 back from the file, nor mmap's back from the file at a different
10043 address. (There have been systems where private was not correctly
10044 implemented like the infamous i386 svr4.0, and systems where the
10045 VM page cache was not coherent with the file system buffer cache
10046 like early versions of FreeBSD and possibly contemporary NetBSD.)
10047 For shared mappings, we should conversely verify that changes get
10048 propagated back to all the places they're supposed to be.
10049
10050 Grep wants private fixed already mapped.
10051 The main things grep needs to know about mmap are:
10052 * does it exist and is it safe to write into the mmap'd area
10053 * how to use it (BSD variants) */
10054
10055 #include <fcntl.h>
10056 #include <sys/mman.h>
10057
10058 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10059 char *malloc ();
10060 #endif
10061
10062 /* This mess was copied from the GNU getpagesize.h. */
10063 #ifndef HAVE_GETPAGESIZE
10064 # ifdef _SC_PAGESIZE
10065 # define getpagesize() sysconf(_SC_PAGESIZE)
10066 # else /* no _SC_PAGESIZE */
10067 # ifdef HAVE_SYS_PARAM_H
10068 # include <sys/param.h>
10069 # ifdef EXEC_PAGESIZE
10070 # define getpagesize() EXEC_PAGESIZE
10071 # else /* no EXEC_PAGESIZE */
10072 # ifdef NBPG
10073 # define getpagesize() NBPG * CLSIZE
10074 # ifndef CLSIZE
10075 # define CLSIZE 1
10076 # endif /* no CLSIZE */
10077 # else /* no NBPG */
10078 # ifdef NBPC
10079 # define getpagesize() NBPC
10080 # else /* no NBPC */
10081 # ifdef PAGESIZE
10082 # define getpagesize() PAGESIZE
10083 # endif /* PAGESIZE */
10084 # endif /* no NBPC */
10085 # endif /* no NBPG */
10086 # endif /* no EXEC_PAGESIZE */
10087 # else /* no HAVE_SYS_PARAM_H */
10088 # define getpagesize() 8192 /* punt totally */
10089 # endif /* no HAVE_SYS_PARAM_H */
10090 # endif /* no _SC_PAGESIZE */
10091
10092 #endif /* no HAVE_GETPAGESIZE */
10093
10094 int
10095 main ()
10096 {
10097 char *data, *data2, *data3;
10098 const char *cdata2;
10099 int i, pagesize;
10100 int fd, fd2;
10101
10102 pagesize = getpagesize ();
10103
10104 /* First, make a file with some known garbage in it. */
10105 data = (char *) malloc (pagesize);
10106 if (!data)
10107 return 1;
10108 for (i = 0; i < pagesize; ++i)
10109 *(data + i) = rand ();
10110 umask (0);
10111 fd = creat ("conftest.mmap", 0600);
10112 if (fd < 0)
10113 return 2;
10114 if (write (fd, data, pagesize) != pagesize)
10115 return 3;
10116 close (fd);
10117
10118 /* Next, check that the tail of a page is zero-filled. File must have
10119 non-zero length, otherwise we risk SIGBUS for entire page. */
10120 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10121 if (fd2 < 0)
10122 return 4;
10123 cdata2 = "";
10124 if (write (fd2, cdata2, 1) != 1)
10125 return 5;
10126 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10127 if (data2 == MAP_FAILED)
10128 return 6;
10129 for (i = 0; i < pagesize; ++i)
10130 if (*(data2 + i))
10131 return 7;
10132 close (fd2);
10133 if (munmap (data2, pagesize))
10134 return 8;
10135
10136 /* Next, try to mmap the file at a fixed address which already has
10137 something else allocated at it. If we can, also make sure that
10138 we see the same garbage. */
10139 fd = open ("conftest.mmap", O_RDWR);
10140 if (fd < 0)
10141 return 9;
10142 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10143 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10144 return 10;
10145 for (i = 0; i < pagesize; ++i)
10146 if (*(data + i) != *(data2 + i))
10147 return 11;
10148
10149 /* Finally, make sure that changes to the mapped area do not
10150 percolate back to the file as seen by read(). (This is a bug on
10151 some variants of i386 svr4.0.) */
10152 for (i = 0; i < pagesize; ++i)
10153 *(data2 + i) = *(data2 + i) + 1;
10154 data3 = (char *) malloc (pagesize);
10155 if (!data3)
10156 return 12;
10157 if (read (fd, data3, pagesize) != pagesize)
10158 return 13;
10159 for (i = 0; i < pagesize; ++i)
10160 if (*(data + i) != *(data3 + i))
10161 return 14;
10162 close (fd);
10163 return 0;
10164 }
10165 _ACEOF
10166 if ac_fn_c_try_run "$LINENO"; then :
10167 ac_cv_func_mmap_fixed_mapped=yes
10168 else
10169 ac_cv_func_mmap_fixed_mapped=no
10170 fi
10171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10172 conftest.$ac_objext conftest.beam conftest.$ac_ext
10173 fi
10174
10175 fi
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10177 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10178 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10179
10180 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10181
10182 fi
10183 rm -f conftest.mmap conftest.txt
10184
10185 if test $use_mmap_for_buffers = yes; then
10186
10187 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10188
10189 REL_ALLOC=no
10190 fi
10191
10192 LIBS="$LIBS_SYSTEM $LIBS"
10193
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10195 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10196 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-ldnet $LIBS"
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203
10204 /* Override any GCC internal prototype to avoid an error.
10205 Use char because int might match the return type of a GCC
10206 builtin and then its argument prototype would still apply. */
10207 #ifdef __cplusplus
10208 extern "C"
10209 #endif
10210 char dnet_ntoa ();
10211 int
10212 main ()
10213 {
10214 return dnet_ntoa ();
10215 ;
10216 return 0;
10217 }
10218 _ACEOF
10219 if ac_fn_c_try_link "$LINENO"; then :
10220 ac_cv_lib_dnet_dnet_ntoa=yes
10221 else
10222 ac_cv_lib_dnet_dnet_ntoa=no
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10227 fi
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10229 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10230 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_LIBDNET 1
10233 _ACEOF
10234
10235 LIBS="-ldnet $LIBS"
10236
10237 fi
10238
10239
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10241 $as_echo_n "checking for main in -lXbsd... " >&6; }
10242 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10244 else
10245 ac_check_lib_save_LIBS=$LIBS
10246 LIBS="-lXbsd $LIBS"
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10249
10250
10251 int
10252 main ()
10253 {
10254 return main ();
10255 ;
10256 return 0;
10257 }
10258 _ACEOF
10259 if ac_fn_c_try_link "$LINENO"; then :
10260 ac_cv_lib_Xbsd_main=yes
10261 else
10262 ac_cv_lib_Xbsd_main=no
10263 fi
10264 rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10266 LIBS=$ac_check_lib_save_LIBS
10267 fi
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10269 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10270 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10271 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10272 fi
10273
10274
10275 LIB_PTHREAD=
10276
10277
10278
10279 if test "$ac_cv_header_pthread_h"; then
10280 if test "$GMALLOC_OBJ" = gmalloc.o; then
10281 emacs_pthread_function=pthread_atfork
10282 else
10283 emacs_pthread_function=pthread_self
10284 fi
10285 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10287 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10288 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 ac_check_lib_save_LIBS=$LIBS
10292 LIBS="-lpthread $LIBS"
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10295
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10299 #ifdef __cplusplus
10300 extern "C"
10301 #endif
10302 char $emacs_pthread_function ();
10303 int
10304 main ()
10305 {
10306 return $emacs_pthread_function ();
10307 ;
10308 return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_c_try_link "$LINENO"; then :
10312 eval "$as_ac_Lib=yes"
10313 else
10314 eval "$as_ac_Lib=no"
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10319 fi
10320 eval ac_res=\$$as_ac_Lib
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10322 $as_echo "$ac_res" >&6; }
10323 eval as_val=\$$as_ac_Lib
10324 if test "x$as_val" = x""yes; then :
10325 HAVE_PTHREAD=yes
10326 fi
10327
10328 fi
10329 if test "$HAVE_PTHREAD" = yes; then
10330 case "${canonical}" in
10331 *-hpux*) ;;
10332 *) LIB_PTHREAD="-lpthread"
10333 LIBS="$LIB_PTHREAD $LIBS" ;;
10334 esac
10335
10336 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10337
10338 fi
10339
10340
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10342 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10343 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-lpthreads $LIBS"
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350
10351 /* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 char cma_open ();
10358 int
10359 main ()
10360 {
10361 return cma_open ();
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_link "$LINENO"; then :
10367 ac_cv_lib_pthreads_cma_open=yes
10368 else
10369 ac_cv_lib_pthreads_cma_open=no
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10376 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10377 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10378 cat >>confdefs.h <<_ACEOF
10379 #define HAVE_LIBPTHREADS 1
10380 _ACEOF
10381
10382 LIBS="-lpthreads $LIBS"
10383
10384 fi
10385
10386
10387 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10388 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10389 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10390 ## added to LIBS in configure would never contain the pthreads part,
10391 ## but the value used in Makefiles might. FIXME?
10392 ##
10393 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10394 ## be harmless on older versions of X where it happens to exist.
10395 test "$opsys" = "aix4-2" && \
10396 test $ac_cv_lib_pthreads_cma_open = yes && \
10397 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10398
10399
10400 case ${host_os} in
10401 aix*)
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10403 $as_echo_n "checking for -bbigtoc option... " >&6; }
10404 if test "${gdb_cv_bigtoc+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407
10408 case $GCC in
10409 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10410 *) gdb_cv_bigtoc=-bbigtoc ;;
10411 esac
10412
10413 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416
10417 int
10418 main ()
10419 {
10420 int i;
10421 ;
10422 return 0;
10423 }
10424 _ACEOF
10425 if ac_fn_c_try_link "$LINENO"; then :
10426
10427 else
10428 gdb_cv_bigtoc=
10429 fi
10430 rm -f core conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
10432
10433 fi
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10435 $as_echo "$gdb_cv_bigtoc" >&6; }
10436 ;;
10437 esac
10438
10439 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10440 # used for the tests that follow. We set them back to REAL_CFLAGS and
10441 # REAL_CPPFLAGS later on.
10442
10443 REAL_CFLAGS="$CFLAGS"
10444 REAL_CPPFLAGS="$CPPFLAGS"
10445
10446 if test "${HAVE_X11}" = "yes"; then
10447 DEFS="$C_SWITCH_X_SITE $DEFS"
10448 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10449 LIBS="-lX11 $LIBS"
10450 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10451 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10452
10453 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10454 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10455 # but it's more convenient here to set LD_RUN_PATH since this
10456 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10457 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10458 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10459 export LD_RUN_PATH
10460 fi
10461
10462 if test "${opsys}" = "gnu-linux"; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10464 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10467
10468 int
10469 main ()
10470 {
10471 XOpenDisplay ("foo");
10472 ;
10473 return 0;
10474 }
10475 _ACEOF
10476 if ac_fn_c_try_link "$LINENO"; then :
10477 xgnu_linux_first_failure=no
10478 else
10479 xgnu_linux_first_failure=yes
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483 if test "${xgnu_linux_first_failure}" = "yes"; then
10484 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10485 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10486 OLD_CPPFLAGS="$CPPFLAGS"
10487 OLD_LIBS="$LIBS"
10488 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10489 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10490 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10491 LIBS="$LIBS -b i486-linuxaout"
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494
10495 int
10496 main ()
10497 {
10498 XOpenDisplay ("foo");
10499 ;
10500 return 0;
10501 }
10502 _ACEOF
10503 if ac_fn_c_try_link "$LINENO"; then :
10504 xgnu_linux_second_failure=no
10505 else
10506 xgnu_linux_second_failure=yes
10507 fi
10508 rm -f core conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510 if test "${xgnu_linux_second_failure}" = "yes"; then
10511 # If we get the same failure with -b, there is no use adding -b.
10512 # So take it out. This plays safe.
10513 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10514 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10515 CPPFLAGS="$OLD_CPPFLAGS"
10516 LIBS="$OLD_LIBS"
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; }
10519 else
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10521 $as_echo "yes" >&6; }
10522 fi
10523 else
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10526 fi
10527 fi
10528
10529 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10530 # header files included from there.
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10532 $as_echo_n "checking for Xkb... " >&6; }
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10535 #include <X11/Xlib.h>
10536 #include <X11/XKBlib.h>
10537 int
10538 main ()
10539 {
10540 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10541 ;
10542 return 0;
10543 }
10544 _ACEOF
10545 if ac_fn_c_try_link "$LINENO"; then :
10546 emacs_xkb=yes
10547 else
10548 emacs_xkb=no
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10553 $as_echo "$emacs_xkb" >&6; }
10554 if test $emacs_xkb = yes; then
10555
10556 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10557
10558 fi
10559
10560 for ac_func in XrmSetDatabase XScreenResourceString \
10561 XScreenNumberOfScreen
10562 do :
10563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10565 eval as_val=\$$as_ac_var
10566 if test "x$as_val" = x""yes; then :
10567 cat >>confdefs.h <<_ACEOF
10568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10569 _ACEOF
10570
10571 fi
10572 done
10573
10574 fi
10575
10576 if test "${window_system}" = "x11"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10578 $as_echo_n "checking X11 version 6... " >&6; }
10579 if test "${emacs_cv_x11_version_6+set}" = set; then :
10580 $as_echo_n "(cached) " >&6
10581 else
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583 /* end confdefs.h. */
10584 #include <X11/Xlib.h>
10585 int
10586 main ()
10587 {
10588 #if XlibSpecificationRelease < 6
10589 fail;
10590 #endif
10591
10592 ;
10593 return 0;
10594 }
10595 _ACEOF
10596 if ac_fn_c_try_link "$LINENO"; then :
10597 emacs_cv_x11_version_6=yes
10598 else
10599 emacs_cv_x11_version_6=no
10600 fi
10601 rm -f core conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603 fi
10604
10605 if test $emacs_cv_x11_version_6 = yes; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10607 $as_echo "6 or newer" >&6; }
10608
10609 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10610
10611
10612 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10613
10614 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10615 ## XIM support.
10616 case "$opsys" in
10617 sol2-*) : ;;
10618 *)
10619 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10620
10621 ;;
10622 esac
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10625 $as_echo "before 6" >&6; }
10626 fi
10627 fi
10628
10629
10630 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10631 HAVE_RSVG=no
10632 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10633 if test "${with_rsvg}" != "no"; then
10634 RSVG_REQUIRED=2.11.0
10635 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10636
10637
10638 succeeded=no
10639
10640 if test "$PKG_CONFIG" = "no" ; then
10641 :
10642 else
10643 PKG_CONFIG_MIN_VERSION=0.9.0
10644 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10646 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10647
10648 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10649 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10650 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10651 edit_cflags="
10652 s,///*,/,g
10653 s/^/ /
10654 s/ -I/ $isystem/g
10655 s/^ //
10656 "
10657 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10658 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10660 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10661 succeeded=yes
10662 else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10665 RSVG_CFLAGS=""
10666 RSVG_LIBS=""
10667 ## If we have a custom action on failure, don't print errors, but
10668 ## do set a variable so people can do so. Do it in a subshell
10669 ## to capture any diagnostics in invoking pkg-config.
10670 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10671
10672 fi
10673
10674
10675
10676 else
10677 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10678 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10679 fi
10680 fi
10681
10682 if test $succeeded = yes; then
10683 HAVE_RSVG=yes
10684 else
10685 :
10686 fi
10687
10688
10689
10690
10691 if test $HAVE_RSVG = yes; then
10692
10693 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10694
10695 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10696 LIBS="$RSVG_LIBS $LIBS"
10697 fi
10698 fi
10699 fi
10700
10701 HAVE_IMAGEMAGICK=no
10702 if test "${HAVE_X11}" = "yes"; then
10703 if test "${with_imagemagick}" != "no"; then
10704 ## 6.2.8 is the earliest version known to work, but earlier versions
10705 ## might work - let us know if you find one.
10706 ## 6.0.7 does not work. See bug#7955.
10707 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10708
10709 succeeded=no
10710
10711 if test "$PKG_CONFIG" = "no" ; then
10712 :
10713 else
10714 PKG_CONFIG_MIN_VERSION=0.9.0
10715 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10717 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10718
10719 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10720 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10721 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10722 edit_cflags="
10723 s,///*,/,g
10724 s/^/ /
10725 s/ -I/ $isystem/g
10726 s/^ //
10727 "
10728 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10729 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10731 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10732 succeeded=yes
10733 else
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735 $as_echo "no" >&6; }
10736 IMAGEMAGICK_CFLAGS=""
10737 IMAGEMAGICK_LIBS=""
10738 ## If we have a custom action on failure, don't print errors, but
10739 ## do set a variable so people can do so. Do it in a subshell
10740 ## to capture any diagnostics in invoking pkg-config.
10741 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10742
10743 fi
10744
10745
10746
10747 else
10748 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10749 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10750 fi
10751 fi
10752
10753 if test $succeeded = yes; then
10754 HAVE_IMAGEMAGICK=yes
10755 else
10756 :
10757 fi
10758
10759
10760
10761
10762 if test $HAVE_IMAGEMAGICK = yes; then
10763
10764 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10765
10766 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10767 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10768 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10769 do :
10770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10772 eval as_val=\$$as_ac_var
10773 if test "x$as_val" = x""yes; then :
10774 cat >>confdefs.h <<_ACEOF
10775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10776 _ACEOF
10777
10778 fi
10779 done
10780
10781 fi
10782 fi
10783 fi
10784
10785
10786 HAVE_GTK=no
10787 GTK_OBJ=
10788 check_gtk2=no
10789 gtk3_pkg_errors=
10790 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10791 GLIB_REQUIRED=2.28
10792 GTK_REQUIRED=3.0
10793 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10794
10795
10796 succeeded=no
10797
10798 if test "$PKG_CONFIG" = "no" ; then
10799 pkg_check_gtk=no
10800 else
10801 PKG_CONFIG_MIN_VERSION=0.9.0
10802 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10804 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10805
10806 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10807 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10808 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10809 edit_cflags="
10810 s,///*,/,g
10811 s/^/ /
10812 s/ -I/ $isystem/g
10813 s/^ //
10814 "
10815 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10816 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10818 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10819 succeeded=yes
10820 else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10823 GTK_CFLAGS=""
10824 GTK_LIBS=""
10825 ## If we have a custom action on failure, don't print errors, but
10826 ## do set a variable so people can do so. Do it in a subshell
10827 ## to capture any diagnostics in invoking pkg-config.
10828 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10829
10830 fi
10831
10832
10833
10834 else
10835 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10836 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10837 fi
10838 fi
10839
10840 if test $succeeded = yes; then
10841 pkg_check_gtk=yes
10842 else
10843 pkg_check_gtk=no
10844 fi
10845
10846 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10847 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10848 fi
10849 if test "$pkg_check_gtk" = "yes"; then
10850
10851 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10852
10853 GTK_OBJ=emacsgtkfixed.o
10854 term_header=gtkutil.h
10855 USE_GTK_TOOLKIT="GTK3"
10856 else
10857 check_gtk2=yes
10858 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10859 fi
10860 fi
10861
10862 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10863 GLIB_REQUIRED=2.10
10864 GTK_REQUIRED=2.10
10865 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10866
10867
10868 succeeded=no
10869
10870 if test "$PKG_CONFIG" = "no" ; then
10871 pkg_check_gtk=no
10872 else
10873 PKG_CONFIG_MIN_VERSION=0.9.0
10874 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10876 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10877
10878 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10879 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10880 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10881 edit_cflags="
10882 s,///*,/,g
10883 s/^/ /
10884 s/ -I/ $isystem/g
10885 s/^ //
10886 "
10887 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10888 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10890 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10891 succeeded=yes
10892 else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10895 GTK_CFLAGS=""
10896 GTK_LIBS=""
10897 ## If we have a custom action on failure, don't print errors, but
10898 ## do set a variable so people can do so. Do it in a subshell
10899 ## to capture any diagnostics in invoking pkg-config.
10900 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10901
10902 fi
10903
10904
10905
10906 else
10907 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10908 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10909 fi
10910 fi
10911
10912 if test $succeeded = yes; then
10913 pkg_check_gtk=yes
10914 else
10915 pkg_check_gtk=no
10916 fi
10917
10918 if test "$pkg_check_gtk" = "no" &&
10919 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
10920 then
10921 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10922 fi
10923 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
10924 fi
10925
10926 if test x"$pkg_check_gtk" = xyes; then
10927
10928
10929
10930 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10931 CFLAGS="$CFLAGS $GTK_CFLAGS"
10932 LIBS="$GTK_LIBS $LIBS"
10933 GTK_COMPILES=no
10934 for ac_func in gtk_main
10935 do :
10936 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10937 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_GTK_MAIN 1
10940 _ACEOF
10941 GTK_COMPILES=yes
10942 fi
10943 done
10944
10945 if test "${GTK_COMPILES}" != "yes"; then
10946 if test "$USE_X_TOOLKIT" != "maybe"; then
10947 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10948 fi
10949 else
10950 HAVE_GTK=yes
10951
10952 $as_echo "#define USE_GTK 1" >>confdefs.h
10953
10954 GTK_OBJ="gtkutil.o $GTK_OBJ"
10955 USE_X_TOOLKIT=none
10956 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
10957 :
10958 else
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10960 closing open displays. This is no problem if you just use
10961 one display, but if you use more than one and close one of them
10962 Emacs may crash." >&5
10963 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10964 closing open displays. This is no problem if you just use
10965 one display, but if you use more than one and close one of them
10966 Emacs may crash." >&2;}
10967 sleep 3
10968 fi
10969 fi
10970
10971 fi
10972
10973
10974
10975 if test "${HAVE_GTK}" = "yes"; then
10976
10977 if test "$with_toolkit_scroll_bars" != no; then
10978 with_toolkit_scroll_bars=yes
10979 fi
10980
10981 HAVE_GTK_FILE_SELECTION=no
10982 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10983 #include <gtk/gtk.h>
10984 "
10985 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10986 HAVE_GTK_FILE_SELECTION=yes
10987 else
10988 HAVE_GTK_FILE_SELECTION=no
10989 fi
10990
10991 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10992 for ac_func in gtk_file_selection_new
10993 do :
10994 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10995 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10996 cat >>confdefs.h <<_ACEOF
10997 #define HAVE_GTK_FILE_SELECTION_NEW 1
10998 _ACEOF
10999
11000 fi
11001 done
11002
11003 fi
11004
11005
11006 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11007 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11008 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11009 gtk_orientable_set_orientation \
11010 gtk_window_set_has_resize_grip
11011 do :
11012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11013 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11014 eval as_val=\$$as_ac_var
11015 if test "x$as_val" = x""yes; then :
11016 cat >>confdefs.h <<_ACEOF
11017 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11018 _ACEOF
11019
11020 fi
11021 done
11022
11023
11024 term_header=gtkutil.h
11025 fi
11026
11027 HAVE_DBUS=no
11028 DBUS_OBJ=
11029 if test "${with_dbus}" = "yes"; then
11030
11031 succeeded=no
11032
11033 if test "$PKG_CONFIG" = "no" ; then
11034 HAVE_DBUS=no
11035 else
11036 PKG_CONFIG_MIN_VERSION=0.9.0
11037 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11039 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11040
11041 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11042 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11043 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11044 edit_cflags="
11045 s,///*,/,g
11046 s/^/ /
11047 s/ -I/ $isystem/g
11048 s/^ //
11049 "
11050 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11051 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11053 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11054 succeeded=yes
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; }
11058 DBUS_CFLAGS=""
11059 DBUS_LIBS=""
11060 ## If we have a custom action on failure, don't print errors, but
11061 ## do set a variable so people can do so. Do it in a subshell
11062 ## to capture any diagnostics in invoking pkg-config.
11063 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11064
11065 fi
11066
11067
11068
11069 else
11070 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11071 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11072 fi
11073 fi
11074
11075 if test $succeeded = yes; then
11076 HAVE_DBUS=yes
11077 else
11078 HAVE_DBUS=no
11079 fi
11080
11081 if test "$HAVE_DBUS" = yes; then
11082 LIBS="$LIBS $DBUS_LIBS"
11083
11084 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11085
11086 for ac_func in dbus_watch_get_unix_fd \
11087 dbus_type_is_valid \
11088 dbus_validate_bus_name \
11089 dbus_validate_path \
11090 dbus_validate_interface \
11091 dbus_validate_member
11092 do :
11093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11094 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11095 eval as_val=\$$as_ac_var
11096 if test "x$as_val" = x""yes; then :
11097 cat >>confdefs.h <<_ACEOF
11098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11099 _ACEOF
11100
11101 fi
11102 done
11103
11104 DBUS_OBJ=dbusbind.o
11105 fi
11106 fi
11107
11108
11109 HAVE_GSETTINGS=no
11110 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11111
11112 succeeded=no
11113
11114 if test "$PKG_CONFIG" = "no" ; then
11115 HAVE_GSETTINGS=no
11116 else
11117 PKG_CONFIG_MIN_VERSION=0.9.0
11118 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11120 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11121
11122 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11123 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11124 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11125 edit_cflags="
11126 s,///*,/,g
11127 s/^/ /
11128 s/ -I/ $isystem/g
11129 s/^ //
11130 "
11131 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11132 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11134 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11135 succeeded=yes
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11139 GSETTINGS_CFLAGS=""
11140 GSETTINGS_LIBS=""
11141 ## If we have a custom action on failure, don't print errors, but
11142 ## do set a variable so people can do so. Do it in a subshell
11143 ## to capture any diagnostics in invoking pkg-config.
11144 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11145
11146 fi
11147
11148
11149
11150 else
11151 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11152 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11153 fi
11154 fi
11155
11156 if test $succeeded = yes; then
11157 HAVE_GSETTINGS=yes
11158 else
11159 HAVE_GSETTINGS=no
11160 fi
11161
11162 if test "$HAVE_GSETTINGS" = "yes"; then
11163
11164 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11165
11166 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11167 SETTINGS_LIBS="$GSETTINGS_LIBS"
11168 fi
11169 fi
11170
11171 HAVE_GCONF=no
11172 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11173
11174 succeeded=no
11175
11176 if test "$PKG_CONFIG" = "no" ; then
11177 HAVE_GCONF=no
11178 else
11179 PKG_CONFIG_MIN_VERSION=0.9.0
11180 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11182 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11183
11184 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11185 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11186 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11187 edit_cflags="
11188 s,///*,/,g
11189 s/^/ /
11190 s/ -I/ $isystem/g
11191 s/^ //
11192 "
11193 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11194 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11196 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11197 succeeded=yes
11198 else
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11201 GCONF_CFLAGS=""
11202 GCONF_LIBS=""
11203 ## If we have a custom action on failure, don't print errors, but
11204 ## do set a variable so people can do so. Do it in a subshell
11205 ## to capture any diagnostics in invoking pkg-config.
11206 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11207
11208 fi
11209
11210
11211
11212 else
11213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11215 fi
11216 fi
11217
11218 if test $succeeded = yes; then
11219 HAVE_GCONF=yes
11220 else
11221 HAVE_GCONF=no
11222 fi
11223
11224 if test "$HAVE_GCONF" = yes; then
11225
11226 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11227
11228 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11229 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11230 fi
11231 fi
11232
11233 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11234
11235 succeeded=no
11236
11237 if test "$PKG_CONFIG" = "no" ; then
11238 HAVE_GOBJECT=no
11239 else
11240 PKG_CONFIG_MIN_VERSION=0.9.0
11241 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11243 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11244
11245 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11246 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11247 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11248 edit_cflags="
11249 s,///*,/,g
11250 s/^/ /
11251 s/ -I/ $isystem/g
11252 s/^ //
11253 "
11254 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11255 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11257 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11258 succeeded=yes
11259 else
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261 $as_echo "no" >&6; }
11262 GOBJECT_CFLAGS=""
11263 GOBJECT_LIBS=""
11264 ## If we have a custom action on failure, don't print errors, but
11265 ## do set a variable so people can do so. Do it in a subshell
11266 ## to capture any diagnostics in invoking pkg-config.
11267 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11268
11269 fi
11270
11271
11272
11273 else
11274 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11275 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11276 fi
11277 fi
11278
11279 if test $succeeded = yes; then
11280 HAVE_GOBJECT=yes
11281 else
11282 HAVE_GOBJECT=no
11283 fi
11284
11285 if test "$HAVE_GOBJECT" = "yes"; then
11286 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11287 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11288 fi
11289 SAVE_CFLAGS="$CFLAGS"
11290 SAVE_LIBS="$LIBS"
11291 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11292 LIBS="$SETTINGS_LIBS $LIBS"
11293 for ac_func in g_type_init
11294 do :
11295 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11296 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11297 cat >>confdefs.h <<_ACEOF
11298 #define HAVE_G_TYPE_INIT 1
11299 _ACEOF
11300
11301 fi
11302 done
11303
11304 CFLAGS="$SAVE_CFLAGS"
11305 LIBS="$SAVE_LIBS"
11306 fi
11307
11308
11309
11310
11311 HAVE_LIBSELINUX=no
11312 LIBSELINUX_LIBS=
11313 if test "${with_selinux}" = "yes"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11315 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11316 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-lselinux $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11323
11324 /* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char lgetfilecon ();
11331 int
11332 main ()
11333 {
11334 return lgetfilecon ();
11335 ;
11336 return 0;
11337 }
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340 ac_cv_lib_selinux_lgetfilecon=yes
11341 else
11342 ac_cv_lib_selinux_lgetfilecon=no
11343 fi
11344 rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11349 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11350 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11351 HAVE_LIBSELINUX=yes
11352 else
11353 HAVE_LIBSELINUX=no
11354 fi
11355
11356 if test "$HAVE_LIBSELINUX" = yes; then
11357
11358 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11359
11360 LIBSELINUX_LIBS=-lselinux
11361 fi
11362 fi
11363
11364
11365 HAVE_GNUTLS=no
11366 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11367 if test "${with_gnutls}" = "yes" ; then
11368
11369 succeeded=no
11370
11371 if test "$PKG_CONFIG" = "no" ; then
11372 HAVE_GNUTLS=no
11373 else
11374 PKG_CONFIG_MIN_VERSION=0.9.0
11375 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11377 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11378
11379 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11380 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11381 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11382 edit_cflags="
11383 s,///*,/,g
11384 s/^/ /
11385 s/ -I/ $isystem/g
11386 s/^ //
11387 "
11388 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11389 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11391 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11392 succeeded=yes
11393 else
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395 $as_echo "no" >&6; }
11396 LIBGNUTLS_CFLAGS=""
11397 LIBGNUTLS_LIBS=""
11398 ## If we have a custom action on failure, don't print errors, but
11399 ## do set a variable so people can do so. Do it in a subshell
11400 ## to capture any diagnostics in invoking pkg-config.
11401 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11402
11403 fi
11404
11405
11406
11407 else
11408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11410 fi
11411 fi
11412
11413 if test $succeeded = yes; then
11414 HAVE_GNUTLS=yes
11415 else
11416 HAVE_GNUTLS=no
11417 fi
11418
11419 if test "${HAVE_GNUTLS}" = "yes"; then
11420
11421 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11422
11423 fi
11424
11425 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11426 LIBS="$LIBGNUTLS_LIBS $LIBS"
11427 for ac_func in gnutls_certificate_set_verify_function
11428 do :
11429 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11430 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11431 cat >>confdefs.h <<_ACEOF
11432 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11433 _ACEOF
11434 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11435 fi
11436 done
11437
11438
11439 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11440
11441 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11442
11443 fi
11444 fi
11445
11446
11447
11448
11449 if test "${with_inotify}" = "yes"; then
11450 for ac_header in sys/inotify.h
11451 do :
11452 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11453 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
11454 cat >>confdefs.h <<_ACEOF
11455 #define HAVE_SYS_INOTIFY_H 1
11456 _ACEOF
11457
11458 fi
11459
11460 done
11461
11462 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11463 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11464 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
11465
11466 fi
11467
11468 fi
11469 fi
11470 if test "$ac_cv_func_inotify_init1" = yes; then
11471
11472 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11473
11474 fi
11475
11476 HAVE_POSIX_ACL=no
11477 LIBACL_LIBS=
11478 if test "${with_acl}" = "yes"; then
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11480 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11481 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 ac_check_lib_save_LIBS=$LIBS
11485 LIBS="-lacl $LIBS"
11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11488
11489 /* Override any GCC internal prototype to avoid an error.
11490 Use char because int might match the return type of a GCC
11491 builtin and then its argument prototype would still apply. */
11492 #ifdef __cplusplus
11493 extern "C"
11494 #endif
11495 char acl_set_file ();
11496 int
11497 main ()
11498 {
11499 return acl_set_file ();
11500 ;
11501 return 0;
11502 }
11503 _ACEOF
11504 if ac_fn_c_try_link "$LINENO"; then :
11505 ac_cv_lib_acl_acl_set_file=yes
11506 else
11507 ac_cv_lib_acl_acl_set_file=no
11508 fi
11509 rm -f core conftest.err conftest.$ac_objext \
11510 conftest$ac_exeext conftest.$ac_ext
11511 LIBS=$ac_check_lib_save_LIBS
11512 fi
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11514 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11515 if test "x$ac_cv_lib_acl_acl_set_file" = x""yes; then :
11516 HAVE_POSIX_ACL=yes
11517 else
11518 HAVE_POSIX_ACL=no
11519 fi
11520
11521 if test "$HAVE_POSIX_ACL" = yes; then
11522
11523 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11524
11525 LIBACL_LIBS=-lacl
11526 else
11527 ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11528 if test "x$ac_cv_func_acl_set_file" = x""yes; then :
11529 HAVE_POSIX_ACL=yes
11530 else
11531 HAVE_POSIX_ACL=no
11532 fi
11533
11534 if test "$HAVE_POSIX_ACL" = yes; then
11535
11536 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11537
11538 fi
11539 fi
11540 fi
11541
11542
11543 HAVE_XAW3D=no
11544 LUCID_LIBW=
11545 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11546 if test "$with_xaw3d" != no; then
11547 if test "${emacs_cv_xaw3d+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h. */
11552
11553 #include <X11/Intrinsic.h>
11554 #include <X11/Xaw3d/Simple.h>
11555 int
11556 main ()
11557 {
11558
11559 ;
11560 return 0;
11561 }
11562 _ACEOF
11563 if ac_fn_c_try_link "$LINENO"; then :
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11565 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11566 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 ac_check_lib_save_LIBS=$LIBS
11570 LIBS="-lXaw3d $LIBS"
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11573
11574 /* Override any GCC internal prototype to avoid an error.
11575 Use char because int might match the return type of a GCC
11576 builtin and then its argument prototype would still apply. */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 char XawScrollbarSetThumb ();
11581 int
11582 main ()
11583 {
11584 return XawScrollbarSetThumb ();
11585 ;
11586 return 0;
11587 }
11588 _ACEOF
11589 if ac_fn_c_try_link "$LINENO"; then :
11590 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11591 else
11592 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11593 fi
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_lib_save_LIBS
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11599 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11600 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11601 emacs_cv_xaw3d=yes
11602 else
11603 emacs_cv_xaw3d=no
11604 fi
11605
11606 else
11607 emacs_cv_xaw3d=no
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611 fi
11612
11613 else
11614 emacs_cv_xaw3d=no
11615 fi
11616 if test $emacs_cv_xaw3d = yes; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11618 $as_echo_n "checking for xaw3d... " >&6; }
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11620 $as_echo "yes; using Lucid toolkit" >&6; }
11621 USE_X_TOOLKIT=LUCID
11622 HAVE_XAW3D=yes
11623 LUCID_LIBW=-lXaw3d
11624
11625 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11626
11627 else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11629 $as_echo_n "checking for xaw3d... " >&6; }
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11633 $as_echo_n "checking for libXaw... " >&6; }
11634 if test "${emacs_cv_xaw+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639
11640 #include <X11/Intrinsic.h>
11641 #include <X11/Xaw/Simple.h>
11642 int
11643 main ()
11644 {
11645
11646 ;
11647 return 0;
11648 }
11649 _ACEOF
11650 if ac_fn_c_try_link "$LINENO"; then :
11651 emacs_cv_xaw=yes
11652 else
11653 emacs_cv_xaw=no
11654 fi
11655 rm -f core conftest.err conftest.$ac_objext \
11656 conftest$ac_exeext conftest.$ac_ext
11657 fi
11658
11659 if test $emacs_cv_xaw = yes; then
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11661 $as_echo "yes; using Lucid toolkit" >&6; }
11662 USE_X_TOOLKIT=LUCID
11663 LUCID_LIBW=-lXaw
11664 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11665 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11666 else
11667 as_fn_error "No X toolkit could be found.
11668 If you are sure you want Emacs compiled without an X toolkit, pass
11669 --with-x-toolkit=no
11670 to configure. Otherwise, install the development libraries for the toolkit
11671 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11672 fi
11673 fi
11674 fi
11675
11676 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11677
11678 LIBXTR6=
11679 if test "${USE_X_TOOLKIT}" != "none"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11681 $as_echo_n "checking X11 toolkit version... " >&6; }
11682 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11687 #include <X11/Intrinsic.h>
11688 int
11689 main ()
11690 {
11691 #if XtSpecificationRelease < 6
11692 fail;
11693 #endif
11694
11695 ;
11696 return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"; then :
11700 emacs_cv_x11_toolkit_version_6=yes
11701 else
11702 emacs_cv_x11_toolkit_version_6=no
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext \
11705 conftest$ac_exeext conftest.$ac_ext
11706 fi
11707
11708 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11709 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11711 $as_echo "6 or newer" >&6; }
11712
11713 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11714
11715 LIBXTR6="-lSM -lICE"
11716 case "$opsys" in
11717 ## Use libw.a along with X11R6 Xt.
11718 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11719 esac
11720 else
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11722 $as_echo "before 6" >&6; }
11723 fi
11724
11725 OLDLIBS="$LIBS"
11726 if test x$HAVE_X11XTR6 = xyes; then
11727 LIBS="-lXt -lSM -lICE $LIBS"
11728 else
11729 LIBS="-lXt $LIBS"
11730 fi
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11732 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11733 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11734 $as_echo_n "(cached) " >&6
11735 else
11736 ac_check_lib_save_LIBS=$LIBS
11737 LIBS="-lXmu $LIBS"
11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h. */
11740
11741 /* Override any GCC internal prototype to avoid an error.
11742 Use char because int might match the return type of a GCC
11743 builtin and then its argument prototype would still apply. */
11744 #ifdef __cplusplus
11745 extern "C"
11746 #endif
11747 char XmuConvertStandardSelection ();
11748 int
11749 main ()
11750 {
11751 return XmuConvertStandardSelection ();
11752 ;
11753 return 0;
11754 }
11755 _ACEOF
11756 if ac_fn_c_try_link "$LINENO"; then :
11757 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11758 else
11759 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11760 fi
11761 rm -f core conftest.err conftest.$ac_objext \
11762 conftest$ac_exeext conftest.$ac_ext
11763 LIBS=$ac_check_lib_save_LIBS
11764 fi
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11766 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11767 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11768 cat >>confdefs.h <<_ACEOF
11769 #define HAVE_LIBXMU 1
11770 _ACEOF
11771
11772 LIBS="-lXmu $LIBS"
11773
11774 fi
11775
11776 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11777 fi
11778
11779
11780 LIBXMU=-lXmu
11781 case $opsys in
11782 ## These systems don't supply Xmu.
11783 hpux* | aix4-2 )
11784 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11785 ;;
11786 esac
11787
11788
11789 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11790 if test "${HAVE_X11}" = "yes"; then
11791 if test "${USE_X_TOOLKIT}" != "none"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11793 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11794 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 ac_check_lib_save_LIBS=$LIBS
11798 LIBS="-lXext $LIBS"
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11801
11802 /* Override any GCC internal prototype to avoid an error.
11803 Use char because int might match the return type of a GCC
11804 builtin and then its argument prototype would still apply. */
11805 #ifdef __cplusplus
11806 extern "C"
11807 #endif
11808 char XShapeQueryExtension ();
11809 int
11810 main ()
11811 {
11812 return XShapeQueryExtension ();
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 if ac_fn_c_try_link "$LINENO"; then :
11818 ac_cv_lib_Xext_XShapeQueryExtension=yes
11819 else
11820 ac_cv_lib_Xext_XShapeQueryExtension=no
11821 fi
11822 rm -f core conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
11824 LIBS=$ac_check_lib_save_LIBS
11825 fi
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11827 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11828 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11829 cat >>confdefs.h <<_ACEOF
11830 #define HAVE_LIBXEXT 1
11831 _ACEOF
11832
11833 LIBS="-lXext $LIBS"
11834
11835 fi
11836
11837 fi
11838 fi
11839
11840 LIBXP=
11841 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11842 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11843 if test -d /usr/include/openmotif; then
11844 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11845 emacs_cv_openmotif=yes
11846 case "$canonical" in
11847 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11848 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11849 ;;
11850 *)
11851 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11852 esac
11853 else
11854 emacs_cv_openmotif=no
11855 fi
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11857 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11858 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11863 #include <Xm/Xm.h>
11864 int
11865 main ()
11866 {
11867 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11868 int x = 5;
11869 #else
11870 Motif version prior to 2.1.
11871 #endif
11872 ;
11873 return 0;
11874 }
11875 _ACEOF
11876 if ac_fn_c_try_compile "$LINENO"; then :
11877 emacs_cv_motif_version_2_1=yes
11878 else
11879 emacs_cv_motif_version_2_1=no
11880 fi
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882 fi
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11884 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11885 if test $emacs_cv_motif_version_2_1 = yes; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11887 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11888 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 ac_check_lib_save_LIBS=$LIBS
11892 LIBS="-lXp $LIBS"
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11895
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char XpCreateContext ();
11903 int
11904 main ()
11905 {
11906 return XpCreateContext ();
11907 ;
11908 return 0;
11909 }
11910 _ACEOF
11911 if ac_fn_c_try_link "$LINENO"; then :
11912 ac_cv_lib_Xp_XpCreateContext=yes
11913 else
11914 ac_cv_lib_Xp_XpCreateContext=no
11915 fi
11916 rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11918 LIBS=$ac_check_lib_save_LIBS
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11921 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11922 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11923 LIBXP=-lXp
11924 fi
11925
11926 if test x$emacs_cv_openmotif = xyes; then
11927 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11928 fi
11929 else
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11931 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11932 if test "${emacs_cv_lesstif+set}" = set; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 # We put this in CFLAGS temporarily to precede other -I options
11936 # that might be in CFLAGS temporarily.
11937 # We put this in CPPFLAGS where it precedes the other -I options.
11938 OLD_CPPFLAGS=$CPPFLAGS
11939 OLD_CFLAGS=$CFLAGS
11940 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11941 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11944 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11945 int
11946 main ()
11947 {
11948 int x = 5;
11949 ;
11950 return 0;
11951 }
11952 _ACEOF
11953 if ac_fn_c_try_compile "$LINENO"; then :
11954 emacs_cv_lesstif=yes
11955 else
11956 emacs_cv_lesstif=no
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11961 $as_echo "$emacs_cv_lesstif" >&6; }
11962 if test $emacs_cv_lesstif = yes; then
11963 # Make sure this -I option remains in CPPFLAGS after it is set
11964 # back to REAL_CPPFLAGS.
11965 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11966 # have those other -I options anyway. Ultimately, having this
11967 # directory ultimately in CPPFLAGS will be enough.
11968 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11969 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11970 else
11971 CFLAGS=$OLD_CFLAGS
11972 CPPFLAGS=$OLD_CPPFLAGS
11973 fi
11974 fi
11975 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11976 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11977
11978 else
11979 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11980 fi
11981
11982
11983 fi
11984
11985
11986 USE_TOOLKIT_SCROLL_BARS=no
11987 if test "${with_toolkit_scroll_bars}" != "no"; then
11988 if test "${USE_X_TOOLKIT}" != "none"; then
11989 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11990 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11991
11992 HAVE_XAW3D=no
11993 USE_TOOLKIT_SCROLL_BARS=yes
11994 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11995 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11996
11997 USE_TOOLKIT_SCROLL_BARS=yes
11998 fi
11999 elif test "${HAVE_GTK}" = "yes"; then
12000 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12001
12002 USE_TOOLKIT_SCROLL_BARS=yes
12003 elif test "${HAVE_NS}" = "yes"; then
12004 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12005
12006 USE_TOOLKIT_SCROLL_BARS=yes
12007 elif test "${HAVE_W32}" = "yes"; then
12008 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12009
12010 USE_TOOLKIT_SCROLL_BARS=yes
12011 fi
12012 fi
12013
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12016
12017 #include <X11/Xlib.h>
12018 #include <X11/Xresource.h>
12019 int
12020 main ()
12021 {
12022 XIMProc callback;
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 if ac_fn_c_try_compile "$LINENO"; then :
12028 HAVE_XIM=yes
12029
12030 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12031
12032 else
12033 HAVE_XIM=no
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036
12037
12038 if test "${with_xim}" != "no"; then
12039
12040 $as_echo "#define USE_XIM 1" >>confdefs.h
12041
12042 fi
12043
12044
12045 if test "${HAVE_XIM}" != "no"; then
12046 late_CFLAGS=$CFLAGS
12047 if test "$GCC" = yes; then
12048 CFLAGS="$CFLAGS --pedantic-errors"
12049 fi
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052
12053 #include <X11/Xlib.h>
12054 #include <X11/Xresource.h>
12055 int
12056 main ()
12057 {
12058 Display *display;
12059 XrmDatabase db;
12060 char *res_name;
12061 char *res_class;
12062 XIMProc callback;
12063 XPointer *client_data;
12064 #ifndef __GNUC__
12065 /* If we're not using GCC, it's probably not XFree86, and this is
12066 probably right, but we can't use something like --pedantic-errors. */
12067 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12068 char*, XIMProc, XPointer*);
12069 #endif
12070 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12071 client_data);
12072 ;
12073 return 0;
12074 }
12075 _ACEOF
12076 if ac_fn_c_try_compile "$LINENO"; then :
12077 emacs_cv_arg6_star=yes
12078 fi
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 if test "$emacs_cv_arg6_star" = yes; then
12081 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12082
12083 else
12084 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12085
12086 fi
12087 CFLAGS=$late_CFLAGS
12088 fi
12089
12090 ### Start of font-backend (under any platform) section.
12091 # (nothing here yet -- this is a placeholder)
12092 ### End of font-backend (under any platform) section.
12093
12094 ### Start of font-backend (under X11) section.
12095 if test "${HAVE_X11}" = "yes"; then
12096
12097 succeeded=no
12098
12099 if test "$PKG_CONFIG" = "no" ; then
12100 HAVE_FC=no
12101 else
12102 PKG_CONFIG_MIN_VERSION=0.9.0
12103 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12105 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12106
12107 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12108 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12109 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12110 edit_cflags="
12111 s,///*,/,g
12112 s/^/ /
12113 s/ -I/ $isystem/g
12114 s/^ //
12115 "
12116 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12117 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12119 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12120 succeeded=yes
12121 else
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12124 FONTCONFIG_CFLAGS=""
12125 FONTCONFIG_LIBS=""
12126 ## If we have a custom action on failure, don't print errors, but
12127 ## do set a variable so people can do so. Do it in a subshell
12128 ## to capture any diagnostics in invoking pkg-config.
12129 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12130
12131 fi
12132
12133
12134
12135 else
12136 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12137 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12138 fi
12139 fi
12140
12141 if test $succeeded = yes; then
12142 HAVE_FC=yes
12143 else
12144 HAVE_FC=no
12145 fi
12146
12147
12148 ## Use -lXft if available, unless `--with-xft=no'.
12149 HAVE_XFT=maybe
12150 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12151 with_xft="no";
12152 fi
12153 if test "x${with_xft}" != "xno"; then
12154
12155
12156 succeeded=no
12157
12158 if test "$PKG_CONFIG" = "no" ; then
12159 HAVE_XFT=no
12160 else
12161 PKG_CONFIG_MIN_VERSION=0.9.0
12162 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12164 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12165
12166 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12167 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12168 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12169 edit_cflags="
12170 s,///*,/,g
12171 s/^/ /
12172 s/ -I/ $isystem/g
12173 s/^ //
12174 "
12175 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12176 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12178 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12179 succeeded=yes
12180 else
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12183 XFT_CFLAGS=""
12184 XFT_LIBS=""
12185 ## If we have a custom action on failure, don't print errors, but
12186 ## do set a variable so people can do so. Do it in a subshell
12187 ## to capture any diagnostics in invoking pkg-config.
12188 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12189
12190 fi
12191
12192
12193
12194 else
12195 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12196 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12197 fi
12198 fi
12199
12200 if test $succeeded = yes; then
12201 :
12202 else
12203 HAVE_XFT=no
12204 fi
12205
12206 ## Because xftfont.c uses XRenderQueryExtension, we also
12207 ## need to link to -lXrender.
12208 HAVE_XRENDER=no
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12210 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12211 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 ac_check_lib_save_LIBS=$LIBS
12215 LIBS="-lXrender $LIBS"
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12218
12219 /* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 char XRenderQueryExtension ();
12226 int
12227 main ()
12228 {
12229 return XRenderQueryExtension ();
12230 ;
12231 return 0;
12232 }
12233 _ACEOF
12234 if ac_fn_c_try_link "$LINENO"; then :
12235 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12236 else
12237 ac_cv_lib_Xrender_XRenderQueryExtension=no
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12244 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12245 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12246 HAVE_XRENDER=yes
12247 fi
12248
12249 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12250 OLD_CPPFLAGS="$CPPFLAGS"
12251 OLD_CFLAGS="$CFLAGS"
12252 OLD_LIBS="$LIBS"
12253 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12254 CFLAGS="$CFLAGS $XFT_CFLAGS"
12255 XFT_LIBS="-lXrender $XFT_LIBS"
12256 LIBS="$XFT_LIBS $LIBS"
12257 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12258 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12260 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12261 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264 ac_check_lib_save_LIBS=$LIBS
12265 LIBS="-lXft $XFT_LIBS $LIBS"
12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267 /* end confdefs.h. */
12268
12269 /* Override any GCC internal prototype to avoid an error.
12270 Use char because int might match the return type of a GCC
12271 builtin and then its argument prototype would still apply. */
12272 #ifdef __cplusplus
12273 extern "C"
12274 #endif
12275 char XftFontOpen ();
12276 int
12277 main ()
12278 {
12279 return XftFontOpen ();
12280 ;
12281 return 0;
12282 }
12283 _ACEOF
12284 if ac_fn_c_try_link "$LINENO"; then :
12285 ac_cv_lib_Xft_XftFontOpen=yes
12286 else
12287 ac_cv_lib_Xft_XftFontOpen=no
12288 fi
12289 rm -f core conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12292 fi
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12294 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12295 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12296 HAVE_XFT=yes
12297 fi
12298
12299 fi
12300
12301
12302
12303 if test "${HAVE_XFT}" = "yes"; then
12304
12305 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12306
12307
12308 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12309 else
12310 CPPFLAGS="$OLD_CPPFLAGS"
12311 CFLAGS="$OLD_CFLAGS"
12312 LIBS="$OLD_LIBS"
12313 fi # "${HAVE_XFT}" = "yes"
12314 fi # "$HAVE_XFT" != no
12315 fi # "x${with_xft}" != "xno"
12316
12317 ## We used to allow building with FreeType and without Xft.
12318 ## However, the ftx font backend driver is not in good shape.
12319 if test "$HAVE_XFT" != "yes"; then
12320 HAVE_XFT=no
12321 HAVE_FREETYPE=no
12322 else
12323
12324 succeeded=no
12325
12326 if test "$PKG_CONFIG" = "no" ; then
12327 HAVE_FREETYPE=no
12328 else
12329 PKG_CONFIG_MIN_VERSION=0.9.0
12330 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12332 $as_echo_n "checking for freetype2... " >&6; }
12333
12334 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12335 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12336 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12337 edit_cflags="
12338 s,///*,/,g
12339 s/^/ /
12340 s/ -I/ $isystem/g
12341 s/^ //
12342 "
12343 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12344 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12346 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12347 succeeded=yes
12348 else
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12351 FREETYPE_CFLAGS=""
12352 FREETYPE_LIBS=""
12353 ## If we have a custom action on failure, don't print errors, but
12354 ## do set a variable so people can do so. Do it in a subshell
12355 ## to capture any diagnostics in invoking pkg-config.
12356 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12357
12358 fi
12359
12360
12361
12362 else
12363 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12364 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12365 fi
12366 fi
12367
12368 if test $succeeded = yes; then
12369 HAVE_FREETYPE=yes
12370 else
12371 HAVE_FREETYPE=no
12372 fi
12373
12374
12375 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12376 fi
12377
12378 HAVE_LIBOTF=no
12379 if test "${HAVE_FREETYPE}" = "yes"; then
12380
12381 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12382
12383 if test "${with_libotf}" != "no"; then
12384
12385 succeeded=no
12386
12387 if test "$PKG_CONFIG" = "no" ; then
12388 HAVE_LIBOTF=no
12389 else
12390 PKG_CONFIG_MIN_VERSION=0.9.0
12391 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12393 $as_echo_n "checking for libotf... " >&6; }
12394
12395 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12396 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12397 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12398 edit_cflags="
12399 s,///*,/,g
12400 s/^/ /
12401 s/ -I/ $isystem/g
12402 s/^ //
12403 "
12404 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12405 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12407 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12408 succeeded=yes
12409 else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12412 LIBOTF_CFLAGS=""
12413 LIBOTF_LIBS=""
12414 ## If we have a custom action on failure, don't print errors, but
12415 ## do set a variable so people can do so. Do it in a subshell
12416 ## to capture any diagnostics in invoking pkg-config.
12417 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12418
12419 fi
12420
12421
12422
12423 else
12424 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12425 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12426 fi
12427 fi
12428
12429 if test $succeeded = yes; then
12430 HAVE_LIBOTF=yes
12431 else
12432 HAVE_LIBOTF=no
12433 fi
12434
12435 if test "$HAVE_LIBOTF" = "yes"; then
12436
12437 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12438
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12440 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12441 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 ac_check_lib_save_LIBS=$LIBS
12445 LIBS="-lotf $LIBS"
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h. */
12448
12449 /* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
12452 #ifdef __cplusplus
12453 extern "C"
12454 #endif
12455 char OTF_get_variation_glyphs ();
12456 int
12457 main ()
12458 {
12459 return OTF_get_variation_glyphs ();
12460 ;
12461 return 0;
12462 }
12463 _ACEOF
12464 if ac_fn_c_try_link "$LINENO"; then :
12465 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12466 else
12467 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12468 fi
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471 LIBS=$ac_check_lib_save_LIBS
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12474 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12475 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12476 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12477 else
12478 HAVE_OTF_GET_VARIATION_GLYPHS=no
12479 fi
12480
12481 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12482
12483 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12484
12485 fi
12486 fi
12487 fi
12488 fi
12489
12490 HAVE_M17N_FLT=no
12491 if test "${HAVE_LIBOTF}" = yes; then
12492 if test "${with_m17n_flt}" != "no"; then
12493
12494 succeeded=no
12495
12496 if test "$PKG_CONFIG" = "no" ; then
12497 HAVE_M17N_FLT=no
12498 else
12499 PKG_CONFIG_MIN_VERSION=0.9.0
12500 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12502 $as_echo_n "checking for m17n-flt... " >&6; }
12503
12504 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12505 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12506 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12507 edit_cflags="
12508 s,///*,/,g
12509 s/^/ /
12510 s/ -I/ $isystem/g
12511 s/^ //
12512 "
12513 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12514 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12516 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12517 succeeded=yes
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 $as_echo "no" >&6; }
12521 M17N_FLT_CFLAGS=""
12522 M17N_FLT_LIBS=""
12523 ## If we have a custom action on failure, don't print errors, but
12524 ## do set a variable so people can do so. Do it in a subshell
12525 ## to capture any diagnostics in invoking pkg-config.
12526 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12527
12528 fi
12529
12530
12531
12532 else
12533 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12534 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12535 fi
12536 fi
12537
12538 if test $succeeded = yes; then
12539 HAVE_M17N_FLT=yes
12540 else
12541 HAVE_M17N_FLT=no
12542 fi
12543
12544 if test "$HAVE_M17N_FLT" = "yes"; then
12545
12546 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12547
12548 fi
12549 fi
12550 fi
12551 else
12552 HAVE_XFT=no
12553 HAVE_FREETYPE=no
12554 HAVE_LIBOTF=no
12555 HAVE_M17N_FLT=no
12556 fi
12557
12558 ### End of font-backend (under X11) section.
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569 ### Use -lXpm if available, unless `--with-xpm=no'.
12570 HAVE_XPM=no
12571 LIBXPM=
12572
12573 if test "${HAVE_W32}" = "yes"; then
12574 if test "${with_xpm}" != "no"; then
12575 SAVE_CPPFLAGS="$CPPFLAGS"
12576 SAVE_LDFLAGS="$LDFLAGS"
12577 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12578 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12579 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12580 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12582 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12583 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 ac_check_lib_save_LIBS=$LIBS
12587 LIBS="-lXpm $LIBS"
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h. */
12590
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12594 #ifdef __cplusplus
12595 extern "C"
12596 #endif
12597 char XpmReadFileToImage ();
12598 int
12599 main ()
12600 {
12601 return XpmReadFileToImage ();
12602 ;
12603 return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_link "$LINENO"; then :
12607 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12608 else
12609 ac_cv_lib_Xpm_XpmReadFileToImage=no
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext conftest.$ac_ext
12613 LIBS=$ac_check_lib_save_LIBS
12614 fi
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12616 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12617 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12618 HAVE_XPM=yes
12619 fi
12620
12621 fi
12622
12623
12624 if test "${HAVE_XPM}" = "yes"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12626 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12629 #include "X11/xpm.h"
12630 #ifndef XpmReturnAllocPixels
12631 no_return_alloc_pixels
12632 #endif
12633
12634 _ACEOF
12635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12636 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12637 HAVE_XPM=no
12638 else
12639 HAVE_XPM=yes
12640 fi
12641 rm -f conftest*
12642
12643
12644 if test "${HAVE_XPM}" = "yes"; then
12645 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12647 $as_echo "yes" >&6; }
12648 else
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12651 CPPFLAGS="$SAVE_CPPFLAGS"
12652 LDFLAGS="$SAVE_LDFLAGS"
12653 fi
12654 fi
12655 fi
12656
12657 if test "${HAVE_XPM}" = "yes"; then
12658
12659 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12660
12661 LIBXPM=-lXpm
12662 fi
12663 fi
12664
12665 if test "${HAVE_X11}" = "yes"; then
12666 if test "${with_xpm}" != "no"; then
12667 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12668 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12670 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12671 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 ac_check_lib_save_LIBS=$LIBS
12675 LIBS="-lXpm -lX11 $LIBS"
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678
12679 /* Override any GCC internal prototype to avoid an error.
12680 Use char because int might match the return type of a GCC
12681 builtin and then its argument prototype would still apply. */
12682 #ifdef __cplusplus
12683 extern "C"
12684 #endif
12685 char XpmReadFileToPixmap ();
12686 int
12687 main ()
12688 {
12689 return XpmReadFileToPixmap ();
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12696 else
12697 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12704 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12705 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12706 HAVE_XPM=yes
12707 fi
12708
12709 fi
12710
12711
12712 if test "${HAVE_XPM}" = "yes"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12714 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12717 #include "X11/xpm.h"
12718 #ifndef XpmReturnAllocPixels
12719 no_return_alloc_pixels
12720 #endif
12721
12722 _ACEOF
12723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12724 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12725 HAVE_XPM=no
12726 else
12727 HAVE_XPM=yes
12728 fi
12729 rm -f conftest*
12730
12731
12732 if test "${HAVE_XPM}" = "yes"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12734 $as_echo "yes" >&6; }
12735 else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12738 fi
12739 fi
12740 fi
12741
12742 if test "${HAVE_XPM}" = "yes"; then
12743
12744 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12745
12746 LIBXPM=-lXpm
12747 fi
12748 fi
12749
12750
12751
12752 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12753 HAVE_JPEG=no
12754 LIBJPEG=
12755 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12756 if test "${with_jpeg}" != "no"; then
12757 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12758 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12760 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12761 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12764 ac_check_lib_save_LIBS=$LIBS
12765 LIBS="-ljpeg $LIBS"
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768
12769 /* Override any GCC internal prototype to avoid an error.
12770 Use char because int might match the return type of a GCC
12771 builtin and then its argument prototype would still apply. */
12772 #ifdef __cplusplus
12773 extern "C"
12774 #endif
12775 char jpeg_destroy_compress ();
12776 int
12777 main ()
12778 {
12779 return jpeg_destroy_compress ();
12780 ;
12781 return 0;
12782 }
12783 _ACEOF
12784 if ac_fn_c_try_link "$LINENO"; then :
12785 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12786 else
12787 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12788 fi
12789 rm -f core conftest.err conftest.$ac_objext \
12790 conftest$ac_exeext conftest.$ac_ext
12791 LIBS=$ac_check_lib_save_LIBS
12792 fi
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12794 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12795 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12796 HAVE_JPEG=yes
12797 fi
12798
12799 fi
12800
12801
12802 fi
12803
12804 if test "${HAVE_JPEG}" = "yes"; then
12805 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12806
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12809 #include <jpeglib.h>
12810 version=JPEG_LIB_VERSION
12811
12812 _ACEOF
12813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12814 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12815 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12816
12817 else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12819 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12820 HAVE_JPEG=no
12821 fi
12822 rm -f conftest*
12823
12824 fi
12825 if test "${HAVE_JPEG}" = "yes"; then
12826 LIBJPEG=-ljpeg
12827 fi
12828 fi
12829
12830
12831 ### Use -lpng if available, unless `--with-png=no'.
12832 HAVE_PNG=no
12833 LIBPNG=
12834 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12835 if test "${with_png}" != "no"; then
12836 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12837 # in /usr/include/libpng.
12838 for ac_header in png.h libpng/png.h
12839 do :
12840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12841 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12842 eval as_val=\$$as_ac_Header
12843 if test "x$as_val" = x""yes; then :
12844 cat >>confdefs.h <<_ACEOF
12845 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12846 _ACEOF
12847 break
12848 fi
12849
12850 done
12851
12852 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12854 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12855 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 ac_check_lib_save_LIBS=$LIBS
12859 LIBS="-lpng -lz -lm $LIBS"
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862
12863 /* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12866 #ifdef __cplusplus
12867 extern "C"
12868 #endif
12869 char png_get_channels ();
12870 int
12871 main ()
12872 {
12873 return png_get_channels ();
12874 ;
12875 return 0;
12876 }
12877 _ACEOF
12878 if ac_fn_c_try_link "$LINENO"; then :
12879 ac_cv_lib_png_png_get_channels=yes
12880 else
12881 ac_cv_lib_png_png_get_channels=no
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12886 fi
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12888 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12889 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12890 HAVE_PNG=yes
12891 fi
12892
12893 fi
12894 fi
12895
12896 if test "${HAVE_PNG}" = "yes"; then
12897
12898 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12899
12900 LIBPNG="-lpng -lz -lm"
12901
12902 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12903 # include <libpng/png.h>
12904 #else
12905 # include <png.h>
12906 #endif
12907
12908 "
12909 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12910
12911 else
12912
12913 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12914
12915 fi
12916
12917 fi
12918 fi
12919
12920
12921 ### Use -ltiff if available, unless `--with-tiff=no'.
12922 HAVE_TIFF=no
12923 LIBTIFF=
12924 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12925 if test "${with_tiff}" != "no"; then
12926 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12927 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12928 tifflibs="-lz -lm"
12929 # At least one tiff package requires the jpeg library.
12930 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12932 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12933 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12934 $as_echo_n "(cached) " >&6
12935 else
12936 ac_check_lib_save_LIBS=$LIBS
12937 LIBS="-ltiff $tifflibs $LIBS"
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940
12941 /* Override any GCC internal prototype to avoid an error.
12942 Use char because int might match the return type of a GCC
12943 builtin and then its argument prototype would still apply. */
12944 #ifdef __cplusplus
12945 extern "C"
12946 #endif
12947 char TIFFGetVersion ();
12948 int
12949 main ()
12950 {
12951 return TIFFGetVersion ();
12952 ;
12953 return 0;
12954 }
12955 _ACEOF
12956 if ac_fn_c_try_link "$LINENO"; then :
12957 ac_cv_lib_tiff_TIFFGetVersion=yes
12958 else
12959 ac_cv_lib_tiff_TIFFGetVersion=no
12960 fi
12961 rm -f core conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
12963 LIBS=$ac_check_lib_save_LIBS
12964 fi
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12966 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12967 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12968 HAVE_TIFF=yes
12969 fi
12970
12971 fi
12972
12973
12974 fi
12975
12976 if test "${HAVE_TIFF}" = "yes"; then
12977
12978 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12979
12980 LIBTIFF=-ltiff
12981 fi
12982 fi
12983
12984
12985 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12986 HAVE_GIF=no
12987 LIBGIF=
12988 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
12989 || test "${HAVE_W32}" = "yes"; then
12990 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12991 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12992 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12993 # Earlier versions can crash Emacs.
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12995 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12996 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 ac_check_lib_save_LIBS=$LIBS
13000 LIBS="-lgif $LIBS"
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003
13004 /* Override any GCC internal prototype to avoid an error.
13005 Use char because int might match the return type of a GCC
13006 builtin and then its argument prototype would still apply. */
13007 #ifdef __cplusplus
13008 extern "C"
13009 #endif
13010 char EGifPutExtensionLast ();
13011 int
13012 main ()
13013 {
13014 return EGifPutExtensionLast ();
13015 ;
13016 return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_link "$LINENO"; then :
13020 ac_cv_lib_gif_EGifPutExtensionLast=yes
13021 else
13022 ac_cv_lib_gif_EGifPutExtensionLast=no
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13026 LIBS=$ac_check_lib_save_LIBS
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13029 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13030 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13031 HAVE_GIF=yes
13032 else
13033 HAVE_GIF=maybe
13034 fi
13035
13036 fi
13037
13038
13039
13040 if test "$HAVE_GIF" = yes; then
13041 LIBGIF=-lgif
13042 elif test "$HAVE_GIF" = maybe; then
13043 # If gif_lib.h but no libgif, try libungif.
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13045 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13046 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049 ac_check_lib_save_LIBS=$LIBS
13050 LIBS="-lungif $LIBS"
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053
13054 /* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 char EGifPutExtensionLast ();
13061 int
13062 main ()
13063 {
13064 return EGifPutExtensionLast ();
13065 ;
13066 return 0;
13067 }
13068 _ACEOF
13069 if ac_fn_c_try_link "$LINENO"; then :
13070 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13071 else
13072 ac_cv_lib_ungif_EGifPutExtensionLast=no
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13076 LIBS=$ac_check_lib_save_LIBS
13077 fi
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13079 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13080 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13081 HAVE_GIF=yes
13082 else
13083 HAVE_GIF=no
13084 fi
13085
13086 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13087 fi
13088
13089 if test "${HAVE_GIF}" = "yes"; then
13090
13091 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13092
13093 fi
13094 fi
13095
13096
13097 if test "${HAVE_X11}" = "yes"; then
13098 MISSING=""
13099 WITH_NO=""
13100 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13101 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13102 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13103 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13104 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13105 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13106 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13107 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13108 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13109 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13110
13111 if test "X${MISSING}" != X; then
13112 as_fn_error "The following required libraries were not found:
13113 $MISSING
13114 Maybe some development libraries/packages are missing?
13115 If you don't want to link with them give
13116 $WITH_NO
13117 as options to configure" "$LINENO" 5
13118 fi
13119 fi
13120
13121 ### Use -lgpm if available, unless `--with-gpm=no'.
13122 HAVE_GPM=no
13123 LIBGPM=
13124 if test "${with_gpm}" != "no"; then
13125 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13126 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13128 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13129 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lgpm $LIBS"
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13140 #ifdef __cplusplus
13141 extern "C"
13142 #endif
13143 char Gpm_Open ();
13144 int
13145 main ()
13146 {
13147 return Gpm_Open ();
13148 ;
13149 return 0;
13150 }
13151 _ACEOF
13152 if ac_fn_c_try_link "$LINENO"; then :
13153 ac_cv_lib_gpm_Gpm_Open=yes
13154 else
13155 ac_cv_lib_gpm_Gpm_Open=no
13156 fi
13157 rm -f core conftest.err conftest.$ac_objext \
13158 conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13160 fi
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13162 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13163 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13164 HAVE_GPM=yes
13165 fi
13166
13167 fi
13168
13169
13170
13171 if test "${HAVE_GPM}" = "yes"; then
13172
13173 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13174
13175 LIBGPM=-lgpm
13176 fi
13177 fi
13178
13179
13180
13181
13182
13183
13184 GNUSTEP_CFLAGS=
13185 ### Use NeXTstep API to implement GUI.
13186 if test "${HAVE_NS}" = "yes"; then
13187
13188 $as_echo "#define HAVE_NS 1" >>confdefs.h
13189
13190 if test "${NS_IMPL_COCOA}" = "yes"; then
13191
13192 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13193
13194 fi
13195 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13196
13197 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13198
13199 # See also .m.o rule in Makefile.in */
13200 # FIXME: are all these flags really needed? Document here why. */
13201 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13202 ## Extra CFLAGS applied to src/*.m files.
13203 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"
13204 fi
13205 # We also have mouse menus.
13206 HAVE_MENUS=yes
13207 OTHER_FILES=ns-app
13208 fi
13209
13210 if test "${HAVE_W32}" = "yes"; then
13211 HAVE_MENUS=yes
13212 fi
13213
13214 ### Use session management (-lSM -lICE) if available
13215 HAVE_X_SM=no
13216 LIBXSM=
13217 if test "${HAVE_X11}" = "yes"; then
13218 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13219 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13221 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13222 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 ac_check_lib_save_LIBS=$LIBS
13226 LIBS="-lSM -lICE $LIBS"
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229
13230 /* Override any GCC internal prototype to avoid an error.
13231 Use char because int might match the return type of a GCC
13232 builtin and then its argument prototype would still apply. */
13233 #ifdef __cplusplus
13234 extern "C"
13235 #endif
13236 char SmcOpenConnection ();
13237 int
13238 main ()
13239 {
13240 return SmcOpenConnection ();
13241 ;
13242 return 0;
13243 }
13244 _ACEOF
13245 if ac_fn_c_try_link "$LINENO"; then :
13246 ac_cv_lib_SM_SmcOpenConnection=yes
13247 else
13248 ac_cv_lib_SM_SmcOpenConnection=no
13249 fi
13250 rm -f core conftest.err conftest.$ac_objext \
13251 conftest$ac_exeext conftest.$ac_ext
13252 LIBS=$ac_check_lib_save_LIBS
13253 fi
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13255 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13256 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13257 HAVE_X_SM=yes
13258 fi
13259
13260 fi
13261
13262
13263
13264 if test "${HAVE_X_SM}" = "yes"; then
13265
13266 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13267
13268 LIBXSM="-lSM -lICE"
13269 case "$LIBS" in
13270 *-lSM*) ;;
13271 *) LIBS="$LIBXSM $LIBS" ;;
13272 esac
13273 fi
13274 fi
13275
13276
13277 ### Use libxml (-lxml2) if available
13278 HAVE_LIBXML2=no
13279 if test "${with_xml2}" != "no"; then
13280 ### I'm not sure what the version number should be, so I just guessed.
13281
13282 succeeded=no
13283
13284 if test "$PKG_CONFIG" = "no" ; then
13285 HAVE_LIBXML2=no
13286 else
13287 PKG_CONFIG_MIN_VERSION=0.9.0
13288 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13290 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13291
13292 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13293 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13294 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13295 edit_cflags="
13296 s,///*,/,g
13297 s/^/ /
13298 s/ -I/ $isystem/g
13299 s/^ //
13300 "
13301 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13302 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13304 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13305 succeeded=yes
13306 else
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13309 LIBXML2_CFLAGS=""
13310 LIBXML2_LIBS=""
13311 ## If we have a custom action on failure, don't print errors, but
13312 ## do set a variable so people can do so. Do it in a subshell
13313 ## to capture any diagnostics in invoking pkg-config.
13314 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13315
13316 fi
13317
13318
13319
13320 else
13321 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13322 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13323 fi
13324 fi
13325
13326 if test $succeeded = yes; then
13327 HAVE_LIBXML2=yes
13328 else
13329 HAVE_LIBXML2=no
13330 fi
13331
13332 if test "${HAVE_LIBXML2}" = "yes"; then
13333 LIBS="$LIBXML2_LIBS $LIBS"
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13335 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13336 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-lxml2 $LIBS"
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13343
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13347 #ifdef __cplusplus
13348 extern "C"
13349 #endif
13350 char htmlReadMemory ();
13351 int
13352 main ()
13353 {
13354 return htmlReadMemory ();
13355 ;
13356 return 0;
13357 }
13358 _ACEOF
13359 if ac_fn_c_try_link "$LINENO"; then :
13360 ac_cv_lib_xml2_htmlReadMemory=yes
13361 else
13362 ac_cv_lib_xml2_htmlReadMemory=no
13363 fi
13364 rm -f core conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS
13367 fi
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13369 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13370 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13371 HAVE_LIBXML2=yes
13372 else
13373 HAVE_LIBXML2=no
13374 fi
13375
13376 if test "${HAVE_LIBXML2}" = "yes"; then
13377
13378 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13379
13380 else
13381 LIBXML2_LIBS=""
13382 LIBXML2_CFLAGS=""
13383 fi
13384 fi
13385 fi
13386
13387
13388
13389 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13391 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13392 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13393 $as_echo_n "(cached) " >&6
13394 else
13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h. */
13397 #include <netdb.h>
13398 int
13399 main ()
13400 {
13401 return h_errno;
13402 ;
13403 return 0;
13404 }
13405 _ACEOF
13406 if ac_fn_c_try_link "$LINENO"; then :
13407 emacs_cv_netdb_declares_h_errno=yes
13408 else
13409 emacs_cv_netdb_declares_h_errno=no
13410 fi
13411 rm -f core conftest.err conftest.$ac_objext \
13412 conftest$ac_exeext conftest.$ac_ext
13413 fi
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13415 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13416 if test $emacs_cv_netdb_declares_h_errno = yes; then
13417
13418 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13419
13420 fi
13421
13422 # sqrt and other floating-point functions such as fmod and frexp
13423 # are found in -lm on most systems.
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13425 $as_echo_n "checking for sqrt in -lm... " >&6; }
13426 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 ac_check_lib_save_LIBS=$LIBS
13430 LIBS="-lm $LIBS"
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13433
13434 /* Override any GCC internal prototype to avoid an error.
13435 Use char because int might match the return type of a GCC
13436 builtin and then its argument prototype would still apply. */
13437 #ifdef __cplusplus
13438 extern "C"
13439 #endif
13440 char sqrt ();
13441 int
13442 main ()
13443 {
13444 return sqrt ();
13445 ;
13446 return 0;
13447 }
13448 _ACEOF
13449 if ac_fn_c_try_link "$LINENO"; then :
13450 ac_cv_lib_m_sqrt=yes
13451 else
13452 ac_cv_lib_m_sqrt=no
13453 fi
13454 rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 LIBS=$ac_check_lib_save_LIBS
13457 fi
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13459 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13460 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_LIBM 1
13463 _ACEOF
13464
13465 LIBS="-lm $LIBS"
13466
13467 fi
13468
13469
13470 # Check for mail-locking functions in a "mail" library. Probably this should
13471 # have the same check as for liblockfile below.
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13473 $as_echo_n "checking for maillock in -lmail... " >&6; }
13474 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13475 $as_echo_n "(cached) " >&6
13476 else
13477 ac_check_lib_save_LIBS=$LIBS
13478 LIBS="-lmail $LIBS"
13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13481
13482 /* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13485 #ifdef __cplusplus
13486 extern "C"
13487 #endif
13488 char maillock ();
13489 int
13490 main ()
13491 {
13492 return maillock ();
13493 ;
13494 return 0;
13495 }
13496 _ACEOF
13497 if ac_fn_c_try_link "$LINENO"; then :
13498 ac_cv_lib_mail_maillock=yes
13499 else
13500 ac_cv_lib_mail_maillock=no
13501 fi
13502 rm -f core conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
13504 LIBS=$ac_check_lib_save_LIBS
13505 fi
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13507 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13508 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13509 have_mail=yes
13510 else
13511 have_mail=no
13512 fi
13513
13514 if test $have_mail = yes; then
13515 LIBS_MAIL=-lmail
13516 LIBS="$LIBS_MAIL $LIBS"
13517
13518 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13519
13520 else
13521 LIBS_MAIL=
13522 fi
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13524 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13525 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 ac_check_lib_save_LIBS=$LIBS
13529 LIBS="-llockfile $LIBS"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532
13533 /* Override any GCC internal prototype to avoid an error.
13534 Use char because int might match the return type of a GCC
13535 builtin and then its argument prototype would still apply. */
13536 #ifdef __cplusplus
13537 extern "C"
13538 #endif
13539 char maillock ();
13540 int
13541 main ()
13542 {
13543 return maillock ();
13544 ;
13545 return 0;
13546 }
13547 _ACEOF
13548 if ac_fn_c_try_link "$LINENO"; then :
13549 ac_cv_lib_lockfile_maillock=yes
13550 else
13551 ac_cv_lib_lockfile_maillock=no
13552 fi
13553 rm -f core conftest.err conftest.$ac_objext \
13554 conftest$ac_exeext conftest.$ac_ext
13555 LIBS=$ac_check_lib_save_LIBS
13556 fi
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13558 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13559 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13560 have_lockfile=yes
13561 else
13562 have_lockfile=no
13563 fi
13564
13565 if test $have_lockfile = yes; then
13566 LIBS_MAIL=-llockfile
13567 LIBS="$LIBS_MAIL $LIBS"
13568
13569 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13570
13571 else
13572 # If we have the shared liblockfile, assume we must use it for mail
13573 # locking (e.g. Debian). If we couldn't link against liblockfile
13574 # (no liblockfile.a installed), ensure that we don't need to.
13575 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13576 set dummy liblockfile.so; ac_word=$2
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13580 $as_echo_n "(cached) " >&6
13581 else
13582 if test -n "$liblockfile"; then
13583 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13584 else
13585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13587 for as_dir in $as_dummy
13588 do
13589 IFS=$as_save_IFS
13590 test -z "$as_dir" && as_dir=.
13591 for ac_exec_ext in '' $ac_executable_extensions; do
13592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13593 ac_cv_prog_liblockfile="yes"
13594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13595 break 2
13596 fi
13597 done
13598 done
13599 IFS=$as_save_IFS
13600
13601 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13602 fi
13603 fi
13604 liblockfile=$ac_cv_prog_liblockfile
13605 if test -n "$liblockfile"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13607 $as_echo "$liblockfile" >&6; }
13608 else
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13611 fi
13612
13613
13614 if test $ac_cv_prog_liblockfile = yes; then
13615 as_fn_error "Shared liblockfile found but can't link against it.
13616 This probably means that movemail could lose mail.
13617 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13618 fi
13619 fi
13620
13621
13622
13623
13624
13625 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13626 ## interlock access to the mail spool. The alternative is a lock file named
13627 ## /usr/spool/mail/$USER.lock.
13628 mail_lock=no
13629 case "$opsys" in
13630 aix4-2) mail_lock="lockf" ;;
13631
13632 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13633
13634 ## On GNU/Linux systems, both methods are used by various mail programs.
13635 ## I assume most people are using newer mailers that have heard of flock.
13636 ## Change this if you need to.
13637 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13638 ## configure gets the right answers, and that means *NOT* using flock.
13639 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13640 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13641 ## Debian maintainer hasn't provided a clean fix for Emacs.
13642 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13643 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13644 ## correct logic. -- fx
13645 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13646 ## liblockfile is a Free Software replacement for libmail, used on
13647 ## Debian systems and elsewhere. -rfr.
13648 gnu-*)
13649 mail_lock="flock"
13650 if test $have_mail = yes || test $have_lockfile = yes; then
13651 test $ac_cv_header_maillock_h = yes && mail_lock=no
13652 fi
13653 ;;
13654 esac
13655
13656 BLESSMAIL_TARGET=
13657 case "$mail_lock" in
13658 flock)
13659 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13660 ;;
13661
13662 lockf)
13663 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13664 ;;
13665
13666 *) BLESSMAIL_TARGET="need-blessmail" ;;
13667 esac
13668
13669
13670
13671 for ac_func in gethostname \
13672 getrusage get_current_dir_name \
13673 lrand48 \
13674 select getpagesize setlocale \
13675 utimes getrlimit setrlimit shutdown getaddrinfo \
13676 strsignal setitimer \
13677 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13678 gai_strerror mkstemp getline getdelim fsync sync \
13679 difftime posix_memalign \
13680 getpwent endpwent getgrent endgrent \
13681 touchlock \
13682 cfmakeraw cfsetspeed copysign __executable_start
13683 do :
13684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13685 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13686 eval as_val=\$$as_ac_var
13687 if test "x$as_val" = x""yes; then :
13688 cat >>confdefs.h <<_ACEOF
13689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13690 _ACEOF
13691
13692 fi
13693 done
13694
13695
13696 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13697 ## has a broken `rint' in some library versions including math library
13698 ## version number A.09.05.
13699 ## You can fix the math library by installing patch number PHSS_4630.
13700 ## But we can fix it more reliably for Emacs by just not using rint.
13701 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13702 case $opsys in
13703 hpux*) : ;;
13704 *) for ac_func in random rint
13705 do :
13706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13707 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13708 eval as_val=\$$as_ac_var
13709 if test "x$as_val" = x""yes; then :
13710 cat >>confdefs.h <<_ACEOF
13711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13712 _ACEOF
13713
13714 fi
13715 done
13716 ;;
13717 esac
13718
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13720 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13721 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726
13727 int
13728 main ()
13729 {
13730 __builtin_unwind_init ();
13731 ;
13732 return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_link "$LINENO"; then :
13736 emacs_cv_func___builtin_unwind_init=yes
13737 else
13738 emacs_cv_func___builtin_unwind_init=no
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13742 fi
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13744 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13745 if test $emacs_cv_func___builtin_unwind_init = yes; then
13746
13747 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13748
13749 fi
13750
13751
13752
13753
13754
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13756 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13757 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 while :; do
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13763 #include <sys/types.h> /* for off_t */
13764 #include <stdio.h>
13765 int
13766 main ()
13767 {
13768 int (*fp) (FILE *, off_t, int) = fseeko;
13769 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13770 ;
13771 return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_c_try_link "$LINENO"; then :
13775 ac_cv_sys_largefile_source=no; break
13776 fi
13777 rm -f core conftest.err conftest.$ac_objext \
13778 conftest$ac_exeext conftest.$ac_ext
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781 #define _LARGEFILE_SOURCE 1
13782 #include <sys/types.h> /* for off_t */
13783 #include <stdio.h>
13784 int
13785 main ()
13786 {
13787 int (*fp) (FILE *, off_t, int) = fseeko;
13788 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13789 ;
13790 return 0;
13791 }
13792 _ACEOF
13793 if ac_fn_c_try_link "$LINENO"; then :
13794 ac_cv_sys_largefile_source=1; break
13795 fi
13796 rm -f core conftest.err conftest.$ac_objext \
13797 conftest$ac_exeext conftest.$ac_ext
13798 ac_cv_sys_largefile_source=unknown
13799 break
13800 done
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13803 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13804 case $ac_cv_sys_largefile_source in #(
13805 no | unknown) ;;
13806 *)
13807 cat >>confdefs.h <<_ACEOF
13808 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13809 _ACEOF
13810 ;;
13811 esac
13812 rm -rf conftest*
13813
13814 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13815 # in glibc 2.1.3, but that breaks too many other things.
13816 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13817 if test $ac_cv_sys_largefile_source != unknown; then
13818
13819 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13820
13821 fi
13822
13823
13824 # UNIX98 PTYs.
13825 for ac_func in grantpt
13826 do :
13827 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13828 if test "x$ac_cv_func_grantpt" = x""yes; then :
13829 cat >>confdefs.h <<_ACEOF
13830 #define HAVE_GRANTPT 1
13831 _ACEOF
13832
13833 fi
13834 done
13835
13836
13837 # PTY-related GNU extensions.
13838 for ac_func in getpt posix_openpt
13839 do :
13840 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13841 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13842 eval as_val=\$$as_ac_var
13843 if test "x$as_val" = x""yes; then :
13844 cat >>confdefs.h <<_ACEOF
13845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13846 _ACEOF
13847
13848 fi
13849 done
13850
13851
13852 # Check this now, so that we will NOT find the above functions in ncurses.
13853 # That is because we have not set up to link ncurses in lib-src.
13854 # It's better to believe a function is not available
13855 # than to expect to find it in ncurses.
13856 # Also we need tputs and friends to be able to build at all.
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13858 $as_echo_n "checking for library containing tputs... " >&6; }
13859 # Run a test program that contains a call to tputs, a call that is
13860 # never executed. This tests whether a pre-'main' dynamic linker
13861 # works with the library. It's too much trouble to actually call
13862 # tputs in the test program, due to portability hassles. When
13863 # cross-compiling, assume the test program will run if it links.
13864
13865 # Maybe curses should be tried earlier?
13866 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13867 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13868 OLIBS=$LIBS
13869 if test -z "$tputs_library"; then
13870 LIBS_TERMCAP=
13871 msg='none required'
13872 else
13873 LIBS_TERMCAP=-l$tputs_library
13874 msg=$LIBS_TERMCAP
13875 LIBS="$LIBS_TERMCAP $LIBS"
13876 fi
13877 if test "$cross_compiling" = yes; then :
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880
13881 extern void tputs (const char *, int, int (*)(int));
13882 int main (int argc, char **argv)
13883 {
13884 if (argc == 10000)
13885 tputs (argv[0], 0, 0);
13886 return 0;
13887 }
13888
13889 _ACEOF
13890 if ac_fn_c_try_link "$LINENO"; then :
13891
13892 else
13893 msg=no
13894 fi
13895 rm -f core conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13897 else
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900
13901 extern void tputs (const char *, int, int (*)(int));
13902 int main (int argc, char **argv)
13903 {
13904 if (argc == 10000)
13905 tputs (argv[0], 0, 0);
13906 return 0;
13907 }
13908
13909 _ACEOF
13910 if ac_fn_c_try_run "$LINENO"; then :
13911
13912 else
13913 msg=no
13914 fi
13915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13916 conftest.$ac_objext conftest.beam conftest.$ac_ext
13917 fi
13918
13919 LIBS=$OLIBS
13920 if test "X$msg" != Xno; then
13921 break
13922 fi
13923 done
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13925 $as_echo "$msg" >&6; }
13926 if test "X$msg" = Xno; then
13927 as_fn_error "The required function \`tputs' was not found in any library.
13928 The following libraries were tried (in order):
13929 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13930 Please try installing whichever of these libraries is most appropriate
13931 for your system, together with its header files.
13932 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13933 fi
13934
13935 ## Use termcap instead of terminfo?
13936 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13937 TERMINFO=yes
13938 ## FIXME? In the cases below where we unconditionally set
13939 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13940 ## if that was found above to have tputs.
13941 ## Should we use the gnu* logic everywhere?
13942 case "$opsys" in
13943 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13944 ## The ncurses library has been moved out of the System framework in
13945 ## Mac OS X 10.2. So if configure detects it, set the command-line
13946 ## option to use it.
13947 darwin) LIBS_TERMCAP="-lncurses" ;;
13948
13949 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13950
13951 freebsd)
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13953 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13954 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13955 $as_echo_n "(cached) " >&6
13956 else
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959 #include <osreldate.h>
13960 int
13961 main ()
13962 {
13963 #if __FreeBSD_version < 400000
13964 fail;
13965 #endif
13966
13967 ;
13968 return 0;
13969 }
13970 _ACEOF
13971 if ac_fn_c_try_link "$LINENO"; then :
13972 emacs_cv_freebsd_terminfo=yes
13973 else
13974 emacs_cv_freebsd_terminfo=no
13975 fi
13976 rm -f core conftest.err conftest.$ac_objext \
13977 conftest$ac_exeext conftest.$ac_ext
13978 fi
13979
13980
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13982 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13983
13984 if test $emacs_cv_freebsd_terminfo = yes; then
13985 LIBS_TERMCAP="-lncurses"
13986 else
13987 TERMINFO=no
13988 LIBS_TERMCAP="-ltermcap"
13989 fi
13990 ;;
13991
13992 netbsd)
13993 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13994 TERMINFO=no
13995 LIBS_TERMCAP="-ltermcap"
13996 fi
13997 ;;
13998
13999 openbsd) LIBS_TERMCAP="-lncurses" ;;
14000
14001 ## hpux: Make sure we get select from libc rather than from libcurses
14002 ## because libcurses on HPUX 10.10 has a broken version of select.
14003 ## We used to use -lc -lcurses, but this may be cleaner.
14004 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14005 # set that way, now it uses the default). Isn't this a contradiction?
14006 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14007
14008 esac
14009
14010 TERMCAP_OBJ=tparam.o
14011 if test $TERMINFO = yes; then
14012
14013 $as_echo "#define TERMINFO 1" >>confdefs.h
14014
14015 TERMCAP_OBJ=terminfo.o
14016 fi
14017
14018
14019
14020
14021 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14022 # On Darwin, res_init appears not to be useful: see bug#562 and
14023 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14024 resolv=no
14025
14026 if test $opsys != darwin; then
14027
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14030 #include <netinet/in.h>
14031 #include <arpa/nameser.h>
14032 #include <resolv.h>
14033 int
14034 main ()
14035 {
14036 return res_init();
14037 ;
14038 return 0;
14039 }
14040 _ACEOF
14041 if ac_fn_c_try_link "$LINENO"; then :
14042 have_res_init=yes
14043 else
14044 have_res_init=no
14045 fi
14046 rm -f core conftest.err conftest.$ac_objext \
14047 conftest$ac_exeext conftest.$ac_ext
14048 if test "$have_res_init" = no; then
14049 OLIBS="$LIBS"
14050 LIBS="$LIBS -lresolv"
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14052 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 #include <netinet/in.h>
14056 #include <arpa/nameser.h>
14057 #include <resolv.h>
14058 int
14059 main ()
14060 {
14061 return res_init();
14062 ;
14063 return 0;
14064 }
14065 _ACEOF
14066 if ac_fn_c_try_link "$LINENO"; then :
14067 have_res_init=yes
14068 else
14069 have_res_init=no
14070 fi
14071 rm -f core conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14074 $as_echo "$have_res_init" >&6; }
14075 if test "$have_res_init" = yes ; then
14076 resolv=yes
14077 fi
14078 LIBS="$OLIBS"
14079 fi
14080
14081 if test "$have_res_init" = yes; then
14082
14083 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14084
14085 fi
14086 fi
14087 # Do we need the Hesiod library to provide the support routines?
14088 LIBHESIOD=
14089 if test "$with_hesiod" != no ; then
14090 # Don't set $LIBS here -- see comments above. FIXME which comments?
14091 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14092 if test "x$ac_cv_func_res_send" = x""yes; then :
14093
14094 else
14095 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14096 if test "x$ac_cv_func___res_send" = x""yes; then :
14097
14098 else
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14100 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14101 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14102 $as_echo_n "(cached) " >&6
14103 else
14104 ac_check_lib_save_LIBS=$LIBS
14105 LIBS="-lresolv $LIBS"
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14108
14109 /* Override any GCC internal prototype to avoid an error.
14110 Use char because int might match the return type of a GCC
14111 builtin and then its argument prototype would still apply. */
14112 #ifdef __cplusplus
14113 extern "C"
14114 #endif
14115 char res_send ();
14116 int
14117 main ()
14118 {
14119 return res_send ();
14120 ;
14121 return 0;
14122 }
14123 _ACEOF
14124 if ac_fn_c_try_link "$LINENO"; then :
14125 ac_cv_lib_resolv_res_send=yes
14126 else
14127 ac_cv_lib_resolv_res_send=no
14128 fi
14129 rm -f core conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
14131 LIBS=$ac_check_lib_save_LIBS
14132 fi
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14134 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14135 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14136 resolv=yes
14137 else
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14139 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14140 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14142 else
14143 ac_check_lib_save_LIBS=$LIBS
14144 LIBS="-lresolv $LIBS"
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14147
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 char __res_send ();
14155 int
14156 main ()
14157 {
14158 return __res_send ();
14159 ;
14160 return 0;
14161 }
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 ac_cv_lib_resolv___res_send=yes
14165 else
14166 ac_cv_lib_resolv___res_send=no
14167 fi
14168 rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14170 LIBS=$ac_check_lib_save_LIBS
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14173 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14174 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14175 resolv=yes
14176 fi
14177
14178 fi
14179
14180 fi
14181
14182 fi
14183
14184 if test "$resolv" = yes ; then
14185 RESOLVLIB=-lresolv
14186 else
14187 RESOLVLIB=
14188 fi
14189 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14190 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14191
14192 else
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14194 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14195 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 ac_check_lib_save_LIBS=$LIBS
14199 LIBS="-lhesiod $RESOLVLIB $LIBS"
14200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201 /* end confdefs.h. */
14202
14203 /* Override any GCC internal prototype to avoid an error.
14204 Use char because int might match the return type of a GCC
14205 builtin and then its argument prototype would still apply. */
14206 #ifdef __cplusplus
14207 extern "C"
14208 #endif
14209 char hes_getmailhost ();
14210 int
14211 main ()
14212 {
14213 return hes_getmailhost ();
14214 ;
14215 return 0;
14216 }
14217 _ACEOF
14218 if ac_fn_c_try_link "$LINENO"; then :
14219 ac_cv_lib_hesiod_hes_getmailhost=yes
14220 else
14221 ac_cv_lib_hesiod_hes_getmailhost=no
14222 fi
14223 rm -f core conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
14225 LIBS=$ac_check_lib_save_LIBS
14226 fi
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14228 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14229 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14230 hesiod=yes
14231 else
14232 :
14233 fi
14234
14235 fi
14236
14237
14238 if test x"$hesiod" = xyes; then
14239
14240 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14241
14242 LIBHESIOD=-lhesiod
14243 fi
14244 fi
14245
14246
14247 # Do we need libresolv (due to res_init or Hesiod)?
14248 if test "$resolv" = yes && test $opsys != darwin; then
14249
14250 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14251
14252 LIBRESOLV=-lresolv
14253 else
14254 LIBRESOLV=
14255 fi
14256
14257
14258 # These tell us which Kerberos-related libraries to use.
14259 COM_ERRLIB=
14260 CRYPTOLIB=
14261 KRB5LIB=
14262 DESLIB=
14263 KRB4LIB=
14264
14265 if test "${with_kerberos}" != no; then
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14267 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14268 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14269 $as_echo_n "(cached) " >&6
14270 else
14271 ac_check_lib_save_LIBS=$LIBS
14272 LIBS="-lcom_err $LIBS"
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14275
14276 /* Override any GCC internal prototype to avoid an error.
14277 Use char because int might match the return type of a GCC
14278 builtin and then its argument prototype would still apply. */
14279 #ifdef __cplusplus
14280 extern "C"
14281 #endif
14282 char com_err ();
14283 int
14284 main ()
14285 {
14286 return com_err ();
14287 ;
14288 return 0;
14289 }
14290 _ACEOF
14291 if ac_fn_c_try_link "$LINENO"; then :
14292 ac_cv_lib_com_err_com_err=yes
14293 else
14294 ac_cv_lib_com_err_com_err=no
14295 fi
14296 rm -f core conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14298 LIBS=$ac_check_lib_save_LIBS
14299 fi
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14301 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14302 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14303 have_com_err=yes
14304 else
14305 have_com_err=no
14306 fi
14307
14308 if test $have_com_err = yes; then
14309 COM_ERRLIB=-lcom_err
14310 LIBS="$COM_ERRLIB $LIBS"
14311
14312 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14313
14314 fi
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14316 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14317 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 ac_check_lib_save_LIBS=$LIBS
14321 LIBS="-lcrypto $LIBS"
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324
14325 /* Override any GCC internal prototype to avoid an error.
14326 Use char because int might match the return type of a GCC
14327 builtin and then its argument prototype would still apply. */
14328 #ifdef __cplusplus
14329 extern "C"
14330 #endif
14331 char mit_des_cbc_encrypt ();
14332 int
14333 main ()
14334 {
14335 return mit_des_cbc_encrypt ();
14336 ;
14337 return 0;
14338 }
14339 _ACEOF
14340 if ac_fn_c_try_link "$LINENO"; then :
14341 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14342 else
14343 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14344 fi
14345 rm -f core conftest.err conftest.$ac_objext \
14346 conftest$ac_exeext conftest.$ac_ext
14347 LIBS=$ac_check_lib_save_LIBS
14348 fi
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14350 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14351 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14352 have_crypto=yes
14353 else
14354 have_crypto=no
14355 fi
14356
14357 if test $have_crypto = yes; then
14358 CRYPTOLIB=-lcrypto
14359 LIBS="$CRYPTOLIB $LIBS"
14360
14361 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14362
14363 fi
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14365 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14366 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14367 $as_echo_n "(cached) " >&6
14368 else
14369 ac_check_lib_save_LIBS=$LIBS
14370 LIBS="-lk5crypto $LIBS"
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373
14374 /* Override any GCC internal prototype to avoid an error.
14375 Use char because int might match the return type of a GCC
14376 builtin and then its argument prototype would still apply. */
14377 #ifdef __cplusplus
14378 extern "C"
14379 #endif
14380 char mit_des_cbc_encrypt ();
14381 int
14382 main ()
14383 {
14384 return mit_des_cbc_encrypt ();
14385 ;
14386 return 0;
14387 }
14388 _ACEOF
14389 if ac_fn_c_try_link "$LINENO"; then :
14390 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14391 else
14392 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext \
14395 conftest$ac_exeext conftest.$ac_ext
14396 LIBS=$ac_check_lib_save_LIBS
14397 fi
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14399 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14400 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14401 have_k5crypto=yes
14402 else
14403 have_k5crypto=no
14404 fi
14405
14406 if test $have_k5crypto = yes; then
14407 CRYPTOLIB=-lk5crypto
14408 LIBS="$CRYPTOLIB $LIBS"
14409
14410 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14411
14412 fi
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14414 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14415 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14416 $as_echo_n "(cached) " >&6
14417 else
14418 ac_check_lib_save_LIBS=$LIBS
14419 LIBS="-lkrb5 $LIBS"
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14422
14423 /* Override any GCC internal prototype to avoid an error.
14424 Use char because int might match the return type of a GCC
14425 builtin and then its argument prototype would still apply. */
14426 #ifdef __cplusplus
14427 extern "C"
14428 #endif
14429 char krb5_init_context ();
14430 int
14431 main ()
14432 {
14433 return krb5_init_context ();
14434 ;
14435 return 0;
14436 }
14437 _ACEOF
14438 if ac_fn_c_try_link "$LINENO"; then :
14439 ac_cv_lib_krb5_krb5_init_context=yes
14440 else
14441 ac_cv_lib_krb5_krb5_init_context=no
14442 fi
14443 rm -f core conftest.err conftest.$ac_objext \
14444 conftest$ac_exeext conftest.$ac_ext
14445 LIBS=$ac_check_lib_save_LIBS
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14448 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14449 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14450 have_krb5=yes
14451 else
14452 have_krb5=no
14453 fi
14454
14455 if test $have_krb5=yes; then
14456 KRB5LIB=-lkrb5
14457 LIBS="$KRB5LIB $LIBS"
14458
14459 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14460
14461 fi
14462 if test "${with_kerberos5}" = no; then
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14464 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14465 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14466 $as_echo_n "(cached) " >&6
14467 else
14468 ac_check_lib_save_LIBS=$LIBS
14469 LIBS="-ldes425 $LIBS"
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472
14473 /* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14476 #ifdef __cplusplus
14477 extern "C"
14478 #endif
14479 char des_cbc_encrypt ();
14480 int
14481 main ()
14482 {
14483 return des_cbc_encrypt ();
14484 ;
14485 return 0;
14486 }
14487 _ACEOF
14488 if ac_fn_c_try_link "$LINENO"; then :
14489 ac_cv_lib_des425_des_cbc_encrypt=yes
14490 else
14491 ac_cv_lib_des425_des_cbc_encrypt=no
14492 fi
14493 rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext conftest.$ac_ext
14495 LIBS=$ac_check_lib_save_LIBS
14496 fi
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14498 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14499 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14500 have_des425=yes
14501 else
14502 have_des425=no
14503 fi
14504
14505 if test $have_des425 = yes; then
14506 DESLIB=-ldes425
14507 LIBS="$DESLIB $LIBS"
14508
14509 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14510
14511 else
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14513 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14514 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 ac_check_lib_save_LIBS=$LIBS
14518 LIBS="-ldes $LIBS"
14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14521
14522 /* Override any GCC internal prototype to avoid an error.
14523 Use char because int might match the return type of a GCC
14524 builtin and then its argument prototype would still apply. */
14525 #ifdef __cplusplus
14526 extern "C"
14527 #endif
14528 char des_cbc_encrypt ();
14529 int
14530 main ()
14531 {
14532 return des_cbc_encrypt ();
14533 ;
14534 return 0;
14535 }
14536 _ACEOF
14537 if ac_fn_c_try_link "$LINENO"; then :
14538 ac_cv_lib_des_des_cbc_encrypt=yes
14539 else
14540 ac_cv_lib_des_des_cbc_encrypt=no
14541 fi
14542 rm -f core conftest.err conftest.$ac_objext \
14543 conftest$ac_exeext conftest.$ac_ext
14544 LIBS=$ac_check_lib_save_LIBS
14545 fi
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14547 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14548 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14549 have_des=yes
14550 else
14551 have_des=no
14552 fi
14553
14554 if test $have_des = yes; then
14555 DESLIB=-ldes
14556 LIBS="$DESLIB $LIBS"
14557
14558 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14559
14560 fi
14561 fi
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14563 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14564 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14565 $as_echo_n "(cached) " >&6
14566 else
14567 ac_check_lib_save_LIBS=$LIBS
14568 LIBS="-lkrb4 $LIBS"
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14571
14572 /* Override any GCC internal prototype to avoid an error.
14573 Use char because int might match the return type of a GCC
14574 builtin and then its argument prototype would still apply. */
14575 #ifdef __cplusplus
14576 extern "C"
14577 #endif
14578 char krb_get_cred ();
14579 int
14580 main ()
14581 {
14582 return krb_get_cred ();
14583 ;
14584 return 0;
14585 }
14586 _ACEOF
14587 if ac_fn_c_try_link "$LINENO"; then :
14588 ac_cv_lib_krb4_krb_get_cred=yes
14589 else
14590 ac_cv_lib_krb4_krb_get_cred=no
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext conftest.$ac_ext
14594 LIBS=$ac_check_lib_save_LIBS
14595 fi
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14597 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14598 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14599 have_krb4=yes
14600 else
14601 have_krb4=no
14602 fi
14603
14604 if test $have_krb4 = yes; then
14605 KRB4LIB=-lkrb4
14606 LIBS="$KRB4LIB $LIBS"
14607
14608 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14609
14610 else
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14612 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14613 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14614 $as_echo_n "(cached) " >&6
14615 else
14616 ac_check_lib_save_LIBS=$LIBS
14617 LIBS="-lkrb $LIBS"
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14620
14621 /* Override any GCC internal prototype to avoid an error.
14622 Use char because int might match the return type of a GCC
14623 builtin and then its argument prototype would still apply. */
14624 #ifdef __cplusplus
14625 extern "C"
14626 #endif
14627 char krb_get_cred ();
14628 int
14629 main ()
14630 {
14631 return krb_get_cred ();
14632 ;
14633 return 0;
14634 }
14635 _ACEOF
14636 if ac_fn_c_try_link "$LINENO"; then :
14637 ac_cv_lib_krb_krb_get_cred=yes
14638 else
14639 ac_cv_lib_krb_krb_get_cred=no
14640 fi
14641 rm -f core conftest.err conftest.$ac_objext \
14642 conftest$ac_exeext conftest.$ac_ext
14643 LIBS=$ac_check_lib_save_LIBS
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14646 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14647 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14648 have_krb=yes
14649 else
14650 have_krb=no
14651 fi
14652
14653 if test $have_krb = yes; then
14654 KRB4LIB=-lkrb
14655 LIBS="$KRB4LIB $LIBS"
14656
14657 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14658
14659 fi
14660 fi
14661 fi
14662
14663 if test "${with_kerberos5}" != no; then
14664 for ac_header in krb5.h
14665 do :
14666 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14667 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14668 cat >>confdefs.h <<_ACEOF
14669 #define HAVE_KRB5_H 1
14670 _ACEOF
14671 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14672 "
14673 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14674
14675 cat >>confdefs.h <<_ACEOF
14676 #define HAVE_KRB5_ERROR_TEXT 1
14677 _ACEOF
14678
14679
14680 fi
14681 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14682 "
14683 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14684
14685 cat >>confdefs.h <<_ACEOF
14686 #define HAVE_KRB5_ERROR_E_TEXT 1
14687 _ACEOF
14688
14689
14690 fi
14691
14692 fi
14693
14694 done
14695
14696 else
14697 for ac_header in des.h
14698 do :
14699 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14700 if test "x$ac_cv_header_des_h" = x""yes; then :
14701 cat >>confdefs.h <<_ACEOF
14702 #define HAVE_DES_H 1
14703 _ACEOF
14704
14705 else
14706 for ac_header in kerberosIV/des.h
14707 do :
14708 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14709 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14710 cat >>confdefs.h <<_ACEOF
14711 #define HAVE_KERBEROSIV_DES_H 1
14712 _ACEOF
14713
14714 else
14715 for ac_header in kerberos/des.h
14716 do :
14717 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14718 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14719 cat >>confdefs.h <<_ACEOF
14720 #define HAVE_KERBEROS_DES_H 1
14721 _ACEOF
14722
14723 fi
14724
14725 done
14726
14727 fi
14728
14729 done
14730
14731 fi
14732
14733 done
14734
14735 for ac_header in krb.h
14736 do :
14737 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14738 if test "x$ac_cv_header_krb_h" = x""yes; then :
14739 cat >>confdefs.h <<_ACEOF
14740 #define HAVE_KRB_H 1
14741 _ACEOF
14742
14743 else
14744 for ac_header in kerberosIV/krb.h
14745 do :
14746 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14747 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14748 cat >>confdefs.h <<_ACEOF
14749 #define HAVE_KERBEROSIV_KRB_H 1
14750 _ACEOF
14751
14752 else
14753 for ac_header in kerberos/krb.h
14754 do :
14755 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14756 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14757 cat >>confdefs.h <<_ACEOF
14758 #define HAVE_KERBEROS_KRB_H 1
14759 _ACEOF
14760
14761 fi
14762
14763 done
14764
14765 fi
14766
14767 done
14768
14769 fi
14770
14771 done
14772
14773 fi
14774 for ac_header in com_err.h
14775 do :
14776 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14777 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14778 cat >>confdefs.h <<_ACEOF
14779 #define HAVE_COM_ERR_H 1
14780 _ACEOF
14781
14782 fi
14783
14784 done
14785
14786 fi
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797 for ac_func in $ac_func_list
14798 do :
14799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14800 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14801 eval as_val=\$$as_ac_var
14802 if test "x$as_val" = x""yes; then :
14803 cat >>confdefs.h <<_ACEOF
14804 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14805 _ACEOF
14806
14807 fi
14808 done
14809
14810
14811
14812
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14814 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14815 if test "${emacs_cv_localtime_cache+set}" = set; then :
14816 $as_echo_n "(cached) " >&6
14817 else
14818 if test x$ac_cv_func_tzset = xyes; then
14819 if test "$cross_compiling" = yes; then :
14820 # If we have tzset, assume the worst when cross-compiling.
14821 emacs_cv_localtime_cache=yes
14822 else
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 #include <time.h>
14826 char TZ_GMT0[] = "TZ=GMT0";
14827 char TZ_PST8[] = "TZ=PST8";
14828 main()
14829 {
14830 time_t now = time ((time_t *) 0);
14831 int hour_GMT0, hour_unset;
14832 if (putenv (TZ_GMT0) != 0)
14833 exit (1);
14834 hour_GMT0 = localtime (&now)->tm_hour;
14835 unsetenv("TZ");
14836 hour_unset = localtime (&now)->tm_hour;
14837 if (putenv (TZ_PST8) != 0)
14838 exit (1);
14839 if (localtime (&now)->tm_hour == hour_GMT0)
14840 exit (1);
14841 unsetenv("TZ");
14842 if (localtime (&now)->tm_hour != hour_unset)
14843 exit (1);
14844 exit (0);
14845 }
14846 _ACEOF
14847 if ac_fn_c_try_run "$LINENO"; then :
14848 emacs_cv_localtime_cache=no
14849 else
14850 emacs_cv_localtime_cache=yes
14851 fi
14852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14853 conftest.$ac_objext conftest.beam conftest.$ac_ext
14854 fi
14855
14856 else
14857 # If we lack tzset, report that localtime does not cache TZ,
14858 # since we can't invalidate the cache if we don't have tzset.
14859 emacs_cv_localtime_cache=no
14860 fi
14861 fi
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14863 $as_echo "$emacs_cv_localtime_cache" >&6; }
14864 if test $emacs_cv_localtime_cache = yes; then
14865
14866 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14867
14868 fi
14869
14870 ok_so_far=yes
14871 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14872 if test "x$ac_cv_func_socket" = x""yes; then :
14873
14874 else
14875 ok_so_far=no
14876 fi
14877
14878 if test $ok_so_far = yes; then
14879 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14880 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14881
14882 else
14883 ok_so_far=no
14884 fi
14885
14886
14887 fi
14888 if test $ok_so_far = yes; then
14889 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14890 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14891
14892 else
14893 ok_so_far=no
14894 fi
14895
14896
14897 fi
14898 if test $ok_so_far = yes; then
14899
14900 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14901
14902 fi
14903
14904 if test -f /usr/lpp/X11/bin/smt.exp; then
14905
14906 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14907
14908 fi
14909
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14911 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14912 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14914 $as_echo "yes" >&6; }
14915
14916 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14917
14918 else
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14920 $as_echo "no" >&6; }
14921 fi
14922
14923 case $canonical in
14924 *-solaris2.4 | *-solaris2.4.*)
14925 : ${ac_cv_func_vfork_works=no};;
14926 esac
14927
14928 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14929 if test "x$ac_cv_type_pid_t" = x""yes; then :
14930
14931 else
14932
14933 cat >>confdefs.h <<_ACEOF
14934 #define pid_t int
14935 _ACEOF
14936
14937 fi
14938
14939 for ac_header in vfork.h
14940 do :
14941 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14942 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14943 cat >>confdefs.h <<_ACEOF
14944 #define HAVE_VFORK_H 1
14945 _ACEOF
14946
14947 fi
14948
14949 done
14950
14951 for ac_func in fork vfork
14952 do :
14953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14954 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14955 eval as_val=\$$as_ac_var
14956 if test "x$as_val" = x""yes; then :
14957 cat >>confdefs.h <<_ACEOF
14958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14959 _ACEOF
14960
14961 fi
14962 done
14963
14964 if test "x$ac_cv_func_fork" = xyes; then
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14966 $as_echo_n "checking for working fork... " >&6; }
14967 if test "${ac_cv_func_fork_works+set}" = set; then :
14968 $as_echo_n "(cached) " >&6
14969 else
14970 if test "$cross_compiling" = yes; then :
14971 ac_cv_func_fork_works=cross
14972 else
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14975 $ac_includes_default
14976 int
14977 main ()
14978 {
14979
14980 /* By Ruediger Kuhlmann. */
14981 return fork () < 0;
14982
14983 ;
14984 return 0;
14985 }
14986 _ACEOF
14987 if ac_fn_c_try_run "$LINENO"; then :
14988 ac_cv_func_fork_works=yes
14989 else
14990 ac_cv_func_fork_works=no
14991 fi
14992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14993 conftest.$ac_objext conftest.beam conftest.$ac_ext
14994 fi
14995
14996 fi
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14998 $as_echo "$ac_cv_func_fork_works" >&6; }
14999
15000 else
15001 ac_cv_func_fork_works=$ac_cv_func_fork
15002 fi
15003 if test "x$ac_cv_func_fork_works" = xcross; then
15004 case $host in
15005 *-*-amigaos* | *-*-msdosdjgpp*)
15006 # Override, as these systems have only a dummy fork() stub
15007 ac_cv_func_fork_works=no
15008 ;;
15009 *)
15010 ac_cv_func_fork_works=yes
15011 ;;
15012 esac
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15014 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15015 fi
15016 ac_cv_func_vfork_works=$ac_cv_func_vfork
15017 if test "x$ac_cv_func_vfork" = xyes; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15019 $as_echo_n "checking for working vfork... " >&6; }
15020 if test "${ac_cv_func_vfork_works+set}" = set; then :
15021 $as_echo_n "(cached) " >&6
15022 else
15023 if test "$cross_compiling" = yes; then :
15024 ac_cv_func_vfork_works=cross
15025 else
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028 /* Thanks to Paul Eggert for this test. */
15029 $ac_includes_default
15030 #include <sys/wait.h>
15031 #ifdef HAVE_VFORK_H
15032 # include <vfork.h>
15033 #endif
15034 /* On some sparc systems, changes by the child to local and incoming
15035 argument registers are propagated back to the parent. The compiler
15036 is told about this with #include <vfork.h>, but some compilers
15037 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15038 static variable whose address is put into a register that is
15039 clobbered by the vfork. */
15040 static void
15041 #ifdef __cplusplus
15042 sparc_address_test (int arg)
15043 # else
15044 sparc_address_test (arg) int arg;
15045 #endif
15046 {
15047 static pid_t child;
15048 if (!child) {
15049 child = vfork ();
15050 if (child < 0) {
15051 perror ("vfork");
15052 _exit(2);
15053 }
15054 if (!child) {
15055 arg = getpid();
15056 write(-1, "", 0);
15057 _exit (arg);
15058 }
15059 }
15060 }
15061
15062 int
15063 main ()
15064 {
15065 pid_t parent = getpid ();
15066 pid_t child;
15067
15068 sparc_address_test (0);
15069
15070 child = vfork ();
15071
15072 if (child == 0) {
15073 /* Here is another test for sparc vfork register problems. This
15074 test uses lots of local variables, at least as many local
15075 variables as main has allocated so far including compiler
15076 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15077 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15078 reuse the register of parent for one of the local variables,
15079 since it will think that parent can't possibly be used any more
15080 in this routine. Assigning to the local variable will thus
15081 munge parent in the parent process. */
15082 pid_t
15083 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15084 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15085 /* Convince the compiler that p..p7 are live; otherwise, it might
15086 use the same hardware register for all 8 local variables. */
15087 if (p != p1 || p != p2 || p != p3 || p != p4
15088 || p != p5 || p != p6 || p != p7)
15089 _exit(1);
15090
15091 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15092 from child file descriptors. If the child closes a descriptor
15093 before it execs or exits, this munges the parent's descriptor
15094 as well. Test for this by closing stdout in the child. */
15095 _exit(close(fileno(stdout)) != 0);
15096 } else {
15097 int status;
15098 struct stat st;
15099
15100 while (wait(&status) != child)
15101 ;
15102 return (
15103 /* Was there some problem with vforking? */
15104 child < 0
15105
15106 /* Did the child fail? (This shouldn't happen.) */
15107 || status
15108
15109 /* Did the vfork/compiler bug occur? */
15110 || parent != getpid()
15111
15112 /* Did the file descriptor bug occur? */
15113 || fstat(fileno(stdout), &st) != 0
15114 );
15115 }
15116 }
15117 _ACEOF
15118 if ac_fn_c_try_run "$LINENO"; then :
15119 ac_cv_func_vfork_works=yes
15120 else
15121 ac_cv_func_vfork_works=no
15122 fi
15123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15124 conftest.$ac_objext conftest.beam conftest.$ac_ext
15125 fi
15126
15127 fi
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15129 $as_echo "$ac_cv_func_vfork_works" >&6; }
15130
15131 fi;
15132 if test "x$ac_cv_func_fork_works" = xcross; then
15133 ac_cv_func_vfork_works=$ac_cv_func_vfork
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15135 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15136 fi
15137
15138 if test "x$ac_cv_func_vfork_works" = xyes; then
15139
15140 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15141
15142 else
15143
15144 $as_echo "#define vfork fork" >>confdefs.h
15145
15146 fi
15147 if test "x$ac_cv_func_fork_works" = xyes; then
15148
15149 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15150
15151 fi
15152
15153
15154 for ac_func in snprintf
15155 do :
15156 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15157 if test "x$ac_cv_func_snprintf" = x""yes; then :
15158 cat >>confdefs.h <<_ACEOF
15159 #define HAVE_SNPRINTF 1
15160 _ACEOF
15161
15162 fi
15163 done
15164
15165
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15167 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15168 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15169 $as_echo_n "(cached) " >&6
15170 else
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15173 #include <langinfo.h>
15174 int
15175 main ()
15176 {
15177 char* cs = nl_langinfo(CODESET);
15178 ;
15179 return 0;
15180 }
15181 _ACEOF
15182 if ac_fn_c_try_link "$LINENO"; then :
15183 emacs_cv_langinfo_codeset=yes
15184 else
15185 emacs_cv_langinfo_codeset=no
15186 fi
15187 rm -f core conftest.err conftest.$ac_objext \
15188 conftest$ac_exeext conftest.$ac_ext
15189
15190 fi
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15192 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15193 if test $emacs_cv_langinfo_codeset = yes; then
15194
15195 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15196
15197 fi
15198
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15200 $as_echo_n "checking for mbstate_t... " >&6; }
15201 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15202 $as_echo_n "(cached) " >&6
15203 else
15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15206 $ac_includes_default
15207 # include <wchar.h>
15208 int
15209 main ()
15210 {
15211 mbstate_t x; return sizeof x;
15212 ;
15213 return 0;
15214 }
15215 _ACEOF
15216 if ac_fn_c_try_compile "$LINENO"; then :
15217 ac_cv_type_mbstate_t=yes
15218 else
15219 ac_cv_type_mbstate_t=no
15220 fi
15221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 fi
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15224 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15225 if test $ac_cv_type_mbstate_t = yes; then
15226
15227 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15228
15229 else
15230
15231 $as_echo "#define mbstate_t int" >>confdefs.h
15232
15233 fi
15234
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15236 $as_echo_n "checking for C restricted array declarations... " >&6; }
15237 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15238 $as_echo_n "(cached) " >&6
15239 else
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15242 void fred (int x[__restrict]);
15243 int
15244 main ()
15245 {
15246
15247 ;
15248 return 0;
15249 }
15250 _ACEOF
15251 if ac_fn_c_try_compile "$LINENO"; then :
15252 emacs_cv_c_restrict_arr=yes
15253 else
15254 emacs_cv_c_restrict_arr=no
15255 fi
15256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15257 fi
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15259 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15260 if test "$emacs_cv_c_restrict_arr" = yes; then
15261
15262 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15263
15264 fi
15265
15266
15267
15268 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15269
15270
15271
15272 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15273
15274
15275 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15276
15277 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15278
15279
15280
15281 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15282
15283
15284
15285
15286
15287 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15288
15289
15290
15291 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15292
15293
15294
15295 $as_echo "#define subprocesses 1" >>confdefs.h
15296
15297
15298
15299 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15300
15301
15302
15303
15304 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15305
15306
15307
15308
15309
15310 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15311
15312
15313
15314 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15315
15316
15317
15318 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15319
15320
15321
15322
15323
15324 case $opsys in
15325 aix4-2)
15326 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15327 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15328
15329 fi
15330 ;;
15331
15332 hpux*)
15333 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15334
15335 ;;
15336 esac
15337
15338
15339 case $opsys in
15340 irix6-5 | sol2* | unixware )
15341
15342 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15343
15344 ;;
15345 esac
15346
15347 emacs_broken_SIGIO=no
15348
15349 case $opsys in
15350 hpux* | irix6-5 | openbsd | sol2* | unixware )
15351 emacs_broken_SIGIO=yes
15352 ;;
15353
15354 aix4-2)
15355
15356 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15357
15358 ;;
15359
15360 freebsd)
15361
15362 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15363
15364 ;;
15365 esac
15366
15367 case $opsys in
15368 gnu-* | sol2-10 )
15369
15370 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15371
15372 ;;
15373 esac
15374
15375 case $opsys in
15376 darwin | freebsd | netbsd | openbsd )
15377
15378 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15379
15380 ;;
15381 esac
15382
15383 case $opsys in
15384 netbsd | openbsd) sound_device="/dev/audio" ;;
15385 *) sound_device="/dev/dsp" ;;
15386 esac
15387
15388
15389 cat >>confdefs.h <<_ACEOF
15390 #define DEFAULT_SOUND_DEVICE "$sound_device"
15391 _ACEOF
15392
15393
15394
15395 case $opsys in
15396 darwin | gnu-linux | gnu-kfreebsd )
15397
15398 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15399
15400 ;;
15401 esac
15402
15403
15404 case $opsys in
15405 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15406
15407 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15408
15409 ;;
15410 esac
15411
15412
15413
15414
15415
15416
15417
15418
15419 case $opsys in
15420 aix4-2 )
15421 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15422
15423 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15424
15425 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15426
15427 ;;
15428
15429 cygwin )
15430 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15431
15432 $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
15433
15434 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15435
15436 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15437
15438 ;;
15439
15440 darwin )
15441 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15442
15443 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15444
15445 $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
15446
15447 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15448
15449 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15450
15451 ;;
15452
15453 gnu | openbsd )
15454 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15455
15456 ;;
15457
15458 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15459 if test "x$ac_cv_func_grantpt" = xyes; then
15460
15461 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15462
15463 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15464
15465 $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
15466
15467 if test "x$ac_cv_func_posix_openpt" = xyes; then
15468 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15469
15470 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15471
15472 elif test "x$ac_cv_func_getpt" = xyes; then
15473 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15474
15475 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15476
15477 else
15478 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15479
15480 fi
15481 else
15482 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15483
15484 fi
15485 ;;
15486
15487 hpux*)
15488 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15489
15490 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15491
15492 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15493
15494 ;;
15495
15496 irix6-5 )
15497 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15498
15499 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15500
15501 $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(SIGCHLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCHLD, &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
15502
15503 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15504
15505 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15506
15507 ;;
15508
15509 sol2* )
15510 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); 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
15511
15512 ;;
15513
15514 unixware )
15515 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); 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
15516
15517 ;;
15518 esac
15519
15520
15521 case $opsys in
15522 sol2* | unixware )
15523 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15524
15525 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15526
15527
15528 $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
15529
15530 ;;
15531 esac
15532
15533
15534
15535
15536 case $opsys in
15537 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin )
15538 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15539
15540 ;;
15541
15542 gnu-linux | gnu-kfreebsd )
15543
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15545 $as_echo_n "checking for signals via characters... " >&6; }
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548
15549 #include <linux/version.h>
15550 #if LINUX_VERSION_CODE < 0x20400
15551 # error "Linux version too old"
15552 #endif
15553
15554 int
15555 main ()
15556 {
15557
15558 ;
15559 return 0;
15560 }
15561 _ACEOF
15562 if ac_fn_c_try_cpp "$LINENO"; then :
15563 emacs_signals_via_chars=yes
15564 else
15565 emacs_signals_via_chars=no
15566 fi
15567 rm -f conftest.err conftest.$ac_ext
15568
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15570 $as_echo "$emacs_signals_via_chars" >&6; }
15571 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15572
15573 ;;
15574 esac
15575
15576
15577
15578
15579
15580 case $opsys in
15581 gnu)
15582 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15583
15584 ;;
15585
15586 hpux*)
15587 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15588
15589 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15590
15591 ;;
15592 irix6-5)
15593 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15594
15595 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15596
15597 ;;
15598 esac
15599
15600
15601
15602
15603 case $opsys in
15604 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15605 ;;
15606
15607 gnu | freebsd | netbsd | openbsd )
15608
15609 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15610
15611 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15612
15613 ;;
15614
15615 gnu-linux | gnu-kfreebsd )
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15618
15619 #ifndef __ia64__
15620 # error "not ia64"
15621 #endif
15622
15623 int
15624 main ()
15625 {
15626
15627 ;
15628 return 0;
15629 }
15630 _ACEOF
15631 if ac_fn_c_try_cpp "$LINENO"; then :
15632
15633 $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
15634
15635 fi
15636 rm -f conftest.err conftest.$ac_ext
15637 ;;
15638
15639 hpux*)
15640
15641 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15642
15643 ;;
15644 esac
15645
15646
15647
15648
15649
15650
15651
15652 case $opsys in
15653 aix4-2 | hpux* | unixware)
15654 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15655
15656 ;;
15657
15658 gnu-linux | gnu-kfreebsd )
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15661
15662 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15663 || defined __alpha__ || defined __mips__ || defined __s390__ \
15664 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15665 || defined __ia64__ || defined __sh__
15666 /* ok */
15667 #else
15668 # error "setjmp not known to work on this arch"
15669 #endif
15670
15671 int
15672 main ()
15673 {
15674
15675 ;
15676 return 0;
15677 }
15678 _ACEOF
15679 if ac_fn_c_try_cpp "$LINENO"; then :
15680 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15681
15682 else
15683 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15684
15685 fi
15686 rm -f conftest.err conftest.$ac_ext
15687 ;;
15688 esac
15689
15690
15691 if test x$GCC = xyes; then
15692 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15693
15694 else
15695 case $opsys in
15696 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15697 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15698
15699 ;;
15700 esac
15701 fi
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15703 $as_echo_n "checking for _setjmp... " >&6; }
15704 if test "${emacs_cv_func__setjmp+set}" = set; then :
15705 $as_echo_n "(cached) " >&6
15706 else
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709 #include <setjmp.h>
15710
15711 int
15712 main ()
15713 {
15714 jmp_buf j;
15715 if (! _setjmp (j))
15716 _longjmp (j, 1);
15717 ;
15718 return 0;
15719 }
15720 _ACEOF
15721 if ac_fn_c_try_link "$LINENO"; then :
15722 emacs_cv_func__setjmp=yes
15723 else
15724 emacs_cv_func__setjmp=no
15725 fi
15726 rm -f core conftest.err conftest.$ac_objext \
15727 conftest$ac_exeext conftest.$ac_ext
15728 fi
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15730 $as_echo "$emacs_cv_func__setjmp" >&6; }
15731 if test $emacs_cv_func__setjmp = yes; then
15732
15733 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15734
15735 else
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15737 $as_echo_n "checking for sigsetjmp... " >&6; }
15738 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15739 $as_echo_n "(cached) " >&6
15740 else
15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15743 #include <setjmp.h>
15744
15745 int
15746 main ()
15747 {
15748 sigjmp_buf j;
15749 if (! sigsetjmp (j, 1))
15750 siglongjmp (j, 1);
15751 ;
15752 return 0;
15753 }
15754 _ACEOF
15755 if ac_fn_c_try_link "$LINENO"; then :
15756 emacs_cv_func_sigsetjmp=yes
15757 else
15758 emacs_cv_func_sigsetjmp=no
15759 fi
15760 rm -f core conftest.err conftest.$ac_objext \
15761 conftest$ac_exeext conftest.$ac_ext
15762 fi
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15764 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15765 if test $emacs_cv_func_sigsetjmp = yes; then
15766
15767 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15768
15769 fi
15770 fi
15771
15772 case $opsys in
15773 sol2* | unixware )
15774
15775 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15776
15777 ;;
15778 esac
15779
15780
15781 case $opsys in
15782 hpux* | sol2* )
15783
15784 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15785
15786 ;;
15787 esac
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797 case $opsys in
15798 aix4-2)
15799 $as_echo "#define USG /**/" >>confdefs.h
15800
15801 $as_echo "#define USG5 /**/" >>confdefs.h
15802
15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15805
15806 #ifndef _AIX
15807 # error "_AIX not defined"
15808 #endif
15809
15810 int
15811 main ()
15812 {
15813
15814 ;
15815 return 0;
15816 }
15817 _ACEOF
15818 if ac_fn_c_try_cpp "$LINENO"; then :
15819
15820 else
15821
15822 $as_echo "#define _AIX /**/" >>confdefs.h
15823
15824 fi
15825 rm -f conftest.err conftest.$ac_ext
15826 ;;
15827
15828 cygwin)
15829
15830 $as_echo "#define CYGWIN 1" >>confdefs.h
15831
15832 ;;
15833
15834 darwin)
15835 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15836
15837
15838 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15839
15840 ;;
15841
15842 freebsd)
15843
15844 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15845
15846 ;;
15847
15848 gnu | netbsd | openbsd )
15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15851
15852 #ifndef BSD_SYSTEM
15853 # error "BSD_SYSTEM not defined"
15854 #endif
15855
15856 int
15857 main ()
15858 {
15859
15860 ;
15861 return 0;
15862 }
15863 _ACEOF
15864 if ac_fn_c_try_cpp "$LINENO"; then :
15865
15866 else
15867 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15868
15869 fi
15870 rm -f conftest.err conftest.$ac_ext
15871 ;;
15872
15873 gnu-linux | gnu-kfreebsd )
15874 $as_echo "#define USG /**/" >>confdefs.h
15875
15876
15877 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15878
15879 ;;
15880
15881 hpux*)
15882 $as_echo "#define USG /**/" >>confdefs.h
15883
15884 $as_echo "#define USG5 /**/" >>confdefs.h
15885
15886
15887 $as_echo "#define HPUX /**/" >>confdefs.h
15888
15889 ;;
15890
15891 irix6-5)
15892 $as_echo "#define USG /**/" >>confdefs.h
15893
15894 $as_echo "#define USG5 /**/" >>confdefs.h
15895
15896 $as_echo "#define USG5_4 /**/" >>confdefs.h
15897
15898
15899 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15900
15901 ;;
15902
15903 sol2*)
15904 $as_echo "#define USG /**/" >>confdefs.h
15905
15906 $as_echo "#define USG5 /**/" >>confdefs.h
15907
15908 $as_echo "#define USG5_4 /**/" >>confdefs.h
15909
15910
15911 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15912
15913 ;;
15914
15915 unixware)
15916 $as_echo "#define USG /**/" >>confdefs.h
15917
15918 $as_echo "#define USG5 /**/" >>confdefs.h
15919
15920 $as_echo "#define USG5_4 /**/" >>confdefs.h
15921
15922 ;;
15923 esac
15924
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15926 $as_echo_n "checking for usable FIONREAD... " >&6; }
15927 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15928 $as_echo_n "(cached) " >&6
15929 else
15930 case $opsys in
15931 aix4-2)
15932 emacs_cv_usable_FIONREAD=no
15933 ;;
15934
15935 *)
15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15938 #include <sys/types.h>
15939 #include <sys/ioctl.h>
15940 #ifdef USG5_4
15941 # include <sys/filio.h>
15942 #endif
15943
15944 int
15945 main ()
15946 {
15947 int foo = ioctl (0, FIONREAD, &foo);
15948 ;
15949 return 0;
15950 }
15951 _ACEOF
15952 if ac_fn_c_try_compile "$LINENO"; then :
15953 emacs_cv_usable_FIONREAD=yes
15954 else
15955 emacs_cv_usable_FIONREAD=no
15956 fi
15957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15958 ;;
15959 esac
15960 fi
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15962 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15963 if test $emacs_cv_usable_FIONREAD = yes; then
15964
15965 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15966
15967
15968 if test $emacs_broken_SIGIO = no; then
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15970 $as_echo_n "checking for usable SIGIO... " >&6; }
15971 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15972 $as_echo_n "(cached) " >&6
15973 else
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 #include <fcntl.h>
15977 #include <signal.h>
15978
15979 int
15980 main ()
15981 {
15982 int foo = SIGIO | F_SETFL | FASYNC;
15983 ;
15984 return 0;
15985 }
15986 _ACEOF
15987 if ac_fn_c_try_compile "$LINENO"; then :
15988 emacs_cv_usable_SIGIO=yes
15989 else
15990 emacs_cv_usable_SIGIO=no
15991 fi
15992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15993 fi
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15995 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15996 if test $emacs_cv_usable_SIGIO = yes; then
15997
15998 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15999
16000 fi
16001 fi
16002 fi
16003
16004
16005 case $opsys in
16006 cygwin)
16007
16008 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16009
16010 ;;
16011
16012 hpux11)
16013
16014 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16015
16016 ;;
16017
16018 irix6-5)
16019
16020 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16021
16022 ;;
16023
16024 sol2-10)
16025
16026 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16027
16028 ;;
16029 esac
16030
16031 # Set up the CFLAGS for real compilation, so we can substitute it.
16032 CFLAGS="$REAL_CFLAGS"
16033 CPPFLAGS="$REAL_CPPFLAGS"
16034
16035 ## Hack to detect a buggy GCC version.
16036 if test "x$GCC" = xyes \
16037 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16038 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16039 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16040 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16041 fi
16042
16043 version=$PACKAGE_VERSION
16044
16045 copyright="Copyright (C) 2012 Free Software Foundation, Inc."
16046
16047 cat >>confdefs.h <<_ACEOF
16048 #define COPYRIGHT "$copyright"
16049 _ACEOF
16050
16051
16052
16053 ### Specify what sort of things we'll be editing into Makefile and config.h.
16054 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16055
16056
16057 ## Unused?
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16081 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16082 ## end of LIBX_BASE, but nothing ever set it.
16083
16084
16085
16086
16087 ## Used in lwlib/Makefile.in.
16088
16089
16090
16091
16092
16093
16094
16095
16096 if test -n "${term_header}"; then
16097
16098 cat >>confdefs.h <<_ACEOF
16099 #define TERM_HEADER "${term_header}"
16100 _ACEOF
16101
16102 fi
16103
16104
16105 cat >>confdefs.h <<_ACEOF
16106 #define EMACS_CONFIGURATION "${canonical}"
16107 _ACEOF
16108
16109
16110 cat >>confdefs.h <<_ACEOF
16111 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16112 _ACEOF
16113
16114
16115
16116 XMENU_OBJ=
16117 XOBJ=
16118 FONT_OBJ=
16119 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16120
16121 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16122
16123 XMENU_OBJ=xmenu.o
16124 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16125 FONT_OBJ=xfont.o
16126 if test "$HAVE_XFT" = "yes"; then
16127 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16128 elif test "$HAVE_FREETYPE" = "yes"; then
16129 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16130 fi
16131
16132 fi
16133
16134
16135
16136
16137 WIDGET_OBJ=
16138 MOTIF_LIBW=
16139 if test "${USE_X_TOOLKIT}" != "none" ; then
16140 WIDGET_OBJ=widget.o
16141
16142 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16143
16144 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16145
16146 $as_echo "#define USE_LUCID 1" >>confdefs.h
16147
16148 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16149
16150 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16151
16152 MOTIF_LIBW=-lXm
16153 case "$opsys" in
16154 gnu-linux)
16155 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16156 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16157 ;;
16158
16159 unixware)
16160 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16161 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16162 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16163 ;;
16164
16165 aix4-2)
16166 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16167 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16168 ;;
16169 esac
16170 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16171 fi
16172 fi
16173
16174
16175 TOOLKIT_LIBW=
16176 case "$USE_X_TOOLKIT" in
16177 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16178 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16179 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16180 esac
16181
16182
16183 if test "$USE_X_TOOLKIT" = "none"; then
16184 LIBXT_OTHER="\$(LIBXSM)"
16185 OLDXMENU_TARGET="really-oldXMenu"
16186 else
16187 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16188 OLDXMENU_TARGET="really-lwlib"
16189 fi
16190
16191
16192 ## The X Menu stuff is present in the X10 distribution, but missing
16193 ## from X11. If we have X10, just use the installed library;
16194 ## otherwise, use our own copy.
16195 if test "${HAVE_X11}" = "yes" ; then
16196
16197 $as_echo "#define HAVE_X11 1" >>confdefs.h
16198
16199
16200 if test "$USE_X_TOOLKIT" = "none"; then
16201 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16202 else
16203 OLDXMENU="\${lwlibdir}/liblw.a"
16204 fi
16205 LIBXMENU="\$(OLDXMENU)"
16206 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16207 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16208 else
16209 ## For a syntactically valid Makefile; not actually used for anything.
16210 ## See comments in src/Makefile.in.
16211 OLDXMENU=nothing
16212 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16213 if test "${HAVE_X_WINDOWS}" = "yes"; then
16214 LIBXMENU="-lXMenu"
16215 else
16216 LIBXMENU=
16217 fi
16218 LIBX_OTHER=
16219 OLDXMENU_DEPS=
16220 fi
16221
16222 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16223 OLDXMENU_TARGET=
16224 OLDXMENU=nothing
16225 LIBXMENU=
16226 OLDXMENU_DEPS=
16227 fi
16228
16229
16230
16231
16232
16233
16234
16235 if test "${HAVE_MENUS}" = "yes" ; then
16236
16237 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16238
16239 fi
16240
16241 if test "${GNU_MALLOC}" = "yes" ; then
16242
16243 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16244
16245 fi
16246
16247 RALLOC_OBJ=
16248 if test "${REL_ALLOC}" = "yes" ; then
16249
16250 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16251
16252
16253 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16254 fi
16255
16256
16257 if test "$opsys" = "cygwin"; then
16258 CYGWIN_OBJ="sheap.o cygw32.o"
16259 ## Cygwin differs because of its unexec().
16260 PRE_ALLOC_OBJ=
16261 POST_ALLOC_OBJ=lastfile.o
16262 else
16263 CYGWIN_OBJ=
16264 PRE_ALLOC_OBJ=lastfile.o
16265 POST_ALLOC_OBJ=
16266 fi
16267
16268
16269
16270
16271 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16272 # it temporarily reverts them to their pre-pkg-config values,
16273 # because gnulib needs to work with both src (which uses the
16274 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16275 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16276 # and it therefore needs to run in an environment where LIBS does not
16277 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16278 # for some package unrelated to lib-src.
16279 SAVE_CFLAGS=$CFLAGS
16280 SAVE_LIBS=$LIBS
16281 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16282 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294 LIBC_FATAL_STDERR_=1
16295 export LIBC_FATAL_STDERR_
16296
16297 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16298 # for constant arguments. Useless!
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16300 $as_echo_n "checking for working alloca.h... " >&6; }
16301 if test "${ac_cv_working_alloca_h+set}" = set; then :
16302 $as_echo_n "(cached) " >&6
16303 else
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 #include <alloca.h>
16307 int
16308 main ()
16309 {
16310 char *p = (char *) alloca (2 * sizeof (int));
16311 if (p) return 0;
16312 ;
16313 return 0;
16314 }
16315 _ACEOF
16316 if ac_fn_c_try_link "$LINENO"; then :
16317 ac_cv_working_alloca_h=yes
16318 else
16319 ac_cv_working_alloca_h=no
16320 fi
16321 rm -f core conftest.err conftest.$ac_objext \
16322 conftest$ac_exeext conftest.$ac_ext
16323 fi
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16325 $as_echo "$ac_cv_working_alloca_h" >&6; }
16326 if test $ac_cv_working_alloca_h = yes; then
16327
16328 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16329
16330 fi
16331
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16333 $as_echo_n "checking for alloca... " >&6; }
16334 if test "${ac_cv_func_alloca_works+set}" = set; then :
16335 $as_echo_n "(cached) " >&6
16336 else
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339 #ifdef __GNUC__
16340 # define alloca __builtin_alloca
16341 #else
16342 # ifdef _MSC_VER
16343 # include <malloc.h>
16344 # define alloca _alloca
16345 # else
16346 # ifdef HAVE_ALLOCA_H
16347 # include <alloca.h>
16348 # else
16349 # ifdef _AIX
16350 #pragma alloca
16351 # else
16352 # ifndef alloca /* predefined by HP cc +Olibcalls */
16353 char *alloca ();
16354 # endif
16355 # endif
16356 # endif
16357 # endif
16358 #endif
16359
16360 int
16361 main ()
16362 {
16363 char *p = (char *) alloca (1);
16364 if (p) return 0;
16365 ;
16366 return 0;
16367 }
16368 _ACEOF
16369 if ac_fn_c_try_link "$LINENO"; then :
16370 ac_cv_func_alloca_works=yes
16371 else
16372 ac_cv_func_alloca_works=no
16373 fi
16374 rm -f core conftest.err conftest.$ac_objext \
16375 conftest$ac_exeext conftest.$ac_ext
16376 fi
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16378 $as_echo "$ac_cv_func_alloca_works" >&6; }
16379
16380 if test $ac_cv_func_alloca_works = yes; then
16381
16382 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16383
16384 else
16385 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16386 # that cause trouble. Some versions do not even contain alloca or
16387 # contain a buggy version. If you still want to use their alloca,
16388 # use ar to extract alloca.o from them instead of compiling alloca.c.
16389
16390
16391
16392
16393
16394 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16395
16396 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16397
16398
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16400 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16401 if test "${ac_cv_os_cray+set}" = set; then :
16402 $as_echo_n "(cached) " >&6
16403 else
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16406 #if defined CRAY && ! defined CRAY2
16407 webecray
16408 #else
16409 wenotbecray
16410 #endif
16411
16412 _ACEOF
16413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16414 $EGREP "webecray" >/dev/null 2>&1; then :
16415 ac_cv_os_cray=yes
16416 else
16417 ac_cv_os_cray=no
16418 fi
16419 rm -f conftest*
16420
16421 fi
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16423 $as_echo "$ac_cv_os_cray" >&6; }
16424 if test $ac_cv_os_cray = yes; then
16425 for ac_func in _getb67 GETB67 getb67; do
16426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16428 eval as_val=\$$as_ac_var
16429 if test "x$as_val" = x""yes; then :
16430
16431 cat >>confdefs.h <<_ACEOF
16432 #define CRAY_STACKSEG_END $ac_func
16433 _ACEOF
16434
16435 break
16436 fi
16437
16438 done
16439 fi
16440
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16442 $as_echo_n "checking stack direction for C alloca... " >&6; }
16443 if test "${ac_cv_c_stack_direction+set}" = set; then :
16444 $as_echo_n "(cached) " >&6
16445 else
16446 if test "$cross_compiling" = yes; then :
16447 ac_cv_c_stack_direction=0
16448 else
16449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h. */
16451 $ac_includes_default
16452 int
16453 find_stack_direction (int *addr, int depth)
16454 {
16455 int dir, dummy = 0;
16456 if (! addr)
16457 addr = &dummy;
16458 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16459 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16460 return dir + dummy;
16461 }
16462
16463 int
16464 main (int argc, char **argv)
16465 {
16466 return find_stack_direction (0, argc + !argv + 20) < 0;
16467 }
16468 _ACEOF
16469 if ac_fn_c_try_run "$LINENO"; then :
16470 ac_cv_c_stack_direction=1
16471 else
16472 ac_cv_c_stack_direction=-1
16473 fi
16474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16475 conftest.$ac_objext conftest.beam conftest.$ac_ext
16476 fi
16477
16478 fi
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16480 $as_echo "$ac_cv_c_stack_direction" >&6; }
16481 cat >>confdefs.h <<_ACEOF
16482 #define STACK_DIRECTION $ac_cv_c_stack_direction
16483 _ACEOF
16484
16485
16486 fi
16487
16488
16489
16490
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16492 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16493 if test "${ac_cv_c_bigendian+set}" = set; then :
16494 $as_echo_n "(cached) " >&6
16495 else
16496 ac_cv_c_bigendian=unknown
16497 # See if we're dealing with a universal compiler.
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h. */
16500 #ifndef __APPLE_CC__
16501 not a universal capable compiler
16502 #endif
16503 typedef int dummy;
16504
16505 _ACEOF
16506 if ac_fn_c_try_compile "$LINENO"; then :
16507
16508 # Check for potential -arch flags. It is not universal unless
16509 # there are at least two -arch flags with different values.
16510 ac_arch=
16511 ac_prev=
16512 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16513 if test -n "$ac_prev"; then
16514 case $ac_word in
16515 i?86 | x86_64 | ppc | ppc64)
16516 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16517 ac_arch=$ac_word
16518 else
16519 ac_cv_c_bigendian=universal
16520 break
16521 fi
16522 ;;
16523 esac
16524 ac_prev=
16525 elif test "x$ac_word" = "x-arch"; then
16526 ac_prev=arch
16527 fi
16528 done
16529 fi
16530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16531 if test $ac_cv_c_bigendian = unknown; then
16532 # See if sys/param.h defines the BYTE_ORDER macro.
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16535 #include <sys/types.h>
16536 #include <sys/param.h>
16537
16538 int
16539 main ()
16540 {
16541 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16542 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16543 && LITTLE_ENDIAN)
16544 bogus endian macros
16545 #endif
16546
16547 ;
16548 return 0;
16549 }
16550 _ACEOF
16551 if ac_fn_c_try_compile "$LINENO"; then :
16552 # It does; now see whether it defined to BIG_ENDIAN or not.
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555 #include <sys/types.h>
16556 #include <sys/param.h>
16557
16558 int
16559 main ()
16560 {
16561 #if BYTE_ORDER != BIG_ENDIAN
16562 not big endian
16563 #endif
16564
16565 ;
16566 return 0;
16567 }
16568 _ACEOF
16569 if ac_fn_c_try_compile "$LINENO"; then :
16570 ac_cv_c_bigendian=yes
16571 else
16572 ac_cv_c_bigendian=no
16573 fi
16574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575 fi
16576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16577 fi
16578 if test $ac_cv_c_bigendian = unknown; then
16579 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16582 #include <limits.h>
16583
16584 int
16585 main ()
16586 {
16587 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16588 bogus endian macros
16589 #endif
16590
16591 ;
16592 return 0;
16593 }
16594 _ACEOF
16595 if ac_fn_c_try_compile "$LINENO"; then :
16596 # It does; now see whether it defined to _BIG_ENDIAN or not.
16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598 /* end confdefs.h. */
16599 #include <limits.h>
16600
16601 int
16602 main ()
16603 {
16604 #ifndef _BIG_ENDIAN
16605 not big endian
16606 #endif
16607
16608 ;
16609 return 0;
16610 }
16611 _ACEOF
16612 if ac_fn_c_try_compile "$LINENO"; then :
16613 ac_cv_c_bigendian=yes
16614 else
16615 ac_cv_c_bigendian=no
16616 fi
16617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 fi
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 fi
16621 if test $ac_cv_c_bigendian = unknown; then
16622 # Compile a test program.
16623 if test "$cross_compiling" = yes; then :
16624 # Try to guess by grepping values from an object file.
16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16627 short int ascii_mm[] =
16628 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16629 short int ascii_ii[] =
16630 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16631 int use_ascii (int i) {
16632 return ascii_mm[i] + ascii_ii[i];
16633 }
16634 short int ebcdic_ii[] =
16635 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16636 short int ebcdic_mm[] =
16637 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16638 int use_ebcdic (int i) {
16639 return ebcdic_mm[i] + ebcdic_ii[i];
16640 }
16641 extern int foo;
16642
16643 int
16644 main ()
16645 {
16646 return use_ascii (foo) == use_ebcdic (foo);
16647 ;
16648 return 0;
16649 }
16650 _ACEOF
16651 if ac_fn_c_try_compile "$LINENO"; then :
16652 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16653 ac_cv_c_bigendian=yes
16654 fi
16655 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16656 if test "$ac_cv_c_bigendian" = unknown; then
16657 ac_cv_c_bigendian=no
16658 else
16659 # finding both strings is unlikely to happen, but who knows?
16660 ac_cv_c_bigendian=unknown
16661 fi
16662 fi
16663 fi
16664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16665 else
16666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16667 /* end confdefs.h. */
16668 $ac_includes_default
16669 int
16670 main ()
16671 {
16672
16673 /* Are we little or big endian? From Harbison&Steele. */
16674 union
16675 {
16676 long int l;
16677 char c[sizeof (long int)];
16678 } u;
16679 u.l = 1;
16680 return u.c[sizeof (long int) - 1] == 1;
16681
16682 ;
16683 return 0;
16684 }
16685 _ACEOF
16686 if ac_fn_c_try_run "$LINENO"; then :
16687 ac_cv_c_bigendian=no
16688 else
16689 ac_cv_c_bigendian=yes
16690 fi
16691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16692 conftest.$ac_objext conftest.beam conftest.$ac_ext
16693 fi
16694
16695 fi
16696 fi
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16698 $as_echo "$ac_cv_c_bigendian" >&6; }
16699 case $ac_cv_c_bigendian in #(
16700 yes)
16701 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16702 ;; #(
16703 no)
16704 ;; #(
16705 universal)
16706
16707 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16708
16709 ;; #(
16710 *)
16711 as_fn_error "unknown endianness
16712 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16713 esac
16714
16715
16716
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16718 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16719 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16720 $as_echo_n "(cached) " >&6
16721 else
16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723 /* end confdefs.h. */
16724 /* On HP-UX before 11.23, strtold returns a struct instead of
16725 long double. Reject implementations like that, by requiring
16726 compatibility with the C99 prototype. */
16727 #include <stdlib.h>
16728 static long double (*p) (char const *, char **) = strtold;
16729 static long double
16730 test (char const *nptr, char **endptr)
16731 {
16732 long double r;
16733 r = strtold (nptr, endptr);
16734 return r;
16735 }
16736 int
16737 main ()
16738 {
16739 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16740 ;
16741 return 0;
16742 }
16743 _ACEOF
16744 if ac_fn_c_try_link "$LINENO"; then :
16745 gl_cv_func_c99_strtold=yes
16746 else
16747 gl_cv_func_c99_strtold=no
16748 fi
16749 rm -f core conftest.err conftest.$ac_objext \
16750 conftest$ac_exeext conftest.$ac_ext
16751 fi
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16753 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16754 if test $gl_cv_func_c99_strtold = yes; then
16755
16756 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16757
16758 fi
16759
16760
16761 GNULIB_CHDIR=0;
16762 GNULIB_CHOWN=0;
16763 GNULIB_CLOSE=0;
16764 GNULIB_DUP=0;
16765 GNULIB_DUP2=0;
16766 GNULIB_DUP3=0;
16767 GNULIB_ENVIRON=0;
16768 GNULIB_EUIDACCESS=0;
16769 GNULIB_FACCESSAT=0;
16770 GNULIB_FCHDIR=0;
16771 GNULIB_FCHOWNAT=0;
16772 GNULIB_FDATASYNC=0;
16773 GNULIB_FSYNC=0;
16774 GNULIB_FTRUNCATE=0;
16775 GNULIB_GETCWD=0;
16776 GNULIB_GETDOMAINNAME=0;
16777 GNULIB_GETDTABLESIZE=0;
16778 GNULIB_GETGROUPS=0;
16779 GNULIB_GETHOSTNAME=0;
16780 GNULIB_GETLOGIN=0;
16781 GNULIB_GETLOGIN_R=0;
16782 GNULIB_GETPAGESIZE=0;
16783 GNULIB_GETUSERSHELL=0;
16784 GNULIB_GROUP_MEMBER=0;
16785 GNULIB_ISATTY=0;
16786 GNULIB_LCHOWN=0;
16787 GNULIB_LINK=0;
16788 GNULIB_LINKAT=0;
16789 GNULIB_LSEEK=0;
16790 GNULIB_PIPE=0;
16791 GNULIB_PIPE2=0;
16792 GNULIB_PREAD=0;
16793 GNULIB_PWRITE=0;
16794 GNULIB_READ=0;
16795 GNULIB_READLINK=0;
16796 GNULIB_READLINKAT=0;
16797 GNULIB_RMDIR=0;
16798 GNULIB_SETHOSTNAME=0;
16799 GNULIB_SLEEP=0;
16800 GNULIB_SYMLINK=0;
16801 GNULIB_SYMLINKAT=0;
16802 GNULIB_TTYNAME_R=0;
16803 GNULIB_UNISTD_H_NONBLOCKING=0;
16804 GNULIB_UNISTD_H_SIGPIPE=0;
16805 GNULIB_UNLINK=0;
16806 GNULIB_UNLINKAT=0;
16807 GNULIB_USLEEP=0;
16808 GNULIB_WRITE=0;
16809 HAVE_CHOWN=1;
16810 HAVE_DUP2=1;
16811 HAVE_DUP3=1;
16812 HAVE_EUIDACCESS=1;
16813 HAVE_FACCESSAT=1;
16814 HAVE_FCHDIR=1;
16815 HAVE_FCHOWNAT=1;
16816 HAVE_FDATASYNC=1;
16817 HAVE_FSYNC=1;
16818 HAVE_FTRUNCATE=1;
16819 HAVE_GETDTABLESIZE=1;
16820 HAVE_GETGROUPS=1;
16821 HAVE_GETHOSTNAME=1;
16822 HAVE_GETLOGIN=1;
16823 HAVE_GETPAGESIZE=1;
16824 HAVE_GROUP_MEMBER=1;
16825 HAVE_LCHOWN=1;
16826 HAVE_LINK=1;
16827 HAVE_LINKAT=1;
16828 HAVE_PIPE=1;
16829 HAVE_PIPE2=1;
16830 HAVE_PREAD=1;
16831 HAVE_PWRITE=1;
16832 HAVE_READLINK=1;
16833 HAVE_READLINKAT=1;
16834 HAVE_SETHOSTNAME=1;
16835 HAVE_SLEEP=1;
16836 HAVE_SYMLINK=1;
16837 HAVE_SYMLINKAT=1;
16838 HAVE_UNLINKAT=1;
16839 HAVE_USLEEP=1;
16840 HAVE_DECL_ENVIRON=1;
16841 HAVE_DECL_FCHDIR=1;
16842 HAVE_DECL_FDATASYNC=1;
16843 HAVE_DECL_GETDOMAINNAME=1;
16844 HAVE_DECL_GETLOGIN_R=1;
16845 HAVE_DECL_GETPAGESIZE=1;
16846 HAVE_DECL_GETUSERSHELL=1;
16847 HAVE_DECL_SETHOSTNAME=1;
16848 HAVE_DECL_TTYNAME_R=1;
16849 HAVE_OS_H=0;
16850 HAVE_SYS_PARAM_H=0;
16851 REPLACE_CHOWN=0;
16852 REPLACE_CLOSE=0;
16853 REPLACE_DUP=0;
16854 REPLACE_DUP2=0;
16855 REPLACE_FCHOWNAT=0;
16856 REPLACE_FTRUNCATE=0;
16857 REPLACE_GETCWD=0;
16858 REPLACE_GETDOMAINNAME=0;
16859 REPLACE_GETLOGIN_R=0;
16860 REPLACE_GETGROUPS=0;
16861 REPLACE_GETPAGESIZE=0;
16862 REPLACE_ISATTY=0;
16863 REPLACE_LCHOWN=0;
16864 REPLACE_LINK=0;
16865 REPLACE_LINKAT=0;
16866 REPLACE_LSEEK=0;
16867 REPLACE_PREAD=0;
16868 REPLACE_PWRITE=0;
16869 REPLACE_READ=0;
16870 REPLACE_READLINK=0;
16871 REPLACE_RMDIR=0;
16872 REPLACE_SLEEP=0;
16873 REPLACE_SYMLINK=0;
16874 REPLACE_TTYNAME_R=0;
16875 REPLACE_UNLINK=0;
16876 REPLACE_UNLINKAT=0;
16877 REPLACE_USLEEP=0;
16878 REPLACE_WRITE=0;
16879 UNISTD_H_HAVE_WINSOCK2_H=0;
16880 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16891 $as_echo_n "checking if environ is properly declared... " >&6; }
16892 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16893 $as_echo_n "(cached) " >&6
16894 else
16895
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16898 #if HAVE_UNISTD_H
16899 #include <unistd.h>
16900 #endif
16901 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16902 #include <stdlib.h>
16903
16904 extern struct { int foo; } environ;
16905 int
16906 main ()
16907 {
16908 environ.foo = 1;
16909 ;
16910 return 0;
16911 }
16912 _ACEOF
16913 if ac_fn_c_try_compile "$LINENO"; then :
16914 gt_cv_var_environ_declaration=no
16915 else
16916 gt_cv_var_environ_declaration=yes
16917 fi
16918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16919 fi
16920
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16922 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16923 if test $gt_cv_var_environ_declaration = yes; then
16924
16925 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16926
16927 fi
16928
16929
16930 if test $gt_cv_var_environ_declaration != yes; then
16931 HAVE_DECL_ENVIRON=0
16932 fi
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942 GNULIB_FCNTL=0;
16943 GNULIB_NONBLOCKING=0;
16944 GNULIB_OPEN=0;
16945 GNULIB_OPENAT=0;
16946 HAVE_FCNTL=1;
16947 HAVE_OPENAT=1;
16948 REPLACE_FCNTL=0;
16949 REPLACE_OPEN=0;
16950 REPLACE_OPENAT=0;
16951
16952
16953
16954
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16956 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16957 if test "${gl_cv_have_include_next+set}" = set; then :
16958 $as_echo_n "(cached) " >&6
16959 else
16960 rm -rf conftestd1a conftestd1b conftestd2
16961 mkdir conftestd1a conftestd1b conftestd2
16962 cat <<EOF > conftestd1a/conftest.h
16963 #define DEFINED_IN_CONFTESTD1
16964 #include_next <conftest.h>
16965 #ifdef DEFINED_IN_CONFTESTD2
16966 int foo;
16967 #else
16968 #error "include_next doesn't work"
16969 #endif
16970 EOF
16971 cat <<EOF > conftestd1b/conftest.h
16972 #define DEFINED_IN_CONFTESTD1
16973 #include <stdio.h>
16974 #include_next <conftest.h>
16975 #ifdef DEFINED_IN_CONFTESTD2
16976 int foo;
16977 #else
16978 #error "include_next doesn't work"
16979 #endif
16980 EOF
16981 cat <<EOF > conftestd2/conftest.h
16982 #ifndef DEFINED_IN_CONFTESTD1
16983 #error "include_next test doesn't work"
16984 #endif
16985 #define DEFINED_IN_CONFTESTD2
16986 EOF
16987 gl_save_CPPFLAGS="$CPPFLAGS"
16988 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h. */
16991 #include <conftest.h>
16992 _ACEOF
16993 if ac_fn_c_try_compile "$LINENO"; then :
16994 gl_cv_have_include_next=yes
16995 else
16996 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998 /* end confdefs.h. */
16999 #include <conftest.h>
17000 _ACEOF
17001 if ac_fn_c_try_compile "$LINENO"; then :
17002 gl_cv_have_include_next=buggy
17003 else
17004 gl_cv_have_include_next=no
17005 fi
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007
17008 fi
17009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17010 CPPFLAGS="$gl_save_CPPFLAGS"
17011 rm -rf conftestd1a conftestd1b conftestd2
17012
17013 fi
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17015 $as_echo "$gl_cv_have_include_next" >&6; }
17016 PRAGMA_SYSTEM_HEADER=
17017 if test $gl_cv_have_include_next = yes; then
17018 INCLUDE_NEXT=include_next
17019 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17020 if test -n "$GCC"; then
17021 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17022 fi
17023 else
17024 if test $gl_cv_have_include_next = buggy; then
17025 INCLUDE_NEXT=include
17026 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17027 else
17028 INCLUDE_NEXT=include
17029 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17030 fi
17031 fi
17032
17033
17034
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17036 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17037 if test "${gl_cv_pragma_columns+set}" = set; then :
17038 $as_echo_n "(cached) " >&6
17039 else
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17042
17043 #ifdef __TANDEM
17044 choke me
17045 #endif
17046
17047 _ACEOF
17048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17049 $EGREP "choke me" >/dev/null 2>&1; then :
17050 gl_cv_pragma_columns=yes
17051 else
17052 gl_cv_pragma_columns=no
17053 fi
17054 rm -f conftest*
17055
17056
17057 fi
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17059 $as_echo "$gl_cv_pragma_columns" >&6; }
17060 if test $gl_cv_pragma_columns = yes; then
17061 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17062 else
17063 PRAGMA_COLUMNS=
17064 fi
17065
17066
17067 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17068 if test "x$ac_cv_type_mode_t" = x""yes; then :
17069
17070 else
17071
17072 cat >>confdefs.h <<_ACEOF
17073 #define mode_t int
17074 _ACEOF
17075
17076 fi
17077
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17079 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17080 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17081 $as_echo_n "(cached) " >&6
17082 else
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17085
17086 #include <sys/types.h>
17087 #include <sys/stat.h>
17088 int
17089 main ()
17090 {
17091 struct stat s; s.st_dm_mode;
17092 ;
17093 return 0;
17094 }
17095 _ACEOF
17096 if ac_fn_c_try_compile "$LINENO"; then :
17097 ac_cv_struct_st_dm_mode=yes
17098 else
17099 ac_cv_struct_st_dm_mode=no
17100 fi
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 fi
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17104 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17105
17106 if test $ac_cv_struct_st_dm_mode = yes; then
17107
17108 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17109
17110 fi
17111
17112
17113 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17114 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17115 ac_have_decl=1
17116 else
17117 ac_have_decl=0
17118 fi
17119
17120 cat >>confdefs.h <<_ACEOF
17121 #define HAVE_DECL_STRMODE $ac_have_decl
17122 _ACEOF
17123
17124
17125
17126
17127
17128
17129 GNULIB__EXIT=0;
17130 GNULIB_ATOLL=0;
17131 GNULIB_CALLOC_POSIX=0;
17132 GNULIB_CANONICALIZE_FILE_NAME=0;
17133 GNULIB_GETLOADAVG=0;
17134 GNULIB_GETSUBOPT=0;
17135 GNULIB_GRANTPT=0;
17136 GNULIB_MALLOC_POSIX=0;
17137 GNULIB_MBTOWC=0;
17138 GNULIB_MKDTEMP=0;
17139 GNULIB_MKOSTEMP=0;
17140 GNULIB_MKOSTEMPS=0;
17141 GNULIB_MKSTEMP=0;
17142 GNULIB_MKSTEMPS=0;
17143 GNULIB_POSIX_OPENPT=0;
17144 GNULIB_PTSNAME=0;
17145 GNULIB_PTSNAME_R=0;
17146 GNULIB_PUTENV=0;
17147 GNULIB_RANDOM=0;
17148 GNULIB_RANDOM_R=0;
17149 GNULIB_REALLOC_POSIX=0;
17150 GNULIB_REALPATH=0;
17151 GNULIB_RPMATCH=0;
17152 GNULIB_SETENV=0;
17153 GNULIB_STRTOD=0;
17154 GNULIB_STRTOLL=0;
17155 GNULIB_STRTOULL=0;
17156 GNULIB_SYSTEM_POSIX=0;
17157 GNULIB_UNLOCKPT=0;
17158 GNULIB_UNSETENV=0;
17159 GNULIB_WCTOMB=0;
17160 HAVE__EXIT=1;
17161 HAVE_ATOLL=1;
17162 HAVE_CANONICALIZE_FILE_NAME=1;
17163 HAVE_DECL_GETLOADAVG=1;
17164 HAVE_GETSUBOPT=1;
17165 HAVE_GRANTPT=1;
17166 HAVE_MKDTEMP=1;
17167 HAVE_MKOSTEMP=1;
17168 HAVE_MKOSTEMPS=1;
17169 HAVE_MKSTEMP=1;
17170 HAVE_MKSTEMPS=1;
17171 HAVE_POSIX_OPENPT=1;
17172 HAVE_PTSNAME=1;
17173 HAVE_PTSNAME_R=1;
17174 HAVE_RANDOM=1;
17175 HAVE_RANDOM_H=1;
17176 HAVE_RANDOM_R=1;
17177 HAVE_REALPATH=1;
17178 HAVE_RPMATCH=1;
17179 HAVE_SETENV=1;
17180 HAVE_DECL_SETENV=1;
17181 HAVE_STRTOD=1;
17182 HAVE_STRTOLL=1;
17183 HAVE_STRTOULL=1;
17184 HAVE_STRUCT_RANDOM_DATA=1;
17185 HAVE_SYS_LOADAVG_H=0;
17186 HAVE_UNLOCKPT=1;
17187 HAVE_DECL_UNSETENV=1;
17188 REPLACE_CALLOC=0;
17189 REPLACE_CANONICALIZE_FILE_NAME=0;
17190 REPLACE_MALLOC=0;
17191 REPLACE_MBTOWC=0;
17192 REPLACE_MKSTEMP=0;
17193 REPLACE_PTSNAME=0;
17194 REPLACE_PTSNAME_R=0;
17195 REPLACE_PUTENV=0;
17196 REPLACE_RANDOM_R=0;
17197 REPLACE_REALLOC=0;
17198 REPLACE_REALPATH=0;
17199 REPLACE_SETENV=0;
17200 REPLACE_STRTOD=0;
17201 REPLACE_UNSETENV=0;
17202 REPLACE_WCTOMB=0;
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219 if test $gl_cv_have_include_next = yes; then
17220 gl_cv_next_getopt_h='<'getopt.h'>'
17221 else
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17223 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17224 if test "${gl_cv_next_getopt_h+set}" = set; then :
17225 $as_echo_n "(cached) " >&6
17226 else
17227
17228 if test $ac_cv_header_getopt_h = yes; then
17229
17230
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17233 #include <getopt.h>
17234
17235 _ACEOF
17236 case "$host_os" in
17237 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17238 *) gl_absname_cpp="$ac_cpp" ;;
17239 esac
17240
17241 case "$host_os" in
17242 mingw*)
17243 gl_dirsep_regex='[/\\]'
17244 ;;
17245 *)
17246 gl_dirsep_regex='\/'
17247 ;;
17248 esac
17249 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17250
17251 gl_header_literal_regex=`echo 'getopt.h' \
17252 | sed -e "$gl_make_literal_regex_sed"`
17253 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17254 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17255 s|^/[^/]|//&|
17256 p
17257 q
17258 }'
17259 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17260 sed -n "$gl_absolute_header_sed"`'"'
17261 else
17262 gl_cv_next_getopt_h='<'getopt.h'>'
17263 fi
17264
17265
17266 fi
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17268 $as_echo "$gl_cv_next_getopt_h" >&6; }
17269 fi
17270 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17271
17272 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17273 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17274 gl_next_as_first_directive='<'getopt.h'>'
17275 else
17276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17277 gl_next_as_first_directive=$gl_cv_next_getopt_h
17278 fi
17279 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17280
17281
17282
17283
17284 if test $ac_cv_header_getopt_h = yes; then
17285 HAVE_GETOPT_H=1
17286 else
17287 HAVE_GETOPT_H=0
17288 fi
17289
17290
17291 gl_replace_getopt=
17292
17293 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17294 for ac_header in getopt.h
17295 do :
17296 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17297 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17298 cat >>confdefs.h <<_ACEOF
17299 #define HAVE_GETOPT_H 1
17300 _ACEOF
17301
17302 else
17303 gl_replace_getopt=yes
17304 fi
17305
17306 done
17307
17308 fi
17309
17310 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17311 for ac_func in getopt_long_only
17312 do :
17313 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17314 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17315 cat >>confdefs.h <<_ACEOF
17316 #define HAVE_GETOPT_LONG_ONLY 1
17317 _ACEOF
17318
17319 else
17320 gl_replace_getopt=yes
17321 fi
17322 done
17323
17324 fi
17325
17326 if test -z "$gl_replace_getopt"; then
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17328 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17329 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17330 $as_echo_n "(cached) " >&6
17331 else
17332
17333 if test $cross_compiling = no; then
17334 if test "$cross_compiling" = yes; then :
17335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17337 as_fn_error "cannot run test program while cross compiling
17338 See \`config.log' for more details." "$LINENO" 5; }
17339 else
17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h. */
17342
17343 #include <unistd.h>
17344 #include <stdlib.h>
17345 #include <string.h>
17346
17347 int
17348 main ()
17349 {
17350 static char program[] = "program";
17351 static char a[] = "-a";
17352 static char foo[] = "foo";
17353 static char bar[] = "bar";
17354 char *argv[] = { program, a, foo, bar, NULL };
17355 int c;
17356
17357 c = getopt (4, argv, "ab");
17358 if (!(c == 'a'))
17359 return 1;
17360 c = getopt (4, argv, "ab");
17361 if (!(c == -1))
17362 return 2;
17363 if (!(optind == 2))
17364 return 3;
17365 return 0;
17366 }
17367
17368 _ACEOF
17369 if ac_fn_c_try_run "$LINENO"; then :
17370 gl_cv_func_getopt_posix=maybe
17371 else
17372 gl_cv_func_getopt_posix=no
17373 fi
17374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17375 conftest.$ac_objext conftest.beam conftest.$ac_ext
17376 fi
17377
17378 if test $gl_cv_func_getopt_posix = maybe; then
17379 if test "$cross_compiling" = yes; then :
17380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17382 as_fn_error "cannot run test program while cross compiling
17383 See \`config.log' for more details." "$LINENO" 5; }
17384 else
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387
17388 #include <unistd.h>
17389 #include <stdlib.h>
17390 #include <string.h>
17391
17392 int
17393 main ()
17394 {
17395 static char program[] = "program";
17396 static char donald[] = "donald";
17397 static char p[] = "-p";
17398 static char billy[] = "billy";
17399 static char duck[] = "duck";
17400 static char a[] = "-a";
17401 static char bar[] = "bar";
17402 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17403 int c;
17404
17405 c = getopt (7, argv, "+abp:q:");
17406 if (!(c == -1))
17407 return 4;
17408 if (!(strcmp (argv[0], "program") == 0))
17409 return 5;
17410 if (!(strcmp (argv[1], "donald") == 0))
17411 return 6;
17412 if (!(strcmp (argv[2], "-p") == 0))
17413 return 7;
17414 if (!(strcmp (argv[3], "billy") == 0))
17415 return 8;
17416 if (!(strcmp (argv[4], "duck") == 0))
17417 return 9;
17418 if (!(strcmp (argv[5], "-a") == 0))
17419 return 10;
17420 if (!(strcmp (argv[6], "bar") == 0))
17421 return 11;
17422 if (!(optind == 1))
17423 return 12;
17424 return 0;
17425 }
17426
17427 _ACEOF
17428 if ac_fn_c_try_run "$LINENO"; then :
17429 gl_cv_func_getopt_posix=maybe
17430 else
17431 gl_cv_func_getopt_posix=no
17432 fi
17433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17434 conftest.$ac_objext conftest.beam conftest.$ac_ext
17435 fi
17436
17437 fi
17438 if test $gl_cv_func_getopt_posix = maybe; then
17439 if test "$cross_compiling" = yes; then :
17440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17442 as_fn_error "cannot run test program while cross compiling
17443 See \`config.log' for more details." "$LINENO" 5; }
17444 else
17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17447
17448 #include <unistd.h>
17449 #include <stdlib.h>
17450 #include <string.h>
17451
17452 int
17453 main ()
17454 {
17455 static char program[] = "program";
17456 static char ab[] = "-ab";
17457 char *argv[3] = { program, ab, NULL };
17458 if (getopt (2, argv, "ab:") != 'a')
17459 return 13;
17460 if (getopt (2, argv, "ab:") != '?')
17461 return 14;
17462 if (optopt != 'b')
17463 return 15;
17464 if (optind != 2)
17465 return 16;
17466 return 0;
17467 }
17468
17469 _ACEOF
17470 if ac_fn_c_try_run "$LINENO"; then :
17471 gl_cv_func_getopt_posix=yes
17472 else
17473 gl_cv_func_getopt_posix=no
17474 fi
17475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17476 conftest.$ac_objext conftest.beam conftest.$ac_ext
17477 fi
17478
17479 fi
17480 else
17481 case "$host_os" in
17482 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17483 *) gl_cv_func_getopt_posix="guessing yes";;
17484 esac
17485 fi
17486
17487 fi
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17489 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17490 case "$gl_cv_func_getopt_posix" in
17491 *no) gl_replace_getopt=yes ;;
17492 esac
17493 fi
17494
17495 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17497 $as_echo_n "checking for working GNU getopt function... " >&6; }
17498 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17499 $as_echo_n "(cached) " >&6
17500 else
17501 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17502 # optstring is necessary for programs like m4 that have POSIX-mandated
17503 # semantics for supporting options interspersed with files.
17504 # Also, since getopt_long is a GNU extension, we require optind=0.
17505 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17506 # so take care to revert to the correct (non-)export state.
17507 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17508 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17509 xx) gl_had_POSIXLY_CORRECT=exported ;;
17510 x) gl_had_POSIXLY_CORRECT=yes ;;
17511 *) gl_had_POSIXLY_CORRECT= ;;
17512 esac
17513 POSIXLY_CORRECT=1
17514 export POSIXLY_CORRECT
17515 if test "$cross_compiling" = yes; then :
17516 gl_cv_func_getopt_gnu="guessing no"
17517
17518 else
17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17521 #include <getopt.h>
17522 #include <stddef.h>
17523 #include <string.h>
17524
17525 #include <stdlib.h>
17526 #if defined __MACH__ && defined __APPLE__
17527 /* Avoid a crash on Mac OS X. */
17528 #include <mach/mach.h>
17529 #include <mach/mach_error.h>
17530 #include <mach/thread_status.h>
17531 #include <mach/exception.h>
17532 #include <mach/task.h>
17533 #include <pthread.h>
17534 /* The exception port on which our thread listens. */
17535 static mach_port_t our_exception_port;
17536 /* The main function of the thread listening for exceptions of type
17537 EXC_BAD_ACCESS. */
17538 static void *
17539 mach_exception_thread (void *arg)
17540 {
17541 /* Buffer for a message to be received. */
17542 struct {
17543 mach_msg_header_t head;
17544 mach_msg_body_t msgh_body;
17545 char data[1024];
17546 } msg;
17547 mach_msg_return_t retval;
17548 /* Wait for a message on the exception port. */
17549 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17550 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17551 if (retval != MACH_MSG_SUCCESS)
17552 abort ();
17553 exit (1);
17554 }
17555 static void
17556 nocrash_init (void)
17557 {
17558 mach_port_t self = mach_task_self ();
17559 /* Allocate a port on which the thread shall listen for exceptions. */
17560 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17561 == KERN_SUCCESS) {
17562 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17563 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17564 MACH_MSG_TYPE_MAKE_SEND)
17565 == KERN_SUCCESS) {
17566 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17567 for us. */
17568 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17569 /* Create the thread listening on the exception port. */
17570 pthread_attr_t attr;
17571 pthread_t thread;
17572 if (pthread_attr_init (&attr) == 0
17573 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17574 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17575 pthread_attr_destroy (&attr);
17576 /* Replace the exception port info for these exceptions with our own.
17577 Note that we replace the exception port for the entire task, not only
17578 for a particular thread. This has the effect that when our exception
17579 port gets the message, the thread specific exception port has already
17580 been asked, and we don't need to bother about it.
17581 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17582 task_set_exception_ports (self, mask, our_exception_port,
17583 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17584 }
17585 }
17586 }
17587 }
17588 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17589 /* Avoid a crash on native Windows. */
17590 #define WIN32_LEAN_AND_MEAN
17591 #include <windows.h>
17592 #include <winerror.h>
17593 static LONG WINAPI
17594 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17595 {
17596 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17597 {
17598 case EXCEPTION_ACCESS_VIOLATION:
17599 case EXCEPTION_IN_PAGE_ERROR:
17600 case EXCEPTION_STACK_OVERFLOW:
17601 case EXCEPTION_GUARD_PAGE:
17602 case EXCEPTION_PRIV_INSTRUCTION:
17603 case EXCEPTION_ILLEGAL_INSTRUCTION:
17604 case EXCEPTION_DATATYPE_MISALIGNMENT:
17605 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17606 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17607 exit (1);
17608 }
17609 return EXCEPTION_CONTINUE_SEARCH;
17610 }
17611 static void
17612 nocrash_init (void)
17613 {
17614 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17615 }
17616 #else
17617 /* Avoid a crash on POSIX systems. */
17618 #include <signal.h>
17619 /* A POSIX signal handler. */
17620 static void
17621 exception_handler (int sig)
17622 {
17623 exit (1);
17624 }
17625 static void
17626 nocrash_init (void)
17627 {
17628 #ifdef SIGSEGV
17629 signal (SIGSEGV, exception_handler);
17630 #endif
17631 #ifdef SIGBUS
17632 signal (SIGBUS, exception_handler);
17633 #endif
17634 }
17635 #endif
17636
17637
17638 int
17639 main ()
17640 {
17641
17642 int result = 0;
17643
17644 nocrash_init();
17645
17646 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17647 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17648 OSF/1 5.1, Solaris 10. */
17649 {
17650 static char conftest[] = "conftest";
17651 static char plus[] = "-+";
17652 char *argv[3] = { conftest, plus, NULL };
17653 opterr = 0;
17654 if (getopt (2, argv, "+a") != '?')
17655 result |= 1;
17656 }
17657 /* This code succeeds on glibc 2.8, mingw,
17658 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17659 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17660 {
17661 static char program[] = "program";
17662 static char p[] = "-p";
17663 static char foo[] = "foo";
17664 static char bar[] = "bar";
17665 char *argv[] = { program, p, foo, bar, NULL };
17666
17667 optind = 1;
17668 if (getopt (4, argv, "p::") != 'p')
17669 result |= 2;
17670 else if (optarg != NULL)
17671 result |= 4;
17672 else if (getopt (4, argv, "p::") != -1)
17673 result |= 6;
17674 else if (optind != 2)
17675 result |= 8;
17676 }
17677 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17678 {
17679 static char program[] = "program";
17680 static char foo[] = "foo";
17681 static char p[] = "-p";
17682 char *argv[] = { program, foo, p, NULL };
17683 optind = 0;
17684 if (getopt (3, argv, "-p") != 1)
17685 result |= 16;
17686 else if (getopt (3, argv, "-p") != 'p')
17687 result |= 16;
17688 }
17689 /* This code fails on glibc 2.11. */
17690 {
17691 static char program[] = "program";
17692 static char b[] = "-b";
17693 static char a[] = "-a";
17694 char *argv[] = { program, b, a, NULL };
17695 optind = opterr = 0;
17696 if (getopt (3, argv, "+:a:b") != 'b')
17697 result |= 32;
17698 else if (getopt (3, argv, "+:a:b") != ':')
17699 result |= 32;
17700 }
17701 /* This code dumps core on glibc 2.14. */
17702 {
17703 static char program[] = "program";
17704 static char w[] = "-W";
17705 static char dummy[] = "dummy";
17706 char *argv[] = { program, w, dummy, NULL };
17707 optind = opterr = 1;
17708 if (getopt (3, argv, "W;") != 'W')
17709 result |= 64;
17710 }
17711 return result;
17712
17713 ;
17714 return 0;
17715 }
17716 _ACEOF
17717 if ac_fn_c_try_run "$LINENO"; then :
17718 gl_cv_func_getopt_gnu=yes
17719 else
17720 gl_cv_func_getopt_gnu=no
17721 fi
17722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17723 conftest.$ac_objext conftest.beam conftest.$ac_ext
17724 fi
17725
17726 case $gl_had_POSIXLY_CORRECT in
17727 exported) ;;
17728 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17729 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17730 esac
17731
17732 fi
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17734 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17735 if test "$gl_cv_func_getopt_gnu" != yes; then
17736 gl_replace_getopt=yes
17737 else
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17739 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17740 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17741 $as_echo_n "(cached) " >&6
17742 else
17743 if test "$cross_compiling" = yes; then :
17744 case "$host_os" in
17745 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17746 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17747 esac
17748
17749 else
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h. */
17752 #include <getopt.h>
17753 #include <stddef.h>
17754 #include <string.h>
17755
17756 int
17757 main ()
17758 {
17759 static const struct option long_options[] =
17760 {
17761 { "xtremely-",no_argument, NULL, 1003 },
17762 { "xtra", no_argument, NULL, 1001 },
17763 { "xtreme", no_argument, NULL, 1002 },
17764 { "xtremely", no_argument, NULL, 1003 },
17765 { NULL, 0, NULL, 0 }
17766 };
17767 /* This code fails on OpenBSD 5.0. */
17768 {
17769 static char program[] = "program";
17770 static char xtremel[] = "--xtremel";
17771 char *argv[] = { program, xtremel, NULL };
17772 int option_index;
17773 optind = 1; opterr = 0;
17774 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17775 return 1;
17776 }
17777 return 0;
17778
17779 ;
17780 return 0;
17781 }
17782 _ACEOF
17783 if ac_fn_c_try_run "$LINENO"; then :
17784 gl_cv_func_getopt_long_gnu=yes
17785 else
17786 gl_cv_func_getopt_long_gnu=no
17787 fi
17788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17789 conftest.$ac_objext conftest.beam conftest.$ac_ext
17790 fi
17791
17792
17793 fi
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17795 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17796 case "$gl_cv_func_getopt_long_gnu" in
17797 *yes) ;;
17798 *) gl_replace_getopt=yes ;;
17799 esac
17800 fi
17801 fi
17802
17803
17804
17805
17806
17807
17808 REPLACE_GETOPT=0
17809 if test -n "$gl_replace_getopt"; then
17810 REPLACE_GETOPT=1
17811 fi
17812
17813 if test $REPLACE_GETOPT = 1; then
17814
17815 GETOPT_H=getopt.h
17816
17817 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17818
17819
17820
17821 fi
17822
17823 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17824 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17825 ac_have_decl=1
17826 else
17827 ac_have_decl=0
17828 fi
17829
17830 cat >>confdefs.h <<_ACEOF
17831 #define HAVE_DECL_GETENV $ac_have_decl
17832 _ACEOF
17833
17834 :
17835
17836
17837
17838
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17840 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17841 if test "${ac_cv_c_restrict+set}" = set; then :
17842 $as_echo_n "(cached) " >&6
17843 else
17844 ac_cv_c_restrict=no
17845 # The order here caters to the fact that C++ does not require restrict.
17846 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17849 typedef int * int_ptr;
17850 int foo (int_ptr $ac_kw ip) {
17851 return ip[0];
17852 }
17853 int
17854 main ()
17855 {
17856 int s[1];
17857 int * $ac_kw t = s;
17858 t[0] = 0;
17859 return foo(t)
17860 ;
17861 return 0;
17862 }
17863 _ACEOF
17864 if ac_fn_c_try_compile "$LINENO"; then :
17865 ac_cv_c_restrict=$ac_kw
17866 fi
17867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17868 test "$ac_cv_c_restrict" != no && break
17869 done
17870
17871 fi
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17873 $as_echo "$ac_cv_c_restrict" >&6; }
17874
17875 case $ac_cv_c_restrict in
17876 restrict) ;;
17877 no) $as_echo "#define restrict /**/" >>confdefs.h
17878 ;;
17879 *) cat >>confdefs.h <<_ACEOF
17880 #define restrict $ac_cv_c_restrict
17881 _ACEOF
17882 ;;
17883 esac
17884
17885
17886 GNULIB_GETTIMEOFDAY=0;
17887 HAVE_GETTIMEOFDAY=1;
17888 HAVE_STRUCT_TIMEVAL=1;
17889 HAVE_SYS_TIME_H=1;
17890 REPLACE_GETTIMEOFDAY=0;
17891 REPLACE_STRUCT_TIMEVAL=0;
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908 if test $gl_cv_have_include_next = yes; then
17909 gl_cv_next_sys_time_h='<'sys/time.h'>'
17910 else
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17912 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17913 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17914 $as_echo_n "(cached) " >&6
17915 else
17916
17917 if test $ac_cv_header_sys_time_h = yes; then
17918
17919
17920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921 /* end confdefs.h. */
17922 #include <sys/time.h>
17923
17924 _ACEOF
17925 case "$host_os" in
17926 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17927 *) gl_absname_cpp="$ac_cpp" ;;
17928 esac
17929
17930 case "$host_os" in
17931 mingw*)
17932 gl_dirsep_regex='[/\\]'
17933 ;;
17934 *)
17935 gl_dirsep_regex='\/'
17936 ;;
17937 esac
17938 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17939
17940 gl_header_literal_regex=`echo 'sys/time.h' \
17941 | sed -e "$gl_make_literal_regex_sed"`
17942 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17943 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17944 s|^/[^/]|//&|
17945 p
17946 q
17947 }'
17948 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17949 sed -n "$gl_absolute_header_sed"`'"'
17950 else
17951 gl_cv_next_sys_time_h='<'sys/time.h'>'
17952 fi
17953
17954
17955 fi
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17957 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17958 fi
17959 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17960
17961 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17962 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17963 gl_next_as_first_directive='<'sys/time.h'>'
17964 else
17965 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17966 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17967 fi
17968 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17969
17970
17971
17972
17973
17974 if test $ac_cv_header_sys_time_h != yes; then
17975 HAVE_SYS_TIME_H=0
17976 fi
17977
17978
17979
17980
17981
17982 if test $ac_cv_header_sys_socket_h != yes; then
17983 for ac_header in winsock2.h
17984 do :
17985 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17986 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17987 cat >>confdefs.h <<_ACEOF
17988 #define HAVE_WINSOCK2_H 1
17989 _ACEOF
17990
17991 fi
17992
17993 done
17994
17995 fi
17996 if test "$ac_cv_header_winsock2_h" = yes; then
17997 HAVE_WINSOCK2_H=1
17998 UNISTD_H_HAVE_WINSOCK2_H=1
17999 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18000 else
18001 HAVE_WINSOCK2_H=0
18002 fi
18003
18004
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18006 $as_echo_n "checking for struct timeval... " >&6; }
18007 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18008 $as_echo_n "(cached) " >&6
18009 else
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18012 #if HAVE_SYS_TIME_H
18013 #include <sys/time.h>
18014 #endif
18015 #include <time.h>
18016 #if HAVE_WINSOCK2_H
18017 # include <winsock2.h>
18018 #endif
18019
18020 int
18021 main ()
18022 {
18023 static struct timeval x; x.tv_sec = x.tv_usec;
18024 ;
18025 return 0;
18026 }
18027 _ACEOF
18028 if ac_fn_c_try_compile "$LINENO"; then :
18029 gl_cv_sys_struct_timeval=yes
18030 else
18031 gl_cv_sys_struct_timeval=no
18032 fi
18033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034
18035 fi
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18037 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18038 if test $gl_cv_sys_struct_timeval != yes; then
18039 HAVE_STRUCT_TIMEVAL=0
18040 else
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18042 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18043 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18044 $as_echo_n "(cached) " >&6
18045 else
18046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h. */
18048 #if HAVE_SYS_TIME_H
18049 #include <sys/time.h>
18050 #endif
18051 #include <time.h>
18052 #if HAVE_WINSOCK2_H
18053 # include <winsock2.h>
18054 #endif
18055
18056 int
18057 main ()
18058 {
18059 static struct timeval x;
18060 typedef int verify_tv_sec_type[
18061 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18062 ];
18063
18064 ;
18065 return 0;
18066 }
18067 _ACEOF
18068 if ac_fn_c_try_compile "$LINENO"; then :
18069 gl_cv_sys_struct_timeval_tv_sec=yes
18070 else
18071 gl_cv_sys_struct_timeval_tv_sec=no
18072 fi
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074
18075 fi
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18077 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18078 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18079 REPLACE_STRUCT_TIMEVAL=1
18080 fi
18081 fi
18082
18083
18084
18085
18086
18087
18088
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18090 $as_echo_n "checking for unsigned long long int... " >&6; }
18091 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18092 $as_echo_n "(cached) " >&6
18093 else
18094 ac_cv_type_unsigned_long_long_int=yes
18095 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18098
18099 /* For now, do not test the preprocessor; as of 2007 there are too many
18100 implementations with broken preprocessors. Perhaps this can
18101 be revisited in 2012. In the meantime, code should not expect
18102 #if to work with literals wider than 32 bits. */
18103 /* Test literals. */
18104 long long int ll = 9223372036854775807ll;
18105 long long int nll = -9223372036854775807LL;
18106 unsigned long long int ull = 18446744073709551615ULL;
18107 /* Test constant expressions. */
18108 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18109 ? 1 : -1)];
18110 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18111 ? 1 : -1)];
18112 int i = 63;
18113 int
18114 main ()
18115 {
18116 /* Test availability of runtime routines for shift and division. */
18117 long long int llmax = 9223372036854775807ll;
18118 unsigned long long int ullmax = 18446744073709551615ull;
18119 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18120 | (llmax / ll) | (llmax % ll)
18121 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18122 | (ullmax / ull) | (ullmax % ull));
18123 ;
18124 return 0;
18125 }
18126
18127 _ACEOF
18128 if ac_fn_c_try_link "$LINENO"; then :
18129
18130 else
18131 ac_cv_type_unsigned_long_long_int=no
18132 fi
18133 rm -f core conftest.err conftest.$ac_objext \
18134 conftest$ac_exeext conftest.$ac_ext
18135 fi
18136 fi
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18138 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18139 if test $ac_cv_type_unsigned_long_long_int = yes; then
18140
18141 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18142
18143 fi
18144
18145
18146
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18148 $as_echo_n "checking for long long int... " >&6; }
18149 if test "${ac_cv_type_long_long_int+set}" = set; then :
18150 $as_echo_n "(cached) " >&6
18151 else
18152 ac_cv_type_long_long_int=yes
18153 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18154 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18155 if test $ac_cv_type_long_long_int = yes; then
18156 if test "$cross_compiling" = yes; then :
18157 :
18158 else
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18161 #include <limits.h>
18162 #ifndef LLONG_MAX
18163 # define HALF \
18164 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18165 # define LLONG_MAX (HALF - 1 + HALF)
18166 #endif
18167 int
18168 main ()
18169 {
18170 long long int n = 1;
18171 int i;
18172 for (i = 0; ; i++)
18173 {
18174 long long int m = n << i;
18175 if (m >> i != n)
18176 return 1;
18177 if (LLONG_MAX / 2 < m)
18178 break;
18179 }
18180 return 0;
18181 ;
18182 return 0;
18183 }
18184 _ACEOF
18185 if ac_fn_c_try_run "$LINENO"; then :
18186
18187 else
18188 ac_cv_type_long_long_int=no
18189 fi
18190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18191 conftest.$ac_objext conftest.beam conftest.$ac_ext
18192 fi
18193
18194 fi
18195 fi
18196 fi
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18198 $as_echo "$ac_cv_type_long_long_int" >&6; }
18199 if test $ac_cv_type_long_long_int = yes; then
18200
18201 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18202
18203 fi
18204
18205
18206
18207
18208
18209
18210 gl_cv_c_multiarch=no
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18213 #ifndef __APPLE_CC__
18214 not a universal capable compiler
18215 #endif
18216 typedef int dummy;
18217
18218 _ACEOF
18219 if ac_fn_c_try_compile "$LINENO"; then :
18220
18221 arch=
18222 prev=
18223 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18224 if test -n "$prev"; then
18225 case $word in
18226 i?86 | x86_64 | ppc | ppc64)
18227 if test -z "$arch" || test "$arch" = "$word"; then
18228 arch="$word"
18229 else
18230 gl_cv_c_multiarch=yes
18231 fi
18232 ;;
18233 esac
18234 prev=
18235 else
18236 if test "x$word" = "x-arch"; then
18237 prev=arch
18238 fi
18239 fi
18240 done
18241
18242 fi
18243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18244 if test $gl_cv_c_multiarch = yes; then
18245 APPLE_UNIVERSAL_BUILD=1
18246 else
18247 APPLE_UNIVERSAL_BUILD=0
18248 fi
18249
18250
18251
18252
18253
18254 if test $ac_cv_type_long_long_int = yes; then
18255 HAVE_LONG_LONG_INT=1
18256 else
18257 HAVE_LONG_LONG_INT=0
18258 fi
18259
18260
18261 if test $ac_cv_type_unsigned_long_long_int = yes; then
18262 HAVE_UNSIGNED_LONG_LONG_INT=1
18263 else
18264 HAVE_UNSIGNED_LONG_LONG_INT=0
18265 fi
18266
18267
18268
18269 if test $ac_cv_header_wchar_h = yes; then
18270 HAVE_WCHAR_H=1
18271 else
18272 HAVE_WCHAR_H=0
18273 fi
18274
18275
18276 if test $ac_cv_header_inttypes_h = yes; then
18277 HAVE_INTTYPES_H=1
18278 else
18279 HAVE_INTTYPES_H=0
18280 fi
18281
18282
18283 if test $ac_cv_header_sys_types_h = yes; then
18284 HAVE_SYS_TYPES_H=1
18285 else
18286 HAVE_SYS_TYPES_H=0
18287 fi
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299 if test $gl_cv_have_include_next = yes; then
18300 gl_cv_next_stdint_h='<'stdint.h'>'
18301 else
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18303 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18304 if test "${gl_cv_next_stdint_h+set}" = set; then :
18305 $as_echo_n "(cached) " >&6
18306 else
18307
18308 if test $ac_cv_header_stdint_h = yes; then
18309
18310
18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18313 #include <stdint.h>
18314
18315 _ACEOF
18316 case "$host_os" in
18317 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18318 *) gl_absname_cpp="$ac_cpp" ;;
18319 esac
18320
18321 case "$host_os" in
18322 mingw*)
18323 gl_dirsep_regex='[/\\]'
18324 ;;
18325 *)
18326 gl_dirsep_regex='\/'
18327 ;;
18328 esac
18329 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18330
18331 gl_header_literal_regex=`echo 'stdint.h' \
18332 | sed -e "$gl_make_literal_regex_sed"`
18333 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18334 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18335 s|^/[^/]|//&|
18336 p
18337 q
18338 }'
18339 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18340 sed -n "$gl_absolute_header_sed"`'"'
18341 else
18342 gl_cv_next_stdint_h='<'stdint.h'>'
18343 fi
18344
18345
18346 fi
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18348 $as_echo "$gl_cv_next_stdint_h" >&6; }
18349 fi
18350 NEXT_STDINT_H=$gl_cv_next_stdint_h
18351
18352 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18353 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18354 gl_next_as_first_directive='<'stdint.h'>'
18355 else
18356 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18357 gl_next_as_first_directive=$gl_cv_next_stdint_h
18358 fi
18359 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18360
18361
18362
18363
18364 if test $ac_cv_header_stdint_h = yes; then
18365 HAVE_STDINT_H=1
18366 else
18367 HAVE_STDINT_H=0
18368 fi
18369
18370
18371 if test $ac_cv_header_stdint_h = yes; then
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18373 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18374 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18375 $as_echo_n "(cached) " >&6
18376 else
18377 gl_cv_header_working_stdint_h=no
18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18380
18381
18382 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18383 #include <stdint.h>
18384 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18385 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18386 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18387 #endif
18388
18389
18390 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18391 included before <wchar.h>. */
18392 #include <stddef.h>
18393 #include <signal.h>
18394 #if HAVE_WCHAR_H
18395 # include <stdio.h>
18396 # include <time.h>
18397 # include <wchar.h>
18398 #endif
18399
18400
18401 #ifdef INT8_MAX
18402 int8_t a1 = INT8_MAX;
18403 int8_t a1min = INT8_MIN;
18404 #endif
18405 #ifdef INT16_MAX
18406 int16_t a2 = INT16_MAX;
18407 int16_t a2min = INT16_MIN;
18408 #endif
18409 #ifdef INT32_MAX
18410 int32_t a3 = INT32_MAX;
18411 int32_t a3min = INT32_MIN;
18412 #endif
18413 #ifdef INT64_MAX
18414 int64_t a4 = INT64_MAX;
18415 int64_t a4min = INT64_MIN;
18416 #endif
18417 #ifdef UINT8_MAX
18418 uint8_t b1 = UINT8_MAX;
18419 #else
18420 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18421 #endif
18422 #ifdef UINT16_MAX
18423 uint16_t b2 = UINT16_MAX;
18424 #endif
18425 #ifdef UINT32_MAX
18426 uint32_t b3 = UINT32_MAX;
18427 #endif
18428 #ifdef UINT64_MAX
18429 uint64_t b4 = UINT64_MAX;
18430 #endif
18431 int_least8_t c1 = INT8_C (0x7f);
18432 int_least8_t c1max = INT_LEAST8_MAX;
18433 int_least8_t c1min = INT_LEAST8_MIN;
18434 int_least16_t c2 = INT16_C (0x7fff);
18435 int_least16_t c2max = INT_LEAST16_MAX;
18436 int_least16_t c2min = INT_LEAST16_MIN;
18437 int_least32_t c3 = INT32_C (0x7fffffff);
18438 int_least32_t c3max = INT_LEAST32_MAX;
18439 int_least32_t c3min = INT_LEAST32_MIN;
18440 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18441 int_least64_t c4max = INT_LEAST64_MAX;
18442 int_least64_t c4min = INT_LEAST64_MIN;
18443 uint_least8_t d1 = UINT8_C (0xff);
18444 uint_least8_t d1max = UINT_LEAST8_MAX;
18445 uint_least16_t d2 = UINT16_C (0xffff);
18446 uint_least16_t d2max = UINT_LEAST16_MAX;
18447 uint_least32_t d3 = UINT32_C (0xffffffff);
18448 uint_least32_t d3max = UINT_LEAST32_MAX;
18449 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18450 uint_least64_t d4max = UINT_LEAST64_MAX;
18451 int_fast8_t e1 = INT_FAST8_MAX;
18452 int_fast8_t e1min = INT_FAST8_MIN;
18453 int_fast16_t e2 = INT_FAST16_MAX;
18454 int_fast16_t e2min = INT_FAST16_MIN;
18455 int_fast32_t e3 = INT_FAST32_MAX;
18456 int_fast32_t e3min = INT_FAST32_MIN;
18457 int_fast64_t e4 = INT_FAST64_MAX;
18458 int_fast64_t e4min = INT_FAST64_MIN;
18459 uint_fast8_t f1 = UINT_FAST8_MAX;
18460 uint_fast16_t f2 = UINT_FAST16_MAX;
18461 uint_fast32_t f3 = UINT_FAST32_MAX;
18462 uint_fast64_t f4 = UINT_FAST64_MAX;
18463 #ifdef INTPTR_MAX
18464 intptr_t g = INTPTR_MAX;
18465 intptr_t gmin = INTPTR_MIN;
18466 #endif
18467 #ifdef UINTPTR_MAX
18468 uintptr_t h = UINTPTR_MAX;
18469 #endif
18470 intmax_t i = INTMAX_MAX;
18471 uintmax_t j = UINTMAX_MAX;
18472
18473 #include <limits.h> /* for CHAR_BIT */
18474 #define TYPE_MINIMUM(t) \
18475 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18476 #define TYPE_MAXIMUM(t) \
18477 ((t) ((t) 0 < (t) -1 \
18478 ? (t) -1 \
18479 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18480 struct s {
18481 int check_PTRDIFF:
18482 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18483 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18484 ? 1 : -1;
18485 /* Detect bug in FreeBSD 6.0 / ia64. */
18486 int check_SIG_ATOMIC:
18487 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18488 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18489 ? 1 : -1;
18490 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18491 int check_WCHAR:
18492 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18493 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18494 ? 1 : -1;
18495 /* Detect bug in mingw. */
18496 int check_WINT:
18497 WINT_MIN == TYPE_MINIMUM (wint_t)
18498 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18499 ? 1 : -1;
18500
18501 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18502 int check_UINT8_C:
18503 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18504 int check_UINT16_C:
18505 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18506
18507 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18508 #ifdef UINT8_MAX
18509 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18510 #endif
18511 #ifdef UINT16_MAX
18512 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18513 #endif
18514 #ifdef UINT32_MAX
18515 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18516 #endif
18517 #ifdef UINT64_MAX
18518 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18519 #endif
18520 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18521 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18522 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18523 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18524 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18525 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18526 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18527 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18528 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18529 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18530 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18531 };
18532
18533 int
18534 main ()
18535 {
18536
18537 ;
18538 return 0;
18539 }
18540 _ACEOF
18541 if ac_fn_c_try_compile "$LINENO"; then :
18542 if test "$cross_compiling" = yes; then :
18543 gl_cv_header_working_stdint_h=yes
18544
18545 else
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h. */
18548
18549
18550 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18551 #include <stdint.h>
18552
18553
18554 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18555 included before <wchar.h>. */
18556 #include <stddef.h>
18557 #include <signal.h>
18558 #if HAVE_WCHAR_H
18559 # include <stdio.h>
18560 # include <time.h>
18561 # include <wchar.h>
18562 #endif
18563
18564
18565 #include <stdio.h>
18566 #include <string.h>
18567 #define MVAL(macro) MVAL1(macro)
18568 #define MVAL1(expression) #expression
18569 static const char *macro_values[] =
18570 {
18571 #ifdef INT8_MAX
18572 MVAL (INT8_MAX),
18573 #endif
18574 #ifdef INT16_MAX
18575 MVAL (INT16_MAX),
18576 #endif
18577 #ifdef INT32_MAX
18578 MVAL (INT32_MAX),
18579 #endif
18580 #ifdef INT64_MAX
18581 MVAL (INT64_MAX),
18582 #endif
18583 #ifdef UINT8_MAX
18584 MVAL (UINT8_MAX),
18585 #endif
18586 #ifdef UINT16_MAX
18587 MVAL (UINT16_MAX),
18588 #endif
18589 #ifdef UINT32_MAX
18590 MVAL (UINT32_MAX),
18591 #endif
18592 #ifdef UINT64_MAX
18593 MVAL (UINT64_MAX),
18594 #endif
18595 NULL
18596 };
18597
18598 int
18599 main ()
18600 {
18601
18602 const char **mv;
18603 for (mv = macro_values; *mv != NULL; mv++)
18604 {
18605 const char *value = *mv;
18606 /* Test whether it looks like a cast expression. */
18607 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18608 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18609 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18610 || strncmp (value, "((int)"/*)*/, 6) == 0
18611 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18612 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18613 return mv - macro_values + 1;
18614 }
18615 return 0;
18616
18617 ;
18618 return 0;
18619 }
18620 _ACEOF
18621 if ac_fn_c_try_run "$LINENO"; then :
18622 gl_cv_header_working_stdint_h=yes
18623 fi
18624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18625 conftest.$ac_objext conftest.beam conftest.$ac_ext
18626 fi
18627
18628
18629 fi
18630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18631
18632 fi
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18634 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18635 fi
18636 if test "$gl_cv_header_working_stdint_h" = yes; then
18637 STDINT_H=
18638 else
18639 for ac_header in sys/inttypes.h sys/bitypes.h
18640 do :
18641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18642 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18643 eval as_val=\$$as_ac_Header
18644 if test "x$as_val" = x""yes; then :
18645 cat >>confdefs.h <<_ACEOF
18646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18647 _ACEOF
18648
18649 fi
18650
18651 done
18652
18653 if test $ac_cv_header_sys_inttypes_h = yes; then
18654 HAVE_SYS_INTTYPES_H=1
18655 else
18656 HAVE_SYS_INTTYPES_H=0
18657 fi
18658
18659 if test $ac_cv_header_sys_bitypes_h = yes; then
18660 HAVE_SYS_BITYPES_H=1
18661 else
18662 HAVE_SYS_BITYPES_H=0
18663 fi
18664
18665
18666
18667
18668 if test $APPLE_UNIVERSAL_BUILD = 0; then
18669
18670
18671 for gltype in ptrdiff_t size_t ; do
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18673 $as_echo_n "checking for bit size of $gltype... " >&6; }
18674 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18675 $as_echo_n "(cached) " >&6
18676 else
18677 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18678 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18679 included before <wchar.h>. */
18680 #include <stddef.h>
18681 #include <signal.h>
18682 #if HAVE_WCHAR_H
18683 # include <stdio.h>
18684 # include <time.h>
18685 # include <wchar.h>
18686 #endif
18687
18688 #include <limits.h>"; then :
18689
18690 else
18691 result=unknown
18692 fi
18693
18694 eval gl_cv_bitsizeof_${gltype}=\$result
18695
18696 fi
18697 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18699 $as_echo "$ac_res" >&6; }
18700 eval result=\$gl_cv_bitsizeof_${gltype}
18701 if test $result = unknown; then
18702 result=0
18703 fi
18704 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18705 cat >>confdefs.h <<_ACEOF
18706 #define BITSIZEOF_${GLTYPE} $result
18707 _ACEOF
18708
18709 eval BITSIZEOF_${GLTYPE}=\$result
18710 done
18711
18712
18713 fi
18714
18715
18716 for gltype in sig_atomic_t wchar_t wint_t ; do
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18718 $as_echo_n "checking for bit size of $gltype... " >&6; }
18719 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18720 $as_echo_n "(cached) " >&6
18721 else
18722 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18723 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18724 included before <wchar.h>. */
18725 #include <stddef.h>
18726 #include <signal.h>
18727 #if HAVE_WCHAR_H
18728 # include <stdio.h>
18729 # include <time.h>
18730 # include <wchar.h>
18731 #endif
18732
18733 #include <limits.h>"; then :
18734
18735 else
18736 result=unknown
18737 fi
18738
18739 eval gl_cv_bitsizeof_${gltype}=\$result
18740
18741 fi
18742 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18744 $as_echo "$ac_res" >&6; }
18745 eval result=\$gl_cv_bitsizeof_${gltype}
18746 if test $result = unknown; then
18747 result=0
18748 fi
18749 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18750 cat >>confdefs.h <<_ACEOF
18751 #define BITSIZEOF_${GLTYPE} $result
18752 _ACEOF
18753
18754 eval BITSIZEOF_${GLTYPE}=\$result
18755 done
18756
18757
18758
18759
18760 for gltype in sig_atomic_t wchar_t wint_t ; do
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18762 $as_echo_n "checking whether $gltype is signed... " >&6; }
18763 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18764 $as_echo_n "(cached) " >&6
18765 else
18766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18768
18769 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18770 included before <wchar.h>. */
18771 #include <stddef.h>
18772 #include <signal.h>
18773 #if HAVE_WCHAR_H
18774 # include <stdio.h>
18775 # include <time.h>
18776 # include <wchar.h>
18777 #endif
18778
18779 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18780 int
18781 main ()
18782 {
18783
18784 ;
18785 return 0;
18786 }
18787 _ACEOF
18788 if ac_fn_c_try_compile "$LINENO"; then :
18789 result=yes
18790 else
18791 result=no
18792 fi
18793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18794 eval gl_cv_type_${gltype}_signed=\$result
18795
18796 fi
18797 eval ac_res=\$gl_cv_type_${gltype}_signed
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18799 $as_echo "$ac_res" >&6; }
18800 eval result=\$gl_cv_type_${gltype}_signed
18801 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18802 if test "$result" = yes; then
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_SIGNED_${GLTYPE} 1
18805 _ACEOF
18806
18807 eval HAVE_SIGNED_${GLTYPE}=1
18808 else
18809 eval HAVE_SIGNED_${GLTYPE}=0
18810 fi
18811 done
18812
18813
18814 gl_cv_type_ptrdiff_t_signed=yes
18815 gl_cv_type_size_t_signed=no
18816 if test $APPLE_UNIVERSAL_BUILD = 0; then
18817
18818
18819 for gltype in ptrdiff_t size_t ; do
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18821 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18822 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18823 $as_echo_n "(cached) " >&6
18824 else
18825 eval gl_cv_type_${gltype}_suffix=no
18826 eval result=\$gl_cv_type_${gltype}_signed
18827 if test "$result" = yes; then
18828 glsufu=
18829 else
18830 glsufu=u
18831 fi
18832 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18833 case $glsuf in
18834 '') gltype1='int';;
18835 l) gltype1='long int';;
18836 ll) gltype1='long long int';;
18837 i64) gltype1='__int64';;
18838 u) gltype1='unsigned int';;
18839 ul) gltype1='unsigned long int';;
18840 ull) gltype1='unsigned long long int';;
18841 ui64)gltype1='unsigned __int64';;
18842 esac
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18845
18846 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18847 included before <wchar.h>. */
18848 #include <stddef.h>
18849 #include <signal.h>
18850 #if HAVE_WCHAR_H
18851 # include <stdio.h>
18852 # include <time.h>
18853 # include <wchar.h>
18854 #endif
18855
18856 extern $gltype foo;
18857 extern $gltype1 foo;
18858 int
18859 main ()
18860 {
18861
18862 ;
18863 return 0;
18864 }
18865 _ACEOF
18866 if ac_fn_c_try_compile "$LINENO"; then :
18867 eval gl_cv_type_${gltype}_suffix=\$glsuf
18868 fi
18869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18870 eval result=\$gl_cv_type_${gltype}_suffix
18871 test "$result" != no && break
18872 done
18873 fi
18874 eval ac_res=\$gl_cv_type_${gltype}_suffix
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18876 $as_echo "$ac_res" >&6; }
18877 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18878 eval result=\$gl_cv_type_${gltype}_suffix
18879 test "$result" = no && result=
18880 eval ${GLTYPE}_SUFFIX=\$result
18881 cat >>confdefs.h <<_ACEOF
18882 #define ${GLTYPE}_SUFFIX $result
18883 _ACEOF
18884
18885 done
18886
18887
18888 fi
18889
18890
18891 for gltype in sig_atomic_t wchar_t wint_t ; do
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18893 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18894 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18895 $as_echo_n "(cached) " >&6
18896 else
18897 eval gl_cv_type_${gltype}_suffix=no
18898 eval result=\$gl_cv_type_${gltype}_signed
18899 if test "$result" = yes; then
18900 glsufu=
18901 else
18902 glsufu=u
18903 fi
18904 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18905 case $glsuf in
18906 '') gltype1='int';;
18907 l) gltype1='long int';;
18908 ll) gltype1='long long int';;
18909 i64) gltype1='__int64';;
18910 u) gltype1='unsigned int';;
18911 ul) gltype1='unsigned long int';;
18912 ull) gltype1='unsigned long long int';;
18913 ui64)gltype1='unsigned __int64';;
18914 esac
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18917
18918 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18919 included before <wchar.h>. */
18920 #include <stddef.h>
18921 #include <signal.h>
18922 #if HAVE_WCHAR_H
18923 # include <stdio.h>
18924 # include <time.h>
18925 # include <wchar.h>
18926 #endif
18927
18928 extern $gltype foo;
18929 extern $gltype1 foo;
18930 int
18931 main ()
18932 {
18933
18934 ;
18935 return 0;
18936 }
18937 _ACEOF
18938 if ac_fn_c_try_compile "$LINENO"; then :
18939 eval gl_cv_type_${gltype}_suffix=\$glsuf
18940 fi
18941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18942 eval result=\$gl_cv_type_${gltype}_suffix
18943 test "$result" != no && break
18944 done
18945 fi
18946 eval ac_res=\$gl_cv_type_${gltype}_suffix
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18948 $as_echo "$ac_res" >&6; }
18949 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18950 eval result=\$gl_cv_type_${gltype}_suffix
18951 test "$result" = no && result=
18952 eval ${GLTYPE}_SUFFIX=\$result
18953 cat >>confdefs.h <<_ACEOF
18954 #define ${GLTYPE}_SUFFIX $result
18955 _ACEOF
18956
18957 done
18958
18959
18960
18961 if test $BITSIZEOF_WINT_T -lt 32; then
18962 BITSIZEOF_WINT_T=32
18963 fi
18964
18965 STDINT_H=stdint.h
18966 fi
18967
18968 if test -n "$STDINT_H"; then
18969 GL_GENERATE_STDINT_H_TRUE=
18970 GL_GENERATE_STDINT_H_FALSE='#'
18971 else
18972 GL_GENERATE_STDINT_H_TRUE='#'
18973 GL_GENERATE_STDINT_H_FALSE=
18974 fi
18975
18976
18977
18978
18979
18980 GNULIB_IMAXABS=0;
18981 GNULIB_IMAXDIV=0;
18982 GNULIB_STRTOIMAX=0;
18983 GNULIB_STRTOUMAX=0;
18984 HAVE_DECL_IMAXABS=1;
18985 HAVE_DECL_IMAXDIV=1;
18986 HAVE_DECL_STRTOIMAX=1;
18987 HAVE_DECL_STRTOUMAX=1;
18988 REPLACE_STRTOIMAX=0;
18989 INT32_MAX_LT_INTMAX_MAX=1;
18990 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18991 PRI_MACROS_BROKEN=0;
18992 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18993 UINT32_MAX_LT_UINTMAX_MAX=1;
18994 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010 if test $gl_cv_have_include_next = yes; then
19011 gl_cv_next_inttypes_h='<'inttypes.h'>'
19012 else
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19014 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19015 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19016 $as_echo_n "(cached) " >&6
19017 else
19018
19019 if test $ac_cv_header_inttypes_h = yes; then
19020
19021
19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h. */
19024 #include <inttypes.h>
19025
19026 _ACEOF
19027 case "$host_os" in
19028 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19029 *) gl_absname_cpp="$ac_cpp" ;;
19030 esac
19031
19032 case "$host_os" in
19033 mingw*)
19034 gl_dirsep_regex='[/\\]'
19035 ;;
19036 *)
19037 gl_dirsep_regex='\/'
19038 ;;
19039 esac
19040 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19041
19042 gl_header_literal_regex=`echo 'inttypes.h' \
19043 | sed -e "$gl_make_literal_regex_sed"`
19044 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19045 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19046 s|^/[^/]|//&|
19047 p
19048 q
19049 }'
19050 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19051 sed -n "$gl_absolute_header_sed"`'"'
19052 else
19053 gl_cv_next_inttypes_h='<'inttypes.h'>'
19054 fi
19055
19056
19057 fi
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19059 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19060 fi
19061 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19062
19063 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19064 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19065 gl_next_as_first_directive='<'inttypes.h'>'
19066 else
19067 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19068 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19069 fi
19070 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082 case "$host_os" in
19083 mingw*)
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19085 $as_echo_n "checking for 64-bit off_t... " >&6; }
19086 if test "${gl_cv_type_off_t_64+set}" = set; then :
19087 $as_echo_n "(cached) " >&6
19088 else
19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090 /* end confdefs.h. */
19091 #include <sys/types.h>
19092 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19093
19094 int
19095 main ()
19096 {
19097
19098 ;
19099 return 0;
19100 }
19101 _ACEOF
19102 if ac_fn_c_try_compile "$LINENO"; then :
19103 gl_cv_type_off_t_64=yes
19104 else
19105 gl_cv_type_off_t_64=no
19106 fi
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19108
19109 fi
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19111 $as_echo "$gl_cv_type_off_t_64" >&6; }
19112 if test $gl_cv_type_off_t_64 = no; then
19113 WINDOWS_64_BIT_OFF_T=1
19114 else
19115 WINDOWS_64_BIT_OFF_T=0
19116 fi
19117 WINDOWS_64_BIT_ST_SIZE=1
19118 ;;
19119 *)
19120 WINDOWS_64_BIT_OFF_T=0
19121 WINDOWS_64_BIT_ST_SIZE=0
19122 ;;
19123 esac
19124
19125
19126 GNULIB_FCHMODAT=0;
19127 GNULIB_FSTAT=0;
19128 GNULIB_FSTATAT=0;
19129 GNULIB_FUTIMENS=0;
19130 GNULIB_LCHMOD=0;
19131 GNULIB_LSTAT=0;
19132 GNULIB_MKDIRAT=0;
19133 GNULIB_MKFIFO=0;
19134 GNULIB_MKFIFOAT=0;
19135 GNULIB_MKNOD=0;
19136 GNULIB_MKNODAT=0;
19137 GNULIB_STAT=0;
19138 GNULIB_UTIMENSAT=0;
19139 HAVE_FCHMODAT=1;
19140 HAVE_FSTATAT=1;
19141 HAVE_FUTIMENS=1;
19142 HAVE_LCHMOD=1;
19143 HAVE_LSTAT=1;
19144 HAVE_MKDIRAT=1;
19145 HAVE_MKFIFO=1;
19146 HAVE_MKFIFOAT=1;
19147 HAVE_MKNOD=1;
19148 HAVE_MKNODAT=1;
19149 HAVE_UTIMENSAT=1;
19150 REPLACE_FSTAT=0;
19151 REPLACE_FSTATAT=0;
19152 REPLACE_FUTIMENS=0;
19153 REPLACE_LSTAT=0;
19154 REPLACE_MKDIR=0;
19155 REPLACE_MKFIFO=0;
19156 REPLACE_MKNOD=0;
19157 REPLACE_STAT=0;
19158 REPLACE_UTIMENSAT=0;
19159
19160
19161
19162
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19164 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19165 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19166 $as_echo_n "(cached) " >&6
19167 else
19168 rm -f conftest.sym conftest.file
19169 echo >conftest.file
19170 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19171 if test "$cross_compiling" = yes; then :
19172 case "$host_os" in
19173 # Guess yes on glibc systems.
19174 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19175 # If we don't know, assume the worst.
19176 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19177 esac
19178
19179 else
19180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h. */
19182 $ac_includes_default
19183 int
19184 main ()
19185 {
19186 struct stat sbuf;
19187 /* Linux will dereference the symlink and fail, as required by
19188 POSIX. That is better in the sense that it means we will not
19189 have to compile and use the lstat wrapper. */
19190 return lstat ("conftest.sym/", &sbuf) == 0;
19191
19192 ;
19193 return 0;
19194 }
19195 _ACEOF
19196 if ac_fn_c_try_run "$LINENO"; then :
19197 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19198 else
19199 gl_cv_func_lstat_dereferences_slashed_symlink=no
19200 fi
19201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19202 conftest.$ac_objext conftest.beam conftest.$ac_ext
19203 fi
19204
19205 else
19206 # If the 'ln -s' command failed, then we probably don't even
19207 # have an lstat function.
19208 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
19209 fi
19210 rm -f conftest.sym conftest.file
19211
19212 fi
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19214 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19215 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19216 *yes)
19217
19218 cat >>confdefs.h <<_ACEOF
19219 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19220 _ACEOF
19221
19222 ;;
19223 esac
19224
19225
19226 GNULIB_MKTIME=0;
19227 GNULIB_NANOSLEEP=0;
19228 GNULIB_STRPTIME=0;
19229 GNULIB_TIMEGM=0;
19230 GNULIB_TIME_R=0;
19231 HAVE_DECL_LOCALTIME_R=1;
19232 HAVE_NANOSLEEP=1;
19233 HAVE_STRPTIME=1;
19234 HAVE_TIMEGM=1;
19235 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19236 REPLACE_MKTIME=GNULIB_PORTCHECK;
19237 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19238 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19239
19240
19241
19242
19243 GNULIB_PSELECT=0;
19244 GNULIB_SELECT=0;
19245 HAVE_PSELECT=1;
19246 REPLACE_PSELECT=0;
19247 REPLACE_SELECT=0;
19248
19249
19250
19251
19252
19253
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19255 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19256 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19257 $as_echo_n "(cached) " >&6
19258 else
19259
19260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19261 /* end confdefs.h. */
19262 #include <sys/select.h>
19263 int
19264 main ()
19265 {
19266 struct timeval b;
19267 ;
19268 return 0;
19269 }
19270 _ACEOF
19271 if ac_fn_c_try_compile "$LINENO"; then :
19272 gl_cv_header_sys_select_h_selfcontained=yes
19273 else
19274 gl_cv_header_sys_select_h_selfcontained=no
19275 fi
19276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19277 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19280 #include <sys/select.h>
19281 int
19282 main ()
19283 {
19284 int memset; int bzero;
19285 ;
19286 return 0;
19287 }
19288
19289 _ACEOF
19290 if ac_fn_c_try_compile "$LINENO"; then :
19291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19292 /* end confdefs.h. */
19293 #include <sys/select.h>
19294 int
19295 main ()
19296 {
19297
19298 #undef memset
19299 #define memset nonexistent_memset
19300 extern
19301 #ifdef __cplusplus
19302 "C"
19303 #endif
19304 void *memset (void *, int, unsigned long);
19305 #undef bzero
19306 #define bzero nonexistent_bzero
19307 extern
19308 #ifdef __cplusplus
19309 "C"
19310 #endif
19311 void bzero (void *, unsigned long);
19312 fd_set fds;
19313 FD_ZERO (&fds);
19314
19315 ;
19316 return 0;
19317 }
19318
19319 _ACEOF
19320 if ac_fn_c_try_link "$LINENO"; then :
19321
19322 else
19323 gl_cv_header_sys_select_h_selfcontained=no
19324 fi
19325 rm -f core conftest.err conftest.$ac_objext \
19326 conftest$ac_exeext conftest.$ac_ext
19327
19328 fi
19329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19330 fi
19331
19332 fi
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19334 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344 if test $gl_cv_have_include_next = yes; then
19345 gl_cv_next_sys_select_h='<'sys/select.h'>'
19346 else
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19348 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19349 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19350 $as_echo_n "(cached) " >&6
19351 else
19352
19353 if test $ac_cv_header_sys_select_h = yes; then
19354
19355
19356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h. */
19358 #include <sys/select.h>
19359
19360 _ACEOF
19361 case "$host_os" in
19362 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19363 *) gl_absname_cpp="$ac_cpp" ;;
19364 esac
19365
19366 case "$host_os" in
19367 mingw*)
19368 gl_dirsep_regex='[/\\]'
19369 ;;
19370 *)
19371 gl_dirsep_regex='\/'
19372 ;;
19373 esac
19374 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19375
19376 gl_header_literal_regex=`echo 'sys/select.h' \
19377 | sed -e "$gl_make_literal_regex_sed"`
19378 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19379 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19380 s|^/[^/]|//&|
19381 p
19382 q
19383 }'
19384 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19385 sed -n "$gl_absolute_header_sed"`'"'
19386 else
19387 gl_cv_next_sys_select_h='<'sys/select.h'>'
19388 fi
19389
19390
19391 fi
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19393 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19394 fi
19395 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19396
19397 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19398 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19399 gl_next_as_first_directive='<'sys/select.h'>'
19400 else
19401 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19402 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19403 fi
19404 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19405
19406
19407
19408
19409 if test $ac_cv_header_sys_select_h = yes; then
19410 HAVE_SYS_SELECT_H=1
19411 else
19412 HAVE_SYS_SELECT_H=0
19413 fi
19414
19415
19416
19417
19418
19419 if test $ac_cv_header_sys_socket_h != yes; then
19420 for ac_header in winsock2.h
19421 do :
19422 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19423 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19424 cat >>confdefs.h <<_ACEOF
19425 #define HAVE_WINSOCK2_H 1
19426 _ACEOF
19427
19428 fi
19429
19430 done
19431
19432 fi
19433 if test "$ac_cv_header_winsock2_h" = yes; then
19434 HAVE_WINSOCK2_H=1
19435 UNISTD_H_HAVE_WINSOCK2_H=1
19436 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19437 else
19438 HAVE_WINSOCK2_H=0
19439 fi
19440
19441
19442
19443
19444
19445
19446
19447
19448 GNULIB_PTHREAD_SIGMASK=0;
19449 GNULIB_RAISE=0;
19450 GNULIB_SIGNAL_H_SIGPIPE=0;
19451 GNULIB_SIGPROCMASK=0;
19452 GNULIB_SIGACTION=0;
19453 HAVE_POSIX_SIGNALBLOCKING=1;
19454 HAVE_PTHREAD_SIGMASK=1;
19455 HAVE_RAISE=1;
19456 HAVE_SIGSET_T=1;
19457 HAVE_SIGINFO_T=1;
19458 HAVE_SIGACTION=1;
19459 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19460
19461 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19462
19463 HAVE_SIGHANDLER_T=1;
19464 REPLACE_PTHREAD_SIGMASK=0;
19465 REPLACE_RAISE=0;
19466
19467
19468
19469
19470
19471
19472
19473 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19474 #include <signal.h>
19475 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19476 #include <sys/types.h>
19477
19478 "
19479 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19480
19481 cat >>confdefs.h <<_ACEOF
19482 #define HAVE_SIGSET_T 1
19483 _ACEOF
19484
19485 gl_cv_type_sigset_t=yes
19486 else
19487 gl_cv_type_sigset_t=no
19488 fi
19489
19490 if test $gl_cv_type_sigset_t != yes; then
19491 HAVE_SIGSET_T=0
19492 fi
19493
19494
19495
19496 if test $ac_cv_header_sys_socket_h = no; then
19497 for ac_header in ws2tcpip.h
19498 do :
19499 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19500 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19501 cat >>confdefs.h <<_ACEOF
19502 #define HAVE_WS2TCPIP_H 1
19503 _ACEOF
19504
19505 fi
19506
19507 done
19508
19509 fi
19510
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19512 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19513 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19514 $as_echo_n "(cached) " >&6
19515 else
19516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19518
19519 #include <stdbool.h>
19520 #ifndef bool
19521 "error: bool is not defined"
19522 #endif
19523 #ifndef false
19524 "error: false is not defined"
19525 #endif
19526 #if false
19527 "error: false is not 0"
19528 #endif
19529 #ifndef true
19530 "error: true is not defined"
19531 #endif
19532 #if true != 1
19533 "error: true is not 1"
19534 #endif
19535 #ifndef __bool_true_false_are_defined
19536 "error: __bool_true_false_are_defined is not defined"
19537 #endif
19538
19539 struct s { _Bool s: 1; _Bool t; } s;
19540
19541 char a[true == 1 ? 1 : -1];
19542 char b[false == 0 ? 1 : -1];
19543 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19544 char d[(bool) 0.5 == true ? 1 : -1];
19545 /* See body of main program for 'e'. */
19546 char f[(_Bool) 0.0 == false ? 1 : -1];
19547 char g[true];
19548 char h[sizeof (_Bool)];
19549 char i[sizeof s.t];
19550 enum { j = false, k = true, l = false * true, m = true * 256 };
19551 /* The following fails for
19552 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19553 _Bool n[m];
19554 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19555 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19556 /* Catch a bug in an HP-UX C compiler. See
19557 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19558 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19559 */
19560 _Bool q = true;
19561 _Bool *pq = &q;
19562
19563 int
19564 main ()
19565 {
19566
19567 bool e = &s;
19568 *pq |= q;
19569 *pq |= ! q;
19570 /* Refer to every declared value, to avoid compiler optimizations. */
19571 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19572 + !m + !n + !o + !p + !q + !pq);
19573
19574 ;
19575 return 0;
19576 }
19577 _ACEOF
19578 if ac_fn_c_try_compile "$LINENO"; then :
19579 ac_cv_header_stdbool_h=yes
19580 else
19581 ac_cv_header_stdbool_h=no
19582 fi
19583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19584 fi
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19586 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19587 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19588 if test "x$ac_cv_type__Bool" = x""yes; then :
19589
19590 cat >>confdefs.h <<_ACEOF
19591 #define HAVE__BOOL 1
19592 _ACEOF
19593
19594
19595 fi
19596
19597
19598
19599 REPLACE_NULL=0;
19600 HAVE_WCHAR_T=1;
19601
19602
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19604 $as_echo_n "checking for wchar_t... " >&6; }
19605 if test "${gt_cv_c_wchar_t+set}" = set; then :
19606 $as_echo_n "(cached) " >&6
19607 else
19608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19609 /* end confdefs.h. */
19610 #include <stddef.h>
19611 wchar_t foo = (wchar_t)'\0';
19612 int
19613 main ()
19614 {
19615
19616 ;
19617 return 0;
19618 }
19619 _ACEOF
19620 if ac_fn_c_try_compile "$LINENO"; then :
19621 gt_cv_c_wchar_t=yes
19622 else
19623 gt_cv_c_wchar_t=no
19624 fi
19625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19626 fi
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19628 $as_echo "$gt_cv_c_wchar_t" >&6; }
19629 if test $gt_cv_c_wchar_t = yes; then
19630
19631 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19632
19633 fi
19634
19635
19636 GNULIB_DPRINTF=0;
19637 GNULIB_FCLOSE=0;
19638 GNULIB_FDOPEN=0;
19639 GNULIB_FFLUSH=0;
19640 GNULIB_FGETC=0;
19641 GNULIB_FGETS=0;
19642 GNULIB_FOPEN=0;
19643 GNULIB_FPRINTF=0;
19644 GNULIB_FPRINTF_POSIX=0;
19645 GNULIB_FPURGE=0;
19646 GNULIB_FPUTC=0;
19647 GNULIB_FPUTS=0;
19648 GNULIB_FREAD=0;
19649 GNULIB_FREOPEN=0;
19650 GNULIB_FSCANF=0;
19651 GNULIB_FSEEK=0;
19652 GNULIB_FSEEKO=0;
19653 GNULIB_FTELL=0;
19654 GNULIB_FTELLO=0;
19655 GNULIB_FWRITE=0;
19656 GNULIB_GETC=0;
19657 GNULIB_GETCHAR=0;
19658 GNULIB_GETDELIM=0;
19659 GNULIB_GETLINE=0;
19660 GNULIB_OBSTACK_PRINTF=0;
19661 GNULIB_OBSTACK_PRINTF_POSIX=0;
19662 GNULIB_PCLOSE=0;
19663 GNULIB_PERROR=0;
19664 GNULIB_POPEN=0;
19665 GNULIB_PRINTF=0;
19666 GNULIB_PRINTF_POSIX=0;
19667 GNULIB_PUTC=0;
19668 GNULIB_PUTCHAR=0;
19669 GNULIB_PUTS=0;
19670 GNULIB_REMOVE=0;
19671 GNULIB_RENAME=0;
19672 GNULIB_RENAMEAT=0;
19673 GNULIB_SCANF=0;
19674 GNULIB_SNPRINTF=0;
19675 GNULIB_SPRINTF_POSIX=0;
19676 GNULIB_STDIO_H_NONBLOCKING=0;
19677 GNULIB_STDIO_H_SIGPIPE=0;
19678 GNULIB_TMPFILE=0;
19679 GNULIB_VASPRINTF=0;
19680 GNULIB_VFSCANF=0;
19681 GNULIB_VSCANF=0;
19682 GNULIB_VDPRINTF=0;
19683 GNULIB_VFPRINTF=0;
19684 GNULIB_VFPRINTF_POSIX=0;
19685 GNULIB_VPRINTF=0;
19686 GNULIB_VPRINTF_POSIX=0;
19687 GNULIB_VSNPRINTF=0;
19688 GNULIB_VSPRINTF_POSIX=0;
19689 HAVE_DECL_FPURGE=1;
19690 HAVE_DECL_FSEEKO=1;
19691 HAVE_DECL_FTELLO=1;
19692 HAVE_DECL_GETDELIM=1;
19693 HAVE_DECL_GETLINE=1;
19694 HAVE_DECL_OBSTACK_PRINTF=1;
19695 HAVE_DECL_SNPRINTF=1;
19696 HAVE_DECL_VSNPRINTF=1;
19697 HAVE_DPRINTF=1;
19698 HAVE_FSEEKO=1;
19699 HAVE_FTELLO=1;
19700 HAVE_PCLOSE=1;
19701 HAVE_POPEN=1;
19702 HAVE_RENAMEAT=1;
19703 HAVE_VASPRINTF=1;
19704 HAVE_VDPRINTF=1;
19705 REPLACE_DPRINTF=0;
19706 REPLACE_FCLOSE=0;
19707 REPLACE_FDOPEN=0;
19708 REPLACE_FFLUSH=0;
19709 REPLACE_FOPEN=0;
19710 REPLACE_FPRINTF=0;
19711 REPLACE_FPURGE=0;
19712 REPLACE_FREOPEN=0;
19713 REPLACE_FSEEK=0;
19714 REPLACE_FSEEKO=0;
19715 REPLACE_FTELL=0;
19716 REPLACE_FTELLO=0;
19717 REPLACE_GETDELIM=0;
19718 REPLACE_GETLINE=0;
19719 REPLACE_OBSTACK_PRINTF=0;
19720 REPLACE_PERROR=0;
19721 REPLACE_POPEN=0;
19722 REPLACE_PRINTF=0;
19723 REPLACE_REMOVE=0;
19724 REPLACE_RENAME=0;
19725 REPLACE_RENAMEAT=0;
19726 REPLACE_SNPRINTF=0;
19727 REPLACE_SPRINTF=0;
19728 REPLACE_STDIO_READ_FUNCS=0;
19729 REPLACE_STDIO_WRITE_FUNCS=0;
19730 REPLACE_TMPFILE=0;
19731 REPLACE_VASPRINTF=0;
19732 REPLACE_VDPRINTF=0;
19733 REPLACE_VFPRINTF=0;
19734 REPLACE_VPRINTF=0;
19735 REPLACE_VSNPRINTF=0;
19736 REPLACE_VSPRINTF=0;
19737
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19739 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19740 if test "${ac_cv_struct_tm+set}" = set; then :
19741 $as_echo_n "(cached) " >&6
19742 else
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h. */
19745 #include <sys/types.h>
19746 #include <time.h>
19747
19748 int
19749 main ()
19750 {
19751 struct tm tm;
19752 int *p = &tm.tm_sec;
19753 return !p;
19754 ;
19755 return 0;
19756 }
19757 _ACEOF
19758 if ac_fn_c_try_compile "$LINENO"; then :
19759 ac_cv_struct_tm=time.h
19760 else
19761 ac_cv_struct_tm=sys/time.h
19762 fi
19763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19764 fi
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19766 $as_echo "$ac_cv_struct_tm" >&6; }
19767 if test $ac_cv_struct_tm = sys/time.h; then
19768
19769 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19770
19771 fi
19772
19773 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19774 #include <$ac_cv_struct_tm>
19775
19776 "
19777 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19778
19779 cat >>confdefs.h <<_ACEOF
19780 #define HAVE_STRUCT_TM_TM_ZONE 1
19781 _ACEOF
19782
19783
19784 fi
19785
19786 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19787
19788 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19789
19790 else
19791 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19792 "
19793 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19794 ac_have_decl=1
19795 else
19796 ac_have_decl=0
19797 fi
19798
19799 cat >>confdefs.h <<_ACEOF
19800 #define HAVE_DECL_TZNAME $ac_have_decl
19801 _ACEOF
19802
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19804 $as_echo_n "checking for tzname... " >&6; }
19805 if test "${ac_cv_var_tzname+set}" = set; then :
19806 $as_echo_n "(cached) " >&6
19807 else
19808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h. */
19810 #include <time.h>
19811 #if !HAVE_DECL_TZNAME
19812 extern char *tzname[];
19813 #endif
19814
19815 int
19816 main ()
19817 {
19818 return tzname[0][0];
19819 ;
19820 return 0;
19821 }
19822 _ACEOF
19823 if ac_fn_c_try_link "$LINENO"; then :
19824 ac_cv_var_tzname=yes
19825 else
19826 ac_cv_var_tzname=no
19827 fi
19828 rm -f core conftest.err conftest.$ac_objext \
19829 conftest$ac_exeext conftest.$ac_ext
19830 fi
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19832 $as_echo "$ac_cv_var_tzname" >&6; }
19833 if test $ac_cv_var_tzname = yes; then
19834
19835 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19836
19837 fi
19838 fi
19839
19840
19841 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19842 "
19843 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19844
19845 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19846
19847 fi
19848
19849
19850
19851
19852 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19853 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19854 ac_have_decl=1
19855 else
19856 ac_have_decl=0
19857 fi
19858
19859 cat >>confdefs.h <<_ACEOF
19860 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19861 _ACEOF
19862
19863
19864
19865 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19866 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19867 ac_have_decl=1
19868 else
19869 ac_have_decl=0
19870 fi
19871
19872 cat >>confdefs.h <<_ACEOF
19873 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19874 _ACEOF
19875
19876
19877
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19879 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19880 if test "${ac_cv_header_stat_broken+set}" = set; then :
19881 $as_echo_n "(cached) " >&6
19882 else
19883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19884 /* end confdefs.h. */
19885 #include <sys/types.h>
19886 #include <sys/stat.h>
19887
19888 #if defined S_ISBLK && defined S_IFDIR
19889 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19890 #endif
19891
19892 #if defined S_ISBLK && defined S_IFCHR
19893 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19894 #endif
19895
19896 #if defined S_ISLNK && defined S_IFREG
19897 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19898 #endif
19899
19900 #if defined S_ISSOCK && defined S_IFREG
19901 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19902 #endif
19903
19904 _ACEOF
19905 if ac_fn_c_try_compile "$LINENO"; then :
19906 ac_cv_header_stat_broken=no
19907 else
19908 ac_cv_header_stat_broken=yes
19909 fi
19910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19911 fi
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19913 $as_echo "$ac_cv_header_stat_broken" >&6; }
19914 if test $ac_cv_header_stat_broken = yes; then
19915
19916 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19917
19918 fi
19919
19920
19921
19922
19923
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19925 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19926 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19927 $as_echo_n "(cached) " >&6
19928 else
19929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19930 /* end confdefs.h. */
19931 #include <time.h>
19932
19933 int
19934 main ()
19935 {
19936 static struct timespec x; x.tv_sec = x.tv_nsec;
19937 ;
19938 return 0;
19939 }
19940 _ACEOF
19941 if ac_fn_c_try_compile "$LINENO"; then :
19942 gl_cv_sys_struct_timespec_in_time_h=yes
19943 else
19944 gl_cv_sys_struct_timespec_in_time_h=no
19945 fi
19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19947 fi
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19949 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19950
19951 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19952 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19953 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19954 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19955 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19956 else
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19958 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19959 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19960 $as_echo_n "(cached) " >&6
19961 else
19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963 /* end confdefs.h. */
19964 #include <sys/time.h>
19965
19966 int
19967 main ()
19968 {
19969 static struct timespec x; x.tv_sec = x.tv_nsec;
19970 ;
19971 return 0;
19972 }
19973 _ACEOF
19974 if ac_fn_c_try_compile "$LINENO"; then :
19975 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19976 else
19977 gl_cv_sys_struct_timespec_in_sys_time_h=no
19978 fi
19979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980 fi
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19982 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19983 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19984 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19985 else
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19987 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19988 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19989 $as_echo_n "(cached) " >&6
19990 else
19991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19992 /* end confdefs.h. */
19993 #include <pthread.h>
19994
19995 int
19996 main ()
19997 {
19998 static struct timespec x; x.tv_sec = x.tv_nsec;
19999 ;
20000 return 0;
20001 }
20002 _ACEOF
20003 if ac_fn_c_try_compile "$LINENO"; then :
20004 gl_cv_sys_struct_timespec_in_pthread_h=yes
20005 else
20006 gl_cv_sys_struct_timespec_in_pthread_h=no
20007 fi
20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20009 fi
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20011 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20012 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20013 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20014 fi
20015 fi
20016 fi
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032 if test $gl_cv_have_include_next = yes; then
20033 gl_cv_next_time_h='<'time.h'>'
20034 else
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20036 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20037 if test "${gl_cv_next_time_h+set}" = set; then :
20038 $as_echo_n "(cached) " >&6
20039 else
20040
20041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20042 /* end confdefs.h. */
20043 #include <time.h>
20044
20045 _ACEOF
20046 case "$host_os" in
20047 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20048 *) gl_absname_cpp="$ac_cpp" ;;
20049 esac
20050
20051 case "$host_os" in
20052 mingw*)
20053 gl_dirsep_regex='[/\\]'
20054 ;;
20055 *)
20056 gl_dirsep_regex='\/'
20057 ;;
20058 esac
20059 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20060
20061 gl_header_literal_regex=`echo 'time.h' \
20062 | sed -e "$gl_make_literal_regex_sed"`
20063 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20064 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20065 s|^/[^/]|//&|
20066 p
20067 q
20068 }'
20069 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20070 sed -n "$gl_absolute_header_sed"`'"'
20071
20072
20073 fi
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20075 $as_echo "$gl_cv_next_time_h" >&6; }
20076 fi
20077 NEXT_TIME_H=$gl_cv_next_time_h
20078
20079 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20080 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20081 gl_next_as_first_directive='<'time.h'>'
20082 else
20083 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20084 gl_next_as_first_directive=$gl_cv_next_time_h
20085 fi
20086 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20102 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
20103 ac_have_decl=1
20104 else
20105 ac_have_decl=0
20106 fi
20107
20108 cat >>confdefs.h <<_ACEOF
20109 #define HAVE_DECL_UNSETENV $ac_have_decl
20110 _ACEOF
20111
20112
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20114 $as_echo_n "checking whether the utimes function works... " >&6; }
20115 if test "${gl_cv_func_working_utimes+set}" = set; then :
20116 $as_echo_n "(cached) " >&6
20117 else
20118
20119 if test "$cross_compiling" = yes; then :
20120 gl_cv_func_working_utimes=no
20121 else
20122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20123 /* end confdefs.h. */
20124
20125 #include <sys/types.h>
20126 #include <sys/stat.h>
20127 #include <fcntl.h>
20128 #include <sys/time.h>
20129 #include <time.h>
20130 #include <unistd.h>
20131 #include <stdlib.h>
20132 #include <stdio.h>
20133 #include <utime.h>
20134
20135 static int
20136 inorder (time_t a, time_t b, time_t c)
20137 {
20138 return a <= b && b <= c;
20139 }
20140
20141 int
20142 main ()
20143 {
20144 int result = 0;
20145 char const *file = "conftest.utimes";
20146 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20147
20148 /* Test whether utimes() essentially works. */
20149 {
20150 struct stat sbuf;
20151 FILE *f = fopen (file, "w");
20152 if (f == NULL)
20153 result |= 1;
20154 else if (fclose (f) != 0)
20155 result |= 1;
20156 else if (utimes (file, timeval) != 0)
20157 result |= 2;
20158 else if (lstat (file, &sbuf) != 0)
20159 result |= 1;
20160 else if (!(sbuf.st_atime == timeval[0].tv_sec
20161 && sbuf.st_mtime == timeval[1].tv_sec))
20162 result |= 4;
20163 if (unlink (file) != 0)
20164 result |= 1;
20165 }
20166
20167 /* Test whether utimes() with a NULL argument sets the file's timestamp
20168 to the current time. Use 'fstat' as well as 'time' to
20169 determine the "current" time, to accommodate NFS file systems
20170 if there is a time skew between the host and the NFS server. */
20171 {
20172 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20173 if (fd < 0)
20174 result |= 1;
20175 else
20176 {
20177 time_t t0, t2;
20178 struct stat st0, st1, st2;
20179 if (time (&t0) == (time_t) -1)
20180 result |= 1;
20181 else if (fstat (fd, &st0) != 0)
20182 result |= 1;
20183 else if (utimes (file, timeval) != 0)
20184 result |= 2;
20185 else if (utimes (file, NULL) != 0)
20186 result |= 8;
20187 else if (fstat (fd, &st1) != 0)
20188 result |= 1;
20189 else if (write (fd, "\n", 1) != 1)
20190 result |= 1;
20191 else if (fstat (fd, &st2) != 0)
20192 result |= 1;
20193 else if (time (&t2) == (time_t) -1)
20194 result |= 1;
20195 else
20196 {
20197 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20198 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20199 if (! (st1.st_atime == st1.st_mtime))
20200 result |= 16;
20201 if (! (m_ok_POSIX || m_ok_NFS))
20202 result |= 32;
20203 }
20204 if (close (fd) != 0)
20205 result |= 1;
20206 }
20207 if (unlink (file) != 0)
20208 result |= 1;
20209 }
20210
20211 /* Test whether utimes() with a NULL argument works on read-only files. */
20212 {
20213 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20214 if (fd < 0)
20215 result |= 1;
20216 else if (close (fd) != 0)
20217 result |= 1;
20218 else if (utimes (file, NULL) != 0)
20219 result |= 64;
20220 if (unlink (file) != 0)
20221 result |= 1;
20222 }
20223
20224 return result;
20225 }
20226
20227 _ACEOF
20228 if ac_fn_c_try_run "$LINENO"; then :
20229 gl_cv_func_working_utimes=yes
20230 else
20231 gl_cv_func_working_utimes=no
20232 fi
20233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20234 conftest.$ac_objext conftest.beam conftest.$ac_ext
20235 fi
20236
20237 fi
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20239 $as_echo "$gl_cv_func_working_utimes" >&6; }
20240
20241 if test $gl_cv_func_working_utimes = yes; then
20242
20243 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20244
20245 fi
20246
20247
20248
20249
20250
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20252 $as_echo_n "checking for struct utimbuf... " >&6; }
20253 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20254 $as_echo_n "(cached) " >&6
20255 else
20256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257 /* end confdefs.h. */
20258 #if HAVE_SYS_TIME_H
20259 #include <sys/time.h>
20260 #endif
20261 #include <time.h>
20262 #ifdef HAVE_UTIME_H
20263 #include <utime.h>
20264 #endif
20265
20266 int
20267 main ()
20268 {
20269 static struct utimbuf x; x.actime = x.modtime;
20270 ;
20271 return 0;
20272 }
20273 _ACEOF
20274 if ac_fn_c_try_compile "$LINENO"; then :
20275 gl_cv_sys_struct_utimbuf=yes
20276 else
20277 gl_cv_sys_struct_utimbuf=no
20278 fi
20279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20280 fi
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20282 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20283
20284 if test $gl_cv_sys_struct_utimbuf = yes; then
20285
20286 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20287
20288 fi
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20301 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20302 if test "${ac_cv_type_getgroups+set}" = set; then :
20303 $as_echo_n "(cached) " >&6
20304 else
20305 if test "$cross_compiling" = yes; then :
20306 ac_cv_type_getgroups=cross
20307 else
20308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20309 /* end confdefs.h. */
20310 /* Thanks to Mike Rendell for this test. */
20311 $ac_includes_default
20312 #define NGID 256
20313 #undef MAX
20314 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20315
20316 int
20317 main ()
20318 {
20319 gid_t gidset[NGID];
20320 int i, n;
20321 union { gid_t gval; long int lval; } val;
20322
20323 val.lval = -1;
20324 for (i = 0; i < NGID; i++)
20325 gidset[i] = val.gval;
20326 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20327 gidset);
20328 /* Exit non-zero if getgroups seems to require an array of ints. This
20329 happens when gid_t is short int but getgroups modifies an array
20330 of ints. */
20331 return n > 0 && gidset[n] != val.gval;
20332 }
20333 _ACEOF
20334 if ac_fn_c_try_run "$LINENO"; then :
20335 ac_cv_type_getgroups=gid_t
20336 else
20337 ac_cv_type_getgroups=int
20338 fi
20339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20340 conftest.$ac_objext conftest.beam conftest.$ac_ext
20341 fi
20342
20343 if test $ac_cv_type_getgroups = cross; then
20344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20345 /* end confdefs.h. */
20346 #include <unistd.h>
20347
20348 _ACEOF
20349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20350 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20351 ac_cv_type_getgroups=gid_t
20352 else
20353 ac_cv_type_getgroups=int
20354 fi
20355 rm -f conftest*
20356
20357 fi
20358 fi
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20360 $as_echo "$ac_cv_type_getgroups" >&6; }
20361
20362 cat >>confdefs.h <<_ACEOF
20363 #define GETGROUPS_T $ac_cv_type_getgroups
20364 _ACEOF
20365
20366
20367
20368
20369 if false; then
20370 GL_COND_LIBTOOL_TRUE=
20371 GL_COND_LIBTOOL_FALSE='#'
20372 else
20373 GL_COND_LIBTOOL_TRUE='#'
20374 GL_COND_LIBTOOL_FALSE=
20375 fi
20376
20377 gl_cond_libtool=false
20378 gl_libdeps=
20379 gl_ltlibdeps=
20380 gl_m4_base='m4'
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390 gl_source_base='lib'
20391
20392
20393 if test $ac_cv_func_alloca_works = no; then
20394 :
20395 fi
20396
20397 # Define an additional variable used in the Makefile substitution.
20398 if test $ac_cv_working_alloca_h = yes; then
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20400 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20401 if test "${gl_cv_rpl_alloca+set}" = set; then :
20402 $as_echo_n "(cached) " >&6
20403 else
20404
20405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20406 /* end confdefs.h. */
20407
20408 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20409 Need own alloca
20410 #endif
20411
20412 _ACEOF
20413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20414 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20415 gl_cv_rpl_alloca=yes
20416 else
20417 gl_cv_rpl_alloca=no
20418 fi
20419 rm -f conftest*
20420
20421
20422 fi
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20424 $as_echo "$gl_cv_rpl_alloca" >&6; }
20425 if test $gl_cv_rpl_alloca = yes; then
20426
20427 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20428
20429 ALLOCA_H=alloca.h
20430 else
20431 ALLOCA_H=
20432 fi
20433 else
20434 ALLOCA_H=alloca.h
20435 fi
20436
20437 if test -n "$ALLOCA_H"; then
20438 GL_GENERATE_ALLOCA_H_TRUE=
20439 GL_GENERATE_ALLOCA_H_FALSE='#'
20440 else
20441 GL_GENERATE_ALLOCA_H_TRUE='#'
20442 GL_GENERATE_ALLOCA_H_FALSE=
20443 fi
20444
20445
20446
20447
20448
20449
20450 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20451 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20452
20453 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20454 # programs in the package would end up linked with that potentially-shared
20455 # library, inducing unnecessary run-time overhead.
20456 LIB_CLOCK_GETTIME=
20457
20458 gl_saved_libs=$LIBS
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20460 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20461 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20462 $as_echo_n "(cached) " >&6
20463 else
20464 ac_func_search_save_LIBS=$LIBS
20465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20466 /* end confdefs.h. */
20467
20468 /* Override any GCC internal prototype to avoid an error.
20469 Use char because int might match the return type of a GCC
20470 builtin and then its argument prototype would still apply. */
20471 #ifdef __cplusplus
20472 extern "C"
20473 #endif
20474 char clock_gettime ();
20475 int
20476 main ()
20477 {
20478 return clock_gettime ();
20479 ;
20480 return 0;
20481 }
20482 _ACEOF
20483 for ac_lib in '' rt posix4; do
20484 if test -z "$ac_lib"; then
20485 ac_res="none required"
20486 else
20487 ac_res=-l$ac_lib
20488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20489 fi
20490 if ac_fn_c_try_link "$LINENO"; then :
20491 ac_cv_search_clock_gettime=$ac_res
20492 fi
20493 rm -f core conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext
20495 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20496 break
20497 fi
20498 done
20499 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20500
20501 else
20502 ac_cv_search_clock_gettime=no
20503 fi
20504 rm conftest.$ac_ext
20505 LIBS=$ac_func_search_save_LIBS
20506 fi
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20508 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20509 ac_res=$ac_cv_search_clock_gettime
20510 if test "$ac_res" != no; then :
20511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20512 test "$ac_cv_search_clock_gettime" = "none required" ||
20513 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20514 fi
20515
20516 for ac_func in clock_gettime clock_settime
20517 do :
20518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20519 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20520 eval as_val=\$$as_ac_var
20521 if test "x$as_val" = x""yes; then :
20522 cat >>confdefs.h <<_ACEOF
20523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20524 _ACEOF
20525
20526 fi
20527 done
20528
20529 LIBS=$gl_saved_libs
20530
20531
20532 :
20533
20534
20535
20536 cat >>confdefs.h <<_ACEOF
20537 #define GNULIB_CLOSE_STREAM 1
20538 _ACEOF
20539
20540
20541
20542
20543 :
20544
20545
20546
20547 :
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20562
20563
20564 if test $HAVE_DUP2 = 1; then
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20566 $as_echo_n "checking whether dup2 works... " >&6; }
20567 if test "${gl_cv_func_dup2_works+set}" = set; then :
20568 $as_echo_n "(cached) " >&6
20569 else
20570 if test "$cross_compiling" = yes; then :
20571 case "$host_os" in
20572 mingw*) # on this platform, dup2 always returns 0 for success
20573 gl_cv_func_dup2_works="guessing no" ;;
20574 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20575 gl_cv_func_dup2_works="guessing no" ;;
20576 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20577 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20578 gl_cv_func_dup2_works="guessing no" ;;
20579 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20580 gl_cv_func_dup2_works="guessing no" ;;
20581 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20582 gl_cv_func_dup2_works="guessing no" ;;
20583 *) gl_cv_func_dup2_works="guessing yes" ;;
20584 esac
20585 else
20586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20587 /* end confdefs.h. */
20588
20589 #include <unistd.h>
20590 #include <fcntl.h>
20591 #include <errno.h>
20592 int
20593 main ()
20594 {
20595 int result = 0;
20596 #ifdef FD_CLOEXEC
20597 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20598 result |= 1;
20599 #endif
20600 if (dup2 (1, 1) == 0)
20601 result |= 2;
20602 #ifdef FD_CLOEXEC
20603 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20604 result |= 4;
20605 #endif
20606 close (0);
20607 if (dup2 (0, 0) != -1)
20608 result |= 8;
20609 /* Many gnulib modules require POSIX conformance of EBADF. */
20610 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20611 result |= 16;
20612 return result;
20613
20614 ;
20615 return 0;
20616 }
20617
20618 _ACEOF
20619 if ac_fn_c_try_run "$LINENO"; then :
20620 gl_cv_func_dup2_works=yes
20621 else
20622 gl_cv_func_dup2_works=no
20623 fi
20624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20625 conftest.$ac_objext conftest.beam conftest.$ac_ext
20626 fi
20627
20628
20629 fi
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20631 $as_echo "$gl_cv_func_dup2_works" >&6; }
20632 case "$gl_cv_func_dup2_works" in
20633 *yes) ;;
20634 *)
20635 REPLACE_DUP2=1
20636 ;;
20637 esac
20638 fi
20639
20640
20641 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20642
20643
20644
20645
20646
20647
20648
20649
20650 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20651
20652
20653 fi
20654
20655
20656
20657
20658
20659 GNULIB_DUP2=1
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671 GNULIB_ENVIRON=1
20672
20673
20674
20675
20676
20677
20678
20679
20680 LIB_EXECINFO=''
20681 EXECINFO_H='execinfo.h'
20682
20683 if test $ac_cv_header_execinfo_h = yes; then
20684 gl_saved_libs=$LIBS
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20686 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20687 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20688 $as_echo_n "(cached) " >&6
20689 else
20690 ac_func_search_save_LIBS=$LIBS
20691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20692 /* end confdefs.h. */
20693
20694 /* Override any GCC internal prototype to avoid an error.
20695 Use char because int might match the return type of a GCC
20696 builtin and then its argument prototype would still apply. */
20697 #ifdef __cplusplus
20698 extern "C"
20699 #endif
20700 char backtrace_symbols_fd ();
20701 int
20702 main ()
20703 {
20704 return backtrace_symbols_fd ();
20705 ;
20706 return 0;
20707 }
20708 _ACEOF
20709 for ac_lib in '' execinfo; do
20710 if test -z "$ac_lib"; then
20711 ac_res="none required"
20712 else
20713 ac_res=-l$ac_lib
20714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20715 fi
20716 if ac_fn_c_try_link "$LINENO"; then :
20717 ac_cv_search_backtrace_symbols_fd=$ac_res
20718 fi
20719 rm -f core conftest.err conftest.$ac_objext \
20720 conftest$ac_exeext
20721 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20722 break
20723 fi
20724 done
20725 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20726
20727 else
20728 ac_cv_search_backtrace_symbols_fd=no
20729 fi
20730 rm conftest.$ac_ext
20731 LIBS=$ac_func_search_save_LIBS
20732 fi
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20734 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20735 ac_res=$ac_cv_search_backtrace_symbols_fd
20736 if test "$ac_res" != no; then :
20737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20738 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20739 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20740 fi
20741
20742 LIBS=$gl_saved_libs
20743 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
20744 fi
20745
20746 if test -n "$EXECINFO_H"; then
20747
20748
20749
20750
20751
20752
20753
20754
20755 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
20756
20757 fi
20758
20759
20760
20761 if test -n "$EXECINFO_H"; then
20762 GL_GENERATE_EXECINFO_H_TRUE=
20763 GL_GENERATE_EXECINFO_H_FALSE='#'
20764 else
20765 GL_GENERATE_EXECINFO_H_TRUE='#'
20766 GL_GENERATE_EXECINFO_H_FALSE=
20767 fi
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777 if test $ac_cv_func_faccessat = no; then
20778 HAVE_FACCESSAT=0
20779 fi
20780
20781 if test $HAVE_FACCESSAT = 0; then
20782
20783
20784
20785
20786
20787
20788
20789
20790 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
20791
20792
20793 for ac_func in access
20794 do :
20795 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
20796 if test "x$ac_cv_func_access" = x""yes; then :
20797 cat >>confdefs.h <<_ACEOF
20798 #define HAVE_ACCESS 1
20799 _ACEOF
20800
20801 fi
20802 done
20803
20804
20805 fi
20806
20807
20808 cat >>confdefs.h <<_ACEOF
20809 #define GNULIB_FACCESSAT 1
20810 _ACEOF
20811
20812
20813
20814
20815
20816
20817
20818 GNULIB_FACCESSAT=1
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835 if test $gl_cv_have_include_next = yes; then
20836 gl_cv_next_fcntl_h='<'fcntl.h'>'
20837 else
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
20839 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
20840 if test "${gl_cv_next_fcntl_h+set}" = set; then :
20841 $as_echo_n "(cached) " >&6
20842 else
20843
20844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20845 /* end confdefs.h. */
20846 #include <fcntl.h>
20847
20848 _ACEOF
20849 case "$host_os" in
20850 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20851 *) gl_absname_cpp="$ac_cpp" ;;
20852 esac
20853
20854 case "$host_os" in
20855 mingw*)
20856 gl_dirsep_regex='[/\\]'
20857 ;;
20858 *)
20859 gl_dirsep_regex='\/'
20860 ;;
20861 esac
20862 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20863
20864 gl_header_literal_regex=`echo 'fcntl.h' \
20865 | sed -e "$gl_make_literal_regex_sed"`
20866 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20867 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20868 s|^/[^/]|//&|
20869 p
20870 q
20871 }'
20872 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20873 sed -n "$gl_absolute_header_sed"`'"'
20874
20875
20876 fi
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
20878 $as_echo "$gl_cv_next_fcntl_h" >&6; }
20879 fi
20880 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20881
20882 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20883 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20884 gl_next_as_first_directive='<'fcntl.h'>'
20885 else
20886 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20887 gl_next_as_first_directive=$gl_cv_next_fcntl_h
20888 fi
20889 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908 fp_headers='
20909 # include <stdio.h>
20910 # if HAVE_STDIO_EXT_H
20911 # include <stdio_ext.h>
20912 # endif
20913 '
20914 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
20915 "
20916 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
20917 ac_have_decl=1
20918 else
20919 ac_have_decl=0
20920 fi
20921
20922 cat >>confdefs.h <<_ACEOF
20923 #define HAVE_DECL___FPENDING $ac_have_decl
20924 _ACEOF
20925
20926
20927 if test $ac_cv_func___fpending = no; then
20928
20929
20930
20931
20932
20933
20934
20935
20936 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
20937
20938
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
20940 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
20941 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
20942 $as_echo_n "(cached) " >&6
20943 else
20944
20945 for ac_expr in \
20946 \
20947 '# glibc2' \
20948 'fp->_IO_write_ptr - fp->_IO_write_base' \
20949 \
20950 '# traditional Unix' \
20951 'fp->_ptr - fp->_base' \
20952 \
20953 '# BSD' \
20954 'fp->_p - fp->_bf._base' \
20955 \
20956 '# SCO, Unixware' \
20957 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
20958 \
20959 '# QNX' \
20960 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
20961 \
20962 '# old glibc?' \
20963 'fp->__bufp - fp->__buffer' \
20964 \
20965 '# old glibc iostream?' \
20966 'fp->_pptr - fp->_pbase' \
20967 \
20968 '# emx+gcc' \
20969 'fp->_ptr - fp->_buffer' \
20970 \
20971 '# Minix' \
20972 'fp->_ptr - fp->_buf' \
20973 \
20974 '# Plan9' \
20975 'fp->wp - fp->buf' \
20976 \
20977 '# VMS' \
20978 '(*fp)->_ptr - (*fp)->_base' \
20979 \
20980 '# e.g., DGUX R4.11; the info is not available' \
20981 1 \
20982 ; do
20983
20984 # Skip each embedded comment.
20985 case "$ac_expr" in '#'*) continue;; esac
20986
20987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20988 /* end confdefs.h. */
20989 #include <stdio.h>
20990 int
20991 main ()
20992 {
20993 FILE *fp = stdin; (void) ($ac_expr);
20994 ;
20995 return 0;
20996 }
20997 _ACEOF
20998 if ac_fn_c_try_compile "$LINENO"; then :
20999 fp_done=yes
21000
21001 fi
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003 test "$fp_done" = yes && break
21004 done
21005
21006 ac_cv_sys_pending_output_n_bytes=$ac_expr
21007
21008
21009 fi
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21011 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21012
21013 cat >>confdefs.h <<_ACEOF
21014 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21015 _ACEOF
21016
21017
21018 fi
21019
21020
21021 # Persuade glibc <stdlib.h> to declare getloadavg().
21022
21023
21024 gl_save_LIBS=$LIBS
21025
21026 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
21027 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
21028 HAVE_GETLOADAVG=1
21029 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21030 if test "x$ac_cv_func_getloadavg" = x""yes; then :
21031
21032 else
21033 gl_func_getloadavg_done=no
21034
21035 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21036 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21037 # to get the right answer into the cache.
21038 # For kstat on solaris, we need to test for libelf and libkvm to force the
21039 # definition of SVR4 below.
21040 if test $gl_func_getloadavg_done = no; then
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
21042 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
21043 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
21044 $as_echo_n "(cached) " >&6
21045 else
21046 ac_check_lib_save_LIBS=$LIBS
21047 LIBS="-lelf $LIBS"
21048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h. */
21050
21051 /* Override any GCC internal prototype to avoid an error.
21052 Use char because int might match the return type of a GCC
21053 builtin and then its argument prototype would still apply. */
21054 #ifdef __cplusplus
21055 extern "C"
21056 #endif
21057 char elf_begin ();
21058 int
21059 main ()
21060 {
21061 return elf_begin ();
21062 ;
21063 return 0;
21064 }
21065 _ACEOF
21066 if ac_fn_c_try_link "$LINENO"; then :
21067 ac_cv_lib_elf_elf_begin=yes
21068 else
21069 ac_cv_lib_elf_elf_begin=no
21070 fi
21071 rm -f core conftest.err conftest.$ac_objext \
21072 conftest$ac_exeext conftest.$ac_ext
21073 LIBS=$ac_check_lib_save_LIBS
21074 fi
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
21076 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
21077 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
21078 LIBS="-lelf $LIBS"
21079 fi
21080
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
21082 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
21083 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
21084 $as_echo_n "(cached) " >&6
21085 else
21086 ac_check_lib_save_LIBS=$LIBS
21087 LIBS="-lkvm $LIBS"
21088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21089 /* end confdefs.h. */
21090
21091 /* Override any GCC internal prototype to avoid an error.
21092 Use char because int might match the return type of a GCC
21093 builtin and then its argument prototype would still apply. */
21094 #ifdef __cplusplus
21095 extern "C"
21096 #endif
21097 char kvm_open ();
21098 int
21099 main ()
21100 {
21101 return kvm_open ();
21102 ;
21103 return 0;
21104 }
21105 _ACEOF
21106 if ac_fn_c_try_link "$LINENO"; then :
21107 ac_cv_lib_kvm_kvm_open=yes
21108 else
21109 ac_cv_lib_kvm_kvm_open=no
21110 fi
21111 rm -f core conftest.err conftest.$ac_objext \
21112 conftest$ac_exeext conftest.$ac_ext
21113 LIBS=$ac_check_lib_save_LIBS
21114 fi
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21116 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21117 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
21118 LIBS="-lkvm $LIBS"
21119 fi
21120
21121 # Check for the 4.4BSD definition of getloadavg.
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21123 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21124 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21125 $as_echo_n "(cached) " >&6
21126 else
21127 ac_check_lib_save_LIBS=$LIBS
21128 LIBS="-lutil $LIBS"
21129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21130 /* end confdefs.h. */
21131
21132 /* Override any GCC internal prototype to avoid an error.
21133 Use char because int might match the return type of a GCC
21134 builtin and then its argument prototype would still apply. */
21135 #ifdef __cplusplus
21136 extern "C"
21137 #endif
21138 char getloadavg ();
21139 int
21140 main ()
21141 {
21142 return getloadavg ();
21143 ;
21144 return 0;
21145 }
21146 _ACEOF
21147 if ac_fn_c_try_link "$LINENO"; then :
21148 ac_cv_lib_util_getloadavg=yes
21149 else
21150 ac_cv_lib_util_getloadavg=no
21151 fi
21152 rm -f core conftest.err conftest.$ac_objext \
21153 conftest$ac_exeext conftest.$ac_ext
21154 LIBS=$ac_check_lib_save_LIBS
21155 fi
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21157 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21158 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
21159 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
21160 fi
21161
21162 fi
21163
21164 if test $gl_func_getloadavg_done = no; then
21165 # There is a commonly available library for RS/6000 AIX.
21166 # Since it is not a standard part of AIX, it might be installed locally.
21167 gl_getloadavg_LIBS=$LIBS
21168 LIBS="-L/usr/local/lib $LIBS"
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21170 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21171 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21172 $as_echo_n "(cached) " >&6
21173 else
21174 ac_check_lib_save_LIBS=$LIBS
21175 LIBS="-lgetloadavg $LIBS"
21176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21177 /* end confdefs.h. */
21178
21179 /* Override any GCC internal prototype to avoid an error.
21180 Use char because int might match the return type of a GCC
21181 builtin and then its argument prototype would still apply. */
21182 #ifdef __cplusplus
21183 extern "C"
21184 #endif
21185 char getloadavg ();
21186 int
21187 main ()
21188 {
21189 return getloadavg ();
21190 ;
21191 return 0;
21192 }
21193 _ACEOF
21194 if ac_fn_c_try_link "$LINENO"; then :
21195 ac_cv_lib_getloadavg_getloadavg=yes
21196 else
21197 ac_cv_lib_getloadavg_getloadavg=no
21198 fi
21199 rm -f core conftest.err conftest.$ac_objext \
21200 conftest$ac_exeext conftest.$ac_ext
21201 LIBS=$ac_check_lib_save_LIBS
21202 fi
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21204 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21205 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21206 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21207 else
21208 LIBS=$gl_getloadavg_LIBS
21209 fi
21210
21211 fi
21212
21213 # Set up the replacement function if necessary.
21214 if test $gl_func_getloadavg_done = no; then
21215 HAVE_GETLOADAVG=0
21216
21217 # Solaris has libkstat which does not require root.
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21219 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21220 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21221 $as_echo_n "(cached) " >&6
21222 else
21223 ac_check_lib_save_LIBS=$LIBS
21224 LIBS="-lkstat $LIBS"
21225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21226 /* end confdefs.h. */
21227
21228 /* Override any GCC internal prototype to avoid an error.
21229 Use char because int might match the return type of a GCC
21230 builtin and then its argument prototype would still apply. */
21231 #ifdef __cplusplus
21232 extern "C"
21233 #endif
21234 char kstat_open ();
21235 int
21236 main ()
21237 {
21238 return kstat_open ();
21239 ;
21240 return 0;
21241 }
21242 _ACEOF
21243 if ac_fn_c_try_link "$LINENO"; then :
21244 ac_cv_lib_kstat_kstat_open=yes
21245 else
21246 ac_cv_lib_kstat_kstat_open=no
21247 fi
21248 rm -f core conftest.err conftest.$ac_objext \
21249 conftest$ac_exeext conftest.$ac_ext
21250 LIBS=$ac_check_lib_save_LIBS
21251 fi
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21253 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21254 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
21255 cat >>confdefs.h <<_ACEOF
21256 #define HAVE_LIBKSTAT 1
21257 _ACEOF
21258
21259 LIBS="-lkstat $LIBS"
21260
21261 fi
21262
21263 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
21264
21265 # AIX has libperfstat which does not require root
21266 if test $gl_func_getloadavg_done = no; then
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21268 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21269 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21270 $as_echo_n "(cached) " >&6
21271 else
21272 ac_check_lib_save_LIBS=$LIBS
21273 LIBS="-lperfstat $LIBS"
21274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275 /* end confdefs.h. */
21276
21277 /* Override any GCC internal prototype to avoid an error.
21278 Use char because int might match the return type of a GCC
21279 builtin and then its argument prototype would still apply. */
21280 #ifdef __cplusplus
21281 extern "C"
21282 #endif
21283 char perfstat_cpu_total ();
21284 int
21285 main ()
21286 {
21287 return perfstat_cpu_total ();
21288 ;
21289 return 0;
21290 }
21291 _ACEOF
21292 if ac_fn_c_try_link "$LINENO"; then :
21293 ac_cv_lib_perfstat_perfstat_cpu_total=yes
21294 else
21295 ac_cv_lib_perfstat_perfstat_cpu_total=no
21296 fi
21297 rm -f core conftest.err conftest.$ac_objext \
21298 conftest$ac_exeext conftest.$ac_ext
21299 LIBS=$ac_check_lib_save_LIBS
21300 fi
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21302 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21303 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
21304 cat >>confdefs.h <<_ACEOF
21305 #define HAVE_LIBPERFSTAT 1
21306 _ACEOF
21307
21308 LIBS="-lperfstat $LIBS"
21309
21310 fi
21311
21312 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
21313 fi
21314
21315 if test $gl_func_getloadavg_done = no; then
21316 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21317 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
21318 gl_func_getloadavg_done=yes
21319
21320 $as_echo "#define DGUX 1" >>confdefs.h
21321
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21323 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21324 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21325 $as_echo_n "(cached) " >&6
21326 else
21327 ac_check_lib_save_LIBS=$LIBS
21328 LIBS="-ldgc $LIBS"
21329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21330 /* end confdefs.h. */
21331
21332 /* Override any GCC internal prototype to avoid an error.
21333 Use char because int might match the return type of a GCC
21334 builtin and then its argument prototype would still apply. */
21335 #ifdef __cplusplus
21336 extern "C"
21337 #endif
21338 char dg_sys_info ();
21339 int
21340 main ()
21341 {
21342 return dg_sys_info ();
21343 ;
21344 return 0;
21345 }
21346 _ACEOF
21347 if ac_fn_c_try_link "$LINENO"; then :
21348 ac_cv_lib_dgc_dg_sys_info=yes
21349 else
21350 ac_cv_lib_dgc_dg_sys_info=no
21351 fi
21352 rm -f core conftest.err conftest.$ac_objext \
21353 conftest$ac_exeext conftest.$ac_ext
21354 LIBS=$ac_check_lib_save_LIBS
21355 fi
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21357 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21358 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
21359 cat >>confdefs.h <<_ACEOF
21360 #define HAVE_LIBDGC 1
21361 _ACEOF
21362
21363 LIBS="-ldgc $LIBS"
21364
21365 fi
21366
21367 fi
21368
21369
21370 fi
21371 fi
21372 fi
21373
21374
21375 if test "x$gl_save_LIBS" = x; then
21376 GETLOADAVG_LIBS=$LIBS
21377 else
21378 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21379 fi
21380 LIBS=$gl_save_LIBS
21381
21382
21383 # Test whether the system declares getloadavg. Solaris has the function
21384 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21385 for ac_header in sys/loadavg.h
21386 do :
21387 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21388 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
21389 cat >>confdefs.h <<_ACEOF
21390 #define HAVE_SYS_LOADAVG_H 1
21391 _ACEOF
21392
21393 fi
21394
21395 done
21396
21397 if test $ac_cv_header_sys_loadavg_h = yes; then
21398 HAVE_SYS_LOADAVG_H=1
21399 else
21400 HAVE_SYS_LOADAVG_H=0
21401 fi
21402 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21403 # include <sys/loadavg.h>
21404 #endif
21405 #include <stdlib.h>
21406 "
21407 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
21408
21409 else
21410 HAVE_DECL_GETLOADAVG=0
21411 fi
21412
21413
21414 if test $HAVE_GETLOADAVG = 0; then
21415
21416
21417
21418
21419
21420
21421
21422
21423 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
21424
21425
21426 # Figure out what our getloadavg.c needs.
21427
21428
21429
21430 # On HPUX9, an unprivileged user can get load averages this way.
21431 if test $gl_func_getloadavg_done = no; then
21432 for ac_func in pstat_getdynamic
21433 do :
21434 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21435 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
21436 cat >>confdefs.h <<_ACEOF
21437 #define HAVE_PSTAT_GETDYNAMIC 1
21438 _ACEOF
21439 gl_func_getloadavg_done=yes
21440 fi
21441 done
21442
21443 fi
21444
21445 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21446 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21447 # Irix 4.0.5F has the header but not the library.
21448 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
21449 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21450 gl_func_getloadavg_done=yes
21451
21452 $as_echo "#define SVR4 1" >>confdefs.h
21453
21454 fi
21455
21456 if test $gl_func_getloadavg_done = no; then
21457 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21458 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
21459 gl_func_getloadavg_done=yes
21460
21461 $as_echo "#define UMAX 1" >>confdefs.h
21462
21463
21464 $as_echo "#define UMAX4_3 1" >>confdefs.h
21465
21466 fi
21467
21468
21469 fi
21470
21471 if test $gl_func_getloadavg_done = no; then
21472 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21473 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
21474 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
21475
21476 fi
21477
21478
21479 fi
21480
21481 if test $gl_func_getloadavg_done = no; then
21482 for ac_header in mach/mach.h
21483 do :
21484 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21485 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
21486 cat >>confdefs.h <<_ACEOF
21487 #define HAVE_MACH_MACH_H 1
21488 _ACEOF
21489
21490 fi
21491
21492 done
21493
21494 fi
21495
21496 for ac_header in nlist.h
21497 do :
21498 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21499 if test "x$ac_cv_header_nlist_h" = x""yes; then :
21500 cat >>confdefs.h <<_ACEOF
21501 #define HAVE_NLIST_H 1
21502 _ACEOF
21503 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21504 "
21505 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
21506
21507 cat >>confdefs.h <<_ACEOF
21508 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21509 _ACEOF
21510
21511
21512 fi
21513
21514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21515 /* end confdefs.h. */
21516 #include <nlist.h>
21517 int
21518 main ()
21519 {
21520 struct nlist x;
21521 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21522 x.n_un.n_name = "";
21523 #else
21524 x.n_name = "";
21525 #endif
21526 ;
21527 return 0;
21528 }
21529 _ACEOF
21530 if ac_fn_c_try_link "$LINENO"; then :
21531
21532 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21533
21534 fi
21535 rm -f core conftest.err conftest.$ac_objext \
21536 conftest$ac_exeext conftest.$ac_ext
21537
21538 fi
21539
21540 done
21541
21542 fi
21543
21544
21545
21546
21547
21548 GNULIB_GETLOADAVG=1
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559 if test $REPLACE_GETOPT = 1; then
21560
21561
21562
21563
21564
21565
21566
21567
21568 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21579
21580
21581
21582
21583 GNULIB_GL_UNISTD_H_GETOPT=1
21584 fi
21585
21586
21587
21588
21589
21590
21591
21592 REPLACE_GETOPT=0
21593 if test -n "$gl_replace_getopt"; then
21594 REPLACE_GETOPT=1
21595 fi
21596
21597 if test $REPLACE_GETOPT = 1; then
21598
21599 GETOPT_H=getopt.h
21600
21601 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21602
21603
21604
21605 fi
21606
21607 if test $REPLACE_GETOPT = 1; then
21608
21609
21610
21611
21612
21613
21614
21615
21616 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21627
21628
21629
21630
21631 GNULIB_GL_UNISTD_H_GETOPT=1
21632 fi
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645 gl_gettimeofday_timezone=void
21646 if test $ac_cv_func_gettimeofday != yes; then
21647 HAVE_GETTIMEOFDAY=0
21648 else
21649
21650
21651
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21653 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21654 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21655 $as_echo_n "(cached) " >&6
21656 else
21657 if test "$cross_compiling" = yes; then :
21658 # When cross-compiling:
21659 case "$host_os" in
21660 # Guess all is fine on glibc systems.
21661 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21662 # If we don't know, assume the worst.
21663 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21664 esac
21665
21666 else
21667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21668 /* end confdefs.h. */
21669 #include <string.h>
21670 #include <sys/time.h>
21671 #include <time.h>
21672 #include <stdlib.h>
21673
21674 int
21675 main ()
21676 {
21677
21678 time_t t = 0;
21679 struct tm *lt;
21680 struct tm saved_lt;
21681 struct timeval tv;
21682 lt = localtime (&t);
21683 saved_lt = *lt;
21684 gettimeofday (&tv, NULL);
21685 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21686
21687 ;
21688 return 0;
21689 }
21690 _ACEOF
21691 if ac_fn_c_try_run "$LINENO"; then :
21692 gl_cv_func_gettimeofday_clobber=no
21693 else
21694 gl_cv_func_gettimeofday_clobber=yes
21695 fi
21696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21697 conftest.$ac_objext conftest.beam conftest.$ac_ext
21698 fi
21699
21700 fi
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21702 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21703
21704 case "$gl_cv_func_gettimeofday_clobber" in
21705 *yes)
21706 REPLACE_GETTIMEOFDAY=1
21707
21708
21709 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21710
21711
21712 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21713
21714
21715
21716 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21717
21718 ;;
21719 esac
21720
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21722 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21723 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21724 $as_echo_n "(cached) " >&6
21725 else
21726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21727 /* end confdefs.h. */
21728 #include <sys/time.h>
21729 struct timeval c;
21730 int gettimeofday (struct timeval *restrict, void *restrict);
21731
21732 int
21733 main ()
21734 {
21735 /* glibc uses struct timezone * rather than the POSIX void *
21736 if _GNU_SOURCE is defined. However, since the only portable
21737 use of gettimeofday uses NULL as the second parameter, and
21738 since the glibc definition is actually more typesafe, it is
21739 not worth wrapping this to get a compliant signature. */
21740 int (*f) (struct timeval *restrict, void *restrict)
21741 = gettimeofday;
21742 int x = f (&c, 0);
21743 return !(x | c.tv_sec | c.tv_usec);
21744
21745 ;
21746 return 0;
21747 }
21748 _ACEOF
21749 if ac_fn_c_try_compile "$LINENO"; then :
21750 gl_cv_func_gettimeofday_posix_signature=yes
21751 else
21752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21753 /* end confdefs.h. */
21754 #include <sys/time.h>
21755 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21756
21757 int
21758 main ()
21759 {
21760
21761 ;
21762 return 0;
21763 }
21764 _ACEOF
21765 if ac_fn_c_try_compile "$LINENO"; then :
21766 gl_cv_func_gettimeofday_posix_signature=almost
21767 else
21768 gl_cv_func_gettimeofday_posix_signature=no
21769 fi
21770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21771 fi
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773 fi
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21775 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21776 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21777 gl_gettimeofday_timezone='struct timezone'
21778 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21779 REPLACE_GETTIMEOFDAY=1
21780 fi
21781 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21782 REPLACE_GETTIMEOFDAY=1
21783 fi
21784
21785 fi
21786
21787 cat >>confdefs.h <<_ACEOF
21788 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21789 _ACEOF
21790
21791
21792 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21793
21794
21795
21796
21797
21798
21799
21800
21801 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21802
21803
21804 for ac_header in sys/timeb.h
21805 do :
21806 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21807 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
21808 cat >>confdefs.h <<_ACEOF
21809 #define HAVE_SYS_TIMEB_H 1
21810 _ACEOF
21811
21812 fi
21813
21814 done
21815
21816 for ac_func in _ftime
21817 do :
21818 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21819 if test "x$ac_cv_func__ftime" = x""yes; then :
21820 cat >>confdefs.h <<_ACEOF
21821 #define HAVE__FTIME 1
21822 _ACEOF
21823
21824 fi
21825 done
21826
21827
21828 fi
21829
21830
21831
21832
21833
21834 GNULIB_GETTIMEOFDAY=1
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845 if test $ac_cv_func_lstat = yes; then
21846
21847 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21848 *no)
21849 REPLACE_LSTAT=1
21850 ;;
21851 esac
21852 else
21853 HAVE_LSTAT=0
21854 fi
21855
21856 if test $REPLACE_LSTAT = 1; then
21857
21858
21859
21860
21861
21862
21863
21864
21865 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
21866
21867 :
21868 fi
21869
21870
21871
21872
21873
21874 GNULIB_LSTAT=1
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886 if test $APPLE_UNIVERSAL_BUILD = 1; then
21887 # A universal build on Apple Mac OS X platforms.
21888 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21889 # But we need a configuration result that is valid in both modes.
21890 gl_cv_func_working_mktime=no
21891 fi
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21893 $as_echo_n "checking for working mktime... " >&6; }
21894 if test "${gl_cv_func_working_mktime+set}" = set; then :
21895 $as_echo_n "(cached) " >&6
21896 else
21897 if test "$cross_compiling" = yes; then :
21898 gl_cv_func_working_mktime=no
21899 else
21900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21901 /* end confdefs.h. */
21902 /* Test program from Paul Eggert and Tony Leneis. */
21903 #include <limits.h>
21904 #include <stdlib.h>
21905 #include <time.h>
21906
21907 #ifdef HAVE_UNISTD_H
21908 # include <unistd.h>
21909 #endif
21910
21911 #ifndef HAVE_ALARM
21912 # define alarm(X) /* empty */
21913 #endif
21914
21915 /* Work around redefinition to rpl_putenv by other config tests. */
21916 #undef putenv
21917
21918 static time_t time_t_max;
21919 static time_t time_t_min;
21920
21921 /* Values we'll use to set the TZ environment variable. */
21922 static char *tz_strings[] = {
21923 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21924 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21925 };
21926 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21927
21928 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21929 Based on a problem report from Andreas Jaeger. */
21930 static int
21931 spring_forward_gap ()
21932 {
21933 /* glibc (up to about 1998-10-07) failed this test. */
21934 struct tm tm;
21935
21936 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21937 instead of "TZ=America/Vancouver" in order to detect the bug even
21938 on systems that don't support the Olson extension, or don't have the
21939 full zoneinfo tables installed. */
21940 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21941
21942 tm.tm_year = 98;
21943 tm.tm_mon = 3;
21944 tm.tm_mday = 5;
21945 tm.tm_hour = 2;
21946 tm.tm_min = 0;
21947 tm.tm_sec = 0;
21948 tm.tm_isdst = -1;
21949 return mktime (&tm) != (time_t) -1;
21950 }
21951
21952 static int
21953 mktime_test1 (time_t now)
21954 {
21955 struct tm *lt;
21956 return ! (lt = localtime (&now)) || mktime (lt) == now;
21957 }
21958
21959 static int
21960 mktime_test (time_t now)
21961 {
21962 return (mktime_test1 (now)
21963 && mktime_test1 ((time_t) (time_t_max - now))
21964 && mktime_test1 ((time_t) (time_t_min + now)));
21965 }
21966
21967 static int
21968 irix_6_4_bug ()
21969 {
21970 /* Based on code from Ariel Faigon. */
21971 struct tm tm;
21972 tm.tm_year = 96;
21973 tm.tm_mon = 3;
21974 tm.tm_mday = 0;
21975 tm.tm_hour = 0;
21976 tm.tm_min = 0;
21977 tm.tm_sec = 0;
21978 tm.tm_isdst = -1;
21979 mktime (&tm);
21980 return tm.tm_mon == 2 && tm.tm_mday == 31;
21981 }
21982
21983 static int
21984 bigtime_test (int j)
21985 {
21986 struct tm tm;
21987 time_t now;
21988 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21989 now = mktime (&tm);
21990 if (now != (time_t) -1)
21991 {
21992 struct tm *lt = localtime (&now);
21993 if (! (lt
21994 && lt->tm_year == tm.tm_year
21995 && lt->tm_mon == tm.tm_mon
21996 && lt->tm_mday == tm.tm_mday
21997 && lt->tm_hour == tm.tm_hour
21998 && lt->tm_min == tm.tm_min
21999 && lt->tm_sec == tm.tm_sec
22000 && lt->tm_yday == tm.tm_yday
22001 && lt->tm_wday == tm.tm_wday
22002 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22003 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22004 return 0;
22005 }
22006 return 1;
22007 }
22008
22009 static int
22010 year_2050_test ()
22011 {
22012 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22013 ignoring leap seconds. */
22014 unsigned long int answer = 2527315200UL;
22015
22016 struct tm tm;
22017 time_t t;
22018 tm.tm_year = 2050 - 1900;
22019 tm.tm_mon = 2 - 1;
22020 tm.tm_mday = 1;
22021 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22022 tm.tm_isdst = -1;
22023
22024 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22025 instead of "TZ=America/Vancouver" in order to detect the bug even
22026 on systems that don't support the Olson extension, or don't have the
22027 full zoneinfo tables installed. */
22028 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22029
22030 t = mktime (&tm);
22031
22032 /* Check that the result is either a failure, or close enough
22033 to the correct answer that we can assume the discrepancy is
22034 due to leap seconds. */
22035 return (t == (time_t) -1
22036 || (0 < t && answer - 120 <= t && t <= answer + 120));
22037 }
22038
22039 int
22040 main ()
22041 {
22042 int result = 0;
22043 time_t t, delta;
22044 int i, j;
22045 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
22046 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
22047
22048 /* This test makes some buggy mktime implementations loop.
22049 Give up after 60 seconds; a mktime slower than that
22050 isn't worth using anyway. */
22051 alarm (60);
22052
22053 time_t_max = (! time_t_signed
22054 ? (time_t) -1
22055 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
22056 * 2 + 1));
22057 time_t_min = (! time_t_signed
22058 ? (time_t) 0
22059 : time_t_signed_magnitude
22060 ? ~ (time_t) 0
22061 : ~ time_t_max);
22062
22063 delta = time_t_max / 997; /* a suitable prime number */
22064 for (i = 0; i < N_STRINGS; i++)
22065 {
22066 if (tz_strings[i])
22067 putenv (tz_strings[i]);
22068
22069 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
22070 if (! mktime_test (t))
22071 result |= 1;
22072 if ((result & 2) == 0
22073 && ! (mktime_test ((time_t) 1)
22074 && mktime_test ((time_t) (60 * 60))
22075 && mktime_test ((time_t) (60 * 60 * 24))))
22076 result |= 2;
22077
22078 for (j = 1; (result & 4) == 0; j <<= 1)
22079 {
22080 if (! bigtime_test (j))
22081 result |= 4;
22082 if (INT_MAX / 2 < j)
22083 break;
22084 }
22085 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
22086 result |= 8;
22087 }
22088 if (! irix_6_4_bug ())
22089 result |= 16;
22090 if (! spring_forward_gap ())
22091 result |= 32;
22092 if (! year_2050_test ())
22093 result |= 64;
22094 return result;
22095 }
22096 _ACEOF
22097 if ac_fn_c_try_run "$LINENO"; then :
22098 gl_cv_func_working_mktime=yes
22099 else
22100 gl_cv_func_working_mktime=no
22101 fi
22102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22103 conftest.$ac_objext conftest.beam conftest.$ac_ext
22104 fi
22105
22106
22107 fi
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22109 $as_echo "$gl_cv_func_working_mktime" >&6; }
22110
22111 if test $gl_cv_func_working_mktime = no; then
22112 REPLACE_MKTIME=1
22113 else
22114 REPLACE_MKTIME=0
22115 fi
22116
22117 if test $REPLACE_MKTIME = 1; then
22118
22119
22120
22121
22122
22123
22124
22125
22126 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
22127
22128 :
22129 fi
22130
22131
22132
22133
22134
22135 GNULIB_MKTIME=1
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147 if test $ac_cv_func_pselect = yes; then
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22149 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22150 if test "${gl_cv_sig_pselect+set}" = set; then :
22151 $as_echo_n "(cached) " >&6
22152 else
22153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h. */
22155 #include <sys/select.h>
22156
22157 int
22158 main ()
22159 {
22160 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22161 struct timespec const *restrict,
22162 sigset_t const *restrict) = pselect;
22163 return !p;
22164 ;
22165 return 0;
22166 }
22167 _ACEOF
22168 if ac_fn_c_try_link "$LINENO"; then :
22169 gl_cv_sig_pselect=yes
22170 else
22171 gl_cv_sig_pselect=no
22172 fi
22173 rm -f core conftest.err conftest.$ac_objext \
22174 conftest$ac_exeext conftest.$ac_ext
22175 fi
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22177 $as_echo "$gl_cv_sig_pselect" >&6; }
22178
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22180 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22181 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22182 $as_echo_n "(cached) " >&6
22183 else
22184
22185 if test "$cross_compiling" = yes; then :
22186
22187 case "$host_os" in
22188 # Guess yes on glibc systems.
22189 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
22190 # If we don't know, assume the worst.
22191 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
22192 esac
22193
22194 else
22195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22196 /* end confdefs.h. */
22197
22198 #include <sys/types.h>
22199 #include <sys/time.h>
22200 #if HAVE_SYS_SELECT_H
22201 # include <sys/select.h>
22202 #endif
22203 #include <unistd.h>
22204 #include <errno.h>
22205
22206 int
22207 main ()
22208 {
22209
22210 fd_set set;
22211 dup2(0, 16);
22212 FD_ZERO(&set);
22213 FD_SET(16, &set);
22214 close(16);
22215 struct timespec timeout;
22216 timeout.tv_sec = 0;
22217 timeout.tv_nsec = 5000;
22218 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22219
22220 ;
22221 return 0;
22222 }
22223 _ACEOF
22224 if ac_fn_c_try_run "$LINENO"; then :
22225 gl_cv_func_pselect_detects_ebadf=yes
22226 else
22227 gl_cv_func_pselect_detects_ebadf=no
22228 fi
22229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22230 conftest.$ac_objext conftest.beam conftest.$ac_ext
22231 fi
22232
22233
22234 fi
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22236 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22237 case $gl_cv_func_pselect_detects_ebadf in
22238 *yes) ;;
22239 *) REPLACE_PSELECT=1 ;;
22240 esac
22241 fi
22242
22243 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
22244 REPLACE_PSELECT=1
22245 fi
22246
22247 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
22248
22249
22250
22251
22252
22253
22254
22255
22256 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
22257
22258 fi
22259
22260
22261
22262
22263
22264 GNULIB_PSELECT=1
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274 LIB_PTHREAD_SIGMASK=
22275
22276
22277
22278
22279 if test "$gl_threads_api" = posix; then
22280 if test $ac_cv_func_pthread_sigmask = yes; then
22281 :
22282 else
22283 if test -n "$LIBMULTITHREAD"; then
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22285 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22286 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22287 $as_echo_n "(cached) " >&6
22288 else
22289 gl_save_LIBS="$LIBS"
22290 LIBS="$LIBS $LIBMULTITHREAD"
22291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22292 /* end confdefs.h. */
22293 #include <pthread.h>
22294 #include <signal.h>
22295
22296 int
22297 main ()
22298 {
22299 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22300 ;
22301 return 0;
22302 }
22303
22304 _ACEOF
22305 if ac_fn_c_try_link "$LINENO"; then :
22306 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
22307 else
22308 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
22309 fi
22310 rm -f core conftest.err conftest.$ac_objext \
22311 conftest$ac_exeext conftest.$ac_ext
22312 LIBS="$gl_save_LIBS"
22313
22314 fi
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22316 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22317 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22318 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
22319 else
22320 HAVE_PTHREAD_SIGMASK=0
22321 fi
22322 else
22323 HAVE_PTHREAD_SIGMASK=0
22324 fi
22325 fi
22326 else
22327 if test $ac_cv_func_pthread_sigmask = yes; then
22328 REPLACE_PTHREAD_SIGMASK=1
22329 else
22330 HAVE_PTHREAD_SIGMASK=0
22331 fi
22332 fi
22333
22334
22335
22336
22337 if test $HAVE_PTHREAD_SIGMASK = 1; then
22338
22339
22340 if test -z "$LIB_PTHREAD_SIGMASK"; then
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22342 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22343 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22344 $as_echo_n "(cached) " >&6
22345 else
22346
22347 if test "$cross_compiling" = yes; then :
22348
22349 case "$host_os" in
22350 freebsd* | hpux* | solaris | solaris2.[2-9]*)
22351 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
22352 *)
22353 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
22354 esac
22355
22356 else
22357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22358 /* end confdefs.h. */
22359
22360 #include <pthread.h>
22361 #include <signal.h>
22362 #include <stddef.h>
22363 int main ()
22364 {
22365 sigset_t set;
22366 sigemptyset (&set);
22367 return pthread_sigmask (1729, &set, NULL) != 0;
22368 }
22369 _ACEOF
22370 if ac_fn_c_try_run "$LINENO"; then :
22371 gl_cv_func_pthread_sigmask_in_libc_works=no
22372 else
22373 gl_cv_func_pthread_sigmask_in_libc_works=yes
22374 fi
22375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22376 conftest.$ac_objext conftest.beam conftest.$ac_ext
22377 fi
22378
22379
22380 fi
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22382 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22383 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22384 *no)
22385 REPLACE_PTHREAD_SIGMASK=1
22386
22387 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22388
22389 ;;
22390 esac
22391 fi
22392
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22394 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22395 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22396 $as_echo_n "(cached) " >&6
22397 else
22398
22399 gl_save_LIBS="$LIBS"
22400 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
22401 if test "$cross_compiling" = yes; then :
22402 case "$host_os" in
22403 cygwin*)
22404 gl_cv_func_pthread_sigmask_return_works="guessing no";;
22405 *)
22406 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
22407 esac
22408
22409 else
22410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22411 /* end confdefs.h. */
22412
22413 #include <pthread.h>
22414 #include <signal.h>
22415 #include <stddef.h>
22416 int main ()
22417 {
22418 sigset_t set;
22419 sigemptyset (&set);
22420 if (pthread_sigmask (1729, &set, NULL) == -1)
22421 return 1;
22422 return 0;
22423 }
22424 _ACEOF
22425 if ac_fn_c_try_run "$LINENO"; then :
22426 gl_cv_func_pthread_sigmask_return_works=yes
22427 else
22428 gl_cv_func_pthread_sigmask_return_works=no
22429 fi
22430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22431 conftest.$ac_objext conftest.beam conftest.$ac_ext
22432 fi
22433
22434 LIBS="$gl_save_LIBS"
22435
22436 fi
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22438 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22439 case "$gl_cv_func_pthread_sigmask_return_works" in
22440 *no)
22441 REPLACE_PTHREAD_SIGMASK=1
22442
22443 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22444
22445 ;;
22446 esac
22447
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22449 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22450 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22451 $as_echo_n "(cached) " >&6
22452 else
22453
22454 case "$host_os" in
22455 irix*)
22456 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
22457 *)
22458 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
22459 esac
22460 gl_save_LIBS="$LIBS"
22461 LIBS="$LIBS $LIBMULTITHREAD"
22462 if test "$cross_compiling" = yes; then :
22463 :
22464 else
22465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22466 /* end confdefs.h. */
22467
22468 #include <pthread.h>
22469 #include <signal.h>
22470 #include <stdio.h>
22471 #include <stdlib.h>
22472 #include <unistd.h>
22473 static volatile int sigint_occurred;
22474 static void
22475 sigint_handler (int sig)
22476 {
22477 sigint_occurred++;
22478 }
22479 int main ()
22480 {
22481 sigset_t set;
22482 int pid = getpid ();
22483 char command[80];
22484 signal (SIGINT, sigint_handler);
22485 sigemptyset (&set);
22486 sigaddset (&set, SIGINT);
22487 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22488 return 1;
22489 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22490 if (!(system (command) == 0))
22491 return 2;
22492 sleep (2);
22493 if (!(sigint_occurred == 0))
22494 return 3;
22495 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22496 return 4;
22497 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22498 return 5;
22499 return 0;
22500 }
22501 _ACEOF
22502 if ac_fn_c_try_run "$LINENO"; then :
22503 :
22504 else
22505 gl_cv_func_pthread_sigmask_unblock_works=no
22506 fi
22507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22508 conftest.$ac_objext conftest.beam conftest.$ac_ext
22509 fi
22510
22511 LIBS="$gl_save_LIBS"
22512
22513 fi
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22515 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22516 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22517 *no)
22518 REPLACE_PTHREAD_SIGMASK=1
22519
22520 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22521
22522 ;;
22523 esac
22524 fi
22525
22526 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22527
22528
22529
22530
22531
22532
22533
22534
22535 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22536
22537
22538 if test $HAVE_PTHREAD_SIGMASK = 1; then
22539
22540 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22541
22542 fi
22543
22544 fi
22545
22546
22547
22548
22549
22550 GNULIB_PTHREAD_SIGMASK=1
22551
22552
22553
22554
22555
22556
22557
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
22559 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
22560 if test "${gl_cv_func_svid_putenv+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22562 else
22563 if test "$cross_compiling" = yes; then :
22564 case "$host_os" in
22565 # Guess yes on glibc systems.
22566 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
22567 # If we don't know, assume the worst.
22568 *) gl_cv_func_svid_putenv="guessing no" ;;
22569 esac
22570
22571 else
22572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22573 /* end confdefs.h. */
22574 $ac_includes_default
22575 int
22576 main ()
22577 {
22578
22579 /* Put it in env. */
22580 if (putenv ("CONFTEST_putenv=val"))
22581 return 1;
22582
22583 /* Try to remove it. */
22584 if (putenv ("CONFTEST_putenv"))
22585 return 2;
22586
22587 /* Make sure it was deleted. */
22588 if (getenv ("CONFTEST_putenv") != 0)
22589 return 3;
22590
22591 return 0;
22592
22593 ;
22594 return 0;
22595 }
22596 _ACEOF
22597 if ac_fn_c_try_run "$LINENO"; then :
22598 gl_cv_func_svid_putenv=yes
22599 else
22600 gl_cv_func_svid_putenv=no
22601 fi
22602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22603 conftest.$ac_objext conftest.beam conftest.$ac_ext
22604 fi
22605
22606
22607 fi
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
22609 $as_echo "$gl_cv_func_svid_putenv" >&6; }
22610 case "$gl_cv_func_svid_putenv" in
22611 *yes) ;;
22612 *)
22613 REPLACE_PUTENV=1
22614 ;;
22615 esac
22616
22617 if test $REPLACE_PUTENV = 1; then
22618
22619
22620
22621
22622
22623
22624
22625
22626 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
22627
22628 fi
22629
22630
22631
22632
22633
22634 GNULIB_PUTENV=1
22635
22636
22637
22638
22639
22640
22641
22642
22643 if test $ac_cv_func_readlink = no; then
22644 HAVE_READLINK=0
22645 else
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22647 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22648 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22649 $as_echo_n "(cached) " >&6
22650 else
22651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652 /* end confdefs.h. */
22653 #include <unistd.h>
22654 /* Cause compilation failure if original declaration has wrong type. */
22655 ssize_t readlink (const char *, char *, size_t);
22656 int
22657 main ()
22658 {
22659
22660 ;
22661 return 0;
22662 }
22663 _ACEOF
22664 if ac_fn_c_try_compile "$LINENO"; then :
22665 gl_cv_decl_readlink_works=yes
22666 else
22667 gl_cv_decl_readlink_works=no
22668 fi
22669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22670 fi
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22672 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22674 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22675 if test "${gl_cv_func_readlink_works+set}" = set; then :
22676 $as_echo_n "(cached) " >&6
22677 else
22678 # We have readlink, so assume ln -s works.
22679 ln -s conftest.no-such conftest.link
22680 ln -s conftest.link conftest.lnk2
22681 if test "$cross_compiling" = yes; then :
22682 case "$host_os" in
22683 # Guess yes on glibc systems.
22684 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
22685 # If we don't know, assume the worst.
22686 *) gl_cv_func_readlink_works="guessing no" ;;
22687 esac
22688
22689 else
22690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22691 /* end confdefs.h. */
22692 #include <unistd.h>
22693
22694 int
22695 main ()
22696 {
22697 char buf[20];
22698 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22699 ;
22700 return 0;
22701 }
22702 _ACEOF
22703 if ac_fn_c_try_run "$LINENO"; then :
22704 gl_cv_func_readlink_works=yes
22705 else
22706 gl_cv_func_readlink_works=no
22707 fi
22708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22709 conftest.$ac_objext conftest.beam conftest.$ac_ext
22710 fi
22711
22712 rm -f conftest.link conftest.lnk2
22713 fi
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22715 $as_echo "$gl_cv_func_readlink_works" >&6; }
22716 case "$gl_cv_func_readlink_works" in
22717 *yes)
22718 if test "$gl_cv_decl_readlink_works" != yes; then
22719 REPLACE_READLINK=1
22720 fi
22721 ;;
22722 *)
22723
22724 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22725
22726 REPLACE_READLINK=1
22727 ;;
22728 esac
22729 fi
22730
22731 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22732
22733
22734
22735
22736
22737
22738
22739
22740 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22741
22742
22743 :
22744
22745 fi
22746
22747
22748
22749
22750
22751 GNULIB_READLINK=1
22752
22753
22754
22755
22756
22757
22758 for ac_func in sig2str
22759 do :
22760 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
22761 if test "x$ac_cv_func_sig2str" = x""yes; then :
22762 cat >>confdefs.h <<_ACEOF
22763 #define HAVE_SIG2STR 1
22764 _ACEOF
22765
22766 fi
22767 done
22768
22769
22770 if test $ac_cv_func_sig2str = no; then
22771
22772
22773
22774
22775
22776
22777
22778
22779 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
22780
22781
22782 :
22783
22784 fi
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796 if test $gl_cv_have_include_next = yes; then
22797 gl_cv_next_signal_h='<'signal.h'>'
22798 else
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22800 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22801 if test "${gl_cv_next_signal_h+set}" = set; then :
22802 $as_echo_n "(cached) " >&6
22803 else
22804
22805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22806 /* end confdefs.h. */
22807 #include <signal.h>
22808
22809 _ACEOF
22810 case "$host_os" in
22811 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22812 *) gl_absname_cpp="$ac_cpp" ;;
22813 esac
22814
22815 case "$host_os" in
22816 mingw*)
22817 gl_dirsep_regex='[/\\]'
22818 ;;
22819 *)
22820 gl_dirsep_regex='\/'
22821 ;;
22822 esac
22823 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22824
22825 gl_header_literal_regex=`echo 'signal.h' \
22826 | sed -e "$gl_make_literal_regex_sed"`
22827 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22828 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22829 s|^/[^/]|//&|
22830 p
22831 q
22832 }'
22833 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22834 sed -n "$gl_absolute_header_sed"`'"'
22835
22836
22837 fi
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22839 $as_echo "$gl_cv_next_signal_h" >&6; }
22840 fi
22841 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22842
22843 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22844 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22845 gl_next_as_first_directive='<'signal.h'>'
22846 else
22847 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22848 gl_next_as_first_directive=$gl_cv_next_signal_h
22849 fi
22850 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22851
22852
22853
22854
22855
22856 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22857 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22858 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22859 #include <signal.h>
22860
22861 "
22862 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
22863
22864 else
22865 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22866 fi
22867
22868
22869
22870
22871
22872
22873
22874 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22875 #include <signal.h>
22876
22877 "
22878 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
22879
22880 else
22881 HAVE_SIGHANDLER_T=0
22882 fi
22883
22884
22885
22886
22887 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22888 /* <sys/types.h> is not needed according to POSIX, but the
22889 <sys/socket.h> in i386-unknown-freebsd4.10 and
22890 powerpc-apple-darwin5.5 required it. */
22891 #include <sys/types.h>
22892 #if HAVE_SYS_SOCKET_H
22893 # include <sys/socket.h>
22894 #elif HAVE_WS2TCPIP_H
22895 # include <ws2tcpip.h>
22896 #endif
22897
22898 "
22899 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22900
22901 else
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22903 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22904 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22905 $as_echo_n "(cached) " >&6
22906 else
22907 # Systems have either "struct sockaddr *" or
22908 # "void *" as the second argument to getpeername
22909 gl_cv_socklen_t_equiv=
22910 for arg2 in "struct sockaddr" void; do
22911 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22913 /* end confdefs.h. */
22914 #include <sys/types.h>
22915 #include <sys/socket.h>
22916
22917 int getpeername (int, $arg2 *, $t *);
22918 int
22919 main ()
22920 {
22921 $t len;
22922 getpeername (0, 0, &len);
22923 ;
22924 return 0;
22925 }
22926 _ACEOF
22927 if ac_fn_c_try_compile "$LINENO"; then :
22928 gl_cv_socklen_t_equiv="$t"
22929 fi
22930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931 test "$gl_cv_socklen_t_equiv" != "" && break
22932 done
22933 test "$gl_cv_socklen_t_equiv" != "" && break
22934 done
22935
22936 fi
22937
22938 if test "$gl_cv_socklen_t_equiv" = ""; then
22939 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22940 fi
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22942 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22943
22944 cat >>confdefs.h <<_ACEOF
22945 #define socklen_t $gl_cv_socklen_t_equiv
22946 _ACEOF
22947
22948 fi
22949
22950
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22952 $as_echo_n "checking for ssize_t... " >&6; }
22953 if test "${gt_cv_ssize_t+set}" = set; then :
22954 $as_echo_n "(cached) " >&6
22955 else
22956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22957 /* end confdefs.h. */
22958 #include <sys/types.h>
22959 int
22960 main ()
22961 {
22962 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22963 return !x;
22964 ;
22965 return 0;
22966 }
22967 _ACEOF
22968 if ac_fn_c_try_compile "$LINENO"; then :
22969 gt_cv_ssize_t=yes
22970 else
22971 gt_cv_ssize_t=no
22972 fi
22973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22974 fi
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22976 $as_echo "$gt_cv_ssize_t" >&6; }
22977 if test $gt_cv_ssize_t = no; then
22978
22979 $as_echo "#define ssize_t int" >>confdefs.h
22980
22981 fi
22982
22983
22984
22985
22986
22987 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>
22988 #include <sys/stat.h>
22989 "
22990 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22991
22992 cat >>confdefs.h <<_ACEOF
22993 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22994 _ACEOF
22995
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22997 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22998 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22999 $as_echo_n "(cached) " >&6
23000 else
23001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23002 /* end confdefs.h. */
23003
23004 #include <sys/types.h>
23005 #include <sys/stat.h>
23006 #if HAVE_SYS_TIME_H
23007 # include <sys/time.h>
23008 #endif
23009 #include <time.h>
23010 struct timespec ts;
23011 struct stat st;
23012
23013 int
23014 main ()
23015 {
23016
23017 st.st_atim = ts;
23018
23019 ;
23020 return 0;
23021 }
23022 _ACEOF
23023 if ac_fn_c_try_compile "$LINENO"; then :
23024 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
23025 else
23026 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
23027 fi
23028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23029 fi
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23031 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23032 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23033
23034 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23035
23036 fi
23037 else
23038 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>
23039 #include <sys/stat.h>
23040 "
23041 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
23042
23043 cat >>confdefs.h <<_ACEOF
23044 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23045 _ACEOF
23046
23047
23048 else
23049 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23050 #include <sys/stat.h>
23051 "
23052 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
23053
23054 cat >>confdefs.h <<_ACEOF
23055 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23056 _ACEOF
23057
23058
23059 else
23060 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>
23061 #include <sys/stat.h>
23062 "
23063 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
23064
23065 cat >>confdefs.h <<_ACEOF
23066 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23067 _ACEOF
23068
23069
23070 fi
23071
23072 fi
23073
23074 fi
23075
23076 fi
23077
23078
23079
23080
23081
23082 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>
23083 #include <sys/stat.h>
23084 "
23085 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
23086
23087 cat >>confdefs.h <<_ACEOF
23088 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23089 _ACEOF
23090
23091
23092 else
23093 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23094 #include <sys/stat.h>
23095 "
23096 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
23097
23098 cat >>confdefs.h <<_ACEOF
23099 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23100 _ACEOF
23101
23102
23103 else
23104 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>
23105 #include <sys/stat.h>
23106 "
23107 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
23108
23109 cat >>confdefs.h <<_ACEOF
23110 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23111 _ACEOF
23112
23113
23114 fi
23115
23116 fi
23117
23118 fi
23119
23120
23121
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23123 $as_echo_n "checking for working stdalign.h... " >&6; }
23124 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
23125 $as_echo_n "(cached) " >&6
23126 else
23127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23128 /* end confdefs.h. */
23129 #include <stdalign.h>
23130 #include <stddef.h>
23131
23132 /* Test that alignof yields a result consistent with offsetof.
23133 This catches GCC bug 52023
23134 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23135 #ifdef __cplusplus
23136 template <class t> struct alignof_helper { char a; t b; };
23137 # define ao(type) offsetof (alignof_helper<type>, b)
23138 #else
23139 # define ao(type) offsetof (struct { char a; type b; }, b)
23140 #endif
23141 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23142 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23143 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23144
23145 /* Test _Alignas only on platforms where gnulib can help. */
23146 #if \
23147 (__GNUC__ || __IBMC__ || __IBMCPP__ \
23148 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
23149 int alignas (8) alignas_int = 1;
23150 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
23151 #endif
23152
23153 int
23154 main ()
23155 {
23156
23157 ;
23158 return 0;
23159 }
23160 _ACEOF
23161 if ac_fn_c_try_compile "$LINENO"; then :
23162 gl_cv_header_working_stdalign_h=yes
23163 else
23164 gl_cv_header_working_stdalign_h=no
23165 fi
23166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23167 fi
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23169 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23170
23171 if test $gl_cv_header_working_stdalign_h = yes; then
23172 STDALIGN_H=''
23173 else
23174 STDALIGN_H='stdalign.h'
23175 fi
23176
23177
23178 if test -n "$STDALIGN_H"; then
23179 GL_GENERATE_STDALIGN_H_TRUE=
23180 GL_GENERATE_STDALIGN_H_FALSE='#'
23181 else
23182 GL_GENERATE_STDALIGN_H_TRUE='#'
23183 GL_GENERATE_STDALIGN_H_FALSE=
23184 fi
23185
23186
23187
23188 STDARG_H=''
23189 NEXT_STDARG_H='<stdarg.h>'
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23191 $as_echo_n "checking for va_copy... " >&6; }
23192 if test "${gl_cv_func_va_copy+set}" = set; then :
23193 $as_echo_n "(cached) " >&6
23194 else
23195
23196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23197 /* end confdefs.h. */
23198 #include <stdarg.h>
23199 int
23200 main ()
23201 {
23202
23203 #ifndef va_copy
23204 void (*func) (va_list, va_list) = va_copy;
23205 #endif
23206
23207 ;
23208 return 0;
23209 }
23210 _ACEOF
23211 if ac_fn_c_try_compile "$LINENO"; then :
23212 gl_cv_func_va_copy=yes
23213 else
23214 gl_cv_func_va_copy=no
23215 fi
23216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23217 fi
23218
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23220 $as_echo "$gl_cv_func_va_copy" >&6; }
23221 if test $gl_cv_func_va_copy = no; then
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23224 #if defined _AIX && !defined __GNUC__
23225 AIX vaccine
23226 #endif
23227
23228 _ACEOF
23229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23230 $EGREP "vaccine" >/dev/null 2>&1; then :
23231 gl_aixcc=yes
23232 else
23233 gl_aixcc=no
23234 fi
23235 rm -f conftest*
23236
23237 if test $gl_aixcc = yes; then
23238 STDARG_H=stdarg.h
23239
23240
23241
23242
23243
23244
23245
23246
23247 if test $gl_cv_have_include_next = yes; then
23248 gl_cv_next_stdarg_h='<'stdarg.h'>'
23249 else
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23251 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23252 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23253 $as_echo_n "(cached) " >&6
23254 else
23255
23256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23257 /* end confdefs.h. */
23258 #include <stdarg.h>
23259
23260 _ACEOF
23261 case "$host_os" in
23262 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23263 *) gl_absname_cpp="$ac_cpp" ;;
23264 esac
23265
23266 case "$host_os" in
23267 mingw*)
23268 gl_dirsep_regex='[/\\]'
23269 ;;
23270 *)
23271 gl_dirsep_regex='\/'
23272 ;;
23273 esac
23274 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23275
23276 gl_header_literal_regex=`echo 'stdarg.h' \
23277 | sed -e "$gl_make_literal_regex_sed"`
23278 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23279 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23280 s|^/[^/]|//&|
23281 p
23282 q
23283 }'
23284 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23285 sed -n "$gl_absolute_header_sed"`'"'
23286
23287
23288 fi
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23290 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23291 fi
23292 NEXT_STDARG_H=$gl_cv_next_stdarg_h
23293
23294 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23295 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23296 gl_next_as_first_directive='<'stdarg.h'>'
23297 else
23298 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23299 gl_next_as_first_directive=$gl_cv_next_stdarg_h
23300 fi
23301 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
23302
23303
23304
23305
23306 if test "$gl_cv_next_stdarg_h" = '""'; then
23307 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
23308 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
23309 fi
23310 else
23311
23312 saved_as_echo_n="$as_echo_n"
23313 as_echo_n=':'
23314 if test "${gl_cv_func___va_copy+set}" = set; then :
23315 $as_echo_n "(cached) " >&6
23316 else
23317
23318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23319 /* end confdefs.h. */
23320 #include <stdarg.h>
23321 int
23322 main ()
23323 {
23324
23325 #ifndef __va_copy
23326 error, bail out
23327 #endif
23328
23329 ;
23330 return 0;
23331 }
23332 _ACEOF
23333 if ac_fn_c_try_compile "$LINENO"; then :
23334 gl_cv_func___va_copy=yes
23335 else
23336 gl_cv_func___va_copy=no
23337 fi
23338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23339 fi
23340
23341 as_echo_n="$saved_as_echo_n"
23342
23343 if test $gl_cv_func___va_copy = yes; then
23344
23345 $as_echo "#define va_copy __va_copy" >>confdefs.h
23346
23347 else
23348
23349
23350 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23351
23352 fi
23353 fi
23354 fi
23355
23356 if test -n "$STDARG_H"; then
23357 GL_GENERATE_STDARG_H_TRUE=
23358 GL_GENERATE_STDARG_H_FALSE='#'
23359 else
23360 GL_GENERATE_STDARG_H_TRUE='#'
23361 GL_GENERATE_STDARG_H_FALSE=
23362 fi
23363
23364
23365
23366
23367
23368
23369 # Define two additional variables used in the Makefile substitution.
23370
23371 if test "$ac_cv_header_stdbool_h" = yes; then
23372 STDBOOL_H=''
23373 else
23374 STDBOOL_H='stdbool.h'
23375 fi
23376
23377 if test -n "$STDBOOL_H"; then
23378 GL_GENERATE_STDBOOL_H_TRUE=
23379 GL_GENERATE_STDBOOL_H_FALSE='#'
23380 else
23381 GL_GENERATE_STDBOOL_H_TRUE='#'
23382 GL_GENERATE_STDBOOL_H_FALSE=
23383 fi
23384
23385
23386 if test "$ac_cv_type__Bool" = yes; then
23387 HAVE__BOOL=1
23388 else
23389 HAVE__BOOL=0
23390 fi
23391
23392
23393
23394
23395
23396 STDDEF_H=
23397 if test $gt_cv_c_wchar_t = no; then
23398 HAVE_WCHAR_T=0
23399 STDDEF_H=stddef.h
23400 fi
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23402 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23403 if test "${gl_cv_decl_null_works+set}" = set; then :
23404 $as_echo_n "(cached) " >&6
23405 else
23406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23407 /* end confdefs.h. */
23408 #include <stddef.h>
23409 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23410
23411 int
23412 main ()
23413 {
23414
23415 ;
23416 return 0;
23417 }
23418 _ACEOF
23419 if ac_fn_c_try_compile "$LINENO"; then :
23420 gl_cv_decl_null_works=yes
23421 else
23422 gl_cv_decl_null_works=no
23423 fi
23424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23425 fi
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23427 $as_echo "$gl_cv_decl_null_works" >&6; }
23428 if test $gl_cv_decl_null_works = no; then
23429 REPLACE_NULL=1
23430 STDDEF_H=stddef.h
23431 fi
23432
23433 if test -n "$STDDEF_H"; then
23434 GL_GENERATE_STDDEF_H_TRUE=
23435 GL_GENERATE_STDDEF_H_FALSE='#'
23436 else
23437 GL_GENERATE_STDDEF_H_TRUE='#'
23438 GL_GENERATE_STDDEF_H_FALSE=
23439 fi
23440
23441 if test -n "$STDDEF_H"; then
23442
23443
23444
23445
23446
23447
23448
23449
23450 if test $gl_cv_have_include_next = yes; then
23451 gl_cv_next_stddef_h='<'stddef.h'>'
23452 else
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23454 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23455 if test "${gl_cv_next_stddef_h+set}" = set; then :
23456 $as_echo_n "(cached) " >&6
23457 else
23458
23459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23460 /* end confdefs.h. */
23461 #include <stddef.h>
23462
23463 _ACEOF
23464 case "$host_os" in
23465 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23466 *) gl_absname_cpp="$ac_cpp" ;;
23467 esac
23468
23469 case "$host_os" in
23470 mingw*)
23471 gl_dirsep_regex='[/\\]'
23472 ;;
23473 *)
23474 gl_dirsep_regex='\/'
23475 ;;
23476 esac
23477 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23478
23479 gl_header_literal_regex=`echo 'stddef.h' \
23480 | sed -e "$gl_make_literal_regex_sed"`
23481 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23482 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23483 s|^/[^/]|//&|
23484 p
23485 q
23486 }'
23487 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23488 sed -n "$gl_absolute_header_sed"`'"'
23489
23490
23491 fi
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23493 $as_echo "$gl_cv_next_stddef_h" >&6; }
23494 fi
23495 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23496
23497 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23498 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23499 gl_next_as_first_directive='<'stddef.h'>'
23500 else
23501 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23502 gl_next_as_first_directive=$gl_cv_next_stddef_h
23503 fi
23504 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23505
23506
23507
23508
23509 fi
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522 if test $gl_cv_have_include_next = yes; then
23523 gl_cv_next_stdio_h='<'stdio.h'>'
23524 else
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23526 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23527 if test "${gl_cv_next_stdio_h+set}" = set; then :
23528 $as_echo_n "(cached) " >&6
23529 else
23530
23531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23532 /* end confdefs.h. */
23533 #include <stdio.h>
23534
23535 _ACEOF
23536 case "$host_os" in
23537 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23538 *) gl_absname_cpp="$ac_cpp" ;;
23539 esac
23540
23541 case "$host_os" in
23542 mingw*)
23543 gl_dirsep_regex='[/\\]'
23544 ;;
23545 *)
23546 gl_dirsep_regex='\/'
23547 ;;
23548 esac
23549 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23550
23551 gl_header_literal_regex=`echo 'stdio.h' \
23552 | sed -e "$gl_make_literal_regex_sed"`
23553 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23554 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23555 s|^/[^/]|//&|
23556 p
23557 q
23558 }'
23559 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23560 sed -n "$gl_absolute_header_sed"`'"'
23561
23562
23563 fi
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23565 $as_echo "$gl_cv_next_stdio_h" >&6; }
23566 fi
23567 NEXT_STDIO_H=$gl_cv_next_stdio_h
23568
23569 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23570 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23571 gl_next_as_first_directive='<'stdio.h'>'
23572 else
23573 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23574 gl_next_as_first_directive=$gl_cv_next_stdio_h
23575 fi
23576 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23577
23578
23579
23580
23581
23582 GNULIB_FSCANF=1
23583
23584
23585 cat >>confdefs.h <<_ACEOF
23586 #define GNULIB_FSCANF 1
23587 _ACEOF
23588
23589
23590 GNULIB_SCANF=1
23591
23592
23593 cat >>confdefs.h <<_ACEOF
23594 #define GNULIB_SCANF 1
23595 _ACEOF
23596
23597
23598 GNULIB_FGETC=1
23599 GNULIB_GETC=1
23600 GNULIB_GETCHAR=1
23601 GNULIB_FGETS=1
23602 GNULIB_FREAD=1
23603
23604
23605 GNULIB_FPRINTF=1
23606 GNULIB_PRINTF=1
23607 GNULIB_VFPRINTF=1
23608 GNULIB_VPRINTF=1
23609 GNULIB_FPUTC=1
23610 GNULIB_PUTC=1
23611 GNULIB_PUTCHAR=1
23612 GNULIB_FPUTS=1
23613 GNULIB_PUTS=1
23614 GNULIB_FWRITE=1
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630 if test $gl_cv_have_include_next = yes; then
23631 gl_cv_next_stdlib_h='<'stdlib.h'>'
23632 else
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23634 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23635 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23636 $as_echo_n "(cached) " >&6
23637 else
23638
23639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23640 /* end confdefs.h. */
23641 #include <stdlib.h>
23642
23643 _ACEOF
23644 case "$host_os" in
23645 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23646 *) gl_absname_cpp="$ac_cpp" ;;
23647 esac
23648
23649 case "$host_os" in
23650 mingw*)
23651 gl_dirsep_regex='[/\\]'
23652 ;;
23653 *)
23654 gl_dirsep_regex='\/'
23655 ;;
23656 esac
23657 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23658
23659 gl_header_literal_regex=`echo 'stdlib.h' \
23660 | sed -e "$gl_make_literal_regex_sed"`
23661 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23662 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23663 s|^/[^/]|//&|
23664 p
23665 q
23666 }'
23667 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23668 sed -n "$gl_absolute_header_sed"`'"'
23669
23670
23671 fi
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23673 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23674 fi
23675 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23676
23677 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23678 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23679 gl_next_as_first_directive='<'stdlib.h'>'
23680 else
23681 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23682 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23683 fi
23684 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23695
23696
23697
23698
23699
23700
23701
23702 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23703
23704
23705
23706
23707
23708
23709
23710
23711 if test "$ac_cv_have_decl_strtoimax" != yes; then
23712 HAVE_DECL_STRTOIMAX=0
23713 fi
23714
23715 if test $ac_cv_func_strtoimax = yes; then
23716 HAVE_STRTOIMAX=1
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23718 $as_echo_n "checking whether strtoimax works... " >&6; }
23719 if test "${gl_cv_func_strtoimax+set}" = set; then :
23720 $as_echo_n "(cached) " >&6
23721 else
23722 if test "$cross_compiling" = yes; then :
23723 case "$host_os" in
23724 # Guess no on AIX 5.
23725 aix5*) gl_cv_func_strtoimax="guessing no" ;;
23726 # Guess yes otherwise.
23727 *) gl_cv_func_strtoimax="guessing yes" ;;
23728 esac
23729
23730 else
23731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23732 /* end confdefs.h. */
23733
23734 #include <errno.h>
23735 #include <string.h>
23736 #include <inttypes.h>
23737 int main ()
23738 {
23739 if (sizeof (intmax_t) > sizeof (int))
23740 {
23741 const char *s = "4294967295";
23742 char *p;
23743 intmax_t res;
23744 errno = 0;
23745 res = strtoimax (s, &p, 10);
23746 if (p != s + strlen (s))
23747 return 1;
23748 if (errno != 0)
23749 return 2;
23750 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23751 return 3;
23752 }
23753 else
23754 {
23755 const char *s = "2147483647";
23756 char *p;
23757 intmax_t res;
23758 errno = 0;
23759 res = strtoimax (s, &p, 10);
23760 if (p != s + strlen (s))
23761 return 1;
23762 if (errno != 0)
23763 return 2;
23764 if (res != 2147483647)
23765 return 3;
23766 }
23767 return 0;
23768 }
23769
23770 _ACEOF
23771 if ac_fn_c_try_run "$LINENO"; then :
23772 gl_cv_func_strtoimax=yes
23773 else
23774 gl_cv_func_strtoimax=no
23775 fi
23776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23777 conftest.$ac_objext conftest.beam conftest.$ac_ext
23778 fi
23779
23780
23781 fi
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23783 $as_echo "$gl_cv_func_strtoimax" >&6; }
23784 case "$gl_cv_func_strtoimax" in
23785 *no) REPLACE_STRTOIMAX=1 ;;
23786 esac
23787 else
23788 HAVE_STRTOIMAX=0
23789 fi
23790
23791 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23792
23793
23794
23795
23796
23797
23798
23799
23800 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
23801
23802
23803 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23804 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
23805 ac_have_decl=1
23806 else
23807 ac_have_decl=0
23808 fi
23809
23810 cat >>confdefs.h <<_ACEOF
23811 #define HAVE_DECL_STRTOLL $ac_have_decl
23812 _ACEOF
23813
23814
23815
23816 fi
23817
23818
23819
23820
23821
23822 GNULIB_STRTOIMAX=1
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832 if test "$ac_cv_have_decl_strtoumax" != yes; then
23833 HAVE_DECL_STRTOUMAX=0
23834 fi
23835
23836 if test $ac_cv_func_strtoumax = no; then
23837
23838
23839
23840
23841
23842
23843
23844
23845 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
23846
23847
23848 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23849 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
23850 ac_have_decl=1
23851 else
23852 ac_have_decl=0
23853 fi
23854
23855 cat >>confdefs.h <<_ACEOF
23856 #define HAVE_DECL_STRTOULL $ac_have_decl
23857 _ACEOF
23858
23859
23860
23861 fi
23862
23863
23864
23865
23866
23867 GNULIB_STRTOUMAX=1
23868
23869
23870
23871
23872
23873
23874
23875 if test $ac_cv_func_symlink = no; then
23876 HAVE_SYMLINK=0
23877 else
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23879 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23880 if test "${gl_cv_func_symlink_works+set}" = set; then :
23881 $as_echo_n "(cached) " >&6
23882 else
23883 if test "$cross_compiling" = yes; then :
23884 case "$host_os" in
23885 # Guess yes on glibc systems.
23886 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
23887 # If we don't know, assume the worst.
23888 *) gl_cv_func_symlink_works="guessing no" ;;
23889 esac
23890
23891 else
23892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23893 /* end confdefs.h. */
23894 #include <unistd.h>
23895
23896 int
23897 main ()
23898 {
23899 int result = 0;
23900 if (!symlink ("a", "conftest.link/"))
23901 result |= 1;
23902 if (symlink ("conftest.f", "conftest.lnk2"))
23903 result |= 2;
23904 else if (!symlink ("a", "conftest.lnk2/"))
23905 result |= 4;
23906 return result;
23907
23908 ;
23909 return 0;
23910 }
23911 _ACEOF
23912 if ac_fn_c_try_run "$LINENO"; then :
23913 gl_cv_func_symlink_works=yes
23914 else
23915 gl_cv_func_symlink_works=no
23916 fi
23917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23918 conftest.$ac_objext conftest.beam conftest.$ac_ext
23919 fi
23920
23921 rm -f conftest.f conftest.link conftest.lnk2
23922 fi
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23924 $as_echo "$gl_cv_func_symlink_works" >&6; }
23925 case "$gl_cv_func_symlink_works" in
23926 *yes) ;;
23927 *)
23928 REPLACE_SYMLINK=1
23929 ;;
23930 esac
23931 fi
23932
23933 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
23934
23935
23936
23937
23938
23939
23940
23941
23942 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
23943
23944 fi
23945
23946
23947
23948
23949
23950 GNULIB_SYMLINK=1
23951
23952
23953
23954
23955
23956
23957
23958
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23960 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23961 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23962 $as_echo_n "(cached) " >&6
23963 else
23964
23965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23966 /* end confdefs.h. */
23967 #include <sys/select.h>
23968 int
23969 main ()
23970 {
23971 struct timeval b;
23972 ;
23973 return 0;
23974 }
23975 _ACEOF
23976 if ac_fn_c_try_compile "$LINENO"; then :
23977 gl_cv_header_sys_select_h_selfcontained=yes
23978 else
23979 gl_cv_header_sys_select_h_selfcontained=no
23980 fi
23981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23982 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23984 /* end confdefs.h. */
23985 #include <sys/select.h>
23986 int
23987 main ()
23988 {
23989 int memset; int bzero;
23990 ;
23991 return 0;
23992 }
23993
23994 _ACEOF
23995 if ac_fn_c_try_compile "$LINENO"; then :
23996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23997 /* end confdefs.h. */
23998 #include <sys/select.h>
23999 int
24000 main ()
24001 {
24002
24003 #undef memset
24004 #define memset nonexistent_memset
24005 extern
24006 #ifdef __cplusplus
24007 "C"
24008 #endif
24009 void *memset (void *, int, unsigned long);
24010 #undef bzero
24011 #define bzero nonexistent_bzero
24012 extern
24013 #ifdef __cplusplus
24014 "C"
24015 #endif
24016 void bzero (void *, unsigned long);
24017 fd_set fds;
24018 FD_ZERO (&fds);
24019
24020 ;
24021 return 0;
24022 }
24023
24024 _ACEOF
24025 if ac_fn_c_try_link "$LINENO"; then :
24026
24027 else
24028 gl_cv_header_sys_select_h_selfcontained=no
24029 fi
24030 rm -f core conftest.err conftest.$ac_objext \
24031 conftest$ac_exeext conftest.$ac_ext
24032
24033 fi
24034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24035 fi
24036
24037 fi
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24039 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049 if test $gl_cv_have_include_next = yes; then
24050 gl_cv_next_sys_select_h='<'sys/select.h'>'
24051 else
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24053 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24054 if test "${gl_cv_next_sys_select_h+set}" = set; then :
24055 $as_echo_n "(cached) " >&6
24056 else
24057
24058 if test $ac_cv_header_sys_select_h = yes; then
24059
24060
24061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24062 /* end confdefs.h. */
24063 #include <sys/select.h>
24064
24065 _ACEOF
24066 case "$host_os" in
24067 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24068 *) gl_absname_cpp="$ac_cpp" ;;
24069 esac
24070
24071 case "$host_os" in
24072 mingw*)
24073 gl_dirsep_regex='[/\\]'
24074 ;;
24075 *)
24076 gl_dirsep_regex='\/'
24077 ;;
24078 esac
24079 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24080
24081 gl_header_literal_regex=`echo 'sys/select.h' \
24082 | sed -e "$gl_make_literal_regex_sed"`
24083 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24084 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24085 s|^/[^/]|//&|
24086 p
24087 q
24088 }'
24089 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24090 sed -n "$gl_absolute_header_sed"`'"'
24091 else
24092 gl_cv_next_sys_select_h='<'sys/select.h'>'
24093 fi
24094
24095
24096 fi
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24098 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24099 fi
24100 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
24101
24102 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24103 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24104 gl_next_as_first_directive='<'sys/select.h'>'
24105 else
24106 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24107 gl_next_as_first_directive=$gl_cv_next_sys_select_h
24108 fi
24109 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
24110
24111
24112
24113
24114 if test $ac_cv_header_sys_select_h = yes; then
24115 HAVE_SYS_SELECT_H=1
24116 else
24117 HAVE_SYS_SELECT_H=0
24118 fi
24119
24120
24121
24122
24123
24124 if test $ac_cv_header_sys_socket_h != yes; then
24125 for ac_header in winsock2.h
24126 do :
24127 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24128 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
24129 cat >>confdefs.h <<_ACEOF
24130 #define HAVE_WINSOCK2_H 1
24131 _ACEOF
24132
24133 fi
24134
24135 done
24136
24137 fi
24138 if test "$ac_cv_header_winsock2_h" = yes; then
24139 HAVE_WINSOCK2_H=1
24140 UNISTD_H_HAVE_WINSOCK2_H=1
24141 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24142 else
24143 HAVE_WINSOCK2_H=0
24144 fi
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165 if test $gl_cv_have_include_next = yes; then
24166 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24167 else
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24169 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24170 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
24171 $as_echo_n "(cached) " >&6
24172 else
24173
24174 if test $ac_cv_header_sys_stat_h = yes; then
24175
24176
24177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24178 /* end confdefs.h. */
24179 #include <sys/stat.h>
24180
24181 _ACEOF
24182 case "$host_os" in
24183 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24184 *) gl_absname_cpp="$ac_cpp" ;;
24185 esac
24186
24187 case "$host_os" in
24188 mingw*)
24189 gl_dirsep_regex='[/\\]'
24190 ;;
24191 *)
24192 gl_dirsep_regex='\/'
24193 ;;
24194 esac
24195 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24196
24197 gl_header_literal_regex=`echo 'sys/stat.h' \
24198 | sed -e "$gl_make_literal_regex_sed"`
24199 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24200 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24201 s|^/[^/]|//&|
24202 p
24203 q
24204 }'
24205 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24206 sed -n "$gl_absolute_header_sed"`'"'
24207 else
24208 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24209 fi
24210
24211
24212 fi
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24214 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24215 fi
24216 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24217
24218 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24220 gl_next_as_first_directive='<'sys/stat.h'>'
24221 else
24222 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24223 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24224 fi
24225 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24238
24239 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24240
24241 fi
24242
24243 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24244 #include <sys/stat.h>
24245 "
24246 if test "x$ac_cv_type_nlink_t" = x""yes; then :
24247
24248 else
24249
24250 $as_echo "#define nlink_t int" >>confdefs.h
24251
24252 fi
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24272 "
24273 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
24274 ac_have_decl=1
24275 else
24276 ac_have_decl=0
24277 fi
24278
24279 cat >>confdefs.h <<_ACEOF
24280 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24281 _ACEOF
24282
24283 if test $ac_cv_have_decl_localtime_r = no; then
24284 HAVE_DECL_LOCALTIME_R=0
24285 fi
24286
24287
24288 if test $ac_cv_func_localtime_r = yes; then
24289 HAVE_LOCALTIME_R=1
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24291 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24292 if test "${gl_cv_time_r_posix+set}" = set; then :
24293 $as_echo_n "(cached) " >&6
24294 else
24295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24296 /* end confdefs.h. */
24297 #include <time.h>
24298 int
24299 main ()
24300 {
24301 /* We don't need to append 'restrict's to the argument types,
24302 even though the POSIX signature has the 'restrict's,
24303 since C99 says they can't affect type compatibility. */
24304 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24305 if (ptr) return 0;
24306 /* Check the return type is a pointer.
24307 On HP-UX 10 it is 'int'. */
24308 *localtime_r (0, 0);
24309 ;
24310 return 0;
24311 }
24312
24313 _ACEOF
24314 if ac_fn_c_try_compile "$LINENO"; then :
24315 gl_cv_time_r_posix=yes
24316 else
24317 gl_cv_time_r_posix=no
24318 fi
24319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24320
24321 fi
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24323 $as_echo "$gl_cv_time_r_posix" >&6; }
24324 if test $gl_cv_time_r_posix = yes; then
24325 REPLACE_LOCALTIME_R=0
24326 else
24327 REPLACE_LOCALTIME_R=1
24328 fi
24329 else
24330 HAVE_LOCALTIME_R=0
24331 fi
24332
24333 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
24334
24335
24336
24337
24338
24339
24340
24341
24342 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
24343
24344
24345 :
24346
24347 fi
24348
24349
24350
24351
24352
24353 GNULIB_TIME_R=1
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364 LIB_TIMER_TIME=
24365
24366 gl_saved_libs=$LIBS
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24368 $as_echo_n "checking for library containing timer_settime... " >&6; }
24369 if test "${ac_cv_search_timer_settime+set}" = set; then :
24370 $as_echo_n "(cached) " >&6
24371 else
24372 ac_func_search_save_LIBS=$LIBS
24373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24374 /* end confdefs.h. */
24375
24376 /* Override any GCC internal prototype to avoid an error.
24377 Use char because int might match the return type of a GCC
24378 builtin and then its argument prototype would still apply. */
24379 #ifdef __cplusplus
24380 extern "C"
24381 #endif
24382 char timer_settime ();
24383 int
24384 main ()
24385 {
24386 return timer_settime ();
24387 ;
24388 return 0;
24389 }
24390 _ACEOF
24391 for ac_lib in '' rt posix4; do
24392 if test -z "$ac_lib"; then
24393 ac_res="none required"
24394 else
24395 ac_res=-l$ac_lib
24396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24397 fi
24398 if ac_fn_c_try_link "$LINENO"; then :
24399 ac_cv_search_timer_settime=$ac_res
24400 fi
24401 rm -f core conftest.err conftest.$ac_objext \
24402 conftest$ac_exeext
24403 if test "${ac_cv_search_timer_settime+set}" = set; then :
24404 break
24405 fi
24406 done
24407 if test "${ac_cv_search_timer_settime+set}" = set; then :
24408
24409 else
24410 ac_cv_search_timer_settime=no
24411 fi
24412 rm conftest.$ac_ext
24413 LIBS=$ac_func_search_save_LIBS
24414 fi
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24416 $as_echo "$ac_cv_search_timer_settime" >&6; }
24417 ac_res=$ac_cv_search_timer_settime
24418 if test "$ac_res" != no; then :
24419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24420 test "$ac_cv_search_timer_settime" = "none required" ||
24421 LIB_TIMER_TIME=$ac_cv_search_timer_settime
24422 fi
24423
24424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24425 /* end confdefs.h. */
24426
24427 #include <features.h>
24428 #ifdef __GNU_LIBRARY__
24429 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24430 && !defined __UCLIBC__
24431 Thread emulation available
24432 #endif
24433 #endif
24434
24435 _ACEOF
24436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24437 $EGREP "Thread" >/dev/null 2>&1; then :
24438 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
24439 fi
24440 rm -f conftest*
24441
24442 for ac_func in timer_settime
24443 do :
24444 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24445 if test "x$ac_cv_func_timer_settime" = x""yes; then :
24446 cat >>confdefs.h <<_ACEOF
24447 #define HAVE_TIMER_SETTIME 1
24448 _ACEOF
24449
24450 fi
24451 done
24452
24453 LIBS=$gl_saved_libs
24454
24455 :
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468 if test $gl_cv_have_include_next = yes; then
24469 gl_cv_next_unistd_h='<'unistd.h'>'
24470 else
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24472 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24473 if test "${gl_cv_next_unistd_h+set}" = set; then :
24474 $as_echo_n "(cached) " >&6
24475 else
24476
24477 if test $ac_cv_header_unistd_h = yes; then
24478
24479
24480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24481 /* end confdefs.h. */
24482 #include <unistd.h>
24483
24484 _ACEOF
24485 case "$host_os" in
24486 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24487 *) gl_absname_cpp="$ac_cpp" ;;
24488 esac
24489
24490 case "$host_os" in
24491 mingw*)
24492 gl_dirsep_regex='[/\\]'
24493 ;;
24494 *)
24495 gl_dirsep_regex='\/'
24496 ;;
24497 esac
24498 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24499
24500 gl_header_literal_regex=`echo 'unistd.h' \
24501 | sed -e "$gl_make_literal_regex_sed"`
24502 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24503 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24504 s|^/[^/]|//&|
24505 p
24506 q
24507 }'
24508 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24509 sed -n "$gl_absolute_header_sed"`'"'
24510 else
24511 gl_cv_next_unistd_h='<'unistd.h'>'
24512 fi
24513
24514
24515 fi
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24517 $as_echo "$gl_cv_next_unistd_h" >&6; }
24518 fi
24519 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24520
24521 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24522 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24523 gl_next_as_first_directive='<'unistd.h'>'
24524 else
24525 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24526 gl_next_as_first_directive=$gl_cv_next_unistd_h
24527 fi
24528 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24529
24530
24531
24532
24533 if test $ac_cv_header_unistd_h = yes; then
24534 HAVE_UNISTD_H=1
24535 else
24536 HAVE_UNISTD_H=0
24537 fi
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549 if test $ac_cv_have_decl_unsetenv = no; then
24550 HAVE_DECL_UNSETENV=0
24551 fi
24552 for ac_func in unsetenv
24553 do :
24554 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
24555 if test "x$ac_cv_func_unsetenv" = x""yes; then :
24556 cat >>confdefs.h <<_ACEOF
24557 #define HAVE_UNSETENV 1
24558 _ACEOF
24559
24560 fi
24561 done
24562
24563 if test $ac_cv_func_unsetenv = no; then
24564 HAVE_UNSETENV=0
24565 else
24566 HAVE_UNSETENV=1
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
24568 $as_echo_n "checking for unsetenv() return type... " >&6; }
24569 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
24570 $as_echo_n "(cached) " >&6
24571 else
24572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24573 /* end confdefs.h. */
24574
24575 #undef _BSD
24576 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
24577 #include <stdlib.h>
24578 extern
24579 #ifdef __cplusplus
24580 "C"
24581 #endif
24582 int unsetenv (const char *name);
24583
24584 int
24585 main ()
24586 {
24587
24588 ;
24589 return 0;
24590 }
24591 _ACEOF
24592 if ac_fn_c_try_compile "$LINENO"; then :
24593 gt_cv_func_unsetenv_ret='int'
24594 else
24595 gt_cv_func_unsetenv_ret='void'
24596 fi
24597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24598 fi
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
24600 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
24601 if test $gt_cv_func_unsetenv_ret = 'void'; then
24602
24603 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
24604
24605 REPLACE_UNSETENV=1
24606 fi
24607
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
24609 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
24610 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
24611 $as_echo_n "(cached) " >&6
24612 else
24613 if test "$cross_compiling" = yes; then :
24614 case "$host_os" in
24615 # Guess yes on glibc systems.
24616 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
24617 # If we don't know, assume the worst.
24618 *) gl_cv_func_unsetenv_works="guessing no" ;;
24619 esac
24620
24621 else
24622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24623 /* end confdefs.h. */
24624
24625 #include <stdlib.h>
24626 #include <errno.h>
24627 extern char **environ;
24628
24629 int
24630 main ()
24631 {
24632
24633 char entry1[] = "a=1";
24634 char entry2[] = "b=2";
24635 char *env[] = { entry1, entry2, NULL };
24636 if (putenv ((char *) "a=1")) return 1;
24637 if (putenv (entry2)) return 2;
24638 entry2[0] = 'a';
24639 unsetenv ("a");
24640 if (getenv ("a")) return 3;
24641 if (!unsetenv ("") || errno != EINVAL) return 4;
24642 entry2[0] = 'b';
24643 environ = env;
24644 if (!getenv ("a")) return 5;
24645 entry2[0] = 'a';
24646 unsetenv ("a");
24647 if (getenv ("a")) return 6;
24648
24649 ;
24650 return 0;
24651 }
24652 _ACEOF
24653 if ac_fn_c_try_run "$LINENO"; then :
24654 gl_cv_func_unsetenv_works=yes
24655 else
24656 gl_cv_func_unsetenv_works=no
24657 fi
24658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24659 conftest.$ac_objext conftest.beam conftest.$ac_ext
24660 fi
24661
24662 fi
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
24664 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
24665 case "$gl_cv_func_unsetenv_works" in
24666 *yes) ;;
24667 *)
24668 REPLACE_UNSETENV=1
24669 ;;
24670 esac
24671 fi
24672
24673 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
24674
24675
24676
24677
24678
24679
24680
24681
24682 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
24683
24684
24685
24686
24687
24688 fi
24689
24690
24691
24692
24693
24694 GNULIB_UNSETENV=1
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
24708 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
24709 if test "${gl_cv_func_futimesat_works+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24711 else
24712 touch conftest.file
24713 if test "$cross_compiling" = yes; then :
24714 case "$host_os" in
24715 # Guess yes on glibc systems.
24716 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
24717 # If we don't know, assume the worst.
24718 *) gl_cv_func_futimesat_works="guessing no" ;;
24719 esac
24720
24721 else
24722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723 /* end confdefs.h. */
24724
24725 #include <stddef.h>
24726 #include <sys/times.h>
24727 #include <fcntl.h>
24728
24729 int
24730 main ()
24731 {
24732 int fd = open ("conftest.file", O_RDWR);
24733 if (fd < 0) return 1;
24734 if (futimesat (fd, NULL, NULL)) return 2;
24735
24736 ;
24737 return 0;
24738 }
24739 _ACEOF
24740 if ac_fn_c_try_run "$LINENO"; then :
24741 gl_cv_func_futimesat_works=yes
24742 else
24743 gl_cv_func_futimesat_works=no
24744 fi
24745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24746 conftest.$ac_objext conftest.beam conftest.$ac_ext
24747 fi
24748
24749 rm -f conftest.file
24750 fi
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
24752 $as_echo "$gl_cv_func_futimesat_works" >&6; }
24753 case "$gl_cv_func_futimesat_works" in
24754 *yes) ;;
24755 *)
24756
24757 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
24758
24759 ;;
24760 esac
24761 fi
24762
24763 gl_gnulib_enabled_dosname=false
24764 gl_gnulib_enabled_euidaccess=false
24765 gl_gnulib_enabled_getgroups=false
24766 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
24767 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
24768 gl_gnulib_enabled_pathmax=false
24769 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
24770 gl_gnulib_enabled_stat=false
24771 gl_gnulib_enabled_strtoll=false
24772 gl_gnulib_enabled_strtoull=false
24773 gl_gnulib_enabled_verify=false
24774 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
24775 func_gl_gnulib_m4code_dosname ()
24776 {
24777 if ! $gl_gnulib_enabled_dosname; then
24778 gl_gnulib_enabled_dosname=true
24779 fi
24780 }
24781 func_gl_gnulib_m4code_euidaccess ()
24782 {
24783 if ! $gl_gnulib_enabled_euidaccess; then
24784
24785
24786
24787
24788
24789 for ac_func in euidaccess
24790 do :
24791 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
24792 if test "x$ac_cv_func_euidaccess" = x""yes; then :
24793 cat >>confdefs.h <<_ACEOF
24794 #define HAVE_EUIDACCESS 1
24795 _ACEOF
24796
24797 fi
24798 done
24799
24800 if test $ac_cv_func_euidaccess = no; then
24801 HAVE_EUIDACCESS=0
24802 fi
24803
24804 if test $HAVE_EUIDACCESS = 0; then
24805
24806
24807
24808
24809
24810
24811
24812
24813 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
24814
24815
24816
24817 for ac_header in libgen.h
24818 do :
24819 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
24820 if test "x$ac_cv_header_libgen_h" = x""yes; then :
24821 cat >>confdefs.h <<_ACEOF
24822 #define HAVE_LIBGEN_H 1
24823 _ACEOF
24824
24825 fi
24826
24827 done
24828
24829
24830 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
24831 if test "x$ac_cv_func_getgroups" = x""yes; then :
24832
24833 fi
24834
24835
24836 # If we don't yet have getgroups, see if it's in -lbsd.
24837 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24838 ac_save_LIBS=$LIBS
24839 if test $ac_cv_func_getgroups = no; then
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24841 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24842 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24843 $as_echo_n "(cached) " >&6
24844 else
24845 ac_check_lib_save_LIBS=$LIBS
24846 LIBS="-lbsd $LIBS"
24847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24848 /* end confdefs.h. */
24849
24850 /* Override any GCC internal prototype to avoid an error.
24851 Use char because int might match the return type of a GCC
24852 builtin and then its argument prototype would still apply. */
24853 #ifdef __cplusplus
24854 extern "C"
24855 #endif
24856 char getgroups ();
24857 int
24858 main ()
24859 {
24860 return getgroups ();
24861 ;
24862 return 0;
24863 }
24864 _ACEOF
24865 if ac_fn_c_try_link "$LINENO"; then :
24866 ac_cv_lib_bsd_getgroups=yes
24867 else
24868 ac_cv_lib_bsd_getgroups=no
24869 fi
24870 rm -f core conftest.err conftest.$ac_objext \
24871 conftest$ac_exeext conftest.$ac_ext
24872 LIBS=$ac_check_lib_save_LIBS
24873 fi
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24875 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24876 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
24877 GETGROUPS_LIB=-lbsd
24878 fi
24879
24880 fi
24881
24882 # Run the program to test the functionality of the system-supplied
24883 # getgroups function only if there is such a function.
24884 if test $ac_cv_func_getgroups = yes; then
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24886 $as_echo_n "checking for working getgroups... " >&6; }
24887 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24888 $as_echo_n "(cached) " >&6
24889 else
24890 if test "$cross_compiling" = yes; then :
24891 case "$host_os" in # ((
24892 # Guess yes on glibc systems.
24893 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
24894 # If we don't know, assume the worst.
24895 *) ac_cv_func_getgroups_works="guessing no" ;;
24896 esac
24897
24898 else
24899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24900 /* end confdefs.h. */
24901 $ac_includes_default
24902 int
24903 main ()
24904 {
24905 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24906 return getgroups (0, 0) == -1;
24907 ;
24908 return 0;
24909 }
24910
24911 _ACEOF
24912 if ac_fn_c_try_run "$LINENO"; then :
24913 ac_cv_func_getgroups_works=yes
24914 else
24915 ac_cv_func_getgroups_works=no
24916 fi
24917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24918 conftest.$ac_objext conftest.beam conftest.$ac_ext
24919 fi
24920
24921
24922 fi
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24924 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24925 else
24926 ac_cv_func_getgroups_works=no
24927 fi
24928 case "$ac_cv_func_getgroups_works" in
24929 *yes)
24930
24931 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24932
24933 ;;
24934 esac
24935 LIBS=$ac_save_LIBS
24936
24937
24938 # Solaris 9 and 10 need -lgen to get the eaccess function.
24939 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
24940 # programs in the package would end up linked with that potentially-shared
24941 # library, inducing unnecessary run-time overhead.
24942 LIB_EACCESS=
24943
24944 gl_saved_libs=$LIBS
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
24946 $as_echo_n "checking for library containing eaccess... " >&6; }
24947 if test "${ac_cv_search_eaccess+set}" = set; then :
24948 $as_echo_n "(cached) " >&6
24949 else
24950 ac_func_search_save_LIBS=$LIBS
24951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24952 /* end confdefs.h. */
24953
24954 /* Override any GCC internal prototype to avoid an error.
24955 Use char because int might match the return type of a GCC
24956 builtin and then its argument prototype would still apply. */
24957 #ifdef __cplusplus
24958 extern "C"
24959 #endif
24960 char eaccess ();
24961 int
24962 main ()
24963 {
24964 return eaccess ();
24965 ;
24966 return 0;
24967 }
24968 _ACEOF
24969 for ac_lib in '' gen; do
24970 if test -z "$ac_lib"; then
24971 ac_res="none required"
24972 else
24973 ac_res=-l$ac_lib
24974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24975 fi
24976 if ac_fn_c_try_link "$LINENO"; then :
24977 ac_cv_search_eaccess=$ac_res
24978 fi
24979 rm -f core conftest.err conftest.$ac_objext \
24980 conftest$ac_exeext
24981 if test "${ac_cv_search_eaccess+set}" = set; then :
24982 break
24983 fi
24984 done
24985 if test "${ac_cv_search_eaccess+set}" = set; then :
24986
24987 else
24988 ac_cv_search_eaccess=no
24989 fi
24990 rm conftest.$ac_ext
24991 LIBS=$ac_func_search_save_LIBS
24992 fi
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
24994 $as_echo "$ac_cv_search_eaccess" >&6; }
24995 ac_res=$ac_cv_search_eaccess
24996 if test "$ac_res" != no; then :
24997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24998 test "$ac_cv_search_eaccess" = "none required" ||
24999 LIB_EACCESS=$ac_cv_search_eaccess
25000 fi
25001
25002 for ac_func in eaccess
25003 do :
25004 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
25005 if test "x$ac_cv_func_eaccess" = x""yes; then :
25006 cat >>confdefs.h <<_ACEOF
25007 #define HAVE_EACCESS 1
25008 _ACEOF
25009
25010 fi
25011 done
25012
25013 LIBS=$gl_saved_libs
25014
25015 fi
25016
25017
25018
25019
25020
25021 GNULIB_EUIDACCESS=1
25022
25023
25024
25025
25026
25027 gl_gnulib_enabled_euidaccess=true
25028 if test $HAVE_EUIDACCESS = 0; then
25029 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
25030 fi
25031 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
25032 if test $HAVE_EUIDACCESS = 0; then
25033 func_gl_gnulib_m4code_stat
25034 fi
25035 fi
25036 }
25037 func_gl_gnulib_m4code_getgroups ()
25038 {
25039 if ! $gl_gnulib_enabled_getgroups; then
25040
25041
25042
25043
25044
25045 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25046 if test "x$ac_cv_func_getgroups" = x""yes; then :
25047
25048 fi
25049
25050
25051 # If we don't yet have getgroups, see if it's in -lbsd.
25052 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25053 ac_save_LIBS=$LIBS
25054 if test $ac_cv_func_getgroups = no; then
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25056 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25057 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25058 $as_echo_n "(cached) " >&6
25059 else
25060 ac_check_lib_save_LIBS=$LIBS
25061 LIBS="-lbsd $LIBS"
25062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25063 /* end confdefs.h. */
25064
25065 /* Override any GCC internal prototype to avoid an error.
25066 Use char because int might match the return type of a GCC
25067 builtin and then its argument prototype would still apply. */
25068 #ifdef __cplusplus
25069 extern "C"
25070 #endif
25071 char getgroups ();
25072 int
25073 main ()
25074 {
25075 return getgroups ();
25076 ;
25077 return 0;
25078 }
25079 _ACEOF
25080 if ac_fn_c_try_link "$LINENO"; then :
25081 ac_cv_lib_bsd_getgroups=yes
25082 else
25083 ac_cv_lib_bsd_getgroups=no
25084 fi
25085 rm -f core conftest.err conftest.$ac_objext \
25086 conftest$ac_exeext conftest.$ac_ext
25087 LIBS=$ac_check_lib_save_LIBS
25088 fi
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25090 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25091 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25092 GETGROUPS_LIB=-lbsd
25093 fi
25094
25095 fi
25096
25097 # Run the program to test the functionality of the system-supplied
25098 # getgroups function only if there is such a function.
25099 if test $ac_cv_func_getgroups = yes; then
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25101 $as_echo_n "checking for working getgroups... " >&6; }
25102 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25103 $as_echo_n "(cached) " >&6
25104 else
25105 if test "$cross_compiling" = yes; then :
25106 case "$host_os" in # ((
25107 # Guess yes on glibc systems.
25108 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25109 # If we don't know, assume the worst.
25110 *) ac_cv_func_getgroups_works="guessing no" ;;
25111 esac
25112
25113 else
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h. */
25116 $ac_includes_default
25117 int
25118 main ()
25119 {
25120 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25121 return getgroups (0, 0) == -1;
25122 ;
25123 return 0;
25124 }
25125
25126 _ACEOF
25127 if ac_fn_c_try_run "$LINENO"; then :
25128 ac_cv_func_getgroups_works=yes
25129 else
25130 ac_cv_func_getgroups_works=no
25131 fi
25132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25133 conftest.$ac_objext conftest.beam conftest.$ac_ext
25134 fi
25135
25136
25137 fi
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25139 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25140 else
25141 ac_cv_func_getgroups_works=no
25142 fi
25143 case "$ac_cv_func_getgroups_works" in
25144 *yes)
25145
25146 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25147
25148 ;;
25149 esac
25150 LIBS=$ac_save_LIBS
25151
25152 if test $ac_cv_func_getgroups != yes; then
25153 HAVE_GETGROUPS=0
25154 else
25155 if test "$ac_cv_type_getgroups" != gid_t \
25156 || { case "$ac_cv_func_getgroups_works" in
25157 *yes) false;;
25158 *) true;;
25159 esac
25160 }; then
25161 REPLACE_GETGROUPS=1
25162
25163 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
25164
25165 else
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
25167 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
25168 if test "${gl_cv_func_getgroups_works+set}" = set; then :
25169 $as_echo_n "(cached) " >&6
25170 else
25171 if test "$cross_compiling" = yes; then :
25172 case "$host_os" in
25173 # Guess yes on glibc systems.
25174 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
25175 # If we don't know, assume the worst.
25176 *) gl_cv_func_getgroups_works="guessing no" ;;
25177 esac
25178
25179 else
25180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25181 /* end confdefs.h. */
25182 $ac_includes_default
25183 int
25184 main ()
25185 {
25186 int size = getgroups (0, 0);
25187 gid_t *list = malloc (size * sizeof *list);
25188 return getgroups (-1, list) != -1;
25189 ;
25190 return 0;
25191 }
25192 _ACEOF
25193 if ac_fn_c_try_run "$LINENO"; then :
25194 gl_cv_func_getgroups_works=yes
25195 else
25196 gl_cv_func_getgroups_works=no
25197 fi
25198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25199 conftest.$ac_objext conftest.beam conftest.$ac_ext
25200 fi
25201
25202 fi
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
25204 $as_echo "$gl_cv_func_getgroups_works" >&6; }
25205 case "$gl_cv_func_getgroups_works" in
25206 *yes) ;;
25207 *) REPLACE_GETGROUPS=1 ;;
25208 esac
25209 fi
25210 fi
25211 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
25212
25213 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
25214
25215
25216
25217
25218
25219
25220
25221
25222 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
25223
25224 fi
25225
25226
25227
25228
25229
25230 GNULIB_GETGROUPS=1
25231
25232
25233
25234
25235
25236 gl_gnulib_enabled_getgroups=true
25237 fi
25238 }
25239 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
25240 {
25241 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25242
25243
25244 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
25245 fi
25246 }
25247 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
25248 {
25249 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25250
25251
25252
25253
25254
25255 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
25256 if test "x$ac_cv_func_group_member" = x""yes; then :
25257
25258 else
25259
25260 HAVE_GROUP_MEMBER=0
25261
25262 fi
25263
25264
25265 if test $HAVE_GROUP_MEMBER = 0; then
25266
25267
25268
25269
25270
25271
25272
25273
25274 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
25275
25276
25277
25278
25279 fi
25280
25281
25282
25283
25284
25285 GNULIB_GROUP_MEMBER=1
25286
25287
25288
25289
25290
25291 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
25292 if test $HAVE_GROUP_MEMBER = 0; then
25293 func_gl_gnulib_m4code_getgroups
25294 fi
25295 if test $HAVE_GROUP_MEMBER = 0; then
25296 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
25297 fi
25298 fi
25299 }
25300 func_gl_gnulib_m4code_pathmax ()
25301 {
25302 if ! $gl_gnulib_enabled_pathmax; then
25303
25304
25305
25306 gl_gnulib_enabled_pathmax=true
25307 fi
25308 }
25309 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
25310 {
25311 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25312 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
25313 fi
25314 }
25315 func_gl_gnulib_m4code_stat ()
25316 {
25317 if ! $gl_gnulib_enabled_stat; then
25318
25319
25320
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
25322 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
25323 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
25324 $as_echo_n "(cached) " >&6
25325 else
25326 if test "$cross_compiling" = yes; then :
25327 case $host_os in
25328 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
25329 *) gl_cv_func_stat_dir_slash="guessing yes";;
25330 esac
25331 else
25332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25333 /* end confdefs.h. */
25334 #include <sys/stat.h>
25335
25336 int
25337 main ()
25338 {
25339 struct stat st; return stat (".", &st) != stat ("./", &st);
25340 ;
25341 return 0;
25342 }
25343 _ACEOF
25344 if ac_fn_c_try_run "$LINENO"; then :
25345 gl_cv_func_stat_dir_slash=yes
25346 else
25347 gl_cv_func_stat_dir_slash=no
25348 fi
25349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25350 conftest.$ac_objext conftest.beam conftest.$ac_ext
25351 fi
25352
25353 fi
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
25355 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25357 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25358 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
25359 $as_echo_n "(cached) " >&6
25360 else
25361 touch conftest.tmp
25362 # Assume that if we have lstat, we can also check symlinks.
25363 if test $ac_cv_func_lstat = yes; then
25364 ln -s conftest.tmp conftest.lnk
25365 fi
25366 if test "$cross_compiling" = yes; then :
25367 case "$host_os" in
25368 # Guess yes on glibc systems.
25369 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
25370 # If we don't know, assume the worst.
25371 *) gl_cv_func_stat_file_slash="guessing no" ;;
25372 esac
25373
25374 else
25375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25376 /* end confdefs.h. */
25377 #include <sys/stat.h>
25378
25379 int
25380 main ()
25381 {
25382 int result = 0;
25383 struct stat st;
25384 if (!stat ("conftest.tmp/", &st))
25385 result |= 1;
25386 #if HAVE_LSTAT
25387 if (!stat ("conftest.lnk/", &st))
25388 result |= 2;
25389 #endif
25390 return result;
25391
25392 ;
25393 return 0;
25394 }
25395 _ACEOF
25396 if ac_fn_c_try_run "$LINENO"; then :
25397 gl_cv_func_stat_file_slash=yes
25398 else
25399 gl_cv_func_stat_file_slash=no
25400 fi
25401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25402 conftest.$ac_objext conftest.beam conftest.$ac_ext
25403 fi
25404
25405 rm -f conftest.tmp conftest.lnk
25406 fi
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25408 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25409 case $gl_cv_func_stat_dir_slash in
25410 *no) REPLACE_STAT=1
25411
25412 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25413 ;;
25414 esac
25415 case $gl_cv_func_stat_file_slash in
25416 *no) REPLACE_STAT=1
25417
25418 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25419 ;;
25420 esac
25421
25422 if test $REPLACE_STAT = 1; then
25423
25424
25425
25426
25427
25428
25429
25430
25431 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25432
25433 :
25434 fi
25435
25436
25437
25438
25439
25440 GNULIB_STAT=1
25441
25442
25443
25444
25445
25446 gl_gnulib_enabled_stat=true
25447 if test $REPLACE_STAT = 1; then
25448 func_gl_gnulib_m4code_dosname
25449 fi
25450 if test $REPLACE_STAT = 1; then
25451 func_gl_gnulib_m4code_pathmax
25452 fi
25453 if test $REPLACE_STAT = 1; then
25454 func_gl_gnulib_m4code_verify
25455 fi
25456 fi
25457 }
25458 func_gl_gnulib_m4code_strtoll ()
25459 {
25460 if ! $gl_gnulib_enabled_strtoll; then
25461
25462
25463
25464 if test "$ac_cv_type_long_long_int" = yes; then
25465 for ac_func in strtoll
25466 do :
25467 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
25468 if test "x$ac_cv_func_strtoll" = x""yes; then :
25469 cat >>confdefs.h <<_ACEOF
25470 #define HAVE_STRTOLL 1
25471 _ACEOF
25472
25473 fi
25474 done
25475
25476 if test $ac_cv_func_strtoll = no; then
25477 HAVE_STRTOLL=0
25478 fi
25479 fi
25480
25481 if test $HAVE_STRTOLL = 0; then
25482
25483
25484
25485
25486
25487
25488
25489
25490 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
25491
25492
25493 :
25494
25495 fi
25496
25497
25498
25499
25500
25501 GNULIB_STRTOLL=1
25502
25503
25504
25505
25506
25507 gl_gnulib_enabled_strtoll=true
25508 fi
25509 }
25510 func_gl_gnulib_m4code_strtoull ()
25511 {
25512 if ! $gl_gnulib_enabled_strtoull; then
25513
25514
25515
25516 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
25517 for ac_func in strtoull
25518 do :
25519 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
25520 if test "x$ac_cv_func_strtoull" = x""yes; then :
25521 cat >>confdefs.h <<_ACEOF
25522 #define HAVE_STRTOULL 1
25523 _ACEOF
25524
25525 fi
25526 done
25527
25528 if test $ac_cv_func_strtoull = no; then
25529 HAVE_STRTOULL=0
25530 fi
25531 fi
25532
25533 if test $HAVE_STRTOULL = 0; then
25534
25535
25536
25537
25538
25539
25540
25541
25542 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
25543
25544
25545 :
25546
25547 fi
25548
25549
25550
25551
25552
25553 GNULIB_STRTOULL=1
25554
25555
25556
25557
25558
25559 gl_gnulib_enabled_strtoull=true
25560 fi
25561 }
25562 func_gl_gnulib_m4code_verify ()
25563 {
25564 if ! $gl_gnulib_enabled_verify; then
25565 gl_gnulib_enabled_verify=true
25566 fi
25567 }
25568 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
25569 {
25570 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25571 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
25572 fi
25573 }
25574 if test $HAVE_FACCESSAT = 0; then
25575 func_gl_gnulib_m4code_dosname
25576 fi
25577 if test $HAVE_FACCESSAT = 0; then
25578 func_gl_gnulib_m4code_euidaccess
25579 fi
25580 if test $REPLACE_GETOPT = 1; then
25581 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
25582 fi
25583 if test $REPLACE_LSTAT = 1; then
25584 func_gl_gnulib_m4code_dosname
25585 fi
25586 if test $REPLACE_LSTAT = 1; then
25587 func_gl_gnulib_m4code_stat
25588 fi
25589 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25590 func_gl_gnulib_m4code_stat
25591 fi
25592 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
25593 func_gl_gnulib_m4code_strtoll
25594 fi
25595 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
25596 func_gl_gnulib_m4code_verify
25597 fi
25598 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
25599 func_gl_gnulib_m4code_strtoull
25600 fi
25601 if test $ac_cv_func_strtoumax = no; then
25602 func_gl_gnulib_m4code_verify
25603 fi
25604
25605 if $gl_gnulib_enabled_dosname; then
25606 gl_GNULIB_ENABLED_dosname_TRUE=
25607 gl_GNULIB_ENABLED_dosname_FALSE='#'
25608 else
25609 gl_GNULIB_ENABLED_dosname_TRUE='#'
25610 gl_GNULIB_ENABLED_dosname_FALSE=
25611 fi
25612
25613 if $gl_gnulib_enabled_euidaccess; then
25614 gl_GNULIB_ENABLED_euidaccess_TRUE=
25615 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
25616 else
25617 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
25618 gl_GNULIB_ENABLED_euidaccess_FALSE=
25619 fi
25620
25621 if $gl_gnulib_enabled_getgroups; then
25622 gl_GNULIB_ENABLED_getgroups_TRUE=
25623 gl_GNULIB_ENABLED_getgroups_FALSE='#'
25624 else
25625 gl_GNULIB_ENABLED_getgroups_TRUE='#'
25626 gl_GNULIB_ENABLED_getgroups_FALSE=
25627 fi
25628
25629 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
25631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
25632 else
25633 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
25634 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
25635 fi
25636
25637 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25638 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
25639 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
25640 else
25641 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
25642 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
25643 fi
25644
25645 if $gl_gnulib_enabled_pathmax; then
25646 gl_GNULIB_ENABLED_pathmax_TRUE=
25647 gl_GNULIB_ENABLED_pathmax_FALSE='#'
25648 else
25649 gl_GNULIB_ENABLED_pathmax_TRUE='#'
25650 gl_GNULIB_ENABLED_pathmax_FALSE=
25651 fi
25652
25653 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25654 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
25655 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
25656 else
25657 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
25658 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
25659 fi
25660
25661 if $gl_gnulib_enabled_stat; then
25662 gl_GNULIB_ENABLED_stat_TRUE=
25663 gl_GNULIB_ENABLED_stat_FALSE='#'
25664 else
25665 gl_GNULIB_ENABLED_stat_TRUE='#'
25666 gl_GNULIB_ENABLED_stat_FALSE=
25667 fi
25668
25669 if $gl_gnulib_enabled_strtoll; then
25670 gl_GNULIB_ENABLED_strtoll_TRUE=
25671 gl_GNULIB_ENABLED_strtoll_FALSE='#'
25672 else
25673 gl_GNULIB_ENABLED_strtoll_TRUE='#'
25674 gl_GNULIB_ENABLED_strtoll_FALSE=
25675 fi
25676
25677 if $gl_gnulib_enabled_strtoull; then
25678 gl_GNULIB_ENABLED_strtoull_TRUE=
25679 gl_GNULIB_ENABLED_strtoull_FALSE='#'
25680 else
25681 gl_GNULIB_ENABLED_strtoull_TRUE='#'
25682 gl_GNULIB_ENABLED_strtoull_FALSE=
25683 fi
25684
25685 if $gl_gnulib_enabled_verify; then
25686 gl_GNULIB_ENABLED_verify_TRUE=
25687 gl_GNULIB_ENABLED_verify_FALSE='#'
25688 else
25689 gl_GNULIB_ENABLED_verify_TRUE='#'
25690 gl_GNULIB_ENABLED_verify_FALSE=
25691 fi
25692
25693 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25694 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
25695 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
25696 else
25697 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
25698 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
25699 fi
25700
25701 # End of code from modules
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711 gltests_libdeps=
25712 gltests_ltlibdeps=
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722 gl_source_base='tests'
25723 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
25724
25725 gl_module_indicator_condition=$gltests_WITNESS
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736 LIBGNU_LIBDEPS="$gl_libdeps"
25737
25738 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
25739
25740
25741 CFLAGS=$SAVE_CFLAGS
25742 LIBS=$SAVE_LIBS
25743
25744 case "$opsys" in
25745 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
25746
25747 darwin)
25748 ## The -headerpad option tells ld (see man page) to leave room at the
25749 ## end of the header for adding load commands. Needed for dumping.
25750 ## 0x690 is the total size of 30 segment load commands (at 56
25751 ## each); under Cocoa 31 commands are required.
25752 if test "$HAVE_NS" = "yes"; then
25753 libs_nsgui="-framework AppKit"
25754 headerpad_extra=6C8
25755 else
25756 libs_nsgui=
25757 headerpad_extra=690
25758 fi
25759 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
25760
25761 ## This is here because src/Makefile.in did some extra fiddling around
25762 ## with LD_SWITCH_SYSTEM. The cpp logic was:
25763 ## #ifndef LD_SWITCH_SYSTEM
25764 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
25765 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
25766 ## not using gcc, darwin.
25767 ## Because this was done in src/Makefile.in, the resulting part of
25768 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
25769 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
25770 ## rather than LD_SWITCH_SYSTEM.
25771 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
25772 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
25773 ;;
25774
25775 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
25776 ## find X at run-time.
25777 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
25778 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
25779 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
25780 ## had different values in configure (in ac_link) and src/Makefile.in.
25781 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
25782 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
25783
25784 *) LD_SWITCH_SYSTEM_TEMACS= ;;
25785 esac
25786
25787 if test "$NS_IMPL_GNUSTEP" = "yes"; then
25788 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
25789 fi
25790
25791
25792
25793
25794 LD_FIRSTFLAG=
25795 ORDINARY_LINK=
25796 case "$opsys" in
25797 ## gnu: GNU needs its own crt0.
25798 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
25799
25800 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
25801 ## library search parth, i.e. it won't search /usr/lib for libc and
25802 ## friends. Using -nostartfiles instead avoids this problem, and
25803 ## will also work on earlier NetBSD releases.
25804 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
25805
25806 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
25807 ## MkLinux/LinuxPPC needs this.
25808 ## s390x-* only supports opsys = gnu-linux so it can be added here.
25809 gnu-*)
25810 case "$canonical" in
25811 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
25812 esac
25813 ;;
25814 esac
25815
25816
25817 if test "x$ORDINARY_LINK" = "xyes"; then
25818
25819 LD_FIRSTFLAG=""
25820
25821 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
25822
25823
25824 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
25825 ## freebsd, gnu-* not on powerpc*|s390x*.
25826 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
25827
25828 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
25829 ## places that are difficult to figure out at make time. Fortunately,
25830 ## these same versions allow you to pass arbitrary flags on to the
25831 ## linker, so there is no reason not to use it as a linker.
25832 ##
25833 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
25834 ## searching for libraries in its internal directories, so we have to
25835 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
25836 LD_FIRSTFLAG="-nostdlib"
25837 fi
25838
25839 ## FIXME? What setting of EDIT_LDFLAGS should this have?
25840 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
25841
25842
25843
25844
25845 ## FIXME? The logic here is not precisely the same as that above.
25846 ## There is no check here for a pre-defined LD_FIRSTFLAG.
25847 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
25848 LIB_GCC=
25849 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
25850
25851 case "$opsys" in
25852 freebsd|netbsd|openbsd) LIB_GCC= ;;
25853
25854 gnu-*)
25855 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
25856 ## build on ARM EABI under GNU/Linux. (Bug#5518)
25857 case $host_cpu in
25858 arm*)
25859 LIB_GCC="-lgcc_s"
25860 ;;
25861 *)
25862 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
25863 ## immediately undefine it again and redefine it to empty.
25864 ## Was the C_SWITCH_X_SITE part really necessary?
25865 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
25866 LIB_GCC=
25867 ;;
25868 esac
25869 ;;
25870
25871 ## Ask GCC where to find libgcc.a.
25872 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
25873 esac
25874 fi
25875
25876 ## Common for all window systems
25877 if test "$window_system" != "none"; then
25878
25879 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
25880
25881 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
25882 fi
25883
25884
25885
25886
25887
25888 #### Report on what we decided to do.
25889 #### Report GTK as a toolkit, even if it doesn't use Xt.
25890 #### It makes printing result more understandable as using GTK sets
25891 #### toolkit_scroll_bars to yes by default.
25892 if test "${HAVE_GTK}" = "yes"; then
25893 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
25894 fi
25895
25896 echo "
25897 Configured for \`${canonical}'.
25898
25899 Where should the build process find the source code? ${srcdir}
25900 What compiler should emacs be built with? ${CC} ${CFLAGS}
25901 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25902 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25903 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25904 What window system should Emacs use? ${window_system}
25905 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25906
25907 if test -n "${x_includes}"; then
25908 echo " Where do we find X Windows header files? ${x_includes}"
25909 else
25910 echo " Where do we find X Windows header files? Standard dirs"
25911 fi
25912 if test -n "${x_libraries}"; then
25913 echo " Where do we find X Windows libraries? ${x_libraries}"
25914 else
25915 echo " Where do we find X Windows libraries? Standard dirs"
25916 fi
25917
25918 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25919 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25920 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25921 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25922 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25923 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25924 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25925 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
25926
25927 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25928 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25929 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25930 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
25931 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
25932 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
25933 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
25934
25935 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25936 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25937 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25938 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25939
25940 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25941 echo
25942
25943 if test -n "${EMACSDATA}"; then
25944 echo " Environment variable EMACSDATA set to: $EMACSDATA"
25945 fi
25946 if test -n "${EMACSDOC}"; then
25947 echo " Environment variable EMACSDOC set to: $EMACSDOC"
25948 fi
25949
25950 echo
25951
25952 if test "$HAVE_NS" = "yes"; then
25953 echo
25954 echo "You must run \"${MAKE-make} install\" in order to test the built application.
25955 The installed application will go to nextstep/Emacs.app and can be
25956 run or moved from there."
25957 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25958 echo "The application will be fully self-contained."
25959 else
25960 echo "The lisp resources for the application will be installed under ${prefix}.
25961 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
25962 to run if these resources are not installed."
25963 fi
25964 echo
25965 fi
25966
25967 if test "${opsys}" = "cygwin"; then
25968 case `uname -r` in
25969 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
25970 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
25971 echo
25972 ;;
25973 esac
25974 fi
25975
25976 # Remove any trailing slashes in these variables.
25977 test "${prefix}" != NONE &&
25978 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25979 test "${exec_prefix}" != NONE &&
25980 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25981
25982 if test "$HAVE_NS" = "yes"; then
25983 if test "$NS_IMPL_GNUSTEP" = yes; then
25984 ac_config_files="$ac_config_files nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in"
25985
25986 else
25987 ac_config_files="$ac_config_files nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in"
25988
25989 fi
25990 fi
25991
25992 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 nextstep/Makefile"
25993
25994 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 nextstep/Makefile"
25995
25996
25997 opt_makefile=test/automated/Makefile
25998
25999 if test -f "$srcdir/$opt_makefile.in"; then
26000 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26001 ac_config_files="$ac_config_files test/automated/Makefile"
26002
26003 fi
26004
26005
26006 opt_makefile=admin/unidata/Makefile
26007
26008 if test -f "$srcdir/$opt_makefile.in"; then
26009 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26010 ac_config_files="$ac_config_files admin/unidata/Makefile"
26011
26012 fi
26013
26014
26015 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
26016
26017
26018
26019 ac_config_commands="$ac_config_commands mkdirs"
26020
26021
26022 ac_config_commands="$ac_config_commands epaths"
26023
26024
26025 ac_config_commands="$ac_config_commands gdbinit"
26026
26027
26028 cat >confcache <<\_ACEOF
26029 # This file is a shell script that caches the results of configure
26030 # tests run on this system so they can be shared between configure
26031 # scripts and configure runs, see configure's option --config-cache.
26032 # It is not useful on other systems. If it contains results you don't
26033 # want to keep, you may remove or edit it.
26034 #
26035 # config.status only pays attention to the cache file if you give it
26036 # the --recheck option to rerun configure.
26037 #
26038 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26040 # following values.
26041
26042 _ACEOF
26043
26044 # The following way of writing the cache mishandles newlines in values,
26045 # but we know of no workaround that is simple, portable, and efficient.
26046 # So, we kill variables containing newlines.
26047 # Ultrix sh set writes to stderr and can't be redirected directly,
26048 # and sets the high bit in the cache file unless we assign to the vars.
26049 (
26050 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26051 eval ac_val=\$$ac_var
26052 case $ac_val in #(
26053 *${as_nl}*)
26054 case $ac_var in #(
26055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26057 esac
26058 case $ac_var in #(
26059 _ | IFS | as_nl) ;; #(
26060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26061 *) { eval $ac_var=; unset $ac_var;} ;;
26062 esac ;;
26063 esac
26064 done
26065
26066 (set) 2>&1 |
26067 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26068 *${as_nl}ac_space=\ *)
26069 # `set' does not quote correctly, so add quotes: double-quote
26070 # substitution turns \\\\ into \\, and sed turns \\ into \.
26071 sed -n \
26072 "s/'/'\\\\''/g;
26073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26074 ;; #(
26075 *)
26076 # `set' quotes correctly as required by POSIX, so do not add quotes.
26077 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26078 ;;
26079 esac |
26080 sort
26081 ) |
26082 sed '
26083 /^ac_cv_env_/b end
26084 t clear
26085 :clear
26086 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26087 t end
26088 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26089 :end' >>confcache
26090 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26091 if test -w "$cache_file"; then
26092 test "x$cache_file" != "x/dev/null" &&
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26094 $as_echo "$as_me: updating cache $cache_file" >&6;}
26095 cat confcache >$cache_file
26096 else
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26098 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26099 fi
26100 fi
26101 rm -f confcache
26102
26103 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26104 # Let make expand exec_prefix.
26105 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26106
26107 DEFS=-DHAVE_CONFIG_H
26108
26109 ac_libobjs=
26110 ac_ltlibobjs=
26111 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26112 # 1. Remove the extension, and $U if already installed.
26113 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26114 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26115 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26116 # will be set to the directory where LIBOBJS objects are built.
26117 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26118 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26119 done
26120 LIBOBJS=$ac_libobjs
26121
26122 LTLIBOBJS=$ac_ltlibobjs
26123
26124
26125 if test -n "$EXEEXT"; then
26126 am__EXEEXT_TRUE=
26127 am__EXEEXT_FALSE='#'
26128 else
26129 am__EXEEXT_TRUE='#'
26130 am__EXEEXT_FALSE=
26131 fi
26132
26133 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26134 as_fn_error "conditional \"AMDEP\" was never defined.
26135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26136 fi
26137 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26138 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26140 fi
26141 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26142 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
26143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26144 fi
26145 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26146 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
26147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26148 fi
26149
26150 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
26151 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
26152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26153 fi
26154 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26155 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
26156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26157 fi
26158 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
26159 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
26160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26161 fi
26162 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
26163 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
26164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26165 fi
26166 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26167 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26169 fi
26170 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26171 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26173 fi
26174 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
26175 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
26176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26177 fi
26178 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
26179 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
26180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26181 fi
26182 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
26183 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
26184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26185 fi
26186 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
26187 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
26188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26189 fi
26190 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
26191 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
26192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26193 fi
26194 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
26195 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
26196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26197 fi
26198 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
26199 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
26200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26201 fi
26202 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
26203 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
26204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26205 fi
26206 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
26207 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
26208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26209 fi
26210 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
26211 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
26212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26213 fi
26214 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
26215 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
26216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26217 fi
26218 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
26219 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
26220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26221 fi
26222
26223 gl_libobjs=
26224 gl_ltlibobjs=
26225 if test -n "$gl_LIBOBJS"; then
26226 # Remove the extension.
26227 sed_drop_objext='s/\.o$//;s/\.obj$//'
26228 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26229 gl_libobjs="$gl_libobjs $i.$ac_objext"
26230 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26231 done
26232 fi
26233 gl_LIBOBJS=$gl_libobjs
26234
26235 gl_LTLIBOBJS=$gl_ltlibobjs
26236
26237
26238
26239 gltests_libobjs=
26240 gltests_ltlibobjs=
26241 if test -n "$gltests_LIBOBJS"; then
26242 # Remove the extension.
26243 sed_drop_objext='s/\.o$//;s/\.obj$//'
26244 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26245 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26246 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26247 done
26248 fi
26249 gltests_LIBOBJS=$gltests_libobjs
26250
26251 gltests_LTLIBOBJS=$gltests_ltlibobjs
26252
26253
26254
26255 : ${CONFIG_STATUS=./config.status}
26256 ac_write_fail=0
26257 ac_clean_files_save=$ac_clean_files
26258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26260 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26261 as_write_fail=0
26262 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26263 #! $SHELL
26264 # Generated by $as_me.
26265 # Run this file to recreate the current configuration.
26266 # Compiler output produced by configure, useful for debugging
26267 # configure, is in config.log if it exists.
26268
26269 debug=false
26270 ac_cs_recheck=false
26271 ac_cs_silent=false
26272
26273 SHELL=\${CONFIG_SHELL-$SHELL}
26274 export SHELL
26275 _ASEOF
26276 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26277 ## -------------------- ##
26278 ## M4sh Initialization. ##
26279 ## -------------------- ##
26280
26281 # Be more Bourne compatible
26282 DUALCASE=1; export DUALCASE # for MKS sh
26283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26284 emulate sh
26285 NULLCMD=:
26286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26287 # is contrary to our usage. Disable this feature.
26288 alias -g '${1+"$@"}'='"$@"'
26289 setopt NO_GLOB_SUBST
26290 else
26291 case `(set -o) 2>/dev/null` in #(
26292 *posix*) :
26293 set -o posix ;; #(
26294 *) :
26295 ;;
26296 esac
26297 fi
26298
26299
26300 as_nl='
26301 '
26302 export as_nl
26303 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26304 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26307 # Prefer a ksh shell builtin over an external printf program on Solaris,
26308 # but without wasting forks for bash or zsh.
26309 if test -z "$BASH_VERSION$ZSH_VERSION" \
26310 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26311 as_echo='print -r --'
26312 as_echo_n='print -rn --'
26313 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26314 as_echo='printf %s\n'
26315 as_echo_n='printf %s'
26316 else
26317 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26318 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26319 as_echo_n='/usr/ucb/echo -n'
26320 else
26321 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26322 as_echo_n_body='eval
26323 arg=$1;
26324 case $arg in #(
26325 *"$as_nl"*)
26326 expr "X$arg" : "X\\(.*\\)$as_nl";
26327 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26328 esac;
26329 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26330 '
26331 export as_echo_n_body
26332 as_echo_n='sh -c $as_echo_n_body as_echo'
26333 fi
26334 export as_echo_body
26335 as_echo='sh -c $as_echo_body as_echo'
26336 fi
26337
26338 # The user is always right.
26339 if test "${PATH_SEPARATOR+set}" != set; then
26340 PATH_SEPARATOR=:
26341 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26342 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26343 PATH_SEPARATOR=';'
26344 }
26345 fi
26346
26347
26348 # IFS
26349 # We need space, tab and new line, in precisely that order. Quoting is
26350 # there to prevent editors from complaining about space-tab.
26351 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26352 # splitting by setting IFS to empty value.)
26353 IFS=" "" $as_nl"
26354
26355 # Find who we are. Look in the path if we contain no directory separator.
26356 case $0 in #((
26357 *[\\/]* ) as_myself=$0 ;;
26358 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26359 for as_dir in $PATH
26360 do
26361 IFS=$as_save_IFS
26362 test -z "$as_dir" && as_dir=.
26363 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26364 done
26365 IFS=$as_save_IFS
26366
26367 ;;
26368 esac
26369 # We did not find ourselves, most probably we were run as `sh COMMAND'
26370 # in which case we are not to be found in the path.
26371 if test "x$as_myself" = x; then
26372 as_myself=$0
26373 fi
26374 if test ! -f "$as_myself"; then
26375 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26376 exit 1
26377 fi
26378
26379 # Unset variables that we do not need and which cause bugs (e.g. in
26380 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26381 # suppresses any "Segmentation fault" message there. '((' could
26382 # trigger a bug in pdksh 5.2.14.
26383 for as_var in BASH_ENV ENV MAIL MAILPATH
26384 do eval test x\${$as_var+set} = xset \
26385 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26386 done
26387 PS1='$ '
26388 PS2='> '
26389 PS4='+ '
26390
26391 # NLS nuisances.
26392 LC_ALL=C
26393 export LC_ALL
26394 LANGUAGE=C
26395 export LANGUAGE
26396
26397 # CDPATH.
26398 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26399
26400
26401 # as_fn_error ERROR [LINENO LOG_FD]
26402 # ---------------------------------
26403 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26404 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26405 # script with status $?, using 1 if that was 0.
26406 as_fn_error ()
26407 {
26408 as_status=$?; test $as_status -eq 0 && as_status=1
26409 if test "$3"; then
26410 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26411 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26412 fi
26413 $as_echo "$as_me: error: $1" >&2
26414 as_fn_exit $as_status
26415 } # as_fn_error
26416
26417
26418 # as_fn_set_status STATUS
26419 # -----------------------
26420 # Set $? to STATUS, without forking.
26421 as_fn_set_status ()
26422 {
26423 return $1
26424 } # as_fn_set_status
26425
26426 # as_fn_exit STATUS
26427 # -----------------
26428 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26429 as_fn_exit ()
26430 {
26431 set +e
26432 as_fn_set_status $1
26433 exit $1
26434 } # as_fn_exit
26435
26436 # as_fn_unset VAR
26437 # ---------------
26438 # Portably unset VAR.
26439 as_fn_unset ()
26440 {
26441 { eval $1=; unset $1;}
26442 }
26443 as_unset=as_fn_unset
26444 # as_fn_append VAR VALUE
26445 # ----------------------
26446 # Append the text in VALUE to the end of the definition contained in VAR. Take
26447 # advantage of any shell optimizations that allow amortized linear growth over
26448 # repeated appends, instead of the typical quadratic growth present in naive
26449 # implementations.
26450 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26451 eval 'as_fn_append ()
26452 {
26453 eval $1+=\$2
26454 }'
26455 else
26456 as_fn_append ()
26457 {
26458 eval $1=\$$1\$2
26459 }
26460 fi # as_fn_append
26461
26462 # as_fn_arith ARG...
26463 # ------------------
26464 # Perform arithmetic evaluation on the ARGs, and store the result in the
26465 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26466 # must be portable across $(()) and expr.
26467 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26468 eval 'as_fn_arith ()
26469 {
26470 as_val=$(( $* ))
26471 }'
26472 else
26473 as_fn_arith ()
26474 {
26475 as_val=`expr "$@" || test $? -eq 1`
26476 }
26477 fi # as_fn_arith
26478
26479
26480 if expr a : '\(a\)' >/dev/null 2>&1 &&
26481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26482 as_expr=expr
26483 else
26484 as_expr=false
26485 fi
26486
26487 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26488 as_basename=basename
26489 else
26490 as_basename=false
26491 fi
26492
26493 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26494 as_dirname=dirname
26495 else
26496 as_dirname=false
26497 fi
26498
26499 as_me=`$as_basename -- "$0" ||
26500 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26501 X"$0" : 'X\(//\)$' \| \
26502 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26503 $as_echo X/"$0" |
26504 sed '/^.*\/\([^/][^/]*\)\/*$/{
26505 s//\1/
26506 q
26507 }
26508 /^X\/\(\/\/\)$/{
26509 s//\1/
26510 q
26511 }
26512 /^X\/\(\/\).*/{
26513 s//\1/
26514 q
26515 }
26516 s/.*/./; q'`
26517
26518 # Avoid depending upon Character Ranges.
26519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26522 as_cr_digits='0123456789'
26523 as_cr_alnum=$as_cr_Letters$as_cr_digits
26524
26525 ECHO_C= ECHO_N= ECHO_T=
26526 case `echo -n x` in #(((((
26527 -n*)
26528 case `echo 'xy\c'` in
26529 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26530 xy) ECHO_C='\c';;
26531 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26532 ECHO_T=' ';;
26533 esac;;
26534 *)
26535 ECHO_N='-n';;
26536 esac
26537
26538 rm -f conf$$ conf$$.exe conf$$.file
26539 if test -d conf$$.dir; then
26540 rm -f conf$$.dir/conf$$.file
26541 else
26542 rm -f conf$$.dir
26543 mkdir conf$$.dir 2>/dev/null
26544 fi
26545 if (echo >conf$$.file) 2>/dev/null; then
26546 if ln -s conf$$.file conf$$ 2>/dev/null; then
26547 as_ln_s='ln -s'
26548 # ... but there are two gotchas:
26549 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26550 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26551 # In both cases, we have to default to `cp -p'.
26552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26553 as_ln_s='cp -p'
26554 elif ln conf$$.file conf$$ 2>/dev/null; then
26555 as_ln_s=ln
26556 else
26557 as_ln_s='cp -p'
26558 fi
26559 else
26560 as_ln_s='cp -p'
26561 fi
26562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26563 rmdir conf$$.dir 2>/dev/null
26564
26565
26566 # as_fn_mkdir_p
26567 # -------------
26568 # Create "$as_dir" as a directory, including parents if necessary.
26569 as_fn_mkdir_p ()
26570 {
26571
26572 case $as_dir in #(
26573 -*) as_dir=./$as_dir;;
26574 esac
26575 test -d "$as_dir" || eval $as_mkdir_p || {
26576 as_dirs=
26577 while :; do
26578 case $as_dir in #(
26579 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26580 *) as_qdir=$as_dir;;
26581 esac
26582 as_dirs="'$as_qdir' $as_dirs"
26583 as_dir=`$as_dirname -- "$as_dir" ||
26584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26585 X"$as_dir" : 'X\(//\)[^/]' \| \
26586 X"$as_dir" : 'X\(//\)$' \| \
26587 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26588 $as_echo X"$as_dir" |
26589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26590 s//\1/
26591 q
26592 }
26593 /^X\(\/\/\)[^/].*/{
26594 s//\1/
26595 q
26596 }
26597 /^X\(\/\/\)$/{
26598 s//\1/
26599 q
26600 }
26601 /^X\(\/\).*/{
26602 s//\1/
26603 q
26604 }
26605 s/.*/./; q'`
26606 test -d "$as_dir" && break
26607 done
26608 test -z "$as_dirs" || eval "mkdir $as_dirs"
26609 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26610
26611
26612 } # as_fn_mkdir_p
26613 if mkdir -p . 2>/dev/null; then
26614 as_mkdir_p='mkdir -p "$as_dir"'
26615 else
26616 test -d ./-p && rmdir ./-p
26617 as_mkdir_p=false
26618 fi
26619
26620 if test -x / >/dev/null 2>&1; then
26621 as_test_x='test -x'
26622 else
26623 if ls -dL / >/dev/null 2>&1; then
26624 as_ls_L_option=L
26625 else
26626 as_ls_L_option=
26627 fi
26628 as_test_x='
26629 eval sh -c '\''
26630 if test -d "$1"; then
26631 test -d "$1/.";
26632 else
26633 case $1 in #(
26634 -*)set "./$1";;
26635 esac;
26636 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26637 ???[sx]*):;;*)false;;esac;fi
26638 '\'' sh
26639 '
26640 fi
26641 as_executable_p=$as_test_x
26642
26643 # Sed expression to map a string onto a valid CPP name.
26644 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26645
26646 # Sed expression to map a string onto a valid variable name.
26647 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26648
26649
26650 exec 6>&1
26651 ## ----------------------------------- ##
26652 ## Main body of $CONFIG_STATUS script. ##
26653 ## ----------------------------------- ##
26654 _ASEOF
26655 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26656
26657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26658 # Save the log message, to keep $0 and so on meaningful, and to
26659 # report actual input values of CONFIG_FILES etc. instead of their
26660 # values after options handling.
26661 ac_log="
26662 This file was extended by emacs $as_me 24.3.50, which was
26663 generated by GNU Autoconf 2.65. Invocation command line was
26664
26665 CONFIG_FILES = $CONFIG_FILES
26666 CONFIG_HEADERS = $CONFIG_HEADERS
26667 CONFIG_LINKS = $CONFIG_LINKS
26668 CONFIG_COMMANDS = $CONFIG_COMMANDS
26669 $ $0 $@
26670
26671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26672 "
26673
26674 _ACEOF
26675
26676 case $ac_config_files in *"
26677 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26678 esac
26679
26680 case $ac_config_headers in *"
26681 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26682 esac
26683
26684
26685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26686 # Files that config.status was made for.
26687 config_files="$ac_config_files"
26688 config_headers="$ac_config_headers"
26689 config_commands="$ac_config_commands"
26690
26691 _ACEOF
26692
26693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26694 ac_cs_usage="\
26695 \`$as_me' instantiates files and other configuration actions
26696 from templates according to the current configuration. Unless the files
26697 and actions are specified as TAGs, all are instantiated by default.
26698
26699 Usage: $0 [OPTION]... [TAG]...
26700
26701 -h, --help print this help, then exit
26702 -V, --version print version number and configuration settings, then exit
26703 --config print configuration, then exit
26704 -q, --quiet, --silent
26705 do not print progress messages
26706 -d, --debug don't remove temporary files
26707 --recheck update $as_me by reconfiguring in the same conditions
26708 --file=FILE[:TEMPLATE]
26709 instantiate the configuration file FILE
26710 --header=FILE[:TEMPLATE]
26711 instantiate the configuration header FILE
26712
26713 Configuration files:
26714 $config_files
26715
26716 Configuration headers:
26717 $config_headers
26718
26719 Configuration commands:
26720 $config_commands
26721
26722 Report bugs to the package provider."
26723
26724 _ACEOF
26725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26726 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26727 ac_cs_version="\\
26728 emacs config.status 24.3.50
26729 configured by $0, generated by GNU Autoconf 2.65,
26730 with options \\"\$ac_cs_config\\"
26731
26732 Copyright (C) 2009 Free Software Foundation, Inc.
26733 This config.status script is free software; the Free Software Foundation
26734 gives unlimited permission to copy, distribute and modify it."
26735
26736 ac_pwd='$ac_pwd'
26737 srcdir='$srcdir'
26738 INSTALL='$INSTALL'
26739 MKDIR_P='$MKDIR_P'
26740 AWK='$AWK'
26741 test -n "\$AWK" || AWK=awk
26742 _ACEOF
26743
26744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26745 # The default lists apply if the user does not specify any file.
26746 ac_need_defaults=:
26747 while test $# != 0
26748 do
26749 case $1 in
26750 --*=*)
26751 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26752 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26753 ac_shift=:
26754 ;;
26755 *)
26756 ac_option=$1
26757 ac_optarg=$2
26758 ac_shift=shift
26759 ;;
26760 esac
26761
26762 case $ac_option in
26763 # Handling of the options.
26764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26765 ac_cs_recheck=: ;;
26766 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26767 $as_echo "$ac_cs_version"; exit ;;
26768 --config | --confi | --conf | --con | --co | --c )
26769 $as_echo "$ac_cs_config"; exit ;;
26770 --debug | --debu | --deb | --de | --d | -d )
26771 debug=: ;;
26772 --file | --fil | --fi | --f )
26773 $ac_shift
26774 case $ac_optarg in
26775 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26776 esac
26777 as_fn_append CONFIG_FILES " '$ac_optarg'"
26778 ac_need_defaults=false;;
26779 --header | --heade | --head | --hea )
26780 $ac_shift
26781 case $ac_optarg in
26782 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26783 esac
26784 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26785 ac_need_defaults=false;;
26786 --he | --h)
26787 # Conflict between --help and --header
26788 as_fn_error "ambiguous option: \`$1'
26789 Try \`$0 --help' for more information.";;
26790 --help | --hel | -h )
26791 $as_echo "$ac_cs_usage"; exit ;;
26792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26793 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26794 ac_cs_silent=: ;;
26795
26796 # This is an error.
26797 -*) as_fn_error "unrecognized option: \`$1'
26798 Try \`$0 --help' for more information." ;;
26799
26800 *) as_fn_append ac_config_targets " $1"
26801 ac_need_defaults=false ;;
26802
26803 esac
26804 shift
26805 done
26806
26807 ac_configure_extra_args=
26808
26809 if $ac_cs_silent; then
26810 exec 6>/dev/null
26811 ac_configure_extra_args="$ac_configure_extra_args --silent"
26812 fi
26813
26814 _ACEOF
26815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26816 if \$ac_cs_recheck; then
26817 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26818 shift
26819 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26820 CONFIG_SHELL='$SHELL'
26821 export CONFIG_SHELL
26822 exec "\$@"
26823 fi
26824
26825 _ACEOF
26826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26827 exec 5>>config.log
26828 {
26829 echo
26830 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26831 ## Running $as_me. ##
26832 _ASBOX
26833 $as_echo "$ac_log"
26834 } >&5
26835
26836 _ACEOF
26837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26838 #
26839 # INIT-COMMANDS
26840 #
26841 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26842 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
26843
26844 _ACEOF
26845
26846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26847
26848 # Handling of arguments.
26849 for ac_config_target in $ac_config_targets
26850 do
26851 case $ac_config_target in
26852 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26853 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26854 "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in" ;;
26855 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
26856 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
26857 "nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in" ;;
26858 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26859 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26860 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
26861 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26862 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26863 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26864 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26865 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26866 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26867 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26868 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26869 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26870 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
26871 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
26872 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
26873 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
26874 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
26875 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
26876
26877 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26878 esac
26879 done
26880
26881
26882 # If the user did not use the arguments to specify the items to instantiate,
26883 # then the envvar interface is used. Set only those that are not.
26884 # We use the long form for the default assignment because of an extremely
26885 # bizarre bug on SunOS 4.1.3.
26886 if $ac_need_defaults; then
26887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26889 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26890 fi
26891
26892 # Have a temporary directory for convenience. Make it in the build tree
26893 # simply because there is no reason against having it here, and in addition,
26894 # creating and moving files from /tmp can sometimes cause problems.
26895 # Hook for its removal unless debugging.
26896 # Note that there is a small window in which the directory will not be cleaned:
26897 # after its creation but before its name has been assigned to `$tmp'.
26898 $debug ||
26899 {
26900 tmp=
26901 trap 'exit_status=$?
26902 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26903 ' 0
26904 trap 'as_fn_exit 1' 1 2 13 15
26905 }
26906 # Create a (secure) tmp directory for tmp files.
26907
26908 {
26909 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26910 test -n "$tmp" && test -d "$tmp"
26911 } ||
26912 {
26913 tmp=./conf$$-$RANDOM
26914 (umask 077 && mkdir "$tmp")
26915 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26916
26917 # Set up the scripts for CONFIG_FILES section.
26918 # No need to generate them if there are no CONFIG_FILES.
26919 # This happens for instance with `./config.status config.h'.
26920 if test -n "$CONFIG_FILES"; then
26921
26922 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26923 ac_cs_awk_getline=:
26924 ac_cs_awk_pipe_init=
26925 ac_cs_awk_read_file='
26926 while ((getline aline < (F[key])) > 0)
26927 print(aline)
26928 close(F[key])'
26929 ac_cs_awk_pipe_fini=
26930 else
26931 ac_cs_awk_getline=false
26932 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26933 ac_cs_awk_read_file='
26934 print "|#_!!_#|"
26935 print "cat " F[key] " &&"
26936 '$ac_cs_awk_pipe_init
26937 # The final `:' finishes the AND list.
26938 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26939 fi
26940 ac_cr=`echo X | tr X '\015'`
26941 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26942 # But we know of no other shell where ac_cr would be empty at this
26943 # point, so we can use a bashism as a fallback.
26944 if test "x$ac_cr" = x; then
26945 eval ac_cr=\$\'\\r\'
26946 fi
26947 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26948 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26949 ac_cs_awk_cr='\r'
26950 else
26951 ac_cs_awk_cr=$ac_cr
26952 fi
26953
26954 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26955 _ACEOF
26956
26957 # Create commands to substitute file output variables.
26958 {
26959 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26960 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26961 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26962 echo "_ACAWK" &&
26963 echo "_ACEOF"
26964 } >conf$$files.sh &&
26965 . ./conf$$files.sh ||
26966 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26967 rm -f conf$$files.sh
26968
26969 {
26970 echo "cat >conf$$subs.awk <<_ACEOF" &&
26971 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26972 echo "_ACEOF"
26973 } >conf$$subs.sh ||
26974 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26975 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26976 ac_delim='%!_!# '
26977 for ac_last_try in false false false false false :; do
26978 . ./conf$$subs.sh ||
26979 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26980
26981 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26982 if test $ac_delim_n = $ac_delim_num; then
26983 break
26984 elif $ac_last_try; then
26985 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26986 else
26987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26988 fi
26989 done
26990 rm -f conf$$subs.sh
26991
26992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26993 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26994 _ACEOF
26995 sed -n '
26996 h
26997 s/^/S["/; s/!.*/"]=/
26998 p
26999 g
27000 s/^[^!]*!//
27001 :repl
27002 t repl
27003 s/'"$ac_delim"'$//
27004 t delim
27005 :nl
27006 h
27007 s/\(.\{148\}\)..*/\1/
27008 t more1
27009 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27010 p
27011 n
27012 b repl
27013 :more1
27014 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27015 p
27016 g
27017 s/.\{148\}//
27018 t nl
27019 :delim
27020 h
27021 s/\(.\{148\}\)..*/\1/
27022 t more2
27023 s/["\\]/\\&/g; s/^/"/; s/$/"/
27024 p
27025 b
27026 :more2
27027 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27028 p
27029 g
27030 s/.\{148\}//
27031 t delim
27032 ' <conf$$subs.awk | sed '
27033 /^[^""]/{
27034 N
27035 s/\n//
27036 }
27037 ' >>$CONFIG_STATUS || ac_write_fail=1
27038 rm -f conf$$subs.awk
27039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27040 _ACAWK
27041 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27042 for (key in S) S_is_set[key] = 1
27043 FS = "\a"
27044 \$ac_cs_awk_pipe_init
27045 }
27046 {
27047 line = $ 0
27048 nfields = split(line, field, "@")
27049 substed = 0
27050 len = length(field[1])
27051 for (i = 2; i < nfields; i++) {
27052 key = field[i]
27053 keylen = length(key)
27054 if (S_is_set[key]) {
27055 value = S[key]
27056 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27057 len += length(value) + length(field[++i])
27058 substed = 1
27059 } else
27060 len += 1 + keylen
27061 }
27062 if (nfields == 3 && !substed) {
27063 key = field[2]
27064 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27065 \$ac_cs_awk_read_file
27066 next
27067 }
27068 }
27069 print line
27070 }
27071 \$ac_cs_awk_pipe_fini
27072 _ACAWK
27073 _ACEOF
27074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27075 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27076 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27077 else
27078 cat
27079 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27080 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27081 _ACEOF
27082
27083 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27084 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27085 # trailing colons and then remove the whole line if VPATH becomes empty
27086 # (actually we leave an empty line to preserve line numbers).
27087 if test "x$srcdir" = x.; then
27088 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27089 s/:*\$(srcdir):*/:/
27090 s/:*\${srcdir}:*/:/
27091 s/:*@srcdir@:*/:/
27092 s/^\([^=]*=[ ]*\):*/\1/
27093 s/:*$//
27094 s/^[^=]*=[ ]*$//
27095 }'
27096 fi
27097
27098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27099 fi # test -n "$CONFIG_FILES"
27100
27101 # Set up the scripts for CONFIG_HEADERS section.
27102 # No need to generate them if there are no CONFIG_HEADERS.
27103 # This happens for instance with `./config.status Makefile'.
27104 if test -n "$CONFIG_HEADERS"; then
27105 cat >"$tmp/defines.awk" <<\_ACAWK ||
27106 BEGIN {
27107 _ACEOF
27108
27109 # Transform confdefs.h into an awk script `defines.awk', embedded as
27110 # here-document in config.status, that substitutes the proper values into
27111 # config.h.in to produce config.h.
27112
27113 # Create a delimiter string that does not exist in confdefs.h, to ease
27114 # handling of long lines.
27115 ac_delim='%!_!# '
27116 for ac_last_try in false false :; do
27117 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27118 if test -z "$ac_t"; then
27119 break
27120 elif $ac_last_try; then
27121 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27122 else
27123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27124 fi
27125 done
27126
27127 # For the awk script, D is an array of macro values keyed by name,
27128 # likewise P contains macro parameters if any. Preserve backslash
27129 # newline sequences.
27130
27131 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27132 sed -n '
27133 s/.\{148\}/&'"$ac_delim"'/g
27134 t rset
27135 :rset
27136 s/^[ ]*#[ ]*define[ ][ ]*/ /
27137 t def
27138 d
27139 :def
27140 s/\\$//
27141 t bsnl
27142 s/["\\]/\\&/g
27143 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27144 D["\1"]=" \3"/p
27145 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27146 d
27147 :bsnl
27148 s/["\\]/\\&/g
27149 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27150 D["\1"]=" \3\\\\\\n"\\/p
27151 t cont
27152 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27153 t cont
27154 d
27155 :cont
27156 n
27157 s/.\{148\}/&'"$ac_delim"'/g
27158 t clear
27159 :clear
27160 s/\\$//
27161 t bsnlc
27162 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27163 d
27164 :bsnlc
27165 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27166 b cont
27167 ' <confdefs.h | sed '
27168 s/'"$ac_delim"'/"\\\
27169 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27170
27171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27172 for (key in D) D_is_set[key] = 1
27173 FS = "\a"
27174 }
27175 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27176 line = \$ 0
27177 split(line, arg, " ")
27178 if (arg[1] == "#") {
27179 defundef = arg[2]
27180 mac1 = arg[3]
27181 } else {
27182 defundef = substr(arg[1], 2)
27183 mac1 = arg[2]
27184 }
27185 split(mac1, mac2, "(") #)
27186 macro = mac2[1]
27187 prefix = substr(line, 1, index(line, defundef) - 1)
27188 if (D_is_set[macro]) {
27189 # Preserve the white space surrounding the "#".
27190 print prefix "define", macro P[macro] D[macro]
27191 next
27192 } else {
27193 # Replace #undef with comments. This is necessary, for example,
27194 # in the case of _POSIX_SOURCE, which is predefined and required
27195 # on some systems where configure will not decide to define it.
27196 if (defundef == "undef") {
27197 print "/*", prefix defundef, macro, "*/"
27198 next
27199 }
27200 }
27201 }
27202 { print }
27203 _ACAWK
27204 _ACEOF
27205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27206 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27207 fi # test -n "$CONFIG_HEADERS"
27208
27209
27210 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27211 shift
27212 for ac_tag
27213 do
27214 case $ac_tag in
27215 :[FHLC]) ac_mode=$ac_tag; continue;;
27216 esac
27217 case $ac_mode$ac_tag in
27218 :[FHL]*:*);;
27219 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27220 :[FH]-) ac_tag=-:-;;
27221 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27222 esac
27223 ac_save_IFS=$IFS
27224 IFS=:
27225 set x $ac_tag
27226 IFS=$ac_save_IFS
27227 shift
27228 ac_file=$1
27229 shift
27230
27231 case $ac_mode in
27232 :L) ac_source=$1;;
27233 :[FH])
27234 ac_file_inputs=
27235 for ac_f
27236 do
27237 case $ac_f in
27238 -) ac_f="$tmp/stdin";;
27239 *) # Look for the file first in the build tree, then in the source tree
27240 # (if the path is not absolute). The absolute path cannot be DOS-style,
27241 # because $ac_f cannot contain `:'.
27242 test -f "$ac_f" ||
27243 case $ac_f in
27244 [\\/$]*) false;;
27245 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27246 esac ||
27247 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27248 esac
27249 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27250 as_fn_append ac_file_inputs " '$ac_f'"
27251 done
27252
27253 # Let's still pretend it is `configure' which instantiates (i.e., don't
27254 # use $as_me), people would be surprised to read:
27255 # /* config.h. Generated by config.status. */
27256 configure_input='Generated from '`
27257 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27258 `' by configure.'
27259 if test x"$ac_file" != x-; then
27260 configure_input="$ac_file. $configure_input"
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27262 $as_echo "$as_me: creating $ac_file" >&6;}
27263 fi
27264 # Neutralize special characters interpreted by sed in replacement strings.
27265 case $configure_input in #(
27266 *\&* | *\|* | *\\* )
27267 ac_sed_conf_input=`$as_echo "$configure_input" |
27268 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27269 *) ac_sed_conf_input=$configure_input;;
27270 esac
27271
27272 case $ac_tag in
27273 *:-:* | *:-) cat >"$tmp/stdin" \
27274 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27275 esac
27276 ;;
27277 esac
27278
27279 ac_dir=`$as_dirname -- "$ac_file" ||
27280 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27281 X"$ac_file" : 'X\(//\)[^/]' \| \
27282 X"$ac_file" : 'X\(//\)$' \| \
27283 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27284 $as_echo X"$ac_file" |
27285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27286 s//\1/
27287 q
27288 }
27289 /^X\(\/\/\)[^/].*/{
27290 s//\1/
27291 q
27292 }
27293 /^X\(\/\/\)$/{
27294 s//\1/
27295 q
27296 }
27297 /^X\(\/\).*/{
27298 s//\1/
27299 q
27300 }
27301 s/.*/./; q'`
27302 as_dir="$ac_dir"; as_fn_mkdir_p
27303 ac_builddir=.
27304
27305 case "$ac_dir" in
27306 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27307 *)
27308 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27309 # A ".." for each directory in $ac_dir_suffix.
27310 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27311 case $ac_top_builddir_sub in
27312 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27313 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27314 esac ;;
27315 esac
27316 ac_abs_top_builddir=$ac_pwd
27317 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27318 # for backward compatibility:
27319 ac_top_builddir=$ac_top_build_prefix
27320
27321 case $srcdir in
27322 .) # We are building in place.
27323 ac_srcdir=.
27324 ac_top_srcdir=$ac_top_builddir_sub
27325 ac_abs_top_srcdir=$ac_pwd ;;
27326 [\\/]* | ?:[\\/]* ) # Absolute name.
27327 ac_srcdir=$srcdir$ac_dir_suffix;
27328 ac_top_srcdir=$srcdir
27329 ac_abs_top_srcdir=$srcdir ;;
27330 *) # Relative name.
27331 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27332 ac_top_srcdir=$ac_top_build_prefix$srcdir
27333 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27334 esac
27335 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27336
27337
27338 case $ac_mode in
27339 :F)
27340 #
27341 # CONFIG_FILE
27342 #
27343
27344 case $INSTALL in
27345 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27346 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27347 esac
27348 ac_MKDIR_P=$MKDIR_P
27349 case $MKDIR_P in
27350 [\\/$]* | ?:[\\/]* ) ;;
27351 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27352 esac
27353 _ACEOF
27354
27355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27356 # If the template does not know about datarootdir, expand it.
27357 # FIXME: This hack should be removed a few years after 2.60.
27358 ac_datarootdir_hack=; ac_datarootdir_seen=
27359 ac_sed_dataroot='
27360 /datarootdir/ {
27361 p
27362 q
27363 }
27364 /@datadir@/p
27365 /@docdir@/p
27366 /@infodir@/p
27367 /@localedir@/p
27368 /@mandir@/p'
27369 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27370 *datarootdir*) ac_datarootdir_seen=yes;;
27371 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27373 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27374 _ACEOF
27375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27376 ac_datarootdir_hack='
27377 s&@datadir@&$datadir&g
27378 s&@docdir@&$docdir&g
27379 s&@infodir@&$infodir&g
27380 s&@localedir@&$localedir&g
27381 s&@mandir@&$mandir&g
27382 s&\\\${datarootdir}&$datarootdir&g' ;;
27383 esac
27384 _ACEOF
27385
27386 # Neutralize VPATH when `$srcdir' = `.'.
27387 # Shell code in configure.ac might set extrasub.
27388 # FIXME: do we really want to maintain this feature?
27389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27390 ac_sed_extra="$ac_vpsub
27391 $extrasub
27392 _ACEOF
27393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27394 :t
27395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27396 s|@configure_input@|$ac_sed_conf_input|;t t
27397 s&@top_builddir@&$ac_top_builddir_sub&;t t
27398 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27399 s&@srcdir@&$ac_srcdir&;t t
27400 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27401 s&@top_srcdir@&$ac_top_srcdir&;t t
27402 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27403 s&@builddir@&$ac_builddir&;t t
27404 s&@abs_builddir@&$ac_abs_builddir&;t t
27405 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27406 s&@INSTALL@&$ac_INSTALL&;t t
27407 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27408 $ac_datarootdir_hack
27409 "
27410 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27411 if $ac_cs_awk_getline; then
27412 $AWK -f "$tmp/subs.awk"
27413 else
27414 $AWK -f "$tmp/subs.awk" | $SHELL
27415 fi >$tmp/out \
27416 || as_fn_error "could not create $ac_file" "$LINENO" 5
27417
27418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27419 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27420 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27422 which seems to be undefined. Please make sure it is defined." >&5
27423 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27424 which seems to be undefined. Please make sure it is defined." >&2;}
27425
27426 rm -f "$tmp/stdin"
27427 case $ac_file in
27428 -) cat "$tmp/out" && rm -f "$tmp/out";;
27429 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27430 esac \
27431 || as_fn_error "could not create $ac_file" "$LINENO" 5
27432 ;;
27433 :H)
27434 #
27435 # CONFIG_HEADER
27436 #
27437 if test x"$ac_file" != x-; then
27438 {
27439 $as_echo "/* $configure_input */" \
27440 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27441 } >"$tmp/config.h" \
27442 || as_fn_error "could not create $ac_file" "$LINENO" 5
27443 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27445 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27446 else
27447 rm -f "$ac_file"
27448 mv "$tmp/config.h" "$ac_file" \
27449 || as_fn_error "could not create $ac_file" "$LINENO" 5
27450 fi
27451 else
27452 $as_echo "/* $configure_input */" \
27453 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27454 || as_fn_error "could not create -" "$LINENO" 5
27455 fi
27456 # Compute "$ac_file"'s index in $config_headers.
27457 _am_arg="$ac_file"
27458 _am_stamp_count=1
27459 for _am_header in $config_headers :; do
27460 case $_am_header in
27461 $_am_arg | $_am_arg:* )
27462 break ;;
27463 * )
27464 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27465 esac
27466 done
27467 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27468 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27469 X"$_am_arg" : 'X\(//\)[^/]' \| \
27470 X"$_am_arg" : 'X\(//\)$' \| \
27471 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27472 $as_echo X"$_am_arg" |
27473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27474 s//\1/
27475 q
27476 }
27477 /^X\(\/\/\)[^/].*/{
27478 s//\1/
27479 q
27480 }
27481 /^X\(\/\/\)$/{
27482 s//\1/
27483 q
27484 }
27485 /^X\(\/\).*/{
27486 s//\1/
27487 q
27488 }
27489 s/.*/./; q'`/stamp-h$_am_stamp_count
27490 ;;
27491
27492 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27493 $as_echo "$as_me: executing $ac_file commands" >&6;}
27494 ;;
27495 esac
27496
27497
27498 case $ac_file$ac_mode in
27499 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27500 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27501 # are listed without --file. Let's play safe and only enable the eval
27502 # if we detect the quoting.
27503 case $CONFIG_FILES in
27504 *\'*) eval set x "$CONFIG_FILES" ;;
27505 *) set x $CONFIG_FILES ;;
27506 esac
27507 shift
27508 for mf
27509 do
27510 # Strip MF so we end up with the name of the file.
27511 mf=`echo "$mf" | sed -e 's/:.*$//'`
27512 # Check whether this is an Automake generated Makefile or not.
27513 # We used to match only the files named `Makefile.in', but
27514 # some people rename them; so instead we look at the file content.
27515 # Grep'ing the first line is not enough: some people post-process
27516 # each Makefile.in and add a new line on top of each file to say so.
27517 # Grep'ing the whole file is not good either: AIX grep has a line
27518 # limit of 2048, but all sed's we know have understand at least 4000.
27519 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27520 dirpart=`$as_dirname -- "$mf" ||
27521 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27522 X"$mf" : 'X\(//\)[^/]' \| \
27523 X"$mf" : 'X\(//\)$' \| \
27524 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27525 $as_echo X"$mf" |
27526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27527 s//\1/
27528 q
27529 }
27530 /^X\(\/\/\)[^/].*/{
27531 s//\1/
27532 q
27533 }
27534 /^X\(\/\/\)$/{
27535 s//\1/
27536 q
27537 }
27538 /^X\(\/\).*/{
27539 s//\1/
27540 q
27541 }
27542 s/.*/./; q'`
27543 else
27544 continue
27545 fi
27546 # Extract the definition of DEPDIR, am__include, and am__quote
27547 # from the Makefile without running `make'.
27548 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27549 test -z "$DEPDIR" && continue
27550 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27551 test -z "am__include" && continue
27552 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27553 # When using ansi2knr, U may be empty or an underscore; expand it
27554 U=`sed -n 's/^U = //p' < "$mf"`
27555 # Find all dependency output files, they are included files with
27556 # $(DEPDIR) in their names. We invoke sed twice because it is the
27557 # simplest approach to changing $(DEPDIR) to its actual value in the
27558 # expansion.
27559 for file in `sed -n "
27560 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27561 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27562 # Make sure the directory exists.
27563 test -f "$dirpart/$file" && continue
27564 fdir=`$as_dirname -- "$file" ||
27565 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27566 X"$file" : 'X\(//\)[^/]' \| \
27567 X"$file" : 'X\(//\)$' \| \
27568 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27569 $as_echo X"$file" |
27570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27571 s//\1/
27572 q
27573 }
27574 /^X\(\/\/\)[^/].*/{
27575 s//\1/
27576 q
27577 }
27578 /^X\(\/\/\)$/{
27579 s//\1/
27580 q
27581 }
27582 /^X\(\/\).*/{
27583 s//\1/
27584 q
27585 }
27586 s/.*/./; q'`
27587 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27588 # echo "creating $dirpart/$file"
27589 echo '# dummy' > "$dirpart/$file"
27590 done
27591 done
27592 }
27593 ;;
27594 "mkdirs":C)
27595 for dir in etc lisp ; do
27596 test -d ${dir} || mkdir ${dir}
27597 done
27598 ;;
27599 "epaths":C)
27600 echo creating src/epaths.h
27601 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
27602 ;;
27603 "gdbinit":C)
27604 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
27605 echo creating src/.gdbinit
27606 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
27607 fi
27608 ;;
27609
27610 esac
27611 done # for ac_tag
27612
27613
27614 as_fn_exit 0
27615 _ACEOF
27616 ac_clean_files=$ac_clean_files_save
27617
27618 test $ac_write_fail = 0 ||
27619 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27620
27621
27622 # configure is writing to config.log, and then calls config.status.
27623 # config.status does its own redirection, appending to config.log.
27624 # Unfortunately, on DOS this fails, as config.log is still kept open
27625 # by configure, so config.status won't be able to write to it; its
27626 # output is simply discarded. So we exec the FD to /dev/null,
27627 # effectively closing config.log, so it can be properly (re)opened and
27628 # appended to by config.status. When coming back to configure, we
27629 # need to make the FD available again.
27630 if test "$no_create" != yes; then
27631 ac_cs_success=:
27632 ac_config_status_args=
27633 test "$silent" = yes &&
27634 ac_config_status_args="$ac_config_status_args --quiet"
27635 exec 5>/dev/null
27636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27637 exec 5>>config.log
27638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27639 # would make configure fail if this is the last instruction.
27640 $ac_cs_success || as_fn_exit $?
27641 fi
27642 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27644 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27645 fi
27646