]> code.delx.au - gnu-emacs/blob - autogen/configure
merge trunk
[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 LD_SWITCH_SYSTEM_TEMACS
609 LIBGNU_LTLIBDEPS
610 LIBGNU_LIBDEPS
611 gltests_WITNESS
612 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
613 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
614 gl_GNULIB_ENABLED_verify_FALSE
615 gl_GNULIB_ENABLED_verify_TRUE
616 gl_GNULIB_ENABLED_strtoull_FALSE
617 gl_GNULIB_ENABLED_strtoull_TRUE
618 gl_GNULIB_ENABLED_strtoll_FALSE
619 gl_GNULIB_ENABLED_strtoll_TRUE
620 gl_GNULIB_ENABLED_stat_FALSE
621 gl_GNULIB_ENABLED_stat_TRUE
622 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
623 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
624 gl_GNULIB_ENABLED_pathmax_FALSE
625 gl_GNULIB_ENABLED_pathmax_TRUE
626 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
627 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_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 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
639 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
640 LTLIBINTL
641 LIBINTL
642 LIB_EACCESS
643 WINDOWS_64_BIT_OFF_T
644 HAVE_UNISTD_H
645 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
646 NEXT_UNISTD_H
647 LIB_TIMER_TIME
648 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
649 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
650 TIME_H_DEFINES_STRUCT_TIMESPEC
651 NEXT_AS_FIRST_DIRECTIVE_TIME_H
652 NEXT_TIME_H
653 WINDOWS_64_BIT_ST_SIZE
654 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
655 NEXT_SYS_STAT_H
656 NEXT_AS_FIRST_DIRECTIVE_STRING_H
657 NEXT_STRING_H
658 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
659 NEXT_STDLIB_H
660 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
661 NEXT_STDIO_H
662 REPLACE_VSPRINTF
663 REPLACE_VSNPRINTF
664 REPLACE_VPRINTF
665 REPLACE_VFPRINTF
666 REPLACE_VDPRINTF
667 REPLACE_VASPRINTF
668 REPLACE_TMPFILE
669 REPLACE_STDIO_WRITE_FUNCS
670 REPLACE_STDIO_READ_FUNCS
671 REPLACE_SPRINTF
672 REPLACE_SNPRINTF
673 REPLACE_RENAMEAT
674 REPLACE_RENAME
675 REPLACE_REMOVE
676 REPLACE_PRINTF
677 REPLACE_POPEN
678 REPLACE_PERROR
679 REPLACE_OBSTACK_PRINTF
680 REPLACE_GETLINE
681 REPLACE_GETDELIM
682 REPLACE_FTELLO
683 REPLACE_FTELL
684 REPLACE_FSEEKO
685 REPLACE_FSEEK
686 REPLACE_FREOPEN
687 REPLACE_FPURGE
688 REPLACE_FPRINTF
689 REPLACE_FOPEN
690 REPLACE_FFLUSH
691 REPLACE_FDOPEN
692 REPLACE_FCLOSE
693 REPLACE_DPRINTF
694 HAVE_VDPRINTF
695 HAVE_VASPRINTF
696 HAVE_RENAMEAT
697 HAVE_POPEN
698 HAVE_PCLOSE
699 HAVE_FTELLO
700 HAVE_FSEEKO
701 HAVE_DPRINTF
702 HAVE_DECL_VSNPRINTF
703 HAVE_DECL_SNPRINTF
704 HAVE_DECL_OBSTACK_PRINTF
705 HAVE_DECL_GETLINE
706 HAVE_DECL_GETDELIM
707 HAVE_DECL_FTELLO
708 HAVE_DECL_FSEEKO
709 HAVE_DECL_FPURGE
710 GNULIB_VSPRINTF_POSIX
711 GNULIB_VSNPRINTF
712 GNULIB_VPRINTF_POSIX
713 GNULIB_VPRINTF
714 GNULIB_VFPRINTF_POSIX
715 GNULIB_VFPRINTF
716 GNULIB_VDPRINTF
717 GNULIB_VSCANF
718 GNULIB_VFSCANF
719 GNULIB_VASPRINTF
720 GNULIB_TMPFILE
721 GNULIB_STDIO_H_SIGPIPE
722 GNULIB_STDIO_H_NONBLOCKING
723 GNULIB_SPRINTF_POSIX
724 GNULIB_SNPRINTF
725 GNULIB_SCANF
726 GNULIB_RENAMEAT
727 GNULIB_RENAME
728 GNULIB_REMOVE
729 GNULIB_PUTS
730 GNULIB_PUTCHAR
731 GNULIB_PUTC
732 GNULIB_PRINTF_POSIX
733 GNULIB_PRINTF
734 GNULIB_POPEN
735 GNULIB_PERROR
736 GNULIB_PCLOSE
737 GNULIB_OBSTACK_PRINTF_POSIX
738 GNULIB_OBSTACK_PRINTF
739 GNULIB_GETLINE
740 GNULIB_GETDELIM
741 GNULIB_GETCHAR
742 GNULIB_GETC
743 GNULIB_FWRITE
744 GNULIB_FTELLO
745 GNULIB_FTELL
746 GNULIB_FSEEKO
747 GNULIB_FSEEK
748 GNULIB_FSCANF
749 GNULIB_FREOPEN
750 GNULIB_FREAD
751 GNULIB_FPUTS
752 GNULIB_FPUTC
753 GNULIB_FPURGE
754 GNULIB_FPRINTF_POSIX
755 GNULIB_FPRINTF
756 GNULIB_FOPEN
757 GNULIB_FGETS
758 GNULIB_FGETC
759 GNULIB_FFLUSH
760 GNULIB_FDOPEN
761 GNULIB_FCLOSE
762 GNULIB_DPRINTF
763 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
764 NEXT_STDDEF_H
765 GL_GENERATE_STDDEF_H_FALSE
766 GL_GENERATE_STDDEF_H_TRUE
767 STDDEF_H
768 HAVE_WCHAR_T
769 REPLACE_NULL
770 HAVE__BOOL
771 GL_GENERATE_STDBOOL_H_FALSE
772 GL_GENERATE_STDBOOL_H_TRUE
773 STDBOOL_H
774 GL_GENERATE_STDARG_H_FALSE
775 GL_GENERATE_STDARG_H_TRUE
776 STDARG_H
777 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
778 NEXT_STDARG_H
779 GL_GENERATE_STDALIGN_H_FALSE
780 GL_GENERATE_STDALIGN_H_TRUE
781 STDALIGN_H
782 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
783 NEXT_SIGNAL_H
784 LIB_PTHREAD_SIGMASK
785 REPLACE_RAISE
786 REPLACE_PTHREAD_SIGMASK
787 HAVE_SIGHANDLER_T
788 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
789 HAVE_STRUCT_SIGACTION_SA_SIGACTION
790 HAVE_SIGACTION
791 HAVE_SIGINFO_T
792 HAVE_SIGSET_T
793 HAVE_RAISE
794 HAVE_PTHREAD_SIGMASK
795 HAVE_POSIX_SIGNALBLOCKING
796 GNULIB_SIGACTION
797 GNULIB_SIGPROCMASK
798 GNULIB_SIGNAL_H_SIGPIPE
799 GNULIB_RAISE
800 GNULIB_PTHREAD_SIGMASK
801 HAVE_SYS_SELECT_H
802 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
803 NEXT_SYS_SELECT_H
804 REPLACE_SELECT
805 REPLACE_PSELECT
806 HAVE_PSELECT
807 GNULIB_SELECT
808 GNULIB_PSELECT
809 REPLACE_TIMEGM
810 REPLACE_NANOSLEEP
811 REPLACE_MKTIME
812 REPLACE_LOCALTIME_R
813 HAVE_TIMEGM
814 HAVE_STRPTIME
815 HAVE_NANOSLEEP
816 HAVE_DECL_LOCALTIME_R
817 GNULIB_TIME_R
818 GNULIB_TIMEGM
819 GNULIB_STRPTIME
820 GNULIB_NANOSLEEP
821 GNULIB_MKTIME
822 UNDEFINE_STRTOK_R
823 REPLACE_STRTOK_R
824 REPLACE_STRSIGNAL
825 REPLACE_STRNLEN
826 REPLACE_STRNDUP
827 REPLACE_STRNCAT
828 REPLACE_STRERROR_R
829 REPLACE_STRERROR
830 REPLACE_STRCHRNUL
831 REPLACE_STRCASESTR
832 REPLACE_STRSTR
833 REPLACE_STRDUP
834 REPLACE_STPNCPY
835 REPLACE_MEMMEM
836 REPLACE_MEMCHR
837 HAVE_STRVERSCMP
838 HAVE_DECL_STRSIGNAL
839 HAVE_DECL_STRERROR_R
840 HAVE_DECL_STRTOK_R
841 HAVE_STRCASESTR
842 HAVE_STRSEP
843 HAVE_STRPBRK
844 HAVE_DECL_STRNLEN
845 HAVE_DECL_STRNDUP
846 HAVE_DECL_STRDUP
847 HAVE_STRCHRNUL
848 HAVE_STPNCPY
849 HAVE_STPCPY
850 HAVE_RAWMEMCHR
851 HAVE_DECL_MEMRCHR
852 HAVE_MEMPCPY
853 HAVE_DECL_MEMMEM
854 HAVE_MEMCHR
855 HAVE_FFSLL
856 HAVE_FFSL
857 HAVE_MBSLEN
858 GNULIB_STRVERSCMP
859 GNULIB_STRSIGNAL
860 GNULIB_STRERROR_R
861 GNULIB_STRERROR
862 GNULIB_MBSTOK_R
863 GNULIB_MBSSEP
864 GNULIB_MBSSPN
865 GNULIB_MBSPBRK
866 GNULIB_MBSCSPN
867 GNULIB_MBSCASESTR
868 GNULIB_MBSPCASECMP
869 GNULIB_MBSNCASECMP
870 GNULIB_MBSCASECMP
871 GNULIB_MBSSTR
872 GNULIB_MBSRCHR
873 GNULIB_MBSCHR
874 GNULIB_MBSNLEN
875 GNULIB_MBSLEN
876 GNULIB_STRTOK_R
877 GNULIB_STRCASESTR
878 GNULIB_STRSTR
879 GNULIB_STRSEP
880 GNULIB_STRPBRK
881 GNULIB_STRNLEN
882 GNULIB_STRNDUP
883 GNULIB_STRNCAT
884 GNULIB_STRDUP
885 GNULIB_STRCHRNUL
886 GNULIB_STPNCPY
887 GNULIB_STPCPY
888 GNULIB_RAWMEMCHR
889 GNULIB_MEMRCHR
890 GNULIB_MEMPCPY
891 GNULIB_MEMMEM
892 GNULIB_MEMCHR
893 GNULIB_FFSLL
894 GNULIB_FFSL
895 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
896 NEXT_INTTYPES_H
897 UINT64_MAX_EQ_ULONG_MAX
898 UINT32_MAX_LT_UINTMAX_MAX
899 PRIPTR_PREFIX
900 PRI_MACROS_BROKEN
901 INT64_MAX_EQ_LONG_MAX
902 INT32_MAX_LT_INTMAX_MAX
903 REPLACE_STRTOIMAX
904 HAVE_DECL_STRTOUMAX
905 HAVE_DECL_STRTOIMAX
906 HAVE_DECL_IMAXDIV
907 HAVE_DECL_IMAXABS
908 GNULIB_STRTOUMAX
909 GNULIB_STRTOIMAX
910 GNULIB_IMAXDIV
911 GNULIB_IMAXABS
912 GL_GENERATE_STDINT_H_FALSE
913 GL_GENERATE_STDINT_H_TRUE
914 STDINT_H
915 WINT_T_SUFFIX
916 WCHAR_T_SUFFIX
917 SIG_ATOMIC_T_SUFFIX
918 SIZE_T_SUFFIX
919 PTRDIFF_T_SUFFIX
920 HAVE_SIGNED_WINT_T
921 HAVE_SIGNED_WCHAR_T
922 HAVE_SIGNED_SIG_ATOMIC_T
923 BITSIZEOF_WINT_T
924 BITSIZEOF_WCHAR_T
925 BITSIZEOF_SIG_ATOMIC_T
926 BITSIZEOF_SIZE_T
927 BITSIZEOF_PTRDIFF_T
928 APPLE_UNIVERSAL_BUILD
929 HAVE_SYS_BITYPES_H
930 HAVE_SYS_INTTYPES_H
931 HAVE_STDINT_H
932 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
933 NEXT_STDINT_H
934 HAVE_SYS_TYPES_H
935 HAVE_INTTYPES_H
936 HAVE_WCHAR_H
937 HAVE_UNSIGNED_LONG_LONG_INT
938 HAVE_LONG_LONG_INT
939 HAVE_WINSOCK2_H
940 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
941 NEXT_SYS_TIME_H
942 REPLACE_STRUCT_TIMEVAL
943 REPLACE_GETTIMEOFDAY
944 HAVE_SYS_TIME_H
945 HAVE_STRUCT_TIMEVAL
946 HAVE_GETTIMEOFDAY
947 GNULIB_GETTIMEOFDAY
948 GNULIB_GL_UNISTD_H_GETOPT
949 GETOPT_H
950 HAVE_GETOPT_H
951 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
952 NEXT_GETOPT_H
953 GETLOADAVG_LIBS
954 REPLACE_WCTOMB
955 REPLACE_UNSETENV
956 REPLACE_STRTOD
957 REPLACE_SETENV
958 REPLACE_REALPATH
959 REPLACE_REALLOC
960 REPLACE_RANDOM_R
961 REPLACE_PUTENV
962 REPLACE_PTSNAME_R
963 REPLACE_PTSNAME
964 REPLACE_MKSTEMP
965 REPLACE_MBTOWC
966 REPLACE_MALLOC
967 REPLACE_CANONICALIZE_FILE_NAME
968 REPLACE_CALLOC
969 HAVE_DECL_UNSETENV
970 HAVE_UNLOCKPT
971 HAVE_SYS_LOADAVG_H
972 HAVE_STRUCT_RANDOM_DATA
973 HAVE_STRTOULL
974 HAVE_STRTOLL
975 HAVE_STRTOD
976 HAVE_DECL_SETENV
977 HAVE_SETENV
978 HAVE_SECURE_GETENV
979 HAVE_RPMATCH
980 HAVE_REALPATH
981 HAVE_RANDOM_R
982 HAVE_RANDOM_H
983 HAVE_RANDOM
984 HAVE_PTSNAME_R
985 HAVE_PTSNAME
986 HAVE_POSIX_OPENPT
987 HAVE_MKSTEMPS
988 HAVE_MKSTEMP
989 HAVE_MKOSTEMPS
990 HAVE_MKOSTEMP
991 HAVE_MKDTEMP
992 HAVE_GRANTPT
993 HAVE_GETSUBOPT
994 HAVE_DECL_GETLOADAVG
995 HAVE_CANONICALIZE_FILE_NAME
996 HAVE_ATOLL
997 HAVE__EXIT
998 GNULIB_WCTOMB
999 GNULIB_UNSETENV
1000 GNULIB_UNLOCKPT
1001 GNULIB_SYSTEM_POSIX
1002 GNULIB_STRTOULL
1003 GNULIB_STRTOLL
1004 GNULIB_STRTOD
1005 GNULIB_SETENV
1006 GNULIB_SECURE_GETENV
1007 GNULIB_RPMATCH
1008 GNULIB_REALPATH
1009 GNULIB_REALLOC_POSIX
1010 GNULIB_RANDOM_R
1011 GNULIB_RANDOM
1012 GNULIB_PUTENV
1013 GNULIB_PTSNAME_R
1014 GNULIB_PTSNAME
1015 GNULIB_POSIX_OPENPT
1016 GNULIB_MKSTEMPS
1017 GNULIB_MKSTEMP
1018 GNULIB_MKOSTEMPS
1019 GNULIB_MKOSTEMP
1020 GNULIB_MKDTEMP
1021 GNULIB_MBTOWC
1022 GNULIB_MALLOC_POSIX
1023 GNULIB_GRANTPT
1024 GNULIB_GETSUBOPT
1025 GNULIB_GETLOADAVG
1026 GNULIB_CANONICALIZE_FILE_NAME
1027 GNULIB_CALLOC_POSIX
1028 GNULIB_ATOLL
1029 GNULIB__EXIT
1030 REPLACE_UTIMENSAT
1031 REPLACE_STAT
1032 REPLACE_MKNOD
1033 REPLACE_MKFIFO
1034 REPLACE_MKDIR
1035 REPLACE_LSTAT
1036 REPLACE_FUTIMENS
1037 REPLACE_FSTATAT
1038 REPLACE_FSTAT
1039 HAVE_UTIMENSAT
1040 HAVE_MKNODAT
1041 HAVE_MKNOD
1042 HAVE_MKFIFOAT
1043 HAVE_MKFIFO
1044 HAVE_MKDIRAT
1045 HAVE_LSTAT
1046 HAVE_LCHMOD
1047 HAVE_FUTIMENS
1048 HAVE_FSTATAT
1049 HAVE_FCHMODAT
1050 GNULIB_UTIMENSAT
1051 GNULIB_STAT
1052 GNULIB_MKNODAT
1053 GNULIB_MKNOD
1054 GNULIB_MKFIFOAT
1055 GNULIB_MKFIFO
1056 GNULIB_MKDIRAT
1057 GNULIB_LSTAT
1058 GNULIB_LCHMOD
1059 GNULIB_FUTIMENS
1060 GNULIB_FSTATAT
1061 GNULIB_FSTAT
1062 GNULIB_FCHMODAT
1063 LIB_FDATASYNC
1064 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1065 NEXT_FCNTL_H
1066 REPLACE_OPENAT
1067 REPLACE_OPEN
1068 REPLACE_FCNTL
1069 HAVE_OPENAT
1070 HAVE_FCNTL
1071 GNULIB_OPENAT
1072 GNULIB_OPEN
1073 GNULIB_NONBLOCKING
1074 GNULIB_FCNTL
1075 GL_GENERATE_EXECINFO_H_FALSE
1076 GL_GENERATE_EXECINFO_H_TRUE
1077 LIB_EXECINFO
1078 EXECINFO_H
1079 HAVE_DIRENT_H
1080 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1081 NEXT_DIRENT_H
1082 PRAGMA_COLUMNS
1083 PRAGMA_SYSTEM_HEADER
1084 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1085 INCLUDE_NEXT
1086 REPLACE_FDOPENDIR
1087 REPLACE_DIRFD
1088 REPLACE_CLOSEDIR
1089 REPLACE_OPENDIR
1090 HAVE_ALPHASORT
1091 HAVE_SCANDIR
1092 HAVE_FDOPENDIR
1093 HAVE_DECL_FDOPENDIR
1094 HAVE_DECL_DIRFD
1095 HAVE_CLOSEDIR
1096 HAVE_REWINDDIR
1097 HAVE_READDIR
1098 HAVE_OPENDIR
1099 GNULIB_ALPHASORT
1100 GNULIB_SCANDIR
1101 GNULIB_FDOPENDIR
1102 GNULIB_DIRFD
1103 GNULIB_CLOSEDIR
1104 GNULIB_REWINDDIR
1105 GNULIB_READDIR
1106 GNULIB_OPENDIR
1107 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1108 UNISTD_H_HAVE_WINSOCK2_H
1109 REPLACE_WRITE
1110 REPLACE_USLEEP
1111 REPLACE_UNLINKAT
1112 REPLACE_UNLINK
1113 REPLACE_TTYNAME_R
1114 REPLACE_SYMLINK
1115 REPLACE_SLEEP
1116 REPLACE_RMDIR
1117 REPLACE_READLINK
1118 REPLACE_READ
1119 REPLACE_PWRITE
1120 REPLACE_PREAD
1121 REPLACE_LSEEK
1122 REPLACE_LINKAT
1123 REPLACE_LINK
1124 REPLACE_LCHOWN
1125 REPLACE_ISATTY
1126 REPLACE_GETPAGESIZE
1127 REPLACE_GETGROUPS
1128 REPLACE_GETLOGIN_R
1129 REPLACE_GETDOMAINNAME
1130 REPLACE_GETCWD
1131 REPLACE_FTRUNCATE
1132 REPLACE_FCHOWNAT
1133 REPLACE_DUP2
1134 REPLACE_DUP
1135 REPLACE_CLOSE
1136 REPLACE_CHOWN
1137 HAVE_SYS_PARAM_H
1138 HAVE_OS_H
1139 HAVE_DECL_TTYNAME_R
1140 HAVE_DECL_SETHOSTNAME
1141 HAVE_DECL_GETUSERSHELL
1142 HAVE_DECL_GETPAGESIZE
1143 HAVE_DECL_GETLOGIN_R
1144 HAVE_DECL_GETDOMAINNAME
1145 HAVE_DECL_FDATASYNC
1146 HAVE_DECL_FCHDIR
1147 HAVE_DECL_ENVIRON
1148 HAVE_USLEEP
1149 HAVE_UNLINKAT
1150 HAVE_SYMLINKAT
1151 HAVE_SYMLINK
1152 HAVE_SLEEP
1153 HAVE_SETHOSTNAME
1154 HAVE_READLINKAT
1155 HAVE_READLINK
1156 HAVE_PWRITE
1157 HAVE_PREAD
1158 HAVE_PIPE2
1159 HAVE_PIPE
1160 HAVE_LINKAT
1161 HAVE_LINK
1162 HAVE_LCHOWN
1163 HAVE_GROUP_MEMBER
1164 HAVE_GETPAGESIZE
1165 HAVE_GETLOGIN
1166 HAVE_GETHOSTNAME
1167 HAVE_GETGROUPS
1168 HAVE_GETDTABLESIZE
1169 HAVE_FTRUNCATE
1170 HAVE_FSYNC
1171 HAVE_FDATASYNC
1172 HAVE_FCHOWNAT
1173 HAVE_FCHDIR
1174 HAVE_FACCESSAT
1175 HAVE_EUIDACCESS
1176 HAVE_DUP3
1177 HAVE_DUP2
1178 HAVE_CHOWN
1179 GNULIB_WRITE
1180 GNULIB_USLEEP
1181 GNULIB_UNLINKAT
1182 GNULIB_UNLINK
1183 GNULIB_UNISTD_H_SIGPIPE
1184 GNULIB_UNISTD_H_NONBLOCKING
1185 GNULIB_TTYNAME_R
1186 GNULIB_SYMLINKAT
1187 GNULIB_SYMLINK
1188 GNULIB_SLEEP
1189 GNULIB_SETHOSTNAME
1190 GNULIB_RMDIR
1191 GNULIB_READLINKAT
1192 GNULIB_READLINK
1193 GNULIB_READ
1194 GNULIB_PWRITE
1195 GNULIB_PREAD
1196 GNULIB_PIPE2
1197 GNULIB_PIPE
1198 GNULIB_LSEEK
1199 GNULIB_LINKAT
1200 GNULIB_LINK
1201 GNULIB_LCHOWN
1202 GNULIB_ISATTY
1203 GNULIB_GROUP_MEMBER
1204 GNULIB_GETUSERSHELL
1205 GNULIB_GETPAGESIZE
1206 GNULIB_GETLOGIN_R
1207 GNULIB_GETLOGIN
1208 GNULIB_GETHOSTNAME
1209 GNULIB_GETGROUPS
1210 GNULIB_GETDTABLESIZE
1211 GNULIB_GETDOMAINNAME
1212 GNULIB_GETCWD
1213 GNULIB_FTRUNCATE
1214 GNULIB_FSYNC
1215 GNULIB_FDATASYNC
1216 GNULIB_FCHOWNAT
1217 GNULIB_FCHDIR
1218 GNULIB_FACCESSAT
1219 GNULIB_EUIDACCESS
1220 GNULIB_ENVIRON
1221 GNULIB_DUP3
1222 GNULIB_DUP2
1223 GNULIB_DUP
1224 GNULIB_CLOSE
1225 GNULIB_CHOWN
1226 GNULIB_CHDIR
1227 LIB_CLOCK_GETTIME
1228 GL_GENERATE_ALLOCA_H_FALSE
1229 GL_GENERATE_ALLOCA_H_TRUE
1230 ALLOCA_H
1231 ALLOCA
1232 GL_COND_LIBTOOL_FALSE
1233 GL_COND_LIBTOOL_TRUE
1234 POST_ALLOC_OBJ
1235 PRE_ALLOC_OBJ
1236 CYGWIN_OBJ
1237 RALLOC_OBJ
1238 OLDXMENU_DEPS
1239 LIBX_OTHER
1240 LIBXMENU
1241 OLDXMENU
1242 OLDXMENU_TARGET
1243 LIBXT_OTHER
1244 TOOLKIT_LIBW
1245 WIDGET_OBJ
1246 XOBJ
1247 XMENU_OBJ
1248 FONT_OBJ
1249 OTHER_FILES
1250 GNU_OBJC_CFLAGS
1251 ns_appsrc
1252 ns_appresdir
1253 ns_appbindir
1254 ns_appdir
1255 X_TOOLKIT_TYPE
1256 GNUSTEP_CFLAGS
1257 C_SWITCH_X_SITE
1258 LD_SWITCH_X_SITE
1259 gameuser
1260 gamedir
1261 bitmapdir
1262 archlibdir
1263 etcdir
1264 x_default_search_path
1265 lisppath
1266 locallisppath
1267 standardlisppath
1268 leimdir
1269 lispdir
1270 srcdir
1271 canonical
1272 configuration
1273 version
1274 copyright
1275 KRB4LIB
1276 DESLIB
1277 KRB5LIB
1278 CRYPTOLIB
1279 COM_ERRLIB
1280 LIBRESOLV
1281 LIBHESIOD
1282 TERMCAP_OBJ
1283 LIBS_TERMCAP
1284 BLESSMAIL_TARGET
1285 LIBS_MAIL
1286 liblockfile
1287 LIBXML2_LIBS
1288 LIBXML2_CFLAGS
1289 LIBXSM
1290 LIBGPM
1291 LIBGIF
1292 LIBTIFF
1293 LIBPNG
1294 LIBJPEG
1295 LIBXPM
1296 M17N_FLT_LIBS
1297 M17N_FLT_CFLAGS
1298 LIBOTF_LIBS
1299 LIBOTF_CFLAGS
1300 FREETYPE_LIBS
1301 FREETYPE_CFLAGS
1302 XFT_LIBS
1303 XFT_CFLAGS
1304 FONTCONFIG_LIBS
1305 FONTCONFIG_CFLAGS
1306 LIBXMU
1307 LIBXTR6
1308 LIBACL_LIBS
1309 LIBGNUTLS_LIBS
1310 LIBGNUTLS_CFLAGS
1311 LIBSELINUX_LIBS
1312 SETTINGS_LIBS
1313 SETTINGS_CFLAGS
1314 GOBJECT_LIBS
1315 GOBJECT_CFLAGS
1316 GCONF_LIBS
1317 GCONF_CFLAGS
1318 GSETTINGS_LIBS
1319 GSETTINGS_CFLAGS
1320 DBUS_OBJ
1321 DBUS_LIBS
1322 DBUS_CFLAGS
1323 GTK_OBJ
1324 GTK_LIBS
1325 GTK_CFLAGS
1326 IMAGEMAGICK_LIBS
1327 IMAGEMAGICK_CFLAGS
1328 RSVG_LIBS
1329 RSVG_CFLAGS
1330 LIB_PTHREAD
1331 VMLIMIT_OBJ
1332 GMALLOC_OBJ
1333 HAVE_XSERVER
1334 W32_RES_LINK
1335 W32_RES
1336 W32_LIBS
1337 W32_OBJ
1338 WINDRES
1339 NS_OBJC_OBJ
1340 NS_OBJ
1341 ns_self_contained
1342 INSTALL_ARCH_INDEP_EXTRA
1343 LIBS_GNUSTEP
1344 LD_SWITCH_X_SITE_RPATH
1345 XMKMF
1346 DEPFLAGS
1347 MKDEPDIR
1348 CFLAGS_SOUND
1349 ALSA_LIBS
1350 ALSA_CFLAGS
1351 LIBSOUND
1352 PKG_CONFIG
1353 LIB_MATH
1354 LIBS_SYSTEM
1355 C_SWITCH_SYSTEM
1356 UNEXEC_OBJ
1357 C_SWITCH_MACHINE
1358 LD_SWITCH_SYSTEM
1359 CANNOT_DUMP
1360 INFO_OPTS
1361 INFO_EXT
1362 HAVE_MAKEINFO
1363 PAXCTL
1364 GZIP_PROG
1365 INSTALL_INFO
1366 LN_S
1367 GNULIB_WARN_CFLAGS
1368 WARN_CFLAGS
1369 WERROR_CFLAGS
1370 RANLIB
1371 ARFLAGS
1372 AR
1373 EGREP
1374 GREP
1375 CPP
1376 am__fastdepCC_FALSE
1377 am__fastdepCC_TRUE
1378 CCDEPMODE
1379 AMDEPBACKSLASH
1380 AMDEP_FALSE
1381 AMDEP_TRUE
1382 am__quote
1383 am__include
1384 DEPDIR
1385 OBJEXT
1386 EXEEXT
1387 ac_ct_CC
1388 CPPFLAGS
1389 LDFLAGS
1390 CFLAGS
1391 CC
1392 host_os
1393 host_vendor
1394 host_cpu
1395 host
1396 build_os
1397 build_vendor
1398 build_cpu
1399 build
1400 PROFILING_CFLAGS
1401 GZIP_INFO
1402 cache_file
1403 am__untar
1404 am__tar
1405 AMTAR
1406 am__leading_dot
1407 SET_MAKE
1408 AWK
1409 mkdir_p
1410 MKDIR_P
1411 INSTALL_STRIP_PROGRAM
1412 STRIP
1413 install_sh
1414 MAKEINFO
1415 AUTOHEADER
1416 AUTOMAKE
1417 AUTOCONF
1418 ACLOCAL
1419 VERSION
1420 PACKAGE
1421 CYGPATH_W
1422 am__isrc
1423 INSTALL_DATA
1424 INSTALL_SCRIPT
1425 INSTALL_PROGRAM
1426 target_alias
1427 host_alias
1428 build_alias
1429 LIBS
1430 ECHO_T
1431 ECHO_N
1432 ECHO_C
1433 DEFS
1434 mandir
1435 localedir
1436 libdir
1437 psdir
1438 pdfdir
1439 dvidir
1440 htmldir
1441 infodir
1442 docdir
1443 oldincludedir
1444 includedir
1445 localstatedir
1446 sharedstatedir
1447 sysconfdir
1448 datadir
1449 datarootdir
1450 libexecdir
1451 sbindir
1452 bindir
1453 program_transform_name
1454 prefix
1455 exec_prefix
1456 PACKAGE_URL
1457 PACKAGE_BUGREPORT
1458 PACKAGE_STRING
1459 PACKAGE_VERSION
1460 PACKAGE_TARNAME
1461 PACKAGE_NAME
1462 PATH_SEPARATOR
1463 SHELL'
1464 ac_subst_files='deps_frag
1465 lisp_frag'
1466 ac_user_opts='
1467 enable_option_checking
1468 with_all
1469 with_pop
1470 with_kerberos
1471 with_kerberos5
1472 with_hesiod
1473 with_mmdf
1474 with_mail_unlink
1475 with_mailhost
1476 with_sound
1477 with_x_toolkit
1478 with_wide_int
1479 with_xpm
1480 with_jpeg
1481 with_tiff
1482 with_gif
1483 with_png
1484 with_rsvg
1485 with_xml2
1486 with_imagemagick
1487 with_xft
1488 with_libotf
1489 with_m17n_flt
1490 with_toolkit_scroll_bars
1491 with_xaw3d
1492 with_xim
1493 with_ns
1494 with_w32
1495 with_gpm
1496 with_dbus
1497 with_gconf
1498 with_gsettings
1499 with_selinux
1500 with_acl
1501 with_gnutls
1502 with_inotify
1503 with_makeinfo
1504 with_compress_info
1505 with_pkg_config_prog
1506 with_gameuser
1507 with_gnustep_conf
1508 enable_ns_self_contained
1509 enable_locallisppath
1510 enable_checking
1511 enable_check_lisp_object_type
1512 enable_profiling
1513 enable_autodepend
1514 enable_gtk_deprecation_warnings
1515 enable_dependency_tracking
1516 enable_largefile
1517 enable_gcc_warnings
1518 enable_link_time_optimization
1519 with_x
1520 '
1521 ac_precious_vars='build_alias
1522 host_alias
1523 target_alias
1524 CC
1525 CFLAGS
1526 LDFLAGS
1527 LIBS
1528 CPPFLAGS
1529 CPP
1530 XMKMF'
1531
1532
1533 # Initialize some variables set by options.
1534 ac_init_help=
1535 ac_init_version=false
1536 ac_unrecognized_opts=
1537 ac_unrecognized_sep=
1538 # The variables have the same names as the options, with
1539 # dashes changed to underlines.
1540 cache_file=/dev/null
1541 exec_prefix=NONE
1542 no_create=
1543 no_recursion=
1544 prefix=NONE
1545 program_prefix=NONE
1546 program_suffix=NONE
1547 program_transform_name=s,x,x,
1548 silent=
1549 site=
1550 srcdir=
1551 verbose=
1552 x_includes=NONE
1553 x_libraries=NONE
1554
1555 # Installation directory options.
1556 # These are left unexpanded so users can "make install exec_prefix=/foo"
1557 # and all the variables that are supposed to be based on exec_prefix
1558 # by default will actually change.
1559 # Use braces instead of parens because sh, perl, etc. also accept them.
1560 # (The list follows the same order as the GNU Coding Standards.)
1561 bindir='${exec_prefix}/bin'
1562 sbindir='${exec_prefix}/sbin'
1563 libexecdir='${exec_prefix}/libexec'
1564 datarootdir='${prefix}/share'
1565 datadir='${datarootdir}'
1566 sysconfdir='${prefix}/etc'
1567 sharedstatedir='${prefix}/com'
1568 localstatedir='${prefix}/var'
1569 includedir='${prefix}/include'
1570 oldincludedir='/usr/include'
1571 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1572 infodir='${datarootdir}/info'
1573 htmldir='${docdir}'
1574 dvidir='${docdir}'
1575 pdfdir='${docdir}'
1576 psdir='${docdir}'
1577 libdir='${exec_prefix}/lib'
1578 localedir='${datarootdir}/locale'
1579 mandir='${datarootdir}/man'
1580
1581 ac_prev=
1582 ac_dashdash=
1583 for ac_option
1584 do
1585 # If the previous option needs an argument, assign it.
1586 if test -n "$ac_prev"; then
1587 eval $ac_prev=\$ac_option
1588 ac_prev=
1589 continue
1590 fi
1591
1592 case $ac_option in
1593 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1594 *) ac_optarg=yes ;;
1595 esac
1596
1597 # Accept the important Cygnus configure options, so we can diagnose typos.
1598
1599 case $ac_dashdash$ac_option in
1600 --)
1601 ac_dashdash=yes ;;
1602
1603 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1604 ac_prev=bindir ;;
1605 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1606 bindir=$ac_optarg ;;
1607
1608 -build | --build | --buil | --bui | --bu)
1609 ac_prev=build_alias ;;
1610 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1611 build_alias=$ac_optarg ;;
1612
1613 -cache-file | --cache-file | --cache-fil | --cache-fi \
1614 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1615 ac_prev=cache_file ;;
1616 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1617 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1618 cache_file=$ac_optarg ;;
1619
1620 --config-cache | -C)
1621 cache_file=config.cache ;;
1622
1623 -datadir | --datadir | --datadi | --datad)
1624 ac_prev=datadir ;;
1625 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1626 datadir=$ac_optarg ;;
1627
1628 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1629 | --dataroo | --dataro | --datar)
1630 ac_prev=datarootdir ;;
1631 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1632 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1633 datarootdir=$ac_optarg ;;
1634
1635 -disable-* | --disable-*)
1636 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1637 # Reject names that are not valid shell variable names.
1638 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1639 as_fn_error "invalid feature name: $ac_useropt"
1640 ac_useropt_orig=$ac_useropt
1641 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1642 case $ac_user_opts in
1643 *"
1644 "enable_$ac_useropt"
1645 "*) ;;
1646 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1647 ac_unrecognized_sep=', ';;
1648 esac
1649 eval enable_$ac_useropt=no ;;
1650
1651 -docdir | --docdir | --docdi | --doc | --do)
1652 ac_prev=docdir ;;
1653 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1654 docdir=$ac_optarg ;;
1655
1656 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1657 ac_prev=dvidir ;;
1658 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1659 dvidir=$ac_optarg ;;
1660
1661 -enable-* | --enable-*)
1662 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1663 # Reject names that are not valid shell variable names.
1664 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1665 as_fn_error "invalid feature name: $ac_useropt"
1666 ac_useropt_orig=$ac_useropt
1667 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1668 case $ac_user_opts in
1669 *"
1670 "enable_$ac_useropt"
1671 "*) ;;
1672 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1673 ac_unrecognized_sep=', ';;
1674 esac
1675 eval enable_$ac_useropt=\$ac_optarg ;;
1676
1677 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1678 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1679 | --exec | --exe | --ex)
1680 ac_prev=exec_prefix ;;
1681 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1682 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1683 | --exec=* | --exe=* | --ex=*)
1684 exec_prefix=$ac_optarg ;;
1685
1686 -gas | --gas | --ga | --g)
1687 # Obsolete; use --with-gas.
1688 with_gas=yes ;;
1689
1690 -help | --help | --hel | --he | -h)
1691 ac_init_help=long ;;
1692 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1693 ac_init_help=recursive ;;
1694 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1695 ac_init_help=short ;;
1696
1697 -host | --host | --hos | --ho)
1698 ac_prev=host_alias ;;
1699 -host=* | --host=* | --hos=* | --ho=*)
1700 host_alias=$ac_optarg ;;
1701
1702 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1703 ac_prev=htmldir ;;
1704 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1705 | --ht=*)
1706 htmldir=$ac_optarg ;;
1707
1708 -includedir | --includedir | --includedi | --included | --include \
1709 | --includ | --inclu | --incl | --inc)
1710 ac_prev=includedir ;;
1711 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1712 | --includ=* | --inclu=* | --incl=* | --inc=*)
1713 includedir=$ac_optarg ;;
1714
1715 -infodir | --infodir | --infodi | --infod | --info | --inf)
1716 ac_prev=infodir ;;
1717 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1718 infodir=$ac_optarg ;;
1719
1720 -libdir | --libdir | --libdi | --libd)
1721 ac_prev=libdir ;;
1722 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1723 libdir=$ac_optarg ;;
1724
1725 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1726 | --libexe | --libex | --libe)
1727 ac_prev=libexecdir ;;
1728 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1729 | --libexe=* | --libex=* | --libe=*)
1730 libexecdir=$ac_optarg ;;
1731
1732 -localedir | --localedir | --localedi | --localed | --locale)
1733 ac_prev=localedir ;;
1734 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1735 localedir=$ac_optarg ;;
1736
1737 -localstatedir | --localstatedir | --localstatedi | --localstated \
1738 | --localstate | --localstat | --localsta | --localst | --locals)
1739 ac_prev=localstatedir ;;
1740 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1741 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1742 localstatedir=$ac_optarg ;;
1743
1744 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1745 ac_prev=mandir ;;
1746 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1747 mandir=$ac_optarg ;;
1748
1749 -nfp | --nfp | --nf)
1750 # Obsolete; use --without-fp.
1751 with_fp=no ;;
1752
1753 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1754 | --no-cr | --no-c | -n)
1755 no_create=yes ;;
1756
1757 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1758 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1759 no_recursion=yes ;;
1760
1761 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1762 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1763 | --oldin | --oldi | --old | --ol | --o)
1764 ac_prev=oldincludedir ;;
1765 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1766 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1767 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1768 oldincludedir=$ac_optarg ;;
1769
1770 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1771 ac_prev=prefix ;;
1772 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1773 prefix=$ac_optarg ;;
1774
1775 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1776 | --program-pre | --program-pr | --program-p)
1777 ac_prev=program_prefix ;;
1778 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1779 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1780 program_prefix=$ac_optarg ;;
1781
1782 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1783 | --program-suf | --program-su | --program-s)
1784 ac_prev=program_suffix ;;
1785 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1786 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1787 program_suffix=$ac_optarg ;;
1788
1789 -program-transform-name | --program-transform-name \
1790 | --program-transform-nam | --program-transform-na \
1791 | --program-transform-n | --program-transform- \
1792 | --program-transform | --program-transfor \
1793 | --program-transfo | --program-transf \
1794 | --program-trans | --program-tran \
1795 | --progr-tra | --program-tr | --program-t)
1796 ac_prev=program_transform_name ;;
1797 -program-transform-name=* | --program-transform-name=* \
1798 | --program-transform-nam=* | --program-transform-na=* \
1799 | --program-transform-n=* | --program-transform-=* \
1800 | --program-transform=* | --program-transfor=* \
1801 | --program-transfo=* | --program-transf=* \
1802 | --program-trans=* | --program-tran=* \
1803 | --progr-tra=* | --program-tr=* | --program-t=*)
1804 program_transform_name=$ac_optarg ;;
1805
1806 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1807 ac_prev=pdfdir ;;
1808 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1809 pdfdir=$ac_optarg ;;
1810
1811 -psdir | --psdir | --psdi | --psd | --ps)
1812 ac_prev=psdir ;;
1813 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1814 psdir=$ac_optarg ;;
1815
1816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1817 | -silent | --silent | --silen | --sile | --sil)
1818 silent=yes ;;
1819
1820 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1821 ac_prev=sbindir ;;
1822 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1823 | --sbi=* | --sb=*)
1824 sbindir=$ac_optarg ;;
1825
1826 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1827 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1828 | --sharedst | --shareds | --shared | --share | --shar \
1829 | --sha | --sh)
1830 ac_prev=sharedstatedir ;;
1831 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1832 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1833 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1834 | --sha=* | --sh=*)
1835 sharedstatedir=$ac_optarg ;;
1836
1837 -site | --site | --sit)
1838 ac_prev=site ;;
1839 -site=* | --site=* | --sit=*)
1840 site=$ac_optarg ;;
1841
1842 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1843 ac_prev=srcdir ;;
1844 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1845 srcdir=$ac_optarg ;;
1846
1847 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1848 | --syscon | --sysco | --sysc | --sys | --sy)
1849 ac_prev=sysconfdir ;;
1850 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1851 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1852 sysconfdir=$ac_optarg ;;
1853
1854 -target | --target | --targe | --targ | --tar | --ta | --t)
1855 ac_prev=target_alias ;;
1856 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1857 target_alias=$ac_optarg ;;
1858
1859 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1860 verbose=yes ;;
1861
1862 -version | --version | --versio | --versi | --vers | -V)
1863 ac_init_version=: ;;
1864
1865 -with-* | --with-*)
1866 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1867 # Reject names that are not valid shell variable names.
1868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1869 as_fn_error "invalid package name: $ac_useropt"
1870 ac_useropt_orig=$ac_useropt
1871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1872 case $ac_user_opts in
1873 *"
1874 "with_$ac_useropt"
1875 "*) ;;
1876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1877 ac_unrecognized_sep=', ';;
1878 esac
1879 eval with_$ac_useropt=\$ac_optarg ;;
1880
1881 -without-* | --without-*)
1882 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1883 # Reject names that are not valid shell variable names.
1884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1885 as_fn_error "invalid package name: $ac_useropt"
1886 ac_useropt_orig=$ac_useropt
1887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1888 case $ac_user_opts in
1889 *"
1890 "with_$ac_useropt"
1891 "*) ;;
1892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1893 ac_unrecognized_sep=', ';;
1894 esac
1895 eval with_$ac_useropt=no ;;
1896
1897 --x)
1898 # Obsolete; use --with-x.
1899 with_x=yes ;;
1900
1901 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1902 | --x-incl | --x-inc | --x-in | --x-i)
1903 ac_prev=x_includes ;;
1904 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1905 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1906 x_includes=$ac_optarg ;;
1907
1908 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1909 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1910 ac_prev=x_libraries ;;
1911 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1912 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1913 x_libraries=$ac_optarg ;;
1914
1915 -*) as_fn_error "unrecognized option: \`$ac_option'
1916 Try \`$0 --help' for more information."
1917 ;;
1918
1919 *=*)
1920 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1921 # Reject names that are not valid shell variable names.
1922 case $ac_envvar in #(
1923 '' | [0-9]* | *[!_$as_cr_alnum]* )
1924 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1925 esac
1926 eval $ac_envvar=\$ac_optarg
1927 export $ac_envvar ;;
1928
1929 *)
1930 # FIXME: should be removed in autoconf 3.0.
1931 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1932 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1933 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1934 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1935 ;;
1936
1937 esac
1938 done
1939
1940 if test -n "$ac_prev"; then
1941 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1942 as_fn_error "missing argument to $ac_option"
1943 fi
1944
1945 if test -n "$ac_unrecognized_opts"; then
1946 case $enable_option_checking in
1947 no) ;;
1948 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1949 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1950 esac
1951 fi
1952
1953 # Check all directory arguments for consistency.
1954 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1955 datadir sysconfdir sharedstatedir localstatedir includedir \
1956 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1957 libdir localedir mandir
1958 do
1959 eval ac_val=\$$ac_var
1960 # Remove trailing slashes.
1961 case $ac_val in
1962 */ )
1963 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1964 eval $ac_var=\$ac_val;;
1965 esac
1966 # Be sure to have absolute directory names.
1967 case $ac_val in
1968 [\\/$]* | ?:[\\/]* ) continue;;
1969 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1970 esac
1971 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1972 done
1973
1974 # There might be people who depend on the old broken behavior: `$host'
1975 # used to hold the argument of --host etc.
1976 # FIXME: To remove some day.
1977 build=$build_alias
1978 host=$host_alias
1979 target=$target_alias
1980
1981 # FIXME: To remove some day.
1982 if test "x$host_alias" != x; then
1983 if test "x$build_alias" = x; then
1984 cross_compiling=maybe
1985 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1986 If a cross compiler is detected then cross compile mode will be used." >&2
1987 elif test "x$build_alias" != "x$host_alias"; then
1988 cross_compiling=yes
1989 fi
1990 fi
1991
1992 ac_tool_prefix=
1993 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1994
1995 test "$silent" = yes && exec 6>/dev/null
1996
1997
1998 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1999 ac_ls_di=`ls -di .` &&
2000 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2001 as_fn_error "working directory cannot be determined"
2002 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2003 as_fn_error "pwd does not report name of working directory"
2004
2005
2006 # Find the source files, if location was not specified.
2007 if test -z "$srcdir"; then
2008 ac_srcdir_defaulted=yes
2009 # Try the directory containing this script, then the parent directory.
2010 ac_confdir=`$as_dirname -- "$as_myself" ||
2011 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2012 X"$as_myself" : 'X\(//\)[^/]' \| \
2013 X"$as_myself" : 'X\(//\)$' \| \
2014 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2015 $as_echo X"$as_myself" |
2016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2017 s//\1/
2018 q
2019 }
2020 /^X\(\/\/\)[^/].*/{
2021 s//\1/
2022 q
2023 }
2024 /^X\(\/\/\)$/{
2025 s//\1/
2026 q
2027 }
2028 /^X\(\/\).*/{
2029 s//\1/
2030 q
2031 }
2032 s/.*/./; q'`
2033 srcdir=$ac_confdir
2034 if test ! -r "$srcdir/$ac_unique_file"; then
2035 srcdir=..
2036 fi
2037 else
2038 ac_srcdir_defaulted=no
2039 fi
2040 if test ! -r "$srcdir/$ac_unique_file"; then
2041 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2042 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2043 fi
2044 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2045 ac_abs_confdir=`(
2046 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2047 pwd)`
2048 # When building in place, set srcdir=.
2049 if test "$ac_abs_confdir" = "$ac_pwd"; then
2050 srcdir=.
2051 fi
2052 # Remove unnecessary trailing slashes from srcdir.
2053 # Double slashes in file names in object file debugging info
2054 # mess up M-x gdb in Emacs.
2055 case $srcdir in
2056 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2057 esac
2058 for ac_var in $ac_precious_vars; do
2059 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2060 eval ac_env_${ac_var}_value=\$${ac_var}
2061 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2062 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2063 done
2064
2065 #
2066 # Report the --help message.
2067 #
2068 if test "$ac_init_help" = "long"; then
2069 # Omit some internal or obsolete options to make the list less imposing.
2070 # This message is too long to be a string in the A/UX 3.1 sh.
2071 cat <<_ACEOF
2072 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2073
2074 Usage: $0 [OPTION]... [VAR=VALUE]...
2075
2076 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2077 VAR=VALUE. See below for descriptions of some of the useful variables.
2078
2079 Defaults for the options are specified in brackets.
2080
2081 Configuration:
2082 -h, --help display this help and exit
2083 --help=short display options specific to this package
2084 --help=recursive display the short help of all the included packages
2085 -V, --version display version information and exit
2086 -q, --quiet, --silent do not print \`checking...' messages
2087 --cache-file=FILE cache test results in FILE [disabled]
2088 -C, --config-cache alias for \`--cache-file=config.cache'
2089 -n, --no-create do not create output files
2090 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2091
2092 Installation directories:
2093 --prefix=PREFIX install architecture-independent files in PREFIX
2094 [$ac_default_prefix]
2095 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2096 [PREFIX]
2097
2098 By default, \`make install' will install all the files in
2099 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2100 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2101 for instance \`--prefix=\$HOME'.
2102
2103 For better control, use the options below.
2104
2105 Fine tuning of the installation directories:
2106 --bindir=DIR user executables [EPREFIX/bin]
2107 --sbindir=DIR system admin executables [EPREFIX/sbin]
2108 --libexecdir=DIR program executables [EPREFIX/libexec]
2109 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2110 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2111 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2112 --libdir=DIR object code libraries [EPREFIX/lib]
2113 --includedir=DIR C header files [PREFIX/include]
2114 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2115 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2116 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2117 --infodir=DIR info documentation [DATAROOTDIR/info]
2118 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2119 --mandir=DIR man documentation [DATAROOTDIR/man]
2120 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2121 --htmldir=DIR html documentation [DOCDIR]
2122 --dvidir=DIR dvi documentation [DOCDIR]
2123 --pdfdir=DIR pdf documentation [DOCDIR]
2124 --psdir=DIR ps documentation [DOCDIR]
2125 _ACEOF
2126
2127 cat <<\_ACEOF
2128
2129 Program names:
2130 --program-prefix=PREFIX prepend PREFIX to installed program names
2131 --program-suffix=SUFFIX append SUFFIX to installed program names
2132 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2133
2134 X features:
2135 --x-includes=DIR X include files are in DIR
2136 --x-libraries=DIR X library files are in DIR
2137
2138 System types:
2139 --build=BUILD configure for building on BUILD [guessed]
2140 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2141 _ACEOF
2142 fi
2143
2144 if test -n "$ac_init_help"; then
2145 case $ac_init_help in
2146 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2147 esac
2148 cat <<\_ACEOF
2149
2150 Optional Features:
2151 --disable-option-checking ignore unrecognized --enable/--with options
2152 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2153 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2154 --disable-ns-self-contained
2155 disable self contained build under NeXTstep
2156 --enable-locallisppath=PATH
2157 directories Emacs should search for lisp files
2158 specific to this site
2159 --enable-checking[=LIST]
2160 enable expensive run-time checks. With LIST, enable
2161 only specific categories of checks. Categories are:
2162 all,yes,no. Flags are: stringbytes, stringoverrun,
2163 stringfreelist, xmallocoverrun, conslist, glyphs
2164 --enable-check-lisp-object-type
2165 enable compile time checks for the Lisp_Object data
2166 type. This is useful for development for catching
2167 certain types of bugs.
2168 --enable-profiling build emacs with low-level, gprof profiling support.
2169 Mainly useful for debugging Emacs itself. May not
2170 work on all platforms. Stops profiler.el working.
2171 --enable-autodepend automatically generate dependencies to .h-files.
2172 Requires GNU Make and Gcc. Enabled if GNU Make and
2173 Gcc is found
2174 --enable-gtk-deprecation-warnings
2175 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2176 --disable-dependency-tracking speeds up one-time build
2177 --enable-dependency-tracking do not reject slow dependency extractors
2178 --disable-largefile omit support for large files
2179 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2180 intended for developers, and may generate false
2181 alarms when used with older or non-GNU development
2182 tools.
2183 --enable-link-time-optimization
2184 build emacs with link-time optimization. This is
2185 supported only for GCC since 4.5.0.
2186
2187 Optional Packages:
2188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2190 --without-all omit almost all features and build small executable
2191 with minimal dependencies
2192 --without-pop don't support POP mail retrieval with movemail
2193 --with-kerberos support Kerberos-authenticated POP
2194 --with-kerberos5 support Kerberos version 5 authenticated POP
2195 --with-hesiod support Hesiod to get the POP server host
2196 --with-mmdf support MMDF mailboxes
2197 --with-mail-unlink unlink, rather than empty, mail spool after reading
2198 --with-mailhost=HOSTNAME
2199 string giving default POP mail host
2200 --without-sound don't compile with sound support
2201 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2202 gtk3, lucid or athena, motif, no)
2203 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2204 --without-xpm don't compile with XPM image support
2205 --without-jpeg don't compile with JPEG image support
2206 --without-tiff don't compile with TIFF image support
2207 --without-gif don't compile with GIF image support
2208 --without-png don't compile with PNG image support
2209 --without-rsvg don't compile with SVG image support
2210 --without-xml2 don't compile with XML parsing support
2211 --without-imagemagick don't compile with ImageMagick image support
2212 --without-xft don't use XFT for anti aliased fonts
2213 --without-libotf don't use libotf for OpenType font support
2214 --without-m17n-flt don't use m17n-flt for text shaping
2215 --without-toolkit-scroll-bars
2216 don't use Motif or Xaw3d scroll bars
2217 --without-xaw3d don't use Xaw3d
2218 --without-xim don't use X11 XIM
2219 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2220 --with-w32 use native MS Windows GUI
2221 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2222 console
2223 --without-dbus don't compile with D-Bus support
2224 --without-gconf don't compile with GConf support
2225 --without-gsettings don't compile with GSettings support
2226 --without-selinux don't compile with SELinux support
2227 --without-acl don't compile with ACL support
2228 --without-gnutls don't use -lgnutls for SSL/TLS support
2229 --without-inotify don't compile with inotify (file-watch) support
2230 --without-makeinfo don't require makeinfo for building manuals
2231 --without-compress-info don't compress the installed Info pages
2232 --with-pkg-config-prog=FILENAME
2233 file name of pkg-config for finding GTK and librsvg
2234 --with-gameuser=USER user for shared game score files
2235 --with-gnustep-conf=FILENAME
2236 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2237 or /etc/GNUstep/GNUstep.conf
2238 --with-x use the X Window System
2239
2240 Some influential environment variables:
2241 CC C compiler command
2242 CFLAGS C compiler flags
2243 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2244 nonstandard directory <lib dir>
2245 LIBS libraries to pass to the linker, e.g. -l<library>
2246 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2247 you have headers in a nonstandard directory <include dir>
2248 CPP C preprocessor
2249 XMKMF Path to xmkmf, Makefile generator for X Window System
2250
2251 Use these variables to override the choices made by `configure' or to help
2252 it to find libraries and programs with nonstandard names/locations.
2253
2254 Report bugs to the package provider.
2255 _ACEOF
2256 ac_status=$?
2257 fi
2258
2259 if test "$ac_init_help" = "recursive"; then
2260 # If there are subdirs, report their specific --help.
2261 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2262 test -d "$ac_dir" ||
2263 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2264 continue
2265 ac_builddir=.
2266
2267 case "$ac_dir" in
2268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2269 *)
2270 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2271 # A ".." for each directory in $ac_dir_suffix.
2272 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2273 case $ac_top_builddir_sub in
2274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2276 esac ;;
2277 esac
2278 ac_abs_top_builddir=$ac_pwd
2279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2280 # for backward compatibility:
2281 ac_top_builddir=$ac_top_build_prefix
2282
2283 case $srcdir in
2284 .) # We are building in place.
2285 ac_srcdir=.
2286 ac_top_srcdir=$ac_top_builddir_sub
2287 ac_abs_top_srcdir=$ac_pwd ;;
2288 [\\/]* | ?:[\\/]* ) # Absolute name.
2289 ac_srcdir=$srcdir$ac_dir_suffix;
2290 ac_top_srcdir=$srcdir
2291 ac_abs_top_srcdir=$srcdir ;;
2292 *) # Relative name.
2293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2294 ac_top_srcdir=$ac_top_build_prefix$srcdir
2295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2296 esac
2297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2298
2299 cd "$ac_dir" || { ac_status=$?; continue; }
2300 # Check for guested configure.
2301 if test -f "$ac_srcdir/configure.gnu"; then
2302 echo &&
2303 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2304 elif test -f "$ac_srcdir/configure"; then
2305 echo &&
2306 $SHELL "$ac_srcdir/configure" --help=recursive
2307 else
2308 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2309 fi || ac_status=$?
2310 cd "$ac_pwd" || { ac_status=$?; break; }
2311 done
2312 fi
2313
2314 test -n "$ac_init_help" && exit $ac_status
2315 if $ac_init_version; then
2316 cat <<\_ACEOF
2317 emacs configure 24.3.50
2318 generated by GNU Autoconf 2.65
2319
2320 Copyright (C) 2009 Free Software Foundation, Inc.
2321 This configure script is free software; the Free Software Foundation
2322 gives unlimited permission to copy, distribute and modify it.
2323 _ACEOF
2324 exit
2325 fi
2326
2327 ## ------------------------ ##
2328 ## Autoconf initialization. ##
2329 ## ------------------------ ##
2330
2331 # ac_fn_c_try_compile LINENO
2332 # --------------------------
2333 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_c_try_compile ()
2335 {
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 rm -f conftest.$ac_objext
2338 if { { ac_try="$ac_compile"
2339 case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344 $as_echo "$ac_try_echo"; } >&5
2345 (eval "$ac_compile") 2>conftest.err
2346 ac_status=$?
2347 if test -s conftest.err; then
2348 grep -v '^ *+' conftest.err >conftest.er1
2349 cat conftest.er1 >&5
2350 mv -f conftest.er1 conftest.err
2351 fi
2352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353 test $ac_status = 0; } && {
2354 test -z "$ac_c_werror_flag" ||
2355 test ! -s conftest.err
2356 } && test -s conftest.$ac_objext; then :
2357 ac_retval=0
2358 else
2359 $as_echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 ac_retval=1
2363 fi
2364 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2365 as_fn_set_status $ac_retval
2366
2367 } # ac_fn_c_try_compile
2368
2369 # ac_fn_c_try_cpp LINENO
2370 # ----------------------
2371 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2372 ac_fn_c_try_cpp ()
2373 {
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 if { { ac_try="$ac_cpp conftest.$ac_ext"
2376 case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379 esac
2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2383 ac_status=$?
2384 if test -s conftest.err; then
2385 grep -v '^ *+' conftest.err >conftest.er1
2386 cat conftest.er1 >&5
2387 mv -f conftest.er1 conftest.err
2388 fi
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } >/dev/null && {
2391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2392 test ! -s conftest.err
2393 }; then :
2394 ac_retval=0
2395 else
2396 $as_echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2398
2399 ac_retval=1
2400 fi
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402 as_fn_set_status $ac_retval
2403
2404 } # ac_fn_c_try_cpp
2405
2406 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2407 # -------------------------------------------------------
2408 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2409 # the include files in INCLUDES and setting the cache variable VAR
2410 # accordingly.
2411 ac_fn_c_check_header_mongrel ()
2412 {
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2416 $as_echo_n "checking for $2... " >&6; }
2417 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2418 $as_echo_n "(cached) " >&6
2419 fi
2420 eval ac_res=\$$3
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423 else
2424 # Is the header compilable?
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2426 $as_echo_n "checking $2 usability... " >&6; }
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $4
2430 #include <$2>
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 ac_header_compiler=yes
2434 else
2435 ac_header_compiler=no
2436 fi
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2439 $as_echo "$ac_header_compiler" >&6; }
2440
2441 # Is the header present?
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2443 $as_echo_n "checking $2 presence... " >&6; }
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2446 #include <$2>
2447 _ACEOF
2448 if ac_fn_c_try_cpp "$LINENO"; then :
2449 ac_header_preproc=yes
2450 else
2451 ac_header_preproc=no
2452 fi
2453 rm -f conftest.err conftest.$ac_ext
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2455 $as_echo "$ac_header_preproc" >&6; }
2456
2457 # So? What about this header?
2458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2459 yes:no: )
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2461 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2463 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2464 ;;
2465 no:yes:* )
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2467 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2469 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2471 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2473 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2475 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2476 ;;
2477 esac
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479 $as_echo_n "checking for $2... " >&6; }
2480 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 eval "$3=\$ac_header_compiler"
2484 fi
2485 eval ac_res=\$$3
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2488 fi
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2490
2491 } # ac_fn_c_check_header_mongrel
2492
2493 # ac_fn_c_try_run LINENO
2494 # ----------------------
2495 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2496 # that executables *can* be run.
2497 ac_fn_c_try_run ()
2498 {
2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500 if { { ac_try="$ac_link"
2501 case "(($ac_try" in
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2504 esac
2505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506 $as_echo "$ac_try_echo"; } >&5
2507 (eval "$ac_link") 2>&5
2508 ac_status=$?
2509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2511 { { case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514 esac
2515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2516 $as_echo "$ac_try_echo"; } >&5
2517 (eval "$ac_try") 2>&5
2518 ac_status=$?
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; }; }; then :
2521 ac_retval=0
2522 else
2523 $as_echo "$as_me: program exited with status $ac_status" >&5
2524 $as_echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 ac_retval=$ac_status
2528 fi
2529 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2531 as_fn_set_status $ac_retval
2532
2533 } # ac_fn_c_try_run
2534
2535 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2536 # -------------------------------------------------------
2537 # Tests whether HEADER exists and can be compiled using the include files in
2538 # INCLUDES, setting the cache variable VAR accordingly.
2539 ac_fn_c_check_header_compile ()
2540 {
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2543 $as_echo_n "checking for $2... " >&6; }
2544 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2549 $4
2550 #include <$2>
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 eval "$3=yes"
2554 else
2555 eval "$3=no"
2556 fi
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 fi
2559 eval ac_res=\$$3
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563
2564 } # ac_fn_c_check_header_compile
2565
2566 # ac_fn_c_try_link LINENO
2567 # -----------------------
2568 # Try to link conftest.$ac_ext, and return whether this succeeded.
2569 ac_fn_c_try_link ()
2570 {
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 rm -f conftest.$ac_objext conftest$ac_exeext
2573 if { { ac_try="$ac_link"
2574 case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579 $as_echo "$ac_try_echo"; } >&5
2580 (eval "$ac_link") 2>conftest.err
2581 ac_status=$?
2582 if test -s conftest.err; then
2583 grep -v '^ *+' conftest.err >conftest.er1
2584 cat conftest.er1 >&5
2585 mv -f conftest.er1 conftest.err
2586 fi
2587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588 test $ac_status = 0; } && {
2589 test -z "$ac_c_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest$ac_exeext && {
2592 test "$cross_compiling" = yes ||
2593 $as_test_x conftest$ac_exeext
2594 }; then :
2595 ac_retval=0
2596 else
2597 $as_echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 ac_retval=1
2601 fi
2602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2604 # interfere with the next link command; also delete a directory that is
2605 # left behind by Apple's compiler. We do this before executing the actions.
2606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608 as_fn_set_status $ac_retval
2609
2610 } # ac_fn_c_try_link
2611
2612 # ac_fn_c_check_decl LINENO SYMBOL VAR
2613 # ------------------------------------
2614 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2615 ac_fn_c_check_decl ()
2616 {
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2619 $as_echo_n "checking whether $2 is declared... " >&6; }
2620 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2625 $4
2626 int
2627 main ()
2628 {
2629 #ifndef $2
2630 (void) $2;
2631 #endif
2632
2633 ;
2634 return 0;
2635 }
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638 eval "$3=yes"
2639 else
2640 eval "$3=no"
2641 fi
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 fi
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2648
2649 } # ac_fn_c_check_decl
2650
2651 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2652 # ----------------------------------------------
2653 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2654 ac_fn_c_check_header_preproc ()
2655 {
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2658 $as_echo_n "checking for $2... " >&6; }
2659 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h. */
2664 #include <$2>
2665 _ACEOF
2666 if ac_fn_c_try_cpp "$LINENO"; then :
2667 eval "$3=yes"
2668 else
2669 eval "$3=no"
2670 fi
2671 rm -f conftest.err conftest.$ac_ext
2672 fi
2673 eval ac_res=\$$3
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2677
2678 } # ac_fn_c_check_header_preproc
2679
2680 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2681 # ----------------------------------------------------
2682 # Tries to find if the field MEMBER exists in type AGGR, after including
2683 # INCLUDES, setting cache variable VAR accordingly.
2684 ac_fn_c_check_member ()
2685 {
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2688 $as_echo_n "checking for $2.$3... " >&6; }
2689 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2694 $5
2695 int
2696 main ()
2697 {
2698 static $2 ac_aggr;
2699 if (ac_aggr.$3)
2700 return 0;
2701 ;
2702 return 0;
2703 }
2704 _ACEOF
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706 eval "$4=yes"
2707 else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2710 $5
2711 int
2712 main ()
2713 {
2714 static $2 ac_aggr;
2715 if (sizeof ac_aggr.$3)
2716 return 0;
2717 ;
2718 return 0;
2719 }
2720 _ACEOF
2721 if ac_fn_c_try_compile "$LINENO"; then :
2722 eval "$4=yes"
2723 else
2724 eval "$4=no"
2725 fi
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 fi
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 fi
2730 eval ac_res=\$$4
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2732 $as_echo "$ac_res" >&6; }
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734
2735 } # ac_fn_c_check_member
2736
2737 # ac_fn_c_check_func LINENO FUNC VAR
2738 # ----------------------------------
2739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2740 ac_fn_c_check_func ()
2741 {
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2752 #define $2 innocuous_$2
2753
2754 /* System header to define __stub macros and hopefully few prototypes,
2755 which can conflict with char $2 (); below.
2756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2757 <limits.h> exists even on freestanding compilers. */
2758
2759 #ifdef __STDC__
2760 # include <limits.h>
2761 #else
2762 # include <assert.h>
2763 #endif
2764
2765 #undef $2
2766
2767 /* Override any GCC internal prototype to avoid an error.
2768 Use char because int might match the return type of a GCC
2769 builtin and then its argument prototype would still apply. */
2770 #ifdef __cplusplus
2771 extern "C"
2772 #endif
2773 char $2 ();
2774 /* The GNU C library defines this for functions which it implements
2775 to always fail with ENOSYS. Some functions are actually named
2776 something starting with __ and the normal name is an alias. */
2777 #if defined __stub_$2 || defined __stub___$2
2778 choke me
2779 #endif
2780
2781 int
2782 main ()
2783 {
2784 return $2 ();
2785 ;
2786 return 0;
2787 }
2788 _ACEOF
2789 if ac_fn_c_try_link "$LINENO"; then :
2790 eval "$3=yes"
2791 else
2792 eval "$3=no"
2793 fi
2794 rm -f core conftest.err conftest.$ac_objext \
2795 conftest$ac_exeext conftest.$ac_ext
2796 fi
2797 eval ac_res=\$$3
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2799 $as_echo "$ac_res" >&6; }
2800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2801
2802 } # ac_fn_c_check_func
2803
2804 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2805 # -------------------------------------------
2806 # Tests whether TYPE exists after having included INCLUDES, setting cache
2807 # variable VAR accordingly.
2808 ac_fn_c_check_type ()
2809 {
2810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2812 $as_echo_n "checking for $2... " >&6; }
2813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 eval "$3=no"
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2819 $4
2820 int
2821 main ()
2822 {
2823 if (sizeof ($2))
2824 return 0;
2825 ;
2826 return 0;
2827 }
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h. */
2832 $4
2833 int
2834 main ()
2835 {
2836 if (sizeof (($2)))
2837 return 0;
2838 ;
2839 return 0;
2840 }
2841 _ACEOF
2842 if ac_fn_c_try_compile "$LINENO"; then :
2843
2844 else
2845 eval "$3=yes"
2846 fi
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 fi
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850 fi
2851 eval ac_res=\$$3
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2853 $as_echo "$ac_res" >&6; }
2854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2855
2856 } # ac_fn_c_check_type
2857
2858 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2859 # --------------------------------------------
2860 # Tries to find the compile-time value of EXPR in a program that includes
2861 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2862 # computed
2863 ac_fn_c_compute_int ()
2864 {
2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2866 if test "$cross_compiling" = yes; then
2867 # Depending upon the size, compute the lo and hi bounds.
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2870 $4
2871 int
2872 main ()
2873 {
2874 static int test_array [1 - 2 * !(($2) >= 0)];
2875 test_array [0] = 0
2876
2877 ;
2878 return 0;
2879 }
2880 _ACEOF
2881 if ac_fn_c_try_compile "$LINENO"; then :
2882 ac_lo=0 ac_mid=0
2883 while :; do
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2886 $4
2887 int
2888 main ()
2889 {
2890 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2891 test_array [0] = 0
2892
2893 ;
2894 return 0;
2895 }
2896 _ACEOF
2897 if ac_fn_c_try_compile "$LINENO"; then :
2898 ac_hi=$ac_mid; break
2899 else
2900 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2901 if test $ac_lo -le $ac_mid; then
2902 ac_lo= ac_hi=
2903 break
2904 fi
2905 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2906 fi
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 done
2909 else
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2912 $4
2913 int
2914 main ()
2915 {
2916 static int test_array [1 - 2 * !(($2) < 0)];
2917 test_array [0] = 0
2918
2919 ;
2920 return 0;
2921 }
2922 _ACEOF
2923 if ac_fn_c_try_compile "$LINENO"; then :
2924 ac_hi=-1 ac_mid=-1
2925 while :; do
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2928 $4
2929 int
2930 main ()
2931 {
2932 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2933 test_array [0] = 0
2934
2935 ;
2936 return 0;
2937 }
2938 _ACEOF
2939 if ac_fn_c_try_compile "$LINENO"; then :
2940 ac_lo=$ac_mid; break
2941 else
2942 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2943 if test $ac_mid -le $ac_hi; then
2944 ac_lo= ac_hi=
2945 break
2946 fi
2947 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2948 fi
2949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2950 done
2951 else
2952 ac_lo= ac_hi=
2953 fi
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 fi
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 # Binary search between lo and hi bounds.
2958 while test "x$ac_lo" != "x$ac_hi"; do
2959 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2962 $4
2963 int
2964 main ()
2965 {
2966 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2967 test_array [0] = 0
2968
2969 ;
2970 return 0;
2971 }
2972 _ACEOF
2973 if ac_fn_c_try_compile "$LINENO"; then :
2974 ac_hi=$ac_mid
2975 else
2976 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2977 fi
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 done
2980 case $ac_lo in #((
2981 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2982 '') ac_retval=1 ;;
2983 esac
2984 else
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2987 $4
2988 static long int longval () { return $2; }
2989 static unsigned long int ulongval () { return $2; }
2990 #include <stdio.h>
2991 #include <stdlib.h>
2992 int
2993 main ()
2994 {
2995
2996 FILE *f = fopen ("conftest.val", "w");
2997 if (! f)
2998 return 1;
2999 if (($2) < 0)
3000 {
3001 long int i = longval ();
3002 if (i != ($2))
3003 return 1;
3004 fprintf (f, "%ld", i);
3005 }
3006 else
3007 {
3008 unsigned long int i = ulongval ();
3009 if (i != ($2))
3010 return 1;
3011 fprintf (f, "%lu", i);
3012 }
3013 /* Do not output a trailing newline, as this causes \r\n confusion
3014 on some platforms. */
3015 return ferror (f) || fclose (f) != 0;
3016
3017 ;
3018 return 0;
3019 }
3020 _ACEOF
3021 if ac_fn_c_try_run "$LINENO"; then :
3022 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3023 else
3024 ac_retval=1
3025 fi
3026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3027 conftest.$ac_objext conftest.beam conftest.$ac_ext
3028 rm -f conftest.val
3029
3030 fi
3031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3032 as_fn_set_status $ac_retval
3033
3034 } # ac_fn_c_compute_int
3035 cat >config.log <<_ACEOF
3036 This file contains any messages produced by compilers while
3037 running configure, to aid debugging if configure makes a mistake.
3038
3039 It was created by emacs $as_me 24.3.50, which was
3040 generated by GNU Autoconf 2.65. Invocation command line was
3041
3042 $ $0 $@
3043
3044 _ACEOF
3045 exec 5>>config.log
3046 {
3047 cat <<_ASUNAME
3048 ## --------- ##
3049 ## Platform. ##
3050 ## --------- ##
3051
3052 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3053 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3054 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3055 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3056 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3057
3058 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3059 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3060
3061 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3062 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3063 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3064 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3065 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3066 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3067 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3068
3069 _ASUNAME
3070
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 $as_echo "PATH: $as_dir"
3077 done
3078 IFS=$as_save_IFS
3079
3080 } >&5
3081
3082 cat >&5 <<_ACEOF
3083
3084
3085 ## ----------- ##
3086 ## Core tests. ##
3087 ## ----------- ##
3088
3089 _ACEOF
3090
3091
3092 # Keep a trace of the command line.
3093 # Strip out --no-create and --no-recursion so they do not pile up.
3094 # Strip out --silent because we don't want to record it for future runs.
3095 # Also quote any args containing shell meta-characters.
3096 # Make two passes to allow for proper duplicate-argument suppression.
3097 ac_configure_args=
3098 ac_configure_args0=
3099 ac_configure_args1=
3100 ac_must_keep_next=false
3101 for ac_pass in 1 2
3102 do
3103 for ac_arg
3104 do
3105 case $ac_arg in
3106 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3108 | -silent | --silent | --silen | --sile | --sil)
3109 continue ;;
3110 *\'*)
3111 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3112 esac
3113 case $ac_pass in
3114 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3115 2)
3116 as_fn_append ac_configure_args1 " '$ac_arg'"
3117 if test $ac_must_keep_next = true; then
3118 ac_must_keep_next=false # Got value, back to normal.
3119 else
3120 case $ac_arg in
3121 *=* | --config-cache | -C | -disable-* | --disable-* \
3122 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3123 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3124 | -with-* | --with-* | -without-* | --without-* | --x)
3125 case "$ac_configure_args0 " in
3126 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3127 esac
3128 ;;
3129 -* ) ac_must_keep_next=true ;;
3130 esac
3131 fi
3132 as_fn_append ac_configure_args " '$ac_arg'"
3133 ;;
3134 esac
3135 done
3136 done
3137 { ac_configure_args0=; unset ac_configure_args0;}
3138 { ac_configure_args1=; unset ac_configure_args1;}
3139
3140 # When interrupted or exit'd, cleanup temporary files, and complete
3141 # config.log. We remove comments because anyway the quotes in there
3142 # would cause problems or look ugly.
3143 # WARNING: Use '\'' to represent an apostrophe within the trap.
3144 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3145 trap 'exit_status=$?
3146 # Save into config.log some information that might help in debugging.
3147 {
3148 echo
3149
3150 cat <<\_ASBOX
3151 ## ---------------- ##
3152 ## Cache variables. ##
3153 ## ---------------- ##
3154 _ASBOX
3155 echo
3156 # The following way of writing the cache mishandles newlines in values,
3157 (
3158 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3159 eval ac_val=\$$ac_var
3160 case $ac_val in #(
3161 *${as_nl}*)
3162 case $ac_var in #(
3163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3165 esac
3166 case $ac_var in #(
3167 _ | IFS | as_nl) ;; #(
3168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3169 *) { eval $ac_var=; unset $ac_var;} ;;
3170 esac ;;
3171 esac
3172 done
3173 (set) 2>&1 |
3174 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3175 *${as_nl}ac_space=\ *)
3176 sed -n \
3177 "s/'\''/'\''\\\\'\'''\''/g;
3178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3179 ;; #(
3180 *)
3181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3182 ;;
3183 esac |
3184 sort
3185 )
3186 echo
3187
3188 cat <<\_ASBOX
3189 ## ----------------- ##
3190 ## Output variables. ##
3191 ## ----------------- ##
3192 _ASBOX
3193 echo
3194 for ac_var in $ac_subst_vars
3195 do
3196 eval ac_val=\$$ac_var
3197 case $ac_val in
3198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3199 esac
3200 $as_echo "$ac_var='\''$ac_val'\''"
3201 done | sort
3202 echo
3203
3204 if test -n "$ac_subst_files"; then
3205 cat <<\_ASBOX
3206 ## ------------------- ##
3207 ## File substitutions. ##
3208 ## ------------------- ##
3209 _ASBOX
3210 echo
3211 for ac_var in $ac_subst_files
3212 do
3213 eval ac_val=\$$ac_var
3214 case $ac_val in
3215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3216 esac
3217 $as_echo "$ac_var='\''$ac_val'\''"
3218 done | sort
3219 echo
3220 fi
3221
3222 if test -s confdefs.h; then
3223 cat <<\_ASBOX
3224 ## ----------- ##
3225 ## confdefs.h. ##
3226 ## ----------- ##
3227 _ASBOX
3228 echo
3229 cat confdefs.h
3230 echo
3231 fi
3232 test "$ac_signal" != 0 &&
3233 $as_echo "$as_me: caught signal $ac_signal"
3234 $as_echo "$as_me: exit $exit_status"
3235 } >&5
3236 rm -f core *.core core.conftest.* &&
3237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3238 exit $exit_status
3239 ' 0
3240 for ac_signal in 1 2 13 15; do
3241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3242 done
3243 ac_signal=0
3244
3245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3246 rm -f -r conftest* confdefs.h
3247
3248 $as_echo "/* confdefs.h */" > confdefs.h
3249
3250 # Predefined preprocessor variables.
3251
3252 cat >>confdefs.h <<_ACEOF
3253 #define PACKAGE_NAME "$PACKAGE_NAME"
3254 _ACEOF
3255
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3258 _ACEOF
3259
3260 cat >>confdefs.h <<_ACEOF
3261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3262 _ACEOF
3263
3264 cat >>confdefs.h <<_ACEOF
3265 #define PACKAGE_STRING "$PACKAGE_STRING"
3266 _ACEOF
3267
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3270 _ACEOF
3271
3272 cat >>confdefs.h <<_ACEOF
3273 #define PACKAGE_URL "$PACKAGE_URL"
3274 _ACEOF
3275
3276
3277 # Let the site file select an alternate cache file if it wants to.
3278 # Prefer an explicitly selected file to automatically selected ones.
3279 ac_site_file1=NONE
3280 ac_site_file2=NONE
3281 if test -n "$CONFIG_SITE"; then
3282 ac_site_file1=$CONFIG_SITE
3283 elif test "x$prefix" != xNONE; then
3284 ac_site_file1=$prefix/share/config.site
3285 ac_site_file2=$prefix/etc/config.site
3286 else
3287 ac_site_file1=$ac_default_prefix/share/config.site
3288 ac_site_file2=$ac_default_prefix/etc/config.site
3289 fi
3290 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3291 do
3292 test "x$ac_site_file" = xNONE && continue
3293 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3295 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3296 sed 's/^/| /' "$ac_site_file" >&5
3297 . "$ac_site_file"
3298 fi
3299 done
3300
3301 if test -r "$cache_file"; then
3302 # Some versions of bash will fail to source /dev/null (special files
3303 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3304 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3306 $as_echo "$as_me: loading cache $cache_file" >&6;}
3307 case $cache_file in
3308 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3309 *) . "./$cache_file";;
3310 esac
3311 fi
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3314 $as_echo "$as_me: creating cache $cache_file" >&6;}
3315 >$cache_file
3316 fi
3317
3318 as_fn_append ac_header_list " linux/version.h"
3319 as_fn_append ac_header_list " sys/systeminfo.h"
3320 as_fn_append ac_header_list " coff.h"
3321 as_fn_append ac_header_list " pty.h"
3322 as_fn_append ac_header_list " sys/resource.h"
3323 as_fn_append ac_header_list " sys/utsname.h"
3324 as_fn_append ac_header_list " pwd.h"
3325 as_fn_append ac_header_list " utmp.h"
3326 as_fn_append ac_header_list " util.h"
3327 as_fn_append ac_header_list " sys/socket.h"
3328 as_fn_append ac_header_list " stdlib.h"
3329 as_fn_append ac_header_list " unistd.h"
3330 as_fn_append ac_header_list " sys/param.h"
3331 as_fn_append ac_header_list " pthread.h"
3332 as_fn_append ac_header_list " malloc/malloc.h"
3333 as_fn_append ac_header_list " maillock.h"
3334 as_fn_append ac_header_list " sys/un.h"
3335 as_fn_append ac_func_list " tzset"
3336 as_fn_append ac_func_list " readlinkat"
3337 as_fn_append ac_header_list " dirent.h"
3338 as_fn_append ac_header_list " execinfo.h"
3339 as_fn_append ac_func_list " faccessat"
3340 as_fn_append ac_func_list " fdopendir"
3341 as_fn_append ac_header_list " stdio_ext.h"
3342 as_fn_append ac_func_list " __fpending"
3343 as_fn_append ac_func_list " fstatat"
3344 as_fn_append ac_func_list " fsync"
3345 gl_getopt_required=GNU
3346 as_fn_append ac_header_list " getopt.h"
3347 as_fn_append ac_func_list " gettimeofday"
3348 as_fn_append ac_func_list " nanotime"
3349 as_fn_append ac_header_list " sys/time.h"
3350 as_fn_append ac_header_list " wchar.h"
3351 as_fn_append ac_header_list " stdint.h"
3352 as_fn_append ac_header_list " inttypes.h"
3353 as_fn_append ac_func_list " lstat"
3354 as_fn_append ac_header_list " sys/select.h"
3355 as_fn_append ac_func_list " pselect"
3356 as_fn_append ac_func_list " pthread_sigmask"
3357 as_fn_append ac_func_list " readlink"
3358 as_fn_append ac_func_list " strtoimax"
3359 as_fn_append ac_func_list " strtoumax"
3360 as_fn_append ac_func_list " symlink"
3361 as_fn_append ac_header_list " sys/stat.h"
3362 as_fn_append ac_func_list " localtime_r"
3363 as_fn_append ac_header_list " utime.h"
3364 as_fn_append ac_func_list " futimes"
3365 as_fn_append ac_func_list " futimesat"
3366 as_fn_append ac_func_list " futimens"
3367 as_fn_append ac_func_list " utimensat"
3368 as_fn_append ac_func_list " lutimes"
3369 # Check that the precious variables saved in the cache have kept the same
3370 # value.
3371 ac_cache_corrupted=false
3372 for ac_var in $ac_precious_vars; do
3373 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3374 eval ac_new_set=\$ac_env_${ac_var}_set
3375 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3376 eval ac_new_val=\$ac_env_${ac_var}_value
3377 case $ac_old_set,$ac_new_set in
3378 set,)
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3380 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3381 ac_cache_corrupted=: ;;
3382 ,set)
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3384 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3385 ac_cache_corrupted=: ;;
3386 ,);;
3387 *)
3388 if test "x$ac_old_val" != "x$ac_new_val"; then
3389 # differences in whitespace do not lead to failure.
3390 ac_old_val_w=`echo x $ac_old_val`
3391 ac_new_val_w=`echo x $ac_new_val`
3392 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3394 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3395 ac_cache_corrupted=:
3396 else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3398 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3399 eval $ac_var=\$ac_old_val
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3402 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3404 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3405 fi;;
3406 esac
3407 # Pass precious variables to config.status.
3408 if test "$ac_new_set" = set; then
3409 case $ac_new_val in
3410 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3411 *) ac_arg=$ac_var=$ac_new_val ;;
3412 esac
3413 case " $ac_configure_args " in
3414 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3415 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3416 esac
3417 fi
3418 done
3419 if $ac_cache_corrupted; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3423 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3424 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3425 fi
3426 ## -------------------- ##
3427 ## Main body of script. ##
3428 ## -------------------- ##
3429
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435
3436
3437
3438 emacs_config_options="$@"
3439 ## Add some environment variables, if they were passed via the environment
3440 ## rather than on the command-line.
3441 for var in CFLAGS CPPFLAGS LDFLAGS; do
3442 case "$emacs_config_options" in
3443 *$var=*) continue ;;
3444 esac
3445 eval val="\$${var}"
3446 test x"$val" = x && continue
3447 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3448 done
3449
3450 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3451
3452
3453 ac_aux_dir=
3454 for ac_dir in build-aux "$srcdir"/build-aux; do
3455 for ac_t in install-sh install.sh shtool; do
3456 if test -f "$ac_dir/$ac_t"; then
3457 ac_aux_dir=$ac_dir
3458 ac_install_sh="$ac_aux_dir/$ac_t -c"
3459 break 2
3460 fi
3461 done
3462 done
3463 if test -z "$ac_aux_dir"; then
3464 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3465 fi
3466
3467 # These three variables are undocumented and unsupported,
3468 # and are intended to be withdrawn in a future Autoconf release.
3469 # They can cause serious problems if a builder's source tree is in a directory
3470 # whose full name contains unusual characters.
3471 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3472 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3473 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3474
3475
3476 am__api_version='1.11'
3477
3478 # Find a good install program. We prefer a C program (faster),
3479 # so one script is as good as another. But avoid the broken or
3480 # incompatible versions:
3481 # SysV /etc/install, /usr/sbin/install
3482 # SunOS /usr/etc/install
3483 # IRIX /sbin/install
3484 # AIX /bin/install
3485 # AmigaOS /C/install, which installs bootblocks on floppy discs
3486 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3487 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3488 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3489 # OS/2's system install, which has a completely different semantic
3490 # ./install, which can be erroneously created by make from ./install.sh.
3491 # Reject install programs that cannot install multiple files.
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3493 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3494 if test -z "$INSTALL"; then
3495 if test "${ac_cv_path_install+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 # Account for people who put trailing slashes in PATH elements.
3504 case $as_dir/ in #((
3505 ./ | .// | /[cC]/* | \
3506 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3507 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3508 /usr/ucb/* ) ;;
3509 *)
3510 # OSF1 and SCO ODT 3.0 have their own names for install.
3511 # Don't use installbsd from OSF since it installs stuff as root
3512 # by default.
3513 for ac_prog in ginstall scoinst install; do
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3516 if test $ac_prog = install &&
3517 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3518 # AIX install. It has an incompatible calling convention.
3519 :
3520 elif test $ac_prog = install &&
3521 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3522 # program-specific install script used by HP pwplus--don't use.
3523 :
3524 else
3525 rm -rf conftest.one conftest.two conftest.dir
3526 echo one > conftest.one
3527 echo two > conftest.two
3528 mkdir conftest.dir
3529 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3530 test -s conftest.one && test -s conftest.two &&
3531 test -s conftest.dir/conftest.one &&
3532 test -s conftest.dir/conftest.two
3533 then
3534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3535 break 3
3536 fi
3537 fi
3538 fi
3539 done
3540 done
3541 ;;
3542 esac
3543
3544 done
3545 IFS=$as_save_IFS
3546
3547 rm -rf conftest.one conftest.two conftest.dir
3548
3549 fi
3550 if test "${ac_cv_path_install+set}" = set; then
3551 INSTALL=$ac_cv_path_install
3552 else
3553 # As a last resort, use the slow shell script. Don't cache a
3554 # value for INSTALL within a source directory, because that will
3555 # break other packages using the cache if that directory is
3556 # removed, or if the value is a relative name.
3557 INSTALL=$ac_install_sh
3558 fi
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3561 $as_echo "$INSTALL" >&6; }
3562
3563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3564 # It thinks the first close brace ends the variable substitution.
3565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3566
3567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3568
3569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3570
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3572 $as_echo_n "checking whether build environment is sane... " >&6; }
3573 # Just in case
3574 sleep 1
3575 echo timestamp > conftest.file
3576 # Reject unsafe characters in $srcdir or the absolute working directory
3577 # name. Accept space and tab only in the latter.
3578 am_lf='
3579 '
3580 case `pwd` in
3581 *[\\\"\#\$\&\'\`$am_lf]*)
3582 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3583 esac
3584 case $srcdir in
3585 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3586 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3587 esac
3588
3589 # Do `set' in a subshell so we don't clobber the current shell's
3590 # arguments. Must try -L first in case configure is actually a
3591 # symlink; some systems play weird games with the mod time of symlinks
3592 # (eg FreeBSD returns the mod time of the symlink's containing
3593 # directory).
3594 if (
3595 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3596 if test "$*" = "X"; then
3597 # -L didn't work.
3598 set X `ls -t "$srcdir/configure" conftest.file`
3599 fi
3600 rm -f conftest.file
3601 if test "$*" != "X $srcdir/configure conftest.file" \
3602 && test "$*" != "X conftest.file $srcdir/configure"; then
3603
3604 # If neither matched, then we have a broken ls. This can happen
3605 # if, for instance, CONFIG_SHELL is bash and it inherits a
3606 # broken ls alias from the environment. This has actually
3607 # happened. Such a system could not be considered "sane".
3608 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3609 alias in your environment" "$LINENO" 5
3610 fi
3611
3612 test "$2" = conftest.file
3613 )
3614 then
3615 # Ok.
3616 :
3617 else
3618 as_fn_error "newly created file is older than distributed files!
3619 Check your system clock" "$LINENO" 5
3620 fi
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3622 $as_echo "yes" >&6; }
3623 test "$program_prefix" != NONE &&
3624 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3625 # Use a double $ so make ignores it.
3626 test "$program_suffix" != NONE &&
3627 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3628 # Double any \ or $.
3629 # By default was `s,x,x', remove it if useless.
3630 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3631 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3632
3633 # expand $ac_aux_dir to an absolute path
3634 am_aux_dir=`cd $ac_aux_dir && pwd`
3635
3636 if test x"${MISSING+set}" != xset; then
3637 case $am_aux_dir in
3638 *\ * | *\ *)
3639 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3640 *)
3641 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3642 esac
3643 fi
3644 # Use eval to expand $SHELL
3645 if eval "$MISSING --run true"; then
3646 am_missing_run="$MISSING --run "
3647 else
3648 am_missing_run=
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3650 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3651 fi
3652
3653 if test x"${install_sh}" != xset; then
3654 case $am_aux_dir in
3655 *\ * | *\ *)
3656 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3657 *)
3658 install_sh="\${SHELL} $am_aux_dir/install-sh"
3659 esac
3660 fi
3661
3662 # Installed binaries are usually stripped using `strip' when the user
3663 # run `make install-strip'. However `strip' might not be the right
3664 # tool to use in cross-compilation environments, therefore Automake
3665 # will honor the `STRIP' environment variable to overrule this program.
3666 if test "$cross_compiling" != no; then
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}strip; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_STRIP+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$STRIP"; then
3676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3688 fi
3689 done
3690 done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 STRIP=$ac_cv_prog_STRIP
3696 if test -n "$STRIP"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3698 $as_echo "$STRIP" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 fi
3703
3704
3705 fi
3706 if test -z "$ac_cv_prog_STRIP"; then
3707 ac_ct_STRIP=$STRIP
3708 # Extract the first word of "strip", so it can be a program name with args.
3709 set dummy strip; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 if test -n "$ac_ct_STRIP"; then
3716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3717 else
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725 ac_cv_prog_ac_ct_STRIP="strip"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 break 2
3728 fi
3729 done
3730 done
3731 IFS=$as_save_IFS
3732
3733 fi
3734 fi
3735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3736 if test -n "$ac_ct_STRIP"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3738 $as_echo "$ac_ct_STRIP" >&6; }
3739 else
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3742 fi
3743
3744 if test "x$ac_ct_STRIP" = x; then
3745 STRIP=":"
3746 else
3747 case $cross_compiling:$ac_tool_warned in
3748 yes:)
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3752 esac
3753 STRIP=$ac_ct_STRIP
3754 fi
3755 else
3756 STRIP="$ac_cv_prog_STRIP"
3757 fi
3758
3759 fi
3760 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3761
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3763 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3764 if test -z "$MKDIR_P"; then
3765 if test "${ac_cv_path_mkdir+set}" = set; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3770 do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_prog in mkdir gmkdir; do
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3776 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3777 'mkdir (GNU coreutils) '* | \
3778 'mkdir (coreutils) '* | \
3779 'mkdir (fileutils) '4.1*)
3780 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3781 break 3;;
3782 esac
3783 done
3784 done
3785 done
3786 IFS=$as_save_IFS
3787
3788 fi
3789
3790 test -d ./--version && rmdir ./--version
3791 if test "${ac_cv_path_mkdir+set}" = set; then
3792 MKDIR_P="$ac_cv_path_mkdir -p"
3793 else
3794 # As a last resort, use the slow shell script. Don't cache a
3795 # value for MKDIR_P within a source directory, because that will
3796 # break other packages using the cache if that directory is
3797 # removed, or if the value is a relative name.
3798 MKDIR_P="$ac_install_sh -d"
3799 fi
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3802 $as_echo "$MKDIR_P" >&6; }
3803
3804 mkdir_p="$MKDIR_P"
3805 case $mkdir_p in
3806 [\\/$]* | ?:[\\/]*) ;;
3807 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3808 esac
3809
3810 for ac_prog in gawk mawk nawk awk
3811 do
3812 # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if test "${ac_cv_prog_AWK+set}" = set; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -n "$AWK"; then
3820 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_AWK="$ac_prog"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833 done
3834 done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 AWK=$ac_cv_prog_AWK
3840 if test -n "$AWK"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3842 $as_echo "$AWK" >&6; }
3843 else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848
3849 test -n "$AWK" && break
3850 done
3851
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3853 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3854 set x ${MAKE-make}
3855 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3856 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 cat >conftest.make <<\_ACEOF
3860 SHELL = /bin/sh
3861 all:
3862 @echo '@@@%%%=$(MAKE)=@@@%%%'
3863 _ACEOF
3864 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3865 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3866 *@@@%%%=?*=@@@%%%*)
3867 eval ac_cv_prog_make_${ac_make}_set=yes;;
3868 *)
3869 eval ac_cv_prog_make_${ac_make}_set=no;;
3870 esac
3871 rm -f conftest.make
3872 fi
3873 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3875 $as_echo "yes" >&6; }
3876 SET_MAKE=
3877 else
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3880 SET_MAKE="MAKE=${MAKE-make}"
3881 fi
3882
3883 rm -rf .tst 2>/dev/null
3884 mkdir .tst 2>/dev/null
3885 if test -d .tst; then
3886 am__leading_dot=.
3887 else
3888 am__leading_dot=_
3889 fi
3890 rmdir .tst 2>/dev/null
3891
3892 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3893 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3894 # is not polluted with repeated "-I."
3895 am__isrc=' -I$(srcdir)'
3896 # test to see if srcdir already configured
3897 if test -f $srcdir/config.status; then
3898 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3899 fi
3900 fi
3901
3902 # test whether we have cygpath
3903 if test -z "$CYGPATH_W"; then
3904 if (cygpath --version) >/dev/null 2>/dev/null; then
3905 CYGPATH_W='cygpath -w'
3906 else
3907 CYGPATH_W=echo
3908 fi
3909 fi
3910
3911
3912 # Define the identity of the package.
3913 PACKAGE='emacs'
3914 VERSION='24.3.50'
3915
3916
3917 cat >>confdefs.h <<_ACEOF
3918 #define PACKAGE "$PACKAGE"
3919 _ACEOF
3920
3921
3922 cat >>confdefs.h <<_ACEOF
3923 #define VERSION "$VERSION"
3924 _ACEOF
3925
3926 # Some tools Automake needs.
3927
3928 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3929
3930
3931 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3932
3933
3934 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3935
3936
3937 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3938
3939
3940 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3941
3942 # We need awk for the "check" target. The system "awk" is bad on
3943 # some platforms.
3944 # Always define AMTAR for backward compatibility.
3945
3946 AMTAR=${AMTAR-"${am_missing_run}tar"}
3947
3948 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3949
3950
3951
3952
3953
3954
3955
3956
3957 lispdir='${datadir}/emacs/${version}/lisp'
3958 leimdir='${datadir}/emacs/${version}/leim'
3959 standardlisppath='${lispdir}:${leimdir}'
3960 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3961 '${datadir}/emacs/site-lisp'
3962 lisppath='${locallisppath}:${standardlisppath}'
3963 etcdir='${datadir}/emacs/${version}/etc'
3964 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3965 docdir='${datadir}/emacs/${version}/etc'
3966 gamedir='${localstatedir}/games/emacs'
3967
3968
3969 # Check whether --with-all was given.
3970 if test "${with_all+set}" = set; then :
3971 withval=$with_all; with_features=$withval
3972 else
3973 with_features=yes
3974 fi
3975
3976
3977
3978
3979
3980 # Check whether --with-pop was given.
3981 if test "${with_pop+set}" = set; then :
3982 withval=$with_pop;
3983 else
3984 with_pop=$with_features
3985 fi
3986
3987 if test "$with_pop" = yes; then
3988 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3989
3990 fi
3991
3992
3993 # Check whether --with-kerberos was given.
3994 if test "${with_kerberos+set}" = set; then :
3995 withval=$with_kerberos;
3996 else
3997 with_kerberos=no
3998 fi
3999
4000 if test "$with_kerberos" != no; then
4001 $as_echo "#define KERBEROS 1" >>confdefs.h
4002
4003 fi
4004
4005
4006 # Check whether --with-kerberos5 was given.
4007 if test "${with_kerberos5+set}" = set; then :
4008 withval=$with_kerberos5;
4009 else
4010 with_kerberos5=no
4011 fi
4012
4013 if test "${with_kerberos5}" != no; then
4014 if test "${with_kerberos}" = no; then
4015 with_kerberos=yes
4016 $as_echo "#define KERBEROS 1" >>confdefs.h
4017
4018 fi
4019
4020 $as_echo "#define KERBEROS5 1" >>confdefs.h
4021
4022 fi
4023
4024
4025 # Check whether --with-hesiod was given.
4026 if test "${with_hesiod+set}" = set; then :
4027 withval=$with_hesiod;
4028 else
4029 with_hesiod=no
4030 fi
4031
4032 if test "$with_hesiod" != no; then
4033
4034 $as_echo "#define HESIOD 1" >>confdefs.h
4035
4036 fi
4037
4038
4039 # Check whether --with-mmdf was given.
4040 if test "${with_mmdf+set}" = set; then :
4041 withval=$with_mmdf;
4042 else
4043 with_mmdf=no
4044 fi
4045
4046 if test "$with_mmdf" != no; then
4047
4048 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4049
4050 fi
4051
4052
4053 # Check whether --with-mail-unlink was given.
4054 if test "${with_mail_unlink+set}" = set; then :
4055 withval=$with_mail_unlink;
4056 else
4057 with_mail_unlink=no
4058 fi
4059
4060 if test "$with_mail_unlink" != no; then
4061
4062 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4063
4064 fi
4065
4066
4067 # Check whether --with-mailhost was given.
4068 if test "${with_mailhost+set}" = set; then :
4069 withval=$with_mailhost;
4070 cat >>confdefs.h <<_ACEOF
4071 #define MAILHOST "$withval"
4072 _ACEOF
4073
4074 fi
4075
4076
4077
4078 # Check whether --with-sound was given.
4079 if test "${with_sound+set}" = set; then :
4080 withval=$with_sound;
4081 else
4082 with_sound=$with_features
4083 fi
4084
4085
4086
4087 # Check whether --with-x-toolkit was given.
4088 if test "${with_x_toolkit+set}" = set; then :
4089 withval=$with_x_toolkit; case "${withval}" in
4090 y | ye | yes ) val=gtk ;;
4091 n | no ) val=no ;;
4092 l | lu | luc | luci | lucid ) val=lucid ;;
4093 a | at | ath | athe | athen | athena ) val=athena ;;
4094 m | mo | mot | moti | motif ) val=motif ;;
4095 g | gt | gtk ) val=gtk ;;
4096 gtk2 ) val=gtk2 ;;
4097 gtk3 ) val=gtk3 ;;
4098 * )
4099 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4100 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4101 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4102 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4103 ;;
4104 esac
4105 with_x_toolkit=$val
4106
4107 fi
4108
4109
4110
4111 # Check whether --with-wide-int was given.
4112 if test "${with_wide_int+set}" = set; then :
4113 withval=$with_wide_int;
4114 else
4115 with_wide_int=no
4116 fi
4117
4118 if test "$with_wide_int" = yes; then
4119
4120 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4121
4122 fi
4123
4124
4125 # Check whether --with-xpm was given.
4126 if test "${with_xpm+set}" = set; then :
4127 withval=$with_xpm;
4128 else
4129 with_xpm=$with_features
4130 fi
4131
4132
4133 # Check whether --with-jpeg was given.
4134 if test "${with_jpeg+set}" = set; then :
4135 withval=$with_jpeg;
4136 else
4137 with_jpeg=$with_features
4138 fi
4139
4140
4141 # Check whether --with-tiff was given.
4142 if test "${with_tiff+set}" = set; then :
4143 withval=$with_tiff;
4144 else
4145 with_tiff=$with_features
4146 fi
4147
4148
4149 # Check whether --with-gif was given.
4150 if test "${with_gif+set}" = set; then :
4151 withval=$with_gif;
4152 else
4153 with_gif=$with_features
4154 fi
4155
4156
4157 # Check whether --with-png was given.
4158 if test "${with_png+set}" = set; then :
4159 withval=$with_png;
4160 else
4161 with_png=$with_features
4162 fi
4163
4164
4165 # Check whether --with-rsvg was given.
4166 if test "${with_rsvg+set}" = set; then :
4167 withval=$with_rsvg;
4168 else
4169 with_rsvg=$with_features
4170 fi
4171
4172
4173 # Check whether --with-xml2 was given.
4174 if test "${with_xml2+set}" = set; then :
4175 withval=$with_xml2;
4176 else
4177 with_xml2=$with_features
4178 fi
4179
4180
4181 # Check whether --with-imagemagick was given.
4182 if test "${with_imagemagick+set}" = set; then :
4183 withval=$with_imagemagick;
4184 else
4185 with_imagemagick=$with_features
4186 fi
4187
4188
4189
4190 # Check whether --with-xft was given.
4191 if test "${with_xft+set}" = set; then :
4192 withval=$with_xft;
4193 else
4194 with_xft=$with_features
4195 fi
4196
4197
4198 # Check whether --with-libotf was given.
4199 if test "${with_libotf+set}" = set; then :
4200 withval=$with_libotf;
4201 else
4202 with_libotf=$with_features
4203 fi
4204
4205
4206 # Check whether --with-m17n-flt was given.
4207 if test "${with_m17n_flt+set}" = set; then :
4208 withval=$with_m17n_flt;
4209 else
4210 with_m17n_flt=$with_features
4211 fi
4212
4213
4214
4215 # Check whether --with-toolkit-scroll-bars was given.
4216 if test "${with_toolkit_scroll_bars+set}" = set; then :
4217 withval=$with_toolkit_scroll_bars;
4218 else
4219 with_toolkit_scroll_bars=$with_features
4220 fi
4221
4222
4223 # Check whether --with-xaw3d was given.
4224 if test "${with_xaw3d+set}" = set; then :
4225 withval=$with_xaw3d;
4226 else
4227 with_xaw3d=$with_features
4228 fi
4229
4230
4231 # Check whether --with-xim was given.
4232 if test "${with_xim+set}" = set; then :
4233 withval=$with_xim;
4234 else
4235 with_xim=$with_features
4236 fi
4237
4238
4239 # Check whether --with-ns was given.
4240 if test "${with_ns+set}" = set; then :
4241 withval=$with_ns;
4242 else
4243 with_ns=no
4244 fi
4245
4246
4247 # Check whether --with-w32 was given.
4248 if test "${with_w32+set}" = set; then :
4249 withval=$with_w32;
4250 else
4251 with_w32=no
4252 fi
4253
4254
4255
4256 # Check whether --with-gpm was given.
4257 if test "${with_gpm+set}" = set; then :
4258 withval=$with_gpm;
4259 else
4260 with_gpm=$with_features
4261 fi
4262
4263
4264 # Check whether --with-dbus was given.
4265 if test "${with_dbus+set}" = set; then :
4266 withval=$with_dbus;
4267 else
4268 with_dbus=$with_features
4269 fi
4270
4271
4272 # Check whether --with-gconf was given.
4273 if test "${with_gconf+set}" = set; then :
4274 withval=$with_gconf;
4275 else
4276 with_gconf=$with_features
4277 fi
4278
4279
4280 # Check whether --with-gsettings was given.
4281 if test "${with_gsettings+set}" = set; then :
4282 withval=$with_gsettings;
4283 else
4284 with_gsettings=$with_features
4285 fi
4286
4287
4288 # Check whether --with-selinux was given.
4289 if test "${with_selinux+set}" = set; then :
4290 withval=$with_selinux;
4291 else
4292 with_selinux=$with_features
4293 fi
4294
4295
4296 # Check whether --with-acl was given.
4297 if test "${with_acl+set}" = set; then :
4298 withval=$with_acl;
4299 else
4300 with_acl=$with_features
4301 fi
4302
4303
4304 # Check whether --with-gnutls was given.
4305 if test "${with_gnutls+set}" = set; then :
4306 withval=$with_gnutls;
4307 else
4308 with_gnutls=$with_features
4309 fi
4310
4311
4312 # Check whether --with-inotify was given.
4313 if test "${with_inotify+set}" = set; then :
4314 withval=$with_inotify;
4315 else
4316 with_inotify=$with_features
4317 fi
4318
4319
4320 ## For the times when you want to build Emacs but don't have
4321 ## a suitable makeinfo, and can live without the manuals.
4322
4323 # Check whether --with-makeinfo was given.
4324 if test "${with_makeinfo+set}" = set; then :
4325 withval=$with_makeinfo;
4326 else
4327 with_makeinfo=$with_features
4328 fi
4329
4330
4331 ## Makefile.in needs the cache file name.
4332
4333
4334 ## This is an option because I do not know if all info/man support
4335 ## compressed files, nor how to test if they do so.
4336
4337 # Check whether --with-compress-info was given.
4338 if test "${with_compress_info+set}" = set; then :
4339 withval=$with_compress_info;
4340 else
4341 with_compress_info=$with_features
4342 fi
4343
4344 if test $with_compress_info = yes; then
4345 GZIP_INFO=yes
4346 else
4347 GZIP_INFO=
4348 fi
4349
4350
4351
4352 # Check whether --with-pkg-config-prog was given.
4353 if test "${with_pkg_config_prog+set}" = set; then :
4354 withval=$with_pkg_config_prog;
4355 fi
4356
4357 if test "X${with_pkg_config_prog}" != X; then
4358 if test "${with_pkg_config_prog}" != yes; then
4359 PKG_CONFIG="${with_pkg_config_prog}"
4360 fi
4361 fi
4362
4363
4364 # Check whether --with-gameuser was given.
4365 if test "${with_gameuser+set}" = set; then :
4366 withval=$with_gameuser;
4367 fi
4368
4369 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4370 && gameuser="${with_gameuser}"
4371 test "X$gameuser" = X && gameuser=games
4372
4373
4374 # Check whether --with-gnustep-conf was given.
4375 if test "${with_gnustep_conf+set}" = set; then :
4376 withval=$with_gnustep_conf;
4377 fi
4378
4379 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4380 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4381 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4382 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4383
4384 # Check whether --enable-ns-self-contained was given.
4385 if test "${enable_ns_self_contained+set}" = set; then :
4386 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4387 else
4388 EN_NS_SELF_CONTAINED=yes
4389 fi
4390
4391
4392 # Check whether --enable-locallisppath was given.
4393 if test "${enable_locallisppath+set}" = set; then :
4394 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4395 locallisppath=
4396 elif test "${enableval}" != "yes"; then
4397 locallisppath=${enableval}
4398 fi
4399 fi
4400
4401
4402 # Check whether --enable-checking was given.
4403 if test "${enable_checking+set}" = set; then :
4404 enableval=$enable_checking; ac_checking_flags="${enableval}"
4405 fi
4406
4407 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4408 for check in $ac_checking_flags
4409 do
4410 case $check in
4411 # these set all the flags to specific states
4412 yes) ac_enable_checking=1 ;;
4413 no) ac_enable_checking= ;
4414 ac_gc_check_stringbytes= ;
4415 ac_gc_check_string_overrun= ;
4416 ac_gc_check_string_free_list= ;
4417 ac_xmalloc_overrun= ;
4418 ac_gc_check_cons_list= ;
4419 ac_glyphs_debug= ;;
4420 all) ac_enable_checking=1 ;
4421 ac_gc_check_stringbytes=1 ;
4422 ac_gc_check_string_overrun=1 ;
4423 ac_gc_check_string_free_list=1 ;
4424 ac_xmalloc_overrun=1 ;
4425 ac_gc_check_cons_list=1 ;
4426 ac_glyphs_debug=1 ;;
4427 # these enable particular checks
4428 stringbytes) ac_gc_check_stringbytes=1 ;;
4429 stringoverrun) ac_gc_check_string_overrun=1 ;;
4430 stringfreelist) ac_gc_check_string_free_list=1 ;;
4431 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4432 conslist) ac_gc_check_cons_list=1 ;;
4433 glyphs) ac_glyphs_debug=1 ;;
4434 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4435 esac
4436 done
4437 IFS="$ac_save_IFS"
4438
4439 if test x$ac_enable_checking != x ; then
4440
4441 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4442
4443 fi
4444 if test x$ac_gc_check_stringbytes != x ; then
4445
4446 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4447
4448 fi
4449 if test x$ac_gc_check_string_overrun != x ; then
4450
4451 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4452
4453 fi
4454 if test x$ac_gc_check_string_free_list != x ; then
4455
4456 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4457
4458 fi
4459 if test x$ac_xmalloc_overrun != x ; then
4460
4461 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4462
4463 fi
4464 if test x$ac_gc_check_cons_list != x ; then
4465
4466 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4467
4468 fi
4469 if test x$ac_glyphs_debug != x ; then
4470
4471 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4472
4473 fi
4474
4475 # Check whether --enable-check-lisp-object-type was given.
4476 if test "${enable_check_lisp_object_type+set}" = set; then :
4477 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4478
4479 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4480
4481 fi
4482 fi
4483
4484
4485
4486 # Check whether --enable-profiling was given.
4487 if test "${enable_profiling+set}" = set; then :
4488 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4489 fi
4490
4491 if test x$ac_enable_profiling != x ; then
4492 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4493 else
4494 PROFILING_CFLAGS=
4495 fi
4496
4497
4498 # Check whether --enable-autodepend was given.
4499 if test "${enable_autodepend+set}" = set; then :
4500 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4501 else
4502 ac_enable_autodepend=yes
4503 fi
4504
4505
4506 # Check whether --enable-gtk-deprecation-warnings was given.
4507 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4508 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4509 fi
4510
4511
4512 #### Make srcdir absolute, if it isn't already. It's important to
4513 #### avoid running the file name through pwd unnecessarily, since pwd can
4514 #### give you automounter prefixes, which can go away. We do all this
4515 #### so Emacs can find its files when run uninstalled.
4516 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4517 unset CDPATH
4518 case "${srcdir}" in
4519 /* ) ;;
4520 . )
4521 ## We may be able to use the $PWD environment variable to make this
4522 ## absolute. But sometimes PWD is inaccurate.
4523 ## Note: we used to use $PWD at the end instead of `pwd`,
4524 ## but that tested only for a well-formed and valid PWD,
4525 ## it did not object when PWD was well-formed and valid but just wrong.
4526 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4527 then
4528 srcdir="$PWD"
4529 else
4530 srcdir=`(cd "$srcdir"; pwd)`
4531 fi
4532 ;;
4533 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4534 esac
4535
4536 ### Canonicalize the configuration name.
4537
4538 # Make sure we can run config.sub.
4539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4540 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4541
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4543 $as_echo_n "checking build system type... " >&6; }
4544 if test "${ac_cv_build+set}" = set; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 ac_build_alias=$build_alias
4548 test "x$ac_build_alias" = x &&
4549 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4550 test "x$ac_build_alias" = x &&
4551 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4553 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4554
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4557 $as_echo "$ac_cv_build" >&6; }
4558 case $ac_cv_build in
4559 *-*-*) ;;
4560 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4561 esac
4562 build=$ac_cv_build
4563 ac_save_IFS=$IFS; IFS='-'
4564 set x $ac_cv_build
4565 shift
4566 build_cpu=$1
4567 build_vendor=$2
4568 shift; shift
4569 # Remember, the first character of IFS is used to create $*,
4570 # except with old shells:
4571 build_os=$*
4572 IFS=$ac_save_IFS
4573 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4574
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4577 $as_echo_n "checking host system type... " >&6; }
4578 if test "${ac_cv_host+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test "x$host_alias" = x; then
4582 ac_cv_host=$ac_cv_build
4583 else
4584 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4585 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4586 fi
4587
4588 fi
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4590 $as_echo "$ac_cv_host" >&6; }
4591 case $ac_cv_host in
4592 *-*-*) ;;
4593 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4594 esac
4595 host=$ac_cv_host
4596 ac_save_IFS=$IFS; IFS='-'
4597 set x $ac_cv_host
4598 shift
4599 host_cpu=$1
4600 host_vendor=$2
4601 shift; shift
4602 # Remember, the first character of IFS is used to create $*,
4603 # except with old shells:
4604 host_os=$*
4605 IFS=$ac_save_IFS
4606 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4607
4608
4609 canonical=$host
4610 configuration=${host_alias-${build_alias-$host}}
4611
4612
4613
4614 ### If you add support for a new configuration, add code to this
4615 ### switch statement to recognize your configuration name and select
4616 ### the appropriate operating system file.
4617
4618 ### You would hope that you could choose an s/*.h
4619 ### file based on the operating system portion. However, it turns out
4620 ### that each s/*.h file is pretty manufacturer-specific.
4621 ### So we basically have to have a special case for each
4622 ### configuration name.
4623 ###
4624 ### As far as handling version numbers on operating systems is
4625 ### concerned, make sure things will fail in a fixable way. If
4626 ### /etc/MACHINES doesn't say anything about version numbers, be
4627 ### prepared to handle anything reasonably. If version numbers
4628 ### matter, be sure /etc/MACHINES says something about it.
4629
4630 opsys='' unported=no
4631 case "${canonical}" in
4632
4633 ## GNU/Linux and similar ports
4634 *-*-linux* )
4635 opsys=gnu-linux
4636 ;;
4637
4638 ## FreeBSD ports
4639 *-*-freebsd* )
4640 opsys=freebsd
4641 ;;
4642
4643 ## FreeBSD kernel + glibc based userland
4644 *-*-kfreebsd*gnu* )
4645 opsys=gnu-kfreebsd
4646 ;;
4647
4648 ## NetBSD ports
4649 *-*-netbsd* )
4650 opsys=netbsd
4651 ;;
4652
4653 ## OpenBSD ports
4654 *-*-openbsd* )
4655 opsys=openbsd
4656 ;;
4657
4658 ## Apple Darwin / Mac OS X
4659 *-apple-darwin* )
4660 case "${canonical}" in
4661 i[3456]86-* ) ;;
4662 powerpc-* ) ;;
4663 x86_64-* ) ;;
4664 * ) unported=yes ;;
4665 esac
4666 opsys=darwin
4667 ## Use fink packages if available.
4668 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4669 ## if test -d /sw/include && test -d /sw/lib; then
4670 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4671 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4672 ## fi
4673 ;;
4674
4675 ## HP 9000 series 700 and 800, running HP/UX
4676 hppa*-hp-hpux10.2* )
4677 opsys=hpux10-20
4678 ;;
4679 hppa*-hp-hpux1[1-9]* )
4680 opsys=hpux11
4681 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4682 ;;
4683
4684 ## IBM machines
4685 rs6000-ibm-aix4.[23]* )
4686 opsys=aix4-2
4687 ;;
4688 powerpc-ibm-aix4.[23]* )
4689 opsys=aix4-2
4690 ;;
4691 rs6000-ibm-aix[56]* )
4692 opsys=aix4-2
4693 ;;
4694 powerpc-ibm-aix[56]* )
4695 opsys=aix4-2
4696 ;;
4697
4698 ## Silicon Graphics machines
4699 ## Iris 4D
4700 mips-sgi-irix6.5 )
4701 opsys=irix6-5
4702 # Without defining _LANGUAGE_C, things get masked out in the headers
4703 # so that, for instance, grepping for `free' in stdlib.h fails and
4704 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4705 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4706 ;;
4707
4708 ## Suns
4709 *-sun-solaris* \
4710 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4711 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4712 case "${canonical}" in
4713 i[3456]86-*-* ) ;;
4714 amd64-*-*|x86_64-*-*) ;;
4715 sparc* ) ;;
4716 * ) unported=yes ;;
4717 esac
4718 case "${canonical}" in
4719 *-sunos5.6* | *-solaris2.6* )
4720 opsys=sol2-6
4721 RANLIB="ar -ts"
4722 ;;
4723 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4724 opsys=sol2-6
4725 emacs_check_sunpro_c=yes
4726 ;;
4727 *-sunos5* | *-solaris* )
4728 opsys=sol2-10
4729 emacs_check_sunpro_c=yes
4730 ;;
4731 esac
4732 ## Watch out for a compiler that we know will not work.
4733 case "${canonical}" in
4734 *-solaris* | *-sunos5* )
4735 if [ "x$CC" = x/usr/ucb/cc ]; then
4736 ## /usr/ucb/cc doesn't work;
4737 ## we should find some other compiler that does work.
4738 unset CC
4739 fi
4740 ;;
4741 *) ;;
4742 esac
4743 ;;
4744
4745 ## Intel 386 machines where we don't care about the manufacturer.
4746 i[3456]86-*-* )
4747 case "${canonical}" in
4748 *-cygwin ) opsys=cygwin ;;
4749 *-darwin* ) opsys=darwin ;;
4750 *-sysv4.2uw* ) opsys=unixware ;;
4751 *-sysv5uw* ) opsys=unixware ;;
4752 *-sysv5OpenUNIX* ) opsys=unixware ;;
4753 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4754 esac
4755 ;;
4756
4757 * )
4758 unported=yes
4759 ;;
4760 esac
4761
4762 ### If the code above didn't choose an operating system, just choose
4763 ### an operating system based on the configuration name. You really
4764 ### only want to use this when you have no idea what the right
4765 ### operating system is; if you know what operating systems a machine
4766 ### runs, it's cleaner to make it explicit in the case statement
4767 ### above.
4768 if test x"${opsys}" = x; then
4769 case "${canonical}" in
4770 *-gnu* ) opsys=gnu ;;
4771 * )
4772 unported=yes
4773 ;;
4774 esac
4775 fi
4776
4777
4778
4779 if test $unported = yes; then
4780 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4781 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4782 fi
4783
4784
4785 #### Choose a compiler.
4786
4787 ac_ext=c
4788 ac_cpp='$CPP $CPPFLAGS'
4789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4792 if test -n "$ac_tool_prefix"; then
4793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if test "${ac_cv_prog_CC+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$CC"; then
4801 ac_cv_prog_CC="$CC" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 break 2
4813 fi
4814 done
4815 done
4816 IFS=$as_save_IFS
4817
4818 fi
4819 fi
4820 CC=$ac_cv_prog_CC
4821 if test -n "$CC"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4823 $as_echo "$CC" >&6; }
4824 else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4827 fi
4828
4829
4830 fi
4831 if test -z "$ac_cv_prog_CC"; then
4832 ac_ct_CC=$CC
4833 # Extract the first word of "gcc", so it can be a program name with args.
4834 set dummy gcc; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if test -n "$ac_ct_CC"; then
4841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 ac_cv_prog_ac_ct_CC="gcc"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4853 fi
4854 done
4855 done
4856 IFS=$as_save_IFS
4857
4858 fi
4859 fi
4860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4861 if test -n "$ac_ct_CC"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4863 $as_echo "$ac_ct_CC" >&6; }
4864 else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4867 fi
4868
4869 if test "x$ac_ct_CC" = x; then
4870 CC=""
4871 else
4872 case $cross_compiling:$ac_tool_warned in
4873 yes:)
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4876 ac_tool_warned=yes ;;
4877 esac
4878 CC=$ac_ct_CC
4879 fi
4880 else
4881 CC="$ac_cv_prog_CC"
4882 fi
4883
4884 if test -z "$CC"; then
4885 if test -n "$ac_tool_prefix"; then
4886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4887 set dummy ${ac_tool_prefix}cc; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if test "${ac_cv_prog_CC+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 if test -n "$CC"; then
4894 ac_cv_prog_CC="$CC" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_prog_CC="${ac_tool_prefix}cc"
4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4906 fi
4907 done
4908 done
4909 IFS=$as_save_IFS
4910
4911 fi
4912 fi
4913 CC=$ac_cv_prog_CC
4914 if test -n "$CC"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4916 $as_echo "$CC" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921
4922
4923 fi
4924 fi
4925 if test -z "$CC"; then
4926 # Extract the first word of "cc", so it can be a program name with args.
4927 set dummy cc; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if test "${ac_cv_prog_CC+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$CC"; then
4934 ac_cv_prog_CC="$CC" # Let the user override the test.
4935 else
4936 ac_prog_rejected=no
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4945 ac_prog_rejected=yes
4946 continue
4947 fi
4948 ac_cv_prog_CC="cc"
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 break 2
4951 fi
4952 done
4953 done
4954 IFS=$as_save_IFS
4955
4956 if test $ac_prog_rejected = yes; then
4957 # We found a bogon in the path, so make sure we never use it.
4958 set dummy $ac_cv_prog_CC
4959 shift
4960 if test $# != 0; then
4961 # We chose a different compiler from the bogus one.
4962 # However, it has the same basename, so the bogon will be chosen
4963 # first if we set CC to just the basename; use the full file name.
4964 shift
4965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4966 fi
4967 fi
4968 fi
4969 fi
4970 CC=$ac_cv_prog_CC
4971 if test -n "$CC"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4973 $as_echo "$CC" >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4977 fi
4978
4979
4980 fi
4981 if test -z "$CC"; then
4982 if test -n "$ac_tool_prefix"; then
4983 for ac_prog in cl.exe
4984 do
4985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_prog_CC+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -n "$CC"; then
4993 ac_cv_prog_CC="$CC" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006 done
5007 done
5008 IFS=$as_save_IFS
5009
5010 fi
5011 fi
5012 CC=$ac_cv_prog_CC
5013 if test -n "$CC"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5015 $as_echo "$CC" >&6; }
5016 else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5019 fi
5020
5021
5022 test -n "$CC" && break
5023 done
5024 fi
5025 if test -z "$CC"; then
5026 ac_ct_CC=$CC
5027 for ac_prog in cl.exe
5028 do
5029 # Extract the first word of "$ac_prog", so it can be a program name with args.
5030 set dummy $ac_prog; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 if test -n "$ac_ct_CC"; then
5037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_ac_ct_CC="$ac_prog"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5057 if test -n "$ac_ct_CC"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5059 $as_echo "$ac_ct_CC" >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065
5066 test -n "$ac_ct_CC" && break
5067 done
5068
5069 if test "x$ac_ct_CC" = x; then
5070 CC=""
5071 else
5072 case $cross_compiling:$ac_tool_warned in
5073 yes:)
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076 ac_tool_warned=yes ;;
5077 esac
5078 CC=$ac_ct_CC
5079 fi
5080 fi
5081
5082 fi
5083
5084
5085 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5087 as_fn_error "no acceptable C compiler found in \$PATH
5088 See \`config.log' for more details." "$LINENO" 5; }
5089
5090 # Provide some information about the compiler.
5091 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5092 set X $ac_compile
5093 ac_compiler=$2
5094 for ac_option in --version -v -V -qversion; do
5095 { { ac_try="$ac_compiler $ac_option >&5"
5096 case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099 esac
5100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5101 $as_echo "$ac_try_echo"; } >&5
5102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5103 ac_status=$?
5104 if test -s conftest.err; then
5105 sed '10a\
5106 ... rest of stderr output deleted ...
5107 10q' conftest.err >conftest.er1
5108 cat conftest.er1 >&5
5109 fi
5110 rm -f conftest.er1 conftest.err
5111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5112 test $ac_status = 0; }
5113 done
5114
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117
5118 int
5119 main ()
5120 {
5121
5122 ;
5123 return 0;
5124 }
5125 _ACEOF
5126 ac_clean_files_save=$ac_clean_files
5127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5128 # Try to create an executable without -o first, disregard a.out.
5129 # It will help us diagnose broken compilers, and finding out an intuition
5130 # of exeext.
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5132 $as_echo_n "checking whether the C compiler works... " >&6; }
5133 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5134
5135 # The possible output files:
5136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5137
5138 ac_rmfiles=
5139 for ac_file in $ac_files
5140 do
5141 case $ac_file in
5142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5143 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5144 esac
5145 done
5146 rm -f $ac_rmfiles
5147
5148 if { { ac_try="$ac_link_default"
5149 case "(($ac_try" in
5150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151 *) ac_try_echo=$ac_try;;
5152 esac
5153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5154 $as_echo "$ac_try_echo"; } >&5
5155 (eval "$ac_link_default") 2>&5
5156 ac_status=$?
5157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5158 test $ac_status = 0; }; then :
5159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5162 # so that the user can short-circuit this test for compilers unknown to
5163 # Autoconf.
5164 for ac_file in $ac_files ''
5165 do
5166 test -f "$ac_file" || continue
5167 case $ac_file in
5168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5169 ;;
5170 [ab].out )
5171 # We found the default executable, but exeext='' is most
5172 # certainly right.
5173 break;;
5174 *.* )
5175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5176 then :; else
5177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5178 fi
5179 # We set ac_cv_exeext here because the later test for it is not
5180 # safe: cross compilers may not add the suffix if given an `-o'
5181 # argument, so we may need to know it at that point already.
5182 # Even if this section looks crufty: it has the advantage of
5183 # actually working.
5184 break;;
5185 * )
5186 break;;
5187 esac
5188 done
5189 test "$ac_cv_exeext" = no && ac_cv_exeext=
5190
5191 else
5192 ac_file=''
5193 fi
5194 if test -z "$ac_file"; then :
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 $as_echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5202 { as_fn_set_status 77
5203 as_fn_error "C compiler cannot create executables
5204 See \`config.log' for more details." "$LINENO" 5; }; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207 $as_echo "yes" >&6; }
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5210 $as_echo_n "checking for C compiler default output file name... " >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5212 $as_echo "$ac_file" >&6; }
5213 ac_exeext=$ac_cv_exeext
5214
5215 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5216 ac_clean_files=$ac_clean_files_save
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5218 $as_echo_n "checking for suffix of executables... " >&6; }
5219 if { { ac_try="$ac_link"
5220 case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223 esac
5224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5225 $as_echo "$ac_try_echo"; } >&5
5226 (eval "$ac_link") 2>&5
5227 ac_status=$?
5228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5229 test $ac_status = 0; }; then :
5230 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5231 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5232 # work properly (i.e., refer to `conftest.exe'), while it won't with
5233 # `rm'.
5234 for ac_file in conftest.exe conftest conftest.*; do
5235 test -f "$ac_file" || continue
5236 case $ac_file in
5237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5239 break;;
5240 * ) break;;
5241 esac
5242 done
5243 else
5244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5246 as_fn_error "cannot compute suffix of executables: cannot compile and link
5247 See \`config.log' for more details." "$LINENO" 5; }
5248 fi
5249 rm -f conftest conftest$ac_cv_exeext
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5251 $as_echo "$ac_cv_exeext" >&6; }
5252
5253 rm -f conftest.$ac_ext
5254 EXEEXT=$ac_cv_exeext
5255 ac_exeext=$EXEEXT
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5258 #include <stdio.h>
5259 int
5260 main ()
5261 {
5262 FILE *f = fopen ("conftest.out", "w");
5263 return ferror (f) || fclose (f) != 0;
5264
5265 ;
5266 return 0;
5267 }
5268 _ACEOF
5269 ac_clean_files="$ac_clean_files conftest.out"
5270 # Check that the compiler produces executables we can run. If not, either
5271 # the compiler is broken, or we cross compile.
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5273 $as_echo_n "checking whether we are cross compiling... " >&6; }
5274 if test "$cross_compiling" != yes; then
5275 { { ac_try="$ac_link"
5276 case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5281 $as_echo "$ac_try_echo"; } >&5
5282 (eval "$ac_link") 2>&5
5283 ac_status=$?
5284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5285 test $ac_status = 0; }
5286 if { ac_try='./conftest$ac_cv_exeext'
5287 { { case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290 esac
5291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5292 $as_echo "$ac_try_echo"; } >&5
5293 (eval "$ac_try") 2>&5
5294 ac_status=$?
5295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5296 test $ac_status = 0; }; }; then
5297 cross_compiling=no
5298 else
5299 if test "$cross_compiling" = maybe; then
5300 cross_compiling=yes
5301 else
5302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5304 as_fn_error "cannot run C compiled programs.
5305 If you meant to cross compile, use \`--host'.
5306 See \`config.log' for more details." "$LINENO" 5; }
5307 fi
5308 fi
5309 fi
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5311 $as_echo "$cross_compiling" >&6; }
5312
5313 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5314 ac_clean_files=$ac_clean_files_save
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5316 $as_echo_n "checking for suffix of object files... " >&6; }
5317 if test "${ac_cv_objext+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322
5323 int
5324 main ()
5325 {
5326
5327 ;
5328 return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.o conftest.obj
5332 if { { ac_try="$ac_compile"
5333 case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336 esac
5337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5338 $as_echo "$ac_try_echo"; } >&5
5339 (eval "$ac_compile") 2>&5
5340 ac_status=$?
5341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5342 test $ac_status = 0; }; then :
5343 for ac_file in conftest.o conftest.obj conftest.*; do
5344 test -f "$ac_file" || continue;
5345 case $ac_file in
5346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5348 break;;
5349 esac
5350 done
5351 else
5352 $as_echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5357 as_fn_error "cannot compute suffix of object files: cannot compile
5358 See \`config.log' for more details." "$LINENO" 5; }
5359 fi
5360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5361 fi
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5363 $as_echo "$ac_cv_objext" >&6; }
5364 OBJEXT=$ac_cv_objext
5365 ac_objext=$OBJEXT
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5367 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5368 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373
5374 int
5375 main ()
5376 {
5377 #ifndef __GNUC__
5378 choke me
5379 #endif
5380
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"; then :
5386 ac_compiler_gnu=yes
5387 else
5388 ac_compiler_gnu=no
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5392
5393 fi
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5395 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5396 if test $ac_compiler_gnu = yes; then
5397 GCC=yes
5398 else
5399 GCC=
5400 fi
5401 ac_test_CFLAGS=${CFLAGS+set}
5402 ac_save_CFLAGS=$CFLAGS
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5404 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5405 if test "${ac_cv_prog_cc_g+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 ac_save_c_werror_flag=$ac_c_werror_flag
5409 ac_c_werror_flag=yes
5410 ac_cv_prog_cc_g=no
5411 CFLAGS="-g"
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414
5415 int
5416 main ()
5417 {
5418
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 if ac_fn_c_try_compile "$LINENO"; then :
5424 ac_cv_prog_cc_g=yes
5425 else
5426 CFLAGS=""
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429
5430 int
5431 main ()
5432 {
5433
5434 ;
5435 return 0;
5436 }
5437 _ACEOF
5438 if ac_fn_c_try_compile "$LINENO"; then :
5439
5440 else
5441 ac_c_werror_flag=$ac_save_c_werror_flag
5442 CFLAGS="-g"
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445
5446 int
5447 main ()
5448 {
5449
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455 ac_cv_prog_cc_g=yes
5456 fi
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 fi
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 ac_c_werror_flag=$ac_save_c_werror_flag
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5465 $as_echo "$ac_cv_prog_cc_g" >&6; }
5466 if test "$ac_test_CFLAGS" = set; then
5467 CFLAGS=$ac_save_CFLAGS
5468 elif test $ac_cv_prog_cc_g = yes; then
5469 if test "$GCC" = yes; then
5470 CFLAGS="-g -O2"
5471 else
5472 CFLAGS="-g"
5473 fi
5474 else
5475 if test "$GCC" = yes; then
5476 CFLAGS="-O2"
5477 else
5478 CFLAGS=
5479 fi
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5482 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5483 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 ac_cv_prog_cc_c89=no
5487 ac_save_CC=$CC
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 #include <stdarg.h>
5491 #include <stdio.h>
5492 #include <sys/types.h>
5493 #include <sys/stat.h>
5494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5495 struct buf { int x; };
5496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5497 static char *e (p, i)
5498 char **p;
5499 int i;
5500 {
5501 return p[i];
5502 }
5503 static char *f (char * (*g) (char **, int), char **p, ...)
5504 {
5505 char *s;
5506 va_list v;
5507 va_start (v,p);
5508 s = g (p, va_arg (v,int));
5509 va_end (v);
5510 return s;
5511 }
5512
5513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5514 function prototypes and stuff, but not '\xHH' hex character constants.
5515 These don't provoke an error unfortunately, instead are silently treated
5516 as 'x'. The following induces an error, until -std is added to get
5517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5518 array size at least. It's necessary to write '\x00'==0 to get something
5519 that's true only with -std. */
5520 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5521
5522 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5523 inside strings and character constants. */
5524 #define FOO(x) 'x'
5525 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5526
5527 int test (int i, double x);
5528 struct s1 {int (*f) (int a);};
5529 struct s2 {int (*f) (double a);};
5530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5531 int argc;
5532 char **argv;
5533 int
5534 main ()
5535 {
5536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5537 ;
5538 return 0;
5539 }
5540 _ACEOF
5541 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5542 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5543 do
5544 CC="$ac_save_CC $ac_arg"
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 ac_cv_prog_cc_c89=$ac_arg
5547 fi
5548 rm -f core conftest.err conftest.$ac_objext
5549 test "x$ac_cv_prog_cc_c89" != "xno" && break
5550 done
5551 rm -f conftest.$ac_ext
5552 CC=$ac_save_CC
5553
5554 fi
5555 # AC_CACHE_VAL
5556 case "x$ac_cv_prog_cc_c89" in
5557 x)
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5559 $as_echo "none needed" >&6; } ;;
5560 xno)
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5562 $as_echo "unsupported" >&6; } ;;
5563 *)
5564 CC="$CC $ac_cv_prog_cc_c89"
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5566 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5567 esac
5568 if test "x$ac_cv_prog_cc_c89" != xno; then :
5569
5570 fi
5571
5572 ac_ext=c
5573 ac_cpp='$CPP $CPPFLAGS'
5574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5577 DEPDIR="${am__leading_dot}deps"
5578
5579 ac_config_commands="$ac_config_commands depfiles"
5580
5581
5582 am_make=${MAKE-make}
5583 cat > confinc << 'END'
5584 am__doit:
5585 @echo this is the am__doit target
5586 .PHONY: am__doit
5587 END
5588 # If we don't find an include directive, just comment out the code.
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5590 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5591 am__include="#"
5592 am__quote=
5593 _am_result=none
5594 # First try GNU make style include.
5595 echo "include confinc" > confmf
5596 # Ignore all kinds of additional output from `make'.
5597 case `$am_make -s -f confmf 2> /dev/null` in #(
5598 *the\ am__doit\ target*)
5599 am__include=include
5600 am__quote=
5601 _am_result=GNU
5602 ;;
5603 esac
5604 # Now try BSD make style include.
5605 if test "$am__include" = "#"; then
5606 echo '.include "confinc"' > confmf
5607 case `$am_make -s -f confmf 2> /dev/null` in #(
5608 *the\ am__doit\ target*)
5609 am__include=.include
5610 am__quote="\""
5611 _am_result=BSD
5612 ;;
5613 esac
5614 fi
5615
5616
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5618 $as_echo "$_am_result" >&6; }
5619 rm -f confinc confmf
5620
5621 # Check whether --enable-dependency-tracking was given.
5622 if test "${enable_dependency_tracking+set}" = set; then :
5623 enableval=$enable_dependency_tracking;
5624 fi
5625
5626 if test "x$enable_dependency_tracking" != xno; then
5627 am_depcomp="$ac_aux_dir/depcomp"
5628 AMDEPBACKSLASH='\'
5629 fi
5630 if test "x$enable_dependency_tracking" != xno; then
5631 AMDEP_TRUE=
5632 AMDEP_FALSE='#'
5633 else
5634 AMDEP_TRUE='#'
5635 AMDEP_FALSE=
5636 fi
5637
5638
5639
5640 depcc="$CC" am_compiler_list=
5641
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5643 $as_echo_n "checking dependency style of $depcc... " >&6; }
5644 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5648 # We make a subdir and do the tests there. Otherwise we can end up
5649 # making bogus files that we don't know about and never remove. For
5650 # instance it was reported that on HP-UX the gcc test will end up
5651 # making a dummy file named `D' -- because `-MD' means `put the output
5652 # in D'.
5653 mkdir conftest.dir
5654 # Copy depcomp to subdir because otherwise we won't find it if we're
5655 # using a relative directory.
5656 cp "$am_depcomp" conftest.dir
5657 cd conftest.dir
5658 # We will build objects and dependencies in a subdirectory because
5659 # it helps to detect inapplicable dependency modes. For instance
5660 # both Tru64's cc and ICC support -MD to output dependencies as a
5661 # side effect of compilation, but ICC will put the dependencies in
5662 # the current directory while Tru64 will put them in the object
5663 # directory.
5664 mkdir sub
5665
5666 am_cv_CC_dependencies_compiler_type=none
5667 if test "$am_compiler_list" = ""; then
5668 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5669 fi
5670 am__universal=false
5671 case " $depcc " in #(
5672 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5673 esac
5674
5675 for depmode in $am_compiler_list; do
5676 # Setup a source with many dependencies, because some compilers
5677 # like to wrap large dependency lists on column 80 (with \), and
5678 # we should not choose a depcomp mode which is confused by this.
5679 #
5680 # We need to recreate these files for each test, as the compiler may
5681 # overwrite some of them when testing with obscure command lines.
5682 # This happens at least with the AIX C compiler.
5683 : > sub/conftest.c
5684 for i in 1 2 3 4 5 6; do
5685 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5686 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5687 # Solaris 8's {/usr,}/bin/sh.
5688 touch sub/conftst$i.h
5689 done
5690 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5691
5692 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5693 # mode. It turns out that the SunPro C++ compiler does not properly
5694 # handle `-M -o', and we need to detect this. Also, some Intel
5695 # versions had trouble with output in subdirs
5696 am__obj=sub/conftest.${OBJEXT-o}
5697 am__minus_obj="-o $am__obj"
5698 case $depmode in
5699 gcc)
5700 # This depmode causes a compiler race in universal mode.
5701 test "$am__universal" = false || continue
5702 ;;
5703 nosideeffect)
5704 # after this tag, mechanisms are not by side-effect, so they'll
5705 # only be used when explicitly requested
5706 if test "x$enable_dependency_tracking" = xyes; then
5707 continue
5708 else
5709 break
5710 fi
5711 ;;
5712 msvisualcpp | msvcmsys)
5713 # This compiler won't grok `-c -o', but also, the minuso test has
5714 # not run yet. These depmodes are late enough in the game, and
5715 # so weak that their functioning should not be impacted.
5716 am__obj=conftest.${OBJEXT-o}
5717 am__minus_obj=
5718 ;;
5719 none) break ;;
5720 esac
5721 if depmode=$depmode \
5722 source=sub/conftest.c object=$am__obj \
5723 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5724 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5725 >/dev/null 2>conftest.err &&
5726 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5727 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5728 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5729 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5730 # icc doesn't choke on unknown options, it will just issue warnings
5731 # or remarks (even with -Werror). So we grep stderr for any message
5732 # that says an option was ignored or not supported.
5733 # When given -MP, icc 7.0 and 7.1 complain thusly:
5734 # icc: Command line warning: ignoring option '-M'; no argument required
5735 # The diagnosis changed in icc 8.0:
5736 # icc: Command line remark: option '-MP' not supported
5737 if (grep 'ignoring option' conftest.err ||
5738 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5739 am_cv_CC_dependencies_compiler_type=$depmode
5740 break
5741 fi
5742 fi
5743 done
5744
5745 cd ..
5746 rm -rf conftest.dir
5747 else
5748 am_cv_CC_dependencies_compiler_type=none
5749 fi
5750
5751 fi
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5753 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5754 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5755
5756 if
5757 test "x$enable_dependency_tracking" != xno \
5758 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5759 am__fastdepCC_TRUE=
5760 am__fastdepCC_FALSE='#'
5761 else
5762 am__fastdepCC_TRUE='#'
5763 am__fastdepCC_FALSE=
5764 fi
5765
5766
5767 if test "x$CC" != xcc; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5769 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5770 else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5772 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5773 fi
5774 set dummy $CC; ac_cc=`$as_echo "$2" |
5775 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5776 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781
5782 int
5783 main ()
5784 {
5785
5786 ;
5787 return 0;
5788 }
5789 _ACEOF
5790 # Make sure it works both with $CC and with simple cc.
5791 # We do the test twice because some compilers refuse to overwrite an
5792 # existing .o file with -o, though they will create one.
5793 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5794 rm -f conftest2.*
5795 if { { case "(($ac_try" in
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5798 esac
5799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5800 $as_echo "$ac_try_echo"; } >&5
5801 (eval "$ac_try") 2>&5
5802 ac_status=$?
5803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5804 test $ac_status = 0; } &&
5805 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808 esac
5809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5810 $as_echo "$ac_try_echo"; } >&5
5811 (eval "$ac_try") 2>&5
5812 ac_status=$?
5813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5814 test $ac_status = 0; };
5815 then
5816 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5817 if test "x$CC" != xcc; then
5818 # Test first that cc exists at all.
5819 if { ac_try='cc -c conftest.$ac_ext >&5'
5820 { { case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5825 $as_echo "$ac_try_echo"; } >&5
5826 (eval "$ac_try") 2>&5
5827 ac_status=$?
5828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829 test $ac_status = 0; }; }; then
5830 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5831 rm -f conftest2.*
5832 if { { case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835 esac
5836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5837 $as_echo "$ac_try_echo"; } >&5
5838 (eval "$ac_try") 2>&5
5839 ac_status=$?
5840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5841 test $ac_status = 0; } &&
5842 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5847 $as_echo "$ac_try_echo"; } >&5
5848 (eval "$ac_try") 2>&5
5849 ac_status=$?
5850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5851 test $ac_status = 0; };
5852 then
5853 # cc works too.
5854 :
5855 else
5856 # cc exists but doesn't like -o.
5857 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5858 fi
5859 fi
5860 fi
5861 else
5862 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5863 fi
5864 rm -f core conftest*
5865
5866 fi
5867 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5869 $as_echo "yes" >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5873
5874 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5875
5876 fi
5877
5878 # FIXME: we rely on the cache variable name because
5879 # there is no other way.
5880 set dummy $CC
5881 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5882 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5883 if test "$am_t" != yes; then
5884 # Losing compiler, so override with the script.
5885 # FIXME: It is wrong to rewrite CC.
5886 # But if we don't then we get into trouble of one sort or another.
5887 # A longer-term fix would be to have automake use am__CC in this case,
5888 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5889 CC="$am_aux_dir/compile $CC"
5890 fi
5891
5892
5893
5894 if test x$GCC = xyes; then
5895 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5896 else
5897 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5898 fi
5899
5900 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5901 # as we don't use them.
5902
5903 # Avoid gnulib's threadlib module, as we do threads our own way.
5904
5905
5906 # Initialize gnulib right after choosing the compiler.
5907
5908 ac_ext=c
5909 ac_cpp='$CPP $CPPFLAGS'
5910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5914 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5915 # On Suns, sometimes $CPP names a directory.
5916 if test -n "$CPP" && test -d "$CPP"; then
5917 CPP=
5918 fi
5919 if test -z "$CPP"; then
5920 if test "${ac_cv_prog_CPP+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 # Double quotes because CPP needs to be expanded
5924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5925 do
5926 ac_preproc_ok=false
5927 for ac_c_preproc_warn_flag in '' yes
5928 do
5929 # Use a header file that comes with gcc, so configuring glibc
5930 # with a fresh cross-compiler works.
5931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932 # <limits.h> exists even on freestanding compilers.
5933 # On the NeXT, cc -E runs the code through the compiler's parser,
5934 # not just through cpp. "Syntax error" is here to catch this case.
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 #ifdef __STDC__
5938 # include <limits.h>
5939 #else
5940 # include <assert.h>
5941 #endif
5942 Syntax error
5943 _ACEOF
5944 if ac_fn_c_try_cpp "$LINENO"; then :
5945
5946 else
5947 # Broken: fails on valid input.
5948 continue
5949 fi
5950 rm -f conftest.err conftest.$ac_ext
5951
5952 # OK, works on sane cases. Now check whether nonexistent headers
5953 # can be detected and how.
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 #include <ac_nonexistent.h>
5957 _ACEOF
5958 if ac_fn_c_try_cpp "$LINENO"; then :
5959 # Broken: success on invalid input.
5960 continue
5961 else
5962 # Passes both tests.
5963 ac_preproc_ok=:
5964 break
5965 fi
5966 rm -f conftest.err conftest.$ac_ext
5967
5968 done
5969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5970 rm -f conftest.err conftest.$ac_ext
5971 if $ac_preproc_ok; then :
5972 break
5973 fi
5974
5975 done
5976 ac_cv_prog_CPP=$CPP
5977
5978 fi
5979 CPP=$ac_cv_prog_CPP
5980 else
5981 ac_cv_prog_CPP=$CPP
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5984 $as_echo "$CPP" >&6; }
5985 ac_preproc_ok=false
5986 for ac_c_preproc_warn_flag in '' yes
5987 do
5988 # Use a header file that comes with gcc, so configuring glibc
5989 # with a fresh cross-compiler works.
5990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5991 # <limits.h> exists even on freestanding compilers.
5992 # On the NeXT, cc -E runs the code through the compiler's parser,
5993 # not just through cpp. "Syntax error" is here to catch this case.
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 #ifdef __STDC__
5997 # include <limits.h>
5998 #else
5999 # include <assert.h>
6000 #endif
6001 Syntax error
6002 _ACEOF
6003 if ac_fn_c_try_cpp "$LINENO"; then :
6004
6005 else
6006 # Broken: fails on valid input.
6007 continue
6008 fi
6009 rm -f conftest.err conftest.$ac_ext
6010
6011 # OK, works on sane cases. Now check whether nonexistent headers
6012 # can be detected and how.
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 #include <ac_nonexistent.h>
6016 _ACEOF
6017 if ac_fn_c_try_cpp "$LINENO"; then :
6018 # Broken: success on invalid input.
6019 continue
6020 else
6021 # Passes both tests.
6022 ac_preproc_ok=:
6023 break
6024 fi
6025 rm -f conftest.err conftest.$ac_ext
6026
6027 done
6028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6029 rm -f conftest.err conftest.$ac_ext
6030 if $ac_preproc_ok; then :
6031
6032 else
6033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6035 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6036 See \`config.log' for more details." "$LINENO" 5; }
6037 fi
6038
6039 ac_ext=c
6040 ac_cpp='$CPP $CPPFLAGS'
6041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044
6045
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6047 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6048 if test "${ac_cv_path_GREP+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 if test -z "$GREP"; then
6052 ac_path_GREP_found=false
6053 # Loop through the user's path and test for each of PROGNAME-LIST
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6056 do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_prog in grep ggrep; do
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6062 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6063 # Check for GNU ac_path_GREP and select it if it is found.
6064 # Check for GNU $ac_path_GREP
6065 case `"$ac_path_GREP" --version 2>&1` in
6066 *GNU*)
6067 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6068 *)
6069 ac_count=0
6070 $as_echo_n 0123456789 >"conftest.in"
6071 while :
6072 do
6073 cat "conftest.in" "conftest.in" >"conftest.tmp"
6074 mv "conftest.tmp" "conftest.in"
6075 cp "conftest.in" "conftest.nl"
6076 $as_echo 'GREP' >> "conftest.nl"
6077 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6079 as_fn_arith $ac_count + 1 && ac_count=$as_val
6080 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6081 # Best one so far, save it but keep looking for a better one
6082 ac_cv_path_GREP="$ac_path_GREP"
6083 ac_path_GREP_max=$ac_count
6084 fi
6085 # 10*(2^10) chars as input seems more than enough
6086 test $ac_count -gt 10 && break
6087 done
6088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6089 esac
6090
6091 $ac_path_GREP_found && break 3
6092 done
6093 done
6094 done
6095 IFS=$as_save_IFS
6096 if test -z "$ac_cv_path_GREP"; then
6097 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6098 fi
6099 else
6100 ac_cv_path_GREP=$GREP
6101 fi
6102
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6105 $as_echo "$ac_cv_path_GREP" >&6; }
6106 GREP="$ac_cv_path_GREP"
6107
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6110 $as_echo_n "checking for egrep... " >&6; }
6111 if test "${ac_cv_path_EGREP+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6115 then ac_cv_path_EGREP="$GREP -E"
6116 else
6117 if test -z "$EGREP"; then
6118 ac_path_EGREP_found=false
6119 # Loop through the user's path and test for each of PROGNAME-LIST
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6122 do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_prog in egrep; do
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6128 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6129 # Check for GNU ac_path_EGREP and select it if it is found.
6130 # Check for GNU $ac_path_EGREP
6131 case `"$ac_path_EGREP" --version 2>&1` in
6132 *GNU*)
6133 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6134 *)
6135 ac_count=0
6136 $as_echo_n 0123456789 >"conftest.in"
6137 while :
6138 do
6139 cat "conftest.in" "conftest.in" >"conftest.tmp"
6140 mv "conftest.tmp" "conftest.in"
6141 cp "conftest.in" "conftest.nl"
6142 $as_echo 'EGREP' >> "conftest.nl"
6143 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6145 as_fn_arith $ac_count + 1 && ac_count=$as_val
6146 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6147 # Best one so far, save it but keep looking for a better one
6148 ac_cv_path_EGREP="$ac_path_EGREP"
6149 ac_path_EGREP_max=$ac_count
6150 fi
6151 # 10*(2^10) chars as input seems more than enough
6152 test $ac_count -gt 10 && break
6153 done
6154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6155 esac
6156
6157 $ac_path_EGREP_found && break 3
6158 done
6159 done
6160 done
6161 IFS=$as_save_IFS
6162 if test -z "$ac_cv_path_EGREP"; then
6163 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6164 fi
6165 else
6166 ac_cv_path_EGREP=$EGREP
6167 fi
6168
6169 fi
6170 fi
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6172 $as_echo "$ac_cv_path_EGREP" >&6; }
6173 EGREP="$ac_cv_path_EGREP"
6174
6175
6176
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6179 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6180 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186
6187 #ifdef __ACK__
6188 Amsterdam
6189 #endif
6190
6191 _ACEOF
6192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6193 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6194 gl_cv_c_amsterdam_compiler=yes
6195 else
6196 gl_cv_c_amsterdam_compiler=no
6197 fi
6198 rm -f conftest*
6199
6200
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6203 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6204 if test -z "$AR"; then
6205 if test $gl_cv_c_amsterdam_compiler = yes; then
6206 AR='cc -c.a'
6207 if test -z "$ARFLAGS"; then
6208 ARFLAGS='-o'
6209 fi
6210 else
6211 if test -n "$ac_tool_prefix"; then
6212 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6213 set dummy ${ac_tool_prefix}ar; ac_word=$2
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if test "${ac_cv_prog_AR+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 if test -n "$AR"; then
6220 ac_cv_prog_AR="$AR" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6224 do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_prog_AR="${ac_tool_prefix}ar"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 break 2
6232 fi
6233 done
6234 done
6235 IFS=$as_save_IFS
6236
6237 fi
6238 fi
6239 AR=$ac_cv_prog_AR
6240 if test -n "$AR"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6242 $as_echo "$AR" >&6; }
6243 else
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6246 fi
6247
6248
6249 fi
6250 if test -z "$ac_cv_prog_AR"; then
6251 ac_ct_AR=$AR
6252 # Extract the first word of "ar", so it can be a program name with args.
6253 set dummy ar; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 if test -n "$ac_ct_AR"; then
6260 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_ac_ct_AR="ar"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6272 fi
6273 done
6274 done
6275 IFS=$as_save_IFS
6276
6277 fi
6278 fi
6279 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6280 if test -n "$ac_ct_AR"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6282 $as_echo "$ac_ct_AR" >&6; }
6283 else
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6286 fi
6287
6288 if test "x$ac_ct_AR" = x; then
6289 AR="ar"
6290 else
6291 case $cross_compiling:$ac_tool_warned in
6292 yes:)
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6295 ac_tool_warned=yes ;;
6296 esac
6297 AR=$ac_ct_AR
6298 fi
6299 else
6300 AR="$ac_cv_prog_AR"
6301 fi
6302
6303 if test -z "$ARFLAGS"; then
6304 ARFLAGS='cru'
6305 fi
6306 fi
6307 else
6308 if test -z "$ARFLAGS"; then
6309 ARFLAGS='cru'
6310 fi
6311 fi
6312
6313
6314 if test -z "$RANLIB"; then
6315 if test $gl_cv_c_amsterdam_compiler = yes; then
6316 RANLIB=':'
6317 else
6318 if test -n "$ac_tool_prefix"; then
6319 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6320 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test -n "$RANLIB"; then
6327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
6346 RANLIB=$ac_cv_prog_RANLIB
6347 if test -n "$RANLIB"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6349 $as_echo "$RANLIB" >&6; }
6350 else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6353 fi
6354
6355
6356 fi
6357 if test -z "$ac_cv_prog_RANLIB"; then
6358 ac_ct_RANLIB=$RANLIB
6359 # Extract the first word of "ranlib", so it can be a program name with args.
6360 set dummy ranlib; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 if test -n "$ac_ct_RANLIB"; then
6367 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_prog_ac_ct_RANLIB="ranlib"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380 done
6381 done
6382 IFS=$as_save_IFS
6383
6384 fi
6385 fi
6386 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6387 if test -n "$ac_ct_RANLIB"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6389 $as_echo "$ac_ct_RANLIB" >&6; }
6390 else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6393 fi
6394
6395 if test "x$ac_ct_RANLIB" = x; then
6396 RANLIB=":"
6397 else
6398 case $cross_compiling:$ac_tool_warned in
6399 yes:)
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402 ac_tool_warned=yes ;;
6403 esac
6404 RANLIB=$ac_ct_RANLIB
6405 fi
6406 else
6407 RANLIB="$ac_cv_prog_RANLIB"
6408 fi
6409
6410 fi
6411 fi
6412
6413
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6415 $as_echo_n "checking for ANSI C header files... " >&6; }
6416 if test "${ac_cv_header_stdc+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 #include <stdlib.h>
6422 #include <stdarg.h>
6423 #include <string.h>
6424 #include <float.h>
6425
6426 int
6427 main ()
6428 {
6429
6430 ;
6431 return 0;
6432 }
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 ac_cv_header_stdc=yes
6436 else
6437 ac_cv_header_stdc=no
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440
6441 if test $ac_cv_header_stdc = yes; then
6442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6445 #include <string.h>
6446
6447 _ACEOF
6448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6449 $EGREP "memchr" >/dev/null 2>&1; then :
6450
6451 else
6452 ac_cv_header_stdc=no
6453 fi
6454 rm -f conftest*
6455
6456 fi
6457
6458 if test $ac_cv_header_stdc = yes; then
6459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #include <stdlib.h>
6463
6464 _ACEOF
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 $EGREP "free" >/dev/null 2>&1; then :
6467
6468 else
6469 ac_cv_header_stdc=no
6470 fi
6471 rm -f conftest*
6472
6473 fi
6474
6475 if test $ac_cv_header_stdc = yes; then
6476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6477 if test "$cross_compiling" = yes; then :
6478 :
6479 else
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6482 #include <ctype.h>
6483 #include <stdlib.h>
6484 #if ((' ' & 0x0FF) == 0x020)
6485 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6486 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6487 #else
6488 # define ISLOWER(c) \
6489 (('a' <= (c) && (c) <= 'i') \
6490 || ('j' <= (c) && (c) <= 'r') \
6491 || ('s' <= (c) && (c) <= 'z'))
6492 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6493 #endif
6494
6495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6496 int
6497 main ()
6498 {
6499 int i;
6500 for (i = 0; i < 256; i++)
6501 if (XOR (islower (i), ISLOWER (i))
6502 || toupper (i) != TOUPPER (i))
6503 return 2;
6504 return 0;
6505 }
6506 _ACEOF
6507 if ac_fn_c_try_run "$LINENO"; then :
6508
6509 else
6510 ac_cv_header_stdc=no
6511 fi
6512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6513 conftest.$ac_objext conftest.beam conftest.$ac_ext
6514 fi
6515
6516 fi
6517 fi
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6519 $as_echo "$ac_cv_header_stdc" >&6; }
6520 if test $ac_cv_header_stdc = yes; then
6521
6522 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6523
6524 fi
6525
6526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6527 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6528 inttypes.h stdint.h unistd.h
6529 do :
6530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6531 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6532 "
6533 eval as_val=\$$as_ac_Header
6534 if test "x$as_val" = x""yes; then :
6535 cat >>confdefs.h <<_ACEOF
6536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537 _ACEOF
6538
6539 fi
6540
6541 done
6542
6543
6544
6545 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6546 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6547 MINIX=yes
6548 else
6549 MINIX=
6550 fi
6551
6552
6553 if test "$MINIX" = yes; then
6554
6555 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6556
6557
6558 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6559
6560
6561 $as_echo "#define _MINIX 1" >>confdefs.h
6562
6563
6564 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6565
6566 fi
6567
6568
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6570 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6571 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576
6577 # define __EXTENSIONS__ 1
6578 $ac_includes_default
6579 int
6580 main ()
6581 {
6582
6583 ;
6584 return 0;
6585 }
6586 _ACEOF
6587 if ac_fn_c_try_compile "$LINENO"; then :
6588 ac_cv_safe_to_define___extensions__=yes
6589 else
6590 ac_cv_safe_to_define___extensions__=no
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593 fi
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6595 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6596 test $ac_cv_safe_to_define___extensions__ = yes &&
6597 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6598
6599 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6600
6601 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6602
6603 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6604
6605 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6606
6607 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6608
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6610 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6611 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 ac_cv_should_define__xopen_source=no
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617
6618 #include <wchar.h>
6619 mbstate_t x;
6620 int
6621 main ()
6622 {
6623
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_c_try_compile "$LINENO"; then :
6629
6630 else
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633
6634 #define _XOPEN_SOURCE 500
6635 #include <wchar.h>
6636 mbstate_t x;
6637 int
6638 main ()
6639 {
6640
6641 ;
6642 return 0;
6643 }
6644 _ACEOF
6645 if ac_fn_c_try_compile "$LINENO"; then :
6646 ac_cv_should_define__xopen_source=yes
6647 fi
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6651 fi
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6653 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6654 test $ac_cv_should_define__xopen_source = yes &&
6655 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6656
6657
6658
6659
6660
6661
6662
6663
6664 # Check whether --enable-largefile was given.
6665 if test "${enable_largefile+set}" = set; then :
6666 enableval=$enable_largefile;
6667 fi
6668
6669 if test "$enable_largefile" != no; then
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6672 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6673 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 ac_cv_sys_largefile_CC=no
6677 if test "$GCC" != yes; then
6678 ac_save_CC=$CC
6679 while :; do
6680 # IRIX 6.2 and later do not support large files by default,
6681 # so use the C compiler's -n32 option if that helps.
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 #include <sys/types.h>
6685 /* Check that off_t can represent 2**63 - 1 correctly.
6686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6687 since some C++ compilers masquerading as C compilers
6688 incorrectly reject 9223372036854775807. */
6689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6691 && LARGE_OFF_T % 2147483647 == 1)
6692 ? 1 : -1];
6693 int
6694 main ()
6695 {
6696
6697 ;
6698 return 0;
6699 }
6700 _ACEOF
6701 if ac_fn_c_try_compile "$LINENO"; then :
6702 break
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext
6705 CC="$CC -n32"
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707 ac_cv_sys_largefile_CC=' -n32'; break
6708 fi
6709 rm -f core conftest.err conftest.$ac_objext
6710 break
6711 done
6712 CC=$ac_save_CC
6713 rm -f conftest.$ac_ext
6714 fi
6715 fi
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6717 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6718 if test "$ac_cv_sys_largefile_CC" != no; then
6719 CC=$CC$ac_cv_sys_largefile_CC
6720 fi
6721
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6723 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6724 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 while :; do
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730 #include <sys/types.h>
6731 /* Check that off_t can represent 2**63 - 1 correctly.
6732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6733 since some C++ compilers masquerading as C compilers
6734 incorrectly reject 9223372036854775807. */
6735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6737 && LARGE_OFF_T % 2147483647 == 1)
6738 ? 1 : -1];
6739 int
6740 main ()
6741 {
6742
6743 ;
6744 return 0;
6745 }
6746 _ACEOF
6747 if ac_fn_c_try_compile "$LINENO"; then :
6748 ac_cv_sys_file_offset_bits=no; break
6749 fi
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #define _FILE_OFFSET_BITS 64
6754 #include <sys/types.h>
6755 /* Check that off_t can represent 2**63 - 1 correctly.
6756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6757 since some C++ compilers masquerading as C compilers
6758 incorrectly reject 9223372036854775807. */
6759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6761 && LARGE_OFF_T % 2147483647 == 1)
6762 ? 1 : -1];
6763 int
6764 main ()
6765 {
6766
6767 ;
6768 return 0;
6769 }
6770 _ACEOF
6771 if ac_fn_c_try_compile "$LINENO"; then :
6772 ac_cv_sys_file_offset_bits=64; break
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 ac_cv_sys_file_offset_bits=unknown
6776 break
6777 done
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6780 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6781 case $ac_cv_sys_file_offset_bits in #(
6782 no | unknown) ;;
6783 *)
6784 cat >>confdefs.h <<_ACEOF
6785 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6786 _ACEOF
6787 ;;
6788 esac
6789 rm -rf conftest*
6790 if test $ac_cv_sys_file_offset_bits = unknown; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6792 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6793 if test "${ac_cv_sys_large_files+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 while :; do
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 #include <sys/types.h>
6800 /* Check that off_t can represent 2**63 - 1 correctly.
6801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6802 since some C++ compilers masquerading as C compilers
6803 incorrectly reject 9223372036854775807. */
6804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6806 && LARGE_OFF_T % 2147483647 == 1)
6807 ? 1 : -1];
6808 int
6809 main ()
6810 {
6811
6812 ;
6813 return 0;
6814 }
6815 _ACEOF
6816 if ac_fn_c_try_compile "$LINENO"; then :
6817 ac_cv_sys_large_files=no; break
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 #define _LARGE_FILES 1
6823 #include <sys/types.h>
6824 /* Check that off_t can represent 2**63 - 1 correctly.
6825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6826 since some C++ compilers masquerading as C compilers
6827 incorrectly reject 9223372036854775807. */
6828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6830 && LARGE_OFF_T % 2147483647 == 1)
6831 ? 1 : -1];
6832 int
6833 main ()
6834 {
6835
6836 ;
6837 return 0;
6838 }
6839 _ACEOF
6840 if ac_fn_c_try_compile "$LINENO"; then :
6841 ac_cv_sys_large_files=1; break
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 ac_cv_sys_large_files=unknown
6845 break
6846 done
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6849 $as_echo "$ac_cv_sys_large_files" >&6; }
6850 case $ac_cv_sys_large_files in #(
6851 no | unknown) ;;
6852 *)
6853 cat >>confdefs.h <<_ACEOF
6854 #define _LARGE_FILES $ac_cv_sys_large_files
6855 _ACEOF
6856 ;;
6857 esac
6858 rm -rf conftest*
6859 fi
6860
6861
6862 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6863
6864 fi
6865
6866 case $ac_cv_prog_cc_stdc in #(
6867 no) :
6868 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6869 *) :
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6871 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6872 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 ac_cv_prog_cc_c99=no
6876 ac_save_CC=$CC
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 #include <stdarg.h>
6880 #include <stdbool.h>
6881 #include <stdlib.h>
6882 #include <wchar.h>
6883 #include <stdio.h>
6884
6885 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6886 #define debug(...) fprintf (stderr, __VA_ARGS__)
6887 #define showlist(...) puts (#__VA_ARGS__)
6888 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6889 static void
6890 test_varargs_macros (void)
6891 {
6892 int x = 1234;
6893 int y = 5678;
6894 debug ("Flag");
6895 debug ("X = %d\n", x);
6896 showlist (The first, second, and third items.);
6897 report (x>y, "x is %d but y is %d", x, y);
6898 }
6899
6900 // Check long long types.
6901 #define BIG64 18446744073709551615ull
6902 #define BIG32 4294967295ul
6903 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6904 #if !BIG_OK
6905 your preprocessor is broken;
6906 #endif
6907 #if BIG_OK
6908 #else
6909 your preprocessor is broken;
6910 #endif
6911 static long long int bignum = -9223372036854775807LL;
6912 static unsigned long long int ubignum = BIG64;
6913
6914 struct incomplete_array
6915 {
6916 int datasize;
6917 double data[];
6918 };
6919
6920 struct named_init {
6921 int number;
6922 const wchar_t *name;
6923 double average;
6924 };
6925
6926 typedef const char *ccp;
6927
6928 static inline int
6929 test_restrict (ccp restrict text)
6930 {
6931 // See if C++-style comments work.
6932 // Iterate through items via the restricted pointer.
6933 // Also check for declarations in for loops.
6934 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6935 continue;
6936 return 0;
6937 }
6938
6939 // Check varargs and va_copy.
6940 static void
6941 test_varargs (const char *format, ...)
6942 {
6943 va_list args;
6944 va_start (args, format);
6945 va_list args_copy;
6946 va_copy (args_copy, args);
6947
6948 const char *str;
6949 int number;
6950 float fnumber;
6951
6952 while (*format)
6953 {
6954 switch (*format++)
6955 {
6956 case 's': // string
6957 str = va_arg (args_copy, const char *);
6958 break;
6959 case 'd': // int
6960 number = va_arg (args_copy, int);
6961 break;
6962 case 'f': // float
6963 fnumber = va_arg (args_copy, double);
6964 break;
6965 default:
6966 break;
6967 }
6968 }
6969 va_end (args_copy);
6970 va_end (args);
6971 }
6972
6973 int
6974 main ()
6975 {
6976
6977 // Check bool.
6978 _Bool success = false;
6979
6980 // Check restrict.
6981 if (test_restrict ("String literal") == 0)
6982 success = true;
6983 char *restrict newvar = "Another string";
6984
6985 // Check varargs.
6986 test_varargs ("s, d' f .", "string", 65, 34.234);
6987 test_varargs_macros ();
6988
6989 // Check flexible array members.
6990 struct incomplete_array *ia =
6991 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6992 ia->datasize = 10;
6993 for (int i = 0; i < ia->datasize; ++i)
6994 ia->data[i] = i * 1.234;
6995
6996 // Check named initializers.
6997 struct named_init ni = {
6998 .number = 34,
6999 .name = L"Test wide string",
7000 .average = 543.34343,
7001 };
7002
7003 ni.number = 58;
7004
7005 int dynamic_array[ni.number];
7006 dynamic_array[ni.number - 1] = 543;
7007
7008 // work around unused variable warnings
7009 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7010 || dynamic_array[ni.number - 1] != 543);
7011
7012 ;
7013 return 0;
7014 }
7015 _ACEOF
7016 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7017 do
7018 CC="$ac_save_CC $ac_arg"
7019 if ac_fn_c_try_compile "$LINENO"; then :
7020 ac_cv_prog_cc_c99=$ac_arg
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext
7023 test "x$ac_cv_prog_cc_c99" != "xno" && break
7024 done
7025 rm -f conftest.$ac_ext
7026 CC=$ac_save_CC
7027
7028 fi
7029 # AC_CACHE_VAL
7030 case "x$ac_cv_prog_cc_c99" in
7031 x)
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7033 $as_echo "none needed" >&6; } ;;
7034 xno)
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7036 $as_echo "unsupported" >&6; } ;;
7037 *)
7038 CC="$CC $ac_cv_prog_cc_c99"
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7040 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7041 esac
7042 if test "x$ac_cv_prog_cc_c99" != xno; then :
7043 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7044 else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7046 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7047 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 ac_cv_prog_cc_c89=no
7051 ac_save_CC=$CC
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 #include <stdarg.h>
7055 #include <stdio.h>
7056 #include <sys/types.h>
7057 #include <sys/stat.h>
7058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7059 struct buf { int x; };
7060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7061 static char *e (p, i)
7062 char **p;
7063 int i;
7064 {
7065 return p[i];
7066 }
7067 static char *f (char * (*g) (char **, int), char **p, ...)
7068 {
7069 char *s;
7070 va_list v;
7071 va_start (v,p);
7072 s = g (p, va_arg (v,int));
7073 va_end (v);
7074 return s;
7075 }
7076
7077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7078 function prototypes and stuff, but not '\xHH' hex character constants.
7079 These don't provoke an error unfortunately, instead are silently treated
7080 as 'x'. The following induces an error, until -std is added to get
7081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7082 array size at least. It's necessary to write '\x00'==0 to get something
7083 that's true only with -std. */
7084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7085
7086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7087 inside strings and character constants. */
7088 #define FOO(x) 'x'
7089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7090
7091 int test (int i, double x);
7092 struct s1 {int (*f) (int a);};
7093 struct s2 {int (*f) (double a);};
7094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7095 int argc;
7096 char **argv;
7097 int
7098 main ()
7099 {
7100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7101 ;
7102 return 0;
7103 }
7104 _ACEOF
7105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7107 do
7108 CC="$ac_save_CC $ac_arg"
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110 ac_cv_prog_cc_c89=$ac_arg
7111 fi
7112 rm -f core conftest.err conftest.$ac_objext
7113 test "x$ac_cv_prog_cc_c89" != "xno" && break
7114 done
7115 rm -f conftest.$ac_ext
7116 CC=$ac_save_CC
7117
7118 fi
7119 # AC_CACHE_VAL
7120 case "x$ac_cv_prog_cc_c89" in
7121 x)
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7123 $as_echo "none needed" >&6; } ;;
7124 xno)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7126 $as_echo "unsupported" >&6; } ;;
7127 *)
7128 CC="$CC $ac_cv_prog_cc_c89"
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7130 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7131 esac
7132 if test "x$ac_cv_prog_cc_c89" != xno; then :
7133 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7134 else
7135 ac_cv_prog_cc_stdc=no
7136 fi
7137
7138 fi
7139 ;;
7140 esac
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7142 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7143 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7144 $as_echo_n "(cached) " >&6
7145 fi
7146
7147 case $ac_cv_prog_cc_stdc in #(
7148 no) :
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7150 $as_echo "unsupported" >&6; } ;; #(
7151 '') :
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7153 $as_echo "none needed" >&6; } ;; #(
7154 *) :
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7156 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7157 esac
7158
7159
7160
7161 # Code from module alloca-opt:
7162 # Code from module allocator:
7163 # Code from module at-internal:
7164 # Code from module c-ctype:
7165 # Code from module c-strcase:
7166 # Code from module careadlinkat:
7167 # Code from module clock-time:
7168 # Code from module close-stream:
7169 # Code from module crypto/md5:
7170 # Code from module crypto/sha1:
7171 # Code from module crypto/sha256:
7172 # Code from module crypto/sha512:
7173 # Code from module dirent:
7174 # Code from module dosname:
7175 # Code from module dtoastr:
7176 # Code from module dtotimespec:
7177 # Code from module dup2:
7178 # Code from module environ:
7179 # Code from module euidaccess:
7180 # Code from module execinfo:
7181 # Code from module extensions:
7182
7183 # Code from module extern-inline:
7184 # Code from module faccessat:
7185 # Code from module fcntl-h:
7186 # Code from module fdatasync:
7187 # Code from module fdopendir:
7188 # Code from module filemode:
7189 # Code from module fpending:
7190 # Code from module fstatat:
7191 # Code from module fsync:
7192 # Code from module getgroups:
7193 # Code from module getloadavg:
7194 # Code from module getopt-gnu:
7195 # Code from module getopt-posix:
7196 # Code from module gettext-h:
7197 # Code from module gettime:
7198 # Code from module gettimeofday:
7199 # Code from module group-member:
7200 # Code from module ignore-value:
7201 # Code from module include_next:
7202 # Code from module intprops:
7203 # Code from module inttypes-incomplete:
7204 # Code from module largefile:
7205
7206 # Code from module lstat:
7207 # Code from module manywarnings:
7208 # Code from module memrchr:
7209 # Code from module mktime:
7210 # Code from module multiarch:
7211 # Code from module nocrash:
7212 # Code from module openat-h:
7213 # Code from module pathmax:
7214 # Code from module pselect:
7215 # Code from module pthread_sigmask:
7216 # Code from module putenv:
7217 # Code from module readlink:
7218 # Code from module readlinkat:
7219 # Code from module root-uid:
7220 # Code from module sig2str:
7221 # Code from module signal-h:
7222 # Code from module snippet/_Noreturn:
7223 # Code from module snippet/arg-nonnull:
7224 # Code from module snippet/c++defs:
7225 # Code from module snippet/warn-on-use:
7226 # Code from module socklen:
7227 # Code from module ssize_t:
7228 # Code from module stat:
7229 # Code from module stat-time:
7230 # Code from module stdalign:
7231 # Code from module stdarg:
7232
7233
7234
7235 # Code from module stdbool:
7236 # Code from module stddef:
7237 # Code from module stdint:
7238 # Code from module stdio:
7239 # Code from module stdlib:
7240 # Code from module strftime:
7241 # Code from module string:
7242 # Code from module strtoimax:
7243 # Code from module strtoll:
7244 # Code from module strtoull:
7245 # Code from module strtoumax:
7246 # Code from module symlink:
7247 # Code from module sys_select:
7248 # Code from module sys_stat:
7249 # Code from module sys_time:
7250 # Code from module time:
7251 # Code from module time_r:
7252 # Code from module timer-time:
7253 # Code from module timespec:
7254 # Code from module timespec-add:
7255 # Code from module timespec-sub:
7256 # Code from module u64:
7257 # Code from module unistd:
7258 # Code from module unsetenv:
7259 # Code from module utimens:
7260 # Code from module verify:
7261 # Code from module warnings:
7262 # Code from module xalloc-oversized:
7263
7264
7265 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7266 # if -g3 works and the user does not specify CFLAGS.
7267 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7268 if test "$ac_test_CFLAGS" != set; then
7269 case $CFLAGS in
7270 '-g')
7271 emacs_g3_CFLAGS='-g3';;
7272 '-g -O2')
7273 emacs_g3_CFLAGS='-g3 -O2';;
7274 *)
7275 emacs_g3_CFLAGS='';;
7276 esac
7277 if test -n "$emacs_g3_CFLAGS"; then
7278 emacs_save_CFLAGS=$CFLAGS
7279 CFLAGS=$emacs_g3_CFLAGS
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7281 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7282 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7287
7288 int
7289 main ()
7290 {
7291
7292 ;
7293 return 0;
7294 }
7295 _ACEOF
7296 if ac_fn_c_try_link "$LINENO"; then :
7297 emacs_cv_prog_cc_g3=yes
7298 else
7299 emacs_cv_prog_cc_g3=no
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext \
7302 conftest$ac_exeext conftest.$ac_ext
7303 fi
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7305 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7306 if test $emacs_cv_prog_cc_g3 = yes; then
7307 CFLAGS=$emacs_g3_CFLAGS
7308 else
7309 CFLAGS=$emacs_save_CFLAGS
7310 fi
7311 fi
7312 fi
7313
7314 # Check whether --enable-gcc-warnings was given.
7315 if test "${enable_gcc_warnings+set}" = set; then :
7316 enableval=$enable_gcc_warnings; case $enableval in
7317 yes|no) ;;
7318 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7319 esac
7320 gl_gcc_warnings=$enableval
7321 else
7322 gl_gcc_warnings=no
7323
7324 fi
7325
7326
7327 # Check whether --enable-link-time-optimization was given.
7328 if test "${enable_link_time_optimization+set}" = set; then :
7329 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7331 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7332 ac_lto_supported=no
7333 if test x$GCC = xyes; then
7334 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7335 if test x$CPUS != x; then
7336 LTO="-flto=$CPUS"
7337 else
7338 LTO="-flto"
7339 fi
7340 old_CFLAGS=$CFLAGS
7341 CFLAGS="$CFLAGS $LTO"
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344
7345 int
7346 main ()
7347 {
7348
7349 ;
7350 return 0;
7351 }
7352 _ACEOF
7353 if ac_fn_c_try_compile "$LINENO"; then :
7354 ac_lto_supported=yes
7355 else
7356 ac_lto_supported=no
7357 fi
7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 CFLAGS="$old_CFLAGS"
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7362 $as_echo "$ac_lto_supported" >&6; }
7363 if test "$ac_lto_supported" = "yes"; then
7364 CFLAGS="$CFLAGS $LTO"
7365 fi
7366 fi
7367 fi
7368
7369
7370 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7371 # ------------------------------------------------
7372 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7373 # Otherwise, run RUN-IF-NOT-FOUND.
7374
7375
7376 # When compiling with GCC, prefer -isystem to -I when including system
7377 # include files, to avoid generating useless diagnostics for the files.
7378 if test "$gl_gcc_warnings" != yes; then
7379 isystem='-I'
7380 else
7381 isystem='-isystem '
7382
7383 # This, $nw, is the list of warnings we disable.
7384 nw=
7385
7386 case $with_x_toolkit in
7387 lucid | athena | motif)
7388 # Old toolkits mishandle 'const'.
7389 nw="$nw -Wwrite-strings"
7390 ;;
7391 *)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7393 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7394 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397
7398 gl_save_compiler_FLAGS="$CFLAGS"
7399 as_fn_append CFLAGS " -Werror"
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7402
7403 int
7404 main ()
7405 {
7406
7407 ;
7408 return 0;
7409 }
7410 _ACEOF
7411 if ac_fn_c_try_compile "$LINENO"; then :
7412 gl_cv_warn_c__Werror=yes
7413 else
7414 gl_cv_warn_c__Werror=no
7415 fi
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 CFLAGS="$gl_save_compiler_FLAGS"
7418
7419 fi
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7421 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7422 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7423 as_fn_append WERROR_CFLAGS " -Werror"
7424 fi
7425
7426
7427 ;;
7428 esac
7429
7430
7431 nw="$nw -Waggregate-return" # anachronistic
7432 nw="$nw -Wlong-long" # C90 is anachronistic
7433 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7434 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7435 nw="$nw -Wtraditional" # Warns on #elif which we use often
7436 nw="$nw -Wcast-qual" # Too many warnings for now
7437 nw="$nw -Wconversion" # Too many warnings for now
7438 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7439 nw="$nw -Wsign-conversion" # Too many warnings for now
7440 nw="$nw -Woverlength-strings" # Not a problem these days
7441 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7442 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7443 nw="$nw -Wpadded" # Our structs are not padded
7444 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7445 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7446 nw="$nw -Wformat-nonliteral" # we do this a lot
7447 nw="$nw -Wvla" # warnings in gettext.h
7448 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7449 nw="$nw -Wswitch-enum" # Too many warnings for now
7450 nw="$nw -Wswitch-default" # Too many warnings for now
7451 nw="$nw -Wfloat-equal" # warns about high-quality code
7452 nw="$nw -Winline" # OK to ignore 'inline'
7453 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7454 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7455 # signed overflow has undefined behavior
7456 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7457 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7458
7459 # Emacs doesn't care about shadowing; see
7460 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7461 nw="$nw -Wshadow"
7462
7463 # Emacs's use of alloca inhibits protecting the stack.
7464 nw="$nw -Wstack-protector"
7465
7466 # The following line should be removable at some point.
7467 nw="$nw -Wsuggest-attribute=pure"
7468
7469
7470
7471 if test -n "$GCC"; then
7472
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7474 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7475 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478
7479 gl_save_CFLAGS="$CFLAGS"
7480 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7483
7484 int
7485 main ()
7486 {
7487
7488 ;
7489 return 0;
7490 }
7491 _ACEOF
7492 if ac_fn_c_try_compile "$LINENO"; then :
7493 gl_cv_cc_nomfi_supported=yes
7494 else
7495 gl_cv_cc_nomfi_supported=no
7496 fi
7497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498 CFLAGS="$gl_save_CFLAGS"
7499 fi
7500
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7502 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7503
7504 if test "$gl_cv_cc_nomfi_supported" = yes; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7506 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7507 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510
7511 gl_save_CFLAGS="$CFLAGS"
7512 CFLAGS="$CFLAGS -W -Werror"
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 void f (void)
7516 {
7517 typedef struct { int a; int b; } s_t;
7518 s_t s1 = { 0, };
7519 }
7520
7521 int
7522 main ()
7523 {
7524
7525 ;
7526 return 0;
7527 }
7528 _ACEOF
7529 if ac_fn_c_try_compile "$LINENO"; then :
7530 gl_cv_cc_nomfi_needed=no
7531 else
7532 gl_cv_cc_nomfi_needed=yes
7533 fi
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 CFLAGS="$gl_save_CFLAGS"
7536
7537 fi
7538
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7540 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7541 fi
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7544 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7545 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548
7549 gl_save_CFLAGS="$CFLAGS"
7550 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553
7554 int
7555 main ()
7556 {
7557
7558 ;
7559 return 0;
7560 }
7561 _ACEOF
7562 if ac_fn_c_try_compile "$LINENO"; then :
7563 gl_cv_cc_uninitialized_supported=yes
7564 else
7565 gl_cv_cc_uninitialized_supported=no
7566 fi
7567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568 CFLAGS="$gl_save_CFLAGS"
7569 fi
7570
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7572 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7573
7574 fi
7575
7576 # List all gcc warning categories.
7577 gl_manywarn_set=
7578 for gl_manywarn_item in \
7579 -W \
7580 -Wabi \
7581 -Waddress \
7582 -Wall \
7583 -Warray-bounds \
7584 -Wattributes \
7585 -Wbad-function-cast \
7586 -Wbuiltin-macro-redefined \
7587 -Wcast-align \
7588 -Wchar-subscripts \
7589 -Wclobbered \
7590 -Wcomment \
7591 -Wcomments \
7592 -Wcoverage-mismatch \
7593 -Wcpp \
7594 -Wdeprecated \
7595 -Wdeprecated-declarations \
7596 -Wdisabled-optimization \
7597 -Wdiv-by-zero \
7598 -Wdouble-promotion \
7599 -Wempty-body \
7600 -Wendif-labels \
7601 -Wenum-compare \
7602 -Wextra \
7603 -Wformat-contains-nul \
7604 -Wformat-extra-args \
7605 -Wformat-nonliteral \
7606 -Wformat-security \
7607 -Wformat-y2k \
7608 -Wformat-zero-length \
7609 -Wformat=2 \
7610 -Wfree-nonheap-object \
7611 -Wignored-qualifiers \
7612 -Wimplicit \
7613 -Wimplicit-function-declaration \
7614 -Wimplicit-int \
7615 -Winit-self \
7616 -Winline \
7617 -Wint-to-pointer-cast \
7618 -Winvalid-memory-model \
7619 -Winvalid-pch \
7620 -Wjump-misses-init \
7621 -Wlogical-op \
7622 -Wmain \
7623 -Wmaybe-uninitialized \
7624 -Wmissing-braces \
7625 -Wmissing-declarations \
7626 -Wmissing-field-initializers \
7627 -Wmissing-format-attribute \
7628 -Wmissing-include-dirs \
7629 -Wmissing-noreturn \
7630 -Wmissing-parameter-type \
7631 -Wmissing-prototypes \
7632 -Wmudflap \
7633 -Wmultichar \
7634 -Wnarrowing \
7635 -Wnested-externs \
7636 -Wnonnull \
7637 -Wnormalized=nfc \
7638 -Wold-style-declaration \
7639 -Wold-style-definition \
7640 -Woverflow \
7641 -Woverlength-strings \
7642 -Woverride-init \
7643 -Wpacked \
7644 -Wpacked-bitfield-compat \
7645 -Wparentheses \
7646 -Wpointer-arith \
7647 -Wpointer-sign \
7648 -Wpointer-to-int-cast \
7649 -Wpragmas \
7650 -Wreturn-type \
7651 -Wsequence-point \
7652 -Wshadow \
7653 -Wsizeof-pointer-memaccess \
7654 -Wstack-protector \
7655 -Wstrict-aliasing \
7656 -Wstrict-overflow \
7657 -Wstrict-prototypes \
7658 -Wsuggest-attribute=const \
7659 -Wsuggest-attribute=format \
7660 -Wsuggest-attribute=noreturn \
7661 -Wsuggest-attribute=pure \
7662 -Wswitch \
7663 -Wswitch-default \
7664 -Wsync-nand \
7665 -Wsystem-headers \
7666 -Wtrampolines \
7667 -Wtrigraphs \
7668 -Wtype-limits \
7669 -Wuninitialized \
7670 -Wunknown-pragmas \
7671 -Wunreachable-code \
7672 -Wunsafe-loop-optimizations \
7673 -Wunused \
7674 -Wunused-but-set-parameter \
7675 -Wunused-but-set-variable \
7676 -Wunused-function \
7677 -Wunused-label \
7678 -Wunused-local-typedefs \
7679 -Wunused-macros \
7680 -Wunused-parameter \
7681 -Wunused-result \
7682 -Wunused-value \
7683 -Wunused-variable \
7684 -Wvarargs \
7685 -Wvariadic-macros \
7686 -Wvector-operation-performance \
7687 -Wvla \
7688 -Wvolatile-register-var \
7689 -Wwrite-strings \
7690 \
7691 ; do
7692 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7693 done
7694
7695 # Disable specific options as needed.
7696 if test "$gl_cv_cc_nomfi_needed" = yes; then
7697 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7698 fi
7699
7700 if test "$gl_cv_cc_uninitialized_supported" = no; then
7701 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7702 fi
7703
7704 ws=$gl_manywarn_set
7705
7706
7707 gl_warn_set=
7708 set x $ws; shift
7709 for gl_warn_item
7710 do
7711 case " $nw " in
7712 *" $gl_warn_item "*)
7713 ;;
7714 *)
7715 gl_warn_set="$gl_warn_set $gl_warn_item"
7716 ;;
7717 esac
7718 done
7719 ws=$gl_warn_set
7720
7721 for w in $ws; do
7722 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7724 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7725 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728
7729 gl_save_compiler_FLAGS="$CFLAGS"
7730 as_fn_append CFLAGS " $w"
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733
7734 int
7735 main ()
7736 {
7737
7738 ;
7739 return 0;
7740 }
7741 _ACEOF
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743 eval "$as_gl_Warn=yes"
7744 else
7745 eval "$as_gl_Warn=no"
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748 CFLAGS="$gl_save_compiler_FLAGS"
7749
7750 fi
7751 eval ac_res=\$$as_gl_Warn
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7753 $as_echo "$ac_res" >&6; }
7754 eval as_val=\$$as_gl_Warn
7755 if test "x$as_val" = x""yes; then :
7756 as_fn_append WARN_CFLAGS " $w"
7757 fi
7758
7759
7760 done
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7762 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7763 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766
7767 gl_save_compiler_FLAGS="$CFLAGS"
7768 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7771
7772 int
7773 main ()
7774 {
7775
7776 ;
7777 return 0;
7778 }
7779 _ACEOF
7780 if ac_fn_c_try_compile "$LINENO"; then :
7781 gl_cv_warn_c__Wno_missing_field_initializers=yes
7782 else
7783 gl_cv_warn_c__Wno_missing_field_initializers=no
7784 fi
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 CFLAGS="$gl_save_compiler_FLAGS"
7787
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7790 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7791 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7792 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7793 fi
7794
7795 # We need this one
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7797 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7798 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801
7802 gl_save_compiler_FLAGS="$CFLAGS"
7803 as_fn_append CFLAGS " -Wno-sign-compare"
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7806
7807 int
7808 main ()
7809 {
7810
7811 ;
7812 return 0;
7813 }
7814 _ACEOF
7815 if ac_fn_c_try_compile "$LINENO"; then :
7816 gl_cv_warn_c__Wno_sign_compare=yes
7817 else
7818 gl_cv_warn_c__Wno_sign_compare=no
7819 fi
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 CFLAGS="$gl_save_compiler_FLAGS"
7822
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7825 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7826 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7827 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7828 fi
7829
7830 # Too many warnings for now
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7832 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7833 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836
7837 gl_save_compiler_FLAGS="$CFLAGS"
7838 as_fn_append CFLAGS " -Wno-type-limits"
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841
7842 int
7843 main ()
7844 {
7845
7846 ;
7847 return 0;
7848 }
7849 _ACEOF
7850 if ac_fn_c_try_compile "$LINENO"; then :
7851 gl_cv_warn_c__Wno_type_limits=yes
7852 else
7853 gl_cv_warn_c__Wno_type_limits=no
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856 CFLAGS="$gl_save_compiler_FLAGS"
7857
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7860 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7861 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7862 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7863 fi
7864
7865 # Too many warnings for now
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7867 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7868 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871
7872 gl_save_compiler_FLAGS="$CFLAGS"
7873 as_fn_append CFLAGS " -Wno-switch"
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876
7877 int
7878 main ()
7879 {
7880
7881 ;
7882 return 0;
7883 }
7884 _ACEOF
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886 gl_cv_warn_c__Wno_switch=yes
7887 else
7888 gl_cv_warn_c__Wno_switch=no
7889 fi
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891 CFLAGS="$gl_save_compiler_FLAGS"
7892
7893 fi
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7895 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7896 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7897 as_fn_append WARN_CFLAGS " -Wno-switch"
7898 fi
7899
7900 # Too many warnings for now
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7902 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7903 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906
7907 gl_save_compiler_FLAGS="$CFLAGS"
7908 as_fn_append CFLAGS " -Wno-unused-parameter"
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7911
7912 int
7913 main ()
7914 {
7915
7916 ;
7917 return 0;
7918 }
7919 _ACEOF
7920 if ac_fn_c_try_compile "$LINENO"; then :
7921 gl_cv_warn_c__Wno_unused_parameter=yes
7922 else
7923 gl_cv_warn_c__Wno_unused_parameter=no
7924 fi
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 CFLAGS="$gl_save_compiler_FLAGS"
7927
7928 fi
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7930 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7931 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7932 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7933 fi
7934
7935 # Too many warnings for now
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7937 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7938 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941
7942 gl_save_compiler_FLAGS="$CFLAGS"
7943 as_fn_append CFLAGS " -Wno-format-nonliteral"
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946
7947 int
7948 main ()
7949 {
7950
7951 ;
7952 return 0;
7953 }
7954 _ACEOF
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956 gl_cv_warn_c__Wno_format_nonliteral=yes
7957 else
7958 gl_cv_warn_c__Wno_format_nonliteral=no
7959 fi
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 CFLAGS="$gl_save_compiler_FLAGS"
7962
7963 fi
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7965 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7966 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7967 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7968 fi
7969
7970
7971
7972 # In spite of excluding -Wlogical-op above, it is enabled, as of
7973 # gcc 4.5.0 20090517.
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7975 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7976 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979
7980 gl_save_compiler_FLAGS="$CFLAGS"
7981 as_fn_append CFLAGS " -Wno-logical-op"
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7984
7985 int
7986 main ()
7987 {
7988
7989 ;
7990 return 0;
7991 }
7992 _ACEOF
7993 if ac_fn_c_try_compile "$LINENO"; then :
7994 gl_cv_warn_c__Wno_logical_op=yes
7995 else
7996 gl_cv_warn_c__Wno_logical_op=no
7997 fi
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 CFLAGS="$gl_save_compiler_FLAGS"
8000
8001 fi
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8003 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8004 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8005 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8006 fi
8007
8008
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8011 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8012 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015
8016 gl_save_compiler_FLAGS="$CFLAGS"
8017 as_fn_append CFLAGS " -fdiagnostics-show-option"
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h. */
8020
8021 int
8022 main ()
8023 {
8024
8025 ;
8026 return 0;
8027 }
8028 _ACEOF
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 gl_cv_warn_c__fdiagnostics_show_option=yes
8031 else
8032 gl_cv_warn_c__fdiagnostics_show_option=no
8033 fi
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035 CFLAGS="$gl_save_compiler_FLAGS"
8036
8037 fi
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8039 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8040 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
8041 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
8042 fi
8043
8044
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8046 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8047 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050
8051 gl_save_compiler_FLAGS="$CFLAGS"
8052 as_fn_append CFLAGS " -funit-at-a-time"
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055
8056 int
8057 main ()
8058 {
8059
8060 ;
8061 return 0;
8062 }
8063 _ACEOF
8064 if ac_fn_c_try_compile "$LINENO"; then :
8065 gl_cv_warn_c__funit_at_a_time=yes
8066 else
8067 gl_cv_warn_c__funit_at_a_time=no
8068 fi
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 CFLAGS="$gl_save_compiler_FLAGS"
8071
8072 fi
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8074 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8075 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8076 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8077 fi
8078
8079
8080
8081
8082 $as_echo "#define lint 1" >>confdefs.h
8083
8084
8085
8086 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8087
8088
8089 # We use a slightly smaller set of warning options for lib/.
8090 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8091 nw=
8092 nw="$nw -Wunused-macros"
8093
8094
8095 gl_warn_set=
8096 set x $WARN_CFLAGS; shift
8097 for gl_warn_item
8098 do
8099 case " $nw " in
8100 *" $gl_warn_item "*)
8101 ;;
8102 *)
8103 gl_warn_set="$gl_warn_set $gl_warn_item"
8104 ;;
8105 esac
8106 done
8107 GNULIB_WARN_CFLAGS=$gl_warn_set
8108
8109
8110 fi
8111
8112
8113
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8115 $as_echo_n "checking whether ln -s works... " >&6; }
8116 LN_S=$as_ln_s
8117 if test "$LN_S" = "ln -s"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8119 $as_echo "yes" >&6; }
8120 else
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8122 $as_echo "no, using $LN_S" >&6; }
8123 fi
8124
8125
8126 # Extract the first word of "install-info", so it can be a program name with args.
8127 set dummy install-info; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 case $INSTALL_INFO in
8134 [\\/]* | ?:[\\/]*)
8135 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8136 ;;
8137 *)
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8140 do
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8148 fi
8149 done
8150 done
8151 IFS=$as_save_IFS
8152
8153 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8154 ;;
8155 esac
8156 fi
8157 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8158 if test -n "$INSTALL_INFO"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8160 $as_echo "$INSTALL_INFO" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166
8167 # Extract the first word of "gzip", so it can be a program name with args.
8168 set dummy gzip; ac_word=$2
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170 $as_echo_n "checking for $ac_word... " >&6; }
8171 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 case $GZIP_PROG in
8175 [\\/]* | ?:[\\/]*)
8176 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8177 ;;
8178 *)
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8181 do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8189 fi
8190 done
8191 done
8192 IFS=$as_save_IFS
8193
8194 ;;
8195 esac
8196 fi
8197 GZIP_PROG=$ac_cv_path_GZIP_PROG
8198 if test -n "$GZIP_PROG"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8200 $as_echo "$GZIP_PROG" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8204 fi
8205
8206
8207
8208 if test $opsys = gnu-linux; then
8209 # Extract the first word of "paxctl", so it can be a program name with args.
8210 set dummy paxctl; ac_word=$2
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 $as_echo_n "checking for $ac_word... " >&6; }
8213 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 case $PAXCTL in
8217 [\\/]* | ?:[\\/]*)
8218 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8219 ;;
8220 *)
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8223 do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8231 fi
8232 done
8233 done
8234 IFS=$as_save_IFS
8235
8236 ;;
8237 esac
8238 fi
8239 PAXCTL=$ac_cv_path_PAXCTL
8240 if test -n "$PAXCTL"; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8242 $as_echo "$PAXCTL" >&6; }
8243 else
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245 $as_echo "no" >&6; }
8246 fi
8247
8248
8249 if test "X$PAXCTL" != X; then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8251 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8254
8255 int
8256 main ()
8257 {
8258
8259 ;
8260 return 0;
8261 }
8262 _ACEOF
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8265 $as_echo "yes" >&6; }
8266 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }; PAXCTL=""; fi
8268 fi
8269 rm -f core conftest.err conftest.$ac_objext \
8270 conftest$ac_exeext conftest.$ac_ext
8271 fi
8272 fi
8273
8274 ## Need makeinfo >= 4.7 (?) to build the manuals.
8275 # Extract the first word of "makeinfo", so it can be a program name with args.
8276 set dummy makeinfo; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 case $MAKEINFO in
8283 [\\/]* | ?:[\\/]*)
8284 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8285 ;;
8286 *)
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 for as_dir in $PATH
8289 do
8290 IFS=$as_save_IFS
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8294 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 break 2
8297 fi
8298 done
8299 done
8300 IFS=$as_save_IFS
8301
8302 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8303 ;;
8304 esac
8305 fi
8306 MAKEINFO=$ac_cv_path_MAKEINFO
8307 if test -n "$MAKEINFO"; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8309 $as_echo "$MAKEINFO" >&6; }
8310 else
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 $as_echo "no" >&6; }
8313 fi
8314
8315
8316 if test "$MAKEINFO" != "no"; then
8317 case `
8318 $MAKEINFO --version 2> /dev/null |
8319 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8320 ` in
8321 '') MAKEINFO=no;;
8322 esac
8323 fi
8324
8325 ## Makeinfo is unusual. For a released Emacs, the manuals are
8326 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8327 ## therefore in the category of "special tools" not normally required, which
8328 ## configure does not have to check for (eg autoconf itself).
8329 ## In a Bazaar checkout on the other hand, the manuals are not included.
8330 ## So makeinfo is a requirement to build from Bazaar, and configure
8331 ## should test for it as it does for any other build requirement.
8332 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8333 ## with pre-built manuals, from a Bazaar checkout.
8334 HAVE_MAKEINFO=yes
8335
8336 if test "$MAKEINFO" = "no"; then
8337 MAKEINFO=makeinfo
8338 if test "x${with_makeinfo}" = "xno"; then
8339 HAVE_MAKEINFO=no
8340 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8341 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8342 source tree does not seem to have pre-built manuals in the \`info' directory.
8343 Either install a suitable version of makeinfo, or re-run configure
8344 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8345 fi
8346 fi
8347
8348
8349 INFO_EXT=.info
8350 INFO_OPTS=--no-split
8351
8352
8353
8354
8355 if test x$GCC = xyes; then
8356 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8357 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8358 else
8359 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8360 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8361 fi
8362
8363
8364 late_LDFLAGS=$LDFLAGS
8365 if test x$GCC = xyes; then
8366 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8367 else
8368 LDFLAGS="$LDFLAGS -znocombreloc"
8369 fi
8370
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8372 $as_echo_n "checking for -znocombreloc... " >&6; }
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375
8376 int
8377 main ()
8378 {
8379
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8386 $as_echo "yes" >&6; }
8387 else
8388 LDFLAGS=$late_LDFLAGS
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext \
8393 conftest$ac_exeext conftest.$ac_ext
8394
8395
8396 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8397 case "$opsys" in
8398 your-opsys-here) CANNOT_DUMP=yes ;;
8399 esac
8400
8401 test "$CANNOT_DUMP" = "yes" && \
8402
8403 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8404
8405
8406
8407
8408
8409 UNEXEC_OBJ=unexelf.o
8410 case "$opsys" in
8411 # MSDOS uses unexcoff.o
8412 # MSWindows uses unexw32.o
8413 aix4-2)
8414 UNEXEC_OBJ=unexaix.o
8415 ;;
8416 cygwin)
8417 UNEXEC_OBJ=unexcw.o
8418 ;;
8419 darwin)
8420 UNEXEC_OBJ=unexmacosx.o
8421 ;;
8422 hpux10-20 | hpux11)
8423 UNEXEC_OBJ=unexhp9k800.o
8424 ;;
8425 sol2-10)
8426 # Use the Solaris dldump() function, called from unexsol.c, to dump
8427 # emacs, instead of the generic ELF dump code found in unexelf.c.
8428 # The resulting binary has a complete symbol table, and is better
8429 # for debugging and other observability tools (debuggers, pstack, etc).
8430 #
8431 # If you encounter a problem using dldump(), please consider sending
8432 # a message to the OpenSolaris tools-linking mailing list:
8433 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8434 #
8435 # It is likely that dldump() works with older Solaris too, but this has
8436 # not been tested, so for now this change is for Solaris 10 or newer.
8437 UNEXEC_OBJ=unexsol.o
8438 ;;
8439 esac
8440
8441 LD_SWITCH_SYSTEM=
8442 case "$opsys" in
8443 freebsd)
8444 ## Let `ld' find image libs and similar things in /usr/local/lib.
8445 ## The system compiler, GCC, has apparently been modified to not
8446 ## look there, contrary to what a stock GCC would do.
8447 ### It's not our place to do this. See bug#10313#17.
8448 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8449 :
8450 ;;
8451
8452 gnu-linux)
8453 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8454 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8455 ;;
8456
8457 netbsd)
8458 ### It's not our place to do this. See bug#10313#17.
8459 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8460 :
8461 ;;
8462
8463 openbsd)
8464 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8465 ## otherwise Emacs dumps core on elf systems.
8466 LD_SWITCH_SYSTEM="-Z"
8467 ;;
8468 esac
8469
8470
8471 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8472
8473 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8474 ## which has not been defined yet. When this was handled with cpp,
8475 ## it was expanded to null when configure sourced the s/*.h file.
8476 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8477 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8478 ## (or somesuch), but because it is supposed to go at the _front_
8479 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8480 ## Compare with the gnu-linux case below, which added to the end
8481 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8482 ## LD_SWITCH_SYSTEM_TEMACS.
8483 case "$opsys" in
8484 netbsd|openbsd)
8485 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8486 esac
8487
8488
8489 C_SWITCH_MACHINE=
8490 case $canonical in
8491 alpha*)
8492 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8493 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8494
8495 fi
8496
8497 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8498 ## With ELF, make sure that all common symbols get allocated to in the
8499 ## data section. Otherwise, the dump of temacs may miss variables in
8500 ## the shared library that have been initialized. For example, with
8501 ## GNU libc, __malloc_initialized would normally be resolved to the
8502 ## shared library's .bss section, which is fatal.
8503 if test "x$GCC" = "xyes"; then
8504 C_SWITCH_MACHINE="-fno-common"
8505 else
8506 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8507 fi
8508 else
8509 UNEXEC_OBJ=unexalpha.o
8510 fi
8511 ;;
8512 esac
8513
8514
8515
8516
8517 C_SWITCH_SYSTEM=
8518 ## Some programs in src produce warnings saying certain subprograms
8519 ## are too complex and need a MAXMEM value greater than 2000 for
8520 ## additional optimization. --nils@exp-math.uni-essen.de
8521 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8522 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8523 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8524 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8525
8526
8527
8528 LIBS_SYSTEM=
8529 case "$opsys" in
8530 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8531 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8532
8533 freebsd) LIBS_SYSTEM="-lutil" ;;
8534
8535 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8536
8537 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8538
8539 ## Motif needs -lgen.
8540 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8541 esac
8542
8543
8544
8545 ### Make sure subsequent tests use flags consistent with the build flags.
8546
8547 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8548 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8549 else
8550 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8551 fi
8552
8553 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8554
8555 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8556
8557
8558
8559 LIB_MATH=-lm
8560 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8561
8562 case $opsys in
8563 cygwin )
8564 LIB_MATH=
8565 ;;
8566 darwin )
8567 ## Adding -lm confuses the dynamic linker, so omit it.
8568 LIB_MATH=
8569 ;;
8570 freebsd )
8571 SYSTEM_TYPE=berkeley-unix
8572 ;;
8573 gnu-linux | gnu-kfreebsd )
8574 ;;
8575 hpux10-20 | hpux11 )
8576 ;;
8577 netbsd | openbsd )
8578 SYSTEM_TYPE=berkeley-unix
8579 ;;
8580
8581 sol2* | unixware )
8582 SYSTEM_TYPE=usg-unix-v
8583 ;;
8584
8585 esac
8586
8587
8588
8589 cat >>confdefs.h <<_ACEOF
8590 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8591 _ACEOF
8592
8593
8594
8595 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8596 pre_PKG_CONFIG_LIBS=$LIBS
8597
8598 # Extract the first word of "pkg-config", so it can be a program name with args.
8599 set dummy pkg-config; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 case $PKG_CONFIG in
8606 [\\/]* | ?:[\\/]*)
8607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8608 ;;
8609 *)
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8612 do
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 break 2
8620 fi
8621 done
8622 done
8623 IFS=$as_save_IFS
8624
8625 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8626 ;;
8627 esac
8628 fi
8629 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8630 if test -n "$PKG_CONFIG"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8632 $as_echo "$PKG_CONFIG" >&6; }
8633 else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8636 fi
8637
8638
8639
8640
8641
8642
8643 if test "${with_sound}" != "no"; then
8644 # Sound support for GNU/Linux and the free BSDs.
8645 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8646 do :
8647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8648 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8649 eval as_val=\$$as_ac_Header
8650 if test "x$as_val" = x""yes; then :
8651 cat >>confdefs.h <<_ACEOF
8652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8653 _ACEOF
8654 have_sound_header=yes
8655 fi
8656
8657 done
8658
8659 # Emulation library used on NetBSD.
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8661 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8662 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 ac_check_lib_save_LIBS=$LIBS
8666 LIBS="-lossaudio $LIBS"
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669
8670 /* Override any GCC internal prototype to avoid an error.
8671 Use char because int might match the return type of a GCC
8672 builtin and then its argument prototype would still apply. */
8673 #ifdef __cplusplus
8674 extern "C"
8675 #endif
8676 char _oss_ioctl ();
8677 int
8678 main ()
8679 {
8680 return _oss_ioctl ();
8681 ;
8682 return 0;
8683 }
8684 _ACEOF
8685 if ac_fn_c_try_link "$LINENO"; then :
8686 ac_cv_lib_ossaudio__oss_ioctl=yes
8687 else
8688 ac_cv_lib_ossaudio__oss_ioctl=no
8689 fi
8690 rm -f core conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8692 LIBS=$ac_check_lib_save_LIBS
8693 fi
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8695 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8696 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8697 LIBSOUND=-lossaudio
8698 else
8699 LIBSOUND=
8700 fi
8701
8702
8703
8704 ALSA_REQUIRED=1.0.0
8705 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8706
8707 succeeded=no
8708
8709 if test "$PKG_CONFIG" = "no" ; then
8710 HAVE_ALSA=no
8711 else
8712 PKG_CONFIG_MIN_VERSION=0.9.0
8713 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8715 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8716
8717 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8718 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8719 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8720 edit_cflags="
8721 s,///*,/,g
8722 s/^/ /
8723 s/ -I/ $isystem/g
8724 s/^ //
8725 "
8726 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8727 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8729 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8730 succeeded=yes
8731 else
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 $as_echo "no" >&6; }
8734 ALSA_CFLAGS=""
8735 ALSA_LIBS=""
8736 ## If we have a custom action on failure, don't print errors, but
8737 ## do set a variable so people can do so. Do it in a subshell
8738 ## to capture any diagnostics in invoking pkg-config.
8739 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8740
8741 fi
8742
8743
8744
8745 else
8746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8748 fi
8749 fi
8750
8751 if test $succeeded = yes; then
8752 HAVE_ALSA=yes
8753 else
8754 HAVE_ALSA=no
8755 fi
8756
8757 if test $HAVE_ALSA = yes; then
8758 SAVE_CFLAGS="$CFLAGS"
8759 SAVE_LIBS="$LIBS"
8760 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8761 LIBS="$ALSA_LIBS $LIBS"
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8764 #include <asoundlib.h>
8765 int
8766 main ()
8767 {
8768 snd_lib_error_set_handler (0);
8769 ;
8770 return 0;
8771 }
8772 _ACEOF
8773 if ac_fn_c_try_compile "$LINENO"; then :
8774 emacs_alsa_normal=yes
8775 else
8776 emacs_alsa_normal=no
8777 fi
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 if test "$emacs_alsa_normal" != yes; then
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8782 #include <alsa/asoundlib.h>
8783 int
8784 main ()
8785 {
8786 snd_lib_error_set_handler (0);
8787 ;
8788 return 0;
8789 }
8790 _ACEOF
8791 if ac_fn_c_try_compile "$LINENO"; then :
8792 emacs_alsa_subdir=yes
8793 else
8794 emacs_alsa_subdir=no
8795 fi
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 if test "$emacs_alsa_subdir" != yes; then
8798 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8799 fi
8800 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8801 fi
8802
8803 CFLAGS="$SAVE_CFLAGS"
8804 LIBS="$SAVE_LIBS"
8805 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8806 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8807
8808 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8809
8810 fi
8811
8812 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8813 case "$opsys" in
8814 gnu-linux|freebsd|netbsd)
8815
8816 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8817
8818 ;;
8819 esac
8820 fi
8821
8822
8823 fi
8824
8825
8826
8827
8828 for ac_header in $ac_header_list
8829 do :
8830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8831 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8832 "
8833 eval as_val=\$$as_ac_Header
8834 if test "x$as_val" = x""yes; then :
8835 cat >>confdefs.h <<_ACEOF
8836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8837 _ACEOF
8838
8839 fi
8840
8841 done
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8864 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8867 #include <sys/personality.h>
8868 int
8869 main ()
8870 {
8871 personality (PER_LINUX32)
8872 ;
8873 return 0;
8874 }
8875 _ACEOF
8876 if ac_fn_c_try_compile "$LINENO"; then :
8877 emacs_cv_personality_linux32=yes
8878 else
8879 emacs_cv_personality_linux32=no
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8883 $as_echo "$emacs_cv_personality_linux32" >&6; }
8884
8885 if test $emacs_cv_personality_linux32 = yes; then
8886
8887 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8888
8889 fi
8890
8891 for ac_header in term.h
8892 do :
8893 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8894 if test "x$ac_cv_header_term_h" = x""yes; then :
8895 cat >>confdefs.h <<_ACEOF
8896 #define HAVE_TERM_H 1
8897 _ACEOF
8898
8899 fi
8900
8901 done
8902
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8904 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8905 if test "${ac_cv_header_time+set}" = set; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910 #include <sys/types.h>
8911 #include <sys/time.h>
8912 #include <time.h>
8913
8914 int
8915 main ()
8916 {
8917 if ((struct tm *) 0)
8918 return 0;
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_compile "$LINENO"; then :
8924 ac_cv_header_time=yes
8925 else
8926 ac_cv_header_time=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929 fi
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8931 $as_echo "$ac_cv_header_time" >&6; }
8932 if test $ac_cv_header_time = yes; then
8933
8934 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8935
8936 fi
8937
8938 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8939
8940 "
8941 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8942 ac_have_decl=1
8943 else
8944 ac_have_decl=0
8945 fi
8946
8947 cat >>confdefs.h <<_ACEOF
8948 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8949 _ACEOF
8950
8951 if test $ac_cv_have_decl_sys_siglist != yes; then
8952 # For Tru64, at least:
8953 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8954
8955 "
8956 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8957 ac_have_decl=1
8958 else
8959 ac_have_decl=0
8960 fi
8961
8962 cat >>confdefs.h <<_ACEOF
8963 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8964 _ACEOF
8965
8966 if test $ac_cv_have_decl___sys_siglist = yes; then
8967
8968 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8969
8970 fi
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8973 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8974 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8979 #include <sys/types.h>
8980 #include <sys/wait.h>
8981 #ifndef WEXITSTATUS
8982 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8983 #endif
8984 #ifndef WIFEXITED
8985 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8986 #endif
8987
8988 int
8989 main ()
8990 {
8991 int s;
8992 wait (&s);
8993 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8994 ;
8995 return 0;
8996 }
8997 _ACEOF
8998 if ac_fn_c_try_compile "$LINENO"; then :
8999 ac_cv_header_sys_wait_h=yes
9000 else
9001 ac_cv_header_sys_wait_h=no
9002 fi
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 fi
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9006 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9007 if test $ac_cv_header_sys_wait_h = yes; then
9008
9009 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9010
9011 fi
9012
9013
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9015 $as_echo_n "checking for speed_t... " >&6; }
9016 if test "${emacs_cv_speed_t+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 #include <termios.h>
9022 int
9023 main ()
9024 {
9025 speed_t x = 1;
9026 ;
9027 return 0;
9028 }
9029 _ACEOF
9030 if ac_fn_c_try_compile "$LINENO"; then :
9031 emacs_cv_speed_t=yes
9032 else
9033 emacs_cv_speed_t=no
9034 fi
9035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036 fi
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9038 $as_echo "$emacs_cv_speed_t" >&6; }
9039 if test $emacs_cv_speed_t = yes; then
9040
9041 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9042
9043 fi
9044
9045
9046
9047
9048 for ac_header in net/if.h
9049 do :
9050 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9051 #if HAVE_SYS_SOCKET_H
9052 #include <sys/socket.h>
9053 #endif
9054 "
9055 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9056 cat >>confdefs.h <<_ACEOF
9057 #define HAVE_NET_IF_H 1
9058 _ACEOF
9059
9060 fi
9061
9062 done
9063
9064 for ac_header in ifaddrs.h
9065 do :
9066 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9067 #if HAVE_SYS_SOCKET_H
9068 #include <sys/socket.h>
9069 #endif
9070 "
9071 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9072 cat >>confdefs.h <<_ACEOF
9073 #define HAVE_IFADDRS_H 1
9074 _ACEOF
9075
9076 fi
9077
9078 done
9079
9080 for ac_header in net/if_dl.h
9081 do :
9082 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9083 #if HAVE_SYS_SOCKET_H
9084 #include <sys/socket.h>
9085 #endif
9086 "
9087 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9088 cat >>confdefs.h <<_ACEOF
9089 #define HAVE_NET_IF_DL_H 1
9090 _ACEOF
9091
9092 fi
9093
9094 done
9095
9096
9097 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$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_flags" = x""yes; then :
9106
9107 cat >>confdefs.h <<_ACEOF
9108 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9109 _ACEOF
9110
9111
9112 fi
9113 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$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_hwaddr" = x""yes; then :
9122
9123 cat >>confdefs.h <<_ACEOF
9124 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9125 _ACEOF
9126
9127
9128 fi
9129 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$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_netmask" = x""yes; then :
9138
9139 cat >>confdefs.h <<_ACEOF
9140 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9141 _ACEOF
9142
9143
9144 fi
9145 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9146 #if HAVE_SYS_SOCKET_H
9147 #include <sys/socket.h>
9148 #endif
9149 #if HAVE_NET_IF_H
9150 #include <net/if.h>
9151 #endif
9152 "
9153 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9154
9155 cat >>confdefs.h <<_ACEOF
9156 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9157 _ACEOF
9158
9159
9160 fi
9161 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9162 #if HAVE_SYS_SOCKET_H
9163 #include <sys/socket.h>
9164 #endif
9165 #if HAVE_NET_IF_H
9166 #include <net/if.h>
9167 #endif
9168 "
9169 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9170
9171 cat >>confdefs.h <<_ACEOF
9172 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9173 _ACEOF
9174
9175
9176 fi
9177 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9178 #if HAVE_SYS_SOCKET_H
9179 #include <sys/socket.h>
9180 #endif
9181 #if HAVE_NET_IF_H
9182 #include <net/if.h>
9183 #endif
9184 "
9185 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9186
9187 cat >>confdefs.h <<_ACEOF
9188 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9189 _ACEOF
9190
9191
9192 fi
9193
9194
9195
9196
9197 DEPFLAGS=
9198 MKDEPDIR=":"
9199 deps_frag=deps.mk
9200 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9202 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9203 HAVE_GNU_MAKE=no
9204 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9205 if test "x$testval" != x; then
9206 HAVE_GNU_MAKE=yes
9207 else
9208 ac_enable_autodepend=no
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9211 $as_echo "$HAVE_GNU_MAKE" >&6; }
9212 if test $HAVE_GNU_MAKE = yes; then
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9214 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9215 SAVE_CFLAGS="$CFLAGS"
9216 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219
9220 int
9221 main ()
9222 {
9223
9224 ;
9225 return 0;
9226 }
9227 _ACEOF
9228 if ac_fn_c_try_compile "$LINENO"; then :
9229
9230 else
9231 ac_enable_autodepend=no
9232 fi
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 CFLAGS="$SAVE_CFLAGS"
9235 test -f deps.d || ac_enable_autodepend=no
9236 rm -rf deps.d
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9238 $as_echo "$ac_enable_autodepend" >&6; }
9239 fi
9240 if test $ac_enable_autodepend = yes; then
9241 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9242 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9243 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9244 deps_frag=autodeps.mk
9245 fi
9246 fi
9247 deps_frag=$srcdir/src/$deps_frag
9248
9249
9250
9251
9252
9253 lisp_frag=$srcdir/src/lisp.mk
9254
9255
9256
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9258 $as_echo_n "checking for long file names... " >&6; }
9259 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 ac_cv_sys_long_file_names=yes
9263 # Test for long file names in all the places we know might matter:
9264 # . the current directory, where building will happen
9265 # $prefix/lib where we will be installing things
9266 # $exec_prefix/lib likewise
9267 # $TMPDIR if set, where it might want to write temporary files
9268 # /tmp where it might want to write temporary files
9269 # /var/tmp likewise
9270 # /usr/tmp likewise
9271 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9272 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9273 # in the usual case where exec_prefix is '${prefix}'.
9274 case $ac_dir in #(
9275 . | /* | ?:[\\/]*) ;; #(
9276 *) continue;;
9277 esac
9278 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9279 ac_xdir=$ac_dir/cf$$
9280 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9281 ac_tf1=$ac_xdir/conftest9012345
9282 ac_tf2=$ac_xdir/conftest9012346
9283 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9284 ac_cv_sys_long_file_names=no
9285 rm -f -r "$ac_xdir" 2>/dev/null
9286 test $ac_cv_sys_long_file_names = no && break
9287 done
9288 fi
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9290 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9291 if test $ac_cv_sys_long_file_names = yes; then
9292
9293 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9294
9295 fi
9296
9297
9298 #### Choose a window system.
9299
9300 ## We leave window_system equal to none if
9301 ## we end up building without one. Any new window system should
9302 ## set window_system to an appropriate value and add objects to
9303 ## window-system-specific substs.
9304
9305 window_system=none
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9307 $as_echo_n "checking for X... " >&6; }
9308
9309
9310 # Check whether --with-x was given.
9311 if test "${with_x+set}" = set; then :
9312 withval=$with_x;
9313 fi
9314
9315 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9316 if test "x$with_x" = xno; then
9317 # The user explicitly disabled X.
9318 have_x=disabled
9319 else
9320 case $x_includes,$x_libraries in #(
9321 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9322 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 # One or both of the vars are not set, and there is no cached value.
9326 ac_x_includes=no ac_x_libraries=no
9327 rm -f -r conftest.dir
9328 if mkdir conftest.dir; then
9329 cd conftest.dir
9330 cat >Imakefile <<'_ACEOF'
9331 incroot:
9332 @echo incroot='${INCROOT}'
9333 usrlibdir:
9334 @echo usrlibdir='${USRLIBDIR}'
9335 libdir:
9336 @echo libdir='${LIBDIR}'
9337 _ACEOF
9338 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9339 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9340 for ac_var in incroot usrlibdir libdir; do
9341 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9342 done
9343 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9344 for ac_extension in a so sl dylib la dll; do
9345 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9346 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9347 ac_im_usrlibdir=$ac_im_libdir; break
9348 fi
9349 done
9350 # Screen out bogus values from the imake configuration. They are
9351 # bogus both because they are the default anyway, and because
9352 # using them would break gcc on systems where it needs fixed includes.
9353 case $ac_im_incroot in
9354 /usr/include) ac_x_includes= ;;
9355 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9356 esac
9357 case $ac_im_usrlibdir in
9358 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9359 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9360 esac
9361 fi
9362 cd ..
9363 rm -f -r conftest.dir
9364 fi
9365
9366 # Standard set of common directories for X headers.
9367 # Check X11 before X11Rn because it is often a symlink to the current release.
9368 ac_x_header_dirs='
9369 /usr/X11/include
9370 /usr/X11R7/include
9371 /usr/X11R6/include
9372 /usr/X11R5/include
9373 /usr/X11R4/include
9374
9375 /usr/include/X11
9376 /usr/include/X11R7
9377 /usr/include/X11R6
9378 /usr/include/X11R5
9379 /usr/include/X11R4
9380
9381 /usr/local/X11/include
9382 /usr/local/X11R7/include
9383 /usr/local/X11R6/include
9384 /usr/local/X11R5/include
9385 /usr/local/X11R4/include
9386
9387 /usr/local/include/X11
9388 /usr/local/include/X11R7
9389 /usr/local/include/X11R6
9390 /usr/local/include/X11R5
9391 /usr/local/include/X11R4
9392
9393 /usr/X386/include
9394 /usr/x386/include
9395 /usr/XFree86/include/X11
9396
9397 /usr/include
9398 /usr/local/include
9399 /usr/unsupported/include
9400 /usr/athena/include
9401 /usr/local/x11r5/include
9402 /usr/lpp/Xamples/include
9403
9404 /usr/openwin/include
9405 /usr/openwin/share/include'
9406
9407 if test "$ac_x_includes" = no; then
9408 # Guess where to find include files, by looking for Xlib.h.
9409 # First, try using that file with no special directory specified.
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 #include <X11/Xlib.h>
9413 _ACEOF
9414 if ac_fn_c_try_cpp "$LINENO"; then :
9415 # We can compile using X headers with no special include directory.
9416 ac_x_includes=
9417 else
9418 for ac_dir in $ac_x_header_dirs; do
9419 if test -r "$ac_dir/X11/Xlib.h"; then
9420 ac_x_includes=$ac_dir
9421 break
9422 fi
9423 done
9424 fi
9425 rm -f conftest.err conftest.$ac_ext
9426 fi # $ac_x_includes = no
9427
9428 if test "$ac_x_libraries" = no; then
9429 # Check for the libraries.
9430 # See if we find them without any special options.
9431 # Don't add to $LIBS permanently.
9432 ac_save_LIBS=$LIBS
9433 LIBS="-lX11 $LIBS"
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 #include <X11/Xlib.h>
9437 int
9438 main ()
9439 {
9440 XrmInitialize ()
9441 ;
9442 return 0;
9443 }
9444 _ACEOF
9445 if ac_fn_c_try_link "$LINENO"; then :
9446 LIBS=$ac_save_LIBS
9447 # We can link X programs with no special library path.
9448 ac_x_libraries=
9449 else
9450 LIBS=$ac_save_LIBS
9451 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9452 do
9453 # Don't even attempt the hair of trying to link an X program!
9454 for ac_extension in a so sl dylib la dll; do
9455 if test -r "$ac_dir/libX11.$ac_extension"; then
9456 ac_x_libraries=$ac_dir
9457 break 2
9458 fi
9459 done
9460 done
9461 fi
9462 rm -f core conftest.err conftest.$ac_objext \
9463 conftest$ac_exeext conftest.$ac_ext
9464 fi # $ac_x_libraries = no
9465
9466 case $ac_x_includes,$ac_x_libraries in #(
9467 no,* | *,no | *\'*)
9468 # Didn't find X, or a directory has "'" in its name.
9469 ac_cv_have_x="have_x=no";; #(
9470 *)
9471 # Record where we found X for the cache.
9472 ac_cv_have_x="have_x=yes\
9473 ac_x_includes='$ac_x_includes'\
9474 ac_x_libraries='$ac_x_libraries'"
9475 esac
9476 fi
9477 ;; #(
9478 *) have_x=yes;;
9479 esac
9480 eval "$ac_cv_have_x"
9481 fi # $with_x != no
9482
9483 if test "$have_x" != yes; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9485 $as_echo "$have_x" >&6; }
9486 no_x=yes
9487 else
9488 # If each of the values was on the command line, it overrides each guess.
9489 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9490 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9491 # Update the cache value to reflect the command line values.
9492 ac_cv_have_x="have_x=yes\
9493 ac_x_includes='$x_includes'\
9494 ac_x_libraries='$x_libraries'"
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9496 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9497 fi
9498
9499 if test "$no_x" != yes; then
9500 window_system=x11
9501 fi
9502
9503 LD_SWITCH_X_SITE_RPATH=
9504 if test "${x_libraries}" != NONE; then
9505 if test -n "${x_libraries}"; then
9506 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9507 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9508 fi
9509 x_default_search_path=""
9510 x_search_path=${x_libraries}
9511 if test -z "${x_search_path}"; then
9512 x_search_path=/usr/lib
9513 fi
9514 for x_library in `echo ${x_search_path}: | \
9515 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9516 x_search_path="\
9517 ${x_library}/X11/%L/%T/%N%C%S:\
9518 ${x_library}/X11/%l/%T/%N%C%S:\
9519 ${x_library}/X11/%T/%N%C%S:\
9520 ${x_library}/X11/%L/%T/%N%S:\
9521 ${x_library}/X11/%l/%T/%N%S:\
9522 ${x_library}/X11/%T/%N%S"
9523 if test x"${x_default_search_path}" = x; then
9524 x_default_search_path=${x_search_path}
9525 else
9526 x_default_search_path="${x_search_path}:${x_default_search_path}"
9527 fi
9528 done
9529 fi
9530
9531
9532 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9533 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9534 fi
9535
9536 if test x"${x_includes}" = x; then
9537 bitmapdir=/usr/include/X11/bitmaps
9538 else
9539 # accumulate include directories that have X11 bitmap subdirectories
9540 bmd_acc="dummyval"
9541 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9542 if test -d "${bmd}/X11/bitmaps"; then
9543 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9544 fi
9545 if test -d "${bmd}/bitmaps"; then
9546 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9547 fi
9548 done
9549 if test ${bmd_acc} != "dummyval"; then
9550 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9551 fi
9552 fi
9553
9554 HAVE_NS=no
9555 NS_IMPL_COCOA=no
9556 NS_IMPL_GNUSTEP=no
9557 tmp_CPPFLAGS="$CPPFLAGS"
9558 tmp_CFLAGS="$CFLAGS"
9559 CPPFLAGS="$CPPFLAGS -x objective-c"
9560 CFLAGS="$CFLAGS -x objective-c"
9561 GNU_OBJC_CFLAGS=
9562 LIBS_GNUSTEP=
9563 if test "${with_ns}" != no; then
9564 if test "${opsys}" = darwin; then
9565 NS_IMPL_COCOA=yes
9566 ns_appdir=`pwd`/nextstep/Emacs.app
9567 ns_appbindir=${ns_appdir}/Contents/MacOS
9568 ns_appresdir=${ns_appdir}/Contents/Resources
9569 ns_appsrc=Cocoa/Emacs.base
9570 elif test -f $GNUSTEP_CONFIG_FILE; then
9571 NS_IMPL_GNUSTEP=yes
9572 ns_appdir=`pwd`/nextstep/Emacs.app
9573 ns_appbindir=${ns_appdir}
9574 ns_appresdir=${ns_appdir}/Resources
9575 ns_appsrc=GNUstep/Emacs.base
9576 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9577 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9578 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9579 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9580 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9581 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9582 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9583 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9584 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9585 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9586 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9587 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9589 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9590 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595 #include <GNUstepBase/GSConfig.h>
9596 int
9597 main ()
9598 {
9599 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9600 1;
9601 #else
9602 fail;
9603 #endif
9604 ;
9605 return 0;
9606 }
9607 _ACEOF
9608 if ac_fn_c_try_compile "$LINENO"; then :
9609 emacs_cv_objc_exceptions=yes
9610 else
9611 emacs_cv_objc_exceptions=no
9612 fi
9613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614 fi
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9616 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9617 if test $emacs_cv_objc_exceptions = yes; then
9618
9619 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9620
9621 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9622 fi
9623 fi
9624
9625 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9626
9627 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9628 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9629 HAVE_NS=yes
9630 else
9631 as_fn_error "\`--with-ns' was specified, but the include
9632 files are missing or cannot be compiled." "$LINENO" 5
9633 fi
9634
9635
9636
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9639 #include <AppKit/AppKit.h>
9640 int
9641 main ()
9642 {
9643
9644 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9645 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9646 ; /* OK */
9647 #else
9648 #error "OSX 10.4 or newer required"
9649 #endif
9650 #endif
9651
9652 ;
9653 return 0;
9654 }
9655 _ACEOF
9656 if ac_fn_c_try_compile "$LINENO"; then :
9657 ns_osx_have_104=yes
9658 else
9659 ns_osx_have_104=no
9660 fi
9661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9664 #include <Foundation/NSObjCRuntime.h>
9665 int
9666 main ()
9667 {
9668 NSInteger i;
9669 ;
9670 return 0;
9671 }
9672 _ACEOF
9673 if ac_fn_c_try_compile "$LINENO"; then :
9674 ns_have_nsinteger=yes
9675 else
9676 ns_have_nsinteger=no
9677 fi
9678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679 if test $ns_osx_have_104 = no; then
9680 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9681 fi
9682 if test $ns_have_nsinteger = yes; then
9683
9684 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9685
9686 fi
9687 fi
9688
9689
9690
9691 INSTALL_ARCH_INDEP_EXTRA=install-etc
9692 ns_self_contained=no
9693 NS_OBJ=
9694 NS_OBJC_OBJ=
9695 if test "${HAVE_NS}" = yes; then
9696 if test "$with_toolkit_scroll_bars" = "no"; then
9697 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9698 fi
9699
9700 window_system=nextstep
9701 # set up packaging dirs
9702 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9703 ns_self_contained=yes
9704 prefix=${ns_appresdir}
9705 exec_prefix=${ns_appbindir}
9706 libexecdir="\${ns_appbindir}/libexec"
9707 archlibdir="\${ns_appbindir}/libexec"
9708 docdir="\${ns_appresdir}/etc"
9709 etcdir="\${ns_appresdir}/etc"
9710 infodir="\${ns_appresdir}/info"
9711 mandir="\${ns_appresdir}/man"
9712 lispdir="\${ns_appresdir}/lisp"
9713 leimdir="\${ns_appresdir}/leim"
9714 INSTALL_ARCH_INDEP_EXTRA=
9715 fi
9716 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9717 fi
9718 CFLAGS="$tmp_CFLAGS"
9719 CPPFLAGS="$tmp_CPPFLAGS"
9720
9721
9722
9723
9724
9725 HAVE_W32=no
9726 W32_OBJ=
9727 W32_LIBS=
9728 W32_RES=
9729 W32_RES_LINK=
9730 if test "${with_w32}" != no; then
9731 if test "${opsys}" != "cygwin"; then
9732 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9733 fi
9734 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9735 if test "x$ac_cv_header_windows_h" = x""yes; then :
9736 HAVE_W32=yes
9737 else
9738 as_fn_error "\`--with-w32' was specified, but windows.h
9739 cannot be found." "$LINENO" 5
9740 fi
9741
9742
9743
9744 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9745
9746 if test -n "$ac_tool_prefix"; then
9747 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9748 set dummy ${ac_tool_prefix}windres; ac_word=$2
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750 $as_echo_n "checking for $ac_word... " >&6; }
9751 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 if test -n "$WINDRES"; then
9755 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9756 else
9757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9758 for as_dir in $PATH
9759 do
9760 IFS=$as_save_IFS
9761 test -z "$as_dir" && as_dir=.
9762 for ac_exec_ext in '' $ac_executable_extensions; do
9763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9764 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9766 break 2
9767 fi
9768 done
9769 done
9770 IFS=$as_save_IFS
9771
9772 fi
9773 fi
9774 WINDRES=$ac_cv_prog_WINDRES
9775 if test -n "$WINDRES"; then
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9777 $as_echo "$WINDRES" >&6; }
9778 else
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9781 fi
9782
9783
9784 fi
9785 if test -z "$ac_cv_prog_WINDRES"; then
9786 ac_ct_WINDRES=$WINDRES
9787 # Extract the first word of "windres", so it can be a program name with args.
9788 set dummy windres; ac_word=$2
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9790 $as_echo_n "checking for $ac_word... " >&6; }
9791 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 if test -n "$ac_ct_WINDRES"; then
9795 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9796 else
9797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798 for as_dir in $PATH
9799 do
9800 IFS=$as_save_IFS
9801 test -z "$as_dir" && as_dir=.
9802 for ac_exec_ext in '' $ac_executable_extensions; do
9803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9804 ac_cv_prog_ac_ct_WINDRES="windres"
9805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9806 break 2
9807 fi
9808 done
9809 done
9810 IFS=$as_save_IFS
9811
9812 fi
9813 fi
9814 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9815 if test -n "$ac_ct_WINDRES"; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9817 $as_echo "$ac_ct_WINDRES" >&6; }
9818 else
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820 $as_echo "no" >&6; }
9821 fi
9822
9823 if test "x$ac_ct_WINDRES" = x; then
9824 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
9825 else
9826 case $cross_compiling:$ac_tool_warned in
9827 yes:)
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9830 ac_tool_warned=yes ;;
9831 esac
9832 WINDRES=$ac_ct_WINDRES
9833 fi
9834 else
9835 WINDRES="$ac_cv_prog_WINDRES"
9836 fi
9837
9838 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9839 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9840 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9841 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9842 W32_RES="emacs.res"
9843 # Tell the linker that emacs.res is an object (which we compile from
9844 # the rc file), not a linker script.
9845 W32_RES_LINK="-Wl,-bpe-i386 -Wl,emacs.res"
9846 fi
9847
9848
9849
9850
9851
9852 if test "${HAVE_W32}" = "yes"; then
9853 window_system=w32
9854 with_xft=no
9855 fi
9856
9857 ## $window_system is now set to the window system we will
9858 ## ultimately use.
9859
9860 term_header=
9861 HAVE_X_WINDOWS=no
9862 HAVE_X11=no
9863 USE_X_TOOLKIT=none
9864
9865 case "${window_system}" in
9866 x11 )
9867 HAVE_X_WINDOWS=yes
9868 HAVE_X11=yes
9869 term_header=xterm.h
9870 case "${with_x_toolkit}" in
9871 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9872 motif ) USE_X_TOOLKIT=MOTIF ;;
9873 gtk ) with_gtk=yes
9874 term_header=gtkutil.h
9875 USE_X_TOOLKIT=none ;;
9876 gtk2 ) with_gtk2=yes
9877 term_header=gtkutil.h
9878 USE_X_TOOLKIT=none ;;
9879 gtk3 ) with_gtk3=yes
9880 term_header=gtkutil.h
9881 USE_X_TOOLKIT=none ;;
9882 no ) USE_X_TOOLKIT=none ;;
9883 * ) USE_X_TOOLKIT=maybe ;;
9884 esac
9885 ;;
9886 nextstep )
9887 term_header=nsterm.h
9888 ;;
9889 w32 )
9890 term_header=w32term.h
9891 ;;
9892 esac
9893
9894 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9895 # Extract the first word of "X", so it can be a program name with args.
9896 set dummy X; ac_word=$2
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898 $as_echo_n "checking for $ac_word... " >&6; }
9899 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 if test -n "$HAVE_XSERVER"; then
9903 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9904 else
9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906 for as_dir in $PATH
9907 do
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9912 ac_cv_prog_HAVE_XSERVER="true"
9913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9914 break 2
9915 fi
9916 done
9917 done
9918 IFS=$as_save_IFS
9919
9920 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9921 fi
9922 fi
9923 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9924 if test -n "$HAVE_XSERVER"; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9926 $as_echo "$HAVE_XSERVER" >&6; }
9927 else
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 $as_echo "no" >&6; }
9930 fi
9931
9932
9933 if test "$HAVE_XSERVER" = true ||
9934 test -n "$DISPLAY" ||
9935 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9936 as_fn_error "You seem to be running X, but no X development libraries
9937 were found. You should install the relevant development files for X
9938 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9939 sure you have development files for image handling, i.e.
9940 tiff, gif, jpeg, png and xpm.
9941 If you are sure you want Emacs compiled without X window support, pass
9942 --without-x
9943 to configure." "$LINENO" 5
9944 fi
9945 fi
9946
9947 ### If we're using X11, we should use the X menu package.
9948 HAVE_MENUS=no
9949 case ${HAVE_X11} in
9950 yes ) HAVE_MENUS=yes ;;
9951 esac
9952
9953 # Does the opsystem file prohibit the use of the GNU malloc?
9954 # Assume not, until told otherwise.
9955 GNU_MALLOC=yes
9956
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9958 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9959 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964 #include <malloc.h>
9965 static void hook (void) {}
9966 int
9967 main ()
9968 {
9969 malloc_set_state (malloc_get_state ());
9970 __after_morecore_hook = hook;
9971 __malloc_initialize_hook = hook;
9972 ;
9973 return 0;
9974 }
9975 _ACEOF
9976 if ac_fn_c_try_link "$LINENO"; then :
9977 emacs_cv_var_doug_lea_malloc=yes
9978 else
9979 emacs_cv_var_doug_lea_malloc=no
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 fi
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9985 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9986 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9987
9988
9989 system_malloc=no
9990 case "$opsys" in
9991 ## darwin ld insists on the use of malloc routines in the System framework.
9992 darwin|sol2-10) system_malloc=yes ;;
9993 esac
9994
9995 if test "${system_malloc}" = "yes"; then
9996
9997 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9998
9999 GNU_MALLOC=no
10000 GNU_MALLOC_reason="
10001 (The GNU allocators don't work with this system configuration.)"
10002 GMALLOC_OBJ=
10003 VMLIMIT_OBJ=
10004 else
10005 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10006 VMLIMIT_OBJ=vm-limit.o
10007
10008 for ac_header in sys/vlimit.h
10009 do :
10010 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10011 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10012 cat >>confdefs.h <<_ACEOF
10013 #define HAVE_SYS_VLIMIT_H 1
10014 _ACEOF
10015
10016 fi
10017
10018 done
10019
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10021 $as_echo_n "checking for data_start... " >&6; }
10022 if test "${emacs_cv_data_start+set}" = set; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027 extern char data_start[]; char ch;
10028 int
10029 main ()
10030 {
10031 return data_start < &ch;
10032 ;
10033 return 0;
10034 }
10035 _ACEOF
10036 if ac_fn_c_try_link "$LINENO"; then :
10037 emacs_cv_data_start=yes
10038 else
10039 emacs_cv_data_start=no
10040 fi
10041 rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 fi
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10045 $as_echo "$emacs_cv_data_start" >&6; }
10046 if test $emacs_cv_data_start = yes; then
10047
10048 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10049
10050 fi
10051 fi
10052
10053
10054
10055 if test "$doug_lea_malloc" = "yes" ; then
10056 if test "$GNU_MALLOC" = yes ; then
10057 GNU_MALLOC_reason="
10058 (Using Doug Lea's new malloc from the GNU C Library.)"
10059 fi
10060
10061 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10062
10063
10064 ## Use mmap directly for allocating larger buffers.
10065 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10066 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10067 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10068 case "$opsys" in
10069 gnu*) REL_ALLOC=no ;;
10070 esac
10071 fi
10072
10073 if test x"${REL_ALLOC}" = x; then
10074 REL_ALLOC=${GNU_MALLOC}
10075 fi
10076
10077 use_mmap_for_buffers=no
10078 case "$opsys" in
10079 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10080 esac
10081
10082
10083
10084
10085
10086
10087
10088
10089 for ac_func in getpagesize
10090 do :
10091 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10092 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10093 cat >>confdefs.h <<_ACEOF
10094 #define HAVE_GETPAGESIZE 1
10095 _ACEOF
10096
10097 fi
10098 done
10099
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10101 $as_echo_n "checking for working mmap... " >&6; }
10102 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 if test "$cross_compiling" = yes; then :
10106 ac_cv_func_mmap_fixed_mapped=no
10107 else
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 $ac_includes_default
10111 /* malloc might have been renamed as rpl_malloc. */
10112 #undef malloc
10113
10114 /* Thanks to Mike Haertel and Jim Avera for this test.
10115 Here is a matrix of mmap possibilities:
10116 mmap private not fixed
10117 mmap private fixed at somewhere currently unmapped
10118 mmap private fixed at somewhere already mapped
10119 mmap shared not fixed
10120 mmap shared fixed at somewhere currently unmapped
10121 mmap shared fixed at somewhere already mapped
10122 For private mappings, we should verify that changes cannot be read()
10123 back from the file, nor mmap's back from the file at a different
10124 address. (There have been systems where private was not correctly
10125 implemented like the infamous i386 svr4.0, and systems where the
10126 VM page cache was not coherent with the file system buffer cache
10127 like early versions of FreeBSD and possibly contemporary NetBSD.)
10128 For shared mappings, we should conversely verify that changes get
10129 propagated back to all the places they're supposed to be.
10130
10131 Grep wants private fixed already mapped.
10132 The main things grep needs to know about mmap are:
10133 * does it exist and is it safe to write into the mmap'd area
10134 * how to use it (BSD variants) */
10135
10136 #include <fcntl.h>
10137 #include <sys/mman.h>
10138
10139 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10140 char *malloc ();
10141 #endif
10142
10143 /* This mess was copied from the GNU getpagesize.h. */
10144 #ifndef HAVE_GETPAGESIZE
10145 # ifdef _SC_PAGESIZE
10146 # define getpagesize() sysconf(_SC_PAGESIZE)
10147 # else /* no _SC_PAGESIZE */
10148 # ifdef HAVE_SYS_PARAM_H
10149 # include <sys/param.h>
10150 # ifdef EXEC_PAGESIZE
10151 # define getpagesize() EXEC_PAGESIZE
10152 # else /* no EXEC_PAGESIZE */
10153 # ifdef NBPG
10154 # define getpagesize() NBPG * CLSIZE
10155 # ifndef CLSIZE
10156 # define CLSIZE 1
10157 # endif /* no CLSIZE */
10158 # else /* no NBPG */
10159 # ifdef NBPC
10160 # define getpagesize() NBPC
10161 # else /* no NBPC */
10162 # ifdef PAGESIZE
10163 # define getpagesize() PAGESIZE
10164 # endif /* PAGESIZE */
10165 # endif /* no NBPC */
10166 # endif /* no NBPG */
10167 # endif /* no EXEC_PAGESIZE */
10168 # else /* no HAVE_SYS_PARAM_H */
10169 # define getpagesize() 8192 /* punt totally */
10170 # endif /* no HAVE_SYS_PARAM_H */
10171 # endif /* no _SC_PAGESIZE */
10172
10173 #endif /* no HAVE_GETPAGESIZE */
10174
10175 int
10176 main ()
10177 {
10178 char *data, *data2, *data3;
10179 const char *cdata2;
10180 int i, pagesize;
10181 int fd, fd2;
10182
10183 pagesize = getpagesize ();
10184
10185 /* First, make a file with some known garbage in it. */
10186 data = (char *) malloc (pagesize);
10187 if (!data)
10188 return 1;
10189 for (i = 0; i < pagesize; ++i)
10190 *(data + i) = rand ();
10191 umask (0);
10192 fd = creat ("conftest.mmap", 0600);
10193 if (fd < 0)
10194 return 2;
10195 if (write (fd, data, pagesize) != pagesize)
10196 return 3;
10197 close (fd);
10198
10199 /* Next, check that the tail of a page is zero-filled. File must have
10200 non-zero length, otherwise we risk SIGBUS for entire page. */
10201 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10202 if (fd2 < 0)
10203 return 4;
10204 cdata2 = "";
10205 if (write (fd2, cdata2, 1) != 1)
10206 return 5;
10207 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10208 if (data2 == MAP_FAILED)
10209 return 6;
10210 for (i = 0; i < pagesize; ++i)
10211 if (*(data2 + i))
10212 return 7;
10213 close (fd2);
10214 if (munmap (data2, pagesize))
10215 return 8;
10216
10217 /* Next, try to mmap the file at a fixed address which already has
10218 something else allocated at it. If we can, also make sure that
10219 we see the same garbage. */
10220 fd = open ("conftest.mmap", O_RDWR);
10221 if (fd < 0)
10222 return 9;
10223 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10224 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10225 return 10;
10226 for (i = 0; i < pagesize; ++i)
10227 if (*(data + i) != *(data2 + i))
10228 return 11;
10229
10230 /* Finally, make sure that changes to the mapped area do not
10231 percolate back to the file as seen by read(). (This is a bug on
10232 some variants of i386 svr4.0.) */
10233 for (i = 0; i < pagesize; ++i)
10234 *(data2 + i) = *(data2 + i) + 1;
10235 data3 = (char *) malloc (pagesize);
10236 if (!data3)
10237 return 12;
10238 if (read (fd, data3, pagesize) != pagesize)
10239 return 13;
10240 for (i = 0; i < pagesize; ++i)
10241 if (*(data + i) != *(data3 + i))
10242 return 14;
10243 close (fd);
10244 return 0;
10245 }
10246 _ACEOF
10247 if ac_fn_c_try_run "$LINENO"; then :
10248 ac_cv_func_mmap_fixed_mapped=yes
10249 else
10250 ac_cv_func_mmap_fixed_mapped=no
10251 fi
10252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10253 conftest.$ac_objext conftest.beam conftest.$ac_ext
10254 fi
10255
10256 fi
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10258 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10259 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10260
10261 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10262
10263 fi
10264 rm -f conftest.mmap conftest.txt
10265
10266 if test $use_mmap_for_buffers = yes; then
10267
10268 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10269
10270 REL_ALLOC=no
10271 fi
10272
10273 LIBS="$LIBS_SYSTEM $LIBS"
10274
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10276 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10277 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 ac_check_lib_save_LIBS=$LIBS
10281 LIBS="-ldnet $LIBS"
10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h. */
10284
10285 /* Override any GCC internal prototype to avoid an error.
10286 Use char because int might match the return type of a GCC
10287 builtin and then its argument prototype would still apply. */
10288 #ifdef __cplusplus
10289 extern "C"
10290 #endif
10291 char dnet_ntoa ();
10292 int
10293 main ()
10294 {
10295 return dnet_ntoa ();
10296 ;
10297 return 0;
10298 }
10299 _ACEOF
10300 if ac_fn_c_try_link "$LINENO"; then :
10301 ac_cv_lib_dnet_dnet_ntoa=yes
10302 else
10303 ac_cv_lib_dnet_dnet_ntoa=no
10304 fi
10305 rm -f core conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10307 LIBS=$ac_check_lib_save_LIBS
10308 fi
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10310 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10311 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10312 cat >>confdefs.h <<_ACEOF
10313 #define HAVE_LIBDNET 1
10314 _ACEOF
10315
10316 LIBS="-ldnet $LIBS"
10317
10318 fi
10319
10320
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10322 $as_echo_n "checking for main in -lXbsd... " >&6; }
10323 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-lXbsd $LIBS"
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330
10331
10332 int
10333 main ()
10334 {
10335 return main ();
10336 ;
10337 return 0;
10338 }
10339 _ACEOF
10340 if ac_fn_c_try_link "$LINENO"; then :
10341 ac_cv_lib_Xbsd_main=yes
10342 else
10343 ac_cv_lib_Xbsd_main=no
10344 fi
10345 rm -f core conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10347 LIBS=$ac_check_lib_save_LIBS
10348 fi
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10350 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10351 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10352 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10353 fi
10354
10355
10356 LIB_PTHREAD=
10357
10358
10359
10360 if test "$ac_cv_header_pthread_h"; then
10361 if test "$GMALLOC_OBJ" = gmalloc.o; then
10362 emacs_pthread_function=pthread_atfork
10363 else
10364 emacs_pthread_function=pthread_self
10365 fi
10366 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10368 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10369 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 ac_check_lib_save_LIBS=$LIBS
10373 LIBS="-lpthread $LIBS"
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376
10377 /* Override any GCC internal prototype to avoid an error.
10378 Use char because int might match the return type of a GCC
10379 builtin and then its argument prototype would still apply. */
10380 #ifdef __cplusplus
10381 extern "C"
10382 #endif
10383 char $emacs_pthread_function ();
10384 int
10385 main ()
10386 {
10387 return $emacs_pthread_function ();
10388 ;
10389 return 0;
10390 }
10391 _ACEOF
10392 if ac_fn_c_try_link "$LINENO"; then :
10393 eval "$as_ac_Lib=yes"
10394 else
10395 eval "$as_ac_Lib=no"
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10399 LIBS=$ac_check_lib_save_LIBS
10400 fi
10401 eval ac_res=\$$as_ac_Lib
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10403 $as_echo "$ac_res" >&6; }
10404 eval as_val=\$$as_ac_Lib
10405 if test "x$as_val" = x""yes; then :
10406 HAVE_PTHREAD=yes
10407 fi
10408
10409 fi
10410 if test "$HAVE_PTHREAD" = yes; then
10411 case "${canonical}" in
10412 *-hpux*) ;;
10413 *) LIB_PTHREAD="-lpthread"
10414 LIBS="$LIB_PTHREAD $LIBS" ;;
10415 esac
10416
10417 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10418
10419 fi
10420
10421
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10423 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10424 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lpthreads $LIBS"
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431
10432 /* Override any GCC internal prototype to avoid an error.
10433 Use char because int might match the return type of a GCC
10434 builtin and then its argument prototype would still apply. */
10435 #ifdef __cplusplus
10436 extern "C"
10437 #endif
10438 char cma_open ();
10439 int
10440 main ()
10441 {
10442 return cma_open ();
10443 ;
10444 return 0;
10445 }
10446 _ACEOF
10447 if ac_fn_c_try_link "$LINENO"; then :
10448 ac_cv_lib_pthreads_cma_open=yes
10449 else
10450 ac_cv_lib_pthreads_cma_open=no
10451 fi
10452 rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LIBS=$ac_check_lib_save_LIBS
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10457 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10458 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10459 cat >>confdefs.h <<_ACEOF
10460 #define HAVE_LIBPTHREADS 1
10461 _ACEOF
10462
10463 LIBS="-lpthreads $LIBS"
10464
10465 fi
10466
10467
10468 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10469 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10470 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10471 ## added to LIBS in configure would never contain the pthreads part,
10472 ## but the value used in Makefiles might. FIXME?
10473 ##
10474 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10475 ## be harmless on older versions of X where it happens to exist.
10476 test "$opsys" = "aix4-2" && \
10477 test $ac_cv_lib_pthreads_cma_open = yes && \
10478 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10479
10480
10481 case ${host_os} in
10482 aix*)
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10484 $as_echo_n "checking for -bbigtoc option... " >&6; }
10485 if test "${gdb_cv_bigtoc+set}" = set; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488
10489 case $GCC in
10490 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10491 *) gdb_cv_bigtoc=-bbigtoc ;;
10492 esac
10493
10494 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10497
10498 int
10499 main ()
10500 {
10501 int i;
10502 ;
10503 return 0;
10504 }
10505 _ACEOF
10506 if ac_fn_c_try_link "$LINENO"; then :
10507
10508 else
10509 gdb_cv_bigtoc=
10510 fi
10511 rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10513
10514 fi
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10516 $as_echo "$gdb_cv_bigtoc" >&6; }
10517 ;;
10518 esac
10519
10520 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10521 # used for the tests that follow. We set them back to REAL_CFLAGS and
10522 # REAL_CPPFLAGS later on.
10523
10524 REAL_CFLAGS="$CFLAGS"
10525 REAL_CPPFLAGS="$CPPFLAGS"
10526
10527 if test "${HAVE_X11}" = "yes"; then
10528 DEFS="$C_SWITCH_X_SITE $DEFS"
10529 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10530 LIBS="-lX11 $LIBS"
10531 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10532 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10533
10534 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10535 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10536 # but it's more convenient here to set LD_RUN_PATH since this
10537 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10538 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10539 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10540 export LD_RUN_PATH
10541 fi
10542
10543 if test "${opsys}" = "gnu-linux"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10545 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10548
10549 int
10550 main ()
10551 {
10552 XOpenDisplay ("foo");
10553 ;
10554 return 0;
10555 }
10556 _ACEOF
10557 if ac_fn_c_try_link "$LINENO"; then :
10558 xgnu_linux_first_failure=no
10559 else
10560 xgnu_linux_first_failure=yes
10561 fi
10562 rm -f core conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext conftest.$ac_ext
10564 if test "${xgnu_linux_first_failure}" = "yes"; then
10565 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10566 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10567 OLD_CPPFLAGS="$CPPFLAGS"
10568 OLD_LIBS="$LIBS"
10569 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10570 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10571 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10572 LIBS="$LIBS -b i486-linuxaout"
10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10575
10576 int
10577 main ()
10578 {
10579 XOpenDisplay ("foo");
10580 ;
10581 return 0;
10582 }
10583 _ACEOF
10584 if ac_fn_c_try_link "$LINENO"; then :
10585 xgnu_linux_second_failure=no
10586 else
10587 xgnu_linux_second_failure=yes
10588 fi
10589 rm -f core conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591 if test "${xgnu_linux_second_failure}" = "yes"; then
10592 # If we get the same failure with -b, there is no use adding -b.
10593 # So take it out. This plays safe.
10594 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10595 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10596 CPPFLAGS="$OLD_CPPFLAGS"
10597 LIBS="$OLD_LIBS"
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; }
10600 else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10602 $as_echo "yes" >&6; }
10603 fi
10604 else
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; }
10607 fi
10608 fi
10609
10610 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10611 # header files included from there.
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10613 $as_echo_n "checking for Xkb... " >&6; }
10614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10616 #include <X11/Xlib.h>
10617 #include <X11/XKBlib.h>
10618 int
10619 main ()
10620 {
10621 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10622 ;
10623 return 0;
10624 }
10625 _ACEOF
10626 if ac_fn_c_try_link "$LINENO"; then :
10627 emacs_xkb=yes
10628 else
10629 emacs_xkb=no
10630 fi
10631 rm -f core conftest.err conftest.$ac_objext \
10632 conftest$ac_exeext conftest.$ac_ext
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10634 $as_echo "$emacs_xkb" >&6; }
10635 if test $emacs_xkb = yes; then
10636
10637 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10638
10639 fi
10640
10641 for ac_func in XrmSetDatabase XScreenResourceString \
10642 XScreenNumberOfScreen
10643 do :
10644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10646 eval as_val=\$$as_ac_var
10647 if test "x$as_val" = x""yes; then :
10648 cat >>confdefs.h <<_ACEOF
10649 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10650 _ACEOF
10651
10652 fi
10653 done
10654
10655 fi
10656
10657 if test "${window_system}" = "x11"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10659 $as_echo_n "checking X11 version 6... " >&6; }
10660 if test "${emacs_cv_x11_version_6+set}" = set; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665 #include <X11/Xlib.h>
10666 int
10667 main ()
10668 {
10669 #if XlibSpecificationRelease < 6
10670 fail;
10671 #endif
10672
10673 ;
10674 return 0;
10675 }
10676 _ACEOF
10677 if ac_fn_c_try_link "$LINENO"; then :
10678 emacs_cv_x11_version_6=yes
10679 else
10680 emacs_cv_x11_version_6=no
10681 fi
10682 rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 fi
10685
10686 if test $emacs_cv_x11_version_6 = yes; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10688 $as_echo "6 or newer" >&6; }
10689
10690 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10691
10692
10693 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10694
10695 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10696 ## XIM support.
10697 case "$opsys" in
10698 sol2-*) : ;;
10699 *)
10700 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10701
10702 ;;
10703 esac
10704 else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10706 $as_echo "before 6" >&6; }
10707 fi
10708 fi
10709
10710
10711 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10712 HAVE_RSVG=no
10713 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10714 if test "${with_rsvg}" != "no"; then
10715 RSVG_REQUIRED=2.11.0
10716 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10717
10718
10719 succeeded=no
10720
10721 if test "$PKG_CONFIG" = "no" ; then
10722 :
10723 else
10724 PKG_CONFIG_MIN_VERSION=0.9.0
10725 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10727 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10728
10729 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10730 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10731 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10732 edit_cflags="
10733 s,///*,/,g
10734 s/^/ /
10735 s/ -I/ $isystem/g
10736 s/^ //
10737 "
10738 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10739 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10741 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10742 succeeded=yes
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10746 RSVG_CFLAGS=""
10747 RSVG_LIBS=""
10748 ## If we have a custom action on failure, don't print errors, but
10749 ## do set a variable so people can do so. Do it in a subshell
10750 ## to capture any diagnostics in invoking pkg-config.
10751 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10752
10753 fi
10754
10755
10756
10757 else
10758 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10759 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10760 fi
10761 fi
10762
10763 if test $succeeded = yes; then
10764 HAVE_RSVG=yes
10765 else
10766 :
10767 fi
10768
10769
10770
10771
10772 if test $HAVE_RSVG = yes; then
10773
10774 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10775
10776 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10777 LIBS="$RSVG_LIBS $LIBS"
10778 fi
10779 fi
10780 fi
10781
10782 HAVE_IMAGEMAGICK=no
10783 if test "${HAVE_X11}" = "yes"; then
10784 if test "${with_imagemagick}" != "no"; then
10785 ## 6.2.8 is the earliest version known to work, but earlier versions
10786 ## might work - let us know if you find one.
10787 ## 6.0.7 does not work. See bug#7955.
10788 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10789
10790 succeeded=no
10791
10792 if test "$PKG_CONFIG" = "no" ; then
10793 :
10794 else
10795 PKG_CONFIG_MIN_VERSION=0.9.0
10796 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10798 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10799
10800 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10801 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10802 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10803 edit_cflags="
10804 s,///*,/,g
10805 s/^/ /
10806 s/ -I/ $isystem/g
10807 s/^ //
10808 "
10809 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10810 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10812 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10813 succeeded=yes
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816 $as_echo "no" >&6; }
10817 IMAGEMAGICK_CFLAGS=""
10818 IMAGEMAGICK_LIBS=""
10819 ## If we have a custom action on failure, don't print errors, but
10820 ## do set a variable so people can do so. Do it in a subshell
10821 ## to capture any diagnostics in invoking pkg-config.
10822 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10823
10824 fi
10825
10826
10827
10828 else
10829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10831 fi
10832 fi
10833
10834 if test $succeeded = yes; then
10835 HAVE_IMAGEMAGICK=yes
10836 else
10837 :
10838 fi
10839
10840
10841
10842
10843 if test $HAVE_IMAGEMAGICK = yes; then
10844
10845 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10846
10847 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10848 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10849 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10850 do :
10851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10853 eval as_val=\$$as_ac_var
10854 if test "x$as_val" = x""yes; then :
10855 cat >>confdefs.h <<_ACEOF
10856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10857 _ACEOF
10858
10859 fi
10860 done
10861
10862 fi
10863 fi
10864 fi
10865
10866
10867 HAVE_GTK=no
10868 GTK_OBJ=
10869 check_gtk2=no
10870 gtk3_pkg_errors=
10871 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10872 GLIB_REQUIRED=2.28
10873 GTK_REQUIRED=3.0
10874 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10875
10876
10877 succeeded=no
10878
10879 if test "$PKG_CONFIG" = "no" ; then
10880 pkg_check_gtk=no
10881 else
10882 PKG_CONFIG_MIN_VERSION=0.9.0
10883 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10885 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10886
10887 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10888 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10889 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10890 edit_cflags="
10891 s,///*,/,g
10892 s/^/ /
10893 s/ -I/ $isystem/g
10894 s/^ //
10895 "
10896 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10897 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10899 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10900 succeeded=yes
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10904 GTK_CFLAGS=""
10905 GTK_LIBS=""
10906 ## If we have a custom action on failure, don't print errors, but
10907 ## do set a variable so people can do so. Do it in a subshell
10908 ## to capture any diagnostics in invoking pkg-config.
10909 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10910
10911 fi
10912
10913
10914
10915 else
10916 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10917 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10918 fi
10919 fi
10920
10921 if test $succeeded = yes; then
10922 pkg_check_gtk=yes
10923 else
10924 pkg_check_gtk=no
10925 fi
10926
10927 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10928 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10929 fi
10930 if test "$pkg_check_gtk" = "yes"; then
10931
10932 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10933
10934 GTK_OBJ=emacsgtkfixed.o
10935 term_header=gtkutil.h
10936 USE_GTK_TOOLKIT="GTK3"
10937 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
10938 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
10939 fi
10940 else
10941 check_gtk2=yes
10942 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10943 fi
10944 fi
10945
10946 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10947 GLIB_REQUIRED=2.10
10948 GTK_REQUIRED=2.10
10949 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10950
10951
10952 succeeded=no
10953
10954 if test "$PKG_CONFIG" = "no" ; then
10955 pkg_check_gtk=no
10956 else
10957 PKG_CONFIG_MIN_VERSION=0.9.0
10958 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10960 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10961
10962 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10963 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10964 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10965 edit_cflags="
10966 s,///*,/,g
10967 s/^/ /
10968 s/ -I/ $isystem/g
10969 s/^ //
10970 "
10971 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10972 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10974 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10975 succeeded=yes
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10979 GTK_CFLAGS=""
10980 GTK_LIBS=""
10981 ## If we have a custom action on failure, don't print errors, but
10982 ## do set a variable so people can do so. Do it in a subshell
10983 ## to capture any diagnostics in invoking pkg-config.
10984 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10985
10986 fi
10987
10988
10989
10990 else
10991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10993 fi
10994 fi
10995
10996 if test $succeeded = yes; then
10997 pkg_check_gtk=yes
10998 else
10999 pkg_check_gtk=no
11000 fi
11001
11002 if test "$pkg_check_gtk" = "no" &&
11003 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11004 then
11005 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11006 fi
11007 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11008 fi
11009
11010 if test x"$pkg_check_gtk" = xyes; then
11011
11012
11013
11014 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11015 CFLAGS="$CFLAGS $GTK_CFLAGS"
11016 LIBS="$GTK_LIBS $LIBS"
11017 GTK_COMPILES=no
11018 for ac_func in gtk_main
11019 do :
11020 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11021 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11022 cat >>confdefs.h <<_ACEOF
11023 #define HAVE_GTK_MAIN 1
11024 _ACEOF
11025 GTK_COMPILES=yes
11026 fi
11027 done
11028
11029 if test "${GTK_COMPILES}" != "yes"; then
11030 if test "$USE_X_TOOLKIT" != "maybe"; then
11031 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11032 fi
11033 else
11034 HAVE_GTK=yes
11035
11036 $as_echo "#define USE_GTK 1" >>confdefs.h
11037
11038 GTK_OBJ="gtkutil.o $GTK_OBJ"
11039 USE_X_TOOLKIT=none
11040 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11041 :
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11044 closing open displays. This is no problem if you just use
11045 one display, but if you use more than one and close one of them
11046 Emacs may crash." >&5
11047 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11048 closing open displays. This is no problem if you just use
11049 one display, but if you use more than one and close one of them
11050 Emacs may crash." >&2;}
11051 sleep 3
11052 fi
11053 fi
11054
11055 fi
11056
11057
11058
11059 if test "${HAVE_GTK}" = "yes"; then
11060
11061 if test "$with_toolkit_scroll_bars" != no; then
11062 with_toolkit_scroll_bars=yes
11063 fi
11064
11065 HAVE_GTK_FILE_SELECTION=no
11066 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11067 #include <gtk/gtk.h>
11068 "
11069 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11070 HAVE_GTK_FILE_SELECTION=yes
11071 else
11072 HAVE_GTK_FILE_SELECTION=no
11073 fi
11074
11075 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11076 for ac_func in gtk_file_selection_new
11077 do :
11078 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11079 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11080 cat >>confdefs.h <<_ACEOF
11081 #define HAVE_GTK_FILE_SELECTION_NEW 1
11082 _ACEOF
11083
11084 fi
11085 done
11086
11087 fi
11088
11089 HAVE_GTK_HANDLE_BOX=no
11090 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11091 #include <gtk/gtk.h>
11092 "
11093 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11094 HAVE_GTK_HANDLE_BOX=yes
11095 else
11096 HAVE_GTK_HANDLE_BOX=no
11097 fi
11098
11099 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11100 for ac_func in gtk_handle_box_new
11101 do :
11102 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11103 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11104 cat >>confdefs.h <<_ACEOF
11105 #define HAVE_GTK_HANDLE_BOX_NEW 1
11106 _ACEOF
11107
11108 fi
11109 done
11110
11111 fi
11112
11113 HAVE_GTK_TEAROFF_MENU_ITEM=no
11114 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11115 #include <gtk/gtk.h>
11116 "
11117 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11118 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11119 else
11120 HAVE_GTK_TEAROFF_MENU_ITEM=no
11121 fi
11122
11123 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11124 for ac_func in gtk_tearoff_menu_item_new
11125 do :
11126 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11127 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11128 cat >>confdefs.h <<_ACEOF
11129 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11130 _ACEOF
11131
11132 fi
11133 done
11134
11135 fi
11136
11137 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11138 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11139 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11140 gtk_orientable_set_orientation \
11141 gtk_window_set_has_resize_grip
11142 do :
11143 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11144 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11145 eval as_val=\$$as_ac_var
11146 if test "x$as_val" = x""yes; then :
11147 cat >>confdefs.h <<_ACEOF
11148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11149 _ACEOF
11150
11151 fi
11152 done
11153
11154
11155 term_header=gtkutil.h
11156 fi
11157
11158 HAVE_DBUS=no
11159 DBUS_OBJ=
11160 if test "${with_dbus}" = "yes"; then
11161
11162 succeeded=no
11163
11164 if test "$PKG_CONFIG" = "no" ; then
11165 HAVE_DBUS=no
11166 else
11167 PKG_CONFIG_MIN_VERSION=0.9.0
11168 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11170 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11171
11172 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11173 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11174 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11175 edit_cflags="
11176 s,///*,/,g
11177 s/^/ /
11178 s/ -I/ $isystem/g
11179 s/^ //
11180 "
11181 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11182 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11184 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11185 succeeded=yes
11186 else
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11189 DBUS_CFLAGS=""
11190 DBUS_LIBS=""
11191 ## If we have a custom action on failure, don't print errors, but
11192 ## do set a variable so people can do so. Do it in a subshell
11193 ## to capture any diagnostics in invoking pkg-config.
11194 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11195
11196 fi
11197
11198
11199
11200 else
11201 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11202 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11203 fi
11204 fi
11205
11206 if test $succeeded = yes; then
11207 HAVE_DBUS=yes
11208 else
11209 HAVE_DBUS=no
11210 fi
11211
11212 if test "$HAVE_DBUS" = yes; then
11213 LIBS="$LIBS $DBUS_LIBS"
11214
11215 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11216
11217 for ac_func in dbus_watch_get_unix_fd \
11218 dbus_type_is_valid \
11219 dbus_validate_bus_name \
11220 dbus_validate_path \
11221 dbus_validate_interface \
11222 dbus_validate_member
11223 do :
11224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11226 eval as_val=\$$as_ac_var
11227 if test "x$as_val" = x""yes; then :
11228 cat >>confdefs.h <<_ACEOF
11229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11230 _ACEOF
11231
11232 fi
11233 done
11234
11235 DBUS_OBJ=dbusbind.o
11236 fi
11237 fi
11238
11239
11240 HAVE_GSETTINGS=no
11241 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11242
11243 succeeded=no
11244
11245 if test "$PKG_CONFIG" = "no" ; then
11246 HAVE_GSETTINGS=no
11247 else
11248 PKG_CONFIG_MIN_VERSION=0.9.0
11249 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11251 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11252
11253 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11254 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11255 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11256 edit_cflags="
11257 s,///*,/,g
11258 s/^/ /
11259 s/ -I/ $isystem/g
11260 s/^ //
11261 "
11262 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11263 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11265 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11266 succeeded=yes
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11270 GSETTINGS_CFLAGS=""
11271 GSETTINGS_LIBS=""
11272 ## If we have a custom action on failure, don't print errors, but
11273 ## do set a variable so people can do so. Do it in a subshell
11274 ## to capture any diagnostics in invoking pkg-config.
11275 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11276
11277 fi
11278
11279
11280
11281 else
11282 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11283 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11284 fi
11285 fi
11286
11287 if test $succeeded = yes; then
11288 HAVE_GSETTINGS=yes
11289 else
11290 HAVE_GSETTINGS=no
11291 fi
11292
11293 if test "$HAVE_GSETTINGS" = "yes"; then
11294
11295 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11296
11297 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11298 SETTINGS_LIBS="$GSETTINGS_LIBS"
11299 fi
11300 fi
11301
11302 HAVE_GCONF=no
11303 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11304
11305 succeeded=no
11306
11307 if test "$PKG_CONFIG" = "no" ; then
11308 HAVE_GCONF=no
11309 else
11310 PKG_CONFIG_MIN_VERSION=0.9.0
11311 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11313 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11314
11315 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11316 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11317 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11318 edit_cflags="
11319 s,///*,/,g
11320 s/^/ /
11321 s/ -I/ $isystem/g
11322 s/^ //
11323 "
11324 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11325 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11327 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11328 succeeded=yes
11329 else
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11332 GCONF_CFLAGS=""
11333 GCONF_LIBS=""
11334 ## If we have a custom action on failure, don't print errors, but
11335 ## do set a variable so people can do so. Do it in a subshell
11336 ## to capture any diagnostics in invoking pkg-config.
11337 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11338
11339 fi
11340
11341
11342
11343 else
11344 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11345 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11346 fi
11347 fi
11348
11349 if test $succeeded = yes; then
11350 HAVE_GCONF=yes
11351 else
11352 HAVE_GCONF=no
11353 fi
11354
11355 if test "$HAVE_GCONF" = yes; then
11356
11357 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11358
11359 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11360 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11361 fi
11362 fi
11363
11364 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11365
11366 succeeded=no
11367
11368 if test "$PKG_CONFIG" = "no" ; then
11369 HAVE_GOBJECT=no
11370 else
11371 PKG_CONFIG_MIN_VERSION=0.9.0
11372 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11374 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11375
11376 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11377 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11378 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11379 edit_cflags="
11380 s,///*,/,g
11381 s/^/ /
11382 s/ -I/ $isystem/g
11383 s/^ //
11384 "
11385 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11386 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11388 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11389 succeeded=yes
11390 else
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11393 GOBJECT_CFLAGS=""
11394 GOBJECT_LIBS=""
11395 ## If we have a custom action on failure, don't print errors, but
11396 ## do set a variable so people can do so. Do it in a subshell
11397 ## to capture any diagnostics in invoking pkg-config.
11398 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11399
11400 fi
11401
11402
11403
11404 else
11405 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11406 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11407 fi
11408 fi
11409
11410 if test $succeeded = yes; then
11411 HAVE_GOBJECT=yes
11412 else
11413 HAVE_GOBJECT=no
11414 fi
11415
11416 if test "$HAVE_GOBJECT" = "yes"; then
11417 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11418 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11419 fi
11420 SAVE_CFLAGS="$CFLAGS"
11421 SAVE_LIBS="$LIBS"
11422 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11423 LIBS="$SETTINGS_LIBS $LIBS"
11424 for ac_func in g_type_init
11425 do :
11426 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11427 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11428 cat >>confdefs.h <<_ACEOF
11429 #define HAVE_G_TYPE_INIT 1
11430 _ACEOF
11431
11432 fi
11433 done
11434
11435 CFLAGS="$SAVE_CFLAGS"
11436 LIBS="$SAVE_LIBS"
11437 fi
11438
11439
11440
11441
11442 HAVE_LIBSELINUX=no
11443 LIBSELINUX_LIBS=
11444 if test "${with_selinux}" = "yes"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11446 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11447 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11448 $as_echo_n "(cached) " >&6
11449 else
11450 ac_check_lib_save_LIBS=$LIBS
11451 LIBS="-lselinux $LIBS"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h. */
11454
11455 /* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char lgetfilecon ();
11462 int
11463 main ()
11464 {
11465 return lgetfilecon ();
11466 ;
11467 return 0;
11468 }
11469 _ACEOF
11470 if ac_fn_c_try_link "$LINENO"; then :
11471 ac_cv_lib_selinux_lgetfilecon=yes
11472 else
11473 ac_cv_lib_selinux_lgetfilecon=no
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext \
11476 conftest$ac_exeext conftest.$ac_ext
11477 LIBS=$ac_check_lib_save_LIBS
11478 fi
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11480 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11481 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11482 HAVE_LIBSELINUX=yes
11483 else
11484 HAVE_LIBSELINUX=no
11485 fi
11486
11487 if test "$HAVE_LIBSELINUX" = yes; then
11488
11489 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11490
11491 LIBSELINUX_LIBS=-lselinux
11492 fi
11493 fi
11494
11495
11496 HAVE_GNUTLS=no
11497 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11498 if test "${with_gnutls}" = "yes" ; then
11499
11500 succeeded=no
11501
11502 if test "$PKG_CONFIG" = "no" ; then
11503 HAVE_GNUTLS=no
11504 else
11505 PKG_CONFIG_MIN_VERSION=0.9.0
11506 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11508 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11509
11510 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11511 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11512 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11513 edit_cflags="
11514 s,///*,/,g
11515 s/^/ /
11516 s/ -I/ $isystem/g
11517 s/^ //
11518 "
11519 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11520 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11522 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11523 succeeded=yes
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11527 LIBGNUTLS_CFLAGS=""
11528 LIBGNUTLS_LIBS=""
11529 ## If we have a custom action on failure, don't print errors, but
11530 ## do set a variable so people can do so. Do it in a subshell
11531 ## to capture any diagnostics in invoking pkg-config.
11532 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11533
11534 fi
11535
11536
11537
11538 else
11539 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11540 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11541 fi
11542 fi
11543
11544 if test $succeeded = yes; then
11545 HAVE_GNUTLS=yes
11546 else
11547 HAVE_GNUTLS=no
11548 fi
11549
11550 if test "${HAVE_GNUTLS}" = "yes"; then
11551
11552 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11553
11554 fi
11555
11556 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11557 LIBS="$LIBGNUTLS_LIBS $LIBS"
11558 for ac_func in gnutls_certificate_set_verify_function
11559 do :
11560 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11561 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11562 cat >>confdefs.h <<_ACEOF
11563 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11564 _ACEOF
11565 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11566 fi
11567 done
11568
11569
11570 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11571
11572 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11573
11574 fi
11575 fi
11576
11577
11578
11579
11580 if test "${with_inotify}" = "yes"; then
11581 for ac_header in sys/inotify.h
11582 do :
11583 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11584 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
11585 cat >>confdefs.h <<_ACEOF
11586 #define HAVE_SYS_INOTIFY_H 1
11587 _ACEOF
11588
11589 fi
11590
11591 done
11592
11593 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11594 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11595 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
11596
11597 fi
11598
11599 fi
11600 fi
11601 if test "$ac_cv_func_inotify_init1" = yes; then
11602
11603 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11604
11605 fi
11606
11607 HAVE_POSIX_ACL=no
11608 LIBACL_LIBS=
11609 if test "${with_acl}" = "yes"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11611 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11612 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-lacl $LIBS"
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11619
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char acl_set_file ();
11627 int
11628 main ()
11629 {
11630 return acl_set_file ();
11631 ;
11632 return 0;
11633 }
11634 _ACEOF
11635 if ac_fn_c_try_link "$LINENO"; then :
11636 ac_cv_lib_acl_acl_set_file=yes
11637 else
11638 ac_cv_lib_acl_acl_set_file=no
11639 fi
11640 rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642 LIBS=$ac_check_lib_save_LIBS
11643 fi
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11645 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11646 if test "x$ac_cv_lib_acl_acl_set_file" = x""yes; then :
11647 HAVE_POSIX_ACL=yes
11648 else
11649 HAVE_POSIX_ACL=no
11650 fi
11651
11652 if test "$HAVE_POSIX_ACL" = yes; then
11653
11654 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11655
11656 LIBACL_LIBS=-lacl
11657 else
11658 ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11659 if test "x$ac_cv_func_acl_set_file" = x""yes; then :
11660 HAVE_POSIX_ACL=yes
11661 else
11662 HAVE_POSIX_ACL=no
11663 fi
11664
11665 if test "$HAVE_POSIX_ACL" = yes; then
11666
11667 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11668
11669 fi
11670 fi
11671 fi
11672
11673
11674 HAVE_XAW3D=no
11675 LUCID_LIBW=
11676 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11677 if test "$with_xaw3d" != no; then
11678 if test "${emacs_cv_xaw3d+set}" = set; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11683
11684 #include <X11/Intrinsic.h>
11685 #include <X11/Xaw3d/Simple.h>
11686 int
11687 main ()
11688 {
11689
11690 ;
11691 return 0;
11692 }
11693 _ACEOF
11694 if ac_fn_c_try_link "$LINENO"; then :
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11696 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11697 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 ac_check_lib_save_LIBS=$LIBS
11701 LIBS="-lXaw3d $LIBS"
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11704
11705 /* Override any GCC internal prototype to avoid an error.
11706 Use char because int might match the return type of a GCC
11707 builtin and then its argument prototype would still apply. */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 char XawScrollbarSetThumb ();
11712 int
11713 main ()
11714 {
11715 return XawScrollbarSetThumb ();
11716 ;
11717 return 0;
11718 }
11719 _ACEOF
11720 if ac_fn_c_try_link "$LINENO"; then :
11721 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11722 else
11723 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11724 fi
11725 rm -f core conftest.err conftest.$ac_objext \
11726 conftest$ac_exeext conftest.$ac_ext
11727 LIBS=$ac_check_lib_save_LIBS
11728 fi
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11730 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11731 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11732 emacs_cv_xaw3d=yes
11733 else
11734 emacs_cv_xaw3d=no
11735 fi
11736
11737 else
11738 emacs_cv_xaw3d=no
11739 fi
11740 rm -f core conftest.err conftest.$ac_objext \
11741 conftest$ac_exeext conftest.$ac_ext
11742 fi
11743
11744 else
11745 emacs_cv_xaw3d=no
11746 fi
11747 if test $emacs_cv_xaw3d = yes; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11749 $as_echo_n "checking for xaw3d... " >&6; }
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11751 $as_echo "yes; using Lucid toolkit" >&6; }
11752 USE_X_TOOLKIT=LUCID
11753 HAVE_XAW3D=yes
11754 LUCID_LIBW=-lXaw3d
11755
11756 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11757
11758 else
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11760 $as_echo_n "checking for xaw3d... " >&6; }
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11764 $as_echo_n "checking for libXaw... " >&6; }
11765 if test "${emacs_cv_xaw+set}" = set; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h. */
11770
11771 #include <X11/Intrinsic.h>
11772 #include <X11/Xaw/Simple.h>
11773 int
11774 main ()
11775 {
11776
11777 ;
11778 return 0;
11779 }
11780 _ACEOF
11781 if ac_fn_c_try_link "$LINENO"; then :
11782 emacs_cv_xaw=yes
11783 else
11784 emacs_cv_xaw=no
11785 fi
11786 rm -f core conftest.err conftest.$ac_objext \
11787 conftest$ac_exeext conftest.$ac_ext
11788 fi
11789
11790 if test $emacs_cv_xaw = yes; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11792 $as_echo "yes; using Lucid toolkit" >&6; }
11793 USE_X_TOOLKIT=LUCID
11794 LUCID_LIBW=-lXaw
11795 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11796 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11797 else
11798 as_fn_error "No X toolkit could be found.
11799 If you are sure you want Emacs compiled without an X toolkit, pass
11800 --with-x-toolkit=no
11801 to configure. Otherwise, install the development libraries for the toolkit
11802 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11803 fi
11804 fi
11805 fi
11806
11807 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11808
11809 LIBXTR6=
11810 if test "${USE_X_TOOLKIT}" != "none"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11812 $as_echo_n "checking X11 toolkit version... " >&6; }
11813 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818 #include <X11/Intrinsic.h>
11819 int
11820 main ()
11821 {
11822 #if XtSpecificationRelease < 6
11823 fail;
11824 #endif
11825
11826 ;
11827 return 0;
11828 }
11829 _ACEOF
11830 if ac_fn_c_try_link "$LINENO"; then :
11831 emacs_cv_x11_toolkit_version_6=yes
11832 else
11833 emacs_cv_x11_toolkit_version_6=no
11834 fi
11835 rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11837 fi
11838
11839 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11840 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11842 $as_echo "6 or newer" >&6; }
11843
11844 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11845
11846 LIBXTR6="-lSM -lICE"
11847 case "$opsys" in
11848 ## Use libw.a along with X11R6 Xt.
11849 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11850 esac
11851 else
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11853 $as_echo "before 6" >&6; }
11854 fi
11855
11856 OLDLIBS="$LIBS"
11857 if test x$HAVE_X11XTR6 = xyes; then
11858 LIBS="-lXt -lSM -lICE $LIBS"
11859 else
11860 LIBS="-lXt $LIBS"
11861 fi
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11863 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11864 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 ac_check_lib_save_LIBS=$LIBS
11868 LIBS="-lXmu $LIBS"
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11871
11872 /* Override any GCC internal prototype to avoid an error.
11873 Use char because int might match the return type of a GCC
11874 builtin and then its argument prototype would still apply. */
11875 #ifdef __cplusplus
11876 extern "C"
11877 #endif
11878 char XmuConvertStandardSelection ();
11879 int
11880 main ()
11881 {
11882 return XmuConvertStandardSelection ();
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 if ac_fn_c_try_link "$LINENO"; then :
11888 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11889 else
11890 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11891 fi
11892 rm -f core conftest.err conftest.$ac_objext \
11893 conftest$ac_exeext conftest.$ac_ext
11894 LIBS=$ac_check_lib_save_LIBS
11895 fi
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11897 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11898 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11899 cat >>confdefs.h <<_ACEOF
11900 #define HAVE_LIBXMU 1
11901 _ACEOF
11902
11903 LIBS="-lXmu $LIBS"
11904
11905 fi
11906
11907 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11908 fi
11909
11910
11911 LIBXMU=-lXmu
11912 case $opsys in
11913 ## These systems don't supply Xmu.
11914 hpux* | aix4-2 )
11915 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11916 ;;
11917 esac
11918
11919
11920 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11921 if test "${HAVE_X11}" = "yes"; then
11922 if test "${USE_X_TOOLKIT}" != "none"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11924 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11925 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 ac_check_lib_save_LIBS=$LIBS
11929 LIBS="-lXext $LIBS"
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932
11933 /* Override any GCC internal prototype to avoid an error.
11934 Use char because int might match the return type of a GCC
11935 builtin and then its argument prototype would still apply. */
11936 #ifdef __cplusplus
11937 extern "C"
11938 #endif
11939 char XShapeQueryExtension ();
11940 int
11941 main ()
11942 {
11943 return XShapeQueryExtension ();
11944 ;
11945 return 0;
11946 }
11947 _ACEOF
11948 if ac_fn_c_try_link "$LINENO"; then :
11949 ac_cv_lib_Xext_XShapeQueryExtension=yes
11950 else
11951 ac_cv_lib_Xext_XShapeQueryExtension=no
11952 fi
11953 rm -f core conftest.err conftest.$ac_objext \
11954 conftest$ac_exeext conftest.$ac_ext
11955 LIBS=$ac_check_lib_save_LIBS
11956 fi
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11958 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11959 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11960 cat >>confdefs.h <<_ACEOF
11961 #define HAVE_LIBXEXT 1
11962 _ACEOF
11963
11964 LIBS="-lXext $LIBS"
11965
11966 fi
11967
11968 fi
11969 fi
11970
11971 LIBXP=
11972 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11973 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11974 if test -d /usr/include/openmotif; then
11975 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11976 emacs_cv_openmotif=yes
11977 case "$canonical" in
11978 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11979 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11980 ;;
11981 *)
11982 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11983 esac
11984 else
11985 emacs_cv_openmotif=no
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11988 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11989 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11994 #include <Xm/Xm.h>
11995 int
11996 main ()
11997 {
11998 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11999 int x = 5;
12000 #else
12001 Motif version prior to 2.1.
12002 #endif
12003 ;
12004 return 0;
12005 }
12006 _ACEOF
12007 if ac_fn_c_try_compile "$LINENO"; then :
12008 emacs_cv_motif_version_2_1=yes
12009 else
12010 emacs_cv_motif_version_2_1=no
12011 fi
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 fi
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12015 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12016 if test $emacs_cv_motif_version_2_1 = yes; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12018 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12019 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 ac_check_lib_save_LIBS=$LIBS
12023 LIBS="-lXp $LIBS"
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12026
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12030 #ifdef __cplusplus
12031 extern "C"
12032 #endif
12033 char XpCreateContext ();
12034 int
12035 main ()
12036 {
12037 return XpCreateContext ();
12038 ;
12039 return 0;
12040 }
12041 _ACEOF
12042 if ac_fn_c_try_link "$LINENO"; then :
12043 ac_cv_lib_Xp_XpCreateContext=yes
12044 else
12045 ac_cv_lib_Xp_XpCreateContext=no
12046 fi
12047 rm -f core conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext conftest.$ac_ext
12049 LIBS=$ac_check_lib_save_LIBS
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12052 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12053 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12054 LIBXP=-lXp
12055 fi
12056
12057 if test x$emacs_cv_openmotif = xyes; then
12058 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12059 fi
12060 else
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12062 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12063 if test "${emacs_cv_lesstif+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 # We put this in CFLAGS temporarily to precede other -I options
12067 # that might be in CFLAGS temporarily.
12068 # We put this in CPPFLAGS where it precedes the other -I options.
12069 OLD_CPPFLAGS=$CPPFLAGS
12070 OLD_CFLAGS=$CFLAGS
12071 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12072 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12076 int
12077 main ()
12078 {
12079 int x = 5;
12080 ;
12081 return 0;
12082 }
12083 _ACEOF
12084 if ac_fn_c_try_compile "$LINENO"; then :
12085 emacs_cv_lesstif=yes
12086 else
12087 emacs_cv_lesstif=no
12088 fi
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12092 $as_echo "$emacs_cv_lesstif" >&6; }
12093 if test $emacs_cv_lesstif = yes; then
12094 # Make sure this -I option remains in CPPFLAGS after it is set
12095 # back to REAL_CPPFLAGS.
12096 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12097 # have those other -I options anyway. Ultimately, having this
12098 # directory ultimately in CPPFLAGS will be enough.
12099 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12100 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12101 else
12102 CFLAGS=$OLD_CFLAGS
12103 CPPFLAGS=$OLD_CPPFLAGS
12104 fi
12105 fi
12106 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12107 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12108
12109 else
12110 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12111 fi
12112
12113
12114 fi
12115
12116
12117 USE_TOOLKIT_SCROLL_BARS=no
12118 if test "${with_toolkit_scroll_bars}" != "no"; then
12119 if test "${USE_X_TOOLKIT}" != "none"; then
12120 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12121 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12122
12123 HAVE_XAW3D=no
12124 USE_TOOLKIT_SCROLL_BARS=yes
12125 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12126 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12127
12128 USE_TOOLKIT_SCROLL_BARS=yes
12129 fi
12130 elif test "${HAVE_GTK}" = "yes"; then
12131 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12132
12133 USE_TOOLKIT_SCROLL_BARS=yes
12134 elif test "${HAVE_NS}" = "yes"; then
12135 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12136
12137 USE_TOOLKIT_SCROLL_BARS=yes
12138 elif test "${HAVE_W32}" = "yes"; then
12139 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12140
12141 USE_TOOLKIT_SCROLL_BARS=yes
12142 fi
12143 fi
12144
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h. */
12147
12148 #include <X11/Xlib.h>
12149 #include <X11/Xresource.h>
12150 int
12151 main ()
12152 {
12153 XIMProc callback;
12154 ;
12155 return 0;
12156 }
12157 _ACEOF
12158 if ac_fn_c_try_compile "$LINENO"; then :
12159 HAVE_XIM=yes
12160
12161 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12162
12163 else
12164 HAVE_XIM=no
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167
12168
12169 if test "${with_xim}" != "no"; then
12170
12171 $as_echo "#define USE_XIM 1" >>confdefs.h
12172
12173 fi
12174
12175
12176 if test "${HAVE_XIM}" != "no"; then
12177 late_CFLAGS=$CFLAGS
12178 if test "$GCC" = yes; then
12179 CFLAGS="$CFLAGS --pedantic-errors"
12180 fi
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183
12184 #include <X11/Xlib.h>
12185 #include <X11/Xresource.h>
12186 int
12187 main ()
12188 {
12189 Display *display;
12190 XrmDatabase db;
12191 char *res_name;
12192 char *res_class;
12193 XIMProc callback;
12194 XPointer *client_data;
12195 #ifndef __GNUC__
12196 /* If we're not using GCC, it's probably not XFree86, and this is
12197 probably right, but we can't use something like --pedantic-errors. */
12198 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12199 char*, XIMProc, XPointer*);
12200 #endif
12201 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12202 client_data);
12203 ;
12204 return 0;
12205 }
12206 _ACEOF
12207 if ac_fn_c_try_compile "$LINENO"; then :
12208 emacs_cv_arg6_star=yes
12209 fi
12210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211 if test "$emacs_cv_arg6_star" = yes; then
12212 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12213
12214 else
12215 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12216
12217 fi
12218 CFLAGS=$late_CFLAGS
12219 fi
12220
12221 ### Start of font-backend (under any platform) section.
12222 # (nothing here yet -- this is a placeholder)
12223 ### End of font-backend (under any platform) section.
12224
12225 ### Start of font-backend (under X11) section.
12226 if test "${HAVE_X11}" = "yes"; then
12227
12228 succeeded=no
12229
12230 if test "$PKG_CONFIG" = "no" ; then
12231 HAVE_FC=no
12232 else
12233 PKG_CONFIG_MIN_VERSION=0.9.0
12234 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12236 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12237
12238 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12239 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12240 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12241 edit_cflags="
12242 s,///*,/,g
12243 s/^/ /
12244 s/ -I/ $isystem/g
12245 s/^ //
12246 "
12247 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12248 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12250 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12251 succeeded=yes
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12255 FONTCONFIG_CFLAGS=""
12256 FONTCONFIG_LIBS=""
12257 ## If we have a custom action on failure, don't print errors, but
12258 ## do set a variable so people can do so. Do it in a subshell
12259 ## to capture any diagnostics in invoking pkg-config.
12260 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12261
12262 fi
12263
12264
12265
12266 else
12267 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12268 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12269 fi
12270 fi
12271
12272 if test $succeeded = yes; then
12273 HAVE_FC=yes
12274 else
12275 HAVE_FC=no
12276 fi
12277
12278
12279 ## Use -lXft if available, unless `--with-xft=no'.
12280 HAVE_XFT=maybe
12281 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12282 with_xft="no";
12283 fi
12284 if test "x${with_xft}" != "xno"; then
12285
12286
12287 succeeded=no
12288
12289 if test "$PKG_CONFIG" = "no" ; then
12290 HAVE_XFT=no
12291 else
12292 PKG_CONFIG_MIN_VERSION=0.9.0
12293 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12295 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12296
12297 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12298 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12299 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12300 edit_cflags="
12301 s,///*,/,g
12302 s/^/ /
12303 s/ -I/ $isystem/g
12304 s/^ //
12305 "
12306 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12307 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12309 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12310 succeeded=yes
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12314 XFT_CFLAGS=""
12315 XFT_LIBS=""
12316 ## If we have a custom action on failure, don't print errors, but
12317 ## do set a variable so people can do so. Do it in a subshell
12318 ## to capture any diagnostics in invoking pkg-config.
12319 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12320
12321 fi
12322
12323
12324
12325 else
12326 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12327 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12328 fi
12329 fi
12330
12331 if test $succeeded = yes; then
12332 :
12333 else
12334 HAVE_XFT=no
12335 fi
12336
12337 ## Because xftfont.c uses XRenderQueryExtension, we also
12338 ## need to link to -lXrender.
12339 HAVE_XRENDER=no
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12341 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12342 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12343 $as_echo_n "(cached) " >&6
12344 else
12345 ac_check_lib_save_LIBS=$LIBS
12346 LIBS="-lXrender $LIBS"
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349
12350 /* Override any GCC internal prototype to avoid an error.
12351 Use char because int might match the return type of a GCC
12352 builtin and then its argument prototype would still apply. */
12353 #ifdef __cplusplus
12354 extern "C"
12355 #endif
12356 char XRenderQueryExtension ();
12357 int
12358 main ()
12359 {
12360 return XRenderQueryExtension ();
12361 ;
12362 return 0;
12363 }
12364 _ACEOF
12365 if ac_fn_c_try_link "$LINENO"; then :
12366 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12367 else
12368 ac_cv_lib_Xrender_XRenderQueryExtension=no
12369 fi
12370 rm -f core conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext conftest.$ac_ext
12372 LIBS=$ac_check_lib_save_LIBS
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12375 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12376 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12377 HAVE_XRENDER=yes
12378 fi
12379
12380 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12381 OLD_CPPFLAGS="$CPPFLAGS"
12382 OLD_CFLAGS="$CFLAGS"
12383 OLD_LIBS="$LIBS"
12384 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12385 CFLAGS="$CFLAGS $XFT_CFLAGS"
12386 XFT_LIBS="-lXrender $XFT_LIBS"
12387 LIBS="$XFT_LIBS $LIBS"
12388 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12389 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12391 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12392 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 ac_check_lib_save_LIBS=$LIBS
12396 LIBS="-lXft $XFT_LIBS $LIBS"
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12399
12400 /* Override any GCC internal prototype to avoid an error.
12401 Use char because int might match the return type of a GCC
12402 builtin and then its argument prototype would still apply. */
12403 #ifdef __cplusplus
12404 extern "C"
12405 #endif
12406 char XftFontOpen ();
12407 int
12408 main ()
12409 {
12410 return XftFontOpen ();
12411 ;
12412 return 0;
12413 }
12414 _ACEOF
12415 if ac_fn_c_try_link "$LINENO"; then :
12416 ac_cv_lib_Xft_XftFontOpen=yes
12417 else
12418 ac_cv_lib_Xft_XftFontOpen=no
12419 fi
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12423 fi
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12425 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12426 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12427 HAVE_XFT=yes
12428 fi
12429
12430 fi
12431
12432
12433
12434 if test "${HAVE_XFT}" = "yes"; then
12435
12436 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12437
12438
12439 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12440 else
12441 CPPFLAGS="$OLD_CPPFLAGS"
12442 CFLAGS="$OLD_CFLAGS"
12443 LIBS="$OLD_LIBS"
12444 fi # "${HAVE_XFT}" = "yes"
12445 fi # "$HAVE_XFT" != no
12446 fi # "x${with_xft}" != "xno"
12447
12448 ## We used to allow building with FreeType and without Xft.
12449 ## However, the ftx font backend driver is not in good shape.
12450 if test "$HAVE_XFT" != "yes"; then
12451 HAVE_XFT=no
12452 HAVE_FREETYPE=no
12453 else
12454
12455 succeeded=no
12456
12457 if test "$PKG_CONFIG" = "no" ; then
12458 HAVE_FREETYPE=no
12459 else
12460 PKG_CONFIG_MIN_VERSION=0.9.0
12461 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12463 $as_echo_n "checking for freetype2... " >&6; }
12464
12465 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12466 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12467 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12468 edit_cflags="
12469 s,///*,/,g
12470 s/^/ /
12471 s/ -I/ $isystem/g
12472 s/^ //
12473 "
12474 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12475 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12477 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12478 succeeded=yes
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 FREETYPE_CFLAGS=""
12483 FREETYPE_LIBS=""
12484 ## If we have a custom action on failure, don't print errors, but
12485 ## do set a variable so people can do so. Do it in a subshell
12486 ## to capture any diagnostics in invoking pkg-config.
12487 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12488
12489 fi
12490
12491
12492
12493 else
12494 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12495 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12496 fi
12497 fi
12498
12499 if test $succeeded = yes; then
12500 HAVE_FREETYPE=yes
12501 else
12502 HAVE_FREETYPE=no
12503 fi
12504
12505
12506 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12507 fi
12508
12509 HAVE_LIBOTF=no
12510 if test "${HAVE_FREETYPE}" = "yes"; then
12511
12512 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12513
12514 if test "${with_libotf}" != "no"; then
12515
12516 succeeded=no
12517
12518 if test "$PKG_CONFIG" = "no" ; then
12519 HAVE_LIBOTF=no
12520 else
12521 PKG_CONFIG_MIN_VERSION=0.9.0
12522 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12524 $as_echo_n "checking for libotf... " >&6; }
12525
12526 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12527 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12528 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12529 edit_cflags="
12530 s,///*,/,g
12531 s/^/ /
12532 s/ -I/ $isystem/g
12533 s/^ //
12534 "
12535 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12536 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12538 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12539 succeeded=yes
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12543 LIBOTF_CFLAGS=""
12544 LIBOTF_LIBS=""
12545 ## If we have a custom action on failure, don't print errors, but
12546 ## do set a variable so people can do so. Do it in a subshell
12547 ## to capture any diagnostics in invoking pkg-config.
12548 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12549
12550 fi
12551
12552
12553
12554 else
12555 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12556 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12557 fi
12558 fi
12559
12560 if test $succeeded = yes; then
12561 HAVE_LIBOTF=yes
12562 else
12563 HAVE_LIBOTF=no
12564 fi
12565
12566 if test "$HAVE_LIBOTF" = "yes"; then
12567
12568 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12569
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12571 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12572 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 ac_check_lib_save_LIBS=$LIBS
12576 LIBS="-lotf $LIBS"
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579
12580 /* Override any GCC internal prototype to avoid an error.
12581 Use char because int might match the return type of a GCC
12582 builtin and then its argument prototype would still apply. */
12583 #ifdef __cplusplus
12584 extern "C"
12585 #endif
12586 char OTF_get_variation_glyphs ();
12587 int
12588 main ()
12589 {
12590 return OTF_get_variation_glyphs ();
12591 ;
12592 return 0;
12593 }
12594 _ACEOF
12595 if ac_fn_c_try_link "$LINENO"; then :
12596 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12597 else
12598 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12599 fi
12600 rm -f core conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext conftest.$ac_ext
12602 LIBS=$ac_check_lib_save_LIBS
12603 fi
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12605 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12606 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12607 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12608 else
12609 HAVE_OTF_GET_VARIATION_GLYPHS=no
12610 fi
12611
12612 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12613
12614 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12615
12616 fi
12617 fi
12618 fi
12619 fi
12620
12621 HAVE_M17N_FLT=no
12622 if test "${HAVE_LIBOTF}" = yes; then
12623 if test "${with_m17n_flt}" != "no"; then
12624
12625 succeeded=no
12626
12627 if test "$PKG_CONFIG" = "no" ; then
12628 HAVE_M17N_FLT=no
12629 else
12630 PKG_CONFIG_MIN_VERSION=0.9.0
12631 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12633 $as_echo_n "checking for m17n-flt... " >&6; }
12634
12635 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12636 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12637 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12638 edit_cflags="
12639 s,///*,/,g
12640 s/^/ /
12641 s/ -I/ $isystem/g
12642 s/^ //
12643 "
12644 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12645 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12647 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12648 succeeded=yes
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12652 M17N_FLT_CFLAGS=""
12653 M17N_FLT_LIBS=""
12654 ## If we have a custom action on failure, don't print errors, but
12655 ## do set a variable so people can do so. Do it in a subshell
12656 ## to capture any diagnostics in invoking pkg-config.
12657 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12658
12659 fi
12660
12661
12662
12663 else
12664 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12665 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12666 fi
12667 fi
12668
12669 if test $succeeded = yes; then
12670 HAVE_M17N_FLT=yes
12671 else
12672 HAVE_M17N_FLT=no
12673 fi
12674
12675 if test "$HAVE_M17N_FLT" = "yes"; then
12676
12677 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12678
12679 fi
12680 fi
12681 fi
12682 else
12683 HAVE_XFT=no
12684 HAVE_FREETYPE=no
12685 HAVE_LIBOTF=no
12686 HAVE_M17N_FLT=no
12687 fi
12688
12689 ### End of font-backend (under X11) section.
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700 ### Use -lXpm if available, unless `--with-xpm=no'.
12701 HAVE_XPM=no
12702 LIBXPM=
12703
12704 if test "${HAVE_W32}" = "yes"; then
12705 if test "${with_xpm}" != "no"; then
12706 SAVE_CPPFLAGS="$CPPFLAGS"
12707 SAVE_LDFLAGS="$LDFLAGS"
12708 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12709 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12710 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12711 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12713 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12714 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12715 $as_echo_n "(cached) " >&6
12716 else
12717 ac_check_lib_save_LIBS=$LIBS
12718 LIBS="-lXpm $LIBS"
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721
12722 /* Override any GCC internal prototype to avoid an error.
12723 Use char because int might match the return type of a GCC
12724 builtin and then its argument prototype would still apply. */
12725 #ifdef __cplusplus
12726 extern "C"
12727 #endif
12728 char XpmReadFileToImage ();
12729 int
12730 main ()
12731 {
12732 return XpmReadFileToImage ();
12733 ;
12734 return 0;
12735 }
12736 _ACEOF
12737 if ac_fn_c_try_link "$LINENO"; then :
12738 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12739 else
12740 ac_cv_lib_Xpm_XpmReadFileToImage=no
12741 fi
12742 rm -f core conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12745 fi
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12747 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12748 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12749 HAVE_XPM=yes
12750 fi
12751
12752 fi
12753
12754
12755 if test "${HAVE_XPM}" = "yes"; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12757 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760 #include "X11/xpm.h"
12761 #ifndef XpmReturnAllocPixels
12762 no_return_alloc_pixels
12763 #endif
12764
12765 _ACEOF
12766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12767 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12768 HAVE_XPM=no
12769 else
12770 HAVE_XPM=yes
12771 fi
12772 rm -f conftest*
12773
12774
12775 if test "${HAVE_XPM}" = "yes"; then
12776 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12778 $as_echo "yes" >&6; }
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12782 CPPFLAGS="$SAVE_CPPFLAGS"
12783 LDFLAGS="$SAVE_LDFLAGS"
12784 fi
12785 fi
12786 fi
12787
12788 if test "${HAVE_XPM}" = "yes"; then
12789
12790 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12791
12792 LIBXPM=-lXpm
12793 fi
12794 fi
12795
12796 if test "${HAVE_X11}" = "yes"; then
12797 if test "${with_xpm}" != "no"; then
12798 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12799 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12801 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12802 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 ac_check_lib_save_LIBS=$LIBS
12806 LIBS="-lXpm -lX11 $LIBS"
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char XpmReadFileToPixmap ();
12817 int
12818 main ()
12819 {
12820 return XpmReadFileToPixmap ();
12821 ;
12822 return 0;
12823 }
12824 _ACEOF
12825 if ac_fn_c_try_link "$LINENO"; then :
12826 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12827 else
12828 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12829 fi
12830 rm -f core conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12832 LIBS=$ac_check_lib_save_LIBS
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12835 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12836 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12837 HAVE_XPM=yes
12838 fi
12839
12840 fi
12841
12842
12843 if test "${HAVE_XPM}" = "yes"; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12845 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848 #include "X11/xpm.h"
12849 #ifndef XpmReturnAllocPixels
12850 no_return_alloc_pixels
12851 #endif
12852
12853 _ACEOF
12854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12855 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12856 HAVE_XPM=no
12857 else
12858 HAVE_XPM=yes
12859 fi
12860 rm -f conftest*
12861
12862
12863 if test "${HAVE_XPM}" = "yes"; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12865 $as_echo "yes" >&6; }
12866 else
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868 $as_echo "no" >&6; }
12869 fi
12870 fi
12871 fi
12872
12873 if test "${HAVE_XPM}" = "yes"; then
12874
12875 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12876
12877 LIBXPM=-lXpm
12878 fi
12879 fi
12880
12881
12882
12883 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12884 HAVE_JPEG=no
12885 LIBJPEG=
12886 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12887 if test "${with_jpeg}" != "no"; then
12888 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12889 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12891 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12892 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12893 $as_echo_n "(cached) " >&6
12894 else
12895 ac_check_lib_save_LIBS=$LIBS
12896 LIBS="-ljpeg $LIBS"
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12899
12900 /* Override any GCC internal prototype to avoid an error.
12901 Use char because int might match the return type of a GCC
12902 builtin and then its argument prototype would still apply. */
12903 #ifdef __cplusplus
12904 extern "C"
12905 #endif
12906 char jpeg_destroy_compress ();
12907 int
12908 main ()
12909 {
12910 return jpeg_destroy_compress ();
12911 ;
12912 return 0;
12913 }
12914 _ACEOF
12915 if ac_fn_c_try_link "$LINENO"; then :
12916 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12917 else
12918 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12919 fi
12920 rm -f core conftest.err conftest.$ac_objext \
12921 conftest$ac_exeext conftest.$ac_ext
12922 LIBS=$ac_check_lib_save_LIBS
12923 fi
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12925 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12926 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12927 HAVE_JPEG=yes
12928 fi
12929
12930 fi
12931
12932
12933 fi
12934
12935 if test "${HAVE_JPEG}" = "yes"; then
12936 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12937
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940 #include <jpeglib.h>
12941 version=JPEG_LIB_VERSION
12942
12943 _ACEOF
12944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12945 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12946 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12947
12948 else
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12950 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12951 HAVE_JPEG=no
12952 fi
12953 rm -f conftest*
12954
12955 fi
12956 if test "${HAVE_JPEG}" = "yes"; then
12957 LIBJPEG=-ljpeg
12958 fi
12959 fi
12960
12961
12962 ### Use -lpng if available, unless `--with-png=no'.
12963 HAVE_PNG=no
12964 LIBPNG=
12965 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12966 if test "${with_png}" != "no"; then
12967 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12968 # in /usr/include/libpng.
12969 for ac_header in png.h libpng/png.h
12970 do :
12971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12972 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12973 eval as_val=\$$as_ac_Header
12974 if test "x$as_val" = x""yes; then :
12975 cat >>confdefs.h <<_ACEOF
12976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12977 _ACEOF
12978 break
12979 fi
12980
12981 done
12982
12983 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12985 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12986 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12987 $as_echo_n "(cached) " >&6
12988 else
12989 ac_check_lib_save_LIBS=$LIBS
12990 LIBS="-lpng -lz -lm $LIBS"
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
12993
12994 /* Override any GCC internal prototype to avoid an error.
12995 Use char because int might match the return type of a GCC
12996 builtin and then its argument prototype would still apply. */
12997 #ifdef __cplusplus
12998 extern "C"
12999 #endif
13000 char png_get_channels ();
13001 int
13002 main ()
13003 {
13004 return png_get_channels ();
13005 ;
13006 return 0;
13007 }
13008 _ACEOF
13009 if ac_fn_c_try_link "$LINENO"; then :
13010 ac_cv_lib_png_png_get_channels=yes
13011 else
13012 ac_cv_lib_png_png_get_channels=no
13013 fi
13014 rm -f core conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13016 LIBS=$ac_check_lib_save_LIBS
13017 fi
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13019 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13020 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13021 HAVE_PNG=yes
13022 fi
13023
13024 fi
13025 fi
13026
13027 if test "${HAVE_PNG}" = "yes"; then
13028
13029 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13030
13031 LIBPNG="-lpng -lz -lm"
13032
13033 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13034 # include <libpng/png.h>
13035 #else
13036 # include <png.h>
13037 #endif
13038
13039 "
13040 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13041
13042 else
13043
13044 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13045
13046 fi
13047
13048 fi
13049 fi
13050
13051
13052 ### Use -ltiff if available, unless `--with-tiff=no'.
13053 HAVE_TIFF=no
13054 LIBTIFF=
13055 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13056 if test "${with_tiff}" != "no"; then
13057 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13058 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13059 tifflibs="-lz -lm"
13060 # At least one tiff package requires the jpeg library.
13061 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13063 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13064 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 ac_check_lib_save_LIBS=$LIBS
13068 LIBS="-ltiff $tifflibs $LIBS"
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13071
13072 /* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply. */
13075 #ifdef __cplusplus
13076 extern "C"
13077 #endif
13078 char TIFFGetVersion ();
13079 int
13080 main ()
13081 {
13082 return TIFFGetVersion ();
13083 ;
13084 return 0;
13085 }
13086 _ACEOF
13087 if ac_fn_c_try_link "$LINENO"; then :
13088 ac_cv_lib_tiff_TIFFGetVersion=yes
13089 else
13090 ac_cv_lib_tiff_TIFFGetVersion=no
13091 fi
13092 rm -f core conftest.err conftest.$ac_objext \
13093 conftest$ac_exeext conftest.$ac_ext
13094 LIBS=$ac_check_lib_save_LIBS
13095 fi
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13097 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13098 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13099 HAVE_TIFF=yes
13100 fi
13101
13102 fi
13103
13104
13105 fi
13106
13107 if test "${HAVE_TIFF}" = "yes"; then
13108
13109 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13110
13111 LIBTIFF=-ltiff
13112 fi
13113 fi
13114
13115
13116 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13117 HAVE_GIF=no
13118 LIBGIF=
13119 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13120 || test "${HAVE_W32}" = "yes"; then
13121 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13122 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13123 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13124 # Earlier versions can crash Emacs.
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13126 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13127 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
13129 else
13130 ac_check_lib_save_LIBS=$LIBS
13131 LIBS="-lgif $LIBS"
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 char EGifPutExtensionLast ();
13142 int
13143 main ()
13144 {
13145 return EGifPutExtensionLast ();
13146 ;
13147 return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 ac_cv_lib_gif_EGifPutExtensionLast=yes
13152 else
13153 ac_cv_lib_gif_EGifPutExtensionLast=no
13154 fi
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13158 fi
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13160 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13161 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13162 HAVE_GIF=yes
13163 else
13164 HAVE_GIF=maybe
13165 fi
13166
13167 fi
13168
13169
13170
13171 if test "$HAVE_GIF" = yes; then
13172 LIBGIF=-lgif
13173 elif test "$HAVE_GIF" = maybe; then
13174 # If gif_lib.h but no libgif, try libungif.
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13176 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13177 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 ac_check_lib_save_LIBS=$LIBS
13181 LIBS="-lungif $LIBS"
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13184
13185 /* Override any GCC internal prototype to avoid an error.
13186 Use char because int might match the return type of a GCC
13187 builtin and then its argument prototype would still apply. */
13188 #ifdef __cplusplus
13189 extern "C"
13190 #endif
13191 char EGifPutExtensionLast ();
13192 int
13193 main ()
13194 {
13195 return EGifPutExtensionLast ();
13196 ;
13197 return 0;
13198 }
13199 _ACEOF
13200 if ac_fn_c_try_link "$LINENO"; then :
13201 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13202 else
13203 ac_cv_lib_ungif_EGifPutExtensionLast=no
13204 fi
13205 rm -f core conftest.err conftest.$ac_objext \
13206 conftest$ac_exeext conftest.$ac_ext
13207 LIBS=$ac_check_lib_save_LIBS
13208 fi
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13210 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13211 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13212 HAVE_GIF=yes
13213 else
13214 HAVE_GIF=no
13215 fi
13216
13217 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13218 fi
13219
13220 if test "${HAVE_GIF}" = "yes"; then
13221
13222 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13223
13224 fi
13225 fi
13226
13227
13228 if test "${HAVE_X11}" = "yes"; then
13229 MISSING=""
13230 WITH_NO=""
13231 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13232 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13233 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13234 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13235 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13236 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13237 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13238 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13239 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13240 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13241
13242 if test "X${MISSING}" != X; then
13243 as_fn_error "The following required libraries were not found:
13244 $MISSING
13245 Maybe some development libraries/packages are missing?
13246 If you don't want to link with them give
13247 $WITH_NO
13248 as options to configure" "$LINENO" 5
13249 fi
13250 fi
13251
13252 ### Use -lgpm if available, unless `--with-gpm=no'.
13253 HAVE_GPM=no
13254 LIBGPM=
13255 if test "${with_gpm}" != "no"; then
13256 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13257 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13259 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13260 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13261 $as_echo_n "(cached) " >&6
13262 else
13263 ac_check_lib_save_LIBS=$LIBS
13264 LIBS="-lgpm $LIBS"
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13267
13268 /* Override any GCC internal prototype to avoid an error.
13269 Use char because int might match the return type of a GCC
13270 builtin and then its argument prototype would still apply. */
13271 #ifdef __cplusplus
13272 extern "C"
13273 #endif
13274 char Gpm_Open ();
13275 int
13276 main ()
13277 {
13278 return Gpm_Open ();
13279 ;
13280 return 0;
13281 }
13282 _ACEOF
13283 if ac_fn_c_try_link "$LINENO"; then :
13284 ac_cv_lib_gpm_Gpm_Open=yes
13285 else
13286 ac_cv_lib_gpm_Gpm_Open=no
13287 fi
13288 rm -f core conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13290 LIBS=$ac_check_lib_save_LIBS
13291 fi
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13293 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13294 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13295 HAVE_GPM=yes
13296 fi
13297
13298 fi
13299
13300
13301
13302 if test "${HAVE_GPM}" = "yes"; then
13303
13304 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13305
13306 LIBGPM=-lgpm
13307 fi
13308 fi
13309
13310
13311
13312
13313
13314
13315 GNUSTEP_CFLAGS=
13316 ### Use NeXTstep API to implement GUI.
13317 if test "${HAVE_NS}" = "yes"; then
13318
13319 $as_echo "#define HAVE_NS 1" >>confdefs.h
13320
13321 if test "${NS_IMPL_COCOA}" = "yes"; then
13322
13323 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13324
13325 fi
13326 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13327
13328 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13329
13330 # See also .m.o rule in Makefile.in */
13331 # FIXME: are all these flags really needed? Document here why. */
13332 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13333 ## Extra CFLAGS applied to src/*.m files.
13334 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"
13335 fi
13336 # We also have mouse menus.
13337 HAVE_MENUS=yes
13338 OTHER_FILES=ns-app
13339 fi
13340
13341 if test "${HAVE_W32}" = "yes"; then
13342 HAVE_MENUS=yes
13343 fi
13344
13345 ### Use session management (-lSM -lICE) if available
13346 HAVE_X_SM=no
13347 LIBXSM=
13348 if test "${HAVE_X11}" = "yes"; then
13349 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13350 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13352 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13353 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 ac_check_lib_save_LIBS=$LIBS
13357 LIBS="-lSM -lICE $LIBS"
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13360
13361 /* Override any GCC internal prototype to avoid an error.
13362 Use char because int might match the return type of a GCC
13363 builtin and then its argument prototype would still apply. */
13364 #ifdef __cplusplus
13365 extern "C"
13366 #endif
13367 char SmcOpenConnection ();
13368 int
13369 main ()
13370 {
13371 return SmcOpenConnection ();
13372 ;
13373 return 0;
13374 }
13375 _ACEOF
13376 if ac_fn_c_try_link "$LINENO"; then :
13377 ac_cv_lib_SM_SmcOpenConnection=yes
13378 else
13379 ac_cv_lib_SM_SmcOpenConnection=no
13380 fi
13381 rm -f core conftest.err conftest.$ac_objext \
13382 conftest$ac_exeext conftest.$ac_ext
13383 LIBS=$ac_check_lib_save_LIBS
13384 fi
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13386 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13387 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13388 HAVE_X_SM=yes
13389 fi
13390
13391 fi
13392
13393
13394
13395 if test "${HAVE_X_SM}" = "yes"; then
13396
13397 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13398
13399 LIBXSM="-lSM -lICE"
13400 case "$LIBS" in
13401 *-lSM*) ;;
13402 *) LIBS="$LIBXSM $LIBS" ;;
13403 esac
13404 fi
13405 fi
13406
13407
13408 ### Use libxml (-lxml2) if available
13409 HAVE_LIBXML2=no
13410 if test "${with_xml2}" != "no"; then
13411 ### I'm not sure what the version number should be, so I just guessed.
13412
13413 succeeded=no
13414
13415 if test "$PKG_CONFIG" = "no" ; then
13416 HAVE_LIBXML2=no
13417 else
13418 PKG_CONFIG_MIN_VERSION=0.9.0
13419 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13421 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13422
13423 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13424 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13425 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13426 edit_cflags="
13427 s,///*,/,g
13428 s/^/ /
13429 s/ -I/ $isystem/g
13430 s/^ //
13431 "
13432 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13433 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13435 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13436 succeeded=yes
13437 else
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439 $as_echo "no" >&6; }
13440 LIBXML2_CFLAGS=""
13441 LIBXML2_LIBS=""
13442 ## If we have a custom action on failure, don't print errors, but
13443 ## do set a variable so people can do so. Do it in a subshell
13444 ## to capture any diagnostics in invoking pkg-config.
13445 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13446
13447 fi
13448
13449
13450
13451 else
13452 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13453 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13454 fi
13455 fi
13456
13457 if test $succeeded = yes; then
13458 HAVE_LIBXML2=yes
13459 else
13460 HAVE_LIBXML2=no
13461 fi
13462
13463 if test "${HAVE_LIBXML2}" = "yes"; then
13464 LIBS="$LIBXML2_LIBS $LIBS"
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13466 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13467 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 ac_check_lib_save_LIBS=$LIBS
13471 LIBS="-lxml2 $LIBS"
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13474
13475 /* Override any GCC internal prototype to avoid an error.
13476 Use char because int might match the return type of a GCC
13477 builtin and then its argument prototype would still apply. */
13478 #ifdef __cplusplus
13479 extern "C"
13480 #endif
13481 char htmlReadMemory ();
13482 int
13483 main ()
13484 {
13485 return htmlReadMemory ();
13486 ;
13487 return 0;
13488 }
13489 _ACEOF
13490 if ac_fn_c_try_link "$LINENO"; then :
13491 ac_cv_lib_xml2_htmlReadMemory=yes
13492 else
13493 ac_cv_lib_xml2_htmlReadMemory=no
13494 fi
13495 rm -f core conftest.err conftest.$ac_objext \
13496 conftest$ac_exeext conftest.$ac_ext
13497 LIBS=$ac_check_lib_save_LIBS
13498 fi
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13500 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13501 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13502 HAVE_LIBXML2=yes
13503 else
13504 HAVE_LIBXML2=no
13505 fi
13506
13507 if test "${HAVE_LIBXML2}" = "yes"; then
13508
13509 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13510
13511 else
13512 LIBXML2_LIBS=""
13513 LIBXML2_CFLAGS=""
13514 fi
13515 fi
13516 fi
13517
13518
13519
13520 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13522 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13523 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528 #include <netdb.h>
13529 int
13530 main ()
13531 {
13532 return h_errno;
13533 ;
13534 return 0;
13535 }
13536 _ACEOF
13537 if ac_fn_c_try_link "$LINENO"; then :
13538 emacs_cv_netdb_declares_h_errno=yes
13539 else
13540 emacs_cv_netdb_declares_h_errno=no
13541 fi
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 fi
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13546 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13547 if test $emacs_cv_netdb_declares_h_errno = yes; then
13548
13549 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13550
13551 fi
13552
13553 # sqrt and other floating-point functions such as fmod and frexp
13554 # are found in -lm on most systems.
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13556 $as_echo_n "checking for sqrt in -lm... " >&6; }
13557 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 ac_check_lib_save_LIBS=$LIBS
13561 LIBS="-lm $LIBS"
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13564
13565 /* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
13568 #ifdef __cplusplus
13569 extern "C"
13570 #endif
13571 char sqrt ();
13572 int
13573 main ()
13574 {
13575 return sqrt ();
13576 ;
13577 return 0;
13578 }
13579 _ACEOF
13580 if ac_fn_c_try_link "$LINENO"; then :
13581 ac_cv_lib_m_sqrt=yes
13582 else
13583 ac_cv_lib_m_sqrt=no
13584 fi
13585 rm -f core conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13587 LIBS=$ac_check_lib_save_LIBS
13588 fi
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13590 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13591 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13592 cat >>confdefs.h <<_ACEOF
13593 #define HAVE_LIBM 1
13594 _ACEOF
13595
13596 LIBS="-lm $LIBS"
13597
13598 fi
13599
13600
13601 # Check for mail-locking functions in a "mail" library. Probably this should
13602 # have the same check as for liblockfile below.
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13604 $as_echo_n "checking for maillock in -lmail... " >&6; }
13605 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13606 $as_echo_n "(cached) " >&6
13607 else
13608 ac_check_lib_save_LIBS=$LIBS
13609 LIBS="-lmail $LIBS"
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612
13613 /* Override any GCC internal prototype to avoid an error.
13614 Use char because int might match the return type of a GCC
13615 builtin and then its argument prototype would still apply. */
13616 #ifdef __cplusplus
13617 extern "C"
13618 #endif
13619 char maillock ();
13620 int
13621 main ()
13622 {
13623 return maillock ();
13624 ;
13625 return 0;
13626 }
13627 _ACEOF
13628 if ac_fn_c_try_link "$LINENO"; then :
13629 ac_cv_lib_mail_maillock=yes
13630 else
13631 ac_cv_lib_mail_maillock=no
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13636 fi
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13638 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13639 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13640 have_mail=yes
13641 else
13642 have_mail=no
13643 fi
13644
13645 if test $have_mail = yes; then
13646 LIBS_MAIL=-lmail
13647 LIBS="$LIBS_MAIL $LIBS"
13648
13649 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13650
13651 else
13652 LIBS_MAIL=
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13655 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13656 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 ac_check_lib_save_LIBS=$LIBS
13660 LIBS="-llockfile $LIBS"
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663
13664 /* Override any GCC internal prototype to avoid an error.
13665 Use char because int might match the return type of a GCC
13666 builtin and then its argument prototype would still apply. */
13667 #ifdef __cplusplus
13668 extern "C"
13669 #endif
13670 char maillock ();
13671 int
13672 main ()
13673 {
13674 return maillock ();
13675 ;
13676 return 0;
13677 }
13678 _ACEOF
13679 if ac_fn_c_try_link "$LINENO"; then :
13680 ac_cv_lib_lockfile_maillock=yes
13681 else
13682 ac_cv_lib_lockfile_maillock=no
13683 fi
13684 rm -f core conftest.err conftest.$ac_objext \
13685 conftest$ac_exeext conftest.$ac_ext
13686 LIBS=$ac_check_lib_save_LIBS
13687 fi
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13689 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13690 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13691 have_lockfile=yes
13692 else
13693 have_lockfile=no
13694 fi
13695
13696 if test $have_lockfile = yes; then
13697 LIBS_MAIL=-llockfile
13698 LIBS="$LIBS_MAIL $LIBS"
13699
13700 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13701
13702 else
13703 # If we have the shared liblockfile, assume we must use it for mail
13704 # locking (e.g. Debian). If we couldn't link against liblockfile
13705 # (no liblockfile.a installed), ensure that we don't need to.
13706 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13707 set dummy liblockfile.so; ac_word=$2
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13709 $as_echo_n "checking for $ac_word... " >&6; }
13710 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13711 $as_echo_n "(cached) " >&6
13712 else
13713 if test -n "$liblockfile"; then
13714 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13715 else
13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13718 for as_dir in $as_dummy
13719 do
13720 IFS=$as_save_IFS
13721 test -z "$as_dir" && as_dir=.
13722 for ac_exec_ext in '' $ac_executable_extensions; do
13723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13724 ac_cv_prog_liblockfile="yes"
13725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13726 break 2
13727 fi
13728 done
13729 done
13730 IFS=$as_save_IFS
13731
13732 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13733 fi
13734 fi
13735 liblockfile=$ac_cv_prog_liblockfile
13736 if test -n "$liblockfile"; then
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13738 $as_echo "$liblockfile" >&6; }
13739 else
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13741 $as_echo "no" >&6; }
13742 fi
13743
13744
13745 if test $ac_cv_prog_liblockfile = yes; then
13746 as_fn_error "Shared liblockfile found but can't link against it.
13747 This probably means that movemail could lose mail.
13748 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13749 fi
13750 fi
13751
13752
13753
13754
13755
13756 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13757 ## interlock access to the mail spool. The alternative is a lock file named
13758 ## /usr/spool/mail/$USER.lock.
13759 mail_lock=no
13760 case "$opsys" in
13761 aix4-2) mail_lock="lockf" ;;
13762
13763 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13764
13765 ## On GNU/Linux systems, both methods are used by various mail programs.
13766 ## I assume most people are using newer mailers that have heard of flock.
13767 ## Change this if you need to.
13768 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13769 ## configure gets the right answers, and that means *NOT* using flock.
13770 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13771 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13772 ## Debian maintainer hasn't provided a clean fix for Emacs.
13773 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13774 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13775 ## correct logic. -- fx
13776 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13777 ## liblockfile is a Free Software replacement for libmail, used on
13778 ## Debian systems and elsewhere. -rfr.
13779 gnu-*)
13780 mail_lock="flock"
13781 if test $have_mail = yes || test $have_lockfile = yes; then
13782 test $ac_cv_header_maillock_h = yes && mail_lock=no
13783 fi
13784 ;;
13785 esac
13786
13787 BLESSMAIL_TARGET=
13788 case "$mail_lock" in
13789 flock)
13790 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13791 ;;
13792
13793 lockf)
13794 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13795 ;;
13796
13797 *) BLESSMAIL_TARGET="need-blessmail" ;;
13798 esac
13799
13800
13801
13802 for ac_func in gethostname \
13803 getrusage get_current_dir_name \
13804 lrand48 \
13805 select getpagesize setlocale \
13806 utimes getrlimit setrlimit shutdown getaddrinfo \
13807 strsignal setitimer \
13808 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13809 gai_strerror mkstemp getline getdelim sync \
13810 difftime posix_memalign \
13811 getpwent endpwent getgrent endgrent \
13812 touchlock \
13813 cfmakeraw cfsetspeed copysign __executable_start
13814 do :
13815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13817 eval as_val=\$$as_ac_var
13818 if test "x$as_val" = x""yes; then :
13819 cat >>confdefs.h <<_ACEOF
13820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13821 _ACEOF
13822
13823 fi
13824 done
13825
13826
13827 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13828 ## has a broken `rint' in some library versions including math library
13829 ## version number A.09.05.
13830 ## You can fix the math library by installing patch number PHSS_4630.
13831 ## But we can fix it more reliably for Emacs by just not using rint.
13832 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13833 case $opsys in
13834 hpux*) : ;;
13835 *) for ac_func in random rint
13836 do :
13837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13838 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13839 eval as_val=\$$as_ac_var
13840 if test "x$as_val" = x""yes; then :
13841 cat >>confdefs.h <<_ACEOF
13842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13843 _ACEOF
13844
13845 fi
13846 done
13847 ;;
13848 esac
13849
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13851 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13852 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13853 $as_echo_n "(cached) " >&6
13854 else
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13857
13858 int
13859 main ()
13860 {
13861 __builtin_unwind_init ();
13862 ;
13863 return 0;
13864 }
13865 _ACEOF
13866 if ac_fn_c_try_link "$LINENO"; then :
13867 emacs_cv_func___builtin_unwind_init=yes
13868 else
13869 emacs_cv_func___builtin_unwind_init=no
13870 fi
13871 rm -f core conftest.err conftest.$ac_objext \
13872 conftest$ac_exeext conftest.$ac_ext
13873 fi
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13875 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13876 if test $emacs_cv_func___builtin_unwind_init = yes; then
13877
13878 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13879
13880 fi
13881
13882
13883
13884
13885
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13887 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13888 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13891 while :; do
13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h. */
13894 #include <sys/types.h> /* for off_t */
13895 #include <stdio.h>
13896 int
13897 main ()
13898 {
13899 int (*fp) (FILE *, off_t, int) = fseeko;
13900 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13901 ;
13902 return 0;
13903 }
13904 _ACEOF
13905 if ac_fn_c_try_link "$LINENO"; then :
13906 ac_cv_sys_largefile_source=no; break
13907 fi
13908 rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13912 #define _LARGEFILE_SOURCE 1
13913 #include <sys/types.h> /* for off_t */
13914 #include <stdio.h>
13915 int
13916 main ()
13917 {
13918 int (*fp) (FILE *, off_t, int) = fseeko;
13919 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13920 ;
13921 return 0;
13922 }
13923 _ACEOF
13924 if ac_fn_c_try_link "$LINENO"; then :
13925 ac_cv_sys_largefile_source=1; break
13926 fi
13927 rm -f core conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
13929 ac_cv_sys_largefile_source=unknown
13930 break
13931 done
13932 fi
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13934 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13935 case $ac_cv_sys_largefile_source in #(
13936 no | unknown) ;;
13937 *)
13938 cat >>confdefs.h <<_ACEOF
13939 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13940 _ACEOF
13941 ;;
13942 esac
13943 rm -rf conftest*
13944
13945 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13946 # in glibc 2.1.3, but that breaks too many other things.
13947 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13948 if test $ac_cv_sys_largefile_source != unknown; then
13949
13950 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13951
13952 fi
13953
13954
13955 # UNIX98 PTYs.
13956 for ac_func in grantpt
13957 do :
13958 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13959 if test "x$ac_cv_func_grantpt" = x""yes; then :
13960 cat >>confdefs.h <<_ACEOF
13961 #define HAVE_GRANTPT 1
13962 _ACEOF
13963
13964 fi
13965 done
13966
13967
13968 # PTY-related GNU extensions.
13969 for ac_func in getpt posix_openpt
13970 do :
13971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13972 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13973 eval as_val=\$$as_ac_var
13974 if test "x$as_val" = x""yes; then :
13975 cat >>confdefs.h <<_ACEOF
13976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13977 _ACEOF
13978
13979 fi
13980 done
13981
13982
13983 # Check this now, so that we will NOT find the above functions in ncurses.
13984 # That is because we have not set up to link ncurses in lib-src.
13985 # It's better to believe a function is not available
13986 # than to expect to find it in ncurses.
13987 # Also we need tputs and friends to be able to build at all.
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13989 $as_echo_n "checking for library containing tputs... " >&6; }
13990 # Run a test program that contains a call to tputs, a call that is
13991 # never executed. This tests whether a pre-'main' dynamic linker
13992 # works with the library. It's too much trouble to actually call
13993 # tputs in the test program, due to portability hassles. When
13994 # cross-compiling, assume the test program will run if it links.
13995
13996 # Maybe curses should be tried earlier?
13997 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13998 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13999 OLIBS=$LIBS
14000 if test -z "$tputs_library"; then
14001 LIBS_TERMCAP=
14002 msg='none required'
14003 else
14004 LIBS_TERMCAP=-l$tputs_library
14005 msg=$LIBS_TERMCAP
14006 LIBS="$LIBS_TERMCAP $LIBS"
14007 fi
14008 if test "$cross_compiling" = yes; then :
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011
14012 extern void tputs (const char *, int, int (*)(int));
14013 int main (int argc, char **argv)
14014 {
14015 if (argc == 10000)
14016 tputs (argv[0], 0, 0);
14017 return 0;
14018 }
14019
14020 _ACEOF
14021 if ac_fn_c_try_link "$LINENO"; then :
14022
14023 else
14024 msg=no
14025 fi
14026 rm -f core conftest.err conftest.$ac_objext \
14027 conftest$ac_exeext conftest.$ac_ext
14028 else
14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14031
14032 extern void tputs (const char *, int, int (*)(int));
14033 int main (int argc, char **argv)
14034 {
14035 if (argc == 10000)
14036 tputs (argv[0], 0, 0);
14037 return 0;
14038 }
14039
14040 _ACEOF
14041 if ac_fn_c_try_run "$LINENO"; then :
14042
14043 else
14044 msg=no
14045 fi
14046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14047 conftest.$ac_objext conftest.beam conftest.$ac_ext
14048 fi
14049
14050 LIBS=$OLIBS
14051 if test "X$msg" != Xno; then
14052 break
14053 fi
14054 done
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14056 $as_echo "$msg" >&6; }
14057 if test "X$msg" = Xno; then
14058 as_fn_error "The required function \`tputs' was not found in any library.
14059 The following libraries were tried (in order):
14060 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14061 Please try installing whichever of these libraries is most appropriate
14062 for your system, together with its header files.
14063 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14064 fi
14065
14066 ## Use termcap instead of terminfo?
14067 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14068 TERMINFO=yes
14069 ## FIXME? In the cases below where we unconditionally set
14070 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14071 ## if that was found above to have tputs.
14072 ## Should we use the gnu* logic everywhere?
14073 case "$opsys" in
14074 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14075 ## The ncurses library has been moved out of the System framework in
14076 ## Mac OS X 10.2. So if configure detects it, set the command-line
14077 ## option to use it.
14078 darwin) LIBS_TERMCAP="-lncurses" ;;
14079
14080 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
14081
14082 freebsd)
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14084 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14085 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 #include <osreldate.h>
14091 int
14092 main ()
14093 {
14094 #if __FreeBSD_version < 400000
14095 fail;
14096 #endif
14097
14098 ;
14099 return 0;
14100 }
14101 _ACEOF
14102 if ac_fn_c_try_link "$LINENO"; then :
14103 emacs_cv_freebsd_terminfo=yes
14104 else
14105 emacs_cv_freebsd_terminfo=no
14106 fi
14107 rm -f core conftest.err conftest.$ac_objext \
14108 conftest$ac_exeext conftest.$ac_ext
14109 fi
14110
14111
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14113 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14114
14115 if test $emacs_cv_freebsd_terminfo = yes; then
14116 LIBS_TERMCAP="-lncurses"
14117 else
14118 TERMINFO=no
14119 LIBS_TERMCAP="-ltermcap"
14120 fi
14121 ;;
14122
14123 netbsd)
14124 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14125 TERMINFO=no
14126 LIBS_TERMCAP="-ltermcap"
14127 fi
14128 ;;
14129
14130 openbsd) LIBS_TERMCAP="-lncurses" ;;
14131
14132 ## hpux: Make sure we get select from libc rather than from libcurses
14133 ## because libcurses on HPUX 10.10 has a broken version of select.
14134 ## We used to use -lc -lcurses, but this may be cleaner.
14135 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14136 # set that way, now it uses the default). Isn't this a contradiction?
14137 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14138
14139 esac
14140
14141 TERMCAP_OBJ=tparam.o
14142 if test $TERMINFO = yes; then
14143
14144 $as_echo "#define TERMINFO 1" >>confdefs.h
14145
14146 TERMCAP_OBJ=terminfo.o
14147 fi
14148
14149
14150
14151
14152 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14153 # On Darwin, res_init appears not to be useful: see bug#562 and
14154 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14155 resolv=no
14156
14157 if test $opsys != darwin; then
14158
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 #include <netinet/in.h>
14162 #include <arpa/nameser.h>
14163 #include <resolv.h>
14164 int
14165 main ()
14166 {
14167 return res_init();
14168 ;
14169 return 0;
14170 }
14171 _ACEOF
14172 if ac_fn_c_try_link "$LINENO"; then :
14173 have_res_init=yes
14174 else
14175 have_res_init=no
14176 fi
14177 rm -f core conftest.err conftest.$ac_objext \
14178 conftest$ac_exeext conftest.$ac_ext
14179 if test "$have_res_init" = no; then
14180 OLIBS="$LIBS"
14181 LIBS="$LIBS -lresolv"
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14183 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14186 #include <netinet/in.h>
14187 #include <arpa/nameser.h>
14188 #include <resolv.h>
14189 int
14190 main ()
14191 {
14192 return res_init();
14193 ;
14194 return 0;
14195 }
14196 _ACEOF
14197 if ac_fn_c_try_link "$LINENO"; then :
14198 have_res_init=yes
14199 else
14200 have_res_init=no
14201 fi
14202 rm -f core conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14205 $as_echo "$have_res_init" >&6; }
14206 if test "$have_res_init" = yes ; then
14207 resolv=yes
14208 fi
14209 LIBS="$OLIBS"
14210 fi
14211
14212 if test "$have_res_init" = yes; then
14213
14214 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14215
14216 fi
14217 fi
14218 # Do we need the Hesiod library to provide the support routines?
14219 LIBHESIOD=
14220 if test "$with_hesiod" != no ; then
14221 # Don't set $LIBS here -- see comments above. FIXME which comments?
14222 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14223 if test "x$ac_cv_func_res_send" = x""yes; then :
14224
14225 else
14226 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14227 if test "x$ac_cv_func___res_send" = x""yes; then :
14228
14229 else
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14231 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14232 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14233 $as_echo_n "(cached) " >&6
14234 else
14235 ac_check_lib_save_LIBS=$LIBS
14236 LIBS="-lresolv $LIBS"
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14239
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14243 #ifdef __cplusplus
14244 extern "C"
14245 #endif
14246 char res_send ();
14247 int
14248 main ()
14249 {
14250 return res_send ();
14251 ;
14252 return 0;
14253 }
14254 _ACEOF
14255 if ac_fn_c_try_link "$LINENO"; then :
14256 ac_cv_lib_resolv_res_send=yes
14257 else
14258 ac_cv_lib_resolv_res_send=no
14259 fi
14260 rm -f core conftest.err conftest.$ac_objext \
14261 conftest$ac_exeext conftest.$ac_ext
14262 LIBS=$ac_check_lib_save_LIBS
14263 fi
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14265 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14266 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14267 resolv=yes
14268 else
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14270 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14271 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14272 $as_echo_n "(cached) " >&6
14273 else
14274 ac_check_lib_save_LIBS=$LIBS
14275 LIBS="-lresolv $LIBS"
14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h. */
14278
14279 /* Override any GCC internal prototype to avoid an error.
14280 Use char because int might match the return type of a GCC
14281 builtin and then its argument prototype would still apply. */
14282 #ifdef __cplusplus
14283 extern "C"
14284 #endif
14285 char __res_send ();
14286 int
14287 main ()
14288 {
14289 return __res_send ();
14290 ;
14291 return 0;
14292 }
14293 _ACEOF
14294 if ac_fn_c_try_link "$LINENO"; then :
14295 ac_cv_lib_resolv___res_send=yes
14296 else
14297 ac_cv_lib_resolv___res_send=no
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext conftest.$ac_ext
14301 LIBS=$ac_check_lib_save_LIBS
14302 fi
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14304 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14305 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14306 resolv=yes
14307 fi
14308
14309 fi
14310
14311 fi
14312
14313 fi
14314
14315 if test "$resolv" = yes ; then
14316 RESOLVLIB=-lresolv
14317 else
14318 RESOLVLIB=
14319 fi
14320 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14321 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14322
14323 else
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14325 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14326 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14327 $as_echo_n "(cached) " >&6
14328 else
14329 ac_check_lib_save_LIBS=$LIBS
14330 LIBS="-lhesiod $RESOLVLIB $LIBS"
14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332 /* end confdefs.h. */
14333
14334 /* Override any GCC internal prototype to avoid an error.
14335 Use char because int might match the return type of a GCC
14336 builtin and then its argument prototype would still apply. */
14337 #ifdef __cplusplus
14338 extern "C"
14339 #endif
14340 char hes_getmailhost ();
14341 int
14342 main ()
14343 {
14344 return hes_getmailhost ();
14345 ;
14346 return 0;
14347 }
14348 _ACEOF
14349 if ac_fn_c_try_link "$LINENO"; then :
14350 ac_cv_lib_hesiod_hes_getmailhost=yes
14351 else
14352 ac_cv_lib_hesiod_hes_getmailhost=no
14353 fi
14354 rm -f core conftest.err conftest.$ac_objext \
14355 conftest$ac_exeext conftest.$ac_ext
14356 LIBS=$ac_check_lib_save_LIBS
14357 fi
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14359 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14360 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14361 hesiod=yes
14362 else
14363 :
14364 fi
14365
14366 fi
14367
14368
14369 if test x"$hesiod" = xyes; then
14370
14371 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14372
14373 LIBHESIOD=-lhesiod
14374 fi
14375 fi
14376
14377
14378 # Do we need libresolv (due to res_init or Hesiod)?
14379 if test "$resolv" = yes && test $opsys != darwin; then
14380
14381 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14382
14383 LIBRESOLV=-lresolv
14384 else
14385 LIBRESOLV=
14386 fi
14387
14388
14389 # These tell us which Kerberos-related libraries to use.
14390 COM_ERRLIB=
14391 CRYPTOLIB=
14392 KRB5LIB=
14393 DESLIB=
14394 KRB4LIB=
14395
14396 if test "${with_kerberos}" != no; then
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14398 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14399 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14400 $as_echo_n "(cached) " >&6
14401 else
14402 ac_check_lib_save_LIBS=$LIBS
14403 LIBS="-lcom_err $LIBS"
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406
14407 /* Override any GCC internal prototype to avoid an error.
14408 Use char because int might match the return type of a GCC
14409 builtin and then its argument prototype would still apply. */
14410 #ifdef __cplusplus
14411 extern "C"
14412 #endif
14413 char com_err ();
14414 int
14415 main ()
14416 {
14417 return com_err ();
14418 ;
14419 return 0;
14420 }
14421 _ACEOF
14422 if ac_fn_c_try_link "$LINENO"; then :
14423 ac_cv_lib_com_err_com_err=yes
14424 else
14425 ac_cv_lib_com_err_com_err=no
14426 fi
14427 rm -f core conftest.err conftest.$ac_objext \
14428 conftest$ac_exeext conftest.$ac_ext
14429 LIBS=$ac_check_lib_save_LIBS
14430 fi
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14432 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14433 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14434 have_com_err=yes
14435 else
14436 have_com_err=no
14437 fi
14438
14439 if test $have_com_err = yes; then
14440 COM_ERRLIB=-lcom_err
14441 LIBS="$COM_ERRLIB $LIBS"
14442
14443 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14444
14445 fi
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14447 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14448 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14449 $as_echo_n "(cached) " >&6
14450 else
14451 ac_check_lib_save_LIBS=$LIBS
14452 LIBS="-lcrypto $LIBS"
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455
14456 /* Override any GCC internal prototype to avoid an error.
14457 Use char because int might match the return type of a GCC
14458 builtin and then its argument prototype would still apply. */
14459 #ifdef __cplusplus
14460 extern "C"
14461 #endif
14462 char mit_des_cbc_encrypt ();
14463 int
14464 main ()
14465 {
14466 return mit_des_cbc_encrypt ();
14467 ;
14468 return 0;
14469 }
14470 _ACEOF
14471 if ac_fn_c_try_link "$LINENO"; then :
14472 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14473 else
14474 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14475 fi
14476 rm -f core conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
14478 LIBS=$ac_check_lib_save_LIBS
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14481 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14482 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14483 have_crypto=yes
14484 else
14485 have_crypto=no
14486 fi
14487
14488 if test $have_crypto = yes; then
14489 CRYPTOLIB=-lcrypto
14490 LIBS="$CRYPTOLIB $LIBS"
14491
14492 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14493
14494 fi
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14496 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14497 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500 ac_check_lib_save_LIBS=$LIBS
14501 LIBS="-lk5crypto $LIBS"
14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14504
14505 /* Override any GCC internal prototype to avoid an error.
14506 Use char because int might match the return type of a GCC
14507 builtin and then its argument prototype would still apply. */
14508 #ifdef __cplusplus
14509 extern "C"
14510 #endif
14511 char mit_des_cbc_encrypt ();
14512 int
14513 main ()
14514 {
14515 return mit_des_cbc_encrypt ();
14516 ;
14517 return 0;
14518 }
14519 _ACEOF
14520 if ac_fn_c_try_link "$LINENO"; then :
14521 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14522 else
14523 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14524 fi
14525 rm -f core conftest.err conftest.$ac_objext \
14526 conftest$ac_exeext conftest.$ac_ext
14527 LIBS=$ac_check_lib_save_LIBS
14528 fi
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14530 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14531 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14532 have_k5crypto=yes
14533 else
14534 have_k5crypto=no
14535 fi
14536
14537 if test $have_k5crypto = yes; then
14538 CRYPTOLIB=-lk5crypto
14539 LIBS="$CRYPTOLIB $LIBS"
14540
14541 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14542
14543 fi
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14545 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14546 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14547 $as_echo_n "(cached) " >&6
14548 else
14549 ac_check_lib_save_LIBS=$LIBS
14550 LIBS="-lkrb5 $LIBS"
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14553
14554 /* Override any GCC internal prototype to avoid an error.
14555 Use char because int might match the return type of a GCC
14556 builtin and then its argument prototype would still apply. */
14557 #ifdef __cplusplus
14558 extern "C"
14559 #endif
14560 char krb5_init_context ();
14561 int
14562 main ()
14563 {
14564 return krb5_init_context ();
14565 ;
14566 return 0;
14567 }
14568 _ACEOF
14569 if ac_fn_c_try_link "$LINENO"; then :
14570 ac_cv_lib_krb5_krb5_init_context=yes
14571 else
14572 ac_cv_lib_krb5_krb5_init_context=no
14573 fi
14574 rm -f core conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_check_lib_save_LIBS
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14579 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14580 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14581 have_krb5=yes
14582 else
14583 have_krb5=no
14584 fi
14585
14586 if test $have_krb5=yes; then
14587 KRB5LIB=-lkrb5
14588 LIBS="$KRB5LIB $LIBS"
14589
14590 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14591
14592 fi
14593 if test "${with_kerberos5}" = no; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14595 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14596 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 ac_check_lib_save_LIBS=$LIBS
14600 LIBS="-ldes425 $LIBS"
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14603
14604 /* Override any GCC internal prototype to avoid an error.
14605 Use char because int might match the return type of a GCC
14606 builtin and then its argument prototype would still apply. */
14607 #ifdef __cplusplus
14608 extern "C"
14609 #endif
14610 char des_cbc_encrypt ();
14611 int
14612 main ()
14613 {
14614 return des_cbc_encrypt ();
14615 ;
14616 return 0;
14617 }
14618 _ACEOF
14619 if ac_fn_c_try_link "$LINENO"; then :
14620 ac_cv_lib_des425_des_cbc_encrypt=yes
14621 else
14622 ac_cv_lib_des425_des_cbc_encrypt=no
14623 fi
14624 rm -f core conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626 LIBS=$ac_check_lib_save_LIBS
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14629 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14630 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14631 have_des425=yes
14632 else
14633 have_des425=no
14634 fi
14635
14636 if test $have_des425 = yes; then
14637 DESLIB=-ldes425
14638 LIBS="$DESLIB $LIBS"
14639
14640 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14641
14642 else
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14644 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14645 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 ac_check_lib_save_LIBS=$LIBS
14649 LIBS="-ldes $LIBS"
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14652
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14656 #ifdef __cplusplus
14657 extern "C"
14658 #endif
14659 char des_cbc_encrypt ();
14660 int
14661 main ()
14662 {
14663 return des_cbc_encrypt ();
14664 ;
14665 return 0;
14666 }
14667 _ACEOF
14668 if ac_fn_c_try_link "$LINENO"; then :
14669 ac_cv_lib_des_des_cbc_encrypt=yes
14670 else
14671 ac_cv_lib_des_des_cbc_encrypt=no
14672 fi
14673 rm -f core conftest.err conftest.$ac_objext \
14674 conftest$ac_exeext conftest.$ac_ext
14675 LIBS=$ac_check_lib_save_LIBS
14676 fi
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14678 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14679 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14680 have_des=yes
14681 else
14682 have_des=no
14683 fi
14684
14685 if test $have_des = yes; then
14686 DESLIB=-ldes
14687 LIBS="$DESLIB $LIBS"
14688
14689 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14690
14691 fi
14692 fi
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14694 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14695 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14696 $as_echo_n "(cached) " >&6
14697 else
14698 ac_check_lib_save_LIBS=$LIBS
14699 LIBS="-lkrb4 $LIBS"
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14702
14703 /* Override any GCC internal prototype to avoid an error.
14704 Use char because int might match the return type of a GCC
14705 builtin and then its argument prototype would still apply. */
14706 #ifdef __cplusplus
14707 extern "C"
14708 #endif
14709 char krb_get_cred ();
14710 int
14711 main ()
14712 {
14713 return krb_get_cred ();
14714 ;
14715 return 0;
14716 }
14717 _ACEOF
14718 if ac_fn_c_try_link "$LINENO"; then :
14719 ac_cv_lib_krb4_krb_get_cred=yes
14720 else
14721 ac_cv_lib_krb4_krb_get_cred=no
14722 fi
14723 rm -f core conftest.err conftest.$ac_objext \
14724 conftest$ac_exeext conftest.$ac_ext
14725 LIBS=$ac_check_lib_save_LIBS
14726 fi
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14728 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14729 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14730 have_krb4=yes
14731 else
14732 have_krb4=no
14733 fi
14734
14735 if test $have_krb4 = yes; then
14736 KRB4LIB=-lkrb4
14737 LIBS="$KRB4LIB $LIBS"
14738
14739 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14740
14741 else
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14743 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14744 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14745 $as_echo_n "(cached) " >&6
14746 else
14747 ac_check_lib_save_LIBS=$LIBS
14748 LIBS="-lkrb $LIBS"
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14751
14752 /* Override any GCC internal prototype to avoid an error.
14753 Use char because int might match the return type of a GCC
14754 builtin and then its argument prototype would still apply. */
14755 #ifdef __cplusplus
14756 extern "C"
14757 #endif
14758 char krb_get_cred ();
14759 int
14760 main ()
14761 {
14762 return krb_get_cred ();
14763 ;
14764 return 0;
14765 }
14766 _ACEOF
14767 if ac_fn_c_try_link "$LINENO"; then :
14768 ac_cv_lib_krb_krb_get_cred=yes
14769 else
14770 ac_cv_lib_krb_krb_get_cred=no
14771 fi
14772 rm -f core conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext conftest.$ac_ext
14774 LIBS=$ac_check_lib_save_LIBS
14775 fi
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14777 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14778 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14779 have_krb=yes
14780 else
14781 have_krb=no
14782 fi
14783
14784 if test $have_krb = yes; then
14785 KRB4LIB=-lkrb
14786 LIBS="$KRB4LIB $LIBS"
14787
14788 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14789
14790 fi
14791 fi
14792 fi
14793
14794 if test "${with_kerberos5}" != no; then
14795 for ac_header in krb5.h
14796 do :
14797 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14798 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14799 cat >>confdefs.h <<_ACEOF
14800 #define HAVE_KRB5_H 1
14801 _ACEOF
14802 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14803 "
14804 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14805
14806 cat >>confdefs.h <<_ACEOF
14807 #define HAVE_KRB5_ERROR_TEXT 1
14808 _ACEOF
14809
14810
14811 fi
14812 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14813 "
14814 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14815
14816 cat >>confdefs.h <<_ACEOF
14817 #define HAVE_KRB5_ERROR_E_TEXT 1
14818 _ACEOF
14819
14820
14821 fi
14822
14823 fi
14824
14825 done
14826
14827 else
14828 for ac_header in des.h
14829 do :
14830 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14831 if test "x$ac_cv_header_des_h" = x""yes; then :
14832 cat >>confdefs.h <<_ACEOF
14833 #define HAVE_DES_H 1
14834 _ACEOF
14835
14836 else
14837 for ac_header in kerberosIV/des.h
14838 do :
14839 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14840 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14841 cat >>confdefs.h <<_ACEOF
14842 #define HAVE_KERBEROSIV_DES_H 1
14843 _ACEOF
14844
14845 else
14846 for ac_header in kerberos/des.h
14847 do :
14848 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14849 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14850 cat >>confdefs.h <<_ACEOF
14851 #define HAVE_KERBEROS_DES_H 1
14852 _ACEOF
14853
14854 fi
14855
14856 done
14857
14858 fi
14859
14860 done
14861
14862 fi
14863
14864 done
14865
14866 for ac_header in krb.h
14867 do :
14868 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14869 if test "x$ac_cv_header_krb_h" = x""yes; then :
14870 cat >>confdefs.h <<_ACEOF
14871 #define HAVE_KRB_H 1
14872 _ACEOF
14873
14874 else
14875 for ac_header in kerberosIV/krb.h
14876 do :
14877 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14878 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14879 cat >>confdefs.h <<_ACEOF
14880 #define HAVE_KERBEROSIV_KRB_H 1
14881 _ACEOF
14882
14883 else
14884 for ac_header in kerberos/krb.h
14885 do :
14886 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14887 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14888 cat >>confdefs.h <<_ACEOF
14889 #define HAVE_KERBEROS_KRB_H 1
14890 _ACEOF
14891
14892 fi
14893
14894 done
14895
14896 fi
14897
14898 done
14899
14900 fi
14901
14902 done
14903
14904 fi
14905 for ac_header in com_err.h
14906 do :
14907 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14908 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14909 cat >>confdefs.h <<_ACEOF
14910 #define HAVE_COM_ERR_H 1
14911 _ACEOF
14912
14913 fi
14914
14915 done
14916
14917 fi
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928 for ac_func in $ac_func_list
14929 do :
14930 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14931 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14932 eval as_val=\$$as_ac_var
14933 if test "x$as_val" = x""yes; then :
14934 cat >>confdefs.h <<_ACEOF
14935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14936 _ACEOF
14937
14938 fi
14939 done
14940
14941
14942
14943
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14945 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14946 if test "${emacs_cv_localtime_cache+set}" = set; then :
14947 $as_echo_n "(cached) " >&6
14948 else
14949 if test x$ac_cv_func_tzset = xyes; then
14950 if test "$cross_compiling" = yes; then :
14951 # If we have tzset, assume the worst when cross-compiling.
14952 emacs_cv_localtime_cache=yes
14953 else
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14956 #include <time.h>
14957 char TZ_GMT0[] = "TZ=GMT0";
14958 char TZ_PST8[] = "TZ=PST8";
14959 main()
14960 {
14961 time_t now = time ((time_t *) 0);
14962 int hour_GMT0, hour_unset;
14963 if (putenv (TZ_GMT0) != 0)
14964 exit (1);
14965 hour_GMT0 = localtime (&now)->tm_hour;
14966 unsetenv("TZ");
14967 hour_unset = localtime (&now)->tm_hour;
14968 if (putenv (TZ_PST8) != 0)
14969 exit (1);
14970 if (localtime (&now)->tm_hour == hour_GMT0)
14971 exit (1);
14972 unsetenv("TZ");
14973 if (localtime (&now)->tm_hour != hour_unset)
14974 exit (1);
14975 exit (0);
14976 }
14977 _ACEOF
14978 if ac_fn_c_try_run "$LINENO"; then :
14979 emacs_cv_localtime_cache=no
14980 else
14981 emacs_cv_localtime_cache=yes
14982 fi
14983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14984 conftest.$ac_objext conftest.beam conftest.$ac_ext
14985 fi
14986
14987 else
14988 # If we lack tzset, report that localtime does not cache TZ,
14989 # since we can't invalidate the cache if we don't have tzset.
14990 emacs_cv_localtime_cache=no
14991 fi
14992 fi
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14994 $as_echo "$emacs_cv_localtime_cache" >&6; }
14995 if test $emacs_cv_localtime_cache = yes; then
14996
14997 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14998
14999 fi
15000
15001 ok_so_far=yes
15002 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15003 if test "x$ac_cv_func_socket" = x""yes; then :
15004
15005 else
15006 ok_so_far=no
15007 fi
15008
15009 if test $ok_so_far = yes; then
15010 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15011 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15012
15013 else
15014 ok_so_far=no
15015 fi
15016
15017
15018 fi
15019 if test $ok_so_far = yes; then
15020 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15021 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15022
15023 else
15024 ok_so_far=no
15025 fi
15026
15027
15028 fi
15029 if test $ok_so_far = yes; then
15030
15031 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15032
15033 fi
15034
15035 if test -f /usr/lpp/X11/bin/smt.exp; then
15036
15037 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15038
15039 fi
15040
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15042 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15043 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15045 $as_echo "yes" >&6; }
15046
15047 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15048
15049 else
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15051 $as_echo "no" >&6; }
15052 fi
15053
15054 case $canonical in
15055 *-solaris2.4 | *-solaris2.4.*)
15056 : ${ac_cv_func_vfork_works=no};;
15057 esac
15058
15059 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15060 if test "x$ac_cv_type_pid_t" = x""yes; then :
15061
15062 else
15063
15064 cat >>confdefs.h <<_ACEOF
15065 #define pid_t int
15066 _ACEOF
15067
15068 fi
15069
15070 for ac_header in vfork.h
15071 do :
15072 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15073 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15074 cat >>confdefs.h <<_ACEOF
15075 #define HAVE_VFORK_H 1
15076 _ACEOF
15077
15078 fi
15079
15080 done
15081
15082 for ac_func in fork vfork
15083 do :
15084 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15085 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15086 eval as_val=\$$as_ac_var
15087 if test "x$as_val" = x""yes; then :
15088 cat >>confdefs.h <<_ACEOF
15089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15090 _ACEOF
15091
15092 fi
15093 done
15094
15095 if test "x$ac_cv_func_fork" = xyes; then
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15097 $as_echo_n "checking for working fork... " >&6; }
15098 if test "${ac_cv_func_fork_works+set}" = set; then :
15099 $as_echo_n "(cached) " >&6
15100 else
15101 if test "$cross_compiling" = yes; then :
15102 ac_cv_func_fork_works=cross
15103 else
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15106 $ac_includes_default
15107 int
15108 main ()
15109 {
15110
15111 /* By Ruediger Kuhlmann. */
15112 return fork () < 0;
15113
15114 ;
15115 return 0;
15116 }
15117 _ACEOF
15118 if ac_fn_c_try_run "$LINENO"; then :
15119 ac_cv_func_fork_works=yes
15120 else
15121 ac_cv_func_fork_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_fork_works" >&5
15129 $as_echo "$ac_cv_func_fork_works" >&6; }
15130
15131 else
15132 ac_cv_func_fork_works=$ac_cv_func_fork
15133 fi
15134 if test "x$ac_cv_func_fork_works" = xcross; then
15135 case $host in
15136 *-*-amigaos* | *-*-msdosdjgpp*)
15137 # Override, as these systems have only a dummy fork() stub
15138 ac_cv_func_fork_works=no
15139 ;;
15140 *)
15141 ac_cv_func_fork_works=yes
15142 ;;
15143 esac
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15145 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15146 fi
15147 ac_cv_func_vfork_works=$ac_cv_func_vfork
15148 if test "x$ac_cv_func_vfork" = xyes; then
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15150 $as_echo_n "checking for working vfork... " >&6; }
15151 if test "${ac_cv_func_vfork_works+set}" = set; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154 if test "$cross_compiling" = yes; then :
15155 ac_cv_func_vfork_works=cross
15156 else
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 /* Thanks to Paul Eggert for this test. */
15160 $ac_includes_default
15161 #include <sys/wait.h>
15162 #ifdef HAVE_VFORK_H
15163 # include <vfork.h>
15164 #endif
15165 /* On some sparc systems, changes by the child to local and incoming
15166 argument registers are propagated back to the parent. The compiler
15167 is told about this with #include <vfork.h>, but some compilers
15168 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15169 static variable whose address is put into a register that is
15170 clobbered by the vfork. */
15171 static void
15172 #ifdef __cplusplus
15173 sparc_address_test (int arg)
15174 # else
15175 sparc_address_test (arg) int arg;
15176 #endif
15177 {
15178 static pid_t child;
15179 if (!child) {
15180 child = vfork ();
15181 if (child < 0) {
15182 perror ("vfork");
15183 _exit(2);
15184 }
15185 if (!child) {
15186 arg = getpid();
15187 write(-1, "", 0);
15188 _exit (arg);
15189 }
15190 }
15191 }
15192
15193 int
15194 main ()
15195 {
15196 pid_t parent = getpid ();
15197 pid_t child;
15198
15199 sparc_address_test (0);
15200
15201 child = vfork ();
15202
15203 if (child == 0) {
15204 /* Here is another test for sparc vfork register problems. This
15205 test uses lots of local variables, at least as many local
15206 variables as main has allocated so far including compiler
15207 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15208 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15209 reuse the register of parent for one of the local variables,
15210 since it will think that parent can't possibly be used any more
15211 in this routine. Assigning to the local variable will thus
15212 munge parent in the parent process. */
15213 pid_t
15214 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15215 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15216 /* Convince the compiler that p..p7 are live; otherwise, it might
15217 use the same hardware register for all 8 local variables. */
15218 if (p != p1 || p != p2 || p != p3 || p != p4
15219 || p != p5 || p != p6 || p != p7)
15220 _exit(1);
15221
15222 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15223 from child file descriptors. If the child closes a descriptor
15224 before it execs or exits, this munges the parent's descriptor
15225 as well. Test for this by closing stdout in the child. */
15226 _exit(close(fileno(stdout)) != 0);
15227 } else {
15228 int status;
15229 struct stat st;
15230
15231 while (wait(&status) != child)
15232 ;
15233 return (
15234 /* Was there some problem with vforking? */
15235 child < 0
15236
15237 /* Did the child fail? (This shouldn't happen.) */
15238 || status
15239
15240 /* Did the vfork/compiler bug occur? */
15241 || parent != getpid()
15242
15243 /* Did the file descriptor bug occur? */
15244 || fstat(fileno(stdout), &st) != 0
15245 );
15246 }
15247 }
15248 _ACEOF
15249 if ac_fn_c_try_run "$LINENO"; then :
15250 ac_cv_func_vfork_works=yes
15251 else
15252 ac_cv_func_vfork_works=no
15253 fi
15254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15255 conftest.$ac_objext conftest.beam conftest.$ac_ext
15256 fi
15257
15258 fi
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15260 $as_echo "$ac_cv_func_vfork_works" >&6; }
15261
15262 fi;
15263 if test "x$ac_cv_func_fork_works" = xcross; then
15264 ac_cv_func_vfork_works=$ac_cv_func_vfork
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15266 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15267 fi
15268
15269 if test "x$ac_cv_func_vfork_works" = xyes; then
15270
15271 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15272
15273 else
15274
15275 $as_echo "#define vfork fork" >>confdefs.h
15276
15277 fi
15278 if test "x$ac_cv_func_fork_works" = xyes; then
15279
15280 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15281
15282 fi
15283
15284
15285 for ac_func in snprintf
15286 do :
15287 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15288 if test "x$ac_cv_func_snprintf" = x""yes; then :
15289 cat >>confdefs.h <<_ACEOF
15290 #define HAVE_SNPRINTF 1
15291 _ACEOF
15292
15293 fi
15294 done
15295
15296
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15298 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15299 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15300 $as_echo_n "(cached) " >&6
15301 else
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15304 #include <langinfo.h>
15305 int
15306 main ()
15307 {
15308 char* cs = nl_langinfo(CODESET);
15309 ;
15310 return 0;
15311 }
15312 _ACEOF
15313 if ac_fn_c_try_link "$LINENO"; then :
15314 emacs_cv_langinfo_codeset=yes
15315 else
15316 emacs_cv_langinfo_codeset=no
15317 fi
15318 rm -f core conftest.err conftest.$ac_objext \
15319 conftest$ac_exeext conftest.$ac_ext
15320
15321 fi
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15323 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15324 if test $emacs_cv_langinfo_codeset = yes; then
15325
15326 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15327
15328 fi
15329
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15331 $as_echo_n "checking for mbstate_t... " >&6; }
15332 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15333 $as_echo_n "(cached) " >&6
15334 else
15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15337 $ac_includes_default
15338 # include <wchar.h>
15339 int
15340 main ()
15341 {
15342 mbstate_t x; return sizeof x;
15343 ;
15344 return 0;
15345 }
15346 _ACEOF
15347 if ac_fn_c_try_compile "$LINENO"; then :
15348 ac_cv_type_mbstate_t=yes
15349 else
15350 ac_cv_type_mbstate_t=no
15351 fi
15352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353 fi
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15355 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15356 if test $ac_cv_type_mbstate_t = yes; then
15357
15358 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15359
15360 else
15361
15362 $as_echo "#define mbstate_t int" >>confdefs.h
15363
15364 fi
15365
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15367 $as_echo_n "checking for C restricted array declarations... " >&6; }
15368 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15369 $as_echo_n "(cached) " >&6
15370 else
15371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15372 /* end confdefs.h. */
15373 void fred (int x[__restrict]);
15374 int
15375 main ()
15376 {
15377
15378 ;
15379 return 0;
15380 }
15381 _ACEOF
15382 if ac_fn_c_try_compile "$LINENO"; then :
15383 emacs_cv_c_restrict_arr=yes
15384 else
15385 emacs_cv_c_restrict_arr=no
15386 fi
15387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388 fi
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15390 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15391 if test "$emacs_cv_c_restrict_arr" = yes; then
15392
15393 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15394
15395 fi
15396
15397
15398
15399 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15400
15401
15402
15403 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15404
15405
15406 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15407
15408 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15409
15410
15411
15412 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15413
15414
15415
15416
15417
15418 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15419
15420
15421
15422 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15423
15424
15425
15426 $as_echo "#define subprocesses 1" >>confdefs.h
15427
15428
15429
15430 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15431
15432
15433
15434
15435 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15436
15437
15438
15439
15440
15441 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15442
15443
15444
15445 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15446
15447
15448
15449 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15450
15451
15452
15453
15454
15455 case $opsys in
15456 aix4-2)
15457 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15458 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15459
15460 fi
15461 ;;
15462
15463 hpux*)
15464 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15465
15466 ;;
15467 esac
15468
15469
15470 case $opsys in
15471 irix6-5 | sol2* | unixware )
15472
15473 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15474
15475 ;;
15476 esac
15477
15478 emacs_broken_SIGIO=no
15479
15480 case $opsys in
15481 hpux* | irix6-5 | openbsd | sol2* | unixware )
15482 emacs_broken_SIGIO=yes
15483 ;;
15484
15485 aix4-2)
15486
15487 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15488
15489 ;;
15490
15491 freebsd)
15492
15493 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15494
15495 ;;
15496 esac
15497
15498 case $opsys in
15499 gnu-* | sol2-10 )
15500
15501 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15502
15503 ;;
15504 esac
15505
15506 case $opsys in
15507 darwin | freebsd | netbsd | openbsd )
15508
15509 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15510
15511 ;;
15512 esac
15513
15514 case $opsys in
15515 netbsd | openbsd) sound_device="/dev/audio" ;;
15516 *) sound_device="/dev/dsp" ;;
15517 esac
15518
15519
15520 cat >>confdefs.h <<_ACEOF
15521 #define DEFAULT_SOUND_DEVICE "$sound_device"
15522 _ACEOF
15523
15524
15525
15526 case $opsys in
15527 darwin | gnu-linux | gnu-kfreebsd )
15528
15529 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15530
15531 ;;
15532 esac
15533
15534
15535 case $opsys in
15536 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15537
15538 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15539
15540 ;;
15541 esac
15542
15543
15544
15545
15546
15547
15548
15549
15550 case $opsys in
15551 aix4-2 )
15552 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15553
15554 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15555
15556 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15557
15558 ;;
15559
15560 cygwin )
15561 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15562
15563 $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
15564
15565 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15566
15567 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15568
15569 ;;
15570
15571 darwin )
15572 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15573
15574 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15575
15576 $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
15577
15578 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15579
15580 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15581
15582 ;;
15583
15584 gnu | openbsd )
15585 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15586
15587 ;;
15588
15589 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15590 if test "x$ac_cv_func_grantpt" = xyes; then
15591
15592 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15593
15594 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15595
15596 $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
15597
15598 if test "x$ac_cv_func_posix_openpt" = xyes; then
15599 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15600
15601 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15602
15603 elif test "x$ac_cv_func_getpt" = xyes; then
15604 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15605
15606 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15607
15608 else
15609 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15610
15611 fi
15612 else
15613 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15614
15615 fi
15616 ;;
15617
15618 hpux*)
15619 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15620
15621 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15622
15623 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15624
15625 ;;
15626
15627 irix6-5 )
15628 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15629
15630 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15631
15632 $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
15633
15634 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15635
15636 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15637
15638 ;;
15639
15640 sol2* )
15641 $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
15642
15643 ;;
15644
15645 unixware )
15646 $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
15647
15648 ;;
15649 esac
15650
15651
15652 case $opsys in
15653 sol2* | unixware )
15654 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15655
15656 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15657
15658
15659 $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
15660
15661 ;;
15662 esac
15663
15664
15665
15666
15667 case $opsys in
15668 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin )
15669 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15670
15671 ;;
15672
15673 gnu-linux | gnu-kfreebsd )
15674
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15676 $as_echo_n "checking for signals via characters... " >&6; }
15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679
15680 #include <linux/version.h>
15681 #if LINUX_VERSION_CODE < 0x20400
15682 # error "Linux version too old"
15683 #endif
15684
15685 int
15686 main ()
15687 {
15688
15689 ;
15690 return 0;
15691 }
15692 _ACEOF
15693 if ac_fn_c_try_cpp "$LINENO"; then :
15694 emacs_signals_via_chars=yes
15695 else
15696 emacs_signals_via_chars=no
15697 fi
15698 rm -f conftest.err conftest.$ac_ext
15699
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15701 $as_echo "$emacs_signals_via_chars" >&6; }
15702 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15703
15704 ;;
15705 esac
15706
15707
15708
15709
15710 case $opsys in
15711 aix*)
15712 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
15713
15714 ;;
15715 hpux*)
15716 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15717
15718 ;;
15719 irix6-5)
15720 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15721
15722 ;;
15723 esac
15724
15725
15726
15727
15728 case $opsys in
15729 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15730 ;;
15731
15732 gnu | freebsd | netbsd | openbsd )
15733
15734 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15735
15736 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15737
15738 ;;
15739
15740 gnu-linux | gnu-kfreebsd )
15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15743
15744 #ifndef __ia64__
15745 # error "not ia64"
15746 #endif
15747
15748 int
15749 main ()
15750 {
15751
15752 ;
15753 return 0;
15754 }
15755 _ACEOF
15756 if ac_fn_c_try_cpp "$LINENO"; then :
15757
15758 $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
15759
15760 fi
15761 rm -f conftest.err conftest.$ac_ext
15762 ;;
15763
15764 hpux*)
15765
15766 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15767
15768 ;;
15769 esac
15770
15771
15772
15773
15774
15775 case $opsys in
15776 gnu-linux | gnu-kfreebsd )
15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h. */
15779
15780 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15781 || defined __alpha__ || defined __mips__ || defined __s390__ \
15782 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15783 || defined __ia64__ || defined __sh__
15784 /* ok */
15785 #else
15786 # error "setjmp not known to work on this arch"
15787 #endif
15788
15789 int
15790 main ()
15791 {
15792
15793 ;
15794 return 0;
15795 }
15796 _ACEOF
15797 if ac_fn_c_try_cpp "$LINENO"; then :
15798 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15799
15800 fi
15801 rm -f conftest.err conftest.$ac_ext
15802 ;;
15803 esac
15804
15805
15806 if test x$GCC = xyes; then
15807 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15808
15809 else
15810 case $opsys in
15811 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15812 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15813
15814 ;;
15815 esac
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15818 $as_echo_n "checking for _setjmp... " >&6; }
15819 if test "${emacs_cv_func__setjmp+set}" = set; then :
15820 $as_echo_n "(cached) " >&6
15821 else
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15824 #include <setjmp.h>
15825
15826 int
15827 main ()
15828 {
15829 jmp_buf j;
15830 if (! _setjmp (j))
15831 _longjmp (j, 1);
15832 ;
15833 return 0;
15834 }
15835 _ACEOF
15836 if ac_fn_c_try_link "$LINENO"; then :
15837 emacs_cv_func__setjmp=yes
15838 else
15839 emacs_cv_func__setjmp=no
15840 fi
15841 rm -f core conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext conftest.$ac_ext
15843 fi
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15845 $as_echo "$emacs_cv_func__setjmp" >&6; }
15846 if test $emacs_cv_func__setjmp = yes; then
15847
15848 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15849
15850 else
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15852 $as_echo_n "checking for sigsetjmp... " >&6; }
15853 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15854 $as_echo_n "(cached) " >&6
15855 else
15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857 /* end confdefs.h. */
15858 #include <setjmp.h>
15859
15860 int
15861 main ()
15862 {
15863 sigjmp_buf j;
15864 if (! sigsetjmp (j, 1))
15865 siglongjmp (j, 1);
15866 ;
15867 return 0;
15868 }
15869 _ACEOF
15870 if ac_fn_c_try_link "$LINENO"; then :
15871 emacs_cv_func_sigsetjmp=yes
15872 else
15873 emacs_cv_func_sigsetjmp=no
15874 fi
15875 rm -f core conftest.err conftest.$ac_objext \
15876 conftest$ac_exeext conftest.$ac_ext
15877 fi
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15879 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15880 if test $emacs_cv_func_sigsetjmp = yes; then
15881
15882 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15883
15884 fi
15885 fi
15886
15887 case $opsys in
15888 sol2* | unixware )
15889
15890 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15891
15892 ;;
15893 esac
15894
15895
15896 case $opsys in
15897 hpux* | sol2* )
15898
15899 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15900
15901 ;;
15902 esac
15903
15904
15905
15906
15907
15908
15909
15910
15911 case $opsys in
15912 aix4-2)
15913 $as_echo "#define USG /**/" >>confdefs.h
15914
15915 $as_echo "#define USG5 /**/" >>confdefs.h
15916
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919
15920 #ifndef _AIX
15921 # error "_AIX not defined"
15922 #endif
15923
15924 int
15925 main ()
15926 {
15927
15928 ;
15929 return 0;
15930 }
15931 _ACEOF
15932 if ac_fn_c_try_cpp "$LINENO"; then :
15933
15934 else
15935
15936 $as_echo "#define _AIX /**/" >>confdefs.h
15937
15938 fi
15939 rm -f conftest.err conftest.$ac_ext
15940 ;;
15941
15942 cygwin)
15943
15944 $as_echo "#define CYGWIN 1" >>confdefs.h
15945
15946 ;;
15947
15948 darwin)
15949
15950 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15951
15952 ;;
15953
15954 gnu-linux | gnu-kfreebsd )
15955 $as_echo "#define USG /**/" >>confdefs.h
15956
15957
15958 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15959
15960 ;;
15961
15962 hpux*)
15963 $as_echo "#define USG /**/" >>confdefs.h
15964
15965 $as_echo "#define USG5 /**/" >>confdefs.h
15966
15967
15968 $as_echo "#define HPUX /**/" >>confdefs.h
15969
15970 ;;
15971
15972 irix6-5)
15973 $as_echo "#define USG /**/" >>confdefs.h
15974
15975 $as_echo "#define USG5 /**/" >>confdefs.h
15976
15977 $as_echo "#define USG5_4 /**/" >>confdefs.h
15978
15979
15980 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15981
15982 ;;
15983
15984 sol2*)
15985 $as_echo "#define USG /**/" >>confdefs.h
15986
15987 $as_echo "#define USG5 /**/" >>confdefs.h
15988
15989 $as_echo "#define USG5_4 /**/" >>confdefs.h
15990
15991
15992 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15993
15994 ;;
15995
15996 unixware)
15997 $as_echo "#define USG /**/" >>confdefs.h
15998
15999 $as_echo "#define USG5 /**/" >>confdefs.h
16000
16001 $as_echo "#define USG5_4 /**/" >>confdefs.h
16002
16003 ;;
16004 esac
16005
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16007 $as_echo_n "checking for usable FIONREAD... " >&6; }
16008 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16009 $as_echo_n "(cached) " >&6
16010 else
16011 case $opsys in
16012 aix4-2)
16013 emacs_cv_usable_FIONREAD=no
16014 ;;
16015
16016 *)
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16019 #include <sys/types.h>
16020 #include <sys/ioctl.h>
16021 #ifdef USG5_4
16022 # include <sys/filio.h>
16023 #endif
16024
16025 int
16026 main ()
16027 {
16028 int foo = ioctl (0, FIONREAD, &foo);
16029 ;
16030 return 0;
16031 }
16032 _ACEOF
16033 if ac_fn_c_try_compile "$LINENO"; then :
16034 emacs_cv_usable_FIONREAD=yes
16035 else
16036 emacs_cv_usable_FIONREAD=no
16037 fi
16038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16039 ;;
16040 esac
16041 fi
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16043 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16044 if test $emacs_cv_usable_FIONREAD = yes; then
16045
16046 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16047
16048
16049 if test $emacs_broken_SIGIO = no; then
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16051 $as_echo_n "checking for usable SIGIO... " >&6; }
16052 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16053 $as_echo_n "(cached) " >&6
16054 else
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16057 #include <fcntl.h>
16058 #include <signal.h>
16059
16060 int
16061 main ()
16062 {
16063 int foo = SIGIO | F_SETFL | FASYNC;
16064 ;
16065 return 0;
16066 }
16067 _ACEOF
16068 if ac_fn_c_try_compile "$LINENO"; then :
16069 emacs_cv_usable_SIGIO=yes
16070 else
16071 emacs_cv_usable_SIGIO=no
16072 fi
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 fi
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16076 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16077 if test $emacs_cv_usable_SIGIO = yes; then
16078
16079 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16080
16081 fi
16082 fi
16083 fi
16084
16085
16086 case $opsys in
16087 cygwin)
16088
16089 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16090
16091 ;;
16092
16093 hpux11)
16094
16095 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16096
16097 ;;
16098
16099 irix6-5)
16100
16101 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16102
16103 ;;
16104
16105 sol2-10)
16106
16107 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16108
16109 ;;
16110 esac
16111
16112 # Set up the CFLAGS for real compilation, so we can substitute it.
16113 CFLAGS="$REAL_CFLAGS"
16114 CPPFLAGS="$REAL_CPPFLAGS"
16115
16116 ## Hack to detect a buggy GCC version.
16117 if test "x$GCC" = xyes \
16118 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16119 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16120 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16121 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16122 fi
16123
16124 version=$PACKAGE_VERSION
16125
16126 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
16127
16128 cat >>confdefs.h <<_ACEOF
16129 #define COPYRIGHT "$copyright"
16130 _ACEOF
16131
16132
16133
16134 ### Specify what sort of things we'll be editing into Makefile and config.h.
16135 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16136
16137
16138 ## Unused?
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16162 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16163 ## end of LIBX_BASE, but nothing ever set it.
16164
16165
16166
16167
16168 ## Used in lwlib/Makefile.in.
16169
16170
16171
16172
16173
16174
16175
16176
16177 if test -n "${term_header}"; then
16178
16179 cat >>confdefs.h <<_ACEOF
16180 #define TERM_HEADER "${term_header}"
16181 _ACEOF
16182
16183 fi
16184
16185
16186 cat >>confdefs.h <<_ACEOF
16187 #define EMACS_CONFIGURATION "${canonical}"
16188 _ACEOF
16189
16190 emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16191
16192 cat >>confdefs.h <<_ACEOF
16193 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16194 _ACEOF
16195
16196
16197
16198 XMENU_OBJ=
16199 XOBJ=
16200 FONT_OBJ=
16201 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16202
16203 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16204
16205 XMENU_OBJ=xmenu.o
16206 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16207 FONT_OBJ=xfont.o
16208 if test "$HAVE_XFT" = "yes"; then
16209 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16210 elif test "$HAVE_FREETYPE" = "yes"; then
16211 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16212 fi
16213
16214 fi
16215
16216
16217
16218
16219 WIDGET_OBJ=
16220 MOTIF_LIBW=
16221 if test "${USE_X_TOOLKIT}" != "none" ; then
16222 WIDGET_OBJ=widget.o
16223
16224 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16225
16226 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16227
16228 $as_echo "#define USE_LUCID 1" >>confdefs.h
16229
16230 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16231
16232 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16233
16234 MOTIF_LIBW=-lXm
16235 case "$opsys" in
16236 gnu-linux)
16237 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16238 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16239 ;;
16240
16241 unixware)
16242 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16243 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16244 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16245 ;;
16246
16247 aix4-2)
16248 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16249 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16250 ;;
16251 esac
16252 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16253 fi
16254 fi
16255
16256
16257 TOOLKIT_LIBW=
16258 case "$USE_X_TOOLKIT" in
16259 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16260 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16261 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16262 esac
16263
16264
16265 if test "$USE_X_TOOLKIT" = "none"; then
16266 LIBXT_OTHER="\$(LIBXSM)"
16267 OLDXMENU_TARGET="really-oldXMenu"
16268 else
16269 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16270 OLDXMENU_TARGET="really-lwlib"
16271 fi
16272
16273
16274 ## The X Menu stuff is present in the X10 distribution, but missing
16275 ## from X11. If we have X10, just use the installed library;
16276 ## otherwise, use our own copy.
16277 if test "${HAVE_X11}" = "yes" ; then
16278
16279 $as_echo "#define HAVE_X11 1" >>confdefs.h
16280
16281
16282 if test "$USE_X_TOOLKIT" = "none"; then
16283 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16284 else
16285 OLDXMENU="\${lwlibdir}/liblw.a"
16286 fi
16287 LIBXMENU="\$(OLDXMENU)"
16288 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16289 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16290 else
16291 ## For a syntactically valid Makefile; not actually used for anything.
16292 ## See comments in src/Makefile.in.
16293 OLDXMENU=nothing
16294 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16295 if test "${HAVE_X_WINDOWS}" = "yes"; then
16296 LIBXMENU="-lXMenu"
16297 else
16298 LIBXMENU=
16299 fi
16300 LIBX_OTHER=
16301 OLDXMENU_DEPS=
16302 fi
16303
16304 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16305 OLDXMENU_TARGET=
16306 OLDXMENU=nothing
16307 LIBXMENU=
16308 OLDXMENU_DEPS=
16309 fi
16310
16311
16312
16313
16314
16315
16316
16317 if test "${HAVE_MENUS}" = "yes" ; then
16318
16319 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16320
16321 fi
16322
16323 if test "${GNU_MALLOC}" = "yes" ; then
16324
16325 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16326
16327 fi
16328
16329 RALLOC_OBJ=
16330 if test "${REL_ALLOC}" = "yes" ; then
16331
16332 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16333
16334
16335 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16336 fi
16337
16338
16339 if test "$opsys" = "cygwin"; then
16340 CYGWIN_OBJ="sheap.o cygw32.o"
16341 ## Cygwin differs because of its unexec().
16342 PRE_ALLOC_OBJ=
16343 POST_ALLOC_OBJ=lastfile.o
16344 else
16345 CYGWIN_OBJ=
16346 PRE_ALLOC_OBJ=lastfile.o
16347 POST_ALLOC_OBJ=
16348 fi
16349
16350
16351
16352
16353 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16354 # it temporarily reverts them to their pre-pkg-config values,
16355 # because gnulib needs to work with both src (which uses the
16356 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16357 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16358 # and it therefore needs to run in an environment where LIBS does not
16359 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16360 # for some package unrelated to lib-src.
16361 SAVE_CFLAGS=$CFLAGS
16362 SAVE_LIBS=$LIBS
16363 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16364 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376 LIBC_FATAL_STDERR_=1
16377 export LIBC_FATAL_STDERR_
16378
16379 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16380 # for constant arguments. Useless!
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16382 $as_echo_n "checking for working alloca.h... " >&6; }
16383 if test "${ac_cv_working_alloca_h+set}" = set; then :
16384 $as_echo_n "(cached) " >&6
16385 else
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16388 #include <alloca.h>
16389 int
16390 main ()
16391 {
16392 char *p = (char *) alloca (2 * sizeof (int));
16393 if (p) return 0;
16394 ;
16395 return 0;
16396 }
16397 _ACEOF
16398 if ac_fn_c_try_link "$LINENO"; then :
16399 ac_cv_working_alloca_h=yes
16400 else
16401 ac_cv_working_alloca_h=no
16402 fi
16403 rm -f core conftest.err conftest.$ac_objext \
16404 conftest$ac_exeext conftest.$ac_ext
16405 fi
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16407 $as_echo "$ac_cv_working_alloca_h" >&6; }
16408 if test $ac_cv_working_alloca_h = yes; then
16409
16410 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16411
16412 fi
16413
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16415 $as_echo_n "checking for alloca... " >&6; }
16416 if test "${ac_cv_func_alloca_works+set}" = set; then :
16417 $as_echo_n "(cached) " >&6
16418 else
16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h. */
16421 #ifdef __GNUC__
16422 # define alloca __builtin_alloca
16423 #else
16424 # ifdef _MSC_VER
16425 # include <malloc.h>
16426 # define alloca _alloca
16427 # else
16428 # ifdef HAVE_ALLOCA_H
16429 # include <alloca.h>
16430 # else
16431 # ifdef _AIX
16432 #pragma alloca
16433 # else
16434 # ifndef alloca /* predefined by HP cc +Olibcalls */
16435 char *alloca ();
16436 # endif
16437 # endif
16438 # endif
16439 # endif
16440 #endif
16441
16442 int
16443 main ()
16444 {
16445 char *p = (char *) alloca (1);
16446 if (p) return 0;
16447 ;
16448 return 0;
16449 }
16450 _ACEOF
16451 if ac_fn_c_try_link "$LINENO"; then :
16452 ac_cv_func_alloca_works=yes
16453 else
16454 ac_cv_func_alloca_works=no
16455 fi
16456 rm -f core conftest.err conftest.$ac_objext \
16457 conftest$ac_exeext conftest.$ac_ext
16458 fi
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16460 $as_echo "$ac_cv_func_alloca_works" >&6; }
16461
16462 if test $ac_cv_func_alloca_works = yes; then
16463
16464 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16465
16466 else
16467 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16468 # that cause trouble. Some versions do not even contain alloca or
16469 # contain a buggy version. If you still want to use their alloca,
16470 # use ar to extract alloca.o from them instead of compiling alloca.c.
16471
16472
16473
16474
16475
16476 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16477
16478 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16479
16480
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16482 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16483 if test "${ac_cv_os_cray+set}" = set; then :
16484 $as_echo_n "(cached) " >&6
16485 else
16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h. */
16488 #if defined CRAY && ! defined CRAY2
16489 webecray
16490 #else
16491 wenotbecray
16492 #endif
16493
16494 _ACEOF
16495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16496 $EGREP "webecray" >/dev/null 2>&1; then :
16497 ac_cv_os_cray=yes
16498 else
16499 ac_cv_os_cray=no
16500 fi
16501 rm -f conftest*
16502
16503 fi
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16505 $as_echo "$ac_cv_os_cray" >&6; }
16506 if test $ac_cv_os_cray = yes; then
16507 for ac_func in _getb67 GETB67 getb67; do
16508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16509 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16510 eval as_val=\$$as_ac_var
16511 if test "x$as_val" = x""yes; then :
16512
16513 cat >>confdefs.h <<_ACEOF
16514 #define CRAY_STACKSEG_END $ac_func
16515 _ACEOF
16516
16517 break
16518 fi
16519
16520 done
16521 fi
16522
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16524 $as_echo_n "checking stack direction for C alloca... " >&6; }
16525 if test "${ac_cv_c_stack_direction+set}" = set; then :
16526 $as_echo_n "(cached) " >&6
16527 else
16528 if test "$cross_compiling" = yes; then :
16529 ac_cv_c_stack_direction=0
16530 else
16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16533 $ac_includes_default
16534 int
16535 find_stack_direction (int *addr, int depth)
16536 {
16537 int dir, dummy = 0;
16538 if (! addr)
16539 addr = &dummy;
16540 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16541 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16542 return dir + dummy;
16543 }
16544
16545 int
16546 main (int argc, char **argv)
16547 {
16548 return find_stack_direction (0, argc + !argv + 20) < 0;
16549 }
16550 _ACEOF
16551 if ac_fn_c_try_run "$LINENO"; then :
16552 ac_cv_c_stack_direction=1
16553 else
16554 ac_cv_c_stack_direction=-1
16555 fi
16556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16557 conftest.$ac_objext conftest.beam conftest.$ac_ext
16558 fi
16559
16560 fi
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16562 $as_echo "$ac_cv_c_stack_direction" >&6; }
16563 cat >>confdefs.h <<_ACEOF
16564 #define STACK_DIRECTION $ac_cv_c_stack_direction
16565 _ACEOF
16566
16567
16568 fi
16569
16570
16571
16572
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16574 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16575 if test "${ac_cv_c_bigendian+set}" = set; then :
16576 $as_echo_n "(cached) " >&6
16577 else
16578 ac_cv_c_bigendian=unknown
16579 # See if we're dealing with a universal compiler.
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16582 #ifndef __APPLE_CC__
16583 not a universal capable compiler
16584 #endif
16585 typedef int dummy;
16586
16587 _ACEOF
16588 if ac_fn_c_try_compile "$LINENO"; then :
16589
16590 # Check for potential -arch flags. It is not universal unless
16591 # there are at least two -arch flags with different values.
16592 ac_arch=
16593 ac_prev=
16594 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16595 if test -n "$ac_prev"; then
16596 case $ac_word in
16597 i?86 | x86_64 | ppc | ppc64)
16598 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16599 ac_arch=$ac_word
16600 else
16601 ac_cv_c_bigendian=universal
16602 break
16603 fi
16604 ;;
16605 esac
16606 ac_prev=
16607 elif test "x$ac_word" = "x-arch"; then
16608 ac_prev=arch
16609 fi
16610 done
16611 fi
16612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16613 if test $ac_cv_c_bigendian = unknown; then
16614 # See if sys/param.h defines the BYTE_ORDER macro.
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16617 #include <sys/types.h>
16618 #include <sys/param.h>
16619
16620 int
16621 main ()
16622 {
16623 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16624 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16625 && LITTLE_ENDIAN)
16626 bogus endian macros
16627 #endif
16628
16629 ;
16630 return 0;
16631 }
16632 _ACEOF
16633 if ac_fn_c_try_compile "$LINENO"; then :
16634 # It does; now see whether it defined to BIG_ENDIAN or not.
16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636 /* end confdefs.h. */
16637 #include <sys/types.h>
16638 #include <sys/param.h>
16639
16640 int
16641 main ()
16642 {
16643 #if BYTE_ORDER != BIG_ENDIAN
16644 not big endian
16645 #endif
16646
16647 ;
16648 return 0;
16649 }
16650 _ACEOF
16651 if ac_fn_c_try_compile "$LINENO"; then :
16652 ac_cv_c_bigendian=yes
16653 else
16654 ac_cv_c_bigendian=no
16655 fi
16656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657 fi
16658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 fi
16660 if test $ac_cv_c_bigendian = unknown; then
16661 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16664 #include <limits.h>
16665
16666 int
16667 main ()
16668 {
16669 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16670 bogus endian macros
16671 #endif
16672
16673 ;
16674 return 0;
16675 }
16676 _ACEOF
16677 if ac_fn_c_try_compile "$LINENO"; then :
16678 # It does; now see whether it defined to _BIG_ENDIAN or not.
16679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680 /* end confdefs.h. */
16681 #include <limits.h>
16682
16683 int
16684 main ()
16685 {
16686 #ifndef _BIG_ENDIAN
16687 not big endian
16688 #endif
16689
16690 ;
16691 return 0;
16692 }
16693 _ACEOF
16694 if ac_fn_c_try_compile "$LINENO"; then :
16695 ac_cv_c_bigendian=yes
16696 else
16697 ac_cv_c_bigendian=no
16698 fi
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700 fi
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 fi
16703 if test $ac_cv_c_bigendian = unknown; then
16704 # Compile a test program.
16705 if test "$cross_compiling" = yes; then :
16706 # Try to guess by grepping values from an object file.
16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708 /* end confdefs.h. */
16709 short int ascii_mm[] =
16710 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16711 short int ascii_ii[] =
16712 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16713 int use_ascii (int i) {
16714 return ascii_mm[i] + ascii_ii[i];
16715 }
16716 short int ebcdic_ii[] =
16717 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16718 short int ebcdic_mm[] =
16719 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16720 int use_ebcdic (int i) {
16721 return ebcdic_mm[i] + ebcdic_ii[i];
16722 }
16723 extern int foo;
16724
16725 int
16726 main ()
16727 {
16728 return use_ascii (foo) == use_ebcdic (foo);
16729 ;
16730 return 0;
16731 }
16732 _ACEOF
16733 if ac_fn_c_try_compile "$LINENO"; then :
16734 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16735 ac_cv_c_bigendian=yes
16736 fi
16737 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16738 if test "$ac_cv_c_bigendian" = unknown; then
16739 ac_cv_c_bigendian=no
16740 else
16741 # finding both strings is unlikely to happen, but who knows?
16742 ac_cv_c_bigendian=unknown
16743 fi
16744 fi
16745 fi
16746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747 else
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16750 $ac_includes_default
16751 int
16752 main ()
16753 {
16754
16755 /* Are we little or big endian? From Harbison&Steele. */
16756 union
16757 {
16758 long int l;
16759 char c[sizeof (long int)];
16760 } u;
16761 u.l = 1;
16762 return u.c[sizeof (long int) - 1] == 1;
16763
16764 ;
16765 return 0;
16766 }
16767 _ACEOF
16768 if ac_fn_c_try_run "$LINENO"; then :
16769 ac_cv_c_bigendian=no
16770 else
16771 ac_cv_c_bigendian=yes
16772 fi
16773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16774 conftest.$ac_objext conftest.beam conftest.$ac_ext
16775 fi
16776
16777 fi
16778 fi
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16780 $as_echo "$ac_cv_c_bigendian" >&6; }
16781 case $ac_cv_c_bigendian in #(
16782 yes)
16783 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16784 ;; #(
16785 no)
16786 ;; #(
16787 universal)
16788
16789 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16790
16791 ;; #(
16792 *)
16793 as_fn_error "unknown endianness
16794 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16795 esac
16796
16797
16798
16799 GNULIB_CHDIR=0;
16800 GNULIB_CHOWN=0;
16801 GNULIB_CLOSE=0;
16802 GNULIB_DUP=0;
16803 GNULIB_DUP2=0;
16804 GNULIB_DUP3=0;
16805 GNULIB_ENVIRON=0;
16806 GNULIB_EUIDACCESS=0;
16807 GNULIB_FACCESSAT=0;
16808 GNULIB_FCHDIR=0;
16809 GNULIB_FCHOWNAT=0;
16810 GNULIB_FDATASYNC=0;
16811 GNULIB_FSYNC=0;
16812 GNULIB_FTRUNCATE=0;
16813 GNULIB_GETCWD=0;
16814 GNULIB_GETDOMAINNAME=0;
16815 GNULIB_GETDTABLESIZE=0;
16816 GNULIB_GETGROUPS=0;
16817 GNULIB_GETHOSTNAME=0;
16818 GNULIB_GETLOGIN=0;
16819 GNULIB_GETLOGIN_R=0;
16820 GNULIB_GETPAGESIZE=0;
16821 GNULIB_GETUSERSHELL=0;
16822 GNULIB_GROUP_MEMBER=0;
16823 GNULIB_ISATTY=0;
16824 GNULIB_LCHOWN=0;
16825 GNULIB_LINK=0;
16826 GNULIB_LINKAT=0;
16827 GNULIB_LSEEK=0;
16828 GNULIB_PIPE=0;
16829 GNULIB_PIPE2=0;
16830 GNULIB_PREAD=0;
16831 GNULIB_PWRITE=0;
16832 GNULIB_READ=0;
16833 GNULIB_READLINK=0;
16834 GNULIB_READLINKAT=0;
16835 GNULIB_RMDIR=0;
16836 GNULIB_SETHOSTNAME=0;
16837 GNULIB_SLEEP=0;
16838 GNULIB_SYMLINK=0;
16839 GNULIB_SYMLINKAT=0;
16840 GNULIB_TTYNAME_R=0;
16841 GNULIB_UNISTD_H_NONBLOCKING=0;
16842 GNULIB_UNISTD_H_SIGPIPE=0;
16843 GNULIB_UNLINK=0;
16844 GNULIB_UNLINKAT=0;
16845 GNULIB_USLEEP=0;
16846 GNULIB_WRITE=0;
16847 HAVE_CHOWN=1;
16848 HAVE_DUP2=1;
16849 HAVE_DUP3=1;
16850 HAVE_EUIDACCESS=1;
16851 HAVE_FACCESSAT=1;
16852 HAVE_FCHDIR=1;
16853 HAVE_FCHOWNAT=1;
16854 HAVE_FDATASYNC=1;
16855 HAVE_FSYNC=1;
16856 HAVE_FTRUNCATE=1;
16857 HAVE_GETDTABLESIZE=1;
16858 HAVE_GETGROUPS=1;
16859 HAVE_GETHOSTNAME=1;
16860 HAVE_GETLOGIN=1;
16861 HAVE_GETPAGESIZE=1;
16862 HAVE_GROUP_MEMBER=1;
16863 HAVE_LCHOWN=1;
16864 HAVE_LINK=1;
16865 HAVE_LINKAT=1;
16866 HAVE_PIPE=1;
16867 HAVE_PIPE2=1;
16868 HAVE_PREAD=1;
16869 HAVE_PWRITE=1;
16870 HAVE_READLINK=1;
16871 HAVE_READLINKAT=1;
16872 HAVE_SETHOSTNAME=1;
16873 HAVE_SLEEP=1;
16874 HAVE_SYMLINK=1;
16875 HAVE_SYMLINKAT=1;
16876 HAVE_UNLINKAT=1;
16877 HAVE_USLEEP=1;
16878 HAVE_DECL_ENVIRON=1;
16879 HAVE_DECL_FCHDIR=1;
16880 HAVE_DECL_FDATASYNC=1;
16881 HAVE_DECL_GETDOMAINNAME=1;
16882 HAVE_DECL_GETLOGIN_R=1;
16883 HAVE_DECL_GETPAGESIZE=1;
16884 HAVE_DECL_GETUSERSHELL=1;
16885 HAVE_DECL_SETHOSTNAME=1;
16886 HAVE_DECL_TTYNAME_R=1;
16887 HAVE_OS_H=0;
16888 HAVE_SYS_PARAM_H=0;
16889 REPLACE_CHOWN=0;
16890 REPLACE_CLOSE=0;
16891 REPLACE_DUP=0;
16892 REPLACE_DUP2=0;
16893 REPLACE_FCHOWNAT=0;
16894 REPLACE_FTRUNCATE=0;
16895 REPLACE_GETCWD=0;
16896 REPLACE_GETDOMAINNAME=0;
16897 REPLACE_GETLOGIN_R=0;
16898 REPLACE_GETGROUPS=0;
16899 REPLACE_GETPAGESIZE=0;
16900 REPLACE_ISATTY=0;
16901 REPLACE_LCHOWN=0;
16902 REPLACE_LINK=0;
16903 REPLACE_LINKAT=0;
16904 REPLACE_LSEEK=0;
16905 REPLACE_PREAD=0;
16906 REPLACE_PWRITE=0;
16907 REPLACE_READ=0;
16908 REPLACE_READLINK=0;
16909 REPLACE_RMDIR=0;
16910 REPLACE_SLEEP=0;
16911 REPLACE_SYMLINK=0;
16912 REPLACE_TTYNAME_R=0;
16913 REPLACE_UNLINK=0;
16914 REPLACE_UNLINKAT=0;
16915 REPLACE_USLEEP=0;
16916 REPLACE_WRITE=0;
16917 UNISTD_H_HAVE_WINSOCK2_H=0;
16918 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16919
16920
16921
16922 GNULIB_OPENDIR=0;
16923 GNULIB_READDIR=0;
16924 GNULIB_REWINDDIR=0;
16925 GNULIB_CLOSEDIR=0;
16926 GNULIB_DIRFD=0;
16927 GNULIB_FDOPENDIR=0;
16928 GNULIB_SCANDIR=0;
16929 GNULIB_ALPHASORT=0;
16930 HAVE_OPENDIR=1;
16931 HAVE_READDIR=1;
16932 HAVE_REWINDDIR=1;
16933 HAVE_CLOSEDIR=1;
16934 HAVE_DECL_DIRFD=1;
16935 HAVE_DECL_FDOPENDIR=1;
16936 HAVE_FDOPENDIR=1;
16937 HAVE_SCANDIR=1;
16938 HAVE_ALPHASORT=1;
16939 REPLACE_OPENDIR=0;
16940 REPLACE_CLOSEDIR=0;
16941 REPLACE_DIRFD=0;
16942 REPLACE_FDOPENDIR=0;
16943
16944
16945
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16947 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16948 if test "${gl_cv_have_include_next+set}" = set; then :
16949 $as_echo_n "(cached) " >&6
16950 else
16951 rm -rf conftestd1a conftestd1b conftestd2
16952 mkdir conftestd1a conftestd1b conftestd2
16953 cat <<EOF > conftestd1a/conftest.h
16954 #define DEFINED_IN_CONFTESTD1
16955 #include_next <conftest.h>
16956 #ifdef DEFINED_IN_CONFTESTD2
16957 int foo;
16958 #else
16959 #error "include_next doesn't work"
16960 #endif
16961 EOF
16962 cat <<EOF > conftestd1b/conftest.h
16963 #define DEFINED_IN_CONFTESTD1
16964 #include <stdio.h>
16965 #include_next <conftest.h>
16966 #ifdef DEFINED_IN_CONFTESTD2
16967 int foo;
16968 #else
16969 #error "include_next doesn't work"
16970 #endif
16971 EOF
16972 cat <<EOF > conftestd2/conftest.h
16973 #ifndef DEFINED_IN_CONFTESTD1
16974 #error "include_next test doesn't work"
16975 #endif
16976 #define DEFINED_IN_CONFTESTD2
16977 EOF
16978 gl_save_CPPFLAGS="$CPPFLAGS"
16979 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16982 #include <conftest.h>
16983 _ACEOF
16984 if ac_fn_c_try_compile "$LINENO"; then :
16985 gl_cv_have_include_next=yes
16986 else
16987 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16990 #include <conftest.h>
16991 _ACEOF
16992 if ac_fn_c_try_compile "$LINENO"; then :
16993 gl_cv_have_include_next=buggy
16994 else
16995 gl_cv_have_include_next=no
16996 fi
16997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16998
16999 fi
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 CPPFLAGS="$gl_save_CPPFLAGS"
17002 rm -rf conftestd1a conftestd1b conftestd2
17003
17004 fi
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17006 $as_echo "$gl_cv_have_include_next" >&6; }
17007 PRAGMA_SYSTEM_HEADER=
17008 if test $gl_cv_have_include_next = yes; then
17009 INCLUDE_NEXT=include_next
17010 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17011 if test -n "$GCC"; then
17012 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17013 fi
17014 else
17015 if test $gl_cv_have_include_next = buggy; then
17016 INCLUDE_NEXT=include
17017 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17018 else
17019 INCLUDE_NEXT=include
17020 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17021 fi
17022 fi
17023
17024
17025
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17027 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17028 if test "${gl_cv_pragma_columns+set}" = set; then :
17029 $as_echo_n "(cached) " >&6
17030 else
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17033
17034 #ifdef __TANDEM
17035 choke me
17036 #endif
17037
17038 _ACEOF
17039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17040 $EGREP "choke me" >/dev/null 2>&1; then :
17041 gl_cv_pragma_columns=yes
17042 else
17043 gl_cv_pragma_columns=no
17044 fi
17045 rm -f conftest*
17046
17047
17048 fi
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17050 $as_echo "$gl_cv_pragma_columns" >&6; }
17051 if test $gl_cv_pragma_columns = yes; then
17052 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17053 else
17054 PRAGMA_COLUMNS=
17055 fi
17056
17057
17058
17059
17060
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17062 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17063 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17064 $as_echo_n "(cached) " >&6
17065 else
17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067 /* end confdefs.h. */
17068 /* On HP-UX before 11.23, strtold returns a struct instead of
17069 long double. Reject implementations like that, by requiring
17070 compatibility with the C99 prototype. */
17071 #include <stdlib.h>
17072 static long double (*p) (char const *, char **) = strtold;
17073 static long double
17074 test (char const *nptr, char **endptr)
17075 {
17076 long double r;
17077 r = strtold (nptr, endptr);
17078 return r;
17079 }
17080 int
17081 main ()
17082 {
17083 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17084 ;
17085 return 0;
17086 }
17087 _ACEOF
17088 if ac_fn_c_try_link "$LINENO"; then :
17089 gl_cv_func_c99_strtold=yes
17090 else
17091 gl_cv_func_c99_strtold=no
17092 fi
17093 rm -f core conftest.err conftest.$ac_objext \
17094 conftest$ac_exeext conftest.$ac_ext
17095 fi
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17097 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17098 if test $gl_cv_func_c99_strtold = yes; then
17099
17100 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17101
17102 fi
17103
17104
17105
17106
17107
17108
17109
17110
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17112 $as_echo_n "checking if environ is properly declared... " >&6; }
17113 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17114 $as_echo_n "(cached) " >&6
17115 else
17116
17117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h. */
17119 #if HAVE_UNISTD_H
17120 #include <unistd.h>
17121 #endif
17122 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17123 #include <stdlib.h>
17124
17125 extern struct { int foo; } environ;
17126 int
17127 main ()
17128 {
17129 environ.foo = 1;
17130 ;
17131 return 0;
17132 }
17133 _ACEOF
17134 if ac_fn_c_try_compile "$LINENO"; then :
17135 gt_cv_var_environ_declaration=no
17136 else
17137 gt_cv_var_environ_declaration=yes
17138 fi
17139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17140 fi
17141
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17143 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17144 if test $gt_cv_var_environ_declaration = yes; then
17145
17146 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17147
17148 fi
17149
17150
17151 if test $gt_cv_var_environ_declaration != yes; then
17152 HAVE_DECL_ENVIRON=0
17153 fi
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163 GNULIB_FCNTL=0;
17164 GNULIB_NONBLOCKING=0;
17165 GNULIB_OPEN=0;
17166 GNULIB_OPENAT=0;
17167 HAVE_FCNTL=1;
17168 HAVE_OPENAT=1;
17169 REPLACE_FCNTL=0;
17170 REPLACE_OPEN=0;
17171 REPLACE_OPENAT=0;
17172
17173
17174 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17175 if test "x$ac_cv_type_mode_t" = x""yes; then :
17176
17177 else
17178
17179 cat >>confdefs.h <<_ACEOF
17180 #define mode_t int
17181 _ACEOF
17182
17183 fi
17184
17185 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
17186 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
17187 ac_have_decl=1
17188 else
17189 ac_have_decl=0
17190 fi
17191
17192 cat >>confdefs.h <<_ACEOF
17193 #define HAVE_DECL_FDATASYNC $ac_have_decl
17194 _ACEOF
17195
17196
17197
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17199 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17200 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17201 $as_echo_n "(cached) " >&6
17202 else
17203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17204 /* end confdefs.h. */
17205
17206 #include <sys/types.h>
17207 #include <sys/stat.h>
17208 int
17209 main ()
17210 {
17211 struct stat s; s.st_dm_mode;
17212 ;
17213 return 0;
17214 }
17215 _ACEOF
17216 if ac_fn_c_try_compile "$LINENO"; then :
17217 ac_cv_struct_st_dm_mode=yes
17218 else
17219 ac_cv_struct_st_dm_mode=no
17220 fi
17221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17222 fi
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17224 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17225
17226 if test $ac_cv_struct_st_dm_mode = yes; then
17227
17228 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17229
17230 fi
17231
17232
17233 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17234 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17235 ac_have_decl=1
17236 else
17237 ac_have_decl=0
17238 fi
17239
17240 cat >>confdefs.h <<_ACEOF
17241 #define HAVE_DECL_STRMODE $ac_have_decl
17242 _ACEOF
17243
17244
17245
17246
17247
17248
17249 GNULIB_FCHMODAT=0;
17250 GNULIB_FSTAT=0;
17251 GNULIB_FSTATAT=0;
17252 GNULIB_FUTIMENS=0;
17253 GNULIB_LCHMOD=0;
17254 GNULIB_LSTAT=0;
17255 GNULIB_MKDIRAT=0;
17256 GNULIB_MKFIFO=0;
17257 GNULIB_MKFIFOAT=0;
17258 GNULIB_MKNOD=0;
17259 GNULIB_MKNODAT=0;
17260 GNULIB_STAT=0;
17261 GNULIB_UTIMENSAT=0;
17262 HAVE_FCHMODAT=1;
17263 HAVE_FSTATAT=1;
17264 HAVE_FUTIMENS=1;
17265 HAVE_LCHMOD=1;
17266 HAVE_LSTAT=1;
17267 HAVE_MKDIRAT=1;
17268 HAVE_MKFIFO=1;
17269 HAVE_MKFIFOAT=1;
17270 HAVE_MKNOD=1;
17271 HAVE_MKNODAT=1;
17272 HAVE_UTIMENSAT=1;
17273 REPLACE_FSTAT=0;
17274 REPLACE_FSTATAT=0;
17275 REPLACE_FUTIMENS=0;
17276 REPLACE_LSTAT=0;
17277 REPLACE_MKDIR=0;
17278 REPLACE_MKFIFO=0;
17279 REPLACE_MKNOD=0;
17280 REPLACE_STAT=0;
17281 REPLACE_UTIMENSAT=0;
17282
17283
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17285 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17286 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17287 $as_echo_n "(cached) " >&6
17288 else
17289 rm -f conftest.sym conftest.file
17290 echo >conftest.file
17291 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17292 if test "$cross_compiling" = yes; then :
17293 case "$host_os" in
17294 # Guess yes on glibc systems.
17295 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17296 # If we don't know, assume the worst.
17297 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17298 esac
17299
17300 else
17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302 /* end confdefs.h. */
17303 $ac_includes_default
17304 int
17305 main ()
17306 {
17307 struct stat sbuf;
17308 /* Linux will dereference the symlink and fail, as required by
17309 POSIX. That is better in the sense that it means we will not
17310 have to compile and use the lstat wrapper. */
17311 return lstat ("conftest.sym/", &sbuf) == 0;
17312
17313 ;
17314 return 0;
17315 }
17316 _ACEOF
17317 if ac_fn_c_try_run "$LINENO"; then :
17318 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17319 else
17320 gl_cv_func_lstat_dereferences_slashed_symlink=no
17321 fi
17322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17323 conftest.$ac_objext conftest.beam conftest.$ac_ext
17324 fi
17325
17326 else
17327 # If the 'ln -s' command failed, then we probably don't even
17328 # have an lstat function.
17329 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17330 fi
17331 rm -f conftest.sym conftest.file
17332
17333 fi
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17335 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17336 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17337 *yes)
17338
17339 cat >>confdefs.h <<_ACEOF
17340 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17341 _ACEOF
17342
17343 ;;
17344 esac
17345
17346
17347
17348
17349
17350
17351 GNULIB__EXIT=0;
17352 GNULIB_ATOLL=0;
17353 GNULIB_CALLOC_POSIX=0;
17354 GNULIB_CANONICALIZE_FILE_NAME=0;
17355 GNULIB_GETLOADAVG=0;
17356 GNULIB_GETSUBOPT=0;
17357 GNULIB_GRANTPT=0;
17358 GNULIB_MALLOC_POSIX=0;
17359 GNULIB_MBTOWC=0;
17360 GNULIB_MKDTEMP=0;
17361 GNULIB_MKOSTEMP=0;
17362 GNULIB_MKOSTEMPS=0;
17363 GNULIB_MKSTEMP=0;
17364 GNULIB_MKSTEMPS=0;
17365 GNULIB_POSIX_OPENPT=0;
17366 GNULIB_PTSNAME=0;
17367 GNULIB_PTSNAME_R=0;
17368 GNULIB_PUTENV=0;
17369 GNULIB_RANDOM=0;
17370 GNULIB_RANDOM_R=0;
17371 GNULIB_REALLOC_POSIX=0;
17372 GNULIB_REALPATH=0;
17373 GNULIB_RPMATCH=0;
17374 GNULIB_SECURE_GETENV=0;
17375 GNULIB_SETENV=0;
17376 GNULIB_STRTOD=0;
17377 GNULIB_STRTOLL=0;
17378 GNULIB_STRTOULL=0;
17379 GNULIB_SYSTEM_POSIX=0;
17380 GNULIB_UNLOCKPT=0;
17381 GNULIB_UNSETENV=0;
17382 GNULIB_WCTOMB=0;
17383 HAVE__EXIT=1;
17384 HAVE_ATOLL=1;
17385 HAVE_CANONICALIZE_FILE_NAME=1;
17386 HAVE_DECL_GETLOADAVG=1;
17387 HAVE_GETSUBOPT=1;
17388 HAVE_GRANTPT=1;
17389 HAVE_MKDTEMP=1;
17390 HAVE_MKOSTEMP=1;
17391 HAVE_MKOSTEMPS=1;
17392 HAVE_MKSTEMP=1;
17393 HAVE_MKSTEMPS=1;
17394 HAVE_POSIX_OPENPT=1;
17395 HAVE_PTSNAME=1;
17396 HAVE_PTSNAME_R=1;
17397 HAVE_RANDOM=1;
17398 HAVE_RANDOM_H=1;
17399 HAVE_RANDOM_R=1;
17400 HAVE_REALPATH=1;
17401 HAVE_RPMATCH=1;
17402 HAVE_SECURE_GETENV=1;
17403 HAVE_SETENV=1;
17404 HAVE_DECL_SETENV=1;
17405 HAVE_STRTOD=1;
17406 HAVE_STRTOLL=1;
17407 HAVE_STRTOULL=1;
17408 HAVE_STRUCT_RANDOM_DATA=1;
17409 HAVE_SYS_LOADAVG_H=0;
17410 HAVE_UNLOCKPT=1;
17411 HAVE_DECL_UNSETENV=1;
17412 REPLACE_CALLOC=0;
17413 REPLACE_CANONICALIZE_FILE_NAME=0;
17414 REPLACE_MALLOC=0;
17415 REPLACE_MBTOWC=0;
17416 REPLACE_MKSTEMP=0;
17417 REPLACE_PTSNAME=0;
17418 REPLACE_PTSNAME_R=0;
17419 REPLACE_PUTENV=0;
17420 REPLACE_RANDOM_R=0;
17421 REPLACE_REALLOC=0;
17422 REPLACE_REALPATH=0;
17423 REPLACE_SETENV=0;
17424 REPLACE_STRTOD=0;
17425 REPLACE_UNSETENV=0;
17426 REPLACE_WCTOMB=0;
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443 if test $gl_cv_have_include_next = yes; then
17444 gl_cv_next_getopt_h='<'getopt.h'>'
17445 else
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17447 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17448 if test "${gl_cv_next_getopt_h+set}" = set; then :
17449 $as_echo_n "(cached) " >&6
17450 else
17451
17452 if test $ac_cv_header_getopt_h = yes; then
17453
17454
17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h. */
17457 #include <getopt.h>
17458
17459 _ACEOF
17460 case "$host_os" in
17461 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17462 *) gl_absname_cpp="$ac_cpp" ;;
17463 esac
17464
17465 case "$host_os" in
17466 mingw*)
17467 gl_dirsep_regex='[/\\]'
17468 ;;
17469 *)
17470 gl_dirsep_regex='\/'
17471 ;;
17472 esac
17473 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17474
17475 gl_header_literal_regex=`echo 'getopt.h' \
17476 | sed -e "$gl_make_literal_regex_sed"`
17477 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17478 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17479 s|^/[^/]|//&|
17480 p
17481 q
17482 }'
17483 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17484 sed -n "$gl_absolute_header_sed"`'"'
17485 else
17486 gl_cv_next_getopt_h='<'getopt.h'>'
17487 fi
17488
17489
17490 fi
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17492 $as_echo "$gl_cv_next_getopt_h" >&6; }
17493 fi
17494 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17495
17496 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17497 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17498 gl_next_as_first_directive='<'getopt.h'>'
17499 else
17500 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17501 gl_next_as_first_directive=$gl_cv_next_getopt_h
17502 fi
17503 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17504
17505
17506
17507
17508 if test $ac_cv_header_getopt_h = yes; then
17509 HAVE_GETOPT_H=1
17510 else
17511 HAVE_GETOPT_H=0
17512 fi
17513
17514
17515 gl_replace_getopt=
17516
17517 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17518 for ac_header in getopt.h
17519 do :
17520 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17521 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17522 cat >>confdefs.h <<_ACEOF
17523 #define HAVE_GETOPT_H 1
17524 _ACEOF
17525
17526 else
17527 gl_replace_getopt=yes
17528 fi
17529
17530 done
17531
17532 fi
17533
17534 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17535 for ac_func in getopt_long_only
17536 do :
17537 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17538 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17539 cat >>confdefs.h <<_ACEOF
17540 #define HAVE_GETOPT_LONG_ONLY 1
17541 _ACEOF
17542
17543 else
17544 gl_replace_getopt=yes
17545 fi
17546 done
17547
17548 fi
17549
17550 if test -z "$gl_replace_getopt"; then
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17552 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17553 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17554 $as_echo_n "(cached) " >&6
17555 else
17556
17557 if test $cross_compiling = no; then
17558 if test "$cross_compiling" = yes; then :
17559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17561 as_fn_error "cannot run test program while cross compiling
17562 See \`config.log' for more details." "$LINENO" 5; }
17563 else
17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17566
17567 #include <unistd.h>
17568 #include <stdlib.h>
17569 #include <string.h>
17570
17571 int
17572 main ()
17573 {
17574 static char program[] = "program";
17575 static char a[] = "-a";
17576 static char foo[] = "foo";
17577 static char bar[] = "bar";
17578 char *argv[] = { program, a, foo, bar, NULL };
17579 int c;
17580
17581 c = getopt (4, argv, "ab");
17582 if (!(c == 'a'))
17583 return 1;
17584 c = getopt (4, argv, "ab");
17585 if (!(c == -1))
17586 return 2;
17587 if (!(optind == 2))
17588 return 3;
17589 return 0;
17590 }
17591
17592 _ACEOF
17593 if ac_fn_c_try_run "$LINENO"; then :
17594 gl_cv_func_getopt_posix=maybe
17595 else
17596 gl_cv_func_getopt_posix=no
17597 fi
17598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17599 conftest.$ac_objext conftest.beam conftest.$ac_ext
17600 fi
17601
17602 if test $gl_cv_func_getopt_posix = maybe; then
17603 if test "$cross_compiling" = yes; then :
17604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17606 as_fn_error "cannot run test program while cross compiling
17607 See \`config.log' for more details." "$LINENO" 5; }
17608 else
17609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610 /* end confdefs.h. */
17611
17612 #include <unistd.h>
17613 #include <stdlib.h>
17614 #include <string.h>
17615
17616 int
17617 main ()
17618 {
17619 static char program[] = "program";
17620 static char donald[] = "donald";
17621 static char p[] = "-p";
17622 static char billy[] = "billy";
17623 static char duck[] = "duck";
17624 static char a[] = "-a";
17625 static char bar[] = "bar";
17626 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17627 int c;
17628
17629 c = getopt (7, argv, "+abp:q:");
17630 if (!(c == -1))
17631 return 4;
17632 if (!(strcmp (argv[0], "program") == 0))
17633 return 5;
17634 if (!(strcmp (argv[1], "donald") == 0))
17635 return 6;
17636 if (!(strcmp (argv[2], "-p") == 0))
17637 return 7;
17638 if (!(strcmp (argv[3], "billy") == 0))
17639 return 8;
17640 if (!(strcmp (argv[4], "duck") == 0))
17641 return 9;
17642 if (!(strcmp (argv[5], "-a") == 0))
17643 return 10;
17644 if (!(strcmp (argv[6], "bar") == 0))
17645 return 11;
17646 if (!(optind == 1))
17647 return 12;
17648 return 0;
17649 }
17650
17651 _ACEOF
17652 if ac_fn_c_try_run "$LINENO"; then :
17653 gl_cv_func_getopt_posix=maybe
17654 else
17655 gl_cv_func_getopt_posix=no
17656 fi
17657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17658 conftest.$ac_objext conftest.beam conftest.$ac_ext
17659 fi
17660
17661 fi
17662 if test $gl_cv_func_getopt_posix = maybe; then
17663 if test "$cross_compiling" = yes; then :
17664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17666 as_fn_error "cannot run test program while cross compiling
17667 See \`config.log' for more details." "$LINENO" 5; }
17668 else
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17671
17672 #include <unistd.h>
17673 #include <stdlib.h>
17674 #include <string.h>
17675
17676 int
17677 main ()
17678 {
17679 static char program[] = "program";
17680 static char ab[] = "-ab";
17681 char *argv[3] = { program, ab, NULL };
17682 if (getopt (2, argv, "ab:") != 'a')
17683 return 13;
17684 if (getopt (2, argv, "ab:") != '?')
17685 return 14;
17686 if (optopt != 'b')
17687 return 15;
17688 if (optind != 2)
17689 return 16;
17690 return 0;
17691 }
17692
17693 _ACEOF
17694 if ac_fn_c_try_run "$LINENO"; then :
17695 gl_cv_func_getopt_posix=yes
17696 else
17697 gl_cv_func_getopt_posix=no
17698 fi
17699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17700 conftest.$ac_objext conftest.beam conftest.$ac_ext
17701 fi
17702
17703 fi
17704 else
17705 case "$host_os" in
17706 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17707 *) gl_cv_func_getopt_posix="guessing yes";;
17708 esac
17709 fi
17710
17711 fi
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17713 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17714 case "$gl_cv_func_getopt_posix" in
17715 *no) gl_replace_getopt=yes ;;
17716 esac
17717 fi
17718
17719 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17721 $as_echo_n "checking for working GNU getopt function... " >&6; }
17722 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17723 $as_echo_n "(cached) " >&6
17724 else
17725 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17726 # optstring is necessary for programs like m4 that have POSIX-mandated
17727 # semantics for supporting options interspersed with files.
17728 # Also, since getopt_long is a GNU extension, we require optind=0.
17729 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17730 # so take care to revert to the correct (non-)export state.
17731 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17732 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17733 xx) gl_had_POSIXLY_CORRECT=exported ;;
17734 x) gl_had_POSIXLY_CORRECT=yes ;;
17735 *) gl_had_POSIXLY_CORRECT= ;;
17736 esac
17737 POSIXLY_CORRECT=1
17738 export POSIXLY_CORRECT
17739 if test "$cross_compiling" = yes; then :
17740 gl_cv_func_getopt_gnu="guessing no"
17741
17742 else
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17745 #include <getopt.h>
17746 #include <stddef.h>
17747 #include <string.h>
17748
17749 #include <stdlib.h>
17750 #if defined __MACH__ && defined __APPLE__
17751 /* Avoid a crash on Mac OS X. */
17752 #include <mach/mach.h>
17753 #include <mach/mach_error.h>
17754 #include <mach/thread_status.h>
17755 #include <mach/exception.h>
17756 #include <mach/task.h>
17757 #include <pthread.h>
17758 /* The exception port on which our thread listens. */
17759 static mach_port_t our_exception_port;
17760 /* The main function of the thread listening for exceptions of type
17761 EXC_BAD_ACCESS. */
17762 static void *
17763 mach_exception_thread (void *arg)
17764 {
17765 /* Buffer for a message to be received. */
17766 struct {
17767 mach_msg_header_t head;
17768 mach_msg_body_t msgh_body;
17769 char data[1024];
17770 } msg;
17771 mach_msg_return_t retval;
17772 /* Wait for a message on the exception port. */
17773 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17774 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17775 if (retval != MACH_MSG_SUCCESS)
17776 abort ();
17777 exit (1);
17778 }
17779 static void
17780 nocrash_init (void)
17781 {
17782 mach_port_t self = mach_task_self ();
17783 /* Allocate a port on which the thread shall listen for exceptions. */
17784 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17785 == KERN_SUCCESS) {
17786 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17787 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17788 MACH_MSG_TYPE_MAKE_SEND)
17789 == KERN_SUCCESS) {
17790 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17791 for us. */
17792 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17793 /* Create the thread listening on the exception port. */
17794 pthread_attr_t attr;
17795 pthread_t thread;
17796 if (pthread_attr_init (&attr) == 0
17797 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17798 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17799 pthread_attr_destroy (&attr);
17800 /* Replace the exception port info for these exceptions with our own.
17801 Note that we replace the exception port for the entire task, not only
17802 for a particular thread. This has the effect that when our exception
17803 port gets the message, the thread specific exception port has already
17804 been asked, and we don't need to bother about it.
17805 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17806 task_set_exception_ports (self, mask, our_exception_port,
17807 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17808 }
17809 }
17810 }
17811 }
17812 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17813 /* Avoid a crash on native Windows. */
17814 #define WIN32_LEAN_AND_MEAN
17815 #include <windows.h>
17816 #include <winerror.h>
17817 static LONG WINAPI
17818 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17819 {
17820 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17821 {
17822 case EXCEPTION_ACCESS_VIOLATION:
17823 case EXCEPTION_IN_PAGE_ERROR:
17824 case EXCEPTION_STACK_OVERFLOW:
17825 case EXCEPTION_GUARD_PAGE:
17826 case EXCEPTION_PRIV_INSTRUCTION:
17827 case EXCEPTION_ILLEGAL_INSTRUCTION:
17828 case EXCEPTION_DATATYPE_MISALIGNMENT:
17829 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17830 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17831 exit (1);
17832 }
17833 return EXCEPTION_CONTINUE_SEARCH;
17834 }
17835 static void
17836 nocrash_init (void)
17837 {
17838 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17839 }
17840 #else
17841 /* Avoid a crash on POSIX systems. */
17842 #include <signal.h>
17843 /* A POSIX signal handler. */
17844 static void
17845 exception_handler (int sig)
17846 {
17847 exit (1);
17848 }
17849 static void
17850 nocrash_init (void)
17851 {
17852 #ifdef SIGSEGV
17853 signal (SIGSEGV, exception_handler);
17854 #endif
17855 #ifdef SIGBUS
17856 signal (SIGBUS, exception_handler);
17857 #endif
17858 }
17859 #endif
17860
17861
17862 int
17863 main ()
17864 {
17865
17866 int result = 0;
17867
17868 nocrash_init();
17869
17870 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17871 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17872 OSF/1 5.1, Solaris 10. */
17873 {
17874 static char conftest[] = "conftest";
17875 static char plus[] = "-+";
17876 char *argv[3] = { conftest, plus, NULL };
17877 opterr = 0;
17878 if (getopt (2, argv, "+a") != '?')
17879 result |= 1;
17880 }
17881 /* This code succeeds on glibc 2.8, mingw,
17882 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17883 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17884 {
17885 static char program[] = "program";
17886 static char p[] = "-p";
17887 static char foo[] = "foo";
17888 static char bar[] = "bar";
17889 char *argv[] = { program, p, foo, bar, NULL };
17890
17891 optind = 1;
17892 if (getopt (4, argv, "p::") != 'p')
17893 result |= 2;
17894 else if (optarg != NULL)
17895 result |= 4;
17896 else if (getopt (4, argv, "p::") != -1)
17897 result |= 6;
17898 else if (optind != 2)
17899 result |= 8;
17900 }
17901 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17902 {
17903 static char program[] = "program";
17904 static char foo[] = "foo";
17905 static char p[] = "-p";
17906 char *argv[] = { program, foo, p, NULL };
17907 optind = 0;
17908 if (getopt (3, argv, "-p") != 1)
17909 result |= 16;
17910 else if (getopt (3, argv, "-p") != 'p')
17911 result |= 16;
17912 }
17913 /* This code fails on glibc 2.11. */
17914 {
17915 static char program[] = "program";
17916 static char b[] = "-b";
17917 static char a[] = "-a";
17918 char *argv[] = { program, b, a, NULL };
17919 optind = opterr = 0;
17920 if (getopt (3, argv, "+:a:b") != 'b')
17921 result |= 32;
17922 else if (getopt (3, argv, "+:a:b") != ':')
17923 result |= 32;
17924 }
17925 /* This code dumps core on glibc 2.14. */
17926 {
17927 static char program[] = "program";
17928 static char w[] = "-W";
17929 static char dummy[] = "dummy";
17930 char *argv[] = { program, w, dummy, NULL };
17931 optind = opterr = 1;
17932 if (getopt (3, argv, "W;") != 'W')
17933 result |= 64;
17934 }
17935 return result;
17936
17937 ;
17938 return 0;
17939 }
17940 _ACEOF
17941 if ac_fn_c_try_run "$LINENO"; then :
17942 gl_cv_func_getopt_gnu=yes
17943 else
17944 gl_cv_func_getopt_gnu=no
17945 fi
17946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17947 conftest.$ac_objext conftest.beam conftest.$ac_ext
17948 fi
17949
17950 case $gl_had_POSIXLY_CORRECT in
17951 exported) ;;
17952 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17953 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17954 esac
17955
17956 fi
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17958 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17959 if test "$gl_cv_func_getopt_gnu" != yes; then
17960 gl_replace_getopt=yes
17961 else
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17963 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17964 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17965 $as_echo_n "(cached) " >&6
17966 else
17967 if test "$cross_compiling" = yes; then :
17968 case "$host_os" in
17969 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17970 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17971 esac
17972
17973 else
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17976 #include <getopt.h>
17977 #include <stddef.h>
17978 #include <string.h>
17979
17980 int
17981 main ()
17982 {
17983 static const struct option long_options[] =
17984 {
17985 { "xtremely-",no_argument, NULL, 1003 },
17986 { "xtra", no_argument, NULL, 1001 },
17987 { "xtreme", no_argument, NULL, 1002 },
17988 { "xtremely", no_argument, NULL, 1003 },
17989 { NULL, 0, NULL, 0 }
17990 };
17991 /* This code fails on OpenBSD 5.0. */
17992 {
17993 static char program[] = "program";
17994 static char xtremel[] = "--xtremel";
17995 char *argv[] = { program, xtremel, NULL };
17996 int option_index;
17997 optind = 1; opterr = 0;
17998 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17999 return 1;
18000 }
18001 return 0;
18002
18003 ;
18004 return 0;
18005 }
18006 _ACEOF
18007 if ac_fn_c_try_run "$LINENO"; then :
18008 gl_cv_func_getopt_long_gnu=yes
18009 else
18010 gl_cv_func_getopt_long_gnu=no
18011 fi
18012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18013 conftest.$ac_objext conftest.beam conftest.$ac_ext
18014 fi
18015
18016
18017 fi
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18019 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18020 case "$gl_cv_func_getopt_long_gnu" in
18021 *yes) ;;
18022 *) gl_replace_getopt=yes ;;
18023 esac
18024 fi
18025 fi
18026
18027
18028
18029
18030
18031
18032 REPLACE_GETOPT=0
18033 if test -n "$gl_replace_getopt"; then
18034 REPLACE_GETOPT=1
18035 fi
18036
18037 if test $REPLACE_GETOPT = 1; then
18038
18039 GETOPT_H=getopt.h
18040
18041 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18042
18043
18044
18045 fi
18046
18047 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18048 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
18049 ac_have_decl=1
18050 else
18051 ac_have_decl=0
18052 fi
18053
18054 cat >>confdefs.h <<_ACEOF
18055 #define HAVE_DECL_GETENV $ac_have_decl
18056 _ACEOF
18057
18058 :
18059
18060
18061
18062
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18064 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18065 if test "${ac_cv_c_restrict+set}" = set; then :
18066 $as_echo_n "(cached) " >&6
18067 else
18068 ac_cv_c_restrict=no
18069 # The order here caters to the fact that C++ does not require restrict.
18070 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18072 /* end confdefs.h. */
18073 typedef int * int_ptr;
18074 int foo (int_ptr $ac_kw ip) {
18075 return ip[0];
18076 }
18077 int
18078 main ()
18079 {
18080 int s[1];
18081 int * $ac_kw t = s;
18082 t[0] = 0;
18083 return foo(t)
18084 ;
18085 return 0;
18086 }
18087 _ACEOF
18088 if ac_fn_c_try_compile "$LINENO"; then :
18089 ac_cv_c_restrict=$ac_kw
18090 fi
18091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18092 test "$ac_cv_c_restrict" != no && break
18093 done
18094
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18097 $as_echo "$ac_cv_c_restrict" >&6; }
18098
18099 case $ac_cv_c_restrict in
18100 restrict) ;;
18101 no) $as_echo "#define restrict /**/" >>confdefs.h
18102 ;;
18103 *) cat >>confdefs.h <<_ACEOF
18104 #define restrict $ac_cv_c_restrict
18105 _ACEOF
18106 ;;
18107 esac
18108
18109
18110 GNULIB_GETTIMEOFDAY=0;
18111 HAVE_GETTIMEOFDAY=1;
18112 HAVE_STRUCT_TIMEVAL=1;
18113 HAVE_SYS_TIME_H=1;
18114 REPLACE_GETTIMEOFDAY=0;
18115 REPLACE_STRUCT_TIMEVAL=0;
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132 if test $gl_cv_have_include_next = yes; then
18133 gl_cv_next_sys_time_h='<'sys/time.h'>'
18134 else
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18136 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18137 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18138 $as_echo_n "(cached) " >&6
18139 else
18140
18141 if test $ac_cv_header_sys_time_h = yes; then
18142
18143
18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h. */
18146 #include <sys/time.h>
18147
18148 _ACEOF
18149 case "$host_os" in
18150 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18151 *) gl_absname_cpp="$ac_cpp" ;;
18152 esac
18153
18154 case "$host_os" in
18155 mingw*)
18156 gl_dirsep_regex='[/\\]'
18157 ;;
18158 *)
18159 gl_dirsep_regex='\/'
18160 ;;
18161 esac
18162 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18163
18164 gl_header_literal_regex=`echo 'sys/time.h' \
18165 | sed -e "$gl_make_literal_regex_sed"`
18166 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18167 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18168 s|^/[^/]|//&|
18169 p
18170 q
18171 }'
18172 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18173 sed -n "$gl_absolute_header_sed"`'"'
18174 else
18175 gl_cv_next_sys_time_h='<'sys/time.h'>'
18176 fi
18177
18178
18179 fi
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18181 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18182 fi
18183 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
18184
18185 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18186 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18187 gl_next_as_first_directive='<'sys/time.h'>'
18188 else
18189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18190 gl_next_as_first_directive=$gl_cv_next_sys_time_h
18191 fi
18192 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
18193
18194
18195
18196
18197
18198 if test $ac_cv_header_sys_time_h != yes; then
18199 HAVE_SYS_TIME_H=0
18200 fi
18201
18202
18203
18204
18205
18206 if test $ac_cv_header_sys_socket_h != yes; then
18207 for ac_header in winsock2.h
18208 do :
18209 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18210 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18211 cat >>confdefs.h <<_ACEOF
18212 #define HAVE_WINSOCK2_H 1
18213 _ACEOF
18214
18215 fi
18216
18217 done
18218
18219 fi
18220 if test "$ac_cv_header_winsock2_h" = yes; then
18221 HAVE_WINSOCK2_H=1
18222 UNISTD_H_HAVE_WINSOCK2_H=1
18223 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18224 else
18225 HAVE_WINSOCK2_H=0
18226 fi
18227
18228
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18230 $as_echo_n "checking for struct timeval... " >&6; }
18231 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18232 $as_echo_n "(cached) " >&6
18233 else
18234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18235 /* end confdefs.h. */
18236 #if HAVE_SYS_TIME_H
18237 #include <sys/time.h>
18238 #endif
18239 #include <time.h>
18240 #if HAVE_WINSOCK2_H
18241 # include <winsock2.h>
18242 #endif
18243
18244 int
18245 main ()
18246 {
18247 static struct timeval x; x.tv_sec = x.tv_usec;
18248 ;
18249 return 0;
18250 }
18251 _ACEOF
18252 if ac_fn_c_try_compile "$LINENO"; then :
18253 gl_cv_sys_struct_timeval=yes
18254 else
18255 gl_cv_sys_struct_timeval=no
18256 fi
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258
18259 fi
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18261 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18262 if test $gl_cv_sys_struct_timeval != yes; then
18263 HAVE_STRUCT_TIMEVAL=0
18264 else
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18266 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18267 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18268 $as_echo_n "(cached) " >&6
18269 else
18270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18272 #if HAVE_SYS_TIME_H
18273 #include <sys/time.h>
18274 #endif
18275 #include <time.h>
18276 #if HAVE_WINSOCK2_H
18277 # include <winsock2.h>
18278 #endif
18279
18280 int
18281 main ()
18282 {
18283 static struct timeval x;
18284 typedef int verify_tv_sec_type[
18285 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18286 ];
18287
18288 ;
18289 return 0;
18290 }
18291 _ACEOF
18292 if ac_fn_c_try_compile "$LINENO"; then :
18293 gl_cv_sys_struct_timeval_tv_sec=yes
18294 else
18295 gl_cv_sys_struct_timeval_tv_sec=no
18296 fi
18297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18298
18299 fi
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18301 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18302 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18303 REPLACE_STRUCT_TIMEVAL=1
18304 fi
18305 fi
18306
18307
18308
18309
18310
18311
18312
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18314 $as_echo_n "checking for unsigned long long int... " >&6; }
18315 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18316 $as_echo_n "(cached) " >&6
18317 else
18318 ac_cv_type_unsigned_long_long_int=yes
18319 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321 /* end confdefs.h. */
18322
18323 /* For now, do not test the preprocessor; as of 2007 there are too many
18324 implementations with broken preprocessors. Perhaps this can
18325 be revisited in 2012. In the meantime, code should not expect
18326 #if to work with literals wider than 32 bits. */
18327 /* Test literals. */
18328 long long int ll = 9223372036854775807ll;
18329 long long int nll = -9223372036854775807LL;
18330 unsigned long long int ull = 18446744073709551615ULL;
18331 /* Test constant expressions. */
18332 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18333 ? 1 : -1)];
18334 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18335 ? 1 : -1)];
18336 int i = 63;
18337 int
18338 main ()
18339 {
18340 /* Test availability of runtime routines for shift and division. */
18341 long long int llmax = 9223372036854775807ll;
18342 unsigned long long int ullmax = 18446744073709551615ull;
18343 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18344 | (llmax / ll) | (llmax % ll)
18345 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18346 | (ullmax / ull) | (ullmax % ull));
18347 ;
18348 return 0;
18349 }
18350
18351 _ACEOF
18352 if ac_fn_c_try_link "$LINENO"; then :
18353
18354 else
18355 ac_cv_type_unsigned_long_long_int=no
18356 fi
18357 rm -f core conftest.err conftest.$ac_objext \
18358 conftest$ac_exeext conftest.$ac_ext
18359 fi
18360 fi
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18362 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18363 if test $ac_cv_type_unsigned_long_long_int = yes; then
18364
18365 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18366
18367 fi
18368
18369
18370
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18372 $as_echo_n "checking for long long int... " >&6; }
18373 if test "${ac_cv_type_long_long_int+set}" = set; then :
18374 $as_echo_n "(cached) " >&6
18375 else
18376 ac_cv_type_long_long_int=yes
18377 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18378 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18379 if test $ac_cv_type_long_long_int = yes; then
18380 if test "$cross_compiling" = yes; then :
18381 :
18382 else
18383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384 /* end confdefs.h. */
18385 #include <limits.h>
18386 #ifndef LLONG_MAX
18387 # define HALF \
18388 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18389 # define LLONG_MAX (HALF - 1 + HALF)
18390 #endif
18391 int
18392 main ()
18393 {
18394 long long int n = 1;
18395 int i;
18396 for (i = 0; ; i++)
18397 {
18398 long long int m = n << i;
18399 if (m >> i != n)
18400 return 1;
18401 if (LLONG_MAX / 2 < m)
18402 break;
18403 }
18404 return 0;
18405 ;
18406 return 0;
18407 }
18408 _ACEOF
18409 if ac_fn_c_try_run "$LINENO"; then :
18410
18411 else
18412 ac_cv_type_long_long_int=no
18413 fi
18414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18415 conftest.$ac_objext conftest.beam conftest.$ac_ext
18416 fi
18417
18418 fi
18419 fi
18420 fi
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18422 $as_echo "$ac_cv_type_long_long_int" >&6; }
18423 if test $ac_cv_type_long_long_int = yes; then
18424
18425 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18426
18427 fi
18428
18429
18430
18431
18432
18433
18434 gl_cv_c_multiarch=no
18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h. */
18437 #ifndef __APPLE_CC__
18438 not a universal capable compiler
18439 #endif
18440 typedef int dummy;
18441
18442 _ACEOF
18443 if ac_fn_c_try_compile "$LINENO"; then :
18444
18445 arch=
18446 prev=
18447 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18448 if test -n "$prev"; then
18449 case $word in
18450 i?86 | x86_64 | ppc | ppc64)
18451 if test -z "$arch" || test "$arch" = "$word"; then
18452 arch="$word"
18453 else
18454 gl_cv_c_multiarch=yes
18455 fi
18456 ;;
18457 esac
18458 prev=
18459 else
18460 if test "x$word" = "x-arch"; then
18461 prev=arch
18462 fi
18463 fi
18464 done
18465
18466 fi
18467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18468 if test $gl_cv_c_multiarch = yes; then
18469 APPLE_UNIVERSAL_BUILD=1
18470 else
18471 APPLE_UNIVERSAL_BUILD=0
18472 fi
18473
18474
18475
18476
18477
18478 if test $ac_cv_type_long_long_int = yes; then
18479 HAVE_LONG_LONG_INT=1
18480 else
18481 HAVE_LONG_LONG_INT=0
18482 fi
18483
18484
18485 if test $ac_cv_type_unsigned_long_long_int = yes; then
18486 HAVE_UNSIGNED_LONG_LONG_INT=1
18487 else
18488 HAVE_UNSIGNED_LONG_LONG_INT=0
18489 fi
18490
18491
18492
18493 if test $ac_cv_header_wchar_h = yes; then
18494 HAVE_WCHAR_H=1
18495 else
18496 HAVE_WCHAR_H=0
18497 fi
18498
18499
18500 if test $ac_cv_header_inttypes_h = yes; then
18501 HAVE_INTTYPES_H=1
18502 else
18503 HAVE_INTTYPES_H=0
18504 fi
18505
18506
18507 if test $ac_cv_header_sys_types_h = yes; then
18508 HAVE_SYS_TYPES_H=1
18509 else
18510 HAVE_SYS_TYPES_H=0
18511 fi
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523 if test $gl_cv_have_include_next = yes; then
18524 gl_cv_next_stdint_h='<'stdint.h'>'
18525 else
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18527 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18528 if test "${gl_cv_next_stdint_h+set}" = set; then :
18529 $as_echo_n "(cached) " >&6
18530 else
18531
18532 if test $ac_cv_header_stdint_h = yes; then
18533
18534
18535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18536 /* end confdefs.h. */
18537 #include <stdint.h>
18538
18539 _ACEOF
18540 case "$host_os" in
18541 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18542 *) gl_absname_cpp="$ac_cpp" ;;
18543 esac
18544
18545 case "$host_os" in
18546 mingw*)
18547 gl_dirsep_regex='[/\\]'
18548 ;;
18549 *)
18550 gl_dirsep_regex='\/'
18551 ;;
18552 esac
18553 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18554
18555 gl_header_literal_regex=`echo 'stdint.h' \
18556 | sed -e "$gl_make_literal_regex_sed"`
18557 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18558 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18559 s|^/[^/]|//&|
18560 p
18561 q
18562 }'
18563 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18564 sed -n "$gl_absolute_header_sed"`'"'
18565 else
18566 gl_cv_next_stdint_h='<'stdint.h'>'
18567 fi
18568
18569
18570 fi
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18572 $as_echo "$gl_cv_next_stdint_h" >&6; }
18573 fi
18574 NEXT_STDINT_H=$gl_cv_next_stdint_h
18575
18576 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18577 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18578 gl_next_as_first_directive='<'stdint.h'>'
18579 else
18580 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18581 gl_next_as_first_directive=$gl_cv_next_stdint_h
18582 fi
18583 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18584
18585
18586
18587
18588 if test $ac_cv_header_stdint_h = yes; then
18589 HAVE_STDINT_H=1
18590 else
18591 HAVE_STDINT_H=0
18592 fi
18593
18594
18595 if test $ac_cv_header_stdint_h = yes; then
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18597 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18598 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18599 $as_echo_n "(cached) " >&6
18600 else
18601 gl_cv_header_working_stdint_h=no
18602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603 /* end confdefs.h. */
18604
18605
18606 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18607 #include <stdint.h>
18608 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18609 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18610 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18611 #endif
18612
18613
18614 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18615 included before <wchar.h>. */
18616 #include <stddef.h>
18617 #include <signal.h>
18618 #if HAVE_WCHAR_H
18619 # include <stdio.h>
18620 # include <time.h>
18621 # include <wchar.h>
18622 #endif
18623
18624
18625 #ifdef INT8_MAX
18626 int8_t a1 = INT8_MAX;
18627 int8_t a1min = INT8_MIN;
18628 #endif
18629 #ifdef INT16_MAX
18630 int16_t a2 = INT16_MAX;
18631 int16_t a2min = INT16_MIN;
18632 #endif
18633 #ifdef INT32_MAX
18634 int32_t a3 = INT32_MAX;
18635 int32_t a3min = INT32_MIN;
18636 #endif
18637 #ifdef INT64_MAX
18638 int64_t a4 = INT64_MAX;
18639 int64_t a4min = INT64_MIN;
18640 #endif
18641 #ifdef UINT8_MAX
18642 uint8_t b1 = UINT8_MAX;
18643 #else
18644 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18645 #endif
18646 #ifdef UINT16_MAX
18647 uint16_t b2 = UINT16_MAX;
18648 #endif
18649 #ifdef UINT32_MAX
18650 uint32_t b3 = UINT32_MAX;
18651 #endif
18652 #ifdef UINT64_MAX
18653 uint64_t b4 = UINT64_MAX;
18654 #endif
18655 int_least8_t c1 = INT8_C (0x7f);
18656 int_least8_t c1max = INT_LEAST8_MAX;
18657 int_least8_t c1min = INT_LEAST8_MIN;
18658 int_least16_t c2 = INT16_C (0x7fff);
18659 int_least16_t c2max = INT_LEAST16_MAX;
18660 int_least16_t c2min = INT_LEAST16_MIN;
18661 int_least32_t c3 = INT32_C (0x7fffffff);
18662 int_least32_t c3max = INT_LEAST32_MAX;
18663 int_least32_t c3min = INT_LEAST32_MIN;
18664 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18665 int_least64_t c4max = INT_LEAST64_MAX;
18666 int_least64_t c4min = INT_LEAST64_MIN;
18667 uint_least8_t d1 = UINT8_C (0xff);
18668 uint_least8_t d1max = UINT_LEAST8_MAX;
18669 uint_least16_t d2 = UINT16_C (0xffff);
18670 uint_least16_t d2max = UINT_LEAST16_MAX;
18671 uint_least32_t d3 = UINT32_C (0xffffffff);
18672 uint_least32_t d3max = UINT_LEAST32_MAX;
18673 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18674 uint_least64_t d4max = UINT_LEAST64_MAX;
18675 int_fast8_t e1 = INT_FAST8_MAX;
18676 int_fast8_t e1min = INT_FAST8_MIN;
18677 int_fast16_t e2 = INT_FAST16_MAX;
18678 int_fast16_t e2min = INT_FAST16_MIN;
18679 int_fast32_t e3 = INT_FAST32_MAX;
18680 int_fast32_t e3min = INT_FAST32_MIN;
18681 int_fast64_t e4 = INT_FAST64_MAX;
18682 int_fast64_t e4min = INT_FAST64_MIN;
18683 uint_fast8_t f1 = UINT_FAST8_MAX;
18684 uint_fast16_t f2 = UINT_FAST16_MAX;
18685 uint_fast32_t f3 = UINT_FAST32_MAX;
18686 uint_fast64_t f4 = UINT_FAST64_MAX;
18687 #ifdef INTPTR_MAX
18688 intptr_t g = INTPTR_MAX;
18689 intptr_t gmin = INTPTR_MIN;
18690 #endif
18691 #ifdef UINTPTR_MAX
18692 uintptr_t h = UINTPTR_MAX;
18693 #endif
18694 intmax_t i = INTMAX_MAX;
18695 uintmax_t j = UINTMAX_MAX;
18696
18697 #include <limits.h> /* for CHAR_BIT */
18698 #define TYPE_MINIMUM(t) \
18699 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18700 #define TYPE_MAXIMUM(t) \
18701 ((t) ((t) 0 < (t) -1 \
18702 ? (t) -1 \
18703 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18704 struct s {
18705 int check_PTRDIFF:
18706 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18707 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18708 ? 1 : -1;
18709 /* Detect bug in FreeBSD 6.0 / ia64. */
18710 int check_SIG_ATOMIC:
18711 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18712 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18713 ? 1 : -1;
18714 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18715 int check_WCHAR:
18716 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18717 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18718 ? 1 : -1;
18719 /* Detect bug in mingw. */
18720 int check_WINT:
18721 WINT_MIN == TYPE_MINIMUM (wint_t)
18722 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18723 ? 1 : -1;
18724
18725 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18726 int check_UINT8_C:
18727 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18728 int check_UINT16_C:
18729 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18730
18731 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18732 #ifdef UINT8_MAX
18733 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18734 #endif
18735 #ifdef UINT16_MAX
18736 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18737 #endif
18738 #ifdef UINT32_MAX
18739 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18740 #endif
18741 #ifdef UINT64_MAX
18742 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18743 #endif
18744 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18745 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18746 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18747 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18748 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18749 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18750 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18751 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18752 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18753 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18754 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18755 };
18756
18757 int
18758 main ()
18759 {
18760
18761 ;
18762 return 0;
18763 }
18764 _ACEOF
18765 if ac_fn_c_try_compile "$LINENO"; then :
18766 if test "$cross_compiling" = yes; then :
18767 gl_cv_header_working_stdint_h=yes
18768
18769 else
18770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18771 /* end confdefs.h. */
18772
18773
18774 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18775 #include <stdint.h>
18776
18777
18778 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18779 included before <wchar.h>. */
18780 #include <stddef.h>
18781 #include <signal.h>
18782 #if HAVE_WCHAR_H
18783 # include <stdio.h>
18784 # include <time.h>
18785 # include <wchar.h>
18786 #endif
18787
18788
18789 #include <stdio.h>
18790 #include <string.h>
18791 #define MVAL(macro) MVAL1(macro)
18792 #define MVAL1(expression) #expression
18793 static const char *macro_values[] =
18794 {
18795 #ifdef INT8_MAX
18796 MVAL (INT8_MAX),
18797 #endif
18798 #ifdef INT16_MAX
18799 MVAL (INT16_MAX),
18800 #endif
18801 #ifdef INT32_MAX
18802 MVAL (INT32_MAX),
18803 #endif
18804 #ifdef INT64_MAX
18805 MVAL (INT64_MAX),
18806 #endif
18807 #ifdef UINT8_MAX
18808 MVAL (UINT8_MAX),
18809 #endif
18810 #ifdef UINT16_MAX
18811 MVAL (UINT16_MAX),
18812 #endif
18813 #ifdef UINT32_MAX
18814 MVAL (UINT32_MAX),
18815 #endif
18816 #ifdef UINT64_MAX
18817 MVAL (UINT64_MAX),
18818 #endif
18819 NULL
18820 };
18821
18822 int
18823 main ()
18824 {
18825
18826 const char **mv;
18827 for (mv = macro_values; *mv != NULL; mv++)
18828 {
18829 const char *value = *mv;
18830 /* Test whether it looks like a cast expression. */
18831 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18832 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18833 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18834 || strncmp (value, "((int)"/*)*/, 6) == 0
18835 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18836 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18837 return mv - macro_values + 1;
18838 }
18839 return 0;
18840
18841 ;
18842 return 0;
18843 }
18844 _ACEOF
18845 if ac_fn_c_try_run "$LINENO"; then :
18846 gl_cv_header_working_stdint_h=yes
18847 fi
18848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18849 conftest.$ac_objext conftest.beam conftest.$ac_ext
18850 fi
18851
18852
18853 fi
18854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855
18856 fi
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18858 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18859 fi
18860 if test "$gl_cv_header_working_stdint_h" = yes; then
18861 STDINT_H=
18862 else
18863 for ac_header in sys/inttypes.h sys/bitypes.h
18864 do :
18865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18866 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18867 eval as_val=\$$as_ac_Header
18868 if test "x$as_val" = x""yes; then :
18869 cat >>confdefs.h <<_ACEOF
18870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18871 _ACEOF
18872
18873 fi
18874
18875 done
18876
18877 if test $ac_cv_header_sys_inttypes_h = yes; then
18878 HAVE_SYS_INTTYPES_H=1
18879 else
18880 HAVE_SYS_INTTYPES_H=0
18881 fi
18882
18883 if test $ac_cv_header_sys_bitypes_h = yes; then
18884 HAVE_SYS_BITYPES_H=1
18885 else
18886 HAVE_SYS_BITYPES_H=0
18887 fi
18888
18889
18890
18891
18892 if test $APPLE_UNIVERSAL_BUILD = 0; then
18893
18894
18895 for gltype in ptrdiff_t size_t ; do
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18897 $as_echo_n "checking for bit size of $gltype... " >&6; }
18898 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18899 $as_echo_n "(cached) " >&6
18900 else
18901 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18902 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18903 included before <wchar.h>. */
18904 #include <stddef.h>
18905 #include <signal.h>
18906 #if HAVE_WCHAR_H
18907 # include <stdio.h>
18908 # include <time.h>
18909 # include <wchar.h>
18910 #endif
18911
18912 #include <limits.h>"; then :
18913
18914 else
18915 result=unknown
18916 fi
18917
18918 eval gl_cv_bitsizeof_${gltype}=\$result
18919
18920 fi
18921 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18923 $as_echo "$ac_res" >&6; }
18924 eval result=\$gl_cv_bitsizeof_${gltype}
18925 if test $result = unknown; then
18926 result=0
18927 fi
18928 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18929 cat >>confdefs.h <<_ACEOF
18930 #define BITSIZEOF_${GLTYPE} $result
18931 _ACEOF
18932
18933 eval BITSIZEOF_${GLTYPE}=\$result
18934 done
18935
18936
18937 fi
18938
18939
18940 for gltype in sig_atomic_t wchar_t wint_t ; do
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18942 $as_echo_n "checking for bit size of $gltype... " >&6; }
18943 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18944 $as_echo_n "(cached) " >&6
18945 else
18946 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18947 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18948 included before <wchar.h>. */
18949 #include <stddef.h>
18950 #include <signal.h>
18951 #if HAVE_WCHAR_H
18952 # include <stdio.h>
18953 # include <time.h>
18954 # include <wchar.h>
18955 #endif
18956
18957 #include <limits.h>"; then :
18958
18959 else
18960 result=unknown
18961 fi
18962
18963 eval gl_cv_bitsizeof_${gltype}=\$result
18964
18965 fi
18966 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18968 $as_echo "$ac_res" >&6; }
18969 eval result=\$gl_cv_bitsizeof_${gltype}
18970 if test $result = unknown; then
18971 result=0
18972 fi
18973 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18974 cat >>confdefs.h <<_ACEOF
18975 #define BITSIZEOF_${GLTYPE} $result
18976 _ACEOF
18977
18978 eval BITSIZEOF_${GLTYPE}=\$result
18979 done
18980
18981
18982
18983
18984 for gltype in sig_atomic_t wchar_t wint_t ; do
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18986 $as_echo_n "checking whether $gltype is signed... " >&6; }
18987 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18988 $as_echo_n "(cached) " >&6
18989 else
18990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18991 /* end confdefs.h. */
18992
18993 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18994 included before <wchar.h>. */
18995 #include <stddef.h>
18996 #include <signal.h>
18997 #if HAVE_WCHAR_H
18998 # include <stdio.h>
18999 # include <time.h>
19000 # include <wchar.h>
19001 #endif
19002
19003 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19004 int
19005 main ()
19006 {
19007
19008 ;
19009 return 0;
19010 }
19011 _ACEOF
19012 if ac_fn_c_try_compile "$LINENO"; then :
19013 result=yes
19014 else
19015 result=no
19016 fi
19017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19018 eval gl_cv_type_${gltype}_signed=\$result
19019
19020 fi
19021 eval ac_res=\$gl_cv_type_${gltype}_signed
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19023 $as_echo "$ac_res" >&6; }
19024 eval result=\$gl_cv_type_${gltype}_signed
19025 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19026 if test "$result" = yes; then
19027 cat >>confdefs.h <<_ACEOF
19028 #define HAVE_SIGNED_${GLTYPE} 1
19029 _ACEOF
19030
19031 eval HAVE_SIGNED_${GLTYPE}=1
19032 else
19033 eval HAVE_SIGNED_${GLTYPE}=0
19034 fi
19035 done
19036
19037
19038 gl_cv_type_ptrdiff_t_signed=yes
19039 gl_cv_type_size_t_signed=no
19040 if test $APPLE_UNIVERSAL_BUILD = 0; then
19041
19042
19043 for gltype in ptrdiff_t size_t ; do
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19045 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19046 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19047 $as_echo_n "(cached) " >&6
19048 else
19049 eval gl_cv_type_${gltype}_suffix=no
19050 eval result=\$gl_cv_type_${gltype}_signed
19051 if test "$result" = yes; then
19052 glsufu=
19053 else
19054 glsufu=u
19055 fi
19056 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19057 case $glsuf in
19058 '') gltype1='int';;
19059 l) gltype1='long int';;
19060 ll) gltype1='long long int';;
19061 i64) gltype1='__int64';;
19062 u) gltype1='unsigned int';;
19063 ul) gltype1='unsigned long int';;
19064 ull) gltype1='unsigned long long int';;
19065 ui64)gltype1='unsigned __int64';;
19066 esac
19067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h. */
19069
19070 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19071 included before <wchar.h>. */
19072 #include <stddef.h>
19073 #include <signal.h>
19074 #if HAVE_WCHAR_H
19075 # include <stdio.h>
19076 # include <time.h>
19077 # include <wchar.h>
19078 #endif
19079
19080 extern $gltype foo;
19081 extern $gltype1 foo;
19082 int
19083 main ()
19084 {
19085
19086 ;
19087 return 0;
19088 }
19089 _ACEOF
19090 if ac_fn_c_try_compile "$LINENO"; then :
19091 eval gl_cv_type_${gltype}_suffix=\$glsuf
19092 fi
19093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19094 eval result=\$gl_cv_type_${gltype}_suffix
19095 test "$result" != no && break
19096 done
19097 fi
19098 eval ac_res=\$gl_cv_type_${gltype}_suffix
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19100 $as_echo "$ac_res" >&6; }
19101 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19102 eval result=\$gl_cv_type_${gltype}_suffix
19103 test "$result" = no && result=
19104 eval ${GLTYPE}_SUFFIX=\$result
19105 cat >>confdefs.h <<_ACEOF
19106 #define ${GLTYPE}_SUFFIX $result
19107 _ACEOF
19108
19109 done
19110
19111
19112 fi
19113
19114
19115 for gltype in sig_atomic_t wchar_t wint_t ; do
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19117 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19118 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19119 $as_echo_n "(cached) " >&6
19120 else
19121 eval gl_cv_type_${gltype}_suffix=no
19122 eval result=\$gl_cv_type_${gltype}_signed
19123 if test "$result" = yes; then
19124 glsufu=
19125 else
19126 glsufu=u
19127 fi
19128 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19129 case $glsuf in
19130 '') gltype1='int';;
19131 l) gltype1='long int';;
19132 ll) gltype1='long long int';;
19133 i64) gltype1='__int64';;
19134 u) gltype1='unsigned int';;
19135 ul) gltype1='unsigned long int';;
19136 ull) gltype1='unsigned long long int';;
19137 ui64)gltype1='unsigned __int64';;
19138 esac
19139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19140 /* end confdefs.h. */
19141
19142 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19143 included before <wchar.h>. */
19144 #include <stddef.h>
19145 #include <signal.h>
19146 #if HAVE_WCHAR_H
19147 # include <stdio.h>
19148 # include <time.h>
19149 # include <wchar.h>
19150 #endif
19151
19152 extern $gltype foo;
19153 extern $gltype1 foo;
19154 int
19155 main ()
19156 {
19157
19158 ;
19159 return 0;
19160 }
19161 _ACEOF
19162 if ac_fn_c_try_compile "$LINENO"; then :
19163 eval gl_cv_type_${gltype}_suffix=\$glsuf
19164 fi
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19166 eval result=\$gl_cv_type_${gltype}_suffix
19167 test "$result" != no && break
19168 done
19169 fi
19170 eval ac_res=\$gl_cv_type_${gltype}_suffix
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19172 $as_echo "$ac_res" >&6; }
19173 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19174 eval result=\$gl_cv_type_${gltype}_suffix
19175 test "$result" = no && result=
19176 eval ${GLTYPE}_SUFFIX=\$result
19177 cat >>confdefs.h <<_ACEOF
19178 #define ${GLTYPE}_SUFFIX $result
19179 _ACEOF
19180
19181 done
19182
19183
19184
19185 if test $BITSIZEOF_WINT_T -lt 32; then
19186 BITSIZEOF_WINT_T=32
19187 fi
19188
19189 STDINT_H=stdint.h
19190 fi
19191
19192 if test -n "$STDINT_H"; then
19193 GL_GENERATE_STDINT_H_TRUE=
19194 GL_GENERATE_STDINT_H_FALSE='#'
19195 else
19196 GL_GENERATE_STDINT_H_TRUE='#'
19197 GL_GENERATE_STDINT_H_FALSE=
19198 fi
19199
19200
19201
19202
19203
19204 GNULIB_IMAXABS=0;
19205 GNULIB_IMAXDIV=0;
19206 GNULIB_STRTOIMAX=0;
19207 GNULIB_STRTOUMAX=0;
19208 HAVE_DECL_IMAXABS=1;
19209 HAVE_DECL_IMAXDIV=1;
19210 HAVE_DECL_STRTOIMAX=1;
19211 HAVE_DECL_STRTOUMAX=1;
19212 REPLACE_STRTOIMAX=0;
19213 INT32_MAX_LT_INTMAX_MAX=1;
19214 INT64_MAX_EQ_LONG_MAX='defined _LP64';
19215 PRI_MACROS_BROKEN=0;
19216 PRIPTR_PREFIX=__PRIPTR_PREFIX;
19217 UINT32_MAX_LT_UINTMAX_MAX=1;
19218 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234 if test $gl_cv_have_include_next = yes; then
19235 gl_cv_next_inttypes_h='<'inttypes.h'>'
19236 else
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19238 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19239 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19240 $as_echo_n "(cached) " >&6
19241 else
19242
19243 if test $ac_cv_header_inttypes_h = yes; then
19244
19245
19246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247 /* end confdefs.h. */
19248 #include <inttypes.h>
19249
19250 _ACEOF
19251 case "$host_os" in
19252 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19253 *) gl_absname_cpp="$ac_cpp" ;;
19254 esac
19255
19256 case "$host_os" in
19257 mingw*)
19258 gl_dirsep_regex='[/\\]'
19259 ;;
19260 *)
19261 gl_dirsep_regex='\/'
19262 ;;
19263 esac
19264 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19265
19266 gl_header_literal_regex=`echo 'inttypes.h' \
19267 | sed -e "$gl_make_literal_regex_sed"`
19268 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19269 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19270 s|^/[^/]|//&|
19271 p
19272 q
19273 }'
19274 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19275 sed -n "$gl_absolute_header_sed"`'"'
19276 else
19277 gl_cv_next_inttypes_h='<'inttypes.h'>'
19278 fi
19279
19280
19281 fi
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19283 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19284 fi
19285 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19286
19287 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19288 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19289 gl_next_as_first_directive='<'inttypes.h'>'
19290 else
19291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19292 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19293 fi
19294 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306 case "$host_os" in
19307 mingw*)
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19309 $as_echo_n "checking for 64-bit off_t... " >&6; }
19310 if test "${gl_cv_type_off_t_64+set}" = set; then :
19311 $as_echo_n "(cached) " >&6
19312 else
19313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314 /* end confdefs.h. */
19315 #include <sys/types.h>
19316 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19317
19318 int
19319 main ()
19320 {
19321
19322 ;
19323 return 0;
19324 }
19325 _ACEOF
19326 if ac_fn_c_try_compile "$LINENO"; then :
19327 gl_cv_type_off_t_64=yes
19328 else
19329 gl_cv_type_off_t_64=no
19330 fi
19331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19332
19333 fi
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19335 $as_echo "$gl_cv_type_off_t_64" >&6; }
19336 if test $gl_cv_type_off_t_64 = no; then
19337 WINDOWS_64_BIT_OFF_T=1
19338 else
19339 WINDOWS_64_BIT_OFF_T=0
19340 fi
19341 WINDOWS_64_BIT_ST_SIZE=1
19342 ;;
19343 *)
19344 WINDOWS_64_BIT_OFF_T=0
19345 WINDOWS_64_BIT_ST_SIZE=0
19346 ;;
19347 esac
19348
19349
19350
19351
19352 GNULIB_FFSL=0;
19353 GNULIB_FFSLL=0;
19354 GNULIB_MEMCHR=0;
19355 GNULIB_MEMMEM=0;
19356 GNULIB_MEMPCPY=0;
19357 GNULIB_MEMRCHR=0;
19358 GNULIB_RAWMEMCHR=0;
19359 GNULIB_STPCPY=0;
19360 GNULIB_STPNCPY=0;
19361 GNULIB_STRCHRNUL=0;
19362 GNULIB_STRDUP=0;
19363 GNULIB_STRNCAT=0;
19364 GNULIB_STRNDUP=0;
19365 GNULIB_STRNLEN=0;
19366 GNULIB_STRPBRK=0;
19367 GNULIB_STRSEP=0;
19368 GNULIB_STRSTR=0;
19369 GNULIB_STRCASESTR=0;
19370 GNULIB_STRTOK_R=0;
19371 GNULIB_MBSLEN=0;
19372 GNULIB_MBSNLEN=0;
19373 GNULIB_MBSCHR=0;
19374 GNULIB_MBSRCHR=0;
19375 GNULIB_MBSSTR=0;
19376 GNULIB_MBSCASECMP=0;
19377 GNULIB_MBSNCASECMP=0;
19378 GNULIB_MBSPCASECMP=0;
19379 GNULIB_MBSCASESTR=0;
19380 GNULIB_MBSCSPN=0;
19381 GNULIB_MBSPBRK=0;
19382 GNULIB_MBSSPN=0;
19383 GNULIB_MBSSEP=0;
19384 GNULIB_MBSTOK_R=0;
19385 GNULIB_STRERROR=0;
19386 GNULIB_STRERROR_R=0;
19387 GNULIB_STRSIGNAL=0;
19388 GNULIB_STRVERSCMP=0;
19389 HAVE_MBSLEN=0;
19390 HAVE_FFSL=1;
19391 HAVE_FFSLL=1;
19392 HAVE_MEMCHR=1;
19393 HAVE_DECL_MEMMEM=1;
19394 HAVE_MEMPCPY=1;
19395 HAVE_DECL_MEMRCHR=1;
19396 HAVE_RAWMEMCHR=1;
19397 HAVE_STPCPY=1;
19398 HAVE_STPNCPY=1;
19399 HAVE_STRCHRNUL=1;
19400 HAVE_DECL_STRDUP=1;
19401 HAVE_DECL_STRNDUP=1;
19402 HAVE_DECL_STRNLEN=1;
19403 HAVE_STRPBRK=1;
19404 HAVE_STRSEP=1;
19405 HAVE_STRCASESTR=1;
19406 HAVE_DECL_STRTOK_R=1;
19407 HAVE_DECL_STRERROR_R=1;
19408 HAVE_DECL_STRSIGNAL=1;
19409 HAVE_STRVERSCMP=1;
19410 REPLACE_MEMCHR=0;
19411 REPLACE_MEMMEM=0;
19412 REPLACE_STPNCPY=0;
19413 REPLACE_STRDUP=0;
19414 REPLACE_STRSTR=0;
19415 REPLACE_STRCASESTR=0;
19416 REPLACE_STRCHRNUL=0;
19417 REPLACE_STRERROR=0;
19418 REPLACE_STRERROR_R=0;
19419 REPLACE_STRNCAT=0;
19420 REPLACE_STRNDUP=0;
19421 REPLACE_STRNLEN=0;
19422 REPLACE_STRSIGNAL=0;
19423 REPLACE_STRTOK_R=0;
19424 UNDEFINE_STRTOK_R=0;
19425
19426 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
19427 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
19428 ac_have_decl=1
19429 else
19430 ac_have_decl=0
19431 fi
19432
19433 cat >>confdefs.h <<_ACEOF
19434 #define HAVE_DECL_MEMRCHR $ac_have_decl
19435 _ACEOF
19436
19437
19438 GNULIB_MKTIME=0;
19439 GNULIB_NANOSLEEP=0;
19440 GNULIB_STRPTIME=0;
19441 GNULIB_TIMEGM=0;
19442 GNULIB_TIME_R=0;
19443 HAVE_DECL_LOCALTIME_R=1;
19444 HAVE_NANOSLEEP=1;
19445 HAVE_STRPTIME=1;
19446 HAVE_TIMEGM=1;
19447 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19448 REPLACE_MKTIME=GNULIB_PORTCHECK;
19449 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19450 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19451
19452 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
19453 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
19454 ac_have_decl=1
19455 else
19456 ac_have_decl=0
19457 fi
19458
19459 cat >>confdefs.h <<_ACEOF
19460 #define HAVE_DECL_ALARM $ac_have_decl
19461 _ACEOF
19462
19463
19464 GNULIB_PSELECT=0;
19465 GNULIB_SELECT=0;
19466 HAVE_PSELECT=1;
19467 REPLACE_PSELECT=0;
19468 REPLACE_SELECT=0;
19469
19470
19471
19472
19473
19474
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19476 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19477 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19478 $as_echo_n "(cached) " >&6
19479 else
19480
19481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h. */
19483 #include <sys/select.h>
19484 int
19485 main ()
19486 {
19487 struct timeval b;
19488 ;
19489 return 0;
19490 }
19491 _ACEOF
19492 if ac_fn_c_try_compile "$LINENO"; then :
19493 gl_cv_header_sys_select_h_selfcontained=yes
19494 else
19495 gl_cv_header_sys_select_h_selfcontained=no
19496 fi
19497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19498 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19500 /* end confdefs.h. */
19501 #include <sys/select.h>
19502 int
19503 main ()
19504 {
19505 int memset; int bzero;
19506 ;
19507 return 0;
19508 }
19509
19510 _ACEOF
19511 if ac_fn_c_try_compile "$LINENO"; then :
19512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19513 /* end confdefs.h. */
19514 #include <sys/select.h>
19515 int
19516 main ()
19517 {
19518
19519 #undef memset
19520 #define memset nonexistent_memset
19521 extern
19522 #ifdef __cplusplus
19523 "C"
19524 #endif
19525 void *memset (void *, int, unsigned long);
19526 #undef bzero
19527 #define bzero nonexistent_bzero
19528 extern
19529 #ifdef __cplusplus
19530 "C"
19531 #endif
19532 void bzero (void *, unsigned long);
19533 fd_set fds;
19534 FD_ZERO (&fds);
19535
19536 ;
19537 return 0;
19538 }
19539
19540 _ACEOF
19541 if ac_fn_c_try_link "$LINENO"; then :
19542
19543 else
19544 gl_cv_header_sys_select_h_selfcontained=no
19545 fi
19546 rm -f core conftest.err conftest.$ac_objext \
19547 conftest$ac_exeext conftest.$ac_ext
19548
19549 fi
19550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19551 fi
19552
19553 fi
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19555 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565 if test $gl_cv_have_include_next = yes; then
19566 gl_cv_next_sys_select_h='<'sys/select.h'>'
19567 else
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19569 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19570 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19571 $as_echo_n "(cached) " >&6
19572 else
19573
19574 if test $ac_cv_header_sys_select_h = yes; then
19575
19576
19577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578 /* end confdefs.h. */
19579 #include <sys/select.h>
19580
19581 _ACEOF
19582 case "$host_os" in
19583 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19584 *) gl_absname_cpp="$ac_cpp" ;;
19585 esac
19586
19587 case "$host_os" in
19588 mingw*)
19589 gl_dirsep_regex='[/\\]'
19590 ;;
19591 *)
19592 gl_dirsep_regex='\/'
19593 ;;
19594 esac
19595 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19596
19597 gl_header_literal_regex=`echo 'sys/select.h' \
19598 | sed -e "$gl_make_literal_regex_sed"`
19599 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19600 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19601 s|^/[^/]|//&|
19602 p
19603 q
19604 }'
19605 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19606 sed -n "$gl_absolute_header_sed"`'"'
19607 else
19608 gl_cv_next_sys_select_h='<'sys/select.h'>'
19609 fi
19610
19611
19612 fi
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19614 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19615 fi
19616 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19617
19618 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19619 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19620 gl_next_as_first_directive='<'sys/select.h'>'
19621 else
19622 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19623 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19624 fi
19625 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19626
19627
19628
19629
19630 if test $ac_cv_header_sys_select_h = yes; then
19631 HAVE_SYS_SELECT_H=1
19632 else
19633 HAVE_SYS_SELECT_H=0
19634 fi
19635
19636
19637
19638
19639
19640 if test $ac_cv_header_sys_socket_h != yes; then
19641 for ac_header in winsock2.h
19642 do :
19643 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19644 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19645 cat >>confdefs.h <<_ACEOF
19646 #define HAVE_WINSOCK2_H 1
19647 _ACEOF
19648
19649 fi
19650
19651 done
19652
19653 fi
19654 if test "$ac_cv_header_winsock2_h" = yes; then
19655 HAVE_WINSOCK2_H=1
19656 UNISTD_H_HAVE_WINSOCK2_H=1
19657 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19658 else
19659 HAVE_WINSOCK2_H=0
19660 fi
19661
19662
19663
19664
19665
19666
19667
19668
19669 GNULIB_PTHREAD_SIGMASK=0;
19670 GNULIB_RAISE=0;
19671 GNULIB_SIGNAL_H_SIGPIPE=0;
19672 GNULIB_SIGPROCMASK=0;
19673 GNULIB_SIGACTION=0;
19674 HAVE_POSIX_SIGNALBLOCKING=1;
19675 HAVE_PTHREAD_SIGMASK=1;
19676 HAVE_RAISE=1;
19677 HAVE_SIGSET_T=1;
19678 HAVE_SIGINFO_T=1;
19679 HAVE_SIGACTION=1;
19680 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19681
19682 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19683
19684 HAVE_SIGHANDLER_T=1;
19685 REPLACE_PTHREAD_SIGMASK=0;
19686 REPLACE_RAISE=0;
19687
19688
19689
19690
19691
19692
19693
19694 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19695 #include <signal.h>
19696 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19697 #include <sys/types.h>
19698
19699 "
19700 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19701
19702 cat >>confdefs.h <<_ACEOF
19703 #define HAVE_SIGSET_T 1
19704 _ACEOF
19705
19706 gl_cv_type_sigset_t=yes
19707 else
19708 gl_cv_type_sigset_t=no
19709 fi
19710
19711 if test $gl_cv_type_sigset_t != yes; then
19712 HAVE_SIGSET_T=0
19713 fi
19714
19715
19716
19717 if test $ac_cv_header_sys_socket_h = no; then
19718 for ac_header in ws2tcpip.h
19719 do :
19720 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19721 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19722 cat >>confdefs.h <<_ACEOF
19723 #define HAVE_WS2TCPIP_H 1
19724 _ACEOF
19725
19726 fi
19727
19728 done
19729
19730 fi
19731
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19733 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19734 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19735 $as_echo_n "(cached) " >&6
19736 else
19737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19738 /* end confdefs.h. */
19739
19740 #include <stdbool.h>
19741 #ifndef bool
19742 "error: bool is not defined"
19743 #endif
19744 #ifndef false
19745 "error: false is not defined"
19746 #endif
19747 #if false
19748 "error: false is not 0"
19749 #endif
19750 #ifndef true
19751 "error: true is not defined"
19752 #endif
19753 #if true != 1
19754 "error: true is not 1"
19755 #endif
19756 #ifndef __bool_true_false_are_defined
19757 "error: __bool_true_false_are_defined is not defined"
19758 #endif
19759
19760 struct s { _Bool s: 1; _Bool t; } s;
19761
19762 char a[true == 1 ? 1 : -1];
19763 char b[false == 0 ? 1 : -1];
19764 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19765 char d[(bool) 0.5 == true ? 1 : -1];
19766 /* See body of main program for 'e'. */
19767 char f[(_Bool) 0.0 == false ? 1 : -1];
19768 char g[true];
19769 char h[sizeof (_Bool)];
19770 char i[sizeof s.t];
19771 enum { j = false, k = true, l = false * true, m = true * 256 };
19772 /* The following fails for
19773 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19774 _Bool n[m];
19775 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19776 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19777 /* Catch a bug in an HP-UX C compiler. See
19778 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19779 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19780 */
19781 _Bool q = true;
19782 _Bool *pq = &q;
19783
19784 int
19785 main ()
19786 {
19787
19788 bool e = &s;
19789 *pq |= q;
19790 *pq |= ! q;
19791 /* Refer to every declared value, to avoid compiler optimizations. */
19792 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19793 + !m + !n + !o + !p + !q + !pq);
19794
19795 ;
19796 return 0;
19797 }
19798 _ACEOF
19799 if ac_fn_c_try_compile "$LINENO"; then :
19800 ac_cv_header_stdbool_h=yes
19801 else
19802 ac_cv_header_stdbool_h=no
19803 fi
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19805 fi
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19807 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19808 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19809 if test "x$ac_cv_type__Bool" = x""yes; then :
19810
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE__BOOL 1
19813 _ACEOF
19814
19815
19816 fi
19817
19818
19819
19820 REPLACE_NULL=0;
19821 HAVE_WCHAR_T=1;
19822
19823
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19825 $as_echo_n "checking for wchar_t... " >&6; }
19826 if test "${gt_cv_c_wchar_t+set}" = set; then :
19827 $as_echo_n "(cached) " >&6
19828 else
19829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19830 /* end confdefs.h. */
19831 #include <stddef.h>
19832 wchar_t foo = (wchar_t)'\0';
19833 int
19834 main ()
19835 {
19836
19837 ;
19838 return 0;
19839 }
19840 _ACEOF
19841 if ac_fn_c_try_compile "$LINENO"; then :
19842 gt_cv_c_wchar_t=yes
19843 else
19844 gt_cv_c_wchar_t=no
19845 fi
19846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 fi
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19849 $as_echo "$gt_cv_c_wchar_t" >&6; }
19850 if test $gt_cv_c_wchar_t = yes; then
19851
19852 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19853
19854 fi
19855
19856
19857 GNULIB_DPRINTF=0;
19858 GNULIB_FCLOSE=0;
19859 GNULIB_FDOPEN=0;
19860 GNULIB_FFLUSH=0;
19861 GNULIB_FGETC=0;
19862 GNULIB_FGETS=0;
19863 GNULIB_FOPEN=0;
19864 GNULIB_FPRINTF=0;
19865 GNULIB_FPRINTF_POSIX=0;
19866 GNULIB_FPURGE=0;
19867 GNULIB_FPUTC=0;
19868 GNULIB_FPUTS=0;
19869 GNULIB_FREAD=0;
19870 GNULIB_FREOPEN=0;
19871 GNULIB_FSCANF=0;
19872 GNULIB_FSEEK=0;
19873 GNULIB_FSEEKO=0;
19874 GNULIB_FTELL=0;
19875 GNULIB_FTELLO=0;
19876 GNULIB_FWRITE=0;
19877 GNULIB_GETC=0;
19878 GNULIB_GETCHAR=0;
19879 GNULIB_GETDELIM=0;
19880 GNULIB_GETLINE=0;
19881 GNULIB_OBSTACK_PRINTF=0;
19882 GNULIB_OBSTACK_PRINTF_POSIX=0;
19883 GNULIB_PCLOSE=0;
19884 GNULIB_PERROR=0;
19885 GNULIB_POPEN=0;
19886 GNULIB_PRINTF=0;
19887 GNULIB_PRINTF_POSIX=0;
19888 GNULIB_PUTC=0;
19889 GNULIB_PUTCHAR=0;
19890 GNULIB_PUTS=0;
19891 GNULIB_REMOVE=0;
19892 GNULIB_RENAME=0;
19893 GNULIB_RENAMEAT=0;
19894 GNULIB_SCANF=0;
19895 GNULIB_SNPRINTF=0;
19896 GNULIB_SPRINTF_POSIX=0;
19897 GNULIB_STDIO_H_NONBLOCKING=0;
19898 GNULIB_STDIO_H_SIGPIPE=0;
19899 GNULIB_TMPFILE=0;
19900 GNULIB_VASPRINTF=0;
19901 GNULIB_VFSCANF=0;
19902 GNULIB_VSCANF=0;
19903 GNULIB_VDPRINTF=0;
19904 GNULIB_VFPRINTF=0;
19905 GNULIB_VFPRINTF_POSIX=0;
19906 GNULIB_VPRINTF=0;
19907 GNULIB_VPRINTF_POSIX=0;
19908 GNULIB_VSNPRINTF=0;
19909 GNULIB_VSPRINTF_POSIX=0;
19910 HAVE_DECL_FPURGE=1;
19911 HAVE_DECL_FSEEKO=1;
19912 HAVE_DECL_FTELLO=1;
19913 HAVE_DECL_GETDELIM=1;
19914 HAVE_DECL_GETLINE=1;
19915 HAVE_DECL_OBSTACK_PRINTF=1;
19916 HAVE_DECL_SNPRINTF=1;
19917 HAVE_DECL_VSNPRINTF=1;
19918 HAVE_DPRINTF=1;
19919 HAVE_FSEEKO=1;
19920 HAVE_FTELLO=1;
19921 HAVE_PCLOSE=1;
19922 HAVE_POPEN=1;
19923 HAVE_RENAMEAT=1;
19924 HAVE_VASPRINTF=1;
19925 HAVE_VDPRINTF=1;
19926 REPLACE_DPRINTF=0;
19927 REPLACE_FCLOSE=0;
19928 REPLACE_FDOPEN=0;
19929 REPLACE_FFLUSH=0;
19930 REPLACE_FOPEN=0;
19931 REPLACE_FPRINTF=0;
19932 REPLACE_FPURGE=0;
19933 REPLACE_FREOPEN=0;
19934 REPLACE_FSEEK=0;
19935 REPLACE_FSEEKO=0;
19936 REPLACE_FTELL=0;
19937 REPLACE_FTELLO=0;
19938 REPLACE_GETDELIM=0;
19939 REPLACE_GETLINE=0;
19940 REPLACE_OBSTACK_PRINTF=0;
19941 REPLACE_PERROR=0;
19942 REPLACE_POPEN=0;
19943 REPLACE_PRINTF=0;
19944 REPLACE_REMOVE=0;
19945 REPLACE_RENAME=0;
19946 REPLACE_RENAMEAT=0;
19947 REPLACE_SNPRINTF=0;
19948 REPLACE_SPRINTF=0;
19949 REPLACE_STDIO_READ_FUNCS=0;
19950 REPLACE_STDIO_WRITE_FUNCS=0;
19951 REPLACE_TMPFILE=0;
19952 REPLACE_VASPRINTF=0;
19953 REPLACE_VDPRINTF=0;
19954 REPLACE_VFPRINTF=0;
19955 REPLACE_VPRINTF=0;
19956 REPLACE_VSNPRINTF=0;
19957 REPLACE_VSPRINTF=0;
19958
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19960 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19961 if test "${ac_cv_struct_tm+set}" = set; then :
19962 $as_echo_n "(cached) " >&6
19963 else
19964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19965 /* end confdefs.h. */
19966 #include <sys/types.h>
19967 #include <time.h>
19968
19969 int
19970 main ()
19971 {
19972 struct tm tm;
19973 int *p = &tm.tm_sec;
19974 return !p;
19975 ;
19976 return 0;
19977 }
19978 _ACEOF
19979 if ac_fn_c_try_compile "$LINENO"; then :
19980 ac_cv_struct_tm=time.h
19981 else
19982 ac_cv_struct_tm=sys/time.h
19983 fi
19984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985 fi
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19987 $as_echo "$ac_cv_struct_tm" >&6; }
19988 if test $ac_cv_struct_tm = sys/time.h; then
19989
19990 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19991
19992 fi
19993
19994 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19995 #include <$ac_cv_struct_tm>
19996
19997 "
19998 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19999
20000 cat >>confdefs.h <<_ACEOF
20001 #define HAVE_STRUCT_TM_TM_ZONE 1
20002 _ACEOF
20003
20004
20005 fi
20006
20007 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20008
20009 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20010
20011 else
20012 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20013 "
20014 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
20015 ac_have_decl=1
20016 else
20017 ac_have_decl=0
20018 fi
20019
20020 cat >>confdefs.h <<_ACEOF
20021 #define HAVE_DECL_TZNAME $ac_have_decl
20022 _ACEOF
20023
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
20025 $as_echo_n "checking for tzname... " >&6; }
20026 if test "${ac_cv_var_tzname+set}" = set; then :
20027 $as_echo_n "(cached) " >&6
20028 else
20029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20030 /* end confdefs.h. */
20031 #include <time.h>
20032 #if !HAVE_DECL_TZNAME
20033 extern char *tzname[];
20034 #endif
20035
20036 int
20037 main ()
20038 {
20039 return tzname[0][0];
20040 ;
20041 return 0;
20042 }
20043 _ACEOF
20044 if ac_fn_c_try_link "$LINENO"; then :
20045 ac_cv_var_tzname=yes
20046 else
20047 ac_cv_var_tzname=no
20048 fi
20049 rm -f core conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext conftest.$ac_ext
20051 fi
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20053 $as_echo "$ac_cv_var_tzname" >&6; }
20054 if test $ac_cv_var_tzname = yes; then
20055
20056 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20057
20058 fi
20059 fi
20060
20061
20062 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20063 "
20064 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
20065
20066 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20067
20068 fi
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082 if test $gl_cv_have_include_next = yes; then
20083 gl_cv_next_string_h='<'string.h'>'
20084 else
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20086 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20087 if test "${gl_cv_next_string_h+set}" = set; then :
20088 $as_echo_n "(cached) " >&6
20089 else
20090
20091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h. */
20093 #include <string.h>
20094
20095 _ACEOF
20096 case "$host_os" in
20097 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20098 *) gl_absname_cpp="$ac_cpp" ;;
20099 esac
20100
20101 case "$host_os" in
20102 mingw*)
20103 gl_dirsep_regex='[/\\]'
20104 ;;
20105 *)
20106 gl_dirsep_regex='\/'
20107 ;;
20108 esac
20109 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20110
20111 gl_header_literal_regex=`echo 'string.h' \
20112 | sed -e "$gl_make_literal_regex_sed"`
20113 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20114 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20115 s|^/[^/]|//&|
20116 p
20117 q
20118 }'
20119 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20120 sed -n "$gl_absolute_header_sed"`'"'
20121
20122
20123 fi
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20125 $as_echo "$gl_cv_next_string_h" >&6; }
20126 fi
20127 NEXT_STRING_H=$gl_cv_next_string_h
20128
20129 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20131 gl_next_as_first_directive='<'string.h'>'
20132 else
20133 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20134 gl_next_as_first_directive=$gl_cv_next_string_h
20135 fi
20136 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20147 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
20148 ac_have_decl=1
20149 else
20150 ac_have_decl=0
20151 fi
20152
20153 cat >>confdefs.h <<_ACEOF
20154 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20155 _ACEOF
20156
20157
20158
20159 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20160 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
20161 ac_have_decl=1
20162 else
20163 ac_have_decl=0
20164 fi
20165
20166 cat >>confdefs.h <<_ACEOF
20167 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20168 _ACEOF
20169
20170
20171
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20173 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20174 if test "${ac_cv_header_stat_broken+set}" = set; then :
20175 $as_echo_n "(cached) " >&6
20176 else
20177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20178 /* end confdefs.h. */
20179 #include <sys/types.h>
20180 #include <sys/stat.h>
20181
20182 #if defined S_ISBLK && defined S_IFDIR
20183 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20184 #endif
20185
20186 #if defined S_ISBLK && defined S_IFCHR
20187 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20188 #endif
20189
20190 #if defined S_ISLNK && defined S_IFREG
20191 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20192 #endif
20193
20194 #if defined S_ISSOCK && defined S_IFREG
20195 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20196 #endif
20197
20198 _ACEOF
20199 if ac_fn_c_try_compile "$LINENO"; then :
20200 ac_cv_header_stat_broken=no
20201 else
20202 ac_cv_header_stat_broken=yes
20203 fi
20204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20205 fi
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20207 $as_echo "$ac_cv_header_stat_broken" >&6; }
20208 if test $ac_cv_header_stat_broken = yes; then
20209
20210 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20211
20212 fi
20213
20214
20215
20216
20217
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20219 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20220 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20221 $as_echo_n "(cached) " >&6
20222 else
20223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h. */
20225 #include <time.h>
20226
20227 int
20228 main ()
20229 {
20230 static struct timespec x; x.tv_sec = x.tv_nsec;
20231 ;
20232 return 0;
20233 }
20234 _ACEOF
20235 if ac_fn_c_try_compile "$LINENO"; then :
20236 gl_cv_sys_struct_timespec_in_time_h=yes
20237 else
20238 gl_cv_sys_struct_timespec_in_time_h=no
20239 fi
20240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20241 fi
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20243 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20244
20245 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20246 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20247 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20248 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20249 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20250 else
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20252 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20253 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20254 $as_echo_n "(cached) " >&6
20255 else
20256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257 /* end confdefs.h. */
20258 #include <sys/time.h>
20259
20260 int
20261 main ()
20262 {
20263 static struct timespec x; x.tv_sec = x.tv_nsec;
20264 ;
20265 return 0;
20266 }
20267 _ACEOF
20268 if ac_fn_c_try_compile "$LINENO"; then :
20269 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20270 else
20271 gl_cv_sys_struct_timespec_in_sys_time_h=no
20272 fi
20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274 fi
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20276 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20277 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20278 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20279 else
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20281 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20282 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20283 $as_echo_n "(cached) " >&6
20284 else
20285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20286 /* end confdefs.h. */
20287 #include <pthread.h>
20288
20289 int
20290 main ()
20291 {
20292 static struct timespec x; x.tv_sec = x.tv_nsec;
20293 ;
20294 return 0;
20295 }
20296 _ACEOF
20297 if ac_fn_c_try_compile "$LINENO"; then :
20298 gl_cv_sys_struct_timespec_in_pthread_h=yes
20299 else
20300 gl_cv_sys_struct_timespec_in_pthread_h=no
20301 fi
20302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303 fi
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20305 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20306 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20307 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20308 fi
20309 fi
20310 fi
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326 if test $gl_cv_have_include_next = yes; then
20327 gl_cv_next_time_h='<'time.h'>'
20328 else
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20330 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20331 if test "${gl_cv_next_time_h+set}" = set; then :
20332 $as_echo_n "(cached) " >&6
20333 else
20334
20335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20336 /* end confdefs.h. */
20337 #include <time.h>
20338
20339 _ACEOF
20340 case "$host_os" in
20341 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20342 *) gl_absname_cpp="$ac_cpp" ;;
20343 esac
20344
20345 case "$host_os" in
20346 mingw*)
20347 gl_dirsep_regex='[/\\]'
20348 ;;
20349 *)
20350 gl_dirsep_regex='\/'
20351 ;;
20352 esac
20353 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20354
20355 gl_header_literal_regex=`echo 'time.h' \
20356 | sed -e "$gl_make_literal_regex_sed"`
20357 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20358 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20359 s|^/[^/]|//&|
20360 p
20361 q
20362 }'
20363 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20364 sed -n "$gl_absolute_header_sed"`'"'
20365
20366
20367 fi
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20369 $as_echo "$gl_cv_next_time_h" >&6; }
20370 fi
20371 NEXT_TIME_H=$gl_cv_next_time_h
20372
20373 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20374 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20375 gl_next_as_first_directive='<'time.h'>'
20376 else
20377 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20378 gl_next_as_first_directive=$gl_cv_next_time_h
20379 fi
20380 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20396 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
20397 ac_have_decl=1
20398 else
20399 ac_have_decl=0
20400 fi
20401
20402 cat >>confdefs.h <<_ACEOF
20403 #define HAVE_DECL_UNSETENV $ac_have_decl
20404 _ACEOF
20405
20406
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20408 $as_echo_n "checking whether the utimes function works... " >&6; }
20409 if test "${gl_cv_func_working_utimes+set}" = set; then :
20410 $as_echo_n "(cached) " >&6
20411 else
20412
20413 if test "$cross_compiling" = yes; then :
20414 gl_cv_func_working_utimes=no
20415 else
20416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20417 /* end confdefs.h. */
20418
20419 #include <sys/types.h>
20420 #include <sys/stat.h>
20421 #include <fcntl.h>
20422 #include <sys/time.h>
20423 #include <time.h>
20424 #include <unistd.h>
20425 #include <stdlib.h>
20426 #include <stdio.h>
20427 #include <utime.h>
20428
20429 static int
20430 inorder (time_t a, time_t b, time_t c)
20431 {
20432 return a <= b && b <= c;
20433 }
20434
20435 int
20436 main ()
20437 {
20438 int result = 0;
20439 char const *file = "conftest.utimes";
20440 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20441
20442 /* Test whether utimes() essentially works. */
20443 {
20444 struct stat sbuf;
20445 FILE *f = fopen (file, "w");
20446 if (f == NULL)
20447 result |= 1;
20448 else if (fclose (f) != 0)
20449 result |= 1;
20450 else if (utimes (file, timeval) != 0)
20451 result |= 2;
20452 else if (lstat (file, &sbuf) != 0)
20453 result |= 1;
20454 else if (!(sbuf.st_atime == timeval[0].tv_sec
20455 && sbuf.st_mtime == timeval[1].tv_sec))
20456 result |= 4;
20457 if (unlink (file) != 0)
20458 result |= 1;
20459 }
20460
20461 /* Test whether utimes() with a NULL argument sets the file's timestamp
20462 to the current time. Use 'fstat' as well as 'time' to
20463 determine the "current" time, to accommodate NFS file systems
20464 if there is a time skew between the host and the NFS server. */
20465 {
20466 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20467 if (fd < 0)
20468 result |= 1;
20469 else
20470 {
20471 time_t t0, t2;
20472 struct stat st0, st1, st2;
20473 if (time (&t0) == (time_t) -1)
20474 result |= 1;
20475 else if (fstat (fd, &st0) != 0)
20476 result |= 1;
20477 else if (utimes (file, timeval) != 0)
20478 result |= 2;
20479 else if (utimes (file, NULL) != 0)
20480 result |= 8;
20481 else if (fstat (fd, &st1) != 0)
20482 result |= 1;
20483 else if (write (fd, "\n", 1) != 1)
20484 result |= 1;
20485 else if (fstat (fd, &st2) != 0)
20486 result |= 1;
20487 else if (time (&t2) == (time_t) -1)
20488 result |= 1;
20489 else
20490 {
20491 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20492 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20493 if (! (st1.st_atime == st1.st_mtime))
20494 result |= 16;
20495 if (! (m_ok_POSIX || m_ok_NFS))
20496 result |= 32;
20497 }
20498 if (close (fd) != 0)
20499 result |= 1;
20500 }
20501 if (unlink (file) != 0)
20502 result |= 1;
20503 }
20504
20505 /* Test whether utimes() with a NULL argument works on read-only files. */
20506 {
20507 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20508 if (fd < 0)
20509 result |= 1;
20510 else if (close (fd) != 0)
20511 result |= 1;
20512 else if (utimes (file, NULL) != 0)
20513 result |= 64;
20514 if (unlink (file) != 0)
20515 result |= 1;
20516 }
20517
20518 return result;
20519 }
20520
20521 _ACEOF
20522 if ac_fn_c_try_run "$LINENO"; then :
20523 gl_cv_func_working_utimes=yes
20524 else
20525 gl_cv_func_working_utimes=no
20526 fi
20527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20528 conftest.$ac_objext conftest.beam conftest.$ac_ext
20529 fi
20530
20531 fi
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20533 $as_echo "$gl_cv_func_working_utimes" >&6; }
20534
20535 if test $gl_cv_func_working_utimes = yes; then
20536
20537 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20538
20539 fi
20540
20541
20542
20543
20544
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20546 $as_echo_n "checking for struct utimbuf... " >&6; }
20547 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20548 $as_echo_n "(cached) " >&6
20549 else
20550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20551 /* end confdefs.h. */
20552 #if HAVE_SYS_TIME_H
20553 #include <sys/time.h>
20554 #endif
20555 #include <time.h>
20556 #ifdef HAVE_UTIME_H
20557 #include <utime.h>
20558 #endif
20559
20560 int
20561 main ()
20562 {
20563 static struct utimbuf x; x.actime = x.modtime;
20564 ;
20565 return 0;
20566 }
20567 _ACEOF
20568 if ac_fn_c_try_compile "$LINENO"; then :
20569 gl_cv_sys_struct_utimbuf=yes
20570 else
20571 gl_cv_sys_struct_utimbuf=no
20572 fi
20573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20574 fi
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20576 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20577
20578 if test $gl_cv_sys_struct_utimbuf = yes; then
20579
20580 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20581
20582 fi
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20595 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20596 if test "${ac_cv_type_getgroups+set}" = set; then :
20597 $as_echo_n "(cached) " >&6
20598 else
20599 if test "$cross_compiling" = yes; then :
20600 ac_cv_type_getgroups=cross
20601 else
20602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20603 /* end confdefs.h. */
20604 /* Thanks to Mike Rendell for this test. */
20605 $ac_includes_default
20606 #define NGID 256
20607 #undef MAX
20608 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20609
20610 int
20611 main ()
20612 {
20613 gid_t gidset[NGID];
20614 int i, n;
20615 union { gid_t gval; long int lval; } val;
20616
20617 val.lval = -1;
20618 for (i = 0; i < NGID; i++)
20619 gidset[i] = val.gval;
20620 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20621 gidset);
20622 /* Exit non-zero if getgroups seems to require an array of ints. This
20623 happens when gid_t is short int but getgroups modifies an array
20624 of ints. */
20625 return n > 0 && gidset[n] != val.gval;
20626 }
20627 _ACEOF
20628 if ac_fn_c_try_run "$LINENO"; then :
20629 ac_cv_type_getgroups=gid_t
20630 else
20631 ac_cv_type_getgroups=int
20632 fi
20633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20634 conftest.$ac_objext conftest.beam conftest.$ac_ext
20635 fi
20636
20637 if test $ac_cv_type_getgroups = cross; then
20638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h. */
20640 #include <unistd.h>
20641
20642 _ACEOF
20643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20644 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20645 ac_cv_type_getgroups=gid_t
20646 else
20647 ac_cv_type_getgroups=int
20648 fi
20649 rm -f conftest*
20650
20651 fi
20652 fi
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20654 $as_echo "$ac_cv_type_getgroups" >&6; }
20655
20656 cat >>confdefs.h <<_ACEOF
20657 #define GETGROUPS_T $ac_cv_type_getgroups
20658 _ACEOF
20659
20660
20661
20662
20663 if false; then
20664 GL_COND_LIBTOOL_TRUE=
20665 GL_COND_LIBTOOL_FALSE='#'
20666 else
20667 GL_COND_LIBTOOL_TRUE='#'
20668 GL_COND_LIBTOOL_FALSE=
20669 fi
20670
20671 gl_cond_libtool=false
20672 gl_libdeps=
20673 gl_ltlibdeps=
20674 gl_m4_base='m4'
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684 gl_source_base='lib'
20685
20686
20687 if test $ac_cv_func_alloca_works = no; then
20688 :
20689 fi
20690
20691 # Define an additional variable used in the Makefile substitution.
20692 if test $ac_cv_working_alloca_h = yes; then
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20694 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20695 if test "${gl_cv_rpl_alloca+set}" = set; then :
20696 $as_echo_n "(cached) " >&6
20697 else
20698
20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20701
20702 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20703 Need own alloca
20704 #endif
20705
20706 _ACEOF
20707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20708 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20709 gl_cv_rpl_alloca=yes
20710 else
20711 gl_cv_rpl_alloca=no
20712 fi
20713 rm -f conftest*
20714
20715
20716 fi
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20718 $as_echo "$gl_cv_rpl_alloca" >&6; }
20719 if test $gl_cv_rpl_alloca = yes; then
20720
20721 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20722
20723 ALLOCA_H=alloca.h
20724 else
20725 ALLOCA_H=
20726 fi
20727 else
20728 ALLOCA_H=alloca.h
20729 fi
20730
20731 if test -n "$ALLOCA_H"; then
20732 GL_GENERATE_ALLOCA_H_TRUE=
20733 GL_GENERATE_ALLOCA_H_FALSE='#'
20734 else
20735 GL_GENERATE_ALLOCA_H_TRUE='#'
20736 GL_GENERATE_ALLOCA_H_FALSE=
20737 fi
20738
20739
20740
20741
20742
20743
20744 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20745 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20746
20747 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20748 # programs in the package would end up linked with that potentially-shared
20749 # library, inducing unnecessary run-time overhead.
20750 LIB_CLOCK_GETTIME=
20751
20752 gl_saved_libs=$LIBS
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20754 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20755 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20756 $as_echo_n "(cached) " >&6
20757 else
20758 ac_func_search_save_LIBS=$LIBS
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h. */
20761
20762 /* Override any GCC internal prototype to avoid an error.
20763 Use char because int might match the return type of a GCC
20764 builtin and then its argument prototype would still apply. */
20765 #ifdef __cplusplus
20766 extern "C"
20767 #endif
20768 char clock_gettime ();
20769 int
20770 main ()
20771 {
20772 return clock_gettime ();
20773 ;
20774 return 0;
20775 }
20776 _ACEOF
20777 for ac_lib in '' rt posix4; do
20778 if test -z "$ac_lib"; then
20779 ac_res="none required"
20780 else
20781 ac_res=-l$ac_lib
20782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20783 fi
20784 if ac_fn_c_try_link "$LINENO"; then :
20785 ac_cv_search_clock_gettime=$ac_res
20786 fi
20787 rm -f core conftest.err conftest.$ac_objext \
20788 conftest$ac_exeext
20789 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20790 break
20791 fi
20792 done
20793 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20794
20795 else
20796 ac_cv_search_clock_gettime=no
20797 fi
20798 rm conftest.$ac_ext
20799 LIBS=$ac_func_search_save_LIBS
20800 fi
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20802 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20803 ac_res=$ac_cv_search_clock_gettime
20804 if test "$ac_res" != no; then :
20805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20806 test "$ac_cv_search_clock_gettime" = "none required" ||
20807 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20808 fi
20809
20810 for ac_func in clock_gettime clock_settime
20811 do :
20812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20814 eval as_val=\$$as_ac_var
20815 if test "x$as_val" = x""yes; then :
20816 cat >>confdefs.h <<_ACEOF
20817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20818 _ACEOF
20819
20820 fi
20821 done
20822
20823 LIBS=$gl_saved_libs
20824
20825
20826 :
20827
20828
20829
20830 cat >>confdefs.h <<_ACEOF
20831 #define GNULIB_CLOSE_STREAM 1
20832 _ACEOF
20833
20834
20835
20836
20837 :
20838
20839
20840
20841 :
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861 if test $gl_cv_have_include_next = yes; then
20862 gl_cv_next_dirent_h='<'dirent.h'>'
20863 else
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
20865 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
20866 if test "${gl_cv_next_dirent_h+set}" = set; then :
20867 $as_echo_n "(cached) " >&6
20868 else
20869
20870 if test $ac_cv_header_dirent_h = yes; then
20871
20872
20873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874 /* end confdefs.h. */
20875 #include <dirent.h>
20876
20877 _ACEOF
20878 case "$host_os" in
20879 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20880 *) gl_absname_cpp="$ac_cpp" ;;
20881 esac
20882
20883 case "$host_os" in
20884 mingw*)
20885 gl_dirsep_regex='[/\\]'
20886 ;;
20887 *)
20888 gl_dirsep_regex='\/'
20889 ;;
20890 esac
20891 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20892
20893 gl_header_literal_regex=`echo 'dirent.h' \
20894 | sed -e "$gl_make_literal_regex_sed"`
20895 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20896 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20897 s|^/[^/]|//&|
20898 p
20899 q
20900 }'
20901 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20902 sed -n "$gl_absolute_header_sed"`'"'
20903 else
20904 gl_cv_next_dirent_h='<'dirent.h'>'
20905 fi
20906
20907
20908 fi
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
20910 $as_echo "$gl_cv_next_dirent_h" >&6; }
20911 fi
20912 NEXT_DIRENT_H=$gl_cv_next_dirent_h
20913
20914 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20916 gl_next_as_first_directive='<'dirent.h'>'
20917 else
20918 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20919 gl_next_as_first_directive=$gl_cv_next_dirent_h
20920 fi
20921 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
20922
20923
20924
20925
20926 if test $ac_cv_header_dirent_h = yes; then
20927 HAVE_DIRENT_H=1
20928 else
20929 HAVE_DIRENT_H=0
20930 fi
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20942
20943
20944 if test $HAVE_DUP2 = 1; then
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20946 $as_echo_n "checking whether dup2 works... " >&6; }
20947 if test "${gl_cv_func_dup2_works+set}" = set; then :
20948 $as_echo_n "(cached) " >&6
20949 else
20950 if test "$cross_compiling" = yes; then :
20951 case "$host_os" in
20952 mingw*) # on this platform, dup2 always returns 0 for success
20953 gl_cv_func_dup2_works="guessing no" ;;
20954 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20955 gl_cv_func_dup2_works="guessing no" ;;
20956 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20957 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20958 gl_cv_func_dup2_works="guessing no" ;;
20959 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20960 gl_cv_func_dup2_works="guessing no" ;;
20961 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20962 gl_cv_func_dup2_works="guessing no" ;;
20963 *) gl_cv_func_dup2_works="guessing yes" ;;
20964 esac
20965 else
20966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20967 /* end confdefs.h. */
20968
20969 #include <unistd.h>
20970 #include <fcntl.h>
20971 #include <errno.h>
20972 int
20973 main ()
20974 {
20975 int result = 0;
20976 #ifdef FD_CLOEXEC
20977 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20978 result |= 1;
20979 #endif
20980 if (dup2 (1, 1) == 0)
20981 result |= 2;
20982 #ifdef FD_CLOEXEC
20983 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20984 result |= 4;
20985 #endif
20986 close (0);
20987 if (dup2 (0, 0) != -1)
20988 result |= 8;
20989 /* Many gnulib modules require POSIX conformance of EBADF. */
20990 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20991 result |= 16;
20992 /* Flush out a cygwin core dump. */
20993 if (dup2 (2, -1) != -1 || errno != EBADF)
20994 result |= 32;
20995 return result;
20996
20997 ;
20998 return 0;
20999 }
21000
21001 _ACEOF
21002 if ac_fn_c_try_run "$LINENO"; then :
21003 gl_cv_func_dup2_works=yes
21004 else
21005 gl_cv_func_dup2_works=no
21006 fi
21007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21008 conftest.$ac_objext conftest.beam conftest.$ac_ext
21009 fi
21010
21011
21012 fi
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
21014 $as_echo "$gl_cv_func_dup2_works" >&6; }
21015 case "$gl_cv_func_dup2_works" in
21016 *yes) ;;
21017 *)
21018 REPLACE_DUP2=1
21019 ;;
21020 esac
21021 fi
21022
21023
21024 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
21025
21026
21027
21028
21029
21030
21031
21032
21033 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
21034
21035
21036 fi
21037
21038
21039
21040
21041
21042 GNULIB_DUP2=1
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054 GNULIB_ENVIRON=1
21055
21056
21057
21058
21059
21060
21061
21062
21063 LIB_EXECINFO=''
21064 EXECINFO_H='execinfo.h'
21065
21066 if test $ac_cv_header_execinfo_h = yes; then
21067 gl_saved_libs=$LIBS
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
21069 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
21070 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21071 $as_echo_n "(cached) " >&6
21072 else
21073 ac_func_search_save_LIBS=$LIBS
21074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21075 /* end confdefs.h. */
21076
21077 /* Override any GCC internal prototype to avoid an error.
21078 Use char because int might match the return type of a GCC
21079 builtin and then its argument prototype would still apply. */
21080 #ifdef __cplusplus
21081 extern "C"
21082 #endif
21083 char backtrace_symbols_fd ();
21084 int
21085 main ()
21086 {
21087 return backtrace_symbols_fd ();
21088 ;
21089 return 0;
21090 }
21091 _ACEOF
21092 for ac_lib in '' execinfo; do
21093 if test -z "$ac_lib"; then
21094 ac_res="none required"
21095 else
21096 ac_res=-l$ac_lib
21097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21098 fi
21099 if ac_fn_c_try_link "$LINENO"; then :
21100 ac_cv_search_backtrace_symbols_fd=$ac_res
21101 fi
21102 rm -f core conftest.err conftest.$ac_objext \
21103 conftest$ac_exeext
21104 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21105 break
21106 fi
21107 done
21108 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21109
21110 else
21111 ac_cv_search_backtrace_symbols_fd=no
21112 fi
21113 rm conftest.$ac_ext
21114 LIBS=$ac_func_search_save_LIBS
21115 fi
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
21117 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
21118 ac_res=$ac_cv_search_backtrace_symbols_fd
21119 if test "$ac_res" != no; then :
21120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21121 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
21122 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
21123 fi
21124
21125 LIBS=$gl_saved_libs
21126 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
21127 fi
21128
21129 if test -n "$EXECINFO_H"; then
21130
21131
21132
21133
21134
21135
21136
21137
21138 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
21139
21140 fi
21141
21142
21143
21144 if test -n "$EXECINFO_H"; then
21145 GL_GENERATE_EXECINFO_H_TRUE=
21146 GL_GENERATE_EXECINFO_H_FALSE='#'
21147 else
21148 GL_GENERATE_EXECINFO_H_TRUE='#'
21149 GL_GENERATE_EXECINFO_H_FALSE=
21150 fi
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160 if test $ac_cv_func_faccessat = no; then
21161 HAVE_FACCESSAT=0
21162 fi
21163
21164 if test $HAVE_FACCESSAT = 0; then
21165
21166
21167
21168
21169
21170
21171
21172
21173 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
21174
21175
21176 for ac_func in access
21177 do :
21178 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
21179 if test "x$ac_cv_func_access" = x""yes; then :
21180 cat >>confdefs.h <<_ACEOF
21181 #define HAVE_ACCESS 1
21182 _ACEOF
21183
21184 fi
21185 done
21186
21187
21188 fi
21189
21190
21191 cat >>confdefs.h <<_ACEOF
21192 #define GNULIB_FACCESSAT 1
21193 _ACEOF
21194
21195
21196
21197
21198
21199
21200
21201 GNULIB_FACCESSAT=1
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218 if test $gl_cv_have_include_next = yes; then
21219 gl_cv_next_fcntl_h='<'fcntl.h'>'
21220 else
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21222 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21223 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21224 $as_echo_n "(cached) " >&6
21225 else
21226
21227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228 /* end confdefs.h. */
21229 #include <fcntl.h>
21230
21231 _ACEOF
21232 case "$host_os" in
21233 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21234 *) gl_absname_cpp="$ac_cpp" ;;
21235 esac
21236
21237 case "$host_os" in
21238 mingw*)
21239 gl_dirsep_regex='[/\\]'
21240 ;;
21241 *)
21242 gl_dirsep_regex='\/'
21243 ;;
21244 esac
21245 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21246
21247 gl_header_literal_regex=`echo 'fcntl.h' \
21248 | sed -e "$gl_make_literal_regex_sed"`
21249 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21250 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21251 s|^/[^/]|//&|
21252 p
21253 q
21254 }'
21255 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21256 sed -n "$gl_absolute_header_sed"`'"'
21257
21258
21259 fi
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21261 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21262 fi
21263 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
21264
21265 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21266 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21267 gl_next_as_first_directive='<'fcntl.h'>'
21268 else
21269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21270 gl_next_as_first_directive=$gl_cv_next_fcntl_h
21271 fi
21272 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288 LIB_FDATASYNC=
21289
21290
21291 if test $ac_cv_have_decl_fdatasync = no; then
21292 HAVE_DECL_FDATASYNC=0
21293 for ac_func in fdatasync
21294 do :
21295 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
21296 if test "x$ac_cv_func_fdatasync" = x""yes; then :
21297 cat >>confdefs.h <<_ACEOF
21298 #define HAVE_FDATASYNC 1
21299 _ACEOF
21300
21301 fi
21302 done
21303
21304 if test $ac_cv_func_fdatasync = no; then
21305 HAVE_FDATASYNC=0
21306 fi
21307 else
21308 gl_saved_libs=$LIBS
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
21310 $as_echo_n "checking for library containing fdatasync... " >&6; }
21311 if test "${ac_cv_search_fdatasync+set}" = set; then :
21312 $as_echo_n "(cached) " >&6
21313 else
21314 ac_func_search_save_LIBS=$LIBS
21315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21316 /* end confdefs.h. */
21317
21318 /* Override any GCC internal prototype to avoid an error.
21319 Use char because int might match the return type of a GCC
21320 builtin and then its argument prototype would still apply. */
21321 #ifdef __cplusplus
21322 extern "C"
21323 #endif
21324 char fdatasync ();
21325 int
21326 main ()
21327 {
21328 return fdatasync ();
21329 ;
21330 return 0;
21331 }
21332 _ACEOF
21333 for ac_lib in '' rt posix4; do
21334 if test -z "$ac_lib"; then
21335 ac_res="none required"
21336 else
21337 ac_res=-l$ac_lib
21338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21339 fi
21340 if ac_fn_c_try_link "$LINENO"; then :
21341 ac_cv_search_fdatasync=$ac_res
21342 fi
21343 rm -f core conftest.err conftest.$ac_objext \
21344 conftest$ac_exeext
21345 if test "${ac_cv_search_fdatasync+set}" = set; then :
21346 break
21347 fi
21348 done
21349 if test "${ac_cv_search_fdatasync+set}" = set; then :
21350
21351 else
21352 ac_cv_search_fdatasync=no
21353 fi
21354 rm conftest.$ac_ext
21355 LIBS=$ac_func_search_save_LIBS
21356 fi
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
21358 $as_echo "$ac_cv_search_fdatasync" >&6; }
21359 ac_res=$ac_cv_search_fdatasync
21360 if test "$ac_res" != no; then :
21361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21362 test "$ac_cv_search_fdatasync" = "none required" ||
21363 LIB_FDATASYNC=$ac_cv_search_fdatasync
21364 fi
21365
21366 LIBS=$gl_saved_libs
21367 fi
21368
21369 if test $HAVE_FDATASYNC = 0; then
21370
21371
21372
21373
21374
21375
21376
21377
21378 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
21379
21380 fi
21381
21382
21383
21384
21385
21386 GNULIB_FDATASYNC=1
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21398 #include <dirent.h>
21399
21400 "
21401 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
21402 ac_have_decl=1
21403 else
21404 ac_have_decl=0
21405 fi
21406
21407 cat >>confdefs.h <<_ACEOF
21408 #define HAVE_DECL_FDOPENDIR $ac_have_decl
21409 _ACEOF
21410 if test $ac_have_decl = 1; then :
21411
21412 else
21413 HAVE_DECL_FDOPENDIR=0
21414 fi
21415
21416
21417 if test $ac_cv_func_fdopendir = no; then
21418 HAVE_FDOPENDIR=0
21419 else
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
21421 $as_echo_n "checking whether fdopendir works... " >&6; }
21422 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
21423 $as_echo_n "(cached) " >&6
21424 else
21425 if test "$cross_compiling" = yes; then :
21426 case "$host_os" in
21427 # Guess yes on glibc systems.
21428 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
21429 # If we don't know, assume the worst.
21430 *) gl_cv_func_fdopendir_works="guessing no" ;;
21431 esac
21432
21433 else
21434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21435 /* end confdefs.h. */
21436
21437 #include <dirent.h>
21438 #include <fcntl.h>
21439 #include <unistd.h>
21440 #if !HAVE_DECL_FDOPENDIR
21441 extern
21442 # ifdef __cplusplus
21443 "C"
21444 # endif
21445 DIR *fdopendir (int);
21446 #endif
21447
21448 int
21449 main ()
21450 {
21451 int result = 0;
21452 int fd = open ("conftest.c", O_RDONLY);
21453 if (fd < 0) result |= 1;
21454 if (fdopendir (fd)) result |= 2;
21455 if (close (fd)) result |= 4;
21456 return result;
21457 ;
21458 return 0;
21459 }
21460 _ACEOF
21461 if ac_fn_c_try_run "$LINENO"; then :
21462 gl_cv_func_fdopendir_works=yes
21463 else
21464 gl_cv_func_fdopendir_works=no
21465 fi
21466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21467 conftest.$ac_objext conftest.beam conftest.$ac_ext
21468 fi
21469
21470 fi
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
21472 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
21473 case "$gl_cv_func_fdopendir_works" in
21474 *yes) ;;
21475 *)
21476 REPLACE_FDOPENDIR=1
21477 ;;
21478 esac
21479 fi
21480
21481 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
21482
21483
21484
21485
21486
21487
21488
21489
21490 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
21491
21492 fi
21493
21494
21495
21496
21497
21498 GNULIB_FDOPENDIR=1
21499
21500
21501
21502
21503
21504
21505
21506 cat >>confdefs.h <<_ACEOF
21507 #define GNULIB_FDOPENDIR 1
21508 _ACEOF
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518 fp_headers='
21519 # include <stdio.h>
21520 # if HAVE_STDIO_EXT_H
21521 # include <stdio_ext.h>
21522 # endif
21523 '
21524 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
21525 "
21526 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
21527 ac_have_decl=1
21528 else
21529 ac_have_decl=0
21530 fi
21531
21532 cat >>confdefs.h <<_ACEOF
21533 #define HAVE_DECL___FPENDING $ac_have_decl
21534 _ACEOF
21535
21536
21537 if test $ac_cv_func___fpending = no; then
21538
21539
21540
21541
21542
21543
21544
21545
21546 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
21547
21548
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
21550 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
21551 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
21552 $as_echo_n "(cached) " >&6
21553 else
21554
21555 for ac_expr in \
21556 \
21557 '# glibc2' \
21558 'fp->_IO_write_ptr - fp->_IO_write_base' \
21559 \
21560 '# traditional Unix' \
21561 'fp->_ptr - fp->_base' \
21562 \
21563 '# BSD' \
21564 'fp->_p - fp->_bf._base' \
21565 \
21566 '# SCO, Unixware' \
21567 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21568 \
21569 '# QNX' \
21570 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21571 \
21572 '# old glibc?' \
21573 'fp->__bufp - fp->__buffer' \
21574 \
21575 '# old glibc iostream?' \
21576 'fp->_pptr - fp->_pbase' \
21577 \
21578 '# emx+gcc' \
21579 'fp->_ptr - fp->_buffer' \
21580 \
21581 '# Minix' \
21582 'fp->_ptr - fp->_buf' \
21583 \
21584 '# Plan9' \
21585 'fp->wp - fp->buf' \
21586 \
21587 '# VMS' \
21588 '(*fp)->_ptr - (*fp)->_base' \
21589 \
21590 '# e.g., DGUX R4.11; the info is not available' \
21591 1 \
21592 ; do
21593
21594 # Skip each embedded comment.
21595 case "$ac_expr" in '#'*) continue;; esac
21596
21597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21598 /* end confdefs.h. */
21599 #include <stdio.h>
21600 int
21601 main ()
21602 {
21603 FILE *fp = stdin; (void) ($ac_expr);
21604 ;
21605 return 0;
21606 }
21607 _ACEOF
21608 if ac_fn_c_try_compile "$LINENO"; then :
21609 fp_done=yes
21610
21611 fi
21612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613 test "$fp_done" = yes && break
21614 done
21615
21616 ac_cv_sys_pending_output_n_bytes=$ac_expr
21617
21618
21619 fi
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21621 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21622
21623 cat >>confdefs.h <<_ACEOF
21624 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21625 _ACEOF
21626
21627
21628 fi
21629
21630
21631
21632
21633
21634
21635 if test $ac_cv_func_fstatat = no; then
21636 HAVE_FSTATAT=0
21637 else
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21639 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21640 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
21641 $as_echo_n "(cached) " >&6
21642 else
21643 if test "$cross_compiling" = yes; then :
21644 case "$host_os" in
21645 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
21646 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
21647 esac
21648
21649 else
21650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21651 /* end confdefs.h. */
21652
21653 #include <fcntl.h>
21654 #include <sys/stat.h>
21655 int
21656 main (void)
21657 {
21658 struct stat a;
21659 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21660 }
21661
21662 _ACEOF
21663 if ac_fn_c_try_run "$LINENO"; then :
21664 gl_cv_func_fstatat_zero_flag=yes
21665 else
21666 gl_cv_func_fstatat_zero_flag=no
21667 fi
21668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21669 conftest.$ac_objext conftest.beam conftest.$ac_ext
21670 fi
21671
21672
21673 fi
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21675 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21676
21677 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21678 *yes+*yes) ;;
21679 *) REPLACE_FSTATAT=1
21680 case $gl_cv_func_fstatat_zero_flag in
21681 *yes)
21682
21683 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
21684
21685 ;;
21686 esac
21687 ;;
21688 esac
21689 fi
21690
21691 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
21692
21693
21694
21695
21696
21697
21698
21699
21700 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
21701
21702 fi
21703
21704
21705
21706
21707
21708 GNULIB_FSTATAT=1
21709
21710
21711
21712
21713
21714
21715
21716
21717 if test $ac_cv_func_fsync = no; then
21718 HAVE_FSYNC=0
21719 fi
21720
21721 if test $HAVE_FSYNC = 0; then
21722
21723
21724
21725
21726
21727
21728
21729
21730 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
21731
21732 :
21733 fi
21734
21735
21736
21737
21738
21739 GNULIB_FSYNC=1
21740
21741
21742
21743
21744
21745
21746
21747 # Persuade glibc <stdlib.h> to declare getloadavg().
21748
21749
21750 gl_save_LIBS=$LIBS
21751
21752 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
21753 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
21754 HAVE_GETLOADAVG=1
21755 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21756 if test "x$ac_cv_func_getloadavg" = x""yes; then :
21757
21758 else
21759 gl_func_getloadavg_done=no
21760
21761 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21762 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21763 # to get the right answer into the cache.
21764 # For kstat on solaris, we need to test for libelf and libkvm to force the
21765 # definition of SVR4 below.
21766 if test $gl_func_getloadavg_done = no; then
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
21768 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
21769 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
21770 $as_echo_n "(cached) " >&6
21771 else
21772 ac_check_lib_save_LIBS=$LIBS
21773 LIBS="-lelf $LIBS"
21774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21775 /* end confdefs.h. */
21776
21777 /* Override any GCC internal prototype to avoid an error.
21778 Use char because int might match the return type of a GCC
21779 builtin and then its argument prototype would still apply. */
21780 #ifdef __cplusplus
21781 extern "C"
21782 #endif
21783 char elf_begin ();
21784 int
21785 main ()
21786 {
21787 return elf_begin ();
21788 ;
21789 return 0;
21790 }
21791 _ACEOF
21792 if ac_fn_c_try_link "$LINENO"; then :
21793 ac_cv_lib_elf_elf_begin=yes
21794 else
21795 ac_cv_lib_elf_elf_begin=no
21796 fi
21797 rm -f core conftest.err conftest.$ac_objext \
21798 conftest$ac_exeext conftest.$ac_ext
21799 LIBS=$ac_check_lib_save_LIBS
21800 fi
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
21802 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
21803 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
21804 LIBS="-lelf $LIBS"
21805 fi
21806
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
21808 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
21809 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
21810 $as_echo_n "(cached) " >&6
21811 else
21812 ac_check_lib_save_LIBS=$LIBS
21813 LIBS="-lkvm $LIBS"
21814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21815 /* end confdefs.h. */
21816
21817 /* Override any GCC internal prototype to avoid an error.
21818 Use char because int might match the return type of a GCC
21819 builtin and then its argument prototype would still apply. */
21820 #ifdef __cplusplus
21821 extern "C"
21822 #endif
21823 char kvm_open ();
21824 int
21825 main ()
21826 {
21827 return kvm_open ();
21828 ;
21829 return 0;
21830 }
21831 _ACEOF
21832 if ac_fn_c_try_link "$LINENO"; then :
21833 ac_cv_lib_kvm_kvm_open=yes
21834 else
21835 ac_cv_lib_kvm_kvm_open=no
21836 fi
21837 rm -f core conftest.err conftest.$ac_objext \
21838 conftest$ac_exeext conftest.$ac_ext
21839 LIBS=$ac_check_lib_save_LIBS
21840 fi
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21842 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21843 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
21844 LIBS="-lkvm $LIBS"
21845 fi
21846
21847 # Check for the 4.4BSD definition of getloadavg.
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21849 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21850 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21851 $as_echo_n "(cached) " >&6
21852 else
21853 ac_check_lib_save_LIBS=$LIBS
21854 LIBS="-lutil $LIBS"
21855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21856 /* end confdefs.h. */
21857
21858 /* Override any GCC internal prototype to avoid an error.
21859 Use char because int might match the return type of a GCC
21860 builtin and then its argument prototype would still apply. */
21861 #ifdef __cplusplus
21862 extern "C"
21863 #endif
21864 char getloadavg ();
21865 int
21866 main ()
21867 {
21868 return getloadavg ();
21869 ;
21870 return 0;
21871 }
21872 _ACEOF
21873 if ac_fn_c_try_link "$LINENO"; then :
21874 ac_cv_lib_util_getloadavg=yes
21875 else
21876 ac_cv_lib_util_getloadavg=no
21877 fi
21878 rm -f core conftest.err conftest.$ac_objext \
21879 conftest$ac_exeext conftest.$ac_ext
21880 LIBS=$ac_check_lib_save_LIBS
21881 fi
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21883 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21884 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
21885 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
21886 fi
21887
21888 fi
21889
21890 if test $gl_func_getloadavg_done = no; then
21891 # There is a commonly available library for RS/6000 AIX.
21892 # Since it is not a standard part of AIX, it might be installed locally.
21893 gl_getloadavg_LIBS=$LIBS
21894 LIBS="-L/usr/local/lib $LIBS"
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21896 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21897 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21898 $as_echo_n "(cached) " >&6
21899 else
21900 ac_check_lib_save_LIBS=$LIBS
21901 LIBS="-lgetloadavg $LIBS"
21902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21903 /* end confdefs.h. */
21904
21905 /* Override any GCC internal prototype to avoid an error.
21906 Use char because int might match the return type of a GCC
21907 builtin and then its argument prototype would still apply. */
21908 #ifdef __cplusplus
21909 extern "C"
21910 #endif
21911 char getloadavg ();
21912 int
21913 main ()
21914 {
21915 return getloadavg ();
21916 ;
21917 return 0;
21918 }
21919 _ACEOF
21920 if ac_fn_c_try_link "$LINENO"; then :
21921 ac_cv_lib_getloadavg_getloadavg=yes
21922 else
21923 ac_cv_lib_getloadavg_getloadavg=no
21924 fi
21925 rm -f core conftest.err conftest.$ac_objext \
21926 conftest$ac_exeext conftest.$ac_ext
21927 LIBS=$ac_check_lib_save_LIBS
21928 fi
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21930 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21931 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21932 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21933 else
21934 LIBS=$gl_getloadavg_LIBS
21935 fi
21936
21937 fi
21938
21939 # Set up the replacement function if necessary.
21940 if test $gl_func_getloadavg_done = no; then
21941 HAVE_GETLOADAVG=0
21942
21943 # Solaris has libkstat which does not require root.
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21945 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21946 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21947 $as_echo_n "(cached) " >&6
21948 else
21949 ac_check_lib_save_LIBS=$LIBS
21950 LIBS="-lkstat $LIBS"
21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h. */
21953
21954 /* Override any GCC internal prototype to avoid an error.
21955 Use char because int might match the return type of a GCC
21956 builtin and then its argument prototype would still apply. */
21957 #ifdef __cplusplus
21958 extern "C"
21959 #endif
21960 char kstat_open ();
21961 int
21962 main ()
21963 {
21964 return kstat_open ();
21965 ;
21966 return 0;
21967 }
21968 _ACEOF
21969 if ac_fn_c_try_link "$LINENO"; then :
21970 ac_cv_lib_kstat_kstat_open=yes
21971 else
21972 ac_cv_lib_kstat_kstat_open=no
21973 fi
21974 rm -f core conftest.err conftest.$ac_objext \
21975 conftest$ac_exeext conftest.$ac_ext
21976 LIBS=$ac_check_lib_save_LIBS
21977 fi
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21979 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21980 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
21981 cat >>confdefs.h <<_ACEOF
21982 #define HAVE_LIBKSTAT 1
21983 _ACEOF
21984
21985 LIBS="-lkstat $LIBS"
21986
21987 fi
21988
21989 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
21990
21991 # AIX has libperfstat which does not require root
21992 if test $gl_func_getloadavg_done = no; then
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21994 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21995 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21996 $as_echo_n "(cached) " >&6
21997 else
21998 ac_check_lib_save_LIBS=$LIBS
21999 LIBS="-lperfstat $LIBS"
22000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22001 /* end confdefs.h. */
22002
22003 /* Override any GCC internal prototype to avoid an error.
22004 Use char because int might match the return type of a GCC
22005 builtin and then its argument prototype would still apply. */
22006 #ifdef __cplusplus
22007 extern "C"
22008 #endif
22009 char perfstat_cpu_total ();
22010 int
22011 main ()
22012 {
22013 return perfstat_cpu_total ();
22014 ;
22015 return 0;
22016 }
22017 _ACEOF
22018 if ac_fn_c_try_link "$LINENO"; then :
22019 ac_cv_lib_perfstat_perfstat_cpu_total=yes
22020 else
22021 ac_cv_lib_perfstat_perfstat_cpu_total=no
22022 fi
22023 rm -f core conftest.err conftest.$ac_objext \
22024 conftest$ac_exeext conftest.$ac_ext
22025 LIBS=$ac_check_lib_save_LIBS
22026 fi
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
22028 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
22029 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
22030 cat >>confdefs.h <<_ACEOF
22031 #define HAVE_LIBPERFSTAT 1
22032 _ACEOF
22033
22034 LIBS="-lperfstat $LIBS"
22035
22036 fi
22037
22038 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
22039 fi
22040
22041 if test $gl_func_getloadavg_done = no; then
22042 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
22043 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
22044 gl_func_getloadavg_done=yes
22045
22046 $as_echo "#define DGUX 1" >>confdefs.h
22047
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
22049 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
22050 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
22051 $as_echo_n "(cached) " >&6
22052 else
22053 ac_check_lib_save_LIBS=$LIBS
22054 LIBS="-ldgc $LIBS"
22055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22056 /* end confdefs.h. */
22057
22058 /* Override any GCC internal prototype to avoid an error.
22059 Use char because int might match the return type of a GCC
22060 builtin and then its argument prototype would still apply. */
22061 #ifdef __cplusplus
22062 extern "C"
22063 #endif
22064 char dg_sys_info ();
22065 int
22066 main ()
22067 {
22068 return dg_sys_info ();
22069 ;
22070 return 0;
22071 }
22072 _ACEOF
22073 if ac_fn_c_try_link "$LINENO"; then :
22074 ac_cv_lib_dgc_dg_sys_info=yes
22075 else
22076 ac_cv_lib_dgc_dg_sys_info=no
22077 fi
22078 rm -f core conftest.err conftest.$ac_objext \
22079 conftest$ac_exeext conftest.$ac_ext
22080 LIBS=$ac_check_lib_save_LIBS
22081 fi
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
22083 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
22084 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
22085 cat >>confdefs.h <<_ACEOF
22086 #define HAVE_LIBDGC 1
22087 _ACEOF
22088
22089 LIBS="-ldgc $LIBS"
22090
22091 fi
22092
22093 fi
22094
22095
22096 fi
22097 fi
22098 fi
22099
22100
22101 if test "x$gl_save_LIBS" = x; then
22102 GETLOADAVG_LIBS=$LIBS
22103 else
22104 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
22105 fi
22106 LIBS=$gl_save_LIBS
22107
22108
22109 # Test whether the system declares getloadavg. Solaris has the function
22110 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
22111 for ac_header in sys/loadavg.h
22112 do :
22113 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
22114 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
22115 cat >>confdefs.h <<_ACEOF
22116 #define HAVE_SYS_LOADAVG_H 1
22117 _ACEOF
22118
22119 fi
22120
22121 done
22122
22123 if test $ac_cv_header_sys_loadavg_h = yes; then
22124 HAVE_SYS_LOADAVG_H=1
22125 else
22126 HAVE_SYS_LOADAVG_H=0
22127 fi
22128 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
22129 # include <sys/loadavg.h>
22130 #endif
22131 #include <stdlib.h>
22132 "
22133 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
22134
22135 else
22136 HAVE_DECL_GETLOADAVG=0
22137 fi
22138
22139
22140 if test $HAVE_GETLOADAVG = 0; then
22141
22142
22143
22144
22145
22146
22147
22148
22149 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
22150
22151
22152 # Figure out what our getloadavg.c needs.
22153
22154
22155
22156 # On HPUX9, an unprivileged user can get load averages this way.
22157 if test $gl_func_getloadavg_done = no; then
22158 for ac_func in pstat_getdynamic
22159 do :
22160 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
22161 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
22162 cat >>confdefs.h <<_ACEOF
22163 #define HAVE_PSTAT_GETDYNAMIC 1
22164 _ACEOF
22165 gl_func_getloadavg_done=yes
22166 fi
22167 done
22168
22169 fi
22170
22171 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
22172 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
22173 # Irix 4.0.5F has the header but not the library.
22174 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
22175 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
22176 gl_func_getloadavg_done=yes
22177
22178 $as_echo "#define SVR4 1" >>confdefs.h
22179
22180 fi
22181
22182 if test $gl_func_getloadavg_done = no; then
22183 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
22184 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
22185 gl_func_getloadavg_done=yes
22186
22187 $as_echo "#define UMAX 1" >>confdefs.h
22188
22189
22190 $as_echo "#define UMAX4_3 1" >>confdefs.h
22191
22192 fi
22193
22194
22195 fi
22196
22197 if test $gl_func_getloadavg_done = no; then
22198 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
22199 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
22200 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
22201
22202 fi
22203
22204
22205 fi
22206
22207 if test $gl_func_getloadavg_done = no; then
22208 for ac_header in mach/mach.h
22209 do :
22210 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
22211 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
22212 cat >>confdefs.h <<_ACEOF
22213 #define HAVE_MACH_MACH_H 1
22214 _ACEOF
22215
22216 fi
22217
22218 done
22219
22220 fi
22221
22222 for ac_header in nlist.h
22223 do :
22224 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
22225 if test "x$ac_cv_header_nlist_h" = x""yes; then :
22226 cat >>confdefs.h <<_ACEOF
22227 #define HAVE_NLIST_H 1
22228 _ACEOF
22229 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
22230 "
22231 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
22232
22233 cat >>confdefs.h <<_ACEOF
22234 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
22235 _ACEOF
22236
22237
22238 fi
22239
22240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22241 /* end confdefs.h. */
22242 #include <nlist.h>
22243 int
22244 main ()
22245 {
22246 struct nlist x;
22247 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
22248 x.n_un.n_name = "";
22249 #else
22250 x.n_name = "";
22251 #endif
22252 ;
22253 return 0;
22254 }
22255 _ACEOF
22256 if ac_fn_c_try_link "$LINENO"; then :
22257
22258 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
22259
22260 fi
22261 rm -f core conftest.err conftest.$ac_objext \
22262 conftest$ac_exeext conftest.$ac_ext
22263
22264 fi
22265
22266 done
22267
22268 fi
22269
22270
22271
22272
22273
22274 GNULIB_GETLOADAVG=1
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285 if test $REPLACE_GETOPT = 1; then
22286
22287
22288
22289
22290
22291
22292
22293
22294 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22305
22306
22307
22308
22309 GNULIB_GL_UNISTD_H_GETOPT=1
22310 fi
22311
22312
22313
22314
22315
22316
22317
22318 REPLACE_GETOPT=0
22319 if test -n "$gl_replace_getopt"; then
22320 REPLACE_GETOPT=1
22321 fi
22322
22323 if test $REPLACE_GETOPT = 1; then
22324
22325 GETOPT_H=getopt.h
22326
22327 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22328
22329
22330
22331 fi
22332
22333 if test $REPLACE_GETOPT = 1; then
22334
22335
22336
22337
22338
22339
22340
22341
22342 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22353
22354
22355
22356
22357 GNULIB_GL_UNISTD_H_GETOPT=1
22358 fi
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371 gl_gettimeofday_timezone=void
22372 if test $ac_cv_func_gettimeofday != yes; then
22373 HAVE_GETTIMEOFDAY=0
22374 else
22375
22376
22377
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22379 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22380 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
22381 $as_echo_n "(cached) " >&6
22382 else
22383 if test "$cross_compiling" = yes; then :
22384 # When cross-compiling:
22385 case "$host_os" in
22386 # Guess all is fine on glibc systems.
22387 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22388 # If we don't know, assume the worst.
22389 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22390 esac
22391
22392 else
22393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22394 /* end confdefs.h. */
22395 #include <string.h>
22396 #include <sys/time.h>
22397 #include <time.h>
22398 #include <stdlib.h>
22399
22400 int
22401 main ()
22402 {
22403
22404 time_t t = 0;
22405 struct tm *lt;
22406 struct tm saved_lt;
22407 struct timeval tv;
22408 lt = localtime (&t);
22409 saved_lt = *lt;
22410 gettimeofday (&tv, NULL);
22411 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22412
22413 ;
22414 return 0;
22415 }
22416 _ACEOF
22417 if ac_fn_c_try_run "$LINENO"; then :
22418 gl_cv_func_gettimeofday_clobber=no
22419 else
22420 gl_cv_func_gettimeofday_clobber=yes
22421 fi
22422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22423 conftest.$ac_objext conftest.beam conftest.$ac_ext
22424 fi
22425
22426 fi
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22428 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22429
22430 case "$gl_cv_func_gettimeofday_clobber" in
22431 *yes)
22432 REPLACE_GETTIMEOFDAY=1
22433
22434
22435 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
22436
22437
22438 $as_echo "#define localtime rpl_localtime" >>confdefs.h
22439
22440
22441
22442 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22443
22444 ;;
22445 esac
22446
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22448 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22449 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
22450 $as_echo_n "(cached) " >&6
22451 else
22452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22453 /* end confdefs.h. */
22454 #include <sys/time.h>
22455 struct timeval c;
22456 int gettimeofday (struct timeval *restrict, void *restrict);
22457
22458 int
22459 main ()
22460 {
22461 /* glibc uses struct timezone * rather than the POSIX void *
22462 if _GNU_SOURCE is defined. However, since the only portable
22463 use of gettimeofday uses NULL as the second parameter, and
22464 since the glibc definition is actually more typesafe, it is
22465 not worth wrapping this to get a compliant signature. */
22466 int (*f) (struct timeval *restrict, void *restrict)
22467 = gettimeofday;
22468 int x = f (&c, 0);
22469 return !(x | c.tv_sec | c.tv_usec);
22470
22471 ;
22472 return 0;
22473 }
22474 _ACEOF
22475 if ac_fn_c_try_compile "$LINENO"; then :
22476 gl_cv_func_gettimeofday_posix_signature=yes
22477 else
22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h. */
22480 #include <sys/time.h>
22481 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22482
22483 int
22484 main ()
22485 {
22486
22487 ;
22488 return 0;
22489 }
22490 _ACEOF
22491 if ac_fn_c_try_compile "$LINENO"; then :
22492 gl_cv_func_gettimeofday_posix_signature=almost
22493 else
22494 gl_cv_func_gettimeofday_posix_signature=no
22495 fi
22496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22497 fi
22498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22499 fi
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22501 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22502 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22503 gl_gettimeofday_timezone='struct timezone'
22504 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22505 REPLACE_GETTIMEOFDAY=1
22506 fi
22507 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22508 REPLACE_GETTIMEOFDAY=1
22509 fi
22510
22511 fi
22512
22513 cat >>confdefs.h <<_ACEOF
22514 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22515 _ACEOF
22516
22517
22518 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22519
22520
22521
22522
22523
22524
22525
22526
22527 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22528
22529
22530 for ac_header in sys/timeb.h
22531 do :
22532 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22533 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
22534 cat >>confdefs.h <<_ACEOF
22535 #define HAVE_SYS_TIMEB_H 1
22536 _ACEOF
22537
22538 fi
22539
22540 done
22541
22542 for ac_func in _ftime
22543 do :
22544 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22545 if test "x$ac_cv_func__ftime" = x""yes; then :
22546 cat >>confdefs.h <<_ACEOF
22547 #define HAVE__FTIME 1
22548 _ACEOF
22549
22550 fi
22551 done
22552
22553
22554 fi
22555
22556
22557
22558
22559
22560 GNULIB_GETTIMEOFDAY=1
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571 if test $ac_cv_func_lstat = yes; then
22572
22573 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22574 *no)
22575 REPLACE_LSTAT=1
22576 ;;
22577 esac
22578 else
22579 HAVE_LSTAT=0
22580 fi
22581
22582 if test $REPLACE_LSTAT = 1; then
22583
22584
22585
22586
22587
22588
22589
22590
22591 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22592
22593 :
22594 fi
22595
22596
22597
22598
22599
22600 GNULIB_LSTAT=1
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611 if test $ac_cv_have_decl_memrchr = no; then
22612 HAVE_DECL_MEMRCHR=0
22613 fi
22614
22615 for ac_func in memrchr
22616 do :
22617 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
22618 if test "x$ac_cv_func_memrchr" = x""yes; then :
22619 cat >>confdefs.h <<_ACEOF
22620 #define HAVE_MEMRCHR 1
22621 _ACEOF
22622
22623 fi
22624 done
22625
22626
22627 if test $ac_cv_func_memrchr = no; then
22628
22629
22630
22631
22632
22633
22634
22635
22636 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
22637
22638 :
22639 fi
22640
22641
22642
22643
22644
22645 GNULIB_MEMRCHR=1
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657 if test $APPLE_UNIVERSAL_BUILD = 1; then
22658 # A universal build on Apple Mac OS X platforms.
22659 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
22660 # But we need a configuration result that is valid in both modes.
22661 gl_cv_func_working_mktime=no
22662 fi
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
22664 $as_echo_n "checking for working mktime... " >&6; }
22665 if test "${gl_cv_func_working_mktime+set}" = set; then :
22666 $as_echo_n "(cached) " >&6
22667 else
22668 if test "$cross_compiling" = yes; then :
22669 gl_cv_func_working_mktime=no
22670 else
22671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672 /* end confdefs.h. */
22673 /* Test program from Paul Eggert and Tony Leneis. */
22674 #include <limits.h>
22675 #include <stdlib.h>
22676 #include <time.h>
22677
22678 #ifdef HAVE_UNISTD_H
22679 # include <unistd.h>
22680 #endif
22681
22682 #if HAVE_DECL_ALARM
22683 # include <signal.h>
22684 #endif
22685
22686 /* Work around redefinition to rpl_putenv by other config tests. */
22687 #undef putenv
22688
22689 static time_t time_t_max;
22690 static time_t time_t_min;
22691
22692 /* Values we'll use to set the TZ environment variable. */
22693 static char *tz_strings[] = {
22694 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22695 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22696 };
22697 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22698
22699 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22700 Based on a problem report from Andreas Jaeger. */
22701 static int
22702 spring_forward_gap ()
22703 {
22704 /* glibc (up to about 1998-10-07) failed this test. */
22705 struct tm tm;
22706
22707 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22708 instead of "TZ=America/Vancouver" in order to detect the bug even
22709 on systems that don't support the Olson extension, or don't have the
22710 full zoneinfo tables installed. */
22711 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22712
22713 tm.tm_year = 98;
22714 tm.tm_mon = 3;
22715 tm.tm_mday = 5;
22716 tm.tm_hour = 2;
22717 tm.tm_min = 0;
22718 tm.tm_sec = 0;
22719 tm.tm_isdst = -1;
22720 return mktime (&tm) != (time_t) -1;
22721 }
22722
22723 static int
22724 mktime_test1 (time_t now)
22725 {
22726 struct tm *lt;
22727 return ! (lt = localtime (&now)) || mktime (lt) == now;
22728 }
22729
22730 static int
22731 mktime_test (time_t now)
22732 {
22733 return (mktime_test1 (now)
22734 && mktime_test1 ((time_t) (time_t_max - now))
22735 && mktime_test1 ((time_t) (time_t_min + now)));
22736 }
22737
22738 static int
22739 irix_6_4_bug ()
22740 {
22741 /* Based on code from Ariel Faigon. */
22742 struct tm tm;
22743 tm.tm_year = 96;
22744 tm.tm_mon = 3;
22745 tm.tm_mday = 0;
22746 tm.tm_hour = 0;
22747 tm.tm_min = 0;
22748 tm.tm_sec = 0;
22749 tm.tm_isdst = -1;
22750 mktime (&tm);
22751 return tm.tm_mon == 2 && tm.tm_mday == 31;
22752 }
22753
22754 static int
22755 bigtime_test (int j)
22756 {
22757 struct tm tm;
22758 time_t now;
22759 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22760 now = mktime (&tm);
22761 if (now != (time_t) -1)
22762 {
22763 struct tm *lt = localtime (&now);
22764 if (! (lt
22765 && lt->tm_year == tm.tm_year
22766 && lt->tm_mon == tm.tm_mon
22767 && lt->tm_mday == tm.tm_mday
22768 && lt->tm_hour == tm.tm_hour
22769 && lt->tm_min == tm.tm_min
22770 && lt->tm_sec == tm.tm_sec
22771 && lt->tm_yday == tm.tm_yday
22772 && lt->tm_wday == tm.tm_wday
22773 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22774 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22775 return 0;
22776 }
22777 return 1;
22778 }
22779
22780 static int
22781 year_2050_test ()
22782 {
22783 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22784 ignoring leap seconds. */
22785 unsigned long int answer = 2527315200UL;
22786
22787 struct tm tm;
22788 time_t t;
22789 tm.tm_year = 2050 - 1900;
22790 tm.tm_mon = 2 - 1;
22791 tm.tm_mday = 1;
22792 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22793 tm.tm_isdst = -1;
22794
22795 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22796 instead of "TZ=America/Vancouver" in order to detect the bug even
22797 on systems that don't support the Olson extension, or don't have the
22798 full zoneinfo tables installed. */
22799 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22800
22801 t = mktime (&tm);
22802
22803 /* Check that the result is either a failure, or close enough
22804 to the correct answer that we can assume the discrepancy is
22805 due to leap seconds. */
22806 return (t == (time_t) -1
22807 || (0 < t && answer - 120 <= t && t <= answer + 120));
22808 }
22809
22810 int
22811 main ()
22812 {
22813 int result = 0;
22814 time_t t, delta;
22815 int i, j;
22816 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
22817 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
22818
22819 #if HAVE_DECL_ALARM
22820 /* This test makes some buggy mktime implementations loop.
22821 Give up after 60 seconds; a mktime slower than that
22822 isn't worth using anyway. */
22823 signal (SIGALRM, SIG_DFL);
22824 alarm (60);
22825 #endif
22826
22827 time_t_max = (! time_t_signed
22828 ? (time_t) -1
22829 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
22830 * 2 + 1));
22831 time_t_min = (! time_t_signed
22832 ? (time_t) 0
22833 : time_t_signed_magnitude
22834 ? ~ (time_t) 0
22835 : ~ time_t_max);
22836
22837 delta = time_t_max / 997; /* a suitable prime number */
22838 for (i = 0; i < N_STRINGS; i++)
22839 {
22840 if (tz_strings[i])
22841 putenv (tz_strings[i]);
22842
22843 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
22844 if (! mktime_test (t))
22845 result |= 1;
22846 if ((result & 2) == 0
22847 && ! (mktime_test ((time_t) 1)
22848 && mktime_test ((time_t) (60 * 60))
22849 && mktime_test ((time_t) (60 * 60 * 24))))
22850 result |= 2;
22851
22852 for (j = 1; (result & 4) == 0; j <<= 1)
22853 {
22854 if (! bigtime_test (j))
22855 result |= 4;
22856 if (INT_MAX / 2 < j)
22857 break;
22858 }
22859 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
22860 result |= 8;
22861 }
22862 if (! irix_6_4_bug ())
22863 result |= 16;
22864 if (! spring_forward_gap ())
22865 result |= 32;
22866 if (! year_2050_test ())
22867 result |= 64;
22868 return result;
22869 }
22870 _ACEOF
22871 if ac_fn_c_try_run "$LINENO"; then :
22872 gl_cv_func_working_mktime=yes
22873 else
22874 gl_cv_func_working_mktime=no
22875 fi
22876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22877 conftest.$ac_objext conftest.beam conftest.$ac_ext
22878 fi
22879
22880
22881 fi
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22883 $as_echo "$gl_cv_func_working_mktime" >&6; }
22884
22885 if test $gl_cv_func_working_mktime = no; then
22886 REPLACE_MKTIME=1
22887 else
22888 REPLACE_MKTIME=0
22889 fi
22890
22891 if test $REPLACE_MKTIME = 1; then
22892
22893
22894
22895
22896
22897
22898
22899
22900 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
22901
22902 :
22903 fi
22904
22905
22906
22907
22908
22909 GNULIB_MKTIME=1
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921 if test $ac_cv_func_pselect = yes; then
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22923 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22924 if test "${gl_cv_sig_pselect+set}" = set; then :
22925 $as_echo_n "(cached) " >&6
22926 else
22927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22928 /* end confdefs.h. */
22929 #include <sys/select.h>
22930
22931 int
22932 main ()
22933 {
22934 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22935 struct timespec const *restrict,
22936 sigset_t const *restrict) = pselect;
22937 return !p;
22938 ;
22939 return 0;
22940 }
22941 _ACEOF
22942 if ac_fn_c_try_link "$LINENO"; then :
22943 gl_cv_sig_pselect=yes
22944 else
22945 gl_cv_sig_pselect=no
22946 fi
22947 rm -f core conftest.err conftest.$ac_objext \
22948 conftest$ac_exeext conftest.$ac_ext
22949 fi
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22951 $as_echo "$gl_cv_sig_pselect" >&6; }
22952
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22954 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22955 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22956 $as_echo_n "(cached) " >&6
22957 else
22958
22959 if test "$cross_compiling" = yes; then :
22960
22961 case "$host_os" in
22962 # Guess yes on glibc systems.
22963 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
22964 # If we don't know, assume the worst.
22965 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
22966 esac
22967
22968 else
22969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22970 /* end confdefs.h. */
22971
22972 #include <sys/types.h>
22973 #include <sys/time.h>
22974 #if HAVE_SYS_SELECT_H
22975 # include <sys/select.h>
22976 #endif
22977 #include <unistd.h>
22978 #include <errno.h>
22979
22980 int
22981 main ()
22982 {
22983
22984 fd_set set;
22985 dup2(0, 16);
22986 FD_ZERO(&set);
22987 FD_SET(16, &set);
22988 close(16);
22989 struct timespec timeout;
22990 timeout.tv_sec = 0;
22991 timeout.tv_nsec = 5000;
22992 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22993
22994 ;
22995 return 0;
22996 }
22997 _ACEOF
22998 if ac_fn_c_try_run "$LINENO"; then :
22999 gl_cv_func_pselect_detects_ebadf=yes
23000 else
23001 gl_cv_func_pselect_detects_ebadf=no
23002 fi
23003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23004 conftest.$ac_objext conftest.beam conftest.$ac_ext
23005 fi
23006
23007
23008 fi
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
23010 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
23011 case $gl_cv_func_pselect_detects_ebadf in
23012 *yes) ;;
23013 *) REPLACE_PSELECT=1 ;;
23014 esac
23015 fi
23016
23017 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
23018 REPLACE_PSELECT=1
23019 fi
23020
23021 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
23022
23023
23024
23025
23026
23027
23028
23029
23030 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
23031
23032 fi
23033
23034
23035
23036
23037
23038 GNULIB_PSELECT=1
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048 LIB_PTHREAD_SIGMASK=
23049
23050
23051
23052
23053 if test "$gl_threads_api" = posix; then
23054 if test $ac_cv_func_pthread_sigmask = yes; then
23055 :
23056 else
23057 if test -n "$LIBMULTITHREAD"; then
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
23059 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
23060 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
23061 $as_echo_n "(cached) " >&6
23062 else
23063 gl_save_LIBS="$LIBS"
23064 LIBS="$LIBS $LIBMULTITHREAD"
23065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23066 /* end confdefs.h. */
23067 #include <pthread.h>
23068 #include <signal.h>
23069
23070 int
23071 main ()
23072 {
23073 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
23074 ;
23075 return 0;
23076 }
23077
23078 _ACEOF
23079 if ac_fn_c_try_link "$LINENO"; then :
23080 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
23081 else
23082 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
23083 fi
23084 rm -f core conftest.err conftest.$ac_objext \
23085 conftest$ac_exeext conftest.$ac_ext
23086 LIBS="$gl_save_LIBS"
23087
23088 fi
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
23090 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
23091 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
23092 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
23093 else
23094 HAVE_PTHREAD_SIGMASK=0
23095 fi
23096 else
23097 HAVE_PTHREAD_SIGMASK=0
23098 fi
23099 fi
23100 else
23101 if test $ac_cv_func_pthread_sigmask = yes; then
23102 REPLACE_PTHREAD_SIGMASK=1
23103 else
23104 HAVE_PTHREAD_SIGMASK=0
23105 fi
23106 fi
23107
23108
23109
23110
23111 if test $HAVE_PTHREAD_SIGMASK = 1; then
23112
23113
23114 if test -z "$LIB_PTHREAD_SIGMASK"; then
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
23116 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
23117 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
23118 $as_echo_n "(cached) " >&6
23119 else
23120
23121 if test "$cross_compiling" = yes; then :
23122
23123 case "$host_os" in
23124 freebsd* | hpux* | solaris | solaris2.[2-9]*)
23125 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
23126 *)
23127 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
23128 esac
23129
23130 else
23131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23132 /* end confdefs.h. */
23133
23134 #include <pthread.h>
23135 #include <signal.h>
23136 #include <stddef.h>
23137 int main ()
23138 {
23139 sigset_t set;
23140 sigemptyset (&set);
23141 return pthread_sigmask (1729, &set, NULL) != 0;
23142 }
23143 _ACEOF
23144 if ac_fn_c_try_run "$LINENO"; then :
23145 gl_cv_func_pthread_sigmask_in_libc_works=no
23146 else
23147 gl_cv_func_pthread_sigmask_in_libc_works=yes
23148 fi
23149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23150 conftest.$ac_objext conftest.beam conftest.$ac_ext
23151 fi
23152
23153
23154 fi
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
23156 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
23157 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
23158 *no)
23159 REPLACE_PTHREAD_SIGMASK=1
23160
23161 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
23162
23163 ;;
23164 esac
23165 fi
23166
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
23168 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
23169 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
23170 $as_echo_n "(cached) " >&6
23171 else
23172
23173 gl_save_LIBS="$LIBS"
23174 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
23175 if test "$cross_compiling" = yes; then :
23176 case "$host_os" in
23177 cygwin*)
23178 gl_cv_func_pthread_sigmask_return_works="guessing no";;
23179 *)
23180 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
23181 esac
23182
23183 else
23184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23185 /* end confdefs.h. */
23186
23187 #include <pthread.h>
23188 #include <signal.h>
23189 #include <stddef.h>
23190 int main ()
23191 {
23192 sigset_t set;
23193 sigemptyset (&set);
23194 if (pthread_sigmask (1729, &set, NULL) == -1)
23195 return 1;
23196 return 0;
23197 }
23198 _ACEOF
23199 if ac_fn_c_try_run "$LINENO"; then :
23200 gl_cv_func_pthread_sigmask_return_works=yes
23201 else
23202 gl_cv_func_pthread_sigmask_return_works=no
23203 fi
23204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23205 conftest.$ac_objext conftest.beam conftest.$ac_ext
23206 fi
23207
23208 LIBS="$gl_save_LIBS"
23209
23210 fi
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
23212 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
23213 case "$gl_cv_func_pthread_sigmask_return_works" in
23214 *no)
23215 REPLACE_PTHREAD_SIGMASK=1
23216
23217 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
23218
23219 ;;
23220 esac
23221
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
23223 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
23224 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
23225 $as_echo_n "(cached) " >&6
23226 else
23227
23228 case "$host_os" in
23229 irix*)
23230 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
23231 *)
23232 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
23233 esac
23234 gl_save_LIBS="$LIBS"
23235 LIBS="$LIBS $LIBMULTITHREAD"
23236 if test "$cross_compiling" = yes; then :
23237 :
23238 else
23239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23240 /* end confdefs.h. */
23241
23242 #include <pthread.h>
23243 #include <signal.h>
23244 #include <stdio.h>
23245 #include <stdlib.h>
23246 #include <unistd.h>
23247 static volatile int sigint_occurred;
23248 static void
23249 sigint_handler (int sig)
23250 {
23251 sigint_occurred++;
23252 }
23253 int main ()
23254 {
23255 sigset_t set;
23256 int pid = getpid ();
23257 char command[80];
23258 signal (SIGINT, sigint_handler);
23259 sigemptyset (&set);
23260 sigaddset (&set, SIGINT);
23261 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
23262 return 1;
23263 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
23264 if (!(system (command) == 0))
23265 return 2;
23266 sleep (2);
23267 if (!(sigint_occurred == 0))
23268 return 3;
23269 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
23270 return 4;
23271 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
23272 return 5;
23273 return 0;
23274 }
23275 _ACEOF
23276 if ac_fn_c_try_run "$LINENO"; then :
23277 :
23278 else
23279 gl_cv_func_pthread_sigmask_unblock_works=no
23280 fi
23281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23282 conftest.$ac_objext conftest.beam conftest.$ac_ext
23283 fi
23284
23285 LIBS="$gl_save_LIBS"
23286
23287 fi
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
23289 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
23290 case "$gl_cv_func_pthread_sigmask_unblock_works" in
23291 *no)
23292 REPLACE_PTHREAD_SIGMASK=1
23293
23294 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
23295
23296 ;;
23297 esac
23298 fi
23299
23300 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
23301
23302
23303
23304
23305
23306
23307
23308
23309 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
23310
23311
23312 if test $HAVE_PTHREAD_SIGMASK = 1; then
23313
23314 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23315
23316 fi
23317
23318 fi
23319
23320
23321
23322
23323
23324 GNULIB_PTHREAD_SIGMASK=1
23325
23326
23327
23328
23329
23330
23331
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23333 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23334 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23335 $as_echo_n "(cached) " >&6
23336 else
23337 if test "$cross_compiling" = yes; then :
23338 case "$host_os" in
23339 # Guess yes on glibc systems.
23340 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
23341 # If we don't know, assume the worst.
23342 *) gl_cv_func_svid_putenv="guessing no" ;;
23343 esac
23344
23345 else
23346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23347 /* end confdefs.h. */
23348 $ac_includes_default
23349 int
23350 main ()
23351 {
23352
23353 /* Put it in env. */
23354 if (putenv ("CONFTEST_putenv=val"))
23355 return 1;
23356
23357 /* Try to remove it. */
23358 if (putenv ("CONFTEST_putenv"))
23359 return 2;
23360
23361 /* Make sure it was deleted. */
23362 if (getenv ("CONFTEST_putenv") != 0)
23363 return 3;
23364
23365 return 0;
23366
23367 ;
23368 return 0;
23369 }
23370 _ACEOF
23371 if ac_fn_c_try_run "$LINENO"; then :
23372 gl_cv_func_svid_putenv=yes
23373 else
23374 gl_cv_func_svid_putenv=no
23375 fi
23376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23377 conftest.$ac_objext conftest.beam conftest.$ac_ext
23378 fi
23379
23380
23381 fi
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
23383 $as_echo "$gl_cv_func_svid_putenv" >&6; }
23384 case "$gl_cv_func_svid_putenv" in
23385 *yes) ;;
23386 *)
23387 REPLACE_PUTENV=1
23388 ;;
23389 esac
23390
23391 if test $REPLACE_PUTENV = 1; then
23392
23393
23394
23395
23396
23397
23398
23399
23400 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
23401
23402
23403 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
23404 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
23405 ac_have_decl=1
23406 else
23407 ac_have_decl=0
23408 fi
23409
23410 cat >>confdefs.h <<_ACEOF
23411 #define HAVE_DECL__PUTENV $ac_have_decl
23412 _ACEOF
23413
23414
23415 fi
23416
23417
23418
23419
23420
23421 GNULIB_PUTENV=1
23422
23423
23424
23425
23426
23427
23428
23429
23430 if test $ac_cv_func_readlink = no; then
23431 HAVE_READLINK=0
23432 else
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23434 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23435 if test "${gl_cv_decl_readlink_works+set}" = set; then :
23436 $as_echo_n "(cached) " >&6
23437 else
23438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23439 /* end confdefs.h. */
23440 #include <unistd.h>
23441 /* Cause compilation failure if original declaration has wrong type. */
23442 ssize_t readlink (const char *, char *, size_t);
23443 int
23444 main ()
23445 {
23446
23447 ;
23448 return 0;
23449 }
23450 _ACEOF
23451 if ac_fn_c_try_compile "$LINENO"; then :
23452 gl_cv_decl_readlink_works=yes
23453 else
23454 gl_cv_decl_readlink_works=no
23455 fi
23456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23457 fi
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23459 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23461 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23462 if test "${gl_cv_func_readlink_works+set}" = set; then :
23463 $as_echo_n "(cached) " >&6
23464 else
23465 # We have readlink, so assume ln -s works.
23466 ln -s conftest.no-such conftest.link
23467 ln -s conftest.link conftest.lnk2
23468 if test "$cross_compiling" = yes; then :
23469 case "$host_os" in
23470 # Guess yes on glibc systems.
23471 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
23472 # If we don't know, assume the worst.
23473 *) gl_cv_func_readlink_works="guessing no" ;;
23474 esac
23475
23476 else
23477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23478 /* end confdefs.h. */
23479 #include <unistd.h>
23480
23481 int
23482 main ()
23483 {
23484 char buf[20];
23485 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23486 ;
23487 return 0;
23488 }
23489 _ACEOF
23490 if ac_fn_c_try_run "$LINENO"; then :
23491 gl_cv_func_readlink_works=yes
23492 else
23493 gl_cv_func_readlink_works=no
23494 fi
23495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23496 conftest.$ac_objext conftest.beam conftest.$ac_ext
23497 fi
23498
23499 rm -f conftest.link conftest.lnk2
23500 fi
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23502 $as_echo "$gl_cv_func_readlink_works" >&6; }
23503 case "$gl_cv_func_readlink_works" in
23504 *yes)
23505 if test "$gl_cv_decl_readlink_works" != yes; then
23506 REPLACE_READLINK=1
23507 fi
23508 ;;
23509 *)
23510
23511 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23512
23513 REPLACE_READLINK=1
23514 ;;
23515 esac
23516 fi
23517
23518 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
23519
23520
23521
23522
23523
23524
23525
23526
23527 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
23528
23529
23530 :
23531
23532 fi
23533
23534
23535
23536
23537
23538 GNULIB_READLINK=1
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548 if test $ac_cv_func_readlinkat = no; then
23549 HAVE_READLINKAT=0
23550 fi
23551
23552 if test $HAVE_READLINKAT = 0; then
23553
23554
23555
23556
23557
23558
23559
23560
23561 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
23562
23563 fi
23564
23565
23566
23567
23568
23569 GNULIB_READLINKAT=1
23570
23571
23572
23573
23574
23575
23576 for ac_func in sig2str
23577 do :
23578 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
23579 if test "x$ac_cv_func_sig2str" = x""yes; then :
23580 cat >>confdefs.h <<_ACEOF
23581 #define HAVE_SIG2STR 1
23582 _ACEOF
23583
23584 fi
23585 done
23586
23587
23588 if test $ac_cv_func_sig2str = no; then
23589
23590
23591
23592
23593
23594
23595
23596
23597 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
23598
23599
23600 :
23601
23602 fi
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614 if test $gl_cv_have_include_next = yes; then
23615 gl_cv_next_signal_h='<'signal.h'>'
23616 else
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23618 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23619 if test "${gl_cv_next_signal_h+set}" = set; then :
23620 $as_echo_n "(cached) " >&6
23621 else
23622
23623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23624 /* end confdefs.h. */
23625 #include <signal.h>
23626
23627 _ACEOF
23628 case "$host_os" in
23629 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23630 *) gl_absname_cpp="$ac_cpp" ;;
23631 esac
23632
23633 case "$host_os" in
23634 mingw*)
23635 gl_dirsep_regex='[/\\]'
23636 ;;
23637 *)
23638 gl_dirsep_regex='\/'
23639 ;;
23640 esac
23641 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23642
23643 gl_header_literal_regex=`echo 'signal.h' \
23644 | sed -e "$gl_make_literal_regex_sed"`
23645 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23646 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23647 s|^/[^/]|//&|
23648 p
23649 q
23650 }'
23651 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23652 sed -n "$gl_absolute_header_sed"`'"'
23653
23654
23655 fi
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23657 $as_echo "$gl_cv_next_signal_h" >&6; }
23658 fi
23659 NEXT_SIGNAL_H=$gl_cv_next_signal_h
23660
23661 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23662 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23663 gl_next_as_first_directive='<'signal.h'>'
23664 else
23665 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23666 gl_next_as_first_directive=$gl_cv_next_signal_h
23667 fi
23668 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23669
23670
23671
23672
23673
23674 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23675 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23676 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23677 #include <signal.h>
23678
23679 "
23680 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
23681
23682 else
23683 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23684 fi
23685
23686
23687
23688
23689
23690
23691
23692 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23693 #include <signal.h>
23694
23695 "
23696 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
23697
23698 else
23699 HAVE_SIGHANDLER_T=0
23700 fi
23701
23702
23703
23704
23705 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23706 /* <sys/types.h> is not needed according to POSIX, but the
23707 <sys/socket.h> in i386-unknown-freebsd4.10 and
23708 powerpc-apple-darwin5.5 required it. */
23709 #include <sys/types.h>
23710 #if HAVE_SYS_SOCKET_H
23711 # include <sys/socket.h>
23712 #elif HAVE_WS2TCPIP_H
23713 # include <ws2tcpip.h>
23714 #endif
23715
23716 "
23717 if test "x$ac_cv_type_socklen_t" = x""yes; then :
23718
23719 else
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23721 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23722 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
23723 $as_echo_n "(cached) " >&6
23724 else
23725 # Systems have either "struct sockaddr *" or
23726 # "void *" as the second argument to getpeername
23727 gl_cv_socklen_t_equiv=
23728 for arg2 in "struct sockaddr" void; do
23729 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
23730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23731 /* end confdefs.h. */
23732 #include <sys/types.h>
23733 #include <sys/socket.h>
23734
23735 int getpeername (int, $arg2 *, $t *);
23736 int
23737 main ()
23738 {
23739 $t len;
23740 getpeername (0, 0, &len);
23741 ;
23742 return 0;
23743 }
23744 _ACEOF
23745 if ac_fn_c_try_compile "$LINENO"; then :
23746 gl_cv_socklen_t_equiv="$t"
23747 fi
23748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23749 test "$gl_cv_socklen_t_equiv" != "" && break
23750 done
23751 test "$gl_cv_socklen_t_equiv" != "" && break
23752 done
23753
23754 fi
23755
23756 if test "$gl_cv_socklen_t_equiv" = ""; then
23757 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
23758 fi
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23760 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23761
23762 cat >>confdefs.h <<_ACEOF
23763 #define socklen_t $gl_cv_socklen_t_equiv
23764 _ACEOF
23765
23766 fi
23767
23768
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23770 $as_echo_n "checking for ssize_t... " >&6; }
23771 if test "${gt_cv_ssize_t+set}" = set; then :
23772 $as_echo_n "(cached) " >&6
23773 else
23774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23775 /* end confdefs.h. */
23776 #include <sys/types.h>
23777 int
23778 main ()
23779 {
23780 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23781 return !x;
23782 ;
23783 return 0;
23784 }
23785 _ACEOF
23786 if ac_fn_c_try_compile "$LINENO"; then :
23787 gt_cv_ssize_t=yes
23788 else
23789 gt_cv_ssize_t=no
23790 fi
23791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23792 fi
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23794 $as_echo "$gt_cv_ssize_t" >&6; }
23795 if test $gt_cv_ssize_t = no; then
23796
23797 $as_echo "#define ssize_t int" >>confdefs.h
23798
23799 fi
23800
23801
23802
23803
23804
23805 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>
23806 #include <sys/stat.h>
23807 "
23808 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
23809
23810 cat >>confdefs.h <<_ACEOF
23811 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
23812 _ACEOF
23813
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
23815 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
23816 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
23817 $as_echo_n "(cached) " >&6
23818 else
23819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23820 /* end confdefs.h. */
23821
23822 #include <sys/types.h>
23823 #include <sys/stat.h>
23824 #if HAVE_SYS_TIME_H
23825 # include <sys/time.h>
23826 #endif
23827 #include <time.h>
23828 struct timespec ts;
23829 struct stat st;
23830
23831 int
23832 main ()
23833 {
23834
23835 st.st_atim = ts;
23836
23837 ;
23838 return 0;
23839 }
23840 _ACEOF
23841 if ac_fn_c_try_compile "$LINENO"; then :
23842 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
23843 else
23844 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
23845 fi
23846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23847 fi
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23849 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23850 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23851
23852 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23853
23854 fi
23855 else
23856 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>
23857 #include <sys/stat.h>
23858 "
23859 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
23860
23861 cat >>confdefs.h <<_ACEOF
23862 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23863 _ACEOF
23864
23865
23866 else
23867 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23868 #include <sys/stat.h>
23869 "
23870 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
23871
23872 cat >>confdefs.h <<_ACEOF
23873 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23874 _ACEOF
23875
23876
23877 else
23878 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>
23879 #include <sys/stat.h>
23880 "
23881 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
23882
23883 cat >>confdefs.h <<_ACEOF
23884 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23885 _ACEOF
23886
23887
23888 fi
23889
23890 fi
23891
23892 fi
23893
23894 fi
23895
23896
23897
23898
23899
23900 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>
23901 #include <sys/stat.h>
23902 "
23903 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
23904
23905 cat >>confdefs.h <<_ACEOF
23906 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23907 _ACEOF
23908
23909
23910 else
23911 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23912 #include <sys/stat.h>
23913 "
23914 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
23915
23916 cat >>confdefs.h <<_ACEOF
23917 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23918 _ACEOF
23919
23920
23921 else
23922 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>
23923 #include <sys/stat.h>
23924 "
23925 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
23926
23927 cat >>confdefs.h <<_ACEOF
23928 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23929 _ACEOF
23930
23931
23932 fi
23933
23934 fi
23935
23936 fi
23937
23938
23939
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23941 $as_echo_n "checking for working stdalign.h... " >&6; }
23942 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
23943 $as_echo_n "(cached) " >&6
23944 else
23945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23946 /* end confdefs.h. */
23947 #include <stdalign.h>
23948 #include <stddef.h>
23949
23950 /* Test that alignof yields a result consistent with offsetof.
23951 This catches GCC bug 52023
23952 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23953 #ifdef __cplusplus
23954 template <class t> struct alignof_helper { char a; t b; };
23955 # define ao(type) offsetof (alignof_helper<type>, b)
23956 #else
23957 # define ao(type) offsetof (struct { char a; type b; }, b)
23958 #endif
23959 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23960 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23961 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23962
23963 /* Test _Alignas only on platforms where gnulib can help. */
23964 #if \
23965 (__GNUC__ || __IBMC__ || __IBMCPP__ \
23966 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
23967 int alignas (8) alignas_int = 1;
23968 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
23969 #endif
23970
23971 int
23972 main ()
23973 {
23974
23975 ;
23976 return 0;
23977 }
23978 _ACEOF
23979 if ac_fn_c_try_compile "$LINENO"; then :
23980 gl_cv_header_working_stdalign_h=yes
23981 else
23982 gl_cv_header_working_stdalign_h=no
23983 fi
23984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23985 fi
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23987 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23988
23989 if test $gl_cv_header_working_stdalign_h = yes; then
23990 STDALIGN_H=''
23991 else
23992 STDALIGN_H='stdalign.h'
23993 fi
23994
23995
23996 if test -n "$STDALIGN_H"; then
23997 GL_GENERATE_STDALIGN_H_TRUE=
23998 GL_GENERATE_STDALIGN_H_FALSE='#'
23999 else
24000 GL_GENERATE_STDALIGN_H_TRUE='#'
24001 GL_GENERATE_STDALIGN_H_FALSE=
24002 fi
24003
24004
24005
24006 STDARG_H=''
24007 NEXT_STDARG_H='<stdarg.h>'
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
24009 $as_echo_n "checking for va_copy... " >&6; }
24010 if test "${gl_cv_func_va_copy+set}" = set; then :
24011 $as_echo_n "(cached) " >&6
24012 else
24013
24014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24015 /* end confdefs.h. */
24016 #include <stdarg.h>
24017 int
24018 main ()
24019 {
24020
24021 #ifndef va_copy
24022 void (*func) (va_list, va_list) = va_copy;
24023 #endif
24024
24025 ;
24026 return 0;
24027 }
24028 _ACEOF
24029 if ac_fn_c_try_compile "$LINENO"; then :
24030 gl_cv_func_va_copy=yes
24031 else
24032 gl_cv_func_va_copy=no
24033 fi
24034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24035 fi
24036
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
24038 $as_echo "$gl_cv_func_va_copy" >&6; }
24039 if test $gl_cv_func_va_copy = no; then
24040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24041 /* end confdefs.h. */
24042 #if defined _AIX && !defined __GNUC__
24043 AIX vaccine
24044 #endif
24045
24046 _ACEOF
24047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24048 $EGREP "vaccine" >/dev/null 2>&1; then :
24049 gl_aixcc=yes
24050 else
24051 gl_aixcc=no
24052 fi
24053 rm -f conftest*
24054
24055 if test $gl_aixcc = yes; then
24056 STDARG_H=stdarg.h
24057
24058
24059
24060
24061
24062
24063
24064
24065 if test $gl_cv_have_include_next = yes; then
24066 gl_cv_next_stdarg_h='<'stdarg.h'>'
24067 else
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
24069 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
24070 if test "${gl_cv_next_stdarg_h+set}" = set; then :
24071 $as_echo_n "(cached) " >&6
24072 else
24073
24074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24075 /* end confdefs.h. */
24076 #include <stdarg.h>
24077
24078 _ACEOF
24079 case "$host_os" in
24080 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24081 *) gl_absname_cpp="$ac_cpp" ;;
24082 esac
24083
24084 case "$host_os" in
24085 mingw*)
24086 gl_dirsep_regex='[/\\]'
24087 ;;
24088 *)
24089 gl_dirsep_regex='\/'
24090 ;;
24091 esac
24092 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24093
24094 gl_header_literal_regex=`echo 'stdarg.h' \
24095 | sed -e "$gl_make_literal_regex_sed"`
24096 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24097 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24098 s|^/[^/]|//&|
24099 p
24100 q
24101 }'
24102 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24103 sed -n "$gl_absolute_header_sed"`'"'
24104
24105
24106 fi
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
24108 $as_echo "$gl_cv_next_stdarg_h" >&6; }
24109 fi
24110 NEXT_STDARG_H=$gl_cv_next_stdarg_h
24111
24112 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24114 gl_next_as_first_directive='<'stdarg.h'>'
24115 else
24116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24117 gl_next_as_first_directive=$gl_cv_next_stdarg_h
24118 fi
24119 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
24120
24121
24122
24123
24124 if test "$gl_cv_next_stdarg_h" = '""'; then
24125 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
24126 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
24127 fi
24128 else
24129
24130 saved_as_echo_n="$as_echo_n"
24131 as_echo_n=':'
24132 if test "${gl_cv_func___va_copy+set}" = set; then :
24133 $as_echo_n "(cached) " >&6
24134 else
24135
24136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24137 /* end confdefs.h. */
24138 #include <stdarg.h>
24139 int
24140 main ()
24141 {
24142
24143 #ifndef __va_copy
24144 error, bail out
24145 #endif
24146
24147 ;
24148 return 0;
24149 }
24150 _ACEOF
24151 if ac_fn_c_try_compile "$LINENO"; then :
24152 gl_cv_func___va_copy=yes
24153 else
24154 gl_cv_func___va_copy=no
24155 fi
24156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24157 fi
24158
24159 as_echo_n="$saved_as_echo_n"
24160
24161 if test $gl_cv_func___va_copy = yes; then
24162
24163 $as_echo "#define va_copy __va_copy" >>confdefs.h
24164
24165 else
24166
24167
24168 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
24169
24170 fi
24171 fi
24172 fi
24173
24174 if test -n "$STDARG_H"; then
24175 GL_GENERATE_STDARG_H_TRUE=
24176 GL_GENERATE_STDARG_H_FALSE='#'
24177 else
24178 GL_GENERATE_STDARG_H_TRUE='#'
24179 GL_GENERATE_STDARG_H_FALSE=
24180 fi
24181
24182
24183
24184
24185
24186
24187 # Define two additional variables used in the Makefile substitution.
24188
24189 if test "$ac_cv_header_stdbool_h" = yes; then
24190 STDBOOL_H=''
24191 else
24192 STDBOOL_H='stdbool.h'
24193 fi
24194
24195 if test -n "$STDBOOL_H"; then
24196 GL_GENERATE_STDBOOL_H_TRUE=
24197 GL_GENERATE_STDBOOL_H_FALSE='#'
24198 else
24199 GL_GENERATE_STDBOOL_H_TRUE='#'
24200 GL_GENERATE_STDBOOL_H_FALSE=
24201 fi
24202
24203
24204 if test "$ac_cv_type__Bool" = yes; then
24205 HAVE__BOOL=1
24206 else
24207 HAVE__BOOL=0
24208 fi
24209
24210
24211
24212
24213
24214 STDDEF_H=
24215 if test $gt_cv_c_wchar_t = no; then
24216 HAVE_WCHAR_T=0
24217 STDDEF_H=stddef.h
24218 fi
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24220 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24221 if test "${gl_cv_decl_null_works+set}" = set; then :
24222 $as_echo_n "(cached) " >&6
24223 else
24224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24225 /* end confdefs.h. */
24226 #include <stddef.h>
24227 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24228
24229 int
24230 main ()
24231 {
24232
24233 ;
24234 return 0;
24235 }
24236 _ACEOF
24237 if ac_fn_c_try_compile "$LINENO"; then :
24238 gl_cv_decl_null_works=yes
24239 else
24240 gl_cv_decl_null_works=no
24241 fi
24242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24243 fi
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24245 $as_echo "$gl_cv_decl_null_works" >&6; }
24246 if test $gl_cv_decl_null_works = no; then
24247 REPLACE_NULL=1
24248 STDDEF_H=stddef.h
24249 fi
24250
24251 if test -n "$STDDEF_H"; then
24252 GL_GENERATE_STDDEF_H_TRUE=
24253 GL_GENERATE_STDDEF_H_FALSE='#'
24254 else
24255 GL_GENERATE_STDDEF_H_TRUE='#'
24256 GL_GENERATE_STDDEF_H_FALSE=
24257 fi
24258
24259 if test -n "$STDDEF_H"; then
24260
24261
24262
24263
24264
24265
24266
24267
24268 if test $gl_cv_have_include_next = yes; then
24269 gl_cv_next_stddef_h='<'stddef.h'>'
24270 else
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24272 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24273 if test "${gl_cv_next_stddef_h+set}" = set; then :
24274 $as_echo_n "(cached) " >&6
24275 else
24276
24277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24278 /* end confdefs.h. */
24279 #include <stddef.h>
24280
24281 _ACEOF
24282 case "$host_os" in
24283 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24284 *) gl_absname_cpp="$ac_cpp" ;;
24285 esac
24286
24287 case "$host_os" in
24288 mingw*)
24289 gl_dirsep_regex='[/\\]'
24290 ;;
24291 *)
24292 gl_dirsep_regex='\/'
24293 ;;
24294 esac
24295 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24296
24297 gl_header_literal_regex=`echo 'stddef.h' \
24298 | sed -e "$gl_make_literal_regex_sed"`
24299 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24300 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24301 s|^/[^/]|//&|
24302 p
24303 q
24304 }'
24305 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24306 sed -n "$gl_absolute_header_sed"`'"'
24307
24308
24309 fi
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24311 $as_echo "$gl_cv_next_stddef_h" >&6; }
24312 fi
24313 NEXT_STDDEF_H=$gl_cv_next_stddef_h
24314
24315 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24316 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24317 gl_next_as_first_directive='<'stddef.h'>'
24318 else
24319 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24320 gl_next_as_first_directive=$gl_cv_next_stddef_h
24321 fi
24322 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24323
24324
24325
24326
24327 fi
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340 if test $gl_cv_have_include_next = yes; then
24341 gl_cv_next_stdio_h='<'stdio.h'>'
24342 else
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24344 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24345 if test "${gl_cv_next_stdio_h+set}" = set; then :
24346 $as_echo_n "(cached) " >&6
24347 else
24348
24349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24350 /* end confdefs.h. */
24351 #include <stdio.h>
24352
24353 _ACEOF
24354 case "$host_os" in
24355 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24356 *) gl_absname_cpp="$ac_cpp" ;;
24357 esac
24358
24359 case "$host_os" in
24360 mingw*)
24361 gl_dirsep_regex='[/\\]'
24362 ;;
24363 *)
24364 gl_dirsep_regex='\/'
24365 ;;
24366 esac
24367 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24368
24369 gl_header_literal_regex=`echo 'stdio.h' \
24370 | sed -e "$gl_make_literal_regex_sed"`
24371 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24372 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24373 s|^/[^/]|//&|
24374 p
24375 q
24376 }'
24377 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24378 sed -n "$gl_absolute_header_sed"`'"'
24379
24380
24381 fi
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24383 $as_echo "$gl_cv_next_stdio_h" >&6; }
24384 fi
24385 NEXT_STDIO_H=$gl_cv_next_stdio_h
24386
24387 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24388 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24389 gl_next_as_first_directive='<'stdio.h'>'
24390 else
24391 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24392 gl_next_as_first_directive=$gl_cv_next_stdio_h
24393 fi
24394 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24395
24396
24397
24398
24399
24400 GNULIB_FSCANF=1
24401
24402
24403 cat >>confdefs.h <<_ACEOF
24404 #define GNULIB_FSCANF 1
24405 _ACEOF
24406
24407
24408 GNULIB_SCANF=1
24409
24410
24411 cat >>confdefs.h <<_ACEOF
24412 #define GNULIB_SCANF 1
24413 _ACEOF
24414
24415
24416 GNULIB_FGETC=1
24417 GNULIB_GETC=1
24418 GNULIB_GETCHAR=1
24419 GNULIB_FGETS=1
24420 GNULIB_FREAD=1
24421
24422
24423 GNULIB_FPRINTF=1
24424 GNULIB_PRINTF=1
24425 GNULIB_VFPRINTF=1
24426 GNULIB_VPRINTF=1
24427 GNULIB_FPUTC=1
24428 GNULIB_PUTC=1
24429 GNULIB_PUTCHAR=1
24430 GNULIB_FPUTS=1
24431 GNULIB_PUTS=1
24432 GNULIB_FWRITE=1
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448 if test $gl_cv_have_include_next = yes; then
24449 gl_cv_next_stdlib_h='<'stdlib.h'>'
24450 else
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24452 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24453 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24454 $as_echo_n "(cached) " >&6
24455 else
24456
24457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24458 /* end confdefs.h. */
24459 #include <stdlib.h>
24460
24461 _ACEOF
24462 case "$host_os" in
24463 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24464 *) gl_absname_cpp="$ac_cpp" ;;
24465 esac
24466
24467 case "$host_os" in
24468 mingw*)
24469 gl_dirsep_regex='[/\\]'
24470 ;;
24471 *)
24472 gl_dirsep_regex='\/'
24473 ;;
24474 esac
24475 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24476
24477 gl_header_literal_regex=`echo 'stdlib.h' \
24478 | sed -e "$gl_make_literal_regex_sed"`
24479 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24480 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24481 s|^/[^/]|//&|
24482 p
24483 q
24484 }'
24485 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24486 sed -n "$gl_absolute_header_sed"`'"'
24487
24488
24489 fi
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24491 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24492 fi
24493 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24494
24495 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24496 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24497 gl_next_as_first_directive='<'stdlib.h'>'
24498 else
24499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24500 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24501 fi
24502 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24513
24514
24515
24516
24517
24518
24519
24520 $as_echo "#define my_strftime nstrftime" >>confdefs.h
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532 if test "$ac_cv_have_decl_strtoimax" != yes; then
24533 HAVE_DECL_STRTOIMAX=0
24534 fi
24535
24536 if test $ac_cv_func_strtoimax = yes; then
24537 HAVE_STRTOIMAX=1
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
24539 $as_echo_n "checking whether strtoimax works... " >&6; }
24540 if test "${gl_cv_func_strtoimax+set}" = set; then :
24541 $as_echo_n "(cached) " >&6
24542 else
24543 if test "$cross_compiling" = yes; then :
24544 case "$host_os" in
24545 # Guess no on AIX 5.
24546 aix5*) gl_cv_func_strtoimax="guessing no" ;;
24547 # Guess yes otherwise.
24548 *) gl_cv_func_strtoimax="guessing yes" ;;
24549 esac
24550
24551 else
24552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24553 /* end confdefs.h. */
24554
24555 #include <errno.h>
24556 #include <string.h>
24557 #include <inttypes.h>
24558 int main ()
24559 {
24560 if (sizeof (intmax_t) > sizeof (int))
24561 {
24562 const char *s = "4294967295";
24563 char *p;
24564 intmax_t res;
24565 errno = 0;
24566 res = strtoimax (s, &p, 10);
24567 if (p != s + strlen (s))
24568 return 1;
24569 if (errno != 0)
24570 return 2;
24571 if (res != (intmax_t) 65535 * (intmax_t) 65537)
24572 return 3;
24573 }
24574 else
24575 {
24576 const char *s = "2147483647";
24577 char *p;
24578 intmax_t res;
24579 errno = 0;
24580 res = strtoimax (s, &p, 10);
24581 if (p != s + strlen (s))
24582 return 1;
24583 if (errno != 0)
24584 return 2;
24585 if (res != 2147483647)
24586 return 3;
24587 }
24588 return 0;
24589 }
24590
24591 _ACEOF
24592 if ac_fn_c_try_run "$LINENO"; then :
24593 gl_cv_func_strtoimax=yes
24594 else
24595 gl_cv_func_strtoimax=no
24596 fi
24597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24598 conftest.$ac_objext conftest.beam conftest.$ac_ext
24599 fi
24600
24601
24602 fi
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
24604 $as_echo "$gl_cv_func_strtoimax" >&6; }
24605 case "$gl_cv_func_strtoimax" in
24606 *no) REPLACE_STRTOIMAX=1 ;;
24607 esac
24608 else
24609 HAVE_STRTOIMAX=0
24610 fi
24611
24612 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24613
24614
24615
24616
24617
24618
24619
24620
24621 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
24622
24623
24624 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24625 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
24626 ac_have_decl=1
24627 else
24628 ac_have_decl=0
24629 fi
24630
24631 cat >>confdefs.h <<_ACEOF
24632 #define HAVE_DECL_STRTOLL $ac_have_decl
24633 _ACEOF
24634
24635
24636
24637 fi
24638
24639
24640
24641
24642
24643 GNULIB_STRTOIMAX=1
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653 if test "$ac_cv_have_decl_strtoumax" != yes; then
24654 HAVE_DECL_STRTOUMAX=0
24655 fi
24656
24657 if test $ac_cv_func_strtoumax = no; then
24658
24659
24660
24661
24662
24663
24664
24665
24666 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
24667
24668
24669 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24670 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
24671 ac_have_decl=1
24672 else
24673 ac_have_decl=0
24674 fi
24675
24676 cat >>confdefs.h <<_ACEOF
24677 #define HAVE_DECL_STRTOULL $ac_have_decl
24678 _ACEOF
24679
24680
24681
24682 fi
24683
24684
24685
24686
24687
24688 GNULIB_STRTOUMAX=1
24689
24690
24691
24692
24693
24694
24695
24696 if test $ac_cv_func_symlink = no; then
24697 HAVE_SYMLINK=0
24698 else
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
24700 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
24701 if test "${gl_cv_func_symlink_works+set}" = set; then :
24702 $as_echo_n "(cached) " >&6
24703 else
24704 if test "$cross_compiling" = yes; then :
24705 case "$host_os" in
24706 # Guess yes on glibc systems.
24707 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
24708 # If we don't know, assume the worst.
24709 *) gl_cv_func_symlink_works="guessing no" ;;
24710 esac
24711
24712 else
24713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24714 /* end confdefs.h. */
24715 #include <unistd.h>
24716
24717 int
24718 main ()
24719 {
24720 int result = 0;
24721 if (!symlink ("a", "conftest.link/"))
24722 result |= 1;
24723 if (symlink ("conftest.f", "conftest.lnk2"))
24724 result |= 2;
24725 else if (!symlink ("a", "conftest.lnk2/"))
24726 result |= 4;
24727 return result;
24728
24729 ;
24730 return 0;
24731 }
24732 _ACEOF
24733 if ac_fn_c_try_run "$LINENO"; then :
24734 gl_cv_func_symlink_works=yes
24735 else
24736 gl_cv_func_symlink_works=no
24737 fi
24738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24739 conftest.$ac_objext conftest.beam conftest.$ac_ext
24740 fi
24741
24742 rm -f conftest.f conftest.link conftest.lnk2
24743 fi
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
24745 $as_echo "$gl_cv_func_symlink_works" >&6; }
24746 case "$gl_cv_func_symlink_works" in
24747 *yes) ;;
24748 *)
24749 REPLACE_SYMLINK=1
24750 ;;
24751 esac
24752 fi
24753
24754 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
24755
24756
24757
24758
24759
24760
24761
24762
24763 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
24764
24765 fi
24766
24767
24768
24769
24770
24771 GNULIB_SYMLINK=1
24772
24773
24774
24775
24776
24777
24778
24779
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
24781 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
24782 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
24783 $as_echo_n "(cached) " >&6
24784 else
24785
24786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24787 /* end confdefs.h. */
24788 #include <sys/select.h>
24789 int
24790 main ()
24791 {
24792 struct timeval b;
24793 ;
24794 return 0;
24795 }
24796 _ACEOF
24797 if ac_fn_c_try_compile "$LINENO"; then :
24798 gl_cv_header_sys_select_h_selfcontained=yes
24799 else
24800 gl_cv_header_sys_select_h_selfcontained=no
24801 fi
24802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24803 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
24804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24805 /* end confdefs.h. */
24806 #include <sys/select.h>
24807 int
24808 main ()
24809 {
24810 int memset; int bzero;
24811 ;
24812 return 0;
24813 }
24814
24815 _ACEOF
24816 if ac_fn_c_try_compile "$LINENO"; then :
24817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24818 /* end confdefs.h. */
24819 #include <sys/select.h>
24820 int
24821 main ()
24822 {
24823
24824 #undef memset
24825 #define memset nonexistent_memset
24826 extern
24827 #ifdef __cplusplus
24828 "C"
24829 #endif
24830 void *memset (void *, int, unsigned long);
24831 #undef bzero
24832 #define bzero nonexistent_bzero
24833 extern
24834 #ifdef __cplusplus
24835 "C"
24836 #endif
24837 void bzero (void *, unsigned long);
24838 fd_set fds;
24839 FD_ZERO (&fds);
24840
24841 ;
24842 return 0;
24843 }
24844
24845 _ACEOF
24846 if ac_fn_c_try_link "$LINENO"; then :
24847
24848 else
24849 gl_cv_header_sys_select_h_selfcontained=no
24850 fi
24851 rm -f core conftest.err conftest.$ac_objext \
24852 conftest$ac_exeext conftest.$ac_ext
24853
24854 fi
24855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24856 fi
24857
24858 fi
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24860 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870 if test $gl_cv_have_include_next = yes; then
24871 gl_cv_next_sys_select_h='<'sys/select.h'>'
24872 else
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24874 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24875 if test "${gl_cv_next_sys_select_h+set}" = set; then :
24876 $as_echo_n "(cached) " >&6
24877 else
24878
24879 if test $ac_cv_header_sys_select_h = yes; then
24880
24881
24882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24883 /* end confdefs.h. */
24884 #include <sys/select.h>
24885
24886 _ACEOF
24887 case "$host_os" in
24888 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24889 *) gl_absname_cpp="$ac_cpp" ;;
24890 esac
24891
24892 case "$host_os" in
24893 mingw*)
24894 gl_dirsep_regex='[/\\]'
24895 ;;
24896 *)
24897 gl_dirsep_regex='\/'
24898 ;;
24899 esac
24900 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24901
24902 gl_header_literal_regex=`echo 'sys/select.h' \
24903 | sed -e "$gl_make_literal_regex_sed"`
24904 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24905 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24906 s|^/[^/]|//&|
24907 p
24908 q
24909 }'
24910 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24911 sed -n "$gl_absolute_header_sed"`'"'
24912 else
24913 gl_cv_next_sys_select_h='<'sys/select.h'>'
24914 fi
24915
24916
24917 fi
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24919 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24920 fi
24921 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
24922
24923 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24925 gl_next_as_first_directive='<'sys/select.h'>'
24926 else
24927 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24928 gl_next_as_first_directive=$gl_cv_next_sys_select_h
24929 fi
24930 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
24931
24932
24933
24934
24935 if test $ac_cv_header_sys_select_h = yes; then
24936 HAVE_SYS_SELECT_H=1
24937 else
24938 HAVE_SYS_SELECT_H=0
24939 fi
24940
24941
24942
24943
24944
24945 if test $ac_cv_header_sys_socket_h != yes; then
24946 for ac_header in winsock2.h
24947 do :
24948 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24949 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
24950 cat >>confdefs.h <<_ACEOF
24951 #define HAVE_WINSOCK2_H 1
24952 _ACEOF
24953
24954 fi
24955
24956 done
24957
24958 fi
24959 if test "$ac_cv_header_winsock2_h" = yes; then
24960 HAVE_WINSOCK2_H=1
24961 UNISTD_H_HAVE_WINSOCK2_H=1
24962 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24963 else
24964 HAVE_WINSOCK2_H=0
24965 fi
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986 if test $gl_cv_have_include_next = yes; then
24987 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24988 else
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24990 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24991 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
24992 $as_echo_n "(cached) " >&6
24993 else
24994
24995 if test $ac_cv_header_sys_stat_h = yes; then
24996
24997
24998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24999 /* end confdefs.h. */
25000 #include <sys/stat.h>
25001
25002 _ACEOF
25003 case "$host_os" in
25004 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25005 *) gl_absname_cpp="$ac_cpp" ;;
25006 esac
25007
25008 case "$host_os" in
25009 mingw*)
25010 gl_dirsep_regex='[/\\]'
25011 ;;
25012 *)
25013 gl_dirsep_regex='\/'
25014 ;;
25015 esac
25016 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25017
25018 gl_header_literal_regex=`echo 'sys/stat.h' \
25019 | sed -e "$gl_make_literal_regex_sed"`
25020 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25021 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25022 s|^/[^/]|//&|
25023 p
25024 q
25025 }'
25026 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25027 sed -n "$gl_absolute_header_sed"`'"'
25028 else
25029 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25030 fi
25031
25032
25033 fi
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
25035 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
25036 fi
25037 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
25038
25039 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25040 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25041 gl_next_as_first_directive='<'sys/stat.h'>'
25042 else
25043 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25044 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
25045 fi
25046 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25059
25060 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25061
25062 fi
25063
25064 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25065 #include <sys/stat.h>
25066 "
25067 if test "x$ac_cv_type_nlink_t" = x""yes; then :
25068
25069 else
25070
25071 $as_echo "#define nlink_t int" >>confdefs.h
25072
25073 fi
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
25093 "
25094 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
25095 ac_have_decl=1
25096 else
25097 ac_have_decl=0
25098 fi
25099
25100 cat >>confdefs.h <<_ACEOF
25101 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
25102 _ACEOF
25103
25104 if test $ac_cv_have_decl_localtime_r = no; then
25105 HAVE_DECL_LOCALTIME_R=0
25106 fi
25107
25108
25109 if test $ac_cv_func_localtime_r = yes; then
25110 HAVE_LOCALTIME_R=1
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
25112 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
25113 if test "${gl_cv_time_r_posix+set}" = set; then :
25114 $as_echo_n "(cached) " >&6
25115 else
25116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25117 /* end confdefs.h. */
25118 #include <time.h>
25119 int
25120 main ()
25121 {
25122 /* We don't need to append 'restrict's to the argument types,
25123 even though the POSIX signature has the 'restrict's,
25124 since C99 says they can't affect type compatibility. */
25125 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
25126 if (ptr) return 0;
25127 /* Check the return type is a pointer.
25128 On HP-UX 10 it is 'int'. */
25129 *localtime_r (0, 0);
25130 ;
25131 return 0;
25132 }
25133
25134 _ACEOF
25135 if ac_fn_c_try_compile "$LINENO"; then :
25136 gl_cv_time_r_posix=yes
25137 else
25138 gl_cv_time_r_posix=no
25139 fi
25140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25141
25142 fi
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
25144 $as_echo "$gl_cv_time_r_posix" >&6; }
25145 if test $gl_cv_time_r_posix = yes; then
25146 REPLACE_LOCALTIME_R=0
25147 else
25148 REPLACE_LOCALTIME_R=1
25149 fi
25150 else
25151 HAVE_LOCALTIME_R=0
25152 fi
25153
25154 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
25155
25156
25157
25158
25159
25160
25161
25162
25163 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
25164
25165
25166 :
25167
25168 fi
25169
25170
25171
25172
25173
25174 GNULIB_TIME_R=1
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185 LIB_TIMER_TIME=
25186
25187 gl_saved_libs=$LIBS
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
25189 $as_echo_n "checking for library containing timer_settime... " >&6; }
25190 if test "${ac_cv_search_timer_settime+set}" = set; then :
25191 $as_echo_n "(cached) " >&6
25192 else
25193 ac_func_search_save_LIBS=$LIBS
25194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h. */
25196
25197 /* Override any GCC internal prototype to avoid an error.
25198 Use char because int might match the return type of a GCC
25199 builtin and then its argument prototype would still apply. */
25200 #ifdef __cplusplus
25201 extern "C"
25202 #endif
25203 char timer_settime ();
25204 int
25205 main ()
25206 {
25207 return timer_settime ();
25208 ;
25209 return 0;
25210 }
25211 _ACEOF
25212 for ac_lib in '' rt posix4; do
25213 if test -z "$ac_lib"; then
25214 ac_res="none required"
25215 else
25216 ac_res=-l$ac_lib
25217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25218 fi
25219 if ac_fn_c_try_link "$LINENO"; then :
25220 ac_cv_search_timer_settime=$ac_res
25221 fi
25222 rm -f core conftest.err conftest.$ac_objext \
25223 conftest$ac_exeext
25224 if test "${ac_cv_search_timer_settime+set}" = set; then :
25225 break
25226 fi
25227 done
25228 if test "${ac_cv_search_timer_settime+set}" = set; then :
25229
25230 else
25231 ac_cv_search_timer_settime=no
25232 fi
25233 rm conftest.$ac_ext
25234 LIBS=$ac_func_search_save_LIBS
25235 fi
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
25237 $as_echo "$ac_cv_search_timer_settime" >&6; }
25238 ac_res=$ac_cv_search_timer_settime
25239 if test "$ac_res" != no; then :
25240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25241 test "$ac_cv_search_timer_settime" = "none required" ||
25242 LIB_TIMER_TIME=$ac_cv_search_timer_settime
25243 fi
25244
25245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25246 /* end confdefs.h. */
25247
25248 #include <features.h>
25249 #ifdef __GNU_LIBRARY__
25250 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
25251 && !defined __UCLIBC__
25252 Thread emulation available
25253 #endif
25254 #endif
25255
25256 _ACEOF
25257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25258 $EGREP "Thread" >/dev/null 2>&1; then :
25259 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
25260 fi
25261 rm -f conftest*
25262
25263 for ac_func in timer_settime
25264 do :
25265 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
25266 if test "x$ac_cv_func_timer_settime" = x""yes; then :
25267 cat >>confdefs.h <<_ACEOF
25268 #define HAVE_TIMER_SETTIME 1
25269 _ACEOF
25270
25271 fi
25272 done
25273
25274 LIBS=$gl_saved_libs
25275
25276 :
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289 if test $gl_cv_have_include_next = yes; then
25290 gl_cv_next_unistd_h='<'unistd.h'>'
25291 else
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25293 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25294 if test "${gl_cv_next_unistd_h+set}" = set; then :
25295 $as_echo_n "(cached) " >&6
25296 else
25297
25298 if test $ac_cv_header_unistd_h = yes; then
25299
25300
25301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25302 /* end confdefs.h. */
25303 #include <unistd.h>
25304
25305 _ACEOF
25306 case "$host_os" in
25307 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25308 *) gl_absname_cpp="$ac_cpp" ;;
25309 esac
25310
25311 case "$host_os" in
25312 mingw*)
25313 gl_dirsep_regex='[/\\]'
25314 ;;
25315 *)
25316 gl_dirsep_regex='\/'
25317 ;;
25318 esac
25319 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25320
25321 gl_header_literal_regex=`echo 'unistd.h' \
25322 | sed -e "$gl_make_literal_regex_sed"`
25323 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25324 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25325 s|^/[^/]|//&|
25326 p
25327 q
25328 }'
25329 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25330 sed -n "$gl_absolute_header_sed"`'"'
25331 else
25332 gl_cv_next_unistd_h='<'unistd.h'>'
25333 fi
25334
25335
25336 fi
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25338 $as_echo "$gl_cv_next_unistd_h" >&6; }
25339 fi
25340 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25341
25342 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25343 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25344 gl_next_as_first_directive='<'unistd.h'>'
25345 else
25346 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25347 gl_next_as_first_directive=$gl_cv_next_unistd_h
25348 fi
25349 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25350
25351
25352
25353
25354 if test $ac_cv_header_unistd_h = yes; then
25355 HAVE_UNISTD_H=1
25356 else
25357 HAVE_UNISTD_H=0
25358 fi
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370 if test $ac_cv_have_decl_unsetenv = no; then
25371 HAVE_DECL_UNSETENV=0
25372 fi
25373 for ac_func in unsetenv
25374 do :
25375 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25376 if test "x$ac_cv_func_unsetenv" = x""yes; then :
25377 cat >>confdefs.h <<_ACEOF
25378 #define HAVE_UNSETENV 1
25379 _ACEOF
25380
25381 fi
25382 done
25383
25384 if test $ac_cv_func_unsetenv = no; then
25385 HAVE_UNSETENV=0
25386 else
25387 HAVE_UNSETENV=1
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25389 $as_echo_n "checking for unsetenv() return type... " >&6; }
25390 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
25391 $as_echo_n "(cached) " >&6
25392 else
25393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25394 /* end confdefs.h. */
25395
25396 #undef _BSD
25397 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25398 #include <stdlib.h>
25399 extern
25400 #ifdef __cplusplus
25401 "C"
25402 #endif
25403 int unsetenv (const char *name);
25404
25405 int
25406 main ()
25407 {
25408
25409 ;
25410 return 0;
25411 }
25412 _ACEOF
25413 if ac_fn_c_try_compile "$LINENO"; then :
25414 gt_cv_func_unsetenv_ret='int'
25415 else
25416 gt_cv_func_unsetenv_ret='void'
25417 fi
25418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25419 fi
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25421 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25422 if test $gt_cv_func_unsetenv_ret = 'void'; then
25423
25424 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25425
25426 REPLACE_UNSETENV=1
25427 fi
25428
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25430 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25431 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
25432 $as_echo_n "(cached) " >&6
25433 else
25434 if test "$cross_compiling" = yes; then :
25435 case "$host_os" in
25436 # Guess yes on glibc systems.
25437 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25438 # If we don't know, assume the worst.
25439 *) gl_cv_func_unsetenv_works="guessing no" ;;
25440 esac
25441
25442 else
25443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25444 /* end confdefs.h. */
25445
25446 #include <stdlib.h>
25447 #include <errno.h>
25448 extern char **environ;
25449
25450 int
25451 main ()
25452 {
25453
25454 char entry1[] = "a=1";
25455 char entry2[] = "b=2";
25456 char *env[] = { entry1, entry2, NULL };
25457 if (putenv ((char *) "a=1")) return 1;
25458 if (putenv (entry2)) return 2;
25459 entry2[0] = 'a';
25460 unsetenv ("a");
25461 if (getenv ("a")) return 3;
25462 if (!unsetenv ("") || errno != EINVAL) return 4;
25463 entry2[0] = 'b';
25464 environ = env;
25465 if (!getenv ("a")) return 5;
25466 entry2[0] = 'a';
25467 unsetenv ("a");
25468 if (getenv ("a")) return 6;
25469
25470 ;
25471 return 0;
25472 }
25473 _ACEOF
25474 if ac_fn_c_try_run "$LINENO"; then :
25475 gl_cv_func_unsetenv_works=yes
25476 else
25477 gl_cv_func_unsetenv_works=no
25478 fi
25479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25480 conftest.$ac_objext conftest.beam conftest.$ac_ext
25481 fi
25482
25483 fi
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25485 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25486 case "$gl_cv_func_unsetenv_works" in
25487 *yes) ;;
25488 *)
25489 REPLACE_UNSETENV=1
25490 ;;
25491 esac
25492 fi
25493
25494 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25495
25496
25497
25498
25499
25500
25501
25502
25503 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25504
25505
25506
25507
25508
25509 fi
25510
25511
25512
25513
25514
25515 GNULIB_UNSETENV=1
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
25529 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
25530 if test "${gl_cv_func_futimesat_works+set}" = set; then :
25531 $as_echo_n "(cached) " >&6
25532 else
25533 touch conftest.file
25534 if test "$cross_compiling" = yes; then :
25535 case "$host_os" in
25536 # Guess yes on glibc systems.
25537 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
25538 # If we don't know, assume the worst.
25539 *) gl_cv_func_futimesat_works="guessing no" ;;
25540 esac
25541
25542 else
25543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25544 /* end confdefs.h. */
25545
25546 #include <stddef.h>
25547 #include <sys/times.h>
25548 #include <fcntl.h>
25549
25550 int
25551 main ()
25552 {
25553 int fd = open ("conftest.file", O_RDWR);
25554 if (fd < 0) return 1;
25555 if (futimesat (fd, NULL, NULL)) return 2;
25556
25557 ;
25558 return 0;
25559 }
25560 _ACEOF
25561 if ac_fn_c_try_run "$LINENO"; then :
25562 gl_cv_func_futimesat_works=yes
25563 else
25564 gl_cv_func_futimesat_works=no
25565 fi
25566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25567 conftest.$ac_objext conftest.beam conftest.$ac_ext
25568 fi
25569
25570 rm -f conftest.file
25571 fi
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
25573 $as_echo "$gl_cv_func_futimesat_works" >&6; }
25574 case "$gl_cv_func_futimesat_works" in
25575 *yes) ;;
25576 *)
25577
25578 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
25579
25580 ;;
25581 esac
25582 fi
25583
25584 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
25585 gl_gnulib_enabled_dosname=false
25586 gl_gnulib_enabled_euidaccess=false
25587 gl_gnulib_enabled_getgroups=false
25588 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
25589 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
25590 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
25591 gl_gnulib_enabled_pathmax=false
25592 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
25593 gl_gnulib_enabled_stat=false
25594 gl_gnulib_enabled_strtoll=false
25595 gl_gnulib_enabled_strtoull=false
25596 gl_gnulib_enabled_verify=false
25597 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
25598 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
25599 {
25600 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
25601
25602
25603
25604
25605
25606
25607
25608
25609 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
25610
25611 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
25612 fi
25613 }
25614 func_gl_gnulib_m4code_dosname ()
25615 {
25616 if ! $gl_gnulib_enabled_dosname; then
25617 gl_gnulib_enabled_dosname=true
25618 fi
25619 }
25620 func_gl_gnulib_m4code_euidaccess ()
25621 {
25622 if ! $gl_gnulib_enabled_euidaccess; then
25623
25624
25625
25626
25627
25628 for ac_func in euidaccess
25629 do :
25630 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
25631 if test "x$ac_cv_func_euidaccess" = x""yes; then :
25632 cat >>confdefs.h <<_ACEOF
25633 #define HAVE_EUIDACCESS 1
25634 _ACEOF
25635
25636 fi
25637 done
25638
25639 if test $ac_cv_func_euidaccess = no; then
25640 HAVE_EUIDACCESS=0
25641 fi
25642
25643 if test $HAVE_EUIDACCESS = 0; then
25644
25645
25646
25647
25648
25649
25650
25651
25652 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
25653
25654
25655
25656 for ac_header in libgen.h
25657 do :
25658 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
25659 if test "x$ac_cv_header_libgen_h" = x""yes; then :
25660 cat >>confdefs.h <<_ACEOF
25661 #define HAVE_LIBGEN_H 1
25662 _ACEOF
25663
25664 fi
25665
25666 done
25667
25668
25669 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25670 if test "x$ac_cv_func_getgroups" = x""yes; then :
25671
25672 fi
25673
25674
25675 # If we don't yet have getgroups, see if it's in -lbsd.
25676 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25677 ac_save_LIBS=$LIBS
25678 if test $ac_cv_func_getgroups = no; then
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25680 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25681 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25682 $as_echo_n "(cached) " >&6
25683 else
25684 ac_check_lib_save_LIBS=$LIBS
25685 LIBS="-lbsd $LIBS"
25686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25687 /* end confdefs.h. */
25688
25689 /* Override any GCC internal prototype to avoid an error.
25690 Use char because int might match the return type of a GCC
25691 builtin and then its argument prototype would still apply. */
25692 #ifdef __cplusplus
25693 extern "C"
25694 #endif
25695 char getgroups ();
25696 int
25697 main ()
25698 {
25699 return getgroups ();
25700 ;
25701 return 0;
25702 }
25703 _ACEOF
25704 if ac_fn_c_try_link "$LINENO"; then :
25705 ac_cv_lib_bsd_getgroups=yes
25706 else
25707 ac_cv_lib_bsd_getgroups=no
25708 fi
25709 rm -f core conftest.err conftest.$ac_objext \
25710 conftest$ac_exeext conftest.$ac_ext
25711 LIBS=$ac_check_lib_save_LIBS
25712 fi
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25714 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25715 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25716 GETGROUPS_LIB=-lbsd
25717 fi
25718
25719 fi
25720
25721 # Run the program to test the functionality of the system-supplied
25722 # getgroups function only if there is such a function.
25723 if test $ac_cv_func_getgroups = yes; then
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25725 $as_echo_n "checking for working getgroups... " >&6; }
25726 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25727 $as_echo_n "(cached) " >&6
25728 else
25729 if test "$cross_compiling" = yes; then :
25730 case "$host_os" in # ((
25731 # Guess yes on glibc systems.
25732 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25733 # If we don't know, assume the worst.
25734 *) ac_cv_func_getgroups_works="guessing no" ;;
25735 esac
25736
25737 else
25738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h. */
25740 $ac_includes_default
25741 int
25742 main ()
25743 {
25744 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25745 return getgroups (0, 0) == -1;
25746 ;
25747 return 0;
25748 }
25749
25750 _ACEOF
25751 if ac_fn_c_try_run "$LINENO"; then :
25752 ac_cv_func_getgroups_works=yes
25753 else
25754 ac_cv_func_getgroups_works=no
25755 fi
25756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25757 conftest.$ac_objext conftest.beam conftest.$ac_ext
25758 fi
25759
25760
25761 fi
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25763 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25764 else
25765 ac_cv_func_getgroups_works=no
25766 fi
25767 case "$ac_cv_func_getgroups_works" in
25768 *yes)
25769
25770 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25771
25772 ;;
25773 esac
25774 LIBS=$ac_save_LIBS
25775
25776
25777 # Solaris 9 and 10 need -lgen to get the eaccess function.
25778 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
25779 # programs in the package would end up linked with that potentially-shared
25780 # library, inducing unnecessary run-time overhead.
25781 LIB_EACCESS=
25782
25783 gl_saved_libs=$LIBS
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
25785 $as_echo_n "checking for library containing eaccess... " >&6; }
25786 if test "${ac_cv_search_eaccess+set}" = set; then :
25787 $as_echo_n "(cached) " >&6
25788 else
25789 ac_func_search_save_LIBS=$LIBS
25790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25791 /* end confdefs.h. */
25792
25793 /* Override any GCC internal prototype to avoid an error.
25794 Use char because int might match the return type of a GCC
25795 builtin and then its argument prototype would still apply. */
25796 #ifdef __cplusplus
25797 extern "C"
25798 #endif
25799 char eaccess ();
25800 int
25801 main ()
25802 {
25803 return eaccess ();
25804 ;
25805 return 0;
25806 }
25807 _ACEOF
25808 for ac_lib in '' gen; do
25809 if test -z "$ac_lib"; then
25810 ac_res="none required"
25811 else
25812 ac_res=-l$ac_lib
25813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25814 fi
25815 if ac_fn_c_try_link "$LINENO"; then :
25816 ac_cv_search_eaccess=$ac_res
25817 fi
25818 rm -f core conftest.err conftest.$ac_objext \
25819 conftest$ac_exeext
25820 if test "${ac_cv_search_eaccess+set}" = set; then :
25821 break
25822 fi
25823 done
25824 if test "${ac_cv_search_eaccess+set}" = set; then :
25825
25826 else
25827 ac_cv_search_eaccess=no
25828 fi
25829 rm conftest.$ac_ext
25830 LIBS=$ac_func_search_save_LIBS
25831 fi
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
25833 $as_echo "$ac_cv_search_eaccess" >&6; }
25834 ac_res=$ac_cv_search_eaccess
25835 if test "$ac_res" != no; then :
25836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25837 test "$ac_cv_search_eaccess" = "none required" ||
25838 LIB_EACCESS=$ac_cv_search_eaccess
25839 fi
25840
25841 for ac_func in eaccess
25842 do :
25843 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
25844 if test "x$ac_cv_func_eaccess" = x""yes; then :
25845 cat >>confdefs.h <<_ACEOF
25846 #define HAVE_EACCESS 1
25847 _ACEOF
25848
25849 fi
25850 done
25851
25852 LIBS=$gl_saved_libs
25853
25854 fi
25855
25856
25857
25858
25859
25860 GNULIB_EUIDACCESS=1
25861
25862
25863
25864
25865
25866 gl_gnulib_enabled_euidaccess=true
25867 if test $HAVE_EUIDACCESS = 0; then
25868 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
25869 fi
25870 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
25871 if test $HAVE_EUIDACCESS = 0; then
25872 func_gl_gnulib_m4code_stat
25873 fi
25874 fi
25875 }
25876 func_gl_gnulib_m4code_getgroups ()
25877 {
25878 if ! $gl_gnulib_enabled_getgroups; then
25879
25880
25881
25882
25883
25884 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25885 if test "x$ac_cv_func_getgroups" = x""yes; then :
25886
25887 fi
25888
25889
25890 # If we don't yet have getgroups, see if it's in -lbsd.
25891 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25892 ac_save_LIBS=$LIBS
25893 if test $ac_cv_func_getgroups = no; then
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25895 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25896 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25897 $as_echo_n "(cached) " >&6
25898 else
25899 ac_check_lib_save_LIBS=$LIBS
25900 LIBS="-lbsd $LIBS"
25901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25902 /* end confdefs.h. */
25903
25904 /* Override any GCC internal prototype to avoid an error.
25905 Use char because int might match the return type of a GCC
25906 builtin and then its argument prototype would still apply. */
25907 #ifdef __cplusplus
25908 extern "C"
25909 #endif
25910 char getgroups ();
25911 int
25912 main ()
25913 {
25914 return getgroups ();
25915 ;
25916 return 0;
25917 }
25918 _ACEOF
25919 if ac_fn_c_try_link "$LINENO"; then :
25920 ac_cv_lib_bsd_getgroups=yes
25921 else
25922 ac_cv_lib_bsd_getgroups=no
25923 fi
25924 rm -f core conftest.err conftest.$ac_objext \
25925 conftest$ac_exeext conftest.$ac_ext
25926 LIBS=$ac_check_lib_save_LIBS
25927 fi
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25929 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25930 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25931 GETGROUPS_LIB=-lbsd
25932 fi
25933
25934 fi
25935
25936 # Run the program to test the functionality of the system-supplied
25937 # getgroups function only if there is such a function.
25938 if test $ac_cv_func_getgroups = yes; then
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25940 $as_echo_n "checking for working getgroups... " >&6; }
25941 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25942 $as_echo_n "(cached) " >&6
25943 else
25944 if test "$cross_compiling" = yes; then :
25945 case "$host_os" in # ((
25946 # Guess yes on glibc systems.
25947 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25948 # If we don't know, assume the worst.
25949 *) ac_cv_func_getgroups_works="guessing no" ;;
25950 esac
25951
25952 else
25953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h. */
25955 $ac_includes_default
25956 int
25957 main ()
25958 {
25959 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25960 return getgroups (0, 0) == -1;
25961 ;
25962 return 0;
25963 }
25964
25965 _ACEOF
25966 if ac_fn_c_try_run "$LINENO"; then :
25967 ac_cv_func_getgroups_works=yes
25968 else
25969 ac_cv_func_getgroups_works=no
25970 fi
25971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25972 conftest.$ac_objext conftest.beam conftest.$ac_ext
25973 fi
25974
25975
25976 fi
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25978 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25979 else
25980 ac_cv_func_getgroups_works=no
25981 fi
25982 case "$ac_cv_func_getgroups_works" in
25983 *yes)
25984
25985 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25986
25987 ;;
25988 esac
25989 LIBS=$ac_save_LIBS
25990
25991 if test $ac_cv_func_getgroups != yes; then
25992 HAVE_GETGROUPS=0
25993 else
25994 if test "$ac_cv_type_getgroups" != gid_t \
25995 || { case "$ac_cv_func_getgroups_works" in
25996 *yes) false;;
25997 *) true;;
25998 esac
25999 }; then
26000 REPLACE_GETGROUPS=1
26001
26002 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
26003
26004 else
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
26006 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
26007 if test "${gl_cv_func_getgroups_works+set}" = set; then :
26008 $as_echo_n "(cached) " >&6
26009 else
26010 if test "$cross_compiling" = yes; then :
26011 case "$host_os" in
26012 # Guess yes on glibc systems.
26013 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
26014 # If we don't know, assume the worst.
26015 *) gl_cv_func_getgroups_works="guessing no" ;;
26016 esac
26017
26018 else
26019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26020 /* end confdefs.h. */
26021 $ac_includes_default
26022 int
26023 main ()
26024 {
26025 int size = getgroups (0, 0);
26026 gid_t *list = malloc (size * sizeof *list);
26027 return getgroups (-1, list) != -1;
26028 ;
26029 return 0;
26030 }
26031 _ACEOF
26032 if ac_fn_c_try_run "$LINENO"; then :
26033 gl_cv_func_getgroups_works=yes
26034 else
26035 gl_cv_func_getgroups_works=no
26036 fi
26037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26038 conftest.$ac_objext conftest.beam conftest.$ac_ext
26039 fi
26040
26041 fi
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
26043 $as_echo "$gl_cv_func_getgroups_works" >&6; }
26044 case "$gl_cv_func_getgroups_works" in
26045 *yes) ;;
26046 *) REPLACE_GETGROUPS=1 ;;
26047 esac
26048 fi
26049 fi
26050 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
26051
26052 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
26053
26054
26055
26056
26057
26058
26059
26060
26061 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
26062
26063 fi
26064
26065
26066
26067
26068
26069 GNULIB_GETGROUPS=1
26070
26071
26072
26073
26074
26075 gl_gnulib_enabled_getgroups=true
26076 fi
26077 }
26078 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
26079 {
26080 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26081
26082
26083 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
26084 fi
26085 }
26086 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
26087 {
26088 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26089
26090
26091
26092
26093
26094 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
26095 if test "x$ac_cv_func_group_member" = x""yes; then :
26096
26097 else
26098
26099 HAVE_GROUP_MEMBER=0
26100
26101 fi
26102
26103
26104 if test $HAVE_GROUP_MEMBER = 0; then
26105
26106
26107
26108
26109
26110
26111
26112
26113 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
26114
26115
26116
26117
26118 fi
26119
26120
26121
26122
26123
26124 GNULIB_GROUP_MEMBER=1
26125
26126
26127
26128
26129
26130 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
26131 if test $HAVE_GROUP_MEMBER = 0; then
26132 func_gl_gnulib_m4code_getgroups
26133 fi
26134 if test $HAVE_GROUP_MEMBER = 0; then
26135 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
26136 fi
26137 fi
26138 }
26139 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
26140 {
26141 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26142 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
26143 fi
26144 }
26145 func_gl_gnulib_m4code_pathmax ()
26146 {
26147 if ! $gl_gnulib_enabled_pathmax; then
26148
26149
26150
26151 gl_gnulib_enabled_pathmax=true
26152 fi
26153 }
26154 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
26155 {
26156 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26157 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
26158 fi
26159 }
26160 func_gl_gnulib_m4code_stat ()
26161 {
26162 if ! $gl_gnulib_enabled_stat; then
26163
26164
26165
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
26167 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
26168 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
26169 $as_echo_n "(cached) " >&6
26170 else
26171 if test "$cross_compiling" = yes; then :
26172 case $host_os in
26173 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
26174 *) gl_cv_func_stat_dir_slash="guessing yes";;
26175 esac
26176 else
26177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26178 /* end confdefs.h. */
26179 #include <sys/stat.h>
26180
26181 int
26182 main ()
26183 {
26184 struct stat st; return stat (".", &st) != stat ("./", &st);
26185 ;
26186 return 0;
26187 }
26188 _ACEOF
26189 if ac_fn_c_try_run "$LINENO"; then :
26190 gl_cv_func_stat_dir_slash=yes
26191 else
26192 gl_cv_func_stat_dir_slash=no
26193 fi
26194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26195 conftest.$ac_objext conftest.beam conftest.$ac_ext
26196 fi
26197
26198 fi
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
26200 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
26202 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
26203 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
26204 $as_echo_n "(cached) " >&6
26205 else
26206 touch conftest.tmp
26207 # Assume that if we have lstat, we can also check symlinks.
26208 if test $ac_cv_func_lstat = yes; then
26209 ln -s conftest.tmp conftest.lnk
26210 fi
26211 if test "$cross_compiling" = yes; then :
26212 case "$host_os" in
26213 # Guess yes on glibc systems.
26214 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
26215 # If we don't know, assume the worst.
26216 *) gl_cv_func_stat_file_slash="guessing no" ;;
26217 esac
26218
26219 else
26220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26221 /* end confdefs.h. */
26222 #include <sys/stat.h>
26223
26224 int
26225 main ()
26226 {
26227 int result = 0;
26228 struct stat st;
26229 if (!stat ("conftest.tmp/", &st))
26230 result |= 1;
26231 #if HAVE_LSTAT
26232 if (!stat ("conftest.lnk/", &st))
26233 result |= 2;
26234 #endif
26235 return result;
26236
26237 ;
26238 return 0;
26239 }
26240 _ACEOF
26241 if ac_fn_c_try_run "$LINENO"; then :
26242 gl_cv_func_stat_file_slash=yes
26243 else
26244 gl_cv_func_stat_file_slash=no
26245 fi
26246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26247 conftest.$ac_objext conftest.beam conftest.$ac_ext
26248 fi
26249
26250 rm -f conftest.tmp conftest.lnk
26251 fi
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
26253 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
26254 case $gl_cv_func_stat_dir_slash in
26255 *no) REPLACE_STAT=1
26256
26257 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
26258 ;;
26259 esac
26260 case $gl_cv_func_stat_file_slash in
26261 *no) REPLACE_STAT=1
26262
26263 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
26264 ;;
26265 esac
26266
26267 if test $REPLACE_STAT = 1; then
26268
26269
26270
26271
26272
26273
26274
26275
26276 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
26277
26278 :
26279 fi
26280
26281
26282
26283
26284
26285 GNULIB_STAT=1
26286
26287
26288
26289
26290
26291 gl_gnulib_enabled_stat=true
26292 if test $REPLACE_STAT = 1; then
26293 func_gl_gnulib_m4code_dosname
26294 fi
26295 if test $REPLACE_STAT = 1; then
26296 func_gl_gnulib_m4code_pathmax
26297 fi
26298 if test $REPLACE_STAT = 1; then
26299 func_gl_gnulib_m4code_verify
26300 fi
26301 fi
26302 }
26303 func_gl_gnulib_m4code_strtoll ()
26304 {
26305 if ! $gl_gnulib_enabled_strtoll; then
26306
26307
26308
26309 if test "$ac_cv_type_long_long_int" = yes; then
26310 for ac_func in strtoll
26311 do :
26312 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
26313 if test "x$ac_cv_func_strtoll" = x""yes; then :
26314 cat >>confdefs.h <<_ACEOF
26315 #define HAVE_STRTOLL 1
26316 _ACEOF
26317
26318 fi
26319 done
26320
26321 if test $ac_cv_func_strtoll = no; then
26322 HAVE_STRTOLL=0
26323 fi
26324 fi
26325
26326 if test $HAVE_STRTOLL = 0; then
26327
26328
26329
26330
26331
26332
26333
26334
26335 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
26336
26337
26338 :
26339
26340 fi
26341
26342
26343
26344
26345
26346 GNULIB_STRTOLL=1
26347
26348
26349
26350
26351
26352 gl_gnulib_enabled_strtoll=true
26353 fi
26354 }
26355 func_gl_gnulib_m4code_strtoull ()
26356 {
26357 if ! $gl_gnulib_enabled_strtoull; then
26358
26359
26360
26361 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
26362 for ac_func in strtoull
26363 do :
26364 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
26365 if test "x$ac_cv_func_strtoull" = x""yes; then :
26366 cat >>confdefs.h <<_ACEOF
26367 #define HAVE_STRTOULL 1
26368 _ACEOF
26369
26370 fi
26371 done
26372
26373 if test $ac_cv_func_strtoull = no; then
26374 HAVE_STRTOULL=0
26375 fi
26376 fi
26377
26378 if test $HAVE_STRTOULL = 0; then
26379
26380
26381
26382
26383
26384
26385
26386
26387 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
26388
26389
26390 :
26391
26392 fi
26393
26394
26395
26396
26397
26398 GNULIB_STRTOULL=1
26399
26400
26401
26402
26403
26404 gl_gnulib_enabled_strtoull=true
26405 fi
26406 }
26407 func_gl_gnulib_m4code_verify ()
26408 {
26409 if ! $gl_gnulib_enabled_verify; then
26410 gl_gnulib_enabled_verify=true
26411 fi
26412 }
26413 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
26414 {
26415 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26416 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
26417 fi
26418 }
26419 if test $HAVE_FACCESSAT = 0; then
26420 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26421 fi
26422 if test $HAVE_FACCESSAT = 0; then
26423 func_gl_gnulib_m4code_dosname
26424 fi
26425 if test $HAVE_FACCESSAT = 0; then
26426 func_gl_gnulib_m4code_euidaccess
26427 fi
26428 if test $HAVE_FACCESSAT = 0; then
26429 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26430 fi
26431 if test $HAVE_FDOPENDIR = 0; then
26432 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26433 fi
26434 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26435 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26436 fi
26437 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26438 func_gl_gnulib_m4code_dosname
26439 fi
26440 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26441 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26442 fi
26443 if test $REPLACE_GETOPT = 1; then
26444 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
26445 fi
26446 if test $REPLACE_LSTAT = 1; then
26447 func_gl_gnulib_m4code_dosname
26448 fi
26449 if test $REPLACE_LSTAT = 1; then
26450 func_gl_gnulib_m4code_stat
26451 fi
26452 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
26453 func_gl_gnulib_m4code_stat
26454 fi
26455 if test $HAVE_READLINKAT = 0; then
26456 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26457 fi
26458 if test $HAVE_READLINKAT = 0; then
26459 func_gl_gnulib_m4code_dosname
26460 fi
26461 if test $HAVE_READLINKAT = 0; then
26462 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26463 fi
26464 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
26465 func_gl_gnulib_m4code_strtoll
26466 fi
26467 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26468 func_gl_gnulib_m4code_verify
26469 fi
26470 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
26471 func_gl_gnulib_m4code_strtoull
26472 fi
26473 if test $ac_cv_func_strtoumax = no; then
26474 func_gl_gnulib_m4code_verify
26475 fi
26476
26477 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26478 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
26479 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
26480 else
26481 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
26482 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
26483 fi
26484
26485 if $gl_gnulib_enabled_dosname; then
26486 gl_GNULIB_ENABLED_dosname_TRUE=
26487 gl_GNULIB_ENABLED_dosname_FALSE='#'
26488 else
26489 gl_GNULIB_ENABLED_dosname_TRUE='#'
26490 gl_GNULIB_ENABLED_dosname_FALSE=
26491 fi
26492
26493 if $gl_gnulib_enabled_euidaccess; then
26494 gl_GNULIB_ENABLED_euidaccess_TRUE=
26495 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
26496 else
26497 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
26498 gl_GNULIB_ENABLED_euidaccess_FALSE=
26499 fi
26500
26501 if $gl_gnulib_enabled_getgroups; then
26502 gl_GNULIB_ENABLED_getgroups_TRUE=
26503 gl_GNULIB_ENABLED_getgroups_FALSE='#'
26504 else
26505 gl_GNULIB_ENABLED_getgroups_TRUE='#'
26506 gl_GNULIB_ENABLED_getgroups_FALSE=
26507 fi
26508
26509 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26510 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
26511 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
26512 else
26513 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
26514 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
26515 fi
26516
26517 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26518 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
26519 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
26520 else
26521 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
26522 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
26523 fi
26524
26525 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26526 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
26527 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
26528 else
26529 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
26530 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
26531 fi
26532
26533 if $gl_gnulib_enabled_pathmax; then
26534 gl_GNULIB_ENABLED_pathmax_TRUE=
26535 gl_GNULIB_ENABLED_pathmax_FALSE='#'
26536 else
26537 gl_GNULIB_ENABLED_pathmax_TRUE='#'
26538 gl_GNULIB_ENABLED_pathmax_FALSE=
26539 fi
26540
26541 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26542 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
26543 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
26544 else
26545 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
26546 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
26547 fi
26548
26549 if $gl_gnulib_enabled_stat; then
26550 gl_GNULIB_ENABLED_stat_TRUE=
26551 gl_GNULIB_ENABLED_stat_FALSE='#'
26552 else
26553 gl_GNULIB_ENABLED_stat_TRUE='#'
26554 gl_GNULIB_ENABLED_stat_FALSE=
26555 fi
26556
26557 if $gl_gnulib_enabled_strtoll; then
26558 gl_GNULIB_ENABLED_strtoll_TRUE=
26559 gl_GNULIB_ENABLED_strtoll_FALSE='#'
26560 else
26561 gl_GNULIB_ENABLED_strtoll_TRUE='#'
26562 gl_GNULIB_ENABLED_strtoll_FALSE=
26563 fi
26564
26565 if $gl_gnulib_enabled_strtoull; then
26566 gl_GNULIB_ENABLED_strtoull_TRUE=
26567 gl_GNULIB_ENABLED_strtoull_FALSE='#'
26568 else
26569 gl_GNULIB_ENABLED_strtoull_TRUE='#'
26570 gl_GNULIB_ENABLED_strtoull_FALSE=
26571 fi
26572
26573 if $gl_gnulib_enabled_verify; then
26574 gl_GNULIB_ENABLED_verify_TRUE=
26575 gl_GNULIB_ENABLED_verify_FALSE='#'
26576 else
26577 gl_GNULIB_ENABLED_verify_TRUE='#'
26578 gl_GNULIB_ENABLED_verify_FALSE=
26579 fi
26580
26581 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26582 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
26583 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
26584 else
26585 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
26586 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
26587 fi
26588
26589 # End of code from modules
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599 gltests_libdeps=
26600 gltests_ltlibdeps=
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610 gl_source_base='tests'
26611 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
26612
26613 gl_module_indicator_condition=$gltests_WITNESS
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624 LIBGNU_LIBDEPS="$gl_libdeps"
26625
26626 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
26627
26628
26629 CFLAGS=$SAVE_CFLAGS
26630 LIBS=$SAVE_LIBS
26631
26632 case "$opsys" in
26633 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26634
26635 darwin)
26636 ## The -headerpad option tells ld (see man page) to leave room at the
26637 ## end of the header for adding load commands. Needed for dumping.
26638 ## 0x690 is the total size of 30 segment load commands (at 56
26639 ## each); under Cocoa 31 commands are required.
26640 if test "$HAVE_NS" = "yes"; then
26641 libs_nsgui="-framework AppKit"
26642 headerpad_extra=6C8
26643 else
26644 libs_nsgui=
26645 headerpad_extra=690
26646 fi
26647 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26648
26649 ## This is here because src/Makefile.in did some extra fiddling around
26650 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
26651 ## LD_SWITCH_SYSTEM_TEMACS instead,
26652 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26653 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
26654 ;;
26655
26656 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
26657 ## find X at run-time.
26658 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
26659 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
26660 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26661 ## had different values in configure (in ac_link) and src/Makefile.in.
26662 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26663 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
26664
26665 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26666 esac
26667
26668
26669
26670 ## Common for all window systems
26671 if test "$window_system" != "none"; then
26672
26673 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
26674
26675 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
26676 fi
26677
26678
26679
26680
26681
26682 #### Report on what we decided to do.
26683 #### Report GTK as a toolkit, even if it doesn't use Xt.
26684 #### It makes printing result more understandable as using GTK sets
26685 #### toolkit_scroll_bars to yes by default.
26686 if test "${HAVE_GTK}" = "yes"; then
26687 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
26688 fi
26689
26690 echo "
26691 Configured for \`${canonical}'.
26692
26693 Where should the build process find the source code? ${srcdir}
26694 What compiler should emacs be built with? ${CC} ${CFLAGS}
26695 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26696 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26697 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26698 What window system should Emacs use? ${window_system}
26699 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26700
26701 if test -n "${x_includes}"; then
26702 echo " Where do we find X Windows header files? ${x_includes}"
26703 else
26704 echo " Where do we find X Windows header files? Standard dirs"
26705 fi
26706 if test -n "${x_libraries}"; then
26707 echo " Where do we find X Windows libraries? ${x_libraries}"
26708 else
26709 echo " Where do we find X Windows libraries? Standard dirs"
26710 fi
26711
26712 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26713 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26714 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26715 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26716 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26717 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26718 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26719 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26720
26721 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26722 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26723 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26724 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
26725 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26726 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
26727 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
26728
26729 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26730 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26731 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26732 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26733
26734 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26735 echo
26736
26737 if test -n "${EMACSDATA}"; then
26738 echo " Environment variable EMACSDATA set to: $EMACSDATA"
26739 fi
26740 if test -n "${EMACSDOC}"; then
26741 echo " Environment variable EMACSDOC set to: $EMACSDOC"
26742 fi
26743
26744 echo
26745
26746 if test "$HAVE_NS" = "yes"; then
26747 echo
26748 echo "You must run \"${MAKE-make} install\" in order to test the built application.
26749 The installed application will go to nextstep/Emacs.app and can be
26750 run or moved from there."
26751 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26752 echo "The application will be fully self-contained."
26753 else
26754 echo "The lisp resources for the application will be installed under ${prefix}.
26755 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
26756 to run if these resources are not installed."
26757 fi
26758 echo
26759 fi
26760
26761 if test "${opsys}" = "cygwin"; then
26762 case `uname -r` in
26763 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
26764 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
26765 echo
26766 ;;
26767 esac
26768 fi
26769
26770 # Remove any trailing slashes in these variables.
26771 test "${prefix}" != NONE &&
26772 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26773 test "${exec_prefix}" != NONE &&
26774 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26775
26776 if test "$HAVE_NS" = "yes"; then
26777 if test "$NS_IMPL_GNUSTEP" = yes; then
26778 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"
26779
26780 else
26781 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"
26782
26783 fi
26784 fi
26785
26786 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"
26787
26788 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"
26789
26790
26791 opt_makefile=test/automated/Makefile
26792
26793 if test -f "$srcdir/$opt_makefile.in"; then
26794 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26795 ac_config_files="$ac_config_files test/automated/Makefile"
26796
26797 fi
26798
26799
26800 opt_makefile=admin/unidata/Makefile
26801
26802 if test -f "$srcdir/$opt_makefile.in"; then
26803 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26804 ac_config_files="$ac_config_files admin/unidata/Makefile"
26805
26806 fi
26807
26808
26809 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
26810
26811
26812
26813 ac_config_commands="$ac_config_commands mkdirs"
26814
26815
26816 ac_config_commands="$ac_config_commands epaths"
26817
26818
26819 ac_config_commands="$ac_config_commands gdbinit"
26820
26821
26822 cat >confcache <<\_ACEOF
26823 # This file is a shell script that caches the results of configure
26824 # tests run on this system so they can be shared between configure
26825 # scripts and configure runs, see configure's option --config-cache.
26826 # It is not useful on other systems. If it contains results you don't
26827 # want to keep, you may remove or edit it.
26828 #
26829 # config.status only pays attention to the cache file if you give it
26830 # the --recheck option to rerun configure.
26831 #
26832 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26833 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26834 # following values.
26835
26836 _ACEOF
26837
26838 # The following way of writing the cache mishandles newlines in values,
26839 # but we know of no workaround that is simple, portable, and efficient.
26840 # So, we kill variables containing newlines.
26841 # Ultrix sh set writes to stderr and can't be redirected directly,
26842 # and sets the high bit in the cache file unless we assign to the vars.
26843 (
26844 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26845 eval ac_val=\$$ac_var
26846 case $ac_val in #(
26847 *${as_nl}*)
26848 case $ac_var in #(
26849 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26850 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26851 esac
26852 case $ac_var in #(
26853 _ | IFS | as_nl) ;; #(
26854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26855 *) { eval $ac_var=; unset $ac_var;} ;;
26856 esac ;;
26857 esac
26858 done
26859
26860 (set) 2>&1 |
26861 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26862 *${as_nl}ac_space=\ *)
26863 # `set' does not quote correctly, so add quotes: double-quote
26864 # substitution turns \\\\ into \\, and sed turns \\ into \.
26865 sed -n \
26866 "s/'/'\\\\''/g;
26867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26868 ;; #(
26869 *)
26870 # `set' quotes correctly as required by POSIX, so do not add quotes.
26871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26872 ;;
26873 esac |
26874 sort
26875 ) |
26876 sed '
26877 /^ac_cv_env_/b end
26878 t clear
26879 :clear
26880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26881 t end
26882 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26883 :end' >>confcache
26884 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26885 if test -w "$cache_file"; then
26886 test "x$cache_file" != "x/dev/null" &&
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26888 $as_echo "$as_me: updating cache $cache_file" >&6;}
26889 cat confcache >$cache_file
26890 else
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26892 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26893 fi
26894 fi
26895 rm -f confcache
26896
26897 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26898 # Let make expand exec_prefix.
26899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26900
26901 DEFS=-DHAVE_CONFIG_H
26902
26903 ac_libobjs=
26904 ac_ltlibobjs=
26905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26906 # 1. Remove the extension, and $U if already installed.
26907 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26908 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26910 # will be set to the directory where LIBOBJS objects are built.
26911 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26912 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26913 done
26914 LIBOBJS=$ac_libobjs
26915
26916 LTLIBOBJS=$ac_ltlibobjs
26917
26918
26919 if test -n "$EXEEXT"; then
26920 am__EXEEXT_TRUE=
26921 am__EXEEXT_FALSE='#'
26922 else
26923 am__EXEEXT_TRUE='#'
26924 am__EXEEXT_FALSE=
26925 fi
26926
26927 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26928 as_fn_error "conditional \"AMDEP\" was never defined.
26929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26930 fi
26931 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26932 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26934 fi
26935 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26936 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
26937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26938 fi
26939 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26940 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
26941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26942 fi
26943
26944 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
26945 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
26946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26947 fi
26948 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26949 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
26950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26951 fi
26952 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
26953 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
26954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26955 fi
26956 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
26957 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
26958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26959 fi
26960 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26961 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26963 fi
26964 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26965 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26967 fi
26968 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
26969 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
26970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26971 fi
26972 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
26973 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
26974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26975 fi
26976 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
26977 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
26978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26979 fi
26980 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
26981 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
26982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26983 fi
26984 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
26985 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
26986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26987 fi
26988 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
26989 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
26990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26991 fi
26992 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
26993 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
26994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26995 fi
26996 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
26997 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
26998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26999 fi
27000 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
27001 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
27002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27003 fi
27004 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
27005 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
27006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27007 fi
27008 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
27009 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
27010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27011 fi
27012 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
27013 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
27014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27015 fi
27016 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
27017 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
27018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27019 fi
27020 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
27021 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
27022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27023 fi
27024
27025 gl_libobjs=
27026 gl_ltlibobjs=
27027 if test -n "$gl_LIBOBJS"; then
27028 # Remove the extension.
27029 sed_drop_objext='s/\.o$//;s/\.obj$//'
27030 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27031 gl_libobjs="$gl_libobjs $i.$ac_objext"
27032 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
27033 done
27034 fi
27035 gl_LIBOBJS=$gl_libobjs
27036
27037 gl_LTLIBOBJS=$gl_ltlibobjs
27038
27039
27040
27041 gltests_libobjs=
27042 gltests_ltlibobjs=
27043 if test -n "$gltests_LIBOBJS"; then
27044 # Remove the extension.
27045 sed_drop_objext='s/\.o$//;s/\.obj$//'
27046 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27047 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
27048 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
27049 done
27050 fi
27051 gltests_LIBOBJS=$gltests_libobjs
27052
27053 gltests_LTLIBOBJS=$gltests_ltlibobjs
27054
27055
27056
27057 : ${CONFIG_STATUS=./config.status}
27058 ac_write_fail=0
27059 ac_clean_files_save=$ac_clean_files
27060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27062 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27063 as_write_fail=0
27064 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27065 #! $SHELL
27066 # Generated by $as_me.
27067 # Run this file to recreate the current configuration.
27068 # Compiler output produced by configure, useful for debugging
27069 # configure, is in config.log if it exists.
27070
27071 debug=false
27072 ac_cs_recheck=false
27073 ac_cs_silent=false
27074
27075 SHELL=\${CONFIG_SHELL-$SHELL}
27076 export SHELL
27077 _ASEOF
27078 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27079 ## -------------------- ##
27080 ## M4sh Initialization. ##
27081 ## -------------------- ##
27082
27083 # Be more Bourne compatible
27084 DUALCASE=1; export DUALCASE # for MKS sh
27085 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27086 emulate sh
27087 NULLCMD=:
27088 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27089 # is contrary to our usage. Disable this feature.
27090 alias -g '${1+"$@"}'='"$@"'
27091 setopt NO_GLOB_SUBST
27092 else
27093 case `(set -o) 2>/dev/null` in #(
27094 *posix*) :
27095 set -o posix ;; #(
27096 *) :
27097 ;;
27098 esac
27099 fi
27100
27101
27102 as_nl='
27103 '
27104 export as_nl
27105 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27106 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27107 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27108 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27109 # Prefer a ksh shell builtin over an external printf program on Solaris,
27110 # but without wasting forks for bash or zsh.
27111 if test -z "$BASH_VERSION$ZSH_VERSION" \
27112 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27113 as_echo='print -r --'
27114 as_echo_n='print -rn --'
27115 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27116 as_echo='printf %s\n'
27117 as_echo_n='printf %s'
27118 else
27119 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27120 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27121 as_echo_n='/usr/ucb/echo -n'
27122 else
27123 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27124 as_echo_n_body='eval
27125 arg=$1;
27126 case $arg in #(
27127 *"$as_nl"*)
27128 expr "X$arg" : "X\\(.*\\)$as_nl";
27129 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27130 esac;
27131 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27132 '
27133 export as_echo_n_body
27134 as_echo_n='sh -c $as_echo_n_body as_echo'
27135 fi
27136 export as_echo_body
27137 as_echo='sh -c $as_echo_body as_echo'
27138 fi
27139
27140 # The user is always right.
27141 if test "${PATH_SEPARATOR+set}" != set; then
27142 PATH_SEPARATOR=:
27143 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27144 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27145 PATH_SEPARATOR=';'
27146 }
27147 fi
27148
27149
27150 # IFS
27151 # We need space, tab and new line, in precisely that order. Quoting is
27152 # there to prevent editors from complaining about space-tab.
27153 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27154 # splitting by setting IFS to empty value.)
27155 IFS=" "" $as_nl"
27156
27157 # Find who we are. Look in the path if we contain no directory separator.
27158 case $0 in #((
27159 *[\\/]* ) as_myself=$0 ;;
27160 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27161 for as_dir in $PATH
27162 do
27163 IFS=$as_save_IFS
27164 test -z "$as_dir" && as_dir=.
27165 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27166 done
27167 IFS=$as_save_IFS
27168
27169 ;;
27170 esac
27171 # We did not find ourselves, most probably we were run as `sh COMMAND'
27172 # in which case we are not to be found in the path.
27173 if test "x$as_myself" = x; then
27174 as_myself=$0
27175 fi
27176 if test ! -f "$as_myself"; then
27177 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27178 exit 1
27179 fi
27180
27181 # Unset variables that we do not need and which cause bugs (e.g. in
27182 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27183 # suppresses any "Segmentation fault" message there. '((' could
27184 # trigger a bug in pdksh 5.2.14.
27185 for as_var in BASH_ENV ENV MAIL MAILPATH
27186 do eval test x\${$as_var+set} = xset \
27187 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27188 done
27189 PS1='$ '
27190 PS2='> '
27191 PS4='+ '
27192
27193 # NLS nuisances.
27194 LC_ALL=C
27195 export LC_ALL
27196 LANGUAGE=C
27197 export LANGUAGE
27198
27199 # CDPATH.
27200 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27201
27202
27203 # as_fn_error ERROR [LINENO LOG_FD]
27204 # ---------------------------------
27205 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27206 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27207 # script with status $?, using 1 if that was 0.
27208 as_fn_error ()
27209 {
27210 as_status=$?; test $as_status -eq 0 && as_status=1
27211 if test "$3"; then
27212 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27213 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27214 fi
27215 $as_echo "$as_me: error: $1" >&2
27216 as_fn_exit $as_status
27217 } # as_fn_error
27218
27219
27220 # as_fn_set_status STATUS
27221 # -----------------------
27222 # Set $? to STATUS, without forking.
27223 as_fn_set_status ()
27224 {
27225 return $1
27226 } # as_fn_set_status
27227
27228 # as_fn_exit STATUS
27229 # -----------------
27230 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27231 as_fn_exit ()
27232 {
27233 set +e
27234 as_fn_set_status $1
27235 exit $1
27236 } # as_fn_exit
27237
27238 # as_fn_unset VAR
27239 # ---------------
27240 # Portably unset VAR.
27241 as_fn_unset ()
27242 {
27243 { eval $1=; unset $1;}
27244 }
27245 as_unset=as_fn_unset
27246 # as_fn_append VAR VALUE
27247 # ----------------------
27248 # Append the text in VALUE to the end of the definition contained in VAR. Take
27249 # advantage of any shell optimizations that allow amortized linear growth over
27250 # repeated appends, instead of the typical quadratic growth present in naive
27251 # implementations.
27252 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27253 eval 'as_fn_append ()
27254 {
27255 eval $1+=\$2
27256 }'
27257 else
27258 as_fn_append ()
27259 {
27260 eval $1=\$$1\$2
27261 }
27262 fi # as_fn_append
27263
27264 # as_fn_arith ARG...
27265 # ------------------
27266 # Perform arithmetic evaluation on the ARGs, and store the result in the
27267 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27268 # must be portable across $(()) and expr.
27269 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27270 eval 'as_fn_arith ()
27271 {
27272 as_val=$(( $* ))
27273 }'
27274 else
27275 as_fn_arith ()
27276 {
27277 as_val=`expr "$@" || test $? -eq 1`
27278 }
27279 fi # as_fn_arith
27280
27281
27282 if expr a : '\(a\)' >/dev/null 2>&1 &&
27283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27284 as_expr=expr
27285 else
27286 as_expr=false
27287 fi
27288
27289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27290 as_basename=basename
27291 else
27292 as_basename=false
27293 fi
27294
27295 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27296 as_dirname=dirname
27297 else
27298 as_dirname=false
27299 fi
27300
27301 as_me=`$as_basename -- "$0" ||
27302 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27303 X"$0" : 'X\(//\)$' \| \
27304 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27305 $as_echo X/"$0" |
27306 sed '/^.*\/\([^/][^/]*\)\/*$/{
27307 s//\1/
27308 q
27309 }
27310 /^X\/\(\/\/\)$/{
27311 s//\1/
27312 q
27313 }
27314 /^X\/\(\/\).*/{
27315 s//\1/
27316 q
27317 }
27318 s/.*/./; q'`
27319
27320 # Avoid depending upon Character Ranges.
27321 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27322 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27323 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27324 as_cr_digits='0123456789'
27325 as_cr_alnum=$as_cr_Letters$as_cr_digits
27326
27327 ECHO_C= ECHO_N= ECHO_T=
27328 case `echo -n x` in #(((((
27329 -n*)
27330 case `echo 'xy\c'` in
27331 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27332 xy) ECHO_C='\c';;
27333 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27334 ECHO_T=' ';;
27335 esac;;
27336 *)
27337 ECHO_N='-n';;
27338 esac
27339
27340 rm -f conf$$ conf$$.exe conf$$.file
27341 if test -d conf$$.dir; then
27342 rm -f conf$$.dir/conf$$.file
27343 else
27344 rm -f conf$$.dir
27345 mkdir conf$$.dir 2>/dev/null
27346 fi
27347 if (echo >conf$$.file) 2>/dev/null; then
27348 if ln -s conf$$.file conf$$ 2>/dev/null; then
27349 as_ln_s='ln -s'
27350 # ... but there are two gotchas:
27351 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27352 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27353 # In both cases, we have to default to `cp -p'.
27354 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27355 as_ln_s='cp -p'
27356 elif ln conf$$.file conf$$ 2>/dev/null; then
27357 as_ln_s=ln
27358 else
27359 as_ln_s='cp -p'
27360 fi
27361 else
27362 as_ln_s='cp -p'
27363 fi
27364 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27365 rmdir conf$$.dir 2>/dev/null
27366
27367
27368 # as_fn_mkdir_p
27369 # -------------
27370 # Create "$as_dir" as a directory, including parents if necessary.
27371 as_fn_mkdir_p ()
27372 {
27373
27374 case $as_dir in #(
27375 -*) as_dir=./$as_dir;;
27376 esac
27377 test -d "$as_dir" || eval $as_mkdir_p || {
27378 as_dirs=
27379 while :; do
27380 case $as_dir in #(
27381 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27382 *) as_qdir=$as_dir;;
27383 esac
27384 as_dirs="'$as_qdir' $as_dirs"
27385 as_dir=`$as_dirname -- "$as_dir" ||
27386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27387 X"$as_dir" : 'X\(//\)[^/]' \| \
27388 X"$as_dir" : 'X\(//\)$' \| \
27389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27390 $as_echo X"$as_dir" |
27391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27392 s//\1/
27393 q
27394 }
27395 /^X\(\/\/\)[^/].*/{
27396 s//\1/
27397 q
27398 }
27399 /^X\(\/\/\)$/{
27400 s//\1/
27401 q
27402 }
27403 /^X\(\/\).*/{
27404 s//\1/
27405 q
27406 }
27407 s/.*/./; q'`
27408 test -d "$as_dir" && break
27409 done
27410 test -z "$as_dirs" || eval "mkdir $as_dirs"
27411 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27412
27413
27414 } # as_fn_mkdir_p
27415 if mkdir -p . 2>/dev/null; then
27416 as_mkdir_p='mkdir -p "$as_dir"'
27417 else
27418 test -d ./-p && rmdir ./-p
27419 as_mkdir_p=false
27420 fi
27421
27422 if test -x / >/dev/null 2>&1; then
27423 as_test_x='test -x'
27424 else
27425 if ls -dL / >/dev/null 2>&1; then
27426 as_ls_L_option=L
27427 else
27428 as_ls_L_option=
27429 fi
27430 as_test_x='
27431 eval sh -c '\''
27432 if test -d "$1"; then
27433 test -d "$1/.";
27434 else
27435 case $1 in #(
27436 -*)set "./$1";;
27437 esac;
27438 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27439 ???[sx]*):;;*)false;;esac;fi
27440 '\'' sh
27441 '
27442 fi
27443 as_executable_p=$as_test_x
27444
27445 # Sed expression to map a string onto a valid CPP name.
27446 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27447
27448 # Sed expression to map a string onto a valid variable name.
27449 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27450
27451
27452 exec 6>&1
27453 ## ----------------------------------- ##
27454 ## Main body of $CONFIG_STATUS script. ##
27455 ## ----------------------------------- ##
27456 _ASEOF
27457 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27458
27459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27460 # Save the log message, to keep $0 and so on meaningful, and to
27461 # report actual input values of CONFIG_FILES etc. instead of their
27462 # values after options handling.
27463 ac_log="
27464 This file was extended by emacs $as_me 24.3.50, which was
27465 generated by GNU Autoconf 2.65. Invocation command line was
27466
27467 CONFIG_FILES = $CONFIG_FILES
27468 CONFIG_HEADERS = $CONFIG_HEADERS
27469 CONFIG_LINKS = $CONFIG_LINKS
27470 CONFIG_COMMANDS = $CONFIG_COMMANDS
27471 $ $0 $@
27472
27473 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27474 "
27475
27476 _ACEOF
27477
27478 case $ac_config_files in *"
27479 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27480 esac
27481
27482 case $ac_config_headers in *"
27483 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27484 esac
27485
27486
27487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27488 # Files that config.status was made for.
27489 config_files="$ac_config_files"
27490 config_headers="$ac_config_headers"
27491 config_commands="$ac_config_commands"
27492
27493 _ACEOF
27494
27495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27496 ac_cs_usage="\
27497 \`$as_me' instantiates files and other configuration actions
27498 from templates according to the current configuration. Unless the files
27499 and actions are specified as TAGs, all are instantiated by default.
27500
27501 Usage: $0 [OPTION]... [TAG]...
27502
27503 -h, --help print this help, then exit
27504 -V, --version print version number and configuration settings, then exit
27505 --config print configuration, then exit
27506 -q, --quiet, --silent
27507 do not print progress messages
27508 -d, --debug don't remove temporary files
27509 --recheck update $as_me by reconfiguring in the same conditions
27510 --file=FILE[:TEMPLATE]
27511 instantiate the configuration file FILE
27512 --header=FILE[:TEMPLATE]
27513 instantiate the configuration header FILE
27514
27515 Configuration files:
27516 $config_files
27517
27518 Configuration headers:
27519 $config_headers
27520
27521 Configuration commands:
27522 $config_commands
27523
27524 Report bugs to the package provider."
27525
27526 _ACEOF
27527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27528 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27529 ac_cs_version="\\
27530 emacs config.status 24.3.50
27531 configured by $0, generated by GNU Autoconf 2.65,
27532 with options \\"\$ac_cs_config\\"
27533
27534 Copyright (C) 2009 Free Software Foundation, Inc.
27535 This config.status script is free software; the Free Software Foundation
27536 gives unlimited permission to copy, distribute and modify it."
27537
27538 ac_pwd='$ac_pwd'
27539 srcdir='$srcdir'
27540 INSTALL='$INSTALL'
27541 MKDIR_P='$MKDIR_P'
27542 AWK='$AWK'
27543 test -n "\$AWK" || AWK=awk
27544 _ACEOF
27545
27546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27547 # The default lists apply if the user does not specify any file.
27548 ac_need_defaults=:
27549 while test $# != 0
27550 do
27551 case $1 in
27552 --*=*)
27553 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27554 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27555 ac_shift=:
27556 ;;
27557 *)
27558 ac_option=$1
27559 ac_optarg=$2
27560 ac_shift=shift
27561 ;;
27562 esac
27563
27564 case $ac_option in
27565 # Handling of the options.
27566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27567 ac_cs_recheck=: ;;
27568 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27569 $as_echo "$ac_cs_version"; exit ;;
27570 --config | --confi | --conf | --con | --co | --c )
27571 $as_echo "$ac_cs_config"; exit ;;
27572 --debug | --debu | --deb | --de | --d | -d )
27573 debug=: ;;
27574 --file | --fil | --fi | --f )
27575 $ac_shift
27576 case $ac_optarg in
27577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27578 esac
27579 as_fn_append CONFIG_FILES " '$ac_optarg'"
27580 ac_need_defaults=false;;
27581 --header | --heade | --head | --hea )
27582 $ac_shift
27583 case $ac_optarg in
27584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27585 esac
27586 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27587 ac_need_defaults=false;;
27588 --he | --h)
27589 # Conflict between --help and --header
27590 as_fn_error "ambiguous option: \`$1'
27591 Try \`$0 --help' for more information.";;
27592 --help | --hel | -h )
27593 $as_echo "$ac_cs_usage"; exit ;;
27594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27595 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27596 ac_cs_silent=: ;;
27597
27598 # This is an error.
27599 -*) as_fn_error "unrecognized option: \`$1'
27600 Try \`$0 --help' for more information." ;;
27601
27602 *) as_fn_append ac_config_targets " $1"
27603 ac_need_defaults=false ;;
27604
27605 esac
27606 shift
27607 done
27608
27609 ac_configure_extra_args=
27610
27611 if $ac_cs_silent; then
27612 exec 6>/dev/null
27613 ac_configure_extra_args="$ac_configure_extra_args --silent"
27614 fi
27615
27616 _ACEOF
27617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27618 if \$ac_cs_recheck; then
27619 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27620 shift
27621 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27622 CONFIG_SHELL='$SHELL'
27623 export CONFIG_SHELL
27624 exec "\$@"
27625 fi
27626
27627 _ACEOF
27628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27629 exec 5>>config.log
27630 {
27631 echo
27632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27633 ## Running $as_me. ##
27634 _ASBOX
27635 $as_echo "$ac_log"
27636 } >&5
27637
27638 _ACEOF
27639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27640 #
27641 # INIT-COMMANDS
27642 #
27643 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27644 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
27645
27646 _ACEOF
27647
27648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27649
27650 # Handling of arguments.
27651 for ac_config_target in $ac_config_targets
27652 do
27653 case $ac_config_target in
27654 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27655 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27656 "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" ;;
27657 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
27658 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
27659 "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" ;;
27660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27661 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27662 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27663 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27664 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27665 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27666 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27667 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27668 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27669 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27670 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27671 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27672 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
27673 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
27674 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
27675 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
27676 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
27677 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
27678
27679 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27680 esac
27681 done
27682
27683
27684 # If the user did not use the arguments to specify the items to instantiate,
27685 # then the envvar interface is used. Set only those that are not.
27686 # We use the long form for the default assignment because of an extremely
27687 # bizarre bug on SunOS 4.1.3.
27688 if $ac_need_defaults; then
27689 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27690 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27692 fi
27693
27694 # Have a temporary directory for convenience. Make it in the build tree
27695 # simply because there is no reason against having it here, and in addition,
27696 # creating and moving files from /tmp can sometimes cause problems.
27697 # Hook for its removal unless debugging.
27698 # Note that there is a small window in which the directory will not be cleaned:
27699 # after its creation but before its name has been assigned to `$tmp'.
27700 $debug ||
27701 {
27702 tmp=
27703 trap 'exit_status=$?
27704 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27705 ' 0
27706 trap 'as_fn_exit 1' 1 2 13 15
27707 }
27708 # Create a (secure) tmp directory for tmp files.
27709
27710 {
27711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27712 test -n "$tmp" && test -d "$tmp"
27713 } ||
27714 {
27715 tmp=./conf$$-$RANDOM
27716 (umask 077 && mkdir "$tmp")
27717 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27718
27719 # Set up the scripts for CONFIG_FILES section.
27720 # No need to generate them if there are no CONFIG_FILES.
27721 # This happens for instance with `./config.status config.h'.
27722 if test -n "$CONFIG_FILES"; then
27723
27724 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27725 ac_cs_awk_getline=:
27726 ac_cs_awk_pipe_init=
27727 ac_cs_awk_read_file='
27728 while ((getline aline < (F[key])) > 0)
27729 print(aline)
27730 close(F[key])'
27731 ac_cs_awk_pipe_fini=
27732 else
27733 ac_cs_awk_getline=false
27734 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27735 ac_cs_awk_read_file='
27736 print "|#_!!_#|"
27737 print "cat " F[key] " &&"
27738 '$ac_cs_awk_pipe_init
27739 # The final `:' finishes the AND list.
27740 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27741 fi
27742 ac_cr=`echo X | tr X '\015'`
27743 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27744 # But we know of no other shell where ac_cr would be empty at this
27745 # point, so we can use a bashism as a fallback.
27746 if test "x$ac_cr" = x; then
27747 eval ac_cr=\$\'\\r\'
27748 fi
27749 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27750 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27751 ac_cs_awk_cr='\r'
27752 else
27753 ac_cs_awk_cr=$ac_cr
27754 fi
27755
27756 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27757 _ACEOF
27758
27759 # Create commands to substitute file output variables.
27760 {
27761 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27762 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27763 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27764 echo "_ACAWK" &&
27765 echo "_ACEOF"
27766 } >conf$$files.sh &&
27767 . ./conf$$files.sh ||
27768 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27769 rm -f conf$$files.sh
27770
27771 {
27772 echo "cat >conf$$subs.awk <<_ACEOF" &&
27773 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27774 echo "_ACEOF"
27775 } >conf$$subs.sh ||
27776 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27777 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27778 ac_delim='%!_!# '
27779 for ac_last_try in false false false false false :; do
27780 . ./conf$$subs.sh ||
27781 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27782
27783 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27784 if test $ac_delim_n = $ac_delim_num; then
27785 break
27786 elif $ac_last_try; then
27787 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27788 else
27789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27790 fi
27791 done
27792 rm -f conf$$subs.sh
27793
27794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27795 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27796 _ACEOF
27797 sed -n '
27798 h
27799 s/^/S["/; s/!.*/"]=/
27800 p
27801 g
27802 s/^[^!]*!//
27803 :repl
27804 t repl
27805 s/'"$ac_delim"'$//
27806 t delim
27807 :nl
27808 h
27809 s/\(.\{148\}\)..*/\1/
27810 t more1
27811 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27812 p
27813 n
27814 b repl
27815 :more1
27816 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27817 p
27818 g
27819 s/.\{148\}//
27820 t nl
27821 :delim
27822 h
27823 s/\(.\{148\}\)..*/\1/
27824 t more2
27825 s/["\\]/\\&/g; s/^/"/; s/$/"/
27826 p
27827 b
27828 :more2
27829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27830 p
27831 g
27832 s/.\{148\}//
27833 t delim
27834 ' <conf$$subs.awk | sed '
27835 /^[^""]/{
27836 N
27837 s/\n//
27838 }
27839 ' >>$CONFIG_STATUS || ac_write_fail=1
27840 rm -f conf$$subs.awk
27841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27842 _ACAWK
27843 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27844 for (key in S) S_is_set[key] = 1
27845 FS = "\a"
27846 \$ac_cs_awk_pipe_init
27847 }
27848 {
27849 line = $ 0
27850 nfields = split(line, field, "@")
27851 substed = 0
27852 len = length(field[1])
27853 for (i = 2; i < nfields; i++) {
27854 key = field[i]
27855 keylen = length(key)
27856 if (S_is_set[key]) {
27857 value = S[key]
27858 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27859 len += length(value) + length(field[++i])
27860 substed = 1
27861 } else
27862 len += 1 + keylen
27863 }
27864 if (nfields == 3 && !substed) {
27865 key = field[2]
27866 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27867 \$ac_cs_awk_read_file
27868 next
27869 }
27870 }
27871 print line
27872 }
27873 \$ac_cs_awk_pipe_fini
27874 _ACAWK
27875 _ACEOF
27876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27877 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27878 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27879 else
27880 cat
27881 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27882 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27883 _ACEOF
27884
27885 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27886 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27887 # trailing colons and then remove the whole line if VPATH becomes empty
27888 # (actually we leave an empty line to preserve line numbers).
27889 if test "x$srcdir" = x.; then
27890 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27891 s/:*\$(srcdir):*/:/
27892 s/:*\${srcdir}:*/:/
27893 s/:*@srcdir@:*/:/
27894 s/^\([^=]*=[ ]*\):*/\1/
27895 s/:*$//
27896 s/^[^=]*=[ ]*$//
27897 }'
27898 fi
27899
27900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27901 fi # test -n "$CONFIG_FILES"
27902
27903 # Set up the scripts for CONFIG_HEADERS section.
27904 # No need to generate them if there are no CONFIG_HEADERS.
27905 # This happens for instance with `./config.status Makefile'.
27906 if test -n "$CONFIG_HEADERS"; then
27907 cat >"$tmp/defines.awk" <<\_ACAWK ||
27908 BEGIN {
27909 _ACEOF
27910
27911 # Transform confdefs.h into an awk script `defines.awk', embedded as
27912 # here-document in config.status, that substitutes the proper values into
27913 # config.h.in to produce config.h.
27914
27915 # Create a delimiter string that does not exist in confdefs.h, to ease
27916 # handling of long lines.
27917 ac_delim='%!_!# '
27918 for ac_last_try in false false :; do
27919 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27920 if test -z "$ac_t"; then
27921 break
27922 elif $ac_last_try; then
27923 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27924 else
27925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27926 fi
27927 done
27928
27929 # For the awk script, D is an array of macro values keyed by name,
27930 # likewise P contains macro parameters if any. Preserve backslash
27931 # newline sequences.
27932
27933 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27934 sed -n '
27935 s/.\{148\}/&'"$ac_delim"'/g
27936 t rset
27937 :rset
27938 s/^[ ]*#[ ]*define[ ][ ]*/ /
27939 t def
27940 d
27941 :def
27942 s/\\$//
27943 t bsnl
27944 s/["\\]/\\&/g
27945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27946 D["\1"]=" \3"/p
27947 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27948 d
27949 :bsnl
27950 s/["\\]/\\&/g
27951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27952 D["\1"]=" \3\\\\\\n"\\/p
27953 t cont
27954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27955 t cont
27956 d
27957 :cont
27958 n
27959 s/.\{148\}/&'"$ac_delim"'/g
27960 t clear
27961 :clear
27962 s/\\$//
27963 t bsnlc
27964 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27965 d
27966 :bsnlc
27967 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27968 b cont
27969 ' <confdefs.h | sed '
27970 s/'"$ac_delim"'/"\\\
27971 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27972
27973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27974 for (key in D) D_is_set[key] = 1
27975 FS = "\a"
27976 }
27977 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27978 line = \$ 0
27979 split(line, arg, " ")
27980 if (arg[1] == "#") {
27981 defundef = arg[2]
27982 mac1 = arg[3]
27983 } else {
27984 defundef = substr(arg[1], 2)
27985 mac1 = arg[2]
27986 }
27987 split(mac1, mac2, "(") #)
27988 macro = mac2[1]
27989 prefix = substr(line, 1, index(line, defundef) - 1)
27990 if (D_is_set[macro]) {
27991 # Preserve the white space surrounding the "#".
27992 print prefix "define", macro P[macro] D[macro]
27993 next
27994 } else {
27995 # Replace #undef with comments. This is necessary, for example,
27996 # in the case of _POSIX_SOURCE, which is predefined and required
27997 # on some systems where configure will not decide to define it.
27998 if (defundef == "undef") {
27999 print "/*", prefix defundef, macro, "*/"
28000 next
28001 }
28002 }
28003 }
28004 { print }
28005 _ACAWK
28006 _ACEOF
28007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28008 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28009 fi # test -n "$CONFIG_HEADERS"
28010
28011
28012 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28013 shift
28014 for ac_tag
28015 do
28016 case $ac_tag in
28017 :[FHLC]) ac_mode=$ac_tag; continue;;
28018 esac
28019 case $ac_mode$ac_tag in
28020 :[FHL]*:*);;
28021 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28022 :[FH]-) ac_tag=-:-;;
28023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28024 esac
28025 ac_save_IFS=$IFS
28026 IFS=:
28027 set x $ac_tag
28028 IFS=$ac_save_IFS
28029 shift
28030 ac_file=$1
28031 shift
28032
28033 case $ac_mode in
28034 :L) ac_source=$1;;
28035 :[FH])
28036 ac_file_inputs=
28037 for ac_f
28038 do
28039 case $ac_f in
28040 -) ac_f="$tmp/stdin";;
28041 *) # Look for the file first in the build tree, then in the source tree
28042 # (if the path is not absolute). The absolute path cannot be DOS-style,
28043 # because $ac_f cannot contain `:'.
28044 test -f "$ac_f" ||
28045 case $ac_f in
28046 [\\/$]*) false;;
28047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28048 esac ||
28049 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28050 esac
28051 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28052 as_fn_append ac_file_inputs " '$ac_f'"
28053 done
28054
28055 # Let's still pretend it is `configure' which instantiates (i.e., don't
28056 # use $as_me), people would be surprised to read:
28057 # /* config.h. Generated by config.status. */
28058 configure_input='Generated from '`
28059 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28060 `' by configure.'
28061 if test x"$ac_file" != x-; then
28062 configure_input="$ac_file. $configure_input"
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28064 $as_echo "$as_me: creating $ac_file" >&6;}
28065 fi
28066 # Neutralize special characters interpreted by sed in replacement strings.
28067 case $configure_input in #(
28068 *\&* | *\|* | *\\* )
28069 ac_sed_conf_input=`$as_echo "$configure_input" |
28070 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28071 *) ac_sed_conf_input=$configure_input;;
28072 esac
28073
28074 case $ac_tag in
28075 *:-:* | *:-) cat >"$tmp/stdin" \
28076 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28077 esac
28078 ;;
28079 esac
28080
28081 ac_dir=`$as_dirname -- "$ac_file" ||
28082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28083 X"$ac_file" : 'X\(//\)[^/]' \| \
28084 X"$ac_file" : 'X\(//\)$' \| \
28085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28086 $as_echo X"$ac_file" |
28087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28088 s//\1/
28089 q
28090 }
28091 /^X\(\/\/\)[^/].*/{
28092 s//\1/
28093 q
28094 }
28095 /^X\(\/\/\)$/{
28096 s//\1/
28097 q
28098 }
28099 /^X\(\/\).*/{
28100 s//\1/
28101 q
28102 }
28103 s/.*/./; q'`
28104 as_dir="$ac_dir"; as_fn_mkdir_p
28105 ac_builddir=.
28106
28107 case "$ac_dir" in
28108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28109 *)
28110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28111 # A ".." for each directory in $ac_dir_suffix.
28112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28113 case $ac_top_builddir_sub in
28114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28116 esac ;;
28117 esac
28118 ac_abs_top_builddir=$ac_pwd
28119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28120 # for backward compatibility:
28121 ac_top_builddir=$ac_top_build_prefix
28122
28123 case $srcdir in
28124 .) # We are building in place.
28125 ac_srcdir=.
28126 ac_top_srcdir=$ac_top_builddir_sub
28127 ac_abs_top_srcdir=$ac_pwd ;;
28128 [\\/]* | ?:[\\/]* ) # Absolute name.
28129 ac_srcdir=$srcdir$ac_dir_suffix;
28130 ac_top_srcdir=$srcdir
28131 ac_abs_top_srcdir=$srcdir ;;
28132 *) # Relative name.
28133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28134 ac_top_srcdir=$ac_top_build_prefix$srcdir
28135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28136 esac
28137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28138
28139
28140 case $ac_mode in
28141 :F)
28142 #
28143 # CONFIG_FILE
28144 #
28145
28146 case $INSTALL in
28147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28148 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28149 esac
28150 ac_MKDIR_P=$MKDIR_P
28151 case $MKDIR_P in
28152 [\\/$]* | ?:[\\/]* ) ;;
28153 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28154 esac
28155 _ACEOF
28156
28157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28158 # If the template does not know about datarootdir, expand it.
28159 # FIXME: This hack should be removed a few years after 2.60.
28160 ac_datarootdir_hack=; ac_datarootdir_seen=
28161 ac_sed_dataroot='
28162 /datarootdir/ {
28163 p
28164 q
28165 }
28166 /@datadir@/p
28167 /@docdir@/p
28168 /@infodir@/p
28169 /@localedir@/p
28170 /@mandir@/p'
28171 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28172 *datarootdir*) ac_datarootdir_seen=yes;;
28173 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28175 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28176 _ACEOF
28177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28178 ac_datarootdir_hack='
28179 s&@datadir@&$datadir&g
28180 s&@docdir@&$docdir&g
28181 s&@infodir@&$infodir&g
28182 s&@localedir@&$localedir&g
28183 s&@mandir@&$mandir&g
28184 s&\\\${datarootdir}&$datarootdir&g' ;;
28185 esac
28186 _ACEOF
28187
28188 # Neutralize VPATH when `$srcdir' = `.'.
28189 # Shell code in configure.ac might set extrasub.
28190 # FIXME: do we really want to maintain this feature?
28191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28192 ac_sed_extra="$ac_vpsub
28193 $extrasub
28194 _ACEOF
28195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28196 :t
28197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28198 s|@configure_input@|$ac_sed_conf_input|;t t
28199 s&@top_builddir@&$ac_top_builddir_sub&;t t
28200 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28201 s&@srcdir@&$ac_srcdir&;t t
28202 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28203 s&@top_srcdir@&$ac_top_srcdir&;t t
28204 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28205 s&@builddir@&$ac_builddir&;t t
28206 s&@abs_builddir@&$ac_abs_builddir&;t t
28207 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28208 s&@INSTALL@&$ac_INSTALL&;t t
28209 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28210 $ac_datarootdir_hack
28211 "
28212 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28213 if $ac_cs_awk_getline; then
28214 $AWK -f "$tmp/subs.awk"
28215 else
28216 $AWK -f "$tmp/subs.awk" | $SHELL
28217 fi >$tmp/out \
28218 || as_fn_error "could not create $ac_file" "$LINENO" 5
28219
28220 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28221 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28222 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28224 which seems to be undefined. Please make sure it is defined." >&5
28225 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28226 which seems to be undefined. Please make sure it is defined." >&2;}
28227
28228 rm -f "$tmp/stdin"
28229 case $ac_file in
28230 -) cat "$tmp/out" && rm -f "$tmp/out";;
28231 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28232 esac \
28233 || as_fn_error "could not create $ac_file" "$LINENO" 5
28234 ;;
28235 :H)
28236 #
28237 # CONFIG_HEADER
28238 #
28239 if test x"$ac_file" != x-; then
28240 {
28241 $as_echo "/* $configure_input */" \
28242 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28243 } >"$tmp/config.h" \
28244 || as_fn_error "could not create $ac_file" "$LINENO" 5
28245 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28246 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28247 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28248 else
28249 rm -f "$ac_file"
28250 mv "$tmp/config.h" "$ac_file" \
28251 || as_fn_error "could not create $ac_file" "$LINENO" 5
28252 fi
28253 else
28254 $as_echo "/* $configure_input */" \
28255 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28256 || as_fn_error "could not create -" "$LINENO" 5
28257 fi
28258 # Compute "$ac_file"'s index in $config_headers.
28259 _am_arg="$ac_file"
28260 _am_stamp_count=1
28261 for _am_header in $config_headers :; do
28262 case $_am_header in
28263 $_am_arg | $_am_arg:* )
28264 break ;;
28265 * )
28266 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28267 esac
28268 done
28269 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28270 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28271 X"$_am_arg" : 'X\(//\)[^/]' \| \
28272 X"$_am_arg" : 'X\(//\)$' \| \
28273 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28274 $as_echo X"$_am_arg" |
28275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28276 s//\1/
28277 q
28278 }
28279 /^X\(\/\/\)[^/].*/{
28280 s//\1/
28281 q
28282 }
28283 /^X\(\/\/\)$/{
28284 s//\1/
28285 q
28286 }
28287 /^X\(\/\).*/{
28288 s//\1/
28289 q
28290 }
28291 s/.*/./; q'`/stamp-h$_am_stamp_count
28292 ;;
28293
28294 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28295 $as_echo "$as_me: executing $ac_file commands" >&6;}
28296 ;;
28297 esac
28298
28299
28300 case $ac_file$ac_mode in
28301 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28302 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28303 # are listed without --file. Let's play safe and only enable the eval
28304 # if we detect the quoting.
28305 case $CONFIG_FILES in
28306 *\'*) eval set x "$CONFIG_FILES" ;;
28307 *) set x $CONFIG_FILES ;;
28308 esac
28309 shift
28310 for mf
28311 do
28312 # Strip MF so we end up with the name of the file.
28313 mf=`echo "$mf" | sed -e 's/:.*$//'`
28314 # Check whether this is an Automake generated Makefile or not.
28315 # We used to match only the files named `Makefile.in', but
28316 # some people rename them; so instead we look at the file content.
28317 # Grep'ing the first line is not enough: some people post-process
28318 # each Makefile.in and add a new line on top of each file to say so.
28319 # Grep'ing the whole file is not good either: AIX grep has a line
28320 # limit of 2048, but all sed's we know have understand at least 4000.
28321 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28322 dirpart=`$as_dirname -- "$mf" ||
28323 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28324 X"$mf" : 'X\(//\)[^/]' \| \
28325 X"$mf" : 'X\(//\)$' \| \
28326 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28327 $as_echo X"$mf" |
28328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28329 s//\1/
28330 q
28331 }
28332 /^X\(\/\/\)[^/].*/{
28333 s//\1/
28334 q
28335 }
28336 /^X\(\/\/\)$/{
28337 s//\1/
28338 q
28339 }
28340 /^X\(\/\).*/{
28341 s//\1/
28342 q
28343 }
28344 s/.*/./; q'`
28345 else
28346 continue
28347 fi
28348 # Extract the definition of DEPDIR, am__include, and am__quote
28349 # from the Makefile without running `make'.
28350 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28351 test -z "$DEPDIR" && continue
28352 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28353 test -z "am__include" && continue
28354 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28355 # When using ansi2knr, U may be empty or an underscore; expand it
28356 U=`sed -n 's/^U = //p' < "$mf"`
28357 # Find all dependency output files, they are included files with
28358 # $(DEPDIR) in their names. We invoke sed twice because it is the
28359 # simplest approach to changing $(DEPDIR) to its actual value in the
28360 # expansion.
28361 for file in `sed -n "
28362 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28363 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28364 # Make sure the directory exists.
28365 test -f "$dirpart/$file" && continue
28366 fdir=`$as_dirname -- "$file" ||
28367 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28368 X"$file" : 'X\(//\)[^/]' \| \
28369 X"$file" : 'X\(//\)$' \| \
28370 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28371 $as_echo X"$file" |
28372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28373 s//\1/
28374 q
28375 }
28376 /^X\(\/\/\)[^/].*/{
28377 s//\1/
28378 q
28379 }
28380 /^X\(\/\/\)$/{
28381 s//\1/
28382 q
28383 }
28384 /^X\(\/\).*/{
28385 s//\1/
28386 q
28387 }
28388 s/.*/./; q'`
28389 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28390 # echo "creating $dirpart/$file"
28391 echo '# dummy' > "$dirpart/$file"
28392 done
28393 done
28394 }
28395 ;;
28396 "mkdirs":C)
28397 for dir in etc lisp ; do
28398 test -d ${dir} || mkdir ${dir}
28399 done
28400 ;;
28401 "epaths":C)
28402 echo creating src/epaths.h
28403 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
28404 ;;
28405 "gdbinit":C)
28406 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
28407 echo creating src/.gdbinit
28408 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
28409 fi
28410 ;;
28411
28412 esac
28413 done # for ac_tag
28414
28415
28416 as_fn_exit 0
28417 _ACEOF
28418 ac_clean_files=$ac_clean_files_save
28419
28420 test $ac_write_fail = 0 ||
28421 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28422
28423
28424 # configure is writing to config.log, and then calls config.status.
28425 # config.status does its own redirection, appending to config.log.
28426 # Unfortunately, on DOS this fails, as config.log is still kept open
28427 # by configure, so config.status won't be able to write to it; its
28428 # output is simply discarded. So we exec the FD to /dev/null,
28429 # effectively closing config.log, so it can be properly (re)opened and
28430 # appended to by config.status. When coming back to configure, we
28431 # need to make the FD available again.
28432 if test "$no_create" != yes; then
28433 ac_cs_success=:
28434 ac_config_status_args=
28435 test "$silent" = yes &&
28436 ac_config_status_args="$ac_config_status_args --quiet"
28437 exec 5>/dev/null
28438 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28439 exec 5>>config.log
28440 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28441 # would make configure fail if this is the last instruction.
28442 $ac_cs_success || as_fn_exit $?
28443 fi
28444 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28446 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28447 fi
28448