Auto-commit of generated files.
[bpt/emacs.git] / 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 USE_ACL
785 LIB_ACL
786 LIB_PTHREAD_SIGMASK
787 REPLACE_RAISE
788 REPLACE_PTHREAD_SIGMASK
789 HAVE_SIGHANDLER_T
790 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
791 HAVE_STRUCT_SIGACTION_SA_SIGACTION
792 HAVE_SIGACTION
793 HAVE_SIGINFO_T
794 HAVE_SIGSET_T
795 HAVE_RAISE
796 HAVE_PTHREAD_SIGMASK
797 HAVE_POSIX_SIGNALBLOCKING
798 GNULIB_SIGACTION
799 GNULIB_SIGPROCMASK
800 GNULIB_SIGNAL_H_SIGPIPE
801 GNULIB_RAISE
802 GNULIB_PTHREAD_SIGMASK
803 HAVE_SYS_SELECT_H
804 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
805 NEXT_SYS_SELECT_H
806 REPLACE_SELECT
807 REPLACE_PSELECT
808 HAVE_PSELECT
809 GNULIB_SELECT
810 GNULIB_PSELECT
811 REPLACE_TIMEGM
812 REPLACE_NANOSLEEP
813 REPLACE_MKTIME
814 REPLACE_LOCALTIME_R
815 HAVE_TIMEGM
816 HAVE_STRPTIME
817 HAVE_NANOSLEEP
818 HAVE_DECL_LOCALTIME_R
819 GNULIB_TIME_R
820 GNULIB_TIMEGM
821 GNULIB_STRPTIME
822 GNULIB_NANOSLEEP
823 GNULIB_MKTIME
824 UNDEFINE_STRTOK_R
825 REPLACE_STRTOK_R
826 REPLACE_STRSIGNAL
827 REPLACE_STRNLEN
828 REPLACE_STRNDUP
829 REPLACE_STRNCAT
830 REPLACE_STRERROR_R
831 REPLACE_STRERROR
832 REPLACE_STRCHRNUL
833 REPLACE_STRCASESTR
834 REPLACE_STRSTR
835 REPLACE_STRDUP
836 REPLACE_STPNCPY
837 REPLACE_MEMMEM
838 REPLACE_MEMCHR
839 HAVE_STRVERSCMP
840 HAVE_DECL_STRSIGNAL
841 HAVE_DECL_STRERROR_R
842 HAVE_DECL_STRTOK_R
843 HAVE_STRCASESTR
844 HAVE_STRSEP
845 HAVE_STRPBRK
846 HAVE_DECL_STRNLEN
847 HAVE_DECL_STRNDUP
848 HAVE_DECL_STRDUP
849 HAVE_STRCHRNUL
850 HAVE_STPNCPY
851 HAVE_STPCPY
852 HAVE_RAWMEMCHR
853 HAVE_DECL_MEMRCHR
854 HAVE_MEMPCPY
855 HAVE_DECL_MEMMEM
856 HAVE_MEMCHR
857 HAVE_FFSLL
858 HAVE_FFSL
859 HAVE_MBSLEN
860 GNULIB_STRVERSCMP
861 GNULIB_STRSIGNAL
862 GNULIB_STRERROR_R
863 GNULIB_STRERROR
864 GNULIB_MBSTOK_R
865 GNULIB_MBSSEP
866 GNULIB_MBSSPN
867 GNULIB_MBSPBRK
868 GNULIB_MBSCSPN
869 GNULIB_MBSCASESTR
870 GNULIB_MBSPCASECMP
871 GNULIB_MBSNCASECMP
872 GNULIB_MBSCASECMP
873 GNULIB_MBSSTR
874 GNULIB_MBSRCHR
875 GNULIB_MBSCHR
876 GNULIB_MBSNLEN
877 GNULIB_MBSLEN
878 GNULIB_STRTOK_R
879 GNULIB_STRCASESTR
880 GNULIB_STRSTR
881 GNULIB_STRSEP
882 GNULIB_STRPBRK
883 GNULIB_STRNLEN
884 GNULIB_STRNDUP
885 GNULIB_STRNCAT
886 GNULIB_STRDUP
887 GNULIB_STRCHRNUL
888 GNULIB_STPNCPY
889 GNULIB_STPCPY
890 GNULIB_RAWMEMCHR
891 GNULIB_MEMRCHR
892 GNULIB_MEMPCPY
893 GNULIB_MEMMEM
894 GNULIB_MEMCHR
895 GNULIB_FFSLL
896 GNULIB_FFSL
897 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
898 NEXT_INTTYPES_H
899 UINT64_MAX_EQ_ULONG_MAX
900 UINT32_MAX_LT_UINTMAX_MAX
901 PRIPTR_PREFIX
902 PRI_MACROS_BROKEN
903 INT64_MAX_EQ_LONG_MAX
904 INT32_MAX_LT_INTMAX_MAX
905 REPLACE_STRTOIMAX
906 HAVE_DECL_STRTOUMAX
907 HAVE_DECL_STRTOIMAX
908 HAVE_DECL_IMAXDIV
909 HAVE_DECL_IMAXABS
910 GNULIB_STRTOUMAX
911 GNULIB_STRTOIMAX
912 GNULIB_IMAXDIV
913 GNULIB_IMAXABS
914 GL_GENERATE_STDINT_H_FALSE
915 GL_GENERATE_STDINT_H_TRUE
916 STDINT_H
917 WINT_T_SUFFIX
918 WCHAR_T_SUFFIX
919 SIG_ATOMIC_T_SUFFIX
920 SIZE_T_SUFFIX
921 PTRDIFF_T_SUFFIX
922 HAVE_SIGNED_WINT_T
923 HAVE_SIGNED_WCHAR_T
924 HAVE_SIGNED_SIG_ATOMIC_T
925 BITSIZEOF_WINT_T
926 BITSIZEOF_WCHAR_T
927 BITSIZEOF_SIG_ATOMIC_T
928 BITSIZEOF_SIZE_T
929 BITSIZEOF_PTRDIFF_T
930 APPLE_UNIVERSAL_BUILD
931 HAVE_SYS_BITYPES_H
932 HAVE_SYS_INTTYPES_H
933 HAVE_STDINT_H
934 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
935 NEXT_STDINT_H
936 HAVE_SYS_TYPES_H
937 HAVE_INTTYPES_H
938 HAVE_WCHAR_H
939 HAVE_UNSIGNED_LONG_LONG_INT
940 HAVE_LONG_LONG_INT
941 HAVE_WINSOCK2_H
942 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
943 NEXT_SYS_TIME_H
944 REPLACE_STRUCT_TIMEVAL
945 REPLACE_GETTIMEOFDAY
946 HAVE_SYS_TIME_H
947 HAVE_STRUCT_TIMEVAL
948 HAVE_GETTIMEOFDAY
949 GNULIB_GETTIMEOFDAY
950 GNULIB_GL_UNISTD_H_GETOPT
951 GETOPT_H
952 HAVE_GETOPT_H
953 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
954 NEXT_GETOPT_H
955 GETLOADAVG_LIBS
956 REPLACE_WCTOMB
957 REPLACE_UNSETENV
958 REPLACE_STRTOD
959 REPLACE_SETENV
960 REPLACE_REALPATH
961 REPLACE_REALLOC
962 REPLACE_RANDOM_R
963 REPLACE_PUTENV
964 REPLACE_PTSNAME_R
965 REPLACE_PTSNAME
966 REPLACE_MKSTEMP
967 REPLACE_MBTOWC
968 REPLACE_MALLOC
969 REPLACE_CANONICALIZE_FILE_NAME
970 REPLACE_CALLOC
971 HAVE_DECL_UNSETENV
972 HAVE_UNLOCKPT
973 HAVE_SYS_LOADAVG_H
974 HAVE_STRUCT_RANDOM_DATA
975 HAVE_STRTOULL
976 HAVE_STRTOLL
977 HAVE_STRTOD
978 HAVE_DECL_SETENV
979 HAVE_SETENV
980 HAVE_SECURE_GETENV
981 HAVE_RPMATCH
982 HAVE_REALPATH
983 HAVE_RANDOM_R
984 HAVE_RANDOM_H
985 HAVE_RANDOM
986 HAVE_PTSNAME_R
987 HAVE_PTSNAME
988 HAVE_POSIX_OPENPT
989 HAVE_MKSTEMPS
990 HAVE_MKSTEMP
991 HAVE_MKOSTEMPS
992 HAVE_MKOSTEMP
993 HAVE_MKDTEMP
994 HAVE_GRANTPT
995 HAVE_GETSUBOPT
996 HAVE_DECL_GETLOADAVG
997 HAVE_CANONICALIZE_FILE_NAME
998 HAVE_ATOLL
999 HAVE__EXIT
1000 GNULIB_WCTOMB
1001 GNULIB_UNSETENV
1002 GNULIB_UNLOCKPT
1003 GNULIB_SYSTEM_POSIX
1004 GNULIB_STRTOULL
1005 GNULIB_STRTOLL
1006 GNULIB_STRTOD
1007 GNULIB_SETENV
1008 GNULIB_SECURE_GETENV
1009 GNULIB_RPMATCH
1010 GNULIB_REALPATH
1011 GNULIB_REALLOC_POSIX
1012 GNULIB_RANDOM_R
1013 GNULIB_RANDOM
1014 GNULIB_PUTENV
1015 GNULIB_PTSNAME_R
1016 GNULIB_PTSNAME
1017 GNULIB_POSIX_OPENPT
1018 GNULIB_MKSTEMPS
1019 GNULIB_MKSTEMP
1020 GNULIB_MKOSTEMPS
1021 GNULIB_MKOSTEMP
1022 GNULIB_MKDTEMP
1023 GNULIB_MBTOWC
1024 GNULIB_MALLOC_POSIX
1025 GNULIB_GRANTPT
1026 GNULIB_GETSUBOPT
1027 GNULIB_GETLOADAVG
1028 GNULIB_CANONICALIZE_FILE_NAME
1029 GNULIB_CALLOC_POSIX
1030 GNULIB_ATOLL
1031 GNULIB__EXIT
1032 REPLACE_UTIMENSAT
1033 REPLACE_STAT
1034 REPLACE_MKNOD
1035 REPLACE_MKFIFO
1036 REPLACE_MKDIR
1037 REPLACE_LSTAT
1038 REPLACE_FUTIMENS
1039 REPLACE_FSTATAT
1040 REPLACE_FSTAT
1041 HAVE_UTIMENSAT
1042 HAVE_MKNODAT
1043 HAVE_MKNOD
1044 HAVE_MKFIFOAT
1045 HAVE_MKFIFO
1046 HAVE_MKDIRAT
1047 HAVE_LSTAT
1048 HAVE_LCHMOD
1049 HAVE_FUTIMENS
1050 HAVE_FSTATAT
1051 HAVE_FCHMODAT
1052 GNULIB_UTIMENSAT
1053 GNULIB_STAT
1054 GNULIB_MKNODAT
1055 GNULIB_MKNOD
1056 GNULIB_MKFIFOAT
1057 GNULIB_MKFIFO
1058 GNULIB_MKDIRAT
1059 GNULIB_LSTAT
1060 GNULIB_LCHMOD
1061 GNULIB_FUTIMENS
1062 GNULIB_FSTATAT
1063 GNULIB_FSTAT
1064 GNULIB_FCHMODAT
1065 LIB_FDATASYNC
1066 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1067 NEXT_FCNTL_H
1068 REPLACE_OPENAT
1069 REPLACE_OPEN
1070 REPLACE_FCNTL
1071 HAVE_OPENAT
1072 HAVE_FCNTL
1073 GNULIB_OPENAT
1074 GNULIB_OPEN
1075 GNULIB_NONBLOCKING
1076 GNULIB_FCNTL
1077 GL_GENERATE_EXECINFO_H_FALSE
1078 GL_GENERATE_EXECINFO_H_TRUE
1079 LIB_EXECINFO
1080 EXECINFO_H
1081 EOVERFLOW_VALUE
1082 EOVERFLOW_HIDDEN
1083 ENOLINK_VALUE
1084 ENOLINK_HIDDEN
1085 EMULTIHOP_VALUE
1086 EMULTIHOP_HIDDEN
1087 GL_GENERATE_ERRNO_H_FALSE
1088 GL_GENERATE_ERRNO_H_TRUE
1089 ERRNO_H
1090 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1091 NEXT_ERRNO_H
1092 HAVE_DIRENT_H
1093 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1094 NEXT_DIRENT_H
1095 PRAGMA_COLUMNS
1096 PRAGMA_SYSTEM_HEADER
1097 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1098 INCLUDE_NEXT
1099 REPLACE_FDOPENDIR
1100 REPLACE_DIRFD
1101 REPLACE_CLOSEDIR
1102 REPLACE_OPENDIR
1103 HAVE_ALPHASORT
1104 HAVE_SCANDIR
1105 HAVE_FDOPENDIR
1106 HAVE_DECL_FDOPENDIR
1107 HAVE_DECL_DIRFD
1108 HAVE_CLOSEDIR
1109 HAVE_REWINDDIR
1110 HAVE_READDIR
1111 HAVE_OPENDIR
1112 GNULIB_ALPHASORT
1113 GNULIB_SCANDIR
1114 GNULIB_FDOPENDIR
1115 GNULIB_DIRFD
1116 GNULIB_CLOSEDIR
1117 GNULIB_REWINDDIR
1118 GNULIB_READDIR
1119 GNULIB_OPENDIR
1120 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1121 UNISTD_H_HAVE_WINSOCK2_H
1122 REPLACE_WRITE
1123 REPLACE_USLEEP
1124 REPLACE_UNLINKAT
1125 REPLACE_UNLINK
1126 REPLACE_TTYNAME_R
1127 REPLACE_SYMLINK
1128 REPLACE_SLEEP
1129 REPLACE_RMDIR
1130 REPLACE_READLINK
1131 REPLACE_READ
1132 REPLACE_PWRITE
1133 REPLACE_PREAD
1134 REPLACE_LSEEK
1135 REPLACE_LINKAT
1136 REPLACE_LINK
1137 REPLACE_LCHOWN
1138 REPLACE_ISATTY
1139 REPLACE_GETPAGESIZE
1140 REPLACE_GETGROUPS
1141 REPLACE_GETLOGIN_R
1142 REPLACE_GETDOMAINNAME
1143 REPLACE_GETCWD
1144 REPLACE_FTRUNCATE
1145 REPLACE_FCHOWNAT
1146 REPLACE_DUP2
1147 REPLACE_DUP
1148 REPLACE_CLOSE
1149 REPLACE_CHOWN
1150 HAVE_SYS_PARAM_H
1151 HAVE_OS_H
1152 HAVE_DECL_TTYNAME_R
1153 HAVE_DECL_SETHOSTNAME
1154 HAVE_DECL_GETUSERSHELL
1155 HAVE_DECL_GETPAGESIZE
1156 HAVE_DECL_GETLOGIN_R
1157 HAVE_DECL_GETDOMAINNAME
1158 HAVE_DECL_FDATASYNC
1159 HAVE_DECL_FCHDIR
1160 HAVE_DECL_ENVIRON
1161 HAVE_USLEEP
1162 HAVE_UNLINKAT
1163 HAVE_SYMLINKAT
1164 HAVE_SYMLINK
1165 HAVE_SLEEP
1166 HAVE_SETHOSTNAME
1167 HAVE_READLINKAT
1168 HAVE_READLINK
1169 HAVE_PWRITE
1170 HAVE_PREAD
1171 HAVE_PIPE2
1172 HAVE_PIPE
1173 HAVE_LINKAT
1174 HAVE_LINK
1175 HAVE_LCHOWN
1176 HAVE_GROUP_MEMBER
1177 HAVE_GETPAGESIZE
1178 HAVE_GETLOGIN
1179 HAVE_GETHOSTNAME
1180 HAVE_GETGROUPS
1181 HAVE_GETDTABLESIZE
1182 HAVE_FTRUNCATE
1183 HAVE_FSYNC
1184 HAVE_FDATASYNC
1185 HAVE_FCHOWNAT
1186 HAVE_FCHDIR
1187 HAVE_FACCESSAT
1188 HAVE_EUIDACCESS
1189 HAVE_DUP3
1190 HAVE_DUP2
1191 HAVE_CHOWN
1192 GNULIB_WRITE
1193 GNULIB_USLEEP
1194 GNULIB_UNLINKAT
1195 GNULIB_UNLINK
1196 GNULIB_UNISTD_H_SIGPIPE
1197 GNULIB_UNISTD_H_NONBLOCKING
1198 GNULIB_TTYNAME_R
1199 GNULIB_SYMLINKAT
1200 GNULIB_SYMLINK
1201 GNULIB_SLEEP
1202 GNULIB_SETHOSTNAME
1203 GNULIB_RMDIR
1204 GNULIB_READLINKAT
1205 GNULIB_READLINK
1206 GNULIB_READ
1207 GNULIB_PWRITE
1208 GNULIB_PREAD
1209 GNULIB_PIPE2
1210 GNULIB_PIPE
1211 GNULIB_LSEEK
1212 GNULIB_LINKAT
1213 GNULIB_LINK
1214 GNULIB_LCHOWN
1215 GNULIB_ISATTY
1216 GNULIB_GROUP_MEMBER
1217 GNULIB_GETUSERSHELL
1218 GNULIB_GETPAGESIZE
1219 GNULIB_GETLOGIN_R
1220 GNULIB_GETLOGIN
1221 GNULIB_GETHOSTNAME
1222 GNULIB_GETGROUPS
1223 GNULIB_GETDTABLESIZE
1224 GNULIB_GETDOMAINNAME
1225 GNULIB_GETCWD
1226 GNULIB_FTRUNCATE
1227 GNULIB_FSYNC
1228 GNULIB_FDATASYNC
1229 GNULIB_FCHOWNAT
1230 GNULIB_FCHDIR
1231 GNULIB_FACCESSAT
1232 GNULIB_EUIDACCESS
1233 GNULIB_ENVIRON
1234 GNULIB_DUP3
1235 GNULIB_DUP2
1236 GNULIB_DUP
1237 GNULIB_CLOSE
1238 GNULIB_CHOWN
1239 GNULIB_CHDIR
1240 LIB_CLOCK_GETTIME
1241 GL_GENERATE_ALLOCA_H_FALSE
1242 GL_GENERATE_ALLOCA_H_TRUE
1243 ALLOCA_H
1244 ALLOCA
1245 GL_COND_LIBTOOL_FALSE
1246 GL_COND_LIBTOOL_TRUE
1247 POST_ALLOC_OBJ
1248 PRE_ALLOC_OBJ
1249 CYGWIN_OBJ
1250 RALLOC_OBJ
1251 OLDXMENU_DEPS
1252 LIBX_OTHER
1253 LIBXMENU
1254 OLDXMENU
1255 OLDXMENU_TARGET
1256 LIBXT_OTHER
1257 TOOLKIT_LIBW
1258 WIDGET_OBJ
1259 XOBJ
1260 XMENU_OBJ
1261 FONT_OBJ
1262 OTHER_FILES
1263 GNU_OBJC_CFLAGS
1264 ns_appsrc
1265 ns_appresdir
1266 ns_appbindir
1267 ns_appdir
1268 X_TOOLKIT_TYPE
1269 GNUSTEP_CFLAGS
1270 C_SWITCH_X_SITE
1271 LD_SWITCH_X_SITE
1272 gameuser
1273 gamedir
1274 bitmapdir
1275 archlibdir
1276 etcdir
1277 x_default_search_path
1278 lisppath
1279 locallisppath
1280 standardlisppath
1281 leimdir
1282 lispdir
1283 srcdir
1284 canonical
1285 configuration
1286 version
1287 copyright
1288 KRB4LIB
1289 DESLIB
1290 KRB5LIB
1291 CRYPTOLIB
1292 COM_ERRLIB
1293 LIBRESOLV
1294 LIBHESIOD
1295 TERMCAP_OBJ
1296 LIBS_TERMCAP
1297 BLESSMAIL_TARGET
1298 LIBS_MAIL
1299 liblockfile
1300 LIBXML2_LIBS
1301 LIBXML2_CFLAGS
1302 XINERAMA_LIBS
1303 XINERAMA_CFLAGS
1304 XRANDR_LIBS
1305 XRANDR_CFLAGS
1306 LIBXSM
1307 LIBGPM
1308 LIBGIF
1309 LIBTIFF
1310 LIBPNG
1311 LIBJPEG
1312 LIBXPM
1313 M17N_FLT_LIBS
1314 M17N_FLT_CFLAGS
1315 LIBOTF_LIBS
1316 LIBOTF_CFLAGS
1317 FREETYPE_LIBS
1318 FREETYPE_CFLAGS
1319 XFT_LIBS
1320 XFT_CFLAGS
1321 FONTCONFIG_LIBS
1322 FONTCONFIG_CFLAGS
1323 LIBXMU
1324 LIBXTR6
1325 LIBGNUTLS_LIBS
1326 LIBGNUTLS_CFLAGS
1327 LIBSELINUX_LIBS
1328 SETTINGS_LIBS
1329 SETTINGS_CFLAGS
1330 GOBJECT_LIBS
1331 GOBJECT_CFLAGS
1332 GCONF_LIBS
1333 GCONF_CFLAGS
1334 GSETTINGS_LIBS
1335 GSETTINGS_CFLAGS
1336 DBUS_OBJ
1337 DBUS_LIBS
1338 DBUS_CFLAGS
1339 GTK_OBJ
1340 GTK_LIBS
1341 GTK_CFLAGS
1342 IMAGEMAGICK_LIBS
1343 IMAGEMAGICK_CFLAGS
1344 RSVG_LIBS
1345 RSVG_CFLAGS
1346 LIB_PTHREAD
1347 VMLIMIT_OBJ
1348 GMALLOC_OBJ
1349 HAVE_XSERVER
1350 W32_RES_LINK
1351 W32_RES
1352 W32_LIBS
1353 W32_OBJ
1354 WINDRES
1355 NS_OBJC_OBJ
1356 NS_OBJ
1357 ns_self_contained
1358 INSTALL_ARCH_INDEP_EXTRA
1359 LIBS_GNUSTEP
1360 LD_SWITCH_X_SITE_RPATH
1361 XMKMF
1362 DEPFLAGS
1363 MKDEPDIR
1364 CFLAGS_SOUND
1365 ALSA_LIBS
1366 ALSA_CFLAGS
1367 LIBSOUND
1368 PKG_CONFIG
1369 LIB_MATH
1370 LIBS_SYSTEM
1371 C_SWITCH_SYSTEM
1372 UNEXEC_OBJ
1373 C_SWITCH_MACHINE
1374 LD_SWITCH_SYSTEM
1375 CANNOT_DUMP
1376 INFO_OPTS
1377 INFO_EXT
1378 HAVE_MAKEINFO
1379 PAXCTL
1380 GZIP_PROG
1381 INSTALL_INFO
1382 LN_S_FILEONLY
1383 GNULIB_WARN_CFLAGS
1384 WARN_CFLAGS
1385 WERROR_CFLAGS
1386 RANLIB
1387 ARFLAGS
1388 AR
1389 EGREP
1390 GREP
1391 CPP
1392 am__fastdepCC_FALSE
1393 am__fastdepCC_TRUE
1394 CCDEPMODE
1395 AMDEPBACKSLASH
1396 AMDEP_FALSE
1397 AMDEP_TRUE
1398 am__quote
1399 am__include
1400 DEPDIR
1401 OBJEXT
1402 EXEEXT
1403 ac_ct_CC
1404 CPPFLAGS
1405 LDFLAGS
1406 CFLAGS
1407 CC
1408 host_os
1409 host_vendor
1410 host_cpu
1411 host
1412 build_os
1413 build_vendor
1414 build_cpu
1415 build
1416 PROFILING_CFLAGS
1417 GZIP_INFO
1418 cache_file
1419 am__untar
1420 am__tar
1421 AMTAR
1422 am__leading_dot
1423 SET_MAKE
1424 AWK
1425 mkdir_p
1426 MKDIR_P
1427 INSTALL_STRIP_PROGRAM
1428 STRIP
1429 install_sh
1430 MAKEINFO
1431 AUTOHEADER
1432 AUTOMAKE
1433 AUTOCONF
1434 ACLOCAL
1435 VERSION
1436 PACKAGE
1437 CYGPATH_W
1438 am__isrc
1439 INSTALL_DATA
1440 INSTALL_SCRIPT
1441 INSTALL_PROGRAM
1442 target_alias
1443 host_alias
1444 build_alias
1445 LIBS
1446 ECHO_T
1447 ECHO_N
1448 ECHO_C
1449 DEFS
1450 mandir
1451 localedir
1452 libdir
1453 psdir
1454 pdfdir
1455 dvidir
1456 htmldir
1457 infodir
1458 docdir
1459 oldincludedir
1460 includedir
1461 localstatedir
1462 sharedstatedir
1463 sysconfdir
1464 datadir
1465 datarootdir
1466 libexecdir
1467 sbindir
1468 bindir
1469 program_transform_name
1470 prefix
1471 exec_prefix
1472 PACKAGE_URL
1473 PACKAGE_BUGREPORT
1474 PACKAGE_STRING
1475 PACKAGE_VERSION
1476 PACKAGE_TARNAME
1477 PACKAGE_NAME
1478 PATH_SEPARATOR
1479 SHELL'
1480 ac_subst_files='deps_frag
1481 lisp_frag'
1482 ac_user_opts='
1483 enable_option_checking
1484 with_all
1485 with_pop
1486 with_kerberos
1487 with_kerberos5
1488 with_hesiod
1489 with_mmdf
1490 with_mail_unlink
1491 with_mailhost
1492 with_sound
1493 with_x_toolkit
1494 with_wide_int
1495 with_xpm
1496 with_jpeg
1497 with_tiff
1498 with_gif
1499 with_png
1500 with_rsvg
1501 with_xml2
1502 with_imagemagick
1503 with_xft
1504 with_libotf
1505 with_m17n_flt
1506 with_toolkit_scroll_bars
1507 with_xaw3d
1508 with_xim
1509 with_ns
1510 with_w32
1511 with_gpm
1512 with_dbus
1513 with_gconf
1514 with_gsettings
1515 with_selinux
1516 with_gnutls
1517 with_inotify
1518 with_makeinfo
1519 with_compress_info
1520 with_pkg_config_prog
1521 with_gameuser
1522 with_gnustep_conf
1523 enable_ns_self_contained
1524 enable_locallisppath
1525 enable_checking
1526 enable_check_lisp_object_type
1527 enable_profiling
1528 enable_autodepend
1529 enable_gtk_deprecation_warnings
1530 enable_dependency_tracking
1531 enable_largefile
1532 enable_gcc_warnings
1533 enable_link_time_optimization
1534 with_x
1535 enable_acl
1536 '
1537 ac_precious_vars='build_alias
1538 host_alias
1539 target_alias
1540 CC
1541 CFLAGS
1542 LDFLAGS
1543 LIBS
1544 CPPFLAGS
1545 CPP
1546 XMKMF'
1547
1548
1549 # Initialize some variables set by options.
1550 ac_init_help=
1551 ac_init_version=false
1552 ac_unrecognized_opts=
1553 ac_unrecognized_sep=
1554 # The variables have the same names as the options, with
1555 # dashes changed to underlines.
1556 cache_file=/dev/null
1557 exec_prefix=NONE
1558 no_create=
1559 no_recursion=
1560 prefix=NONE
1561 program_prefix=NONE
1562 program_suffix=NONE
1563 program_transform_name=s,x,x,
1564 silent=
1565 site=
1566 srcdir=
1567 verbose=
1568 x_includes=NONE
1569 x_libraries=NONE
1570
1571 # Installation directory options.
1572 # These are left unexpanded so users can "make install exec_prefix=/foo"
1573 # and all the variables that are supposed to be based on exec_prefix
1574 # by default will actually change.
1575 # Use braces instead of parens because sh, perl, etc. also accept them.
1576 # (The list follows the same order as the GNU Coding Standards.)
1577 bindir='${exec_prefix}/bin'
1578 sbindir='${exec_prefix}/sbin'
1579 libexecdir='${exec_prefix}/libexec'
1580 datarootdir='${prefix}/share'
1581 datadir='${datarootdir}'
1582 sysconfdir='${prefix}/etc'
1583 sharedstatedir='${prefix}/com'
1584 localstatedir='${prefix}/var'
1585 includedir='${prefix}/include'
1586 oldincludedir='/usr/include'
1587 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1588 infodir='${datarootdir}/info'
1589 htmldir='${docdir}'
1590 dvidir='${docdir}'
1591 pdfdir='${docdir}'
1592 psdir='${docdir}'
1593 libdir='${exec_prefix}/lib'
1594 localedir='${datarootdir}/locale'
1595 mandir='${datarootdir}/man'
1596
1597 ac_prev=
1598 ac_dashdash=
1599 for ac_option
1600 do
1601 # If the previous option needs an argument, assign it.
1602 if test -n "$ac_prev"; then
1603 eval $ac_prev=\$ac_option
1604 ac_prev=
1605 continue
1606 fi
1607
1608 case $ac_option in
1609 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1610 *) ac_optarg=yes ;;
1611 esac
1612
1613 # Accept the important Cygnus configure options, so we can diagnose typos.
1614
1615 case $ac_dashdash$ac_option in
1616 --)
1617 ac_dashdash=yes ;;
1618
1619 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1620 ac_prev=bindir ;;
1621 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1622 bindir=$ac_optarg ;;
1623
1624 -build | --build | --buil | --bui | --bu)
1625 ac_prev=build_alias ;;
1626 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1627 build_alias=$ac_optarg ;;
1628
1629 -cache-file | --cache-file | --cache-fil | --cache-fi \
1630 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1631 ac_prev=cache_file ;;
1632 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1633 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1634 cache_file=$ac_optarg ;;
1635
1636 --config-cache | -C)
1637 cache_file=config.cache ;;
1638
1639 -datadir | --datadir | --datadi | --datad)
1640 ac_prev=datadir ;;
1641 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1642 datadir=$ac_optarg ;;
1643
1644 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1645 | --dataroo | --dataro | --datar)
1646 ac_prev=datarootdir ;;
1647 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1648 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1649 datarootdir=$ac_optarg ;;
1650
1651 -disable-* | --disable-*)
1652 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1653 # Reject names that are not valid shell variable names.
1654 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1655 as_fn_error "invalid feature name: $ac_useropt"
1656 ac_useropt_orig=$ac_useropt
1657 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1658 case $ac_user_opts in
1659 *"
1660 "enable_$ac_useropt"
1661 "*) ;;
1662 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1663 ac_unrecognized_sep=', ';;
1664 esac
1665 eval enable_$ac_useropt=no ;;
1666
1667 -docdir | --docdir | --docdi | --doc | --do)
1668 ac_prev=docdir ;;
1669 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1670 docdir=$ac_optarg ;;
1671
1672 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1673 ac_prev=dvidir ;;
1674 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1675 dvidir=$ac_optarg ;;
1676
1677 -enable-* | --enable-*)
1678 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1679 # Reject names that are not valid shell variable names.
1680 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1681 as_fn_error "invalid feature name: $ac_useropt"
1682 ac_useropt_orig=$ac_useropt
1683 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1684 case $ac_user_opts in
1685 *"
1686 "enable_$ac_useropt"
1687 "*) ;;
1688 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1689 ac_unrecognized_sep=', ';;
1690 esac
1691 eval enable_$ac_useropt=\$ac_optarg ;;
1692
1693 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1694 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1695 | --exec | --exe | --ex)
1696 ac_prev=exec_prefix ;;
1697 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1698 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1699 | --exec=* | --exe=* | --ex=*)
1700 exec_prefix=$ac_optarg ;;
1701
1702 -gas | --gas | --ga | --g)
1703 # Obsolete; use --with-gas.
1704 with_gas=yes ;;
1705
1706 -help | --help | --hel | --he | -h)
1707 ac_init_help=long ;;
1708 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1709 ac_init_help=recursive ;;
1710 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1711 ac_init_help=short ;;
1712
1713 -host | --host | --hos | --ho)
1714 ac_prev=host_alias ;;
1715 -host=* | --host=* | --hos=* | --ho=*)
1716 host_alias=$ac_optarg ;;
1717
1718 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1719 ac_prev=htmldir ;;
1720 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1721 | --ht=*)
1722 htmldir=$ac_optarg ;;
1723
1724 -includedir | --includedir | --includedi | --included | --include \
1725 | --includ | --inclu | --incl | --inc)
1726 ac_prev=includedir ;;
1727 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1728 | --includ=* | --inclu=* | --incl=* | --inc=*)
1729 includedir=$ac_optarg ;;
1730
1731 -infodir | --infodir | --infodi | --infod | --info | --inf)
1732 ac_prev=infodir ;;
1733 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1734 infodir=$ac_optarg ;;
1735
1736 -libdir | --libdir | --libdi | --libd)
1737 ac_prev=libdir ;;
1738 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1739 libdir=$ac_optarg ;;
1740
1741 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1742 | --libexe | --libex | --libe)
1743 ac_prev=libexecdir ;;
1744 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1745 | --libexe=* | --libex=* | --libe=*)
1746 libexecdir=$ac_optarg ;;
1747
1748 -localedir | --localedir | --localedi | --localed | --locale)
1749 ac_prev=localedir ;;
1750 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1751 localedir=$ac_optarg ;;
1752
1753 -localstatedir | --localstatedir | --localstatedi | --localstated \
1754 | --localstate | --localstat | --localsta | --localst | --locals)
1755 ac_prev=localstatedir ;;
1756 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1757 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1758 localstatedir=$ac_optarg ;;
1759
1760 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1761 ac_prev=mandir ;;
1762 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1763 mandir=$ac_optarg ;;
1764
1765 -nfp | --nfp | --nf)
1766 # Obsolete; use --without-fp.
1767 with_fp=no ;;
1768
1769 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1770 | --no-cr | --no-c | -n)
1771 no_create=yes ;;
1772
1773 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1774 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1775 no_recursion=yes ;;
1776
1777 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1778 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1779 | --oldin | --oldi | --old | --ol | --o)
1780 ac_prev=oldincludedir ;;
1781 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1782 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1783 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1784 oldincludedir=$ac_optarg ;;
1785
1786 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1787 ac_prev=prefix ;;
1788 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1789 prefix=$ac_optarg ;;
1790
1791 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1792 | --program-pre | --program-pr | --program-p)
1793 ac_prev=program_prefix ;;
1794 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1795 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1796 program_prefix=$ac_optarg ;;
1797
1798 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1799 | --program-suf | --program-su | --program-s)
1800 ac_prev=program_suffix ;;
1801 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1802 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1803 program_suffix=$ac_optarg ;;
1804
1805 -program-transform-name | --program-transform-name \
1806 | --program-transform-nam | --program-transform-na \
1807 | --program-transform-n | --program-transform- \
1808 | --program-transform | --program-transfor \
1809 | --program-transfo | --program-transf \
1810 | --program-trans | --program-tran \
1811 | --progr-tra | --program-tr | --program-t)
1812 ac_prev=program_transform_name ;;
1813 -program-transform-name=* | --program-transform-name=* \
1814 | --program-transform-nam=* | --program-transform-na=* \
1815 | --program-transform-n=* | --program-transform-=* \
1816 | --program-transform=* | --program-transfor=* \
1817 | --program-transfo=* | --program-transf=* \
1818 | --program-trans=* | --program-tran=* \
1819 | --progr-tra=* | --program-tr=* | --program-t=*)
1820 program_transform_name=$ac_optarg ;;
1821
1822 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1823 ac_prev=pdfdir ;;
1824 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1825 pdfdir=$ac_optarg ;;
1826
1827 -psdir | --psdir | --psdi | --psd | --ps)
1828 ac_prev=psdir ;;
1829 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1830 psdir=$ac_optarg ;;
1831
1832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1833 | -silent | --silent | --silen | --sile | --sil)
1834 silent=yes ;;
1835
1836 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1837 ac_prev=sbindir ;;
1838 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1839 | --sbi=* | --sb=*)
1840 sbindir=$ac_optarg ;;
1841
1842 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1843 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1844 | --sharedst | --shareds | --shared | --share | --shar \
1845 | --sha | --sh)
1846 ac_prev=sharedstatedir ;;
1847 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1848 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1849 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1850 | --sha=* | --sh=*)
1851 sharedstatedir=$ac_optarg ;;
1852
1853 -site | --site | --sit)
1854 ac_prev=site ;;
1855 -site=* | --site=* | --sit=*)
1856 site=$ac_optarg ;;
1857
1858 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1859 ac_prev=srcdir ;;
1860 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1861 srcdir=$ac_optarg ;;
1862
1863 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1864 | --syscon | --sysco | --sysc | --sys | --sy)
1865 ac_prev=sysconfdir ;;
1866 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1867 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1868 sysconfdir=$ac_optarg ;;
1869
1870 -target | --target | --targe | --targ | --tar | --ta | --t)
1871 ac_prev=target_alias ;;
1872 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1873 target_alias=$ac_optarg ;;
1874
1875 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1876 verbose=yes ;;
1877
1878 -version | --version | --versio | --versi | --vers | -V)
1879 ac_init_version=: ;;
1880
1881 -with-* | --with-*)
1882 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1893 ac_unrecognized_sep=', ';;
1894 esac
1895 eval with_$ac_useropt=\$ac_optarg ;;
1896
1897 -without-* | --without-*)
1898 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1899 # Reject names that are not valid shell variable names.
1900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1901 as_fn_error "invalid package name: $ac_useropt"
1902 ac_useropt_orig=$ac_useropt
1903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1904 case $ac_user_opts in
1905 *"
1906 "with_$ac_useropt"
1907 "*) ;;
1908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1909 ac_unrecognized_sep=', ';;
1910 esac
1911 eval with_$ac_useropt=no ;;
1912
1913 --x)
1914 # Obsolete; use --with-x.
1915 with_x=yes ;;
1916
1917 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1918 | --x-incl | --x-inc | --x-in | --x-i)
1919 ac_prev=x_includes ;;
1920 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1921 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1922 x_includes=$ac_optarg ;;
1923
1924 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1925 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1926 ac_prev=x_libraries ;;
1927 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1928 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1929 x_libraries=$ac_optarg ;;
1930
1931 -*) as_fn_error "unrecognized option: \`$ac_option'
1932 Try \`$0 --help' for more information."
1933 ;;
1934
1935 *=*)
1936 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1937 # Reject names that are not valid shell variable names.
1938 case $ac_envvar in #(
1939 '' | [0-9]* | *[!_$as_cr_alnum]* )
1940 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1941 esac
1942 eval $ac_envvar=\$ac_optarg
1943 export $ac_envvar ;;
1944
1945 *)
1946 # FIXME: should be removed in autoconf 3.0.
1947 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1948 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1949 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1950 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1951 ;;
1952
1953 esac
1954 done
1955
1956 if test -n "$ac_prev"; then
1957 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1958 as_fn_error "missing argument to $ac_option"
1959 fi
1960
1961 if test -n "$ac_unrecognized_opts"; then
1962 case $enable_option_checking in
1963 no) ;;
1964 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1965 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1966 esac
1967 fi
1968
1969 # Check all directory arguments for consistency.
1970 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1971 datadir sysconfdir sharedstatedir localstatedir includedir \
1972 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1973 libdir localedir mandir
1974 do
1975 eval ac_val=\$$ac_var
1976 # Remove trailing slashes.
1977 case $ac_val in
1978 */ )
1979 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1980 eval $ac_var=\$ac_val;;
1981 esac
1982 # Be sure to have absolute directory names.
1983 case $ac_val in
1984 [\\/$]* | ?:[\\/]* ) continue;;
1985 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1986 esac
1987 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1988 done
1989
1990 # There might be people who depend on the old broken behavior: `$host'
1991 # used to hold the argument of --host etc.
1992 # FIXME: To remove some day.
1993 build=$build_alias
1994 host=$host_alias
1995 target=$target_alias
1996
1997 # FIXME: To remove some day.
1998 if test "x$host_alias" != x; then
1999 if test "x$build_alias" = x; then
2000 cross_compiling=maybe
2001 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2002 If a cross compiler is detected then cross compile mode will be used." >&2
2003 elif test "x$build_alias" != "x$host_alias"; then
2004 cross_compiling=yes
2005 fi
2006 fi
2007
2008 ac_tool_prefix=
2009 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2010
2011 test "$silent" = yes && exec 6>/dev/null
2012
2013
2014 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2015 ac_ls_di=`ls -di .` &&
2016 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2017 as_fn_error "working directory cannot be determined"
2018 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2019 as_fn_error "pwd does not report name of working directory"
2020
2021
2022 # Find the source files, if location was not specified.
2023 if test -z "$srcdir"; then
2024 ac_srcdir_defaulted=yes
2025 # Try the directory containing this script, then the parent directory.
2026 ac_confdir=`$as_dirname -- "$as_myself" ||
2027 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2028 X"$as_myself" : 'X\(//\)[^/]' \| \
2029 X"$as_myself" : 'X\(//\)$' \| \
2030 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2031 $as_echo X"$as_myself" |
2032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2033 s//\1/
2034 q
2035 }
2036 /^X\(\/\/\)[^/].*/{
2037 s//\1/
2038 q
2039 }
2040 /^X\(\/\/\)$/{
2041 s//\1/
2042 q
2043 }
2044 /^X\(\/\).*/{
2045 s//\1/
2046 q
2047 }
2048 s/.*/./; q'`
2049 srcdir=$ac_confdir
2050 if test ! -r "$srcdir/$ac_unique_file"; then
2051 srcdir=..
2052 fi
2053 else
2054 ac_srcdir_defaulted=no
2055 fi
2056 if test ! -r "$srcdir/$ac_unique_file"; then
2057 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2058 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2059 fi
2060 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2061 ac_abs_confdir=`(
2062 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2063 pwd)`
2064 # When building in place, set srcdir=.
2065 if test "$ac_abs_confdir" = "$ac_pwd"; then
2066 srcdir=.
2067 fi
2068 # Remove unnecessary trailing slashes from srcdir.
2069 # Double slashes in file names in object file debugging info
2070 # mess up M-x gdb in Emacs.
2071 case $srcdir in
2072 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2073 esac
2074 for ac_var in $ac_precious_vars; do
2075 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2076 eval ac_env_${ac_var}_value=\$${ac_var}
2077 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2078 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2079 done
2080
2081 #
2082 # Report the --help message.
2083 #
2084 if test "$ac_init_help" = "long"; then
2085 # Omit some internal or obsolete options to make the list less imposing.
2086 # This message is too long to be a string in the A/UX 3.1 sh.
2087 cat <<_ACEOF
2088 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2089
2090 Usage: $0 [OPTION]... [VAR=VALUE]...
2091
2092 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2093 VAR=VALUE. See below for descriptions of some of the useful variables.
2094
2095 Defaults for the options are specified in brackets.
2096
2097 Configuration:
2098 -h, --help display this help and exit
2099 --help=short display options specific to this package
2100 --help=recursive display the short help of all the included packages
2101 -V, --version display version information and exit
2102 -q, --quiet, --silent do not print \`checking...' messages
2103 --cache-file=FILE cache test results in FILE [disabled]
2104 -C, --config-cache alias for \`--cache-file=config.cache'
2105 -n, --no-create do not create output files
2106 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2107
2108 Installation directories:
2109 --prefix=PREFIX install architecture-independent files in PREFIX
2110 [$ac_default_prefix]
2111 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2112 [PREFIX]
2113
2114 By default, \`make install' will install all the files in
2115 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2116 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2117 for instance \`--prefix=\$HOME'.
2118
2119 For better control, use the options below.
2120
2121 Fine tuning of the installation directories:
2122 --bindir=DIR user executables [EPREFIX/bin]
2123 --sbindir=DIR system admin executables [EPREFIX/sbin]
2124 --libexecdir=DIR program executables [EPREFIX/libexec]
2125 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2126 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2127 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2128 --libdir=DIR object code libraries [EPREFIX/lib]
2129 --includedir=DIR C header files [PREFIX/include]
2130 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2131 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2132 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2133 --infodir=DIR info documentation [DATAROOTDIR/info]
2134 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2135 --mandir=DIR man documentation [DATAROOTDIR/man]
2136 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2137 --htmldir=DIR html documentation [DOCDIR]
2138 --dvidir=DIR dvi documentation [DOCDIR]
2139 --pdfdir=DIR pdf documentation [DOCDIR]
2140 --psdir=DIR ps documentation [DOCDIR]
2141 _ACEOF
2142
2143 cat <<\_ACEOF
2144
2145 Program names:
2146 --program-prefix=PREFIX prepend PREFIX to installed program names
2147 --program-suffix=SUFFIX append SUFFIX to installed program names
2148 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2149
2150 X features:
2151 --x-includes=DIR X include files are in DIR
2152 --x-libraries=DIR X library files are in DIR
2153
2154 System types:
2155 --build=BUILD configure for building on BUILD [guessed]
2156 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2157 _ACEOF
2158 fi
2159
2160 if test -n "$ac_init_help"; then
2161 case $ac_init_help in
2162 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2163 esac
2164 cat <<\_ACEOF
2165
2166 Optional Features:
2167 --disable-option-checking ignore unrecognized --enable/--with options
2168 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2169 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2170 --disable-ns-self-contained
2171 disable self contained build under NeXTstep
2172 --enable-locallisppath=PATH
2173 directories Emacs should search for lisp files
2174 specific to this site
2175 --enable-checking[=LIST]
2176 enable expensive run-time checks. With LIST, enable
2177 only specific categories of checks. Categories are:
2178 all,yes,no. Flags are: stringbytes, stringoverrun,
2179 stringfreelist, xmallocoverrun, conslist, glyphs
2180 --enable-check-lisp-object-type
2181 enable compile time checks for the Lisp_Object data
2182 type. This is useful for development for catching
2183 certain types of bugs.
2184 --enable-profiling build emacs with low-level, gprof profiling support.
2185 Mainly useful for debugging Emacs itself. May not
2186 work on all platforms. Stops profiler.el working.
2187 --enable-autodepend automatically generate dependencies to .h-files.
2188 Requires GNU Make and Gcc. Enabled if GNU Make and
2189 Gcc is found
2190 --enable-gtk-deprecation-warnings
2191 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2192 --disable-dependency-tracking speeds up one-time build
2193 --enable-dependency-tracking do not reject slow dependency extractors
2194 --disable-largefile omit support for large files
2195 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2196 intended for developers, and may generate false
2197 alarms when used with older or non-GNU development
2198 tools.
2199 --enable-link-time-optimization
2200 build emacs with link-time optimization. This is
2201 supported only for GCC since 4.5.0.
2202 --disable-acl do not support ACLs
2203
2204 Optional Packages:
2205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2207 --without-all omit almost all features and build small executable
2208 with minimal dependencies
2209 --without-pop don't support POP mail retrieval with movemail
2210 --with-kerberos support Kerberos-authenticated POP
2211 --with-kerberos5 support Kerberos version 5 authenticated POP
2212 --with-hesiod support Hesiod to get the POP server host
2213 --with-mmdf support MMDF mailboxes
2214 --with-mail-unlink unlink, rather than empty, mail spool after reading
2215 --with-mailhost=HOSTNAME
2216 string giving default POP mail host
2217 --without-sound don't compile with sound support
2218 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2219 gtk3, lucid or athena, motif, no)
2220 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2221 --without-xpm don't compile with XPM image support
2222 --without-jpeg don't compile with JPEG image support
2223 --without-tiff don't compile with TIFF image support
2224 --without-gif don't compile with GIF image support
2225 --without-png don't compile with PNG image support
2226 --without-rsvg don't compile with SVG image support
2227 --without-xml2 don't compile with XML parsing support
2228 --without-imagemagick don't compile with ImageMagick image support
2229 --without-xft don't use XFT for anti aliased fonts
2230 --without-libotf don't use libotf for OpenType font support
2231 --without-m17n-flt don't use m17n-flt for text shaping
2232 --without-toolkit-scroll-bars
2233 don't use Motif or Xaw3d scroll bars
2234 --without-xaw3d don't use Xaw3d
2235 --without-xim don't use X11 XIM
2236 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2237 --with-w32 use native MS Windows GUI
2238 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2239 console
2240 --without-dbus don't compile with D-Bus support
2241 --without-gconf don't compile with GConf support
2242 --without-gsettings don't compile with GSettings support
2243 --without-selinux don't compile with SELinux support
2244 --without-gnutls don't use -lgnutls for SSL/TLS support
2245 --without-inotify don't compile with inotify (file-watch) support
2246 --without-makeinfo don't require makeinfo for building manuals
2247 --without-compress-info don't compress the installed Info pages
2248 --with-pkg-config-prog=FILENAME
2249 file name of pkg-config for finding GTK and librsvg
2250 --with-gameuser=USER user for shared game score files
2251 --with-gnustep-conf=FILENAME
2252 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2253 or /etc/GNUstep/GNUstep.conf
2254 --with-x use the X Window System
2255
2256 Some influential environment variables:
2257 CC C compiler command
2258 CFLAGS C compiler flags
2259 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2260 nonstandard directory <lib dir>
2261 LIBS libraries to pass to the linker, e.g. -l<library>
2262 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2263 you have headers in a nonstandard directory <include dir>
2264 CPP C preprocessor
2265 XMKMF Path to xmkmf, Makefile generator for X Window System
2266
2267 Use these variables to override the choices made by `configure' or to help
2268 it to find libraries and programs with nonstandard names/locations.
2269
2270 Report bugs to the package provider.
2271 _ACEOF
2272 ac_status=$?
2273 fi
2274
2275 if test "$ac_init_help" = "recursive"; then
2276 # If there are subdirs, report their specific --help.
2277 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2278 test -d "$ac_dir" ||
2279 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2280 continue
2281 ac_builddir=.
2282
2283 case "$ac_dir" in
2284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2285 *)
2286 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2287 # A ".." for each directory in $ac_dir_suffix.
2288 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2289 case $ac_top_builddir_sub in
2290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2292 esac ;;
2293 esac
2294 ac_abs_top_builddir=$ac_pwd
2295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2296 # for backward compatibility:
2297 ac_top_builddir=$ac_top_build_prefix
2298
2299 case $srcdir in
2300 .) # We are building in place.
2301 ac_srcdir=.
2302 ac_top_srcdir=$ac_top_builddir_sub
2303 ac_abs_top_srcdir=$ac_pwd ;;
2304 [\\/]* | ?:[\\/]* ) # Absolute name.
2305 ac_srcdir=$srcdir$ac_dir_suffix;
2306 ac_top_srcdir=$srcdir
2307 ac_abs_top_srcdir=$srcdir ;;
2308 *) # Relative name.
2309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2310 ac_top_srcdir=$ac_top_build_prefix$srcdir
2311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2312 esac
2313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2314
2315 cd "$ac_dir" || { ac_status=$?; continue; }
2316 # Check for guested configure.
2317 if test -f "$ac_srcdir/configure.gnu"; then
2318 echo &&
2319 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2320 elif test -f "$ac_srcdir/configure"; then
2321 echo &&
2322 $SHELL "$ac_srcdir/configure" --help=recursive
2323 else
2324 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2325 fi || ac_status=$?
2326 cd "$ac_pwd" || { ac_status=$?; break; }
2327 done
2328 fi
2329
2330 test -n "$ac_init_help" && exit $ac_status
2331 if $ac_init_version; then
2332 cat <<\_ACEOF
2333 emacs configure 24.3.50
2334 generated by GNU Autoconf 2.65
2335
2336 Copyright (C) 2009 Free Software Foundation, Inc.
2337 This configure script is free software; the Free Software Foundation
2338 gives unlimited permission to copy, distribute and modify it.
2339 _ACEOF
2340 exit
2341 fi
2342
2343 ## ------------------------ ##
2344 ## Autoconf initialization. ##
2345 ## ------------------------ ##
2346
2347 # ac_fn_c_try_compile LINENO
2348 # --------------------------
2349 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2350 ac_fn_c_try_compile ()
2351 {
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 rm -f conftest.$ac_objext
2354 if { { ac_try="$ac_compile"
2355 case "(($ac_try" in
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2358 esac
2359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2360 $as_echo "$ac_try_echo"; } >&5
2361 (eval "$ac_compile") 2>conftest.err
2362 ac_status=$?
2363 if test -s conftest.err; then
2364 grep -v '^ *+' conftest.err >conftest.er1
2365 cat conftest.er1 >&5
2366 mv -f conftest.er1 conftest.err
2367 fi
2368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369 test $ac_status = 0; } && {
2370 test -z "$ac_c_werror_flag" ||
2371 test ! -s conftest.err
2372 } && test -s conftest.$ac_objext; then :
2373 ac_retval=0
2374 else
2375 $as_echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 ac_retval=1
2379 fi
2380 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2381 as_fn_set_status $ac_retval
2382
2383 } # ac_fn_c_try_compile
2384
2385 # ac_fn_c_try_cpp LINENO
2386 # ----------------------
2387 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2388 ac_fn_c_try_cpp ()
2389 {
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 if { { ac_try="$ac_cpp conftest.$ac_ext"
2392 case "(($ac_try" in
2393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394 *) ac_try_echo=$ac_try;;
2395 esac
2396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397 $as_echo "$ac_try_echo"; } >&5
2398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2399 ac_status=$?
2400 if test -s conftest.err; then
2401 grep -v '^ *+' conftest.err >conftest.er1
2402 cat conftest.er1 >&5
2403 mv -f conftest.er1 conftest.err
2404 fi
2405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2406 test $ac_status = 0; } >/dev/null && {
2407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2408 test ! -s conftest.err
2409 }; then :
2410 ac_retval=0
2411 else
2412 $as_echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 ac_retval=1
2416 fi
2417 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2418 as_fn_set_status $ac_retval
2419
2420 } # ac_fn_c_try_cpp
2421
2422 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2423 # -------------------------------------------------------
2424 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2425 # the include files in INCLUDES and setting the cache variable VAR
2426 # accordingly.
2427 ac_fn_c_check_header_mongrel ()
2428 {
2429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2430 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2432 $as_echo_n "checking for $2... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2435 fi
2436 eval ac_res=\$$3
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2438 $as_echo "$ac_res" >&6; }
2439 else
2440 # Is the header compilable?
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2442 $as_echo_n "checking $2 usability... " >&6; }
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2445 $4
2446 #include <$2>
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449 ac_header_compiler=yes
2450 else
2451 ac_header_compiler=no
2452 fi
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2455 $as_echo "$ac_header_compiler" >&6; }
2456
2457 # Is the header present?
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2459 $as_echo_n "checking $2 presence... " >&6; }
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2462 #include <$2>
2463 _ACEOF
2464 if ac_fn_c_try_cpp "$LINENO"; then :
2465 ac_header_preproc=yes
2466 else
2467 ac_header_preproc=no
2468 fi
2469 rm -f conftest.err conftest.$ac_ext
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2471 $as_echo "$ac_header_preproc" >&6; }
2472
2473 # So? What about this header?
2474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2475 yes:no: )
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2477 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2479 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2480 ;;
2481 no:yes:* )
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2483 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2485 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2487 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2489 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2491 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2492 ;;
2493 esac
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2495 $as_echo_n "checking for $2... " >&6; }
2496 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 eval "$3=\$ac_header_compiler"
2500 fi
2501 eval ac_res=\$$3
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2503 $as_echo "$ac_res" >&6; }
2504 fi
2505 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2506
2507 } # ac_fn_c_check_header_mongrel
2508
2509 # ac_fn_c_try_run LINENO
2510 # ----------------------
2511 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2512 # that executables *can* be run.
2513 ac_fn_c_try_run ()
2514 {
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 if { { ac_try="$ac_link"
2517 case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520 esac
2521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522 $as_echo "$ac_try_echo"; } >&5
2523 (eval "$ac_link") 2>&5
2524 ac_status=$?
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2527 { { case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530 esac
2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_try") 2>&5
2534 ac_status=$?
2535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2536 test $ac_status = 0; }; }; then :
2537 ac_retval=0
2538 else
2539 $as_echo "$as_me: program exited with status $ac_status" >&5
2540 $as_echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2542
2543 ac_retval=$ac_status
2544 fi
2545 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547 as_fn_set_status $ac_retval
2548
2549 } # ac_fn_c_try_run
2550
2551 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2552 # -------------------------------------------------------
2553 # Tests whether HEADER exists and can be compiled using the include files in
2554 # INCLUDES, setting the cache variable VAR accordingly.
2555 ac_fn_c_check_header_compile ()
2556 {
2557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2559 $as_echo_n "checking for $2... " >&6; }
2560 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2565 $4
2566 #include <$2>
2567 _ACEOF
2568 if ac_fn_c_try_compile "$LINENO"; then :
2569 eval "$3=yes"
2570 else
2571 eval "$3=no"
2572 fi
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 fi
2575 eval ac_res=\$$3
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2577 $as_echo "$ac_res" >&6; }
2578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2579
2580 } # ac_fn_c_check_header_compile
2581
2582 # ac_fn_c_try_link LINENO
2583 # -----------------------
2584 # Try to link conftest.$ac_ext, and return whether this succeeded.
2585 ac_fn_c_try_link ()
2586 {
2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2588 rm -f conftest.$ac_objext conftest$ac_exeext
2589 if { { ac_try="$ac_link"
2590 case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2593 esac
2594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2595 $as_echo "$ac_try_echo"; } >&5
2596 (eval "$ac_link") 2>conftest.err
2597 ac_status=$?
2598 if test -s conftest.err; then
2599 grep -v '^ *+' conftest.err >conftest.er1
2600 cat conftest.er1 >&5
2601 mv -f conftest.er1 conftest.err
2602 fi
2603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2604 test $ac_status = 0; } && {
2605 test -z "$ac_c_werror_flag" ||
2606 test ! -s conftest.err
2607 } && test -s conftest$ac_exeext && {
2608 test "$cross_compiling" = yes ||
2609 $as_test_x conftest$ac_exeext
2610 }; then :
2611 ac_retval=0
2612 else
2613 $as_echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 ac_retval=1
2617 fi
2618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2620 # interfere with the next link command; also delete a directory that is
2621 # left behind by Apple's compiler. We do this before executing the actions.
2622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2624 as_fn_set_status $ac_retval
2625
2626 } # ac_fn_c_try_link
2627
2628 # ac_fn_c_check_decl LINENO SYMBOL VAR
2629 # ------------------------------------
2630 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2631 ac_fn_c_check_decl ()
2632 {
2633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2635 $as_echo_n "checking whether $2 is declared... " >&6; }
2636 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2641 $4
2642 int
2643 main ()
2644 {
2645 #ifndef $2
2646 (void) $2;
2647 #endif
2648
2649 ;
2650 return 0;
2651 }
2652 _ACEOF
2653 if ac_fn_c_try_compile "$LINENO"; then :
2654 eval "$3=yes"
2655 else
2656 eval "$3=no"
2657 fi
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 fi
2660 eval ac_res=\$$3
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662 $as_echo "$ac_res" >&6; }
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664
2665 } # ac_fn_c_check_decl
2666
2667 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2668 # ----------------------------------------------
2669 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2670 ac_fn_c_check_header_preproc ()
2671 {
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2674 $as_echo_n "checking for $2... " >&6; }
2675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2680 #include <$2>
2681 _ACEOF
2682 if ac_fn_c_try_cpp "$LINENO"; then :
2683 eval "$3=yes"
2684 else
2685 eval "$3=no"
2686 fi
2687 rm -f conftest.err conftest.$ac_ext
2688 fi
2689 eval ac_res=\$$3
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693
2694 } # ac_fn_c_check_header_preproc
2695
2696 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2697 # ----------------------------------------------------
2698 # Tries to find if the field MEMBER exists in type AGGR, after including
2699 # INCLUDES, setting cache variable VAR accordingly.
2700 ac_fn_c_check_member ()
2701 {
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2704 $as_echo_n "checking for $2.$3... " >&6; }
2705 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2706 $as_echo_n "(cached) " >&6
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 (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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h. */
2726 $5
2727 int
2728 main ()
2729 {
2730 static $2 ac_aggr;
2731 if (sizeof ac_aggr.$3)
2732 return 0;
2733 ;
2734 return 0;
2735 }
2736 _ACEOF
2737 if ac_fn_c_try_compile "$LINENO"; then :
2738 eval "$4=yes"
2739 else
2740 eval "$4=no"
2741 fi
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 fi
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 fi
2746 eval ac_res=\$$4
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2748 $as_echo "$ac_res" >&6; }
2749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2750
2751 } # ac_fn_c_check_member
2752
2753 # ac_fn_c_check_func LINENO FUNC VAR
2754 # ----------------------------------
2755 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2756 ac_fn_c_check_func ()
2757 {
2758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2760 $as_echo_n "checking for $2... " >&6; }
2761 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2766 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2768 #define $2 innocuous_$2
2769
2770 /* System header to define __stub macros and hopefully few prototypes,
2771 which can conflict with char $2 (); below.
2772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2773 <limits.h> exists even on freestanding compilers. */
2774
2775 #ifdef __STDC__
2776 # include <limits.h>
2777 #else
2778 # include <assert.h>
2779 #endif
2780
2781 #undef $2
2782
2783 /* Override any GCC internal prototype to avoid an error.
2784 Use char because int might match the return type of a GCC
2785 builtin and then its argument prototype would still apply. */
2786 #ifdef __cplusplus
2787 extern "C"
2788 #endif
2789 char $2 ();
2790 /* The GNU C library defines this for functions which it implements
2791 to always fail with ENOSYS. Some functions are actually named
2792 something starting with __ and the normal name is an alias. */
2793 #if defined __stub_$2 || defined __stub___$2
2794 choke me
2795 #endif
2796
2797 int
2798 main ()
2799 {
2800 return $2 ();
2801 ;
2802 return 0;
2803 }
2804 _ACEOF
2805 if ac_fn_c_try_link "$LINENO"; then :
2806 eval "$3=yes"
2807 else
2808 eval "$3=no"
2809 fi
2810 rm -f core conftest.err conftest.$ac_objext \
2811 conftest$ac_exeext conftest.$ac_ext
2812 fi
2813 eval ac_res=\$$3
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2815 $as_echo "$ac_res" >&6; }
2816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2817
2818 } # ac_fn_c_check_func
2819
2820 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2821 # -------------------------------------------
2822 # Tests whether TYPE exists after having included INCLUDES, setting cache
2823 # variable VAR accordingly.
2824 ac_fn_c_check_type ()
2825 {
2826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2828 $as_echo_n "checking for $2... " >&6; }
2829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 eval "$3=no"
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2835 $4
2836 int
2837 main ()
2838 {
2839 if (sizeof ($2))
2840 return 0;
2841 ;
2842 return 0;
2843 }
2844 _ACEOF
2845 if ac_fn_c_try_compile "$LINENO"; then :
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2848 $4
2849 int
2850 main ()
2851 {
2852 if (sizeof (($2)))
2853 return 0;
2854 ;
2855 return 0;
2856 }
2857 _ACEOF
2858 if ac_fn_c_try_compile "$LINENO"; then :
2859
2860 else
2861 eval "$3=yes"
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 fi
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 fi
2867 eval ac_res=\$$3
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2869 $as_echo "$ac_res" >&6; }
2870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2871
2872 } # ac_fn_c_check_type
2873
2874 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2875 # --------------------------------------------
2876 # Tries to find the compile-time value of EXPR in a program that includes
2877 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2878 # computed
2879 ac_fn_c_compute_int ()
2880 {
2881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2882 if test "$cross_compiling" = yes; then
2883 # Depending upon the size, compute the lo and hi bounds.
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) >= 0)];
2891 test_array [0] = 0
2892
2893 ;
2894 return 0;
2895 }
2896 _ACEOF
2897 if ac_fn_c_try_compile "$LINENO"; then :
2898 ac_lo=0 ac_mid=0
2899 while :; do
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2902 $4
2903 int
2904 main ()
2905 {
2906 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2907 test_array [0] = 0
2908
2909 ;
2910 return 0;
2911 }
2912 _ACEOF
2913 if ac_fn_c_try_compile "$LINENO"; then :
2914 ac_hi=$ac_mid; break
2915 else
2916 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2917 if test $ac_lo -le $ac_mid; then
2918 ac_lo= ac_hi=
2919 break
2920 fi
2921 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2922 fi
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924 done
2925 else
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) < 0)];
2933 test_array [0] = 0
2934
2935 ;
2936 return 0;
2937 }
2938 _ACEOF
2939 if ac_fn_c_try_compile "$LINENO"; then :
2940 ac_hi=-1 ac_mid=-1
2941 while :; do
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2944 $4
2945 int
2946 main ()
2947 {
2948 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2949 test_array [0] = 0
2950
2951 ;
2952 return 0;
2953 }
2954 _ACEOF
2955 if ac_fn_c_try_compile "$LINENO"; then :
2956 ac_lo=$ac_mid; break
2957 else
2958 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2959 if test $ac_mid -le $ac_hi; then
2960 ac_lo= ac_hi=
2961 break
2962 fi
2963 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2964 fi
2965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 done
2967 else
2968 ac_lo= ac_hi=
2969 fi
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 fi
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 # Binary search between lo and hi bounds.
2974 while test "x$ac_lo" != "x$ac_hi"; do
2975 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2978 $4
2979 int
2980 main ()
2981 {
2982 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2983 test_array [0] = 0
2984
2985 ;
2986 return 0;
2987 }
2988 _ACEOF
2989 if ac_fn_c_try_compile "$LINENO"; then :
2990 ac_hi=$ac_mid
2991 else
2992 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2993 fi
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 done
2996 case $ac_lo in #((
2997 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2998 '') ac_retval=1 ;;
2999 esac
3000 else
3001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h. */
3003 $4
3004 static long int longval () { return $2; }
3005 static unsigned long int ulongval () { return $2; }
3006 #include <stdio.h>
3007 #include <stdlib.h>
3008 int
3009 main ()
3010 {
3011
3012 FILE *f = fopen ("conftest.val", "w");
3013 if (! f)
3014 return 1;
3015 if (($2) < 0)
3016 {
3017 long int i = longval ();
3018 if (i != ($2))
3019 return 1;
3020 fprintf (f, "%ld", i);
3021 }
3022 else
3023 {
3024 unsigned long int i = ulongval ();
3025 if (i != ($2))
3026 return 1;
3027 fprintf (f, "%lu", i);
3028 }
3029 /* Do not output a trailing newline, as this causes \r\n confusion
3030 on some platforms. */
3031 return ferror (f) || fclose (f) != 0;
3032
3033 ;
3034 return 0;
3035 }
3036 _ACEOF
3037 if ac_fn_c_try_run "$LINENO"; then :
3038 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3039 else
3040 ac_retval=1
3041 fi
3042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3043 conftest.$ac_objext conftest.beam conftest.$ac_ext
3044 rm -f conftest.val
3045
3046 fi
3047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3048 as_fn_set_status $ac_retval
3049
3050 } # ac_fn_c_compute_int
3051 cat >config.log <<_ACEOF
3052 This file contains any messages produced by compilers while
3053 running configure, to aid debugging if configure makes a mistake.
3054
3055 It was created by emacs $as_me 24.3.50, which was
3056 generated by GNU Autoconf 2.65. Invocation command line was
3057
3058 $ $0 $@
3059
3060 _ACEOF
3061 exec 5>>config.log
3062 {
3063 cat <<_ASUNAME
3064 ## --------- ##
3065 ## Platform. ##
3066 ## --------- ##
3067
3068 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3069 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3070 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3071 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3072 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3073
3074 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3075 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3076
3077 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3078 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3079 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3080 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3081 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3082 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3083 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3084
3085 _ASUNAME
3086
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 $as_echo "PATH: $as_dir"
3093 done
3094 IFS=$as_save_IFS
3095
3096 } >&5
3097
3098 cat >&5 <<_ACEOF
3099
3100
3101 ## ----------- ##
3102 ## Core tests. ##
3103 ## ----------- ##
3104
3105 _ACEOF
3106
3107
3108 # Keep a trace of the command line.
3109 # Strip out --no-create and --no-recursion so they do not pile up.
3110 # Strip out --silent because we don't want to record it for future runs.
3111 # Also quote any args containing shell meta-characters.
3112 # Make two passes to allow for proper duplicate-argument suppression.
3113 ac_configure_args=
3114 ac_configure_args0=
3115 ac_configure_args1=
3116 ac_must_keep_next=false
3117 for ac_pass in 1 2
3118 do
3119 for ac_arg
3120 do
3121 case $ac_arg in
3122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3124 | -silent | --silent | --silen | --sile | --sil)
3125 continue ;;
3126 *\'*)
3127 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3128 esac
3129 case $ac_pass in
3130 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3131 2)
3132 as_fn_append ac_configure_args1 " '$ac_arg'"
3133 if test $ac_must_keep_next = true; then
3134 ac_must_keep_next=false # Got value, back to normal.
3135 else
3136 case $ac_arg in
3137 *=* | --config-cache | -C | -disable-* | --disable-* \
3138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3140 | -with-* | --with-* | -without-* | --without-* | --x)
3141 case "$ac_configure_args0 " in
3142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3143 esac
3144 ;;
3145 -* ) ac_must_keep_next=true ;;
3146 esac
3147 fi
3148 as_fn_append ac_configure_args " '$ac_arg'"
3149 ;;
3150 esac
3151 done
3152 done
3153 { ac_configure_args0=; unset ac_configure_args0;}
3154 { ac_configure_args1=; unset ac_configure_args1;}
3155
3156 # When interrupted or exit'd, cleanup temporary files, and complete
3157 # config.log. We remove comments because anyway the quotes in there
3158 # would cause problems or look ugly.
3159 # WARNING: Use '\'' to represent an apostrophe within the trap.
3160 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3161 trap 'exit_status=$?
3162 # Save into config.log some information that might help in debugging.
3163 {
3164 echo
3165
3166 cat <<\_ASBOX
3167 ## ---------------- ##
3168 ## Cache variables. ##
3169 ## ---------------- ##
3170 _ASBOX
3171 echo
3172 # The following way of writing the cache mishandles newlines in values,
3173 (
3174 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3175 eval ac_val=\$$ac_var
3176 case $ac_val in #(
3177 *${as_nl}*)
3178 case $ac_var in #(
3179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3180 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3181 esac
3182 case $ac_var in #(
3183 _ | IFS | as_nl) ;; #(
3184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3185 *) { eval $ac_var=; unset $ac_var;} ;;
3186 esac ;;
3187 esac
3188 done
3189 (set) 2>&1 |
3190 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3191 *${as_nl}ac_space=\ *)
3192 sed -n \
3193 "s/'\''/'\''\\\\'\'''\''/g;
3194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3195 ;; #(
3196 *)
3197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3198 ;;
3199 esac |
3200 sort
3201 )
3202 echo
3203
3204 cat <<\_ASBOX
3205 ## ----------------- ##
3206 ## Output variables. ##
3207 ## ----------------- ##
3208 _ASBOX
3209 echo
3210 for ac_var in $ac_subst_vars
3211 do
3212 eval ac_val=\$$ac_var
3213 case $ac_val in
3214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3215 esac
3216 $as_echo "$ac_var='\''$ac_val'\''"
3217 done | sort
3218 echo
3219
3220 if test -n "$ac_subst_files"; then
3221 cat <<\_ASBOX
3222 ## ------------------- ##
3223 ## File substitutions. ##
3224 ## ------------------- ##
3225 _ASBOX
3226 echo
3227 for ac_var in $ac_subst_files
3228 do
3229 eval ac_val=\$$ac_var
3230 case $ac_val in
3231 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3232 esac
3233 $as_echo "$ac_var='\''$ac_val'\''"
3234 done | sort
3235 echo
3236 fi
3237
3238 if test -s confdefs.h; then
3239 cat <<\_ASBOX
3240 ## ----------- ##
3241 ## confdefs.h. ##
3242 ## ----------- ##
3243 _ASBOX
3244 echo
3245 cat confdefs.h
3246 echo
3247 fi
3248 test "$ac_signal" != 0 &&
3249 $as_echo "$as_me: caught signal $ac_signal"
3250 $as_echo "$as_me: exit $exit_status"
3251 } >&5
3252 rm -f core *.core core.conftest.* &&
3253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3254 exit $exit_status
3255 ' 0
3256 for ac_signal in 1 2 13 15; do
3257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3258 done
3259 ac_signal=0
3260
3261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3262 rm -f -r conftest* confdefs.h
3263
3264 $as_echo "/* confdefs.h */" > confdefs.h
3265
3266 # Predefined preprocessor variables.
3267
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE_NAME "$PACKAGE_NAME"
3270 _ACEOF
3271
3272 cat >>confdefs.h <<_ACEOF
3273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3274 _ACEOF
3275
3276 cat >>confdefs.h <<_ACEOF
3277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3278 _ACEOF
3279
3280 cat >>confdefs.h <<_ACEOF
3281 #define PACKAGE_STRING "$PACKAGE_STRING"
3282 _ACEOF
3283
3284 cat >>confdefs.h <<_ACEOF
3285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3286 _ACEOF
3287
3288 cat >>confdefs.h <<_ACEOF
3289 #define PACKAGE_URL "$PACKAGE_URL"
3290 _ACEOF
3291
3292
3293 # Let the site file select an alternate cache file if it wants to.
3294 # Prefer an explicitly selected file to automatically selected ones.
3295 ac_site_file1=NONE
3296 ac_site_file2=NONE
3297 if test -n "$CONFIG_SITE"; then
3298 ac_site_file1=$CONFIG_SITE
3299 elif test "x$prefix" != xNONE; then
3300 ac_site_file1=$prefix/share/config.site
3301 ac_site_file2=$prefix/etc/config.site
3302 else
3303 ac_site_file1=$ac_default_prefix/share/config.site
3304 ac_site_file2=$ac_default_prefix/etc/config.site
3305 fi
3306 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3307 do
3308 test "x$ac_site_file" = xNONE && continue
3309 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3311 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3312 sed 's/^/| /' "$ac_site_file" >&5
3313 . "$ac_site_file"
3314 fi
3315 done
3316
3317 if test -r "$cache_file"; then
3318 # Some versions of bash will fail to source /dev/null (special files
3319 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3320 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3322 $as_echo "$as_me: loading cache $cache_file" >&6;}
3323 case $cache_file in
3324 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3325 *) . "./$cache_file";;
3326 esac
3327 fi
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3330 $as_echo "$as_me: creating cache $cache_file" >&6;}
3331 >$cache_file
3332 fi
3333
3334 as_fn_append ac_header_list " linux/version.h"
3335 as_fn_append ac_header_list " sys/systeminfo.h"
3336 as_fn_append ac_header_list " coff.h"
3337 as_fn_append ac_header_list " pty.h"
3338 as_fn_append ac_header_list " sys/resource.h"
3339 as_fn_append ac_header_list " sys/utsname.h"
3340 as_fn_append ac_header_list " pwd.h"
3341 as_fn_append ac_header_list " utmp.h"
3342 as_fn_append ac_header_list " util.h"
3343 as_fn_append ac_header_list " sys/socket.h"
3344 as_fn_append ac_header_list " stdlib.h"
3345 as_fn_append ac_header_list " unistd.h"
3346 as_fn_append ac_header_list " sys/param.h"
3347 as_fn_append ac_header_list " pthread.h"
3348 as_fn_append ac_header_list " malloc/malloc.h"
3349 as_fn_append ac_header_list " maillock.h"
3350 as_fn_append ac_header_list " sys/un.h"
3351 as_fn_append ac_func_list " tzset"
3352 as_fn_append ac_func_list " readlinkat"
3353 as_fn_append ac_header_list " dirent.h"
3354 as_fn_append ac_header_list " execinfo.h"
3355 as_fn_append ac_func_list " faccessat"
3356 as_fn_append ac_func_list " fdopendir"
3357 as_fn_append ac_header_list " stdio_ext.h"
3358 as_fn_append ac_func_list " __fpending"
3359 as_fn_append ac_func_list " fstatat"
3360 as_fn_append ac_func_list " fsync"
3361 gl_getopt_required=GNU
3362 as_fn_append ac_header_list " getopt.h"
3363 as_fn_append ac_func_list " gettimeofday"
3364 as_fn_append ac_func_list " nanotime"
3365 as_fn_append ac_header_list " sys/time.h"
3366 as_fn_append ac_header_list " wchar.h"
3367 as_fn_append ac_header_list " stdint.h"
3368 as_fn_append ac_header_list " inttypes.h"
3369 as_fn_append ac_func_list " lstat"
3370 as_fn_append ac_header_list " sys/select.h"
3371 as_fn_append ac_func_list " pselect"
3372 as_fn_append ac_func_list " pthread_sigmask"
3373 as_fn_append ac_func_list " readlink"
3374 as_fn_append ac_func_list " strtoimax"
3375 as_fn_append ac_func_list " strtoumax"
3376 as_fn_append ac_func_list " symlink"
3377 as_fn_append ac_header_list " sys/stat.h"
3378 as_fn_append ac_func_list " localtime_r"
3379 as_fn_append ac_header_list " utime.h"
3380 as_fn_append ac_func_list " futimes"
3381 as_fn_append ac_func_list " futimesat"
3382 as_fn_append ac_func_list " futimens"
3383 as_fn_append ac_func_list " utimensat"
3384 as_fn_append ac_func_list " lutimes"
3385 # Check that the precious variables saved in the cache have kept the same
3386 # value.
3387 ac_cache_corrupted=false
3388 for ac_var in $ac_precious_vars; do
3389 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3390 eval ac_new_set=\$ac_env_${ac_var}_set
3391 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3392 eval ac_new_val=\$ac_env_${ac_var}_value
3393 case $ac_old_set,$ac_new_set in
3394 set,)
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3396 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3397 ac_cache_corrupted=: ;;
3398 ,set)
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3400 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3401 ac_cache_corrupted=: ;;
3402 ,);;
3403 *)
3404 if test "x$ac_old_val" != "x$ac_new_val"; then
3405 # differences in whitespace do not lead to failure.
3406 ac_old_val_w=`echo x $ac_old_val`
3407 ac_new_val_w=`echo x $ac_new_val`
3408 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3410 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3411 ac_cache_corrupted=:
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3414 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3415 eval $ac_var=\$ac_old_val
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3418 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3420 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3421 fi;;
3422 esac
3423 # Pass precious variables to config.status.
3424 if test "$ac_new_set" = set; then
3425 case $ac_new_val in
3426 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3427 *) ac_arg=$ac_var=$ac_new_val ;;
3428 esac
3429 case " $ac_configure_args " in
3430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3431 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3432 esac
3433 fi
3434 done
3435 if $ac_cache_corrupted; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3439 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3440 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3441 fi
3442 ## -------------------- ##
3443 ## Main body of script. ##
3444 ## -------------------- ##
3445
3446 ac_ext=c
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451
3452
3453
3454 emacs_config_options="$@"
3455 ## Add some environment variables, if they were passed via the environment
3456 ## rather than on the command-line.
3457 for var in CFLAGS CPPFLAGS LDFLAGS; do
3458 case "$emacs_config_options" in
3459 *$var=*) continue ;;
3460 esac
3461 eval val="\$${var}"
3462 test x"$val" = x && continue
3463 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3464 done
3465
3466 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3467
3468
3469 ac_aux_dir=
3470 for ac_dir in build-aux "$srcdir"/build-aux; do
3471 for ac_t in install-sh install.sh shtool; do
3472 if test -f "$ac_dir/$ac_t"; then
3473 ac_aux_dir=$ac_dir
3474 ac_install_sh="$ac_aux_dir/$ac_t -c"
3475 break 2
3476 fi
3477 done
3478 done
3479 if test -z "$ac_aux_dir"; then
3480 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3481 fi
3482
3483 # These three variables are undocumented and unsupported,
3484 # and are intended to be withdrawn in a future Autoconf release.
3485 # They can cause serious problems if a builder's source tree is in a directory
3486 # whose full name contains unusual characters.
3487 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3488 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3489 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3490
3491
3492 am__api_version='1.11'
3493
3494 # Find a good install program. We prefer a C program (faster),
3495 # so one script is as good as another. But avoid the broken or
3496 # incompatible versions:
3497 # SysV /etc/install, /usr/sbin/install
3498 # SunOS /usr/etc/install
3499 # IRIX /sbin/install
3500 # AIX /bin/install
3501 # AmigaOS /C/install, which installs bootblocks on floppy discs
3502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3505 # OS/2's system install, which has a completely different semantic
3506 # ./install, which can be erroneously created by make from ./install.sh.
3507 # Reject install programs that cannot install multiple files.
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3509 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3510 if test -z "$INSTALL"; then
3511 if test "${ac_cv_path_install+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3516 do
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
3519 # Account for people who put trailing slashes in PATH elements.
3520 case $as_dir/ in #((
3521 ./ | .// | /[cC]/* | \
3522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3523 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3524 /usr/ucb/* ) ;;
3525 *)
3526 # OSF1 and SCO ODT 3.0 have their own names for install.
3527 # Don't use installbsd from OSF since it installs stuff as root
3528 # by default.
3529 for ac_prog in ginstall scoinst install; do
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3532 if test $ac_prog = install &&
3533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3534 # AIX install. It has an incompatible calling convention.
3535 :
3536 elif test $ac_prog = install &&
3537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3538 # program-specific install script used by HP pwplus--don't use.
3539 :
3540 else
3541 rm -rf conftest.one conftest.two conftest.dir
3542 echo one > conftest.one
3543 echo two > conftest.two
3544 mkdir conftest.dir
3545 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3546 test -s conftest.one && test -s conftest.two &&
3547 test -s conftest.dir/conftest.one &&
3548 test -s conftest.dir/conftest.two
3549 then
3550 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3551 break 3
3552 fi
3553 fi
3554 fi
3555 done
3556 done
3557 ;;
3558 esac
3559
3560 done
3561 IFS=$as_save_IFS
3562
3563 rm -rf conftest.one conftest.two conftest.dir
3564
3565 fi
3566 if test "${ac_cv_path_install+set}" = set; then
3567 INSTALL=$ac_cv_path_install
3568 else
3569 # As a last resort, use the slow shell script. Don't cache a
3570 # value for INSTALL within a source directory, because that will
3571 # break other packages using the cache if that directory is
3572 # removed, or if the value is a relative name.
3573 INSTALL=$ac_install_sh
3574 fi
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3577 $as_echo "$INSTALL" >&6; }
3578
3579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3580 # It thinks the first close brace ends the variable substitution.
3581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3582
3583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3584
3585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3586
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3588 $as_echo_n "checking whether build environment is sane... " >&6; }
3589 # Just in case
3590 sleep 1
3591 echo timestamp > conftest.file
3592 # Reject unsafe characters in $srcdir or the absolute working directory
3593 # name. Accept space and tab only in the latter.
3594 am_lf='
3595 '
3596 case `pwd` in
3597 *[\\\"\#\$\&\'\`$am_lf]*)
3598 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3599 esac
3600 case $srcdir in
3601 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3602 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3603 esac
3604
3605 # Do `set' in a subshell so we don't clobber the current shell's
3606 # arguments. Must try -L first in case configure is actually a
3607 # symlink; some systems play weird games with the mod time of symlinks
3608 # (eg FreeBSD returns the mod time of the symlink's containing
3609 # directory).
3610 if (
3611 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3612 if test "$*" = "X"; then
3613 # -L didn't work.
3614 set X `ls -t "$srcdir/configure" conftest.file`
3615 fi
3616 rm -f conftest.file
3617 if test "$*" != "X $srcdir/configure conftest.file" \
3618 && test "$*" != "X conftest.file $srcdir/configure"; then
3619
3620 # If neither matched, then we have a broken ls. This can happen
3621 # if, for instance, CONFIG_SHELL is bash and it inherits a
3622 # broken ls alias from the environment. This has actually
3623 # happened. Such a system could not be considered "sane".
3624 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3625 alias in your environment" "$LINENO" 5
3626 fi
3627
3628 test "$2" = conftest.file
3629 )
3630 then
3631 # Ok.
3632 :
3633 else
3634 as_fn_error "newly created file is older than distributed files!
3635 Check your system clock" "$LINENO" 5
3636 fi
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638 $as_echo "yes" >&6; }
3639 test "$program_prefix" != NONE &&
3640 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3641 # Use a double $ so make ignores it.
3642 test "$program_suffix" != NONE &&
3643 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3644 # Double any \ or $.
3645 # By default was `s,x,x', remove it if useless.
3646 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3647 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3648
3649 # expand $ac_aux_dir to an absolute path
3650 am_aux_dir=`cd $ac_aux_dir && pwd`
3651
3652 if test x"${MISSING+set}" != xset; then
3653 case $am_aux_dir in
3654 *\ * | *\ *)
3655 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3656 *)
3657 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3658 esac
3659 fi
3660 # Use eval to expand $SHELL
3661 if eval "$MISSING --run true"; then
3662 am_missing_run="$MISSING --run "
3663 else
3664 am_missing_run=
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3666 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3667 fi
3668
3669 if test x"${install_sh}" != xset; then
3670 case $am_aux_dir in
3671 *\ * | *\ *)
3672 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3673 *)
3674 install_sh="\${SHELL} $am_aux_dir/install-sh"
3675 esac
3676 fi
3677
3678 # Installed binaries are usually stripped using `strip' when the user
3679 # run `make install-strip'. However `strip' might not be the right
3680 # tool to use in cross-compilation environments, therefore Automake
3681 # will honor the `STRIP' environment variable to overrule this program.
3682 if test "$cross_compiling" != no; then
3683 if test -n "$ac_tool_prefix"; then
3684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3685 set dummy ${ac_tool_prefix}strip; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_STRIP+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -n "$STRIP"; then
3692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705 done
3706 done
3707 IFS=$as_save_IFS
3708
3709 fi
3710 fi
3711 STRIP=$ac_cv_prog_STRIP
3712 if test -n "$STRIP"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3714 $as_echo "$STRIP" >&6; }
3715 else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3718 fi
3719
3720
3721 fi
3722 if test -z "$ac_cv_prog_STRIP"; then
3723 ac_ct_STRIP=$STRIP
3724 # Extract the first word of "strip", so it can be a program name with args.
3725 set dummy strip; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3730 else
3731 if test -n "$ac_ct_STRIP"; then
3732 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_ac_ct_STRIP="strip"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745 done
3746 done
3747 IFS=$as_save_IFS
3748
3749 fi
3750 fi
3751 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3752 if test -n "$ac_ct_STRIP"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3754 $as_echo "$ac_ct_STRIP" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3758 fi
3759
3760 if test "x$ac_ct_STRIP" = x; then
3761 STRIP=":"
3762 else
3763 case $cross_compiling:$ac_tool_warned in
3764 yes:)
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3767 ac_tool_warned=yes ;;
3768 esac
3769 STRIP=$ac_ct_STRIP
3770 fi
3771 else
3772 STRIP="$ac_cv_prog_STRIP"
3773 fi
3774
3775 fi
3776 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3777
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3779 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3780 if test -z "$MKDIR_P"; then
3781 if test "${ac_cv_path_mkdir+set}" = set; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3786 do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_prog in mkdir gmkdir; do
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3792 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3793 'mkdir (GNU coreutils) '* | \
3794 'mkdir (coreutils) '* | \
3795 'mkdir (fileutils) '4.1*)
3796 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3797 break 3;;
3798 esac
3799 done
3800 done
3801 done
3802 IFS=$as_save_IFS
3803
3804 fi
3805
3806 test -d ./--version && rmdir ./--version
3807 if test "${ac_cv_path_mkdir+set}" = set; then
3808 MKDIR_P="$ac_cv_path_mkdir -p"
3809 else
3810 # As a last resort, use the slow shell script. Don't cache a
3811 # value for MKDIR_P within a source directory, because that will
3812 # break other packages using the cache if that directory is
3813 # removed, or if the value is a relative name.
3814 MKDIR_P="$ac_install_sh -d"
3815 fi
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3818 $as_echo "$MKDIR_P" >&6; }
3819
3820 mkdir_p="$MKDIR_P"
3821 case $mkdir_p in
3822 [\\/$]* | ?:[\\/]*) ;;
3823 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3824 esac
3825
3826 for ac_prog in gawk mawk nawk awk
3827 do
3828 # Extract the first word of "$ac_prog", so it can be a program name with args.
3829 set dummy $ac_prog; ac_word=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if test "${ac_cv_prog_AWK+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 if test -n "$AWK"; then
3836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3845 ac_cv_prog_AWK="$ac_prog"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3848 fi
3849 done
3850 done
3851 IFS=$as_save_IFS
3852
3853 fi
3854 fi
3855 AWK=$ac_cv_prog_AWK
3856 if test -n "$AWK"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3858 $as_echo "$AWK" >&6; }
3859 else
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3862 fi
3863
3864
3865 test -n "$AWK" && break
3866 done
3867
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3869 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3870 set x ${MAKE-make}
3871 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3872 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 cat >conftest.make <<\_ACEOF
3876 SHELL = /bin/sh
3877 all:
3878 @echo '@@@%%%=$(MAKE)=@@@%%%'
3879 _ACEOF
3880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3881 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3882 *@@@%%%=?*=@@@%%%*)
3883 eval ac_cv_prog_make_${ac_make}_set=yes;;
3884 *)
3885 eval ac_cv_prog_make_${ac_make}_set=no;;
3886 esac
3887 rm -f conftest.make
3888 fi
3889 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3891 $as_echo "yes" >&6; }
3892 SET_MAKE=
3893 else
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3896 SET_MAKE="MAKE=${MAKE-make}"
3897 fi
3898
3899 rm -rf .tst 2>/dev/null
3900 mkdir .tst 2>/dev/null
3901 if test -d .tst; then
3902 am__leading_dot=.
3903 else
3904 am__leading_dot=_
3905 fi
3906 rmdir .tst 2>/dev/null
3907
3908 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3909 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3910 # is not polluted with repeated "-I."
3911 am__isrc=' -I$(srcdir)'
3912 # test to see if srcdir already configured
3913 if test -f $srcdir/config.status; then
3914 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3915 fi
3916 fi
3917
3918 # test whether we have cygpath
3919 if test -z "$CYGPATH_W"; then
3920 if (cygpath --version) >/dev/null 2>/dev/null; then
3921 CYGPATH_W='cygpath -w'
3922 else
3923 CYGPATH_W=echo
3924 fi
3925 fi
3926
3927
3928 # Define the identity of the package.
3929 PACKAGE='emacs'
3930 VERSION='24.3.50'
3931
3932
3933 cat >>confdefs.h <<_ACEOF
3934 #define PACKAGE "$PACKAGE"
3935 _ACEOF
3936
3937
3938 cat >>confdefs.h <<_ACEOF
3939 #define VERSION "$VERSION"
3940 _ACEOF
3941
3942 # Some tools Automake needs.
3943
3944 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3945
3946
3947 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3948
3949
3950 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3951
3952
3953 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3954
3955
3956 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3957
3958 # We need awk for the "check" target. The system "awk" is bad on
3959 # some platforms.
3960 # Always define AMTAR for backward compatibility.
3961
3962 AMTAR=${AMTAR-"${am_missing_run}tar"}
3963
3964 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3965
3966
3967
3968
3969
3970
3971
3972
3973 lispdir='${datadir}/emacs/${version}/lisp'
3974 leimdir='${datadir}/emacs/${version}/leim'
3975 standardlisppath='${lispdir}:${leimdir}'
3976 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3977 '${datadir}/emacs/site-lisp'
3978 lisppath='${locallisppath}:${standardlisppath}'
3979 etcdir='${datadir}/emacs/${version}/etc'
3980 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3981 docdir='${datadir}/emacs/${version}/etc'
3982 gamedir='${localstatedir}/games/emacs'
3983
3984
3985 # Check whether --with-all was given.
3986 if test "${with_all+set}" = set; then :
3987 withval=$with_all; with_features=$withval
3988 else
3989 with_features=yes
3990 fi
3991
3992
3993
3994
3995
3996 # Check whether --with-pop was given.
3997 if test "${with_pop+set}" = set; then :
3998 withval=$with_pop;
3999 else
4000 with_pop=$with_features
4001 fi
4002
4003 if test "$with_pop" = yes; then
4004 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4005
4006 fi
4007
4008
4009 # Check whether --with-kerberos was given.
4010 if test "${with_kerberos+set}" = set; then :
4011 withval=$with_kerberos;
4012 else
4013 with_kerberos=no
4014 fi
4015
4016 if test "$with_kerberos" != no; then
4017 $as_echo "#define KERBEROS 1" >>confdefs.h
4018
4019 fi
4020
4021
4022 # Check whether --with-kerberos5 was given.
4023 if test "${with_kerberos5+set}" = set; then :
4024 withval=$with_kerberos5;
4025 else
4026 with_kerberos5=no
4027 fi
4028
4029 if test "${with_kerberos5}" != no; then
4030 if test "${with_kerberos}" = no; then
4031 with_kerberos=yes
4032 $as_echo "#define KERBEROS 1" >>confdefs.h
4033
4034 fi
4035
4036 $as_echo "#define KERBEROS5 1" >>confdefs.h
4037
4038 fi
4039
4040
4041 # Check whether --with-hesiod was given.
4042 if test "${with_hesiod+set}" = set; then :
4043 withval=$with_hesiod;
4044 else
4045 with_hesiod=no
4046 fi
4047
4048 if test "$with_hesiod" != no; then
4049
4050 $as_echo "#define HESIOD 1" >>confdefs.h
4051
4052 fi
4053
4054
4055 # Check whether --with-mmdf was given.
4056 if test "${with_mmdf+set}" = set; then :
4057 withval=$with_mmdf;
4058 else
4059 with_mmdf=no
4060 fi
4061
4062 if test "$with_mmdf" != no; then
4063
4064 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4065
4066 fi
4067
4068
4069 # Check whether --with-mail-unlink was given.
4070 if test "${with_mail_unlink+set}" = set; then :
4071 withval=$with_mail_unlink;
4072 else
4073 with_mail_unlink=no
4074 fi
4075
4076 if test "$with_mail_unlink" != no; then
4077
4078 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4079
4080 fi
4081
4082
4083 # Check whether --with-mailhost was given.
4084 if test "${with_mailhost+set}" = set; then :
4085 withval=$with_mailhost;
4086 cat >>confdefs.h <<_ACEOF
4087 #define MAILHOST "$withval"
4088 _ACEOF
4089
4090 fi
4091
4092
4093
4094 # Check whether --with-sound was given.
4095 if test "${with_sound+set}" = set; then :
4096 withval=$with_sound;
4097 else
4098 with_sound=$with_features
4099 fi
4100
4101
4102
4103 # Check whether --with-x-toolkit was given.
4104 if test "${with_x_toolkit+set}" = set; then :
4105 withval=$with_x_toolkit; case "${withval}" in
4106 y | ye | yes ) val=gtk ;;
4107 n | no ) val=no ;;
4108 l | lu | luc | luci | lucid ) val=lucid ;;
4109 a | at | ath | athe | athen | athena ) val=athena ;;
4110 m | mo | mot | moti | motif ) val=motif ;;
4111 g | gt | gtk ) val=gtk ;;
4112 gtk2 ) val=gtk2 ;;
4113 gtk3 ) val=gtk3 ;;
4114 * )
4115 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4116 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4117 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4118 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4119 ;;
4120 esac
4121 with_x_toolkit=$val
4122
4123 fi
4124
4125
4126
4127 # Check whether --with-wide-int was given.
4128 if test "${with_wide_int+set}" = set; then :
4129 withval=$with_wide_int;
4130 else
4131 with_wide_int=no
4132 fi
4133
4134 if test "$with_wide_int" = yes; then
4135
4136 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4137
4138 fi
4139
4140
4141 # Check whether --with-xpm was given.
4142 if test "${with_xpm+set}" = set; then :
4143 withval=$with_xpm;
4144 else
4145 with_xpm=$with_features
4146 fi
4147
4148
4149 # Check whether --with-jpeg was given.
4150 if test "${with_jpeg+set}" = set; then :
4151 withval=$with_jpeg;
4152 else
4153 with_jpeg=$with_features
4154 fi
4155
4156
4157 # Check whether --with-tiff was given.
4158 if test "${with_tiff+set}" = set; then :
4159 withval=$with_tiff;
4160 else
4161 with_tiff=$with_features
4162 fi
4163
4164
4165 # Check whether --with-gif was given.
4166 if test "${with_gif+set}" = set; then :
4167 withval=$with_gif;
4168 else
4169 with_gif=$with_features
4170 fi
4171
4172
4173 # Check whether --with-png was given.
4174 if test "${with_png+set}" = set; then :
4175 withval=$with_png;
4176 else
4177 with_png=$with_features
4178 fi
4179
4180
4181 # Check whether --with-rsvg was given.
4182 if test "${with_rsvg+set}" = set; then :
4183 withval=$with_rsvg;
4184 else
4185 with_rsvg=$with_features
4186 fi
4187
4188
4189 # Check whether --with-xml2 was given.
4190 if test "${with_xml2+set}" = set; then :
4191 withval=$with_xml2;
4192 else
4193 with_xml2=$with_features
4194 fi
4195
4196
4197 # Check whether --with-imagemagick was given.
4198 if test "${with_imagemagick+set}" = set; then :
4199 withval=$with_imagemagick;
4200 else
4201 with_imagemagick=$with_features
4202 fi
4203
4204
4205
4206 # Check whether --with-xft was given.
4207 if test "${with_xft+set}" = set; then :
4208 withval=$with_xft;
4209 else
4210 with_xft=$with_features
4211 fi
4212
4213
4214 # Check whether --with-libotf was given.
4215 if test "${with_libotf+set}" = set; then :
4216 withval=$with_libotf;
4217 else
4218 with_libotf=$with_features
4219 fi
4220
4221
4222 # Check whether --with-m17n-flt was given.
4223 if test "${with_m17n_flt+set}" = set; then :
4224 withval=$with_m17n_flt;
4225 else
4226 with_m17n_flt=$with_features
4227 fi
4228
4229
4230
4231 # Check whether --with-toolkit-scroll-bars was given.
4232 if test "${with_toolkit_scroll_bars+set}" = set; then :
4233 withval=$with_toolkit_scroll_bars;
4234 else
4235 with_toolkit_scroll_bars=$with_features
4236 fi
4237
4238
4239 # Check whether --with-xaw3d was given.
4240 if test "${with_xaw3d+set}" = set; then :
4241 withval=$with_xaw3d;
4242 else
4243 with_xaw3d=$with_features
4244 fi
4245
4246
4247 # Check whether --with-xim was given.
4248 if test "${with_xim+set}" = set; then :
4249 withval=$with_xim;
4250 else
4251 with_xim=$with_features
4252 fi
4253
4254
4255 # Check whether --with-ns was given.
4256 if test "${with_ns+set}" = set; then :
4257 withval=$with_ns;
4258 else
4259 with_ns=no
4260 fi
4261
4262
4263 # Check whether --with-w32 was given.
4264 if test "${with_w32+set}" = set; then :
4265 withval=$with_w32;
4266 else
4267 with_w32=no
4268 fi
4269
4270
4271
4272 # Check whether --with-gpm was given.
4273 if test "${with_gpm+set}" = set; then :
4274 withval=$with_gpm;
4275 else
4276 with_gpm=$with_features
4277 fi
4278
4279
4280 # Check whether --with-dbus was given.
4281 if test "${with_dbus+set}" = set; then :
4282 withval=$with_dbus;
4283 else
4284 with_dbus=$with_features
4285 fi
4286
4287
4288 # Check whether --with-gconf was given.
4289 if test "${with_gconf+set}" = set; then :
4290 withval=$with_gconf;
4291 else
4292 with_gconf=$with_features
4293 fi
4294
4295
4296 # Check whether --with-gsettings was given.
4297 if test "${with_gsettings+set}" = set; then :
4298 withval=$with_gsettings;
4299 else
4300 with_gsettings=$with_features
4301 fi
4302
4303
4304 # Check whether --with-selinux was given.
4305 if test "${with_selinux+set}" = set; then :
4306 withval=$with_selinux;
4307 else
4308 with_selinux=$with_features
4309 fi
4310
4311
4312 # Check whether --with-gnutls was given.
4313 if test "${with_gnutls+set}" = set; then :
4314 withval=$with_gnutls;
4315 else
4316 with_gnutls=$with_features
4317 fi
4318
4319
4320 # Check whether --with-inotify was given.
4321 if test "${with_inotify+set}" = set; then :
4322 withval=$with_inotify;
4323 else
4324 with_inotify=$with_features
4325 fi
4326
4327
4328 ## For the times when you want to build Emacs but don't have
4329 ## a suitable makeinfo, and can live without the manuals.
4330
4331 # Check whether --with-makeinfo was given.
4332 if test "${with_makeinfo+set}" = set; then :
4333 withval=$with_makeinfo;
4334 else
4335 with_makeinfo=$with_features
4336 fi
4337
4338
4339 ## Makefile.in needs the cache file name.
4340
4341
4342 ## This is an option because I do not know if all info/man support
4343 ## compressed files, nor how to test if they do so.
4344
4345 # Check whether --with-compress-info was given.
4346 if test "${with_compress_info+set}" = set; then :
4347 withval=$with_compress_info;
4348 else
4349 with_compress_info=$with_features
4350 fi
4351
4352 if test $with_compress_info = yes; then
4353 GZIP_INFO=yes
4354 else
4355 GZIP_INFO=
4356 fi
4357
4358
4359
4360 # Check whether --with-pkg-config-prog was given.
4361 if test "${with_pkg_config_prog+set}" = set; then :
4362 withval=$with_pkg_config_prog;
4363 fi
4364
4365 if test "X${with_pkg_config_prog}" != X; then
4366 if test "${with_pkg_config_prog}" != yes; then
4367 PKG_CONFIG="${with_pkg_config_prog}"
4368 fi
4369 fi
4370
4371
4372 # Check whether --with-gameuser was given.
4373 if test "${with_gameuser+set}" = set; then :
4374 withval=$with_gameuser;
4375 fi
4376
4377 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4378 && gameuser="${with_gameuser}"
4379 test "X$gameuser" = X && gameuser=games
4380
4381
4382 # Check whether --with-gnustep-conf was given.
4383 if test "${with_gnustep_conf+set}" = set; then :
4384 withval=$with_gnustep_conf;
4385 fi
4386
4387 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4388 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4389 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4390 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4391
4392 # Check whether --enable-ns-self-contained was given.
4393 if test "${enable_ns_self_contained+set}" = set; then :
4394 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4395 else
4396 EN_NS_SELF_CONTAINED=yes
4397 fi
4398
4399
4400 # Check whether --enable-locallisppath was given.
4401 if test "${enable_locallisppath+set}" = set; then :
4402 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4403 locallisppath=
4404 elif test "${enableval}" != "yes"; then
4405 locallisppath=${enableval}
4406 fi
4407 fi
4408
4409
4410 # Check whether --enable-checking was given.
4411 if test "${enable_checking+set}" = set; then :
4412 enableval=$enable_checking; ac_checking_flags="${enableval}"
4413 fi
4414
4415 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4416 for check in $ac_checking_flags
4417 do
4418 case $check in
4419 # these set all the flags to specific states
4420 yes) ac_enable_checking=1 ;;
4421 no) ac_enable_checking= ;
4422 ac_gc_check_stringbytes= ;
4423 ac_gc_check_string_overrun= ;
4424 ac_gc_check_string_free_list= ;
4425 ac_xmalloc_overrun= ;
4426 ac_gc_check_cons_list= ;
4427 ac_glyphs_debug= ;;
4428 all) ac_enable_checking=1 ;
4429 ac_gc_check_stringbytes=1 ;
4430 ac_gc_check_string_overrun=1 ;
4431 ac_gc_check_string_free_list=1 ;
4432 ac_xmalloc_overrun=1 ;
4433 ac_gc_check_cons_list=1 ;
4434 ac_glyphs_debug=1 ;;
4435 # these enable particular checks
4436 stringbytes) ac_gc_check_stringbytes=1 ;;
4437 stringoverrun) ac_gc_check_string_overrun=1 ;;
4438 stringfreelist) ac_gc_check_string_free_list=1 ;;
4439 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4440 conslist) ac_gc_check_cons_list=1 ;;
4441 glyphs) ac_glyphs_debug=1 ;;
4442 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4443 esac
4444 done
4445 IFS="$ac_save_IFS"
4446
4447 if test x$ac_enable_checking != x ; then
4448
4449 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4450
4451 fi
4452 if test x$ac_gc_check_stringbytes != x ; then
4453
4454 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4455
4456 fi
4457 if test x$ac_gc_check_string_overrun != x ; then
4458
4459 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4460
4461 fi
4462 if test x$ac_gc_check_string_free_list != x ; then
4463
4464 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4465
4466 fi
4467 if test x$ac_xmalloc_overrun != x ; then
4468
4469 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4470
4471 fi
4472 if test x$ac_gc_check_cons_list != x ; then
4473
4474 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4475
4476 fi
4477 if test x$ac_glyphs_debug != x ; then
4478
4479 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4480
4481 fi
4482
4483 # Check whether --enable-check-lisp-object-type was given.
4484 if test "${enable_check_lisp_object_type+set}" = set; then :
4485 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4486
4487 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4488
4489 fi
4490 fi
4491
4492
4493
4494 # Check whether --enable-profiling was given.
4495 if test "${enable_profiling+set}" = set; then :
4496 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4497 fi
4498
4499 if test x$ac_enable_profiling != x ; then
4500 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4501 else
4502 PROFILING_CFLAGS=
4503 fi
4504
4505
4506 # Check whether --enable-autodepend was given.
4507 if test "${enable_autodepend+set}" = set; then :
4508 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4509 else
4510 ac_enable_autodepend=yes
4511 fi
4512
4513
4514 # Check whether --enable-gtk-deprecation-warnings was given.
4515 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4516 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4517 fi
4518
4519
4520 #### Make srcdir absolute, if it isn't already. It's important to
4521 #### avoid running the file name through pwd unnecessarily, since pwd can
4522 #### give you automounter prefixes, which can go away. We do all this
4523 #### so Emacs can find its files when run uninstalled.
4524 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4525 unset CDPATH
4526 case "${srcdir}" in
4527 /* ) ;;
4528 . )
4529 ## We may be able to use the $PWD environment variable to make this
4530 ## absolute. But sometimes PWD is inaccurate.
4531 ## Note: we used to use $PWD at the end instead of `pwd`,
4532 ## but that tested only for a well-formed and valid PWD,
4533 ## it did not object when PWD was well-formed and valid but just wrong.
4534 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4535 then
4536 srcdir="$PWD"
4537 else
4538 srcdir=`(cd "$srcdir"; pwd)`
4539 fi
4540 ;;
4541 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4542 esac
4543
4544 ### Canonicalize the configuration name.
4545
4546 # Make sure we can run config.sub.
4547 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4548 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4549
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4551 $as_echo_n "checking build system type... " >&6; }
4552 if test "${ac_cv_build+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 ac_build_alias=$build_alias
4556 test "x$ac_build_alias" = x &&
4557 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4558 test "x$ac_build_alias" = x &&
4559 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4560 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4561 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4562
4563 fi
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4565 $as_echo "$ac_cv_build" >&6; }
4566 case $ac_cv_build in
4567 *-*-*) ;;
4568 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4569 esac
4570 build=$ac_cv_build
4571 ac_save_IFS=$IFS; IFS='-'
4572 set x $ac_cv_build
4573 shift
4574 build_cpu=$1
4575 build_vendor=$2
4576 shift; shift
4577 # Remember, the first character of IFS is used to create $*,
4578 # except with old shells:
4579 build_os=$*
4580 IFS=$ac_save_IFS
4581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4582
4583
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4585 $as_echo_n "checking host system type... " >&6; }
4586 if test "${ac_cv_host+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 if test "x$host_alias" = x; then
4590 ac_cv_host=$ac_cv_build
4591 else
4592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4593 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4594 fi
4595
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4598 $as_echo "$ac_cv_host" >&6; }
4599 case $ac_cv_host in
4600 *-*-*) ;;
4601 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4602 esac
4603 host=$ac_cv_host
4604 ac_save_IFS=$IFS; IFS='-'
4605 set x $ac_cv_host
4606 shift
4607 host_cpu=$1
4608 host_vendor=$2
4609 shift; shift
4610 # Remember, the first character of IFS is used to create $*,
4611 # except with old shells:
4612 host_os=$*
4613 IFS=$ac_save_IFS
4614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4615
4616
4617 canonical=$host
4618 configuration=${host_alias-${build_alias-$host}}
4619
4620
4621
4622 ### If you add support for a new configuration, add code to this
4623 ### switch statement to recognize your configuration name and select
4624 ### the appropriate operating system file.
4625
4626 ### You would hope that you could choose an s/*.h
4627 ### file based on the operating system portion. However, it turns out
4628 ### that each s/*.h file is pretty manufacturer-specific.
4629 ### So we basically have to have a special case for each
4630 ### configuration name.
4631 ###
4632 ### As far as handling version numbers on operating systems is
4633 ### concerned, make sure things will fail in a fixable way. If
4634 ### /etc/MACHINES doesn't say anything about version numbers, be
4635 ### prepared to handle anything reasonably. If version numbers
4636 ### matter, be sure /etc/MACHINES says something about it.
4637
4638 opsys='' unported=no
4639 case "${canonical}" in
4640
4641 ## GNU/Linux and similar ports
4642 *-*-linux* )
4643 opsys=gnu-linux
4644 ;;
4645
4646 ## FreeBSD ports
4647 *-*-freebsd* )
4648 opsys=freebsd
4649 ;;
4650
4651 ## DragonFly ports
4652 *-*-dragonfly* )
4653 opsys=dragonfly
4654 ;;
4655
4656 ## FreeBSD kernel + glibc based userland
4657 *-*-kfreebsd*gnu* )
4658 opsys=gnu-kfreebsd
4659 ;;
4660
4661 ## NetBSD ports
4662 *-*-netbsd* )
4663 opsys=netbsd
4664 ;;
4665
4666 ## OpenBSD ports
4667 *-*-openbsd* )
4668 opsys=openbsd
4669 ;;
4670
4671 ## Apple Darwin / Mac OS X
4672 *-apple-darwin* )
4673 case "${canonical}" in
4674 i[3456]86-* ) ;;
4675 powerpc-* ) ;;
4676 x86_64-* ) ;;
4677 * ) unported=yes ;;
4678 esac
4679 opsys=darwin
4680 ## Use fink packages if available.
4681 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4682 ## if test -d /sw/include && test -d /sw/lib; then
4683 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4684 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4685 ## fi
4686 ;;
4687
4688 ## Cygwin ports
4689 *-*-cygwin )
4690 opsys=cygwin
4691 ;;
4692
4693 ## HP 9000 series 700 and 800, running HP/UX
4694 hppa*-hp-hpux10.2* )
4695 opsys=hpux10-20
4696 ;;
4697 hppa*-hp-hpux1[1-9]* )
4698 opsys=hpux11
4699 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4700 ;;
4701
4702 ## IBM machines
4703 rs6000-ibm-aix4.[23]* )
4704 opsys=aix4-2
4705 ;;
4706 powerpc-ibm-aix4.[23]* )
4707 opsys=aix4-2
4708 ;;
4709 rs6000-ibm-aix[56]* )
4710 opsys=aix4-2
4711 ;;
4712 powerpc-ibm-aix[56]* )
4713 opsys=aix4-2
4714 ;;
4715
4716 ## Silicon Graphics machines
4717 ## Iris 4D
4718 mips-sgi-irix6.5 )
4719 opsys=irix6-5
4720 # Without defining _LANGUAGE_C, things get masked out in the headers
4721 # so that, for instance, grepping for `free' in stdlib.h fails and
4722 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4723 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4724 ;;
4725
4726 ## Suns
4727 *-sun-solaris* \
4728 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4729 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4730 case "${canonical}" in
4731 i[3456]86-*-* ) ;;
4732 amd64-*-*|x86_64-*-*) ;;
4733 sparc* ) ;;
4734 * ) unported=yes ;;
4735 esac
4736 case "${canonical}" in
4737 *-sunos5.6* | *-solaris2.6* )
4738 opsys=sol2-6
4739 RANLIB="ar -ts"
4740 ;;
4741 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4742 opsys=sol2-6
4743 emacs_check_sunpro_c=yes
4744 ;;
4745 *-sunos5* | *-solaris* )
4746 opsys=sol2-10
4747 emacs_check_sunpro_c=yes
4748 ;;
4749 esac
4750 ## Watch out for a compiler that we know will not work.
4751 case "${canonical}" in
4752 *-solaris* | *-sunos5* )
4753 if [ "x$CC" = x/usr/ucb/cc ]; then
4754 ## /usr/ucb/cc doesn't work;
4755 ## we should find some other compiler that does work.
4756 unset CC
4757 fi
4758 ;;
4759 *) ;;
4760 esac
4761 ;;
4762
4763 ## Intel 386 machines where we don't care about the manufacturer.
4764 i[3456]86-*-* )
4765 case "${canonical}" in
4766 *-darwin* ) opsys=darwin ;;
4767 *-sysv4.2uw* ) opsys=unixware ;;
4768 *-sysv5uw* ) opsys=unixware ;;
4769 *-sysv5OpenUNIX* ) opsys=unixware ;;
4770 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4771 esac
4772 ;;
4773
4774 * )
4775 unported=yes
4776 ;;
4777 esac
4778
4779 ### If the code above didn't choose an operating system, just choose
4780 ### an operating system based on the configuration name. You really
4781 ### only want to use this when you have no idea what the right
4782 ### operating system is; if you know what operating systems a machine
4783 ### runs, it's cleaner to make it explicit in the case statement
4784 ### above.
4785 if test x"${opsys}" = x; then
4786 case "${canonical}" in
4787 *-gnu* ) opsys=gnu ;;
4788 * )
4789 unported=yes
4790 ;;
4791 esac
4792 fi
4793
4794
4795
4796 if test $unported = yes; then
4797 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4798 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4799 fi
4800
4801
4802 #### Choose a compiler.
4803
4804 ac_ext=c
4805 ac_cpp='$CPP $CPPFLAGS'
4806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4809 if test -n "$ac_tool_prefix"; then
4810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$CC"; then
4818 ac_cv_prog_CC="$CC" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 CC=$ac_cv_prog_CC
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845
4846
4847 fi
4848 if test -z "$ac_cv_prog_CC"; then
4849 ac_ct_CC=$CC
4850 # Extract the first word of "gcc", so it can be a program name with args.
4851 set dummy gcc; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if test -n "$ac_ct_CC"; then
4858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_ac_ct_CC="gcc"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871 done
4872 done
4873 IFS=$as_save_IFS
4874
4875 fi
4876 fi
4877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4878 if test -n "$ac_ct_CC"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4880 $as_echo "$ac_ct_CC" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4884 fi
4885
4886 if test "x$ac_ct_CC" = x; then
4887 CC=""
4888 else
4889 case $cross_compiling:$ac_tool_warned in
4890 yes:)
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4893 ac_tool_warned=yes ;;
4894 esac
4895 CC=$ac_ct_CC
4896 fi
4897 else
4898 CC="$ac_cv_prog_CC"
4899 fi
4900
4901 if test -z "$CC"; then
4902 if test -n "$ac_tool_prefix"; then
4903 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4904 set dummy ${ac_tool_prefix}cc; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_CC+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$CC"; then
4911 ac_cv_prog_CC="$CC" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_CC="${ac_tool_prefix}cc"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4923 fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928 fi
4929 fi
4930 CC=$ac_cv_prog_CC
4931 if test -n "$CC"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4933 $as_echo "$CC" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4937 fi
4938
4939
4940 fi
4941 fi
4942 if test -z "$CC"; then
4943 # Extract the first word of "cc", so it can be a program name with args.
4944 set dummy cc; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if test "${ac_cv_prog_CC+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$CC"; then
4951 ac_cv_prog_CC="$CC" # Let the user override the test.
4952 else
4953 ac_prog_rejected=no
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4962 ac_prog_rejected=yes
4963 continue
4964 fi
4965 ac_cv_prog_CC="cc"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4968 fi
4969 done
4970 done
4971 IFS=$as_save_IFS
4972
4973 if test $ac_prog_rejected = yes; then
4974 # We found a bogon in the path, so make sure we never use it.
4975 set dummy $ac_cv_prog_CC
4976 shift
4977 if test $# != 0; then
4978 # We chose a different compiler from the bogus one.
4979 # However, it has the same basename, so the bogon will be chosen
4980 # first if we set CC to just the basename; use the full file name.
4981 shift
4982 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4983 fi
4984 fi
4985 fi
4986 fi
4987 CC=$ac_cv_prog_CC
4988 if test -n "$CC"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4990 $as_echo "$CC" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 fi
4995
4996
4997 fi
4998 if test -z "$CC"; then
4999 if test -n "$ac_tool_prefix"; then
5000 for ac_prog in cl.exe
5001 do
5002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_CC+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$CC"; then
5010 ac_cv_prog_CC="$CC" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 CC=$ac_cv_prog_CC
5030 if test -n "$CC"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5032 $as_echo "$CC" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038
5039 test -n "$CC" && break
5040 done
5041 fi
5042 if test -z "$CC"; then
5043 ac_ct_CC=$CC
5044 for ac_prog in cl.exe
5045 do
5046 # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy $ac_prog; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$ac_ct_CC"; then
5054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_ac_ct_CC="$ac_prog"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5074 if test -n "$ac_ct_CC"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5076 $as_echo "$ac_ct_CC" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082
5083 test -n "$ac_ct_CC" && break
5084 done
5085
5086 if test "x$ac_ct_CC" = x; then
5087 CC=""
5088 else
5089 case $cross_compiling:$ac_tool_warned in
5090 yes:)
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095 CC=$ac_ct_CC
5096 fi
5097 fi
5098
5099 fi
5100
5101
5102 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5104 as_fn_error "no acceptable C compiler found in \$PATH
5105 See \`config.log' for more details." "$LINENO" 5; }
5106
5107 # Provide some information about the compiler.
5108 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5109 set X $ac_compile
5110 ac_compiler=$2
5111 for ac_option in --version -v -V -qversion; do
5112 { { ac_try="$ac_compiler $ac_option >&5"
5113 case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116 esac
5117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5118 $as_echo "$ac_try_echo"; } >&5
5119 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5120 ac_status=$?
5121 if test -s conftest.err; then
5122 sed '10a\
5123 ... rest of stderr output deleted ...
5124 10q' conftest.err >conftest.er1
5125 cat conftest.er1 >&5
5126 fi
5127 rm -f conftest.er1 conftest.err
5128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129 test $ac_status = 0; }
5130 done
5131
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134
5135 int
5136 main ()
5137 {
5138
5139 ;
5140 return 0;
5141 }
5142 _ACEOF
5143 ac_clean_files_save=$ac_clean_files
5144 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5145 # Try to create an executable without -o first, disregard a.out.
5146 # It will help us diagnose broken compilers, and finding out an intuition
5147 # of exeext.
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5149 $as_echo_n "checking whether the C compiler works... " >&6; }
5150 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5151
5152 # The possible output files:
5153 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5154
5155 ac_rmfiles=
5156 for ac_file in $ac_files
5157 do
5158 case $ac_file in
5159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5160 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5161 esac
5162 done
5163 rm -f $ac_rmfiles
5164
5165 if { { ac_try="$ac_link_default"
5166 case "(($ac_try" in
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5169 esac
5170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5171 $as_echo "$ac_try_echo"; } >&5
5172 (eval "$ac_link_default") 2>&5
5173 ac_status=$?
5174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5175 test $ac_status = 0; }; then :
5176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5179 # so that the user can short-circuit this test for compilers unknown to
5180 # Autoconf.
5181 for ac_file in $ac_files ''
5182 do
5183 test -f "$ac_file" || continue
5184 case $ac_file in
5185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5186 ;;
5187 [ab].out )
5188 # We found the default executable, but exeext='' is most
5189 # certainly right.
5190 break;;
5191 *.* )
5192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5193 then :; else
5194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5195 fi
5196 # We set ac_cv_exeext here because the later test for it is not
5197 # safe: cross compilers may not add the suffix if given an `-o'
5198 # argument, so we may need to know it at that point already.
5199 # Even if this section looks crufty: it has the advantage of
5200 # actually working.
5201 break;;
5202 * )
5203 break;;
5204 esac
5205 done
5206 test "$ac_cv_exeext" = no && ac_cv_exeext=
5207
5208 else
5209 ac_file=''
5210 fi
5211 if test -z "$ac_file"; then :
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5214 $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5216
5217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5219 { as_fn_set_status 77
5220 as_fn_error "C compiler cannot create executables
5221 See \`config.log' for more details." "$LINENO" 5; }; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5224 $as_echo "yes" >&6; }
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5227 $as_echo_n "checking for C compiler default output file name... " >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5229 $as_echo "$ac_file" >&6; }
5230 ac_exeext=$ac_cv_exeext
5231
5232 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5233 ac_clean_files=$ac_clean_files_save
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5235 $as_echo_n "checking for suffix of executables... " >&6; }
5236 if { { ac_try="$ac_link"
5237 case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240 esac
5241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5242 $as_echo "$ac_try_echo"; } >&5
5243 (eval "$ac_link") 2>&5
5244 ac_status=$?
5245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5246 test $ac_status = 0; }; then :
5247 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5248 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5249 # work properly (i.e., refer to `conftest.exe'), while it won't with
5250 # `rm'.
5251 for ac_file in conftest.exe conftest conftest.*; do
5252 test -f "$ac_file" || continue
5253 case $ac_file in
5254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5255 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5256 break;;
5257 * ) break;;
5258 esac
5259 done
5260 else
5261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5263 as_fn_error "cannot compute suffix of executables: cannot compile and link
5264 See \`config.log' for more details." "$LINENO" 5; }
5265 fi
5266 rm -f conftest conftest$ac_cv_exeext
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5268 $as_echo "$ac_cv_exeext" >&6; }
5269
5270 rm -f conftest.$ac_ext
5271 EXEEXT=$ac_cv_exeext
5272 ac_exeext=$EXEEXT
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 #include <stdio.h>
5276 int
5277 main ()
5278 {
5279 FILE *f = fopen ("conftest.out", "w");
5280 return ferror (f) || fclose (f) != 0;
5281
5282 ;
5283 return 0;
5284 }
5285 _ACEOF
5286 ac_clean_files="$ac_clean_files conftest.out"
5287 # Check that the compiler produces executables we can run. If not, either
5288 # the compiler is broken, or we cross compile.
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5290 $as_echo_n "checking whether we are cross compiling... " >&6; }
5291 if test "$cross_compiling" != yes; then
5292 { { ac_try="$ac_link"
5293 case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296 esac
5297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5298 $as_echo "$ac_try_echo"; } >&5
5299 (eval "$ac_link") 2>&5
5300 ac_status=$?
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }
5303 if { ac_try='./conftest$ac_cv_exeext'
5304 { { case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307 esac
5308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5309 $as_echo "$ac_try_echo"; } >&5
5310 (eval "$ac_try") 2>&5
5311 ac_status=$?
5312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5313 test $ac_status = 0; }; }; then
5314 cross_compiling=no
5315 else
5316 if test "$cross_compiling" = maybe; then
5317 cross_compiling=yes
5318 else
5319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5321 as_fn_error "cannot run C compiled programs.
5322 If you meant to cross compile, use \`--host'.
5323 See \`config.log' for more details." "$LINENO" 5; }
5324 fi
5325 fi
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5328 $as_echo "$cross_compiling" >&6; }
5329
5330 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5331 ac_clean_files=$ac_clean_files_save
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5333 $as_echo_n "checking for suffix of object files... " >&6; }
5334 if test "${ac_cv_objext+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339
5340 int
5341 main ()
5342 {
5343
5344 ;
5345 return 0;
5346 }
5347 _ACEOF
5348 rm -f conftest.o conftest.obj
5349 if { { ac_try="$ac_compile"
5350 case "(($ac_try" in
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5353 esac
5354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5355 $as_echo "$ac_try_echo"; } >&5
5356 (eval "$ac_compile") 2>&5
5357 ac_status=$?
5358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5359 test $ac_status = 0; }; then :
5360 for ac_file in conftest.o conftest.obj conftest.*; do
5361 test -f "$ac_file" || continue;
5362 case $ac_file in
5363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5364 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5365 break;;
5366 esac
5367 done
5368 else
5369 $as_echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5374 as_fn_error "cannot compute suffix of object files: cannot compile
5375 See \`config.log' for more details." "$LINENO" 5; }
5376 fi
5377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5380 $as_echo "$ac_cv_objext" >&6; }
5381 OBJEXT=$ac_cv_objext
5382 ac_objext=$OBJEXT
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5384 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5385 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390
5391 int
5392 main ()
5393 {
5394 #ifndef __GNUC__
5395 choke me
5396 #endif
5397
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ac_compiler_gnu=yes
5404 else
5405 ac_compiler_gnu=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5409
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5412 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5413 if test $ac_compiler_gnu = yes; then
5414 GCC=yes
5415 else
5416 GCC=
5417 fi
5418 ac_test_CFLAGS=${CFLAGS+set}
5419 ac_save_CFLAGS=$CFLAGS
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5421 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5422 if test "${ac_cv_prog_cc_g+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 ac_save_c_werror_flag=$ac_c_werror_flag
5426 ac_c_werror_flag=yes
5427 ac_cv_prog_cc_g=no
5428 CFLAGS="-g"
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431
5432 int
5433 main ()
5434 {
5435
5436 ;
5437 return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"; then :
5441 ac_cv_prog_cc_g=yes
5442 else
5443 CFLAGS=""
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446
5447 int
5448 main ()
5449 {
5450
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456
5457 else
5458 ac_c_werror_flag=$ac_save_c_werror_flag
5459 CFLAGS="-g"
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462
5463 int
5464 main ()
5465 {
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_c_try_compile "$LINENO"; then :
5472 ac_cv_prog_cc_g=yes
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 ac_c_werror_flag=$ac_save_c_werror_flag
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5482 $as_echo "$ac_cv_prog_cc_g" >&6; }
5483 if test "$ac_test_CFLAGS" = set; then
5484 CFLAGS=$ac_save_CFLAGS
5485 elif test $ac_cv_prog_cc_g = yes; then
5486 if test "$GCC" = yes; then
5487 CFLAGS="-g -O2"
5488 else
5489 CFLAGS="-g"
5490 fi
5491 else
5492 if test "$GCC" = yes; then
5493 CFLAGS="-O2"
5494 else
5495 CFLAGS=
5496 fi
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5499 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5500 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 ac_cv_prog_cc_c89=no
5504 ac_save_CC=$CC
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 #include <stdarg.h>
5508 #include <stdio.h>
5509 #include <sys/types.h>
5510 #include <sys/stat.h>
5511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5512 struct buf { int x; };
5513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5514 static char *e (p, i)
5515 char **p;
5516 int i;
5517 {
5518 return p[i];
5519 }
5520 static char *f (char * (*g) (char **, int), char **p, ...)
5521 {
5522 char *s;
5523 va_list v;
5524 va_start (v,p);
5525 s = g (p, va_arg (v,int));
5526 va_end (v);
5527 return s;
5528 }
5529
5530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5531 function prototypes and stuff, but not '\xHH' hex character constants.
5532 These don't provoke an error unfortunately, instead are silently treated
5533 as 'x'. The following induces an error, until -std is added to get
5534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5535 array size at least. It's necessary to write '\x00'==0 to get something
5536 that's true only with -std. */
5537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5538
5539 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5540 inside strings and character constants. */
5541 #define FOO(x) 'x'
5542 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5543
5544 int test (int i, double x);
5545 struct s1 {int (*f) (int a);};
5546 struct s2 {int (*f) (double a);};
5547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5548 int argc;
5549 char **argv;
5550 int
5551 main ()
5552 {
5553 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5554 ;
5555 return 0;
5556 }
5557 _ACEOF
5558 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5559 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5560 do
5561 CC="$ac_save_CC $ac_arg"
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 ac_cv_prog_cc_c89=$ac_arg
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext
5566 test "x$ac_cv_prog_cc_c89" != "xno" && break
5567 done
5568 rm -f conftest.$ac_ext
5569 CC=$ac_save_CC
5570
5571 fi
5572 # AC_CACHE_VAL
5573 case "x$ac_cv_prog_cc_c89" in
5574 x)
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5576 $as_echo "none needed" >&6; } ;;
5577 xno)
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5579 $as_echo "unsupported" >&6; } ;;
5580 *)
5581 CC="$CC $ac_cv_prog_cc_c89"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5583 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5584 esac
5585 if test "x$ac_cv_prog_cc_c89" != xno; then :
5586
5587 fi
5588
5589 ac_ext=c
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594 DEPDIR="${am__leading_dot}deps"
5595
5596 ac_config_commands="$ac_config_commands depfiles"
5597
5598
5599 am_make=${MAKE-make}
5600 cat > confinc << 'END'
5601 am__doit:
5602 @echo this is the am__doit target
5603 .PHONY: am__doit
5604 END
5605 # If we don't find an include directive, just comment out the code.
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5607 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5608 am__include="#"
5609 am__quote=
5610 _am_result=none
5611 # First try GNU make style include.
5612 echo "include confinc" > confmf
5613 # Ignore all kinds of additional output from `make'.
5614 case `$am_make -s -f confmf 2> /dev/null` in #(
5615 *the\ am__doit\ target*)
5616 am__include=include
5617 am__quote=
5618 _am_result=GNU
5619 ;;
5620 esac
5621 # Now try BSD make style include.
5622 if test "$am__include" = "#"; then
5623 echo '.include "confinc"' > confmf
5624 case `$am_make -s -f confmf 2> /dev/null` in #(
5625 *the\ am__doit\ target*)
5626 am__include=.include
5627 am__quote="\""
5628 _am_result=BSD
5629 ;;
5630 esac
5631 fi
5632
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5635 $as_echo "$_am_result" >&6; }
5636 rm -f confinc confmf
5637
5638 # Check whether --enable-dependency-tracking was given.
5639 if test "${enable_dependency_tracking+set}" = set; then :
5640 enableval=$enable_dependency_tracking;
5641 fi
5642
5643 if test "x$enable_dependency_tracking" != xno; then
5644 am_depcomp="$ac_aux_dir/depcomp"
5645 AMDEPBACKSLASH='\'
5646 fi
5647 if test "x$enable_dependency_tracking" != xno; then
5648 AMDEP_TRUE=
5649 AMDEP_FALSE='#'
5650 else
5651 AMDEP_TRUE='#'
5652 AMDEP_FALSE=
5653 fi
5654
5655
5656
5657 depcc="$CC" am_compiler_list=
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5660 $as_echo_n "checking dependency style of $depcc... " >&6; }
5661 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5665 # We make a subdir and do the tests there. Otherwise we can end up
5666 # making bogus files that we don't know about and never remove. For
5667 # instance it was reported that on HP-UX the gcc test will end up
5668 # making a dummy file named `D' -- because `-MD' means `put the output
5669 # in D'.
5670 mkdir conftest.dir
5671 # Copy depcomp to subdir because otherwise we won't find it if we're
5672 # using a relative directory.
5673 cp "$am_depcomp" conftest.dir
5674 cd conftest.dir
5675 # We will build objects and dependencies in a subdirectory because
5676 # it helps to detect inapplicable dependency modes. For instance
5677 # both Tru64's cc and ICC support -MD to output dependencies as a
5678 # side effect of compilation, but ICC will put the dependencies in
5679 # the current directory while Tru64 will put them in the object
5680 # directory.
5681 mkdir sub
5682
5683 am_cv_CC_dependencies_compiler_type=none
5684 if test "$am_compiler_list" = ""; then
5685 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5686 fi
5687 am__universal=false
5688 case " $depcc " in #(
5689 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5690 esac
5691
5692 for depmode in $am_compiler_list; do
5693 # Setup a source with many dependencies, because some compilers
5694 # like to wrap large dependency lists on column 80 (with \), and
5695 # we should not choose a depcomp mode which is confused by this.
5696 #
5697 # We need to recreate these files for each test, as the compiler may
5698 # overwrite some of them when testing with obscure command lines.
5699 # This happens at least with the AIX C compiler.
5700 : > sub/conftest.c
5701 for i in 1 2 3 4 5 6; do
5702 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5703 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5704 # Solaris 8's {/usr,}/bin/sh.
5705 touch sub/conftst$i.h
5706 done
5707 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5708
5709 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5710 # mode. It turns out that the SunPro C++ compiler does not properly
5711 # handle `-M -o', and we need to detect this. Also, some Intel
5712 # versions had trouble with output in subdirs
5713 am__obj=sub/conftest.${OBJEXT-o}
5714 am__minus_obj="-o $am__obj"
5715 case $depmode in
5716 gcc)
5717 # This depmode causes a compiler race in universal mode.
5718 test "$am__universal" = false || continue
5719 ;;
5720 nosideeffect)
5721 # after this tag, mechanisms are not by side-effect, so they'll
5722 # only be used when explicitly requested
5723 if test "x$enable_dependency_tracking" = xyes; then
5724 continue
5725 else
5726 break
5727 fi
5728 ;;
5729 msvisualcpp | msvcmsys)
5730 # This compiler won't grok `-c -o', but also, the minuso test has
5731 # not run yet. These depmodes are late enough in the game, and
5732 # so weak that their functioning should not be impacted.
5733 am__obj=conftest.${OBJEXT-o}
5734 am__minus_obj=
5735 ;;
5736 none) break ;;
5737 esac
5738 if depmode=$depmode \
5739 source=sub/conftest.c object=$am__obj \
5740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5741 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5742 >/dev/null 2>conftest.err &&
5743 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5744 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5745 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5746 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5747 # icc doesn't choke on unknown options, it will just issue warnings
5748 # or remarks (even with -Werror). So we grep stderr for any message
5749 # that says an option was ignored or not supported.
5750 # When given -MP, icc 7.0 and 7.1 complain thusly:
5751 # icc: Command line warning: ignoring option '-M'; no argument required
5752 # The diagnosis changed in icc 8.0:
5753 # icc: Command line remark: option '-MP' not supported
5754 if (grep 'ignoring option' conftest.err ||
5755 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5756 am_cv_CC_dependencies_compiler_type=$depmode
5757 break
5758 fi
5759 fi
5760 done
5761
5762 cd ..
5763 rm -rf conftest.dir
5764 else
5765 am_cv_CC_dependencies_compiler_type=none
5766 fi
5767
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5770 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5771 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5772
5773 if
5774 test "x$enable_dependency_tracking" != xno \
5775 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5776 am__fastdepCC_TRUE=
5777 am__fastdepCC_FALSE='#'
5778 else
5779 am__fastdepCC_TRUE='#'
5780 am__fastdepCC_FALSE=
5781 fi
5782
5783
5784 if test "x$CC" != xcc; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5786 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5789 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5790 fi
5791 set dummy $CC; ac_cc=`$as_echo "$2" |
5792 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5793 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798
5799 int
5800 main ()
5801 {
5802
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 # Make sure it works both with $CC and with simple cc.
5808 # We do the test twice because some compilers refuse to overwrite an
5809 # existing .o file with -o, though they will create one.
5810 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5811 rm -f conftest2.*
5812 if { { case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815 esac
5816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5817 $as_echo "$ac_try_echo"; } >&5
5818 (eval "$ac_try") 2>&5
5819 ac_status=$?
5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821 test $ac_status = 0; } &&
5822 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5827 $as_echo "$ac_try_echo"; } >&5
5828 (eval "$ac_try") 2>&5
5829 ac_status=$?
5830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5831 test $ac_status = 0; };
5832 then
5833 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5834 if test "x$CC" != xcc; then
5835 # Test first that cc exists at all.
5836 if { ac_try='cc -c conftest.$ac_ext >&5'
5837 { { case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840 esac
5841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5842 $as_echo "$ac_try_echo"; } >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5846 test $ac_status = 0; }; }; then
5847 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5848 rm -f conftest2.*
5849 if { { case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5854 $as_echo "$ac_try_echo"; } >&5
5855 (eval "$ac_try") 2>&5
5856 ac_status=$?
5857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5858 test $ac_status = 0; } &&
5859 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862 esac
5863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5864 $as_echo "$ac_try_echo"; } >&5
5865 (eval "$ac_try") 2>&5
5866 ac_status=$?
5867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5868 test $ac_status = 0; };
5869 then
5870 # cc works too.
5871 :
5872 else
5873 # cc exists but doesn't like -o.
5874 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5875 fi
5876 fi
5877 fi
5878 else
5879 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5880 fi
5881 rm -f core conftest*
5882
5883 fi
5884 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5886 $as_echo "yes" >&6; }
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5890
5891 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5892
5893 fi
5894
5895 # FIXME: we rely on the cache variable name because
5896 # there is no other way.
5897 set dummy $CC
5898 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5899 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5900 if test "$am_t" != yes; then
5901 # Losing compiler, so override with the script.
5902 # FIXME: It is wrong to rewrite CC.
5903 # But if we don't then we get into trouble of one sort or another.
5904 # A longer-term fix would be to have automake use am__CC in this case,
5905 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5906 CC="$am_aux_dir/compile $CC"
5907 fi
5908
5909
5910
5911 if test x$GCC = xyes; then
5912 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5913 else
5914 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5915 fi
5916
5917 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5918 # as we don't use them.
5919
5920 # Avoid gnulib's threadlib module, as we do threads our own way.
5921
5922
5923 # Initialize gnulib right after choosing the compiler.
5924
5925 ac_ext=c
5926 ac_cpp='$CPP $CPPFLAGS'
5927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5931 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5932 # On Suns, sometimes $CPP names a directory.
5933 if test -n "$CPP" && test -d "$CPP"; then
5934 CPP=
5935 fi
5936 if test -z "$CPP"; then
5937 if test "${ac_cv_prog_CPP+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 # Double quotes because CPP needs to be expanded
5941 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5942 do
5943 ac_preproc_ok=false
5944 for ac_c_preproc_warn_flag in '' yes
5945 do
5946 # Use a header file that comes with gcc, so configuring glibc
5947 # with a fresh cross-compiler works.
5948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5949 # <limits.h> exists even on freestanding compilers.
5950 # On the NeXT, cc -E runs the code through the compiler's parser,
5951 # not just through cpp. "Syntax error" is here to catch this case.
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954 #ifdef __STDC__
5955 # include <limits.h>
5956 #else
5957 # include <assert.h>
5958 #endif
5959 Syntax error
5960 _ACEOF
5961 if ac_fn_c_try_cpp "$LINENO"; then :
5962
5963 else
5964 # Broken: fails on valid input.
5965 continue
5966 fi
5967 rm -f conftest.err conftest.$ac_ext
5968
5969 # OK, works on sane cases. Now check whether nonexistent headers
5970 # can be detected and how.
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 #include <ac_nonexistent.h>
5974 _ACEOF
5975 if ac_fn_c_try_cpp "$LINENO"; then :
5976 # Broken: success on invalid input.
5977 continue
5978 else
5979 # Passes both tests.
5980 ac_preproc_ok=:
5981 break
5982 fi
5983 rm -f conftest.err conftest.$ac_ext
5984
5985 done
5986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5987 rm -f conftest.err conftest.$ac_ext
5988 if $ac_preproc_ok; then :
5989 break
5990 fi
5991
5992 done
5993 ac_cv_prog_CPP=$CPP
5994
5995 fi
5996 CPP=$ac_cv_prog_CPP
5997 else
5998 ac_cv_prog_CPP=$CPP
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6001 $as_echo "$CPP" >&6; }
6002 ac_preproc_ok=false
6003 for ac_c_preproc_warn_flag in '' yes
6004 do
6005 # Use a header file that comes with gcc, so configuring glibc
6006 # with a fresh cross-compiler works.
6007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6008 # <limits.h> exists even on freestanding compilers.
6009 # On the NeXT, cc -E runs the code through the compiler's parser,
6010 # not just through cpp. "Syntax error" is here to catch this case.
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 #ifdef __STDC__
6014 # include <limits.h>
6015 #else
6016 # include <assert.h>
6017 #endif
6018 Syntax error
6019 _ACEOF
6020 if ac_fn_c_try_cpp "$LINENO"; then :
6021
6022 else
6023 # Broken: fails on valid input.
6024 continue
6025 fi
6026 rm -f conftest.err conftest.$ac_ext
6027
6028 # OK, works on sane cases. Now check whether nonexistent headers
6029 # can be detected and how.
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 #include <ac_nonexistent.h>
6033 _ACEOF
6034 if ac_fn_c_try_cpp "$LINENO"; then :
6035 # Broken: success on invalid input.
6036 continue
6037 else
6038 # Passes both tests.
6039 ac_preproc_ok=:
6040 break
6041 fi
6042 rm -f conftest.err conftest.$ac_ext
6043
6044 done
6045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6046 rm -f conftest.err conftest.$ac_ext
6047 if $ac_preproc_ok; then :
6048
6049 else
6050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6052 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6053 See \`config.log' for more details." "$LINENO" 5; }
6054 fi
6055
6056 ac_ext=c
6057 ac_cpp='$CPP $CPPFLAGS'
6058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061
6062
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6064 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6065 if test "${ac_cv_path_GREP+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if test -z "$GREP"; then
6069 ac_path_GREP_found=false
6070 # Loop through the user's path and test for each of PROGNAME-LIST
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6073 do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_prog in grep ggrep; do
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6079 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6080 # Check for GNU ac_path_GREP and select it if it is found.
6081 # Check for GNU $ac_path_GREP
6082 case `"$ac_path_GREP" --version 2>&1` in
6083 *GNU*)
6084 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6085 *)
6086 ac_count=0
6087 $as_echo_n 0123456789 >"conftest.in"
6088 while :
6089 do
6090 cat "conftest.in" "conftest.in" >"conftest.tmp"
6091 mv "conftest.tmp" "conftest.in"
6092 cp "conftest.in" "conftest.nl"
6093 $as_echo 'GREP' >> "conftest.nl"
6094 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6096 as_fn_arith $ac_count + 1 && ac_count=$as_val
6097 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6098 # Best one so far, save it but keep looking for a better one
6099 ac_cv_path_GREP="$ac_path_GREP"
6100 ac_path_GREP_max=$ac_count
6101 fi
6102 # 10*(2^10) chars as input seems more than enough
6103 test $ac_count -gt 10 && break
6104 done
6105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6106 esac
6107
6108 $ac_path_GREP_found && break 3
6109 done
6110 done
6111 done
6112 IFS=$as_save_IFS
6113 if test -z "$ac_cv_path_GREP"; then
6114 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6115 fi
6116 else
6117 ac_cv_path_GREP=$GREP
6118 fi
6119
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6122 $as_echo "$ac_cv_path_GREP" >&6; }
6123 GREP="$ac_cv_path_GREP"
6124
6125
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6127 $as_echo_n "checking for egrep... " >&6; }
6128 if test "${ac_cv_path_EGREP+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6132 then ac_cv_path_EGREP="$GREP -E"
6133 else
6134 if test -z "$EGREP"; then
6135 ac_path_EGREP_found=false
6136 # Loop through the user's path and test for each of PROGNAME-LIST
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6139 do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_prog in egrep; do
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6145 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6146 # Check for GNU ac_path_EGREP and select it if it is found.
6147 # Check for GNU $ac_path_EGREP
6148 case `"$ac_path_EGREP" --version 2>&1` in
6149 *GNU*)
6150 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6151 *)
6152 ac_count=0
6153 $as_echo_n 0123456789 >"conftest.in"
6154 while :
6155 do
6156 cat "conftest.in" "conftest.in" >"conftest.tmp"
6157 mv "conftest.tmp" "conftest.in"
6158 cp "conftest.in" "conftest.nl"
6159 $as_echo 'EGREP' >> "conftest.nl"
6160 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6162 as_fn_arith $ac_count + 1 && ac_count=$as_val
6163 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6164 # Best one so far, save it but keep looking for a better one
6165 ac_cv_path_EGREP="$ac_path_EGREP"
6166 ac_path_EGREP_max=$ac_count
6167 fi
6168 # 10*(2^10) chars as input seems more than enough
6169 test $ac_count -gt 10 && break
6170 done
6171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6172 esac
6173
6174 $ac_path_EGREP_found && break 3
6175 done
6176 done
6177 done
6178 IFS=$as_save_IFS
6179 if test -z "$ac_cv_path_EGREP"; then
6180 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6181 fi
6182 else
6183 ac_cv_path_EGREP=$EGREP
6184 fi
6185
6186 fi
6187 fi
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6189 $as_echo "$ac_cv_path_EGREP" >&6; }
6190 EGREP="$ac_cv_path_EGREP"
6191
6192
6193
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6196 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6197 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203
6204 #ifdef __ACK__
6205 Amsterdam
6206 #endif
6207
6208 _ACEOF
6209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6210 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6211 gl_cv_c_amsterdam_compiler=yes
6212 else
6213 gl_cv_c_amsterdam_compiler=no
6214 fi
6215 rm -f conftest*
6216
6217
6218 fi
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6220 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6221 if test -z "$AR"; then
6222 if test $gl_cv_c_amsterdam_compiler = yes; then
6223 AR='cc -c.a'
6224 if test -z "$ARFLAGS"; then
6225 ARFLAGS='-o'
6226 fi
6227 else
6228 if test -n "$ac_tool_prefix"; then
6229 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6230 set dummy ${ac_tool_prefix}ar; ac_word=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if test "${ac_cv_prog_AR+set}" = set; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 if test -n "$AR"; then
6237 ac_cv_prog_AR="$AR" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_prog_AR="${ac_tool_prefix}ar"
6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 break 2
6249 fi
6250 done
6251 done
6252 IFS=$as_save_IFS
6253
6254 fi
6255 fi
6256 AR=$ac_cv_prog_AR
6257 if test -n "$AR"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6259 $as_echo "$AR" >&6; }
6260 else
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6263 fi
6264
6265
6266 fi
6267 if test -z "$ac_cv_prog_AR"; then
6268 ac_ct_AR=$AR
6269 # Extract the first word of "ar", so it can be a program name with args.
6270 set dummy ar; ac_word=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 if test -n "$ac_ct_AR"; then
6277 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6278 else
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282 IFS=$as_save_IFS
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_prog_ac_ct_AR="ar"
6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 break 2
6289 fi
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294 fi
6295 fi
6296 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6297 if test -n "$ac_ct_AR"; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6299 $as_echo "$ac_ct_AR" >&6; }
6300 else
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6303 fi
6304
6305 if test "x$ac_ct_AR" = x; then
6306 AR="ar"
6307 else
6308 case $cross_compiling:$ac_tool_warned in
6309 yes:)
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6312 ac_tool_warned=yes ;;
6313 esac
6314 AR=$ac_ct_AR
6315 fi
6316 else
6317 AR="$ac_cv_prog_AR"
6318 fi
6319
6320 if test -z "$ARFLAGS"; then
6321 ARFLAGS='cru'
6322 fi
6323 fi
6324 else
6325 if test -z "$ARFLAGS"; then
6326 ARFLAGS='cru'
6327 fi
6328 fi
6329
6330
6331 if test -z "$RANLIB"; then
6332 if test $gl_cv_c_amsterdam_compiler = yes; then
6333 RANLIB=':'
6334 else
6335 if test -n "$ac_tool_prefix"; then
6336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$RANLIB"; then
6344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 RANLIB=$ac_cv_prog_RANLIB
6364 if test -n "$RANLIB"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6366 $as_echo "$RANLIB" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372
6373 fi
6374 if test -z "$ac_cv_prog_RANLIB"; then
6375 ac_ct_RANLIB=$RANLIB
6376 # Extract the first word of "ranlib", so it can be a program name with args.
6377 set dummy ranlib; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -n "$ac_ct_RANLIB"; then
6384 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_ac_ct_RANLIB="ranlib"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6404 if test -n "$ac_ct_RANLIB"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6406 $as_echo "$ac_ct_RANLIB" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412 if test "x$ac_ct_RANLIB" = x; then
6413 RANLIB=":"
6414 else
6415 case $cross_compiling:$ac_tool_warned in
6416 yes:)
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421 RANLIB=$ac_ct_RANLIB
6422 fi
6423 else
6424 RANLIB="$ac_cv_prog_RANLIB"
6425 fi
6426
6427 fi
6428 fi
6429
6430
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6432 $as_echo_n "checking for ANSI C header files... " >&6; }
6433 if test "${ac_cv_header_stdc+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 #include <stdlib.h>
6439 #include <stdarg.h>
6440 #include <string.h>
6441 #include <float.h>
6442
6443 int
6444 main ()
6445 {
6446
6447 ;
6448 return 0;
6449 }
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452 ac_cv_header_stdc=yes
6453 else
6454 ac_cv_header_stdc=no
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457
6458 if test $ac_cv_header_stdc = yes; then
6459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #include <string.h>
6463
6464 _ACEOF
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 #include <stdlib.h>
6480
6481 _ACEOF
6482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6483 $EGREP "free" >/dev/null 2>&1; then :
6484
6485 else
6486 ac_cv_header_stdc=no
6487 fi
6488 rm -f conftest*
6489
6490 fi
6491
6492 if test $ac_cv_header_stdc = yes; then
6493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6494 if test "$cross_compiling" = yes; then :
6495 :
6496 else
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499 #include <ctype.h>
6500 #include <stdlib.h>
6501 #if ((' ' & 0x0FF) == 0x020)
6502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6504 #else
6505 # define ISLOWER(c) \
6506 (('a' <= (c) && (c) <= 'i') \
6507 || ('j' <= (c) && (c) <= 'r') \
6508 || ('s' <= (c) && (c) <= 'z'))
6509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6510 #endif
6511
6512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6513 int
6514 main ()
6515 {
6516 int i;
6517 for (i = 0; i < 256; i++)
6518 if (XOR (islower (i), ISLOWER (i))
6519 || toupper (i) != TOUPPER (i))
6520 return 2;
6521 return 0;
6522 }
6523 _ACEOF
6524 if ac_fn_c_try_run "$LINENO"; then :
6525
6526 else
6527 ac_cv_header_stdc=no
6528 fi
6529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6530 conftest.$ac_objext conftest.beam conftest.$ac_ext
6531 fi
6532
6533 fi
6534 fi
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6536 $as_echo "$ac_cv_header_stdc" >&6; }
6537 if test $ac_cv_header_stdc = yes; then
6538
6539 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6540
6541 fi
6542
6543 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6544 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6545 inttypes.h stdint.h unistd.h
6546 do :
6547 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6548 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6549 "
6550 eval as_val=\$$as_ac_Header
6551 if test "x$as_val" = x""yes; then :
6552 cat >>confdefs.h <<_ACEOF
6553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6554 _ACEOF
6555
6556 fi
6557
6558 done
6559
6560
6561
6562 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6563 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6564 MINIX=yes
6565 else
6566 MINIX=
6567 fi
6568
6569
6570 if test "$MINIX" = yes; then
6571
6572 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6573
6574
6575 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6576
6577
6578 $as_echo "#define _MINIX 1" >>confdefs.h
6579
6580
6581 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6582
6583 fi
6584
6585
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6587 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6588 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593
6594 # define __EXTENSIONS__ 1
6595 $ac_includes_default
6596 int
6597 main ()
6598 {
6599
6600 ;
6601 return 0;
6602 }
6603 _ACEOF
6604 if ac_fn_c_try_compile "$LINENO"; then :
6605 ac_cv_safe_to_define___extensions__=yes
6606 else
6607 ac_cv_safe_to_define___extensions__=no
6608 fi
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 fi
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6612 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6613 test $ac_cv_safe_to_define___extensions__ = yes &&
6614 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6615
6616 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6617
6618 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6619
6620 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6621
6622 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6623
6624 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6625
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6627 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6628 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 ac_cv_should_define__xopen_source=no
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6634
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
6647 else
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650
6651 #define _XOPEN_SOURCE 500
6652 #include <wchar.h>
6653 mbstate_t x;
6654 int
6655 main ()
6656 {
6657
6658 ;
6659 return 0;
6660 }
6661 _ACEOF
6662 if ac_fn_c_try_compile "$LINENO"; then :
6663 ac_cv_should_define__xopen_source=yes
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 fi
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 fi
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6670 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6671 test $ac_cv_should_define__xopen_source = yes &&
6672 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6673
6674
6675
6676
6677
6678
6679
6680
6681 # Check whether --enable-largefile was given.
6682 if test "${enable_largefile+set}" = set; then :
6683 enableval=$enable_largefile;
6684 fi
6685
6686 if test "$enable_largefile" != no; then
6687
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6689 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6690 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 ac_cv_sys_largefile_CC=no
6694 if test "$GCC" != yes; then
6695 ac_save_CC=$CC
6696 while :; do
6697 # IRIX 6.2 and later do not support large files by default,
6698 # so use the C compiler's -n32 option if that helps.
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701 #include <sys/types.h>
6702 /* Check that off_t can represent 2**63 - 1 correctly.
6703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6704 since some C++ compilers masquerading as C compilers
6705 incorrectly reject 9223372036854775807. */
6706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6708 && LARGE_OFF_T % 2147483647 == 1)
6709 ? 1 : -1];
6710 int
6711 main ()
6712 {
6713
6714 ;
6715 return 0;
6716 }
6717 _ACEOF
6718 if ac_fn_c_try_compile "$LINENO"; then :
6719 break
6720 fi
6721 rm -f core conftest.err conftest.$ac_objext
6722 CC="$CC -n32"
6723 if ac_fn_c_try_compile "$LINENO"; then :
6724 ac_cv_sys_largefile_CC=' -n32'; break
6725 fi
6726 rm -f core conftest.err conftest.$ac_objext
6727 break
6728 done
6729 CC=$ac_save_CC
6730 rm -f conftest.$ac_ext
6731 fi
6732 fi
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6734 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6735 if test "$ac_cv_sys_largefile_CC" != no; then
6736 CC=$CC$ac_cv_sys_largefile_CC
6737 fi
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6740 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6741 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 while :; do
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 #include <sys/types.h>
6748 /* Check that off_t can represent 2**63 - 1 correctly.
6749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6750 since some C++ compilers masquerading as C compilers
6751 incorrectly reject 9223372036854775807. */
6752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6754 && LARGE_OFF_T % 2147483647 == 1)
6755 ? 1 : -1];
6756 int
6757 main ()
6758 {
6759
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 ac_cv_sys_file_offset_bits=no; break
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #define _FILE_OFFSET_BITS 64
6771 #include <sys/types.h>
6772 /* Check that off_t can represent 2**63 - 1 correctly.
6773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6774 since some C++ compilers masquerading as C compilers
6775 incorrectly reject 9223372036854775807. */
6776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6778 && LARGE_OFF_T % 2147483647 == 1)
6779 ? 1 : -1];
6780 int
6781 main ()
6782 {
6783
6784 ;
6785 return 0;
6786 }
6787 _ACEOF
6788 if ac_fn_c_try_compile "$LINENO"; then :
6789 ac_cv_sys_file_offset_bits=64; break
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792 ac_cv_sys_file_offset_bits=unknown
6793 break
6794 done
6795 fi
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6797 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6798 case $ac_cv_sys_file_offset_bits in #(
6799 no | unknown) ;;
6800 *)
6801 cat >>confdefs.h <<_ACEOF
6802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6803 _ACEOF
6804 ;;
6805 esac
6806 rm -rf conftest*
6807 if test $ac_cv_sys_file_offset_bits = unknown; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6809 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6810 if test "${ac_cv_sys_large_files+set}" = set; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 while :; do
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 #include <sys/types.h>
6817 /* Check that off_t can represent 2**63 - 1 correctly.
6818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6819 since some C++ compilers masquerading as C compilers
6820 incorrectly reject 9223372036854775807. */
6821 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6823 && LARGE_OFF_T % 2147483647 == 1)
6824 ? 1 : -1];
6825 int
6826 main ()
6827 {
6828
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834 ac_cv_sys_large_files=no; break
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 #define _LARGE_FILES 1
6840 #include <sys/types.h>
6841 /* Check that off_t can represent 2**63 - 1 correctly.
6842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6843 since some C++ compilers masquerading as C compilers
6844 incorrectly reject 9223372036854775807. */
6845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6847 && LARGE_OFF_T % 2147483647 == 1)
6848 ? 1 : -1];
6849 int
6850 main ()
6851 {
6852
6853 ;
6854 return 0;
6855 }
6856 _ACEOF
6857 if ac_fn_c_try_compile "$LINENO"; then :
6858 ac_cv_sys_large_files=1; break
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 ac_cv_sys_large_files=unknown
6862 break
6863 done
6864 fi
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6866 $as_echo "$ac_cv_sys_large_files" >&6; }
6867 case $ac_cv_sys_large_files in #(
6868 no | unknown) ;;
6869 *)
6870 cat >>confdefs.h <<_ACEOF
6871 #define _LARGE_FILES $ac_cv_sys_large_files
6872 _ACEOF
6873 ;;
6874 esac
6875 rm -rf conftest*
6876 fi
6877
6878
6879 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6880
6881 fi
6882
6883 case $ac_cv_prog_cc_stdc in #(
6884 no) :
6885 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6886 *) :
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6888 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6889 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 ac_cv_prog_cc_c99=no
6893 ac_save_CC=$CC
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 #include <stdarg.h>
6897 #include <stdbool.h>
6898 #include <stdlib.h>
6899 #include <wchar.h>
6900 #include <stdio.h>
6901
6902 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6903 #define debug(...) fprintf (stderr, __VA_ARGS__)
6904 #define showlist(...) puts (#__VA_ARGS__)
6905 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6906 static void
6907 test_varargs_macros (void)
6908 {
6909 int x = 1234;
6910 int y = 5678;
6911 debug ("Flag");
6912 debug ("X = %d\n", x);
6913 showlist (The first, second, and third items.);
6914 report (x>y, "x is %d but y is %d", x, y);
6915 }
6916
6917 // Check long long types.
6918 #define BIG64 18446744073709551615ull
6919 #define BIG32 4294967295ul
6920 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6921 #if !BIG_OK
6922 your preprocessor is broken;
6923 #endif
6924 #if BIG_OK
6925 #else
6926 your preprocessor is broken;
6927 #endif
6928 static long long int bignum = -9223372036854775807LL;
6929 static unsigned long long int ubignum = BIG64;
6930
6931 struct incomplete_array
6932 {
6933 int datasize;
6934 double data[];
6935 };
6936
6937 struct named_init {
6938 int number;
6939 const wchar_t *name;
6940 double average;
6941 };
6942
6943 typedef const char *ccp;
6944
6945 static inline int
6946 test_restrict (ccp restrict text)
6947 {
6948 // See if C++-style comments work.
6949 // Iterate through items via the restricted pointer.
6950 // Also check for declarations in for loops.
6951 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6952 continue;
6953 return 0;
6954 }
6955
6956 // Check varargs and va_copy.
6957 static void
6958 test_varargs (const char *format, ...)
6959 {
6960 va_list args;
6961 va_start (args, format);
6962 va_list args_copy;
6963 va_copy (args_copy, args);
6964
6965 const char *str;
6966 int number;
6967 float fnumber;
6968
6969 while (*format)
6970 {
6971 switch (*format++)
6972 {
6973 case 's': // string
6974 str = va_arg (args_copy, const char *);
6975 break;
6976 case 'd': // int
6977 number = va_arg (args_copy, int);
6978 break;
6979 case 'f': // float
6980 fnumber = va_arg (args_copy, double);
6981 break;
6982 default:
6983 break;
6984 }
6985 }
6986 va_end (args_copy);
6987 va_end (args);
6988 }
6989
6990 int
6991 main ()
6992 {
6993
6994 // Check bool.
6995 _Bool success = false;
6996
6997 // Check restrict.
6998 if (test_restrict ("String literal") == 0)
6999 success = true;
7000 char *restrict newvar = "Another string";
7001
7002 // Check varargs.
7003 test_varargs ("s, d' f .", "string", 65, 34.234);
7004 test_varargs_macros ();
7005
7006 // Check flexible array members.
7007 struct incomplete_array *ia =
7008 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7009 ia->datasize = 10;
7010 for (int i = 0; i < ia->datasize; ++i)
7011 ia->data[i] = i * 1.234;
7012
7013 // Check named initializers.
7014 struct named_init ni = {
7015 .number = 34,
7016 .name = L"Test wide string",
7017 .average = 543.34343,
7018 };
7019
7020 ni.number = 58;
7021
7022 int dynamic_array[ni.number];
7023 dynamic_array[ni.number - 1] = 543;
7024
7025 // work around unused variable warnings
7026 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7027 || dynamic_array[ni.number - 1] != 543);
7028
7029 ;
7030 return 0;
7031 }
7032 _ACEOF
7033 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7034 do
7035 CC="$ac_save_CC $ac_arg"
7036 if ac_fn_c_try_compile "$LINENO"; then :
7037 ac_cv_prog_cc_c99=$ac_arg
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext
7040 test "x$ac_cv_prog_cc_c99" != "xno" && break
7041 done
7042 rm -f conftest.$ac_ext
7043 CC=$ac_save_CC
7044
7045 fi
7046 # AC_CACHE_VAL
7047 case "x$ac_cv_prog_cc_c99" in
7048 x)
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7050 $as_echo "none needed" >&6; } ;;
7051 xno)
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7053 $as_echo "unsupported" >&6; } ;;
7054 *)
7055 CC="$CC $ac_cv_prog_cc_c99"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7057 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7058 esac
7059 if test "x$ac_cv_prog_cc_c99" != xno; then :
7060 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7063 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7064 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 ac_cv_prog_cc_c89=no
7068 ac_save_CC=$CC
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071 #include <stdarg.h>
7072 #include <stdio.h>
7073 #include <sys/types.h>
7074 #include <sys/stat.h>
7075 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7076 struct buf { int x; };
7077 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7078 static char *e (p, i)
7079 char **p;
7080 int i;
7081 {
7082 return p[i];
7083 }
7084 static char *f (char * (*g) (char **, int), char **p, ...)
7085 {
7086 char *s;
7087 va_list v;
7088 va_start (v,p);
7089 s = g (p, va_arg (v,int));
7090 va_end (v);
7091 return s;
7092 }
7093
7094 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7095 function prototypes and stuff, but not '\xHH' hex character constants.
7096 These don't provoke an error unfortunately, instead are silently treated
7097 as 'x'. The following induces an error, until -std is added to get
7098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7099 array size at least. It's necessary to write '\x00'==0 to get something
7100 that's true only with -std. */
7101 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7102
7103 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7104 inside strings and character constants. */
7105 #define FOO(x) 'x'
7106 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7107
7108 int test (int i, double x);
7109 struct s1 {int (*f) (int a);};
7110 struct s2 {int (*f) (double a);};
7111 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7112 int argc;
7113 char **argv;
7114 int
7115 main ()
7116 {
7117 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7118 ;
7119 return 0;
7120 }
7121 _ACEOF
7122 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7123 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7124 do
7125 CC="$ac_save_CC $ac_arg"
7126 if ac_fn_c_try_compile "$LINENO"; then :
7127 ac_cv_prog_cc_c89=$ac_arg
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext
7130 test "x$ac_cv_prog_cc_c89" != "xno" && break
7131 done
7132 rm -f conftest.$ac_ext
7133 CC=$ac_save_CC
7134
7135 fi
7136 # AC_CACHE_VAL
7137 case "x$ac_cv_prog_cc_c89" in
7138 x)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7140 $as_echo "none needed" >&6; } ;;
7141 xno)
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7143 $as_echo "unsupported" >&6; } ;;
7144 *)
7145 CC="$CC $ac_cv_prog_cc_c89"
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7147 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7148 esac
7149 if test "x$ac_cv_prog_cc_c89" != xno; then :
7150 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7151 else
7152 ac_cv_prog_cc_stdc=no
7153 fi
7154
7155 fi
7156 ;;
7157 esac
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7159 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7160 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162 fi
7163
7164 case $ac_cv_prog_cc_stdc in #(
7165 no) :
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7167 $as_echo "unsupported" >&6; } ;; #(
7168 '') :
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7170 $as_echo "none needed" >&6; } ;; #(
7171 *) :
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7173 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7174 esac
7175
7176
7177
7178 # Code from module alloca-opt:
7179 # Code from module allocator:
7180 # Code from module at-internal:
7181 # Code from module c-ctype:
7182 # Code from module c-strcase:
7183 # Code from module careadlinkat:
7184 # Code from module clock-time:
7185 # Code from module close-stream:
7186 # Code from module crypto/md5:
7187 # Code from module crypto/sha1:
7188 # Code from module crypto/sha256:
7189 # Code from module crypto/sha512:
7190 # Code from module dirent:
7191 # Code from module dosname:
7192 # Code from module dtoastr:
7193 # Code from module dtotimespec:
7194 # Code from module dup2:
7195 # Code from module environ:
7196 # Code from module errno:
7197 # Code from module euidaccess:
7198 # Code from module execinfo:
7199 # Code from module extensions:
7200
7201 # Code from module extern-inline:
7202 # Code from module faccessat:
7203 # Code from module fcntl-h:
7204 # Code from module fdatasync:
7205 # Code from module fdopendir:
7206 # Code from module filemode:
7207 # Code from module fpending:
7208 # Code from module fstatat:
7209 # Code from module fsync:
7210 # Code from module getgroups:
7211 # Code from module getloadavg:
7212 # Code from module getopt-gnu:
7213 # Code from module getopt-posix:
7214 # Code from module gettext-h:
7215 # Code from module gettime:
7216 # Code from module gettimeofday:
7217 # Code from module group-member:
7218 # Code from module ignore-value:
7219 # Code from module include_next:
7220 # Code from module intprops:
7221 # Code from module inttypes-incomplete:
7222 # Code from module largefile:
7223
7224 # Code from module lstat:
7225 # Code from module manywarnings:
7226 # Code from module memrchr:
7227 # Code from module mktime:
7228 # Code from module multiarch:
7229 # Code from module nocrash:
7230 # Code from module openat-h:
7231 # Code from module pathmax:
7232 # Code from module pselect:
7233 # Code from module pthread_sigmask:
7234 # Code from module putenv:
7235 # Code from module qacl:
7236 # Code from module readlink:
7237 # Code from module readlinkat:
7238 # Code from module root-uid:
7239 # Code from module sig2str:
7240 # Code from module signal-h:
7241 # Code from module snippet/_Noreturn:
7242 # Code from module snippet/arg-nonnull:
7243 # Code from module snippet/c++defs:
7244 # Code from module snippet/warn-on-use:
7245 # Code from module socklen:
7246 # Code from module ssize_t:
7247 # Code from module stat:
7248 # Code from module stat-time:
7249 # Code from module stdalign:
7250 # Code from module stdarg:
7251
7252
7253
7254 # Code from module stdbool:
7255 # Code from module stddef:
7256 # Code from module stdint:
7257 # Code from module stdio:
7258 # Code from module stdlib:
7259 # Code from module strftime:
7260 # Code from module string:
7261 # Code from module strtoimax:
7262 # Code from module strtoll:
7263 # Code from module strtoull:
7264 # Code from module strtoumax:
7265 # Code from module symlink:
7266 # Code from module sys_select:
7267 # Code from module sys_stat:
7268 # Code from module sys_time:
7269 # Code from module time:
7270 # Code from module time_r:
7271 # Code from module timer-time:
7272 # Code from module timespec:
7273 # Code from module timespec-add:
7274 # Code from module timespec-sub:
7275 # Code from module u64:
7276 # Code from module unistd:
7277 # Code from module unsetenv:
7278 # Code from module utimens:
7279 # Code from module verify:
7280 # Code from module warnings:
7281 # Code from module xalloc-oversized:
7282
7283
7284 if test "$ac_test_CFLAGS" != set; then
7285 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7286 # if -g3 works and the user does not specify CFLAGS.
7287 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7288 case $CFLAGS in
7289 '-g')
7290 emacs_g3_CFLAGS='-g3';;
7291 '-g -O2')
7292 emacs_g3_CFLAGS='-g3 -O2';;
7293 *)
7294 emacs_g3_CFLAGS='';;
7295 esac
7296 if test -n "$emacs_g3_CFLAGS"; then
7297 emacs_save_CFLAGS=$CFLAGS
7298 CFLAGS=$emacs_g3_CFLAGS
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7300 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7301 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306
7307 int
7308 main ()
7309 {
7310
7311 ;
7312 return 0;
7313 }
7314 _ACEOF
7315 if ac_fn_c_try_link "$LINENO"; then :
7316 emacs_cv_prog_cc_g3=yes
7317 else
7318 emacs_cv_prog_cc_g3=no
7319 fi
7320 rm -f core conftest.err conftest.$ac_objext \
7321 conftest$ac_exeext conftest.$ac_ext
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7324 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7325 if test $emacs_cv_prog_cc_g3 != yes; then
7326 CFLAGS=$emacs_save_CFLAGS
7327 fi
7328 fi
7329
7330 case $CFLAGS in
7331 *-O*) ;;
7332 *)
7333 # No optimization flag was inferred for this non-GCC compiler.
7334 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7335 emacs_save_CFLAGS=$CFLAGS
7336 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7337 CFLAGS=${CFLAGS}-O
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7339 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7340 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345
7346 int
7347 main ()
7348 {
7349
7350 ;
7351 return 0;
7352 }
7353 _ACEOF
7354 if ac_fn_c_try_link "$LINENO"; then :
7355 emacs_cv_prog_cc_o=yes
7356 else
7357 emacs_cv_prog_cc_o=no
7358 fi
7359 rm -f core conftest.err conftest.$ac_objext \
7360 conftest$ac_exeext conftest.$ac_ext
7361 fi
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7363 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7364 if test $emacs_cv_prog_cc_o != yes; then
7365 CFLAGS=$emacs_save_CFLAGS
7366 fi ;;
7367 esac
7368 fi
7369
7370 # Check whether --enable-gcc-warnings was given.
7371 if test "${enable_gcc_warnings+set}" = set; then :
7372 enableval=$enable_gcc_warnings; case $enableval in
7373 yes|no) ;;
7374 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7375 esac
7376 gl_gcc_warnings=$enableval
7377 else
7378 gl_gcc_warnings=no
7379
7380 fi
7381
7382
7383 # Check whether --enable-link-time-optimization was given.
7384 if test "${enable_link_time_optimization+set}" = set; then :
7385 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7387 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7388 ac_lto_supported=no
7389 if test x$GCC = xyes; then
7390 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7391 if test x$CPUS != x; then
7392 LTO="-flto=$CPUS"
7393 else
7394 LTO="-flto"
7395 fi
7396 old_CFLAGS=$CFLAGS
7397 CFLAGS="$CFLAGS $LTO"
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400
7401 int
7402 main ()
7403 {
7404
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 if ac_fn_c_try_compile "$LINENO"; then :
7410 ac_lto_supported=yes
7411 else
7412 ac_lto_supported=no
7413 fi
7414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415 CFLAGS="$old_CFLAGS"
7416 fi
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7418 $as_echo "$ac_lto_supported" >&6; }
7419 if test "$ac_lto_supported" = "yes"; then
7420 CFLAGS="$CFLAGS $LTO"
7421 fi
7422 fi
7423 fi
7424
7425
7426 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7427 # ------------------------------------------------
7428 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7429 # Otherwise, run RUN-IF-NOT-FOUND.
7430
7431
7432 # When compiling with GCC, prefer -isystem to -I when including system
7433 # include files, to avoid generating useless diagnostics for the files.
7434 if test "$gl_gcc_warnings" != yes; then
7435 isystem='-I'
7436 else
7437 isystem='-isystem '
7438
7439 # This, $nw, is the list of warnings we disable.
7440 nw=
7441
7442 case $with_x_toolkit in
7443 lucid | athena | motif)
7444 # Old toolkits mishandle 'const'.
7445 nw="$nw -Wwrite-strings"
7446 ;;
7447 *)
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7449 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7450 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453
7454 gl_save_compiler_FLAGS="$CFLAGS"
7455 as_fn_append CFLAGS " -Werror"
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7458
7459 int
7460 main ()
7461 {
7462
7463 ;
7464 return 0;
7465 }
7466 _ACEOF
7467 if ac_fn_c_try_compile "$LINENO"; then :
7468 gl_cv_warn_c__Werror=yes
7469 else
7470 gl_cv_warn_c__Werror=no
7471 fi
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473 CFLAGS="$gl_save_compiler_FLAGS"
7474
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7477 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7478 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7479 as_fn_append WERROR_CFLAGS " -Werror"
7480 fi
7481
7482
7483 ;;
7484 esac
7485
7486
7487 nw="$nw -Waggregate-return" # anachronistic
7488 nw="$nw -Wlong-long" # C90 is anachronistic
7489 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7490 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7491 nw="$nw -Wtraditional" # Warns on #elif which we use often
7492 nw="$nw -Wcast-qual" # Too many warnings for now
7493 nw="$nw -Wconversion" # Too many warnings for now
7494 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7495 nw="$nw -Wsign-conversion" # Too many warnings for now
7496 nw="$nw -Woverlength-strings" # Not a problem these days
7497 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7498 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7499 nw="$nw -Wpadded" # Our structs are not padded
7500 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7501 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7502 nw="$nw -Wformat-nonliteral" # we do this a lot
7503 nw="$nw -Wvla" # warnings in gettext.h
7504 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7505 nw="$nw -Wswitch-enum" # Too many warnings for now
7506 nw="$nw -Wswitch-default" # Too many warnings for now
7507 nw="$nw -Wfloat-equal" # warns about high-quality code
7508 nw="$nw -Winline" # OK to ignore 'inline'
7509 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7510 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7511 # signed overflow has undefined behavior
7512 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7513 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7514
7515 # Emacs doesn't care about shadowing; see
7516 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7517 nw="$nw -Wshadow"
7518
7519 # Emacs's use of alloca inhibits protecting the stack.
7520 nw="$nw -Wstack-protector"
7521
7522 # The following line should be removable at some point.
7523 nw="$nw -Wsuggest-attribute=pure"
7524
7525
7526
7527 if test -n "$GCC"; then
7528
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7530 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7531 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534
7535 gl_save_CFLAGS="$CFLAGS"
7536 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539
7540 int
7541 main ()
7542 {
7543
7544 ;
7545 return 0;
7546 }
7547 _ACEOF
7548 if ac_fn_c_try_compile "$LINENO"; then :
7549 gl_cv_cc_nomfi_supported=yes
7550 else
7551 gl_cv_cc_nomfi_supported=no
7552 fi
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554 CFLAGS="$gl_save_CFLAGS"
7555 fi
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7558 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7559
7560 if test "$gl_cv_cc_nomfi_supported" = yes; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7562 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7563 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566
7567 gl_save_CFLAGS="$CFLAGS"
7568 CFLAGS="$CFLAGS -W -Werror"
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 void f (void)
7572 {
7573 typedef struct { int a; int b; } s_t;
7574 s_t s1 = { 0, };
7575 }
7576
7577 int
7578 main ()
7579 {
7580
7581 ;
7582 return 0;
7583 }
7584 _ACEOF
7585 if ac_fn_c_try_compile "$LINENO"; then :
7586 gl_cv_cc_nomfi_needed=no
7587 else
7588 gl_cv_cc_nomfi_needed=yes
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591 CFLAGS="$gl_save_CFLAGS"
7592
7593 fi
7594
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7596 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7597 fi
7598
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7600 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7601 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604
7605 gl_save_CFLAGS="$CFLAGS"
7606 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609
7610 int
7611 main ()
7612 {
7613
7614 ;
7615 return 0;
7616 }
7617 _ACEOF
7618 if ac_fn_c_try_compile "$LINENO"; then :
7619 gl_cv_cc_uninitialized_supported=yes
7620 else
7621 gl_cv_cc_uninitialized_supported=no
7622 fi
7623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 CFLAGS="$gl_save_CFLAGS"
7625 fi
7626
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7628 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7629
7630 fi
7631
7632 # List all gcc warning categories.
7633 gl_manywarn_set=
7634 for gl_manywarn_item in \
7635 -W \
7636 -Wabi \
7637 -Waddress \
7638 -Wall \
7639 -Warray-bounds \
7640 -Wattributes \
7641 -Wbad-function-cast \
7642 -Wbuiltin-macro-redefined \
7643 -Wcast-align \
7644 -Wchar-subscripts \
7645 -Wclobbered \
7646 -Wcomment \
7647 -Wcomments \
7648 -Wcoverage-mismatch \
7649 -Wcpp \
7650 -Wdeprecated \
7651 -Wdeprecated-declarations \
7652 -Wdisabled-optimization \
7653 -Wdiv-by-zero \
7654 -Wdouble-promotion \
7655 -Wempty-body \
7656 -Wendif-labels \
7657 -Wenum-compare \
7658 -Wextra \
7659 -Wformat-contains-nul \
7660 -Wformat-extra-args \
7661 -Wformat-nonliteral \
7662 -Wformat-security \
7663 -Wformat-y2k \
7664 -Wformat-zero-length \
7665 -Wformat=2 \
7666 -Wfree-nonheap-object \
7667 -Wignored-qualifiers \
7668 -Wimplicit \
7669 -Wimplicit-function-declaration \
7670 -Wimplicit-int \
7671 -Winit-self \
7672 -Winline \
7673 -Wint-to-pointer-cast \
7674 -Winvalid-memory-model \
7675 -Winvalid-pch \
7676 -Wjump-misses-init \
7677 -Wlogical-op \
7678 -Wmain \
7679 -Wmaybe-uninitialized \
7680 -Wmissing-braces \
7681 -Wmissing-declarations \
7682 -Wmissing-field-initializers \
7683 -Wmissing-format-attribute \
7684 -Wmissing-include-dirs \
7685 -Wmissing-noreturn \
7686 -Wmissing-parameter-type \
7687 -Wmissing-prototypes \
7688 -Wmudflap \
7689 -Wmultichar \
7690 -Wnarrowing \
7691 -Wnested-externs \
7692 -Wnonnull \
7693 -Wnormalized=nfc \
7694 -Wold-style-declaration \
7695 -Wold-style-definition \
7696 -Woverflow \
7697 -Woverlength-strings \
7698 -Woverride-init \
7699 -Wpacked \
7700 -Wpacked-bitfield-compat \
7701 -Wparentheses \
7702 -Wpointer-arith \
7703 -Wpointer-sign \
7704 -Wpointer-to-int-cast \
7705 -Wpragmas \
7706 -Wreturn-type \
7707 -Wsequence-point \
7708 -Wshadow \
7709 -Wsizeof-pointer-memaccess \
7710 -Wstack-protector \
7711 -Wstrict-aliasing \
7712 -Wstrict-overflow \
7713 -Wstrict-prototypes \
7714 -Wsuggest-attribute=const \
7715 -Wsuggest-attribute=format \
7716 -Wsuggest-attribute=noreturn \
7717 -Wsuggest-attribute=pure \
7718 -Wswitch \
7719 -Wswitch-default \
7720 -Wsync-nand \
7721 -Wsystem-headers \
7722 -Wtrampolines \
7723 -Wtrigraphs \
7724 -Wtype-limits \
7725 -Wuninitialized \
7726 -Wunknown-pragmas \
7727 -Wunreachable-code \
7728 -Wunsafe-loop-optimizations \
7729 -Wunused \
7730 -Wunused-but-set-parameter \
7731 -Wunused-but-set-variable \
7732 -Wunused-function \
7733 -Wunused-label \
7734 -Wunused-local-typedefs \
7735 -Wunused-macros \
7736 -Wunused-parameter \
7737 -Wunused-result \
7738 -Wunused-value \
7739 -Wunused-variable \
7740 -Wvarargs \
7741 -Wvariadic-macros \
7742 -Wvector-operation-performance \
7743 -Wvla \
7744 -Wvolatile-register-var \
7745 -Wwrite-strings \
7746 \
7747 ; do
7748 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7749 done
7750
7751 # Disable specific options as needed.
7752 if test "$gl_cv_cc_nomfi_needed" = yes; then
7753 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7754 fi
7755
7756 if test "$gl_cv_cc_uninitialized_supported" = no; then
7757 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7758 fi
7759
7760 ws=$gl_manywarn_set
7761
7762
7763 gl_warn_set=
7764 set x $ws; shift
7765 for gl_warn_item
7766 do
7767 case " $nw " in
7768 *" $gl_warn_item "*)
7769 ;;
7770 *)
7771 gl_warn_set="$gl_warn_set $gl_warn_item"
7772 ;;
7773 esac
7774 done
7775 ws=$gl_warn_set
7776
7777 for w in $ws; do
7778 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7780 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7781 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784
7785 gl_save_compiler_FLAGS="$CFLAGS"
7786 as_fn_append CFLAGS " $w"
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789
7790 int
7791 main ()
7792 {
7793
7794 ;
7795 return 0;
7796 }
7797 _ACEOF
7798 if ac_fn_c_try_compile "$LINENO"; then :
7799 eval "$as_gl_Warn=yes"
7800 else
7801 eval "$as_gl_Warn=no"
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804 CFLAGS="$gl_save_compiler_FLAGS"
7805
7806 fi
7807 eval ac_res=\$$as_gl_Warn
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7809 $as_echo "$ac_res" >&6; }
7810 eval as_val=\$$as_gl_Warn
7811 if test "x$as_val" = x""yes; then :
7812 as_fn_append WARN_CFLAGS " $w"
7813 fi
7814
7815
7816 done
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7818 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7819 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822
7823 gl_save_compiler_FLAGS="$CFLAGS"
7824 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827
7828 int
7829 main ()
7830 {
7831
7832 ;
7833 return 0;
7834 }
7835 _ACEOF
7836 if ac_fn_c_try_compile "$LINENO"; then :
7837 gl_cv_warn_c__Wno_missing_field_initializers=yes
7838 else
7839 gl_cv_warn_c__Wno_missing_field_initializers=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 CFLAGS="$gl_save_compiler_FLAGS"
7843
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7846 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7847 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7848 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7849 fi
7850
7851 # We need this one
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7853 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7854 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857
7858 gl_save_compiler_FLAGS="$CFLAGS"
7859 as_fn_append CFLAGS " -Wno-sign-compare"
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862
7863 int
7864 main ()
7865 {
7866
7867 ;
7868 return 0;
7869 }
7870 _ACEOF
7871 if ac_fn_c_try_compile "$LINENO"; then :
7872 gl_cv_warn_c__Wno_sign_compare=yes
7873 else
7874 gl_cv_warn_c__Wno_sign_compare=no
7875 fi
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 CFLAGS="$gl_save_compiler_FLAGS"
7878
7879 fi
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7881 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7882 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7883 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7884 fi
7885
7886 # Too many warnings for now
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7888 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7889 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892
7893 gl_save_compiler_FLAGS="$CFLAGS"
7894 as_fn_append CFLAGS " -Wno-type-limits"
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7897
7898 int
7899 main ()
7900 {
7901
7902 ;
7903 return 0;
7904 }
7905 _ACEOF
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907 gl_cv_warn_c__Wno_type_limits=yes
7908 else
7909 gl_cv_warn_c__Wno_type_limits=no
7910 fi
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 CFLAGS="$gl_save_compiler_FLAGS"
7913
7914 fi
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7916 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7917 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7918 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7919 fi
7920
7921 # Too many warnings for now
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7923 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7924 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927
7928 gl_save_compiler_FLAGS="$CFLAGS"
7929 as_fn_append CFLAGS " -Wno-switch"
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7932
7933 int
7934 main ()
7935 {
7936
7937 ;
7938 return 0;
7939 }
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942 gl_cv_warn_c__Wno_switch=yes
7943 else
7944 gl_cv_warn_c__Wno_switch=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 CFLAGS="$gl_save_compiler_FLAGS"
7948
7949 fi
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7951 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7952 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7953 as_fn_append WARN_CFLAGS " -Wno-switch"
7954 fi
7955
7956 # Too many warnings for now
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7958 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7959 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962
7963 gl_save_compiler_FLAGS="$CFLAGS"
7964 as_fn_append CFLAGS " -Wno-unused-parameter"
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967
7968 int
7969 main ()
7970 {
7971
7972 ;
7973 return 0;
7974 }
7975 _ACEOF
7976 if ac_fn_c_try_compile "$LINENO"; then :
7977 gl_cv_warn_c__Wno_unused_parameter=yes
7978 else
7979 gl_cv_warn_c__Wno_unused_parameter=no
7980 fi
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982 CFLAGS="$gl_save_compiler_FLAGS"
7983
7984 fi
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7986 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7987 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7988 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7989 fi
7990
7991 # Too many warnings for now
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7993 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7994 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997
7998 gl_save_compiler_FLAGS="$CFLAGS"
7999 as_fn_append CFLAGS " -Wno-format-nonliteral"
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002
8003 int
8004 main ()
8005 {
8006
8007 ;
8008 return 0;
8009 }
8010 _ACEOF
8011 if ac_fn_c_try_compile "$LINENO"; then :
8012 gl_cv_warn_c__Wno_format_nonliteral=yes
8013 else
8014 gl_cv_warn_c__Wno_format_nonliteral=no
8015 fi
8016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017 CFLAGS="$gl_save_compiler_FLAGS"
8018
8019 fi
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8021 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8022 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8023 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8024 fi
8025
8026
8027
8028 # In spite of excluding -Wlogical-op above, it is enabled, as of
8029 # gcc 4.5.0 20090517.
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8031 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8032 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035
8036 gl_save_compiler_FLAGS="$CFLAGS"
8037 as_fn_append CFLAGS " -Wno-logical-op"
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040
8041 int
8042 main ()
8043 {
8044
8045 ;
8046 return 0;
8047 }
8048 _ACEOF
8049 if ac_fn_c_try_compile "$LINENO"; then :
8050 gl_cv_warn_c__Wno_logical_op=yes
8051 else
8052 gl_cv_warn_c__Wno_logical_op=no
8053 fi
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055 CFLAGS="$gl_save_compiler_FLAGS"
8056
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8059 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8060 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8061 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8062 fi
8063
8064
8065
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8067 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8068 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071
8072 gl_save_compiler_FLAGS="$CFLAGS"
8073 as_fn_append CFLAGS " -fdiagnostics-show-option"
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076
8077 int
8078 main ()
8079 {
8080
8081 ;
8082 return 0;
8083 }
8084 _ACEOF
8085 if ac_fn_c_try_compile "$LINENO"; then :
8086 gl_cv_warn_c__fdiagnostics_show_option=yes
8087 else
8088 gl_cv_warn_c__fdiagnostics_show_option=no
8089 fi
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 CFLAGS="$gl_save_compiler_FLAGS"
8092
8093 fi
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8095 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8096 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
8097 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
8098 fi
8099
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8102 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8103 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106
8107 gl_save_compiler_FLAGS="$CFLAGS"
8108 as_fn_append CFLAGS " -funit-at-a-time"
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111
8112 int
8113 main ()
8114 {
8115
8116 ;
8117 return 0;
8118 }
8119 _ACEOF
8120 if ac_fn_c_try_compile "$LINENO"; then :
8121 gl_cv_warn_c__funit_at_a_time=yes
8122 else
8123 gl_cv_warn_c__funit_at_a_time=no
8124 fi
8125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 CFLAGS="$gl_save_compiler_FLAGS"
8127
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8130 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8131 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8132 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8133 fi
8134
8135
8136
8137
8138 $as_echo "#define lint 1" >>confdefs.h
8139
8140
8141
8142 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8143
8144
8145 # We use a slightly smaller set of warning options for lib/.
8146 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8147 nw=
8148 nw="$nw -Wunused-macros"
8149
8150
8151 gl_warn_set=
8152 set x $WARN_CFLAGS; shift
8153 for gl_warn_item
8154 do
8155 case " $nw " in
8156 *" $gl_warn_item "*)
8157 ;;
8158 *)
8159 gl_warn_set="$gl_warn_set $gl_warn_item"
8160 ;;
8161 esac
8162 done
8163 GNULIB_WARN_CFLAGS=$gl_warn_set
8164
8165
8166 fi
8167
8168
8169
8170
8171
8172
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8174 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8175 rm -f conf$$ conf$$.file
8176
8177 LN_S_FILEONLY='cp -p'
8178
8179 if (echo >conf$$.file) 2>/dev/null; then
8180 if ln -s conf$$.file conf$$ 2>/dev/null; then
8181 LN_S_FILEONLY='ln -s'
8182 elif ln conf$$.file conf$$ 2>/dev/null; then
8183 LN_S_FILEONLY=ln
8184 fi
8185 fi
8186
8187 rm -f conf$$ conf$$.file
8188
8189 if test "$LN_S_FILEONLY" = "ln -s"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8191 $as_echo "yes" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8194 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8195 fi
8196
8197
8198
8199
8200 # Extract the first word of "install-info", so it can be a program name with args.
8201 set dummy install-info; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 case $INSTALL_INFO in
8208 [\\/]* | ?:[\\/]*)
8209 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8210 ;;
8211 *)
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8214 do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223 done
8224 done
8225 IFS=$as_save_IFS
8226
8227 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8228 ;;
8229 esac
8230 fi
8231 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8232 if test -n "$INSTALL_INFO"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8234 $as_echo "$INSTALL_INFO" >&6; }
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240
8241 # Extract the first word of "gzip", so it can be a program name with args.
8242 set dummy gzip; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 case $GZIP_PROG in
8249 [\\/]* | ?:[\\/]*)
8250 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8251 ;;
8252 *)
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8255 do
8256 IFS=$as_save_IFS
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8260 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 break 2
8263 fi
8264 done
8265 done
8266 IFS=$as_save_IFS
8267
8268 ;;
8269 esac
8270 fi
8271 GZIP_PROG=$ac_cv_path_GZIP_PROG
8272 if test -n "$GZIP_PROG"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8274 $as_echo "$GZIP_PROG" >&6; }
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279
8280
8281
8282 if test $opsys = gnu-linux; then
8283 # Extract the first word of "paxctl", so it can be a program name with args.
8284 set dummy paxctl; ac_word=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 case $PAXCTL in
8291 [\\/]* | ?:[\\/]*)
8292 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8293 ;;
8294 *)
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8297 do
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8305 fi
8306 done
8307 done
8308 IFS=$as_save_IFS
8309
8310 ;;
8311 esac
8312 fi
8313 PAXCTL=$ac_cv_path_PAXCTL
8314 if test -n "$PAXCTL"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8316 $as_echo "$PAXCTL" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321
8322
8323 if test "X$PAXCTL" != X; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8325 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328
8329 int
8330 main ()
8331 {
8332
8333 ;
8334 return 0;
8335 }
8336 _ACEOF
8337 if ac_fn_c_try_link "$LINENO"; then :
8338 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8339 $as_echo "yes" >&6; }
8340 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }; PAXCTL=""; fi
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext \
8344 conftest$ac_exeext conftest.$ac_ext
8345 fi
8346 fi
8347
8348 ## Need makeinfo >= 4.7 (?) to build the manuals.
8349 # Extract the first word of "makeinfo", so it can be a program name with args.
8350 set dummy makeinfo; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 case $MAKEINFO in
8357 [\\/]* | ?:[\\/]*)
8358 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8359 ;;
8360 *)
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8363 do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8371 fi
8372 done
8373 done
8374 IFS=$as_save_IFS
8375
8376 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8377 ;;
8378 esac
8379 fi
8380 MAKEINFO=$ac_cv_path_MAKEINFO
8381 if test -n "$MAKEINFO"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8383 $as_echo "$MAKEINFO" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8387 fi
8388
8389
8390 if test "$MAKEINFO" != "no"; then
8391 case `
8392 $MAKEINFO --version 2> /dev/null |
8393 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8394 ` in
8395 '') MAKEINFO=no;;
8396 esac
8397 fi
8398
8399 ## Makeinfo is unusual. For a released Emacs, the manuals are
8400 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8401 ## therefore in the category of "special tools" not normally required, which
8402 ## configure does not have to check for (eg autoconf itself).
8403 ## In a Bazaar checkout on the other hand, the manuals are not included.
8404 ## So makeinfo is a requirement to build from Bazaar, and configure
8405 ## should test for it as it does for any other build requirement.
8406 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8407 ## with pre-built manuals, from a Bazaar checkout.
8408 HAVE_MAKEINFO=yes
8409
8410 if test "$MAKEINFO" = "no"; then
8411 MAKEINFO=makeinfo
8412 if test "x${with_makeinfo}" = "xno"; then
8413 HAVE_MAKEINFO=no
8414 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8415 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8416 source tree does not seem to have pre-built manuals in the \`info' directory.
8417 Either install a suitable version of makeinfo, or re-run configure
8418 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8419 fi
8420 fi
8421
8422
8423 INFO_EXT=.info
8424 INFO_OPTS=--no-split
8425
8426
8427
8428
8429 if test x$GCC = xyes; then
8430 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8431 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8432 else
8433 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8434 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8435 fi
8436
8437
8438 late_LDFLAGS=$LDFLAGS
8439 if test x$GCC = xyes; then
8440 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8441 else
8442 LDFLAGS="$LDFLAGS -znocombreloc"
8443 fi
8444
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8446 $as_echo_n "checking for -znocombreloc... " >&6; }
8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h. */
8449
8450 int
8451 main ()
8452 {
8453
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 if ac_fn_c_try_link "$LINENO"; then :
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8460 $as_echo "yes" >&6; }
8461 else
8462 LDFLAGS=$late_LDFLAGS
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468
8469
8470 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8471 case "$opsys" in
8472 your-opsys-here) CANNOT_DUMP=yes ;;
8473 esac
8474
8475 test "$CANNOT_DUMP" = "yes" && \
8476
8477 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8478
8479
8480
8481
8482
8483 UNEXEC_OBJ=unexelf.o
8484 case "$opsys" in
8485 # MSDOS uses unexcoff.o
8486 # MSWindows uses unexw32.o
8487 aix4-2)
8488 UNEXEC_OBJ=unexaix.o
8489 ;;
8490 cygwin)
8491 UNEXEC_OBJ=unexcw.o
8492 ;;
8493 darwin)
8494 UNEXEC_OBJ=unexmacosx.o
8495 ;;
8496 hpux10-20 | hpux11)
8497 UNEXEC_OBJ=unexhp9k800.o
8498 ;;
8499 sol2-10)
8500 # Use the Solaris dldump() function, called from unexsol.c, to dump
8501 # emacs, instead of the generic ELF dump code found in unexelf.c.
8502 # The resulting binary has a complete symbol table, and is better
8503 # for debugging and other observability tools (debuggers, pstack, etc).
8504 #
8505 # If you encounter a problem using dldump(), please consider sending
8506 # a message to the OpenSolaris tools-linking mailing list:
8507 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8508 #
8509 # It is likely that dldump() works with older Solaris too, but this has
8510 # not been tested, so for now this change is for Solaris 10 or newer.
8511 UNEXEC_OBJ=unexsol.o
8512 ;;
8513 esac
8514
8515 LD_SWITCH_SYSTEM=
8516 case "$opsys" in
8517 freebsd|dragonfly)
8518 ## Let `ld' find image libs and similar things in /usr/local/lib.
8519 ## The system compiler, GCC, has apparently been modified to not
8520 ## look there, contrary to what a stock GCC would do.
8521 ### It's not our place to do this. See bug#10313#17.
8522 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8523 :
8524 ;;
8525
8526 gnu-linux)
8527 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8528 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8529 ;;
8530
8531 netbsd)
8532 ### It's not our place to do this. See bug#10313#17.
8533 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8534 :
8535 ;;
8536
8537 openbsd)
8538 ## Han Boetes <han@boetes.org> says this is necessary,
8539 ## otherwise Emacs dumps core on elf systems.
8540 LD_SWITCH_SYSTEM="-Z"
8541 ;;
8542 esac
8543
8544
8545 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8546
8547 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8548 ## which has not been defined yet. When this was handled with cpp,
8549 ## it was expanded to null when configure sourced the s/*.h file.
8550 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8551 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8552 ## (or somesuch), but because it is supposed to go at the _front_
8553 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8554 ## Compare with the gnu-linux case below, which added to the end
8555 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8556 ## LD_SWITCH_SYSTEM_TEMACS.
8557 case "$opsys" in
8558 netbsd|openbsd)
8559 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8560 esac
8561
8562
8563 C_SWITCH_MACHINE=
8564 case $canonical in
8565 alpha*)
8566 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8567 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8568
8569 fi
8570
8571 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8572 ## With ELF, make sure that all common symbols get allocated to in the
8573 ## data section. Otherwise, the dump of temacs may miss variables in
8574 ## the shared library that have been initialized. For example, with
8575 ## GNU libc, __malloc_initialized would normally be resolved to the
8576 ## shared library's .bss section, which is fatal.
8577 if test "x$GCC" = "xyes"; then
8578 C_SWITCH_MACHINE="-fno-common"
8579 else
8580 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8581 fi
8582 else
8583 UNEXEC_OBJ=unexalpha.o
8584 fi
8585 ;;
8586 esac
8587
8588
8589
8590
8591 C_SWITCH_SYSTEM=
8592 ## Some programs in src produce warnings saying certain subprograms
8593 ## are too complex and need a MAXMEM value greater than 2000 for
8594 ## additional optimization. --nils@exp-math.uni-essen.de
8595 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8596 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8597 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8598 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8599
8600
8601
8602 LIBS_SYSTEM=
8603 case "$opsys" in
8604 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8605 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8606
8607 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
8608
8609 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8610
8611 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8612
8613 ## Motif needs -lgen.
8614 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8615 esac
8616
8617
8618
8619 ### Make sure subsequent tests use flags consistent with the build flags.
8620
8621 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8622 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8623 else
8624 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8625 fi
8626
8627 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8628
8629 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8630
8631
8632
8633 LIB_MATH=-lm
8634 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8635
8636 case $opsys in
8637 cygwin )
8638 LIB_MATH=
8639 ;;
8640 darwin )
8641 ## Adding -lm confuses the dynamic linker, so omit it.
8642 LIB_MATH=
8643 ;;
8644 freebsd | dragonfly )
8645 SYSTEM_TYPE=berkeley-unix
8646 ;;
8647 gnu-linux | gnu-kfreebsd )
8648 ;;
8649 hpux10-20 | hpux11 )
8650 ;;
8651 netbsd | openbsd )
8652 SYSTEM_TYPE=berkeley-unix
8653 ;;
8654
8655 sol2* | unixware )
8656 SYSTEM_TYPE=usg-unix-v
8657 ;;
8658
8659 esac
8660
8661
8662
8663 cat >>confdefs.h <<_ACEOF
8664 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8665 _ACEOF
8666
8667
8668
8669 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8670 pre_PKG_CONFIG_LIBS=$LIBS
8671
8672 # Extract the first word of "pkg-config", so it can be a program name with args.
8673 set dummy pkg-config; ac_word=$2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 $as_echo_n "checking for $ac_word... " >&6; }
8676 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 case $PKG_CONFIG in
8680 [\\/]* | ?:[\\/]*)
8681 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8682 ;;
8683 *)
8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685 for as_dir in $PATH
8686 do
8687 IFS=$as_save_IFS
8688 test -z "$as_dir" && as_dir=.
8689 for ac_exec_ext in '' $ac_executable_extensions; do
8690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8691 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 break 2
8694 fi
8695 done
8696 done
8697 IFS=$as_save_IFS
8698
8699 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8700 ;;
8701 esac
8702 fi
8703 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8704 if test -n "$PKG_CONFIG"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8706 $as_echo "$PKG_CONFIG" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711
8712
8713
8714
8715
8716
8717 if test "${with_sound}" != "no"; then
8718 # Sound support for GNU/Linux and the free BSDs.
8719 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8720 do :
8721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8722 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8723 eval as_val=\$$as_ac_Header
8724 if test "x$as_val" = x""yes; then :
8725 cat >>confdefs.h <<_ACEOF
8726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8727 _ACEOF
8728 have_sound_header=yes
8729 fi
8730
8731 done
8732
8733 # Emulation library used on NetBSD.
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8735 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8736 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 ac_check_lib_save_LIBS=$LIBS
8740 LIBS="-lossaudio $LIBS"
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743
8744 /* Override any GCC internal prototype to avoid an error.
8745 Use char because int might match the return type of a GCC
8746 builtin and then its argument prototype would still apply. */
8747 #ifdef __cplusplus
8748 extern "C"
8749 #endif
8750 char _oss_ioctl ();
8751 int
8752 main ()
8753 {
8754 return _oss_ioctl ();
8755 ;
8756 return 0;
8757 }
8758 _ACEOF
8759 if ac_fn_c_try_link "$LINENO"; then :
8760 ac_cv_lib_ossaudio__oss_ioctl=yes
8761 else
8762 ac_cv_lib_ossaudio__oss_ioctl=no
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
8766 LIBS=$ac_check_lib_save_LIBS
8767 fi
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8769 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8770 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8771 LIBSOUND=-lossaudio
8772 else
8773 LIBSOUND=
8774 fi
8775
8776
8777
8778 ALSA_REQUIRED=1.0.0
8779 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8780
8781 succeeded=no
8782
8783 if test "$PKG_CONFIG" = "no" ; then
8784 HAVE_ALSA=no
8785 else
8786 PKG_CONFIG_MIN_VERSION=0.9.0
8787 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8789 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8790
8791 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8792 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8793 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8794 edit_cflags="
8795 s,///*,/,g
8796 s/^/ /
8797 s/ -I/ $isystem/g
8798 s/^ //
8799 "
8800 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8801 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8803 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8804 succeeded=yes
8805 else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8808 ALSA_CFLAGS=""
8809 ALSA_LIBS=""
8810 ## If we have a custom action on failure, don't print errors, but
8811 ## do set a variable so people can do so. Do it in a subshell
8812 ## to capture any diagnostics in invoking pkg-config.
8813 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8814
8815 fi
8816
8817
8818
8819 else
8820 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8821 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8822 fi
8823 fi
8824
8825 if test $succeeded = yes; then
8826 HAVE_ALSA=yes
8827 else
8828 HAVE_ALSA=no
8829 fi
8830
8831 if test $HAVE_ALSA = yes; then
8832 SAVE_CFLAGS="$CFLAGS"
8833 SAVE_LIBS="$LIBS"
8834 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8835 LIBS="$ALSA_LIBS $LIBS"
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #include <asoundlib.h>
8839 int
8840 main ()
8841 {
8842 snd_lib_error_set_handler (0);
8843 ;
8844 return 0;
8845 }
8846 _ACEOF
8847 if ac_fn_c_try_compile "$LINENO"; then :
8848 emacs_alsa_normal=yes
8849 else
8850 emacs_alsa_normal=no
8851 fi
8852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 if test "$emacs_alsa_normal" != yes; then
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8856 #include <alsa/asoundlib.h>
8857 int
8858 main ()
8859 {
8860 snd_lib_error_set_handler (0);
8861 ;
8862 return 0;
8863 }
8864 _ACEOF
8865 if ac_fn_c_try_compile "$LINENO"; then :
8866 emacs_alsa_subdir=yes
8867 else
8868 emacs_alsa_subdir=no
8869 fi
8870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871 if test "$emacs_alsa_subdir" != yes; then
8872 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8873 fi
8874 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8875 fi
8876
8877 CFLAGS="$SAVE_CFLAGS"
8878 LIBS="$SAVE_LIBS"
8879 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8880 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8881
8882 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8883
8884 fi
8885
8886 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8887 case "$opsys" in
8888 gnu-linux|freebsd|netbsd)
8889
8890 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8891
8892 ;;
8893 esac
8894 fi
8895
8896
8897 fi
8898
8899
8900
8901
8902 for ac_header in $ac_header_list
8903 do :
8904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8905 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8906 "
8907 eval as_val=\$$as_ac_Header
8908 if test "x$as_val" = x""yes; then :
8909 cat >>confdefs.h <<_ACEOF
8910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8911 _ACEOF
8912
8913 fi
8914
8915 done
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8938 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8941 #include <sys/personality.h>
8942 int
8943 main ()
8944 {
8945 personality (PER_LINUX32)
8946 ;
8947 return 0;
8948 }
8949 _ACEOF
8950 if ac_fn_c_try_compile "$LINENO"; then :
8951 emacs_cv_personality_linux32=yes
8952 else
8953 emacs_cv_personality_linux32=no
8954 fi
8955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8957 $as_echo "$emacs_cv_personality_linux32" >&6; }
8958
8959 if test $emacs_cv_personality_linux32 = yes; then
8960
8961 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8962
8963 fi
8964
8965 for ac_header in term.h
8966 do :
8967 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8968 if test "x$ac_cv_header_term_h" = x""yes; then :
8969 cat >>confdefs.h <<_ACEOF
8970 #define HAVE_TERM_H 1
8971 _ACEOF
8972
8973 fi
8974
8975 done
8976
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8978 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8979 if test "${ac_cv_header_time+set}" = set; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8984 #include <sys/types.h>
8985 #include <sys/time.h>
8986 #include <time.h>
8987
8988 int
8989 main ()
8990 {
8991 if ((struct tm *) 0)
8992 return 0;
8993 ;
8994 return 0;
8995 }
8996 _ACEOF
8997 if ac_fn_c_try_compile "$LINENO"; then :
8998 ac_cv_header_time=yes
8999 else
9000 ac_cv_header_time=no
9001 fi
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 fi
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9005 $as_echo "$ac_cv_header_time" >&6; }
9006 if test $ac_cv_header_time = yes; then
9007
9008 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9009
9010 fi
9011
9012 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9013
9014 "
9015 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9016 ac_have_decl=1
9017 else
9018 ac_have_decl=0
9019 fi
9020
9021 cat >>confdefs.h <<_ACEOF
9022 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9023 _ACEOF
9024
9025 if test $ac_cv_have_decl_sys_siglist != yes; then
9026 # For Tru64, at least:
9027 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9028
9029 "
9030 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9031 ac_have_decl=1
9032 else
9033 ac_have_decl=0
9034 fi
9035
9036 cat >>confdefs.h <<_ACEOF
9037 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9038 _ACEOF
9039
9040 if test $ac_cv_have_decl___sys_siglist = yes; then
9041
9042 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9043
9044 fi
9045 fi
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9047 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9048 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 #include <sys/types.h>
9054 #include <sys/wait.h>
9055 #ifndef WEXITSTATUS
9056 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9057 #endif
9058 #ifndef WIFEXITED
9059 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9060 #endif
9061
9062 int
9063 main ()
9064 {
9065 int s;
9066 wait (&s);
9067 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9068 ;
9069 return 0;
9070 }
9071 _ACEOF
9072 if ac_fn_c_try_compile "$LINENO"; then :
9073 ac_cv_header_sys_wait_h=yes
9074 else
9075 ac_cv_header_sys_wait_h=no
9076 fi
9077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9078 fi
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9080 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9081 if test $ac_cv_header_sys_wait_h = yes; then
9082
9083 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9084
9085 fi
9086
9087
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9089 $as_echo_n "checking for speed_t... " >&6; }
9090 if test "${emacs_cv_speed_t+set}" = set; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095 #include <termios.h>
9096 int
9097 main ()
9098 {
9099 speed_t x = 1;
9100 ;
9101 return 0;
9102 }
9103 _ACEOF
9104 if ac_fn_c_try_compile "$LINENO"; then :
9105 emacs_cv_speed_t=yes
9106 else
9107 emacs_cv_speed_t=no
9108 fi
9109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110 fi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9112 $as_echo "$emacs_cv_speed_t" >&6; }
9113 if test $emacs_cv_speed_t = yes; then
9114
9115 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9116
9117 fi
9118
9119
9120
9121
9122 for ac_header in net/if.h
9123 do :
9124 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9125 #if HAVE_SYS_SOCKET_H
9126 #include <sys/socket.h>
9127 #endif
9128 "
9129 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9130 cat >>confdefs.h <<_ACEOF
9131 #define HAVE_NET_IF_H 1
9132 _ACEOF
9133
9134 fi
9135
9136 done
9137
9138 for ac_header in ifaddrs.h
9139 do :
9140 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9141 #if HAVE_SYS_SOCKET_H
9142 #include <sys/socket.h>
9143 #endif
9144 "
9145 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9146 cat >>confdefs.h <<_ACEOF
9147 #define HAVE_IFADDRS_H 1
9148 _ACEOF
9149
9150 fi
9151
9152 done
9153
9154 for ac_header in net/if_dl.h
9155 do :
9156 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9157 #if HAVE_SYS_SOCKET_H
9158 #include <sys/socket.h>
9159 #endif
9160 "
9161 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9162 cat >>confdefs.h <<_ACEOF
9163 #define HAVE_NET_IF_DL_H 1
9164 _ACEOF
9165
9166 fi
9167
9168 done
9169
9170
9171 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9172 #if HAVE_SYS_SOCKET_H
9173 #include <sys/socket.h>
9174 #endif
9175 #if HAVE_NET_IF_H
9176 #include <net/if.h>
9177 #endif
9178 "
9179 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9180
9181 cat >>confdefs.h <<_ACEOF
9182 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9183 _ACEOF
9184
9185
9186 fi
9187 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9188 #if HAVE_SYS_SOCKET_H
9189 #include <sys/socket.h>
9190 #endif
9191 #if HAVE_NET_IF_H
9192 #include <net/if.h>
9193 #endif
9194 "
9195 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9196
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9199 _ACEOF
9200
9201
9202 fi
9203 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9204 #if HAVE_SYS_SOCKET_H
9205 #include <sys/socket.h>
9206 #endif
9207 #if HAVE_NET_IF_H
9208 #include <net/if.h>
9209 #endif
9210 "
9211 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9212
9213 cat >>confdefs.h <<_ACEOF
9214 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9215 _ACEOF
9216
9217
9218 fi
9219 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9220 #if HAVE_SYS_SOCKET_H
9221 #include <sys/socket.h>
9222 #endif
9223 #if HAVE_NET_IF_H
9224 #include <net/if.h>
9225 #endif
9226 "
9227 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9228
9229 cat >>confdefs.h <<_ACEOF
9230 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9231 _ACEOF
9232
9233
9234 fi
9235 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9236 #if HAVE_SYS_SOCKET_H
9237 #include <sys/socket.h>
9238 #endif
9239 #if HAVE_NET_IF_H
9240 #include <net/if.h>
9241 #endif
9242 "
9243 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9244
9245 cat >>confdefs.h <<_ACEOF
9246 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9247 _ACEOF
9248
9249
9250 fi
9251 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9252 #if HAVE_SYS_SOCKET_H
9253 #include <sys/socket.h>
9254 #endif
9255 #if HAVE_NET_IF_H
9256 #include <net/if.h>
9257 #endif
9258 "
9259 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9260
9261 cat >>confdefs.h <<_ACEOF
9262 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9263 _ACEOF
9264
9265
9266 fi
9267
9268
9269
9270
9271 DEPFLAGS=
9272 MKDEPDIR=":"
9273 deps_frag=deps.mk
9274 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9276 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9277 HAVE_GNU_MAKE=no
9278 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9279 if test "x$testval" != x; then
9280 HAVE_GNU_MAKE=yes
9281 else
9282 ac_enable_autodepend=no
9283 fi
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9285 $as_echo "$HAVE_GNU_MAKE" >&6; }
9286 if test $HAVE_GNU_MAKE = yes; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9288 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9289 SAVE_CFLAGS="$CFLAGS"
9290 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9293
9294 int
9295 main ()
9296 {
9297
9298 ;
9299 return 0;
9300 }
9301 _ACEOF
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303
9304 else
9305 ac_enable_autodepend=no
9306 fi
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9308 CFLAGS="$SAVE_CFLAGS"
9309 test -f deps.d || ac_enable_autodepend=no
9310 rm -rf deps.d
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9312 $as_echo "$ac_enable_autodepend" >&6; }
9313 fi
9314 if test $ac_enable_autodepend = yes; then
9315 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9316 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9317 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9318 deps_frag=autodeps.mk
9319 fi
9320 fi
9321 deps_frag=$srcdir/src/$deps_frag
9322
9323
9324
9325
9326
9327 lisp_frag=$srcdir/src/lisp.mk
9328
9329
9330
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9332 $as_echo_n "checking for long file names... " >&6; }
9333 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 ac_cv_sys_long_file_names=yes
9337 # Test for long file names in all the places we know might matter:
9338 # . the current directory, where building will happen
9339 # $prefix/lib where we will be installing things
9340 # $exec_prefix/lib likewise
9341 # $TMPDIR if set, where it might want to write temporary files
9342 # /tmp where it might want to write temporary files
9343 # /var/tmp likewise
9344 # /usr/tmp likewise
9345 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9346 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9347 # in the usual case where exec_prefix is '${prefix}'.
9348 case $ac_dir in #(
9349 . | /* | ?:[\\/]*) ;; #(
9350 *) continue;;
9351 esac
9352 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9353 ac_xdir=$ac_dir/cf$$
9354 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9355 ac_tf1=$ac_xdir/conftest9012345
9356 ac_tf2=$ac_xdir/conftest9012346
9357 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9358 ac_cv_sys_long_file_names=no
9359 rm -f -r "$ac_xdir" 2>/dev/null
9360 test $ac_cv_sys_long_file_names = no && break
9361 done
9362 fi
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9364 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9365 if test $ac_cv_sys_long_file_names = yes; then
9366
9367 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9368
9369 fi
9370
9371
9372 #### Choose a window system.
9373
9374 ## We leave window_system equal to none if
9375 ## we end up building without one. Any new window system should
9376 ## set window_system to an appropriate value and add objects to
9377 ## window-system-specific substs.
9378
9379 window_system=none
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9381 $as_echo_n "checking for X... " >&6; }
9382
9383
9384 # Check whether --with-x was given.
9385 if test "${with_x+set}" = set; then :
9386 withval=$with_x;
9387 fi
9388
9389 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9390 if test "x$with_x" = xno; then
9391 # The user explicitly disabled X.
9392 have_x=disabled
9393 else
9394 case $x_includes,$x_libraries in #(
9395 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9396 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 # One or both of the vars are not set, and there is no cached value.
9400 ac_x_includes=no ac_x_libraries=no
9401 rm -f -r conftest.dir
9402 if mkdir conftest.dir; then
9403 cd conftest.dir
9404 cat >Imakefile <<'_ACEOF'
9405 incroot:
9406 @echo incroot='${INCROOT}'
9407 usrlibdir:
9408 @echo usrlibdir='${USRLIBDIR}'
9409 libdir:
9410 @echo libdir='${LIBDIR}'
9411 _ACEOF
9412 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9414 for ac_var in incroot usrlibdir libdir; do
9415 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9416 done
9417 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9418 for ac_extension in a so sl dylib la dll; do
9419 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9420 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9421 ac_im_usrlibdir=$ac_im_libdir; break
9422 fi
9423 done
9424 # Screen out bogus values from the imake configuration. They are
9425 # bogus both because they are the default anyway, and because
9426 # using them would break gcc on systems where it needs fixed includes.
9427 case $ac_im_incroot in
9428 /usr/include) ac_x_includes= ;;
9429 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9430 esac
9431 case $ac_im_usrlibdir in
9432 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9433 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9434 esac
9435 fi
9436 cd ..
9437 rm -f -r conftest.dir
9438 fi
9439
9440 # Standard set of common directories for X headers.
9441 # Check X11 before X11Rn because it is often a symlink to the current release.
9442 ac_x_header_dirs='
9443 /usr/X11/include
9444 /usr/X11R7/include
9445 /usr/X11R6/include
9446 /usr/X11R5/include
9447 /usr/X11R4/include
9448
9449 /usr/include/X11
9450 /usr/include/X11R7
9451 /usr/include/X11R6
9452 /usr/include/X11R5
9453 /usr/include/X11R4
9454
9455 /usr/local/X11/include
9456 /usr/local/X11R7/include
9457 /usr/local/X11R6/include
9458 /usr/local/X11R5/include
9459 /usr/local/X11R4/include
9460
9461 /usr/local/include/X11
9462 /usr/local/include/X11R7
9463 /usr/local/include/X11R6
9464 /usr/local/include/X11R5
9465 /usr/local/include/X11R4
9466
9467 /usr/X386/include
9468 /usr/x386/include
9469 /usr/XFree86/include/X11
9470
9471 /usr/include
9472 /usr/local/include
9473 /usr/unsupported/include
9474 /usr/athena/include
9475 /usr/local/x11r5/include
9476 /usr/lpp/Xamples/include
9477
9478 /usr/openwin/include
9479 /usr/openwin/share/include'
9480
9481 if test "$ac_x_includes" = no; then
9482 # Guess where to find include files, by looking for Xlib.h.
9483 # First, try using that file with no special directory specified.
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486 #include <X11/Xlib.h>
9487 _ACEOF
9488 if ac_fn_c_try_cpp "$LINENO"; then :
9489 # We can compile using X headers with no special include directory.
9490 ac_x_includes=
9491 else
9492 for ac_dir in $ac_x_header_dirs; do
9493 if test -r "$ac_dir/X11/Xlib.h"; then
9494 ac_x_includes=$ac_dir
9495 break
9496 fi
9497 done
9498 fi
9499 rm -f conftest.err conftest.$ac_ext
9500 fi # $ac_x_includes = no
9501
9502 if test "$ac_x_libraries" = no; then
9503 # Check for the libraries.
9504 # See if we find them without any special options.
9505 # Don't add to $LIBS permanently.
9506 ac_save_LIBS=$LIBS
9507 LIBS="-lX11 $LIBS"
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9510 #include <X11/Xlib.h>
9511 int
9512 main ()
9513 {
9514 XrmInitialize ()
9515 ;
9516 return 0;
9517 }
9518 _ACEOF
9519 if ac_fn_c_try_link "$LINENO"; then :
9520 LIBS=$ac_save_LIBS
9521 # We can link X programs with no special library path.
9522 ac_x_libraries=
9523 else
9524 LIBS=$ac_save_LIBS
9525 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9526 do
9527 # Don't even attempt the hair of trying to link an X program!
9528 for ac_extension in a so sl dylib la dll; do
9529 if test -r "$ac_dir/libX11.$ac_extension"; then
9530 ac_x_libraries=$ac_dir
9531 break 2
9532 fi
9533 done
9534 done
9535 fi
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 fi # $ac_x_libraries = no
9539
9540 case $ac_x_includes,$ac_x_libraries in #(
9541 no,* | *,no | *\'*)
9542 # Didn't find X, or a directory has "'" in its name.
9543 ac_cv_have_x="have_x=no";; #(
9544 *)
9545 # Record where we found X for the cache.
9546 ac_cv_have_x="have_x=yes\
9547 ac_x_includes='$ac_x_includes'\
9548 ac_x_libraries='$ac_x_libraries'"
9549 esac
9550 fi
9551 ;; #(
9552 *) have_x=yes;;
9553 esac
9554 eval "$ac_cv_have_x"
9555 fi # $with_x != no
9556
9557 if test "$have_x" != yes; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9559 $as_echo "$have_x" >&6; }
9560 no_x=yes
9561 else
9562 # If each of the values was on the command line, it overrides each guess.
9563 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9564 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9565 # Update the cache value to reflect the command line values.
9566 ac_cv_have_x="have_x=yes\
9567 ac_x_includes='$x_includes'\
9568 ac_x_libraries='$x_libraries'"
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9570 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9571 fi
9572
9573 if test "$no_x" != yes; then
9574 window_system=x11
9575 fi
9576
9577 LD_SWITCH_X_SITE_RPATH=
9578 if test "${x_libraries}" != NONE; then
9579 if test -n "${x_libraries}"; then
9580 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9581 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9582 fi
9583 x_default_search_path=""
9584 x_search_path=${x_libraries}
9585 if test -z "${x_search_path}"; then
9586 x_search_path=/usr/lib
9587 fi
9588 for x_library in `echo ${x_search_path}: | \
9589 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9590 x_search_path="\
9591 ${x_library}/X11/%L/%T/%N%C%S:\
9592 ${x_library}/X11/%l/%T/%N%C%S:\
9593 ${x_library}/X11/%T/%N%C%S:\
9594 ${x_library}/X11/%L/%T/%N%S:\
9595 ${x_library}/X11/%l/%T/%N%S:\
9596 ${x_library}/X11/%T/%N%S"
9597 if test x"${x_default_search_path}" = x; then
9598 x_default_search_path=${x_search_path}
9599 else
9600 x_default_search_path="${x_search_path}:${x_default_search_path}"
9601 fi
9602 done
9603 fi
9604
9605
9606 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9607 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9608 fi
9609
9610 if test x"${x_includes}" = x; then
9611 bitmapdir=/usr/include/X11/bitmaps
9612 else
9613 # accumulate include directories that have X11 bitmap subdirectories
9614 bmd_acc="dummyval"
9615 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9616 if test -d "${bmd}/X11/bitmaps"; then
9617 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9618 fi
9619 if test -d "${bmd}/bitmaps"; then
9620 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9621 fi
9622 done
9623 if test ${bmd_acc} != "dummyval"; then
9624 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9625 fi
9626 fi
9627
9628 HAVE_NS=no
9629 NS_IMPL_COCOA=no
9630 NS_IMPL_GNUSTEP=no
9631 tmp_CPPFLAGS="$CPPFLAGS"
9632 tmp_CFLAGS="$CFLAGS"
9633 CPPFLAGS="$CPPFLAGS -x objective-c"
9634 CFLAGS="$CFLAGS -x objective-c"
9635 GNU_OBJC_CFLAGS=
9636 LIBS_GNUSTEP=
9637 if test "${with_ns}" != no; then
9638 if test "${opsys}" = darwin; then
9639 NS_IMPL_COCOA=yes
9640 ns_appdir=`pwd`/nextstep/Emacs.app
9641 ns_appbindir=${ns_appdir}/Contents/MacOS
9642 ns_appresdir=${ns_appdir}/Contents/Resources
9643 ns_appsrc=Cocoa/Emacs.base
9644 elif test -f $GNUSTEP_CONFIG_FILE; then
9645 NS_IMPL_GNUSTEP=yes
9646 ns_appdir=`pwd`/nextstep/Emacs.app
9647 ns_appbindir=${ns_appdir}
9648 ns_appresdir=${ns_appdir}/Resources
9649 ns_appsrc=GNUstep/Emacs.base
9650 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9651 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9652 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9653 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9654 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9655 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9656 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9657 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9658 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9659 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9660 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9661 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9663 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9664 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9669 #include <GNUstepBase/GSConfig.h>
9670 int
9671 main ()
9672 {
9673 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9674 1;
9675 #else
9676 fail;
9677 #endif
9678 ;
9679 return 0;
9680 }
9681 _ACEOF
9682 if ac_fn_c_try_compile "$LINENO"; then :
9683 emacs_cv_objc_exceptions=yes
9684 else
9685 emacs_cv_objc_exceptions=no
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 fi
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9690 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9691 if test $emacs_cv_objc_exceptions = yes; then
9692
9693 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9694
9695 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9696 fi
9697 fi
9698
9699 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9700
9701 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9702 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9703 HAVE_NS=yes
9704 else
9705 as_fn_error "\`--with-ns' was specified, but the include
9706 files are missing or cannot be compiled." "$LINENO" 5
9707 fi
9708
9709
9710
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 #include <AppKit/AppKit.h>
9714 int
9715 main ()
9716 {
9717
9718 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9719 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9720 ; /* OK */
9721 #else
9722 #error "OSX 10.4 or newer required"
9723 #endif
9724 #endif
9725
9726 ;
9727 return 0;
9728 }
9729 _ACEOF
9730 if ac_fn_c_try_compile "$LINENO"; then :
9731 ns_osx_have_104=yes
9732 else
9733 ns_osx_have_104=no
9734 fi
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 #include <Foundation/NSObjCRuntime.h>
9739 int
9740 main ()
9741 {
9742 NSInteger i;
9743 ;
9744 return 0;
9745 }
9746 _ACEOF
9747 if ac_fn_c_try_compile "$LINENO"; then :
9748 ns_have_nsinteger=yes
9749 else
9750 ns_have_nsinteger=no
9751 fi
9752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9753 if test $ns_osx_have_104 = no; then
9754 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9755 fi
9756 if test $ns_have_nsinteger = yes; then
9757
9758 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9759
9760 fi
9761 fi
9762
9763
9764
9765 INSTALL_ARCH_INDEP_EXTRA=install-etc
9766 ns_self_contained=no
9767 NS_OBJ=
9768 NS_OBJC_OBJ=
9769 if test "${HAVE_NS}" = yes; then
9770 if test "$with_toolkit_scroll_bars" = "no"; then
9771 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9772 fi
9773
9774 window_system=nextstep
9775 # set up packaging dirs
9776 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9777 ns_self_contained=yes
9778 prefix=${ns_appresdir}
9779 exec_prefix=${ns_appbindir}
9780 libexecdir="\${ns_appbindir}/libexec"
9781 archlibdir="\${ns_appbindir}/libexec"
9782 docdir="\${ns_appresdir}/etc"
9783 etcdir="\${ns_appresdir}/etc"
9784 infodir="\${ns_appresdir}/info"
9785 mandir="\${ns_appresdir}/man"
9786 lispdir="\${ns_appresdir}/lisp"
9787 leimdir="\${ns_appresdir}/leim"
9788 INSTALL_ARCH_INDEP_EXTRA=
9789 fi
9790 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9791 fi
9792 CFLAGS="$tmp_CFLAGS"
9793 CPPFLAGS="$tmp_CPPFLAGS"
9794
9795
9796
9797
9798
9799 HAVE_W32=no
9800 W32_OBJ=
9801 W32_LIBS=
9802 W32_RES=
9803 W32_RES_LINK=
9804 if test "${with_w32}" != no; then
9805 if test "${opsys}" != "cygwin"; then
9806 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9807 fi
9808 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9809 if test "x$ac_cv_header_windows_h" = x""yes; then :
9810 HAVE_W32=yes
9811 else
9812 as_fn_error "\`--with-w32' was specified, but windows.h
9813 cannot be found." "$LINENO" 5
9814 fi
9815
9816
9817
9818 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9819
9820 if test -n "$ac_tool_prefix"; then
9821 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9822 set dummy ${ac_tool_prefix}windres; ac_word=$2
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824 $as_echo_n "checking for $ac_word... " >&6; }
9825 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 if test -n "$WINDRES"; then
9829 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9830 else
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 for as_dir in $PATH
9833 do
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 break 2
9841 fi
9842 done
9843 done
9844 IFS=$as_save_IFS
9845
9846 fi
9847 fi
9848 WINDRES=$ac_cv_prog_WINDRES
9849 if test -n "$WINDRES"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9851 $as_echo "$WINDRES" >&6; }
9852 else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9855 fi
9856
9857
9858 fi
9859 if test -z "$ac_cv_prog_WINDRES"; then
9860 ac_ct_WINDRES=$WINDRES
9861 # Extract the first word of "windres", so it can be a program name with args.
9862 set dummy windres; ac_word=$2
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864 $as_echo_n "checking for $ac_word... " >&6; }
9865 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 if test -n "$ac_ct_WINDRES"; then
9869 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9870 else
9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9873 do
9874 IFS=$as_save_IFS
9875 test -z "$as_dir" && as_dir=.
9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9878 ac_cv_prog_ac_ct_WINDRES="windres"
9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880 break 2
9881 fi
9882 done
9883 done
9884 IFS=$as_save_IFS
9885
9886 fi
9887 fi
9888 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9889 if test -n "$ac_ct_WINDRES"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9891 $as_echo "$ac_ct_WINDRES" >&6; }
9892 else
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9895 fi
9896
9897 if test "x$ac_ct_WINDRES" = x; then
9898 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
9899 else
9900 case $cross_compiling:$ac_tool_warned in
9901 yes:)
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9904 ac_tool_warned=yes ;;
9905 esac
9906 WINDRES=$ac_ct_WINDRES
9907 fi
9908 else
9909 WINDRES="$ac_cv_prog_WINDRES"
9910 fi
9911
9912 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9913 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9914 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9915 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9916 W32_RES="emacs.res"
9917 # Tell the linker that emacs.res is an object (which we compile from
9918 # the rc file), not a linker script.
9919 W32_RES_LINK="-Wl,emacs.res"
9920 fi
9921
9922
9923
9924
9925
9926 if test "${HAVE_W32}" = "yes"; then
9927 window_system=w32
9928 with_xft=no
9929 fi
9930
9931 ## $window_system is now set to the window system we will
9932 ## ultimately use.
9933
9934 term_header=
9935 HAVE_X_WINDOWS=no
9936 HAVE_X11=no
9937 USE_X_TOOLKIT=none
9938
9939 case "${window_system}" in
9940 x11 )
9941 HAVE_X_WINDOWS=yes
9942 HAVE_X11=yes
9943 term_header=xterm.h
9944 case "${with_x_toolkit}" in
9945 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9946 motif ) USE_X_TOOLKIT=MOTIF ;;
9947 gtk ) with_gtk=yes
9948 term_header=gtkutil.h
9949 USE_X_TOOLKIT=none ;;
9950 gtk2 ) with_gtk2=yes
9951 term_header=gtkutil.h
9952 USE_X_TOOLKIT=none ;;
9953 gtk3 ) with_gtk3=yes
9954 term_header=gtkutil.h
9955 USE_X_TOOLKIT=none ;;
9956 no ) USE_X_TOOLKIT=none ;;
9957 * ) USE_X_TOOLKIT=maybe ;;
9958 esac
9959 ;;
9960 nextstep )
9961 term_header=nsterm.h
9962 ;;
9963 w32 )
9964 term_header=w32term.h
9965 ;;
9966 esac
9967
9968 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9969 # Extract the first word of "X", so it can be a program name with args.
9970 set dummy X; ac_word=$2
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9972 $as_echo_n "checking for $ac_word... " >&6; }
9973 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9974 $as_echo_n "(cached) " >&6
9975 else
9976 if test -n "$HAVE_XSERVER"; then
9977 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9978 else
9979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 for as_dir in $PATH
9981 do
9982 IFS=$as_save_IFS
9983 test -z "$as_dir" && as_dir=.
9984 for ac_exec_ext in '' $ac_executable_extensions; do
9985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9986 ac_cv_prog_HAVE_XSERVER="true"
9987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9988 break 2
9989 fi
9990 done
9991 done
9992 IFS=$as_save_IFS
9993
9994 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9995 fi
9996 fi
9997 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9998 if test -n "$HAVE_XSERVER"; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10000 $as_echo "$HAVE_XSERVER" >&6; }
10001 else
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10004 fi
10005
10006
10007 if test "$HAVE_XSERVER" = true ||
10008 test -n "$DISPLAY" ||
10009 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10010 as_fn_error "You seem to be running X, but no X development libraries
10011 were found. You should install the relevant development files for X
10012 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10013 sure you have development files for image handling, i.e.
10014 tiff, gif, jpeg, png and xpm.
10015 If you are sure you want Emacs compiled without X window support, pass
10016 --without-x
10017 to configure." "$LINENO" 5
10018 fi
10019 fi
10020
10021 ### If we're using X11, we should use the X menu package.
10022 HAVE_MENUS=no
10023 case ${HAVE_X11} in
10024 yes ) HAVE_MENUS=yes ;;
10025 esac
10026
10027 # Does the opsystem file prohibit the use of the GNU malloc?
10028 # Assume not, until told otherwise.
10029 GNU_MALLOC=yes
10030
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10032 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10033 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10034 $as_echo_n "(cached) " >&6
10035 else
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 #include <malloc.h>
10039 static void hook (void) {}
10040 int
10041 main ()
10042 {
10043 malloc_set_state (malloc_get_state ());
10044 __after_morecore_hook = hook;
10045 __malloc_initialize_hook = hook;
10046 ;
10047 return 0;
10048 }
10049 _ACEOF
10050 if ac_fn_c_try_link "$LINENO"; then :
10051 emacs_cv_var_doug_lea_malloc=yes
10052 else
10053 emacs_cv_var_doug_lea_malloc=no
10054 fi
10055 rm -f core conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10057 fi
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10059 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10060 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10061
10062
10063 system_malloc=no
10064 case "$opsys" in
10065 ## darwin ld insists on the use of malloc routines in the System framework.
10066 darwin|sol2-10) system_malloc=yes ;;
10067 esac
10068
10069 if test "${system_malloc}" = "yes"; then
10070
10071 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10072
10073 GNU_MALLOC=no
10074 GNU_MALLOC_reason="
10075 (The GNU allocators don't work with this system configuration.)"
10076 GMALLOC_OBJ=
10077 VMLIMIT_OBJ=
10078 else
10079 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10080 VMLIMIT_OBJ=vm-limit.o
10081
10082 for ac_header in sys/vlimit.h
10083 do :
10084 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10085 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10086 cat >>confdefs.h <<_ACEOF
10087 #define HAVE_SYS_VLIMIT_H 1
10088 _ACEOF
10089
10090 fi
10091
10092 done
10093
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10095 $as_echo_n "checking for data_start... " >&6; }
10096 if test "${emacs_cv_data_start+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10101 extern char data_start[]; char ch;
10102 int
10103 main ()
10104 {
10105 return data_start < &ch;
10106 ;
10107 return 0;
10108 }
10109 _ACEOF
10110 if ac_fn_c_try_link "$LINENO"; then :
10111 emacs_cv_data_start=yes
10112 else
10113 emacs_cv_data_start=no
10114 fi
10115 rm -f core conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10117 fi
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10119 $as_echo "$emacs_cv_data_start" >&6; }
10120 if test $emacs_cv_data_start = yes; then
10121
10122 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10123
10124 fi
10125 fi
10126
10127
10128
10129 if test "$doug_lea_malloc" = "yes" ; then
10130 if test "$GNU_MALLOC" = yes ; then
10131 GNU_MALLOC_reason="
10132 (Using Doug Lea's new malloc from the GNU C Library.)"
10133 fi
10134
10135 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10136
10137
10138 ## Use mmap directly for allocating larger buffers.
10139 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10140 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10141 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10142 case "$opsys" in
10143 gnu*) REL_ALLOC=no ;;
10144 esac
10145 fi
10146
10147 if test x"${REL_ALLOC}" = x; then
10148 REL_ALLOC=${GNU_MALLOC}
10149 fi
10150
10151 use_mmap_for_buffers=no
10152 case "$opsys" in
10153 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10154 esac
10155
10156
10157
10158
10159
10160
10161
10162
10163 for ac_func in getpagesize
10164 do :
10165 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10166 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10167 cat >>confdefs.h <<_ACEOF
10168 #define HAVE_GETPAGESIZE 1
10169 _ACEOF
10170
10171 fi
10172 done
10173
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10175 $as_echo_n "checking for working mmap... " >&6; }
10176 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 if test "$cross_compiling" = yes; then :
10180 ac_cv_func_mmap_fixed_mapped=no
10181 else
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 $ac_includes_default
10185 /* malloc might have been renamed as rpl_malloc. */
10186 #undef malloc
10187
10188 /* Thanks to Mike Haertel and Jim Avera for this test.
10189 Here is a matrix of mmap possibilities:
10190 mmap private not fixed
10191 mmap private fixed at somewhere currently unmapped
10192 mmap private fixed at somewhere already mapped
10193 mmap shared not fixed
10194 mmap shared fixed at somewhere currently unmapped
10195 mmap shared fixed at somewhere already mapped
10196 For private mappings, we should verify that changes cannot be read()
10197 back from the file, nor mmap's back from the file at a different
10198 address. (There have been systems where private was not correctly
10199 implemented like the infamous i386 svr4.0, and systems where the
10200 VM page cache was not coherent with the file system buffer cache
10201 like early versions of FreeBSD and possibly contemporary NetBSD.)
10202 For shared mappings, we should conversely verify that changes get
10203 propagated back to all the places they're supposed to be.
10204
10205 Grep wants private fixed already mapped.
10206 The main things grep needs to know about mmap are:
10207 * does it exist and is it safe to write into the mmap'd area
10208 * how to use it (BSD variants) */
10209
10210 #include <fcntl.h>
10211 #include <sys/mman.h>
10212
10213 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10214 char *malloc ();
10215 #endif
10216
10217 /* This mess was copied from the GNU getpagesize.h. */
10218 #ifndef HAVE_GETPAGESIZE
10219 # ifdef _SC_PAGESIZE
10220 # define getpagesize() sysconf(_SC_PAGESIZE)
10221 # else /* no _SC_PAGESIZE */
10222 # ifdef HAVE_SYS_PARAM_H
10223 # include <sys/param.h>
10224 # ifdef EXEC_PAGESIZE
10225 # define getpagesize() EXEC_PAGESIZE
10226 # else /* no EXEC_PAGESIZE */
10227 # ifdef NBPG
10228 # define getpagesize() NBPG * CLSIZE
10229 # ifndef CLSIZE
10230 # define CLSIZE 1
10231 # endif /* no CLSIZE */
10232 # else /* no NBPG */
10233 # ifdef NBPC
10234 # define getpagesize() NBPC
10235 # else /* no NBPC */
10236 # ifdef PAGESIZE
10237 # define getpagesize() PAGESIZE
10238 # endif /* PAGESIZE */
10239 # endif /* no NBPC */
10240 # endif /* no NBPG */
10241 # endif /* no EXEC_PAGESIZE */
10242 # else /* no HAVE_SYS_PARAM_H */
10243 # define getpagesize() 8192 /* punt totally */
10244 # endif /* no HAVE_SYS_PARAM_H */
10245 # endif /* no _SC_PAGESIZE */
10246
10247 #endif /* no HAVE_GETPAGESIZE */
10248
10249 int
10250 main ()
10251 {
10252 char *data, *data2, *data3;
10253 const char *cdata2;
10254 int i, pagesize;
10255 int fd, fd2;
10256
10257 pagesize = getpagesize ();
10258
10259 /* First, make a file with some known garbage in it. */
10260 data = (char *) malloc (pagesize);
10261 if (!data)
10262 return 1;
10263 for (i = 0; i < pagesize; ++i)
10264 *(data + i) = rand ();
10265 umask (0);
10266 fd = creat ("conftest.mmap", 0600);
10267 if (fd < 0)
10268 return 2;
10269 if (write (fd, data, pagesize) != pagesize)
10270 return 3;
10271 close (fd);
10272
10273 /* Next, check that the tail of a page is zero-filled. File must have
10274 non-zero length, otherwise we risk SIGBUS for entire page. */
10275 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10276 if (fd2 < 0)
10277 return 4;
10278 cdata2 = "";
10279 if (write (fd2, cdata2, 1) != 1)
10280 return 5;
10281 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10282 if (data2 == MAP_FAILED)
10283 return 6;
10284 for (i = 0; i < pagesize; ++i)
10285 if (*(data2 + i))
10286 return 7;
10287 close (fd2);
10288 if (munmap (data2, pagesize))
10289 return 8;
10290
10291 /* Next, try to mmap the file at a fixed address which already has
10292 something else allocated at it. If we can, also make sure that
10293 we see the same garbage. */
10294 fd = open ("conftest.mmap", O_RDWR);
10295 if (fd < 0)
10296 return 9;
10297 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10298 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10299 return 10;
10300 for (i = 0; i < pagesize; ++i)
10301 if (*(data + i) != *(data2 + i))
10302 return 11;
10303
10304 /* Finally, make sure that changes to the mapped area do not
10305 percolate back to the file as seen by read(). (This is a bug on
10306 some variants of i386 svr4.0.) */
10307 for (i = 0; i < pagesize; ++i)
10308 *(data2 + i) = *(data2 + i) + 1;
10309 data3 = (char *) malloc (pagesize);
10310 if (!data3)
10311 return 12;
10312 if (read (fd, data3, pagesize) != pagesize)
10313 return 13;
10314 for (i = 0; i < pagesize; ++i)
10315 if (*(data + i) != *(data3 + i))
10316 return 14;
10317 close (fd);
10318 return 0;
10319 }
10320 _ACEOF
10321 if ac_fn_c_try_run "$LINENO"; then :
10322 ac_cv_func_mmap_fixed_mapped=yes
10323 else
10324 ac_cv_func_mmap_fixed_mapped=no
10325 fi
10326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10327 conftest.$ac_objext conftest.beam conftest.$ac_ext
10328 fi
10329
10330 fi
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10332 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10333 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10334
10335 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10336
10337 fi
10338 rm -f conftest.mmap conftest.txt
10339
10340 if test $use_mmap_for_buffers = yes; then
10341
10342 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10343
10344 REL_ALLOC=no
10345 fi
10346
10347 LIBS="$LIBS_SYSTEM $LIBS"
10348
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10350 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10351 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 ac_check_lib_save_LIBS=$LIBS
10355 LIBS="-ldnet $LIBS"
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10358
10359 /* Override any GCC internal prototype to avoid an error.
10360 Use char because int might match the return type of a GCC
10361 builtin and then its argument prototype would still apply. */
10362 #ifdef __cplusplus
10363 extern "C"
10364 #endif
10365 char dnet_ntoa ();
10366 int
10367 main ()
10368 {
10369 return dnet_ntoa ();
10370 ;
10371 return 0;
10372 }
10373 _ACEOF
10374 if ac_fn_c_try_link "$LINENO"; then :
10375 ac_cv_lib_dnet_dnet_ntoa=yes
10376 else
10377 ac_cv_lib_dnet_dnet_ntoa=no
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10382 fi
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10384 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10385 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10386 cat >>confdefs.h <<_ACEOF
10387 #define HAVE_LIBDNET 1
10388 _ACEOF
10389
10390 LIBS="-ldnet $LIBS"
10391
10392 fi
10393
10394
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10396 $as_echo_n "checking for main in -lXbsd... " >&6; }
10397 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 ac_check_lib_save_LIBS=$LIBS
10401 LIBS="-lXbsd $LIBS"
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404
10405
10406 int
10407 main ()
10408 {
10409 return main ();
10410 ;
10411 return 0;
10412 }
10413 _ACEOF
10414 if ac_fn_c_try_link "$LINENO"; then :
10415 ac_cv_lib_Xbsd_main=yes
10416 else
10417 ac_cv_lib_Xbsd_main=no
10418 fi
10419 rm -f core conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10421 LIBS=$ac_check_lib_save_LIBS
10422 fi
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10424 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10425 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10426 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10427 fi
10428
10429
10430 LIB_PTHREAD=
10431
10432
10433
10434 if test "$ac_cv_header_pthread_h"; then
10435 if test "$GMALLOC_OBJ" = gmalloc.o; then
10436 emacs_pthread_function=pthread_atfork
10437 else
10438 emacs_pthread_function=pthread_self
10439 fi
10440 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10442 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10443 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 ac_check_lib_save_LIBS=$LIBS
10447 LIBS="-lpthread $LIBS"
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450
10451 /* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
10454 #ifdef __cplusplus
10455 extern "C"
10456 #endif
10457 char $emacs_pthread_function ();
10458 int
10459 main ()
10460 {
10461 return $emacs_pthread_function ();
10462 ;
10463 return 0;
10464 }
10465 _ACEOF
10466 if ac_fn_c_try_link "$LINENO"; then :
10467 eval "$as_ac_Lib=yes"
10468 else
10469 eval "$as_ac_Lib=no"
10470 fi
10471 rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
10473 LIBS=$ac_check_lib_save_LIBS
10474 fi
10475 eval ac_res=\$$as_ac_Lib
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10477 $as_echo "$ac_res" >&6; }
10478 eval as_val=\$$as_ac_Lib
10479 if test "x$as_val" = x""yes; then :
10480 HAVE_PTHREAD=yes
10481 fi
10482
10483 fi
10484 if test "$HAVE_PTHREAD" = yes; then
10485 case "${canonical}" in
10486 *-hpux*) ;;
10487 *) LIB_PTHREAD="-lpthread"
10488 LIBS="$LIB_PTHREAD $LIBS" ;;
10489 esac
10490
10491 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10492
10493 fi
10494
10495
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10497 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10498 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 ac_check_lib_save_LIBS=$LIBS
10502 LIBS="-lpthreads $LIBS"
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10505
10506 /* Override any GCC internal prototype to avoid an error.
10507 Use char because int might match the return type of a GCC
10508 builtin and then its argument prototype would still apply. */
10509 #ifdef __cplusplus
10510 extern "C"
10511 #endif
10512 char cma_open ();
10513 int
10514 main ()
10515 {
10516 return cma_open ();
10517 ;
10518 return 0;
10519 }
10520 _ACEOF
10521 if ac_fn_c_try_link "$LINENO"; then :
10522 ac_cv_lib_pthreads_cma_open=yes
10523 else
10524 ac_cv_lib_pthreads_cma_open=no
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext \
10527 conftest$ac_exeext conftest.$ac_ext
10528 LIBS=$ac_check_lib_save_LIBS
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10531 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10532 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10533 cat >>confdefs.h <<_ACEOF
10534 #define HAVE_LIBPTHREADS 1
10535 _ACEOF
10536
10537 LIBS="-lpthreads $LIBS"
10538
10539 fi
10540
10541
10542 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10543 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10544 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10545 ## added to LIBS in configure would never contain the pthreads part,
10546 ## but the value used in Makefiles might. FIXME?
10547 ##
10548 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10549 ## be harmless on older versions of X where it happens to exist.
10550 test "$opsys" = "aix4-2" && \
10551 test $ac_cv_lib_pthreads_cma_open = yes && \
10552 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10553
10554
10555 case ${host_os} in
10556 aix*)
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10558 $as_echo_n "checking for -bbigtoc option... " >&6; }
10559 if test "${gdb_cv_bigtoc+set}" = set; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562
10563 case $GCC in
10564 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10565 *) gdb_cv_bigtoc=-bbigtoc ;;
10566 esac
10567
10568 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571
10572 int
10573 main ()
10574 {
10575 int i;
10576 ;
10577 return 0;
10578 }
10579 _ACEOF
10580 if ac_fn_c_try_link "$LINENO"; then :
10581
10582 else
10583 gdb_cv_bigtoc=
10584 fi
10585 rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587
10588 fi
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10590 $as_echo "$gdb_cv_bigtoc" >&6; }
10591 ;;
10592 esac
10593
10594 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10595 # used for the tests that follow. We set them back to REAL_CFLAGS and
10596 # REAL_CPPFLAGS later on.
10597
10598 REAL_CFLAGS="$CFLAGS"
10599 REAL_CPPFLAGS="$CPPFLAGS"
10600
10601 if test "${HAVE_X11}" = "yes"; then
10602 DEFS="$C_SWITCH_X_SITE $DEFS"
10603 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10604 LIBS="-lX11 $LIBS"
10605 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10606 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10607
10608 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10609 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10610 # but it's more convenient here to set LD_RUN_PATH since this
10611 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10612 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10613 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10614 export LD_RUN_PATH
10615 fi
10616
10617 if test "${opsys}" = "gnu-linux"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10619 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10622
10623 int
10624 main ()
10625 {
10626 XOpenDisplay ("foo");
10627 ;
10628 return 0;
10629 }
10630 _ACEOF
10631 if ac_fn_c_try_link "$LINENO"; then :
10632 xgnu_linux_first_failure=no
10633 else
10634 xgnu_linux_first_failure=yes
10635 fi
10636 rm -f core conftest.err conftest.$ac_objext \
10637 conftest$ac_exeext conftest.$ac_ext
10638 if test "${xgnu_linux_first_failure}" = "yes"; then
10639 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10640 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10641 OLD_CPPFLAGS="$CPPFLAGS"
10642 OLD_LIBS="$LIBS"
10643 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10644 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10645 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10646 LIBS="$LIBS -b i486-linuxaout"
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649
10650 int
10651 main ()
10652 {
10653 XOpenDisplay ("foo");
10654 ;
10655 return 0;
10656 }
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"; then :
10659 xgnu_linux_second_failure=no
10660 else
10661 xgnu_linux_second_failure=yes
10662 fi
10663 rm -f core conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665 if test "${xgnu_linux_second_failure}" = "yes"; then
10666 # If we get the same failure with -b, there is no use adding -b.
10667 # So take it out. This plays safe.
10668 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10669 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10670 CPPFLAGS="$OLD_CPPFLAGS"
10671 LIBS="$OLD_LIBS"
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10674 else
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; }
10677 fi
10678 else
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 $as_echo "no" >&6; }
10681 fi
10682 fi
10683
10684 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10685 # header files included from there.
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10687 $as_echo_n "checking for Xkb... " >&6; }
10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10690 #include <X11/Xlib.h>
10691 #include <X11/XKBlib.h>
10692 int
10693 main ()
10694 {
10695 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10696 ;
10697 return 0;
10698 }
10699 _ACEOF
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 emacs_xkb=yes
10702 else
10703 emacs_xkb=no
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext \
10706 conftest$ac_exeext conftest.$ac_ext
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10708 $as_echo "$emacs_xkb" >&6; }
10709 if test $emacs_xkb = yes; then
10710
10711 $as_echo "#define HAVE_XKB 1" >>confdefs.h
10712
10713 fi
10714
10715 for ac_func in XrmSetDatabase XScreenResourceString \
10716 XScreenNumberOfScreen
10717 do :
10718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10719 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10720 eval as_val=\$$as_ac_var
10721 if test "x$as_val" = x""yes; then :
10722 cat >>confdefs.h <<_ACEOF
10723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10724 _ACEOF
10725
10726 fi
10727 done
10728
10729 fi
10730
10731 if test "${window_system}" = "x11"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10733 $as_echo_n "checking X11 version 6... " >&6; }
10734 if test "${emacs_cv_x11_version_6+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #include <X11/Xlib.h>
10740 int
10741 main ()
10742 {
10743 #if XlibSpecificationRelease < 6
10744 fail;
10745 #endif
10746
10747 ;
10748 return 0;
10749 }
10750 _ACEOF
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 emacs_cv_x11_version_6=yes
10753 else
10754 emacs_cv_x11_version_6=no
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 fi
10759
10760 if test $emacs_cv_x11_version_6 = yes; then
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10762 $as_echo "6 or newer" >&6; }
10763
10764 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10765
10766
10767 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10768
10769 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10770 ## XIM support.
10771 case "$opsys" in
10772 sol2-*) : ;;
10773 *)
10774 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10775
10776 ;;
10777 esac
10778 else
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10780 $as_echo "before 6" >&6; }
10781 fi
10782 fi
10783
10784
10785 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10786 HAVE_RSVG=no
10787 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10788 if test "${with_rsvg}" != "no"; then
10789 RSVG_REQUIRED=2.11.0
10790 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10791
10792
10793 succeeded=no
10794
10795 if test "$PKG_CONFIG" = "no" ; then
10796 :
10797 else
10798 PKG_CONFIG_MIN_VERSION=0.9.0
10799 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10801 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10802
10803 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10804 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10805 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10806 edit_cflags="
10807 s,///*,/,g
10808 s/^/ /
10809 s/ -I/ $isystem/g
10810 s/^ //
10811 "
10812 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10813 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10815 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10816 succeeded=yes
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10820 RSVG_CFLAGS=""
10821 RSVG_LIBS=""
10822 ## If we have a custom action on failure, don't print errors, but
10823 ## do set a variable so people can do so. Do it in a subshell
10824 ## to capture any diagnostics in invoking pkg-config.
10825 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10826
10827 fi
10828
10829
10830
10831 else
10832 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10833 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10834 fi
10835 fi
10836
10837 if test $succeeded = yes; then
10838 HAVE_RSVG=yes
10839 else
10840 :
10841 fi
10842
10843
10844
10845
10846 if test $HAVE_RSVG = yes; then
10847
10848 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10849
10850 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10851 LIBS="$RSVG_LIBS $LIBS"
10852 fi
10853 fi
10854 fi
10855
10856 HAVE_IMAGEMAGICK=no
10857 if test "${HAVE_X11}" = "yes"; then
10858 if test "${with_imagemagick}" != "no"; then
10859 ## 6.2.8 is the earliest version known to work, but earlier versions
10860 ## might work - let us know if you find one.
10861 ## 6.0.7 does not work. See bug#7955.
10862 ## 6.8.2 makes Emacs crash; see Bug#13867.
10863 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
10864
10865 succeeded=no
10866
10867 if test "$PKG_CONFIG" = "no" ; then
10868 :
10869 else
10870 PKG_CONFIG_MIN_VERSION=0.9.0
10871 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10873 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10874
10875 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10876 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10877 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10878 edit_cflags="
10879 s,///*,/,g
10880 s/^/ /
10881 s/ -I/ $isystem/g
10882 s/^ //
10883 "
10884 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10885 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10887 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10888 succeeded=yes
10889 else
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10892 IMAGEMAGICK_CFLAGS=""
10893 IMAGEMAGICK_LIBS=""
10894 ## If we have a custom action on failure, don't print errors, but
10895 ## do set a variable so people can do so. Do it in a subshell
10896 ## to capture any diagnostics in invoking pkg-config.
10897 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10898
10899 fi
10900
10901
10902
10903 else
10904 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10905 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10906 fi
10907 fi
10908
10909 if test $succeeded = yes; then
10910 HAVE_IMAGEMAGICK=yes
10911 else
10912 :
10913 fi
10914
10915
10916
10917
10918 if test $HAVE_IMAGEMAGICK = yes; then
10919
10920 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10921
10922 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10923 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10924 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10925 do :
10926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10927 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10928 eval as_val=\$$as_ac_var
10929 if test "x$as_val" = x""yes; then :
10930 cat >>confdefs.h <<_ACEOF
10931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10932 _ACEOF
10933
10934 fi
10935 done
10936
10937 fi
10938 fi
10939 fi
10940
10941
10942 HAVE_GTK=no
10943 GTK_OBJ=
10944 check_gtk2=no
10945 gtk3_pkg_errors=
10946 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10947 GLIB_REQUIRED=2.28
10948 GTK_REQUIRED=3.0
10949 GTK_MODULES="gtk+-3.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" && test "$with_gtk3" = "yes"; then
11003 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11004 fi
11005 if test "$pkg_check_gtk" = "yes"; then
11006
11007 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11008
11009 GTK_OBJ=emacsgtkfixed.o
11010 term_header=gtkutil.h
11011 USE_GTK_TOOLKIT="GTK3"
11012 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11013 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11014 fi
11015 else
11016 check_gtk2=yes
11017 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11018 fi
11019 fi
11020
11021 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11022 GLIB_REQUIRED=2.10
11023 GTK_REQUIRED=2.10
11024 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11025
11026
11027 succeeded=no
11028
11029 if test "$PKG_CONFIG" = "no" ; then
11030 pkg_check_gtk=no
11031 else
11032 PKG_CONFIG_MIN_VERSION=0.9.0
11033 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11035 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11036
11037 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11038 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11039 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11040 edit_cflags="
11041 s,///*,/,g
11042 s/^/ /
11043 s/ -I/ $isystem/g
11044 s/^ //
11045 "
11046 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11047 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11049 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11050 succeeded=yes
11051 else
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11054 GTK_CFLAGS=""
11055 GTK_LIBS=""
11056 ## If we have a custom action on failure, don't print errors, but
11057 ## do set a variable so people can do so. Do it in a subshell
11058 ## to capture any diagnostics in invoking pkg-config.
11059 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11060
11061 fi
11062
11063
11064
11065 else
11066 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11067 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11068 fi
11069 fi
11070
11071 if test $succeeded = yes; then
11072 pkg_check_gtk=yes
11073 else
11074 pkg_check_gtk=no
11075 fi
11076
11077 if test "$pkg_check_gtk" = "no" &&
11078 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11079 then
11080 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11081 fi
11082 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11083 fi
11084
11085 if test x"$pkg_check_gtk" = xyes; then
11086
11087
11088
11089 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11090 CFLAGS="$CFLAGS $GTK_CFLAGS"
11091 LIBS="$GTK_LIBS $LIBS"
11092 GTK_COMPILES=no
11093 for ac_func in gtk_main
11094 do :
11095 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11096 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11097 cat >>confdefs.h <<_ACEOF
11098 #define HAVE_GTK_MAIN 1
11099 _ACEOF
11100 GTK_COMPILES=yes
11101 fi
11102 done
11103
11104 if test "${GTK_COMPILES}" != "yes"; then
11105 if test "$USE_X_TOOLKIT" != "maybe"; then
11106 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11107 fi
11108 else
11109 HAVE_GTK=yes
11110
11111 $as_echo "#define USE_GTK 1" >>confdefs.h
11112
11113 GTK_OBJ="gtkutil.o $GTK_OBJ"
11114 USE_X_TOOLKIT=none
11115 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11116 :
11117 else
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11119 closing open displays. This is no problem if you just use
11120 one display, but if you use more than one and close one of them
11121 Emacs may crash." >&5
11122 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11123 closing open displays. This is no problem if you just use
11124 one display, but if you use more than one and close one of them
11125 Emacs may crash." >&2;}
11126 sleep 3
11127 fi
11128 fi
11129
11130 fi
11131
11132
11133
11134 if test "${HAVE_GTK}" = "yes"; then
11135
11136 if test "$with_toolkit_scroll_bars" != no; then
11137 with_toolkit_scroll_bars=yes
11138 fi
11139
11140 HAVE_GTK_FILE_SELECTION=no
11141 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11142 #include <gtk/gtk.h>
11143 "
11144 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11145 HAVE_GTK_FILE_SELECTION=yes
11146 else
11147 HAVE_GTK_FILE_SELECTION=no
11148 fi
11149
11150 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11151 for ac_func in gtk_file_selection_new
11152 do :
11153 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11154 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11155 cat >>confdefs.h <<_ACEOF
11156 #define HAVE_GTK_FILE_SELECTION_NEW 1
11157 _ACEOF
11158
11159 fi
11160 done
11161
11162 fi
11163
11164 HAVE_GTK_HANDLE_BOX=no
11165 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11166 #include <gtk/gtk.h>
11167 "
11168 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11169 HAVE_GTK_HANDLE_BOX=yes
11170 else
11171 HAVE_GTK_HANDLE_BOX=no
11172 fi
11173
11174 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11175 for ac_func in gtk_handle_box_new
11176 do :
11177 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11178 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11179 cat >>confdefs.h <<_ACEOF
11180 #define HAVE_GTK_HANDLE_BOX_NEW 1
11181 _ACEOF
11182
11183 fi
11184 done
11185
11186 fi
11187
11188 HAVE_GTK_TEAROFF_MENU_ITEM=no
11189 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11190 #include <gtk/gtk.h>
11191 "
11192 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11193 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11194 else
11195 HAVE_GTK_TEAROFF_MENU_ITEM=no
11196 fi
11197
11198 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11199 for ac_func in gtk_tearoff_menu_item_new
11200 do :
11201 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11202 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11203 cat >>confdefs.h <<_ACEOF
11204 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11205 _ACEOF
11206
11207 fi
11208 done
11209
11210 fi
11211
11212 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11213 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11214 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11215 gtk_orientable_set_orientation \
11216 gtk_window_set_has_resize_grip
11217 do :
11218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11220 eval as_val=\$$as_ac_var
11221 if test "x$as_val" = x""yes; then :
11222 cat >>confdefs.h <<_ACEOF
11223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11224 _ACEOF
11225
11226 fi
11227 done
11228
11229
11230 term_header=gtkutil.h
11231 fi
11232
11233 HAVE_DBUS=no
11234 DBUS_OBJ=
11235 if test "${with_dbus}" = "yes"; then
11236
11237 succeeded=no
11238
11239 if test "$PKG_CONFIG" = "no" ; then
11240 HAVE_DBUS=no
11241 else
11242 PKG_CONFIG_MIN_VERSION=0.9.0
11243 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11245 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11246
11247 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11248 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11249 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11250 edit_cflags="
11251 s,///*,/,g
11252 s/^/ /
11253 s/ -I/ $isystem/g
11254 s/^ //
11255 "
11256 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11257 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11259 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11260 succeeded=yes
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11264 DBUS_CFLAGS=""
11265 DBUS_LIBS=""
11266 ## If we have a custom action on failure, don't print errors, but
11267 ## do set a variable so people can do so. Do it in a subshell
11268 ## to capture any diagnostics in invoking pkg-config.
11269 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11270
11271 fi
11272
11273
11274
11275 else
11276 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11277 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11278 fi
11279 fi
11280
11281 if test $succeeded = yes; then
11282 HAVE_DBUS=yes
11283 else
11284 HAVE_DBUS=no
11285 fi
11286
11287 if test "$HAVE_DBUS" = yes; then
11288 LIBS="$LIBS $DBUS_LIBS"
11289
11290 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11291
11292 for ac_func in dbus_watch_get_unix_fd \
11293 dbus_type_is_valid \
11294 dbus_validate_bus_name \
11295 dbus_validate_path \
11296 dbus_validate_interface \
11297 dbus_validate_member
11298 do :
11299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11300 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11301 eval as_val=\$$as_ac_var
11302 if test "x$as_val" = x""yes; then :
11303 cat >>confdefs.h <<_ACEOF
11304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11305 _ACEOF
11306
11307 fi
11308 done
11309
11310 DBUS_OBJ=dbusbind.o
11311 fi
11312 fi
11313
11314
11315 HAVE_GSETTINGS=no
11316 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11317
11318 succeeded=no
11319
11320 if test "$PKG_CONFIG" = "no" ; then
11321 HAVE_GSETTINGS=no
11322 else
11323 PKG_CONFIG_MIN_VERSION=0.9.0
11324 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11326 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11327
11328 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11329 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11330 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11331 edit_cflags="
11332 s,///*,/,g
11333 s/^/ /
11334 s/ -I/ $isystem/g
11335 s/^ //
11336 "
11337 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11338 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11340 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11341 succeeded=yes
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11345 GSETTINGS_CFLAGS=""
11346 GSETTINGS_LIBS=""
11347 ## If we have a custom action on failure, don't print errors, but
11348 ## do set a variable so people can do so. Do it in a subshell
11349 ## to capture any diagnostics in invoking pkg-config.
11350 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11351
11352 fi
11353
11354
11355
11356 else
11357 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11358 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11359 fi
11360 fi
11361
11362 if test $succeeded = yes; then
11363 HAVE_GSETTINGS=yes
11364 else
11365 HAVE_GSETTINGS=no
11366 fi
11367
11368 if test "$HAVE_GSETTINGS" = "yes"; then
11369
11370 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11371
11372 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11373 SETTINGS_LIBS="$GSETTINGS_LIBS"
11374 fi
11375 fi
11376
11377 HAVE_GCONF=no
11378 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11379
11380 succeeded=no
11381
11382 if test "$PKG_CONFIG" = "no" ; then
11383 HAVE_GCONF=no
11384 else
11385 PKG_CONFIG_MIN_VERSION=0.9.0
11386 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11388 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11389
11390 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11391 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11392 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11393 edit_cflags="
11394 s,///*,/,g
11395 s/^/ /
11396 s/ -I/ $isystem/g
11397 s/^ //
11398 "
11399 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11400 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11402 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11403 succeeded=yes
11404 else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 GCONF_CFLAGS=""
11408 GCONF_LIBS=""
11409 ## If we have a custom action on failure, don't print errors, but
11410 ## do set a variable so people can do so. Do it in a subshell
11411 ## to capture any diagnostics in invoking pkg-config.
11412 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11413
11414 fi
11415
11416
11417
11418 else
11419 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11420 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11421 fi
11422 fi
11423
11424 if test $succeeded = yes; then
11425 HAVE_GCONF=yes
11426 else
11427 HAVE_GCONF=no
11428 fi
11429
11430 if test "$HAVE_GCONF" = yes; then
11431
11432 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11433
11434 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11435 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11436 fi
11437 fi
11438
11439 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11440
11441 succeeded=no
11442
11443 if test "$PKG_CONFIG" = "no" ; then
11444 HAVE_GOBJECT=no
11445 else
11446 PKG_CONFIG_MIN_VERSION=0.9.0
11447 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11449 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11450
11451 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11452 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11453 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11454 edit_cflags="
11455 s,///*,/,g
11456 s/^/ /
11457 s/ -I/ $isystem/g
11458 s/^ //
11459 "
11460 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11461 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11463 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11464 succeeded=yes
11465 else
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11468 GOBJECT_CFLAGS=""
11469 GOBJECT_LIBS=""
11470 ## If we have a custom action on failure, don't print errors, but
11471 ## do set a variable so people can do so. Do it in a subshell
11472 ## to capture any diagnostics in invoking pkg-config.
11473 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11474
11475 fi
11476
11477
11478
11479 else
11480 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11481 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11482 fi
11483 fi
11484
11485 if test $succeeded = yes; then
11486 HAVE_GOBJECT=yes
11487 else
11488 HAVE_GOBJECT=no
11489 fi
11490
11491 if test "$HAVE_GOBJECT" = "yes"; then
11492 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11493 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11494 fi
11495 SAVE_CFLAGS="$CFLAGS"
11496 SAVE_LIBS="$LIBS"
11497 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11498 LIBS="$SETTINGS_LIBS $LIBS"
11499 for ac_func in g_type_init
11500 do :
11501 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11502 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11503 cat >>confdefs.h <<_ACEOF
11504 #define HAVE_G_TYPE_INIT 1
11505 _ACEOF
11506
11507 fi
11508 done
11509
11510 CFLAGS="$SAVE_CFLAGS"
11511 LIBS="$SAVE_LIBS"
11512 fi
11513
11514
11515
11516
11517 HAVE_LIBSELINUX=no
11518 LIBSELINUX_LIBS=
11519 if test "${with_selinux}" = "yes"; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11521 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11522 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 ac_check_lib_save_LIBS=$LIBS
11526 LIBS="-lselinux $LIBS"
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11529
11530 /* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11533 #ifdef __cplusplus
11534 extern "C"
11535 #endif
11536 char lgetfilecon ();
11537 int
11538 main ()
11539 {
11540 return lgetfilecon ();
11541 ;
11542 return 0;
11543 }
11544 _ACEOF
11545 if ac_fn_c_try_link "$LINENO"; then :
11546 ac_cv_lib_selinux_lgetfilecon=yes
11547 else
11548 ac_cv_lib_selinux_lgetfilecon=no
11549 fi
11550 rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552 LIBS=$ac_check_lib_save_LIBS
11553 fi
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11555 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11556 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11557 HAVE_LIBSELINUX=yes
11558 else
11559 HAVE_LIBSELINUX=no
11560 fi
11561
11562 if test "$HAVE_LIBSELINUX" = yes; then
11563
11564 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11565
11566 LIBSELINUX_LIBS=-lselinux
11567 fi
11568 fi
11569
11570
11571 HAVE_GNUTLS=no
11572 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11573 if test "${with_gnutls}" = "yes" ; then
11574
11575 succeeded=no
11576
11577 if test "$PKG_CONFIG" = "no" ; then
11578 HAVE_GNUTLS=no
11579 else
11580 PKG_CONFIG_MIN_VERSION=0.9.0
11581 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11583 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11584
11585 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11586 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11587 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11588 edit_cflags="
11589 s,///*,/,g
11590 s/^/ /
11591 s/ -I/ $isystem/g
11592 s/^ //
11593 "
11594 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11595 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11597 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11598 succeeded=yes
11599 else
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11602 LIBGNUTLS_CFLAGS=""
11603 LIBGNUTLS_LIBS=""
11604 ## If we have a custom action on failure, don't print errors, but
11605 ## do set a variable so people can do so. Do it in a subshell
11606 ## to capture any diagnostics in invoking pkg-config.
11607 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11608
11609 fi
11610
11611
11612
11613 else
11614 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11615 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11616 fi
11617 fi
11618
11619 if test $succeeded = yes; then
11620 HAVE_GNUTLS=yes
11621 else
11622 HAVE_GNUTLS=no
11623 fi
11624
11625 if test "${HAVE_GNUTLS}" = "yes"; then
11626
11627 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11628
11629 fi
11630
11631 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11632 LIBS="$LIBGNUTLS_LIBS $LIBS"
11633 for ac_func in gnutls_certificate_set_verify_function
11634 do :
11635 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11636 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11637 cat >>confdefs.h <<_ACEOF
11638 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11639 _ACEOF
11640 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11641 fi
11642 done
11643
11644
11645 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11646
11647 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11648
11649 fi
11650 fi
11651
11652
11653
11654
11655 if test "${with_inotify}" = "yes"; then
11656 for ac_header in sys/inotify.h
11657 do :
11658 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11659 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
11660 cat >>confdefs.h <<_ACEOF
11661 #define HAVE_SYS_INOTIFY_H 1
11662 _ACEOF
11663
11664 fi
11665
11666 done
11667
11668 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11669 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11670 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
11671
11672 fi
11673
11674 fi
11675 fi
11676 if test "$ac_cv_func_inotify_init1" = yes; then
11677
11678 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11679
11680 fi
11681
11682 HAVE_XAW3D=no
11683 LUCID_LIBW=
11684 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11685 if test "$with_xaw3d" != no; then
11686 if test "${emacs_cv_xaw3d+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11691
11692 #include <X11/Intrinsic.h>
11693 #include <X11/Xaw3d/Simple.h>
11694 int
11695 main ()
11696 {
11697
11698 ;
11699 return 0;
11700 }
11701 _ACEOF
11702 if ac_fn_c_try_link "$LINENO"; then :
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11704 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11705 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 ac_check_lib_save_LIBS=$LIBS
11709 LIBS="-lXaw3d $LIBS"
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11712
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char XawScrollbarSetThumb ();
11720 int
11721 main ()
11722 {
11723 return XawScrollbarSetThumb ();
11724 ;
11725 return 0;
11726 }
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11730 else
11731 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11738 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11739 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11740 emacs_cv_xaw3d=yes
11741 else
11742 emacs_cv_xaw3d=no
11743 fi
11744
11745 else
11746 emacs_cv_xaw3d=no
11747 fi
11748 rm -f core conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11750 fi
11751
11752 else
11753 emacs_cv_xaw3d=no
11754 fi
11755 if test $emacs_cv_xaw3d = yes; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11757 $as_echo_n "checking for xaw3d... " >&6; }
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11759 $as_echo "yes; using Lucid toolkit" >&6; }
11760 USE_X_TOOLKIT=LUCID
11761 HAVE_XAW3D=yes
11762 LUCID_LIBW=-lXaw3d
11763
11764 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11765
11766 else
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11768 $as_echo_n "checking for xaw3d... " >&6; }
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11772 $as_echo_n "checking for libXaw... " >&6; }
11773 if test "${emacs_cv_xaw+set}" = set; then :
11774 $as_echo_n "(cached) " >&6
11775 else
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11778
11779 #include <X11/Intrinsic.h>
11780 #include <X11/Xaw/Simple.h>
11781 int
11782 main ()
11783 {
11784
11785 ;
11786 return 0;
11787 }
11788 _ACEOF
11789 if ac_fn_c_try_link "$LINENO"; then :
11790 emacs_cv_xaw=yes
11791 else
11792 emacs_cv_xaw=no
11793 fi
11794 rm -f core conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 fi
11797
11798 if test $emacs_cv_xaw = yes; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11800 $as_echo "yes; using Lucid toolkit" >&6; }
11801 USE_X_TOOLKIT=LUCID
11802 LUCID_LIBW=-lXaw
11803 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11804 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11805 else
11806 as_fn_error "No X toolkit could be found.
11807 If you are sure you want Emacs compiled without an X toolkit, pass
11808 --with-x-toolkit=no
11809 to configure. Otherwise, install the development libraries for the toolkit
11810 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11811 fi
11812 fi
11813 fi
11814
11815 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11816
11817 LIBXTR6=
11818 if test "${USE_X_TOOLKIT}" != "none"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11820 $as_echo_n "checking X11 toolkit version... " >&6; }
11821 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11825 /* end confdefs.h. */
11826 #include <X11/Intrinsic.h>
11827 int
11828 main ()
11829 {
11830 #if XtSpecificationRelease < 6
11831 fail;
11832 #endif
11833
11834 ;
11835 return 0;
11836 }
11837 _ACEOF
11838 if ac_fn_c_try_link "$LINENO"; then :
11839 emacs_cv_x11_toolkit_version_6=yes
11840 else
11841 emacs_cv_x11_toolkit_version_6=no
11842 fi
11843 rm -f core conftest.err conftest.$ac_objext \
11844 conftest$ac_exeext conftest.$ac_ext
11845 fi
11846
11847 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11848 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11850 $as_echo "6 or newer" >&6; }
11851
11852 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11853
11854 LIBXTR6="-lSM -lICE"
11855 case "$opsys" in
11856 ## Use libw.a along with X11R6 Xt.
11857 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11858 esac
11859 else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11861 $as_echo "before 6" >&6; }
11862 fi
11863
11864 OLDLIBS="$LIBS"
11865 if test x$HAVE_X11XTR6 = xyes; then
11866 LIBS="-lXt -lSM -lICE $LIBS"
11867 else
11868 LIBS="-lXt $LIBS"
11869 fi
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11871 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11872 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 ac_check_lib_save_LIBS=$LIBS
11876 LIBS="-lXmu $LIBS"
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11879
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11883 #ifdef __cplusplus
11884 extern "C"
11885 #endif
11886 char XmuConvertStandardSelection ();
11887 int
11888 main ()
11889 {
11890 return XmuConvertStandardSelection ();
11891 ;
11892 return 0;
11893 }
11894 _ACEOF
11895 if ac_fn_c_try_link "$LINENO"; then :
11896 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11897 else
11898 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11899 fi
11900 rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11902 LIBS=$ac_check_lib_save_LIBS
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11905 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11906 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11907 cat >>confdefs.h <<_ACEOF
11908 #define HAVE_LIBXMU 1
11909 _ACEOF
11910
11911 LIBS="-lXmu $LIBS"
11912
11913 fi
11914
11915 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11916 fi
11917
11918
11919 LIBXMU=-lXmu
11920 case $opsys in
11921 ## These systems don't supply Xmu.
11922 hpux* | aix4-2 )
11923 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11924 ;;
11925 esac
11926
11927
11928 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11929 if test "${HAVE_X11}" = "yes"; then
11930 if test "${USE_X_TOOLKIT}" != "none"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11932 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11933 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-lXext $LIBS"
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 char XShapeQueryExtension ();
11948 int
11949 main ()
11950 {
11951 return XShapeQueryExtension ();
11952 ;
11953 return 0;
11954 }
11955 _ACEOF
11956 if ac_fn_c_try_link "$LINENO"; then :
11957 ac_cv_lib_Xext_XShapeQueryExtension=yes
11958 else
11959 ac_cv_lib_Xext_XShapeQueryExtension=no
11960 fi
11961 rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11964 fi
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11966 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11967 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11968 cat >>confdefs.h <<_ACEOF
11969 #define HAVE_LIBXEXT 1
11970 _ACEOF
11971
11972 LIBS="-lXext $LIBS"
11973
11974 fi
11975
11976 fi
11977 fi
11978
11979 LIBXP=
11980 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11981 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11982 if test -d /usr/include/openmotif; then
11983 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11984 emacs_cv_openmotif=yes
11985 case "$canonical" in
11986 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11987 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11988 ;;
11989 *)
11990 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11991 esac
11992 else
11993 emacs_cv_openmotif=no
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11996 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11997 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12002 #include <Xm/Xm.h>
12003 int
12004 main ()
12005 {
12006 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12007 int x = 5;
12008 #else
12009 Motif version prior to 2.1.
12010 #endif
12011 ;
12012 return 0;
12013 }
12014 _ACEOF
12015 if ac_fn_c_try_compile "$LINENO"; then :
12016 emacs_cv_motif_version_2_1=yes
12017 else
12018 emacs_cv_motif_version_2_1=no
12019 fi
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021 fi
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12023 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12024 if test $emacs_cv_motif_version_2_1 = yes; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12026 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12027 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12028 $as_echo_n "(cached) " >&6
12029 else
12030 ac_check_lib_save_LIBS=$LIBS
12031 LIBS="-lXp $LIBS"
12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12034
12035 /* Override any GCC internal prototype to avoid an error.
12036 Use char because int might match the return type of a GCC
12037 builtin and then its argument prototype would still apply. */
12038 #ifdef __cplusplus
12039 extern "C"
12040 #endif
12041 char XpCreateContext ();
12042 int
12043 main ()
12044 {
12045 return XpCreateContext ();
12046 ;
12047 return 0;
12048 }
12049 _ACEOF
12050 if ac_fn_c_try_link "$LINENO"; then :
12051 ac_cv_lib_Xp_XpCreateContext=yes
12052 else
12053 ac_cv_lib_Xp_XpCreateContext=no
12054 fi
12055 rm -f core conftest.err conftest.$ac_objext \
12056 conftest$ac_exeext conftest.$ac_ext
12057 LIBS=$ac_check_lib_save_LIBS
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12060 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12061 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12062 LIBXP=-lXp
12063 fi
12064
12065 if test x$emacs_cv_openmotif = xyes; then
12066 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12067 fi
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12070 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12071 if test "${emacs_cv_lesstif+set}" = set; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 # We put this in CFLAGS temporarily to precede other -I options
12075 # that might be in CFLAGS temporarily.
12076 # We put this in CPPFLAGS where it precedes the other -I options.
12077 OLD_CPPFLAGS=$CPPFLAGS
12078 OLD_CFLAGS=$CFLAGS
12079 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12080 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12083 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12084 int
12085 main ()
12086 {
12087 int x = 5;
12088 ;
12089 return 0;
12090 }
12091 _ACEOF
12092 if ac_fn_c_try_compile "$LINENO"; then :
12093 emacs_cv_lesstif=yes
12094 else
12095 emacs_cv_lesstif=no
12096 fi
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 fi
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12100 $as_echo "$emacs_cv_lesstif" >&6; }
12101 if test $emacs_cv_lesstif = yes; then
12102 # Make sure this -I option remains in CPPFLAGS after it is set
12103 # back to REAL_CPPFLAGS.
12104 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12105 # have those other -I options anyway. Ultimately, having this
12106 # directory ultimately in CPPFLAGS will be enough.
12107 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12108 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12109 else
12110 CFLAGS=$OLD_CFLAGS
12111 CPPFLAGS=$OLD_CPPFLAGS
12112 fi
12113 fi
12114 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12115 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12116
12117 else
12118 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12119 fi
12120
12121
12122 fi
12123
12124
12125 USE_TOOLKIT_SCROLL_BARS=no
12126 if test "${with_toolkit_scroll_bars}" != "no"; then
12127 if test "${USE_X_TOOLKIT}" != "none"; then
12128 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12129 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12130
12131 HAVE_XAW3D=no
12132 USE_TOOLKIT_SCROLL_BARS=yes
12133 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12134 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12135
12136 USE_TOOLKIT_SCROLL_BARS=yes
12137 fi
12138 elif test "${HAVE_GTK}" = "yes"; then
12139 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12140
12141 USE_TOOLKIT_SCROLL_BARS=yes
12142 elif test "${HAVE_NS}" = "yes"; then
12143 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12144
12145 USE_TOOLKIT_SCROLL_BARS=yes
12146 elif test "${HAVE_W32}" = "yes"; then
12147 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12148
12149 USE_TOOLKIT_SCROLL_BARS=yes
12150 fi
12151 fi
12152
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155
12156 #include <X11/Xlib.h>
12157 #include <X11/Xresource.h>
12158 int
12159 main ()
12160 {
12161 XIMProc callback;
12162 ;
12163 return 0;
12164 }
12165 _ACEOF
12166 if ac_fn_c_try_compile "$LINENO"; then :
12167 HAVE_XIM=yes
12168
12169 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12170
12171 else
12172 HAVE_XIM=no
12173 fi
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175
12176
12177 if test "${with_xim}" != "no"; then
12178
12179 $as_echo "#define USE_XIM 1" >>confdefs.h
12180
12181 fi
12182
12183
12184 if test "${HAVE_XIM}" != "no"; then
12185 late_CFLAGS=$CFLAGS
12186 if test "$GCC" = yes; then
12187 CFLAGS="$CFLAGS --pedantic-errors"
12188 fi
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12191
12192 #include <X11/Xlib.h>
12193 #include <X11/Xresource.h>
12194 int
12195 main ()
12196 {
12197 Display *display;
12198 XrmDatabase db;
12199 char *res_name;
12200 char *res_class;
12201 XIMProc callback;
12202 XPointer *client_data;
12203 #ifndef __GNUC__
12204 /* If we're not using GCC, it's probably not XFree86, and this is
12205 probably right, but we can't use something like --pedantic-errors. */
12206 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12207 char*, XIMProc, XPointer*);
12208 #endif
12209 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12210 client_data);
12211 ;
12212 return 0;
12213 }
12214 _ACEOF
12215 if ac_fn_c_try_compile "$LINENO"; then :
12216 emacs_cv_arg6_star=yes
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219 if test "$emacs_cv_arg6_star" = yes; then
12220 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12221
12222 else
12223 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12224
12225 fi
12226 CFLAGS=$late_CFLAGS
12227 fi
12228
12229 ### Start of font-backend (under any platform) section.
12230 # (nothing here yet -- this is a placeholder)
12231 ### End of font-backend (under any platform) section.
12232
12233 ### Start of font-backend (under X11) section.
12234 if test "${HAVE_X11}" = "yes"; then
12235
12236 succeeded=no
12237
12238 if test "$PKG_CONFIG" = "no" ; then
12239 HAVE_FC=no
12240 else
12241 PKG_CONFIG_MIN_VERSION=0.9.0
12242 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12244 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12245
12246 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12247 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12248 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12249 edit_cflags="
12250 s,///*,/,g
12251 s/^/ /
12252 s/ -I/ $isystem/g
12253 s/^ //
12254 "
12255 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12256 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12258 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12259 succeeded=yes
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263 FONTCONFIG_CFLAGS=""
12264 FONTCONFIG_LIBS=""
12265 ## If we have a custom action on failure, don't print errors, but
12266 ## do set a variable so people can do so. Do it in a subshell
12267 ## to capture any diagnostics in invoking pkg-config.
12268 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12269
12270 fi
12271
12272
12273
12274 else
12275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12277 fi
12278 fi
12279
12280 if test $succeeded = yes; then
12281 HAVE_FC=yes
12282 else
12283 HAVE_FC=no
12284 fi
12285
12286
12287 ## Use -lXft if available, unless `--with-xft=no'.
12288 HAVE_XFT=maybe
12289 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12290 with_xft="no";
12291 fi
12292 if test "x${with_xft}" != "xno"; then
12293
12294
12295 succeeded=no
12296
12297 if test "$PKG_CONFIG" = "no" ; then
12298 HAVE_XFT=no
12299 else
12300 PKG_CONFIG_MIN_VERSION=0.9.0
12301 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12303 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12304
12305 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12306 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12307 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12308 edit_cflags="
12309 s,///*,/,g
12310 s/^/ /
12311 s/ -I/ $isystem/g
12312 s/^ //
12313 "
12314 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12315 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12317 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12318 succeeded=yes
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12322 XFT_CFLAGS=""
12323 XFT_LIBS=""
12324 ## If we have a custom action on failure, don't print errors, but
12325 ## do set a variable so people can do so. Do it in a subshell
12326 ## to capture any diagnostics in invoking pkg-config.
12327 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12328
12329 fi
12330
12331
12332
12333 else
12334 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12335 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12336 fi
12337 fi
12338
12339 if test $succeeded = yes; then
12340 :
12341 else
12342 HAVE_XFT=no
12343 fi
12344
12345 ## Because xftfont.c uses XRenderQueryExtension, we also
12346 ## need to link to -lXrender.
12347 HAVE_XRENDER=no
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12349 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12350 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 ac_check_lib_save_LIBS=$LIBS
12354 LIBS="-lXrender $LIBS"
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12357
12358 /* Override any GCC internal prototype to avoid an error.
12359 Use char because int might match the return type of a GCC
12360 builtin and then its argument prototype would still apply. */
12361 #ifdef __cplusplus
12362 extern "C"
12363 #endif
12364 char XRenderQueryExtension ();
12365 int
12366 main ()
12367 {
12368 return XRenderQueryExtension ();
12369 ;
12370 return 0;
12371 }
12372 _ACEOF
12373 if ac_fn_c_try_link "$LINENO"; then :
12374 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12375 else
12376 ac_cv_lib_Xrender_XRenderQueryExtension=no
12377 fi
12378 rm -f core conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12381 fi
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12383 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12384 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12385 HAVE_XRENDER=yes
12386 fi
12387
12388 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12389 OLD_CPPFLAGS="$CPPFLAGS"
12390 OLD_CFLAGS="$CFLAGS"
12391 OLD_LIBS="$LIBS"
12392 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12393 CFLAGS="$CFLAGS $XFT_CFLAGS"
12394 XFT_LIBS="-lXrender $XFT_LIBS"
12395 LIBS="$XFT_LIBS $LIBS"
12396 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12397 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12399 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12400 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-lXft $XFT_LIBS $LIBS"
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12407
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 char XftFontOpen ();
12415 int
12416 main ()
12417 {
12418 return XftFontOpen ();
12419 ;
12420 return 0;
12421 }
12422 _ACEOF
12423 if ac_fn_c_try_link "$LINENO"; then :
12424 ac_cv_lib_Xft_XftFontOpen=yes
12425 else
12426 ac_cv_lib_Xft_XftFontOpen=no
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12430 LIBS=$ac_check_lib_save_LIBS
12431 fi
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12433 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12434 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12435 HAVE_XFT=yes
12436 fi
12437
12438 fi
12439
12440
12441
12442 if test "${HAVE_XFT}" = "yes"; then
12443
12444 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12445
12446
12447 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12448 else
12449 CPPFLAGS="$OLD_CPPFLAGS"
12450 CFLAGS="$OLD_CFLAGS"
12451 LIBS="$OLD_LIBS"
12452 fi # "${HAVE_XFT}" = "yes"
12453 fi # "$HAVE_XFT" != no
12454 fi # "x${with_xft}" != "xno"
12455
12456 ## We used to allow building with FreeType and without Xft.
12457 ## However, the ftx font backend driver is not in good shape.
12458 if test "$HAVE_XFT" != "yes"; then
12459 HAVE_XFT=no
12460 HAVE_FREETYPE=no
12461 else
12462
12463 succeeded=no
12464
12465 if test "$PKG_CONFIG" = "no" ; then
12466 HAVE_FREETYPE=no
12467 else
12468 PKG_CONFIG_MIN_VERSION=0.9.0
12469 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12471 $as_echo_n "checking for freetype2... " >&6; }
12472
12473 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12474 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12475 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12476 edit_cflags="
12477 s,///*,/,g
12478 s/^/ /
12479 s/ -I/ $isystem/g
12480 s/^ //
12481 "
12482 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12483 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12485 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12486 succeeded=yes
12487 else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 $as_echo "no" >&6; }
12490 FREETYPE_CFLAGS=""
12491 FREETYPE_LIBS=""
12492 ## If we have a custom action on failure, don't print errors, but
12493 ## do set a variable so people can do so. Do it in a subshell
12494 ## to capture any diagnostics in invoking pkg-config.
12495 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12496
12497 fi
12498
12499
12500
12501 else
12502 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12503 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12504 fi
12505 fi
12506
12507 if test $succeeded = yes; then
12508 HAVE_FREETYPE=yes
12509 else
12510 HAVE_FREETYPE=no
12511 fi
12512
12513
12514 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12515 fi
12516
12517 HAVE_LIBOTF=no
12518 if test "${HAVE_FREETYPE}" = "yes"; then
12519
12520 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12521
12522 if test "${with_libotf}" != "no"; then
12523
12524 succeeded=no
12525
12526 if test "$PKG_CONFIG" = "no" ; then
12527 HAVE_LIBOTF=no
12528 else
12529 PKG_CONFIG_MIN_VERSION=0.9.0
12530 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12532 $as_echo_n "checking for libotf... " >&6; }
12533
12534 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12535 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12536 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12537 edit_cflags="
12538 s,///*,/,g
12539 s/^/ /
12540 s/ -I/ $isystem/g
12541 s/^ //
12542 "
12543 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12544 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12546 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12547 succeeded=yes
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12551 LIBOTF_CFLAGS=""
12552 LIBOTF_LIBS=""
12553 ## If we have a custom action on failure, don't print errors, but
12554 ## do set a variable so people can do so. Do it in a subshell
12555 ## to capture any diagnostics in invoking pkg-config.
12556 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12557
12558 fi
12559
12560
12561
12562 else
12563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12565 fi
12566 fi
12567
12568 if test $succeeded = yes; then
12569 HAVE_LIBOTF=yes
12570 else
12571 HAVE_LIBOTF=no
12572 fi
12573
12574 if test "$HAVE_LIBOTF" = "yes"; then
12575
12576 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12577
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12579 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12580 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 ac_check_lib_save_LIBS=$LIBS
12584 LIBS="-lotf $LIBS"
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587
12588 /* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12591 #ifdef __cplusplus
12592 extern "C"
12593 #endif
12594 char OTF_get_variation_glyphs ();
12595 int
12596 main ()
12597 {
12598 return OTF_get_variation_glyphs ();
12599 ;
12600 return 0;
12601 }
12602 _ACEOF
12603 if ac_fn_c_try_link "$LINENO"; then :
12604 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12605 else
12606 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12607 fi
12608 rm -f core conftest.err conftest.$ac_objext \
12609 conftest$ac_exeext conftest.$ac_ext
12610 LIBS=$ac_check_lib_save_LIBS
12611 fi
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12613 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12614 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12615 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12616 else
12617 HAVE_OTF_GET_VARIATION_GLYPHS=no
12618 fi
12619
12620 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12621
12622 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12623
12624 fi
12625 fi
12626 fi
12627 fi
12628
12629 HAVE_M17N_FLT=no
12630 if test "${HAVE_LIBOTF}" = yes; then
12631 if test "${with_m17n_flt}" != "no"; then
12632
12633 succeeded=no
12634
12635 if test "$PKG_CONFIG" = "no" ; then
12636 HAVE_M17N_FLT=no
12637 else
12638 PKG_CONFIG_MIN_VERSION=0.9.0
12639 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12641 $as_echo_n "checking for m17n-flt... " >&6; }
12642
12643 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12644 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12645 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12646 edit_cflags="
12647 s,///*,/,g
12648 s/^/ /
12649 s/ -I/ $isystem/g
12650 s/^ //
12651 "
12652 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12653 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12655 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12656 succeeded=yes
12657 else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12660 M17N_FLT_CFLAGS=""
12661 M17N_FLT_LIBS=""
12662 ## If we have a custom action on failure, don't print errors, but
12663 ## do set a variable so people can do so. Do it in a subshell
12664 ## to capture any diagnostics in invoking pkg-config.
12665 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12666
12667 fi
12668
12669
12670
12671 else
12672 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12673 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12674 fi
12675 fi
12676
12677 if test $succeeded = yes; then
12678 HAVE_M17N_FLT=yes
12679 else
12680 HAVE_M17N_FLT=no
12681 fi
12682
12683 if test "$HAVE_M17N_FLT" = "yes"; then
12684
12685 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12686
12687 fi
12688 fi
12689 fi
12690 else
12691 HAVE_XFT=no
12692 HAVE_FREETYPE=no
12693 HAVE_LIBOTF=no
12694 HAVE_M17N_FLT=no
12695 fi
12696
12697 ### End of font-backend (under X11) section.
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708 ### Use -lXpm if available, unless `--with-xpm=no'.
12709 HAVE_XPM=no
12710 LIBXPM=
12711
12712 if test "${HAVE_W32}" = "yes"; then
12713 if test "${with_xpm}" != "no"; then
12714 SAVE_CPPFLAGS="$CPPFLAGS"
12715 SAVE_LDFLAGS="$LDFLAGS"
12716 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12717 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12718 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12719 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12721 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12722 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12723 $as_echo_n "(cached) " >&6
12724 else
12725 ac_check_lib_save_LIBS=$LIBS
12726 LIBS="-lXpm $LIBS"
12727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12729
12730 /* Override any GCC internal prototype to avoid an error.
12731 Use char because int might match the return type of a GCC
12732 builtin and then its argument prototype would still apply. */
12733 #ifdef __cplusplus
12734 extern "C"
12735 #endif
12736 char XpmReadFileToImage ();
12737 int
12738 main ()
12739 {
12740 return XpmReadFileToImage ();
12741 ;
12742 return 0;
12743 }
12744 _ACEOF
12745 if ac_fn_c_try_link "$LINENO"; then :
12746 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12747 else
12748 ac_cv_lib_Xpm_XpmReadFileToImage=no
12749 fi
12750 rm -f core conftest.err conftest.$ac_objext \
12751 conftest$ac_exeext conftest.$ac_ext
12752 LIBS=$ac_check_lib_save_LIBS
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12755 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12756 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12757 HAVE_XPM=yes
12758 fi
12759
12760 fi
12761
12762
12763 if test "${HAVE_XPM}" = "yes"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12765 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768 #include "X11/xpm.h"
12769 #ifndef XpmReturnAllocPixels
12770 no_return_alloc_pixels
12771 #endif
12772
12773 _ACEOF
12774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12775 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12776 HAVE_XPM=no
12777 else
12778 HAVE_XPM=yes
12779 fi
12780 rm -f conftest*
12781
12782
12783 if test "${HAVE_XPM}" = "yes"; then
12784 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786 $as_echo "yes" >&6; }
12787 else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789 $as_echo "no" >&6; }
12790 CPPFLAGS="$SAVE_CPPFLAGS"
12791 LDFLAGS="$SAVE_LDFLAGS"
12792 fi
12793 fi
12794 fi
12795
12796 if test "${HAVE_XPM}" = "yes"; then
12797
12798 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12799
12800 LIBXPM=-lXpm
12801 fi
12802 fi
12803
12804 if test "${HAVE_X11}" = "yes"; then
12805 if test "${with_xpm}" != "no"; then
12806 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12807 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12809 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12810 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12811 $as_echo_n "(cached) " >&6
12812 else
12813 ac_check_lib_save_LIBS=$LIBS
12814 LIBS="-lXpm -lX11 $LIBS"
12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12817
12818 /* Override any GCC internal prototype to avoid an error.
12819 Use char because int might match the return type of a GCC
12820 builtin and then its argument prototype would still apply. */
12821 #ifdef __cplusplus
12822 extern "C"
12823 #endif
12824 char XpmReadFileToPixmap ();
12825 int
12826 main ()
12827 {
12828 return XpmReadFileToPixmap ();
12829 ;
12830 return 0;
12831 }
12832 _ACEOF
12833 if ac_fn_c_try_link "$LINENO"; then :
12834 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12835 else
12836 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext \
12839 conftest$ac_exeext conftest.$ac_ext
12840 LIBS=$ac_check_lib_save_LIBS
12841 fi
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12843 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12844 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12845 HAVE_XPM=yes
12846 fi
12847
12848 fi
12849
12850
12851 if test "${HAVE_XPM}" = "yes"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12853 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856 #include "X11/xpm.h"
12857 #ifndef XpmReturnAllocPixels
12858 no_return_alloc_pixels
12859 #endif
12860
12861 _ACEOF
12862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12863 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12864 HAVE_XPM=no
12865 else
12866 HAVE_XPM=yes
12867 fi
12868 rm -f conftest*
12869
12870
12871 if test "${HAVE_XPM}" = "yes"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12873 $as_echo "yes" >&6; }
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12877 fi
12878 fi
12879 fi
12880
12881 if test "${HAVE_XPM}" = "yes"; then
12882
12883 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12884
12885 LIBXPM=-lXpm
12886 fi
12887 fi
12888
12889
12890
12891 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12892 HAVE_JPEG=no
12893 LIBJPEG=
12894 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12895 if test "${with_jpeg}" != "no"; then
12896 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12897 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12899 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12900 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-ljpeg $LIBS"
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12907
12908 /* Override any GCC internal prototype to avoid an error.
12909 Use char because int might match the return type of a GCC
12910 builtin and then its argument prototype would still apply. */
12911 #ifdef __cplusplus
12912 extern "C"
12913 #endif
12914 char jpeg_destroy_compress ();
12915 int
12916 main ()
12917 {
12918 return jpeg_destroy_compress ();
12919 ;
12920 return 0;
12921 }
12922 _ACEOF
12923 if ac_fn_c_try_link "$LINENO"; then :
12924 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12925 else
12926 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext \
12929 conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12931 fi
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12933 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12934 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12935 HAVE_JPEG=yes
12936 fi
12937
12938 fi
12939
12940
12941 fi
12942
12943 if test "${HAVE_JPEG}" = "yes"; then
12944 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12945
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12948 #include <jpeglib.h>
12949 version=JPEG_LIB_VERSION
12950
12951 _ACEOF
12952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12953 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12954 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12955
12956 else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12958 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12959 HAVE_JPEG=no
12960 fi
12961 rm -f conftest*
12962
12963 fi
12964 if test "${HAVE_JPEG}" = "yes"; then
12965 LIBJPEG=-ljpeg
12966 fi
12967 fi
12968
12969
12970 ### Use -lpng if available, unless `--with-png=no'.
12971 HAVE_PNG=no
12972 LIBPNG=
12973 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12974 if test "${with_png}" != "no"; then
12975 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12976 # in /usr/include/libpng.
12977 for ac_header in png.h libpng/png.h
12978 do :
12979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12980 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12981 eval as_val=\$$as_ac_Header
12982 if test "x$as_val" = x""yes; then :
12983 cat >>confdefs.h <<_ACEOF
12984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12985 _ACEOF
12986 break
12987 fi
12988
12989 done
12990
12991 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12993 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12994 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 ac_check_lib_save_LIBS=$LIBS
12998 LIBS="-lpng -lz -lm $LIBS"
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13001
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13005 #ifdef __cplusplus
13006 extern "C"
13007 #endif
13008 char png_get_channels ();
13009 int
13010 main ()
13011 {
13012 return png_get_channels ();
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 if ac_fn_c_try_link "$LINENO"; then :
13018 ac_cv_lib_png_png_get_channels=yes
13019 else
13020 ac_cv_lib_png_png_get_channels=no
13021 fi
13022 rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
13024 LIBS=$ac_check_lib_save_LIBS
13025 fi
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13027 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13028 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13029 HAVE_PNG=yes
13030 fi
13031
13032 fi
13033 fi
13034
13035 if test "${HAVE_PNG}" = "yes"; then
13036
13037 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13038
13039 LIBPNG="-lpng -lz -lm"
13040
13041 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13042 # include <libpng/png.h>
13043 #else
13044 # include <png.h>
13045 #endif
13046
13047 "
13048 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13049
13050 else
13051
13052 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13053
13054 fi
13055
13056 fi
13057 fi
13058
13059
13060 ### Use -ltiff if available, unless `--with-tiff=no'.
13061 HAVE_TIFF=no
13062 LIBTIFF=
13063 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13064 if test "${with_tiff}" != "no"; then
13065 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13066 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13067 tifflibs="-lz -lm"
13068 # At least one tiff package requires the jpeg library.
13069 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13071 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13072 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-ltiff $tifflibs $LIBS"
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char TIFFGetVersion ();
13087 int
13088 main ()
13089 {
13090 return TIFFGetVersion ();
13091 ;
13092 return 0;
13093 }
13094 _ACEOF
13095 if ac_fn_c_try_link "$LINENO"; then :
13096 ac_cv_lib_tiff_TIFFGetVersion=yes
13097 else
13098 ac_cv_lib_tiff_TIFFGetVersion=no
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13102 LIBS=$ac_check_lib_save_LIBS
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13105 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13106 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13107 HAVE_TIFF=yes
13108 fi
13109
13110 fi
13111
13112
13113 fi
13114
13115 if test "${HAVE_TIFF}" = "yes"; then
13116
13117 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13118
13119 LIBTIFF=-ltiff
13120 fi
13121 fi
13122
13123
13124 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13125 HAVE_GIF=no
13126 LIBGIF=
13127 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13128 || test "${HAVE_W32}" = "yes"; then
13129 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13130 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13131 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13132 # Earlier versions can crash Emacs.
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13134 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13135 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 ac_check_lib_save_LIBS=$LIBS
13139 LIBS="-lgif $LIBS"
13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h. */
13142
13143 /* Override any GCC internal prototype to avoid an error.
13144 Use char because int might match the return type of a GCC
13145 builtin and then its argument prototype would still apply. */
13146 #ifdef __cplusplus
13147 extern "C"
13148 #endif
13149 char EGifPutExtensionLast ();
13150 int
13151 main ()
13152 {
13153 return EGifPutExtensionLast ();
13154 ;
13155 return 0;
13156 }
13157 _ACEOF
13158 if ac_fn_c_try_link "$LINENO"; then :
13159 ac_cv_lib_gif_EGifPutExtensionLast=yes
13160 else
13161 ac_cv_lib_gif_EGifPutExtensionLast=no
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext \
13164 conftest$ac_exeext conftest.$ac_ext
13165 LIBS=$ac_check_lib_save_LIBS
13166 fi
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13168 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13169 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13170 HAVE_GIF=yes
13171 else
13172 HAVE_GIF=maybe
13173 fi
13174
13175 fi
13176
13177
13178
13179 if test "$HAVE_GIF" = yes; then
13180 LIBGIF=-lgif
13181 elif test "$HAVE_GIF" = maybe; then
13182 # If gif_lib.h but no libgif, try libungif.
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13184 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13185 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13186 $as_echo_n "(cached) " >&6
13187 else
13188 ac_check_lib_save_LIBS=$LIBS
13189 LIBS="-lungif $LIBS"
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13192
13193 /* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13196 #ifdef __cplusplus
13197 extern "C"
13198 #endif
13199 char EGifPutExtensionLast ();
13200 int
13201 main ()
13202 {
13203 return EGifPutExtensionLast ();
13204 ;
13205 return 0;
13206 }
13207 _ACEOF
13208 if ac_fn_c_try_link "$LINENO"; then :
13209 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13210 else
13211 ac_cv_lib_ungif_EGifPutExtensionLast=no
13212 fi
13213 rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13215 LIBS=$ac_check_lib_save_LIBS
13216 fi
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13218 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13219 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13220 HAVE_GIF=yes
13221 else
13222 HAVE_GIF=no
13223 fi
13224
13225 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13226 fi
13227
13228 if test "${HAVE_GIF}" = "yes"; then
13229
13230 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13231
13232 fi
13233 fi
13234
13235
13236 if test "${HAVE_X11}" = "yes"; then
13237 MISSING=""
13238 WITH_NO=""
13239 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13240 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13241 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13242 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13243 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13244 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13245 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13246 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13247 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13248 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13249
13250 if test "X${MISSING}" != X; then
13251 as_fn_error "The following required libraries were not found:
13252 $MISSING
13253 Maybe some development libraries/packages are missing?
13254 If you don't want to link with them give
13255 $WITH_NO
13256 as options to configure" "$LINENO" 5
13257 fi
13258 fi
13259
13260 ### Use -lgpm if available, unless `--with-gpm=no'.
13261 HAVE_GPM=no
13262 LIBGPM=
13263 if test "${with_gpm}" != "no"; then
13264 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13265 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13267 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13268 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 ac_check_lib_save_LIBS=$LIBS
13272 LIBS="-lgpm $LIBS"
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13275
13276 /* Override any GCC internal prototype to avoid an error.
13277 Use char because int might match the return type of a GCC
13278 builtin and then its argument prototype would still apply. */
13279 #ifdef __cplusplus
13280 extern "C"
13281 #endif
13282 char Gpm_Open ();
13283 int
13284 main ()
13285 {
13286 return Gpm_Open ();
13287 ;
13288 return 0;
13289 }
13290 _ACEOF
13291 if ac_fn_c_try_link "$LINENO"; then :
13292 ac_cv_lib_gpm_Gpm_Open=yes
13293 else
13294 ac_cv_lib_gpm_Gpm_Open=no
13295 fi
13296 rm -f core conftest.err conftest.$ac_objext \
13297 conftest$ac_exeext conftest.$ac_ext
13298 LIBS=$ac_check_lib_save_LIBS
13299 fi
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13301 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13302 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13303 HAVE_GPM=yes
13304 fi
13305
13306 fi
13307
13308
13309
13310 if test "${HAVE_GPM}" = "yes"; then
13311
13312 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13313
13314 LIBGPM=-lgpm
13315 fi
13316 fi
13317
13318
13319
13320
13321
13322
13323 GNUSTEP_CFLAGS=
13324 ### Use NeXTstep API to implement GUI.
13325 if test "${HAVE_NS}" = "yes"; then
13326
13327 $as_echo "#define HAVE_NS 1" >>confdefs.h
13328
13329 if test "${NS_IMPL_COCOA}" = "yes"; then
13330
13331 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13332
13333 fi
13334 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13335
13336 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13337
13338 # See also .m.o rule in Makefile.in */
13339 # FIXME: are all these flags really needed? Document here why. */
13340 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13341 ## Extra CFLAGS applied to src/*.m files.
13342 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"
13343 fi
13344 # We also have mouse menus.
13345 HAVE_MENUS=yes
13346 OTHER_FILES=ns-app
13347 fi
13348
13349 if test "${HAVE_W32}" = "yes"; then
13350 HAVE_MENUS=yes
13351 fi
13352
13353 ### Use session management (-lSM -lICE) if available
13354 HAVE_X_SM=no
13355 LIBXSM=
13356 if test "${HAVE_X11}" = "yes"; then
13357 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13358 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13360 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13361 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 ac_check_lib_save_LIBS=$LIBS
13365 LIBS="-lSM -lICE $LIBS"
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368
13369 /* Override any GCC internal prototype to avoid an error.
13370 Use char because int might match the return type of a GCC
13371 builtin and then its argument prototype would still apply. */
13372 #ifdef __cplusplus
13373 extern "C"
13374 #endif
13375 char SmcOpenConnection ();
13376 int
13377 main ()
13378 {
13379 return SmcOpenConnection ();
13380 ;
13381 return 0;
13382 }
13383 _ACEOF
13384 if ac_fn_c_try_link "$LINENO"; then :
13385 ac_cv_lib_SM_SmcOpenConnection=yes
13386 else
13387 ac_cv_lib_SM_SmcOpenConnection=no
13388 fi
13389 rm -f core conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext conftest.$ac_ext
13391 LIBS=$ac_check_lib_save_LIBS
13392 fi
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13394 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13395 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13396 HAVE_X_SM=yes
13397 fi
13398
13399 fi
13400
13401
13402
13403 if test "${HAVE_X_SM}" = "yes"; then
13404
13405 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13406
13407 LIBXSM="-lSM -lICE"
13408 case "$LIBS" in
13409 *-lSM*) ;;
13410 *) LIBS="$LIBXSM $LIBS" ;;
13411 esac
13412 fi
13413 fi
13414
13415
13416 ### Use XRandr (-lXrandr) if available
13417 HAVE_XRANDR=no
13418 if test "${HAVE_X11}" = "yes"; then
13419 XRANDR_REQUIRED=1.2.2
13420 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
13421
13422 succeeded=no
13423
13424 if test "$PKG_CONFIG" = "no" ; then
13425 HAVE_XRANDR=no
13426 else
13427 PKG_CONFIG_MIN_VERSION=0.9.0
13428 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
13430 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
13431
13432 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
13433 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
13434 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
13435 edit_cflags="
13436 s,///*,/,g
13437 s/^/ /
13438 s/ -I/ $isystem/g
13439 s/^ //
13440 "
13441 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
13442 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
13444 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
13445 succeeded=yes
13446 else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 $as_echo "no" >&6; }
13449 XRANDR_CFLAGS=""
13450 XRANDR_LIBS=""
13451 ## If we have a custom action on failure, don't print errors, but
13452 ## do set a variable so people can do so. Do it in a subshell
13453 ## to capture any diagnostics in invoking pkg-config.
13454 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
13455
13456 fi
13457
13458
13459
13460 else
13461 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13462 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13463 fi
13464 fi
13465
13466 if test $succeeded = yes; then
13467 HAVE_XRANDR=yes
13468 else
13469 HAVE_XRANDR=no
13470 fi
13471
13472 if test $HAVE_XRANDR = no; then
13473 # Test old way in case pkg-config doesn't have it (older machines).
13474 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
13475 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
13477 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
13478 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
13479 $as_echo_n "(cached) " >&6
13480 else
13481 ac_check_lib_save_LIBS=$LIBS
13482 LIBS="-lXrandr $LIBS"
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485
13486 /* Override any GCC internal prototype to avoid an error.
13487 Use char because int might match the return type of a GCC
13488 builtin and then its argument prototype would still apply. */
13489 #ifdef __cplusplus
13490 extern "C"
13491 #endif
13492 char XRRQueryExtension ();
13493 int
13494 main ()
13495 {
13496 return XRRQueryExtension ();
13497 ;
13498 return 0;
13499 }
13500 _ACEOF
13501 if ac_fn_c_try_link "$LINENO"; then :
13502 ac_cv_lib_Xrandr_XRRQueryExtension=yes
13503 else
13504 ac_cv_lib_Xrandr_XRRQueryExtension=no
13505 fi
13506 rm -f core conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
13508 LIBS=$ac_check_lib_save_LIBS
13509 fi
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
13511 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
13512 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
13513 HAVE_XRANDR=yes
13514 fi
13515
13516 fi
13517
13518
13519 if test $HAVE_XRANDR = yes; then
13520 XRANDR_LIBS=-lXrandr
13521
13522 fi
13523 fi
13524 if test $HAVE_XRANDR = yes; then
13525 SAVE_CFLAGS="$CFLAGS"
13526 SAVE_LIBS="$LIBS"
13527 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
13528 LIBS="$XRANDR_LIBS $LIBS"
13529 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
13530 do :
13531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13532 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13533 eval as_val=\$$as_ac_var
13534 if test "x$as_val" = x""yes; then :
13535 cat >>confdefs.h <<_ACEOF
13536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13537 _ACEOF
13538
13539 fi
13540 done
13541
13542 CFLAGS="$SAVE_CFLAGS"
13543 LIBS="$SAVE_LIBS"
13544
13545
13546 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
13547
13548 fi
13549 fi
13550
13551 ### Use Xinerama (-lXinerama) if available
13552 HAVE_XINERAMA=no
13553 if test "${HAVE_X11}" = "yes"; then
13554 XINERAMA_REQUIRED=1.0.2
13555 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
13556
13557 succeeded=no
13558
13559 if test "$PKG_CONFIG" = "no" ; then
13560 HAVE_XINERAMA=no
13561 else
13562 PKG_CONFIG_MIN_VERSION=0.9.0
13563 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
13565 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
13566
13567 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
13568 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
13569 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
13570 edit_cflags="
13571 s,///*,/,g
13572 s/^/ /
13573 s/ -I/ $isystem/g
13574 s/^ //
13575 "
13576 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
13577 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
13579 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
13580 succeeded=yes
13581 else
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 $as_echo "no" >&6; }
13584 XINERAMA_CFLAGS=""
13585 XINERAMA_LIBS=""
13586 ## If we have a custom action on failure, don't print errors, but
13587 ## do set a variable so people can do so. Do it in a subshell
13588 ## to capture any diagnostics in invoking pkg-config.
13589 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
13590
13591 fi
13592
13593
13594
13595 else
13596 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13597 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13598 fi
13599 fi
13600
13601 if test $succeeded = yes; then
13602 HAVE_XINERAMA=yes
13603 else
13604 HAVE_XINERAMA=no
13605 fi
13606
13607 if test $HAVE_XINERAMA = no; then
13608 # Test old way in case pkg-config doesn't have it (older machines).
13609 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
13610 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
13612 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
13613 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 ac_check_lib_save_LIBS=$LIBS
13617 LIBS="-lXinerama $LIBS"
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620
13621 /* Override any GCC internal prototype to avoid an error.
13622 Use char because int might match the return type of a GCC
13623 builtin and then its argument prototype would still apply. */
13624 #ifdef __cplusplus
13625 extern "C"
13626 #endif
13627 char XineramaQueryExtension ();
13628 int
13629 main ()
13630 {
13631 return XineramaQueryExtension ();
13632 ;
13633 return 0;
13634 }
13635 _ACEOF
13636 if ac_fn_c_try_link "$LINENO"; then :
13637 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
13638 else
13639 ac_cv_lib_Xinerama_XineramaQueryExtension=no
13640 fi
13641 rm -f core conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext conftest.$ac_ext
13643 LIBS=$ac_check_lib_save_LIBS
13644 fi
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
13646 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
13647 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
13648 HAVE_XINERAMA=yes
13649 fi
13650
13651 fi
13652
13653
13654 if test $HAVE_XINERAMA = yes; then
13655 XINERAMA_LIBS=-lXinerama
13656
13657 fi
13658 fi
13659 if test $HAVE_XINERAMA = yes; then
13660
13661 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
13662
13663 fi
13664 fi
13665
13666
13667 ### Use libxml (-lxml2) if available
13668 HAVE_LIBXML2=no
13669 if test "${with_xml2}" != "no"; then
13670 ### I'm not sure what the version number should be, so I just guessed.
13671
13672 succeeded=no
13673
13674 if test "$PKG_CONFIG" = "no" ; then
13675 HAVE_LIBXML2=no
13676 else
13677 PKG_CONFIG_MIN_VERSION=0.9.0
13678 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13680 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13681
13682 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13683 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13684 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13685 edit_cflags="
13686 s,///*,/,g
13687 s/^/ /
13688 s/ -I/ $isystem/g
13689 s/^ //
13690 "
13691 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13692 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13694 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13695 succeeded=yes
13696 else
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698 $as_echo "no" >&6; }
13699 LIBXML2_CFLAGS=""
13700 LIBXML2_LIBS=""
13701 ## If we have a custom action on failure, don't print errors, but
13702 ## do set a variable so people can do so. Do it in a subshell
13703 ## to capture any diagnostics in invoking pkg-config.
13704 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13705
13706 fi
13707
13708
13709
13710 else
13711 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13712 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13713 fi
13714 fi
13715
13716 if test $succeeded = yes; then
13717 HAVE_LIBXML2=yes
13718 else
13719 HAVE_LIBXML2=no
13720 fi
13721
13722 if test "${HAVE_LIBXML2}" = "yes"; then
13723 LIBS="$LIBXML2_LIBS $LIBS"
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13725 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13726 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 ac_check_lib_save_LIBS=$LIBS
13730 LIBS="-lxml2 $LIBS"
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733
13734 /* Override any GCC internal prototype to avoid an error.
13735 Use char because int might match the return type of a GCC
13736 builtin and then its argument prototype would still apply. */
13737 #ifdef __cplusplus
13738 extern "C"
13739 #endif
13740 char htmlReadMemory ();
13741 int
13742 main ()
13743 {
13744 return htmlReadMemory ();
13745 ;
13746 return 0;
13747 }
13748 _ACEOF
13749 if ac_fn_c_try_link "$LINENO"; then :
13750 ac_cv_lib_xml2_htmlReadMemory=yes
13751 else
13752 ac_cv_lib_xml2_htmlReadMemory=no
13753 fi
13754 rm -f core conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
13756 LIBS=$ac_check_lib_save_LIBS
13757 fi
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13759 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13760 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13761 HAVE_LIBXML2=yes
13762 else
13763 HAVE_LIBXML2=no
13764 fi
13765
13766 if test "${HAVE_LIBXML2}" = "yes"; then
13767
13768 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13769
13770 else
13771 LIBXML2_LIBS=""
13772 LIBXML2_CFLAGS=""
13773 fi
13774 fi
13775 fi
13776
13777
13778
13779 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13781 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13782 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787 #include <netdb.h>
13788 int
13789 main ()
13790 {
13791 return h_errno;
13792 ;
13793 return 0;
13794 }
13795 _ACEOF
13796 if ac_fn_c_try_link "$LINENO"; then :
13797 emacs_cv_netdb_declares_h_errno=yes
13798 else
13799 emacs_cv_netdb_declares_h_errno=no
13800 fi
13801 rm -f core conftest.err conftest.$ac_objext \
13802 conftest$ac_exeext conftest.$ac_ext
13803 fi
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13805 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13806 if test $emacs_cv_netdb_declares_h_errno = yes; then
13807
13808 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13809
13810 fi
13811
13812 # sqrt and other floating-point functions such as fmod and frexp
13813 # are found in -lm on most systems.
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13815 $as_echo_n "checking for sqrt in -lm... " >&6; }
13816 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13817 $as_echo_n "(cached) " >&6
13818 else
13819 ac_check_lib_save_LIBS=$LIBS
13820 LIBS="-lm $LIBS"
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13823
13824 /* Override any GCC internal prototype to avoid an error.
13825 Use char because int might match the return type of a GCC
13826 builtin and then its argument prototype would still apply. */
13827 #ifdef __cplusplus
13828 extern "C"
13829 #endif
13830 char sqrt ();
13831 int
13832 main ()
13833 {
13834 return sqrt ();
13835 ;
13836 return 0;
13837 }
13838 _ACEOF
13839 if ac_fn_c_try_link "$LINENO"; then :
13840 ac_cv_lib_m_sqrt=yes
13841 else
13842 ac_cv_lib_m_sqrt=no
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext \
13845 conftest$ac_exeext conftest.$ac_ext
13846 LIBS=$ac_check_lib_save_LIBS
13847 fi
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13849 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13850 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13851 cat >>confdefs.h <<_ACEOF
13852 #define HAVE_LIBM 1
13853 _ACEOF
13854
13855 LIBS="-lm $LIBS"
13856
13857 fi
13858
13859
13860 # Check for mail-locking functions in a "mail" library. Probably this should
13861 # have the same check as for liblockfile below.
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13863 $as_echo_n "checking for maillock in -lmail... " >&6; }
13864 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 ac_check_lib_save_LIBS=$LIBS
13868 LIBS="-lmail $LIBS"
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871
13872 /* Override any GCC internal prototype to avoid an error.
13873 Use char because int might match the return type of a GCC
13874 builtin and then its argument prototype would still apply. */
13875 #ifdef __cplusplus
13876 extern "C"
13877 #endif
13878 char maillock ();
13879 int
13880 main ()
13881 {
13882 return maillock ();
13883 ;
13884 return 0;
13885 }
13886 _ACEOF
13887 if ac_fn_c_try_link "$LINENO"; then :
13888 ac_cv_lib_mail_maillock=yes
13889 else
13890 ac_cv_lib_mail_maillock=no
13891 fi
13892 rm -f core conftest.err conftest.$ac_objext \
13893 conftest$ac_exeext conftest.$ac_ext
13894 LIBS=$ac_check_lib_save_LIBS
13895 fi
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13897 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13898 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13899 have_mail=yes
13900 else
13901 have_mail=no
13902 fi
13903
13904 if test $have_mail = yes; then
13905 LIBS_MAIL=-lmail
13906 LIBS="$LIBS_MAIL $LIBS"
13907
13908 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13909
13910 else
13911 LIBS_MAIL=
13912 fi
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13914 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13915 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 ac_check_lib_save_LIBS=$LIBS
13919 LIBS="-llockfile $LIBS"
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13922
13923 /* Override any GCC internal prototype to avoid an error.
13924 Use char because int might match the return type of a GCC
13925 builtin and then its argument prototype would still apply. */
13926 #ifdef __cplusplus
13927 extern "C"
13928 #endif
13929 char maillock ();
13930 int
13931 main ()
13932 {
13933 return maillock ();
13934 ;
13935 return 0;
13936 }
13937 _ACEOF
13938 if ac_fn_c_try_link "$LINENO"; then :
13939 ac_cv_lib_lockfile_maillock=yes
13940 else
13941 ac_cv_lib_lockfile_maillock=no
13942 fi
13943 rm -f core conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13946 fi
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13948 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13949 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13950 have_lockfile=yes
13951 else
13952 have_lockfile=no
13953 fi
13954
13955 if test $have_lockfile = yes; then
13956 LIBS_MAIL=-llockfile
13957 LIBS="$LIBS_MAIL $LIBS"
13958
13959 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13960
13961 else
13962 # If we have the shared liblockfile, assume we must use it for mail
13963 # locking (e.g. Debian). If we couldn't link against liblockfile
13964 # (no liblockfile.a installed), ensure that we don't need to.
13965 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13966 set dummy liblockfile.so; ac_word=$2
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968 $as_echo_n "checking for $ac_word... " >&6; }
13969 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13970 $as_echo_n "(cached) " >&6
13971 else
13972 if test -n "$liblockfile"; then
13973 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13974 else
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13977 for as_dir in $as_dummy
13978 do
13979 IFS=$as_save_IFS
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
13982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13983 ac_cv_prog_liblockfile="yes"
13984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13985 break 2
13986 fi
13987 done
13988 done
13989 IFS=$as_save_IFS
13990
13991 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13992 fi
13993 fi
13994 liblockfile=$ac_cv_prog_liblockfile
13995 if test -n "$liblockfile"; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13997 $as_echo "$liblockfile" >&6; }
13998 else
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14000 $as_echo "no" >&6; }
14001 fi
14002
14003
14004 if test $ac_cv_prog_liblockfile = yes; then
14005 as_fn_error "Shared liblockfile found but can't link against it.
14006 This probably means that movemail could lose mail.
14007 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14008 fi
14009 fi
14010
14011
14012
14013
14014
14015 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14016 ## interlock access to the mail spool. The alternative is a lock file named
14017 ## /usr/spool/mail/$USER.lock.
14018 mail_lock=no
14019 case "$opsys" in
14020 aix4-2) mail_lock="lockf" ;;
14021
14022 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14023
14024 ## On GNU/Linux systems, both methods are used by various mail programs.
14025 ## I assume most people are using newer mailers that have heard of flock.
14026 ## Change this if you need to.
14027 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14028 ## configure gets the right answers, and that means *NOT* using flock.
14029 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14030 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14031 ## Debian maintainer hasn't provided a clean fix for Emacs.
14032 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14033 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14034 ## correct logic. -- fx
14035 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14036 ## liblockfile is a Free Software replacement for libmail, used on
14037 ## Debian systems and elsewhere. -rfr.
14038 gnu-*)
14039 mail_lock="flock"
14040 if test $have_mail = yes || test $have_lockfile = yes; then
14041 test $ac_cv_header_maillock_h = yes && mail_lock=no
14042 fi
14043 ;;
14044 esac
14045
14046 BLESSMAIL_TARGET=
14047 case "$mail_lock" in
14048 flock)
14049 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14050 ;;
14051
14052 lockf)
14053 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14054 ;;
14055
14056 *) BLESSMAIL_TARGET="need-blessmail" ;;
14057 esac
14058
14059
14060
14061 for ac_func in gethostname \
14062 getrusage get_current_dir_name \
14063 lrand48 \
14064 select getpagesize setlocale \
14065 utimes getrlimit setrlimit shutdown getaddrinfo \
14066 strsignal setitimer \
14067 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14068 gai_strerror mkstemp getline getdelim sync \
14069 difftime posix_memalign \
14070 getpwent endpwent getgrent endgrent \
14071 touchlock \
14072 cfmakeraw cfsetspeed copysign __executable_start
14073 do :
14074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14076 eval as_val=\$$as_ac_var
14077 if test "x$as_val" = x""yes; then :
14078 cat >>confdefs.h <<_ACEOF
14079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14080 _ACEOF
14081
14082 fi
14083 done
14084
14085
14086 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14087 ## has a broken `rint' in some library versions including math library
14088 ## version number A.09.05.
14089 ## You can fix the math library by installing patch number PHSS_4630.
14090 ## But we can fix it more reliably for Emacs by just not using rint.
14091 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14092 case $opsys in
14093 hpux*) : ;;
14094 *) for ac_func in random rint
14095 do :
14096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14098 eval as_val=\$$as_ac_var
14099 if test "x$as_val" = x""yes; then :
14100 cat >>confdefs.h <<_ACEOF
14101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14102 _ACEOF
14103
14104 fi
14105 done
14106 ;;
14107 esac
14108
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14110 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14111 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14113 else
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14116
14117 int
14118 main ()
14119 {
14120 __builtin_unwind_init ();
14121 ;
14122 return 0;
14123 }
14124 _ACEOF
14125 if ac_fn_c_try_link "$LINENO"; then :
14126 emacs_cv_func___builtin_unwind_init=yes
14127 else
14128 emacs_cv_func___builtin_unwind_init=no
14129 fi
14130 rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132 fi
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14134 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14135 if test $emacs_cv_func___builtin_unwind_init = yes; then
14136
14137 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14138
14139 fi
14140
14141
14142
14143
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14146 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14147 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14148 $as_echo_n "(cached) " >&6
14149 else
14150 while :; do
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 #include <sys/types.h> /* for off_t */
14154 #include <stdio.h>
14155 int
14156 main ()
14157 {
14158 int (*fp) (FILE *, off_t, int) = fseeko;
14159 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14160 ;
14161 return 0;
14162 }
14163 _ACEOF
14164 if ac_fn_c_try_link "$LINENO"; then :
14165 ac_cv_sys_largefile_source=no; break
14166 fi
14167 rm -f core conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 #define _LARGEFILE_SOURCE 1
14172 #include <sys/types.h> /* for off_t */
14173 #include <stdio.h>
14174 int
14175 main ()
14176 {
14177 int (*fp) (FILE *, off_t, int) = fseeko;
14178 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14179 ;
14180 return 0;
14181 }
14182 _ACEOF
14183 if ac_fn_c_try_link "$LINENO"; then :
14184 ac_cv_sys_largefile_source=1; break
14185 fi
14186 rm -f core conftest.err conftest.$ac_objext \
14187 conftest$ac_exeext conftest.$ac_ext
14188 ac_cv_sys_largefile_source=unknown
14189 break
14190 done
14191 fi
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14193 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14194 case $ac_cv_sys_largefile_source in #(
14195 no | unknown) ;;
14196 *)
14197 cat >>confdefs.h <<_ACEOF
14198 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14199 _ACEOF
14200 ;;
14201 esac
14202 rm -rf conftest*
14203
14204 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14205 # in glibc 2.1.3, but that breaks too many other things.
14206 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14207 if test $ac_cv_sys_largefile_source != unknown; then
14208
14209 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14210
14211 fi
14212
14213
14214 # UNIX98 PTYs.
14215 for ac_func in grantpt
14216 do :
14217 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14218 if test "x$ac_cv_func_grantpt" = x""yes; then :
14219 cat >>confdefs.h <<_ACEOF
14220 #define HAVE_GRANTPT 1
14221 _ACEOF
14222
14223 fi
14224 done
14225
14226
14227 # PTY-related GNU extensions.
14228 for ac_func in getpt posix_openpt
14229 do :
14230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14231 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14232 eval as_val=\$$as_ac_var
14233 if test "x$as_val" = x""yes; then :
14234 cat >>confdefs.h <<_ACEOF
14235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14236 _ACEOF
14237
14238 fi
14239 done
14240
14241
14242 # Check this now, so that we will NOT find the above functions in ncurses.
14243 # That is because we have not set up to link ncurses in lib-src.
14244 # It's better to believe a function is not available
14245 # than to expect to find it in ncurses.
14246 # Also we need tputs and friends to be able to build at all.
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14248 $as_echo_n "checking for library containing tputs... " >&6; }
14249 # Run a test program that contains a call to tputs, a call that is
14250 # never executed. This tests whether a pre-'main' dynamic linker
14251 # works with the library. It's too much trouble to actually call
14252 # tputs in the test program, due to portability hassles. When
14253 # cross-compiling, assume the test program will run if it links.
14254
14255 # Maybe curses should be tried earlier?
14256 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14257 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14258 OLIBS=$LIBS
14259 if test -z "$tputs_library"; then
14260 LIBS_TERMCAP=
14261 msg='none required'
14262 else
14263 LIBS_TERMCAP=-l$tputs_library
14264 msg=$LIBS_TERMCAP
14265 LIBS="$LIBS_TERMCAP $LIBS"
14266 fi
14267 if test "$cross_compiling" = yes; then :
14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269 /* end confdefs.h. */
14270
14271 extern void tputs (const char *, int, int (*)(int));
14272 int main (int argc, char **argv)
14273 {
14274 if (argc == 10000)
14275 tputs (argv[0], 0, 0);
14276 return 0;
14277 }
14278
14279 _ACEOF
14280 if ac_fn_c_try_link "$LINENO"; then :
14281
14282 else
14283 msg=no
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 else
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290
14291 extern void tputs (const char *, int, int (*)(int));
14292 int main (int argc, char **argv)
14293 {
14294 if (argc == 10000)
14295 tputs (argv[0], 0, 0);
14296 return 0;
14297 }
14298
14299 _ACEOF
14300 if ac_fn_c_try_run "$LINENO"; then :
14301
14302 else
14303 msg=no
14304 fi
14305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14306 conftest.$ac_objext conftest.beam conftest.$ac_ext
14307 fi
14308
14309 LIBS=$OLIBS
14310 if test "X$msg" != Xno; then
14311 break
14312 fi
14313 done
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14315 $as_echo "$msg" >&6; }
14316 if test "X$msg" = Xno; then
14317 as_fn_error "The required function \`tputs' was not found in any library.
14318 The following libraries were tried (in order):
14319 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14320 Please try installing whichever of these libraries is most appropriate
14321 for your system, together with its header files.
14322 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14323 fi
14324
14325 ## Use termcap instead of terminfo?
14326 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14327 TERMINFO=yes
14328 ## FIXME? In the cases below where we unconditionally set
14329 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14330 ## if that was found above to have tputs.
14331 ## Should we use the gnu* logic everywhere?
14332 case "$opsys" in
14333 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14334 ## The ncurses library has been moved out of the System framework in
14335 ## Mac OS X 10.2. So if configure detects it, set the command-line
14336 ## option to use it.
14337 darwin) LIBS_TERMCAP="-lncurses" ;;
14338
14339 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
14340
14341 freebsd)
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14343 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14344 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349 #include <osreldate.h>
14350 int
14351 main ()
14352 {
14353 #if __FreeBSD_version < 400000
14354 fail;
14355 #endif
14356
14357 ;
14358 return 0;
14359 }
14360 _ACEOF
14361 if ac_fn_c_try_link "$LINENO"; then :
14362 emacs_cv_freebsd_terminfo=yes
14363 else
14364 emacs_cv_freebsd_terminfo=no
14365 fi
14366 rm -f core conftest.err conftest.$ac_objext \
14367 conftest$ac_exeext conftest.$ac_ext
14368 fi
14369
14370
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14372 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14373
14374 if test $emacs_cv_freebsd_terminfo = yes; then
14375 LIBS_TERMCAP="-lncurses"
14376 else
14377 TERMINFO=no
14378 LIBS_TERMCAP="-ltermcap"
14379 fi
14380 ;;
14381
14382 netbsd)
14383 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14384 TERMINFO=no
14385 LIBS_TERMCAP="-ltermcap"
14386 fi
14387 ;;
14388
14389 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
14390
14391 ## hpux: Make sure we get select from libc rather than from libcurses
14392 ## because libcurses on HPUX 10.10 has a broken version of select.
14393 ## We used to use -lc -lcurses, but this may be cleaner.
14394 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14395 # set that way, now it uses the default). Isn't this a contradiction?
14396 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14397
14398 esac
14399
14400 TERMCAP_OBJ=tparam.o
14401 if test $TERMINFO = yes; then
14402
14403 $as_echo "#define TERMINFO 1" >>confdefs.h
14404
14405 TERMCAP_OBJ=terminfo.o
14406 fi
14407
14408
14409
14410
14411 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14412 # On Darwin, res_init appears not to be useful: see bug#562 and
14413 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14414 resolv=no
14415
14416 if test $opsys != darwin; then
14417
14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14420 #include <netinet/in.h>
14421 #include <arpa/nameser.h>
14422 #include <resolv.h>
14423 int
14424 main ()
14425 {
14426 return res_init();
14427 ;
14428 return 0;
14429 }
14430 _ACEOF
14431 if ac_fn_c_try_link "$LINENO"; then :
14432 have_res_init=yes
14433 else
14434 have_res_init=no
14435 fi
14436 rm -f core conftest.err conftest.$ac_objext \
14437 conftest$ac_exeext conftest.$ac_ext
14438 if test "$have_res_init" = no; then
14439 OLIBS="$LIBS"
14440 LIBS="$LIBS -lresolv"
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14442 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14445 #include <netinet/in.h>
14446 #include <arpa/nameser.h>
14447 #include <resolv.h>
14448 int
14449 main ()
14450 {
14451 return res_init();
14452 ;
14453 return 0;
14454 }
14455 _ACEOF
14456 if ac_fn_c_try_link "$LINENO"; then :
14457 have_res_init=yes
14458 else
14459 have_res_init=no
14460 fi
14461 rm -f core conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14464 $as_echo "$have_res_init" >&6; }
14465 if test "$have_res_init" = yes ; then
14466 resolv=yes
14467 fi
14468 LIBS="$OLIBS"
14469 fi
14470
14471 if test "$have_res_init" = yes; then
14472
14473 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14474
14475 fi
14476 fi
14477 # Do we need the Hesiod library to provide the support routines?
14478 LIBHESIOD=
14479 if test "$with_hesiod" != no ; then
14480 # Don't set $LIBS here -- see comments above. FIXME which comments?
14481 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14482 if test "x$ac_cv_func_res_send" = x""yes; then :
14483
14484 else
14485 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14486 if test "x$ac_cv_func___res_send" = x""yes; then :
14487
14488 else
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14490 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14491 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14492 $as_echo_n "(cached) " >&6
14493 else
14494 ac_check_lib_save_LIBS=$LIBS
14495 LIBS="-lresolv $LIBS"
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498
14499 /* Override any GCC internal prototype to avoid an error.
14500 Use char because int might match the return type of a GCC
14501 builtin and then its argument prototype would still apply. */
14502 #ifdef __cplusplus
14503 extern "C"
14504 #endif
14505 char res_send ();
14506 int
14507 main ()
14508 {
14509 return res_send ();
14510 ;
14511 return 0;
14512 }
14513 _ACEOF
14514 if ac_fn_c_try_link "$LINENO"; then :
14515 ac_cv_lib_resolv_res_send=yes
14516 else
14517 ac_cv_lib_resolv_res_send=no
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext \
14520 conftest$ac_exeext conftest.$ac_ext
14521 LIBS=$ac_check_lib_save_LIBS
14522 fi
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14524 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14525 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14526 resolv=yes
14527 else
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14529 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14530 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14531 $as_echo_n "(cached) " >&6
14532 else
14533 ac_check_lib_save_LIBS=$LIBS
14534 LIBS="-lresolv $LIBS"
14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14537
14538 /* Override any GCC internal prototype to avoid an error.
14539 Use char because int might match the return type of a GCC
14540 builtin and then its argument prototype would still apply. */
14541 #ifdef __cplusplus
14542 extern "C"
14543 #endif
14544 char __res_send ();
14545 int
14546 main ()
14547 {
14548 return __res_send ();
14549 ;
14550 return 0;
14551 }
14552 _ACEOF
14553 if ac_fn_c_try_link "$LINENO"; then :
14554 ac_cv_lib_resolv___res_send=yes
14555 else
14556 ac_cv_lib_resolv___res_send=no
14557 fi
14558 rm -f core conftest.err conftest.$ac_objext \
14559 conftest$ac_exeext conftest.$ac_ext
14560 LIBS=$ac_check_lib_save_LIBS
14561 fi
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14563 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14564 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14565 resolv=yes
14566 fi
14567
14568 fi
14569
14570 fi
14571
14572 fi
14573
14574 if test "$resolv" = yes ; then
14575 RESOLVLIB=-lresolv
14576 else
14577 RESOLVLIB=
14578 fi
14579 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14580 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14581
14582 else
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14584 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14585 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14586 $as_echo_n "(cached) " >&6
14587 else
14588 ac_check_lib_save_LIBS=$LIBS
14589 LIBS="-lhesiod $RESOLVLIB $LIBS"
14590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h. */
14592
14593 /* Override any GCC internal prototype to avoid an error.
14594 Use char because int might match the return type of a GCC
14595 builtin and then its argument prototype would still apply. */
14596 #ifdef __cplusplus
14597 extern "C"
14598 #endif
14599 char hes_getmailhost ();
14600 int
14601 main ()
14602 {
14603 return hes_getmailhost ();
14604 ;
14605 return 0;
14606 }
14607 _ACEOF
14608 if ac_fn_c_try_link "$LINENO"; then :
14609 ac_cv_lib_hesiod_hes_getmailhost=yes
14610 else
14611 ac_cv_lib_hesiod_hes_getmailhost=no
14612 fi
14613 rm -f core conftest.err conftest.$ac_objext \
14614 conftest$ac_exeext conftest.$ac_ext
14615 LIBS=$ac_check_lib_save_LIBS
14616 fi
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14618 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14619 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14620 hesiod=yes
14621 else
14622 :
14623 fi
14624
14625 fi
14626
14627
14628 if test x"$hesiod" = xyes; then
14629
14630 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14631
14632 LIBHESIOD=-lhesiod
14633 fi
14634 fi
14635
14636
14637 # Do we need libresolv (due to res_init or Hesiod)?
14638 if test "$resolv" = yes && test $opsys != darwin; then
14639
14640 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14641
14642 LIBRESOLV=-lresolv
14643 else
14644 LIBRESOLV=
14645 fi
14646
14647
14648 # These tell us which Kerberos-related libraries to use.
14649 COM_ERRLIB=
14650 CRYPTOLIB=
14651 KRB5LIB=
14652 DESLIB=
14653 KRB4LIB=
14654
14655 if test "${with_kerberos}" != no; then
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14657 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14658 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14659 $as_echo_n "(cached) " >&6
14660 else
14661 ac_check_lib_save_LIBS=$LIBS
14662 LIBS="-lcom_err $LIBS"
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14665
14666 /* Override any GCC internal prototype to avoid an error.
14667 Use char because int might match the return type of a GCC
14668 builtin and then its argument prototype would still apply. */
14669 #ifdef __cplusplus
14670 extern "C"
14671 #endif
14672 char com_err ();
14673 int
14674 main ()
14675 {
14676 return com_err ();
14677 ;
14678 return 0;
14679 }
14680 _ACEOF
14681 if ac_fn_c_try_link "$LINENO"; then :
14682 ac_cv_lib_com_err_com_err=yes
14683 else
14684 ac_cv_lib_com_err_com_err=no
14685 fi
14686 rm -f core conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14688 LIBS=$ac_check_lib_save_LIBS
14689 fi
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14691 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14692 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14693 have_com_err=yes
14694 else
14695 have_com_err=no
14696 fi
14697
14698 if test $have_com_err = yes; then
14699 COM_ERRLIB=-lcom_err
14700 LIBS="$COM_ERRLIB $LIBS"
14701
14702 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14703
14704 fi
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14706 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14707 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14708 $as_echo_n "(cached) " >&6
14709 else
14710 ac_check_lib_save_LIBS=$LIBS
14711 LIBS="-lcrypto $LIBS"
14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14714
14715 /* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14718 #ifdef __cplusplus
14719 extern "C"
14720 #endif
14721 char mit_des_cbc_encrypt ();
14722 int
14723 main ()
14724 {
14725 return mit_des_cbc_encrypt ();
14726 ;
14727 return 0;
14728 }
14729 _ACEOF
14730 if ac_fn_c_try_link "$LINENO"; then :
14731 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14732 else
14733 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14734 fi
14735 rm -f core conftest.err conftest.$ac_objext \
14736 conftest$ac_exeext conftest.$ac_ext
14737 LIBS=$ac_check_lib_save_LIBS
14738 fi
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14740 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14741 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14742 have_crypto=yes
14743 else
14744 have_crypto=no
14745 fi
14746
14747 if test $have_crypto = yes; then
14748 CRYPTOLIB=-lcrypto
14749 LIBS="$CRYPTOLIB $LIBS"
14750
14751 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14752
14753 fi
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14755 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14756 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 ac_check_lib_save_LIBS=$LIBS
14760 LIBS="-lk5crypto $LIBS"
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763
14764 /* Override any GCC internal prototype to avoid an error.
14765 Use char because int might match the return type of a GCC
14766 builtin and then its argument prototype would still apply. */
14767 #ifdef __cplusplus
14768 extern "C"
14769 #endif
14770 char mit_des_cbc_encrypt ();
14771 int
14772 main ()
14773 {
14774 return mit_des_cbc_encrypt ();
14775 ;
14776 return 0;
14777 }
14778 _ACEOF
14779 if ac_fn_c_try_link "$LINENO"; then :
14780 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14781 else
14782 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext \
14785 conftest$ac_exeext conftest.$ac_ext
14786 LIBS=$ac_check_lib_save_LIBS
14787 fi
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14789 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14790 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14791 have_k5crypto=yes
14792 else
14793 have_k5crypto=no
14794 fi
14795
14796 if test $have_k5crypto = yes; then
14797 CRYPTOLIB=-lk5crypto
14798 LIBS="$CRYPTOLIB $LIBS"
14799
14800 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14801
14802 fi
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14804 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14805 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14806 $as_echo_n "(cached) " >&6
14807 else
14808 ac_check_lib_save_LIBS=$LIBS
14809 LIBS="-lkrb5 $LIBS"
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14812
14813 /* Override any GCC internal prototype to avoid an error.
14814 Use char because int might match the return type of a GCC
14815 builtin and then its argument prototype would still apply. */
14816 #ifdef __cplusplus
14817 extern "C"
14818 #endif
14819 char krb5_init_context ();
14820 int
14821 main ()
14822 {
14823 return krb5_init_context ();
14824 ;
14825 return 0;
14826 }
14827 _ACEOF
14828 if ac_fn_c_try_link "$LINENO"; then :
14829 ac_cv_lib_krb5_krb5_init_context=yes
14830 else
14831 ac_cv_lib_krb5_krb5_init_context=no
14832 fi
14833 rm -f core conftest.err conftest.$ac_objext \
14834 conftest$ac_exeext conftest.$ac_ext
14835 LIBS=$ac_check_lib_save_LIBS
14836 fi
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14838 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14839 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14840 have_krb5=yes
14841 else
14842 have_krb5=no
14843 fi
14844
14845 if test $have_krb5=yes; then
14846 KRB5LIB=-lkrb5
14847 LIBS="$KRB5LIB $LIBS"
14848
14849 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14850
14851 fi
14852 if test "${with_kerberos5}" = no; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14854 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14855 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14856 $as_echo_n "(cached) " >&6
14857 else
14858 ac_check_lib_save_LIBS=$LIBS
14859 LIBS="-ldes425 $LIBS"
14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h. */
14862
14863 /* Override any GCC internal prototype to avoid an error.
14864 Use char because int might match the return type of a GCC
14865 builtin and then its argument prototype would still apply. */
14866 #ifdef __cplusplus
14867 extern "C"
14868 #endif
14869 char des_cbc_encrypt ();
14870 int
14871 main ()
14872 {
14873 return des_cbc_encrypt ();
14874 ;
14875 return 0;
14876 }
14877 _ACEOF
14878 if ac_fn_c_try_link "$LINENO"; then :
14879 ac_cv_lib_des425_des_cbc_encrypt=yes
14880 else
14881 ac_cv_lib_des425_des_cbc_encrypt=no
14882 fi
14883 rm -f core conftest.err conftest.$ac_objext \
14884 conftest$ac_exeext conftest.$ac_ext
14885 LIBS=$ac_check_lib_save_LIBS
14886 fi
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14888 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14889 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14890 have_des425=yes
14891 else
14892 have_des425=no
14893 fi
14894
14895 if test $have_des425 = yes; then
14896 DESLIB=-ldes425
14897 LIBS="$DESLIB $LIBS"
14898
14899 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14900
14901 else
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14903 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14904 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14905 $as_echo_n "(cached) " >&6
14906 else
14907 ac_check_lib_save_LIBS=$LIBS
14908 LIBS="-ldes $LIBS"
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14911
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14915 #ifdef __cplusplus
14916 extern "C"
14917 #endif
14918 char des_cbc_encrypt ();
14919 int
14920 main ()
14921 {
14922 return des_cbc_encrypt ();
14923 ;
14924 return 0;
14925 }
14926 _ACEOF
14927 if ac_fn_c_try_link "$LINENO"; then :
14928 ac_cv_lib_des_des_cbc_encrypt=yes
14929 else
14930 ac_cv_lib_des_des_cbc_encrypt=no
14931 fi
14932 rm -f core conftest.err conftest.$ac_objext \
14933 conftest$ac_exeext conftest.$ac_ext
14934 LIBS=$ac_check_lib_save_LIBS
14935 fi
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14937 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14938 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14939 have_des=yes
14940 else
14941 have_des=no
14942 fi
14943
14944 if test $have_des = yes; then
14945 DESLIB=-ldes
14946 LIBS="$DESLIB $LIBS"
14947
14948 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14949
14950 fi
14951 fi
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14953 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14954 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 ac_check_lib_save_LIBS=$LIBS
14958 LIBS="-lkrb4 $LIBS"
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14961
14962 /* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14965 #ifdef __cplusplus
14966 extern "C"
14967 #endif
14968 char krb_get_cred ();
14969 int
14970 main ()
14971 {
14972 return krb_get_cred ();
14973 ;
14974 return 0;
14975 }
14976 _ACEOF
14977 if ac_fn_c_try_link "$LINENO"; then :
14978 ac_cv_lib_krb4_krb_get_cred=yes
14979 else
14980 ac_cv_lib_krb4_krb_get_cred=no
14981 fi
14982 rm -f core conftest.err conftest.$ac_objext \
14983 conftest$ac_exeext conftest.$ac_ext
14984 LIBS=$ac_check_lib_save_LIBS
14985 fi
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14987 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14988 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14989 have_krb4=yes
14990 else
14991 have_krb4=no
14992 fi
14993
14994 if test $have_krb4 = yes; then
14995 KRB4LIB=-lkrb4
14996 LIBS="$KRB4LIB $LIBS"
14997
14998 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14999
15000 else
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15002 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15003 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15004 $as_echo_n "(cached) " >&6
15005 else
15006 ac_check_lib_save_LIBS=$LIBS
15007 LIBS="-lkrb $LIBS"
15008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15010
15011 /* Override any GCC internal prototype to avoid an error.
15012 Use char because int might match the return type of a GCC
15013 builtin and then its argument prototype would still apply. */
15014 #ifdef __cplusplus
15015 extern "C"
15016 #endif
15017 char krb_get_cred ();
15018 int
15019 main ()
15020 {
15021 return krb_get_cred ();
15022 ;
15023 return 0;
15024 }
15025 _ACEOF
15026 if ac_fn_c_try_link "$LINENO"; then :
15027 ac_cv_lib_krb_krb_get_cred=yes
15028 else
15029 ac_cv_lib_krb_krb_get_cred=no
15030 fi
15031 rm -f core conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15034 fi
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15036 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15037 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15038 have_krb=yes
15039 else
15040 have_krb=no
15041 fi
15042
15043 if test $have_krb = yes; then
15044 KRB4LIB=-lkrb
15045 LIBS="$KRB4LIB $LIBS"
15046
15047 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15048
15049 fi
15050 fi
15051 fi
15052
15053 if test "${with_kerberos5}" != no; then
15054 for ac_header in krb5.h
15055 do :
15056 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15057 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15058 cat >>confdefs.h <<_ACEOF
15059 #define HAVE_KRB5_H 1
15060 _ACEOF
15061 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15062 "
15063 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15064
15065 cat >>confdefs.h <<_ACEOF
15066 #define HAVE_KRB5_ERROR_TEXT 1
15067 _ACEOF
15068
15069
15070 fi
15071 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15072 "
15073 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15074
15075 cat >>confdefs.h <<_ACEOF
15076 #define HAVE_KRB5_ERROR_E_TEXT 1
15077 _ACEOF
15078
15079
15080 fi
15081
15082 fi
15083
15084 done
15085
15086 else
15087 for ac_header in des.h
15088 do :
15089 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15090 if test "x$ac_cv_header_des_h" = x""yes; then :
15091 cat >>confdefs.h <<_ACEOF
15092 #define HAVE_DES_H 1
15093 _ACEOF
15094
15095 else
15096 for ac_header in kerberosIV/des.h
15097 do :
15098 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15099 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_KERBEROSIV_DES_H 1
15102 _ACEOF
15103
15104 else
15105 for ac_header in kerberos/des.h
15106 do :
15107 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15108 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15109 cat >>confdefs.h <<_ACEOF
15110 #define HAVE_KERBEROS_DES_H 1
15111 _ACEOF
15112
15113 fi
15114
15115 done
15116
15117 fi
15118
15119 done
15120
15121 fi
15122
15123 done
15124
15125 for ac_header in krb.h
15126 do :
15127 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15128 if test "x$ac_cv_header_krb_h" = x""yes; then :
15129 cat >>confdefs.h <<_ACEOF
15130 #define HAVE_KRB_H 1
15131 _ACEOF
15132
15133 else
15134 for ac_header in kerberosIV/krb.h
15135 do :
15136 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15137 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_KERBEROSIV_KRB_H 1
15140 _ACEOF
15141
15142 else
15143 for ac_header in kerberos/krb.h
15144 do :
15145 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15146 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15147 cat >>confdefs.h <<_ACEOF
15148 #define HAVE_KERBEROS_KRB_H 1
15149 _ACEOF
15150
15151 fi
15152
15153 done
15154
15155 fi
15156
15157 done
15158
15159 fi
15160
15161 done
15162
15163 fi
15164 for ac_header in com_err.h
15165 do :
15166 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15167 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15168 cat >>confdefs.h <<_ACEOF
15169 #define HAVE_COM_ERR_H 1
15170 _ACEOF
15171
15172 fi
15173
15174 done
15175
15176 fi
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187 for ac_func in $ac_func_list
15188 do :
15189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15190 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15191 eval as_val=\$$as_ac_var
15192 if test "x$as_val" = x""yes; then :
15193 cat >>confdefs.h <<_ACEOF
15194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15195 _ACEOF
15196
15197 fi
15198 done
15199
15200
15201
15202
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15204 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15205 if test "${emacs_cv_localtime_cache+set}" = set; then :
15206 $as_echo_n "(cached) " >&6
15207 else
15208 if test x$ac_cv_func_tzset = xyes; then
15209 if test "$cross_compiling" = yes; then :
15210 # If we have tzset, assume the worst when cross-compiling.
15211 emacs_cv_localtime_cache=yes
15212 else
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215 #include <time.h>
15216 char TZ_GMT0[] = "TZ=GMT0";
15217 char TZ_PST8[] = "TZ=PST8";
15218 main()
15219 {
15220 time_t now = time ((time_t *) 0);
15221 int hour_GMT0, hour_unset;
15222 if (putenv (TZ_GMT0) != 0)
15223 exit (1);
15224 hour_GMT0 = localtime (&now)->tm_hour;
15225 unsetenv("TZ");
15226 hour_unset = localtime (&now)->tm_hour;
15227 if (putenv (TZ_PST8) != 0)
15228 exit (1);
15229 if (localtime (&now)->tm_hour == hour_GMT0)
15230 exit (1);
15231 unsetenv("TZ");
15232 if (localtime (&now)->tm_hour != hour_unset)
15233 exit (1);
15234 exit (0);
15235 }
15236 _ACEOF
15237 if ac_fn_c_try_run "$LINENO"; then :
15238 emacs_cv_localtime_cache=no
15239 else
15240 emacs_cv_localtime_cache=yes
15241 fi
15242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15243 conftest.$ac_objext conftest.beam conftest.$ac_ext
15244 fi
15245
15246 else
15247 # If we lack tzset, report that localtime does not cache TZ,
15248 # since we can't invalidate the cache if we don't have tzset.
15249 emacs_cv_localtime_cache=no
15250 fi
15251 fi
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15253 $as_echo "$emacs_cv_localtime_cache" >&6; }
15254 if test $emacs_cv_localtime_cache = yes; then
15255
15256 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15257
15258 fi
15259
15260 ok_so_far=yes
15261 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15262 if test "x$ac_cv_func_socket" = x""yes; then :
15263
15264 else
15265 ok_so_far=no
15266 fi
15267
15268 if test $ok_so_far = yes; then
15269 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15270 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15271
15272 else
15273 ok_so_far=no
15274 fi
15275
15276
15277 fi
15278 if test $ok_so_far = yes; then
15279 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15280 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15281
15282 else
15283 ok_so_far=no
15284 fi
15285
15286
15287 fi
15288 if test $ok_so_far = yes; then
15289
15290 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15291
15292 fi
15293
15294 if test -f /usr/lpp/X11/bin/smt.exp; then
15295
15296 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15297
15298 fi
15299
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15301 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15302 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15304 $as_echo "yes" >&6; }
15305
15306 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15307
15308 else
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15310 $as_echo "no" >&6; }
15311 fi
15312
15313 case $canonical in
15314 *-solaris2.4 | *-solaris2.4.*)
15315 : ${ac_cv_func_vfork_works=no};;
15316 esac
15317
15318 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15319 if test "x$ac_cv_type_pid_t" = x""yes; then :
15320
15321 else
15322
15323 cat >>confdefs.h <<_ACEOF
15324 #define pid_t int
15325 _ACEOF
15326
15327 fi
15328
15329 for ac_header in vfork.h
15330 do :
15331 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15332 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15333 cat >>confdefs.h <<_ACEOF
15334 #define HAVE_VFORK_H 1
15335 _ACEOF
15336
15337 fi
15338
15339 done
15340
15341 for ac_func in fork vfork
15342 do :
15343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15344 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15345 eval as_val=\$$as_ac_var
15346 if test "x$as_val" = x""yes; then :
15347 cat >>confdefs.h <<_ACEOF
15348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15349 _ACEOF
15350
15351 fi
15352 done
15353
15354 if test "x$ac_cv_func_fork" = xyes; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15356 $as_echo_n "checking for working fork... " >&6; }
15357 if test "${ac_cv_func_fork_works+set}" = set; then :
15358 $as_echo_n "(cached) " >&6
15359 else
15360 if test "$cross_compiling" = yes; then :
15361 ac_cv_func_fork_works=cross
15362 else
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15365 $ac_includes_default
15366 int
15367 main ()
15368 {
15369
15370 /* By Ruediger Kuhlmann. */
15371 return fork () < 0;
15372
15373 ;
15374 return 0;
15375 }
15376 _ACEOF
15377 if ac_fn_c_try_run "$LINENO"; then :
15378 ac_cv_func_fork_works=yes
15379 else
15380 ac_cv_func_fork_works=no
15381 fi
15382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15383 conftest.$ac_objext conftest.beam conftest.$ac_ext
15384 fi
15385
15386 fi
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15388 $as_echo "$ac_cv_func_fork_works" >&6; }
15389
15390 else
15391 ac_cv_func_fork_works=$ac_cv_func_fork
15392 fi
15393 if test "x$ac_cv_func_fork_works" = xcross; then
15394 case $host in
15395 *-*-amigaos* | *-*-msdosdjgpp*)
15396 # Override, as these systems have only a dummy fork() stub
15397 ac_cv_func_fork_works=no
15398 ;;
15399 *)
15400 ac_cv_func_fork_works=yes
15401 ;;
15402 esac
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15404 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15405 fi
15406 ac_cv_func_vfork_works=$ac_cv_func_vfork
15407 if test "x$ac_cv_func_vfork" = xyes; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15409 $as_echo_n "checking for working vfork... " >&6; }
15410 if test "${ac_cv_func_vfork_works+set}" = set; then :
15411 $as_echo_n "(cached) " >&6
15412 else
15413 if test "$cross_compiling" = yes; then :
15414 ac_cv_func_vfork_works=cross
15415 else
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15418 /* Thanks to Paul Eggert for this test. */
15419 $ac_includes_default
15420 #include <sys/wait.h>
15421 #ifdef HAVE_VFORK_H
15422 # include <vfork.h>
15423 #endif
15424 /* On some sparc systems, changes by the child to local and incoming
15425 argument registers are propagated back to the parent. The compiler
15426 is told about this with #include <vfork.h>, but some compilers
15427 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15428 static variable whose address is put into a register that is
15429 clobbered by the vfork. */
15430 static void
15431 #ifdef __cplusplus
15432 sparc_address_test (int arg)
15433 # else
15434 sparc_address_test (arg) int arg;
15435 #endif
15436 {
15437 static pid_t child;
15438 if (!child) {
15439 child = vfork ();
15440 if (child < 0) {
15441 perror ("vfork");
15442 _exit(2);
15443 }
15444 if (!child) {
15445 arg = getpid();
15446 write(-1, "", 0);
15447 _exit (arg);
15448 }
15449 }
15450 }
15451
15452 int
15453 main ()
15454 {
15455 pid_t parent = getpid ();
15456 pid_t child;
15457
15458 sparc_address_test (0);
15459
15460 child = vfork ();
15461
15462 if (child == 0) {
15463 /* Here is another test for sparc vfork register problems. This
15464 test uses lots of local variables, at least as many local
15465 variables as main has allocated so far including compiler
15466 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15467 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15468 reuse the register of parent for one of the local variables,
15469 since it will think that parent can't possibly be used any more
15470 in this routine. Assigning to the local variable will thus
15471 munge parent in the parent process. */
15472 pid_t
15473 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15474 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15475 /* Convince the compiler that p..p7 are live; otherwise, it might
15476 use the same hardware register for all 8 local variables. */
15477 if (p != p1 || p != p2 || p != p3 || p != p4
15478 || p != p5 || p != p6 || p != p7)
15479 _exit(1);
15480
15481 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15482 from child file descriptors. If the child closes a descriptor
15483 before it execs or exits, this munges the parent's descriptor
15484 as well. Test for this by closing stdout in the child. */
15485 _exit(close(fileno(stdout)) != 0);
15486 } else {
15487 int status;
15488 struct stat st;
15489
15490 while (wait(&status) != child)
15491 ;
15492 return (
15493 /* Was there some problem with vforking? */
15494 child < 0
15495
15496 /* Did the child fail? (This shouldn't happen.) */
15497 || status
15498
15499 /* Did the vfork/compiler bug occur? */
15500 || parent != getpid()
15501
15502 /* Did the file descriptor bug occur? */
15503 || fstat(fileno(stdout), &st) != 0
15504 );
15505 }
15506 }
15507 _ACEOF
15508 if ac_fn_c_try_run "$LINENO"; then :
15509 ac_cv_func_vfork_works=yes
15510 else
15511 ac_cv_func_vfork_works=no
15512 fi
15513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15514 conftest.$ac_objext conftest.beam conftest.$ac_ext
15515 fi
15516
15517 fi
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15519 $as_echo "$ac_cv_func_vfork_works" >&6; }
15520
15521 fi;
15522 if test "x$ac_cv_func_fork_works" = xcross; then
15523 ac_cv_func_vfork_works=$ac_cv_func_vfork
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15525 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15526 fi
15527
15528 if test "x$ac_cv_func_vfork_works" = xyes; then
15529
15530 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15531
15532 else
15533
15534 $as_echo "#define vfork fork" >>confdefs.h
15535
15536 fi
15537 if test "x$ac_cv_func_fork_works" = xyes; then
15538
15539 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15540
15541 fi
15542
15543
15544 for ac_func in snprintf
15545 do :
15546 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15547 if test "x$ac_cv_func_snprintf" = x""yes; then :
15548 cat >>confdefs.h <<_ACEOF
15549 #define HAVE_SNPRINTF 1
15550 _ACEOF
15551
15552 fi
15553 done
15554
15555
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15557 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15558 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15559 $as_echo_n "(cached) " >&6
15560 else
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #include <langinfo.h>
15564 int
15565 main ()
15566 {
15567 char* cs = nl_langinfo(CODESET);
15568 ;
15569 return 0;
15570 }
15571 _ACEOF
15572 if ac_fn_c_try_link "$LINENO"; then :
15573 emacs_cv_langinfo_codeset=yes
15574 else
15575 emacs_cv_langinfo_codeset=no
15576 fi
15577 rm -f core conftest.err conftest.$ac_objext \
15578 conftest$ac_exeext conftest.$ac_ext
15579
15580 fi
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15582 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15583 if test $emacs_cv_langinfo_codeset = yes; then
15584
15585 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15586
15587 fi
15588
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15590 $as_echo_n "checking for mbstate_t... " >&6; }
15591 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15592 $as_echo_n "(cached) " >&6
15593 else
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15596 $ac_includes_default
15597 # include <wchar.h>
15598 int
15599 main ()
15600 {
15601 mbstate_t x; return sizeof x;
15602 ;
15603 return 0;
15604 }
15605 _ACEOF
15606 if ac_fn_c_try_compile "$LINENO"; then :
15607 ac_cv_type_mbstate_t=yes
15608 else
15609 ac_cv_type_mbstate_t=no
15610 fi
15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612 fi
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15614 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15615 if test $ac_cv_type_mbstate_t = yes; then
15616
15617 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15618
15619 else
15620
15621 $as_echo "#define mbstate_t int" >>confdefs.h
15622
15623 fi
15624
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15626 $as_echo_n "checking for C restricted array declarations... " >&6; }
15627 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15628 $as_echo_n "(cached) " >&6
15629 else
15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15632 void fred (int x[__restrict]);
15633 int
15634 main ()
15635 {
15636
15637 ;
15638 return 0;
15639 }
15640 _ACEOF
15641 if ac_fn_c_try_compile "$LINENO"; then :
15642 emacs_cv_c_restrict_arr=yes
15643 else
15644 emacs_cv_c_restrict_arr=no
15645 fi
15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647 fi
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15649 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15650 if test "$emacs_cv_c_restrict_arr" = yes; then
15651
15652 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15653
15654 fi
15655
15656
15657
15658 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15659
15660
15661
15662 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15663
15664
15665 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15666
15667 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15668
15669
15670
15671 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15672
15673
15674
15675
15676
15677 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15678
15679
15680
15681 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15682
15683
15684
15685 $as_echo "#define subprocesses 1" >>confdefs.h
15686
15687
15688
15689 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15690
15691
15692
15693
15694 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15695
15696
15697
15698
15699
15700 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15701
15702
15703
15704 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15705
15706
15707
15708 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15709
15710
15711
15712
15713
15714 case $opsys in
15715 aix4-2)
15716 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15717 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15718
15719 fi
15720 ;;
15721
15722 hpux*)
15723 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15724
15725 ;;
15726 esac
15727
15728
15729 case $opsys in
15730 irix6-5 | sol2* | unixware )
15731
15732 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15733
15734 ;;
15735 esac
15736
15737 emacs_broken_SIGIO=no
15738
15739 case $opsys in
15740 hpux* | irix6-5 | openbsd | sol2* | unixware )
15741 emacs_broken_SIGIO=yes
15742 ;;
15743
15744 aix4-2)
15745
15746 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15747
15748 ;;
15749
15750 freebsd)
15751
15752 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15753
15754 ;;
15755 esac
15756
15757 case $opsys in
15758 gnu-* | sol2-10 )
15759
15760 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15761
15762 ;;
15763 esac
15764
15765 case $opsys in
15766 darwin | dragonfly | freebsd | netbsd | openbsd )
15767
15768 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15769
15770 ;;
15771 esac
15772
15773 case $opsys in
15774 netbsd | openbsd) sound_device="/dev/audio" ;;
15775 *) sound_device="/dev/dsp" ;;
15776 esac
15777
15778
15779 cat >>confdefs.h <<_ACEOF
15780 #define DEFAULT_SOUND_DEVICE "$sound_device"
15781 _ACEOF
15782
15783
15784
15785 case $opsys in
15786 darwin | gnu-linux | gnu-kfreebsd )
15787
15788 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15789
15790 ;;
15791 esac
15792
15793
15794 case $opsys in
15795 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15796
15797 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15798
15799 ;;
15800 esac
15801
15802
15803
15804
15805
15806
15807
15808
15809 case $opsys in
15810 aix4-2 )
15811 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15812
15813 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15814
15815 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15816
15817 ;;
15818
15819 cygwin )
15820 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15821
15822 $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
15823
15824 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15825
15826 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15827
15828 ;;
15829
15830 darwin )
15831 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15832
15833 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15834
15835 $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
15836
15837 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15838
15839 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15840
15841 ;;
15842
15843 gnu | openbsd )
15844 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15845
15846 ;;
15847
15848 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
15849 if test "x$ac_cv_func_grantpt" = xyes; then
15850
15851 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15852
15853 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15854
15855 $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
15856
15857 if test "x$ac_cv_func_posix_openpt" = xyes; then
15858 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15859
15860 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15861
15862 elif test "x$ac_cv_func_getpt" = xyes; then
15863 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15864
15865 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15866
15867 else
15868 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15869
15870 fi
15871 else
15872 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15873
15874 fi
15875 ;;
15876
15877 hpux*)
15878 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15879
15880 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15881
15882 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15883
15884 ;;
15885
15886 irix6-5 )
15887 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15888
15889 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15890
15891 $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
15892
15893 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15894
15895 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15896
15897 ;;
15898
15899 sol2* )
15900 $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
15901
15902 ;;
15903
15904 unixware )
15905 $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
15906
15907 ;;
15908 esac
15909
15910
15911 case $opsys in
15912 sol2* | unixware )
15913 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15914
15915 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15916
15917
15918 $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
15919
15920 ;;
15921 esac
15922
15923
15924
15925
15926 case $opsys in
15927 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
15928 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15929
15930 ;;
15931
15932 gnu-linux | gnu-kfreebsd )
15933
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15935 $as_echo_n "checking for signals via characters... " >&6; }
15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15938
15939 #include <linux/version.h>
15940 #if LINUX_VERSION_CODE < 0x20400
15941 # error "Linux version too old"
15942 #endif
15943
15944 int
15945 main ()
15946 {
15947
15948 ;
15949 return 0;
15950 }
15951 _ACEOF
15952 if ac_fn_c_try_cpp "$LINENO"; then :
15953 emacs_signals_via_chars=yes
15954 else
15955 emacs_signals_via_chars=no
15956 fi
15957 rm -f conftest.err conftest.$ac_ext
15958
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15960 $as_echo "$emacs_signals_via_chars" >&6; }
15961 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15962
15963 ;;
15964 esac
15965
15966
15967
15968
15969 case $opsys in
15970 aix*)
15971 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
15972
15973 ;;
15974 hpux*)
15975 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15976
15977 ;;
15978 irix6-5)
15979 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15980
15981 ;;
15982 esac
15983
15984
15985
15986
15987 case $opsys in
15988 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15989 ;;
15990
15991 gnu | dragonfly | freebsd | netbsd | openbsd )
15992
15993 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15994
15995 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15996
15997 ;;
15998
15999 gnu-linux | gnu-kfreebsd )
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002
16003 #ifndef __ia64__
16004 # error "not ia64"
16005 #endif
16006
16007 int
16008 main ()
16009 {
16010
16011 ;
16012 return 0;
16013 }
16014 _ACEOF
16015 if ac_fn_c_try_cpp "$LINENO"; then :
16016
16017 $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
16018
16019 fi
16020 rm -f conftest.err conftest.$ac_ext
16021 ;;
16022
16023 hpux*)
16024
16025 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16026
16027 ;;
16028 esac
16029
16030
16031
16032
16033
16034 case $opsys in
16035 gnu-linux | gnu-kfreebsd )
16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h. */
16038
16039 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16040 || defined __alpha__ || defined __mips__ || defined __s390__ \
16041 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16042 || defined __ia64__ || defined __sh__
16043 /* ok */
16044 #else
16045 # error "setjmp not known to work on this arch"
16046 #endif
16047
16048 int
16049 main ()
16050 {
16051
16052 ;
16053 return 0;
16054 }
16055 _ACEOF
16056 if ac_fn_c_try_cpp "$LINENO"; then :
16057 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16058
16059 fi
16060 rm -f conftest.err conftest.$ac_ext
16061 ;;
16062 esac
16063
16064
16065 if test x$GCC = xyes; then
16066 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16067
16068 else
16069 case $opsys in
16070 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
16071 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16072
16073 ;;
16074 esac
16075 fi
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16077 $as_echo_n "checking for _setjmp... " >&6; }
16078 if test "${emacs_cv_func__setjmp+set}" = set; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 #include <setjmp.h>
16084
16085 int
16086 main ()
16087 {
16088 jmp_buf j;
16089 if (! _setjmp (j))
16090 _longjmp (j, 1);
16091 ;
16092 return 0;
16093 }
16094 _ACEOF
16095 if ac_fn_c_try_link "$LINENO"; then :
16096 emacs_cv_func__setjmp=yes
16097 else
16098 emacs_cv_func__setjmp=no
16099 fi
16100 rm -f core conftest.err conftest.$ac_objext \
16101 conftest$ac_exeext conftest.$ac_ext
16102 fi
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16104 $as_echo "$emacs_cv_func__setjmp" >&6; }
16105 if test $emacs_cv_func__setjmp = yes; then
16106
16107 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16108
16109 else
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16111 $as_echo_n "checking for sigsetjmp... " >&6; }
16112 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16113 $as_echo_n "(cached) " >&6
16114 else
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h. */
16117 #include <setjmp.h>
16118
16119 int
16120 main ()
16121 {
16122 sigjmp_buf j;
16123 if (! sigsetjmp (j, 1))
16124 siglongjmp (j, 1);
16125 ;
16126 return 0;
16127 }
16128 _ACEOF
16129 if ac_fn_c_try_link "$LINENO"; then :
16130 emacs_cv_func_sigsetjmp=yes
16131 else
16132 emacs_cv_func_sigsetjmp=no
16133 fi
16134 rm -f core conftest.err conftest.$ac_objext \
16135 conftest$ac_exeext conftest.$ac_ext
16136 fi
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16138 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16139 if test $emacs_cv_func_sigsetjmp = yes; then
16140
16141 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16142
16143 fi
16144 fi
16145
16146 case $opsys in
16147 sol2* | unixware )
16148
16149 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16150
16151 ;;
16152 esac
16153
16154
16155 case $opsys in
16156 hpux* | sol2* )
16157
16158 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16159
16160 ;;
16161 esac
16162
16163
16164
16165
16166
16167
16168
16169
16170 case $opsys in
16171 aix4-2)
16172 $as_echo "#define USG /**/" >>confdefs.h
16173
16174 $as_echo "#define USG5 /**/" >>confdefs.h
16175
16176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h. */
16178
16179 #ifndef _AIX
16180 # error "_AIX not defined"
16181 #endif
16182
16183 int
16184 main ()
16185 {
16186
16187 ;
16188 return 0;
16189 }
16190 _ACEOF
16191 if ac_fn_c_try_cpp "$LINENO"; then :
16192
16193 else
16194
16195 $as_echo "#define _AIX /**/" >>confdefs.h
16196
16197 fi
16198 rm -f conftest.err conftest.$ac_ext
16199 ;;
16200
16201 cygwin)
16202
16203 $as_echo "#define CYGWIN 1" >>confdefs.h
16204
16205 ;;
16206
16207 darwin)
16208
16209 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16210
16211 ;;
16212
16213 gnu-linux | gnu-kfreebsd )
16214 $as_echo "#define USG /**/" >>confdefs.h
16215
16216
16217 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16218
16219 ;;
16220
16221 hpux*)
16222 $as_echo "#define USG /**/" >>confdefs.h
16223
16224 $as_echo "#define USG5 /**/" >>confdefs.h
16225
16226
16227 $as_echo "#define HPUX /**/" >>confdefs.h
16228
16229 ;;
16230
16231 irix6-5)
16232 $as_echo "#define USG /**/" >>confdefs.h
16233
16234 $as_echo "#define USG5 /**/" >>confdefs.h
16235
16236 $as_echo "#define USG5_4 /**/" >>confdefs.h
16237
16238
16239 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16240
16241 ;;
16242
16243 sol2*)
16244 $as_echo "#define USG /**/" >>confdefs.h
16245
16246 $as_echo "#define USG5 /**/" >>confdefs.h
16247
16248 $as_echo "#define USG5_4 /**/" >>confdefs.h
16249
16250
16251 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16252
16253 ;;
16254
16255 unixware)
16256 $as_echo "#define USG /**/" >>confdefs.h
16257
16258 $as_echo "#define USG5 /**/" >>confdefs.h
16259
16260 $as_echo "#define USG5_4 /**/" >>confdefs.h
16261
16262 ;;
16263 esac
16264
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16266 $as_echo_n "checking for usable FIONREAD... " >&6; }
16267 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
16269 else
16270 case $opsys in
16271 aix4-2)
16272 emacs_cv_usable_FIONREAD=no
16273 ;;
16274
16275 *)
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16278 #include <sys/types.h>
16279 #include <sys/ioctl.h>
16280 #ifdef USG5_4
16281 # include <sys/filio.h>
16282 #endif
16283
16284 int
16285 main ()
16286 {
16287 int foo = ioctl (0, FIONREAD, &foo);
16288 ;
16289 return 0;
16290 }
16291 _ACEOF
16292 if ac_fn_c_try_compile "$LINENO"; then :
16293 emacs_cv_usable_FIONREAD=yes
16294 else
16295 emacs_cv_usable_FIONREAD=no
16296 fi
16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298 ;;
16299 esac
16300 fi
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16302 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16303 if test $emacs_cv_usable_FIONREAD = yes; then
16304
16305 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16306
16307
16308 if test $emacs_broken_SIGIO = no; then
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16310 $as_echo_n "checking for usable SIGIO... " >&6; }
16311 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16312 $as_echo_n "(cached) " >&6
16313 else
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316 #include <fcntl.h>
16317 #include <signal.h>
16318
16319 int
16320 main ()
16321 {
16322 int foo = SIGIO | F_SETFL | FASYNC;
16323 ;
16324 return 0;
16325 }
16326 _ACEOF
16327 if ac_fn_c_try_compile "$LINENO"; then :
16328 emacs_cv_usable_SIGIO=yes
16329 else
16330 emacs_cv_usable_SIGIO=no
16331 fi
16332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333 fi
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16335 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16336 if test $emacs_cv_usable_SIGIO = yes; then
16337
16338 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16339
16340 fi
16341 fi
16342 fi
16343
16344
16345 case $opsys in
16346 cygwin)
16347
16348 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16349
16350 ;;
16351
16352 hpux11)
16353
16354 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16355
16356 ;;
16357
16358 irix6-5)
16359
16360 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16361
16362 ;;
16363
16364 sol2-10)
16365
16366 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16367
16368 ;;
16369 esac
16370
16371 # Set up the CFLAGS for real compilation, so we can substitute it.
16372 CFLAGS="$REAL_CFLAGS"
16373 CPPFLAGS="$REAL_CPPFLAGS"
16374
16375 ## Hack to detect a buggy GCC version.
16376 if test "x$GCC" = xyes \
16377 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16378 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16379 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16380 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16381 fi
16382
16383 version=$PACKAGE_VERSION
16384
16385 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
16386
16387 cat >>confdefs.h <<_ACEOF
16388 #define COPYRIGHT "$copyright"
16389 _ACEOF
16390
16391
16392
16393 ### Specify what sort of things we'll be editing into Makefile and config.h.
16394 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16395
16396
16397 ## Unused?
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16421 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16422 ## end of LIBX_BASE, but nothing ever set it.
16423
16424
16425
16426
16427 ## Used in lwlib/Makefile.in.
16428
16429
16430
16431
16432
16433
16434
16435
16436 if test -n "${term_header}"; then
16437
16438 cat >>confdefs.h <<_ACEOF
16439 #define TERM_HEADER "${term_header}"
16440 _ACEOF
16441
16442 fi
16443
16444
16445 cat >>confdefs.h <<_ACEOF
16446 #define EMACS_CONFIGURATION "${canonical}"
16447 _ACEOF
16448
16449 emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16450
16451 cat >>confdefs.h <<_ACEOF
16452 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16453 _ACEOF
16454
16455
16456
16457 XMENU_OBJ=
16458 XOBJ=
16459 FONT_OBJ=
16460 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16461
16462 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16463
16464 XMENU_OBJ=xmenu.o
16465 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16466 FONT_OBJ=xfont.o
16467 if test "$HAVE_XFT" = "yes"; then
16468 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16469 elif test "$HAVE_FREETYPE" = "yes"; then
16470 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16471 fi
16472
16473 fi
16474
16475
16476
16477
16478 WIDGET_OBJ=
16479 MOTIF_LIBW=
16480 if test "${USE_X_TOOLKIT}" != "none" ; then
16481 WIDGET_OBJ=widget.o
16482
16483 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16484
16485 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16486
16487 $as_echo "#define USE_LUCID 1" >>confdefs.h
16488
16489 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16490
16491 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16492
16493 MOTIF_LIBW=-lXm
16494 case "$opsys" in
16495 gnu-linux)
16496 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16497 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16498 ;;
16499
16500 unixware)
16501 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16502 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16503 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16504 ;;
16505
16506 aix4-2)
16507 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16508 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16509 ;;
16510 esac
16511 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16512 fi
16513 fi
16514
16515
16516 TOOLKIT_LIBW=
16517 case "$USE_X_TOOLKIT" in
16518 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16519 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16520 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16521 esac
16522
16523
16524 if test "$USE_X_TOOLKIT" = "none"; then
16525 LIBXT_OTHER="\$(LIBXSM)"
16526 OLDXMENU_TARGET="really-oldXMenu"
16527 else
16528 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16529 OLDXMENU_TARGET="really-lwlib"
16530 fi
16531
16532
16533 ## The X Menu stuff is present in the X10 distribution, but missing
16534 ## from X11. If we have X10, just use the installed library;
16535 ## otherwise, use our own copy.
16536 if test "${HAVE_X11}" = "yes" ; then
16537
16538 $as_echo "#define HAVE_X11 1" >>confdefs.h
16539
16540
16541 if test "$USE_X_TOOLKIT" = "none"; then
16542 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16543 else
16544 OLDXMENU="\${lwlibdir}/liblw.a"
16545 fi
16546 LIBXMENU="\$(OLDXMENU)"
16547 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16548 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16549 else
16550 ## For a syntactically valid Makefile; not actually used for anything.
16551 ## See comments in src/Makefile.in.
16552 OLDXMENU=nothing
16553 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16554 if test "${HAVE_X_WINDOWS}" = "yes"; then
16555 LIBXMENU="-lXMenu"
16556 else
16557 LIBXMENU=
16558 fi
16559 LIBX_OTHER=
16560 OLDXMENU_DEPS=
16561 fi
16562
16563 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16564 OLDXMENU_TARGET=
16565 OLDXMENU=nothing
16566 LIBXMENU=
16567 OLDXMENU_DEPS=
16568 fi
16569
16570
16571
16572
16573
16574
16575
16576 if test "${HAVE_MENUS}" = "yes" ; then
16577
16578 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16579
16580 fi
16581
16582 if test "${GNU_MALLOC}" = "yes" ; then
16583
16584 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16585
16586 fi
16587
16588 RALLOC_OBJ=
16589 if test "${REL_ALLOC}" = "yes" ; then
16590
16591 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16592
16593
16594 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16595 fi
16596
16597
16598 if test "$opsys" = "cygwin"; then
16599 CYGWIN_OBJ="sheap.o cygw32.o"
16600 ## Cygwin differs because of its unexec().
16601 PRE_ALLOC_OBJ=
16602 POST_ALLOC_OBJ=lastfile.o
16603 else
16604 CYGWIN_OBJ=
16605 PRE_ALLOC_OBJ=lastfile.o
16606 POST_ALLOC_OBJ=
16607 fi
16608
16609
16610
16611
16612 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16613 # it temporarily reverts them to their pre-pkg-config values,
16614 # because gnulib needs to work with both src (which uses the
16615 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16616 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16617 # and it therefore needs to run in an environment where LIBS does not
16618 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16619 # for some package unrelated to lib-src.
16620 SAVE_CFLAGS=$CFLAGS
16621 SAVE_LIBS=$LIBS
16622 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16623 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635 LIBC_FATAL_STDERR_=1
16636 export LIBC_FATAL_STDERR_
16637
16638 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16639 # for constant arguments. Useless!
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16641 $as_echo_n "checking for working alloca.h... " >&6; }
16642 if test "${ac_cv_working_alloca_h+set}" = set; then :
16643 $as_echo_n "(cached) " >&6
16644 else
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647 #include <alloca.h>
16648 int
16649 main ()
16650 {
16651 char *p = (char *) alloca (2 * sizeof (int));
16652 if (p) return 0;
16653 ;
16654 return 0;
16655 }
16656 _ACEOF
16657 if ac_fn_c_try_link "$LINENO"; then :
16658 ac_cv_working_alloca_h=yes
16659 else
16660 ac_cv_working_alloca_h=no
16661 fi
16662 rm -f core conftest.err conftest.$ac_objext \
16663 conftest$ac_exeext conftest.$ac_ext
16664 fi
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16666 $as_echo "$ac_cv_working_alloca_h" >&6; }
16667 if test $ac_cv_working_alloca_h = yes; then
16668
16669 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16670
16671 fi
16672
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16674 $as_echo_n "checking for alloca... " >&6; }
16675 if test "${ac_cv_func_alloca_works+set}" = set; then :
16676 $as_echo_n "(cached) " >&6
16677 else
16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16680 #ifdef __GNUC__
16681 # define alloca __builtin_alloca
16682 #else
16683 # ifdef _MSC_VER
16684 # include <malloc.h>
16685 # define alloca _alloca
16686 # else
16687 # ifdef HAVE_ALLOCA_H
16688 # include <alloca.h>
16689 # else
16690 # ifdef _AIX
16691 #pragma alloca
16692 # else
16693 # ifndef alloca /* predefined by HP cc +Olibcalls */
16694 char *alloca ();
16695 # endif
16696 # endif
16697 # endif
16698 # endif
16699 #endif
16700
16701 int
16702 main ()
16703 {
16704 char *p = (char *) alloca (1);
16705 if (p) return 0;
16706 ;
16707 return 0;
16708 }
16709 _ACEOF
16710 if ac_fn_c_try_link "$LINENO"; then :
16711 ac_cv_func_alloca_works=yes
16712 else
16713 ac_cv_func_alloca_works=no
16714 fi
16715 rm -f core conftest.err conftest.$ac_objext \
16716 conftest$ac_exeext conftest.$ac_ext
16717 fi
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16719 $as_echo "$ac_cv_func_alloca_works" >&6; }
16720
16721 if test $ac_cv_func_alloca_works = yes; then
16722
16723 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16724
16725 else
16726 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16727 # that cause trouble. Some versions do not even contain alloca or
16728 # contain a buggy version. If you still want to use their alloca,
16729 # use ar to extract alloca.o from them instead of compiling alloca.c.
16730
16731
16732
16733
16734
16735 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16736
16737 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16738
16739
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16741 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16742 if test "${ac_cv_os_cray+set}" = set; then :
16743 $as_echo_n "(cached) " >&6
16744 else
16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16747 #if defined CRAY && ! defined CRAY2
16748 webecray
16749 #else
16750 wenotbecray
16751 #endif
16752
16753 _ACEOF
16754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16755 $EGREP "webecray" >/dev/null 2>&1; then :
16756 ac_cv_os_cray=yes
16757 else
16758 ac_cv_os_cray=no
16759 fi
16760 rm -f conftest*
16761
16762 fi
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16764 $as_echo "$ac_cv_os_cray" >&6; }
16765 if test $ac_cv_os_cray = yes; then
16766 for ac_func in _getb67 GETB67 getb67; do
16767 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16769 eval as_val=\$$as_ac_var
16770 if test "x$as_val" = x""yes; then :
16771
16772 cat >>confdefs.h <<_ACEOF
16773 #define CRAY_STACKSEG_END $ac_func
16774 _ACEOF
16775
16776 break
16777 fi
16778
16779 done
16780 fi
16781
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16783 $as_echo_n "checking stack direction for C alloca... " >&6; }
16784 if test "${ac_cv_c_stack_direction+set}" = set; then :
16785 $as_echo_n "(cached) " >&6
16786 else
16787 if test "$cross_compiling" = yes; then :
16788 ac_cv_c_stack_direction=0
16789 else
16790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16791 /* end confdefs.h. */
16792 $ac_includes_default
16793 int
16794 find_stack_direction (int *addr, int depth)
16795 {
16796 int dir, dummy = 0;
16797 if (! addr)
16798 addr = &dummy;
16799 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16800 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16801 return dir + dummy;
16802 }
16803
16804 int
16805 main (int argc, char **argv)
16806 {
16807 return find_stack_direction (0, argc + !argv + 20) < 0;
16808 }
16809 _ACEOF
16810 if ac_fn_c_try_run "$LINENO"; then :
16811 ac_cv_c_stack_direction=1
16812 else
16813 ac_cv_c_stack_direction=-1
16814 fi
16815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16816 conftest.$ac_objext conftest.beam conftest.$ac_ext
16817 fi
16818
16819 fi
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16821 $as_echo "$ac_cv_c_stack_direction" >&6; }
16822 cat >>confdefs.h <<_ACEOF
16823 #define STACK_DIRECTION $ac_cv_c_stack_direction
16824 _ACEOF
16825
16826
16827 fi
16828
16829
16830
16831
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16833 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16834 if test "${ac_cv_c_bigendian+set}" = set; then :
16835 $as_echo_n "(cached) " >&6
16836 else
16837 ac_cv_c_bigendian=unknown
16838 # See if we're dealing with a universal compiler.
16839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840 /* end confdefs.h. */
16841 #ifndef __APPLE_CC__
16842 not a universal capable compiler
16843 #endif
16844 typedef int dummy;
16845
16846 _ACEOF
16847 if ac_fn_c_try_compile "$LINENO"; then :
16848
16849 # Check for potential -arch flags. It is not universal unless
16850 # there are at least two -arch flags with different values.
16851 ac_arch=
16852 ac_prev=
16853 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16854 if test -n "$ac_prev"; then
16855 case $ac_word in
16856 i?86 | x86_64 | ppc | ppc64)
16857 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16858 ac_arch=$ac_word
16859 else
16860 ac_cv_c_bigendian=universal
16861 break
16862 fi
16863 ;;
16864 esac
16865 ac_prev=
16866 elif test "x$ac_word" = "x-arch"; then
16867 ac_prev=arch
16868 fi
16869 done
16870 fi
16871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16872 if test $ac_cv_c_bigendian = unknown; then
16873 # See if sys/param.h defines the BYTE_ORDER macro.
16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16876 #include <sys/types.h>
16877 #include <sys/param.h>
16878
16879 int
16880 main ()
16881 {
16882 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16883 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16884 && LITTLE_ENDIAN)
16885 bogus endian macros
16886 #endif
16887
16888 ;
16889 return 0;
16890 }
16891 _ACEOF
16892 if ac_fn_c_try_compile "$LINENO"; then :
16893 # It does; now see whether it defined to BIG_ENDIAN or not.
16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16896 #include <sys/types.h>
16897 #include <sys/param.h>
16898
16899 int
16900 main ()
16901 {
16902 #if BYTE_ORDER != BIG_ENDIAN
16903 not big endian
16904 #endif
16905
16906 ;
16907 return 0;
16908 }
16909 _ACEOF
16910 if ac_fn_c_try_compile "$LINENO"; then :
16911 ac_cv_c_bigendian=yes
16912 else
16913 ac_cv_c_bigendian=no
16914 fi
16915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16916 fi
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 fi
16919 if test $ac_cv_c_bigendian = unknown; then
16920 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16922 /* end confdefs.h. */
16923 #include <limits.h>
16924
16925 int
16926 main ()
16927 {
16928 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16929 bogus endian macros
16930 #endif
16931
16932 ;
16933 return 0;
16934 }
16935 _ACEOF
16936 if ac_fn_c_try_compile "$LINENO"; then :
16937 # It does; now see whether it defined to _BIG_ENDIAN or not.
16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16940 #include <limits.h>
16941
16942 int
16943 main ()
16944 {
16945 #ifndef _BIG_ENDIAN
16946 not big endian
16947 #endif
16948
16949 ;
16950 return 0;
16951 }
16952 _ACEOF
16953 if ac_fn_c_try_compile "$LINENO"; then :
16954 ac_cv_c_bigendian=yes
16955 else
16956 ac_cv_c_bigendian=no
16957 fi
16958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16959 fi
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961 fi
16962 if test $ac_cv_c_bigendian = unknown; then
16963 # Compile a test program.
16964 if test "$cross_compiling" = yes; then :
16965 # Try to guess by grepping values from an object file.
16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16968 short int ascii_mm[] =
16969 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16970 short int ascii_ii[] =
16971 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16972 int use_ascii (int i) {
16973 return ascii_mm[i] + ascii_ii[i];
16974 }
16975 short int ebcdic_ii[] =
16976 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16977 short int ebcdic_mm[] =
16978 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16979 int use_ebcdic (int i) {
16980 return ebcdic_mm[i] + ebcdic_ii[i];
16981 }
16982 extern int foo;
16983
16984 int
16985 main ()
16986 {
16987 return use_ascii (foo) == use_ebcdic (foo);
16988 ;
16989 return 0;
16990 }
16991 _ACEOF
16992 if ac_fn_c_try_compile "$LINENO"; then :
16993 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16994 ac_cv_c_bigendian=yes
16995 fi
16996 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16997 if test "$ac_cv_c_bigendian" = unknown; then
16998 ac_cv_c_bigendian=no
16999 else
17000 # finding both strings is unlikely to happen, but who knows?
17001 ac_cv_c_bigendian=unknown
17002 fi
17003 fi
17004 fi
17005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006 else
17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h. */
17009 $ac_includes_default
17010 int
17011 main ()
17012 {
17013
17014 /* Are we little or big endian? From Harbison&Steele. */
17015 union
17016 {
17017 long int l;
17018 char c[sizeof (long int)];
17019 } u;
17020 u.l = 1;
17021 return u.c[sizeof (long int) - 1] == 1;
17022
17023 ;
17024 return 0;
17025 }
17026 _ACEOF
17027 if ac_fn_c_try_run "$LINENO"; then :
17028 ac_cv_c_bigendian=no
17029 else
17030 ac_cv_c_bigendian=yes
17031 fi
17032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17033 conftest.$ac_objext conftest.beam conftest.$ac_ext
17034 fi
17035
17036 fi
17037 fi
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17039 $as_echo "$ac_cv_c_bigendian" >&6; }
17040 case $ac_cv_c_bigendian in #(
17041 yes)
17042 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17043 ;; #(
17044 no)
17045 ;; #(
17046 universal)
17047
17048 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17049
17050 ;; #(
17051 *)
17052 as_fn_error "unknown endianness
17053 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17054 esac
17055
17056
17057
17058 GNULIB_CHDIR=0;
17059 GNULIB_CHOWN=0;
17060 GNULIB_CLOSE=0;
17061 GNULIB_DUP=0;
17062 GNULIB_DUP2=0;
17063 GNULIB_DUP3=0;
17064 GNULIB_ENVIRON=0;
17065 GNULIB_EUIDACCESS=0;
17066 GNULIB_FACCESSAT=0;
17067 GNULIB_FCHDIR=0;
17068 GNULIB_FCHOWNAT=0;
17069 GNULIB_FDATASYNC=0;
17070 GNULIB_FSYNC=0;
17071 GNULIB_FTRUNCATE=0;
17072 GNULIB_GETCWD=0;
17073 GNULIB_GETDOMAINNAME=0;
17074 GNULIB_GETDTABLESIZE=0;
17075 GNULIB_GETGROUPS=0;
17076 GNULIB_GETHOSTNAME=0;
17077 GNULIB_GETLOGIN=0;
17078 GNULIB_GETLOGIN_R=0;
17079 GNULIB_GETPAGESIZE=0;
17080 GNULIB_GETUSERSHELL=0;
17081 GNULIB_GROUP_MEMBER=0;
17082 GNULIB_ISATTY=0;
17083 GNULIB_LCHOWN=0;
17084 GNULIB_LINK=0;
17085 GNULIB_LINKAT=0;
17086 GNULIB_LSEEK=0;
17087 GNULIB_PIPE=0;
17088 GNULIB_PIPE2=0;
17089 GNULIB_PREAD=0;
17090 GNULIB_PWRITE=0;
17091 GNULIB_READ=0;
17092 GNULIB_READLINK=0;
17093 GNULIB_READLINKAT=0;
17094 GNULIB_RMDIR=0;
17095 GNULIB_SETHOSTNAME=0;
17096 GNULIB_SLEEP=0;
17097 GNULIB_SYMLINK=0;
17098 GNULIB_SYMLINKAT=0;
17099 GNULIB_TTYNAME_R=0;
17100 GNULIB_UNISTD_H_NONBLOCKING=0;
17101 GNULIB_UNISTD_H_SIGPIPE=0;
17102 GNULIB_UNLINK=0;
17103 GNULIB_UNLINKAT=0;
17104 GNULIB_USLEEP=0;
17105 GNULIB_WRITE=0;
17106 HAVE_CHOWN=1;
17107 HAVE_DUP2=1;
17108 HAVE_DUP3=1;
17109 HAVE_EUIDACCESS=1;
17110 HAVE_FACCESSAT=1;
17111 HAVE_FCHDIR=1;
17112 HAVE_FCHOWNAT=1;
17113 HAVE_FDATASYNC=1;
17114 HAVE_FSYNC=1;
17115 HAVE_FTRUNCATE=1;
17116 HAVE_GETDTABLESIZE=1;
17117 HAVE_GETGROUPS=1;
17118 HAVE_GETHOSTNAME=1;
17119 HAVE_GETLOGIN=1;
17120 HAVE_GETPAGESIZE=1;
17121 HAVE_GROUP_MEMBER=1;
17122 HAVE_LCHOWN=1;
17123 HAVE_LINK=1;
17124 HAVE_LINKAT=1;
17125 HAVE_PIPE=1;
17126 HAVE_PIPE2=1;
17127 HAVE_PREAD=1;
17128 HAVE_PWRITE=1;
17129 HAVE_READLINK=1;
17130 HAVE_READLINKAT=1;
17131 HAVE_SETHOSTNAME=1;
17132 HAVE_SLEEP=1;
17133 HAVE_SYMLINK=1;
17134 HAVE_SYMLINKAT=1;
17135 HAVE_UNLINKAT=1;
17136 HAVE_USLEEP=1;
17137 HAVE_DECL_ENVIRON=1;
17138 HAVE_DECL_FCHDIR=1;
17139 HAVE_DECL_FDATASYNC=1;
17140 HAVE_DECL_GETDOMAINNAME=1;
17141 HAVE_DECL_GETLOGIN_R=1;
17142 HAVE_DECL_GETPAGESIZE=1;
17143 HAVE_DECL_GETUSERSHELL=1;
17144 HAVE_DECL_SETHOSTNAME=1;
17145 HAVE_DECL_TTYNAME_R=1;
17146 HAVE_OS_H=0;
17147 HAVE_SYS_PARAM_H=0;
17148 REPLACE_CHOWN=0;
17149 REPLACE_CLOSE=0;
17150 REPLACE_DUP=0;
17151 REPLACE_DUP2=0;
17152 REPLACE_FCHOWNAT=0;
17153 REPLACE_FTRUNCATE=0;
17154 REPLACE_GETCWD=0;
17155 REPLACE_GETDOMAINNAME=0;
17156 REPLACE_GETLOGIN_R=0;
17157 REPLACE_GETGROUPS=0;
17158 REPLACE_GETPAGESIZE=0;
17159 REPLACE_ISATTY=0;
17160 REPLACE_LCHOWN=0;
17161 REPLACE_LINK=0;
17162 REPLACE_LINKAT=0;
17163 REPLACE_LSEEK=0;
17164 REPLACE_PREAD=0;
17165 REPLACE_PWRITE=0;
17166 REPLACE_READ=0;
17167 REPLACE_READLINK=0;
17168 REPLACE_RMDIR=0;
17169 REPLACE_SLEEP=0;
17170 REPLACE_SYMLINK=0;
17171 REPLACE_TTYNAME_R=0;
17172 REPLACE_UNLINK=0;
17173 REPLACE_UNLINKAT=0;
17174 REPLACE_USLEEP=0;
17175 REPLACE_WRITE=0;
17176 UNISTD_H_HAVE_WINSOCK2_H=0;
17177 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17178
17179
17180
17181 GNULIB_OPENDIR=0;
17182 GNULIB_READDIR=0;
17183 GNULIB_REWINDDIR=0;
17184 GNULIB_CLOSEDIR=0;
17185 GNULIB_DIRFD=0;
17186 GNULIB_FDOPENDIR=0;
17187 GNULIB_SCANDIR=0;
17188 GNULIB_ALPHASORT=0;
17189 HAVE_OPENDIR=1;
17190 HAVE_READDIR=1;
17191 HAVE_REWINDDIR=1;
17192 HAVE_CLOSEDIR=1;
17193 HAVE_DECL_DIRFD=1;
17194 HAVE_DECL_FDOPENDIR=1;
17195 HAVE_FDOPENDIR=1;
17196 HAVE_SCANDIR=1;
17197 HAVE_ALPHASORT=1;
17198 REPLACE_OPENDIR=0;
17199 REPLACE_CLOSEDIR=0;
17200 REPLACE_DIRFD=0;
17201 REPLACE_FDOPENDIR=0;
17202
17203
17204
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17206 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17207 if test "${gl_cv_have_include_next+set}" = set; then :
17208 $as_echo_n "(cached) " >&6
17209 else
17210 rm -rf conftestd1a conftestd1b conftestd2
17211 mkdir conftestd1a conftestd1b conftestd2
17212 cat <<EOF > conftestd1a/conftest.h
17213 #define DEFINED_IN_CONFTESTD1
17214 #include_next <conftest.h>
17215 #ifdef DEFINED_IN_CONFTESTD2
17216 int foo;
17217 #else
17218 #error "include_next doesn't work"
17219 #endif
17220 EOF
17221 cat <<EOF > conftestd1b/conftest.h
17222 #define DEFINED_IN_CONFTESTD1
17223 #include <stdio.h>
17224 #include_next <conftest.h>
17225 #ifdef DEFINED_IN_CONFTESTD2
17226 int foo;
17227 #else
17228 #error "include_next doesn't work"
17229 #endif
17230 EOF
17231 cat <<EOF > conftestd2/conftest.h
17232 #ifndef DEFINED_IN_CONFTESTD1
17233 #error "include_next test doesn't work"
17234 #endif
17235 #define DEFINED_IN_CONFTESTD2
17236 EOF
17237 gl_save_CPPFLAGS="$CPPFLAGS"
17238 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17240 /* end confdefs.h. */
17241 #include <conftest.h>
17242 _ACEOF
17243 if ac_fn_c_try_compile "$LINENO"; then :
17244 gl_cv_have_include_next=yes
17245 else
17246 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h. */
17249 #include <conftest.h>
17250 _ACEOF
17251 if ac_fn_c_try_compile "$LINENO"; then :
17252 gl_cv_have_include_next=buggy
17253 else
17254 gl_cv_have_include_next=no
17255 fi
17256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17257
17258 fi
17259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260 CPPFLAGS="$gl_save_CPPFLAGS"
17261 rm -rf conftestd1a conftestd1b conftestd2
17262
17263 fi
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17265 $as_echo "$gl_cv_have_include_next" >&6; }
17266 PRAGMA_SYSTEM_HEADER=
17267 if test $gl_cv_have_include_next = yes; then
17268 INCLUDE_NEXT=include_next
17269 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17270 if test -n "$GCC"; then
17271 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17272 fi
17273 else
17274 if test $gl_cv_have_include_next = buggy; then
17275 INCLUDE_NEXT=include
17276 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17277 else
17278 INCLUDE_NEXT=include
17279 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17280 fi
17281 fi
17282
17283
17284
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17286 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17287 if test "${gl_cv_pragma_columns+set}" = set; then :
17288 $as_echo_n "(cached) " >&6
17289 else
17290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291 /* end confdefs.h. */
17292
17293 #ifdef __TANDEM
17294 choke me
17295 #endif
17296
17297 _ACEOF
17298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17299 $EGREP "choke me" >/dev/null 2>&1; then :
17300 gl_cv_pragma_columns=yes
17301 else
17302 gl_cv_pragma_columns=no
17303 fi
17304 rm -f conftest*
17305
17306
17307 fi
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17309 $as_echo "$gl_cv_pragma_columns" >&6; }
17310 if test $gl_cv_pragma_columns = yes; then
17311 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17312 else
17313 PRAGMA_COLUMNS=
17314 fi
17315
17316
17317
17318
17319
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17321 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17322 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17323 $as_echo_n "(cached) " >&6
17324 else
17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326 /* end confdefs.h. */
17327 /* On HP-UX before 11.23, strtold returns a struct instead of
17328 long double. Reject implementations like that, by requiring
17329 compatibility with the C99 prototype. */
17330 #include <stdlib.h>
17331 static long double (*p) (char const *, char **) = strtold;
17332 static long double
17333 test (char const *nptr, char **endptr)
17334 {
17335 long double r;
17336 r = strtold (nptr, endptr);
17337 return r;
17338 }
17339 int
17340 main ()
17341 {
17342 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17343 ;
17344 return 0;
17345 }
17346 _ACEOF
17347 if ac_fn_c_try_link "$LINENO"; then :
17348 gl_cv_func_c99_strtold=yes
17349 else
17350 gl_cv_func_c99_strtold=no
17351 fi
17352 rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17354 fi
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17356 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17357 if test $gl_cv_func_c99_strtold = yes; then
17358
17359 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17360
17361 fi
17362
17363
17364
17365
17366
17367
17368
17369
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17371 $as_echo_n "checking if environ is properly declared... " >&6; }
17372 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17373 $as_echo_n "(cached) " >&6
17374 else
17375
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17378 #if HAVE_UNISTD_H
17379 #include <unistd.h>
17380 #endif
17381 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17382 #include <stdlib.h>
17383
17384 extern struct { int foo; } environ;
17385 int
17386 main ()
17387 {
17388 environ.foo = 1;
17389 ;
17390 return 0;
17391 }
17392 _ACEOF
17393 if ac_fn_c_try_compile "$LINENO"; then :
17394 gt_cv_var_environ_declaration=no
17395 else
17396 gt_cv_var_environ_declaration=yes
17397 fi
17398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17399 fi
17400
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17402 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17403 if test $gt_cv_var_environ_declaration = yes; then
17404
17405 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17406
17407 fi
17408
17409
17410 if test $gt_cv_var_environ_declaration != yes; then
17411 HAVE_DECL_ENVIRON=0
17412 fi
17413
17414
17415
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
17417 $as_echo_n "checking for complete errno.h... " >&6; }
17418 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
17419 $as_echo_n "(cached) " >&6
17420 else
17421
17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h. */
17424
17425 #include <errno.h>
17426 #if !defined ETXTBSY
17427 booboo
17428 #endif
17429 #if !defined ENOMSG
17430 booboo
17431 #endif
17432 #if !defined EIDRM
17433 booboo
17434 #endif
17435 #if !defined ENOLINK
17436 booboo
17437 #endif
17438 #if !defined EPROTO
17439 booboo
17440 #endif
17441 #if !defined EMULTIHOP
17442 booboo
17443 #endif
17444 #if !defined EBADMSG
17445 booboo
17446 #endif
17447 #if !defined EOVERFLOW
17448 booboo
17449 #endif
17450 #if !defined ENOTSUP
17451 booboo
17452 #endif
17453 #if !defined ENETRESET
17454 booboo
17455 #endif
17456 #if !defined ECONNABORTED
17457 booboo
17458 #endif
17459 #if !defined ESTALE
17460 booboo
17461 #endif
17462 #if !defined EDQUOT
17463 booboo
17464 #endif
17465 #if !defined ECANCELED
17466 booboo
17467 #endif
17468 #if !defined EOWNERDEAD
17469 booboo
17470 #endif
17471 #if !defined ENOTRECOVERABLE
17472 booboo
17473 #endif
17474 #if !defined EILSEQ
17475 booboo
17476 #endif
17477
17478 _ACEOF
17479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17480 $EGREP "booboo" >/dev/null 2>&1; then :
17481 gl_cv_header_errno_h_complete=no
17482 else
17483 gl_cv_header_errno_h_complete=yes
17484 fi
17485 rm -f conftest*
17486
17487
17488 fi
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
17490 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
17491 if test $gl_cv_header_errno_h_complete = yes; then
17492 ERRNO_H=''
17493 else
17494
17495
17496
17497
17498
17499
17500
17501
17502 if test $gl_cv_have_include_next = yes; then
17503 gl_cv_next_errno_h='<'errno.h'>'
17504 else
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
17506 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
17507 if test "${gl_cv_next_errno_h+set}" = set; then :
17508 $as_echo_n "(cached) " >&6
17509 else
17510
17511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17512 /* end confdefs.h. */
17513 #include <errno.h>
17514
17515 _ACEOF
17516 case "$host_os" in
17517 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17518 *) gl_absname_cpp="$ac_cpp" ;;
17519 esac
17520
17521 case "$host_os" in
17522 mingw*)
17523 gl_dirsep_regex='[/\\]'
17524 ;;
17525 *)
17526 gl_dirsep_regex='\/'
17527 ;;
17528 esac
17529 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17530
17531 gl_header_literal_regex=`echo 'errno.h' \
17532 | sed -e "$gl_make_literal_regex_sed"`
17533 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17534 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17535 s|^/[^/]|//&|
17536 p
17537 q
17538 }'
17539 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17540 sed -n "$gl_absolute_header_sed"`'"'
17541
17542
17543 fi
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
17545 $as_echo "$gl_cv_next_errno_h" >&6; }
17546 fi
17547 NEXT_ERRNO_H=$gl_cv_next_errno_h
17548
17549 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17550 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17551 gl_next_as_first_directive='<'errno.h'>'
17552 else
17553 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17554 gl_next_as_first_directive=$gl_cv_next_errno_h
17555 fi
17556 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
17557
17558
17559
17560
17561 ERRNO_H='errno.h'
17562 fi
17563
17564 if test -n "$ERRNO_H"; then
17565 GL_GENERATE_ERRNO_H_TRUE=
17566 GL_GENERATE_ERRNO_H_FALSE='#'
17567 else
17568 GL_GENERATE_ERRNO_H_TRUE='#'
17569 GL_GENERATE_ERRNO_H_FALSE=
17570 fi
17571
17572
17573 if test -n "$ERRNO_H"; then
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
17575 $as_echo_n "checking for EMULTIHOP value... " >&6; }
17576 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
17577 $as_echo_n "(cached) " >&6
17578 else
17579
17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17582
17583 #include <errno.h>
17584 #ifdef EMULTIHOP
17585 yes
17586 #endif
17587
17588 _ACEOF
17589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17590 $EGREP "yes" >/dev/null 2>&1; then :
17591 gl_cv_header_errno_h_EMULTIHOP=yes
17592 else
17593 gl_cv_header_errno_h_EMULTIHOP=no
17594 fi
17595 rm -f conftest*
17596
17597 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17600
17601 #define _XOPEN_SOURCE_EXTENDED 1
17602 #include <errno.h>
17603 #ifdef EMULTIHOP
17604 yes
17605 #endif
17606
17607 _ACEOF
17608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17609 $EGREP "yes" >/dev/null 2>&1; then :
17610 gl_cv_header_errno_h_EMULTIHOP=hidden
17611 fi
17612 rm -f conftest*
17613
17614 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
17615 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
17616 #define _XOPEN_SOURCE_EXTENDED 1
17617 #include <errno.h>
17618 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17619 #include <stdio.h>
17620 #include <stdlib.h>
17621 "; then :
17622
17623 fi
17624
17625 fi
17626 fi
17627
17628 fi
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
17630 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
17631 case $gl_cv_header_errno_h_EMULTIHOP in
17632 yes | no)
17633 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
17634 ;;
17635 *)
17636 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
17637 ;;
17638 esac
17639
17640
17641 fi
17642
17643
17644 if test -n "$ERRNO_H"; then
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
17646 $as_echo_n "checking for ENOLINK value... " >&6; }
17647 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
17648 $as_echo_n "(cached) " >&6
17649 else
17650
17651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17653
17654 #include <errno.h>
17655 #ifdef ENOLINK
17656 yes
17657 #endif
17658
17659 _ACEOF
17660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17661 $EGREP "yes" >/dev/null 2>&1; then :
17662 gl_cv_header_errno_h_ENOLINK=yes
17663 else
17664 gl_cv_header_errno_h_ENOLINK=no
17665 fi
17666 rm -f conftest*
17667
17668 if test $gl_cv_header_errno_h_ENOLINK = no; then
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17671
17672 #define _XOPEN_SOURCE_EXTENDED 1
17673 #include <errno.h>
17674 #ifdef ENOLINK
17675 yes
17676 #endif
17677
17678 _ACEOF
17679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17680 $EGREP "yes" >/dev/null 2>&1; then :
17681 gl_cv_header_errno_h_ENOLINK=hidden
17682 fi
17683 rm -f conftest*
17684
17685 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
17686 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
17687 #define _XOPEN_SOURCE_EXTENDED 1
17688 #include <errno.h>
17689 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17690 #include <stdio.h>
17691 #include <stdlib.h>
17692 "; then :
17693
17694 fi
17695
17696 fi
17697 fi
17698
17699 fi
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
17701 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
17702 case $gl_cv_header_errno_h_ENOLINK in
17703 yes | no)
17704 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
17705 ;;
17706 *)
17707 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
17708 ;;
17709 esac
17710
17711
17712 fi
17713
17714
17715 if test -n "$ERRNO_H"; then
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
17717 $as_echo_n "checking for EOVERFLOW value... " >&6; }
17718 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
17719 $as_echo_n "(cached) " >&6
17720 else
17721
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17724
17725 #include <errno.h>
17726 #ifdef EOVERFLOW
17727 yes
17728 #endif
17729
17730 _ACEOF
17731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17732 $EGREP "yes" >/dev/null 2>&1; then :
17733 gl_cv_header_errno_h_EOVERFLOW=yes
17734 else
17735 gl_cv_header_errno_h_EOVERFLOW=no
17736 fi
17737 rm -f conftest*
17738
17739 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h. */
17742
17743 #define _XOPEN_SOURCE_EXTENDED 1
17744 #include <errno.h>
17745 #ifdef EOVERFLOW
17746 yes
17747 #endif
17748
17749 _ACEOF
17750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17751 $EGREP "yes" >/dev/null 2>&1; then :
17752 gl_cv_header_errno_h_EOVERFLOW=hidden
17753 fi
17754 rm -f conftest*
17755
17756 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
17757 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
17758 #define _XOPEN_SOURCE_EXTENDED 1
17759 #include <errno.h>
17760 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17761 #include <stdio.h>
17762 #include <stdlib.h>
17763 "; then :
17764
17765 fi
17766
17767 fi
17768 fi
17769
17770 fi
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
17772 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
17773 case $gl_cv_header_errno_h_EOVERFLOW in
17774 yes | no)
17775 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
17776 ;;
17777 *)
17778 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
17779 ;;
17780 esac
17781
17782
17783 fi
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794 GNULIB_FCNTL=0;
17795 GNULIB_NONBLOCKING=0;
17796 GNULIB_OPEN=0;
17797 GNULIB_OPENAT=0;
17798 HAVE_FCNTL=1;
17799 HAVE_OPENAT=1;
17800 REPLACE_FCNTL=0;
17801 REPLACE_OPEN=0;
17802 REPLACE_OPENAT=0;
17803
17804
17805 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17806 if test "x$ac_cv_type_mode_t" = x""yes; then :
17807
17808 else
17809
17810 cat >>confdefs.h <<_ACEOF
17811 #define mode_t int
17812 _ACEOF
17813
17814 fi
17815
17816 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
17817 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
17818 ac_have_decl=1
17819 else
17820 ac_have_decl=0
17821 fi
17822
17823 cat >>confdefs.h <<_ACEOF
17824 #define HAVE_DECL_FDATASYNC $ac_have_decl
17825 _ACEOF
17826
17827
17828
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17830 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17831 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17832 $as_echo_n "(cached) " >&6
17833 else
17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17836
17837 #include <sys/types.h>
17838 #include <sys/stat.h>
17839 int
17840 main ()
17841 {
17842 struct stat s; s.st_dm_mode;
17843 ;
17844 return 0;
17845 }
17846 _ACEOF
17847 if ac_fn_c_try_compile "$LINENO"; then :
17848 ac_cv_struct_st_dm_mode=yes
17849 else
17850 ac_cv_struct_st_dm_mode=no
17851 fi
17852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853 fi
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17855 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17856
17857 if test $ac_cv_struct_st_dm_mode = yes; then
17858
17859 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17860
17861 fi
17862
17863
17864 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17865 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17866 ac_have_decl=1
17867 else
17868 ac_have_decl=0
17869 fi
17870
17871 cat >>confdefs.h <<_ACEOF
17872 #define HAVE_DECL_STRMODE $ac_have_decl
17873 _ACEOF
17874
17875
17876
17877
17878
17879
17880 GNULIB_FCHMODAT=0;
17881 GNULIB_FSTAT=0;
17882 GNULIB_FSTATAT=0;
17883 GNULIB_FUTIMENS=0;
17884 GNULIB_LCHMOD=0;
17885 GNULIB_LSTAT=0;
17886 GNULIB_MKDIRAT=0;
17887 GNULIB_MKFIFO=0;
17888 GNULIB_MKFIFOAT=0;
17889 GNULIB_MKNOD=0;
17890 GNULIB_MKNODAT=0;
17891 GNULIB_STAT=0;
17892 GNULIB_UTIMENSAT=0;
17893 HAVE_FCHMODAT=1;
17894 HAVE_FSTATAT=1;
17895 HAVE_FUTIMENS=1;
17896 HAVE_LCHMOD=1;
17897 HAVE_LSTAT=1;
17898 HAVE_MKDIRAT=1;
17899 HAVE_MKFIFO=1;
17900 HAVE_MKFIFOAT=1;
17901 HAVE_MKNOD=1;
17902 HAVE_MKNODAT=1;
17903 HAVE_UTIMENSAT=1;
17904 REPLACE_FSTAT=0;
17905 REPLACE_FSTATAT=0;
17906 REPLACE_FUTIMENS=0;
17907 REPLACE_LSTAT=0;
17908 REPLACE_MKDIR=0;
17909 REPLACE_MKFIFO=0;
17910 REPLACE_MKNOD=0;
17911 REPLACE_STAT=0;
17912 REPLACE_UTIMENSAT=0;
17913
17914
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17916 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17917 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17918 $as_echo_n "(cached) " >&6
17919 else
17920 rm -f conftest.sym conftest.file
17921 echo >conftest.file
17922 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17923 if test "$cross_compiling" = yes; then :
17924 case "$host_os" in
17925 # Guess yes on glibc systems.
17926 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17927 # If we don't know, assume the worst.
17928 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17929 esac
17930
17931 else
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934 $ac_includes_default
17935 int
17936 main ()
17937 {
17938 struct stat sbuf;
17939 /* Linux will dereference the symlink and fail, as required by
17940 POSIX. That is better in the sense that it means we will not
17941 have to compile and use the lstat wrapper. */
17942 return lstat ("conftest.sym/", &sbuf) == 0;
17943
17944 ;
17945 return 0;
17946 }
17947 _ACEOF
17948 if ac_fn_c_try_run "$LINENO"; then :
17949 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17950 else
17951 gl_cv_func_lstat_dereferences_slashed_symlink=no
17952 fi
17953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17954 conftest.$ac_objext conftest.beam conftest.$ac_ext
17955 fi
17956
17957 else
17958 # If the 'ln -s' command failed, then we probably don't even
17959 # have an lstat function.
17960 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17961 fi
17962 rm -f conftest.sym conftest.file
17963
17964 fi
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17966 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17967 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17968 *yes)
17969
17970 cat >>confdefs.h <<_ACEOF
17971 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17972 _ACEOF
17973
17974 ;;
17975 esac
17976
17977
17978
17979
17980
17981
17982 GNULIB__EXIT=0;
17983 GNULIB_ATOLL=0;
17984 GNULIB_CALLOC_POSIX=0;
17985 GNULIB_CANONICALIZE_FILE_NAME=0;
17986 GNULIB_GETLOADAVG=0;
17987 GNULIB_GETSUBOPT=0;
17988 GNULIB_GRANTPT=0;
17989 GNULIB_MALLOC_POSIX=0;
17990 GNULIB_MBTOWC=0;
17991 GNULIB_MKDTEMP=0;
17992 GNULIB_MKOSTEMP=0;
17993 GNULIB_MKOSTEMPS=0;
17994 GNULIB_MKSTEMP=0;
17995 GNULIB_MKSTEMPS=0;
17996 GNULIB_POSIX_OPENPT=0;
17997 GNULIB_PTSNAME=0;
17998 GNULIB_PTSNAME_R=0;
17999 GNULIB_PUTENV=0;
18000 GNULIB_RANDOM=0;
18001 GNULIB_RANDOM_R=0;
18002 GNULIB_REALLOC_POSIX=0;
18003 GNULIB_REALPATH=0;
18004 GNULIB_RPMATCH=0;
18005 GNULIB_SECURE_GETENV=0;
18006 GNULIB_SETENV=0;
18007 GNULIB_STRTOD=0;
18008 GNULIB_STRTOLL=0;
18009 GNULIB_STRTOULL=0;
18010 GNULIB_SYSTEM_POSIX=0;
18011 GNULIB_UNLOCKPT=0;
18012 GNULIB_UNSETENV=0;
18013 GNULIB_WCTOMB=0;
18014 HAVE__EXIT=1;
18015 HAVE_ATOLL=1;
18016 HAVE_CANONICALIZE_FILE_NAME=1;
18017 HAVE_DECL_GETLOADAVG=1;
18018 HAVE_GETSUBOPT=1;
18019 HAVE_GRANTPT=1;
18020 HAVE_MKDTEMP=1;
18021 HAVE_MKOSTEMP=1;
18022 HAVE_MKOSTEMPS=1;
18023 HAVE_MKSTEMP=1;
18024 HAVE_MKSTEMPS=1;
18025 HAVE_POSIX_OPENPT=1;
18026 HAVE_PTSNAME=1;
18027 HAVE_PTSNAME_R=1;
18028 HAVE_RANDOM=1;
18029 HAVE_RANDOM_H=1;
18030 HAVE_RANDOM_R=1;
18031 HAVE_REALPATH=1;
18032 HAVE_RPMATCH=1;
18033 HAVE_SECURE_GETENV=1;
18034 HAVE_SETENV=1;
18035 HAVE_DECL_SETENV=1;
18036 HAVE_STRTOD=1;
18037 HAVE_STRTOLL=1;
18038 HAVE_STRTOULL=1;
18039 HAVE_STRUCT_RANDOM_DATA=1;
18040 HAVE_SYS_LOADAVG_H=0;
18041 HAVE_UNLOCKPT=1;
18042 HAVE_DECL_UNSETENV=1;
18043 REPLACE_CALLOC=0;
18044 REPLACE_CANONICALIZE_FILE_NAME=0;
18045 REPLACE_MALLOC=0;
18046 REPLACE_MBTOWC=0;
18047 REPLACE_MKSTEMP=0;
18048 REPLACE_PTSNAME=0;
18049 REPLACE_PTSNAME_R=0;
18050 REPLACE_PUTENV=0;
18051 REPLACE_RANDOM_R=0;
18052 REPLACE_REALLOC=0;
18053 REPLACE_REALPATH=0;
18054 REPLACE_SETENV=0;
18055 REPLACE_STRTOD=0;
18056 REPLACE_UNSETENV=0;
18057 REPLACE_WCTOMB=0;
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074 if test $gl_cv_have_include_next = yes; then
18075 gl_cv_next_getopt_h='<'getopt.h'>'
18076 else
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18078 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18079 if test "${gl_cv_next_getopt_h+set}" = set; then :
18080 $as_echo_n "(cached) " >&6
18081 else
18082
18083 if test $ac_cv_header_getopt_h = yes; then
18084
18085
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18088 #include <getopt.h>
18089
18090 _ACEOF
18091 case "$host_os" in
18092 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18093 *) gl_absname_cpp="$ac_cpp" ;;
18094 esac
18095
18096 case "$host_os" in
18097 mingw*)
18098 gl_dirsep_regex='[/\\]'
18099 ;;
18100 *)
18101 gl_dirsep_regex='\/'
18102 ;;
18103 esac
18104 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18105
18106 gl_header_literal_regex=`echo 'getopt.h' \
18107 | sed -e "$gl_make_literal_regex_sed"`
18108 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18109 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18110 s|^/[^/]|//&|
18111 p
18112 q
18113 }'
18114 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18115 sed -n "$gl_absolute_header_sed"`'"'
18116 else
18117 gl_cv_next_getopt_h='<'getopt.h'>'
18118 fi
18119
18120
18121 fi
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18123 $as_echo "$gl_cv_next_getopt_h" >&6; }
18124 fi
18125 NEXT_GETOPT_H=$gl_cv_next_getopt_h
18126
18127 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18128 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18129 gl_next_as_first_directive='<'getopt.h'>'
18130 else
18131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18132 gl_next_as_first_directive=$gl_cv_next_getopt_h
18133 fi
18134 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
18135
18136
18137
18138
18139 if test $ac_cv_header_getopt_h = yes; then
18140 HAVE_GETOPT_H=1
18141 else
18142 HAVE_GETOPT_H=0
18143 fi
18144
18145
18146 gl_replace_getopt=
18147
18148 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18149 for ac_header in getopt.h
18150 do :
18151 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18152 if test "x$ac_cv_header_getopt_h" = x""yes; then :
18153 cat >>confdefs.h <<_ACEOF
18154 #define HAVE_GETOPT_H 1
18155 _ACEOF
18156
18157 else
18158 gl_replace_getopt=yes
18159 fi
18160
18161 done
18162
18163 fi
18164
18165 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18166 for ac_func in getopt_long_only
18167 do :
18168 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18169 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
18170 cat >>confdefs.h <<_ACEOF
18171 #define HAVE_GETOPT_LONG_ONLY 1
18172 _ACEOF
18173
18174 else
18175 gl_replace_getopt=yes
18176 fi
18177 done
18178
18179 fi
18180
18181 if test -z "$gl_replace_getopt"; then
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18183 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18184 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18185 $as_echo_n "(cached) " >&6
18186 else
18187
18188 if test $cross_compiling = no; then
18189 if test "$cross_compiling" = yes; then :
18190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18192 as_fn_error "cannot run test program while cross compiling
18193 See \`config.log' for more details." "$LINENO" 5; }
18194 else
18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h. */
18197
18198 #include <unistd.h>
18199 #include <stdlib.h>
18200 #include <string.h>
18201
18202 int
18203 main ()
18204 {
18205 static char program[] = "program";
18206 static char a[] = "-a";
18207 static char foo[] = "foo";
18208 static char bar[] = "bar";
18209 char *argv[] = { program, a, foo, bar, NULL };
18210 int c;
18211
18212 c = getopt (4, argv, "ab");
18213 if (!(c == 'a'))
18214 return 1;
18215 c = getopt (4, argv, "ab");
18216 if (!(c == -1))
18217 return 2;
18218 if (!(optind == 2))
18219 return 3;
18220 return 0;
18221 }
18222
18223 _ACEOF
18224 if ac_fn_c_try_run "$LINENO"; then :
18225 gl_cv_func_getopt_posix=maybe
18226 else
18227 gl_cv_func_getopt_posix=no
18228 fi
18229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18230 conftest.$ac_objext conftest.beam conftest.$ac_ext
18231 fi
18232
18233 if test $gl_cv_func_getopt_posix = maybe; then
18234 if test "$cross_compiling" = yes; then :
18235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18237 as_fn_error "cannot run test program while cross compiling
18238 See \`config.log' for more details." "$LINENO" 5; }
18239 else
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18242
18243 #include <unistd.h>
18244 #include <stdlib.h>
18245 #include <string.h>
18246
18247 int
18248 main ()
18249 {
18250 static char program[] = "program";
18251 static char donald[] = "donald";
18252 static char p[] = "-p";
18253 static char billy[] = "billy";
18254 static char duck[] = "duck";
18255 static char a[] = "-a";
18256 static char bar[] = "bar";
18257 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
18258 int c;
18259
18260 c = getopt (7, argv, "+abp:q:");
18261 if (!(c == -1))
18262 return 4;
18263 if (!(strcmp (argv[0], "program") == 0))
18264 return 5;
18265 if (!(strcmp (argv[1], "donald") == 0))
18266 return 6;
18267 if (!(strcmp (argv[2], "-p") == 0))
18268 return 7;
18269 if (!(strcmp (argv[3], "billy") == 0))
18270 return 8;
18271 if (!(strcmp (argv[4], "duck") == 0))
18272 return 9;
18273 if (!(strcmp (argv[5], "-a") == 0))
18274 return 10;
18275 if (!(strcmp (argv[6], "bar") == 0))
18276 return 11;
18277 if (!(optind == 1))
18278 return 12;
18279 return 0;
18280 }
18281
18282 _ACEOF
18283 if ac_fn_c_try_run "$LINENO"; then :
18284 gl_cv_func_getopt_posix=maybe
18285 else
18286 gl_cv_func_getopt_posix=no
18287 fi
18288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18289 conftest.$ac_objext conftest.beam conftest.$ac_ext
18290 fi
18291
18292 fi
18293 if test $gl_cv_func_getopt_posix = maybe; then
18294 if test "$cross_compiling" = yes; then :
18295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18297 as_fn_error "cannot run test program while cross compiling
18298 See \`config.log' for more details." "$LINENO" 5; }
18299 else
18300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h. */
18302
18303 #include <unistd.h>
18304 #include <stdlib.h>
18305 #include <string.h>
18306
18307 int
18308 main ()
18309 {
18310 static char program[] = "program";
18311 static char ab[] = "-ab";
18312 char *argv[3] = { program, ab, NULL };
18313 if (getopt (2, argv, "ab:") != 'a')
18314 return 13;
18315 if (getopt (2, argv, "ab:") != '?')
18316 return 14;
18317 if (optopt != 'b')
18318 return 15;
18319 if (optind != 2)
18320 return 16;
18321 return 0;
18322 }
18323
18324 _ACEOF
18325 if ac_fn_c_try_run "$LINENO"; then :
18326 gl_cv_func_getopt_posix=yes
18327 else
18328 gl_cv_func_getopt_posix=no
18329 fi
18330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18331 conftest.$ac_objext conftest.beam conftest.$ac_ext
18332 fi
18333
18334 fi
18335 else
18336 case "$host_os" in
18337 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
18338 *) gl_cv_func_getopt_posix="guessing yes";;
18339 esac
18340 fi
18341
18342 fi
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
18344 $as_echo "$gl_cv_func_getopt_posix" >&6; }
18345 case "$gl_cv_func_getopt_posix" in
18346 *no) gl_replace_getopt=yes ;;
18347 esac
18348 fi
18349
18350 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
18352 $as_echo_n "checking for working GNU getopt function... " >&6; }
18353 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
18354 $as_echo_n "(cached) " >&6
18355 else
18356 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
18357 # optstring is necessary for programs like m4 that have POSIX-mandated
18358 # semantics for supporting options interspersed with files.
18359 # Also, since getopt_long is a GNU extension, we require optind=0.
18360 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
18361 # so take care to revert to the correct (non-)export state.
18362 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
18363 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
18364 xx) gl_had_POSIXLY_CORRECT=exported ;;
18365 x) gl_had_POSIXLY_CORRECT=yes ;;
18366 *) gl_had_POSIXLY_CORRECT= ;;
18367 esac
18368 POSIXLY_CORRECT=1
18369 export POSIXLY_CORRECT
18370 if test "$cross_compiling" = yes; then :
18371 gl_cv_func_getopt_gnu="guessing no"
18372
18373 else
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18376 #include <getopt.h>
18377 #include <stddef.h>
18378 #include <string.h>
18379
18380 #include <stdlib.h>
18381 #if defined __MACH__ && defined __APPLE__
18382 /* Avoid a crash on Mac OS X. */
18383 #include <mach/mach.h>
18384 #include <mach/mach_error.h>
18385 #include <mach/thread_status.h>
18386 #include <mach/exception.h>
18387 #include <mach/task.h>
18388 #include <pthread.h>
18389 /* The exception port on which our thread listens. */
18390 static mach_port_t our_exception_port;
18391 /* The main function of the thread listening for exceptions of type
18392 EXC_BAD_ACCESS. */
18393 static void *
18394 mach_exception_thread (void *arg)
18395 {
18396 /* Buffer for a message to be received. */
18397 struct {
18398 mach_msg_header_t head;
18399 mach_msg_body_t msgh_body;
18400 char data[1024];
18401 } msg;
18402 mach_msg_return_t retval;
18403 /* Wait for a message on the exception port. */
18404 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
18405 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
18406 if (retval != MACH_MSG_SUCCESS)
18407 abort ();
18408 exit (1);
18409 }
18410 static void
18411 nocrash_init (void)
18412 {
18413 mach_port_t self = mach_task_self ();
18414 /* Allocate a port on which the thread shall listen for exceptions. */
18415 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
18416 == KERN_SUCCESS) {
18417 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
18418 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
18419 MACH_MSG_TYPE_MAKE_SEND)
18420 == KERN_SUCCESS) {
18421 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
18422 for us. */
18423 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
18424 /* Create the thread listening on the exception port. */
18425 pthread_attr_t attr;
18426 pthread_t thread;
18427 if (pthread_attr_init (&attr) == 0
18428 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
18429 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
18430 pthread_attr_destroy (&attr);
18431 /* Replace the exception port info for these exceptions with our own.
18432 Note that we replace the exception port for the entire task, not only
18433 for a particular thread. This has the effect that when our exception
18434 port gets the message, the thread specific exception port has already
18435 been asked, and we don't need to bother about it.
18436 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
18437 task_set_exception_ports (self, mask, our_exception_port,
18438 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
18439 }
18440 }
18441 }
18442 }
18443 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18444 /* Avoid a crash on native Windows. */
18445 #define WIN32_LEAN_AND_MEAN
18446 #include <windows.h>
18447 #include <winerror.h>
18448 static LONG WINAPI
18449 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
18450 {
18451 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
18452 {
18453 case EXCEPTION_ACCESS_VIOLATION:
18454 case EXCEPTION_IN_PAGE_ERROR:
18455 case EXCEPTION_STACK_OVERFLOW:
18456 case EXCEPTION_GUARD_PAGE:
18457 case EXCEPTION_PRIV_INSTRUCTION:
18458 case EXCEPTION_ILLEGAL_INSTRUCTION:
18459 case EXCEPTION_DATATYPE_MISALIGNMENT:
18460 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
18461 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
18462 exit (1);
18463 }
18464 return EXCEPTION_CONTINUE_SEARCH;
18465 }
18466 static void
18467 nocrash_init (void)
18468 {
18469 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
18470 }
18471 #else
18472 /* Avoid a crash on POSIX systems. */
18473 #include <signal.h>
18474 /* A POSIX signal handler. */
18475 static void
18476 exception_handler (int sig)
18477 {
18478 exit (1);
18479 }
18480 static void
18481 nocrash_init (void)
18482 {
18483 #ifdef SIGSEGV
18484 signal (SIGSEGV, exception_handler);
18485 #endif
18486 #ifdef SIGBUS
18487 signal (SIGBUS, exception_handler);
18488 #endif
18489 }
18490 #endif
18491
18492
18493 int
18494 main ()
18495 {
18496
18497 int result = 0;
18498
18499 nocrash_init();
18500
18501 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
18502 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
18503 OSF/1 5.1, Solaris 10. */
18504 {
18505 static char conftest[] = "conftest";
18506 static char plus[] = "-+";
18507 char *argv[3] = { conftest, plus, NULL };
18508 opterr = 0;
18509 if (getopt (2, argv, "+a") != '?')
18510 result |= 1;
18511 }
18512 /* This code succeeds on glibc 2.8, mingw,
18513 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
18514 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
18515 {
18516 static char program[] = "program";
18517 static char p[] = "-p";
18518 static char foo[] = "foo";
18519 static char bar[] = "bar";
18520 char *argv[] = { program, p, foo, bar, NULL };
18521
18522 optind = 1;
18523 if (getopt (4, argv, "p::") != 'p')
18524 result |= 2;
18525 else if (optarg != NULL)
18526 result |= 4;
18527 else if (getopt (4, argv, "p::") != -1)
18528 result |= 6;
18529 else if (optind != 2)
18530 result |= 8;
18531 }
18532 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
18533 {
18534 static char program[] = "program";
18535 static char foo[] = "foo";
18536 static char p[] = "-p";
18537 char *argv[] = { program, foo, p, NULL };
18538 optind = 0;
18539 if (getopt (3, argv, "-p") != 1)
18540 result |= 16;
18541 else if (getopt (3, argv, "-p") != 'p')
18542 result |= 16;
18543 }
18544 /* This code fails on glibc 2.11. */
18545 {
18546 static char program[] = "program";
18547 static char b[] = "-b";
18548 static char a[] = "-a";
18549 char *argv[] = { program, b, a, NULL };
18550 optind = opterr = 0;
18551 if (getopt (3, argv, "+:a:b") != 'b')
18552 result |= 32;
18553 else if (getopt (3, argv, "+:a:b") != ':')
18554 result |= 32;
18555 }
18556 /* This code dumps core on glibc 2.14. */
18557 {
18558 static char program[] = "program";
18559 static char w[] = "-W";
18560 static char dummy[] = "dummy";
18561 char *argv[] = { program, w, dummy, NULL };
18562 optind = opterr = 1;
18563 if (getopt (3, argv, "W;") != 'W')
18564 result |= 64;
18565 }
18566 return result;
18567
18568 ;
18569 return 0;
18570 }
18571 _ACEOF
18572 if ac_fn_c_try_run "$LINENO"; then :
18573 gl_cv_func_getopt_gnu=yes
18574 else
18575 gl_cv_func_getopt_gnu=no
18576 fi
18577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18578 conftest.$ac_objext conftest.beam conftest.$ac_ext
18579 fi
18580
18581 case $gl_had_POSIXLY_CORRECT in
18582 exported) ;;
18583 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
18584 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
18585 esac
18586
18587 fi
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
18589 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
18590 if test "$gl_cv_func_getopt_gnu" != yes; then
18591 gl_replace_getopt=yes
18592 else
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
18594 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
18595 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
18596 $as_echo_n "(cached) " >&6
18597 else
18598 if test "$cross_compiling" = yes; then :
18599 case "$host_os" in
18600 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
18601 *) gl_cv_func_getopt_long_gnu="guessing yes";;
18602 esac
18603
18604 else
18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606 /* end confdefs.h. */
18607 #include <getopt.h>
18608 #include <stddef.h>
18609 #include <string.h>
18610
18611 int
18612 main ()
18613 {
18614 static const struct option long_options[] =
18615 {
18616 { "xtremely-",no_argument, NULL, 1003 },
18617 { "xtra", no_argument, NULL, 1001 },
18618 { "xtreme", no_argument, NULL, 1002 },
18619 { "xtremely", no_argument, NULL, 1003 },
18620 { NULL, 0, NULL, 0 }
18621 };
18622 /* This code fails on OpenBSD 5.0. */
18623 {
18624 static char program[] = "program";
18625 static char xtremel[] = "--xtremel";
18626 char *argv[] = { program, xtremel, NULL };
18627 int option_index;
18628 optind = 1; opterr = 0;
18629 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18630 return 1;
18631 }
18632 return 0;
18633
18634 ;
18635 return 0;
18636 }
18637 _ACEOF
18638 if ac_fn_c_try_run "$LINENO"; then :
18639 gl_cv_func_getopt_long_gnu=yes
18640 else
18641 gl_cv_func_getopt_long_gnu=no
18642 fi
18643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18644 conftest.$ac_objext conftest.beam conftest.$ac_ext
18645 fi
18646
18647
18648 fi
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18650 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18651 case "$gl_cv_func_getopt_long_gnu" in
18652 *yes) ;;
18653 *) gl_replace_getopt=yes ;;
18654 esac
18655 fi
18656 fi
18657
18658
18659
18660
18661
18662
18663 REPLACE_GETOPT=0
18664 if test -n "$gl_replace_getopt"; then
18665 REPLACE_GETOPT=1
18666 fi
18667
18668 if test $REPLACE_GETOPT = 1; then
18669
18670 GETOPT_H=getopt.h
18671
18672 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18673
18674
18675
18676 fi
18677
18678 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18679 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
18680 ac_have_decl=1
18681 else
18682 ac_have_decl=0
18683 fi
18684
18685 cat >>confdefs.h <<_ACEOF
18686 #define HAVE_DECL_GETENV $ac_have_decl
18687 _ACEOF
18688
18689 :
18690
18691
18692
18693
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18695 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18696 if test "${ac_cv_c_restrict+set}" = set; then :
18697 $as_echo_n "(cached) " >&6
18698 else
18699 ac_cv_c_restrict=no
18700 # The order here caters to the fact that C++ does not require restrict.
18701 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703 /* end confdefs.h. */
18704 typedef int * int_ptr;
18705 int foo (int_ptr $ac_kw ip) {
18706 return ip[0];
18707 }
18708 int
18709 main ()
18710 {
18711 int s[1];
18712 int * $ac_kw t = s;
18713 t[0] = 0;
18714 return foo(t)
18715 ;
18716 return 0;
18717 }
18718 _ACEOF
18719 if ac_fn_c_try_compile "$LINENO"; then :
18720 ac_cv_c_restrict=$ac_kw
18721 fi
18722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18723 test "$ac_cv_c_restrict" != no && break
18724 done
18725
18726 fi
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18728 $as_echo "$ac_cv_c_restrict" >&6; }
18729
18730 case $ac_cv_c_restrict in
18731 restrict) ;;
18732 no) $as_echo "#define restrict /**/" >>confdefs.h
18733 ;;
18734 *) cat >>confdefs.h <<_ACEOF
18735 #define restrict $ac_cv_c_restrict
18736 _ACEOF
18737 ;;
18738 esac
18739
18740
18741 GNULIB_GETTIMEOFDAY=0;
18742 HAVE_GETTIMEOFDAY=1;
18743 HAVE_STRUCT_TIMEVAL=1;
18744 HAVE_SYS_TIME_H=1;
18745 REPLACE_GETTIMEOFDAY=0;
18746 REPLACE_STRUCT_TIMEVAL=0;
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763 if test $gl_cv_have_include_next = yes; then
18764 gl_cv_next_sys_time_h='<'sys/time.h'>'
18765 else
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18767 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18768 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18769 $as_echo_n "(cached) " >&6
18770 else
18771
18772 if test $ac_cv_header_sys_time_h = yes; then
18773
18774
18775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h. */
18777 #include <sys/time.h>
18778
18779 _ACEOF
18780 case "$host_os" in
18781 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18782 *) gl_absname_cpp="$ac_cpp" ;;
18783 esac
18784
18785 case "$host_os" in
18786 mingw*)
18787 gl_dirsep_regex='[/\\]'
18788 ;;
18789 *)
18790 gl_dirsep_regex='\/'
18791 ;;
18792 esac
18793 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18794
18795 gl_header_literal_regex=`echo 'sys/time.h' \
18796 | sed -e "$gl_make_literal_regex_sed"`
18797 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18798 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18799 s|^/[^/]|//&|
18800 p
18801 q
18802 }'
18803 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18804 sed -n "$gl_absolute_header_sed"`'"'
18805 else
18806 gl_cv_next_sys_time_h='<'sys/time.h'>'
18807 fi
18808
18809
18810 fi
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18812 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18813 fi
18814 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
18815
18816 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18818 gl_next_as_first_directive='<'sys/time.h'>'
18819 else
18820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18821 gl_next_as_first_directive=$gl_cv_next_sys_time_h
18822 fi
18823 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
18824
18825
18826
18827
18828
18829 if test $ac_cv_header_sys_time_h != yes; then
18830 HAVE_SYS_TIME_H=0
18831 fi
18832
18833
18834
18835
18836
18837 if test $ac_cv_header_sys_socket_h != yes; then
18838 for ac_header in winsock2.h
18839 do :
18840 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18841 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18842 cat >>confdefs.h <<_ACEOF
18843 #define HAVE_WINSOCK2_H 1
18844 _ACEOF
18845
18846 fi
18847
18848 done
18849
18850 fi
18851 if test "$ac_cv_header_winsock2_h" = yes; then
18852 HAVE_WINSOCK2_H=1
18853 UNISTD_H_HAVE_WINSOCK2_H=1
18854 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18855 else
18856 HAVE_WINSOCK2_H=0
18857 fi
18858
18859
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18861 $as_echo_n "checking for struct timeval... " >&6; }
18862 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18863 $as_echo_n "(cached) " >&6
18864 else
18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18867 #if HAVE_SYS_TIME_H
18868 #include <sys/time.h>
18869 #endif
18870 #include <time.h>
18871 #if HAVE_WINSOCK2_H
18872 # include <winsock2.h>
18873 #endif
18874
18875 int
18876 main ()
18877 {
18878 static struct timeval x; x.tv_sec = x.tv_usec;
18879 ;
18880 return 0;
18881 }
18882 _ACEOF
18883 if ac_fn_c_try_compile "$LINENO"; then :
18884 gl_cv_sys_struct_timeval=yes
18885 else
18886 gl_cv_sys_struct_timeval=no
18887 fi
18888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18889
18890 fi
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18892 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18893 if test $gl_cv_sys_struct_timeval != yes; then
18894 HAVE_STRUCT_TIMEVAL=0
18895 else
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18897 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18898 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18899 $as_echo_n "(cached) " >&6
18900 else
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18903 #if HAVE_SYS_TIME_H
18904 #include <sys/time.h>
18905 #endif
18906 #include <time.h>
18907 #if HAVE_WINSOCK2_H
18908 # include <winsock2.h>
18909 #endif
18910
18911 int
18912 main ()
18913 {
18914 static struct timeval x;
18915 typedef int verify_tv_sec_type[
18916 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18917 ];
18918
18919 ;
18920 return 0;
18921 }
18922 _ACEOF
18923 if ac_fn_c_try_compile "$LINENO"; then :
18924 gl_cv_sys_struct_timeval_tv_sec=yes
18925 else
18926 gl_cv_sys_struct_timeval_tv_sec=no
18927 fi
18928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18929
18930 fi
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18932 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18933 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18934 REPLACE_STRUCT_TIMEVAL=1
18935 fi
18936 fi
18937
18938
18939
18940
18941
18942
18943
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18945 $as_echo_n "checking for unsigned long long int... " >&6; }
18946 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18947 $as_echo_n "(cached) " >&6
18948 else
18949 ac_cv_type_unsigned_long_long_int=yes
18950 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952 /* end confdefs.h. */
18953
18954 /* For now, do not test the preprocessor; as of 2007 there are too many
18955 implementations with broken preprocessors. Perhaps this can
18956 be revisited in 2012. In the meantime, code should not expect
18957 #if to work with literals wider than 32 bits. */
18958 /* Test literals. */
18959 long long int ll = 9223372036854775807ll;
18960 long long int nll = -9223372036854775807LL;
18961 unsigned long long int ull = 18446744073709551615ULL;
18962 /* Test constant expressions. */
18963 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18964 ? 1 : -1)];
18965 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18966 ? 1 : -1)];
18967 int i = 63;
18968 int
18969 main ()
18970 {
18971 /* Test availability of runtime routines for shift and division. */
18972 long long int llmax = 9223372036854775807ll;
18973 unsigned long long int ullmax = 18446744073709551615ull;
18974 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18975 | (llmax / ll) | (llmax % ll)
18976 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18977 | (ullmax / ull) | (ullmax % ull));
18978 ;
18979 return 0;
18980 }
18981
18982 _ACEOF
18983 if ac_fn_c_try_link "$LINENO"; then :
18984
18985 else
18986 ac_cv_type_unsigned_long_long_int=no
18987 fi
18988 rm -f core conftest.err conftest.$ac_objext \
18989 conftest$ac_exeext conftest.$ac_ext
18990 fi
18991 fi
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18993 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18994 if test $ac_cv_type_unsigned_long_long_int = yes; then
18995
18996 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18997
18998 fi
18999
19000
19001
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19003 $as_echo_n "checking for long long int... " >&6; }
19004 if test "${ac_cv_type_long_long_int+set}" = set; then :
19005 $as_echo_n "(cached) " >&6
19006 else
19007 ac_cv_type_long_long_int=yes
19008 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19009 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19010 if test $ac_cv_type_long_long_int = yes; then
19011 if test "$cross_compiling" = yes; then :
19012 :
19013 else
19014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19016 #include <limits.h>
19017 #ifndef LLONG_MAX
19018 # define HALF \
19019 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19020 # define LLONG_MAX (HALF - 1 + HALF)
19021 #endif
19022 int
19023 main ()
19024 {
19025 long long int n = 1;
19026 int i;
19027 for (i = 0; ; i++)
19028 {
19029 long long int m = n << i;
19030 if (m >> i != n)
19031 return 1;
19032 if (LLONG_MAX / 2 < m)
19033 break;
19034 }
19035 return 0;
19036 ;
19037 return 0;
19038 }
19039 _ACEOF
19040 if ac_fn_c_try_run "$LINENO"; then :
19041
19042 else
19043 ac_cv_type_long_long_int=no
19044 fi
19045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19046 conftest.$ac_objext conftest.beam conftest.$ac_ext
19047 fi
19048
19049 fi
19050 fi
19051 fi
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19053 $as_echo "$ac_cv_type_long_long_int" >&6; }
19054 if test $ac_cv_type_long_long_int = yes; then
19055
19056 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19057
19058 fi
19059
19060
19061
19062
19063
19064
19065 gl_cv_c_multiarch=no
19066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19067 /* end confdefs.h. */
19068 #ifndef __APPLE_CC__
19069 not a universal capable compiler
19070 #endif
19071 typedef int dummy;
19072
19073 _ACEOF
19074 if ac_fn_c_try_compile "$LINENO"; then :
19075
19076 arch=
19077 prev=
19078 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19079 if test -n "$prev"; then
19080 case $word in
19081 i?86 | x86_64 | ppc | ppc64)
19082 if test -z "$arch" || test "$arch" = "$word"; then
19083 arch="$word"
19084 else
19085 gl_cv_c_multiarch=yes
19086 fi
19087 ;;
19088 esac
19089 prev=
19090 else
19091 if test "x$word" = "x-arch"; then
19092 prev=arch
19093 fi
19094 fi
19095 done
19096
19097 fi
19098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19099 if test $gl_cv_c_multiarch = yes; then
19100 APPLE_UNIVERSAL_BUILD=1
19101 else
19102 APPLE_UNIVERSAL_BUILD=0
19103 fi
19104
19105
19106
19107
19108
19109 if test $ac_cv_type_long_long_int = yes; then
19110 HAVE_LONG_LONG_INT=1
19111 else
19112 HAVE_LONG_LONG_INT=0
19113 fi
19114
19115
19116 if test $ac_cv_type_unsigned_long_long_int = yes; then
19117 HAVE_UNSIGNED_LONG_LONG_INT=1
19118 else
19119 HAVE_UNSIGNED_LONG_LONG_INT=0
19120 fi
19121
19122
19123
19124 if test $ac_cv_header_wchar_h = yes; then
19125 HAVE_WCHAR_H=1
19126 else
19127 HAVE_WCHAR_H=0
19128 fi
19129
19130
19131 if test $ac_cv_header_inttypes_h = yes; then
19132 HAVE_INTTYPES_H=1
19133 else
19134 HAVE_INTTYPES_H=0
19135 fi
19136
19137
19138 if test $ac_cv_header_sys_types_h = yes; then
19139 HAVE_SYS_TYPES_H=1
19140 else
19141 HAVE_SYS_TYPES_H=0
19142 fi
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154 if test $gl_cv_have_include_next = yes; then
19155 gl_cv_next_stdint_h='<'stdint.h'>'
19156 else
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19158 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19159 if test "${gl_cv_next_stdint_h+set}" = set; then :
19160 $as_echo_n "(cached) " >&6
19161 else
19162
19163 if test $ac_cv_header_stdint_h = yes; then
19164
19165
19166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h. */
19168 #include <stdint.h>
19169
19170 _ACEOF
19171 case "$host_os" in
19172 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19173 *) gl_absname_cpp="$ac_cpp" ;;
19174 esac
19175
19176 case "$host_os" in
19177 mingw*)
19178 gl_dirsep_regex='[/\\]'
19179 ;;
19180 *)
19181 gl_dirsep_regex='\/'
19182 ;;
19183 esac
19184 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19185
19186 gl_header_literal_regex=`echo 'stdint.h' \
19187 | sed -e "$gl_make_literal_regex_sed"`
19188 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19189 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19190 s|^/[^/]|//&|
19191 p
19192 q
19193 }'
19194 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19195 sed -n "$gl_absolute_header_sed"`'"'
19196 else
19197 gl_cv_next_stdint_h='<'stdint.h'>'
19198 fi
19199
19200
19201 fi
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19203 $as_echo "$gl_cv_next_stdint_h" >&6; }
19204 fi
19205 NEXT_STDINT_H=$gl_cv_next_stdint_h
19206
19207 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19209 gl_next_as_first_directive='<'stdint.h'>'
19210 else
19211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19212 gl_next_as_first_directive=$gl_cv_next_stdint_h
19213 fi
19214 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19215
19216
19217
19218
19219 if test $ac_cv_header_stdint_h = yes; then
19220 HAVE_STDINT_H=1
19221 else
19222 HAVE_STDINT_H=0
19223 fi
19224
19225
19226 if test $ac_cv_header_stdint_h = yes; then
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19228 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19229 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
19230 $as_echo_n "(cached) " >&6
19231 else
19232 gl_cv_header_working_stdint_h=no
19233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h. */
19235
19236
19237 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19238 #include <stdint.h>
19239 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
19240 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19241 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19242 #endif
19243
19244
19245 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19246 included before <wchar.h>. */
19247 #include <stddef.h>
19248 #include <signal.h>
19249 #if HAVE_WCHAR_H
19250 # include <stdio.h>
19251 # include <time.h>
19252 # include <wchar.h>
19253 #endif
19254
19255
19256 #ifdef INT8_MAX
19257 int8_t a1 = INT8_MAX;
19258 int8_t a1min = INT8_MIN;
19259 #endif
19260 #ifdef INT16_MAX
19261 int16_t a2 = INT16_MAX;
19262 int16_t a2min = INT16_MIN;
19263 #endif
19264 #ifdef INT32_MAX
19265 int32_t a3 = INT32_MAX;
19266 int32_t a3min = INT32_MIN;
19267 #endif
19268 #ifdef INT64_MAX
19269 int64_t a4 = INT64_MAX;
19270 int64_t a4min = INT64_MIN;
19271 #endif
19272 #ifdef UINT8_MAX
19273 uint8_t b1 = UINT8_MAX;
19274 #else
19275 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19276 #endif
19277 #ifdef UINT16_MAX
19278 uint16_t b2 = UINT16_MAX;
19279 #endif
19280 #ifdef UINT32_MAX
19281 uint32_t b3 = UINT32_MAX;
19282 #endif
19283 #ifdef UINT64_MAX
19284 uint64_t b4 = UINT64_MAX;
19285 #endif
19286 int_least8_t c1 = INT8_C (0x7f);
19287 int_least8_t c1max = INT_LEAST8_MAX;
19288 int_least8_t c1min = INT_LEAST8_MIN;
19289 int_least16_t c2 = INT16_C (0x7fff);
19290 int_least16_t c2max = INT_LEAST16_MAX;
19291 int_least16_t c2min = INT_LEAST16_MIN;
19292 int_least32_t c3 = INT32_C (0x7fffffff);
19293 int_least32_t c3max = INT_LEAST32_MAX;
19294 int_least32_t c3min = INT_LEAST32_MIN;
19295 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19296 int_least64_t c4max = INT_LEAST64_MAX;
19297 int_least64_t c4min = INT_LEAST64_MIN;
19298 uint_least8_t d1 = UINT8_C (0xff);
19299 uint_least8_t d1max = UINT_LEAST8_MAX;
19300 uint_least16_t d2 = UINT16_C (0xffff);
19301 uint_least16_t d2max = UINT_LEAST16_MAX;
19302 uint_least32_t d3 = UINT32_C (0xffffffff);
19303 uint_least32_t d3max = UINT_LEAST32_MAX;
19304 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19305 uint_least64_t d4max = UINT_LEAST64_MAX;
19306 int_fast8_t e1 = INT_FAST8_MAX;
19307 int_fast8_t e1min = INT_FAST8_MIN;
19308 int_fast16_t e2 = INT_FAST16_MAX;
19309 int_fast16_t e2min = INT_FAST16_MIN;
19310 int_fast32_t e3 = INT_FAST32_MAX;
19311 int_fast32_t e3min = INT_FAST32_MIN;
19312 int_fast64_t e4 = INT_FAST64_MAX;
19313 int_fast64_t e4min = INT_FAST64_MIN;
19314 uint_fast8_t f1 = UINT_FAST8_MAX;
19315 uint_fast16_t f2 = UINT_FAST16_MAX;
19316 uint_fast32_t f3 = UINT_FAST32_MAX;
19317 uint_fast64_t f4 = UINT_FAST64_MAX;
19318 #ifdef INTPTR_MAX
19319 intptr_t g = INTPTR_MAX;
19320 intptr_t gmin = INTPTR_MIN;
19321 #endif
19322 #ifdef UINTPTR_MAX
19323 uintptr_t h = UINTPTR_MAX;
19324 #endif
19325 intmax_t i = INTMAX_MAX;
19326 uintmax_t j = UINTMAX_MAX;
19327
19328 #include <limits.h> /* for CHAR_BIT */
19329 #define TYPE_MINIMUM(t) \
19330 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19331 #define TYPE_MAXIMUM(t) \
19332 ((t) ((t) 0 < (t) -1 \
19333 ? (t) -1 \
19334 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19335 struct s {
19336 int check_PTRDIFF:
19337 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19338 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19339 ? 1 : -1;
19340 /* Detect bug in FreeBSD 6.0 / ia64. */
19341 int check_SIG_ATOMIC:
19342 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19343 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19344 ? 1 : -1;
19345 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19346 int check_WCHAR:
19347 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19348 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
19349 ? 1 : -1;
19350 /* Detect bug in mingw. */
19351 int check_WINT:
19352 WINT_MIN == TYPE_MINIMUM (wint_t)
19353 && WINT_MAX == TYPE_MAXIMUM (wint_t)
19354 ? 1 : -1;
19355
19356 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
19357 int check_UINT8_C:
19358 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
19359 int check_UINT16_C:
19360 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
19361
19362 /* Detect bugs in OpenBSD 3.9 stdint.h. */
19363 #ifdef UINT8_MAX
19364 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
19365 #endif
19366 #ifdef UINT16_MAX
19367 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
19368 #endif
19369 #ifdef UINT32_MAX
19370 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
19371 #endif
19372 #ifdef UINT64_MAX
19373 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
19374 #endif
19375 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
19376 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
19377 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
19378 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
19379 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
19380 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
19381 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
19382 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
19383 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
19384 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
19385 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
19386 };
19387
19388 int
19389 main ()
19390 {
19391
19392 ;
19393 return 0;
19394 }
19395 _ACEOF
19396 if ac_fn_c_try_compile "$LINENO"; then :
19397 if test "$cross_compiling" = yes; then :
19398 gl_cv_header_working_stdint_h=yes
19399
19400 else
19401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19403
19404
19405 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19406 #include <stdint.h>
19407
19408
19409 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19410 included before <wchar.h>. */
19411 #include <stddef.h>
19412 #include <signal.h>
19413 #if HAVE_WCHAR_H
19414 # include <stdio.h>
19415 # include <time.h>
19416 # include <wchar.h>
19417 #endif
19418
19419
19420 #include <stdio.h>
19421 #include <string.h>
19422 #define MVAL(macro) MVAL1(macro)
19423 #define MVAL1(expression) #expression
19424 static const char *macro_values[] =
19425 {
19426 #ifdef INT8_MAX
19427 MVAL (INT8_MAX),
19428 #endif
19429 #ifdef INT16_MAX
19430 MVAL (INT16_MAX),
19431 #endif
19432 #ifdef INT32_MAX
19433 MVAL (INT32_MAX),
19434 #endif
19435 #ifdef INT64_MAX
19436 MVAL (INT64_MAX),
19437 #endif
19438 #ifdef UINT8_MAX
19439 MVAL (UINT8_MAX),
19440 #endif
19441 #ifdef UINT16_MAX
19442 MVAL (UINT16_MAX),
19443 #endif
19444 #ifdef UINT32_MAX
19445 MVAL (UINT32_MAX),
19446 #endif
19447 #ifdef UINT64_MAX
19448 MVAL (UINT64_MAX),
19449 #endif
19450 NULL
19451 };
19452
19453 int
19454 main ()
19455 {
19456
19457 const char **mv;
19458 for (mv = macro_values; *mv != NULL; mv++)
19459 {
19460 const char *value = *mv;
19461 /* Test whether it looks like a cast expression. */
19462 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
19463 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
19464 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
19465 || strncmp (value, "((int)"/*)*/, 6) == 0
19466 || strncmp (value, "((signed short)"/*)*/, 15) == 0
19467 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
19468 return mv - macro_values + 1;
19469 }
19470 return 0;
19471
19472 ;
19473 return 0;
19474 }
19475 _ACEOF
19476 if ac_fn_c_try_run "$LINENO"; then :
19477 gl_cv_header_working_stdint_h=yes
19478 fi
19479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19480 conftest.$ac_objext conftest.beam conftest.$ac_ext
19481 fi
19482
19483
19484 fi
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19486
19487 fi
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
19489 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
19490 fi
19491 if test "$gl_cv_header_working_stdint_h" = yes; then
19492 STDINT_H=
19493 else
19494 for ac_header in sys/inttypes.h sys/bitypes.h
19495 do :
19496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19497 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19498 eval as_val=\$$as_ac_Header
19499 if test "x$as_val" = x""yes; then :
19500 cat >>confdefs.h <<_ACEOF
19501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19502 _ACEOF
19503
19504 fi
19505
19506 done
19507
19508 if test $ac_cv_header_sys_inttypes_h = yes; then
19509 HAVE_SYS_INTTYPES_H=1
19510 else
19511 HAVE_SYS_INTTYPES_H=0
19512 fi
19513
19514 if test $ac_cv_header_sys_bitypes_h = yes; then
19515 HAVE_SYS_BITYPES_H=1
19516 else
19517 HAVE_SYS_BITYPES_H=0
19518 fi
19519
19520
19521
19522
19523 if test $APPLE_UNIVERSAL_BUILD = 0; then
19524
19525
19526 for gltype in ptrdiff_t size_t ; do
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19528 $as_echo_n "checking for bit size of $gltype... " >&6; }
19529 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
19530 $as_echo_n "(cached) " >&6
19531 else
19532 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19533 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19534 included before <wchar.h>. */
19535 #include <stddef.h>
19536 #include <signal.h>
19537 #if HAVE_WCHAR_H
19538 # include <stdio.h>
19539 # include <time.h>
19540 # include <wchar.h>
19541 #endif
19542
19543 #include <limits.h>"; then :
19544
19545 else
19546 result=unknown
19547 fi
19548
19549 eval gl_cv_bitsizeof_${gltype}=\$result
19550
19551 fi
19552 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19554 $as_echo "$ac_res" >&6; }
19555 eval result=\$gl_cv_bitsizeof_${gltype}
19556 if test $result = unknown; then
19557 result=0
19558 fi
19559 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19560 cat >>confdefs.h <<_ACEOF
19561 #define BITSIZEOF_${GLTYPE} $result
19562 _ACEOF
19563
19564 eval BITSIZEOF_${GLTYPE}=\$result
19565 done
19566
19567
19568 fi
19569
19570
19571 for gltype in sig_atomic_t wchar_t wint_t ; do
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19573 $as_echo_n "checking for bit size of $gltype... " >&6; }
19574 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
19575 $as_echo_n "(cached) " >&6
19576 else
19577 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19578 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19579 included before <wchar.h>. */
19580 #include <stddef.h>
19581 #include <signal.h>
19582 #if HAVE_WCHAR_H
19583 # include <stdio.h>
19584 # include <time.h>
19585 # include <wchar.h>
19586 #endif
19587
19588 #include <limits.h>"; then :
19589
19590 else
19591 result=unknown
19592 fi
19593
19594 eval gl_cv_bitsizeof_${gltype}=\$result
19595
19596 fi
19597 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19599 $as_echo "$ac_res" >&6; }
19600 eval result=\$gl_cv_bitsizeof_${gltype}
19601 if test $result = unknown; then
19602 result=0
19603 fi
19604 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19605 cat >>confdefs.h <<_ACEOF
19606 #define BITSIZEOF_${GLTYPE} $result
19607 _ACEOF
19608
19609 eval BITSIZEOF_${GLTYPE}=\$result
19610 done
19611
19612
19613
19614
19615 for gltype in sig_atomic_t wchar_t wint_t ; do
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19617 $as_echo_n "checking whether $gltype is signed... " >&6; }
19618 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
19619 $as_echo_n "(cached) " >&6
19620 else
19621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h. */
19623
19624 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19625 included before <wchar.h>. */
19626 #include <stddef.h>
19627 #include <signal.h>
19628 #if HAVE_WCHAR_H
19629 # include <stdio.h>
19630 # include <time.h>
19631 # include <wchar.h>
19632 #endif
19633
19634 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19635 int
19636 main ()
19637 {
19638
19639 ;
19640 return 0;
19641 }
19642 _ACEOF
19643 if ac_fn_c_try_compile "$LINENO"; then :
19644 result=yes
19645 else
19646 result=no
19647 fi
19648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 eval gl_cv_type_${gltype}_signed=\$result
19650
19651 fi
19652 eval ac_res=\$gl_cv_type_${gltype}_signed
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19654 $as_echo "$ac_res" >&6; }
19655 eval result=\$gl_cv_type_${gltype}_signed
19656 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19657 if test "$result" = yes; then
19658 cat >>confdefs.h <<_ACEOF
19659 #define HAVE_SIGNED_${GLTYPE} 1
19660 _ACEOF
19661
19662 eval HAVE_SIGNED_${GLTYPE}=1
19663 else
19664 eval HAVE_SIGNED_${GLTYPE}=0
19665 fi
19666 done
19667
19668
19669 gl_cv_type_ptrdiff_t_signed=yes
19670 gl_cv_type_size_t_signed=no
19671 if test $APPLE_UNIVERSAL_BUILD = 0; then
19672
19673
19674 for gltype in ptrdiff_t size_t ; do
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19676 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19677 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19678 $as_echo_n "(cached) " >&6
19679 else
19680 eval gl_cv_type_${gltype}_suffix=no
19681 eval result=\$gl_cv_type_${gltype}_signed
19682 if test "$result" = yes; then
19683 glsufu=
19684 else
19685 glsufu=u
19686 fi
19687 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19688 case $glsuf in
19689 '') gltype1='int';;
19690 l) gltype1='long int';;
19691 ll) gltype1='long long int';;
19692 i64) gltype1='__int64';;
19693 u) gltype1='unsigned int';;
19694 ul) gltype1='unsigned long int';;
19695 ull) gltype1='unsigned long long int';;
19696 ui64)gltype1='unsigned __int64';;
19697 esac
19698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19699 /* end confdefs.h. */
19700
19701 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19702 included before <wchar.h>. */
19703 #include <stddef.h>
19704 #include <signal.h>
19705 #if HAVE_WCHAR_H
19706 # include <stdio.h>
19707 # include <time.h>
19708 # include <wchar.h>
19709 #endif
19710
19711 extern $gltype foo;
19712 extern $gltype1 foo;
19713 int
19714 main ()
19715 {
19716
19717 ;
19718 return 0;
19719 }
19720 _ACEOF
19721 if ac_fn_c_try_compile "$LINENO"; then :
19722 eval gl_cv_type_${gltype}_suffix=\$glsuf
19723 fi
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19725 eval result=\$gl_cv_type_${gltype}_suffix
19726 test "$result" != no && break
19727 done
19728 fi
19729 eval ac_res=\$gl_cv_type_${gltype}_suffix
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19731 $as_echo "$ac_res" >&6; }
19732 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19733 eval result=\$gl_cv_type_${gltype}_suffix
19734 test "$result" = no && result=
19735 eval ${GLTYPE}_SUFFIX=\$result
19736 cat >>confdefs.h <<_ACEOF
19737 #define ${GLTYPE}_SUFFIX $result
19738 _ACEOF
19739
19740 done
19741
19742
19743 fi
19744
19745
19746 for gltype in sig_atomic_t wchar_t wint_t ; do
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19748 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19749 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19750 $as_echo_n "(cached) " >&6
19751 else
19752 eval gl_cv_type_${gltype}_suffix=no
19753 eval result=\$gl_cv_type_${gltype}_signed
19754 if test "$result" = yes; then
19755 glsufu=
19756 else
19757 glsufu=u
19758 fi
19759 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19760 case $glsuf in
19761 '') gltype1='int';;
19762 l) gltype1='long int';;
19763 ll) gltype1='long long int';;
19764 i64) gltype1='__int64';;
19765 u) gltype1='unsigned int';;
19766 ul) gltype1='unsigned long int';;
19767 ull) gltype1='unsigned long long int';;
19768 ui64)gltype1='unsigned __int64';;
19769 esac
19770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19771 /* end confdefs.h. */
19772
19773 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19774 included before <wchar.h>. */
19775 #include <stddef.h>
19776 #include <signal.h>
19777 #if HAVE_WCHAR_H
19778 # include <stdio.h>
19779 # include <time.h>
19780 # include <wchar.h>
19781 #endif
19782
19783 extern $gltype foo;
19784 extern $gltype1 foo;
19785 int
19786 main ()
19787 {
19788
19789 ;
19790 return 0;
19791 }
19792 _ACEOF
19793 if ac_fn_c_try_compile "$LINENO"; then :
19794 eval gl_cv_type_${gltype}_suffix=\$glsuf
19795 fi
19796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19797 eval result=\$gl_cv_type_${gltype}_suffix
19798 test "$result" != no && break
19799 done
19800 fi
19801 eval ac_res=\$gl_cv_type_${gltype}_suffix
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19803 $as_echo "$ac_res" >&6; }
19804 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19805 eval result=\$gl_cv_type_${gltype}_suffix
19806 test "$result" = no && result=
19807 eval ${GLTYPE}_SUFFIX=\$result
19808 cat >>confdefs.h <<_ACEOF
19809 #define ${GLTYPE}_SUFFIX $result
19810 _ACEOF
19811
19812 done
19813
19814
19815
19816 if test $BITSIZEOF_WINT_T -lt 32; then
19817 BITSIZEOF_WINT_T=32
19818 fi
19819
19820 STDINT_H=stdint.h
19821 fi
19822
19823 if test -n "$STDINT_H"; then
19824 GL_GENERATE_STDINT_H_TRUE=
19825 GL_GENERATE_STDINT_H_FALSE='#'
19826 else
19827 GL_GENERATE_STDINT_H_TRUE='#'
19828 GL_GENERATE_STDINT_H_FALSE=
19829 fi
19830
19831
19832
19833
19834
19835 GNULIB_IMAXABS=0;
19836 GNULIB_IMAXDIV=0;
19837 GNULIB_STRTOIMAX=0;
19838 GNULIB_STRTOUMAX=0;
19839 HAVE_DECL_IMAXABS=1;
19840 HAVE_DECL_IMAXDIV=1;
19841 HAVE_DECL_STRTOIMAX=1;
19842 HAVE_DECL_STRTOUMAX=1;
19843 REPLACE_STRTOIMAX=0;
19844 INT32_MAX_LT_INTMAX_MAX=1;
19845 INT64_MAX_EQ_LONG_MAX='defined _LP64';
19846 PRI_MACROS_BROKEN=0;
19847 PRIPTR_PREFIX=__PRIPTR_PREFIX;
19848 UINT32_MAX_LT_UINTMAX_MAX=1;
19849 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865 if test $gl_cv_have_include_next = yes; then
19866 gl_cv_next_inttypes_h='<'inttypes.h'>'
19867 else
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19869 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19870 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19871 $as_echo_n "(cached) " >&6
19872 else
19873
19874 if test $ac_cv_header_inttypes_h = yes; then
19875
19876
19877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19879 #include <inttypes.h>
19880
19881 _ACEOF
19882 case "$host_os" in
19883 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19884 *) gl_absname_cpp="$ac_cpp" ;;
19885 esac
19886
19887 case "$host_os" in
19888 mingw*)
19889 gl_dirsep_regex='[/\\]'
19890 ;;
19891 *)
19892 gl_dirsep_regex='\/'
19893 ;;
19894 esac
19895 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19896
19897 gl_header_literal_regex=`echo 'inttypes.h' \
19898 | sed -e "$gl_make_literal_regex_sed"`
19899 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19900 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19901 s|^/[^/]|//&|
19902 p
19903 q
19904 }'
19905 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19906 sed -n "$gl_absolute_header_sed"`'"'
19907 else
19908 gl_cv_next_inttypes_h='<'inttypes.h'>'
19909 fi
19910
19911
19912 fi
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19914 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19915 fi
19916 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19917
19918 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19920 gl_next_as_first_directive='<'inttypes.h'>'
19921 else
19922 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19923 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19924 fi
19925 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937 case "$host_os" in
19938 mingw*)
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19940 $as_echo_n "checking for 64-bit off_t... " >&6; }
19941 if test "${gl_cv_type_off_t_64+set}" = set; then :
19942 $as_echo_n "(cached) " >&6
19943 else
19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19946 #include <sys/types.h>
19947 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19948
19949 int
19950 main ()
19951 {
19952
19953 ;
19954 return 0;
19955 }
19956 _ACEOF
19957 if ac_fn_c_try_compile "$LINENO"; then :
19958 gl_cv_type_off_t_64=yes
19959 else
19960 gl_cv_type_off_t_64=no
19961 fi
19962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19963
19964 fi
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19966 $as_echo "$gl_cv_type_off_t_64" >&6; }
19967 if test $gl_cv_type_off_t_64 = no; then
19968 WINDOWS_64_BIT_OFF_T=1
19969 else
19970 WINDOWS_64_BIT_OFF_T=0
19971 fi
19972 WINDOWS_64_BIT_ST_SIZE=1
19973 ;;
19974 *)
19975 WINDOWS_64_BIT_OFF_T=0
19976 WINDOWS_64_BIT_ST_SIZE=0
19977 ;;
19978 esac
19979
19980
19981
19982
19983 GNULIB_FFSL=0;
19984 GNULIB_FFSLL=0;
19985 GNULIB_MEMCHR=0;
19986 GNULIB_MEMMEM=0;
19987 GNULIB_MEMPCPY=0;
19988 GNULIB_MEMRCHR=0;
19989 GNULIB_RAWMEMCHR=0;
19990 GNULIB_STPCPY=0;
19991 GNULIB_STPNCPY=0;
19992 GNULIB_STRCHRNUL=0;
19993 GNULIB_STRDUP=0;
19994 GNULIB_STRNCAT=0;
19995 GNULIB_STRNDUP=0;
19996 GNULIB_STRNLEN=0;
19997 GNULIB_STRPBRK=0;
19998 GNULIB_STRSEP=0;
19999 GNULIB_STRSTR=0;
20000 GNULIB_STRCASESTR=0;
20001 GNULIB_STRTOK_R=0;
20002 GNULIB_MBSLEN=0;
20003 GNULIB_MBSNLEN=0;
20004 GNULIB_MBSCHR=0;
20005 GNULIB_MBSRCHR=0;
20006 GNULIB_MBSSTR=0;
20007 GNULIB_MBSCASECMP=0;
20008 GNULIB_MBSNCASECMP=0;
20009 GNULIB_MBSPCASECMP=0;
20010 GNULIB_MBSCASESTR=0;
20011 GNULIB_MBSCSPN=0;
20012 GNULIB_MBSPBRK=0;
20013 GNULIB_MBSSPN=0;
20014 GNULIB_MBSSEP=0;
20015 GNULIB_MBSTOK_R=0;
20016 GNULIB_STRERROR=0;
20017 GNULIB_STRERROR_R=0;
20018 GNULIB_STRSIGNAL=0;
20019 GNULIB_STRVERSCMP=0;
20020 HAVE_MBSLEN=0;
20021 HAVE_FFSL=1;
20022 HAVE_FFSLL=1;
20023 HAVE_MEMCHR=1;
20024 HAVE_DECL_MEMMEM=1;
20025 HAVE_MEMPCPY=1;
20026 HAVE_DECL_MEMRCHR=1;
20027 HAVE_RAWMEMCHR=1;
20028 HAVE_STPCPY=1;
20029 HAVE_STPNCPY=1;
20030 HAVE_STRCHRNUL=1;
20031 HAVE_DECL_STRDUP=1;
20032 HAVE_DECL_STRNDUP=1;
20033 HAVE_DECL_STRNLEN=1;
20034 HAVE_STRPBRK=1;
20035 HAVE_STRSEP=1;
20036 HAVE_STRCASESTR=1;
20037 HAVE_DECL_STRTOK_R=1;
20038 HAVE_DECL_STRERROR_R=1;
20039 HAVE_DECL_STRSIGNAL=1;
20040 HAVE_STRVERSCMP=1;
20041 REPLACE_MEMCHR=0;
20042 REPLACE_MEMMEM=0;
20043 REPLACE_STPNCPY=0;
20044 REPLACE_STRDUP=0;
20045 REPLACE_STRSTR=0;
20046 REPLACE_STRCASESTR=0;
20047 REPLACE_STRCHRNUL=0;
20048 REPLACE_STRERROR=0;
20049 REPLACE_STRERROR_R=0;
20050 REPLACE_STRNCAT=0;
20051 REPLACE_STRNDUP=0;
20052 REPLACE_STRNLEN=0;
20053 REPLACE_STRSIGNAL=0;
20054 REPLACE_STRTOK_R=0;
20055 UNDEFINE_STRTOK_R=0;
20056
20057 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20058 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
20059 ac_have_decl=1
20060 else
20061 ac_have_decl=0
20062 fi
20063
20064 cat >>confdefs.h <<_ACEOF
20065 #define HAVE_DECL_MEMRCHR $ac_have_decl
20066 _ACEOF
20067
20068
20069 GNULIB_MKTIME=0;
20070 GNULIB_NANOSLEEP=0;
20071 GNULIB_STRPTIME=0;
20072 GNULIB_TIMEGM=0;
20073 GNULIB_TIME_R=0;
20074 HAVE_DECL_LOCALTIME_R=1;
20075 HAVE_NANOSLEEP=1;
20076 HAVE_STRPTIME=1;
20077 HAVE_TIMEGM=1;
20078 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20079 REPLACE_MKTIME=GNULIB_PORTCHECK;
20080 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20081 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20082
20083 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20084 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
20085 ac_have_decl=1
20086 else
20087 ac_have_decl=0
20088 fi
20089
20090 cat >>confdefs.h <<_ACEOF
20091 #define HAVE_DECL_ALARM $ac_have_decl
20092 _ACEOF
20093
20094
20095 GNULIB_PSELECT=0;
20096 GNULIB_SELECT=0;
20097 HAVE_PSELECT=1;
20098 REPLACE_PSELECT=0;
20099 REPLACE_SELECT=0;
20100
20101
20102
20103
20104
20105
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20107 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20108 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20109 $as_echo_n "(cached) " >&6
20110 else
20111
20112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20113 /* end confdefs.h. */
20114 #include <sys/select.h>
20115 int
20116 main ()
20117 {
20118 struct timeval b;
20119 ;
20120 return 0;
20121 }
20122 _ACEOF
20123 if ac_fn_c_try_compile "$LINENO"; then :
20124 gl_cv_header_sys_select_h_selfcontained=yes
20125 else
20126 gl_cv_header_sys_select_h_selfcontained=no
20127 fi
20128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h. */
20132 #include <sys/select.h>
20133 int
20134 main ()
20135 {
20136 int memset; int bzero;
20137 ;
20138 return 0;
20139 }
20140
20141 _ACEOF
20142 if ac_fn_c_try_compile "$LINENO"; then :
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20145 #include <sys/select.h>
20146 int
20147 main ()
20148 {
20149
20150 #undef memset
20151 #define memset nonexistent_memset
20152 extern
20153 #ifdef __cplusplus
20154 "C"
20155 #endif
20156 void *memset (void *, int, unsigned long);
20157 #undef bzero
20158 #define bzero nonexistent_bzero
20159 extern
20160 #ifdef __cplusplus
20161 "C"
20162 #endif
20163 void bzero (void *, unsigned long);
20164 fd_set fds;
20165 FD_ZERO (&fds);
20166
20167 ;
20168 return 0;
20169 }
20170
20171 _ACEOF
20172 if ac_fn_c_try_link "$LINENO"; then :
20173
20174 else
20175 gl_cv_header_sys_select_h_selfcontained=no
20176 fi
20177 rm -f core conftest.err conftest.$ac_objext \
20178 conftest$ac_exeext conftest.$ac_ext
20179
20180 fi
20181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20182 fi
20183
20184 fi
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20186 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196 if test $gl_cv_have_include_next = yes; then
20197 gl_cv_next_sys_select_h='<'sys/select.h'>'
20198 else
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20200 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20201 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20202 $as_echo_n "(cached) " >&6
20203 else
20204
20205 if test $ac_cv_header_sys_select_h = yes; then
20206
20207
20208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20209 /* end confdefs.h. */
20210 #include <sys/select.h>
20211
20212 _ACEOF
20213 case "$host_os" in
20214 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20215 *) gl_absname_cpp="$ac_cpp" ;;
20216 esac
20217
20218 case "$host_os" in
20219 mingw*)
20220 gl_dirsep_regex='[/\\]'
20221 ;;
20222 *)
20223 gl_dirsep_regex='\/'
20224 ;;
20225 esac
20226 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20227
20228 gl_header_literal_regex=`echo 'sys/select.h' \
20229 | sed -e "$gl_make_literal_regex_sed"`
20230 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20231 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20232 s|^/[^/]|//&|
20233 p
20234 q
20235 }'
20236 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20237 sed -n "$gl_absolute_header_sed"`'"'
20238 else
20239 gl_cv_next_sys_select_h='<'sys/select.h'>'
20240 fi
20241
20242
20243 fi
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
20245 $as_echo "$gl_cv_next_sys_select_h" >&6; }
20246 fi
20247 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
20248
20249 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20250 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20251 gl_next_as_first_directive='<'sys/select.h'>'
20252 else
20253 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20254 gl_next_as_first_directive=$gl_cv_next_sys_select_h
20255 fi
20256 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
20257
20258
20259
20260
20261 if test $ac_cv_header_sys_select_h = yes; then
20262 HAVE_SYS_SELECT_H=1
20263 else
20264 HAVE_SYS_SELECT_H=0
20265 fi
20266
20267
20268
20269
20270
20271 if test $ac_cv_header_sys_socket_h != yes; then
20272 for ac_header in winsock2.h
20273 do :
20274 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20275 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
20276 cat >>confdefs.h <<_ACEOF
20277 #define HAVE_WINSOCK2_H 1
20278 _ACEOF
20279
20280 fi
20281
20282 done
20283
20284 fi
20285 if test "$ac_cv_header_winsock2_h" = yes; then
20286 HAVE_WINSOCK2_H=1
20287 UNISTD_H_HAVE_WINSOCK2_H=1
20288 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
20289 else
20290 HAVE_WINSOCK2_H=0
20291 fi
20292
20293
20294
20295
20296
20297
20298
20299
20300 GNULIB_PTHREAD_SIGMASK=0;
20301 GNULIB_RAISE=0;
20302 GNULIB_SIGNAL_H_SIGPIPE=0;
20303 GNULIB_SIGPROCMASK=0;
20304 GNULIB_SIGACTION=0;
20305 HAVE_POSIX_SIGNALBLOCKING=1;
20306 HAVE_PTHREAD_SIGMASK=1;
20307 HAVE_RAISE=1;
20308 HAVE_SIGSET_T=1;
20309 HAVE_SIGINFO_T=1;
20310 HAVE_SIGACTION=1;
20311 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
20312
20313 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
20314
20315 HAVE_SIGHANDLER_T=1;
20316 REPLACE_PTHREAD_SIGMASK=0;
20317 REPLACE_RAISE=0;
20318
20319
20320
20321
20322
20323
20324
20325 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20326 #include <signal.h>
20327 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
20328 #include <sys/types.h>
20329
20330 "
20331 if test "x$ac_cv_type_sigset_t" = x""yes; then :
20332
20333 cat >>confdefs.h <<_ACEOF
20334 #define HAVE_SIGSET_T 1
20335 _ACEOF
20336
20337 gl_cv_type_sigset_t=yes
20338 else
20339 gl_cv_type_sigset_t=no
20340 fi
20341
20342 if test $gl_cv_type_sigset_t != yes; then
20343 HAVE_SIGSET_T=0
20344 fi
20345
20346
20347
20348 if test $ac_cv_header_sys_socket_h = no; then
20349 for ac_header in ws2tcpip.h
20350 do :
20351 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
20352 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
20353 cat >>confdefs.h <<_ACEOF
20354 #define HAVE_WS2TCPIP_H 1
20355 _ACEOF
20356
20357 fi
20358
20359 done
20360
20361 fi
20362
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20364 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20365 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20366 $as_echo_n "(cached) " >&6
20367 else
20368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h. */
20370
20371 #include <stdbool.h>
20372 #ifndef bool
20373 "error: bool is not defined"
20374 #endif
20375 #ifndef false
20376 "error: false is not defined"
20377 #endif
20378 #if false
20379 "error: false is not 0"
20380 #endif
20381 #ifndef true
20382 "error: true is not defined"
20383 #endif
20384 #if true != 1
20385 "error: true is not 1"
20386 #endif
20387 #ifndef __bool_true_false_are_defined
20388 "error: __bool_true_false_are_defined is not defined"
20389 #endif
20390
20391 struct s { _Bool s: 1; _Bool t; } s;
20392
20393 char a[true == 1 ? 1 : -1];
20394 char b[false == 0 ? 1 : -1];
20395 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20396 char d[(bool) 0.5 == true ? 1 : -1];
20397 /* See body of main program for 'e'. */
20398 char f[(_Bool) 0.0 == false ? 1 : -1];
20399 char g[true];
20400 char h[sizeof (_Bool)];
20401 char i[sizeof s.t];
20402 enum { j = false, k = true, l = false * true, m = true * 256 };
20403 /* The following fails for
20404 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20405 _Bool n[m];
20406 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20407 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20408 /* Catch a bug in an HP-UX C compiler. See
20409 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20410 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20411 */
20412 _Bool q = true;
20413 _Bool *pq = &q;
20414
20415 int
20416 main ()
20417 {
20418
20419 bool e = &s;
20420 *pq |= q;
20421 *pq |= ! q;
20422 /* Refer to every declared value, to avoid compiler optimizations. */
20423 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20424 + !m + !n + !o + !p + !q + !pq);
20425
20426 ;
20427 return 0;
20428 }
20429 _ACEOF
20430 if ac_fn_c_try_compile "$LINENO"; then :
20431 ac_cv_header_stdbool_h=yes
20432 else
20433 ac_cv_header_stdbool_h=no
20434 fi
20435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20436 fi
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20438 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20439 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20440 if test "x$ac_cv_type__Bool" = x""yes; then :
20441
20442 cat >>confdefs.h <<_ACEOF
20443 #define HAVE__BOOL 1
20444 _ACEOF
20445
20446
20447 fi
20448
20449
20450
20451 REPLACE_NULL=0;
20452 HAVE_WCHAR_T=1;
20453
20454
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20456 $as_echo_n "checking for wchar_t... " >&6; }
20457 if test "${gt_cv_c_wchar_t+set}" = set; then :
20458 $as_echo_n "(cached) " >&6
20459 else
20460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20461 /* end confdefs.h. */
20462 #include <stddef.h>
20463 wchar_t foo = (wchar_t)'\0';
20464 int
20465 main ()
20466 {
20467
20468 ;
20469 return 0;
20470 }
20471 _ACEOF
20472 if ac_fn_c_try_compile "$LINENO"; then :
20473 gt_cv_c_wchar_t=yes
20474 else
20475 gt_cv_c_wchar_t=no
20476 fi
20477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20478 fi
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20480 $as_echo "$gt_cv_c_wchar_t" >&6; }
20481 if test $gt_cv_c_wchar_t = yes; then
20482
20483 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20484
20485 fi
20486
20487
20488 GNULIB_DPRINTF=0;
20489 GNULIB_FCLOSE=0;
20490 GNULIB_FDOPEN=0;
20491 GNULIB_FFLUSH=0;
20492 GNULIB_FGETC=0;
20493 GNULIB_FGETS=0;
20494 GNULIB_FOPEN=0;
20495 GNULIB_FPRINTF=0;
20496 GNULIB_FPRINTF_POSIX=0;
20497 GNULIB_FPURGE=0;
20498 GNULIB_FPUTC=0;
20499 GNULIB_FPUTS=0;
20500 GNULIB_FREAD=0;
20501 GNULIB_FREOPEN=0;
20502 GNULIB_FSCANF=0;
20503 GNULIB_FSEEK=0;
20504 GNULIB_FSEEKO=0;
20505 GNULIB_FTELL=0;
20506 GNULIB_FTELLO=0;
20507 GNULIB_FWRITE=0;
20508 GNULIB_GETC=0;
20509 GNULIB_GETCHAR=0;
20510 GNULIB_GETDELIM=0;
20511 GNULIB_GETLINE=0;
20512 GNULIB_OBSTACK_PRINTF=0;
20513 GNULIB_OBSTACK_PRINTF_POSIX=0;
20514 GNULIB_PCLOSE=0;
20515 GNULIB_PERROR=0;
20516 GNULIB_POPEN=0;
20517 GNULIB_PRINTF=0;
20518 GNULIB_PRINTF_POSIX=0;
20519 GNULIB_PUTC=0;
20520 GNULIB_PUTCHAR=0;
20521 GNULIB_PUTS=0;
20522 GNULIB_REMOVE=0;
20523 GNULIB_RENAME=0;
20524 GNULIB_RENAMEAT=0;
20525 GNULIB_SCANF=0;
20526 GNULIB_SNPRINTF=0;
20527 GNULIB_SPRINTF_POSIX=0;
20528 GNULIB_STDIO_H_NONBLOCKING=0;
20529 GNULIB_STDIO_H_SIGPIPE=0;
20530 GNULIB_TMPFILE=0;
20531 GNULIB_VASPRINTF=0;
20532 GNULIB_VFSCANF=0;
20533 GNULIB_VSCANF=0;
20534 GNULIB_VDPRINTF=0;
20535 GNULIB_VFPRINTF=0;
20536 GNULIB_VFPRINTF_POSIX=0;
20537 GNULIB_VPRINTF=0;
20538 GNULIB_VPRINTF_POSIX=0;
20539 GNULIB_VSNPRINTF=0;
20540 GNULIB_VSPRINTF_POSIX=0;
20541 HAVE_DECL_FPURGE=1;
20542 HAVE_DECL_FSEEKO=1;
20543 HAVE_DECL_FTELLO=1;
20544 HAVE_DECL_GETDELIM=1;
20545 HAVE_DECL_GETLINE=1;
20546 HAVE_DECL_OBSTACK_PRINTF=1;
20547 HAVE_DECL_SNPRINTF=1;
20548 HAVE_DECL_VSNPRINTF=1;
20549 HAVE_DPRINTF=1;
20550 HAVE_FSEEKO=1;
20551 HAVE_FTELLO=1;
20552 HAVE_PCLOSE=1;
20553 HAVE_POPEN=1;
20554 HAVE_RENAMEAT=1;
20555 HAVE_VASPRINTF=1;
20556 HAVE_VDPRINTF=1;
20557 REPLACE_DPRINTF=0;
20558 REPLACE_FCLOSE=0;
20559 REPLACE_FDOPEN=0;
20560 REPLACE_FFLUSH=0;
20561 REPLACE_FOPEN=0;
20562 REPLACE_FPRINTF=0;
20563 REPLACE_FPURGE=0;
20564 REPLACE_FREOPEN=0;
20565 REPLACE_FSEEK=0;
20566 REPLACE_FSEEKO=0;
20567 REPLACE_FTELL=0;
20568 REPLACE_FTELLO=0;
20569 REPLACE_GETDELIM=0;
20570 REPLACE_GETLINE=0;
20571 REPLACE_OBSTACK_PRINTF=0;
20572 REPLACE_PERROR=0;
20573 REPLACE_POPEN=0;
20574 REPLACE_PRINTF=0;
20575 REPLACE_REMOVE=0;
20576 REPLACE_RENAME=0;
20577 REPLACE_RENAMEAT=0;
20578 REPLACE_SNPRINTF=0;
20579 REPLACE_SPRINTF=0;
20580 REPLACE_STDIO_READ_FUNCS=0;
20581 REPLACE_STDIO_WRITE_FUNCS=0;
20582 REPLACE_TMPFILE=0;
20583 REPLACE_VASPRINTF=0;
20584 REPLACE_VDPRINTF=0;
20585 REPLACE_VFPRINTF=0;
20586 REPLACE_VPRINTF=0;
20587 REPLACE_VSNPRINTF=0;
20588 REPLACE_VSPRINTF=0;
20589
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20591 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20592 if test "${ac_cv_struct_tm+set}" = set; then :
20593 $as_echo_n "(cached) " >&6
20594 else
20595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h. */
20597 #include <sys/types.h>
20598 #include <time.h>
20599
20600 int
20601 main ()
20602 {
20603 struct tm tm;
20604 int *p = &tm.tm_sec;
20605 return !p;
20606 ;
20607 return 0;
20608 }
20609 _ACEOF
20610 if ac_fn_c_try_compile "$LINENO"; then :
20611 ac_cv_struct_tm=time.h
20612 else
20613 ac_cv_struct_tm=sys/time.h
20614 fi
20615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616 fi
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20618 $as_echo "$ac_cv_struct_tm" >&6; }
20619 if test $ac_cv_struct_tm = sys/time.h; then
20620
20621 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20622
20623 fi
20624
20625 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20626 #include <$ac_cv_struct_tm>
20627
20628 "
20629 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20630
20631 cat >>confdefs.h <<_ACEOF
20632 #define HAVE_STRUCT_TM_TM_ZONE 1
20633 _ACEOF
20634
20635
20636 fi
20637
20638 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20639
20640 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20641
20642 else
20643 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20644 "
20645 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
20646 ac_have_decl=1
20647 else
20648 ac_have_decl=0
20649 fi
20650
20651 cat >>confdefs.h <<_ACEOF
20652 #define HAVE_DECL_TZNAME $ac_have_decl
20653 _ACEOF
20654
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
20656 $as_echo_n "checking for tzname... " >&6; }
20657 if test "${ac_cv_var_tzname+set}" = set; then :
20658 $as_echo_n "(cached) " >&6
20659 else
20660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20661 /* end confdefs.h. */
20662 #include <time.h>
20663 #if !HAVE_DECL_TZNAME
20664 extern char *tzname[];
20665 #endif
20666
20667 int
20668 main ()
20669 {
20670 return tzname[0][0];
20671 ;
20672 return 0;
20673 }
20674 _ACEOF
20675 if ac_fn_c_try_link "$LINENO"; then :
20676 ac_cv_var_tzname=yes
20677 else
20678 ac_cv_var_tzname=no
20679 fi
20680 rm -f core conftest.err conftest.$ac_objext \
20681 conftest$ac_exeext conftest.$ac_ext
20682 fi
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20684 $as_echo "$ac_cv_var_tzname" >&6; }
20685 if test $ac_cv_var_tzname = yes; then
20686
20687 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20688
20689 fi
20690 fi
20691
20692
20693 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20694 "
20695 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
20696
20697 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20698
20699 fi
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713 if test $gl_cv_have_include_next = yes; then
20714 gl_cv_next_string_h='<'string.h'>'
20715 else
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20717 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20718 if test "${gl_cv_next_string_h+set}" = set; then :
20719 $as_echo_n "(cached) " >&6
20720 else
20721
20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20724 #include <string.h>
20725
20726 _ACEOF
20727 case "$host_os" in
20728 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20729 *) gl_absname_cpp="$ac_cpp" ;;
20730 esac
20731
20732 case "$host_os" in
20733 mingw*)
20734 gl_dirsep_regex='[/\\]'
20735 ;;
20736 *)
20737 gl_dirsep_regex='\/'
20738 ;;
20739 esac
20740 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20741
20742 gl_header_literal_regex=`echo 'string.h' \
20743 | sed -e "$gl_make_literal_regex_sed"`
20744 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20745 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20746 s|^/[^/]|//&|
20747 p
20748 q
20749 }'
20750 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20751 sed -n "$gl_absolute_header_sed"`'"'
20752
20753
20754 fi
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20756 $as_echo "$gl_cv_next_string_h" >&6; }
20757 fi
20758 NEXT_STRING_H=$gl_cv_next_string_h
20759
20760 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20762 gl_next_as_first_directive='<'string.h'>'
20763 else
20764 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20765 gl_next_as_first_directive=$gl_cv_next_string_h
20766 fi
20767 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20778 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
20779 ac_have_decl=1
20780 else
20781 ac_have_decl=0
20782 fi
20783
20784 cat >>confdefs.h <<_ACEOF
20785 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20786 _ACEOF
20787
20788
20789
20790 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20791 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
20792 ac_have_decl=1
20793 else
20794 ac_have_decl=0
20795 fi
20796
20797 cat >>confdefs.h <<_ACEOF
20798 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20799 _ACEOF
20800
20801
20802
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20804 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20805 if test "${ac_cv_header_stat_broken+set}" = set; then :
20806 $as_echo_n "(cached) " >&6
20807 else
20808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20809 /* end confdefs.h. */
20810 #include <sys/types.h>
20811 #include <sys/stat.h>
20812
20813 #if defined S_ISBLK && defined S_IFDIR
20814 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20815 #endif
20816
20817 #if defined S_ISBLK && defined S_IFCHR
20818 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20819 #endif
20820
20821 #if defined S_ISLNK && defined S_IFREG
20822 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20823 #endif
20824
20825 #if defined S_ISSOCK && defined S_IFREG
20826 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20827 #endif
20828
20829 _ACEOF
20830 if ac_fn_c_try_compile "$LINENO"; then :
20831 ac_cv_header_stat_broken=no
20832 else
20833 ac_cv_header_stat_broken=yes
20834 fi
20835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20836 fi
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20838 $as_echo "$ac_cv_header_stat_broken" >&6; }
20839 if test $ac_cv_header_stat_broken = yes; then
20840
20841 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20842
20843 fi
20844
20845
20846
20847
20848
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20850 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20851 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20852 $as_echo_n "(cached) " >&6
20853 else
20854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20855 /* end confdefs.h. */
20856 #include <time.h>
20857
20858 int
20859 main ()
20860 {
20861 static struct timespec x; x.tv_sec = x.tv_nsec;
20862 ;
20863 return 0;
20864 }
20865 _ACEOF
20866 if ac_fn_c_try_compile "$LINENO"; then :
20867 gl_cv_sys_struct_timespec_in_time_h=yes
20868 else
20869 gl_cv_sys_struct_timespec_in_time_h=no
20870 fi
20871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872 fi
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20874 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20875
20876 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20877 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20878 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20879 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20880 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20881 else
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20883 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20884 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20885 $as_echo_n "(cached) " >&6
20886 else
20887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h. */
20889 #include <sys/time.h>
20890
20891 int
20892 main ()
20893 {
20894 static struct timespec x; x.tv_sec = x.tv_nsec;
20895 ;
20896 return 0;
20897 }
20898 _ACEOF
20899 if ac_fn_c_try_compile "$LINENO"; then :
20900 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20901 else
20902 gl_cv_sys_struct_timespec_in_sys_time_h=no
20903 fi
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905 fi
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20907 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20908 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20909 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20910 else
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20912 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20913 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20914 $as_echo_n "(cached) " >&6
20915 else
20916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20917 /* end confdefs.h. */
20918 #include <pthread.h>
20919
20920 int
20921 main ()
20922 {
20923 static struct timespec x; x.tv_sec = x.tv_nsec;
20924 ;
20925 return 0;
20926 }
20927 _ACEOF
20928 if ac_fn_c_try_compile "$LINENO"; then :
20929 gl_cv_sys_struct_timespec_in_pthread_h=yes
20930 else
20931 gl_cv_sys_struct_timespec_in_pthread_h=no
20932 fi
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934 fi
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20936 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20937 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20938 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20939 fi
20940 fi
20941 fi
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957 if test $gl_cv_have_include_next = yes; then
20958 gl_cv_next_time_h='<'time.h'>'
20959 else
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20961 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20962 if test "${gl_cv_next_time_h+set}" = set; then :
20963 $as_echo_n "(cached) " >&6
20964 else
20965
20966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20967 /* end confdefs.h. */
20968 #include <time.h>
20969
20970 _ACEOF
20971 case "$host_os" in
20972 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20973 *) gl_absname_cpp="$ac_cpp" ;;
20974 esac
20975
20976 case "$host_os" in
20977 mingw*)
20978 gl_dirsep_regex='[/\\]'
20979 ;;
20980 *)
20981 gl_dirsep_regex='\/'
20982 ;;
20983 esac
20984 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20985
20986 gl_header_literal_regex=`echo 'time.h' \
20987 | sed -e "$gl_make_literal_regex_sed"`
20988 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20989 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20990 s|^/[^/]|//&|
20991 p
20992 q
20993 }'
20994 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20995 sed -n "$gl_absolute_header_sed"`'"'
20996
20997
20998 fi
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21000 $as_echo "$gl_cv_next_time_h" >&6; }
21001 fi
21002 NEXT_TIME_H=$gl_cv_next_time_h
21003
21004 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21005 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21006 gl_next_as_first_directive='<'time.h'>'
21007 else
21008 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21009 gl_next_as_first_directive=$gl_cv_next_time_h
21010 fi
21011 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21027 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
21028 ac_have_decl=1
21029 else
21030 ac_have_decl=0
21031 fi
21032
21033 cat >>confdefs.h <<_ACEOF
21034 #define HAVE_DECL_UNSETENV $ac_have_decl
21035 _ACEOF
21036
21037
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21039 $as_echo_n "checking whether the utimes function works... " >&6; }
21040 if test "${gl_cv_func_working_utimes+set}" = set; then :
21041 $as_echo_n "(cached) " >&6
21042 else
21043
21044 if test "$cross_compiling" = yes; then :
21045 gl_cv_func_working_utimes=no
21046 else
21047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21048 /* end confdefs.h. */
21049
21050 #include <sys/types.h>
21051 #include <sys/stat.h>
21052 #include <fcntl.h>
21053 #include <sys/time.h>
21054 #include <time.h>
21055 #include <unistd.h>
21056 #include <stdlib.h>
21057 #include <stdio.h>
21058 #include <utime.h>
21059
21060 static int
21061 inorder (time_t a, time_t b, time_t c)
21062 {
21063 return a <= b && b <= c;
21064 }
21065
21066 int
21067 main ()
21068 {
21069 int result = 0;
21070 char const *file = "conftest.utimes";
21071 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21072
21073 /* Test whether utimes() essentially works. */
21074 {
21075 struct stat sbuf;
21076 FILE *f = fopen (file, "w");
21077 if (f == NULL)
21078 result |= 1;
21079 else if (fclose (f) != 0)
21080 result |= 1;
21081 else if (utimes (file, timeval) != 0)
21082 result |= 2;
21083 else if (lstat (file, &sbuf) != 0)
21084 result |= 1;
21085 else if (!(sbuf.st_atime == timeval[0].tv_sec
21086 && sbuf.st_mtime == timeval[1].tv_sec))
21087 result |= 4;
21088 if (unlink (file) != 0)
21089 result |= 1;
21090 }
21091
21092 /* Test whether utimes() with a NULL argument sets the file's timestamp
21093 to the current time. Use 'fstat' as well as 'time' to
21094 determine the "current" time, to accommodate NFS file systems
21095 if there is a time skew between the host and the NFS server. */
21096 {
21097 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21098 if (fd < 0)
21099 result |= 1;
21100 else
21101 {
21102 time_t t0, t2;
21103 struct stat st0, st1, st2;
21104 if (time (&t0) == (time_t) -1)
21105 result |= 1;
21106 else if (fstat (fd, &st0) != 0)
21107 result |= 1;
21108 else if (utimes (file, timeval) != 0)
21109 result |= 2;
21110 else if (utimes (file, NULL) != 0)
21111 result |= 8;
21112 else if (fstat (fd, &st1) != 0)
21113 result |= 1;
21114 else if (write (fd, "\n", 1) != 1)
21115 result |= 1;
21116 else if (fstat (fd, &st2) != 0)
21117 result |= 1;
21118 else if (time (&t2) == (time_t) -1)
21119 result |= 1;
21120 else
21121 {
21122 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21123 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21124 if (! (st1.st_atime == st1.st_mtime))
21125 result |= 16;
21126 if (! (m_ok_POSIX || m_ok_NFS))
21127 result |= 32;
21128 }
21129 if (close (fd) != 0)
21130 result |= 1;
21131 }
21132 if (unlink (file) != 0)
21133 result |= 1;
21134 }
21135
21136 /* Test whether utimes() with a NULL argument works on read-only files. */
21137 {
21138 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21139 if (fd < 0)
21140 result |= 1;
21141 else if (close (fd) != 0)
21142 result |= 1;
21143 else if (utimes (file, NULL) != 0)
21144 result |= 64;
21145 if (unlink (file) != 0)
21146 result |= 1;
21147 }
21148
21149 return result;
21150 }
21151
21152 _ACEOF
21153 if ac_fn_c_try_run "$LINENO"; then :
21154 gl_cv_func_working_utimes=yes
21155 else
21156 gl_cv_func_working_utimes=no
21157 fi
21158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21159 conftest.$ac_objext conftest.beam conftest.$ac_ext
21160 fi
21161
21162 fi
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21164 $as_echo "$gl_cv_func_working_utimes" >&6; }
21165
21166 if test $gl_cv_func_working_utimes = yes; then
21167
21168 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21169
21170 fi
21171
21172
21173
21174
21175
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21177 $as_echo_n "checking for struct utimbuf... " >&6; }
21178 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21179 $as_echo_n "(cached) " >&6
21180 else
21181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21182 /* end confdefs.h. */
21183 #if HAVE_SYS_TIME_H
21184 #include <sys/time.h>
21185 #endif
21186 #include <time.h>
21187 #ifdef HAVE_UTIME_H
21188 #include <utime.h>
21189 #endif
21190
21191 int
21192 main ()
21193 {
21194 static struct utimbuf x; x.actime = x.modtime;
21195 ;
21196 return 0;
21197 }
21198 _ACEOF
21199 if ac_fn_c_try_compile "$LINENO"; then :
21200 gl_cv_sys_struct_utimbuf=yes
21201 else
21202 gl_cv_sys_struct_utimbuf=no
21203 fi
21204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21205 fi
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21207 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21208
21209 if test $gl_cv_sys_struct_utimbuf = yes; then
21210
21211 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
21212
21213 fi
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
21226 $as_echo_n "checking type of array argument to getgroups... " >&6; }
21227 if test "${ac_cv_type_getgroups+set}" = set; then :
21228 $as_echo_n "(cached) " >&6
21229 else
21230 if test "$cross_compiling" = yes; then :
21231 ac_cv_type_getgroups=cross
21232 else
21233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21234 /* end confdefs.h. */
21235 /* Thanks to Mike Rendell for this test. */
21236 $ac_includes_default
21237 #define NGID 256
21238 #undef MAX
21239 #define MAX(x, y) ((x) > (y) ? (x) : (y))
21240
21241 int
21242 main ()
21243 {
21244 gid_t gidset[NGID];
21245 int i, n;
21246 union { gid_t gval; long int lval; } val;
21247
21248 val.lval = -1;
21249 for (i = 0; i < NGID; i++)
21250 gidset[i] = val.gval;
21251 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
21252 gidset);
21253 /* Exit non-zero if getgroups seems to require an array of ints. This
21254 happens when gid_t is short int but getgroups modifies an array
21255 of ints. */
21256 return n > 0 && gidset[n] != val.gval;
21257 }
21258 _ACEOF
21259 if ac_fn_c_try_run "$LINENO"; then :
21260 ac_cv_type_getgroups=gid_t
21261 else
21262 ac_cv_type_getgroups=int
21263 fi
21264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21265 conftest.$ac_objext conftest.beam conftest.$ac_ext
21266 fi
21267
21268 if test $ac_cv_type_getgroups = cross; then
21269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21270 /* end confdefs.h. */
21271 #include <unistd.h>
21272
21273 _ACEOF
21274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21275 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
21276 ac_cv_type_getgroups=gid_t
21277 else
21278 ac_cv_type_getgroups=int
21279 fi
21280 rm -f conftest*
21281
21282 fi
21283 fi
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
21285 $as_echo "$ac_cv_type_getgroups" >&6; }
21286
21287 cat >>confdefs.h <<_ACEOF
21288 #define GETGROUPS_T $ac_cv_type_getgroups
21289 _ACEOF
21290
21291
21292
21293
21294 if false; then
21295 GL_COND_LIBTOOL_TRUE=
21296 GL_COND_LIBTOOL_FALSE='#'
21297 else
21298 GL_COND_LIBTOOL_TRUE='#'
21299 GL_COND_LIBTOOL_FALSE=
21300 fi
21301
21302 gl_cond_libtool=false
21303 gl_libdeps=
21304 gl_ltlibdeps=
21305 gl_m4_base='m4'
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315 gl_source_base='lib'
21316
21317
21318 if test $ac_cv_func_alloca_works = no; then
21319 :
21320 fi
21321
21322 # Define an additional variable used in the Makefile substitution.
21323 if test $ac_cv_working_alloca_h = yes; then
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21325 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21326 if test "${gl_cv_rpl_alloca+set}" = set; then :
21327 $as_echo_n "(cached) " >&6
21328 else
21329
21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21332
21333 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21334 Need own alloca
21335 #endif
21336
21337 _ACEOF
21338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21339 $EGREP "Need own alloca" >/dev/null 2>&1; then :
21340 gl_cv_rpl_alloca=yes
21341 else
21342 gl_cv_rpl_alloca=no
21343 fi
21344 rm -f conftest*
21345
21346
21347 fi
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21349 $as_echo "$gl_cv_rpl_alloca" >&6; }
21350 if test $gl_cv_rpl_alloca = yes; then
21351
21352 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21353
21354 ALLOCA_H=alloca.h
21355 else
21356 ALLOCA_H=
21357 fi
21358 else
21359 ALLOCA_H=alloca.h
21360 fi
21361
21362 if test -n "$ALLOCA_H"; then
21363 GL_GENERATE_ALLOCA_H_TRUE=
21364 GL_GENERATE_ALLOCA_H_FALSE='#'
21365 else
21366 GL_GENERATE_ALLOCA_H_TRUE='#'
21367 GL_GENERATE_ALLOCA_H_FALSE=
21368 fi
21369
21370
21371
21372
21373
21374
21375 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
21376 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
21377
21378 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
21379 # programs in the package would end up linked with that potentially-shared
21380 # library, inducing unnecessary run-time overhead.
21381 LIB_CLOCK_GETTIME=
21382
21383 gl_saved_libs=$LIBS
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21385 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21386 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21387 $as_echo_n "(cached) " >&6
21388 else
21389 ac_func_search_save_LIBS=$LIBS
21390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21391 /* end confdefs.h. */
21392
21393 /* Override any GCC internal prototype to avoid an error.
21394 Use char because int might match the return type of a GCC
21395 builtin and then its argument prototype would still apply. */
21396 #ifdef __cplusplus
21397 extern "C"
21398 #endif
21399 char clock_gettime ();
21400 int
21401 main ()
21402 {
21403 return clock_gettime ();
21404 ;
21405 return 0;
21406 }
21407 _ACEOF
21408 for ac_lib in '' rt posix4; do
21409 if test -z "$ac_lib"; then
21410 ac_res="none required"
21411 else
21412 ac_res=-l$ac_lib
21413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21414 fi
21415 if ac_fn_c_try_link "$LINENO"; then :
21416 ac_cv_search_clock_gettime=$ac_res
21417 fi
21418 rm -f core conftest.err conftest.$ac_objext \
21419 conftest$ac_exeext
21420 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21421 break
21422 fi
21423 done
21424 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21425
21426 else
21427 ac_cv_search_clock_gettime=no
21428 fi
21429 rm conftest.$ac_ext
21430 LIBS=$ac_func_search_save_LIBS
21431 fi
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21433 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21434 ac_res=$ac_cv_search_clock_gettime
21435 if test "$ac_res" != no; then :
21436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21437 test "$ac_cv_search_clock_gettime" = "none required" ||
21438 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
21439 fi
21440
21441 for ac_func in clock_gettime clock_settime
21442 do :
21443 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21444 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21445 eval as_val=\$$as_ac_var
21446 if test "x$as_val" = x""yes; then :
21447 cat >>confdefs.h <<_ACEOF
21448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21449 _ACEOF
21450
21451 fi
21452 done
21453
21454 LIBS=$gl_saved_libs
21455
21456
21457 :
21458
21459
21460
21461 cat >>confdefs.h <<_ACEOF
21462 #define GNULIB_CLOSE_STREAM 1
21463 _ACEOF
21464
21465
21466
21467
21468 :
21469
21470
21471
21472 :
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492 if test $gl_cv_have_include_next = yes; then
21493 gl_cv_next_dirent_h='<'dirent.h'>'
21494 else
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
21496 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
21497 if test "${gl_cv_next_dirent_h+set}" = set; then :
21498 $as_echo_n "(cached) " >&6
21499 else
21500
21501 if test $ac_cv_header_dirent_h = yes; then
21502
21503
21504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h. */
21506 #include <dirent.h>
21507
21508 _ACEOF
21509 case "$host_os" in
21510 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21511 *) gl_absname_cpp="$ac_cpp" ;;
21512 esac
21513
21514 case "$host_os" in
21515 mingw*)
21516 gl_dirsep_regex='[/\\]'
21517 ;;
21518 *)
21519 gl_dirsep_regex='\/'
21520 ;;
21521 esac
21522 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21523
21524 gl_header_literal_regex=`echo 'dirent.h' \
21525 | sed -e "$gl_make_literal_regex_sed"`
21526 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21527 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21528 s|^/[^/]|//&|
21529 p
21530 q
21531 }'
21532 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21533 sed -n "$gl_absolute_header_sed"`'"'
21534 else
21535 gl_cv_next_dirent_h='<'dirent.h'>'
21536 fi
21537
21538
21539 fi
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
21541 $as_echo "$gl_cv_next_dirent_h" >&6; }
21542 fi
21543 NEXT_DIRENT_H=$gl_cv_next_dirent_h
21544
21545 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21546 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21547 gl_next_as_first_directive='<'dirent.h'>'
21548 else
21549 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21550 gl_next_as_first_directive=$gl_cv_next_dirent_h
21551 fi
21552 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
21553
21554
21555
21556
21557 if test $ac_cv_header_dirent_h = yes; then
21558 HAVE_DIRENT_H=1
21559 else
21560 HAVE_DIRENT_H=0
21561 fi
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
21573
21574
21575 if test $HAVE_DUP2 = 1; then
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
21577 $as_echo_n "checking whether dup2 works... " >&6; }
21578 if test "${gl_cv_func_dup2_works+set}" = set; then :
21579 $as_echo_n "(cached) " >&6
21580 else
21581 if test "$cross_compiling" = yes; then :
21582 case "$host_os" in
21583 mingw*) # on this platform, dup2 always returns 0 for success
21584 gl_cv_func_dup2_works="guessing no" ;;
21585 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
21586 gl_cv_func_dup2_works="guessing no" ;;
21587 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
21588 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
21589 gl_cv_func_dup2_works="guessing no" ;;
21590 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
21591 gl_cv_func_dup2_works="guessing no" ;;
21592 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
21593 gl_cv_func_dup2_works="guessing no" ;;
21594 *) gl_cv_func_dup2_works="guessing yes" ;;
21595 esac
21596 else
21597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21598 /* end confdefs.h. */
21599
21600 #include <unistd.h>
21601 #include <fcntl.h>
21602 #include <errno.h>
21603 int
21604 main ()
21605 {
21606 int result = 0;
21607 #ifdef FD_CLOEXEC
21608 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
21609 result |= 1;
21610 #endif
21611 if (dup2 (1, 1) == 0)
21612 result |= 2;
21613 #ifdef FD_CLOEXEC
21614 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
21615 result |= 4;
21616 #endif
21617 close (0);
21618 if (dup2 (0, 0) != -1)
21619 result |= 8;
21620 /* Many gnulib modules require POSIX conformance of EBADF. */
21621 if (dup2 (2, 1000000) == -1 && errno != EBADF)
21622 result |= 16;
21623 /* Flush out a cygwin core dump. */
21624 if (dup2 (2, -1) != -1 || errno != EBADF)
21625 result |= 32;
21626 return result;
21627
21628 ;
21629 return 0;
21630 }
21631
21632 _ACEOF
21633 if ac_fn_c_try_run "$LINENO"; then :
21634 gl_cv_func_dup2_works=yes
21635 else
21636 gl_cv_func_dup2_works=no
21637 fi
21638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21639 conftest.$ac_objext conftest.beam conftest.$ac_ext
21640 fi
21641
21642
21643 fi
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
21645 $as_echo "$gl_cv_func_dup2_works" >&6; }
21646 case "$gl_cv_func_dup2_works" in
21647 *yes) ;;
21648 *)
21649 REPLACE_DUP2=1
21650 ;;
21651 esac
21652 fi
21653
21654
21655 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
21656
21657
21658
21659
21660
21661
21662
21663
21664 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
21665
21666
21667 fi
21668
21669
21670
21671
21672
21673 GNULIB_DUP2=1
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685 GNULIB_ENVIRON=1
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695 LIB_EXECINFO=''
21696 EXECINFO_H='execinfo.h'
21697
21698 if test $ac_cv_header_execinfo_h = yes; then
21699 gl_saved_libs=$LIBS
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
21701 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
21702 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21703 $as_echo_n "(cached) " >&6
21704 else
21705 ac_func_search_save_LIBS=$LIBS
21706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21707 /* end confdefs.h. */
21708
21709 /* Override any GCC internal prototype to avoid an error.
21710 Use char because int might match the return type of a GCC
21711 builtin and then its argument prototype would still apply. */
21712 #ifdef __cplusplus
21713 extern "C"
21714 #endif
21715 char backtrace_symbols_fd ();
21716 int
21717 main ()
21718 {
21719 return backtrace_symbols_fd ();
21720 ;
21721 return 0;
21722 }
21723 _ACEOF
21724 for ac_lib in '' execinfo; do
21725 if test -z "$ac_lib"; then
21726 ac_res="none required"
21727 else
21728 ac_res=-l$ac_lib
21729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21730 fi
21731 if ac_fn_c_try_link "$LINENO"; then :
21732 ac_cv_search_backtrace_symbols_fd=$ac_res
21733 fi
21734 rm -f core conftest.err conftest.$ac_objext \
21735 conftest$ac_exeext
21736 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21737 break
21738 fi
21739 done
21740 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21741
21742 else
21743 ac_cv_search_backtrace_symbols_fd=no
21744 fi
21745 rm conftest.$ac_ext
21746 LIBS=$ac_func_search_save_LIBS
21747 fi
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
21749 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
21750 ac_res=$ac_cv_search_backtrace_symbols_fd
21751 if test "$ac_res" != no; then :
21752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21753 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
21754 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
21755 fi
21756
21757 LIBS=$gl_saved_libs
21758 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
21759 fi
21760
21761 if test -n "$EXECINFO_H"; then
21762
21763
21764
21765
21766
21767
21768
21769
21770 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
21771
21772 fi
21773
21774
21775
21776 if test -n "$EXECINFO_H"; then
21777 GL_GENERATE_EXECINFO_H_TRUE=
21778 GL_GENERATE_EXECINFO_H_FALSE='#'
21779 else
21780 GL_GENERATE_EXECINFO_H_TRUE='#'
21781 GL_GENERATE_EXECINFO_H_FALSE=
21782 fi
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792 if test $ac_cv_func_faccessat = no; then
21793 HAVE_FACCESSAT=0
21794 fi
21795
21796 if test $HAVE_FACCESSAT = 0; then
21797
21798
21799
21800
21801
21802
21803
21804
21805 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
21806
21807
21808 for ac_func in access
21809 do :
21810 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
21811 if test "x$ac_cv_func_access" = x""yes; then :
21812 cat >>confdefs.h <<_ACEOF
21813 #define HAVE_ACCESS 1
21814 _ACEOF
21815
21816 fi
21817 done
21818
21819
21820 fi
21821
21822
21823 cat >>confdefs.h <<_ACEOF
21824 #define GNULIB_FACCESSAT 1
21825 _ACEOF
21826
21827
21828
21829
21830
21831
21832
21833 GNULIB_FACCESSAT=1
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850 if test $gl_cv_have_include_next = yes; then
21851 gl_cv_next_fcntl_h='<'fcntl.h'>'
21852 else
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21854 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21855 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21856 $as_echo_n "(cached) " >&6
21857 else
21858
21859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21860 /* end confdefs.h. */
21861 #include <fcntl.h>
21862
21863 _ACEOF
21864 case "$host_os" in
21865 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21866 *) gl_absname_cpp="$ac_cpp" ;;
21867 esac
21868
21869 case "$host_os" in
21870 mingw*)
21871 gl_dirsep_regex='[/\\]'
21872 ;;
21873 *)
21874 gl_dirsep_regex='\/'
21875 ;;
21876 esac
21877 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21878
21879 gl_header_literal_regex=`echo 'fcntl.h' \
21880 | sed -e "$gl_make_literal_regex_sed"`
21881 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21882 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21883 s|^/[^/]|//&|
21884 p
21885 q
21886 }'
21887 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21888 sed -n "$gl_absolute_header_sed"`'"'
21889
21890
21891 fi
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21893 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21894 fi
21895 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
21896
21897 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21899 gl_next_as_first_directive='<'fcntl.h'>'
21900 else
21901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21902 gl_next_as_first_directive=$gl_cv_next_fcntl_h
21903 fi
21904 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920 LIB_FDATASYNC=
21921
21922
21923 if test $ac_cv_have_decl_fdatasync = no; then
21924 HAVE_DECL_FDATASYNC=0
21925 for ac_func in fdatasync
21926 do :
21927 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
21928 if test "x$ac_cv_func_fdatasync" = x""yes; then :
21929 cat >>confdefs.h <<_ACEOF
21930 #define HAVE_FDATASYNC 1
21931 _ACEOF
21932
21933 fi
21934 done
21935
21936 if test $ac_cv_func_fdatasync = no; then
21937 HAVE_FDATASYNC=0
21938 fi
21939 else
21940 gl_saved_libs=$LIBS
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
21942 $as_echo_n "checking for library containing fdatasync... " >&6; }
21943 if test "${ac_cv_search_fdatasync+set}" = set; then :
21944 $as_echo_n "(cached) " >&6
21945 else
21946 ac_func_search_save_LIBS=$LIBS
21947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h. */
21949
21950 /* Override any GCC internal prototype to avoid an error.
21951 Use char because int might match the return type of a GCC
21952 builtin and then its argument prototype would still apply. */
21953 #ifdef __cplusplus
21954 extern "C"
21955 #endif
21956 char fdatasync ();
21957 int
21958 main ()
21959 {
21960 return fdatasync ();
21961 ;
21962 return 0;
21963 }
21964 _ACEOF
21965 for ac_lib in '' rt posix4; do
21966 if test -z "$ac_lib"; then
21967 ac_res="none required"
21968 else
21969 ac_res=-l$ac_lib
21970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21971 fi
21972 if ac_fn_c_try_link "$LINENO"; then :
21973 ac_cv_search_fdatasync=$ac_res
21974 fi
21975 rm -f core conftest.err conftest.$ac_objext \
21976 conftest$ac_exeext
21977 if test "${ac_cv_search_fdatasync+set}" = set; then :
21978 break
21979 fi
21980 done
21981 if test "${ac_cv_search_fdatasync+set}" = set; then :
21982
21983 else
21984 ac_cv_search_fdatasync=no
21985 fi
21986 rm conftest.$ac_ext
21987 LIBS=$ac_func_search_save_LIBS
21988 fi
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
21990 $as_echo "$ac_cv_search_fdatasync" >&6; }
21991 ac_res=$ac_cv_search_fdatasync
21992 if test "$ac_res" != no; then :
21993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21994 test "$ac_cv_search_fdatasync" = "none required" ||
21995 LIB_FDATASYNC=$ac_cv_search_fdatasync
21996 fi
21997
21998 LIBS=$gl_saved_libs
21999 fi
22000
22001 if test $HAVE_FDATASYNC = 0; then
22002
22003
22004
22005
22006
22007
22008
22009
22010 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
22011
22012 fi
22013
22014
22015
22016
22017
22018 GNULIB_FDATASYNC=1
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22030 #include <dirent.h>
22031
22032 "
22033 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
22034 ac_have_decl=1
22035 else
22036 ac_have_decl=0
22037 fi
22038
22039 cat >>confdefs.h <<_ACEOF
22040 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22041 _ACEOF
22042 if test $ac_have_decl = 1; then :
22043
22044 else
22045 HAVE_DECL_FDOPENDIR=0
22046 fi
22047
22048
22049 if test $ac_cv_func_fdopendir = no; then
22050 HAVE_FDOPENDIR=0
22051 else
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22053 $as_echo_n "checking whether fdopendir works... " >&6; }
22054 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
22055 $as_echo_n "(cached) " >&6
22056 else
22057 if test "$cross_compiling" = yes; then :
22058 case "$host_os" in
22059 # Guess yes on glibc systems.
22060 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
22061 # If we don't know, assume the worst.
22062 *) gl_cv_func_fdopendir_works="guessing no" ;;
22063 esac
22064
22065 else
22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h. */
22068
22069 #include <dirent.h>
22070 #include <fcntl.h>
22071 #include <unistd.h>
22072 #if !HAVE_DECL_FDOPENDIR
22073 extern
22074 # ifdef __cplusplus
22075 "C"
22076 # endif
22077 DIR *fdopendir (int);
22078 #endif
22079
22080 int
22081 main ()
22082 {
22083 int result = 0;
22084 int fd = open ("conftest.c", O_RDONLY);
22085 if (fd < 0) result |= 1;
22086 if (fdopendir (fd)) result |= 2;
22087 if (close (fd)) result |= 4;
22088 return result;
22089 ;
22090 return 0;
22091 }
22092 _ACEOF
22093 if ac_fn_c_try_run "$LINENO"; then :
22094 gl_cv_func_fdopendir_works=yes
22095 else
22096 gl_cv_func_fdopendir_works=no
22097 fi
22098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22099 conftest.$ac_objext conftest.beam conftest.$ac_ext
22100 fi
22101
22102 fi
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
22104 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
22105 case "$gl_cv_func_fdopendir_works" in
22106 *yes) ;;
22107 *)
22108 REPLACE_FDOPENDIR=1
22109 ;;
22110 esac
22111 fi
22112
22113 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
22114
22115
22116
22117
22118
22119
22120
22121
22122 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
22123
22124 fi
22125
22126
22127
22128
22129
22130 GNULIB_FDOPENDIR=1
22131
22132
22133
22134
22135
22136
22137
22138 cat >>confdefs.h <<_ACEOF
22139 #define GNULIB_FDOPENDIR 1
22140 _ACEOF
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150 fp_headers='
22151 # include <stdio.h>
22152 # if HAVE_STDIO_EXT_H
22153 # include <stdio_ext.h>
22154 # endif
22155 '
22156 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
22157 "
22158 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
22159 ac_have_decl=1
22160 else
22161 ac_have_decl=0
22162 fi
22163
22164 cat >>confdefs.h <<_ACEOF
22165 #define HAVE_DECL___FPENDING $ac_have_decl
22166 _ACEOF
22167
22168
22169 if test $ac_cv_func___fpending = no; then
22170
22171
22172
22173
22174
22175
22176
22177
22178 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
22179
22180
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
22182 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
22183 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
22184 $as_echo_n "(cached) " >&6
22185 else
22186
22187 for ac_expr in \
22188 \
22189 '# glibc2' \
22190 'fp->_IO_write_ptr - fp->_IO_write_base' \
22191 \
22192 '# traditional Unix' \
22193 'fp->_ptr - fp->_base' \
22194 \
22195 '# BSD' \
22196 'fp->_p - fp->_bf._base' \
22197 \
22198 '# SCO, Unixware' \
22199 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
22200 \
22201 '# QNX' \
22202 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
22203 \
22204 '# old glibc?' \
22205 'fp->__bufp - fp->__buffer' \
22206 \
22207 '# old glibc iostream?' \
22208 'fp->_pptr - fp->_pbase' \
22209 \
22210 '# emx+gcc' \
22211 'fp->_ptr - fp->_buffer' \
22212 \
22213 '# Minix' \
22214 'fp->_ptr - fp->_buf' \
22215 \
22216 '# Plan9' \
22217 'fp->wp - fp->buf' \
22218 \
22219 '# VMS' \
22220 '(*fp)->_ptr - (*fp)->_base' \
22221 \
22222 '# e.g., DGUX R4.11; the info is not available' \
22223 1 \
22224 ; do
22225
22226 # Skip each embedded comment.
22227 case "$ac_expr" in '#'*) continue;; esac
22228
22229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22230 /* end confdefs.h. */
22231 #include <stdio.h>
22232 int
22233 main ()
22234 {
22235 FILE *fp = stdin; (void) ($ac_expr);
22236 ;
22237 return 0;
22238 }
22239 _ACEOF
22240 if ac_fn_c_try_compile "$LINENO"; then :
22241 fp_done=yes
22242
22243 fi
22244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 test "$fp_done" = yes && break
22246 done
22247
22248 ac_cv_sys_pending_output_n_bytes=$ac_expr
22249
22250
22251 fi
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
22253 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
22254
22255 cat >>confdefs.h <<_ACEOF
22256 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
22257 _ACEOF
22258
22259
22260 fi
22261
22262
22263
22264
22265
22266
22267 if test $ac_cv_func_fstatat = no; then
22268 HAVE_FSTATAT=0
22269 else
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
22271 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
22272 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
22273 $as_echo_n "(cached) " >&6
22274 else
22275 if test "$cross_compiling" = yes; then :
22276 case "$host_os" in
22277 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
22278 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
22279 esac
22280
22281 else
22282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283 /* end confdefs.h. */
22284
22285 #include <fcntl.h>
22286 #include <sys/stat.h>
22287 int
22288 main (void)
22289 {
22290 struct stat a;
22291 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
22292 }
22293
22294 _ACEOF
22295 if ac_fn_c_try_run "$LINENO"; then :
22296 gl_cv_func_fstatat_zero_flag=yes
22297 else
22298 gl_cv_func_fstatat_zero_flag=no
22299 fi
22300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22301 conftest.$ac_objext conftest.beam conftest.$ac_ext
22302 fi
22303
22304
22305 fi
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
22307 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
22308
22309 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
22310 *yes+*yes) ;;
22311 *) REPLACE_FSTATAT=1
22312 case $gl_cv_func_fstatat_zero_flag in
22313 *yes)
22314
22315 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
22316
22317 ;;
22318 esac
22319 ;;
22320 esac
22321 fi
22322
22323 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
22324
22325
22326
22327
22328
22329
22330
22331
22332 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
22333
22334 fi
22335
22336
22337
22338
22339
22340 GNULIB_FSTATAT=1
22341
22342
22343
22344
22345
22346
22347
22348
22349 if test $ac_cv_func_fsync = no; then
22350 HAVE_FSYNC=0
22351 fi
22352
22353 if test $HAVE_FSYNC = 0; then
22354
22355
22356
22357
22358
22359
22360
22361
22362 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
22363
22364 :
22365 fi
22366
22367
22368
22369
22370
22371 GNULIB_FSYNC=1
22372
22373
22374
22375
22376
22377
22378
22379 # Persuade glibc <stdlib.h> to declare getloadavg().
22380
22381
22382 gl_save_LIBS=$LIBS
22383
22384 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
22385 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
22386 HAVE_GETLOADAVG=1
22387 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
22388 if test "x$ac_cv_func_getloadavg" = x""yes; then :
22389
22390 else
22391 gl_func_getloadavg_done=no
22392
22393 # Some systems with -lutil have (and need) -lkvm as well, some do not.
22394 # On Solaris, -lkvm requires nlist from -lelf, so check that first
22395 # to get the right answer into the cache.
22396 # For kstat on solaris, we need to test for libelf and libkvm to force the
22397 # definition of SVR4 below.
22398 if test $gl_func_getloadavg_done = no; then
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
22400 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
22401 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
22402 $as_echo_n "(cached) " >&6
22403 else
22404 ac_check_lib_save_LIBS=$LIBS
22405 LIBS="-lelf $LIBS"
22406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22407 /* end confdefs.h. */
22408
22409 /* Override any GCC internal prototype to avoid an error.
22410 Use char because int might match the return type of a GCC
22411 builtin and then its argument prototype would still apply. */
22412 #ifdef __cplusplus
22413 extern "C"
22414 #endif
22415 char elf_begin ();
22416 int
22417 main ()
22418 {
22419 return elf_begin ();
22420 ;
22421 return 0;
22422 }
22423 _ACEOF
22424 if ac_fn_c_try_link "$LINENO"; then :
22425 ac_cv_lib_elf_elf_begin=yes
22426 else
22427 ac_cv_lib_elf_elf_begin=no
22428 fi
22429 rm -f core conftest.err conftest.$ac_objext \
22430 conftest$ac_exeext conftest.$ac_ext
22431 LIBS=$ac_check_lib_save_LIBS
22432 fi
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
22434 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
22435 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
22436 LIBS="-lelf $LIBS"
22437 fi
22438
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
22440 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
22441 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
22442 $as_echo_n "(cached) " >&6
22443 else
22444 ac_check_lib_save_LIBS=$LIBS
22445 LIBS="-lkvm $LIBS"
22446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22447 /* end confdefs.h. */
22448
22449 /* Override any GCC internal prototype to avoid an error.
22450 Use char because int might match the return type of a GCC
22451 builtin and then its argument prototype would still apply. */
22452 #ifdef __cplusplus
22453 extern "C"
22454 #endif
22455 char kvm_open ();
22456 int
22457 main ()
22458 {
22459 return kvm_open ();
22460 ;
22461 return 0;
22462 }
22463 _ACEOF
22464 if ac_fn_c_try_link "$LINENO"; then :
22465 ac_cv_lib_kvm_kvm_open=yes
22466 else
22467 ac_cv_lib_kvm_kvm_open=no
22468 fi
22469 rm -f core conftest.err conftest.$ac_objext \
22470 conftest$ac_exeext conftest.$ac_ext
22471 LIBS=$ac_check_lib_save_LIBS
22472 fi
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
22474 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
22475 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
22476 LIBS="-lkvm $LIBS"
22477 fi
22478
22479 # Check for the 4.4BSD definition of getloadavg.
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
22481 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
22482 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
22483 $as_echo_n "(cached) " >&6
22484 else
22485 ac_check_lib_save_LIBS=$LIBS
22486 LIBS="-lutil $LIBS"
22487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22488 /* end confdefs.h. */
22489
22490 /* Override any GCC internal prototype to avoid an error.
22491 Use char because int might match the return type of a GCC
22492 builtin and then its argument prototype would still apply. */
22493 #ifdef __cplusplus
22494 extern "C"
22495 #endif
22496 char getloadavg ();
22497 int
22498 main ()
22499 {
22500 return getloadavg ();
22501 ;
22502 return 0;
22503 }
22504 _ACEOF
22505 if ac_fn_c_try_link "$LINENO"; then :
22506 ac_cv_lib_util_getloadavg=yes
22507 else
22508 ac_cv_lib_util_getloadavg=no
22509 fi
22510 rm -f core conftest.err conftest.$ac_objext \
22511 conftest$ac_exeext conftest.$ac_ext
22512 LIBS=$ac_check_lib_save_LIBS
22513 fi
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
22515 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
22516 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
22517 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
22518 fi
22519
22520 fi
22521
22522 if test $gl_func_getloadavg_done = no; then
22523 # There is a commonly available library for RS/6000 AIX.
22524 # Since it is not a standard part of AIX, it might be installed locally.
22525 gl_getloadavg_LIBS=$LIBS
22526 LIBS="-L/usr/local/lib $LIBS"
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
22528 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
22529 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
22530 $as_echo_n "(cached) " >&6
22531 else
22532 ac_check_lib_save_LIBS=$LIBS
22533 LIBS="-lgetloadavg $LIBS"
22534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22535 /* end confdefs.h. */
22536
22537 /* Override any GCC internal prototype to avoid an error.
22538 Use char because int might match the return type of a GCC
22539 builtin and then its argument prototype would still apply. */
22540 #ifdef __cplusplus
22541 extern "C"
22542 #endif
22543 char getloadavg ();
22544 int
22545 main ()
22546 {
22547 return getloadavg ();
22548 ;
22549 return 0;
22550 }
22551 _ACEOF
22552 if ac_fn_c_try_link "$LINENO"; then :
22553 ac_cv_lib_getloadavg_getloadavg=yes
22554 else
22555 ac_cv_lib_getloadavg_getloadavg=no
22556 fi
22557 rm -f core conftest.err conftest.$ac_objext \
22558 conftest$ac_exeext conftest.$ac_ext
22559 LIBS=$ac_check_lib_save_LIBS
22560 fi
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
22562 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
22563 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
22564 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
22565 else
22566 LIBS=$gl_getloadavg_LIBS
22567 fi
22568
22569 fi
22570
22571 # Set up the replacement function if necessary.
22572 if test $gl_func_getloadavg_done = no; then
22573 HAVE_GETLOADAVG=0
22574
22575 # Solaris has libkstat which does not require root.
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
22577 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
22578 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
22579 $as_echo_n "(cached) " >&6
22580 else
22581 ac_check_lib_save_LIBS=$LIBS
22582 LIBS="-lkstat $LIBS"
22583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22584 /* end confdefs.h. */
22585
22586 /* Override any GCC internal prototype to avoid an error.
22587 Use char because int might match the return type of a GCC
22588 builtin and then its argument prototype would still apply. */
22589 #ifdef __cplusplus
22590 extern "C"
22591 #endif
22592 char kstat_open ();
22593 int
22594 main ()
22595 {
22596 return kstat_open ();
22597 ;
22598 return 0;
22599 }
22600 _ACEOF
22601 if ac_fn_c_try_link "$LINENO"; then :
22602 ac_cv_lib_kstat_kstat_open=yes
22603 else
22604 ac_cv_lib_kstat_kstat_open=no
22605 fi
22606 rm -f core conftest.err conftest.$ac_objext \
22607 conftest$ac_exeext conftest.$ac_ext
22608 LIBS=$ac_check_lib_save_LIBS
22609 fi
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
22611 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
22612 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
22613 cat >>confdefs.h <<_ACEOF
22614 #define HAVE_LIBKSTAT 1
22615 _ACEOF
22616
22617 LIBS="-lkstat $LIBS"
22618
22619 fi
22620
22621 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
22622
22623 # AIX has libperfstat which does not require root
22624 if test $gl_func_getloadavg_done = no; then
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
22626 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
22627 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
22628 $as_echo_n "(cached) " >&6
22629 else
22630 ac_check_lib_save_LIBS=$LIBS
22631 LIBS="-lperfstat $LIBS"
22632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22633 /* end confdefs.h. */
22634
22635 /* Override any GCC internal prototype to avoid an error.
22636 Use char because int might match the return type of a GCC
22637 builtin and then its argument prototype would still apply. */
22638 #ifdef __cplusplus
22639 extern "C"
22640 #endif
22641 char perfstat_cpu_total ();
22642 int
22643 main ()
22644 {
22645 return perfstat_cpu_total ();
22646 ;
22647 return 0;
22648 }
22649 _ACEOF
22650 if ac_fn_c_try_link "$LINENO"; then :
22651 ac_cv_lib_perfstat_perfstat_cpu_total=yes
22652 else
22653 ac_cv_lib_perfstat_perfstat_cpu_total=no
22654 fi
22655 rm -f core conftest.err conftest.$ac_objext \
22656 conftest$ac_exeext conftest.$ac_ext
22657 LIBS=$ac_check_lib_save_LIBS
22658 fi
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
22660 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
22661 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
22662 cat >>confdefs.h <<_ACEOF
22663 #define HAVE_LIBPERFSTAT 1
22664 _ACEOF
22665
22666 LIBS="-lperfstat $LIBS"
22667
22668 fi
22669
22670 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
22671 fi
22672
22673 if test $gl_func_getloadavg_done = no; then
22674 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
22675 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
22676 gl_func_getloadavg_done=yes
22677
22678 $as_echo "#define DGUX 1" >>confdefs.h
22679
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
22681 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
22682 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
22683 $as_echo_n "(cached) " >&6
22684 else
22685 ac_check_lib_save_LIBS=$LIBS
22686 LIBS="-ldgc $LIBS"
22687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22688 /* end confdefs.h. */
22689
22690 /* Override any GCC internal prototype to avoid an error.
22691 Use char because int might match the return type of a GCC
22692 builtin and then its argument prototype would still apply. */
22693 #ifdef __cplusplus
22694 extern "C"
22695 #endif
22696 char dg_sys_info ();
22697 int
22698 main ()
22699 {
22700 return dg_sys_info ();
22701 ;
22702 return 0;
22703 }
22704 _ACEOF
22705 if ac_fn_c_try_link "$LINENO"; then :
22706 ac_cv_lib_dgc_dg_sys_info=yes
22707 else
22708 ac_cv_lib_dgc_dg_sys_info=no
22709 fi
22710 rm -f core conftest.err conftest.$ac_objext \
22711 conftest$ac_exeext conftest.$ac_ext
22712 LIBS=$ac_check_lib_save_LIBS
22713 fi
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
22715 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
22716 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
22717 cat >>confdefs.h <<_ACEOF
22718 #define HAVE_LIBDGC 1
22719 _ACEOF
22720
22721 LIBS="-ldgc $LIBS"
22722
22723 fi
22724
22725 fi
22726
22727
22728 fi
22729 fi
22730 fi
22731
22732
22733 if test "x$gl_save_LIBS" = x; then
22734 GETLOADAVG_LIBS=$LIBS
22735 else
22736 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
22737 fi
22738 LIBS=$gl_save_LIBS
22739
22740
22741 # Test whether the system declares getloadavg. Solaris has the function
22742 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
22743 for ac_header in sys/loadavg.h
22744 do :
22745 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
22746 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
22747 cat >>confdefs.h <<_ACEOF
22748 #define HAVE_SYS_LOADAVG_H 1
22749 _ACEOF
22750
22751 fi
22752
22753 done
22754
22755 if test $ac_cv_header_sys_loadavg_h = yes; then
22756 HAVE_SYS_LOADAVG_H=1
22757 else
22758 HAVE_SYS_LOADAVG_H=0
22759 fi
22760 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
22761 # include <sys/loadavg.h>
22762 #endif
22763 #include <stdlib.h>
22764 "
22765 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
22766
22767 else
22768 HAVE_DECL_GETLOADAVG=0
22769 fi
22770
22771
22772 if test $HAVE_GETLOADAVG = 0; then
22773
22774
22775
22776
22777
22778
22779
22780
22781 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
22782
22783
22784 # Figure out what our getloadavg.c needs.
22785
22786
22787
22788 # On HPUX9, an unprivileged user can get load averages this way.
22789 if test $gl_func_getloadavg_done = no; then
22790 for ac_func in pstat_getdynamic
22791 do :
22792 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
22793 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
22794 cat >>confdefs.h <<_ACEOF
22795 #define HAVE_PSTAT_GETDYNAMIC 1
22796 _ACEOF
22797 gl_func_getloadavg_done=yes
22798 fi
22799 done
22800
22801 fi
22802
22803 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
22804 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
22805 # Irix 4.0.5F has the header but not the library.
22806 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
22807 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
22808 gl_func_getloadavg_done=yes
22809
22810 $as_echo "#define SVR4 1" >>confdefs.h
22811
22812 fi
22813
22814 if test $gl_func_getloadavg_done = no; then
22815 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
22816 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
22817 gl_func_getloadavg_done=yes
22818
22819 $as_echo "#define UMAX 1" >>confdefs.h
22820
22821
22822 $as_echo "#define UMAX4_3 1" >>confdefs.h
22823
22824 fi
22825
22826
22827 fi
22828
22829 if test $gl_func_getloadavg_done = no; then
22830 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
22831 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
22832 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
22833
22834 fi
22835
22836
22837 fi
22838
22839 if test $gl_func_getloadavg_done = no; then
22840 for ac_header in mach/mach.h
22841 do :
22842 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
22843 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
22844 cat >>confdefs.h <<_ACEOF
22845 #define HAVE_MACH_MACH_H 1
22846 _ACEOF
22847
22848 fi
22849
22850 done
22851
22852 fi
22853
22854 for ac_header in nlist.h
22855 do :
22856 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
22857 if test "x$ac_cv_header_nlist_h" = x""yes; then :
22858 cat >>confdefs.h <<_ACEOF
22859 #define HAVE_NLIST_H 1
22860 _ACEOF
22861 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
22862 "
22863 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
22864
22865 cat >>confdefs.h <<_ACEOF
22866 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
22867 _ACEOF
22868
22869
22870 fi
22871
22872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22873 /* end confdefs.h. */
22874 #include <nlist.h>
22875 int
22876 main ()
22877 {
22878 struct nlist x;
22879 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
22880 x.n_un.n_name = "";
22881 #else
22882 x.n_name = "";
22883 #endif
22884 ;
22885 return 0;
22886 }
22887 _ACEOF
22888 if ac_fn_c_try_link "$LINENO"; then :
22889
22890 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
22891
22892 fi
22893 rm -f core conftest.err conftest.$ac_objext \
22894 conftest$ac_exeext conftest.$ac_ext
22895
22896 fi
22897
22898 done
22899
22900 fi
22901
22902
22903
22904
22905
22906 GNULIB_GETLOADAVG=1
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917 if test $REPLACE_GETOPT = 1; then
22918
22919
22920
22921
22922
22923
22924
22925
22926 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22937
22938
22939
22940
22941 GNULIB_GL_UNISTD_H_GETOPT=1
22942 fi
22943
22944
22945
22946
22947
22948
22949
22950 REPLACE_GETOPT=0
22951 if test -n "$gl_replace_getopt"; then
22952 REPLACE_GETOPT=1
22953 fi
22954
22955 if test $REPLACE_GETOPT = 1; then
22956
22957 GETOPT_H=getopt.h
22958
22959 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22960
22961
22962
22963 fi
22964
22965 if test $REPLACE_GETOPT = 1; then
22966
22967
22968
22969
22970
22971
22972
22973
22974 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22985
22986
22987
22988
22989 GNULIB_GL_UNISTD_H_GETOPT=1
22990 fi
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003 gl_gettimeofday_timezone=void
23004 if test $ac_cv_func_gettimeofday != yes; then
23005 HAVE_GETTIMEOFDAY=0
23006 else
23007
23008
23009
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23011 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23012 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23013 $as_echo_n "(cached) " >&6
23014 else
23015 if test "$cross_compiling" = yes; then :
23016 # When cross-compiling:
23017 case "$host_os" in
23018 # Guess all is fine on glibc systems.
23019 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
23020 # If we don't know, assume the worst.
23021 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
23022 esac
23023
23024 else
23025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026 /* end confdefs.h. */
23027 #include <string.h>
23028 #include <sys/time.h>
23029 #include <time.h>
23030 #include <stdlib.h>
23031
23032 int
23033 main ()
23034 {
23035
23036 time_t t = 0;
23037 struct tm *lt;
23038 struct tm saved_lt;
23039 struct timeval tv;
23040 lt = localtime (&t);
23041 saved_lt = *lt;
23042 gettimeofday (&tv, NULL);
23043 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23044
23045 ;
23046 return 0;
23047 }
23048 _ACEOF
23049 if ac_fn_c_try_run "$LINENO"; then :
23050 gl_cv_func_gettimeofday_clobber=no
23051 else
23052 gl_cv_func_gettimeofday_clobber=yes
23053 fi
23054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23055 conftest.$ac_objext conftest.beam conftest.$ac_ext
23056 fi
23057
23058 fi
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23060 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23061
23062 case "$gl_cv_func_gettimeofday_clobber" in
23063 *yes)
23064 REPLACE_GETTIMEOFDAY=1
23065
23066
23067 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
23068
23069
23070 $as_echo "#define localtime rpl_localtime" >>confdefs.h
23071
23072
23073
23074 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23075
23076 ;;
23077 esac
23078
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
23080 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
23081 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
23083 else
23084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23085 /* end confdefs.h. */
23086 #include <sys/time.h>
23087 struct timeval c;
23088 int gettimeofday (struct timeval *restrict, void *restrict);
23089
23090 int
23091 main ()
23092 {
23093 /* glibc uses struct timezone * rather than the POSIX void *
23094 if _GNU_SOURCE is defined. However, since the only portable
23095 use of gettimeofday uses NULL as the second parameter, and
23096 since the glibc definition is actually more typesafe, it is
23097 not worth wrapping this to get a compliant signature. */
23098 int (*f) (struct timeval *restrict, void *restrict)
23099 = gettimeofday;
23100 int x = f (&c, 0);
23101 return !(x | c.tv_sec | c.tv_usec);
23102
23103 ;
23104 return 0;
23105 }
23106 _ACEOF
23107 if ac_fn_c_try_compile "$LINENO"; then :
23108 gl_cv_func_gettimeofday_posix_signature=yes
23109 else
23110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23111 /* end confdefs.h. */
23112 #include <sys/time.h>
23113 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23114
23115 int
23116 main ()
23117 {
23118
23119 ;
23120 return 0;
23121 }
23122 _ACEOF
23123 if ac_fn_c_try_compile "$LINENO"; then :
23124 gl_cv_func_gettimeofday_posix_signature=almost
23125 else
23126 gl_cv_func_gettimeofday_posix_signature=no
23127 fi
23128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23129 fi
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 fi
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23133 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23134 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
23135 gl_gettimeofday_timezone='struct timezone'
23136 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23137 REPLACE_GETTIMEOFDAY=1
23138 fi
23139 if test $REPLACE_STRUCT_TIMEVAL = 1; then
23140 REPLACE_GETTIMEOFDAY=1
23141 fi
23142
23143 fi
23144
23145 cat >>confdefs.h <<_ACEOF
23146 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
23147 _ACEOF
23148
23149
23150 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
23151
23152
23153
23154
23155
23156
23157
23158
23159 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23160
23161
23162 for ac_header in sys/timeb.h
23163 do :
23164 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
23165 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
23166 cat >>confdefs.h <<_ACEOF
23167 #define HAVE_SYS_TIMEB_H 1
23168 _ACEOF
23169
23170 fi
23171
23172 done
23173
23174 for ac_func in _ftime
23175 do :
23176 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
23177 if test "x$ac_cv_func__ftime" = x""yes; then :
23178 cat >>confdefs.h <<_ACEOF
23179 #define HAVE__FTIME 1
23180 _ACEOF
23181
23182 fi
23183 done
23184
23185
23186 fi
23187
23188
23189
23190
23191
23192 GNULIB_GETTIMEOFDAY=1
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203 if test $ac_cv_func_lstat = yes; then
23204
23205 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
23206 *no)
23207 REPLACE_LSTAT=1
23208 ;;
23209 esac
23210 else
23211 HAVE_LSTAT=0
23212 fi
23213
23214 if test $REPLACE_LSTAT = 1; then
23215
23216
23217
23218
23219
23220
23221
23222
23223 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
23224
23225 :
23226 fi
23227
23228
23229
23230
23231
23232 GNULIB_LSTAT=1
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243 if test $ac_cv_have_decl_memrchr = no; then
23244 HAVE_DECL_MEMRCHR=0
23245 fi
23246
23247 for ac_func in memrchr
23248 do :
23249 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
23250 if test "x$ac_cv_func_memrchr" = x""yes; then :
23251 cat >>confdefs.h <<_ACEOF
23252 #define HAVE_MEMRCHR 1
23253 _ACEOF
23254
23255 fi
23256 done
23257
23258
23259 if test $ac_cv_func_memrchr = no; then
23260
23261
23262
23263
23264
23265
23266
23267
23268 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
23269
23270 :
23271 fi
23272
23273
23274
23275
23276
23277 GNULIB_MEMRCHR=1
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289 if test $APPLE_UNIVERSAL_BUILD = 1; then
23290 # A universal build on Apple Mac OS X platforms.
23291 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
23292 # But we need a configuration result that is valid in both modes.
23293 gl_cv_func_working_mktime=no
23294 fi
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
23296 $as_echo_n "checking for working mktime... " >&6; }
23297 if test "${gl_cv_func_working_mktime+set}" = set; then :
23298 $as_echo_n "(cached) " >&6
23299 else
23300 if test "$cross_compiling" = yes; then :
23301 gl_cv_func_working_mktime=no
23302 else
23303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23304 /* end confdefs.h. */
23305 /* Test program from Paul Eggert and Tony Leneis. */
23306 #include <limits.h>
23307 #include <stdlib.h>
23308 #include <time.h>
23309
23310 #ifdef HAVE_UNISTD_H
23311 # include <unistd.h>
23312 #endif
23313
23314 #if HAVE_DECL_ALARM
23315 # include <signal.h>
23316 #endif
23317
23318 /* Work around redefinition to rpl_putenv by other config tests. */
23319 #undef putenv
23320
23321 static time_t time_t_max;
23322 static time_t time_t_min;
23323
23324 /* Values we'll use to set the TZ environment variable. */
23325 static char *tz_strings[] = {
23326 (char *) 0, "TZ=GMT0", "TZ=JST-9",
23327 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
23328 };
23329 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
23330
23331 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
23332 Based on a problem report from Andreas Jaeger. */
23333 static int
23334 spring_forward_gap ()
23335 {
23336 /* glibc (up to about 1998-10-07) failed this test. */
23337 struct tm tm;
23338
23339 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23340 instead of "TZ=America/Vancouver" in order to detect the bug even
23341 on systems that don't support the Olson extension, or don't have the
23342 full zoneinfo tables installed. */
23343 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23344
23345 tm.tm_year = 98;
23346 tm.tm_mon = 3;
23347 tm.tm_mday = 5;
23348 tm.tm_hour = 2;
23349 tm.tm_min = 0;
23350 tm.tm_sec = 0;
23351 tm.tm_isdst = -1;
23352 return mktime (&tm) != (time_t) -1;
23353 }
23354
23355 static int
23356 mktime_test1 (time_t now)
23357 {
23358 struct tm *lt;
23359 return ! (lt = localtime (&now)) || mktime (lt) == now;
23360 }
23361
23362 static int
23363 mktime_test (time_t now)
23364 {
23365 return (mktime_test1 (now)
23366 && mktime_test1 ((time_t) (time_t_max - now))
23367 && mktime_test1 ((time_t) (time_t_min + now)));
23368 }
23369
23370 static int
23371 irix_6_4_bug ()
23372 {
23373 /* Based on code from Ariel Faigon. */
23374 struct tm tm;
23375 tm.tm_year = 96;
23376 tm.tm_mon = 3;
23377 tm.tm_mday = 0;
23378 tm.tm_hour = 0;
23379 tm.tm_min = 0;
23380 tm.tm_sec = 0;
23381 tm.tm_isdst = -1;
23382 mktime (&tm);
23383 return tm.tm_mon == 2 && tm.tm_mday == 31;
23384 }
23385
23386 static int
23387 bigtime_test (int j)
23388 {
23389 struct tm tm;
23390 time_t now;
23391 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
23392 now = mktime (&tm);
23393 if (now != (time_t) -1)
23394 {
23395 struct tm *lt = localtime (&now);
23396 if (! (lt
23397 && lt->tm_year == tm.tm_year
23398 && lt->tm_mon == tm.tm_mon
23399 && lt->tm_mday == tm.tm_mday
23400 && lt->tm_hour == tm.tm_hour
23401 && lt->tm_min == tm.tm_min
23402 && lt->tm_sec == tm.tm_sec
23403 && lt->tm_yday == tm.tm_yday
23404 && lt->tm_wday == tm.tm_wday
23405 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
23406 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
23407 return 0;
23408 }
23409 return 1;
23410 }
23411
23412 static int
23413 year_2050_test ()
23414 {
23415 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
23416 ignoring leap seconds. */
23417 unsigned long int answer = 2527315200UL;
23418
23419 struct tm tm;
23420 time_t t;
23421 tm.tm_year = 2050 - 1900;
23422 tm.tm_mon = 2 - 1;
23423 tm.tm_mday = 1;
23424 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
23425 tm.tm_isdst = -1;
23426
23427 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23428 instead of "TZ=America/Vancouver" in order to detect the bug even
23429 on systems that don't support the Olson extension, or don't have the
23430 full zoneinfo tables installed. */
23431 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23432
23433 t = mktime (&tm);
23434
23435 /* Check that the result is either a failure, or close enough
23436 to the correct answer that we can assume the discrepancy is
23437 due to leap seconds. */
23438 return (t == (time_t) -1
23439 || (0 < t && answer - 120 <= t && t <= answer + 120));
23440 }
23441
23442 int
23443 main ()
23444 {
23445 int result = 0;
23446 time_t t, delta;
23447 int i, j;
23448 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
23449 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
23450
23451 #if HAVE_DECL_ALARM
23452 /* This test makes some buggy mktime implementations loop.
23453 Give up after 60 seconds; a mktime slower than that
23454 isn't worth using anyway. */
23455 signal (SIGALRM, SIG_DFL);
23456 alarm (60);
23457 #endif
23458
23459 time_t_max = (! time_t_signed
23460 ? (time_t) -1
23461 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
23462 * 2 + 1));
23463 time_t_min = (! time_t_signed
23464 ? (time_t) 0
23465 : time_t_signed_magnitude
23466 ? ~ (time_t) 0
23467 : ~ time_t_max);
23468
23469 delta = time_t_max / 997; /* a suitable prime number */
23470 for (i = 0; i < N_STRINGS; i++)
23471 {
23472 if (tz_strings[i])
23473 putenv (tz_strings[i]);
23474
23475 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
23476 if (! mktime_test (t))
23477 result |= 1;
23478 if ((result & 2) == 0
23479 && ! (mktime_test ((time_t) 1)
23480 && mktime_test ((time_t) (60 * 60))
23481 && mktime_test ((time_t) (60 * 60 * 24))))
23482 result |= 2;
23483
23484 for (j = 1; (result & 4) == 0; j <<= 1)
23485 {
23486 if (! bigtime_test (j))
23487 result |= 4;
23488 if (INT_MAX / 2 < j)
23489 break;
23490 }
23491 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
23492 result |= 8;
23493 }
23494 if (! irix_6_4_bug ())
23495 result |= 16;
23496 if (! spring_forward_gap ())
23497 result |= 32;
23498 if (! year_2050_test ())
23499 result |= 64;
23500 return result;
23501 }
23502 _ACEOF
23503 if ac_fn_c_try_run "$LINENO"; then :
23504 gl_cv_func_working_mktime=yes
23505 else
23506 gl_cv_func_working_mktime=no
23507 fi
23508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23509 conftest.$ac_objext conftest.beam conftest.$ac_ext
23510 fi
23511
23512
23513 fi
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
23515 $as_echo "$gl_cv_func_working_mktime" >&6; }
23516
23517 if test $gl_cv_func_working_mktime = no; then
23518 REPLACE_MKTIME=1
23519 else
23520 REPLACE_MKTIME=0
23521 fi
23522
23523 if test $REPLACE_MKTIME = 1; then
23524
23525
23526
23527
23528
23529
23530
23531
23532 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
23533
23534 :
23535 fi
23536
23537
23538
23539
23540
23541 GNULIB_MKTIME=1
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553 if test $ac_cv_func_pselect = yes; then
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
23555 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
23556 if test "${gl_cv_sig_pselect+set}" = set; then :
23557 $as_echo_n "(cached) " >&6
23558 else
23559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23561 #include <sys/select.h>
23562
23563 int
23564 main ()
23565 {
23566 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
23567 struct timespec const *restrict,
23568 sigset_t const *restrict) = pselect;
23569 return !p;
23570 ;
23571 return 0;
23572 }
23573 _ACEOF
23574 if ac_fn_c_try_link "$LINENO"; then :
23575 gl_cv_sig_pselect=yes
23576 else
23577 gl_cv_sig_pselect=no
23578 fi
23579 rm -f core conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
23581 fi
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
23583 $as_echo "$gl_cv_sig_pselect" >&6; }
23584
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
23586 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
23587 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
23588 $as_echo_n "(cached) " >&6
23589 else
23590
23591 if test "$cross_compiling" = yes; then :
23592
23593 case "$host_os" in
23594 # Guess yes on glibc systems.
23595 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
23596 # If we don't know, assume the worst.
23597 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
23598 esac
23599
23600 else
23601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23602 /* end confdefs.h. */
23603
23604 #include <sys/types.h>
23605 #include <sys/time.h>
23606 #if HAVE_SYS_SELECT_H
23607 # include <sys/select.h>
23608 #endif
23609 #include <unistd.h>
23610 #include <errno.h>
23611
23612 int
23613 main ()
23614 {
23615
23616 fd_set set;
23617 dup2(0, 16);
23618 FD_ZERO(&set);
23619 FD_SET(16, &set);
23620 close(16);
23621 struct timespec timeout;
23622 timeout.tv_sec = 0;
23623 timeout.tv_nsec = 5000;
23624 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
23625
23626 ;
23627 return 0;
23628 }
23629 _ACEOF
23630 if ac_fn_c_try_run "$LINENO"; then :
23631 gl_cv_func_pselect_detects_ebadf=yes
23632 else
23633 gl_cv_func_pselect_detects_ebadf=no
23634 fi
23635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23636 conftest.$ac_objext conftest.beam conftest.$ac_ext
23637 fi
23638
23639
23640 fi
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
23642 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
23643 case $gl_cv_func_pselect_detects_ebadf in
23644 *yes) ;;
23645 *) REPLACE_PSELECT=1 ;;
23646 esac
23647 fi
23648
23649 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
23650 REPLACE_PSELECT=1
23651 fi
23652
23653 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
23654
23655
23656
23657
23658
23659
23660
23661
23662 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
23663
23664 fi
23665
23666
23667
23668
23669
23670 GNULIB_PSELECT=1
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680 LIB_PTHREAD_SIGMASK=
23681
23682
23683
23684
23685 if test "$gl_threads_api" = posix; then
23686 if test $ac_cv_func_pthread_sigmask = yes; then
23687 :
23688 else
23689 if test -n "$LIBMULTITHREAD"; then
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
23691 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
23692 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
23693 $as_echo_n "(cached) " >&6
23694 else
23695 gl_save_LIBS="$LIBS"
23696 LIBS="$LIBS $LIBMULTITHREAD"
23697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23698 /* end confdefs.h. */
23699 #include <pthread.h>
23700 #include <signal.h>
23701
23702 int
23703 main ()
23704 {
23705 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
23706 ;
23707 return 0;
23708 }
23709
23710 _ACEOF
23711 if ac_fn_c_try_link "$LINENO"; then :
23712 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
23713 else
23714 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
23715 fi
23716 rm -f core conftest.err conftest.$ac_objext \
23717 conftest$ac_exeext conftest.$ac_ext
23718 LIBS="$gl_save_LIBS"
23719
23720 fi
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
23722 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
23723 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
23724 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
23725 else
23726 HAVE_PTHREAD_SIGMASK=0
23727 fi
23728 else
23729 HAVE_PTHREAD_SIGMASK=0
23730 fi
23731 fi
23732 else
23733 if test $ac_cv_func_pthread_sigmask = yes; then
23734 REPLACE_PTHREAD_SIGMASK=1
23735 else
23736 HAVE_PTHREAD_SIGMASK=0
23737 fi
23738 fi
23739
23740
23741
23742
23743 if test $HAVE_PTHREAD_SIGMASK = 1; then
23744
23745
23746 if test -z "$LIB_PTHREAD_SIGMASK"; then
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
23748 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
23749 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
23750 $as_echo_n "(cached) " >&6
23751 else
23752
23753 if test "$cross_compiling" = yes; then :
23754
23755 case "$host_os" in
23756 freebsd* | hpux* | solaris | solaris2.[2-9]*)
23757 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
23758 *)
23759 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
23760 esac
23761
23762 else
23763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23764 /* end confdefs.h. */
23765
23766 #include <pthread.h>
23767 #include <signal.h>
23768 #include <stddef.h>
23769 int main ()
23770 {
23771 sigset_t set;
23772 sigemptyset (&set);
23773 return pthread_sigmask (1729, &set, NULL) != 0;
23774 }
23775 _ACEOF
23776 if ac_fn_c_try_run "$LINENO"; then :
23777 gl_cv_func_pthread_sigmask_in_libc_works=no
23778 else
23779 gl_cv_func_pthread_sigmask_in_libc_works=yes
23780 fi
23781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23782 conftest.$ac_objext conftest.beam conftest.$ac_ext
23783 fi
23784
23785
23786 fi
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
23788 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
23789 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
23790 *no)
23791 REPLACE_PTHREAD_SIGMASK=1
23792
23793 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
23794
23795 ;;
23796 esac
23797 fi
23798
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
23800 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
23801 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
23802 $as_echo_n "(cached) " >&6
23803 else
23804
23805 gl_save_LIBS="$LIBS"
23806 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
23807 if test "$cross_compiling" = yes; then :
23808 case "$host_os" in
23809 cygwin*)
23810 gl_cv_func_pthread_sigmask_return_works="guessing no";;
23811 *)
23812 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
23813 esac
23814
23815 else
23816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23817 /* end confdefs.h. */
23818
23819 #include <pthread.h>
23820 #include <signal.h>
23821 #include <stddef.h>
23822 int main ()
23823 {
23824 sigset_t set;
23825 sigemptyset (&set);
23826 if (pthread_sigmask (1729, &set, NULL) == -1)
23827 return 1;
23828 return 0;
23829 }
23830 _ACEOF
23831 if ac_fn_c_try_run "$LINENO"; then :
23832 gl_cv_func_pthread_sigmask_return_works=yes
23833 else
23834 gl_cv_func_pthread_sigmask_return_works=no
23835 fi
23836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23837 conftest.$ac_objext conftest.beam conftest.$ac_ext
23838 fi
23839
23840 LIBS="$gl_save_LIBS"
23841
23842 fi
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
23844 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
23845 case "$gl_cv_func_pthread_sigmask_return_works" in
23846 *no)
23847 REPLACE_PTHREAD_SIGMASK=1
23848
23849 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
23850
23851 ;;
23852 esac
23853
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
23855 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
23856 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
23857 $as_echo_n "(cached) " >&6
23858 else
23859
23860 case "$host_os" in
23861 irix*)
23862 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
23863 *)
23864 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
23865 esac
23866 gl_save_LIBS="$LIBS"
23867 LIBS="$LIBS $LIBMULTITHREAD"
23868 if test "$cross_compiling" = yes; then :
23869 :
23870 else
23871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23872 /* end confdefs.h. */
23873
23874 #include <pthread.h>
23875 #include <signal.h>
23876 #include <stdio.h>
23877 #include <stdlib.h>
23878 #include <unistd.h>
23879 static volatile int sigint_occurred;
23880 static void
23881 sigint_handler (int sig)
23882 {
23883 sigint_occurred++;
23884 }
23885 int main ()
23886 {
23887 sigset_t set;
23888 int pid = getpid ();
23889 char command[80];
23890 signal (SIGINT, sigint_handler);
23891 sigemptyset (&set);
23892 sigaddset (&set, SIGINT);
23893 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
23894 return 1;
23895 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
23896 if (!(system (command) == 0))
23897 return 2;
23898 sleep (2);
23899 if (!(sigint_occurred == 0))
23900 return 3;
23901 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
23902 return 4;
23903 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
23904 return 5;
23905 return 0;
23906 }
23907 _ACEOF
23908 if ac_fn_c_try_run "$LINENO"; then :
23909 :
23910 else
23911 gl_cv_func_pthread_sigmask_unblock_works=no
23912 fi
23913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23914 conftest.$ac_objext conftest.beam conftest.$ac_ext
23915 fi
23916
23917 LIBS="$gl_save_LIBS"
23918
23919 fi
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
23921 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
23922 case "$gl_cv_func_pthread_sigmask_unblock_works" in
23923 *no)
23924 REPLACE_PTHREAD_SIGMASK=1
23925
23926 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
23927
23928 ;;
23929 esac
23930 fi
23931
23932 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
23933
23934
23935
23936
23937
23938
23939
23940
23941 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
23942
23943
23944 if test $HAVE_PTHREAD_SIGMASK = 1; then
23945
23946 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23947
23948 fi
23949
23950 fi
23951
23952
23953
23954
23955
23956 GNULIB_PTHREAD_SIGMASK=1
23957
23958
23959
23960
23961
23962
23963
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23965 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23966 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23967 $as_echo_n "(cached) " >&6
23968 else
23969 if test "$cross_compiling" = yes; then :
23970 case "$host_os" in
23971 # Guess yes on glibc systems.
23972 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
23973 # If we don't know, assume the worst.
23974 *) gl_cv_func_svid_putenv="guessing no" ;;
23975 esac
23976
23977 else
23978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23979 /* end confdefs.h. */
23980 $ac_includes_default
23981 int
23982 main ()
23983 {
23984
23985 /* Put it in env. */
23986 if (putenv ("CONFTEST_putenv=val"))
23987 return 1;
23988
23989 /* Try to remove it. */
23990 if (putenv ("CONFTEST_putenv"))
23991 return 2;
23992
23993 /* Make sure it was deleted. */
23994 if (getenv ("CONFTEST_putenv") != 0)
23995 return 3;
23996
23997 return 0;
23998
23999 ;
24000 return 0;
24001 }
24002 _ACEOF
24003 if ac_fn_c_try_run "$LINENO"; then :
24004 gl_cv_func_svid_putenv=yes
24005 else
24006 gl_cv_func_svid_putenv=no
24007 fi
24008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24009 conftest.$ac_objext conftest.beam conftest.$ac_ext
24010 fi
24011
24012
24013 fi
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
24015 $as_echo "$gl_cv_func_svid_putenv" >&6; }
24016 case "$gl_cv_func_svid_putenv" in
24017 *yes) ;;
24018 *)
24019 REPLACE_PUTENV=1
24020 ;;
24021 esac
24022
24023 if test $REPLACE_PUTENV = 1; then
24024
24025
24026
24027
24028
24029
24030
24031
24032 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
24033
24034
24035 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
24036 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
24037 ac_have_decl=1
24038 else
24039 ac_have_decl=0
24040 fi
24041
24042 cat >>confdefs.h <<_ACEOF
24043 #define HAVE_DECL__PUTENV $ac_have_decl
24044 _ACEOF
24045
24046
24047 fi
24048
24049
24050
24051
24052
24053 GNULIB_PUTENV=1
24054
24055
24056
24057
24058
24059
24060 # Check whether --enable-acl was given.
24061 if test "${enable_acl+set}" = set; then :
24062 enableval=$enable_acl;
24063 else
24064 enable_acl=auto
24065 fi
24066
24067
24068 LIB_ACL=
24069 use_acl=0
24070 if test "x$enable_acl" != "xno"; then
24071 for ac_header in sys/acl.h
24072 do :
24073 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
24074 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
24075 cat >>confdefs.h <<_ACEOF
24076 #define HAVE_SYS_ACL_H 1
24077 _ACEOF
24078
24079 fi
24080
24081 done
24082
24083 if test $ac_cv_header_sys_acl_h = yes; then
24084 ac_save_LIBS=$LIBS
24085
24086 if test $use_acl = 0; then
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
24088 $as_echo_n "checking for library containing acl_get_file... " >&6; }
24089 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24090 $as_echo_n "(cached) " >&6
24091 else
24092 ac_func_search_save_LIBS=$LIBS
24093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24094 /* end confdefs.h. */
24095
24096 /* Override any GCC internal prototype to avoid an error.
24097 Use char because int might match the return type of a GCC
24098 builtin and then its argument prototype would still apply. */
24099 #ifdef __cplusplus
24100 extern "C"
24101 #endif
24102 char acl_get_file ();
24103 int
24104 main ()
24105 {
24106 return acl_get_file ();
24107 ;
24108 return 0;
24109 }
24110 _ACEOF
24111 for ac_lib in '' acl pacl; do
24112 if test -z "$ac_lib"; then
24113 ac_res="none required"
24114 else
24115 ac_res=-l$ac_lib
24116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24117 fi
24118 if ac_fn_c_try_link "$LINENO"; then :
24119 ac_cv_search_acl_get_file=$ac_res
24120 fi
24121 rm -f core conftest.err conftest.$ac_objext \
24122 conftest$ac_exeext
24123 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24124 break
24125 fi
24126 done
24127 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24128
24129 else
24130 ac_cv_search_acl_get_file=no
24131 fi
24132 rm conftest.$ac_ext
24133 LIBS=$ac_func_search_save_LIBS
24134 fi
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
24136 $as_echo "$ac_cv_search_acl_get_file" >&6; }
24137 ac_res=$ac_cv_search_acl_get_file
24138 if test "$ac_res" != no; then :
24139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24140 if test "$ac_cv_search_acl_get_file" != "none required"; then
24141 LIB_ACL=$ac_cv_search_acl_get_file
24142 fi
24143 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
24144 acl_free acl_from_mode acl_from_text \
24145 acl_delete_def_file acl_extended_file \
24146 acl_delete_fd_np acl_delete_file_np \
24147 acl_copy_ext_native acl_create_entry_np \
24148 acl_to_short_text acl_free_text
24149 do :
24150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24151 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24152 eval as_val=\$$as_ac_var
24153 if test "x$as_val" = x""yes; then :
24154 cat >>confdefs.h <<_ACEOF
24155 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24156 _ACEOF
24157
24158 fi
24159 done
24160
24161 # If the acl_get_file bug is detected, don't enable the ACL support.
24162
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
24164 $as_echo_n "checking for working acl_get_file... " >&6; }
24165 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
24166 $as_echo_n "(cached) " >&6
24167 else
24168 if test "$cross_compiling" = yes; then :
24169 gl_cv_func_working_acl_get_file=cross-compiling
24170 else
24171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24172 /* end confdefs.h. */
24173 #include <sys/types.h>
24174 #include <sys/acl.h>
24175 #include <errno.h>
24176
24177 int
24178 main ()
24179 {
24180 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
24181 return 1;
24182 return 0;
24183
24184 ;
24185 return 0;
24186 }
24187 _ACEOF
24188 if ac_fn_c_try_run "$LINENO"; then :
24189 gl_cv_func_working_acl_get_file=yes
24190 else
24191 gl_cv_func_working_acl_get_file=no
24192 fi
24193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24194 conftest.$ac_objext conftest.beam conftest.$ac_ext
24195 fi
24196
24197 fi
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
24199 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
24200
24201 if test $gl_cv_func_working_acl_get_file = yes; then :
24202 use_acl=1
24203 fi
24204
24205 if test $use_acl = 1; then
24206 for ac_header in acl/libacl.h
24207 do :
24208 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
24209 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
24210 cat >>confdefs.h <<_ACEOF
24211 #define HAVE_ACL_LIBACL_H 1
24212 _ACEOF
24213
24214 fi
24215
24216 done
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226 for ac_func in acl_entries
24227 do :
24228 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
24229 if test "x$ac_cv_func_acl_entries" = x""yes; then :
24230 cat >>confdefs.h <<_ACEOF
24231 #define HAVE_ACL_ENTRIES 1
24232 _ACEOF
24233
24234 else
24235
24236 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24237
24238 fi
24239 done
24240
24241
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
24243 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
24244 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
24245 $as_echo_n "(cached) " >&6
24246 else
24247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24248 /* end confdefs.h. */
24249 #include <sys/types.h>
24250 #include <sys/acl.h>
24251 int type = ACL_FIRST_ENTRY;
24252 int
24253 main ()
24254 {
24255
24256 ;
24257 return 0;
24258 }
24259 _ACEOF
24260 if ac_fn_c_try_compile "$LINENO"; then :
24261 gl_cv_acl_ACL_FIRST_ENTRY=yes
24262 else
24263 gl_cv_acl_ACL_FIRST_ENTRY=no
24264 fi
24265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266 fi
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
24268 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
24269 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
24270
24271 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
24272
24273 fi
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
24275 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
24276 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
24277 $as_echo_n "(cached) " >&6
24278 else
24279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24280 /* end confdefs.h. */
24281 #include <sys/types.h>
24282 #include <sys/acl.h>
24283 int type = ACL_TYPE_EXTENDED;
24284 int
24285 main ()
24286 {
24287
24288 ;
24289 return 0;
24290 }
24291 _ACEOF
24292 if ac_fn_c_try_compile "$LINENO"; then :
24293 gl_cv_acl_ACL_TYPE_EXTENDED=yes
24294 else
24295 gl_cv_acl_ACL_TYPE_EXTENDED=no
24296 fi
24297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24298 fi
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
24300 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
24301 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
24302
24303 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
24304
24305 fi
24306 else
24307 LIB_ACL=
24308 fi
24309
24310 fi
24311
24312 fi
24313
24314 if test $use_acl = 0; then
24315 for ac_func in facl
24316 do :
24317 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
24318 if test "x$ac_cv_func_facl" = x""yes; then :
24319 cat >>confdefs.h <<_ACEOF
24320 #define HAVE_FACL 1
24321 _ACEOF
24322
24323 fi
24324 done
24325
24326 if test $ac_cv_func_facl = yes; then
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
24328 $as_echo_n "checking for library containing acl_trivial... " >&6; }
24329 if test "${ac_cv_search_acl_trivial+set}" = set; then :
24330 $as_echo_n "(cached) " >&6
24331 else
24332 ac_func_search_save_LIBS=$LIBS
24333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24334 /* end confdefs.h. */
24335
24336 /* Override any GCC internal prototype to avoid an error.
24337 Use char because int might match the return type of a GCC
24338 builtin and then its argument prototype would still apply. */
24339 #ifdef __cplusplus
24340 extern "C"
24341 #endif
24342 char acl_trivial ();
24343 int
24344 main ()
24345 {
24346 return acl_trivial ();
24347 ;
24348 return 0;
24349 }
24350 _ACEOF
24351 for ac_lib in '' sec; do
24352 if test -z "$ac_lib"; then
24353 ac_res="none required"
24354 else
24355 ac_res=-l$ac_lib
24356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24357 fi
24358 if ac_fn_c_try_link "$LINENO"; then :
24359 ac_cv_search_acl_trivial=$ac_res
24360 fi
24361 rm -f core conftest.err conftest.$ac_objext \
24362 conftest$ac_exeext
24363 if test "${ac_cv_search_acl_trivial+set}" = set; then :
24364 break
24365 fi
24366 done
24367 if test "${ac_cv_search_acl_trivial+set}" = set; then :
24368
24369 else
24370 ac_cv_search_acl_trivial=no
24371 fi
24372 rm conftest.$ac_ext
24373 LIBS=$ac_func_search_save_LIBS
24374 fi
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
24376 $as_echo "$ac_cv_search_acl_trivial" >&6; }
24377 ac_res=$ac_cv_search_acl_trivial
24378 if test "$ac_res" != no; then :
24379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24380 if test "$ac_cv_search_acl_trivial" != "none required"; then
24381 LIB_ACL=$ac_cv_search_acl_trivial
24382 fi
24383
24384 fi
24385
24386 for ac_func in acl_trivial
24387 do :
24388 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
24389 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
24390 cat >>confdefs.h <<_ACEOF
24391 #define HAVE_ACL_TRIVIAL 1
24392 _ACEOF
24393
24394 fi
24395 done
24396
24397 use_acl=1
24398 fi
24399 fi
24400
24401 if test $use_acl = 0; then
24402 for ac_func in getacl
24403 do :
24404 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
24405 if test "x$ac_cv_func_getacl" = x""yes; then :
24406 cat >>confdefs.h <<_ACEOF
24407 #define HAVE_GETACL 1
24408 _ACEOF
24409
24410 fi
24411 done
24412
24413 if test $ac_cv_func_getacl = yes; then
24414 use_acl=1
24415 fi
24416 for ac_header in aclv.h
24417 do :
24418 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
24419 "
24420 if test "x$ac_cv_header_aclv_h" = x""yes; then :
24421 cat >>confdefs.h <<_ACEOF
24422 #define HAVE_ACLV_H 1
24423 _ACEOF
24424
24425 fi
24426
24427 done
24428
24429 fi
24430
24431 if test $use_acl = 0; then
24432 for ac_func in aclx_get
24433 do :
24434 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
24435 if test "x$ac_cv_func_aclx_get" = x""yes; then :
24436 cat >>confdefs.h <<_ACEOF
24437 #define HAVE_ACLX_GET 1
24438 _ACEOF
24439
24440 fi
24441 done
24442
24443 if test $ac_cv_func_aclx_get = yes; then
24444 use_acl=1
24445 fi
24446 fi
24447
24448 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
24449 for ac_func in statacl
24450 do :
24451 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
24452 if test "x$ac_cv_func_statacl" = x""yes; then :
24453 cat >>confdefs.h <<_ACEOF
24454 #define HAVE_STATACL 1
24455 _ACEOF
24456
24457 fi
24458 done
24459
24460 if test $ac_cv_func_statacl = yes; then
24461 use_acl=1
24462 fi
24463 fi
24464
24465 if test $use_acl = 0; then
24466 for ac_func in aclsort
24467 do :
24468 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
24469 if test "x$ac_cv_func_aclsort" = x""yes; then :
24470 cat >>confdefs.h <<_ACEOF
24471 #define HAVE_ACLSORT 1
24472 _ACEOF
24473
24474 fi
24475 done
24476
24477 if test $ac_cv_func_aclsort = yes; then
24478 use_acl=1
24479 fi
24480 fi
24481
24482 LIBS=$ac_save_LIBS
24483 fi
24484 if test "x$enable_acl$use_acl" = "xyes0"; then
24485 as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
24486 elif test "x$enable_acl$use_acl" = "xauto0"; then
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
24488 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
24490 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
24491 fi
24492 fi
24493
24494
24495 cat >>confdefs.h <<_ACEOF
24496 #define USE_ACL $use_acl
24497 _ACEOF
24498
24499 USE_ACL=$use_acl
24500
24501
24502
24503
24504
24505 if test $ac_cv_func_readlink = no; then
24506 HAVE_READLINK=0
24507 else
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
24509 $as_echo_n "checking whether readlink signature is correct... " >&6; }
24510 if test "${gl_cv_decl_readlink_works+set}" = set; then :
24511 $as_echo_n "(cached) " >&6
24512 else
24513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24514 /* end confdefs.h. */
24515 #include <unistd.h>
24516 /* Cause compilation failure if original declaration has wrong type. */
24517 ssize_t readlink (const char *, char *, size_t);
24518 int
24519 main ()
24520 {
24521
24522 ;
24523 return 0;
24524 }
24525 _ACEOF
24526 if ac_fn_c_try_compile "$LINENO"; then :
24527 gl_cv_decl_readlink_works=yes
24528 else
24529 gl_cv_decl_readlink_works=no
24530 fi
24531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24532 fi
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
24534 $as_echo "$gl_cv_decl_readlink_works" >&6; }
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
24536 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
24537 if test "${gl_cv_func_readlink_works+set}" = set; then :
24538 $as_echo_n "(cached) " >&6
24539 else
24540 # We have readlink, so assume ln -s works.
24541 ln -s conftest.no-such conftest.link
24542 ln -s conftest.link conftest.lnk2
24543 if test "$cross_compiling" = yes; then :
24544 case "$host_os" in
24545 # Guess yes on glibc systems.
24546 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
24547 # If we don't know, assume the worst.
24548 *) gl_cv_func_readlink_works="guessing no" ;;
24549 esac
24550
24551 else
24552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24553 /* end confdefs.h. */
24554 #include <unistd.h>
24555
24556 int
24557 main ()
24558 {
24559 char buf[20];
24560 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
24561 ;
24562 return 0;
24563 }
24564 _ACEOF
24565 if ac_fn_c_try_run "$LINENO"; then :
24566 gl_cv_func_readlink_works=yes
24567 else
24568 gl_cv_func_readlink_works=no
24569 fi
24570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24571 conftest.$ac_objext conftest.beam conftest.$ac_ext
24572 fi
24573
24574 rm -f conftest.link conftest.lnk2
24575 fi
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
24577 $as_echo "$gl_cv_func_readlink_works" >&6; }
24578 case "$gl_cv_func_readlink_works" in
24579 *yes)
24580 if test "$gl_cv_decl_readlink_works" != yes; then
24581 REPLACE_READLINK=1
24582 fi
24583 ;;
24584 *)
24585
24586 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
24587
24588 REPLACE_READLINK=1
24589 ;;
24590 esac
24591 fi
24592
24593 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
24594
24595
24596
24597
24598
24599
24600
24601
24602 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
24603
24604
24605 :
24606
24607 fi
24608
24609
24610
24611
24612
24613 GNULIB_READLINK=1
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623 if test $ac_cv_func_readlinkat = no; then
24624 HAVE_READLINKAT=0
24625 fi
24626
24627 if test $HAVE_READLINKAT = 0; then
24628
24629
24630
24631
24632
24633
24634
24635
24636 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
24637
24638 fi
24639
24640
24641
24642
24643
24644 GNULIB_READLINKAT=1
24645
24646
24647
24648
24649
24650
24651 for ac_func in sig2str
24652 do :
24653 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
24654 if test "x$ac_cv_func_sig2str" = x""yes; then :
24655 cat >>confdefs.h <<_ACEOF
24656 #define HAVE_SIG2STR 1
24657 _ACEOF
24658
24659 fi
24660 done
24661
24662
24663 if test $ac_cv_func_sig2str = no; then
24664
24665
24666
24667
24668
24669
24670
24671
24672 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
24673
24674
24675 :
24676
24677 fi
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689 if test $gl_cv_have_include_next = yes; then
24690 gl_cv_next_signal_h='<'signal.h'>'
24691 else
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
24693 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
24694 if test "${gl_cv_next_signal_h+set}" = set; then :
24695 $as_echo_n "(cached) " >&6
24696 else
24697
24698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24699 /* end confdefs.h. */
24700 #include <signal.h>
24701
24702 _ACEOF
24703 case "$host_os" in
24704 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24705 *) gl_absname_cpp="$ac_cpp" ;;
24706 esac
24707
24708 case "$host_os" in
24709 mingw*)
24710 gl_dirsep_regex='[/\\]'
24711 ;;
24712 *)
24713 gl_dirsep_regex='\/'
24714 ;;
24715 esac
24716 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24717
24718 gl_header_literal_regex=`echo 'signal.h' \
24719 | sed -e "$gl_make_literal_regex_sed"`
24720 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24721 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24722 s|^/[^/]|//&|
24723 p
24724 q
24725 }'
24726 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24727 sed -n "$gl_absolute_header_sed"`'"'
24728
24729
24730 fi
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
24732 $as_echo "$gl_cv_next_signal_h" >&6; }
24733 fi
24734 NEXT_SIGNAL_H=$gl_cv_next_signal_h
24735
24736 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24737 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24738 gl_next_as_first_directive='<'signal.h'>'
24739 else
24740 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24741 gl_next_as_first_directive=$gl_cv_next_signal_h
24742 fi
24743 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
24744
24745
24746
24747
24748
24749 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
24750 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
24751 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
24752 #include <signal.h>
24753
24754 "
24755 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
24756
24757 else
24758 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
24759 fi
24760
24761
24762
24763
24764
24765
24766
24767 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
24768 #include <signal.h>
24769
24770 "
24771 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
24772
24773 else
24774 HAVE_SIGHANDLER_T=0
24775 fi
24776
24777
24778
24779
24780 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
24781 /* <sys/types.h> is not needed according to POSIX, but the
24782 <sys/socket.h> in i386-unknown-freebsd4.10 and
24783 powerpc-apple-darwin5.5 required it. */
24784 #include <sys/types.h>
24785 #if HAVE_SYS_SOCKET_H
24786 # include <sys/socket.h>
24787 #elif HAVE_WS2TCPIP_H
24788 # include <ws2tcpip.h>
24789 #endif
24790
24791 "
24792 if test "x$ac_cv_type_socklen_t" = x""yes; then :
24793
24794 else
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
24796 $as_echo_n "checking for socklen_t equivalent... " >&6; }
24797 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
24798 $as_echo_n "(cached) " >&6
24799 else
24800 # Systems have either "struct sockaddr *" or
24801 # "void *" as the second argument to getpeername
24802 gl_cv_socklen_t_equiv=
24803 for arg2 in "struct sockaddr" void; do
24804 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
24805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24806 /* end confdefs.h. */
24807 #include <sys/types.h>
24808 #include <sys/socket.h>
24809
24810 int getpeername (int, $arg2 *, $t *);
24811 int
24812 main ()
24813 {
24814 $t len;
24815 getpeername (0, 0, &len);
24816 ;
24817 return 0;
24818 }
24819 _ACEOF
24820 if ac_fn_c_try_compile "$LINENO"; then :
24821 gl_cv_socklen_t_equiv="$t"
24822 fi
24823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24824 test "$gl_cv_socklen_t_equiv" != "" && break
24825 done
24826 test "$gl_cv_socklen_t_equiv" != "" && break
24827 done
24828
24829 fi
24830
24831 if test "$gl_cv_socklen_t_equiv" = ""; then
24832 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
24833 fi
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
24835 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
24836
24837 cat >>confdefs.h <<_ACEOF
24838 #define socklen_t $gl_cv_socklen_t_equiv
24839 _ACEOF
24840
24841 fi
24842
24843
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
24845 $as_echo_n "checking for ssize_t... " >&6; }
24846 if test "${gt_cv_ssize_t+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24848 else
24849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24850 /* end confdefs.h. */
24851 #include <sys/types.h>
24852 int
24853 main ()
24854 {
24855 int x = sizeof (ssize_t *) + sizeof (ssize_t);
24856 return !x;
24857 ;
24858 return 0;
24859 }
24860 _ACEOF
24861 if ac_fn_c_try_compile "$LINENO"; then :
24862 gt_cv_ssize_t=yes
24863 else
24864 gt_cv_ssize_t=no
24865 fi
24866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24867 fi
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
24869 $as_echo "$gt_cv_ssize_t" >&6; }
24870 if test $gt_cv_ssize_t = no; then
24871
24872 $as_echo "#define ssize_t int" >>confdefs.h
24873
24874 fi
24875
24876
24877
24878
24879
24880 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>
24881 #include <sys/stat.h>
24882 "
24883 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
24884
24885 cat >>confdefs.h <<_ACEOF
24886 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
24887 _ACEOF
24888
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
24890 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
24891 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
24892 $as_echo_n "(cached) " >&6
24893 else
24894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24895 /* end confdefs.h. */
24896
24897 #include <sys/types.h>
24898 #include <sys/stat.h>
24899 #if HAVE_SYS_TIME_H
24900 # include <sys/time.h>
24901 #endif
24902 #include <time.h>
24903 struct timespec ts;
24904 struct stat st;
24905
24906 int
24907 main ()
24908 {
24909
24910 st.st_atim = ts;
24911
24912 ;
24913 return 0;
24914 }
24915 _ACEOF
24916 if ac_fn_c_try_compile "$LINENO"; then :
24917 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
24918 else
24919 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
24920 fi
24921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922 fi
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
24924 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
24925 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
24926
24927 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
24928
24929 fi
24930 else
24931 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>
24932 #include <sys/stat.h>
24933 "
24934 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
24935
24936 cat >>confdefs.h <<_ACEOF
24937 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
24938 _ACEOF
24939
24940
24941 else
24942 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
24943 #include <sys/stat.h>
24944 "
24945 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
24946
24947 cat >>confdefs.h <<_ACEOF
24948 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
24949 _ACEOF
24950
24951
24952 else
24953 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>
24954 #include <sys/stat.h>
24955 "
24956 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
24957
24958 cat >>confdefs.h <<_ACEOF
24959 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
24960 _ACEOF
24961
24962
24963 fi
24964
24965 fi
24966
24967 fi
24968
24969 fi
24970
24971
24972
24973
24974
24975 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>
24976 #include <sys/stat.h>
24977 "
24978 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
24979
24980 cat >>confdefs.h <<_ACEOF
24981 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
24982 _ACEOF
24983
24984
24985 else
24986 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
24987 #include <sys/stat.h>
24988 "
24989 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
24990
24991 cat >>confdefs.h <<_ACEOF
24992 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
24993 _ACEOF
24994
24995
24996 else
24997 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>
24998 #include <sys/stat.h>
24999 "
25000 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
25001
25002 cat >>confdefs.h <<_ACEOF
25003 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25004 _ACEOF
25005
25006
25007 fi
25008
25009 fi
25010
25011 fi
25012
25013
25014
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25016 $as_echo_n "checking for working stdalign.h... " >&6; }
25017 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
25018 $as_echo_n "(cached) " >&6
25019 else
25020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25021 /* end confdefs.h. */
25022 #include <stdalign.h>
25023 #include <stddef.h>
25024
25025 /* Test that alignof yields a result consistent with offsetof.
25026 This catches GCC bug 52023
25027 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25028 #ifdef __cplusplus
25029 template <class t> struct alignof_helper { char a; t b; };
25030 # define ao(type) offsetof (alignof_helper<type>, b)
25031 #else
25032 # define ao(type) offsetof (struct { char a; type b; }, b)
25033 #endif
25034 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25035 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25036 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25037
25038 /* Test _Alignas only on platforms where gnulib can help. */
25039 #if \
25040 (__GNUC__ || __IBMC__ || __IBMCPP__ \
25041 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
25042 struct alignas_test { char c; char alignas (8) alignas_8; };
25043 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
25044 ? 1 : -1];
25045 #endif
25046
25047 int
25048 main ()
25049 {
25050
25051 ;
25052 return 0;
25053 }
25054 _ACEOF
25055 if ac_fn_c_try_compile "$LINENO"; then :
25056 gl_cv_header_working_stdalign_h=yes
25057 else
25058 gl_cv_header_working_stdalign_h=no
25059 fi
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061 fi
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25063 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25064
25065 if test $gl_cv_header_working_stdalign_h = yes; then
25066 STDALIGN_H=''
25067 else
25068 STDALIGN_H='stdalign.h'
25069 fi
25070
25071
25072 if test -n "$STDALIGN_H"; then
25073 GL_GENERATE_STDALIGN_H_TRUE=
25074 GL_GENERATE_STDALIGN_H_FALSE='#'
25075 else
25076 GL_GENERATE_STDALIGN_H_TRUE='#'
25077 GL_GENERATE_STDALIGN_H_FALSE=
25078 fi
25079
25080
25081
25082 STDARG_H=''
25083 NEXT_STDARG_H='<stdarg.h>'
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
25085 $as_echo_n "checking for va_copy... " >&6; }
25086 if test "${gl_cv_func_va_copy+set}" = set; then :
25087 $as_echo_n "(cached) " >&6
25088 else
25089
25090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25091 /* end confdefs.h. */
25092 #include <stdarg.h>
25093 int
25094 main ()
25095 {
25096
25097 #ifndef va_copy
25098 void (*func) (va_list, va_list) = va_copy;
25099 #endif
25100
25101 ;
25102 return 0;
25103 }
25104 _ACEOF
25105 if ac_fn_c_try_compile "$LINENO"; then :
25106 gl_cv_func_va_copy=yes
25107 else
25108 gl_cv_func_va_copy=no
25109 fi
25110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25111 fi
25112
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
25114 $as_echo "$gl_cv_func_va_copy" >&6; }
25115 if test $gl_cv_func_va_copy = no; then
25116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25117 /* end confdefs.h. */
25118 #if defined _AIX && !defined __GNUC__
25119 AIX vaccine
25120 #endif
25121
25122 _ACEOF
25123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25124 $EGREP "vaccine" >/dev/null 2>&1; then :
25125 gl_aixcc=yes
25126 else
25127 gl_aixcc=no
25128 fi
25129 rm -f conftest*
25130
25131 if test $gl_aixcc = yes; then
25132 STDARG_H=stdarg.h
25133
25134
25135
25136
25137
25138
25139
25140
25141 if test $gl_cv_have_include_next = yes; then
25142 gl_cv_next_stdarg_h='<'stdarg.h'>'
25143 else
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
25145 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
25146 if test "${gl_cv_next_stdarg_h+set}" = set; then :
25147 $as_echo_n "(cached) " >&6
25148 else
25149
25150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25151 /* end confdefs.h. */
25152 #include <stdarg.h>
25153
25154 _ACEOF
25155 case "$host_os" in
25156 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25157 *) gl_absname_cpp="$ac_cpp" ;;
25158 esac
25159
25160 case "$host_os" in
25161 mingw*)
25162 gl_dirsep_regex='[/\\]'
25163 ;;
25164 *)
25165 gl_dirsep_regex='\/'
25166 ;;
25167 esac
25168 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25169
25170 gl_header_literal_regex=`echo 'stdarg.h' \
25171 | sed -e "$gl_make_literal_regex_sed"`
25172 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25173 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25174 s|^/[^/]|//&|
25175 p
25176 q
25177 }'
25178 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25179 sed -n "$gl_absolute_header_sed"`'"'
25180
25181
25182 fi
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
25184 $as_echo "$gl_cv_next_stdarg_h" >&6; }
25185 fi
25186 NEXT_STDARG_H=$gl_cv_next_stdarg_h
25187
25188 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25190 gl_next_as_first_directive='<'stdarg.h'>'
25191 else
25192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25193 gl_next_as_first_directive=$gl_cv_next_stdarg_h
25194 fi
25195 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
25196
25197
25198
25199
25200 if test "$gl_cv_next_stdarg_h" = '""'; then
25201 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
25202 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
25203 fi
25204 else
25205
25206 saved_as_echo_n="$as_echo_n"
25207 as_echo_n=':'
25208 if test "${gl_cv_func___va_copy+set}" = set; then :
25209 $as_echo_n "(cached) " >&6
25210 else
25211
25212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25213 /* end confdefs.h. */
25214 #include <stdarg.h>
25215 int
25216 main ()
25217 {
25218
25219 #ifndef __va_copy
25220 error, bail out
25221 #endif
25222
25223 ;
25224 return 0;
25225 }
25226 _ACEOF
25227 if ac_fn_c_try_compile "$LINENO"; then :
25228 gl_cv_func___va_copy=yes
25229 else
25230 gl_cv_func___va_copy=no
25231 fi
25232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25233 fi
25234
25235 as_echo_n="$saved_as_echo_n"
25236
25237 if test $gl_cv_func___va_copy = yes; then
25238
25239 $as_echo "#define va_copy __va_copy" >>confdefs.h
25240
25241 else
25242
25243
25244 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
25245
25246 fi
25247 fi
25248 fi
25249
25250 if test -n "$STDARG_H"; then
25251 GL_GENERATE_STDARG_H_TRUE=
25252 GL_GENERATE_STDARG_H_FALSE='#'
25253 else
25254 GL_GENERATE_STDARG_H_TRUE='#'
25255 GL_GENERATE_STDARG_H_FALSE=
25256 fi
25257
25258
25259
25260
25261
25262
25263 # Define two additional variables used in the Makefile substitution.
25264
25265 if test "$ac_cv_header_stdbool_h" = yes; then
25266 STDBOOL_H=''
25267 else
25268 STDBOOL_H='stdbool.h'
25269 fi
25270
25271 if test -n "$STDBOOL_H"; then
25272 GL_GENERATE_STDBOOL_H_TRUE=
25273 GL_GENERATE_STDBOOL_H_FALSE='#'
25274 else
25275 GL_GENERATE_STDBOOL_H_TRUE='#'
25276 GL_GENERATE_STDBOOL_H_FALSE=
25277 fi
25278
25279
25280 if test "$ac_cv_type__Bool" = yes; then
25281 HAVE__BOOL=1
25282 else
25283 HAVE__BOOL=0
25284 fi
25285
25286
25287
25288
25289
25290 STDDEF_H=
25291 if test $gt_cv_c_wchar_t = no; then
25292 HAVE_WCHAR_T=0
25293 STDDEF_H=stddef.h
25294 fi
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25296 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25297 if test "${gl_cv_decl_null_works+set}" = set; then :
25298 $as_echo_n "(cached) " >&6
25299 else
25300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25301 /* end confdefs.h. */
25302 #include <stddef.h>
25303 int test[2 * (sizeof NULL == sizeof (void *)) -1];
25304
25305 int
25306 main ()
25307 {
25308
25309 ;
25310 return 0;
25311 }
25312 _ACEOF
25313 if ac_fn_c_try_compile "$LINENO"; then :
25314 gl_cv_decl_null_works=yes
25315 else
25316 gl_cv_decl_null_works=no
25317 fi
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25319 fi
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25321 $as_echo "$gl_cv_decl_null_works" >&6; }
25322 if test $gl_cv_decl_null_works = no; then
25323 REPLACE_NULL=1
25324 STDDEF_H=stddef.h
25325 fi
25326
25327 if test -n "$STDDEF_H"; then
25328 GL_GENERATE_STDDEF_H_TRUE=
25329 GL_GENERATE_STDDEF_H_FALSE='#'
25330 else
25331 GL_GENERATE_STDDEF_H_TRUE='#'
25332 GL_GENERATE_STDDEF_H_FALSE=
25333 fi
25334
25335 if test -n "$STDDEF_H"; then
25336
25337
25338
25339
25340
25341
25342
25343
25344 if test $gl_cv_have_include_next = yes; then
25345 gl_cv_next_stddef_h='<'stddef.h'>'
25346 else
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25348 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25349 if test "${gl_cv_next_stddef_h+set}" = set; then :
25350 $as_echo_n "(cached) " >&6
25351 else
25352
25353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25354 /* end confdefs.h. */
25355 #include <stddef.h>
25356
25357 _ACEOF
25358 case "$host_os" in
25359 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25360 *) gl_absname_cpp="$ac_cpp" ;;
25361 esac
25362
25363 case "$host_os" in
25364 mingw*)
25365 gl_dirsep_regex='[/\\]'
25366 ;;
25367 *)
25368 gl_dirsep_regex='\/'
25369 ;;
25370 esac
25371 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25372
25373 gl_header_literal_regex=`echo 'stddef.h' \
25374 | sed -e "$gl_make_literal_regex_sed"`
25375 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25376 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25377 s|^/[^/]|//&|
25378 p
25379 q
25380 }'
25381 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25382 sed -n "$gl_absolute_header_sed"`'"'
25383
25384
25385 fi
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25387 $as_echo "$gl_cv_next_stddef_h" >&6; }
25388 fi
25389 NEXT_STDDEF_H=$gl_cv_next_stddef_h
25390
25391 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25392 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25393 gl_next_as_first_directive='<'stddef.h'>'
25394 else
25395 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25396 gl_next_as_first_directive=$gl_cv_next_stddef_h
25397 fi
25398 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
25399
25400
25401
25402
25403 fi
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416 if test $gl_cv_have_include_next = yes; then
25417 gl_cv_next_stdio_h='<'stdio.h'>'
25418 else
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25420 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25421 if test "${gl_cv_next_stdio_h+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25423 else
25424
25425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25426 /* end confdefs.h. */
25427 #include <stdio.h>
25428
25429 _ACEOF
25430 case "$host_os" in
25431 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25432 *) gl_absname_cpp="$ac_cpp" ;;
25433 esac
25434
25435 case "$host_os" in
25436 mingw*)
25437 gl_dirsep_regex='[/\\]'
25438 ;;
25439 *)
25440 gl_dirsep_regex='\/'
25441 ;;
25442 esac
25443 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25444
25445 gl_header_literal_regex=`echo 'stdio.h' \
25446 | sed -e "$gl_make_literal_regex_sed"`
25447 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25448 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25449 s|^/[^/]|//&|
25450 p
25451 q
25452 }'
25453 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25454 sed -n "$gl_absolute_header_sed"`'"'
25455
25456
25457 fi
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
25459 $as_echo "$gl_cv_next_stdio_h" >&6; }
25460 fi
25461 NEXT_STDIO_H=$gl_cv_next_stdio_h
25462
25463 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25464 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25465 gl_next_as_first_directive='<'stdio.h'>'
25466 else
25467 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25468 gl_next_as_first_directive=$gl_cv_next_stdio_h
25469 fi
25470 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
25471
25472
25473
25474
25475
25476 GNULIB_FSCANF=1
25477
25478
25479 cat >>confdefs.h <<_ACEOF
25480 #define GNULIB_FSCANF 1
25481 _ACEOF
25482
25483
25484 GNULIB_SCANF=1
25485
25486
25487 cat >>confdefs.h <<_ACEOF
25488 #define GNULIB_SCANF 1
25489 _ACEOF
25490
25491
25492 GNULIB_FGETC=1
25493 GNULIB_GETC=1
25494 GNULIB_GETCHAR=1
25495 GNULIB_FGETS=1
25496 GNULIB_FREAD=1
25497
25498
25499 GNULIB_FPRINTF=1
25500 GNULIB_PRINTF=1
25501 GNULIB_VFPRINTF=1
25502 GNULIB_VPRINTF=1
25503 GNULIB_FPUTC=1
25504 GNULIB_PUTC=1
25505 GNULIB_PUTCHAR=1
25506 GNULIB_FPUTS=1
25507 GNULIB_PUTS=1
25508 GNULIB_FWRITE=1
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524 if test $gl_cv_have_include_next = yes; then
25525 gl_cv_next_stdlib_h='<'stdlib.h'>'
25526 else
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
25528 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
25529 if test "${gl_cv_next_stdlib_h+set}" = set; then :
25530 $as_echo_n "(cached) " >&6
25531 else
25532
25533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25534 /* end confdefs.h. */
25535 #include <stdlib.h>
25536
25537 _ACEOF
25538 case "$host_os" in
25539 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25540 *) gl_absname_cpp="$ac_cpp" ;;
25541 esac
25542
25543 case "$host_os" in
25544 mingw*)
25545 gl_dirsep_regex='[/\\]'
25546 ;;
25547 *)
25548 gl_dirsep_regex='\/'
25549 ;;
25550 esac
25551 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25552
25553 gl_header_literal_regex=`echo 'stdlib.h' \
25554 | sed -e "$gl_make_literal_regex_sed"`
25555 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25556 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25557 s|^/[^/]|//&|
25558 p
25559 q
25560 }'
25561 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25562 sed -n "$gl_absolute_header_sed"`'"'
25563
25564
25565 fi
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
25567 $as_echo "$gl_cv_next_stdlib_h" >&6; }
25568 fi
25569 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
25570
25571 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25572 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25573 gl_next_as_first_directive='<'stdlib.h'>'
25574 else
25575 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25576 gl_next_as_first_directive=$gl_cv_next_stdlib_h
25577 fi
25578 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
25589
25590
25591
25592
25593
25594
25595
25596 $as_echo "#define my_strftime nstrftime" >>confdefs.h
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608 if test "$ac_cv_have_decl_strtoimax" != yes; then
25609 HAVE_DECL_STRTOIMAX=0
25610 fi
25611
25612 if test $ac_cv_func_strtoimax = yes; then
25613 HAVE_STRTOIMAX=1
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
25615 $as_echo_n "checking whether strtoimax works... " >&6; }
25616 if test "${gl_cv_func_strtoimax+set}" = set; then :
25617 $as_echo_n "(cached) " >&6
25618 else
25619 if test "$cross_compiling" = yes; then :
25620 case "$host_os" in
25621 # Guess no on AIX 5.
25622 aix5*) gl_cv_func_strtoimax="guessing no" ;;
25623 # Guess yes otherwise.
25624 *) gl_cv_func_strtoimax="guessing yes" ;;
25625 esac
25626
25627 else
25628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25629 /* end confdefs.h. */
25630
25631 #include <errno.h>
25632 #include <string.h>
25633 #include <inttypes.h>
25634 int main ()
25635 {
25636 if (sizeof (intmax_t) > sizeof (int))
25637 {
25638 const char *s = "4294967295";
25639 char *p;
25640 intmax_t res;
25641 errno = 0;
25642 res = strtoimax (s, &p, 10);
25643 if (p != s + strlen (s))
25644 return 1;
25645 if (errno != 0)
25646 return 2;
25647 if (res != (intmax_t) 65535 * (intmax_t) 65537)
25648 return 3;
25649 }
25650 else
25651 {
25652 const char *s = "2147483647";
25653 char *p;
25654 intmax_t res;
25655 errno = 0;
25656 res = strtoimax (s, &p, 10);
25657 if (p != s + strlen (s))
25658 return 1;
25659 if (errno != 0)
25660 return 2;
25661 if (res != 2147483647)
25662 return 3;
25663 }
25664 return 0;
25665 }
25666
25667 _ACEOF
25668 if ac_fn_c_try_run "$LINENO"; then :
25669 gl_cv_func_strtoimax=yes
25670 else
25671 gl_cv_func_strtoimax=no
25672 fi
25673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25674 conftest.$ac_objext conftest.beam conftest.$ac_ext
25675 fi
25676
25677
25678 fi
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
25680 $as_echo "$gl_cv_func_strtoimax" >&6; }
25681 case "$gl_cv_func_strtoimax" in
25682 *no) REPLACE_STRTOIMAX=1 ;;
25683 esac
25684 else
25685 HAVE_STRTOIMAX=0
25686 fi
25687
25688 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
25689
25690
25691
25692
25693
25694
25695
25696
25697 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
25698
25699
25700 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
25701 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
25702 ac_have_decl=1
25703 else
25704 ac_have_decl=0
25705 fi
25706
25707 cat >>confdefs.h <<_ACEOF
25708 #define HAVE_DECL_STRTOLL $ac_have_decl
25709 _ACEOF
25710
25711
25712
25713 fi
25714
25715
25716
25717
25718
25719 GNULIB_STRTOIMAX=1
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729 if test "$ac_cv_have_decl_strtoumax" != yes; then
25730 HAVE_DECL_STRTOUMAX=0
25731 fi
25732
25733 if test $ac_cv_func_strtoumax = no; then
25734
25735
25736
25737
25738
25739
25740
25741
25742 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
25743
25744
25745 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
25746 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
25747 ac_have_decl=1
25748 else
25749 ac_have_decl=0
25750 fi
25751
25752 cat >>confdefs.h <<_ACEOF
25753 #define HAVE_DECL_STRTOULL $ac_have_decl
25754 _ACEOF
25755
25756
25757
25758 fi
25759
25760
25761
25762
25763
25764 GNULIB_STRTOUMAX=1
25765
25766
25767
25768
25769
25770
25771
25772 if test $ac_cv_func_symlink = no; then
25773 HAVE_SYMLINK=0
25774 else
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
25776 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
25777 if test "${gl_cv_func_symlink_works+set}" = set; then :
25778 $as_echo_n "(cached) " >&6
25779 else
25780 if test "$cross_compiling" = yes; then :
25781 case "$host_os" in
25782 # Guess yes on glibc systems.
25783 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
25784 # If we don't know, assume the worst.
25785 *) gl_cv_func_symlink_works="guessing no" ;;
25786 esac
25787
25788 else
25789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25790 /* end confdefs.h. */
25791 #include <unistd.h>
25792
25793 int
25794 main ()
25795 {
25796 int result = 0;
25797 if (!symlink ("a", "conftest.link/"))
25798 result |= 1;
25799 if (symlink ("conftest.f", "conftest.lnk2"))
25800 result |= 2;
25801 else if (!symlink ("a", "conftest.lnk2/"))
25802 result |= 4;
25803 return result;
25804
25805 ;
25806 return 0;
25807 }
25808 _ACEOF
25809 if ac_fn_c_try_run "$LINENO"; then :
25810 gl_cv_func_symlink_works=yes
25811 else
25812 gl_cv_func_symlink_works=no
25813 fi
25814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25815 conftest.$ac_objext conftest.beam conftest.$ac_ext
25816 fi
25817
25818 rm -f conftest.f conftest.link conftest.lnk2
25819 fi
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
25821 $as_echo "$gl_cv_func_symlink_works" >&6; }
25822 case "$gl_cv_func_symlink_works" in
25823 *yes) ;;
25824 *)
25825 REPLACE_SYMLINK=1
25826 ;;
25827 esac
25828 fi
25829
25830 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
25831
25832
25833
25834
25835
25836
25837
25838
25839 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
25840
25841 fi
25842
25843
25844
25845
25846
25847 GNULIB_SYMLINK=1
25848
25849
25850
25851
25852
25853
25854
25855
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
25857 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
25858 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
25859 $as_echo_n "(cached) " >&6
25860 else
25861
25862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h. */
25864 #include <sys/select.h>
25865 int
25866 main ()
25867 {
25868 struct timeval b;
25869 ;
25870 return 0;
25871 }
25872 _ACEOF
25873 if ac_fn_c_try_compile "$LINENO"; then :
25874 gl_cv_header_sys_select_h_selfcontained=yes
25875 else
25876 gl_cv_header_sys_select_h_selfcontained=no
25877 fi
25878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25879 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
25880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25881 /* end confdefs.h. */
25882 #include <sys/select.h>
25883 int
25884 main ()
25885 {
25886 int memset; int bzero;
25887 ;
25888 return 0;
25889 }
25890
25891 _ACEOF
25892 if ac_fn_c_try_compile "$LINENO"; then :
25893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25894 /* end confdefs.h. */
25895 #include <sys/select.h>
25896 int
25897 main ()
25898 {
25899
25900 #undef memset
25901 #define memset nonexistent_memset
25902 extern
25903 #ifdef __cplusplus
25904 "C"
25905 #endif
25906 void *memset (void *, int, unsigned long);
25907 #undef bzero
25908 #define bzero nonexistent_bzero
25909 extern
25910 #ifdef __cplusplus
25911 "C"
25912 #endif
25913 void bzero (void *, unsigned long);
25914 fd_set fds;
25915 FD_ZERO (&fds);
25916
25917 ;
25918 return 0;
25919 }
25920
25921 _ACEOF
25922 if ac_fn_c_try_link "$LINENO"; then :
25923
25924 else
25925 gl_cv_header_sys_select_h_selfcontained=no
25926 fi
25927 rm -f core conftest.err conftest.$ac_objext \
25928 conftest$ac_exeext conftest.$ac_ext
25929
25930 fi
25931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25932 fi
25933
25934 fi
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
25936 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946 if test $gl_cv_have_include_next = yes; then
25947 gl_cv_next_sys_select_h='<'sys/select.h'>'
25948 else
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
25950 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
25951 if test "${gl_cv_next_sys_select_h+set}" = set; then :
25952 $as_echo_n "(cached) " >&6
25953 else
25954
25955 if test $ac_cv_header_sys_select_h = yes; then
25956
25957
25958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25959 /* end confdefs.h. */
25960 #include <sys/select.h>
25961
25962 _ACEOF
25963 case "$host_os" in
25964 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25965 *) gl_absname_cpp="$ac_cpp" ;;
25966 esac
25967
25968 case "$host_os" in
25969 mingw*)
25970 gl_dirsep_regex='[/\\]'
25971 ;;
25972 *)
25973 gl_dirsep_regex='\/'
25974 ;;
25975 esac
25976 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25977
25978 gl_header_literal_regex=`echo 'sys/select.h' \
25979 | sed -e "$gl_make_literal_regex_sed"`
25980 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25981 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25982 s|^/[^/]|//&|
25983 p
25984 q
25985 }'
25986 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25987 sed -n "$gl_absolute_header_sed"`'"'
25988 else
25989 gl_cv_next_sys_select_h='<'sys/select.h'>'
25990 fi
25991
25992
25993 fi
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
25995 $as_echo "$gl_cv_next_sys_select_h" >&6; }
25996 fi
25997 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
25998
25999 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26001 gl_next_as_first_directive='<'sys/select.h'>'
26002 else
26003 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26004 gl_next_as_first_directive=$gl_cv_next_sys_select_h
26005 fi
26006 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
26007
26008
26009
26010
26011 if test $ac_cv_header_sys_select_h = yes; then
26012 HAVE_SYS_SELECT_H=1
26013 else
26014 HAVE_SYS_SELECT_H=0
26015 fi
26016
26017
26018
26019
26020
26021 if test $ac_cv_header_sys_socket_h != yes; then
26022 for ac_header in winsock2.h
26023 do :
26024 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26025 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
26026 cat >>confdefs.h <<_ACEOF
26027 #define HAVE_WINSOCK2_H 1
26028 _ACEOF
26029
26030 fi
26031
26032 done
26033
26034 fi
26035 if test "$ac_cv_header_winsock2_h" = yes; then
26036 HAVE_WINSOCK2_H=1
26037 UNISTD_H_HAVE_WINSOCK2_H=1
26038 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26039 else
26040 HAVE_WINSOCK2_H=0
26041 fi
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062 if test $gl_cv_have_include_next = yes; then
26063 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26064 else
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26066 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26067 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
26068 $as_echo_n "(cached) " >&6
26069 else
26070
26071 if test $ac_cv_header_sys_stat_h = yes; then
26072
26073
26074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26075 /* end confdefs.h. */
26076 #include <sys/stat.h>
26077
26078 _ACEOF
26079 case "$host_os" in
26080 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26081 *) gl_absname_cpp="$ac_cpp" ;;
26082 esac
26083
26084 case "$host_os" in
26085 mingw*)
26086 gl_dirsep_regex='[/\\]'
26087 ;;
26088 *)
26089 gl_dirsep_regex='\/'
26090 ;;
26091 esac
26092 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26093
26094 gl_header_literal_regex=`echo 'sys/stat.h' \
26095 | sed -e "$gl_make_literal_regex_sed"`
26096 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26097 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26098 s|^/[^/]|//&|
26099 p
26100 q
26101 }'
26102 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26103 sed -n "$gl_absolute_header_sed"`'"'
26104 else
26105 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26106 fi
26107
26108
26109 fi
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26111 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26112 fi
26113 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
26114
26115 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26117 gl_next_as_first_directive='<'sys/stat.h'>'
26118 else
26119 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26120 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
26121 fi
26122 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
26135
26136 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
26137
26138 fi
26139
26140 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26141 #include <sys/stat.h>
26142 "
26143 if test "x$ac_cv_type_nlink_t" = x""yes; then :
26144
26145 else
26146
26147 $as_echo "#define nlink_t int" >>confdefs.h
26148
26149 fi
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
26169 "
26170 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
26171 ac_have_decl=1
26172 else
26173 ac_have_decl=0
26174 fi
26175
26176 cat >>confdefs.h <<_ACEOF
26177 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
26178 _ACEOF
26179
26180 if test $ac_cv_have_decl_localtime_r = no; then
26181 HAVE_DECL_LOCALTIME_R=0
26182 fi
26183
26184
26185 if test $ac_cv_func_localtime_r = yes; then
26186 HAVE_LOCALTIME_R=1
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
26188 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
26189 if test "${gl_cv_time_r_posix+set}" = set; then :
26190 $as_echo_n "(cached) " >&6
26191 else
26192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26193 /* end confdefs.h. */
26194 #include <time.h>
26195 int
26196 main ()
26197 {
26198 /* We don't need to append 'restrict's to the argument types,
26199 even though the POSIX signature has the 'restrict's,
26200 since C99 says they can't affect type compatibility. */
26201 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
26202 if (ptr) return 0;
26203 /* Check the return type is a pointer.
26204 On HP-UX 10 it is 'int'. */
26205 *localtime_r (0, 0);
26206 ;
26207 return 0;
26208 }
26209
26210 _ACEOF
26211 if ac_fn_c_try_compile "$LINENO"; then :
26212 gl_cv_time_r_posix=yes
26213 else
26214 gl_cv_time_r_posix=no
26215 fi
26216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26217
26218 fi
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
26220 $as_echo "$gl_cv_time_r_posix" >&6; }
26221 if test $gl_cv_time_r_posix = yes; then
26222 REPLACE_LOCALTIME_R=0
26223 else
26224 REPLACE_LOCALTIME_R=1
26225 fi
26226 else
26227 HAVE_LOCALTIME_R=0
26228 fi
26229
26230 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
26231
26232
26233
26234
26235
26236
26237
26238
26239 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
26240
26241
26242 :
26243
26244 fi
26245
26246
26247
26248
26249
26250 GNULIB_TIME_R=1
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261 LIB_TIMER_TIME=
26262
26263 gl_saved_libs=$LIBS
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
26265 $as_echo_n "checking for library containing timer_settime... " >&6; }
26266 if test "${ac_cv_search_timer_settime+set}" = set; then :
26267 $as_echo_n "(cached) " >&6
26268 else
26269 ac_func_search_save_LIBS=$LIBS
26270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26271 /* end confdefs.h. */
26272
26273 /* Override any GCC internal prototype to avoid an error.
26274 Use char because int might match the return type of a GCC
26275 builtin and then its argument prototype would still apply. */
26276 #ifdef __cplusplus
26277 extern "C"
26278 #endif
26279 char timer_settime ();
26280 int
26281 main ()
26282 {
26283 return timer_settime ();
26284 ;
26285 return 0;
26286 }
26287 _ACEOF
26288 for ac_lib in '' rt posix4; do
26289 if test -z "$ac_lib"; then
26290 ac_res="none required"
26291 else
26292 ac_res=-l$ac_lib
26293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26294 fi
26295 if ac_fn_c_try_link "$LINENO"; then :
26296 ac_cv_search_timer_settime=$ac_res
26297 fi
26298 rm -f core conftest.err conftest.$ac_objext \
26299 conftest$ac_exeext
26300 if test "${ac_cv_search_timer_settime+set}" = set; then :
26301 break
26302 fi
26303 done
26304 if test "${ac_cv_search_timer_settime+set}" = set; then :
26305
26306 else
26307 ac_cv_search_timer_settime=no
26308 fi
26309 rm conftest.$ac_ext
26310 LIBS=$ac_func_search_save_LIBS
26311 fi
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
26313 $as_echo "$ac_cv_search_timer_settime" >&6; }
26314 ac_res=$ac_cv_search_timer_settime
26315 if test "$ac_res" != no; then :
26316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26317 test "$ac_cv_search_timer_settime" = "none required" ||
26318 LIB_TIMER_TIME=$ac_cv_search_timer_settime
26319 fi
26320
26321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26322 /* end confdefs.h. */
26323
26324 #include <features.h>
26325 #ifdef __GNU_LIBRARY__
26326 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
26327 && !defined __UCLIBC__
26328 Thread emulation available
26329 #endif
26330 #endif
26331
26332 _ACEOF
26333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26334 $EGREP "Thread" >/dev/null 2>&1; then :
26335 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
26336 fi
26337 rm -f conftest*
26338
26339 for ac_func in timer_settime
26340 do :
26341 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
26342 if test "x$ac_cv_func_timer_settime" = x""yes; then :
26343 cat >>confdefs.h <<_ACEOF
26344 #define HAVE_TIMER_SETTIME 1
26345 _ACEOF
26346
26347 fi
26348 done
26349
26350 LIBS=$gl_saved_libs
26351
26352 :
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365 if test $gl_cv_have_include_next = yes; then
26366 gl_cv_next_unistd_h='<'unistd.h'>'
26367 else
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
26369 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
26370 if test "${gl_cv_next_unistd_h+set}" = set; then :
26371 $as_echo_n "(cached) " >&6
26372 else
26373
26374 if test $ac_cv_header_unistd_h = yes; then
26375
26376
26377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26378 /* end confdefs.h. */
26379 #include <unistd.h>
26380
26381 _ACEOF
26382 case "$host_os" in
26383 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26384 *) gl_absname_cpp="$ac_cpp" ;;
26385 esac
26386
26387 case "$host_os" in
26388 mingw*)
26389 gl_dirsep_regex='[/\\]'
26390 ;;
26391 *)
26392 gl_dirsep_regex='\/'
26393 ;;
26394 esac
26395 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26396
26397 gl_header_literal_regex=`echo 'unistd.h' \
26398 | sed -e "$gl_make_literal_regex_sed"`
26399 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26400 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26401 s|^/[^/]|//&|
26402 p
26403 q
26404 }'
26405 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26406 sed -n "$gl_absolute_header_sed"`'"'
26407 else
26408 gl_cv_next_unistd_h='<'unistd.h'>'
26409 fi
26410
26411
26412 fi
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
26414 $as_echo "$gl_cv_next_unistd_h" >&6; }
26415 fi
26416 NEXT_UNISTD_H=$gl_cv_next_unistd_h
26417
26418 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26420 gl_next_as_first_directive='<'unistd.h'>'
26421 else
26422 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26423 gl_next_as_first_directive=$gl_cv_next_unistd_h
26424 fi
26425 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
26426
26427
26428
26429
26430 if test $ac_cv_header_unistd_h = yes; then
26431 HAVE_UNISTD_H=1
26432 else
26433 HAVE_UNISTD_H=0
26434 fi
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446 if test $ac_cv_have_decl_unsetenv = no; then
26447 HAVE_DECL_UNSETENV=0
26448 fi
26449 for ac_func in unsetenv
26450 do :
26451 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
26452 if test "x$ac_cv_func_unsetenv" = x""yes; then :
26453 cat >>confdefs.h <<_ACEOF
26454 #define HAVE_UNSETENV 1
26455 _ACEOF
26456
26457 fi
26458 done
26459
26460 if test $ac_cv_func_unsetenv = no; then
26461 HAVE_UNSETENV=0
26462 else
26463 HAVE_UNSETENV=1
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
26465 $as_echo_n "checking for unsetenv() return type... " >&6; }
26466 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
26467 $as_echo_n "(cached) " >&6
26468 else
26469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26470 /* end confdefs.h. */
26471
26472 #undef _BSD
26473 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
26474 #include <stdlib.h>
26475 extern
26476 #ifdef __cplusplus
26477 "C"
26478 #endif
26479 int unsetenv (const char *name);
26480
26481 int
26482 main ()
26483 {
26484
26485 ;
26486 return 0;
26487 }
26488 _ACEOF
26489 if ac_fn_c_try_compile "$LINENO"; then :
26490 gt_cv_func_unsetenv_ret='int'
26491 else
26492 gt_cv_func_unsetenv_ret='void'
26493 fi
26494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26495 fi
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
26497 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
26498 if test $gt_cv_func_unsetenv_ret = 'void'; then
26499
26500 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
26501
26502 REPLACE_UNSETENV=1
26503 fi
26504
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
26506 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
26507 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
26508 $as_echo_n "(cached) " >&6
26509 else
26510 if test "$cross_compiling" = yes; then :
26511 case "$host_os" in
26512 # Guess yes on glibc systems.
26513 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
26514 # If we don't know, assume the worst.
26515 *) gl_cv_func_unsetenv_works="guessing no" ;;
26516 esac
26517
26518 else
26519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26520 /* end confdefs.h. */
26521
26522 #include <stdlib.h>
26523 #include <errno.h>
26524 extern char **environ;
26525
26526 int
26527 main ()
26528 {
26529
26530 char entry1[] = "a=1";
26531 char entry2[] = "b=2";
26532 char *env[] = { entry1, entry2, NULL };
26533 if (putenv ((char *) "a=1")) return 1;
26534 if (putenv (entry2)) return 2;
26535 entry2[0] = 'a';
26536 unsetenv ("a");
26537 if (getenv ("a")) return 3;
26538 if (!unsetenv ("") || errno != EINVAL) return 4;
26539 entry2[0] = 'b';
26540 environ = env;
26541 if (!getenv ("a")) return 5;
26542 entry2[0] = 'a';
26543 unsetenv ("a");
26544 if (getenv ("a")) return 6;
26545
26546 ;
26547 return 0;
26548 }
26549 _ACEOF
26550 if ac_fn_c_try_run "$LINENO"; then :
26551 gl_cv_func_unsetenv_works=yes
26552 else
26553 gl_cv_func_unsetenv_works=no
26554 fi
26555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26556 conftest.$ac_objext conftest.beam conftest.$ac_ext
26557 fi
26558
26559 fi
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
26561 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
26562 case "$gl_cv_func_unsetenv_works" in
26563 *yes) ;;
26564 *)
26565 REPLACE_UNSETENV=1
26566 ;;
26567 esac
26568 fi
26569
26570 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
26571
26572
26573
26574
26575
26576
26577
26578
26579 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
26580
26581
26582
26583
26584
26585 fi
26586
26587
26588
26589
26590
26591 GNULIB_UNSETENV=1
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
26605 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
26606 if test "${gl_cv_func_futimesat_works+set}" = set; then :
26607 $as_echo_n "(cached) " >&6
26608 else
26609 touch conftest.file
26610 if test "$cross_compiling" = yes; then :
26611 case "$host_os" in
26612 # Guess yes on glibc systems.
26613 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
26614 # If we don't know, assume the worst.
26615 *) gl_cv_func_futimesat_works="guessing no" ;;
26616 esac
26617
26618 else
26619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26620 /* end confdefs.h. */
26621
26622 #include <stddef.h>
26623 #include <sys/times.h>
26624 #include <fcntl.h>
26625
26626 int
26627 main ()
26628 {
26629 int fd = open ("conftest.file", O_RDWR);
26630 if (fd < 0) return 1;
26631 if (futimesat (fd, NULL, NULL)) return 2;
26632
26633 ;
26634 return 0;
26635 }
26636 _ACEOF
26637 if ac_fn_c_try_run "$LINENO"; then :
26638 gl_cv_func_futimesat_works=yes
26639 else
26640 gl_cv_func_futimesat_works=no
26641 fi
26642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26643 conftest.$ac_objext conftest.beam conftest.$ac_ext
26644 fi
26645
26646 rm -f conftest.file
26647 fi
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
26649 $as_echo "$gl_cv_func_futimesat_works" >&6; }
26650 case "$gl_cv_func_futimesat_works" in
26651 *yes) ;;
26652 *)
26653
26654 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
26655
26656 ;;
26657 esac
26658 fi
26659
26660 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
26661 gl_gnulib_enabled_dosname=false
26662 gl_gnulib_enabled_euidaccess=false
26663 gl_gnulib_enabled_getgroups=false
26664 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
26665 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
26666 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
26667 gl_gnulib_enabled_pathmax=false
26668 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
26669 gl_gnulib_enabled_stat=false
26670 gl_gnulib_enabled_strtoll=false
26671 gl_gnulib_enabled_strtoull=false
26672 gl_gnulib_enabled_verify=false
26673 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
26674 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
26675 {
26676 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26677
26678
26679
26680
26681
26682
26683
26684
26685 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
26686
26687 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
26688 fi
26689 }
26690 func_gl_gnulib_m4code_dosname ()
26691 {
26692 if ! $gl_gnulib_enabled_dosname; then
26693 gl_gnulib_enabled_dosname=true
26694 fi
26695 }
26696 func_gl_gnulib_m4code_euidaccess ()
26697 {
26698 if ! $gl_gnulib_enabled_euidaccess; then
26699
26700
26701
26702
26703
26704 for ac_func in euidaccess
26705 do :
26706 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
26707 if test "x$ac_cv_func_euidaccess" = x""yes; then :
26708 cat >>confdefs.h <<_ACEOF
26709 #define HAVE_EUIDACCESS 1
26710 _ACEOF
26711
26712 fi
26713 done
26714
26715 if test $ac_cv_func_euidaccess = no; then
26716 HAVE_EUIDACCESS=0
26717 fi
26718
26719 if test $HAVE_EUIDACCESS = 0; then
26720
26721
26722
26723
26724
26725
26726
26727
26728 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
26729
26730
26731
26732 for ac_header in libgen.h
26733 do :
26734 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
26735 if test "x$ac_cv_header_libgen_h" = x""yes; then :
26736 cat >>confdefs.h <<_ACEOF
26737 #define HAVE_LIBGEN_H 1
26738 _ACEOF
26739
26740 fi
26741
26742 done
26743
26744
26745 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
26746 if test "x$ac_cv_func_getgroups" = x""yes; then :
26747
26748 fi
26749
26750
26751 # If we don't yet have getgroups, see if it's in -lbsd.
26752 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26753 ac_save_LIBS=$LIBS
26754 if test $ac_cv_func_getgroups = no; then
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
26756 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
26757 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
26758 $as_echo_n "(cached) " >&6
26759 else
26760 ac_check_lib_save_LIBS=$LIBS
26761 LIBS="-lbsd $LIBS"
26762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26763 /* end confdefs.h. */
26764
26765 /* Override any GCC internal prototype to avoid an error.
26766 Use char because int might match the return type of a GCC
26767 builtin and then its argument prototype would still apply. */
26768 #ifdef __cplusplus
26769 extern "C"
26770 #endif
26771 char getgroups ();
26772 int
26773 main ()
26774 {
26775 return getgroups ();
26776 ;
26777 return 0;
26778 }
26779 _ACEOF
26780 if ac_fn_c_try_link "$LINENO"; then :
26781 ac_cv_lib_bsd_getgroups=yes
26782 else
26783 ac_cv_lib_bsd_getgroups=no
26784 fi
26785 rm -f core conftest.err conftest.$ac_objext \
26786 conftest$ac_exeext conftest.$ac_ext
26787 LIBS=$ac_check_lib_save_LIBS
26788 fi
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
26790 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
26791 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
26792 GETGROUPS_LIB=-lbsd
26793 fi
26794
26795 fi
26796
26797 # Run the program to test the functionality of the system-supplied
26798 # getgroups function only if there is such a function.
26799 if test $ac_cv_func_getgroups = yes; then
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
26801 $as_echo_n "checking for working getgroups... " >&6; }
26802 if test "${ac_cv_func_getgroups_works+set}" = set; then :
26803 $as_echo_n "(cached) " >&6
26804 else
26805 if test "$cross_compiling" = yes; then :
26806 case "$host_os" in # ((
26807 # Guess yes on glibc systems.
26808 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
26809 # If we don't know, assume the worst.
26810 *) ac_cv_func_getgroups_works="guessing no" ;;
26811 esac
26812
26813 else
26814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26815 /* end confdefs.h. */
26816 $ac_includes_default
26817 int
26818 main ()
26819 {
26820 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26821 return getgroups (0, 0) == -1;
26822 ;
26823 return 0;
26824 }
26825
26826 _ACEOF
26827 if ac_fn_c_try_run "$LINENO"; then :
26828 ac_cv_func_getgroups_works=yes
26829 else
26830 ac_cv_func_getgroups_works=no
26831 fi
26832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26833 conftest.$ac_objext conftest.beam conftest.$ac_ext
26834 fi
26835
26836
26837 fi
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
26839 $as_echo "$ac_cv_func_getgroups_works" >&6; }
26840 else
26841 ac_cv_func_getgroups_works=no
26842 fi
26843 case "$ac_cv_func_getgroups_works" in
26844 *yes)
26845
26846 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
26847
26848 ;;
26849 esac
26850 LIBS=$ac_save_LIBS
26851
26852
26853 # Solaris 9 and 10 need -lgen to get the eaccess function.
26854 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
26855 # programs in the package would end up linked with that potentially-shared
26856 # library, inducing unnecessary run-time overhead.
26857 LIB_EACCESS=
26858
26859 gl_saved_libs=$LIBS
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
26861 $as_echo_n "checking for library containing eaccess... " >&6; }
26862 if test "${ac_cv_search_eaccess+set}" = set; then :
26863 $as_echo_n "(cached) " >&6
26864 else
26865 ac_func_search_save_LIBS=$LIBS
26866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26867 /* end confdefs.h. */
26868
26869 /* Override any GCC internal prototype to avoid an error.
26870 Use char because int might match the return type of a GCC
26871 builtin and then its argument prototype would still apply. */
26872 #ifdef __cplusplus
26873 extern "C"
26874 #endif
26875 char eaccess ();
26876 int
26877 main ()
26878 {
26879 return eaccess ();
26880 ;
26881 return 0;
26882 }
26883 _ACEOF
26884 for ac_lib in '' gen; do
26885 if test -z "$ac_lib"; then
26886 ac_res="none required"
26887 else
26888 ac_res=-l$ac_lib
26889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26890 fi
26891 if ac_fn_c_try_link "$LINENO"; then :
26892 ac_cv_search_eaccess=$ac_res
26893 fi
26894 rm -f core conftest.err conftest.$ac_objext \
26895 conftest$ac_exeext
26896 if test "${ac_cv_search_eaccess+set}" = set; then :
26897 break
26898 fi
26899 done
26900 if test "${ac_cv_search_eaccess+set}" = set; then :
26901
26902 else
26903 ac_cv_search_eaccess=no
26904 fi
26905 rm conftest.$ac_ext
26906 LIBS=$ac_func_search_save_LIBS
26907 fi
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
26909 $as_echo "$ac_cv_search_eaccess" >&6; }
26910 ac_res=$ac_cv_search_eaccess
26911 if test "$ac_res" != no; then :
26912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26913 test "$ac_cv_search_eaccess" = "none required" ||
26914 LIB_EACCESS=$ac_cv_search_eaccess
26915 fi
26916
26917 for ac_func in eaccess
26918 do :
26919 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
26920 if test "x$ac_cv_func_eaccess" = x""yes; then :
26921 cat >>confdefs.h <<_ACEOF
26922 #define HAVE_EACCESS 1
26923 _ACEOF
26924
26925 fi
26926 done
26927
26928 LIBS=$gl_saved_libs
26929
26930 fi
26931
26932
26933
26934
26935
26936 GNULIB_EUIDACCESS=1
26937
26938
26939
26940
26941
26942 gl_gnulib_enabled_euidaccess=true
26943 if test $HAVE_EUIDACCESS = 0; then
26944 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
26945 fi
26946 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
26947 if test $HAVE_EUIDACCESS = 0; then
26948 func_gl_gnulib_m4code_stat
26949 fi
26950 fi
26951 }
26952 func_gl_gnulib_m4code_getgroups ()
26953 {
26954 if ! $gl_gnulib_enabled_getgroups; then
26955
26956
26957
26958
26959
26960 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
26961 if test "x$ac_cv_func_getgroups" = x""yes; then :
26962
26963 fi
26964
26965
26966 # If we don't yet have getgroups, see if it's in -lbsd.
26967 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26968 ac_save_LIBS=$LIBS
26969 if test $ac_cv_func_getgroups = no; then
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
26971 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
26972 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
26973 $as_echo_n "(cached) " >&6
26974 else
26975 ac_check_lib_save_LIBS=$LIBS
26976 LIBS="-lbsd $LIBS"
26977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26978 /* end confdefs.h. */
26979
26980 /* Override any GCC internal prototype to avoid an error.
26981 Use char because int might match the return type of a GCC
26982 builtin and then its argument prototype would still apply. */
26983 #ifdef __cplusplus
26984 extern "C"
26985 #endif
26986 char getgroups ();
26987 int
26988 main ()
26989 {
26990 return getgroups ();
26991 ;
26992 return 0;
26993 }
26994 _ACEOF
26995 if ac_fn_c_try_link "$LINENO"; then :
26996 ac_cv_lib_bsd_getgroups=yes
26997 else
26998 ac_cv_lib_bsd_getgroups=no
26999 fi
27000 rm -f core conftest.err conftest.$ac_objext \
27001 conftest$ac_exeext conftest.$ac_ext
27002 LIBS=$ac_check_lib_save_LIBS
27003 fi
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27005 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27006 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
27007 GETGROUPS_LIB=-lbsd
27008 fi
27009
27010 fi
27011
27012 # Run the program to test the functionality of the system-supplied
27013 # getgroups function only if there is such a function.
27014 if test $ac_cv_func_getgroups = yes; then
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27016 $as_echo_n "checking for working getgroups... " >&6; }
27017 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27018 $as_echo_n "(cached) " >&6
27019 else
27020 if test "$cross_compiling" = yes; then :
27021 case "$host_os" in # ((
27022 # Guess yes on glibc systems.
27023 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
27024 # If we don't know, assume the worst.
27025 *) ac_cv_func_getgroups_works="guessing no" ;;
27026 esac
27027
27028 else
27029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27030 /* end confdefs.h. */
27031 $ac_includes_default
27032 int
27033 main ()
27034 {
27035 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27036 return getgroups (0, 0) == -1;
27037 ;
27038 return 0;
27039 }
27040
27041 _ACEOF
27042 if ac_fn_c_try_run "$LINENO"; then :
27043 ac_cv_func_getgroups_works=yes
27044 else
27045 ac_cv_func_getgroups_works=no
27046 fi
27047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27048 conftest.$ac_objext conftest.beam conftest.$ac_ext
27049 fi
27050
27051
27052 fi
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27054 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27055 else
27056 ac_cv_func_getgroups_works=no
27057 fi
27058 case "$ac_cv_func_getgroups_works" in
27059 *yes)
27060
27061 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27062
27063 ;;
27064 esac
27065 LIBS=$ac_save_LIBS
27066
27067 if test $ac_cv_func_getgroups != yes; then
27068 HAVE_GETGROUPS=0
27069 else
27070 if test "$ac_cv_type_getgroups" != gid_t \
27071 || { case "$ac_cv_func_getgroups_works" in
27072 *yes) false;;
27073 *) true;;
27074 esac
27075 }; then
27076 REPLACE_GETGROUPS=1
27077
27078 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
27079
27080 else
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
27082 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
27083 if test "${gl_cv_func_getgroups_works+set}" = set; then :
27084 $as_echo_n "(cached) " >&6
27085 else
27086 if test "$cross_compiling" = yes; then :
27087 case "$host_os" in
27088 # Guess yes on glibc systems.
27089 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
27090 # If we don't know, assume the worst.
27091 *) gl_cv_func_getgroups_works="guessing no" ;;
27092 esac
27093
27094 else
27095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27096 /* end confdefs.h. */
27097 $ac_includes_default
27098 int
27099 main ()
27100 {
27101 int size = getgroups (0, 0);
27102 gid_t *list = malloc (size * sizeof *list);
27103 return getgroups (-1, list) != -1;
27104 ;
27105 return 0;
27106 }
27107 _ACEOF
27108 if ac_fn_c_try_run "$LINENO"; then :
27109 gl_cv_func_getgroups_works=yes
27110 else
27111 gl_cv_func_getgroups_works=no
27112 fi
27113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27114 conftest.$ac_objext conftest.beam conftest.$ac_ext
27115 fi
27116
27117 fi
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
27119 $as_echo "$gl_cv_func_getgroups_works" >&6; }
27120 case "$gl_cv_func_getgroups_works" in
27121 *yes) ;;
27122 *) REPLACE_GETGROUPS=1 ;;
27123 esac
27124 fi
27125 fi
27126 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
27127
27128 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
27129
27130
27131
27132
27133
27134
27135
27136
27137 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
27138
27139 fi
27140
27141
27142
27143
27144
27145 GNULIB_GETGROUPS=1
27146
27147
27148
27149
27150
27151 gl_gnulib_enabled_getgroups=true
27152 fi
27153 }
27154 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
27155 {
27156 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
27157
27158
27159 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
27160 fi
27161 }
27162 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
27163 {
27164 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
27165
27166
27167
27168
27169
27170 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
27171 if test "x$ac_cv_func_group_member" = x""yes; then :
27172
27173 else
27174
27175 HAVE_GROUP_MEMBER=0
27176
27177 fi
27178
27179
27180 if test $HAVE_GROUP_MEMBER = 0; then
27181
27182
27183
27184
27185
27186
27187
27188
27189 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
27190
27191
27192
27193
27194 fi
27195
27196
27197
27198
27199
27200 GNULIB_GROUP_MEMBER=1
27201
27202
27203
27204
27205
27206 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
27207 if test $HAVE_GROUP_MEMBER = 0; then
27208 func_gl_gnulib_m4code_getgroups
27209 fi
27210 if test $HAVE_GROUP_MEMBER = 0; then
27211 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
27212 fi
27213 fi
27214 }
27215 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
27216 {
27217 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
27218 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
27219 fi
27220 }
27221 func_gl_gnulib_m4code_pathmax ()
27222 {
27223 if ! $gl_gnulib_enabled_pathmax; then
27224
27225
27226
27227 gl_gnulib_enabled_pathmax=true
27228 fi
27229 }
27230 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
27231 {
27232 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
27233 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
27234 fi
27235 }
27236 func_gl_gnulib_m4code_stat ()
27237 {
27238 if ! $gl_gnulib_enabled_stat; then
27239
27240
27241
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
27243 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
27244 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
27245 $as_echo_n "(cached) " >&6
27246 else
27247 if test "$cross_compiling" = yes; then :
27248 case $host_os in
27249 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
27250 *) gl_cv_func_stat_dir_slash="guessing yes";;
27251 esac
27252 else
27253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27254 /* end confdefs.h. */
27255 #include <sys/stat.h>
27256
27257 int
27258 main ()
27259 {
27260 struct stat st; return stat (".", &st) != stat ("./", &st);
27261 ;
27262 return 0;
27263 }
27264 _ACEOF
27265 if ac_fn_c_try_run "$LINENO"; then :
27266 gl_cv_func_stat_dir_slash=yes
27267 else
27268 gl_cv_func_stat_dir_slash=no
27269 fi
27270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27271 conftest.$ac_objext conftest.beam conftest.$ac_ext
27272 fi
27273
27274 fi
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
27276 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
27278 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
27279 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
27280 $as_echo_n "(cached) " >&6
27281 else
27282 touch conftest.tmp
27283 # Assume that if we have lstat, we can also check symlinks.
27284 if test $ac_cv_func_lstat = yes; then
27285 ln -s conftest.tmp conftest.lnk
27286 fi
27287 if test "$cross_compiling" = yes; then :
27288 case "$host_os" in
27289 # Guess yes on glibc systems.
27290 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
27291 # If we don't know, assume the worst.
27292 *) gl_cv_func_stat_file_slash="guessing no" ;;
27293 esac
27294
27295 else
27296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27297 /* end confdefs.h. */
27298 #include <sys/stat.h>
27299
27300 int
27301 main ()
27302 {
27303 int result = 0;
27304 struct stat st;
27305 if (!stat ("conftest.tmp/", &st))
27306 result |= 1;
27307 #if HAVE_LSTAT
27308 if (!stat ("conftest.lnk/", &st))
27309 result |= 2;
27310 #endif
27311 return result;
27312
27313 ;
27314 return 0;
27315 }
27316 _ACEOF
27317 if ac_fn_c_try_run "$LINENO"; then :
27318 gl_cv_func_stat_file_slash=yes
27319 else
27320 gl_cv_func_stat_file_slash=no
27321 fi
27322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27323 conftest.$ac_objext conftest.beam conftest.$ac_ext
27324 fi
27325
27326 rm -f conftest.tmp conftest.lnk
27327 fi
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
27329 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
27330 case $gl_cv_func_stat_dir_slash in
27331 *no) REPLACE_STAT=1
27332
27333 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
27334 ;;
27335 esac
27336 case $gl_cv_func_stat_file_slash in
27337 *no) REPLACE_STAT=1
27338
27339 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
27340 ;;
27341 esac
27342
27343 if test $REPLACE_STAT = 1; then
27344
27345
27346
27347
27348
27349
27350
27351
27352 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
27353
27354 :
27355 fi
27356
27357
27358
27359
27360
27361 GNULIB_STAT=1
27362
27363
27364
27365
27366
27367 gl_gnulib_enabled_stat=true
27368 if test $REPLACE_STAT = 1; then
27369 func_gl_gnulib_m4code_dosname
27370 fi
27371 if test $REPLACE_STAT = 1; then
27372 func_gl_gnulib_m4code_pathmax
27373 fi
27374 if test $REPLACE_STAT = 1; then
27375 func_gl_gnulib_m4code_verify
27376 fi
27377 fi
27378 }
27379 func_gl_gnulib_m4code_strtoll ()
27380 {
27381 if ! $gl_gnulib_enabled_strtoll; then
27382
27383
27384
27385 if test "$ac_cv_type_long_long_int" = yes; then
27386 for ac_func in strtoll
27387 do :
27388 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27389 if test "x$ac_cv_func_strtoll" = x""yes; then :
27390 cat >>confdefs.h <<_ACEOF
27391 #define HAVE_STRTOLL 1
27392 _ACEOF
27393
27394 fi
27395 done
27396
27397 if test $ac_cv_func_strtoll = no; then
27398 HAVE_STRTOLL=0
27399 fi
27400 fi
27401
27402 if test $HAVE_STRTOLL = 0; then
27403
27404
27405
27406
27407
27408
27409
27410
27411 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
27412
27413
27414 :
27415
27416 fi
27417
27418
27419
27420
27421
27422 GNULIB_STRTOLL=1
27423
27424
27425
27426
27427
27428 gl_gnulib_enabled_strtoll=true
27429 fi
27430 }
27431 func_gl_gnulib_m4code_strtoull ()
27432 {
27433 if ! $gl_gnulib_enabled_strtoull; then
27434
27435
27436
27437 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
27438 for ac_func in strtoull
27439 do :
27440 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
27441 if test "x$ac_cv_func_strtoull" = x""yes; then :
27442 cat >>confdefs.h <<_ACEOF
27443 #define HAVE_STRTOULL 1
27444 _ACEOF
27445
27446 fi
27447 done
27448
27449 if test $ac_cv_func_strtoull = no; then
27450 HAVE_STRTOULL=0
27451 fi
27452 fi
27453
27454 if test $HAVE_STRTOULL = 0; then
27455
27456
27457
27458
27459
27460
27461
27462
27463 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
27464
27465
27466 :
27467
27468 fi
27469
27470
27471
27472
27473
27474 GNULIB_STRTOULL=1
27475
27476
27477
27478
27479
27480 gl_gnulib_enabled_strtoull=true
27481 fi
27482 }
27483 func_gl_gnulib_m4code_verify ()
27484 {
27485 if ! $gl_gnulib_enabled_verify; then
27486 gl_gnulib_enabled_verify=true
27487 fi
27488 }
27489 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
27490 {
27491 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
27492 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
27493 fi
27494 }
27495 if test $HAVE_FACCESSAT = 0; then
27496 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
27497 fi
27498 if test $HAVE_FACCESSAT = 0; then
27499 func_gl_gnulib_m4code_dosname
27500 fi
27501 if test $HAVE_FACCESSAT = 0; then
27502 func_gl_gnulib_m4code_euidaccess
27503 fi
27504 if test $HAVE_FACCESSAT = 0; then
27505 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
27506 fi
27507 if test $HAVE_FDOPENDIR = 0; then
27508 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
27509 fi
27510 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
27511 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
27512 fi
27513 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
27514 func_gl_gnulib_m4code_dosname
27515 fi
27516 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
27517 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
27518 fi
27519 if test $REPLACE_GETOPT = 1; then
27520 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
27521 fi
27522 if test $REPLACE_LSTAT = 1; then
27523 func_gl_gnulib_m4code_dosname
27524 fi
27525 if test $REPLACE_LSTAT = 1; then
27526 func_gl_gnulib_m4code_stat
27527 fi
27528 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
27529 func_gl_gnulib_m4code_stat
27530 fi
27531 if test $HAVE_READLINKAT = 0; then
27532 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
27533 fi
27534 if test $HAVE_READLINKAT = 0; then
27535 func_gl_gnulib_m4code_dosname
27536 fi
27537 if test $HAVE_READLINKAT = 0; then
27538 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
27539 fi
27540 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
27541 func_gl_gnulib_m4code_strtoll
27542 fi
27543 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
27544 func_gl_gnulib_m4code_verify
27545 fi
27546 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
27547 func_gl_gnulib_m4code_strtoull
27548 fi
27549 if test $ac_cv_func_strtoumax = no; then
27550 func_gl_gnulib_m4code_verify
27551 fi
27552
27553 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27554 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
27555 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
27556 else
27557 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
27558 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
27559 fi
27560
27561 if $gl_gnulib_enabled_dosname; then
27562 gl_GNULIB_ENABLED_dosname_TRUE=
27563 gl_GNULIB_ENABLED_dosname_FALSE='#'
27564 else
27565 gl_GNULIB_ENABLED_dosname_TRUE='#'
27566 gl_GNULIB_ENABLED_dosname_FALSE=
27567 fi
27568
27569 if $gl_gnulib_enabled_euidaccess; then
27570 gl_GNULIB_ENABLED_euidaccess_TRUE=
27571 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
27572 else
27573 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
27574 gl_GNULIB_ENABLED_euidaccess_FALSE=
27575 fi
27576
27577 if $gl_gnulib_enabled_getgroups; then
27578 gl_GNULIB_ENABLED_getgroups_TRUE=
27579 gl_GNULIB_ENABLED_getgroups_FALSE='#'
27580 else
27581 gl_GNULIB_ENABLED_getgroups_TRUE='#'
27582 gl_GNULIB_ENABLED_getgroups_FALSE=
27583 fi
27584
27585 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
27586 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
27587 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
27588 else
27589 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
27590 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
27591 fi
27592
27593 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
27594 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
27595 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
27596 else
27597 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
27598 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
27599 fi
27600
27601 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
27602 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
27603 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
27604 else
27605 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
27606 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
27607 fi
27608
27609 if $gl_gnulib_enabled_pathmax; then
27610 gl_GNULIB_ENABLED_pathmax_TRUE=
27611 gl_GNULIB_ENABLED_pathmax_FALSE='#'
27612 else
27613 gl_GNULIB_ENABLED_pathmax_TRUE='#'
27614 gl_GNULIB_ENABLED_pathmax_FALSE=
27615 fi
27616
27617 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
27618 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
27619 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
27620 else
27621 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
27622 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
27623 fi
27624
27625 if $gl_gnulib_enabled_stat; then
27626 gl_GNULIB_ENABLED_stat_TRUE=
27627 gl_GNULIB_ENABLED_stat_FALSE='#'
27628 else
27629 gl_GNULIB_ENABLED_stat_TRUE='#'
27630 gl_GNULIB_ENABLED_stat_FALSE=
27631 fi
27632
27633 if $gl_gnulib_enabled_strtoll; then
27634 gl_GNULIB_ENABLED_strtoll_TRUE=
27635 gl_GNULIB_ENABLED_strtoll_FALSE='#'
27636 else
27637 gl_GNULIB_ENABLED_strtoll_TRUE='#'
27638 gl_GNULIB_ENABLED_strtoll_FALSE=
27639 fi
27640
27641 if $gl_gnulib_enabled_strtoull; then
27642 gl_GNULIB_ENABLED_strtoull_TRUE=
27643 gl_GNULIB_ENABLED_strtoull_FALSE='#'
27644 else
27645 gl_GNULIB_ENABLED_strtoull_TRUE='#'
27646 gl_GNULIB_ENABLED_strtoull_FALSE=
27647 fi
27648
27649 if $gl_gnulib_enabled_verify; then
27650 gl_GNULIB_ENABLED_verify_TRUE=
27651 gl_GNULIB_ENABLED_verify_FALSE='#'
27652 else
27653 gl_GNULIB_ENABLED_verify_TRUE='#'
27654 gl_GNULIB_ENABLED_verify_FALSE=
27655 fi
27656
27657 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
27658 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
27659 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
27660 else
27661 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
27662 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
27663 fi
27664
27665 # End of code from modules
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675 gltests_libdeps=
27676 gltests_ltlibdeps=
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686 gl_source_base='tests'
27687 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
27688
27689 gl_module_indicator_condition=$gltests_WITNESS
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700 LIBGNU_LIBDEPS="$gl_libdeps"
27701
27702 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
27703
27704
27705 CFLAGS=$SAVE_CFLAGS
27706 LIBS=$SAVE_LIBS
27707
27708 case "$opsys" in
27709 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
27710
27711 darwin)
27712 ## The -headerpad option tells ld (see man page) to leave room at the
27713 ## end of the header for adding load commands. Needed for dumping.
27714 ## 0x690 is the total size of 30 segment load commands (at 56
27715 ## each); under Cocoa 31 commands are required.
27716 if test "$HAVE_NS" = "yes"; then
27717 libs_nsgui="-framework AppKit"
27718 if test "$NS_IMPL_COCOA" = "yes"; then
27719 libs_nsgui="$libs_nsgui -framework IOKit"
27720 fi
27721 headerpad_extra=6C8
27722 else
27723 libs_nsgui=
27724 headerpad_extra=690
27725 fi
27726 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
27727
27728 ## This is here because src/Makefile.in did some extra fiddling around
27729 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
27730 ## LD_SWITCH_SYSTEM_TEMACS instead,
27731 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
27732 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
27733 ;;
27734
27735 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
27736 ## find X at run-time.
27737 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
27738 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
27739 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
27740 ## had different values in configure (in ac_link) and src/Makefile.in.
27741 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
27742 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
27743
27744 openbsd) LD_SWITCH_SYSTEM_TEMACS='-nopie' ;;
27745
27746 *) LD_SWITCH_SYSTEM_TEMACS= ;;
27747 esac
27748
27749 if test x$ac_enable_profiling != x ; then
27750 case $opsys in
27751 *freebsd | gnu-linux) ;;
27752 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
27753 esac
27754 fi
27755
27756
27757
27758 ## Common for all window systems
27759 if test "$window_system" != "none"; then
27760
27761 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
27762
27763 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
27764 fi
27765
27766
27767
27768
27769
27770 #### Report on what we decided to do.
27771 #### Report GTK as a toolkit, even if it doesn't use Xt.
27772 #### It makes printing result more understandable as using GTK sets
27773 #### toolkit_scroll_bars to yes by default.
27774 if test "${HAVE_GTK}" = "yes"; then
27775 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
27776 fi
27777
27778 echo "
27779 Configured for \`${canonical}'.
27780
27781 Where should the build process find the source code? ${srcdir}
27782 What compiler should emacs be built with? ${CC} ${CFLAGS}
27783 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
27784 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
27785 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
27786 What window system should Emacs use? ${window_system}
27787 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
27788
27789 if test -n "${x_includes}"; then
27790 echo " Where do we find X Windows header files? ${x_includes}"
27791 else
27792 echo " Where do we find X Windows header files? Standard dirs"
27793 fi
27794 if test -n "${x_libraries}"; then
27795 echo " Where do we find X Windows libraries? ${x_libraries}"
27796 else
27797 echo " Where do we find X Windows libraries? Standard dirs"
27798 fi
27799
27800 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
27801 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
27802 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
27803 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
27804 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
27805 echo " Does Emacs use -lpng? ${HAVE_PNG}"
27806 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
27807 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
27808
27809 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
27810 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
27811 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
27812 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
27813 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
27814 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
27815 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
27816
27817 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
27818 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
27819 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
27820 echo " Does Emacs use -lxft? ${HAVE_XFT}"
27821
27822 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
27823 echo
27824
27825 if test -n "${EMACSDATA}"; then
27826 echo " Environment variable EMACSDATA set to: $EMACSDATA"
27827 fi
27828 if test -n "${EMACSDOC}"; then
27829 echo " Environment variable EMACSDOC set to: $EMACSDOC"
27830 fi
27831
27832 echo
27833
27834 if test "$HAVE_NS" = "yes"; then
27835 echo
27836 echo "You must run \"${MAKE-make} install\" in order to test the built application.
27837 The installed application will go to nextstep/Emacs.app and can be
27838 run or moved from there."
27839 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
27840 echo "The application will be fully self-contained."
27841 else
27842 echo "The lisp resources for the application will be installed under ${prefix}.
27843 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
27844 to run if these resources are not installed."
27845 fi
27846 echo
27847 fi
27848
27849 if test "${opsys}" = "cygwin"; then
27850 case `uname -r` in
27851 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
27852 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
27853 echo
27854 ;;
27855 esac
27856 fi
27857
27858 # Remove any trailing slashes in these variables.
27859 test "${prefix}" != NONE &&
27860 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
27861 test "${exec_prefix}" != NONE &&
27862 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
27863
27864 if test "$HAVE_NS" = "yes"; then
27865 if test "$NS_IMPL_GNUSTEP" = yes; then
27866 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"
27867
27868 else
27869 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"
27870
27871 fi
27872 fi
27873
27874 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"
27875
27876 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"
27877
27878
27879 opt_makefile=test/automated/Makefile
27880
27881 if test -f "$srcdir/$opt_makefile.in"; then
27882 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
27883 ac_config_files="$ac_config_files test/automated/Makefile"
27884
27885 fi
27886
27887
27888 opt_makefile=admin/unidata/Makefile
27889
27890 if test -f "$srcdir/$opt_makefile.in"; then
27891 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
27892 ac_config_files="$ac_config_files admin/unidata/Makefile"
27893
27894 fi
27895
27896
27897 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
27898
27899
27900
27901 ac_config_commands="$ac_config_commands mkdirs"
27902
27903
27904 ac_config_commands="$ac_config_commands epaths"
27905
27906
27907 ac_config_commands="$ac_config_commands gdbinit"
27908
27909
27910 cat >confcache <<\_ACEOF
27911 # This file is a shell script that caches the results of configure
27912 # tests run on this system so they can be shared between configure
27913 # scripts and configure runs, see configure's option --config-cache.
27914 # It is not useful on other systems. If it contains results you don't
27915 # want to keep, you may remove or edit it.
27916 #
27917 # config.status only pays attention to the cache file if you give it
27918 # the --recheck option to rerun configure.
27919 #
27920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27922 # following values.
27923
27924 _ACEOF
27925
27926 # The following way of writing the cache mishandles newlines in values,
27927 # but we know of no workaround that is simple, portable, and efficient.
27928 # So, we kill variables containing newlines.
27929 # Ultrix sh set writes to stderr and can't be redirected directly,
27930 # and sets the high bit in the cache file unless we assign to the vars.
27931 (
27932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27933 eval ac_val=\$$ac_var
27934 case $ac_val in #(
27935 *${as_nl}*)
27936 case $ac_var in #(
27937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27939 esac
27940 case $ac_var in #(
27941 _ | IFS | as_nl) ;; #(
27942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27943 *) { eval $ac_var=; unset $ac_var;} ;;
27944 esac ;;
27945 esac
27946 done
27947
27948 (set) 2>&1 |
27949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27950 *${as_nl}ac_space=\ *)
27951 # `set' does not quote correctly, so add quotes: double-quote
27952 # substitution turns \\\\ into \\, and sed turns \\ into \.
27953 sed -n \
27954 "s/'/'\\\\''/g;
27955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27956 ;; #(
27957 *)
27958 # `set' quotes correctly as required by POSIX, so do not add quotes.
27959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27960 ;;
27961 esac |
27962 sort
27963 ) |
27964 sed '
27965 /^ac_cv_env_/b end
27966 t clear
27967 :clear
27968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27969 t end
27970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27971 :end' >>confcache
27972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27973 if test -w "$cache_file"; then
27974 test "x$cache_file" != "x/dev/null" &&
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27976 $as_echo "$as_me: updating cache $cache_file" >&6;}
27977 cat confcache >$cache_file
27978 else
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27980 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27981 fi
27982 fi
27983 rm -f confcache
27984
27985 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27986 # Let make expand exec_prefix.
27987 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27988
27989 DEFS=-DHAVE_CONFIG_H
27990
27991 ac_libobjs=
27992 ac_ltlibobjs=
27993 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27994 # 1. Remove the extension, and $U if already installed.
27995 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27996 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27998 # will be set to the directory where LIBOBJS objects are built.
27999 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28000 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28001 done
28002 LIBOBJS=$ac_libobjs
28003
28004 LTLIBOBJS=$ac_ltlibobjs
28005
28006
28007 if test -n "$EXEEXT"; then
28008 am__EXEEXT_TRUE=
28009 am__EXEEXT_FALSE='#'
28010 else
28011 am__EXEEXT_TRUE='#'
28012 am__EXEEXT_FALSE=
28013 fi
28014
28015 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28016 as_fn_error "conditional \"AMDEP\" was never defined.
28017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28018 fi
28019 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28020 as_fn_error "conditional \"am__fastdepCC\" was never defined.
28021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28022 fi
28023 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28024 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
28025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28026 fi
28027 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28028 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28030 fi
28031
28032 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28033 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28035 fi
28036 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
28037 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
28038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28039 fi
28040 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28041 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
28042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28043 fi
28044 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
28045 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
28046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28047 fi
28048 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
28049 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
28050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28051 fi
28052 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28053 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28055 fi
28056 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28057 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28059 fi
28060 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
28061 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
28062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28063 fi
28064 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
28065 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
28066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28067 fi
28068 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
28069 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
28070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28071 fi
28072 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
28073 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
28074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28075 fi
28076 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
28077 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
28078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28079 fi
28080 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
28081 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
28082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28083 fi
28084 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
28085 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
28086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28087 fi
28088 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
28089 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
28090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28091 fi
28092 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
28093 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
28094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28095 fi
28096 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
28097 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
28098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28099 fi
28100 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
28101 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
28102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28103 fi
28104 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
28105 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
28106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28107 fi
28108 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
28109 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
28110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28111 fi
28112 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
28113 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
28114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28115 fi
28116
28117 gl_libobjs=
28118 gl_ltlibobjs=
28119 if test -n "$gl_LIBOBJS"; then
28120 # Remove the extension.
28121 sed_drop_objext='s/\.o$//;s/\.obj$//'
28122 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28123 gl_libobjs="$gl_libobjs $i.$ac_objext"
28124 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28125 done
28126 fi
28127 gl_LIBOBJS=$gl_libobjs
28128
28129 gl_LTLIBOBJS=$gl_ltlibobjs
28130
28131
28132
28133 gltests_libobjs=
28134 gltests_ltlibobjs=
28135 if test -n "$gltests_LIBOBJS"; then
28136 # Remove the extension.
28137 sed_drop_objext='s/\.o$//;s/\.obj$//'
28138 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28139 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28140 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28141 done
28142 fi
28143 gltests_LIBOBJS=$gltests_libobjs
28144
28145 gltests_LTLIBOBJS=$gltests_ltlibobjs
28146
28147
28148
28149 : ${CONFIG_STATUS=./config.status}
28150 ac_write_fail=0
28151 ac_clean_files_save=$ac_clean_files
28152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28154 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28155 as_write_fail=0
28156 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28157 #! $SHELL
28158 # Generated by $as_me.
28159 # Run this file to recreate the current configuration.
28160 # Compiler output produced by configure, useful for debugging
28161 # configure, is in config.log if it exists.
28162
28163 debug=false
28164 ac_cs_recheck=false
28165 ac_cs_silent=false
28166
28167 SHELL=\${CONFIG_SHELL-$SHELL}
28168 export SHELL
28169 _ASEOF
28170 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28171 ## -------------------- ##
28172 ## M4sh Initialization. ##
28173 ## -------------------- ##
28174
28175 # Be more Bourne compatible
28176 DUALCASE=1; export DUALCASE # for MKS sh
28177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28178 emulate sh
28179 NULLCMD=:
28180 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28181 # is contrary to our usage. Disable this feature.
28182 alias -g '${1+"$@"}'='"$@"'
28183 setopt NO_GLOB_SUBST
28184 else
28185 case `(set -o) 2>/dev/null` in #(
28186 *posix*) :
28187 set -o posix ;; #(
28188 *) :
28189 ;;
28190 esac
28191 fi
28192
28193
28194 as_nl='
28195 '
28196 export as_nl
28197 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28198 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28199 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28200 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28201 # Prefer a ksh shell builtin over an external printf program on Solaris,
28202 # but without wasting forks for bash or zsh.
28203 if test -z "$BASH_VERSION$ZSH_VERSION" \
28204 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28205 as_echo='print -r --'
28206 as_echo_n='print -rn --'
28207 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28208 as_echo='printf %s\n'
28209 as_echo_n='printf %s'
28210 else
28211 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28212 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28213 as_echo_n='/usr/ucb/echo -n'
28214 else
28215 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28216 as_echo_n_body='eval
28217 arg=$1;
28218 case $arg in #(
28219 *"$as_nl"*)
28220 expr "X$arg" : "X\\(.*\\)$as_nl";
28221 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28222 esac;
28223 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28224 '
28225 export as_echo_n_body
28226 as_echo_n='sh -c $as_echo_n_body as_echo'
28227 fi
28228 export as_echo_body
28229 as_echo='sh -c $as_echo_body as_echo'
28230 fi
28231
28232 # The user is always right.
28233 if test "${PATH_SEPARATOR+set}" != set; then
28234 PATH_SEPARATOR=:
28235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28236 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28237 PATH_SEPARATOR=';'
28238 }
28239 fi
28240
28241
28242 # IFS
28243 # We need space, tab and new line, in precisely that order. Quoting is
28244 # there to prevent editors from complaining about space-tab.
28245 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28246 # splitting by setting IFS to empty value.)
28247 IFS=" "" $as_nl"
28248
28249 # Find who we are. Look in the path if we contain no directory separator.
28250 case $0 in #((
28251 *[\\/]* ) as_myself=$0 ;;
28252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28253 for as_dir in $PATH
28254 do
28255 IFS=$as_save_IFS
28256 test -z "$as_dir" && as_dir=.
28257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28258 done
28259 IFS=$as_save_IFS
28260
28261 ;;
28262 esac
28263 # We did not find ourselves, most probably we were run as `sh COMMAND'
28264 # in which case we are not to be found in the path.
28265 if test "x$as_myself" = x; then
28266 as_myself=$0
28267 fi
28268 if test ! -f "$as_myself"; then
28269 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28270 exit 1
28271 fi
28272
28273 # Unset variables that we do not need and which cause bugs (e.g. in
28274 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28275 # suppresses any "Segmentation fault" message there. '((' could
28276 # trigger a bug in pdksh 5.2.14.
28277 for as_var in BASH_ENV ENV MAIL MAILPATH
28278 do eval test x\${$as_var+set} = xset \
28279 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28280 done
28281 PS1='$ '
28282 PS2='> '
28283 PS4='+ '
28284
28285 # NLS nuisances.
28286 LC_ALL=C
28287 export LC_ALL
28288 LANGUAGE=C
28289 export LANGUAGE
28290
28291 # CDPATH.
28292 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28293
28294
28295 # as_fn_error ERROR [LINENO LOG_FD]
28296 # ---------------------------------
28297 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28298 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28299 # script with status $?, using 1 if that was 0.
28300 as_fn_error ()
28301 {
28302 as_status=$?; test $as_status -eq 0 && as_status=1
28303 if test "$3"; then
28304 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28305 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28306 fi
28307 $as_echo "$as_me: error: $1" >&2
28308 as_fn_exit $as_status
28309 } # as_fn_error
28310
28311
28312 # as_fn_set_status STATUS
28313 # -----------------------
28314 # Set $? to STATUS, without forking.
28315 as_fn_set_status ()
28316 {
28317 return $1
28318 } # as_fn_set_status
28319
28320 # as_fn_exit STATUS
28321 # -----------------
28322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28323 as_fn_exit ()
28324 {
28325 set +e
28326 as_fn_set_status $1
28327 exit $1
28328 } # as_fn_exit
28329
28330 # as_fn_unset VAR
28331 # ---------------
28332 # Portably unset VAR.
28333 as_fn_unset ()
28334 {
28335 { eval $1=; unset $1;}
28336 }
28337 as_unset=as_fn_unset
28338 # as_fn_append VAR VALUE
28339 # ----------------------
28340 # Append the text in VALUE to the end of the definition contained in VAR. Take
28341 # advantage of any shell optimizations that allow amortized linear growth over
28342 # repeated appends, instead of the typical quadratic growth present in naive
28343 # implementations.
28344 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28345 eval 'as_fn_append ()
28346 {
28347 eval $1+=\$2
28348 }'
28349 else
28350 as_fn_append ()
28351 {
28352 eval $1=\$$1\$2
28353 }
28354 fi # as_fn_append
28355
28356 # as_fn_arith ARG...
28357 # ------------------
28358 # Perform arithmetic evaluation on the ARGs, and store the result in the
28359 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28360 # must be portable across $(()) and expr.
28361 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28362 eval 'as_fn_arith ()
28363 {
28364 as_val=$(( $* ))
28365 }'
28366 else
28367 as_fn_arith ()
28368 {
28369 as_val=`expr "$@" || test $? -eq 1`
28370 }
28371 fi # as_fn_arith
28372
28373
28374 if expr a : '\(a\)' >/dev/null 2>&1 &&
28375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28376 as_expr=expr
28377 else
28378 as_expr=false
28379 fi
28380
28381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28382 as_basename=basename
28383 else
28384 as_basename=false
28385 fi
28386
28387 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28388 as_dirname=dirname
28389 else
28390 as_dirname=false
28391 fi
28392
28393 as_me=`$as_basename -- "$0" ||
28394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28395 X"$0" : 'X\(//\)$' \| \
28396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28397 $as_echo X/"$0" |
28398 sed '/^.*\/\([^/][^/]*\)\/*$/{
28399 s//\1/
28400 q
28401 }
28402 /^X\/\(\/\/\)$/{
28403 s//\1/
28404 q
28405 }
28406 /^X\/\(\/\).*/{
28407 s//\1/
28408 q
28409 }
28410 s/.*/./; q'`
28411
28412 # Avoid depending upon Character Ranges.
28413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28416 as_cr_digits='0123456789'
28417 as_cr_alnum=$as_cr_Letters$as_cr_digits
28418
28419 ECHO_C= ECHO_N= ECHO_T=
28420 case `echo -n x` in #(((((
28421 -n*)
28422 case `echo 'xy\c'` in
28423 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28424 xy) ECHO_C='\c';;
28425 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28426 ECHO_T=' ';;
28427 esac;;
28428 *)
28429 ECHO_N='-n';;
28430 esac
28431
28432 rm -f conf$$ conf$$.exe conf$$.file
28433 if test -d conf$$.dir; then
28434 rm -f conf$$.dir/conf$$.file
28435 else
28436 rm -f conf$$.dir
28437 mkdir conf$$.dir 2>/dev/null
28438 fi
28439 if (echo >conf$$.file) 2>/dev/null; then
28440 if ln -s conf$$.file conf$$ 2>/dev/null; then
28441 as_ln_s='ln -s'
28442 # ... but there are two gotchas:
28443 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28444 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28445 # In both cases, we have to default to `cp -p'.
28446 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28447 as_ln_s='cp -p'
28448 elif ln conf$$.file conf$$ 2>/dev/null; then
28449 as_ln_s=ln
28450 else
28451 as_ln_s='cp -p'
28452 fi
28453 else
28454 as_ln_s='cp -p'
28455 fi
28456 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28457 rmdir conf$$.dir 2>/dev/null
28458
28459
28460 # as_fn_mkdir_p
28461 # -------------
28462 # Create "$as_dir" as a directory, including parents if necessary.
28463 as_fn_mkdir_p ()
28464 {
28465
28466 case $as_dir in #(
28467 -*) as_dir=./$as_dir;;
28468 esac
28469 test -d "$as_dir" || eval $as_mkdir_p || {
28470 as_dirs=
28471 while :; do
28472 case $as_dir in #(
28473 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28474 *) as_qdir=$as_dir;;
28475 esac
28476 as_dirs="'$as_qdir' $as_dirs"
28477 as_dir=`$as_dirname -- "$as_dir" ||
28478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28479 X"$as_dir" : 'X\(//\)[^/]' \| \
28480 X"$as_dir" : 'X\(//\)$' \| \
28481 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28482 $as_echo X"$as_dir" |
28483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28484 s//\1/
28485 q
28486 }
28487 /^X\(\/\/\)[^/].*/{
28488 s//\1/
28489 q
28490 }
28491 /^X\(\/\/\)$/{
28492 s//\1/
28493 q
28494 }
28495 /^X\(\/\).*/{
28496 s//\1/
28497 q
28498 }
28499 s/.*/./; q'`
28500 test -d "$as_dir" && break
28501 done
28502 test -z "$as_dirs" || eval "mkdir $as_dirs"
28503 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28504
28505
28506 } # as_fn_mkdir_p
28507 if mkdir -p . 2>/dev/null; then
28508 as_mkdir_p='mkdir -p "$as_dir"'
28509 else
28510 test -d ./-p && rmdir ./-p
28511 as_mkdir_p=false
28512 fi
28513
28514 if test -x / >/dev/null 2>&1; then
28515 as_test_x='test -x'
28516 else
28517 if ls -dL / >/dev/null 2>&1; then
28518 as_ls_L_option=L
28519 else
28520 as_ls_L_option=
28521 fi
28522 as_test_x='
28523 eval sh -c '\''
28524 if test -d "$1"; then
28525 test -d "$1/.";
28526 else
28527 case $1 in #(
28528 -*)set "./$1";;
28529 esac;
28530 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28531 ???[sx]*):;;*)false;;esac;fi
28532 '\'' sh
28533 '
28534 fi
28535 as_executable_p=$as_test_x
28536
28537 # Sed expression to map a string onto a valid CPP name.
28538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28539
28540 # Sed expression to map a string onto a valid variable name.
28541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28542
28543
28544 exec 6>&1
28545 ## ----------------------------------- ##
28546 ## Main body of $CONFIG_STATUS script. ##
28547 ## ----------------------------------- ##
28548 _ASEOF
28549 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28550
28551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28552 # Save the log message, to keep $0 and so on meaningful, and to
28553 # report actual input values of CONFIG_FILES etc. instead of their
28554 # values after options handling.
28555 ac_log="
28556 This file was extended by emacs $as_me 24.3.50, which was
28557 generated by GNU Autoconf 2.65. Invocation command line was
28558
28559 CONFIG_FILES = $CONFIG_FILES
28560 CONFIG_HEADERS = $CONFIG_HEADERS
28561 CONFIG_LINKS = $CONFIG_LINKS
28562 CONFIG_COMMANDS = $CONFIG_COMMANDS
28563 $ $0 $@
28564
28565 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28566 "
28567
28568 _ACEOF
28569
28570 case $ac_config_files in *"
28571 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28572 esac
28573
28574 case $ac_config_headers in *"
28575 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28576 esac
28577
28578
28579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28580 # Files that config.status was made for.
28581 config_files="$ac_config_files"
28582 config_headers="$ac_config_headers"
28583 config_commands="$ac_config_commands"
28584
28585 _ACEOF
28586
28587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28588 ac_cs_usage="\
28589 \`$as_me' instantiates files and other configuration actions
28590 from templates according to the current configuration. Unless the files
28591 and actions are specified as TAGs, all are instantiated by default.
28592
28593 Usage: $0 [OPTION]... [TAG]...
28594
28595 -h, --help print this help, then exit
28596 -V, --version print version number and configuration settings, then exit
28597 --config print configuration, then exit
28598 -q, --quiet, --silent
28599 do not print progress messages
28600 -d, --debug don't remove temporary files
28601 --recheck update $as_me by reconfiguring in the same conditions
28602 --file=FILE[:TEMPLATE]
28603 instantiate the configuration file FILE
28604 --header=FILE[:TEMPLATE]
28605 instantiate the configuration header FILE
28606
28607 Configuration files:
28608 $config_files
28609
28610 Configuration headers:
28611 $config_headers
28612
28613 Configuration commands:
28614 $config_commands
28615
28616 Report bugs to the package provider."
28617
28618 _ACEOF
28619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28620 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28621 ac_cs_version="\\
28622 emacs config.status 24.3.50
28623 configured by $0, generated by GNU Autoconf 2.65,
28624 with options \\"\$ac_cs_config\\"
28625
28626 Copyright (C) 2009 Free Software Foundation, Inc.
28627 This config.status script is free software; the Free Software Foundation
28628 gives unlimited permission to copy, distribute and modify it."
28629
28630 ac_pwd='$ac_pwd'
28631 srcdir='$srcdir'
28632 INSTALL='$INSTALL'
28633 MKDIR_P='$MKDIR_P'
28634 AWK='$AWK'
28635 test -n "\$AWK" || AWK=awk
28636 _ACEOF
28637
28638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28639 # The default lists apply if the user does not specify any file.
28640 ac_need_defaults=:
28641 while test $# != 0
28642 do
28643 case $1 in
28644 --*=*)
28645 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28646 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28647 ac_shift=:
28648 ;;
28649 *)
28650 ac_option=$1
28651 ac_optarg=$2
28652 ac_shift=shift
28653 ;;
28654 esac
28655
28656 case $ac_option in
28657 # Handling of the options.
28658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28659 ac_cs_recheck=: ;;
28660 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28661 $as_echo "$ac_cs_version"; exit ;;
28662 --config | --confi | --conf | --con | --co | --c )
28663 $as_echo "$ac_cs_config"; exit ;;
28664 --debug | --debu | --deb | --de | --d | -d )
28665 debug=: ;;
28666 --file | --fil | --fi | --f )
28667 $ac_shift
28668 case $ac_optarg in
28669 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28670 esac
28671 as_fn_append CONFIG_FILES " '$ac_optarg'"
28672 ac_need_defaults=false;;
28673 --header | --heade | --head | --hea )
28674 $ac_shift
28675 case $ac_optarg in
28676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28677 esac
28678 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28679 ac_need_defaults=false;;
28680 --he | --h)
28681 # Conflict between --help and --header
28682 as_fn_error "ambiguous option: \`$1'
28683 Try \`$0 --help' for more information.";;
28684 --help | --hel | -h )
28685 $as_echo "$ac_cs_usage"; exit ;;
28686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28687 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28688 ac_cs_silent=: ;;
28689
28690 # This is an error.
28691 -*) as_fn_error "unrecognized option: \`$1'
28692 Try \`$0 --help' for more information." ;;
28693
28694 *) as_fn_append ac_config_targets " $1"
28695 ac_need_defaults=false ;;
28696
28697 esac
28698 shift
28699 done
28700
28701 ac_configure_extra_args=
28702
28703 if $ac_cs_silent; then
28704 exec 6>/dev/null
28705 ac_configure_extra_args="$ac_configure_extra_args --silent"
28706 fi
28707
28708 _ACEOF
28709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28710 if \$ac_cs_recheck; then
28711 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28712 shift
28713 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28714 CONFIG_SHELL='$SHELL'
28715 export CONFIG_SHELL
28716 exec "\$@"
28717 fi
28718
28719 _ACEOF
28720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28721 exec 5>>config.log
28722 {
28723 echo
28724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28725 ## Running $as_me. ##
28726 _ASBOX
28727 $as_echo "$ac_log"
28728 } >&5
28729
28730 _ACEOF
28731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28732 #
28733 # INIT-COMMANDS
28734 #
28735 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28736 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
28737
28738 _ACEOF
28739
28740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28741
28742 # Handling of arguments.
28743 for ac_config_target in $ac_config_targets
28744 do
28745 case $ac_config_target in
28746 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
28747 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28748 "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" ;;
28749 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
28750 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
28751 "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" ;;
28752 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28753 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
28754 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
28755 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
28756 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
28757 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
28758 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
28759 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
28760 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28761 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
28762 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
28763 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
28764 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
28765 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
28766 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
28767 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
28768 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
28769 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
28770
28771 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28772 esac
28773 done
28774
28775
28776 # If the user did not use the arguments to specify the items to instantiate,
28777 # then the envvar interface is used. Set only those that are not.
28778 # We use the long form for the default assignment because of an extremely
28779 # bizarre bug on SunOS 4.1.3.
28780 if $ac_need_defaults; then
28781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28782 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28784 fi
28785
28786 # Have a temporary directory for convenience. Make it in the build tree
28787 # simply because there is no reason against having it here, and in addition,
28788 # creating and moving files from /tmp can sometimes cause problems.
28789 # Hook for its removal unless debugging.
28790 # Note that there is a small window in which the directory will not be cleaned:
28791 # after its creation but before its name has been assigned to `$tmp'.
28792 $debug ||
28793 {
28794 tmp=
28795 trap 'exit_status=$?
28796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28797 ' 0
28798 trap 'as_fn_exit 1' 1 2 13 15
28799 }
28800 # Create a (secure) tmp directory for tmp files.
28801
28802 {
28803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28804 test -n "$tmp" && test -d "$tmp"
28805 } ||
28806 {
28807 tmp=./conf$$-$RANDOM
28808 (umask 077 && mkdir "$tmp")
28809 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28810
28811 # Set up the scripts for CONFIG_FILES section.
28812 # No need to generate them if there are no CONFIG_FILES.
28813 # This happens for instance with `./config.status config.h'.
28814 if test -n "$CONFIG_FILES"; then
28815
28816 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28817 ac_cs_awk_getline=:
28818 ac_cs_awk_pipe_init=
28819 ac_cs_awk_read_file='
28820 while ((getline aline < (F[key])) > 0)
28821 print(aline)
28822 close(F[key])'
28823 ac_cs_awk_pipe_fini=
28824 else
28825 ac_cs_awk_getline=false
28826 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28827 ac_cs_awk_read_file='
28828 print "|#_!!_#|"
28829 print "cat " F[key] " &&"
28830 '$ac_cs_awk_pipe_init
28831 # The final `:' finishes the AND list.
28832 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28833 fi
28834 ac_cr=`echo X | tr X '\015'`
28835 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28836 # But we know of no other shell where ac_cr would be empty at this
28837 # point, so we can use a bashism as a fallback.
28838 if test "x$ac_cr" = x; then
28839 eval ac_cr=\$\'\\r\'
28840 fi
28841 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28842 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28843 ac_cs_awk_cr='\r'
28844 else
28845 ac_cs_awk_cr=$ac_cr
28846 fi
28847
28848 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28849 _ACEOF
28850
28851 # Create commands to substitute file output variables.
28852 {
28853 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28854 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28855 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28856 echo "_ACAWK" &&
28857 echo "_ACEOF"
28858 } >conf$$files.sh &&
28859 . ./conf$$files.sh ||
28860 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28861 rm -f conf$$files.sh
28862
28863 {
28864 echo "cat >conf$$subs.awk <<_ACEOF" &&
28865 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28866 echo "_ACEOF"
28867 } >conf$$subs.sh ||
28868 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28869 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28870 ac_delim='%!_!# '
28871 for ac_last_try in false false false false false :; do
28872 . ./conf$$subs.sh ||
28873 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28874
28875 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28876 if test $ac_delim_n = $ac_delim_num; then
28877 break
28878 elif $ac_last_try; then
28879 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28880 else
28881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28882 fi
28883 done
28884 rm -f conf$$subs.sh
28885
28886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28887 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28888 _ACEOF
28889 sed -n '
28890 h
28891 s/^/S["/; s/!.*/"]=/
28892 p
28893 g
28894 s/^[^!]*!//
28895 :repl
28896 t repl
28897 s/'"$ac_delim"'$//
28898 t delim
28899 :nl
28900 h
28901 s/\(.\{148\}\)..*/\1/
28902 t more1
28903 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28904 p
28905 n
28906 b repl
28907 :more1
28908 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28909 p
28910 g
28911 s/.\{148\}//
28912 t nl
28913 :delim
28914 h
28915 s/\(.\{148\}\)..*/\1/
28916 t more2
28917 s/["\\]/\\&/g; s/^/"/; s/$/"/
28918 p
28919 b
28920 :more2
28921 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28922 p
28923 g
28924 s/.\{148\}//
28925 t delim
28926 ' <conf$$subs.awk | sed '
28927 /^[^""]/{
28928 N
28929 s/\n//
28930 }
28931 ' >>$CONFIG_STATUS || ac_write_fail=1
28932 rm -f conf$$subs.awk
28933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28934 _ACAWK
28935 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28936 for (key in S) S_is_set[key] = 1
28937 FS = "\a"
28938 \$ac_cs_awk_pipe_init
28939 }
28940 {
28941 line = $ 0
28942 nfields = split(line, field, "@")
28943 substed = 0
28944 len = length(field[1])
28945 for (i = 2; i < nfields; i++) {
28946 key = field[i]
28947 keylen = length(key)
28948 if (S_is_set[key]) {
28949 value = S[key]
28950 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28951 len += length(value) + length(field[++i])
28952 substed = 1
28953 } else
28954 len += 1 + keylen
28955 }
28956 if (nfields == 3 && !substed) {
28957 key = field[2]
28958 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28959 \$ac_cs_awk_read_file
28960 next
28961 }
28962 }
28963 print line
28964 }
28965 \$ac_cs_awk_pipe_fini
28966 _ACAWK
28967 _ACEOF
28968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28969 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28970 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28971 else
28972 cat
28973 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28974 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28975 _ACEOF
28976
28977 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28978 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28979 # trailing colons and then remove the whole line if VPATH becomes empty
28980 # (actually we leave an empty line to preserve line numbers).
28981 if test "x$srcdir" = x.; then
28982 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28983 s/:*\$(srcdir):*/:/
28984 s/:*\${srcdir}:*/:/
28985 s/:*@srcdir@:*/:/
28986 s/^\([^=]*=[ ]*\):*/\1/
28987 s/:*$//
28988 s/^[^=]*=[ ]*$//
28989 }'
28990 fi
28991
28992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28993 fi # test -n "$CONFIG_FILES"
28994
28995 # Set up the scripts for CONFIG_HEADERS section.
28996 # No need to generate them if there are no CONFIG_HEADERS.
28997 # This happens for instance with `./config.status Makefile'.
28998 if test -n "$CONFIG_HEADERS"; then
28999 cat >"$tmp/defines.awk" <<\_ACAWK ||
29000 BEGIN {
29001 _ACEOF
29002
29003 # Transform confdefs.h into an awk script `defines.awk', embedded as
29004 # here-document in config.status, that substitutes the proper values into
29005 # config.h.in to produce config.h.
29006
29007 # Create a delimiter string that does not exist in confdefs.h, to ease
29008 # handling of long lines.
29009 ac_delim='%!_!# '
29010 for ac_last_try in false false :; do
29011 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29012 if test -z "$ac_t"; then
29013 break
29014 elif $ac_last_try; then
29015 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29016 else
29017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29018 fi
29019 done
29020
29021 # For the awk script, D is an array of macro values keyed by name,
29022 # likewise P contains macro parameters if any. Preserve backslash
29023 # newline sequences.
29024
29025 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29026 sed -n '
29027 s/.\{148\}/&'"$ac_delim"'/g
29028 t rset
29029 :rset
29030 s/^[ ]*#[ ]*define[ ][ ]*/ /
29031 t def
29032 d
29033 :def
29034 s/\\$//
29035 t bsnl
29036 s/["\\]/\\&/g
29037 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29038 D["\1"]=" \3"/p
29039 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29040 d
29041 :bsnl
29042 s/["\\]/\\&/g
29043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29044 D["\1"]=" \3\\\\\\n"\\/p
29045 t cont
29046 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29047 t cont
29048 d
29049 :cont
29050 n
29051 s/.\{148\}/&'"$ac_delim"'/g
29052 t clear
29053 :clear
29054 s/\\$//
29055 t bsnlc
29056 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29057 d
29058 :bsnlc
29059 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29060 b cont
29061 ' <confdefs.h | sed '
29062 s/'"$ac_delim"'/"\\\
29063 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29064
29065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29066 for (key in D) D_is_set[key] = 1
29067 FS = "\a"
29068 }
29069 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29070 line = \$ 0
29071 split(line, arg, " ")
29072 if (arg[1] == "#") {
29073 defundef = arg[2]
29074 mac1 = arg[3]
29075 } else {
29076 defundef = substr(arg[1], 2)
29077 mac1 = arg[2]
29078 }
29079 split(mac1, mac2, "(") #)
29080 macro = mac2[1]
29081 prefix = substr(line, 1, index(line, defundef) - 1)
29082 if (D_is_set[macro]) {
29083 # Preserve the white space surrounding the "#".
29084 print prefix "define", macro P[macro] D[macro]
29085 next
29086 } else {
29087 # Replace #undef with comments. This is necessary, for example,
29088 # in the case of _POSIX_SOURCE, which is predefined and required
29089 # on some systems where configure will not decide to define it.
29090 if (defundef == "undef") {
29091 print "/*", prefix defundef, macro, "*/"
29092 next
29093 }
29094 }
29095 }
29096 { print }
29097 _ACAWK
29098 _ACEOF
29099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29100 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29101 fi # test -n "$CONFIG_HEADERS"
29102
29103
29104 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29105 shift
29106 for ac_tag
29107 do
29108 case $ac_tag in
29109 :[FHLC]) ac_mode=$ac_tag; continue;;
29110 esac
29111 case $ac_mode$ac_tag in
29112 :[FHL]*:*);;
29113 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29114 :[FH]-) ac_tag=-:-;;
29115 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29116 esac
29117 ac_save_IFS=$IFS
29118 IFS=:
29119 set x $ac_tag
29120 IFS=$ac_save_IFS
29121 shift
29122 ac_file=$1
29123 shift
29124
29125 case $ac_mode in
29126 :L) ac_source=$1;;
29127 :[FH])
29128 ac_file_inputs=
29129 for ac_f
29130 do
29131 case $ac_f in
29132 -) ac_f="$tmp/stdin";;
29133 *) # Look for the file first in the build tree, then in the source tree
29134 # (if the path is not absolute). The absolute path cannot be DOS-style,
29135 # because $ac_f cannot contain `:'.
29136 test -f "$ac_f" ||
29137 case $ac_f in
29138 [\\/$]*) false;;
29139 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29140 esac ||
29141 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29142 esac
29143 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29144 as_fn_append ac_file_inputs " '$ac_f'"
29145 done
29146
29147 # Let's still pretend it is `configure' which instantiates (i.e., don't
29148 # use $as_me), people would be surprised to read:
29149 # /* config.h. Generated by config.status. */
29150 configure_input='Generated from '`
29151 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29152 `' by configure.'
29153 if test x"$ac_file" != x-; then
29154 configure_input="$ac_file. $configure_input"
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29156 $as_echo "$as_me: creating $ac_file" >&6;}
29157 fi
29158 # Neutralize special characters interpreted by sed in replacement strings.
29159 case $configure_input in #(
29160 *\&* | *\|* | *\\* )
29161 ac_sed_conf_input=`$as_echo "$configure_input" |
29162 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29163 *) ac_sed_conf_input=$configure_input;;
29164 esac
29165
29166 case $ac_tag in
29167 *:-:* | *:-) cat >"$tmp/stdin" \
29168 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29169 esac
29170 ;;
29171 esac
29172
29173 ac_dir=`$as_dirname -- "$ac_file" ||
29174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29175 X"$ac_file" : 'X\(//\)[^/]' \| \
29176 X"$ac_file" : 'X\(//\)$' \| \
29177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29178 $as_echo X"$ac_file" |
29179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29180 s//\1/
29181 q
29182 }
29183 /^X\(\/\/\)[^/].*/{
29184 s//\1/
29185 q
29186 }
29187 /^X\(\/\/\)$/{
29188 s//\1/
29189 q
29190 }
29191 /^X\(\/\).*/{
29192 s//\1/
29193 q
29194 }
29195 s/.*/./; q'`
29196 as_dir="$ac_dir"; as_fn_mkdir_p
29197 ac_builddir=.
29198
29199 case "$ac_dir" in
29200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29201 *)
29202 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29203 # A ".." for each directory in $ac_dir_suffix.
29204 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29205 case $ac_top_builddir_sub in
29206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29208 esac ;;
29209 esac
29210 ac_abs_top_builddir=$ac_pwd
29211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29212 # for backward compatibility:
29213 ac_top_builddir=$ac_top_build_prefix
29214
29215 case $srcdir in
29216 .) # We are building in place.
29217 ac_srcdir=.
29218 ac_top_srcdir=$ac_top_builddir_sub
29219 ac_abs_top_srcdir=$ac_pwd ;;
29220 [\\/]* | ?:[\\/]* ) # Absolute name.
29221 ac_srcdir=$srcdir$ac_dir_suffix;
29222 ac_top_srcdir=$srcdir
29223 ac_abs_top_srcdir=$srcdir ;;
29224 *) # Relative name.
29225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29226 ac_top_srcdir=$ac_top_build_prefix$srcdir
29227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29228 esac
29229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29230
29231
29232 case $ac_mode in
29233 :F)
29234 #
29235 # CONFIG_FILE
29236 #
29237
29238 case $INSTALL in
29239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29240 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29241 esac
29242 ac_MKDIR_P=$MKDIR_P
29243 case $MKDIR_P in
29244 [\\/$]* | ?:[\\/]* ) ;;
29245 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29246 esac
29247 _ACEOF
29248
29249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29250 # If the template does not know about datarootdir, expand it.
29251 # FIXME: This hack should be removed a few years after 2.60.
29252 ac_datarootdir_hack=; ac_datarootdir_seen=
29253 ac_sed_dataroot='
29254 /datarootdir/ {
29255 p
29256 q
29257 }
29258 /@datadir@/p
29259 /@docdir@/p
29260 /@infodir@/p
29261 /@localedir@/p
29262 /@mandir@/p'
29263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29264 *datarootdir*) ac_datarootdir_seen=yes;;
29265 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29267 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29268 _ACEOF
29269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29270 ac_datarootdir_hack='
29271 s&@datadir@&$datadir&g
29272 s&@docdir@&$docdir&g
29273 s&@infodir@&$infodir&g
29274 s&@localedir@&$localedir&g
29275 s&@mandir@&$mandir&g
29276 s&\\\${datarootdir}&$datarootdir&g' ;;
29277 esac
29278 _ACEOF
29279
29280 # Neutralize VPATH when `$srcdir' = `.'.
29281 # Shell code in configure.ac might set extrasub.
29282 # FIXME: do we really want to maintain this feature?
29283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29284 ac_sed_extra="$ac_vpsub
29285 $extrasub
29286 _ACEOF
29287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29288 :t
29289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29290 s|@configure_input@|$ac_sed_conf_input|;t t
29291 s&@top_builddir@&$ac_top_builddir_sub&;t t
29292 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29293 s&@srcdir@&$ac_srcdir&;t t
29294 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29295 s&@top_srcdir@&$ac_top_srcdir&;t t
29296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29297 s&@builddir@&$ac_builddir&;t t
29298 s&@abs_builddir@&$ac_abs_builddir&;t t
29299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29300 s&@INSTALL@&$ac_INSTALL&;t t
29301 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29302 $ac_datarootdir_hack
29303 "
29304 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29305 if $ac_cs_awk_getline; then
29306 $AWK -f "$tmp/subs.awk"
29307 else
29308 $AWK -f "$tmp/subs.awk" | $SHELL
29309 fi >$tmp/out \
29310 || as_fn_error "could not create $ac_file" "$LINENO" 5
29311
29312 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29313 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29314 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29316 which seems to be undefined. Please make sure it is defined." >&5
29317 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29318 which seems to be undefined. Please make sure it is defined." >&2;}
29319
29320 rm -f "$tmp/stdin"
29321 case $ac_file in
29322 -) cat "$tmp/out" && rm -f "$tmp/out";;
29323 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29324 esac \
29325 || as_fn_error "could not create $ac_file" "$LINENO" 5
29326 ;;
29327 :H)
29328 #
29329 # CONFIG_HEADER
29330 #
29331 if test x"$ac_file" != x-; then
29332 {
29333 $as_echo "/* $configure_input */" \
29334 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29335 } >"$tmp/config.h" \
29336 || as_fn_error "could not create $ac_file" "$LINENO" 5
29337 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29338 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29339 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29340 else
29341 rm -f "$ac_file"
29342 mv "$tmp/config.h" "$ac_file" \
29343 || as_fn_error "could not create $ac_file" "$LINENO" 5
29344 fi
29345 else
29346 $as_echo "/* $configure_input */" \
29347 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29348 || as_fn_error "could not create -" "$LINENO" 5
29349 fi
29350 # Compute "$ac_file"'s index in $config_headers.
29351 _am_arg="$ac_file"
29352 _am_stamp_count=1
29353 for _am_header in $config_headers :; do
29354 case $_am_header in
29355 $_am_arg | $_am_arg:* )
29356 break ;;
29357 * )
29358 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29359 esac
29360 done
29361 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29362 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29363 X"$_am_arg" : 'X\(//\)[^/]' \| \
29364 X"$_am_arg" : 'X\(//\)$' \| \
29365 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29366 $as_echo X"$_am_arg" |
29367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29368 s//\1/
29369 q
29370 }
29371 /^X\(\/\/\)[^/].*/{
29372 s//\1/
29373 q
29374 }
29375 /^X\(\/\/\)$/{
29376 s//\1/
29377 q
29378 }
29379 /^X\(\/\).*/{
29380 s//\1/
29381 q
29382 }
29383 s/.*/./; q'`/stamp-h$_am_stamp_count
29384 ;;
29385
29386 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29387 $as_echo "$as_me: executing $ac_file commands" >&6;}
29388 ;;
29389 esac
29390
29391
29392 case $ac_file$ac_mode in
29393 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29394 # Autoconf 2.62 quotes --file arguments for eval, but not when files
29395 # are listed without --file. Let's play safe and only enable the eval
29396 # if we detect the quoting.
29397 case $CONFIG_FILES in
29398 *\'*) eval set x "$CONFIG_FILES" ;;
29399 *) set x $CONFIG_FILES ;;
29400 esac
29401 shift
29402 for mf
29403 do
29404 # Strip MF so we end up with the name of the file.
29405 mf=`echo "$mf" | sed -e 's/:.*$//'`
29406 # Check whether this is an Automake generated Makefile or not.
29407 # We used to match only the files named `Makefile.in', but
29408 # some people rename them; so instead we look at the file content.
29409 # Grep'ing the first line is not enough: some people post-process
29410 # each Makefile.in and add a new line on top of each file to say so.
29411 # Grep'ing the whole file is not good either: AIX grep has a line
29412 # limit of 2048, but all sed's we know have understand at least 4000.
29413 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29414 dirpart=`$as_dirname -- "$mf" ||
29415 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29416 X"$mf" : 'X\(//\)[^/]' \| \
29417 X"$mf" : 'X\(//\)$' \| \
29418 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29419 $as_echo X"$mf" |
29420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29421 s//\1/
29422 q
29423 }
29424 /^X\(\/\/\)[^/].*/{
29425 s//\1/
29426 q
29427 }
29428 /^X\(\/\/\)$/{
29429 s//\1/
29430 q
29431 }
29432 /^X\(\/\).*/{
29433 s//\1/
29434 q
29435 }
29436 s/.*/./; q'`
29437 else
29438 continue
29439 fi
29440 # Extract the definition of DEPDIR, am__include, and am__quote
29441 # from the Makefile without running `make'.
29442 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29443 test -z "$DEPDIR" && continue
29444 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29445 test -z "am__include" && continue
29446 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29447 # When using ansi2knr, U may be empty or an underscore; expand it
29448 U=`sed -n 's/^U = //p' < "$mf"`
29449 # Find all dependency output files, they are included files with
29450 # $(DEPDIR) in their names. We invoke sed twice because it is the
29451 # simplest approach to changing $(DEPDIR) to its actual value in the
29452 # expansion.
29453 for file in `sed -n "
29454 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29455 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29456 # Make sure the directory exists.
29457 test -f "$dirpart/$file" && continue
29458 fdir=`$as_dirname -- "$file" ||
29459 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29460 X"$file" : 'X\(//\)[^/]' \| \
29461 X"$file" : 'X\(//\)$' \| \
29462 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29463 $as_echo X"$file" |
29464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29465 s//\1/
29466 q
29467 }
29468 /^X\(\/\/\)[^/].*/{
29469 s//\1/
29470 q
29471 }
29472 /^X\(\/\/\)$/{
29473 s//\1/
29474 q
29475 }
29476 /^X\(\/\).*/{
29477 s//\1/
29478 q
29479 }
29480 s/.*/./; q'`
29481 as_dir=$dirpart/$fdir; as_fn_mkdir_p
29482 # echo "creating $dirpart/$file"
29483 echo '# dummy' > "$dirpart/$file"
29484 done
29485 done
29486 }
29487 ;;
29488 "mkdirs":C)
29489 for dir in etc lisp ; do
29490 test -d ${dir} || mkdir ${dir}
29491 done
29492 ;;
29493 "epaths":C)
29494 echo creating src/epaths.h
29495 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
29496 ;;
29497 "gdbinit":C)
29498 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
29499 echo creating src/.gdbinit
29500 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
29501 fi
29502 ;;
29503
29504 esac
29505 done # for ac_tag
29506
29507
29508 as_fn_exit 0
29509 _ACEOF
29510 ac_clean_files=$ac_clean_files_save
29511
29512 test $ac_write_fail = 0 ||
29513 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29514
29515
29516 # configure is writing to config.log, and then calls config.status.
29517 # config.status does its own redirection, appending to config.log.
29518 # Unfortunately, on DOS this fails, as config.log is still kept open
29519 # by configure, so config.status won't be able to write to it; its
29520 # output is simply discarded. So we exec the FD to /dev/null,
29521 # effectively closing config.log, so it can be properly (re)opened and
29522 # appended to by config.status. When coming back to configure, we
29523 # need to make the FD available again.
29524 if test "$no_create" != yes; then
29525 ac_cs_success=:
29526 ac_config_status_args=
29527 test "$silent" = yes &&
29528 ac_config_status_args="$ac_config_status_args --quiet"
29529 exec 5>/dev/null
29530 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29531 exec 5>>config.log
29532 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29533 # would make configure fail if this is the last instruction.
29534 $ac_cs_success || as_fn_exit $?
29535 fi
29536 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29538 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29539 fi
29540