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 EMACS_HEAPSIZE
609 TEMACS_POST_LINK
610 ADDSECTION
611 LD_SWITCH_SYSTEM_TEMACS
612 LIBGNU_LTLIBDEPS
613 LIBGNU_LIBDEPS
614 gltests_WITNESS
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
617 gl_GNULIB_ENABLED_verify_FALSE
618 gl_GNULIB_ENABLED_verify_TRUE
619 gl_GNULIB_ENABLED_strtoull_FALSE
620 gl_GNULIB_ENABLED_strtoull_TRUE
621 gl_GNULIB_ENABLED_strtoll_FALSE
622 gl_GNULIB_ENABLED_strtoll_TRUE
623 gl_GNULIB_ENABLED_stat_FALSE
624 gl_GNULIB_ENABLED_stat_TRUE
625 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
626 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
627 gl_GNULIB_ENABLED_pathmax_FALSE
628 gl_GNULIB_ENABLED_pathmax_TRUE
629 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
630 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
631 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
632 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
633 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
634 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
635 gl_GNULIB_ENABLED_getgroups_FALSE
636 gl_GNULIB_ENABLED_getgroups_TRUE
637 gl_GNULIB_ENABLED_euidaccess_FALSE
638 gl_GNULIB_ENABLED_euidaccess_TRUE
639 gl_GNULIB_ENABLED_dosname_FALSE
640 gl_GNULIB_ENABLED_dosname_TRUE
641 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
642 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
643 LTLIBINTL
644 LIBINTL
645 LIB_EACCESS
646 WINDOWS_64_BIT_OFF_T
647 HAVE_UNISTD_H
648 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
649 NEXT_UNISTD_H
650 LIB_TIMER_TIME
651 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
652 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
653 TIME_H_DEFINES_STRUCT_TIMESPEC
654 NEXT_AS_FIRST_DIRECTIVE_TIME_H
655 NEXT_TIME_H
656 WINDOWS_64_BIT_ST_SIZE
657 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
658 NEXT_SYS_STAT_H
659 NEXT_AS_FIRST_DIRECTIVE_STRING_H
660 NEXT_STRING_H
661 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
662 NEXT_STDLIB_H
663 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
664 NEXT_STDIO_H
665 REPLACE_VSPRINTF
666 REPLACE_VSNPRINTF
667 REPLACE_VPRINTF
668 REPLACE_VFPRINTF
669 REPLACE_VDPRINTF
670 REPLACE_VASPRINTF
671 REPLACE_TMPFILE
672 REPLACE_STDIO_WRITE_FUNCS
673 REPLACE_STDIO_READ_FUNCS
674 REPLACE_SPRINTF
675 REPLACE_SNPRINTF
676 REPLACE_RENAMEAT
677 REPLACE_RENAME
678 REPLACE_REMOVE
679 REPLACE_PRINTF
680 REPLACE_POPEN
681 REPLACE_PERROR
682 REPLACE_OBSTACK_PRINTF
683 REPLACE_GETLINE
684 REPLACE_GETDELIM
685 REPLACE_FTELLO
686 REPLACE_FTELL
687 REPLACE_FSEEKO
688 REPLACE_FSEEK
689 REPLACE_FREOPEN
690 REPLACE_FPURGE
691 REPLACE_FPRINTF
692 REPLACE_FOPEN
693 REPLACE_FFLUSH
694 REPLACE_FDOPEN
695 REPLACE_FCLOSE
696 REPLACE_DPRINTF
697 HAVE_VDPRINTF
698 HAVE_VASPRINTF
699 HAVE_RENAMEAT
700 HAVE_POPEN
701 HAVE_PCLOSE
702 HAVE_FTELLO
703 HAVE_FSEEKO
704 HAVE_DPRINTF
705 HAVE_DECL_VSNPRINTF
706 HAVE_DECL_SNPRINTF
707 HAVE_DECL_OBSTACK_PRINTF
708 HAVE_DECL_GETLINE
709 HAVE_DECL_GETDELIM
710 HAVE_DECL_FTELLO
711 HAVE_DECL_FSEEKO
712 HAVE_DECL_FPURGE
713 GNULIB_VSPRINTF_POSIX
714 GNULIB_VSNPRINTF
715 GNULIB_VPRINTF_POSIX
716 GNULIB_VPRINTF
717 GNULIB_VFPRINTF_POSIX
718 GNULIB_VFPRINTF
719 GNULIB_VDPRINTF
720 GNULIB_VSCANF
721 GNULIB_VFSCANF
722 GNULIB_VASPRINTF
723 GNULIB_TMPFILE
724 GNULIB_STDIO_H_SIGPIPE
725 GNULIB_STDIO_H_NONBLOCKING
726 GNULIB_SPRINTF_POSIX
727 GNULIB_SNPRINTF
728 GNULIB_SCANF
729 GNULIB_RENAMEAT
730 GNULIB_RENAME
731 GNULIB_REMOVE
732 GNULIB_PUTS
733 GNULIB_PUTCHAR
734 GNULIB_PUTC
735 GNULIB_PRINTF_POSIX
736 GNULIB_PRINTF
737 GNULIB_POPEN
738 GNULIB_PERROR
739 GNULIB_PCLOSE
740 GNULIB_OBSTACK_PRINTF_POSIX
741 GNULIB_OBSTACK_PRINTF
742 GNULIB_GETLINE
743 GNULIB_GETDELIM
744 GNULIB_GETCHAR
745 GNULIB_GETC
746 GNULIB_FWRITE
747 GNULIB_FTELLO
748 GNULIB_FTELL
749 GNULIB_FSEEKO
750 GNULIB_FSEEK
751 GNULIB_FSCANF
752 GNULIB_FREOPEN
753 GNULIB_FREAD
754 GNULIB_FPUTS
755 GNULIB_FPUTC
756 GNULIB_FPURGE
757 GNULIB_FPRINTF_POSIX
758 GNULIB_FPRINTF
759 GNULIB_FOPEN
760 GNULIB_FGETS
761 GNULIB_FGETC
762 GNULIB_FFLUSH
763 GNULIB_FDOPEN
764 GNULIB_FCLOSE
765 GNULIB_DPRINTF
766 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
767 NEXT_STDDEF_H
768 GL_GENERATE_STDDEF_H_FALSE
769 GL_GENERATE_STDDEF_H_TRUE
770 STDDEF_H
771 HAVE_WCHAR_T
772 REPLACE_NULL
773 HAVE__BOOL
774 GL_GENERATE_STDBOOL_H_FALSE
775 GL_GENERATE_STDBOOL_H_TRUE
776 STDBOOL_H
777 GL_GENERATE_STDARG_H_FALSE
778 GL_GENERATE_STDARG_H_TRUE
779 STDARG_H
780 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
781 NEXT_STDARG_H
782 GL_GENERATE_STDALIGN_H_FALSE
783 GL_GENERATE_STDALIGN_H_TRUE
784 STDALIGN_H
785 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
786 NEXT_SIGNAL_H
787 USE_ACL
788 LIB_ACL
789 LIB_PTHREAD_SIGMASK
790 REPLACE_RAISE
791 REPLACE_PTHREAD_SIGMASK
792 HAVE_SIGHANDLER_T
793 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
794 HAVE_STRUCT_SIGACTION_SA_SIGACTION
795 HAVE_SIGACTION
796 HAVE_SIGINFO_T
797 HAVE_SIGSET_T
798 HAVE_RAISE
799 HAVE_PTHREAD_SIGMASK
800 HAVE_POSIX_SIGNALBLOCKING
801 GNULIB_SIGACTION
802 GNULIB_SIGPROCMASK
803 GNULIB_SIGNAL_H_SIGPIPE
804 GNULIB_RAISE
805 GNULIB_PTHREAD_SIGMASK
806 HAVE_SYS_SELECT_H
807 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
808 NEXT_SYS_SELECT_H
809 REPLACE_SELECT
810 REPLACE_PSELECT
811 HAVE_PSELECT
812 GNULIB_SELECT
813 GNULIB_PSELECT
814 REPLACE_TIMEGM
815 REPLACE_NANOSLEEP
816 REPLACE_MKTIME
817 REPLACE_LOCALTIME_R
818 HAVE_TIMEGM
819 HAVE_STRPTIME
820 HAVE_NANOSLEEP
821 HAVE_DECL_LOCALTIME_R
822 GNULIB_TIME_R
823 GNULIB_TIMEGM
824 GNULIB_STRPTIME
825 GNULIB_NANOSLEEP
826 GNULIB_MKTIME
827 UNDEFINE_STRTOK_R
828 REPLACE_STRTOK_R
829 REPLACE_STRSIGNAL
830 REPLACE_STRNLEN
831 REPLACE_STRNDUP
832 REPLACE_STRNCAT
833 REPLACE_STRERROR_R
834 REPLACE_STRERROR
835 REPLACE_STRCHRNUL
836 REPLACE_STRCASESTR
837 REPLACE_STRSTR
838 REPLACE_STRDUP
839 REPLACE_STPNCPY
840 REPLACE_MEMMEM
841 REPLACE_MEMCHR
842 HAVE_STRVERSCMP
843 HAVE_DECL_STRSIGNAL
844 HAVE_DECL_STRERROR_R
845 HAVE_DECL_STRTOK_R
846 HAVE_STRCASESTR
847 HAVE_STRSEP
848 HAVE_STRPBRK
849 HAVE_DECL_STRNLEN
850 HAVE_DECL_STRNDUP
851 HAVE_DECL_STRDUP
852 HAVE_STRCHRNUL
853 HAVE_STPNCPY
854 HAVE_STPCPY
855 HAVE_RAWMEMCHR
856 HAVE_DECL_MEMRCHR
857 HAVE_MEMPCPY
858 HAVE_DECL_MEMMEM
859 HAVE_MEMCHR
860 HAVE_FFSLL
861 HAVE_FFSL
862 HAVE_MBSLEN
863 GNULIB_STRVERSCMP
864 GNULIB_STRSIGNAL
865 GNULIB_STRERROR_R
866 GNULIB_STRERROR
867 GNULIB_MBSTOK_R
868 GNULIB_MBSSEP
869 GNULIB_MBSSPN
870 GNULIB_MBSPBRK
871 GNULIB_MBSCSPN
872 GNULIB_MBSCASESTR
873 GNULIB_MBSPCASECMP
874 GNULIB_MBSNCASECMP
875 GNULIB_MBSCASECMP
876 GNULIB_MBSSTR
877 GNULIB_MBSRCHR
878 GNULIB_MBSCHR
879 GNULIB_MBSNLEN
880 GNULIB_MBSLEN
881 GNULIB_STRTOK_R
882 GNULIB_STRCASESTR
883 GNULIB_STRSTR
884 GNULIB_STRSEP
885 GNULIB_STRPBRK
886 GNULIB_STRNLEN
887 GNULIB_STRNDUP
888 GNULIB_STRNCAT
889 GNULIB_STRDUP
890 GNULIB_STRCHRNUL
891 GNULIB_STPNCPY
892 GNULIB_STPCPY
893 GNULIB_RAWMEMCHR
894 GNULIB_MEMRCHR
895 GNULIB_MEMPCPY
896 GNULIB_MEMMEM
897 GNULIB_MEMCHR
898 GNULIB_FFSLL
899 GNULIB_FFSL
900 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
901 NEXT_INTTYPES_H
902 UINT64_MAX_EQ_ULONG_MAX
903 UINT32_MAX_LT_UINTMAX_MAX
904 PRIPTR_PREFIX
905 PRI_MACROS_BROKEN
906 INT64_MAX_EQ_LONG_MAX
907 INT32_MAX_LT_INTMAX_MAX
908 REPLACE_STRTOIMAX
909 HAVE_DECL_STRTOUMAX
910 HAVE_DECL_STRTOIMAX
911 HAVE_DECL_IMAXDIV
912 HAVE_DECL_IMAXABS
913 GNULIB_STRTOUMAX
914 GNULIB_STRTOIMAX
915 GNULIB_IMAXDIV
916 GNULIB_IMAXABS
917 GL_GENERATE_STDINT_H_FALSE
918 GL_GENERATE_STDINT_H_TRUE
919 STDINT_H
920 WINT_T_SUFFIX
921 WCHAR_T_SUFFIX
922 SIG_ATOMIC_T_SUFFIX
923 SIZE_T_SUFFIX
924 PTRDIFF_T_SUFFIX
925 HAVE_SIGNED_WINT_T
926 HAVE_SIGNED_WCHAR_T
927 HAVE_SIGNED_SIG_ATOMIC_T
928 BITSIZEOF_WINT_T
929 BITSIZEOF_WCHAR_T
930 BITSIZEOF_SIG_ATOMIC_T
931 BITSIZEOF_SIZE_T
932 BITSIZEOF_PTRDIFF_T
933 APPLE_UNIVERSAL_BUILD
934 HAVE_SYS_BITYPES_H
935 HAVE_SYS_INTTYPES_H
936 HAVE_STDINT_H
937 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
938 NEXT_STDINT_H
939 HAVE_SYS_TYPES_H
940 HAVE_INTTYPES_H
941 HAVE_WCHAR_H
942 HAVE_UNSIGNED_LONG_LONG_INT
943 HAVE_LONG_LONG_INT
944 HAVE_WINSOCK2_H
945 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
946 NEXT_SYS_TIME_H
947 REPLACE_STRUCT_TIMEVAL
948 REPLACE_GETTIMEOFDAY
949 HAVE_SYS_TIME_H
950 HAVE_STRUCT_TIMEVAL
951 HAVE_GETTIMEOFDAY
952 GNULIB_GETTIMEOFDAY
953 GNULIB_GL_UNISTD_H_GETOPT
954 GETOPT_H
955 HAVE_GETOPT_H
956 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
957 NEXT_GETOPT_H
958 GETLOADAVG_LIBS
959 REPLACE_WCTOMB
960 REPLACE_UNSETENV
961 REPLACE_STRTOD
962 REPLACE_SETENV
963 REPLACE_REALPATH
964 REPLACE_REALLOC
965 REPLACE_RANDOM_R
966 REPLACE_PUTENV
967 REPLACE_PTSNAME_R
968 REPLACE_PTSNAME
969 REPLACE_MKSTEMP
970 REPLACE_MBTOWC
971 REPLACE_MALLOC
972 REPLACE_CANONICALIZE_FILE_NAME
973 REPLACE_CALLOC
974 HAVE_DECL_UNSETENV
975 HAVE_UNLOCKPT
976 HAVE_SYS_LOADAVG_H
977 HAVE_STRUCT_RANDOM_DATA
978 HAVE_STRTOULL
979 HAVE_STRTOLL
980 HAVE_STRTOD
981 HAVE_DECL_SETENV
982 HAVE_SETENV
983 HAVE_SECURE_GETENV
984 HAVE_RPMATCH
985 HAVE_REALPATH
986 HAVE_RANDOM_R
987 HAVE_RANDOM_H
988 HAVE_RANDOM
989 HAVE_PTSNAME_R
990 HAVE_PTSNAME
991 HAVE_POSIX_OPENPT
992 HAVE_MKSTEMPS
993 HAVE_MKSTEMP
994 HAVE_MKOSTEMPS
995 HAVE_MKOSTEMP
996 HAVE_MKDTEMP
997 HAVE_GRANTPT
998 HAVE_GETSUBOPT
999 HAVE_DECL_GETLOADAVG
1000 HAVE_CANONICALIZE_FILE_NAME
1001 HAVE_ATOLL
1002 HAVE__EXIT
1003 GNULIB_WCTOMB
1004 GNULIB_UNSETENV
1005 GNULIB_UNLOCKPT
1006 GNULIB_SYSTEM_POSIX
1007 GNULIB_STRTOULL
1008 GNULIB_STRTOLL
1009 GNULIB_STRTOD
1010 GNULIB_SETENV
1011 GNULIB_SECURE_GETENV
1012 GNULIB_RPMATCH
1013 GNULIB_REALPATH
1014 GNULIB_REALLOC_POSIX
1015 GNULIB_RANDOM_R
1016 GNULIB_RANDOM
1017 GNULIB_PUTENV
1018 GNULIB_PTSNAME_R
1019 GNULIB_PTSNAME
1020 GNULIB_POSIX_OPENPT
1021 GNULIB_MKSTEMPS
1022 GNULIB_MKSTEMP
1023 GNULIB_MKOSTEMPS
1024 GNULIB_MKOSTEMP
1025 GNULIB_MKDTEMP
1026 GNULIB_MBTOWC
1027 GNULIB_MALLOC_POSIX
1028 GNULIB_GRANTPT
1029 GNULIB_GETSUBOPT
1030 GNULIB_GETLOADAVG
1031 GNULIB_CANONICALIZE_FILE_NAME
1032 GNULIB_CALLOC_POSIX
1033 GNULIB_ATOLL
1034 GNULIB__EXIT
1035 REPLACE_UTIMENSAT
1036 REPLACE_STAT
1037 REPLACE_MKNOD
1038 REPLACE_MKFIFO
1039 REPLACE_MKDIR
1040 REPLACE_LSTAT
1041 REPLACE_FUTIMENS
1042 REPLACE_FSTATAT
1043 REPLACE_FSTAT
1044 HAVE_UTIMENSAT
1045 HAVE_MKNODAT
1046 HAVE_MKNOD
1047 HAVE_MKFIFOAT
1048 HAVE_MKFIFO
1049 HAVE_MKDIRAT
1050 HAVE_LSTAT
1051 HAVE_LCHMOD
1052 HAVE_FUTIMENS
1053 HAVE_FSTATAT
1054 HAVE_FCHMODAT
1055 GNULIB_UTIMENSAT
1056 GNULIB_STAT
1057 GNULIB_MKNODAT
1058 GNULIB_MKNOD
1059 GNULIB_MKFIFOAT
1060 GNULIB_MKFIFO
1061 GNULIB_MKDIRAT
1062 GNULIB_LSTAT
1063 GNULIB_LCHMOD
1064 GNULIB_FUTIMENS
1065 GNULIB_FSTATAT
1066 GNULIB_FSTAT
1067 GNULIB_FCHMODAT
1068 LIB_FDATASYNC
1069 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1070 NEXT_FCNTL_H
1071 REPLACE_OPENAT
1072 REPLACE_OPEN
1073 REPLACE_FCNTL
1074 HAVE_OPENAT
1075 HAVE_FCNTL
1076 GNULIB_OPENAT
1077 GNULIB_OPEN
1078 GNULIB_NONBLOCKING
1079 GNULIB_FCNTL
1080 GL_GENERATE_EXECINFO_H_FALSE
1081 GL_GENERATE_EXECINFO_H_TRUE
1082 LIB_EXECINFO
1083 EXECINFO_H
1084 EOVERFLOW_VALUE
1085 EOVERFLOW_HIDDEN
1086 ENOLINK_VALUE
1087 ENOLINK_HIDDEN
1088 EMULTIHOP_VALUE
1089 EMULTIHOP_HIDDEN
1090 GL_GENERATE_ERRNO_H_FALSE
1091 GL_GENERATE_ERRNO_H_TRUE
1092 ERRNO_H
1093 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1094 NEXT_ERRNO_H
1095 HAVE_DIRENT_H
1096 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1097 NEXT_DIRENT_H
1098 PRAGMA_COLUMNS
1099 PRAGMA_SYSTEM_HEADER
1100 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1101 INCLUDE_NEXT
1102 REPLACE_FDOPENDIR
1103 REPLACE_DIRFD
1104 REPLACE_CLOSEDIR
1105 REPLACE_OPENDIR
1106 HAVE_ALPHASORT
1107 HAVE_SCANDIR
1108 HAVE_FDOPENDIR
1109 HAVE_DECL_FDOPENDIR
1110 HAVE_DECL_DIRFD
1111 HAVE_CLOSEDIR
1112 HAVE_REWINDDIR
1113 HAVE_READDIR
1114 HAVE_OPENDIR
1115 GNULIB_ALPHASORT
1116 GNULIB_SCANDIR
1117 GNULIB_FDOPENDIR
1118 GNULIB_DIRFD
1119 GNULIB_CLOSEDIR
1120 GNULIB_REWINDDIR
1121 GNULIB_READDIR
1122 GNULIB_OPENDIR
1123 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1124 UNISTD_H_HAVE_WINSOCK2_H
1125 REPLACE_WRITE
1126 REPLACE_USLEEP
1127 REPLACE_UNLINKAT
1128 REPLACE_UNLINK
1129 REPLACE_TTYNAME_R
1130 REPLACE_SYMLINK
1131 REPLACE_SLEEP
1132 REPLACE_RMDIR
1133 REPLACE_READLINK
1134 REPLACE_READ
1135 REPLACE_PWRITE
1136 REPLACE_PREAD
1137 REPLACE_LSEEK
1138 REPLACE_LINKAT
1139 REPLACE_LINK
1140 REPLACE_LCHOWN
1141 REPLACE_ISATTY
1142 REPLACE_GETPAGESIZE
1143 REPLACE_GETGROUPS
1144 REPLACE_GETLOGIN_R
1145 REPLACE_GETDOMAINNAME
1146 REPLACE_GETCWD
1147 REPLACE_FTRUNCATE
1148 REPLACE_FCHOWNAT
1149 REPLACE_DUP2
1150 REPLACE_DUP
1151 REPLACE_CLOSE
1152 REPLACE_CHOWN
1153 HAVE_SYS_PARAM_H
1154 HAVE_OS_H
1155 HAVE_DECL_TTYNAME_R
1156 HAVE_DECL_SETHOSTNAME
1157 HAVE_DECL_GETUSERSHELL
1158 HAVE_DECL_GETPAGESIZE
1159 HAVE_DECL_GETLOGIN_R
1160 HAVE_DECL_GETDOMAINNAME
1161 HAVE_DECL_FDATASYNC
1162 HAVE_DECL_FCHDIR
1163 HAVE_DECL_ENVIRON
1164 HAVE_USLEEP
1165 HAVE_UNLINKAT
1166 HAVE_SYMLINKAT
1167 HAVE_SYMLINK
1168 HAVE_SLEEP
1169 HAVE_SETHOSTNAME
1170 HAVE_READLINKAT
1171 HAVE_READLINK
1172 HAVE_PWRITE
1173 HAVE_PREAD
1174 HAVE_PIPE2
1175 HAVE_PIPE
1176 HAVE_LINKAT
1177 HAVE_LINK
1178 HAVE_LCHOWN
1179 HAVE_GROUP_MEMBER
1180 HAVE_GETPAGESIZE
1181 HAVE_GETLOGIN
1182 HAVE_GETHOSTNAME
1183 HAVE_GETGROUPS
1184 HAVE_GETDTABLESIZE
1185 HAVE_FTRUNCATE
1186 HAVE_FSYNC
1187 HAVE_FDATASYNC
1188 HAVE_FCHOWNAT
1189 HAVE_FCHDIR
1190 HAVE_FACCESSAT
1191 HAVE_EUIDACCESS
1192 HAVE_DUP3
1193 HAVE_DUP2
1194 HAVE_CHOWN
1195 GNULIB_WRITE
1196 GNULIB_USLEEP
1197 GNULIB_UNLINKAT
1198 GNULIB_UNLINK
1199 GNULIB_UNISTD_H_SIGPIPE
1200 GNULIB_UNISTD_H_NONBLOCKING
1201 GNULIB_TTYNAME_R
1202 GNULIB_SYMLINKAT
1203 GNULIB_SYMLINK
1204 GNULIB_SLEEP
1205 GNULIB_SETHOSTNAME
1206 GNULIB_RMDIR
1207 GNULIB_READLINKAT
1208 GNULIB_READLINK
1209 GNULIB_READ
1210 GNULIB_PWRITE
1211 GNULIB_PREAD
1212 GNULIB_PIPE2
1213 GNULIB_PIPE
1214 GNULIB_LSEEK
1215 GNULIB_LINKAT
1216 GNULIB_LINK
1217 GNULIB_LCHOWN
1218 GNULIB_ISATTY
1219 GNULIB_GROUP_MEMBER
1220 GNULIB_GETUSERSHELL
1221 GNULIB_GETPAGESIZE
1222 GNULIB_GETLOGIN_R
1223 GNULIB_GETLOGIN
1224 GNULIB_GETHOSTNAME
1225 GNULIB_GETGROUPS
1226 GNULIB_GETDTABLESIZE
1227 GNULIB_GETDOMAINNAME
1228 GNULIB_GETCWD
1229 GNULIB_FTRUNCATE
1230 GNULIB_FSYNC
1231 GNULIB_FDATASYNC
1232 GNULIB_FCHOWNAT
1233 GNULIB_FCHDIR
1234 GNULIB_FACCESSAT
1235 GNULIB_EUIDACCESS
1236 GNULIB_ENVIRON
1237 GNULIB_DUP3
1238 GNULIB_DUP2
1239 GNULIB_DUP
1240 GNULIB_CLOSE
1241 GNULIB_CHOWN
1242 GNULIB_CHDIR
1243 LIB_CLOCK_GETTIME
1244 GL_GENERATE_ALLOCA_H_FALSE
1245 GL_GENERATE_ALLOCA_H_TRUE
1246 ALLOCA_H
1247 ALLOCA
1248 GL_COND_LIBTOOL_FALSE
1249 GL_COND_LIBTOOL_TRUE
1250 POST_ALLOC_OBJ
1251 PRE_ALLOC_OBJ
1252 CYGWIN_OBJ
1253 RALLOC_OBJ
1254 OLDXMENU_DEPS
1255 LIBX_OTHER
1256 LIBXMENU
1257 OLDXMENU
1258 OLDXMENU_TARGET
1259 LIBXT_OTHER
1260 TOOLKIT_LIBW
1261 WIDGET_OBJ
1262 XOBJ
1263 XMENU_OBJ
1264 FONT_OBJ
1265 OTHER_FILES
1266 GNU_OBJC_CFLAGS
1267 ns_appsrc
1268 ns_appresdir
1269 ns_appbindir
1270 ns_appdir
1271 X_TOOLKIT_TYPE
1272 GNUSTEP_CFLAGS
1273 C_SWITCH_X_SITE
1274 LD_SWITCH_X_SITE
1275 gameuser
1276 gamedir
1277 bitmapdir
1278 archlibdir
1279 etcdir
1280 x_default_search_path
1281 lisppath
1282 locallisppath
1283 standardlisppath
1284 leimdir
1285 lispdir
1286 srcdir
1287 canonical
1288 configuration
1289 version
1290 copyright
1291 XGSELOBJ
1292 KRB4LIB
1293 DESLIB
1294 KRB5LIB
1295 CRYPTOLIB
1296 COM_ERRLIB
1297 LIBRESOLV
1298 LIBHESIOD
1299 TERMCAP_OBJ
1300 LIBS_TERMCAP
1301 BLESSMAIL_TARGET
1302 LIBS_MAIL
1303 liblockfile
1304 LIBXML2_LIBS
1305 LIBXML2_CFLAGS
1306 XINERAMA_LIBS
1307 XINERAMA_CFLAGS
1308 XRANDR_LIBS
1309 XRANDR_CFLAGS
1310 LIBXSM
1311 LIBGPM
1312 LIBGIF
1313 LIBTIFF
1314 LIBPNG
1315 LIBJPEG
1316 LIBXPM
1317 M17N_FLT_LIBS
1318 M17N_FLT_CFLAGS
1319 LIBOTF_LIBS
1320 LIBOTF_CFLAGS
1321 FREETYPE_LIBS
1322 FREETYPE_CFLAGS
1323 XFT_LIBS
1324 XFT_CFLAGS
1325 FONTCONFIG_LIBS
1326 FONTCONFIG_CFLAGS
1327 LIBXMU
1328 LIBXTR6
1329 NOTIFY_OBJ
1330 GFILENOTIFY_LIBS
1331 GFILENOTIFY_CFLAGS
1332 LIBGNUTLS_LIBS
1333 LIBGNUTLS_CFLAGS
1334 LIBSELINUX_LIBS
1335 SETTINGS_LIBS
1336 SETTINGS_CFLAGS
1337 GOBJECT_LIBS
1338 GOBJECT_CFLAGS
1339 GCONF_LIBS
1340 GCONF_CFLAGS
1341 GSETTINGS_LIBS
1342 GSETTINGS_CFLAGS
1343 DBUS_OBJ
1344 DBUS_LIBS
1345 DBUS_CFLAGS
1346 GTK_OBJ
1347 GTK_LIBS
1348 GTK_CFLAGS
1349 IMAGEMAGICK_LIBS
1350 IMAGEMAGICK_CFLAGS
1351 RSVG_LIBS
1352 RSVG_CFLAGS
1353 LIB_PTHREAD
1354 VMLIMIT_OBJ
1355 GMALLOC_OBJ
1356 HAVE_XSERVER
1357 XARGS_LIMIT
1358 NTLIB
1359 LIB_WSOCK32
1360 LIBS_ECLIENT
1361 CM_OBJ
1362 NTDIR
1363 FIRSTFILE_OBJ
1364 W32_RES_LINK
1365 CLIENTW
1366 CLIENTRES
1367 EMACS_MANIFEST
1368 EMACSRES
1369 W32_LIBS
1370 W32_OBJ
1371 WINDRES
1372 NS_OBJC_OBJ
1373 NS_OBJ
1374 ns_self_contained
1375 INSTALL_ARCH_INDEP_EXTRA
1376 LIBS_GNUSTEP
1377 LD_SWITCH_X_SITE_RPATH
1378 XMKMF
1379 DEPFLAGS
1380 MKDEPDIR
1381 CFLAGS_SOUND
1382 ALSA_LIBS
1383 ALSA_CFLAGS
1384 LIBSOUND
1385 PKG_CONFIG
1386 LIB_MATH
1387 LIBS_SYSTEM
1388 C_SWITCH_SYSTEM
1389 UNEXEC_OBJ
1390 C_SWITCH_MACHINE
1391 LD_SWITCH_SYSTEM
1392 CANNOT_DUMP
1393 INFO_OPTS
1394 INFO_EXT
1395 HAVE_MAKEINFO
1396 PAXCTL
1397 GZIP_PROG
1398 INSTALL_INFO
1399 LN_S_FILEONLY
1400 GNULIB_WARN_CFLAGS
1401 WARN_CFLAGS
1402 WERROR_CFLAGS
1403 RANLIB
1404 ARFLAGS
1405 AR
1406 EGREP
1407 GREP
1408 CPP
1409 BUILDING_FOR_WINDOWSNT_FALSE
1410 BUILDING_FOR_WINDOWSNT_TRUE
1411 am__fastdepCC_FALSE
1412 am__fastdepCC_TRUE
1413 CCDEPMODE
1414 AMDEPBACKSLASH
1415 AMDEP_FALSE
1416 AMDEP_TRUE
1417 am__quote
1418 am__include
1419 DEPDIR
1420 OBJEXT
1421 EXEEXT
1422 ac_ct_CC
1423 CPPFLAGS
1424 LDFLAGS
1425 CFLAGS
1426 CC
1427 host_os
1428 host_vendor
1429 host_cpu
1430 host
1431 build_os
1432 build_vendor
1433 build_cpu
1434 build
1435 PROFILING_CFLAGS
1436 GZIP_INFO
1437 cache_file
1438 am__untar
1439 am__tar
1440 AMTAR
1441 am__leading_dot
1442 SET_MAKE
1443 AWK
1444 mkdir_p
1445 MKDIR_P
1446 INSTALL_STRIP_PROGRAM
1447 STRIP
1448 install_sh
1449 MAKEINFO
1450 AUTOHEADER
1451 AUTOMAKE
1452 AUTOCONF
1453 ACLOCAL
1454 VERSION
1455 PACKAGE
1456 CYGPATH_W
1457 am__isrc
1458 INSTALL_DATA
1459 INSTALL_SCRIPT
1460 INSTALL_PROGRAM
1461 target_alias
1462 host_alias
1463 build_alias
1464 LIBS
1465 ECHO_T
1466 ECHO_N
1467 ECHO_C
1468 DEFS
1469 mandir
1470 localedir
1471 libdir
1472 psdir
1473 pdfdir
1474 dvidir
1475 htmldir
1476 infodir
1477 docdir
1478 oldincludedir
1479 includedir
1480 localstatedir
1481 sharedstatedir
1482 sysconfdir
1483 datadir
1484 datarootdir
1485 libexecdir
1486 sbindir
1487 bindir
1488 program_transform_name
1489 prefix
1490 exec_prefix
1491 PACKAGE_URL
1492 PACKAGE_BUGREPORT
1493 PACKAGE_STRING
1494 PACKAGE_VERSION
1495 PACKAGE_TARNAME
1496 PACKAGE_NAME
1497 PATH_SEPARATOR
1498 SHELL'
1499 ac_subst_files='deps_frag
1500 lisp_frag'
1501 ac_user_opts='
1502 enable_option_checking
1503 with_all
1504 with_pop
1505 with_kerberos
1506 with_kerberos5
1507 with_hesiod
1508 with_mmdf
1509 with_mail_unlink
1510 with_mailhost
1511 with_sound
1512 with_x_toolkit
1513 with_wide_int
1514 with_xpm
1515 with_jpeg
1516 with_tiff
1517 with_gif
1518 with_png
1519 with_rsvg
1520 with_xml2
1521 with_imagemagick
1522 with_xft
1523 with_libotf
1524 with_m17n_flt
1525 with_toolkit_scroll_bars
1526 with_xaw3d
1527 with_xim
1528 with_ns
1529 with_w32
1530 with_gpm
1531 with_dbus
1532 with_gconf
1533 with_gsettings
1534 with_selinux
1535 with_gnutls
1536 with_file_notification
1537 with_makeinfo
1538 with_compress_info
1539 with_pkg_config_prog
1540 with_gameuser
1541 with_gnustep_conf
1542 enable_ns_self_contained
1543 enable_locallisppath
1544 enable_checking
1545 enable_check_lisp_object_type
1546 enable_profiling
1547 enable_autodepend
1548 enable_gtk_deprecation_warnings
1549 enable_dependency_tracking
1550 enable_largefile
1551 enable_gcc_warnings
1552 enable_link_time_optimization
1553 with_x
1554 enable_acl
1555 '
1556 ac_precious_vars='build_alias
1557 host_alias
1558 target_alias
1559 CC
1560 CFLAGS
1561 LDFLAGS
1562 LIBS
1563 CPPFLAGS
1564 CPP
1565 XMKMF'
1566
1567
1568 # Initialize some variables set by options.
1569 ac_init_help=
1570 ac_init_version=false
1571 ac_unrecognized_opts=
1572 ac_unrecognized_sep=
1573 # The variables have the same names as the options, with
1574 # dashes changed to underlines.
1575 cache_file=/dev/null
1576 exec_prefix=NONE
1577 no_create=
1578 no_recursion=
1579 prefix=NONE
1580 program_prefix=NONE
1581 program_suffix=NONE
1582 program_transform_name=s,x,x,
1583 silent=
1584 site=
1585 srcdir=
1586 verbose=
1587 x_includes=NONE
1588 x_libraries=NONE
1589
1590 # Installation directory options.
1591 # These are left unexpanded so users can "make install exec_prefix=/foo"
1592 # and all the variables that are supposed to be based on exec_prefix
1593 # by default will actually change.
1594 # Use braces instead of parens because sh, perl, etc. also accept them.
1595 # (The list follows the same order as the GNU Coding Standards.)
1596 bindir='${exec_prefix}/bin'
1597 sbindir='${exec_prefix}/sbin'
1598 libexecdir='${exec_prefix}/libexec'
1599 datarootdir='${prefix}/share'
1600 datadir='${datarootdir}'
1601 sysconfdir='${prefix}/etc'
1602 sharedstatedir='${prefix}/com'
1603 localstatedir='${prefix}/var'
1604 includedir='${prefix}/include'
1605 oldincludedir='/usr/include'
1606 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1607 infodir='${datarootdir}/info'
1608 htmldir='${docdir}'
1609 dvidir='${docdir}'
1610 pdfdir='${docdir}'
1611 psdir='${docdir}'
1612 libdir='${exec_prefix}/lib'
1613 localedir='${datarootdir}/locale'
1614 mandir='${datarootdir}/man'
1615
1616 ac_prev=
1617 ac_dashdash=
1618 for ac_option
1619 do
1620 # If the previous option needs an argument, assign it.
1621 if test -n "$ac_prev"; then
1622 eval $ac_prev=\$ac_option
1623 ac_prev=
1624 continue
1625 fi
1626
1627 case $ac_option in
1628 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1629 *) ac_optarg=yes ;;
1630 esac
1631
1632 # Accept the important Cygnus configure options, so we can diagnose typos.
1633
1634 case $ac_dashdash$ac_option in
1635 --)
1636 ac_dashdash=yes ;;
1637
1638 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1639 ac_prev=bindir ;;
1640 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1641 bindir=$ac_optarg ;;
1642
1643 -build | --build | --buil | --bui | --bu)
1644 ac_prev=build_alias ;;
1645 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1646 build_alias=$ac_optarg ;;
1647
1648 -cache-file | --cache-file | --cache-fil | --cache-fi \
1649 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1650 ac_prev=cache_file ;;
1651 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1652 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1653 cache_file=$ac_optarg ;;
1654
1655 --config-cache | -C)
1656 cache_file=config.cache ;;
1657
1658 -datadir | --datadir | --datadi | --datad)
1659 ac_prev=datadir ;;
1660 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1661 datadir=$ac_optarg ;;
1662
1663 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1664 | --dataroo | --dataro | --datar)
1665 ac_prev=datarootdir ;;
1666 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1667 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1668 datarootdir=$ac_optarg ;;
1669
1670 -disable-* | --disable-*)
1671 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1672 # Reject names that are not valid shell variable names.
1673 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1674 as_fn_error "invalid feature name: $ac_useropt"
1675 ac_useropt_orig=$ac_useropt
1676 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1677 case $ac_user_opts in
1678 *"
1679 "enable_$ac_useropt"
1680 "*) ;;
1681 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1682 ac_unrecognized_sep=', ';;
1683 esac
1684 eval enable_$ac_useropt=no ;;
1685
1686 -docdir | --docdir | --docdi | --doc | --do)
1687 ac_prev=docdir ;;
1688 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1689 docdir=$ac_optarg ;;
1690
1691 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1692 ac_prev=dvidir ;;
1693 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1694 dvidir=$ac_optarg ;;
1695
1696 -enable-* | --enable-*)
1697 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1698 # Reject names that are not valid shell variable names.
1699 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1700 as_fn_error "invalid feature name: $ac_useropt"
1701 ac_useropt_orig=$ac_useropt
1702 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1703 case $ac_user_opts in
1704 *"
1705 "enable_$ac_useropt"
1706 "*) ;;
1707 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1708 ac_unrecognized_sep=', ';;
1709 esac
1710 eval enable_$ac_useropt=\$ac_optarg ;;
1711
1712 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1713 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1714 | --exec | --exe | --ex)
1715 ac_prev=exec_prefix ;;
1716 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1717 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1718 | --exec=* | --exe=* | --ex=*)
1719 exec_prefix=$ac_optarg ;;
1720
1721 -gas | --gas | --ga | --g)
1722 # Obsolete; use --with-gas.
1723 with_gas=yes ;;
1724
1725 -help | --help | --hel | --he | -h)
1726 ac_init_help=long ;;
1727 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1728 ac_init_help=recursive ;;
1729 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1730 ac_init_help=short ;;
1731
1732 -host | --host | --hos | --ho)
1733 ac_prev=host_alias ;;
1734 -host=* | --host=* | --hos=* | --ho=*)
1735 host_alias=$ac_optarg ;;
1736
1737 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1738 ac_prev=htmldir ;;
1739 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1740 | --ht=*)
1741 htmldir=$ac_optarg ;;
1742
1743 -includedir | --includedir | --includedi | --included | --include \
1744 | --includ | --inclu | --incl | --inc)
1745 ac_prev=includedir ;;
1746 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1747 | --includ=* | --inclu=* | --incl=* | --inc=*)
1748 includedir=$ac_optarg ;;
1749
1750 -infodir | --infodir | --infodi | --infod | --info | --inf)
1751 ac_prev=infodir ;;
1752 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1753 infodir=$ac_optarg ;;
1754
1755 -libdir | --libdir | --libdi | --libd)
1756 ac_prev=libdir ;;
1757 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1758 libdir=$ac_optarg ;;
1759
1760 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1761 | --libexe | --libex | --libe)
1762 ac_prev=libexecdir ;;
1763 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1764 | --libexe=* | --libex=* | --libe=*)
1765 libexecdir=$ac_optarg ;;
1766
1767 -localedir | --localedir | --localedi | --localed | --locale)
1768 ac_prev=localedir ;;
1769 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1770 localedir=$ac_optarg ;;
1771
1772 -localstatedir | --localstatedir | --localstatedi | --localstated \
1773 | --localstate | --localstat | --localsta | --localst | --locals)
1774 ac_prev=localstatedir ;;
1775 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1776 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1777 localstatedir=$ac_optarg ;;
1778
1779 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1780 ac_prev=mandir ;;
1781 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1782 mandir=$ac_optarg ;;
1783
1784 -nfp | --nfp | --nf)
1785 # Obsolete; use --without-fp.
1786 with_fp=no ;;
1787
1788 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1789 | --no-cr | --no-c | -n)
1790 no_create=yes ;;
1791
1792 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1793 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1794 no_recursion=yes ;;
1795
1796 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1797 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1798 | --oldin | --oldi | --old | --ol | --o)
1799 ac_prev=oldincludedir ;;
1800 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1801 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1802 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1803 oldincludedir=$ac_optarg ;;
1804
1805 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1806 ac_prev=prefix ;;
1807 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1808 prefix=$ac_optarg ;;
1809
1810 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1811 | --program-pre | --program-pr | --program-p)
1812 ac_prev=program_prefix ;;
1813 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1814 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1815 program_prefix=$ac_optarg ;;
1816
1817 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1818 | --program-suf | --program-su | --program-s)
1819 ac_prev=program_suffix ;;
1820 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1821 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1822 program_suffix=$ac_optarg ;;
1823
1824 -program-transform-name | --program-transform-name \
1825 | --program-transform-nam | --program-transform-na \
1826 | --program-transform-n | --program-transform- \
1827 | --program-transform | --program-transfor \
1828 | --program-transfo | --program-transf \
1829 | --program-trans | --program-tran \
1830 | --progr-tra | --program-tr | --program-t)
1831 ac_prev=program_transform_name ;;
1832 -program-transform-name=* | --program-transform-name=* \
1833 | --program-transform-nam=* | --program-transform-na=* \
1834 | --program-transform-n=* | --program-transform-=* \
1835 | --program-transform=* | --program-transfor=* \
1836 | --program-transfo=* | --program-transf=* \
1837 | --program-trans=* | --program-tran=* \
1838 | --progr-tra=* | --program-tr=* | --program-t=*)
1839 program_transform_name=$ac_optarg ;;
1840
1841 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1842 ac_prev=pdfdir ;;
1843 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1844 pdfdir=$ac_optarg ;;
1845
1846 -psdir | --psdir | --psdi | --psd | --ps)
1847 ac_prev=psdir ;;
1848 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1849 psdir=$ac_optarg ;;
1850
1851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1852 | -silent | --silent | --silen | --sile | --sil)
1853 silent=yes ;;
1854
1855 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1856 ac_prev=sbindir ;;
1857 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1858 | --sbi=* | --sb=*)
1859 sbindir=$ac_optarg ;;
1860
1861 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1862 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1863 | --sharedst | --shareds | --shared | --share | --shar \
1864 | --sha | --sh)
1865 ac_prev=sharedstatedir ;;
1866 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1867 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1868 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1869 | --sha=* | --sh=*)
1870 sharedstatedir=$ac_optarg ;;
1871
1872 -site | --site | --sit)
1873 ac_prev=site ;;
1874 -site=* | --site=* | --sit=*)
1875 site=$ac_optarg ;;
1876
1877 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1878 ac_prev=srcdir ;;
1879 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1880 srcdir=$ac_optarg ;;
1881
1882 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1883 | --syscon | --sysco | --sysc | --sys | --sy)
1884 ac_prev=sysconfdir ;;
1885 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1886 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1887 sysconfdir=$ac_optarg ;;
1888
1889 -target | --target | --targe | --targ | --tar | --ta | --t)
1890 ac_prev=target_alias ;;
1891 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1892 target_alias=$ac_optarg ;;
1893
1894 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1895 verbose=yes ;;
1896
1897 -version | --version | --versio | --versi | --vers | -V)
1898 ac_init_version=: ;;
1899
1900 -with-* | --with-*)
1901 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1902 # Reject names that are not valid shell variable names.
1903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1904 as_fn_error "invalid package name: $ac_useropt"
1905 ac_useropt_orig=$ac_useropt
1906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1907 case $ac_user_opts in
1908 *"
1909 "with_$ac_useropt"
1910 "*) ;;
1911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1912 ac_unrecognized_sep=', ';;
1913 esac
1914 eval with_$ac_useropt=\$ac_optarg ;;
1915
1916 -without-* | --without-*)
1917 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1918 # Reject names that are not valid shell variable names.
1919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1920 as_fn_error "invalid package name: $ac_useropt"
1921 ac_useropt_orig=$ac_useropt
1922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1923 case $ac_user_opts in
1924 *"
1925 "with_$ac_useropt"
1926 "*) ;;
1927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1928 ac_unrecognized_sep=', ';;
1929 esac
1930 eval with_$ac_useropt=no ;;
1931
1932 --x)
1933 # Obsolete; use --with-x.
1934 with_x=yes ;;
1935
1936 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1937 | --x-incl | --x-inc | --x-in | --x-i)
1938 ac_prev=x_includes ;;
1939 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1940 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1941 x_includes=$ac_optarg ;;
1942
1943 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1944 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1945 ac_prev=x_libraries ;;
1946 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1947 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1948 x_libraries=$ac_optarg ;;
1949
1950 -*) as_fn_error "unrecognized option: \`$ac_option'
1951 Try \`$0 --help' for more information."
1952 ;;
1953
1954 *=*)
1955 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1956 # Reject names that are not valid shell variable names.
1957 case $ac_envvar in #(
1958 '' | [0-9]* | *[!_$as_cr_alnum]* )
1959 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1960 esac
1961 eval $ac_envvar=\$ac_optarg
1962 export $ac_envvar ;;
1963
1964 *)
1965 # FIXME: should be removed in autoconf 3.0.
1966 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1967 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1968 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1969 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1970 ;;
1971
1972 esac
1973 done
1974
1975 if test -n "$ac_prev"; then
1976 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1977 as_fn_error "missing argument to $ac_option"
1978 fi
1979
1980 if test -n "$ac_unrecognized_opts"; then
1981 case $enable_option_checking in
1982 no) ;;
1983 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1984 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1985 esac
1986 fi
1987
1988 # Check all directory arguments for consistency.
1989 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1990 datadir sysconfdir sharedstatedir localstatedir includedir \
1991 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1992 libdir localedir mandir
1993 do
1994 eval ac_val=\$$ac_var
1995 # Remove trailing slashes.
1996 case $ac_val in
1997 */ )
1998 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1999 eval $ac_var=\$ac_val;;
2000 esac
2001 # Be sure to have absolute directory names.
2002 case $ac_val in
2003 [\\/$]* | ?:[\\/]* ) continue;;
2004 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2005 esac
2006 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2007 done
2008
2009 # There might be people who depend on the old broken behavior: `$host'
2010 # used to hold the argument of --host etc.
2011 # FIXME: To remove some day.
2012 build=$build_alias
2013 host=$host_alias
2014 target=$target_alias
2015
2016 # FIXME: To remove some day.
2017 if test "x$host_alias" != x; then
2018 if test "x$build_alias" = x; then
2019 cross_compiling=maybe
2020 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2021 If a cross compiler is detected then cross compile mode will be used." >&2
2022 elif test "x$build_alias" != "x$host_alias"; then
2023 cross_compiling=yes
2024 fi
2025 fi
2026
2027 ac_tool_prefix=
2028 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2029
2030 test "$silent" = yes && exec 6>/dev/null
2031
2032
2033 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2034 ac_ls_di=`ls -di .` &&
2035 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2036 as_fn_error "working directory cannot be determined"
2037 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2038 as_fn_error "pwd does not report name of working directory"
2039
2040
2041 # Find the source files, if location was not specified.
2042 if test -z "$srcdir"; then
2043 ac_srcdir_defaulted=yes
2044 # Try the directory containing this script, then the parent directory.
2045 ac_confdir=`$as_dirname -- "$as_myself" ||
2046 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2047 X"$as_myself" : 'X\(//\)[^/]' \| \
2048 X"$as_myself" : 'X\(//\)$' \| \
2049 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2050 $as_echo X"$as_myself" |
2051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2052 s//\1/
2053 q
2054 }
2055 /^X\(\/\/\)[^/].*/{
2056 s//\1/
2057 q
2058 }
2059 /^X\(\/\/\)$/{
2060 s//\1/
2061 q
2062 }
2063 /^X\(\/\).*/{
2064 s//\1/
2065 q
2066 }
2067 s/.*/./; q'`
2068 srcdir=$ac_confdir
2069 if test ! -r "$srcdir/$ac_unique_file"; then
2070 srcdir=..
2071 fi
2072 else
2073 ac_srcdir_defaulted=no
2074 fi
2075 if test ! -r "$srcdir/$ac_unique_file"; then
2076 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2077 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2078 fi
2079 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2080 ac_abs_confdir=`(
2081 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2082 pwd)`
2083 # When building in place, set srcdir=.
2084 if test "$ac_abs_confdir" = "$ac_pwd"; then
2085 srcdir=.
2086 fi
2087 # Remove unnecessary trailing slashes from srcdir.
2088 # Double slashes in file names in object file debugging info
2089 # mess up M-x gdb in Emacs.
2090 case $srcdir in
2091 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2092 esac
2093 for ac_var in $ac_precious_vars; do
2094 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2095 eval ac_env_${ac_var}_value=\$${ac_var}
2096 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2097 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2098 done
2099
2100 #
2101 # Report the --help message.
2102 #
2103 if test "$ac_init_help" = "long"; then
2104 # Omit some internal or obsolete options to make the list less imposing.
2105 # This message is too long to be a string in the A/UX 3.1 sh.
2106 cat <<_ACEOF
2107 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2108
2109 Usage: $0 [OPTION]... [VAR=VALUE]...
2110
2111 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2112 VAR=VALUE. See below for descriptions of some of the useful variables.
2113
2114 Defaults for the options are specified in brackets.
2115
2116 Configuration:
2117 -h, --help display this help and exit
2118 --help=short display options specific to this package
2119 --help=recursive display the short help of all the included packages
2120 -V, --version display version information and exit
2121 -q, --quiet, --silent do not print \`checking...' messages
2122 --cache-file=FILE cache test results in FILE [disabled]
2123 -C, --config-cache alias for \`--cache-file=config.cache'
2124 -n, --no-create do not create output files
2125 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2126
2127 Installation directories:
2128 --prefix=PREFIX install architecture-independent files in PREFIX
2129 [$ac_default_prefix]
2130 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2131 [PREFIX]
2132
2133 By default, \`make install' will install all the files in
2134 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2135 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2136 for instance \`--prefix=\$HOME'.
2137
2138 For better control, use the options below.
2139
2140 Fine tuning of the installation directories:
2141 --bindir=DIR user executables [EPREFIX/bin]
2142 --sbindir=DIR system admin executables [EPREFIX/sbin]
2143 --libexecdir=DIR program executables [EPREFIX/libexec]
2144 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2145 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2146 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2147 --libdir=DIR object code libraries [EPREFIX/lib]
2148 --includedir=DIR C header files [PREFIX/include]
2149 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2150 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2151 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2152 --infodir=DIR info documentation [DATAROOTDIR/info]
2153 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2154 --mandir=DIR man documentation [DATAROOTDIR/man]
2155 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2156 --htmldir=DIR html documentation [DOCDIR]
2157 --dvidir=DIR dvi documentation [DOCDIR]
2158 --pdfdir=DIR pdf documentation [DOCDIR]
2159 --psdir=DIR ps documentation [DOCDIR]
2160 _ACEOF
2161
2162 cat <<\_ACEOF
2163
2164 Program names:
2165 --program-prefix=PREFIX prepend PREFIX to installed program names
2166 --program-suffix=SUFFIX append SUFFIX to installed program names
2167 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2168
2169 X features:
2170 --x-includes=DIR X include files are in DIR
2171 --x-libraries=DIR X library files are in DIR
2172
2173 System types:
2174 --build=BUILD configure for building on BUILD [guessed]
2175 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2176 _ACEOF
2177 fi
2178
2179 if test -n "$ac_init_help"; then
2180 case $ac_init_help in
2181 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2182 esac
2183 cat <<\_ACEOF
2184
2185 Optional Features:
2186 --disable-option-checking ignore unrecognized --enable/--with options
2187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2189 --disable-ns-self-contained
2190 disable self contained build under NeXTstep
2191 --enable-locallisppath=PATH
2192 directories Emacs should search for lisp files
2193 specific to this site
2194 --enable-checking[=LIST]
2195 enable expensive run-time checks. With LIST, enable
2196 only specific categories of checks. Categories are:
2197 all,yes,no. Flags are: stringbytes, stringoverrun,
2198 stringfreelist, xmallocoverrun, conslist, glyphs
2199 --enable-check-lisp-object-type
2200 enable compile time checks for the Lisp_Object data
2201 type. This is useful for development for catching
2202 certain types of bugs.
2203 --enable-profiling build emacs with low-level, gprof profiling support.
2204 Mainly useful for debugging Emacs itself. May not
2205 work on all platforms. Stops profiler.el working.
2206 --enable-autodepend automatically generate dependencies to .h-files.
2207 Requires GNU Make and Gcc. Enabled if GNU Make and
2208 Gcc is found
2209 --enable-gtk-deprecation-warnings
2210 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2211 --disable-dependency-tracking speeds up one-time build
2212 --enable-dependency-tracking do not reject slow dependency extractors
2213 --disable-largefile omit support for large files
2214 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2215 intended for developers, and may generate false
2216 alarms when used with older or non-GNU development
2217 tools.
2218 --enable-link-time-optimization
2219 build emacs with link-time optimization. This is
2220 supported only for GCC since 4.5.0.
2221 --disable-acl do not support ACLs
2222
2223 Optional Packages:
2224 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2225 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2226 --without-all omit almost all features and build small executable
2227 with minimal dependencies
2228 --without-pop don't support POP mail retrieval with movemail
2229 --with-kerberos support Kerberos-authenticated POP
2230 --with-kerberos5 support Kerberos version 5 authenticated POP
2231 --with-hesiod support Hesiod to get the POP server host
2232 --with-mmdf support MMDF mailboxes
2233 --with-mail-unlink unlink, rather than empty, mail spool after reading
2234 --with-mailhost=HOSTNAME
2235 string giving default POP mail host
2236 --without-sound don't compile with sound support
2237 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2238 gtk3, lucid or athena, motif, no)
2239 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2240 --without-xpm don't compile with XPM image support
2241 --without-jpeg don't compile with JPEG image support
2242 --without-tiff don't compile with TIFF image support
2243 --without-gif don't compile with GIF image support
2244 --without-png don't compile with PNG image support
2245 --without-rsvg don't compile with SVG image support
2246 --without-xml2 don't compile with XML parsing support
2247 --without-imagemagick don't compile with ImageMagick image support
2248 --without-xft don't use XFT for anti aliased fonts
2249 --without-libotf don't use libotf for OpenType font support
2250 --without-m17n-flt don't use m17n-flt for text shaping
2251 --without-toolkit-scroll-bars
2252 don't use Motif or Xaw3d scroll bars
2253 --without-xaw3d don't use Xaw3d
2254 --without-xim don't use X11 XIM
2255 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2256 --with-w32 use native MS Windows GUI in a Cygwin build
2257 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2258 console
2259 --without-dbus don't compile with D-Bus support
2260 --without-gconf don't compile with GConf support
2261 --without-gsettings don't compile with GSettings support
2262 --without-selinux don't compile with SELinux support
2263 --without-gnutls don't use -lgnutls for SSL/TLS support
2264 --with-file-notification=LIB
2265 use a file notification library (LIB one of: yes,
2266 gfile, inotify, w32, no)
2267 --without-makeinfo don't require makeinfo for building manuals
2268 --without-compress-info don't compress the installed Info pages
2269 --with-pkg-config-prog=FILENAME
2270 file name of pkg-config for finding GTK and librsvg
2271 --with-gameuser=USER user for shared game score files
2272 --with-gnustep-conf=FILENAME
2273 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2274 or /etc/GNUstep/GNUstep.conf
2275 --with-x use the X Window System
2276
2277 Some influential environment variables:
2278 CC C compiler command
2279 CFLAGS C compiler flags
2280 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2281 nonstandard directory <lib dir>
2282 LIBS libraries to pass to the linker, e.g. -l<library>
2283 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2284 you have headers in a nonstandard directory <include dir>
2285 CPP C preprocessor
2286 XMKMF Path to xmkmf, Makefile generator for X Window System
2287
2288 Use these variables to override the choices made by `configure' or to help
2289 it to find libraries and programs with nonstandard names/locations.
2290
2291 Report bugs to the package provider.
2292 _ACEOF
2293 ac_status=$?
2294 fi
2295
2296 if test "$ac_init_help" = "recursive"; then
2297 # If there are subdirs, report their specific --help.
2298 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2299 test -d "$ac_dir" ||
2300 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2301 continue
2302 ac_builddir=.
2303
2304 case "$ac_dir" in
2305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2306 *)
2307 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2308 # A ".." for each directory in $ac_dir_suffix.
2309 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2310 case $ac_top_builddir_sub in
2311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2313 esac ;;
2314 esac
2315 ac_abs_top_builddir=$ac_pwd
2316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2317 # for backward compatibility:
2318 ac_top_builddir=$ac_top_build_prefix
2319
2320 case $srcdir in
2321 .) # We are building in place.
2322 ac_srcdir=.
2323 ac_top_srcdir=$ac_top_builddir_sub
2324 ac_abs_top_srcdir=$ac_pwd ;;
2325 [\\/]* | ?:[\\/]* ) # Absolute name.
2326 ac_srcdir=$srcdir$ac_dir_suffix;
2327 ac_top_srcdir=$srcdir
2328 ac_abs_top_srcdir=$srcdir ;;
2329 *) # Relative name.
2330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2331 ac_top_srcdir=$ac_top_build_prefix$srcdir
2332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2333 esac
2334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2335
2336 cd "$ac_dir" || { ac_status=$?; continue; }
2337 # Check for guested configure.
2338 if test -f "$ac_srcdir/configure.gnu"; then
2339 echo &&
2340 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2341 elif test -f "$ac_srcdir/configure"; then
2342 echo &&
2343 $SHELL "$ac_srcdir/configure" --help=recursive
2344 else
2345 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2346 fi || ac_status=$?
2347 cd "$ac_pwd" || { ac_status=$?; break; }
2348 done
2349 fi
2350
2351 test -n "$ac_init_help" && exit $ac_status
2352 if $ac_init_version; then
2353 cat <<\_ACEOF
2354 emacs configure 24.3.50
2355 generated by GNU Autoconf 2.65
2356
2357 Copyright (C) 2009 Free Software Foundation, Inc.
2358 This configure script is free software; the Free Software Foundation
2359 gives unlimited permission to copy, distribute and modify it.
2360 _ACEOF
2361 exit
2362 fi
2363
2364 ## ------------------------ ##
2365 ## Autoconf initialization. ##
2366 ## ------------------------ ##
2367
2368 # ac_fn_c_try_compile LINENO
2369 # --------------------------
2370 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2371 ac_fn_c_try_compile ()
2372 {
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 rm -f conftest.$ac_objext
2375 if { { ac_try="$ac_compile"
2376 case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379 esac
2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_compile") 2>conftest.err
2383 ac_status=$?
2384 if test -s conftest.err; then
2385 grep -v '^ *+' conftest.err >conftest.er1
2386 cat conftest.er1 >&5
2387 mv -f conftest.er1 conftest.err
2388 fi
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } && {
2391 test -z "$ac_c_werror_flag" ||
2392 test ! -s conftest.err
2393 } && test -s conftest.$ac_objext; then :
2394 ac_retval=0
2395 else
2396 $as_echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2398
2399 ac_retval=1
2400 fi
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402 as_fn_set_status $ac_retval
2403
2404 } # ac_fn_c_try_compile
2405
2406 # ac_fn_c_try_cpp LINENO
2407 # ----------------------
2408 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2409 ac_fn_c_try_cpp ()
2410 {
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 if { { ac_try="$ac_cpp conftest.$ac_ext"
2413 case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416 esac
2417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2418 $as_echo "$ac_try_echo"; } >&5
2419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2420 ac_status=$?
2421 if test -s conftest.err; then
2422 grep -v '^ *+' conftest.err >conftest.er1
2423 cat conftest.er1 >&5
2424 mv -f conftest.er1 conftest.err
2425 fi
2426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2427 test $ac_status = 0; } >/dev/null && {
2428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2429 test ! -s conftest.err
2430 }; then :
2431 ac_retval=0
2432 else
2433 $as_echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2435
2436 ac_retval=1
2437 fi
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2439 as_fn_set_status $ac_retval
2440
2441 } # ac_fn_c_try_cpp
2442
2443 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2444 # -------------------------------------------------------
2445 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2446 # the include files in INCLUDES and setting the cache variable VAR
2447 # accordingly.
2448 ac_fn_c_check_header_mongrel ()
2449 {
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2456 fi
2457 eval ac_res=\$$3
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 else
2461 # Is the header compilable?
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2463 $as_echo_n "checking $2 usability... " >&6; }
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2466 $4
2467 #include <$2>
2468 _ACEOF
2469 if ac_fn_c_try_compile "$LINENO"; then :
2470 ac_header_compiler=yes
2471 else
2472 ac_header_compiler=no
2473 fi
2474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2476 $as_echo "$ac_header_compiler" >&6; }
2477
2478 # Is the header present?
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2480 $as_echo_n "checking $2 presence... " >&6; }
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2483 #include <$2>
2484 _ACEOF
2485 if ac_fn_c_try_cpp "$LINENO"; then :
2486 ac_header_preproc=yes
2487 else
2488 ac_header_preproc=no
2489 fi
2490 rm -f conftest.err conftest.$ac_ext
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2492 $as_echo "$ac_header_preproc" >&6; }
2493
2494 # So? What about this header?
2495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2496 yes:no: )
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2498 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2500 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2501 ;;
2502 no:yes:* )
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2504 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2506 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2508 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2510 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2512 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2513 ;;
2514 esac
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2516 $as_echo_n "checking for $2... " >&6; }
2517 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 eval "$3=\$ac_header_compiler"
2521 fi
2522 eval ac_res=\$$3
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2524 $as_echo "$ac_res" >&6; }
2525 fi
2526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2527
2528 } # ac_fn_c_check_header_mongrel
2529
2530 # ac_fn_c_try_run LINENO
2531 # ----------------------
2532 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2533 # that executables *can* be run.
2534 ac_fn_c_try_run ()
2535 {
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 if { { ac_try="$ac_link"
2538 case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2541 esac
2542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2543 $as_echo "$ac_try_echo"; } >&5
2544 (eval "$ac_link") 2>&5
2545 ac_status=$?
2546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2547 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2548 { { case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551 esac
2552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2553 $as_echo "$ac_try_echo"; } >&5
2554 (eval "$ac_try") 2>&5
2555 ac_status=$?
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; }; }; then :
2558 ac_retval=0
2559 else
2560 $as_echo "$as_me: program exited with status $ac_status" >&5
2561 $as_echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 ac_retval=$ac_status
2565 fi
2566 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2568 as_fn_set_status $ac_retval
2569
2570 } # ac_fn_c_try_run
2571
2572 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2573 # -------------------------------------------------------
2574 # Tests whether HEADER exists and can be compiled using the include files in
2575 # INCLUDES, setting the cache variable VAR accordingly.
2576 ac_fn_c_check_header_compile ()
2577 {
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2580 $as_echo_n "checking for $2... " >&6; }
2581 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2586 $4
2587 #include <$2>
2588 _ACEOF
2589 if ac_fn_c_try_compile "$LINENO"; then :
2590 eval "$3=yes"
2591 else
2592 eval "$3=no"
2593 fi
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 fi
2596 eval ac_res=\$$3
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2598 $as_echo "$ac_res" >&6; }
2599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2600
2601 } # ac_fn_c_check_header_compile
2602
2603 # ac_fn_c_try_link LINENO
2604 # -----------------------
2605 # Try to link conftest.$ac_ext, and return whether this succeeded.
2606 ac_fn_c_try_link ()
2607 {
2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609 rm -f conftest.$ac_objext conftest$ac_exeext
2610 if { { ac_try="$ac_link"
2611 case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2614 esac
2615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616 $as_echo "$ac_try_echo"; } >&5
2617 (eval "$ac_link") 2>conftest.err
2618 ac_status=$?
2619 if test -s conftest.err; then
2620 grep -v '^ *+' conftest.err >conftest.er1
2621 cat conftest.er1 >&5
2622 mv -f conftest.er1 conftest.err
2623 fi
2624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2625 test $ac_status = 0; } && {
2626 test -z "$ac_c_werror_flag" ||
2627 test ! -s conftest.err
2628 } && test -s conftest$ac_exeext && {
2629 test "$cross_compiling" = yes ||
2630 $as_test_x conftest$ac_exeext
2631 }; then :
2632 ac_retval=0
2633 else
2634 $as_echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 ac_retval=1
2638 fi
2639 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2640 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2641 # interfere with the next link command; also delete a directory that is
2642 # left behind by Apple's compiler. We do this before executing the actions.
2643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645 as_fn_set_status $ac_retval
2646
2647 } # ac_fn_c_try_link
2648
2649 # ac_fn_c_check_decl LINENO SYMBOL VAR
2650 # ------------------------------------
2651 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2652 ac_fn_c_check_decl ()
2653 {
2654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2656 $as_echo_n "checking whether $2 is declared... " >&6; }
2657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $4
2663 int
2664 main ()
2665 {
2666 #ifndef $2
2667 (void) $2;
2668 #endif
2669
2670 ;
2671 return 0;
2672 }
2673 _ACEOF
2674 if ac_fn_c_try_compile "$LINENO"; then :
2675 eval "$3=yes"
2676 else
2677 eval "$3=no"
2678 fi
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 fi
2681 eval ac_res=\$$3
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2683 $as_echo "$ac_res" >&6; }
2684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2685
2686 } # ac_fn_c_check_decl
2687
2688 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2689 # ----------------------------------------------
2690 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2691 ac_fn_c_check_header_preproc ()
2692 {
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2695 $as_echo_n "checking for $2... " >&6; }
2696 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2701 #include <$2>
2702 _ACEOF
2703 if ac_fn_c_try_cpp "$LINENO"; then :
2704 eval "$3=yes"
2705 else
2706 eval "$3=no"
2707 fi
2708 rm -f conftest.err conftest.$ac_ext
2709 fi
2710 eval ac_res=\$$3
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2712 $as_echo "$ac_res" >&6; }
2713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2714
2715 } # ac_fn_c_check_header_preproc
2716
2717 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2718 # ----------------------------------------------------
2719 # Tries to find if the field MEMBER exists in type AGGR, after including
2720 # INCLUDES, setting cache variable VAR accordingly.
2721 ac_fn_c_check_member ()
2722 {
2723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2725 $as_echo_n "checking for $2.$3... " >&6; }
2726 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2731 $5
2732 int
2733 main ()
2734 {
2735 static $2 ac_aggr;
2736 if (ac_aggr.$3)
2737 return 0;
2738 ;
2739 return 0;
2740 }
2741 _ACEOF
2742 if ac_fn_c_try_compile "$LINENO"; then :
2743 eval "$4=yes"
2744 else
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2747 $5
2748 int
2749 main ()
2750 {
2751 static $2 ac_aggr;
2752 if (sizeof ac_aggr.$3)
2753 return 0;
2754 ;
2755 return 0;
2756 }
2757 _ACEOF
2758 if ac_fn_c_try_compile "$LINENO"; then :
2759 eval "$4=yes"
2760 else
2761 eval "$4=no"
2762 fi
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 fi
2765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 fi
2767 eval ac_res=\$$4
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2769 $as_echo "$ac_res" >&6; }
2770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2771
2772 } # ac_fn_c_check_member
2773
2774 # ac_fn_c_check_func LINENO FUNC VAR
2775 # ----------------------------------
2776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2777 ac_fn_c_check_func ()
2778 {
2779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2781 $as_echo_n "checking for $2... " >&6; }
2782 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h. */
2787 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2789 #define $2 innocuous_$2
2790
2791 /* System header to define __stub macros and hopefully few prototypes,
2792 which can conflict with char $2 (); below.
2793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2794 <limits.h> exists even on freestanding compilers. */
2795
2796 #ifdef __STDC__
2797 # include <limits.h>
2798 #else
2799 # include <assert.h>
2800 #endif
2801
2802 #undef $2
2803
2804 /* Override any GCC internal prototype to avoid an error.
2805 Use char because int might match the return type of a GCC
2806 builtin and then its argument prototype would still apply. */
2807 #ifdef __cplusplus
2808 extern "C"
2809 #endif
2810 char $2 ();
2811 /* The GNU C library defines this for functions which it implements
2812 to always fail with ENOSYS. Some functions are actually named
2813 something starting with __ and the normal name is an alias. */
2814 #if defined __stub_$2 || defined __stub___$2
2815 choke me
2816 #endif
2817
2818 int
2819 main ()
2820 {
2821 return $2 ();
2822 ;
2823 return 0;
2824 }
2825 _ACEOF
2826 if ac_fn_c_try_link "$LINENO"; then :
2827 eval "$3=yes"
2828 else
2829 eval "$3=no"
2830 fi
2831 rm -f core conftest.err conftest.$ac_objext \
2832 conftest$ac_exeext conftest.$ac_ext
2833 fi
2834 eval ac_res=\$$3
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2836 $as_echo "$ac_res" >&6; }
2837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2838
2839 } # ac_fn_c_check_func
2840
2841 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2842 # -------------------------------------------
2843 # Tests whether TYPE exists after having included INCLUDES, setting cache
2844 # variable VAR accordingly.
2845 ac_fn_c_check_type ()
2846 {
2847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2849 $as_echo_n "checking for $2... " >&6; }
2850 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 eval "$3=no"
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2856 $4
2857 int
2858 main ()
2859 {
2860 if (sizeof ($2))
2861 return 0;
2862 ;
2863 return 0;
2864 }
2865 _ACEOF
2866 if ac_fn_c_try_compile "$LINENO"; then :
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2869 $4
2870 int
2871 main ()
2872 {
2873 if (sizeof (($2)))
2874 return 0;
2875 ;
2876 return 0;
2877 }
2878 _ACEOF
2879 if ac_fn_c_try_compile "$LINENO"; then :
2880
2881 else
2882 eval "$3=yes"
2883 fi
2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 fi
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887 fi
2888 eval ac_res=\$$3
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2890 $as_echo "$ac_res" >&6; }
2891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2892
2893 } # ac_fn_c_check_type
2894
2895 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2896 # --------------------------------------------
2897 # Tries to find the compile-time value of EXPR in a program that includes
2898 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2899 # computed
2900 ac_fn_c_compute_int ()
2901 {
2902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2903 if test "$cross_compiling" = yes; then
2904 # Depending upon the size, compute the lo and hi bounds.
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h. */
2907 $4
2908 int
2909 main ()
2910 {
2911 static int test_array [1 - 2 * !(($2) >= 0)];
2912 test_array [0] = 0
2913
2914 ;
2915 return 0;
2916 }
2917 _ACEOF
2918 if ac_fn_c_try_compile "$LINENO"; then :
2919 ac_lo=0 ac_mid=0
2920 while :; do
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2923 $4
2924 int
2925 main ()
2926 {
2927 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2928 test_array [0] = 0
2929
2930 ;
2931 return 0;
2932 }
2933 _ACEOF
2934 if ac_fn_c_try_compile "$LINENO"; then :
2935 ac_hi=$ac_mid; break
2936 else
2937 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2938 if test $ac_lo -le $ac_mid; then
2939 ac_lo= ac_hi=
2940 break
2941 fi
2942 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2943 fi
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945 done
2946 else
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2949 $4
2950 int
2951 main ()
2952 {
2953 static int test_array [1 - 2 * !(($2) < 0)];
2954 test_array [0] = 0
2955
2956 ;
2957 return 0;
2958 }
2959 _ACEOF
2960 if ac_fn_c_try_compile "$LINENO"; then :
2961 ac_hi=-1 ac_mid=-1
2962 while :; do
2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964 /* end confdefs.h. */
2965 $4
2966 int
2967 main ()
2968 {
2969 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2970 test_array [0] = 0
2971
2972 ;
2973 return 0;
2974 }
2975 _ACEOF
2976 if ac_fn_c_try_compile "$LINENO"; then :
2977 ac_lo=$ac_mid; break
2978 else
2979 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2980 if test $ac_mid -le $ac_hi; then
2981 ac_lo= ac_hi=
2982 break
2983 fi
2984 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2985 fi
2986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987 done
2988 else
2989 ac_lo= ac_hi=
2990 fi
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 fi
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994 # Binary search between lo and hi bounds.
2995 while test "x$ac_lo" != "x$ac_hi"; do
2996 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h. */
2999 $4
3000 int
3001 main ()
3002 {
3003 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3004 test_array [0] = 0
3005
3006 ;
3007 return 0;
3008 }
3009 _ACEOF
3010 if ac_fn_c_try_compile "$LINENO"; then :
3011 ac_hi=$ac_mid
3012 else
3013 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3014 fi
3015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016 done
3017 case $ac_lo in #((
3018 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3019 '') ac_retval=1 ;;
3020 esac
3021 else
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3024 $4
3025 static long int longval () { return $2; }
3026 static unsigned long int ulongval () { return $2; }
3027 #include <stdio.h>
3028 #include <stdlib.h>
3029 int
3030 main ()
3031 {
3032
3033 FILE *f = fopen ("conftest.val", "w");
3034 if (! f)
3035 return 1;
3036 if (($2) < 0)
3037 {
3038 long int i = longval ();
3039 if (i != ($2))
3040 return 1;
3041 fprintf (f, "%ld", i);
3042 }
3043 else
3044 {
3045 unsigned long int i = ulongval ();
3046 if (i != ($2))
3047 return 1;
3048 fprintf (f, "%lu", i);
3049 }
3050 /* Do not output a trailing newline, as this causes \r\n confusion
3051 on some platforms. */
3052 return ferror (f) || fclose (f) != 0;
3053
3054 ;
3055 return 0;
3056 }
3057 _ACEOF
3058 if ac_fn_c_try_run "$LINENO"; then :
3059 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3060 else
3061 ac_retval=1
3062 fi
3063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3064 conftest.$ac_objext conftest.beam conftest.$ac_ext
3065 rm -f conftest.val
3066
3067 fi
3068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3069 as_fn_set_status $ac_retval
3070
3071 } # ac_fn_c_compute_int
3072 cat >config.log <<_ACEOF
3073 This file contains any messages produced by compilers while
3074 running configure, to aid debugging if configure makes a mistake.
3075
3076 It was created by emacs $as_me 24.3.50, which was
3077 generated by GNU Autoconf 2.65. Invocation command line was
3078
3079 $ $0 $@
3080
3081 _ACEOF
3082 exec 5>>config.log
3083 {
3084 cat <<_ASUNAME
3085 ## --------- ##
3086 ## Platform. ##
3087 ## --------- ##
3088
3089 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3090 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3091 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3092 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3093 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3094
3095 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3096 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3097
3098 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3099 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3100 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3101 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3102 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3103 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3104 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3105
3106 _ASUNAME
3107
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 $as_echo "PATH: $as_dir"
3114 done
3115 IFS=$as_save_IFS
3116
3117 } >&5
3118
3119 cat >&5 <<_ACEOF
3120
3121
3122 ## ----------- ##
3123 ## Core tests. ##
3124 ## ----------- ##
3125
3126 _ACEOF
3127
3128
3129 # Keep a trace of the command line.
3130 # Strip out --no-create and --no-recursion so they do not pile up.
3131 # Strip out --silent because we don't want to record it for future runs.
3132 # Also quote any args containing shell meta-characters.
3133 # Make two passes to allow for proper duplicate-argument suppression.
3134 ac_configure_args=
3135 ac_configure_args0=
3136 ac_configure_args1=
3137 ac_must_keep_next=false
3138 for ac_pass in 1 2
3139 do
3140 for ac_arg
3141 do
3142 case $ac_arg in
3143 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3145 | -silent | --silent | --silen | --sile | --sil)
3146 continue ;;
3147 *\'*)
3148 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3149 esac
3150 case $ac_pass in
3151 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3152 2)
3153 as_fn_append ac_configure_args1 " '$ac_arg'"
3154 if test $ac_must_keep_next = true; then
3155 ac_must_keep_next=false # Got value, back to normal.
3156 else
3157 case $ac_arg in
3158 *=* | --config-cache | -C | -disable-* | --disable-* \
3159 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3160 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3161 | -with-* | --with-* | -without-* | --without-* | --x)
3162 case "$ac_configure_args0 " in
3163 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3164 esac
3165 ;;
3166 -* ) ac_must_keep_next=true ;;
3167 esac
3168 fi
3169 as_fn_append ac_configure_args " '$ac_arg'"
3170 ;;
3171 esac
3172 done
3173 done
3174 { ac_configure_args0=; unset ac_configure_args0;}
3175 { ac_configure_args1=; unset ac_configure_args1;}
3176
3177 # When interrupted or exit'd, cleanup temporary files, and complete
3178 # config.log. We remove comments because anyway the quotes in there
3179 # would cause problems or look ugly.
3180 # WARNING: Use '\'' to represent an apostrophe within the trap.
3181 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3182 trap 'exit_status=$?
3183 # Save into config.log some information that might help in debugging.
3184 {
3185 echo
3186
3187 cat <<\_ASBOX
3188 ## ---------------- ##
3189 ## Cache variables. ##
3190 ## ---------------- ##
3191 _ASBOX
3192 echo
3193 # The following way of writing the cache mishandles newlines in values,
3194 (
3195 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3196 eval ac_val=\$$ac_var
3197 case $ac_val in #(
3198 *${as_nl}*)
3199 case $ac_var in #(
3200 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3201 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3202 esac
3203 case $ac_var in #(
3204 _ | IFS | as_nl) ;; #(
3205 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3206 *) { eval $ac_var=; unset $ac_var;} ;;
3207 esac ;;
3208 esac
3209 done
3210 (set) 2>&1 |
3211 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3212 *${as_nl}ac_space=\ *)
3213 sed -n \
3214 "s/'\''/'\''\\\\'\'''\''/g;
3215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3216 ;; #(
3217 *)
3218 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3219 ;;
3220 esac |
3221 sort
3222 )
3223 echo
3224
3225 cat <<\_ASBOX
3226 ## ----------------- ##
3227 ## Output variables. ##
3228 ## ----------------- ##
3229 _ASBOX
3230 echo
3231 for ac_var in $ac_subst_vars
3232 do
3233 eval ac_val=\$$ac_var
3234 case $ac_val in
3235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3236 esac
3237 $as_echo "$ac_var='\''$ac_val'\''"
3238 done | sort
3239 echo
3240
3241 if test -n "$ac_subst_files"; then
3242 cat <<\_ASBOX
3243 ## ------------------- ##
3244 ## File substitutions. ##
3245 ## ------------------- ##
3246 _ASBOX
3247 echo
3248 for ac_var in $ac_subst_files
3249 do
3250 eval ac_val=\$$ac_var
3251 case $ac_val in
3252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3253 esac
3254 $as_echo "$ac_var='\''$ac_val'\''"
3255 done | sort
3256 echo
3257 fi
3258
3259 if test -s confdefs.h; then
3260 cat <<\_ASBOX
3261 ## ----------- ##
3262 ## confdefs.h. ##
3263 ## ----------- ##
3264 _ASBOX
3265 echo
3266 cat confdefs.h
3267 echo
3268 fi
3269 test "$ac_signal" != 0 &&
3270 $as_echo "$as_me: caught signal $ac_signal"
3271 $as_echo "$as_me: exit $exit_status"
3272 } >&5
3273 rm -f core *.core core.conftest.* &&
3274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3275 exit $exit_status
3276 ' 0
3277 for ac_signal in 1 2 13 15; do
3278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3279 done
3280 ac_signal=0
3281
3282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3283 rm -f -r conftest* confdefs.h
3284
3285 $as_echo "/* confdefs.h */" > confdefs.h
3286
3287 # Predefined preprocessor variables.
3288
3289 cat >>confdefs.h <<_ACEOF
3290 #define PACKAGE_NAME "$PACKAGE_NAME"
3291 _ACEOF
3292
3293 cat >>confdefs.h <<_ACEOF
3294 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3295 _ACEOF
3296
3297 cat >>confdefs.h <<_ACEOF
3298 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3299 _ACEOF
3300
3301 cat >>confdefs.h <<_ACEOF
3302 #define PACKAGE_STRING "$PACKAGE_STRING"
3303 _ACEOF
3304
3305 cat >>confdefs.h <<_ACEOF
3306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3307 _ACEOF
3308
3309 cat >>confdefs.h <<_ACEOF
3310 #define PACKAGE_URL "$PACKAGE_URL"
3311 _ACEOF
3312
3313
3314 # Let the site file select an alternate cache file if it wants to.
3315 # Prefer an explicitly selected file to automatically selected ones.
3316 ac_site_file1=NONE
3317 ac_site_file2=NONE
3318 if test -n "$CONFIG_SITE"; then
3319 ac_site_file1=$CONFIG_SITE
3320 elif test "x$prefix" != xNONE; then
3321 ac_site_file1=$prefix/share/config.site
3322 ac_site_file2=$prefix/etc/config.site
3323 else
3324 ac_site_file1=$ac_default_prefix/share/config.site
3325 ac_site_file2=$ac_default_prefix/etc/config.site
3326 fi
3327 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3328 do
3329 test "x$ac_site_file" = xNONE && continue
3330 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3332 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3333 sed 's/^/| /' "$ac_site_file" >&5
3334 . "$ac_site_file"
3335 fi
3336 done
3337
3338 if test -r "$cache_file"; then
3339 # Some versions of bash will fail to source /dev/null (special files
3340 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3341 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3343 $as_echo "$as_me: loading cache $cache_file" >&6;}
3344 case $cache_file in
3345 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3346 *) . "./$cache_file";;
3347 esac
3348 fi
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3351 $as_echo "$as_me: creating cache $cache_file" >&6;}
3352 >$cache_file
3353 fi
3354
3355 as_fn_append ac_header_list " linux/version.h"
3356 as_fn_append ac_header_list " sys/systeminfo.h"
3357 as_fn_append ac_header_list " coff.h"
3358 as_fn_append ac_header_list " pty.h"
3359 as_fn_append ac_header_list " sys/resource.h"
3360 as_fn_append ac_header_list " sys/utsname.h"
3361 as_fn_append ac_header_list " pwd.h"
3362 as_fn_append ac_header_list " utmp.h"
3363 as_fn_append ac_header_list " util.h"
3364 as_fn_append ac_header_list " sys/socket.h"
3365 as_fn_append ac_header_list " stdlib.h"
3366 as_fn_append ac_header_list " unistd.h"
3367 as_fn_append ac_header_list " sys/param.h"
3368 as_fn_append ac_header_list " pthread.h"
3369 as_fn_append ac_header_list " malloc/malloc.h"
3370 as_fn_append ac_header_list " maillock.h"
3371 as_fn_append ac_header_list " sys/un.h"
3372 as_fn_append ac_func_list " tzset"
3373 as_fn_append ac_func_list " readlinkat"
3374 as_fn_append ac_header_list " dirent.h"
3375 as_fn_append ac_header_list " execinfo.h"
3376 as_fn_append ac_func_list " faccessat"
3377 as_fn_append ac_func_list " fdopendir"
3378 as_fn_append ac_header_list " stdio_ext.h"
3379 as_fn_append ac_func_list " __fpending"
3380 as_fn_append ac_func_list " fstatat"
3381 as_fn_append ac_func_list " fsync"
3382 gl_getopt_required=GNU
3383 as_fn_append ac_header_list " getopt.h"
3384 as_fn_append ac_func_list " gettimeofday"
3385 as_fn_append ac_func_list " nanotime"
3386 as_fn_append ac_header_list " sys/time.h"
3387 as_fn_append ac_header_list " wchar.h"
3388 as_fn_append ac_header_list " stdint.h"
3389 as_fn_append ac_header_list " inttypes.h"
3390 as_fn_append ac_func_list " lstat"
3391 as_fn_append ac_header_list " sys/select.h"
3392 as_fn_append ac_func_list " pselect"
3393 as_fn_append ac_func_list " pthread_sigmask"
3394 as_fn_append ac_func_list " readlink"
3395 as_fn_append ac_func_list " strtoimax"
3396 as_fn_append ac_func_list " strtoumax"
3397 as_fn_append ac_func_list " symlink"
3398 as_fn_append ac_header_list " sys/stat.h"
3399 as_fn_append ac_func_list " localtime_r"
3400 as_fn_append ac_header_list " utime.h"
3401 as_fn_append ac_func_list " futimes"
3402 as_fn_append ac_func_list " futimesat"
3403 as_fn_append ac_func_list " futimens"
3404 as_fn_append ac_func_list " utimensat"
3405 as_fn_append ac_func_list " lutimes"
3406 # Check that the precious variables saved in the cache have kept the same
3407 # value.
3408 ac_cache_corrupted=false
3409 for ac_var in $ac_precious_vars; do
3410 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3411 eval ac_new_set=\$ac_env_${ac_var}_set
3412 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3413 eval ac_new_val=\$ac_env_${ac_var}_value
3414 case $ac_old_set,$ac_new_set in
3415 set,)
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3417 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3418 ac_cache_corrupted=: ;;
3419 ,set)
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3421 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3422 ac_cache_corrupted=: ;;
3423 ,);;
3424 *)
3425 if test "x$ac_old_val" != "x$ac_new_val"; then
3426 # differences in whitespace do not lead to failure.
3427 ac_old_val_w=`echo x $ac_old_val`
3428 ac_new_val_w=`echo x $ac_new_val`
3429 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3431 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3432 ac_cache_corrupted=:
3433 else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3435 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3436 eval $ac_var=\$ac_old_val
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3439 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3441 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3442 fi;;
3443 esac
3444 # Pass precious variables to config.status.
3445 if test "$ac_new_set" = set; then
3446 case $ac_new_val in
3447 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3448 *) ac_arg=$ac_var=$ac_new_val ;;
3449 esac
3450 case " $ac_configure_args " in
3451 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3452 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3453 esac
3454 fi
3455 done
3456 if $ac_cache_corrupted; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3460 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3461 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3462 fi
3463 ## -------------------- ##
3464 ## Main body of script. ##
3465 ## -------------------- ##
3466
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472
3473
3474
3475 emacs_config_options="$@"
3476 ## Add some environment variables, if they were passed via the environment
3477 ## rather than on the command-line.
3478 for var in CFLAGS CPPFLAGS LDFLAGS; do
3479 case "$emacs_config_options" in
3480 *$var=*) continue ;;
3481 esac
3482 eval val="\$${var}"
3483 test x"$val" = x && continue
3484 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3485 done
3486
3487 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3488
3489
3490 ac_aux_dir=
3491 for ac_dir in build-aux "$srcdir"/build-aux; do
3492 for ac_t in install-sh install.sh shtool; do
3493 if test -f "$ac_dir/$ac_t"; then
3494 ac_aux_dir=$ac_dir
3495 ac_install_sh="$ac_aux_dir/$ac_t -c"
3496 break 2
3497 fi
3498 done
3499 done
3500 if test -z "$ac_aux_dir"; then
3501 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3502 fi
3503
3504 # These three variables are undocumented and unsupported,
3505 # and are intended to be withdrawn in a future Autoconf release.
3506 # They can cause serious problems if a builder's source tree is in a directory
3507 # whose full name contains unusual characters.
3508 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3509 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3510 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3511
3512
3513 am__api_version='1.11'
3514
3515 # Find a good install program. We prefer a C program (faster),
3516 # so one script is as good as another. But avoid the broken or
3517 # incompatible versions:
3518 # SysV /etc/install, /usr/sbin/install
3519 # SunOS /usr/etc/install
3520 # IRIX /sbin/install
3521 # AIX /bin/install
3522 # AmigaOS /C/install, which installs bootblocks on floppy discs
3523 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3524 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3525 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3526 # OS/2's system install, which has a completely different semantic
3527 # ./install, which can be erroneously created by make from ./install.sh.
3528 # Reject install programs that cannot install multiple files.
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3530 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3531 if test -z "$INSTALL"; then
3532 if test "${ac_cv_path_install+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 # Account for people who put trailing slashes in PATH elements.
3541 case $as_dir/ in #((
3542 ./ | .// | /[cC]/* | \
3543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3544 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3545 /usr/ucb/* ) ;;
3546 *)
3547 # OSF1 and SCO ODT 3.0 have their own names for install.
3548 # Don't use installbsd from OSF since it installs stuff as root
3549 # by default.
3550 for ac_prog in ginstall scoinst install; do
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3553 if test $ac_prog = install &&
3554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3555 # AIX install. It has an incompatible calling convention.
3556 :
3557 elif test $ac_prog = install &&
3558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3559 # program-specific install script used by HP pwplus--don't use.
3560 :
3561 else
3562 rm -rf conftest.one conftest.two conftest.dir
3563 echo one > conftest.one
3564 echo two > conftest.two
3565 mkdir conftest.dir
3566 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3567 test -s conftest.one && test -s conftest.two &&
3568 test -s conftest.dir/conftest.one &&
3569 test -s conftest.dir/conftest.two
3570 then
3571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3572 break 3
3573 fi
3574 fi
3575 fi
3576 done
3577 done
3578 ;;
3579 esac
3580
3581 done
3582 IFS=$as_save_IFS
3583
3584 rm -rf conftest.one conftest.two conftest.dir
3585
3586 fi
3587 if test "${ac_cv_path_install+set}" = set; then
3588 INSTALL=$ac_cv_path_install
3589 else
3590 # As a last resort, use the slow shell script. Don't cache a
3591 # value for INSTALL within a source directory, because that will
3592 # break other packages using the cache if that directory is
3593 # removed, or if the value is a relative name.
3594 INSTALL=$ac_install_sh
3595 fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3598 $as_echo "$INSTALL" >&6; }
3599
3600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3601 # It thinks the first close brace ends the variable substitution.
3602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3603
3604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3605
3606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3609 $as_echo_n "checking whether build environment is sane... " >&6; }
3610 # Just in case
3611 sleep 1
3612 echo timestamp > conftest.file
3613 # Reject unsafe characters in $srcdir or the absolute working directory
3614 # name. Accept space and tab only in the latter.
3615 am_lf='
3616 '
3617 case `pwd` in
3618 *[\\\"\#\$\&\'\`$am_lf]*)
3619 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3620 esac
3621 case $srcdir in
3622 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3623 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3624 esac
3625
3626 # Do `set' in a subshell so we don't clobber the current shell's
3627 # arguments. Must try -L first in case configure is actually a
3628 # symlink; some systems play weird games with the mod time of symlinks
3629 # (eg FreeBSD returns the mod time of the symlink's containing
3630 # directory).
3631 if (
3632 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3633 if test "$*" = "X"; then
3634 # -L didn't work.
3635 set X `ls -t "$srcdir/configure" conftest.file`
3636 fi
3637 rm -f conftest.file
3638 if test "$*" != "X $srcdir/configure conftest.file" \
3639 && test "$*" != "X conftest.file $srcdir/configure"; then
3640
3641 # If neither matched, then we have a broken ls. This can happen
3642 # if, for instance, CONFIG_SHELL is bash and it inherits a
3643 # broken ls alias from the environment. This has actually
3644 # happened. Such a system could not be considered "sane".
3645 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3646 alias in your environment" "$LINENO" 5
3647 fi
3648
3649 test "$2" = conftest.file
3650 )
3651 then
3652 # Ok.
3653 :
3654 else
3655 as_fn_error "newly created file is older than distributed files!
3656 Check your system clock" "$LINENO" 5
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3659 $as_echo "yes" >&6; }
3660 test "$program_prefix" != NONE &&
3661 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3662 # Use a double $ so make ignores it.
3663 test "$program_suffix" != NONE &&
3664 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3665 # Double any \ or $.
3666 # By default was `s,x,x', remove it if useless.
3667 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3668 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3669
3670 # expand $ac_aux_dir to an absolute path
3671 am_aux_dir=`cd $ac_aux_dir && pwd`
3672
3673 if test x"${MISSING+set}" != xset; then
3674 case $am_aux_dir in
3675 *\ * | *\ *)
3676 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3677 *)
3678 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3679 esac
3680 fi
3681 # Use eval to expand $SHELL
3682 if eval "$MISSING --run true"; then
3683 am_missing_run="$MISSING --run "
3684 else
3685 am_missing_run=
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3687 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3688 fi
3689
3690 if test x"${install_sh}" != xset; then
3691 case $am_aux_dir in
3692 *\ * | *\ *)
3693 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3694 *)
3695 install_sh="\${SHELL} $am_aux_dir/install-sh"
3696 esac
3697 fi
3698
3699 # Installed binaries are usually stripped using `strip' when the user
3700 # run `make install-strip'. However `strip' might not be the right
3701 # tool to use in cross-compilation environments, therefore Automake
3702 # will honor the `STRIP' environment variable to overrule this program.
3703 if test "$cross_compiling" != no; then
3704 if test -n "$ac_tool_prefix"; then
3705 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3706 set dummy ${ac_tool_prefix}strip; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if test "${ac_cv_prog_STRIP+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -n "$STRIP"; then
3713 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3717 do
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3725 fi
3726 done
3727 done
3728 IFS=$as_save_IFS
3729
3730 fi
3731 fi
3732 STRIP=$ac_cv_prog_STRIP
3733 if test -n "$STRIP"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3735 $as_echo "$STRIP" >&6; }
3736 else
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3739 fi
3740
3741
3742 fi
3743 if test -z "$ac_cv_prog_STRIP"; then
3744 ac_ct_STRIP=$STRIP
3745 # Extract the first word of "strip", so it can be a program name with args.
3746 set dummy strip; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 if test -n "$ac_ct_STRIP"; then
3753 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_prog_ac_ct_STRIP="strip"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3765 fi
3766 done
3767 done
3768 IFS=$as_save_IFS
3769
3770 fi
3771 fi
3772 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3773 if test -n "$ac_ct_STRIP"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3775 $as_echo "$ac_ct_STRIP" >&6; }
3776 else
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 fi
3780
3781 if test "x$ac_ct_STRIP" = x; then
3782 STRIP=":"
3783 else
3784 case $cross_compiling:$ac_tool_warned in
3785 yes:)
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3788 ac_tool_warned=yes ;;
3789 esac
3790 STRIP=$ac_ct_STRIP
3791 fi
3792 else
3793 STRIP="$ac_cv_prog_STRIP"
3794 fi
3795
3796 fi
3797 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3798
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3800 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3801 if test -z "$MKDIR_P"; then
3802 if test "${ac_cv_path_mkdir+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3807 do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_prog in mkdir gmkdir; do
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3813 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3814 'mkdir (GNU coreutils) '* | \
3815 'mkdir (coreutils) '* | \
3816 'mkdir (fileutils) '4.1*)
3817 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3818 break 3;;
3819 esac
3820 done
3821 done
3822 done
3823 IFS=$as_save_IFS
3824
3825 fi
3826
3827 test -d ./--version && rmdir ./--version
3828 if test "${ac_cv_path_mkdir+set}" = set; then
3829 MKDIR_P="$ac_cv_path_mkdir -p"
3830 else
3831 # As a last resort, use the slow shell script. Don't cache a
3832 # value for MKDIR_P within a source directory, because that will
3833 # break other packages using the cache if that directory is
3834 # removed, or if the value is a relative name.
3835 MKDIR_P="$ac_install_sh -d"
3836 fi
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3839 $as_echo "$MKDIR_P" >&6; }
3840
3841 mkdir_p="$MKDIR_P"
3842 case $mkdir_p in
3843 [\\/$]* | ?:[\\/]*) ;;
3844 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3845 esac
3846
3847 for ac_prog in gawk mawk nawk awk
3848 do
3849 # Extract the first word of "$ac_prog", so it can be a program name with args.
3850 set dummy $ac_prog; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if test "${ac_cv_prog_AWK+set}" = set; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if test -n "$AWK"; then
3857 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3861 do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_prog_AWK="$ac_prog"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870 done
3871 done
3872 IFS=$as_save_IFS
3873
3874 fi
3875 fi
3876 AWK=$ac_cv_prog_AWK
3877 if test -n "$AWK"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3879 $as_echo "$AWK" >&6; }
3880 else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 $as_echo "no" >&6; }
3883 fi
3884
3885
3886 test -n "$AWK" && break
3887 done
3888
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3890 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3891 set x ${MAKE-make}
3892 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3893 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 cat >conftest.make <<\_ACEOF
3897 SHELL = /bin/sh
3898 all:
3899 @echo '@@@%%%=$(MAKE)=@@@%%%'
3900 _ACEOF
3901 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3902 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3903 *@@@%%%=?*=@@@%%%*)
3904 eval ac_cv_prog_make_${ac_make}_set=yes;;
3905 *)
3906 eval ac_cv_prog_make_${ac_make}_set=no;;
3907 esac
3908 rm -f conftest.make
3909 fi
3910 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3912 $as_echo "yes" >&6; }
3913 SET_MAKE=
3914 else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 SET_MAKE="MAKE=${MAKE-make}"
3918 fi
3919
3920 rm -rf .tst 2>/dev/null
3921 mkdir .tst 2>/dev/null
3922 if test -d .tst; then
3923 am__leading_dot=.
3924 else
3925 am__leading_dot=_
3926 fi
3927 rmdir .tst 2>/dev/null
3928
3929 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3930 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3931 # is not polluted with repeated "-I."
3932 am__isrc=' -I$(srcdir)'
3933 # test to see if srcdir already configured
3934 if test -f $srcdir/config.status; then
3935 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3936 fi
3937 fi
3938
3939 # test whether we have cygpath
3940 if test -z "$CYGPATH_W"; then
3941 if (cygpath --version) >/dev/null 2>/dev/null; then
3942 CYGPATH_W='cygpath -w'
3943 else
3944 CYGPATH_W=echo
3945 fi
3946 fi
3947
3948
3949 # Define the identity of the package.
3950 PACKAGE='emacs'
3951 VERSION='24.3.50'
3952
3953
3954 cat >>confdefs.h <<_ACEOF
3955 #define PACKAGE "$PACKAGE"
3956 _ACEOF
3957
3958
3959 cat >>confdefs.h <<_ACEOF
3960 #define VERSION "$VERSION"
3961 _ACEOF
3962
3963 # Some tools Automake needs.
3964
3965 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3966
3967
3968 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3969
3970
3971 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3972
3973
3974 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3975
3976
3977 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3978
3979 # We need awk for the "check" target. The system "awk" is bad on
3980 # some platforms.
3981 # Always define AMTAR for backward compatibility.
3982
3983 AMTAR=${AMTAR-"${am_missing_run}tar"}
3984
3985 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3986
3987
3988
3989
3990
3991
3992
3993
3994 lispdir='${datadir}/emacs/${version}/lisp'
3995 leimdir='${datadir}/emacs/${version}/leim'
3996 standardlisppath='${lispdir}:${leimdir}'
3997 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3998 '${datadir}/emacs/site-lisp'
3999 lisppath='${locallisppath}:${standardlisppath}'
4000 etcdir='${datadir}/emacs/${version}/etc'
4001 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
4002 docdir='${datadir}/emacs/${version}/etc'
4003 gamedir='${localstatedir}/games/emacs'
4004
4005
4006 # Check whether --with-all was given.
4007 if test "${with_all+set}" = set; then :
4008 withval=$with_all; with_features=$withval
4009 else
4010 with_features=yes
4011 fi
4012
4013
4014
4015
4016
4017 # Check whether --with-pop was given.
4018 if test "${with_pop+set}" = set; then :
4019 withval=$with_pop;
4020 else
4021 with_pop=$with_features
4022 fi
4023
4024 if test "$with_pop" = yes; then
4025 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4026
4027 fi
4028
4029
4030 # Check whether --with-kerberos was given.
4031 if test "${with_kerberos+set}" = set; then :
4032 withval=$with_kerberos;
4033 else
4034 with_kerberos=no
4035 fi
4036
4037 if test "$with_kerberos" != no; then
4038 $as_echo "#define KERBEROS 1" >>confdefs.h
4039
4040 fi
4041
4042
4043 # Check whether --with-kerberos5 was given.
4044 if test "${with_kerberos5+set}" = set; then :
4045 withval=$with_kerberos5;
4046 else
4047 with_kerberos5=no
4048 fi
4049
4050 if test "${with_kerberos5}" != no; then
4051 if test "${with_kerberos}" = no; then
4052 with_kerberos=yes
4053 $as_echo "#define KERBEROS 1" >>confdefs.h
4054
4055 fi
4056
4057 $as_echo "#define KERBEROS5 1" >>confdefs.h
4058
4059 fi
4060
4061
4062 # Check whether --with-hesiod was given.
4063 if test "${with_hesiod+set}" = set; then :
4064 withval=$with_hesiod;
4065 else
4066 with_hesiod=no
4067 fi
4068
4069 if test "$with_hesiod" != no; then
4070
4071 $as_echo "#define HESIOD 1" >>confdefs.h
4072
4073 fi
4074
4075
4076 # Check whether --with-mmdf was given.
4077 if test "${with_mmdf+set}" = set; then :
4078 withval=$with_mmdf;
4079 else
4080 with_mmdf=no
4081 fi
4082
4083 if test "$with_mmdf" != no; then
4084
4085 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4086
4087 fi
4088
4089
4090 # Check whether --with-mail-unlink was given.
4091 if test "${with_mail_unlink+set}" = set; then :
4092 withval=$with_mail_unlink;
4093 else
4094 with_mail_unlink=no
4095 fi
4096
4097 if test "$with_mail_unlink" != no; then
4098
4099 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4100
4101 fi
4102
4103
4104 # Check whether --with-mailhost was given.
4105 if test "${with_mailhost+set}" = set; then :
4106 withval=$with_mailhost;
4107 cat >>confdefs.h <<_ACEOF
4108 #define MAILHOST "$withval"
4109 _ACEOF
4110
4111 fi
4112
4113
4114
4115 # Check whether --with-sound was given.
4116 if test "${with_sound+set}" = set; then :
4117 withval=$with_sound;
4118 else
4119 with_sound=$with_features
4120 fi
4121
4122
4123
4124 # Check whether --with-x-toolkit was given.
4125 if test "${with_x_toolkit+set}" = set; then :
4126 withval=$with_x_toolkit; case "${withval}" in
4127 y | ye | yes ) val=gtk ;;
4128 n | no ) val=no ;;
4129 l | lu | luc | luci | lucid ) val=lucid ;;
4130 a | at | ath | athe | athen | athena ) val=athena ;;
4131 m | mo | mot | moti | motif ) val=motif ;;
4132 g | gt | gtk ) val=gtk ;;
4133 gtk2 ) val=gtk2 ;;
4134 gtk3 ) val=gtk3 ;;
4135 * )
4136 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4137 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4138 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4139 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4140 ;;
4141 esac
4142 with_x_toolkit=$val
4143
4144 fi
4145
4146
4147
4148 # Check whether --with-wide-int was given.
4149 if test "${with_wide_int+set}" = set; then :
4150 withval=$with_wide_int;
4151 else
4152 with_wide_int=no
4153 fi
4154
4155 if test "$with_wide_int" = yes; then
4156
4157 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4158
4159 fi
4160
4161
4162 # Check whether --with-xpm was given.
4163 if test "${with_xpm+set}" = set; then :
4164 withval=$with_xpm;
4165 else
4166 with_xpm=$with_features
4167 fi
4168
4169
4170 # Check whether --with-jpeg was given.
4171 if test "${with_jpeg+set}" = set; then :
4172 withval=$with_jpeg;
4173 else
4174 with_jpeg=$with_features
4175 fi
4176
4177
4178 # Check whether --with-tiff was given.
4179 if test "${with_tiff+set}" = set; then :
4180 withval=$with_tiff;
4181 else
4182 with_tiff=$with_features
4183 fi
4184
4185
4186 # Check whether --with-gif was given.
4187 if test "${with_gif+set}" = set; then :
4188 withval=$with_gif;
4189 else
4190 with_gif=$with_features
4191 fi
4192
4193
4194 # Check whether --with-png was given.
4195 if test "${with_png+set}" = set; then :
4196 withval=$with_png;
4197 else
4198 with_png=$with_features
4199 fi
4200
4201
4202 # Check whether --with-rsvg was given.
4203 if test "${with_rsvg+set}" = set; then :
4204 withval=$with_rsvg;
4205 else
4206 with_rsvg=$with_features
4207 fi
4208
4209
4210 # Check whether --with-xml2 was given.
4211 if test "${with_xml2+set}" = set; then :
4212 withval=$with_xml2;
4213 else
4214 with_xml2=$with_features
4215 fi
4216
4217
4218 # Check whether --with-imagemagick was given.
4219 if test "${with_imagemagick+set}" = set; then :
4220 withval=$with_imagemagick;
4221 else
4222 with_imagemagick=$with_features
4223 fi
4224
4225
4226
4227 # Check whether --with-xft was given.
4228 if test "${with_xft+set}" = set; then :
4229 withval=$with_xft;
4230 else
4231 with_xft=$with_features
4232 fi
4233
4234
4235 # Check whether --with-libotf was given.
4236 if test "${with_libotf+set}" = set; then :
4237 withval=$with_libotf;
4238 else
4239 with_libotf=$with_features
4240 fi
4241
4242
4243 # Check whether --with-m17n-flt was given.
4244 if test "${with_m17n_flt+set}" = set; then :
4245 withval=$with_m17n_flt;
4246 else
4247 with_m17n_flt=$with_features
4248 fi
4249
4250
4251
4252 # Check whether --with-toolkit-scroll-bars was given.
4253 if test "${with_toolkit_scroll_bars+set}" = set; then :
4254 withval=$with_toolkit_scroll_bars;
4255 else
4256 with_toolkit_scroll_bars=$with_features
4257 fi
4258
4259
4260 # Check whether --with-xaw3d was given.
4261 if test "${with_xaw3d+set}" = set; then :
4262 withval=$with_xaw3d;
4263 else
4264 with_xaw3d=$with_features
4265 fi
4266
4267
4268 # Check whether --with-xim was given.
4269 if test "${with_xim+set}" = set; then :
4270 withval=$with_xim;
4271 else
4272 with_xim=$with_features
4273 fi
4274
4275
4276 # Check whether --with-ns was given.
4277 if test "${with_ns+set}" = set; then :
4278 withval=$with_ns;
4279 else
4280 with_ns=no
4281 fi
4282
4283
4284 # Check whether --with-w32 was given.
4285 if test "${with_w32+set}" = set; then :
4286 withval=$with_w32;
4287 else
4288 with_w32=no
4289 fi
4290
4291
4292
4293 # Check whether --with-gpm was given.
4294 if test "${with_gpm+set}" = set; then :
4295 withval=$with_gpm;
4296 else
4297 with_gpm=$with_features
4298 fi
4299
4300
4301 # Check whether --with-dbus was given.
4302 if test "${with_dbus+set}" = set; then :
4303 withval=$with_dbus;
4304 else
4305 with_dbus=$with_features
4306 fi
4307
4308
4309 # Check whether --with-gconf was given.
4310 if test "${with_gconf+set}" = set; then :
4311 withval=$with_gconf;
4312 else
4313 with_gconf=$with_features
4314 fi
4315
4316
4317 # Check whether --with-gsettings was given.
4318 if test "${with_gsettings+set}" = set; then :
4319 withval=$with_gsettings;
4320 else
4321 with_gsettings=$with_features
4322 fi
4323
4324
4325 # Check whether --with-selinux was given.
4326 if test "${with_selinux+set}" = set; then :
4327 withval=$with_selinux;
4328 else
4329 with_selinux=$with_features
4330 fi
4331
4332
4333 # Check whether --with-gnutls was given.
4334 if test "${with_gnutls+set}" = set; then :
4335 withval=$with_gnutls;
4336 else
4337 with_gnutls=$with_features
4338 fi
4339
4340
4341
4342 # Check whether --with-file-notification was given.
4343 if test "${with_file_notification+set}" = set; then :
4344 withval=$with_file_notification; case "${withval}" in
4345 y | ye | yes ) val=yes ;;
4346 n | no ) val=no ;;
4347 g | gf | gfi | gfil | gfile ) val=gfile ;;
4348 i | in | ino | inot | inoti | inotif | inotify ) val=inotify ;;
4349 w | w3 | w32 ) val=w32 ;;
4350 * ) as_fn_error "\`--with-file-notification=$withval' is invalid;
4351 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4352 \`yes' is a synonym for \`w32' on MS-Windows, and for \`gfile' otherwise." "$LINENO" 5
4353 ;;
4354 esac
4355 with_file_notification=$val
4356
4357 else
4358 with_file_notification=$with_features
4359 fi
4360
4361
4362 ## For the times when you want to build Emacs but don't have
4363 ## a suitable makeinfo, and can live without the manuals.
4364
4365 # Check whether --with-makeinfo was given.
4366 if test "${with_makeinfo+set}" = set; then :
4367 withval=$with_makeinfo;
4368 else
4369 with_makeinfo=$with_features
4370 fi
4371
4372
4373 ## Makefile.in needs the cache file name.
4374
4375
4376 ## This is an option because I do not know if all info/man support
4377 ## compressed files, nor how to test if they do so.
4378
4379 # Check whether --with-compress-info was given.
4380 if test "${with_compress_info+set}" = set; then :
4381 withval=$with_compress_info;
4382 else
4383 with_compress_info=$with_features
4384 fi
4385
4386 if test $with_compress_info = yes; then
4387 GZIP_INFO=yes
4388 else
4389 GZIP_INFO=
4390 fi
4391
4392
4393
4394 # Check whether --with-pkg-config-prog was given.
4395 if test "${with_pkg_config_prog+set}" = set; then :
4396 withval=$with_pkg_config_prog;
4397 fi
4398
4399 if test "X${with_pkg_config_prog}" != X; then
4400 if test "${with_pkg_config_prog}" != yes; then
4401 PKG_CONFIG="${with_pkg_config_prog}"
4402 fi
4403 fi
4404
4405
4406 # Check whether --with-gameuser was given.
4407 if test "${with_gameuser+set}" = set; then :
4408 withval=$with_gameuser;
4409 fi
4410
4411 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4412 && gameuser="${with_gameuser}"
4413 test "X$gameuser" = X && gameuser=games
4414
4415
4416 # Check whether --with-gnustep-conf was given.
4417 if test "${with_gnustep_conf+set}" = set; then :
4418 withval=$with_gnustep_conf;
4419 fi
4420
4421 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4422 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4423 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4424 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4425
4426 # Check whether --enable-ns-self-contained was given.
4427 if test "${enable_ns_self_contained+set}" = set; then :
4428 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4429 else
4430 EN_NS_SELF_CONTAINED=yes
4431 fi
4432
4433
4434 # Check whether --enable-locallisppath was given.
4435 if test "${enable_locallisppath+set}" = set; then :
4436 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4437 locallisppath=
4438 elif test "${enableval}" != "yes"; then
4439 locallisppath=${enableval}
4440 fi
4441 fi
4442
4443
4444 # Check whether --enable-checking was given.
4445 if test "${enable_checking+set}" = set; then :
4446 enableval=$enable_checking; ac_checking_flags="${enableval}"
4447 fi
4448
4449 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4450 for check in $ac_checking_flags
4451 do
4452 case $check in
4453 # these set all the flags to specific states
4454 yes) ac_enable_checking=1 ;;
4455 no) ac_enable_checking= ;
4456 ac_gc_check_stringbytes= ;
4457 ac_gc_check_string_overrun= ;
4458 ac_gc_check_string_free_list= ;
4459 ac_xmalloc_overrun= ;
4460 ac_gc_check_cons_list= ;
4461 ac_glyphs_debug= ;;
4462 all) ac_enable_checking=1 ;
4463 ac_gc_check_stringbytes=1 ;
4464 ac_gc_check_string_overrun=1 ;
4465 ac_gc_check_string_free_list=1 ;
4466 ac_xmalloc_overrun=1 ;
4467 ac_gc_check_cons_list=1 ;
4468 ac_glyphs_debug=1 ;;
4469 # these enable particular checks
4470 stringbytes) ac_gc_check_stringbytes=1 ;;
4471 stringoverrun) ac_gc_check_string_overrun=1 ;;
4472 stringfreelist) ac_gc_check_string_free_list=1 ;;
4473 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4474 conslist) ac_gc_check_cons_list=1 ;;
4475 glyphs) ac_glyphs_debug=1 ;;
4476 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4477 esac
4478 done
4479 IFS="$ac_save_IFS"
4480
4481 if test x$ac_enable_checking != x ; then
4482
4483 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4484
4485 fi
4486 if test x$ac_gc_check_stringbytes != x ; then
4487
4488 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4489
4490 fi
4491 if test x$ac_gc_check_string_overrun != x ; then
4492
4493 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4494
4495 fi
4496 if test x$ac_gc_check_string_free_list != x ; then
4497
4498 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4499
4500 fi
4501 if test x$ac_xmalloc_overrun != x ; then
4502
4503 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4504
4505 fi
4506 if test x$ac_gc_check_cons_list != x ; then
4507
4508 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4509
4510 fi
4511 if test x$ac_glyphs_debug != x ; then
4512
4513 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4514
4515 fi
4516
4517 # Check whether --enable-check-lisp-object-type was given.
4518 if test "${enable_check_lisp_object_type+set}" = set; then :
4519 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4520
4521 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4522
4523 fi
4524 fi
4525
4526
4527
4528 # Check whether --enable-profiling was given.
4529 if test "${enable_profiling+set}" = set; then :
4530 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4531 fi
4532
4533 if test x$ac_enable_profiling != x ; then
4534 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4535 else
4536 PROFILING_CFLAGS=
4537 fi
4538
4539
4540 # Check whether --enable-autodepend was given.
4541 if test "${enable_autodepend+set}" = set; then :
4542 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4543 else
4544 ac_enable_autodepend=yes
4545 fi
4546
4547
4548 # Check whether --enable-gtk-deprecation-warnings was given.
4549 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4550 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4551 fi
4552
4553
4554 #### Make srcdir absolute, if it isn't already. It's important to
4555 #### avoid running the file name through pwd unnecessarily, since pwd can
4556 #### give you automounter prefixes, which can go away. We do all this
4557 #### so Emacs can find its files when run uninstalled.
4558 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4559 unset CDPATH
4560 case "${srcdir}" in
4561 [\\/]* | ?:[\\/]*) ;;
4562 . )
4563 ## We may be able to use the $PWD environment variable to make this
4564 ## absolute. But sometimes PWD is inaccurate.
4565 ## Note: we used to use $PWD at the end instead of `pwd`,
4566 ## but that tested only for a well-formed and valid PWD,
4567 ## it did not object when PWD was well-formed and valid but just wrong.
4568 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4569 then
4570 srcdir="$PWD"
4571 else
4572 srcdir=`(cd "$srcdir"; pwd)`
4573 fi
4574 ;;
4575 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4576 esac
4577
4578 ### Canonicalize the configuration name.
4579
4580 # Make sure we can run config.sub.
4581 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4582 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4583
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4585 $as_echo_n "checking build system type... " >&6; }
4586 if test "${ac_cv_build+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 ac_build_alias=$build_alias
4590 test "x$ac_build_alias" = x &&
4591 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4592 test "x$ac_build_alias" = x &&
4593 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4594 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4595 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4596
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4599 $as_echo "$ac_cv_build" >&6; }
4600 case $ac_cv_build in
4601 *-*-*) ;;
4602 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4603 esac
4604 build=$ac_cv_build
4605 ac_save_IFS=$IFS; IFS='-'
4606 set x $ac_cv_build
4607 shift
4608 build_cpu=$1
4609 build_vendor=$2
4610 shift; shift
4611 # Remember, the first character of IFS is used to create $*,
4612 # except with old shells:
4613 build_os=$*
4614 IFS=$ac_save_IFS
4615 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4619 $as_echo_n "checking host system type... " >&6; }
4620 if test "${ac_cv_host+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test "x$host_alias" = x; then
4624 ac_cv_host=$ac_cv_build
4625 else
4626 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4627 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4628 fi
4629
4630 fi
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4632 $as_echo "$ac_cv_host" >&6; }
4633 case $ac_cv_host in
4634 *-*-*) ;;
4635 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4636 esac
4637 host=$ac_cv_host
4638 ac_save_IFS=$IFS; IFS='-'
4639 set x $ac_cv_host
4640 shift
4641 host_cpu=$1
4642 host_vendor=$2
4643 shift; shift
4644 # Remember, the first character of IFS is used to create $*,
4645 # except with old shells:
4646 host_os=$*
4647 IFS=$ac_save_IFS
4648 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4649
4650
4651 canonical=$host
4652 configuration=${host_alias-${build_alias-$host}}
4653
4654
4655
4656 ### If you add support for a new configuration, add code to this
4657 ### switch statement to recognize your configuration name and select
4658 ### the appropriate operating system file.
4659
4660 ### You would hope that you could choose an s/*.h
4661 ### file based on the operating system portion. However, it turns out
4662 ### that each s/*.h file is pretty manufacturer-specific.
4663 ### So we basically have to have a special case for each
4664 ### configuration name.
4665 ###
4666 ### As far as handling version numbers on operating systems is
4667 ### concerned, make sure things will fail in a fixable way. If
4668 ### /etc/MACHINES doesn't say anything about version numbers, be
4669 ### prepared to handle anything reasonably. If version numbers
4670 ### matter, be sure /etc/MACHINES says something about it.
4671
4672 opsys='' unported=no
4673 case "${canonical}" in
4674
4675 ## GNU/Linux and similar ports
4676 *-*-linux* )
4677 opsys=gnu-linux
4678 ;;
4679
4680 ## FreeBSD ports
4681 *-*-freebsd* )
4682 opsys=freebsd
4683 ;;
4684
4685 ## DragonFly ports
4686 *-*-dragonfly* )
4687 opsys=dragonfly
4688 ;;
4689
4690 ## FreeBSD kernel + glibc based userland
4691 *-*-kfreebsd*gnu* )
4692 opsys=gnu-kfreebsd
4693 ;;
4694
4695 ## NetBSD ports
4696 *-*-netbsd* )
4697 opsys=netbsd
4698 ;;
4699
4700 ## OpenBSD ports
4701 *-*-openbsd* )
4702 opsys=openbsd
4703 ;;
4704
4705 ## Apple Darwin / Mac OS X
4706 *-apple-darwin* )
4707 case "${canonical}" in
4708 i[3456]86-* ) ;;
4709 powerpc-* ) ;;
4710 x86_64-* ) ;;
4711 * ) unported=yes ;;
4712 esac
4713 opsys=darwin
4714 ## Use fink packages if available.
4715 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4716 ## if test -d /sw/include && test -d /sw/lib; then
4717 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4718 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4719 ## fi
4720 ;;
4721
4722 ## Cygwin ports
4723 *-*-cygwin )
4724 opsys=cygwin
4725 ;;
4726
4727 ## HP 9000 series 700 and 800, running HP/UX
4728 hppa*-hp-hpux10.2* )
4729 opsys=hpux10-20
4730 ;;
4731 hppa*-hp-hpux1[1-9]* )
4732 opsys=hpux11
4733 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4734 ;;
4735
4736 ## IBM machines
4737 rs6000-ibm-aix4.[23]* )
4738 opsys=aix4-2
4739 ;;
4740 powerpc-ibm-aix4.[23]* )
4741 opsys=aix4-2
4742 ;;
4743 rs6000-ibm-aix[56]* )
4744 opsys=aix4-2
4745 ;;
4746 powerpc-ibm-aix[56]* )
4747 opsys=aix4-2
4748 ;;
4749
4750 ## Silicon Graphics machines
4751 ## Iris 4D
4752 mips-sgi-irix6.5 )
4753 opsys=irix6-5
4754 # Without defining _LANGUAGE_C, things get masked out in the headers
4755 # so that, for instance, grepping for `free' in stdlib.h fails and
4756 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4757 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4758 ;;
4759
4760 ## Suns
4761 *-sun-solaris* \
4762 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4763 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4764 case "${canonical}" in
4765 i[3456]86-*-* ) ;;
4766 amd64-*-*|x86_64-*-*) ;;
4767 sparc* ) ;;
4768 * ) unported=yes ;;
4769 esac
4770 case "${canonical}" in
4771 *-sunos5.6* | *-solaris2.6* )
4772 opsys=sol2-6
4773 RANLIB="ar -ts"
4774 ;;
4775 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4776 opsys=sol2-6
4777 emacs_check_sunpro_c=yes
4778 ;;
4779 *-sunos5* | *-solaris* )
4780 opsys=sol2-10
4781 emacs_check_sunpro_c=yes
4782 ;;
4783 esac
4784 ## Watch out for a compiler that we know will not work.
4785 case "${canonical}" in
4786 *-solaris* | *-sunos5* )
4787 if [ "x$CC" = x/usr/ucb/cc ]; then
4788 ## /usr/ucb/cc doesn't work;
4789 ## we should find some other compiler that does work.
4790 unset CC
4791 fi
4792 ;;
4793 *) ;;
4794 esac
4795 ;;
4796
4797 ## Intel 386 machines where we don't care about the manufacturer.
4798 i[3456]86-*-* )
4799 case "${canonical}" in
4800 *-darwin* ) opsys=darwin ;;
4801 *-mingw32 )
4802 opsys=mingw32
4803 # MinGW overrides and adds some system headers in nt/inc.
4804 GCC_TEST_OPTIONS="-I $srcdir/nt/inc"
4805 ;;
4806 *-sysv4.2uw* ) opsys=unixware ;;
4807 *-sysv5uw* ) opsys=unixware ;;
4808 *-sysv5OpenUNIX* ) opsys=unixware ;;
4809 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4810 esac
4811 ;;
4812
4813 * )
4814 unported=yes
4815 ;;
4816 esac
4817
4818 ### If the code above didn't choose an operating system, just choose
4819 ### an operating system based on the configuration name. You really
4820 ### only want to use this when you have no idea what the right
4821 ### operating system is; if you know what operating systems a machine
4822 ### runs, it's cleaner to make it explicit in the case statement
4823 ### above.
4824 if test x"${opsys}" = x; then
4825 case "${canonical}" in
4826 *-gnu* ) opsys=gnu ;;
4827 * )
4828 unported=yes
4829 ;;
4830 esac
4831 fi
4832
4833
4834
4835 if test $unported = yes; then
4836 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4837 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4838 fi
4839
4840
4841 #### Choose a compiler.
4842
4843 ac_ext=c
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848 if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_CC+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$CC"; then
4857 ac_cv_prog_CC="$CC" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870 done
4871 done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 CC=$ac_cv_prog_CC
4877 if test -n "$CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4879 $as_echo "$CC" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884
4885
4886 fi
4887 if test -z "$ac_cv_prog_CC"; then
4888 ac_ct_CC=$CC
4889 # Extract the first word of "gcc", so it can be a program name with args.
4890 set dummy gcc; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$ac_ct_CC"; then
4897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_ac_ct_CC="gcc"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910 done
4911 done
4912 IFS=$as_save_IFS
4913
4914 fi
4915 fi
4916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4917 if test -n "$ac_ct_CC"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4919 $as_echo "$ac_ct_CC" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 fi
4924
4925 if test "x$ac_ct_CC" = x; then
4926 CC=""
4927 else
4928 case $cross_compiling:$ac_tool_warned in
4929 yes:)
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932 ac_tool_warned=yes ;;
4933 esac
4934 CC=$ac_ct_CC
4935 fi
4936 else
4937 CC="$ac_cv_prog_CC"
4938 fi
4939
4940 if test -z "$CC"; then
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4943 set dummy ${ac_tool_prefix}cc; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if test "${ac_cv_prog_CC+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -n "$CC"; then
4950 ac_cv_prog_CC="$CC" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_prog_CC="${ac_tool_prefix}cc"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963 done
4964 done
4965 IFS=$as_save_IFS
4966
4967 fi
4968 fi
4969 CC=$ac_cv_prog_CC
4970 if test -n "$CC"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4972 $as_echo "$CC" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977
4978
4979 fi
4980 fi
4981 if test -z "$CC"; then
4982 # Extract the first word of "cc", so it can be a program name with args.
4983 set dummy cc; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_CC+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -n "$CC"; then
4990 ac_cv_prog_CC="$CC" # Let the user override the test.
4991 else
4992 ac_prog_rejected=no
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5001 ac_prog_rejected=yes
5002 continue
5003 fi
5004 ac_cv_prog_CC="cc"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5007 fi
5008 done
5009 done
5010 IFS=$as_save_IFS
5011
5012 if test $ac_prog_rejected = yes; then
5013 # We found a bogon in the path, so make sure we never use it.
5014 set dummy $ac_cv_prog_CC
5015 shift
5016 if test $# != 0; then
5017 # We chose a different compiler from the bogus one.
5018 # However, it has the same basename, so the bogon will be chosen
5019 # first if we set CC to just the basename; use the full file name.
5020 shift
5021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5022 fi
5023 fi
5024 fi
5025 fi
5026 CC=$ac_cv_prog_CC
5027 if test -n "$CC"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5029 $as_echo "$CC" >&6; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5033 fi
5034
5035
5036 fi
5037 if test -z "$CC"; then
5038 if test -n "$ac_tool_prefix"; then
5039 for ac_prog in cl.exe
5040 do
5041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if test "${ac_cv_prog_CC+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$CC"; then
5049 ac_cv_prog_CC="$CC" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062 done
5063 done
5064 IFS=$as_save_IFS
5065
5066 fi
5067 fi
5068 CC=$ac_cv_prog_CC
5069 if test -n "$CC"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5071 $as_echo "$CC" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 fi
5076
5077
5078 test -n "$CC" && break
5079 done
5080 fi
5081 if test -z "$CC"; then
5082 ac_ct_CC=$CC
5083 for ac_prog in cl.exe
5084 do
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$ac_ct_CC"; then
5093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_ac_ct_CC="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106 done
5107 done
5108 IFS=$as_save_IFS
5109
5110 fi
5111 fi
5112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5113 if test -n "$ac_ct_CC"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5115 $as_echo "$ac_ct_CC" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121
5122 test -n "$ac_ct_CC" && break
5123 done
5124
5125 if test "x$ac_ct_CC" = x; then
5126 CC=""
5127 else
5128 case $cross_compiling:$ac_tool_warned in
5129 yes:)
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned=yes ;;
5133 esac
5134 CC=$ac_ct_CC
5135 fi
5136 fi
5137
5138 fi
5139
5140
5141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5143 as_fn_error "no acceptable C compiler found in \$PATH
5144 See \`config.log' for more details." "$LINENO" 5; }
5145
5146 # Provide some information about the compiler.
5147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5148 set X $ac_compile
5149 ac_compiler=$2
5150 for ac_option in --version -v -V -qversion; do
5151 { { ac_try="$ac_compiler $ac_option >&5"
5152 case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155 esac
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 $as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5159 ac_status=$?
5160 if test -s conftest.err; then
5161 sed '10a\
5162 ... rest of stderr output deleted ...
5163 10q' conftest.err >conftest.er1
5164 cat conftest.er1 >&5
5165 fi
5166 rm -f conftest.er1 conftest.err
5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; }
5169 done
5170
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173
5174 int
5175 main ()
5176 {
5177
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 ac_clean_files_save=$ac_clean_files
5183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5184 # Try to create an executable without -o first, disregard a.out.
5185 # It will help us diagnose broken compilers, and finding out an intuition
5186 # of exeext.
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5188 $as_echo_n "checking whether the C compiler works... " >&6; }
5189 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5190
5191 # The possible output files:
5192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5193
5194 ac_rmfiles=
5195 for ac_file in $ac_files
5196 do
5197 case $ac_file in
5198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5200 esac
5201 done
5202 rm -f $ac_rmfiles
5203
5204 if { { ac_try="$ac_link_default"
5205 case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208 esac
5209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5210 $as_echo "$ac_try_echo"; } >&5
5211 (eval "$ac_link_default") 2>&5
5212 ac_status=$?
5213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5214 test $ac_status = 0; }; then :
5215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5217 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5218 # so that the user can short-circuit this test for compilers unknown to
5219 # Autoconf.
5220 for ac_file in $ac_files ''
5221 do
5222 test -f "$ac_file" || continue
5223 case $ac_file in
5224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5225 ;;
5226 [ab].out )
5227 # We found the default executable, but exeext='' is most
5228 # certainly right.
5229 break;;
5230 *.* )
5231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5232 then :; else
5233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5234 fi
5235 # We set ac_cv_exeext here because the later test for it is not
5236 # safe: cross compilers may not add the suffix if given an `-o'
5237 # argument, so we may need to know it at that point already.
5238 # Even if this section looks crufty: it has the advantage of
5239 # actually working.
5240 break;;
5241 * )
5242 break;;
5243 esac
5244 done
5245 test "$ac_cv_exeext" = no && ac_cv_exeext=
5246
5247 else
5248 ac_file=''
5249 fi
5250 if test -z "$ac_file"; then :
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 $as_echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5255
5256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5258 { as_fn_set_status 77
5259 as_fn_error "C compiler cannot create executables
5260 See \`config.log' for more details." "$LINENO" 5; }; }
5261 else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5263 $as_echo "yes" >&6; }
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5266 $as_echo_n "checking for C compiler default output file name... " >&6; }
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5268 $as_echo "$ac_file" >&6; }
5269 ac_exeext=$ac_cv_exeext
5270
5271 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5272 ac_clean_files=$ac_clean_files_save
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5274 $as_echo_n "checking for suffix of executables... " >&6; }
5275 if { { ac_try="$ac_link"
5276 case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5281 $as_echo "$ac_try_echo"; } >&5
5282 (eval "$ac_link") 2>&5
5283 ac_status=$?
5284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5285 test $ac_status = 0; }; then :
5286 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5287 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5288 # work properly (i.e., refer to `conftest.exe'), while it won't with
5289 # `rm'.
5290 for ac_file in conftest.exe conftest conftest.*; do
5291 test -f "$ac_file" || continue
5292 case $ac_file in
5293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5295 break;;
5296 * ) break;;
5297 esac
5298 done
5299 else
5300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5302 as_fn_error "cannot compute suffix of executables: cannot compile and link
5303 See \`config.log' for more details." "$LINENO" 5; }
5304 fi
5305 rm -f conftest conftest$ac_cv_exeext
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5307 $as_echo "$ac_cv_exeext" >&6; }
5308
5309 rm -f conftest.$ac_ext
5310 EXEEXT=$ac_cv_exeext
5311 ac_exeext=$EXEEXT
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5314 #include <stdio.h>
5315 int
5316 main ()
5317 {
5318 FILE *f = fopen ("conftest.out", "w");
5319 return ferror (f) || fclose (f) != 0;
5320
5321 ;
5322 return 0;
5323 }
5324 _ACEOF
5325 ac_clean_files="$ac_clean_files conftest.out"
5326 # Check that the compiler produces executables we can run. If not, either
5327 # the compiler is broken, or we cross compile.
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5329 $as_echo_n "checking whether we are cross compiling... " >&6; }
5330 if test "$cross_compiling" != yes; then
5331 { { ac_try="$ac_link"
5332 case "(($ac_try" in
5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5335 esac
5336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5337 $as_echo "$ac_try_echo"; } >&5
5338 (eval "$ac_link") 2>&5
5339 ac_status=$?
5340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5341 test $ac_status = 0; }
5342 if { ac_try='./conftest$ac_cv_exeext'
5343 { { case "(($ac_try" in
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5346 esac
5347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5348 $as_echo "$ac_try_echo"; } >&5
5349 (eval "$ac_try") 2>&5
5350 ac_status=$?
5351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352 test $ac_status = 0; }; }; then
5353 cross_compiling=no
5354 else
5355 if test "$cross_compiling" = maybe; then
5356 cross_compiling=yes
5357 else
5358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5360 as_fn_error "cannot run C compiled programs.
5361 If you meant to cross compile, use \`--host'.
5362 See \`config.log' for more details." "$LINENO" 5; }
5363 fi
5364 fi
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5367 $as_echo "$cross_compiling" >&6; }
5368
5369 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5370 ac_clean_files=$ac_clean_files_save
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5372 $as_echo_n "checking for suffix of object files... " >&6; }
5373 if test "${ac_cv_objext+set}" = set; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378
5379 int
5380 main ()
5381 {
5382
5383 ;
5384 return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest.o conftest.obj
5388 if { { ac_try="$ac_compile"
5389 case "(($ac_try" in
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5392 esac
5393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5394 $as_echo "$ac_try_echo"; } >&5
5395 (eval "$ac_compile") 2>&5
5396 ac_status=$?
5397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5398 test $ac_status = 0; }; then :
5399 for ac_file in conftest.o conftest.obj conftest.*; do
5400 test -f "$ac_file" || continue;
5401 case $ac_file in
5402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5404 break;;
5405 esac
5406 done
5407 else
5408 $as_echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5413 as_fn_error "cannot compute suffix of object files: cannot compile
5414 See \`config.log' for more details." "$LINENO" 5; }
5415 fi
5416 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5417 fi
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5419 $as_echo "$ac_cv_objext" >&6; }
5420 OBJEXT=$ac_cv_objext
5421 ac_objext=$OBJEXT
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5423 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5424 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429
5430 int
5431 main ()
5432 {
5433 #ifndef __GNUC__
5434 choke me
5435 #endif
5436
5437 ;
5438 return 0;
5439 }
5440 _ACEOF
5441 if ac_fn_c_try_compile "$LINENO"; then :
5442 ac_compiler_gnu=yes
5443 else
5444 ac_compiler_gnu=no
5445 fi
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5448
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5451 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5452 if test $ac_compiler_gnu = yes; then
5453 GCC=yes
5454 else
5455 GCC=
5456 fi
5457 ac_test_CFLAGS=${CFLAGS+set}
5458 ac_save_CFLAGS=$CFLAGS
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5460 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5461 if test "${ac_cv_prog_cc_g+set}" = set; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 ac_save_c_werror_flag=$ac_c_werror_flag
5465 ac_c_werror_flag=yes
5466 ac_cv_prog_cc_g=no
5467 CFLAGS="-g"
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470
5471 int
5472 main ()
5473 {
5474
5475 ;
5476 return 0;
5477 }
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"; then :
5480 ac_cv_prog_cc_g=yes
5481 else
5482 CFLAGS=""
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485
5486 int
5487 main ()
5488 {
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 if ac_fn_c_try_compile "$LINENO"; then :
5495
5496 else
5497 ac_c_werror_flag=$ac_save_c_werror_flag
5498 CFLAGS="-g"
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501
5502 int
5503 main ()
5504 {
5505
5506 ;
5507 return 0;
5508 }
5509 _ACEOF
5510 if ac_fn_c_try_compile "$LINENO"; then :
5511 ac_cv_prog_cc_g=yes
5512 fi
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 fi
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 ac_c_werror_flag=$ac_save_c_werror_flag
5519 fi
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5521 $as_echo "$ac_cv_prog_cc_g" >&6; }
5522 if test "$ac_test_CFLAGS" = set; then
5523 CFLAGS=$ac_save_CFLAGS
5524 elif test $ac_cv_prog_cc_g = yes; then
5525 if test "$GCC" = yes; then
5526 CFLAGS="-g -O2"
5527 else
5528 CFLAGS="-g"
5529 fi
5530 else
5531 if test "$GCC" = yes; then
5532 CFLAGS="-O2"
5533 else
5534 CFLAGS=
5535 fi
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5538 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5539 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 ac_cv_prog_cc_c89=no
5543 ac_save_CC=$CC
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 #include <stdarg.h>
5547 #include <stdio.h>
5548 #include <sys/types.h>
5549 #include <sys/stat.h>
5550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5551 struct buf { int x; };
5552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5553 static char *e (p, i)
5554 char **p;
5555 int i;
5556 {
5557 return p[i];
5558 }
5559 static char *f (char * (*g) (char **, int), char **p, ...)
5560 {
5561 char *s;
5562 va_list v;
5563 va_start (v,p);
5564 s = g (p, va_arg (v,int));
5565 va_end (v);
5566 return s;
5567 }
5568
5569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5570 function prototypes and stuff, but not '\xHH' hex character constants.
5571 These don't provoke an error unfortunately, instead are silently treated
5572 as 'x'. The following induces an error, until -std is added to get
5573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5574 array size at least. It's necessary to write '\x00'==0 to get something
5575 that's true only with -std. */
5576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5577
5578 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5579 inside strings and character constants. */
5580 #define FOO(x) 'x'
5581 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5582
5583 int test (int i, double x);
5584 struct s1 {int (*f) (int a);};
5585 struct s2 {int (*f) (double a);};
5586 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5587 int argc;
5588 char **argv;
5589 int
5590 main ()
5591 {
5592 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5593 ;
5594 return 0;
5595 }
5596 _ACEOF
5597 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5599 do
5600 CC="$ac_save_CC $ac_arg"
5601 if ac_fn_c_try_compile "$LINENO"; then :
5602 ac_cv_prog_cc_c89=$ac_arg
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext
5605 test "x$ac_cv_prog_cc_c89" != "xno" && break
5606 done
5607 rm -f conftest.$ac_ext
5608 CC=$ac_save_CC
5609
5610 fi
5611 # AC_CACHE_VAL
5612 case "x$ac_cv_prog_cc_c89" in
5613 x)
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5615 $as_echo "none needed" >&6; } ;;
5616 xno)
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5618 $as_echo "unsupported" >&6; } ;;
5619 *)
5620 CC="$CC $ac_cv_prog_cc_c89"
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5622 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5623 esac
5624 if test "x$ac_cv_prog_cc_c89" != xno; then :
5625
5626 fi
5627
5628 ac_ext=c
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633 DEPDIR="${am__leading_dot}deps"
5634
5635 ac_config_commands="$ac_config_commands depfiles"
5636
5637
5638 am_make=${MAKE-make}
5639 cat > confinc << 'END'
5640 am__doit:
5641 @echo this is the am__doit target
5642 .PHONY: am__doit
5643 END
5644 # If we don't find an include directive, just comment out the code.
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5646 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5647 am__include="#"
5648 am__quote=
5649 _am_result=none
5650 # First try GNU make style include.
5651 echo "include confinc" > confmf
5652 # Ignore all kinds of additional output from `make'.
5653 case `$am_make -s -f confmf 2> /dev/null` in #(
5654 *the\ am__doit\ target*)
5655 am__include=include
5656 am__quote=
5657 _am_result=GNU
5658 ;;
5659 esac
5660 # Now try BSD make style include.
5661 if test "$am__include" = "#"; then
5662 echo '.include "confinc"' > confmf
5663 case `$am_make -s -f confmf 2> /dev/null` in #(
5664 *the\ am__doit\ target*)
5665 am__include=.include
5666 am__quote="\""
5667 _am_result=BSD
5668 ;;
5669 esac
5670 fi
5671
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5674 $as_echo "$_am_result" >&6; }
5675 rm -f confinc confmf
5676
5677 # Check whether --enable-dependency-tracking was given.
5678 if test "${enable_dependency_tracking+set}" = set; then :
5679 enableval=$enable_dependency_tracking;
5680 fi
5681
5682 if test "x$enable_dependency_tracking" != xno; then
5683 am_depcomp="$ac_aux_dir/depcomp"
5684 AMDEPBACKSLASH='\'
5685 fi
5686 if test "x$enable_dependency_tracking" != xno; then
5687 AMDEP_TRUE=
5688 AMDEP_FALSE='#'
5689 else
5690 AMDEP_TRUE='#'
5691 AMDEP_FALSE=
5692 fi
5693
5694
5695
5696 depcc="$CC" am_compiler_list=
5697
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5699 $as_echo_n "checking dependency style of $depcc... " >&6; }
5700 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5704 # We make a subdir and do the tests there. Otherwise we can end up
5705 # making bogus files that we don't know about and never remove. For
5706 # instance it was reported that on HP-UX the gcc test will end up
5707 # making a dummy file named `D' -- because `-MD' means `put the output
5708 # in D'.
5709 mkdir conftest.dir
5710 # Copy depcomp to subdir because otherwise we won't find it if we're
5711 # using a relative directory.
5712 cp "$am_depcomp" conftest.dir
5713 cd conftest.dir
5714 # We will build objects and dependencies in a subdirectory because
5715 # it helps to detect inapplicable dependency modes. For instance
5716 # both Tru64's cc and ICC support -MD to output dependencies as a
5717 # side effect of compilation, but ICC will put the dependencies in
5718 # the current directory while Tru64 will put them in the object
5719 # directory.
5720 mkdir sub
5721
5722 am_cv_CC_dependencies_compiler_type=none
5723 if test "$am_compiler_list" = ""; then
5724 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5725 fi
5726 am__universal=false
5727 case " $depcc " in #(
5728 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5729 esac
5730
5731 for depmode in $am_compiler_list; do
5732 # Setup a source with many dependencies, because some compilers
5733 # like to wrap large dependency lists on column 80 (with \), and
5734 # we should not choose a depcomp mode which is confused by this.
5735 #
5736 # We need to recreate these files for each test, as the compiler may
5737 # overwrite some of them when testing with obscure command lines.
5738 # This happens at least with the AIX C compiler.
5739 : > sub/conftest.c
5740 for i in 1 2 3 4 5 6; do
5741 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5742 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5743 # Solaris 8's {/usr,}/bin/sh.
5744 touch sub/conftst$i.h
5745 done
5746 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5747
5748 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5749 # mode. It turns out that the SunPro C++ compiler does not properly
5750 # handle `-M -o', and we need to detect this. Also, some Intel
5751 # versions had trouble with output in subdirs
5752 am__obj=sub/conftest.${OBJEXT-o}
5753 am__minus_obj="-o $am__obj"
5754 case $depmode in
5755 gcc)
5756 # This depmode causes a compiler race in universal mode.
5757 test "$am__universal" = false || continue
5758 ;;
5759 nosideeffect)
5760 # after this tag, mechanisms are not by side-effect, so they'll
5761 # only be used when explicitly requested
5762 if test "x$enable_dependency_tracking" = xyes; then
5763 continue
5764 else
5765 break
5766 fi
5767 ;;
5768 msvisualcpp | msvcmsys)
5769 # This compiler won't grok `-c -o', but also, the minuso test has
5770 # not run yet. These depmodes are late enough in the game, and
5771 # so weak that their functioning should not be impacted.
5772 am__obj=conftest.${OBJEXT-o}
5773 am__minus_obj=
5774 ;;
5775 none) break ;;
5776 esac
5777 if depmode=$depmode \
5778 source=sub/conftest.c object=$am__obj \
5779 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5780 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5781 >/dev/null 2>conftest.err &&
5782 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5783 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5784 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5785 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5786 # icc doesn't choke on unknown options, it will just issue warnings
5787 # or remarks (even with -Werror). So we grep stderr for any message
5788 # that says an option was ignored or not supported.
5789 # When given -MP, icc 7.0 and 7.1 complain thusly:
5790 # icc: Command line warning: ignoring option '-M'; no argument required
5791 # The diagnosis changed in icc 8.0:
5792 # icc: Command line remark: option '-MP' not supported
5793 if (grep 'ignoring option' conftest.err ||
5794 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5795 am_cv_CC_dependencies_compiler_type=$depmode
5796 break
5797 fi
5798 fi
5799 done
5800
5801 cd ..
5802 rm -rf conftest.dir
5803 else
5804 am_cv_CC_dependencies_compiler_type=none
5805 fi
5806
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5809 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5810 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5811
5812 if
5813 test "x$enable_dependency_tracking" != xno \
5814 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5815 am__fastdepCC_TRUE=
5816 am__fastdepCC_FALSE='#'
5817 else
5818 am__fastdepCC_TRUE='#'
5819 am__fastdepCC_FALSE=
5820 fi
5821
5822
5823 if test "x$CC" != xcc; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5825 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5826 else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5828 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5829 fi
5830 set dummy $CC; ac_cc=`$as_echo "$2" |
5831 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5832 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837
5838 int
5839 main ()
5840 {
5841
5842 ;
5843 return 0;
5844 }
5845 _ACEOF
5846 # Make sure it works both with $CC and with simple cc.
5847 # We do the test twice because some compilers refuse to overwrite an
5848 # existing .o file with -o, though they will create one.
5849 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5850 rm -f conftest2.*
5851 if { { case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5856 $as_echo "$ac_try_echo"; } >&5
5857 (eval "$ac_try") 2>&5
5858 ac_status=$?
5859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860 test $ac_status = 0; } &&
5861 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864 esac
5865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5866 $as_echo "$ac_try_echo"; } >&5
5867 (eval "$ac_try") 2>&5
5868 ac_status=$?
5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5870 test $ac_status = 0; };
5871 then
5872 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5873 if test "x$CC" != xcc; then
5874 # Test first that cc exists at all.
5875 if { ac_try='cc -c conftest.$ac_ext >&5'
5876 { { case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879 esac
5880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5881 $as_echo "$ac_try_echo"; } >&5
5882 (eval "$ac_try") 2>&5
5883 ac_status=$?
5884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5885 test $ac_status = 0; }; }; then
5886 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5887 rm -f conftest2.*
5888 if { { case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891 esac
5892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5893 $as_echo "$ac_try_echo"; } >&5
5894 (eval "$ac_try") 2>&5
5895 ac_status=$?
5896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897 test $ac_status = 0; } &&
5898 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900 *) ac_try_echo=$ac_try;;
5901 esac
5902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5903 $as_echo "$ac_try_echo"; } >&5
5904 (eval "$ac_try") 2>&5
5905 ac_status=$?
5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; };
5908 then
5909 # cc works too.
5910 :
5911 else
5912 # cc exists but doesn't like -o.
5913 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5914 fi
5915 fi
5916 fi
5917 else
5918 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5919 fi
5920 rm -f core conftest*
5921
5922 fi
5923 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5925 $as_echo "yes" >&6; }
5926 else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5929
5930 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5931
5932 fi
5933
5934 # FIXME: we rely on the cache variable name because
5935 # there is no other way.
5936 set dummy $CC
5937 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5938 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5939 if test "$am_t" != yes; then
5940 # Losing compiler, so override with the script.
5941 # FIXME: It is wrong to rewrite CC.
5942 # But if we don't then we get into trouble of one sort or another.
5943 # A longer-term fix would be to have automake use am__CC in this case,
5944 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5945 CC="$am_aux_dir/compile $CC"
5946 fi
5947
5948
5949
5950 if test x$GCC = xyes; then
5951 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5952 else
5953 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5954 fi
5955
5956 if test "x$opsys" = "xmingw32"; then
5957 BUILDING_FOR_WINDOWSNT_TRUE=
5958 BUILDING_FOR_WINDOWSNT_FALSE='#'
5959 else
5960 BUILDING_FOR_WINDOWSNT_TRUE='#'
5961 BUILDING_FOR_WINDOWSNT_FALSE=
5962 fi
5963
5964
5965 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5966 # as we don't use them.
5967
5968 # Avoid gnulib's threadlib module, as we do threads our own way.
5969
5970
5971 # Initialize gnulib right after choosing the compiler.
5972
5973 ac_ext=c
5974 ac_cpp='$CPP $CPPFLAGS'
5975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5979 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5980 # On Suns, sometimes $CPP names a directory.
5981 if test -n "$CPP" && test -d "$CPP"; then
5982 CPP=
5983 fi
5984 if test -z "$CPP"; then
5985 if test "${ac_cv_prog_CPP+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 # Double quotes because CPP needs to be expanded
5989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5990 do
5991 ac_preproc_ok=false
5992 for ac_c_preproc_warn_flag in '' yes
5993 do
5994 # Use a header file that comes with gcc, so configuring glibc
5995 # with a fresh cross-compiler works.
5996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997 # <limits.h> exists even on freestanding compilers.
5998 # On the NeXT, cc -E runs the code through the compiler's parser,
5999 # not just through cpp. "Syntax error" is here to catch this case.
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6002 #ifdef __STDC__
6003 # include <limits.h>
6004 #else
6005 # include <assert.h>
6006 #endif
6007 Syntax error
6008 _ACEOF
6009 if ac_fn_c_try_cpp "$LINENO"; then :
6010
6011 else
6012 # Broken: fails on valid input.
6013 continue
6014 fi
6015 rm -f conftest.err conftest.$ac_ext
6016
6017 # OK, works on sane cases. Now check whether nonexistent headers
6018 # can be detected and how.
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 #include <ac_nonexistent.h>
6022 _ACEOF
6023 if ac_fn_c_try_cpp "$LINENO"; then :
6024 # Broken: success on invalid input.
6025 continue
6026 else
6027 # Passes both tests.
6028 ac_preproc_ok=:
6029 break
6030 fi
6031 rm -f conftest.err conftest.$ac_ext
6032
6033 done
6034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6035 rm -f conftest.err conftest.$ac_ext
6036 if $ac_preproc_ok; then :
6037 break
6038 fi
6039
6040 done
6041 ac_cv_prog_CPP=$CPP
6042
6043 fi
6044 CPP=$ac_cv_prog_CPP
6045 else
6046 ac_cv_prog_CPP=$CPP
6047 fi
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6049 $as_echo "$CPP" >&6; }
6050 ac_preproc_ok=false
6051 for ac_c_preproc_warn_flag in '' yes
6052 do
6053 # Use a header file that comes with gcc, so configuring glibc
6054 # with a fresh cross-compiler works.
6055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6056 # <limits.h> exists even on freestanding compilers.
6057 # On the NeXT, cc -E runs the code through the compiler's parser,
6058 # not just through cpp. "Syntax error" is here to catch this case.
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 #ifdef __STDC__
6062 # include <limits.h>
6063 #else
6064 # include <assert.h>
6065 #endif
6066 Syntax error
6067 _ACEOF
6068 if ac_fn_c_try_cpp "$LINENO"; then :
6069
6070 else
6071 # Broken: fails on valid input.
6072 continue
6073 fi
6074 rm -f conftest.err conftest.$ac_ext
6075
6076 # OK, works on sane cases. Now check whether nonexistent headers
6077 # can be detected and how.
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #include <ac_nonexistent.h>
6081 _ACEOF
6082 if ac_fn_c_try_cpp "$LINENO"; then :
6083 # Broken: success on invalid input.
6084 continue
6085 else
6086 # Passes both tests.
6087 ac_preproc_ok=:
6088 break
6089 fi
6090 rm -f conftest.err conftest.$ac_ext
6091
6092 done
6093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6094 rm -f conftest.err conftest.$ac_ext
6095 if $ac_preproc_ok; then :
6096
6097 else
6098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6100 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6101 See \`config.log' for more details." "$LINENO" 5; }
6102 fi
6103
6104 ac_ext=c
6105 ac_cpp='$CPP $CPPFLAGS'
6106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6109
6110
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6112 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6113 if test "${ac_cv_path_GREP+set}" = set; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 if test -z "$GREP"; then
6117 ac_path_GREP_found=false
6118 # Loop through the user's path and test for each of PROGNAME-LIST
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6121 do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_prog in grep ggrep; do
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6127 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6128 # Check for GNU ac_path_GREP and select it if it is found.
6129 # Check for GNU $ac_path_GREP
6130 case `"$ac_path_GREP" --version 2>&1` in
6131 *GNU*)
6132 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6133 *)
6134 ac_count=0
6135 $as_echo_n 0123456789 >"conftest.in"
6136 while :
6137 do
6138 cat "conftest.in" "conftest.in" >"conftest.tmp"
6139 mv "conftest.tmp" "conftest.in"
6140 cp "conftest.in" "conftest.nl"
6141 $as_echo 'GREP' >> "conftest.nl"
6142 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6144 as_fn_arith $ac_count + 1 && ac_count=$as_val
6145 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6146 # Best one so far, save it but keep looking for a better one
6147 ac_cv_path_GREP="$ac_path_GREP"
6148 ac_path_GREP_max=$ac_count
6149 fi
6150 # 10*(2^10) chars as input seems more than enough
6151 test $ac_count -gt 10 && break
6152 done
6153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6154 esac
6155
6156 $ac_path_GREP_found && break 3
6157 done
6158 done
6159 done
6160 IFS=$as_save_IFS
6161 if test -z "$ac_cv_path_GREP"; then
6162 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6163 fi
6164 else
6165 ac_cv_path_GREP=$GREP
6166 fi
6167
6168 fi
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6170 $as_echo "$ac_cv_path_GREP" >&6; }
6171 GREP="$ac_cv_path_GREP"
6172
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6175 $as_echo_n "checking for egrep... " >&6; }
6176 if test "${ac_cv_path_EGREP+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6180 then ac_cv_path_EGREP="$GREP -E"
6181 else
6182 if test -z "$EGREP"; then
6183 ac_path_EGREP_found=false
6184 # Loop through the user's path and test for each of PROGNAME-LIST
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6187 do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_prog in egrep; do
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6194 # Check for GNU ac_path_EGREP and select it if it is found.
6195 # Check for GNU $ac_path_EGREP
6196 case `"$ac_path_EGREP" --version 2>&1` in
6197 *GNU*)
6198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6199 *)
6200 ac_count=0
6201 $as_echo_n 0123456789 >"conftest.in"
6202 while :
6203 do
6204 cat "conftest.in" "conftest.in" >"conftest.tmp"
6205 mv "conftest.tmp" "conftest.in"
6206 cp "conftest.in" "conftest.nl"
6207 $as_echo 'EGREP' >> "conftest.nl"
6208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6210 as_fn_arith $ac_count + 1 && ac_count=$as_val
6211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6212 # Best one so far, save it but keep looking for a better one
6213 ac_cv_path_EGREP="$ac_path_EGREP"
6214 ac_path_EGREP_max=$ac_count
6215 fi
6216 # 10*(2^10) chars as input seems more than enough
6217 test $ac_count -gt 10 && break
6218 done
6219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6220 esac
6221
6222 $ac_path_EGREP_found && break 3
6223 done
6224 done
6225 done
6226 IFS=$as_save_IFS
6227 if test -z "$ac_cv_path_EGREP"; then
6228 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6229 fi
6230 else
6231 ac_cv_path_EGREP=$EGREP
6232 fi
6233
6234 fi
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6237 $as_echo "$ac_cv_path_EGREP" >&6; }
6238 EGREP="$ac_cv_path_EGREP"
6239
6240
6241
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6244 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6245 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251
6252 #ifdef __ACK__
6253 Amsterdam
6254 #endif
6255
6256 _ACEOF
6257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6258 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6259 gl_cv_c_amsterdam_compiler=yes
6260 else
6261 gl_cv_c_amsterdam_compiler=no
6262 fi
6263 rm -f conftest*
6264
6265
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6268 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6269 if test -z "$AR"; then
6270 if test $gl_cv_c_amsterdam_compiler = yes; then
6271 AR='cc -c.a'
6272 if test -z "$ARFLAGS"; then
6273 ARFLAGS='-o'
6274 fi
6275 else
6276 if test -n "$ac_tool_prefix"; then
6277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6278 set dummy ${ac_tool_prefix}ar; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if test "${ac_cv_prog_AR+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 if test -n "$AR"; then
6285 ac_cv_prog_AR="$AR" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_AR="${ac_tool_prefix}ar"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 AR=$ac_cv_prog_AR
6305 if test -n "$AR"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6307 $as_echo "$AR" >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313
6314 fi
6315 if test -z "$ac_cv_prog_AR"; then
6316 ac_ct_AR=$AR
6317 # Extract the first word of "ar", so it can be a program name with args.
6318 set dummy ar; ac_word=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 if test -n "$ac_ct_AR"; then
6325 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_prog_ac_ct_AR="ar"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338 done
6339 done
6340 IFS=$as_save_IFS
6341
6342 fi
6343 fi
6344 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6345 if test -n "$ac_ct_AR"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6347 $as_echo "$ac_ct_AR" >&6; }
6348 else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6351 fi
6352
6353 if test "x$ac_ct_AR" = x; then
6354 AR="ar"
6355 else
6356 case $cross_compiling:$ac_tool_warned in
6357 yes:)
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360 ac_tool_warned=yes ;;
6361 esac
6362 AR=$ac_ct_AR
6363 fi
6364 else
6365 AR="$ac_cv_prog_AR"
6366 fi
6367
6368 if test -z "$ARFLAGS"; then
6369 ARFLAGS='cru'
6370 fi
6371 fi
6372 else
6373 if test -z "$ARFLAGS"; then
6374 ARFLAGS='cru'
6375 fi
6376 fi
6377
6378
6379 if test -z "$RANLIB"; then
6380 if test $gl_cv_c_amsterdam_compiler = yes; then
6381 RANLIB=':'
6382 else
6383 if test -n "$ac_tool_prefix"; then
6384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$RANLIB"; then
6392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 RANLIB=$ac_cv_prog_RANLIB
6412 if test -n "$RANLIB"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6414 $as_echo "$RANLIB" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420
6421 fi
6422 if test -z "$ac_cv_prog_RANLIB"; then
6423 ac_ct_RANLIB=$RANLIB
6424 # Extract the first word of "ranlib", so it can be a program name with args.
6425 set dummy ranlib; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 if test -n "$ac_ct_RANLIB"; then
6432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_ac_ct_RANLIB="ranlib"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6444 fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6452 if test -n "$ac_ct_RANLIB"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6454 $as_echo "$ac_ct_RANLIB" >&6; }
6455 else
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460 if test "x$ac_ct_RANLIB" = x; then
6461 RANLIB=":"
6462 else
6463 case $cross_compiling:$ac_tool_warned in
6464 yes:)
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467 ac_tool_warned=yes ;;
6468 esac
6469 RANLIB=$ac_ct_RANLIB
6470 fi
6471 else
6472 RANLIB="$ac_cv_prog_RANLIB"
6473 fi
6474
6475 fi
6476 fi
6477
6478
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6480 $as_echo_n "checking for ANSI C header files... " >&6; }
6481 if test "${ac_cv_header_stdc+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486 #include <stdlib.h>
6487 #include <stdarg.h>
6488 #include <string.h>
6489 #include <float.h>
6490
6491 int
6492 main ()
6493 {
6494
6495 ;
6496 return 0;
6497 }
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"; then :
6500 ac_cv_header_stdc=yes
6501 else
6502 ac_cv_header_stdc=no
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505
6506 if test $ac_cv_header_stdc = yes; then
6507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #include <string.h>
6511
6512 _ACEOF
6513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6514 $EGREP "memchr" >/dev/null 2>&1; then :
6515
6516 else
6517 ac_cv_header_stdc=no
6518 fi
6519 rm -f conftest*
6520
6521 fi
6522
6523 if test $ac_cv_header_stdc = yes; then
6524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 #include <stdlib.h>
6528
6529 _ACEOF
6530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6531 $EGREP "free" >/dev/null 2>&1; then :
6532
6533 else
6534 ac_cv_header_stdc=no
6535 fi
6536 rm -f conftest*
6537
6538 fi
6539
6540 if test $ac_cv_header_stdc = yes; then
6541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6542 if test "$cross_compiling" = yes; then :
6543 :
6544 else
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 #include <ctype.h>
6548 #include <stdlib.h>
6549 #if ((' ' & 0x0FF) == 0x020)
6550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6552 #else
6553 # define ISLOWER(c) \
6554 (('a' <= (c) && (c) <= 'i') \
6555 || ('j' <= (c) && (c) <= 'r') \
6556 || ('s' <= (c) && (c) <= 'z'))
6557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6558 #endif
6559
6560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6561 int
6562 main ()
6563 {
6564 int i;
6565 for (i = 0; i < 256; i++)
6566 if (XOR (islower (i), ISLOWER (i))
6567 || toupper (i) != TOUPPER (i))
6568 return 2;
6569 return 0;
6570 }
6571 _ACEOF
6572 if ac_fn_c_try_run "$LINENO"; then :
6573
6574 else
6575 ac_cv_header_stdc=no
6576 fi
6577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6578 conftest.$ac_objext conftest.beam conftest.$ac_ext
6579 fi
6580
6581 fi
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6584 $as_echo "$ac_cv_header_stdc" >&6; }
6585 if test $ac_cv_header_stdc = yes; then
6586
6587 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6588
6589 fi
6590
6591 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6592 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6593 inttypes.h stdint.h unistd.h
6594 do :
6595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6596 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6597 "
6598 eval as_val=\$$as_ac_Header
6599 if test "x$as_val" = x""yes; then :
6600 cat >>confdefs.h <<_ACEOF
6601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602 _ACEOF
6603
6604 fi
6605
6606 done
6607
6608
6609
6610 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6611 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6612 MINIX=yes
6613 else
6614 MINIX=
6615 fi
6616
6617
6618 if test "$MINIX" = yes; then
6619
6620 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6621
6622
6623 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6624
6625
6626 $as_echo "#define _MINIX 1" >>confdefs.h
6627
6628
6629 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6630
6631 fi
6632
6633
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6635 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6636 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641
6642 # define __EXTENSIONS__ 1
6643 $ac_includes_default
6644 int
6645 main ()
6646 {
6647
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 if ac_fn_c_try_compile "$LINENO"; then :
6653 ac_cv_safe_to_define___extensions__=yes
6654 else
6655 ac_cv_safe_to_define___extensions__=no
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 fi
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6660 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6661 test $ac_cv_safe_to_define___extensions__ = yes &&
6662 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6663
6664 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6665
6666 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6667
6668 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6669
6670 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6671
6672 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6673
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6675 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6676 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 ac_cv_should_define__xopen_source=no
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682
6683 #include <wchar.h>
6684 mbstate_t x;
6685 int
6686 main ()
6687 {
6688
6689 ;
6690 return 0;
6691 }
6692 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"; then :
6694
6695 else
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698
6699 #define _XOPEN_SOURCE 500
6700 #include <wchar.h>
6701 mbstate_t x;
6702 int
6703 main ()
6704 {
6705
6706 ;
6707 return 0;
6708 }
6709 _ACEOF
6710 if ac_fn_c_try_compile "$LINENO"; then :
6711 ac_cv_should_define__xopen_source=yes
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 fi
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 fi
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6718 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6719 test $ac_cv_should_define__xopen_source = yes &&
6720 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6721
6722
6723
6724
6725
6726
6727
6728
6729 # Check whether --enable-largefile was given.
6730 if test "${enable_largefile+set}" = set; then :
6731 enableval=$enable_largefile;
6732 fi
6733
6734 if test "$enable_largefile" != no; then
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6737 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6738 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 ac_cv_sys_largefile_CC=no
6742 if test "$GCC" != yes; then
6743 ac_save_CC=$CC
6744 while :; do
6745 # IRIX 6.2 and later do not support large files by default,
6746 # so use the C compiler's -n32 option if that helps.
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 #include <sys/types.h>
6750 /* Check that off_t can represent 2**63 - 1 correctly.
6751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6752 since some C++ compilers masquerading as C compilers
6753 incorrectly reject 9223372036854775807. */
6754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6756 && LARGE_OFF_T % 2147483647 == 1)
6757 ? 1 : -1];
6758 int
6759 main ()
6760 {
6761
6762 ;
6763 return 0;
6764 }
6765 _ACEOF
6766 if ac_fn_c_try_compile "$LINENO"; then :
6767 break
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext
6770 CC="$CC -n32"
6771 if ac_fn_c_try_compile "$LINENO"; then :
6772 ac_cv_sys_largefile_CC=' -n32'; break
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext
6775 break
6776 done
6777 CC=$ac_save_CC
6778 rm -f conftest.$ac_ext
6779 fi
6780 fi
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6782 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6783 if test "$ac_cv_sys_largefile_CC" != no; then
6784 CC=$CC$ac_cv_sys_largefile_CC
6785 fi
6786
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6788 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6789 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 while :; do
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 #include <sys/types.h>
6796 /* Check that off_t can represent 2**63 - 1 correctly.
6797 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6798 since some C++ compilers masquerading as C compilers
6799 incorrectly reject 9223372036854775807. */
6800 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6801 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6802 && LARGE_OFF_T % 2147483647 == 1)
6803 ? 1 : -1];
6804 int
6805 main ()
6806 {
6807
6808 ;
6809 return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_c_try_compile "$LINENO"; then :
6813 ac_cv_sys_file_offset_bits=no; break
6814 fi
6815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 #define _FILE_OFFSET_BITS 64
6819 #include <sys/types.h>
6820 /* Check that off_t can represent 2**63 - 1 correctly.
6821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6822 since some C++ compilers masquerading as C compilers
6823 incorrectly reject 9223372036854775807. */
6824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6826 && LARGE_OFF_T % 2147483647 == 1)
6827 ? 1 : -1];
6828 int
6829 main ()
6830 {
6831
6832 ;
6833 return 0;
6834 }
6835 _ACEOF
6836 if ac_fn_c_try_compile "$LINENO"; then :
6837 ac_cv_sys_file_offset_bits=64; break
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840 ac_cv_sys_file_offset_bits=unknown
6841 break
6842 done
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6845 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6846 case $ac_cv_sys_file_offset_bits in #(
6847 no | unknown) ;;
6848 *)
6849 cat >>confdefs.h <<_ACEOF
6850 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6851 _ACEOF
6852 ;;
6853 esac
6854 rm -rf conftest*
6855 if test $ac_cv_sys_file_offset_bits = unknown; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6857 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6858 if test "${ac_cv_sys_large_files+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 while :; do
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 #include <sys/types.h>
6865 /* Check that off_t can represent 2**63 - 1 correctly.
6866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6867 since some C++ compilers masquerading as C compilers
6868 incorrectly reject 9223372036854775807. */
6869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6871 && LARGE_OFF_T % 2147483647 == 1)
6872 ? 1 : -1];
6873 int
6874 main ()
6875 {
6876
6877 ;
6878 return 0;
6879 }
6880 _ACEOF
6881 if ac_fn_c_try_compile "$LINENO"; then :
6882 ac_cv_sys_large_files=no; break
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 #define _LARGE_FILES 1
6888 #include <sys/types.h>
6889 /* Check that off_t can represent 2**63 - 1 correctly.
6890 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6891 since some C++ compilers masquerading as C compilers
6892 incorrectly reject 9223372036854775807. */
6893 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6894 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6895 && LARGE_OFF_T % 2147483647 == 1)
6896 ? 1 : -1];
6897 int
6898 main ()
6899 {
6900
6901 ;
6902 return 0;
6903 }
6904 _ACEOF
6905 if ac_fn_c_try_compile "$LINENO"; then :
6906 ac_cv_sys_large_files=1; break
6907 fi
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 ac_cv_sys_large_files=unknown
6910 break
6911 done
6912 fi
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6914 $as_echo "$ac_cv_sys_large_files" >&6; }
6915 case $ac_cv_sys_large_files in #(
6916 no | unknown) ;;
6917 *)
6918 cat >>confdefs.h <<_ACEOF
6919 #define _LARGE_FILES $ac_cv_sys_large_files
6920 _ACEOF
6921 ;;
6922 esac
6923 rm -rf conftest*
6924 fi
6925
6926
6927 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6928
6929 fi
6930
6931 case $ac_cv_prog_cc_stdc in #(
6932 no) :
6933 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6934 *) :
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6936 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6937 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 ac_cv_prog_cc_c99=no
6941 ac_save_CC=$CC
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 #include <stdarg.h>
6945 #include <stdbool.h>
6946 #include <stdlib.h>
6947 #include <wchar.h>
6948 #include <stdio.h>
6949
6950 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6951 #define debug(...) fprintf (stderr, __VA_ARGS__)
6952 #define showlist(...) puts (#__VA_ARGS__)
6953 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6954 static void
6955 test_varargs_macros (void)
6956 {
6957 int x = 1234;
6958 int y = 5678;
6959 debug ("Flag");
6960 debug ("X = %d\n", x);
6961 showlist (The first, second, and third items.);
6962 report (x>y, "x is %d but y is %d", x, y);
6963 }
6964
6965 // Check long long types.
6966 #define BIG64 18446744073709551615ull
6967 #define BIG32 4294967295ul
6968 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6969 #if !BIG_OK
6970 your preprocessor is broken;
6971 #endif
6972 #if BIG_OK
6973 #else
6974 your preprocessor is broken;
6975 #endif
6976 static long long int bignum = -9223372036854775807LL;
6977 static unsigned long long int ubignum = BIG64;
6978
6979 struct incomplete_array
6980 {
6981 int datasize;
6982 double data[];
6983 };
6984
6985 struct named_init {
6986 int number;
6987 const wchar_t *name;
6988 double average;
6989 };
6990
6991 typedef const char *ccp;
6992
6993 static inline int
6994 test_restrict (ccp restrict text)
6995 {
6996 // See if C++-style comments work.
6997 // Iterate through items via the restricted pointer.
6998 // Also check for declarations in for loops.
6999 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7000 continue;
7001 return 0;
7002 }
7003
7004 // Check varargs and va_copy.
7005 static void
7006 test_varargs (const char *format, ...)
7007 {
7008 va_list args;
7009 va_start (args, format);
7010 va_list args_copy;
7011 va_copy (args_copy, args);
7012
7013 const char *str;
7014 int number;
7015 float fnumber;
7016
7017 while (*format)
7018 {
7019 switch (*format++)
7020 {
7021 case 's': // string
7022 str = va_arg (args_copy, const char *);
7023 break;
7024 case 'd': // int
7025 number = va_arg (args_copy, int);
7026 break;
7027 case 'f': // float
7028 fnumber = va_arg (args_copy, double);
7029 break;
7030 default:
7031 break;
7032 }
7033 }
7034 va_end (args_copy);
7035 va_end (args);
7036 }
7037
7038 int
7039 main ()
7040 {
7041
7042 // Check bool.
7043 _Bool success = false;
7044
7045 // Check restrict.
7046 if (test_restrict ("String literal") == 0)
7047 success = true;
7048 char *restrict newvar = "Another string";
7049
7050 // Check varargs.
7051 test_varargs ("s, d' f .", "string", 65, 34.234);
7052 test_varargs_macros ();
7053
7054 // Check flexible array members.
7055 struct incomplete_array *ia =
7056 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7057 ia->datasize = 10;
7058 for (int i = 0; i < ia->datasize; ++i)
7059 ia->data[i] = i * 1.234;
7060
7061 // Check named initializers.
7062 struct named_init ni = {
7063 .number = 34,
7064 .name = L"Test wide string",
7065 .average = 543.34343,
7066 };
7067
7068 ni.number = 58;
7069
7070 int dynamic_array[ni.number];
7071 dynamic_array[ni.number - 1] = 543;
7072
7073 // work around unused variable warnings
7074 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7075 || dynamic_array[ni.number - 1] != 543);
7076
7077 ;
7078 return 0;
7079 }
7080 _ACEOF
7081 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7082 do
7083 CC="$ac_save_CC $ac_arg"
7084 if ac_fn_c_try_compile "$LINENO"; then :
7085 ac_cv_prog_cc_c99=$ac_arg
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext
7088 test "x$ac_cv_prog_cc_c99" != "xno" && break
7089 done
7090 rm -f conftest.$ac_ext
7091 CC=$ac_save_CC
7092
7093 fi
7094 # AC_CACHE_VAL
7095 case "x$ac_cv_prog_cc_c99" in
7096 x)
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7098 $as_echo "none needed" >&6; } ;;
7099 xno)
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7101 $as_echo "unsupported" >&6; } ;;
7102 *)
7103 CC="$CC $ac_cv_prog_cc_c99"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7105 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7106 esac
7107 if test "x$ac_cv_prog_cc_c99" != xno; then :
7108 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7111 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7112 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 ac_cv_prog_cc_c89=no
7116 ac_save_CC=$CC
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 #include <stdarg.h>
7120 #include <stdio.h>
7121 #include <sys/types.h>
7122 #include <sys/stat.h>
7123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7124 struct buf { int x; };
7125 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7126 static char *e (p, i)
7127 char **p;
7128 int i;
7129 {
7130 return p[i];
7131 }
7132 static char *f (char * (*g) (char **, int), char **p, ...)
7133 {
7134 char *s;
7135 va_list v;
7136 va_start (v,p);
7137 s = g (p, va_arg (v,int));
7138 va_end (v);
7139 return s;
7140 }
7141
7142 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7143 function prototypes and stuff, but not '\xHH' hex character constants.
7144 These don't provoke an error unfortunately, instead are silently treated
7145 as 'x'. The following induces an error, until -std is added to get
7146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7147 array size at least. It's necessary to write '\x00'==0 to get something
7148 that's true only with -std. */
7149 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7150
7151 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7152 inside strings and character constants. */
7153 #define FOO(x) 'x'
7154 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7155
7156 int test (int i, double x);
7157 struct s1 {int (*f) (int a);};
7158 struct s2 {int (*f) (double a);};
7159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7160 int argc;
7161 char **argv;
7162 int
7163 main ()
7164 {
7165 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7166 ;
7167 return 0;
7168 }
7169 _ACEOF
7170 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7172 do
7173 CC="$ac_save_CC $ac_arg"
7174 if ac_fn_c_try_compile "$LINENO"; then :
7175 ac_cv_prog_cc_c89=$ac_arg
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext
7178 test "x$ac_cv_prog_cc_c89" != "xno" && break
7179 done
7180 rm -f conftest.$ac_ext
7181 CC=$ac_save_CC
7182
7183 fi
7184 # AC_CACHE_VAL
7185 case "x$ac_cv_prog_cc_c89" in
7186 x)
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7188 $as_echo "none needed" >&6; } ;;
7189 xno)
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7191 $as_echo "unsupported" >&6; } ;;
7192 *)
7193 CC="$CC $ac_cv_prog_cc_c89"
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7195 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7196 esac
7197 if test "x$ac_cv_prog_cc_c89" != xno; then :
7198 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7199 else
7200 ac_cv_prog_cc_stdc=no
7201 fi
7202
7203 fi
7204 ;;
7205 esac
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7207 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7208 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7210 fi
7211
7212 case $ac_cv_prog_cc_stdc in #(
7213 no) :
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7215 $as_echo "unsupported" >&6; } ;; #(
7216 '') :
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7218 $as_echo "none needed" >&6; } ;; #(
7219 *) :
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7221 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7222 esac
7223
7224
7225
7226 # Code from module alloca-opt:
7227 # Code from module allocator:
7228 # Code from module at-internal:
7229 # Code from module c-ctype:
7230 # Code from module c-strcase:
7231 # Code from module careadlinkat:
7232 # Code from module clock-time:
7233 # Code from module close-stream:
7234 # Code from module crypto/md5:
7235 # Code from module crypto/sha1:
7236 # Code from module crypto/sha256:
7237 # Code from module crypto/sha512:
7238 # Code from module dirent:
7239 # Code from module dosname:
7240 # Code from module dtoastr:
7241 # Code from module dtotimespec:
7242 # Code from module dup2:
7243 # Code from module environ:
7244 # Code from module errno:
7245 # Code from module euidaccess:
7246 # Code from module execinfo:
7247 # Code from module extensions:
7248
7249 # Code from module extern-inline:
7250 # Code from module faccessat:
7251 # Code from module fcntl-h:
7252 # Code from module fdatasync:
7253 # Code from module fdopendir:
7254 # Code from module filemode:
7255 # Code from module fpending:
7256 # Code from module fstatat:
7257 # Code from module fsync:
7258 # Code from module getgroups:
7259 # Code from module getloadavg:
7260 # Code from module getopt-gnu:
7261 # Code from module getopt-posix:
7262 # Code from module gettext-h:
7263 # Code from module gettime:
7264 # Code from module gettimeofday:
7265 # Code from module group-member:
7266 # Code from module ignore-value:
7267 # Code from module include_next:
7268 # Code from module intprops:
7269 # Code from module inttypes-incomplete:
7270 # Code from module largefile:
7271
7272 # Code from module lstat:
7273 # Code from module manywarnings:
7274 # Code from module memrchr:
7275 # Code from module mktime:
7276 # Code from module multiarch:
7277 # Code from module nocrash:
7278 # Code from module openat-h:
7279 # Code from module pathmax:
7280 # Code from module pselect:
7281 # Code from module pthread_sigmask:
7282 # Code from module putenv:
7283 # Code from module qacl:
7284 # Code from module readlink:
7285 # Code from module readlinkat:
7286 # Code from module root-uid:
7287 # Code from module sig2str:
7288 # Code from module signal-h:
7289 # Code from module snippet/_Noreturn:
7290 # Code from module snippet/arg-nonnull:
7291 # Code from module snippet/c++defs:
7292 # Code from module snippet/warn-on-use:
7293 # Code from module socklen:
7294 # Code from module ssize_t:
7295 # Code from module stat:
7296 # Code from module stat-time:
7297 # Code from module stdalign:
7298 # Code from module stdarg:
7299
7300
7301
7302 # Code from module stdbool:
7303 # Code from module stddef:
7304 # Code from module stdint:
7305 # Code from module stdio:
7306 # Code from module stdlib:
7307 # Code from module strftime:
7308 # Code from module string:
7309 # Code from module strtoimax:
7310 # Code from module strtoll:
7311 # Code from module strtoull:
7312 # Code from module strtoumax:
7313 # Code from module symlink:
7314 # Code from module sys_select:
7315 # Code from module sys_stat:
7316 # Code from module sys_time:
7317 # Code from module time:
7318 # Code from module time_r:
7319 # Code from module timer-time:
7320 # Code from module timespec:
7321 # Code from module timespec-add:
7322 # Code from module timespec-sub:
7323 # Code from module u64:
7324 # Code from module unistd:
7325 # Code from module unsetenv:
7326 # Code from module utimens:
7327 # Code from module verify:
7328 # Code from module warnings:
7329 # Code from module xalloc-oversized:
7330
7331
7332 if test "$ac_test_CFLAGS" != set; then
7333 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7334 # if -g3 works and the user does not specify CFLAGS.
7335 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7336 case $CFLAGS in
7337 '-g')
7338 emacs_g3_CFLAGS='-g3';;
7339 '-g -O2')
7340 emacs_g3_CFLAGS='-g3 -O2';;
7341 *)
7342 emacs_g3_CFLAGS='';;
7343 esac
7344 if test -n "$emacs_g3_CFLAGS"; then
7345 emacs_save_CFLAGS=$CFLAGS
7346 CFLAGS=$emacs_g3_CFLAGS
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7348 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7349 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354
7355 int
7356 main ()
7357 {
7358
7359 ;
7360 return 0;
7361 }
7362 _ACEOF
7363 if ac_fn_c_try_link "$LINENO"; then :
7364 emacs_cv_prog_cc_g3=yes
7365 else
7366 emacs_cv_prog_cc_g3=no
7367 fi
7368 rm -f core conftest.err conftest.$ac_objext \
7369 conftest$ac_exeext conftest.$ac_ext
7370 fi
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7372 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7373 if test $emacs_cv_prog_cc_g3 != yes; then
7374 CFLAGS=$emacs_save_CFLAGS
7375 fi
7376 if test $opsys = mingw32; then
7377 CFLAGS="$CFLAGS -gdwarf-2"
7378 fi
7379 fi
7380
7381 case $CFLAGS in
7382 *-O*) ;;
7383 *)
7384 # No optimization flag was inferred for this non-GCC compiler.
7385 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7386 emacs_save_CFLAGS=$CFLAGS
7387 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7388 CFLAGS=${CFLAGS}-O
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7390 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7391 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7396
7397 int
7398 main ()
7399 {
7400
7401 ;
7402 return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_link "$LINENO"; then :
7406 emacs_cv_prog_cc_o=yes
7407 else
7408 emacs_cv_prog_cc_o=no
7409 fi
7410 rm -f core conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7414 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7415 if test $emacs_cv_prog_cc_o != yes; then
7416 CFLAGS=$emacs_save_CFLAGS
7417 fi ;;
7418 esac
7419 fi
7420
7421 # Check whether --enable-gcc-warnings was given.
7422 if test "${enable_gcc_warnings+set}" = set; then :
7423 enableval=$enable_gcc_warnings; case $enableval in
7424 yes|no) ;;
7425 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7426 esac
7427 gl_gcc_warnings=$enableval
7428 else
7429 gl_gcc_warnings=no
7430
7431 fi
7432
7433
7434 # Check whether --enable-link-time-optimization was given.
7435 if test "${enable_link_time_optimization+set}" = set; then :
7436 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7438 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7439 ac_lto_supported=no
7440 if test x$GCC = xyes; then
7441 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7442 if test x$CPUS != x; then
7443 LTO="-flto=$CPUS"
7444 else
7445 LTO="-flto"
7446 fi
7447 old_CFLAGS=$CFLAGS
7448 CFLAGS="$CFLAGS $LTO"
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451
7452 int
7453 main ()
7454 {
7455
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 if ac_fn_c_try_compile "$LINENO"; then :
7461 ac_lto_supported=yes
7462 else
7463 ac_lto_supported=no
7464 fi
7465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7466 CFLAGS="$old_CFLAGS"
7467 fi
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7469 $as_echo "$ac_lto_supported" >&6; }
7470 if test "$ac_lto_supported" = "yes"; then
7471 CFLAGS="$CFLAGS $LTO"
7472 fi
7473 fi
7474 fi
7475
7476
7477 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7478 # ------------------------------------------------
7479 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7480 # Otherwise, run RUN-IF-NOT-FOUND.
7481
7482
7483 # When compiling with GCC, prefer -isystem to -I when including system
7484 # include files, to avoid generating useless diagnostics for the files.
7485 if test "$gl_gcc_warnings" != yes; then
7486 isystem='-I'
7487 else
7488 isystem='-isystem '
7489
7490 # This, $nw, is the list of warnings we disable.
7491 nw=
7492
7493 case $with_x_toolkit in
7494 lucid | athena | motif)
7495 # Old toolkits mishandle 'const'.
7496 nw="$nw -Wwrite-strings"
7497 ;;
7498 *)
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7500 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7501 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504
7505 gl_save_compiler_FLAGS="$CFLAGS"
7506 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509
7510 int
7511 main ()
7512 {
7513
7514 ;
7515 return 0;
7516 }
7517 _ACEOF
7518 if ac_fn_c_try_compile "$LINENO"; then :
7519 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7520 else
7521 gl_cv_warn_c__Werror__Wunknown_warning_option=no
7522 fi
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524 CFLAGS="$gl_save_compiler_FLAGS"
7525
7526 fi
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7528 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7529 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x""yes; then :
7530 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7531 else
7532 gl_unknown_warnings_are_errors=
7533 fi
7534
7535
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7537 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7538 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541
7542 gl_save_compiler_FLAGS="$CFLAGS"
7543 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546
7547 int
7548 main ()
7549 {
7550
7551 ;
7552 return 0;
7553 }
7554 _ACEOF
7555 if ac_fn_c_try_compile "$LINENO"; then :
7556 gl_cv_warn_c__Werror=yes
7557 else
7558 gl_cv_warn_c__Werror=no
7559 fi
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 CFLAGS="$gl_save_compiler_FLAGS"
7562
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7565 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7566 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7567 as_fn_append WERROR_CFLAGS " -Werror"
7568 fi
7569
7570
7571 ;;
7572 esac
7573
7574
7575 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7576 nw="$nw -Woverlength-strings" # Not a problem these days
7577 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7578 nw="$nw -Wformat-nonliteral" # we do this a lot
7579 nw="$nw -Wvla" # warnings in gettext.h
7580 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7581 nw="$nw -Wswitch-default" # Too many warnings for now
7582 nw="$nw -Winline" # OK to ignore 'inline'
7583 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7584 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7585 # signed overflow has undefined behavior
7586 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7587 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7588 nw="$nw -Wbad-function-cast" # These casts are no worse than others.
7589
7590 # Emacs doesn't care about shadowing; see
7591 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7592 nw="$nw -Wshadow"
7593
7594 # Emacs's use of alloca inhibits protecting the stack.
7595 nw="$nw -Wstack-protector"
7596
7597 # The following line should be removable at some point.
7598 nw="$nw -Wsuggest-attribute=pure"
7599
7600 # clang is unduly picky about some things.
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7602 $as_echo_n "checking whether the compiler is clang... " >&6; }
7603 if test "${emacs_cv_clang+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608
7609 #ifndef __clang__
7610 #error "not clang"
7611 #endif
7612
7613 int
7614 main ()
7615 {
7616
7617 ;
7618 return 0;
7619 }
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622 emacs_cv_clang=yes
7623 else
7624 emacs_cv_clang=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7629 $as_echo "$emacs_cv_clang" >&6; }
7630 if test $emacs_cv_clang = yes; then
7631 nw="$nw -Wcast-align"
7632 fi
7633
7634
7635
7636 if test -n "$GCC"; then
7637
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7639 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7640 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643
7644 gl_save_CFLAGS="$CFLAGS"
7645 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648
7649 int
7650 main ()
7651 {
7652
7653 ;
7654 return 0;
7655 }
7656 _ACEOF
7657 if ac_fn_c_try_compile "$LINENO"; then :
7658 gl_cv_cc_nomfi_supported=yes
7659 else
7660 gl_cv_cc_nomfi_supported=no
7661 fi
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 CFLAGS="$gl_save_CFLAGS"
7664 fi
7665
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7667 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7668
7669 if test "$gl_cv_cc_nomfi_supported" = yes; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7671 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7672 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675
7676 gl_save_CFLAGS="$CFLAGS"
7677 CFLAGS="$CFLAGS -W -Werror"
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 void f (void)
7681 {
7682 typedef struct { int a; int b; } s_t;
7683 s_t s1 = { 0, };
7684 }
7685
7686 int
7687 main ()
7688 {
7689
7690 ;
7691 return 0;
7692 }
7693 _ACEOF
7694 if ac_fn_c_try_compile "$LINENO"; then :
7695 gl_cv_cc_nomfi_needed=no
7696 else
7697 gl_cv_cc_nomfi_needed=yes
7698 fi
7699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700 CFLAGS="$gl_save_CFLAGS"
7701
7702 fi
7703
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7705 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7706 fi
7707
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7709 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7710 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713
7714 gl_save_CFLAGS="$CFLAGS"
7715 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718
7719 int
7720 main ()
7721 {
7722
7723 ;
7724 return 0;
7725 }
7726 _ACEOF
7727 if ac_fn_c_try_compile "$LINENO"; then :
7728 gl_cv_cc_uninitialized_supported=yes
7729 else
7730 gl_cv_cc_uninitialized_supported=no
7731 fi
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 CFLAGS="$gl_save_CFLAGS"
7734 fi
7735
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7737 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7738
7739 fi
7740
7741 # List all gcc warning categories.
7742 gl_manywarn_set=
7743 for gl_manywarn_item in \
7744 -W \
7745 -Wabi \
7746 -Waddress \
7747 -Waggressive-loop-optimizations \
7748 -Wall \
7749 -Warray-bounds \
7750 -Wattributes \
7751 -Wbad-function-cast \
7752 -Wbuiltin-macro-redefined \
7753 -Wcast-align \
7754 -Wchar-subscripts \
7755 -Wclobbered \
7756 -Wcomment \
7757 -Wcomments \
7758 -Wcoverage-mismatch \
7759 -Wcpp \
7760 -Wdeprecated \
7761 -Wdeprecated-declarations \
7762 -Wdisabled-optimization \
7763 -Wdiv-by-zero \
7764 -Wdouble-promotion \
7765 -Wempty-body \
7766 -Wendif-labels \
7767 -Wenum-compare \
7768 -Wextra \
7769 -Wformat-contains-nul \
7770 -Wformat-extra-args \
7771 -Wformat-nonliteral \
7772 -Wformat-security \
7773 -Wformat-y2k \
7774 -Wformat-zero-length \
7775 -Wfree-nonheap-object \
7776 -Wignored-qualifiers \
7777 -Wimplicit \
7778 -Wimplicit-function-declaration \
7779 -Wimplicit-int \
7780 -Winit-self \
7781 -Winline \
7782 -Wint-to-pointer-cast \
7783 -Winvalid-memory-model \
7784 -Winvalid-pch \
7785 -Wjump-misses-init \
7786 -Wlogical-op \
7787 -Wmain \
7788 -Wmaybe-uninitialized \
7789 -Wmissing-braces \
7790 -Wmissing-declarations \
7791 -Wmissing-field-initializers \
7792 -Wmissing-include-dirs \
7793 -Wmissing-parameter-type \
7794 -Wmissing-prototypes \
7795 -Wmudflap \
7796 -Wmultichar \
7797 -Wnarrowing \
7798 -Wnested-externs \
7799 -Wnonnull \
7800 -Wnormalized=nfc \
7801 -Wold-style-declaration \
7802 -Wold-style-definition \
7803 -Woverflow \
7804 -Woverlength-strings \
7805 -Woverride-init \
7806 -Wpacked \
7807 -Wpacked-bitfield-compat \
7808 -Wparentheses \
7809 -Wpointer-arith \
7810 -Wpointer-sign \
7811 -Wpointer-to-int-cast \
7812 -Wpragmas \
7813 -Wreturn-local-addr \
7814 -Wreturn-type \
7815 -Wsequence-point \
7816 -Wshadow \
7817 -Wsizeof-pointer-memaccess \
7818 -Wstack-protector \
7819 -Wstrict-aliasing \
7820 -Wstrict-overflow \
7821 -Wstrict-prototypes \
7822 -Wsuggest-attribute=const \
7823 -Wsuggest-attribute=format \
7824 -Wsuggest-attribute=noreturn \
7825 -Wsuggest-attribute=pure \
7826 -Wswitch \
7827 -Wswitch-default \
7828 -Wsync-nand \
7829 -Wsystem-headers \
7830 -Wtrampolines \
7831 -Wtrigraphs \
7832 -Wtype-limits \
7833 -Wuninitialized \
7834 -Wunknown-pragmas \
7835 -Wunsafe-loop-optimizations \
7836 -Wunused \
7837 -Wunused-but-set-parameter \
7838 -Wunused-but-set-variable \
7839 -Wunused-function \
7840 -Wunused-label \
7841 -Wunused-local-typedefs \
7842 -Wunused-macros \
7843 -Wunused-parameter \
7844 -Wunused-result \
7845 -Wunused-value \
7846 -Wunused-variable \
7847 -Wvarargs \
7848 -Wvariadic-macros \
7849 -Wvector-operation-performance \
7850 -Wvla \
7851 -Wvolatile-register-var \
7852 -Wwrite-strings \
7853 \
7854 ; do
7855 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7856 done
7857
7858 # Disable specific options as needed.
7859 if test "$gl_cv_cc_nomfi_needed" = yes; then
7860 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7861 fi
7862
7863 if test "$gl_cv_cc_uninitialized_supported" = no; then
7864 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7865 fi
7866
7867 ws=$gl_manywarn_set
7868
7869
7870 gl_warn_set=
7871 set x $ws; shift
7872 for gl_warn_item
7873 do
7874 case " $nw " in
7875 *" $gl_warn_item "*)
7876 ;;
7877 *)
7878 gl_warn_set="$gl_warn_set $gl_warn_item"
7879 ;;
7880 esac
7881 done
7882 ws=$gl_warn_set
7883
7884 for w in $ws; do
7885
7886 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7888 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7889 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892
7893 gl_save_compiler_FLAGS="$CFLAGS"
7894 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $w"
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 eval "$as_gl_Warn=yes"
7908 else
7909 eval "$as_gl_Warn=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 eval ac_res=\$$as_gl_Warn
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7917 $as_echo "$ac_res" >&6; }
7918 eval as_val=\$$as_gl_Warn
7919 if test "x$as_val" = x""yes; then :
7920 as_fn_append WARN_CFLAGS " $w"
7921 fi
7922
7923
7924 done
7925
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7927 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7928 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931
7932 gl_save_compiler_FLAGS="$CFLAGS"
7933 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-missing-field-initializers"
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7936
7937 int
7938 main ()
7939 {
7940
7941 ;
7942 return 0;
7943 }
7944 _ACEOF
7945 if ac_fn_c_try_compile "$LINENO"; then :
7946 gl_cv_warn_c__Wno_missing_field_initializers=yes
7947 else
7948 gl_cv_warn_c__Wno_missing_field_initializers=no
7949 fi
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 CFLAGS="$gl_save_compiler_FLAGS"
7952
7953 fi
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7955 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7956 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7957 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7958 fi
7959
7960 # We need this one
7961
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7963 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7964 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967
7968 gl_save_compiler_FLAGS="$CFLAGS"
7969 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-sign-compare"
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7972
7973 int
7974 main ()
7975 {
7976
7977 ;
7978 return 0;
7979 }
7980 _ACEOF
7981 if ac_fn_c_try_compile "$LINENO"; then :
7982 gl_cv_warn_c__Wno_sign_compare=yes
7983 else
7984 gl_cv_warn_c__Wno_sign_compare=no
7985 fi
7986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 CFLAGS="$gl_save_compiler_FLAGS"
7988
7989 fi
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7991 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7992 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7993 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7994 fi
7995
7996 # Too many warnings for now
7997
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7999 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8000 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003
8004 gl_save_compiler_FLAGS="$CFLAGS"
8005 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-type-limits"
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008
8009 int
8010 main ()
8011 {
8012
8013 ;
8014 return 0;
8015 }
8016 _ACEOF
8017 if ac_fn_c_try_compile "$LINENO"; then :
8018 gl_cv_warn_c__Wno_type_limits=yes
8019 else
8020 gl_cv_warn_c__Wno_type_limits=no
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8023 CFLAGS="$gl_save_compiler_FLAGS"
8024
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8027 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8028 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
8029 as_fn_append WARN_CFLAGS " -Wno-type-limits"
8030 fi
8031
8032 # Too many warnings for now
8033
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8035 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8036 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039
8040 gl_save_compiler_FLAGS="$CFLAGS"
8041 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-switch"
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044
8045 int
8046 main ()
8047 {
8048
8049 ;
8050 return 0;
8051 }
8052 _ACEOF
8053 if ac_fn_c_try_compile "$LINENO"; then :
8054 gl_cv_warn_c__Wno_switch=yes
8055 else
8056 gl_cv_warn_c__Wno_switch=no
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 CFLAGS="$gl_save_compiler_FLAGS"
8060
8061 fi
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8063 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8064 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
8065 as_fn_append WARN_CFLAGS " -Wno-switch"
8066 fi
8067
8068 # Too many warnings for now
8069
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8071 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8072 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075
8076 gl_save_compiler_FLAGS="$CFLAGS"
8077 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-unused-parameter"
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080
8081 int
8082 main ()
8083 {
8084
8085 ;
8086 return 0;
8087 }
8088 _ACEOF
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090 gl_cv_warn_c__Wno_unused_parameter=yes
8091 else
8092 gl_cv_warn_c__Wno_unused_parameter=no
8093 fi
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 CFLAGS="$gl_save_compiler_FLAGS"
8096
8097 fi
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8099 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8100 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
8101 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
8102 fi
8103
8104 # Too many warnings for now
8105
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8107 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8108 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111
8112 gl_save_compiler_FLAGS="$CFLAGS"
8113 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-format-nonliteral"
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116
8117 int
8118 main ()
8119 {
8120
8121 ;
8122 return 0;
8123 }
8124 _ACEOF
8125 if ac_fn_c_try_compile "$LINENO"; then :
8126 gl_cv_warn_c__Wno_format_nonliteral=yes
8127 else
8128 gl_cv_warn_c__Wno_format_nonliteral=no
8129 fi
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 CFLAGS="$gl_save_compiler_FLAGS"
8132
8133 fi
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8135 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8136 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8137 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8138 fi
8139
8140
8141
8142 # In spite of excluding -Wlogical-op above, it is enabled, as of
8143 # gcc 4.5.0 20090517.
8144
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8146 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8147 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150
8151 gl_save_compiler_FLAGS="$CFLAGS"
8152 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-logical-op"
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8155
8156 int
8157 main ()
8158 {
8159
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 if ac_fn_c_try_compile "$LINENO"; then :
8165 gl_cv_warn_c__Wno_logical_op=yes
8166 else
8167 gl_cv_warn_c__Wno_logical_op=no
8168 fi
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 CFLAGS="$gl_save_compiler_FLAGS"
8171
8172 fi
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8174 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8175 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8176 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8177 fi
8178
8179
8180
8181 # More things that clang is unduly picky about.
8182 if test $emacs_cv_clang = yes; then
8183
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8185 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8186 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189
8190 gl_save_compiler_FLAGS="$CFLAGS"
8191 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-format-extra-args"
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194
8195 int
8196 main ()
8197 {
8198
8199 ;
8200 return 0;
8201 }
8202 _ACEOF
8203 if ac_fn_c_try_compile "$LINENO"; then :
8204 gl_cv_warn_c__Wno_format_extra_args=yes
8205 else
8206 gl_cv_warn_c__Wno_format_extra_args=no
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 CFLAGS="$gl_save_compiler_FLAGS"
8210
8211 fi
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8213 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8214 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x""yes; then :
8215 as_fn_append WARN_CFLAGS " -Wno-format-extra-args"
8216 fi
8217
8218
8219
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8221 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8222 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225
8226 gl_save_compiler_FLAGS="$CFLAGS"
8227 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-tautological-constant-out-of-range-compare"
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230
8231 int
8232 main ()
8233 {
8234
8235 ;
8236 return 0;
8237 }
8238 _ACEOF
8239 if ac_fn_c_try_compile "$LINENO"; then :
8240 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
8241 else
8242 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 CFLAGS="$gl_save_compiler_FLAGS"
8246
8247 fi
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8249 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8250 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
8251 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
8252 fi
8253
8254
8255
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8257 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8258 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261
8262 gl_save_compiler_FLAGS="$CFLAGS"
8263 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-unused-command-line-argument"
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266
8267 int
8268 main ()
8269 {
8270
8271 ;
8272 return 0;
8273 }
8274 _ACEOF
8275 if ac_fn_c_try_compile "$LINENO"; then :
8276 gl_cv_warn_c__Wno_unused_command_line_argument=yes
8277 else
8278 gl_cv_warn_c__Wno_unused_command_line_argument=no
8279 fi
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281 CFLAGS="$gl_save_compiler_FLAGS"
8282
8283 fi
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8285 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8286 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x""yes; then :
8287 as_fn_append WARN_CFLAGS " -Wno-unused-command-line-argument"
8288 fi
8289
8290
8291
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8293 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8294 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297
8298 gl_save_compiler_FLAGS="$CFLAGS"
8299 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-unused-value"
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302
8303 int
8304 main ()
8305 {
8306
8307 ;
8308 return 0;
8309 }
8310 _ACEOF
8311 if ac_fn_c_try_compile "$LINENO"; then :
8312 gl_cv_warn_c__Wno_unused_value=yes
8313 else
8314 gl_cv_warn_c__Wno_unused_value=no
8315 fi
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 CFLAGS="$gl_save_compiler_FLAGS"
8318
8319 fi
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8321 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8322 if test "x$gl_cv_warn_c__Wno_unused_value" = x""yes; then :
8323 as_fn_append WARN_CFLAGS " -Wno-unused-value"
8324 fi
8325
8326
8327 fi
8328
8329
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8331 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8332 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335
8336 gl_save_compiler_FLAGS="$CFLAGS"
8337 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340
8341 int
8342 main ()
8343 {
8344
8345 ;
8346 return 0;
8347 }
8348 _ACEOF
8349 if ac_fn_c_try_compile "$LINENO"; then :
8350 gl_cv_warn_c__fdiagnostics_show_option=yes
8351 else
8352 gl_cv_warn_c__fdiagnostics_show_option=no
8353 fi
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8355 CFLAGS="$gl_save_compiler_FLAGS"
8356
8357 fi
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8359 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8360 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
8361 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
8362 fi
8363
8364
8365
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8367 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8368 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371
8372 gl_save_compiler_FLAGS="$CFLAGS"
8373 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -funit-at-a-time"
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376
8377 int
8378 main ()
8379 {
8380
8381 ;
8382 return 0;
8383 }
8384 _ACEOF
8385 if ac_fn_c_try_compile "$LINENO"; then :
8386 gl_cv_warn_c__funit_at_a_time=yes
8387 else
8388 gl_cv_warn_c__funit_at_a_time=no
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 CFLAGS="$gl_save_compiler_FLAGS"
8392
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8395 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8396 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8397 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8398 fi
8399
8400
8401
8402
8403 $as_echo "#define lint 1" >>confdefs.h
8404
8405
8406
8407 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8408
8409
8410 # We use a slightly smaller set of warning options for lib/.
8411 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8412 nw=
8413 nw="$nw -Wunused-macros"
8414
8415
8416 gl_warn_set=
8417 set x $WARN_CFLAGS; shift
8418 for gl_warn_item
8419 do
8420 case " $nw " in
8421 *" $gl_warn_item "*)
8422 ;;
8423 *)
8424 gl_warn_set="$gl_warn_set $gl_warn_item"
8425 ;;
8426 esac
8427 done
8428 GNULIB_WARN_CFLAGS=$gl_warn_set
8429
8430
8431 fi
8432
8433
8434
8435
8436
8437
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8439 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8440 rm -f conf$$ conf$$.file
8441
8442 LN_S_FILEONLY='cp -p'
8443
8444 if (echo >conf$$.file) 2>/dev/null; then
8445 if ln -s conf$$.file conf$$ 2>/dev/null; then
8446 LN_S_FILEONLY='ln -s'
8447 elif ln conf$$.file conf$$ 2>/dev/null; then
8448 LN_S_FILEONLY=ln
8449 fi
8450 fi
8451
8452 rm -f conf$$ conf$$.file
8453
8454 if test "$LN_S_FILEONLY" = "ln -s"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8456 $as_echo "yes" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8459 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8460 fi
8461
8462
8463
8464
8465 if test "$opsys" = "mingw32"; then
8466 LN_S="ln"
8467 fi
8468
8469 # Extract the first word of "install-info", so it can be a program name with args.
8470 set dummy install-info; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 case $INSTALL_INFO in
8477 [\\/]* | ?:[\\/]*)
8478 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8479 ;;
8480 *)
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8483 do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8488 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492 done
8493 done
8494 IFS=$as_save_IFS
8495
8496 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8497 ;;
8498 esac
8499 fi
8500 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8501 if test -n "$INSTALL_INFO"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8503 $as_echo "$INSTALL_INFO" >&6; }
8504 else
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 $as_echo "no" >&6; }
8507 fi
8508
8509
8510 # Extract the first word of "gzip", so it can be a program name with args.
8511 set dummy gzip; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 case $GZIP_PROG in
8518 [\\/]* | ?:[\\/]*)
8519 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8520 ;;
8521 *)
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533 done
8534 done
8535 IFS=$as_save_IFS
8536
8537 ;;
8538 esac
8539 fi
8540 GZIP_PROG=$ac_cv_path_GZIP_PROG
8541 if test -n "$GZIP_PROG"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8543 $as_echo "$GZIP_PROG" >&6; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8547 fi
8548
8549
8550
8551 if test $opsys = gnu-linux; then
8552 # Extract the first word of "paxctl", so it can be a program name with args.
8553 set dummy paxctl; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 case $PAXCTL in
8560 [\\/]* | ?:[\\/]*)
8561 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8562 ;;
8563 *)
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8566 do
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 break 2
8574 fi
8575 done
8576 done
8577 IFS=$as_save_IFS
8578
8579 ;;
8580 esac
8581 fi
8582 PAXCTL=$ac_cv_path_PAXCTL
8583 if test -n "$PAXCTL"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8585 $as_echo "$PAXCTL" >&6; }
8586 else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8589 fi
8590
8591
8592 if test "X$PAXCTL" != X; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8594 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597
8598 int
8599 main ()
8600 {
8601
8602 ;
8603 return 0;
8604 }
8605 _ACEOF
8606 if ac_fn_c_try_link "$LINENO"; then :
8607 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8608 $as_echo "yes" >&6; }
8609 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }; PAXCTL=""; fi
8611 fi
8612 rm -f core conftest.err conftest.$ac_objext \
8613 conftest$ac_exeext conftest.$ac_ext
8614 fi
8615 fi
8616
8617 ## Need makeinfo >= 4.7 (?) to build the manuals.
8618 # Extract the first word of "makeinfo", so it can be a program name with args.
8619 set dummy makeinfo; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8625 case $MAKEINFO in
8626 [\\/]* | ?:[\\/]*)
8627 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8628 ;;
8629 *)
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8640 fi
8641 done
8642 done
8643 IFS=$as_save_IFS
8644
8645 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8646 ;;
8647 esac
8648 fi
8649 MAKEINFO=$ac_cv_path_MAKEINFO
8650 if test -n "$MAKEINFO"; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8652 $as_echo "$MAKEINFO" >&6; }
8653 else
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 $as_echo "no" >&6; }
8656 fi
8657
8658
8659 if test "$MAKEINFO" != "no"; then
8660 case `
8661 $MAKEINFO --version 2> /dev/null |
8662 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8663 ` in
8664 '') MAKEINFO=no;;
8665 esac
8666 fi
8667
8668 ## Makeinfo is unusual. For a released Emacs, the manuals are
8669 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8670 ## therefore in the category of "special tools" not normally required, which
8671 ## configure does not have to check for (eg autoconf itself).
8672 ## In a Bazaar checkout on the other hand, the manuals are not included.
8673 ## So makeinfo is a requirement to build from Bazaar, and configure
8674 ## should test for it as it does for any other build requirement.
8675 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8676 ## with pre-built manuals, from a Bazaar checkout.
8677 HAVE_MAKEINFO=yes
8678
8679 if test "$MAKEINFO" = "no"; then
8680 MAKEINFO=makeinfo
8681 if test "x${with_makeinfo}" = "xno"; then
8682 HAVE_MAKEINFO=no
8683 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8684 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8685 source tree does not seem to have pre-built manuals in the \`info' directory.
8686 Either install a suitable version of makeinfo, or re-run configure
8687 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8688 fi
8689 fi
8690
8691
8692 INFO_EXT=.info
8693 INFO_OPTS=--no-split
8694
8695
8696
8697
8698 if test x$GCC = xyes; then
8699 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8700 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8701 else
8702 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8703 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8704 fi
8705
8706
8707 late_LDFLAGS=$LDFLAGS
8708 if test x$GCC = xyes; then
8709 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8710 else
8711 LDFLAGS="$LDFLAGS -znocombreloc"
8712 fi
8713
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8715 $as_echo_n "checking for -znocombreloc... " >&6; }
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718
8719 int
8720 main ()
8721 {
8722
8723 ;
8724 return 0;
8725 }
8726 _ACEOF
8727 if ac_fn_c_try_link "$LINENO"; then :
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8729 $as_echo "yes" >&6; }
8730 else
8731 LDFLAGS=$late_LDFLAGS
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 $as_echo "no" >&6; }
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8737
8738
8739 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8740 case "$opsys" in
8741 your-opsys-here) CANNOT_DUMP=yes ;;
8742 esac
8743
8744 test "$CANNOT_DUMP" = "yes" && \
8745
8746 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8747
8748
8749
8750
8751
8752 UNEXEC_OBJ=unexelf.o
8753 case "$opsys" in
8754 # MSDOS uses unexcoff.o
8755 aix4-2)
8756 UNEXEC_OBJ=unexaix.o
8757 ;;
8758 cygwin)
8759 UNEXEC_OBJ=unexcw.o
8760 ;;
8761 darwin)
8762 UNEXEC_OBJ=unexmacosx.o
8763 ;;
8764 hpux10-20 | hpux11)
8765 UNEXEC_OBJ=unexhp9k800.o
8766 ;;
8767 mingw32)
8768 UNEXEC_OBJ=unexw32.o
8769 ;;
8770 sol2-10)
8771 # Use the Solaris dldump() function, called from unexsol.c, to dump
8772 # emacs, instead of the generic ELF dump code found in unexelf.c.
8773 # The resulting binary has a complete symbol table, and is better
8774 # for debugging and other observability tools (debuggers, pstack, etc).
8775 #
8776 # If you encounter a problem using dldump(), please consider sending
8777 # a message to the OpenSolaris tools-linking mailing list:
8778 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8779 #
8780 # It is likely that dldump() works with older Solaris too, but this has
8781 # not been tested, so for now this change is for Solaris 10 or newer.
8782 UNEXEC_OBJ=unexsol.o
8783 ;;
8784 esac
8785
8786 LD_SWITCH_SYSTEM=
8787 case "$opsys" in
8788 freebsd|dragonfly)
8789 ## Let `ld' find image libs and similar things in /usr/local/lib.
8790 ## The system compiler, GCC, has apparently been modified to not
8791 ## look there, contrary to what a stock GCC would do.
8792 ### It's not our place to do this. See bug#10313#17.
8793 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8794 :
8795 ;;
8796
8797 gnu-linux)
8798 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8799 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8800 ;;
8801
8802 netbsd)
8803 ### It's not our place to do this. See bug#10313#17.
8804 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8805 :
8806 ;;
8807
8808 openbsd)
8809 ## Han Boetes <han@boetes.org> says this is necessary,
8810 ## otherwise Emacs dumps core on elf systems.
8811 LD_SWITCH_SYSTEM="-Z"
8812 ;;
8813 esac
8814
8815
8816 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8817
8818 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8819 ## which has not been defined yet. When this was handled with cpp,
8820 ## it was expanded to null when configure sourced the s/*.h file.
8821 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8822 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8823 ## (or somesuch), but because it is supposed to go at the _front_
8824 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8825 ## Compare with the gnu-linux case below, which added to the end
8826 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8827 ## LD_SWITCH_SYSTEM_TEMACS.
8828 case "$opsys" in
8829 netbsd|openbsd)
8830 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8831 esac
8832
8833
8834 C_SWITCH_MACHINE=
8835 case $canonical in
8836 alpha*)
8837 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8838 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8839
8840 fi
8841
8842 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8843 ## With ELF, make sure that all common symbols get allocated to in the
8844 ## data section. Otherwise, the dump of temacs may miss variables in
8845 ## the shared library that have been initialized. For example, with
8846 ## GNU libc, __malloc_initialized would normally be resolved to the
8847 ## shared library's .bss section, which is fatal.
8848 if test "x$GCC" = "xyes"; then
8849 C_SWITCH_MACHINE="-fno-common"
8850 else
8851 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8852 fi
8853 else
8854 UNEXEC_OBJ=unexalpha.o
8855 fi
8856 ;;
8857 esac
8858
8859
8860
8861
8862 C_SWITCH_SYSTEM=
8863 ## Some programs in src produce warnings saying certain subprograms
8864 ## are too complex and need a MAXMEM value greater than 2000 for
8865 ## additional optimization. --nils@exp-math.uni-essen.de
8866 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8867 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8868 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM="-mtune=pentium4"
8869 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8870 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8871
8872
8873
8874 LIBS_SYSTEM=
8875 case "$opsys" in
8876 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8877 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8878
8879 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
8880
8881 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8882
8883 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8884
8885 ## Motif needs -lgen.
8886 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8887 esac
8888
8889
8890
8891 ### Make sure subsequent tests use flags consistent with the build flags.
8892
8893 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8894 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8895 else
8896 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8897 fi
8898
8899 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8900
8901 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8902
8903
8904
8905 LIB_MATH=-lm
8906 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8907
8908 case $opsys in
8909 cygwin )
8910 LIB_MATH=
8911 ;;
8912 darwin )
8913 ## Adding -lm confuses the dynamic linker, so omit it.
8914 LIB_MATH=
8915 ;;
8916 freebsd | dragonfly )
8917 SYSTEM_TYPE=berkeley-unix
8918 ;;
8919 gnu-linux | gnu-kfreebsd )
8920 ;;
8921 hpux10-20 | hpux11 )
8922 ;;
8923 mingw32 )
8924 LIB_MATH=
8925 SYSTEM_TYPE=windows-nt
8926 ;;
8927 netbsd | openbsd )
8928 SYSTEM_TYPE=berkeley-unix
8929 ;;
8930
8931 sol2* | unixware )
8932 SYSTEM_TYPE=usg-unix-v
8933 ;;
8934
8935 esac
8936
8937
8938
8939 cat >>confdefs.h <<_ACEOF
8940 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8941 _ACEOF
8942
8943
8944
8945 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8946 pre_PKG_CONFIG_LIBS=$LIBS
8947
8948 # Extract the first word of "pkg-config", so it can be a program name with args.
8949 set dummy pkg-config; ac_word=$2
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8951 $as_echo_n "checking for $ac_word... " >&6; }
8952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 case $PKG_CONFIG in
8956 [\\/]* | ?:[\\/]*)
8957 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8958 ;;
8959 *)
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in $PATH
8962 do
8963 IFS=$as_save_IFS
8964 test -z "$as_dir" && as_dir=.
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8967 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8969 break 2
8970 fi
8971 done
8972 done
8973 IFS=$as_save_IFS
8974
8975 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8976 ;;
8977 esac
8978 fi
8979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8980 if test -n "$PKG_CONFIG"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8982 $as_echo "$PKG_CONFIG" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8986 fi
8987
8988
8989
8990
8991
8992 if test "${with_sound}" != "no"; then
8993 # Sound support for GNU/Linux, the free BSDs, and MinGW.
8994 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h mmsystem.h
8995 do :
8996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8997 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8998 #ifdef __MINGW32__
8999 #define WIN32_LEAN_AND_MEAN
9000 #include <windows.h>
9001 #endif
9002
9003 "
9004 eval as_val=\$$as_ac_Header
9005 if test "x$as_val" = x""yes; then :
9006 cat >>confdefs.h <<_ACEOF
9007 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9008 _ACEOF
9009 have_sound_header=yes
9010 fi
9011
9012 done
9013
9014 # Emulation library used on NetBSD.
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9016 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9017 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 ac_check_lib_save_LIBS=$LIBS
9021 LIBS="-lossaudio $LIBS"
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9024
9025 /* Override any GCC internal prototype to avoid an error.
9026 Use char because int might match the return type of a GCC
9027 builtin and then its argument prototype would still apply. */
9028 #ifdef __cplusplus
9029 extern "C"
9030 #endif
9031 char _oss_ioctl ();
9032 int
9033 main ()
9034 {
9035 return _oss_ioctl ();
9036 ;
9037 return 0;
9038 }
9039 _ACEOF
9040 if ac_fn_c_try_link "$LINENO"; then :
9041 ac_cv_lib_ossaudio__oss_ioctl=yes
9042 else
9043 ac_cv_lib_ossaudio__oss_ioctl=no
9044 fi
9045 rm -f core conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
9047 LIBS=$ac_check_lib_save_LIBS
9048 fi
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9050 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9051 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
9052 LIBSOUND=-lossaudio
9053 else
9054 LIBSOUND=
9055 fi
9056
9057
9058
9059 ALSA_REQUIRED=1.0.0
9060 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
9061
9062 succeeded=no
9063
9064 if test "$PKG_CONFIG" = "no" ; then
9065 HAVE_ALSA=no
9066 else
9067 PKG_CONFIG_MIN_VERSION=0.9.0
9068 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9070 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9071
9072 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9073 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9074 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9075 edit_cflags="
9076 s,///*,/,g
9077 s/^/ /
9078 s/ -I/ $isystem/g
9079 s/^ //
9080 "
9081 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9082 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9084 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9085 succeeded=yes
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9089 ALSA_CFLAGS=""
9090 ALSA_LIBS=""
9091 ## If we have a custom action on failure, don't print errors, but
9092 ## do set a variable so people can do so. Do it in a subshell
9093 ## to capture any diagnostics in invoking pkg-config.
9094 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9095
9096 fi
9097
9098
9099
9100 else
9101 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9102 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9103 fi
9104 fi
9105
9106 if test $succeeded = yes; then
9107 HAVE_ALSA=yes
9108 else
9109 HAVE_ALSA=no
9110 fi
9111
9112 if test $HAVE_ALSA = yes; then
9113 SAVE_CFLAGS="$CFLAGS"
9114 SAVE_LIBS="$LIBS"
9115 CFLAGS="$ALSA_CFLAGS $CFLAGS"
9116 LIBS="$ALSA_LIBS $LIBS"
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 #include <asoundlib.h>
9120 int
9121 main ()
9122 {
9123 snd_lib_error_set_handler (0);
9124 ;
9125 return 0;
9126 }
9127 _ACEOF
9128 if ac_fn_c_try_compile "$LINENO"; then :
9129 emacs_alsa_normal=yes
9130 else
9131 emacs_alsa_normal=no
9132 fi
9133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 if test "$emacs_alsa_normal" != yes; then
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9137 #include <alsa/asoundlib.h>
9138 int
9139 main ()
9140 {
9141 snd_lib_error_set_handler (0);
9142 ;
9143 return 0;
9144 }
9145 _ACEOF
9146 if ac_fn_c_try_compile "$LINENO"; then :
9147 emacs_alsa_subdir=yes
9148 else
9149 emacs_alsa_subdir=no
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 if test "$emacs_alsa_subdir" != yes; then
9153 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9154 fi
9155 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9156 fi
9157
9158 CFLAGS="$SAVE_CFLAGS"
9159 LIBS="$SAVE_LIBS"
9160 LIBSOUND="$LIBSOUND $ALSA_LIBS"
9161 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
9162
9163 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9164
9165 fi
9166
9167 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9168 case "$opsys" in
9169 gnu-linux|freebsd|netbsd|mingw32)
9170
9171 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9172
9173 ;;
9174 esac
9175 fi
9176
9177
9178 fi
9179
9180
9181
9182
9183 for ac_header in $ac_header_list
9184 do :
9185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9186 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9187 "
9188 eval as_val=\$$as_ac_Header
9189 if test "x$as_val" = x""yes; then :
9190 cat >>confdefs.h <<_ACEOF
9191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9192 _ACEOF
9193
9194 fi
9195
9196 done
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9219 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 #include <sys/personality.h>
9223 int
9224 main ()
9225 {
9226 personality (PER_LINUX32)
9227 ;
9228 return 0;
9229 }
9230 _ACEOF
9231 if ac_fn_c_try_compile "$LINENO"; then :
9232 emacs_cv_personality_linux32=yes
9233 else
9234 emacs_cv_personality_linux32=no
9235 fi
9236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9238 $as_echo "$emacs_cv_personality_linux32" >&6; }
9239
9240 if test $emacs_cv_personality_linux32 = yes; then
9241
9242 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9243
9244 fi
9245
9246 for ac_header in term.h
9247 do :
9248 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9249 if test "x$ac_cv_header_term_h" = x""yes; then :
9250 cat >>confdefs.h <<_ACEOF
9251 #define HAVE_TERM_H 1
9252 _ACEOF
9253
9254 fi
9255
9256 done
9257
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9259 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9260 if test "${ac_cv_header_time+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 #include <sys/types.h>
9266 #include <sys/time.h>
9267 #include <time.h>
9268
9269 int
9270 main ()
9271 {
9272 if ((struct tm *) 0)
9273 return 0;
9274 ;
9275 return 0;
9276 }
9277 _ACEOF
9278 if ac_fn_c_try_compile "$LINENO"; then :
9279 ac_cv_header_time=yes
9280 else
9281 ac_cv_header_time=no
9282 fi
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9286 $as_echo "$ac_cv_header_time" >&6; }
9287 if test $ac_cv_header_time = yes; then
9288
9289 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9290
9291 fi
9292
9293 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9294
9295 "
9296 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9297 ac_have_decl=1
9298 else
9299 ac_have_decl=0
9300 fi
9301
9302 cat >>confdefs.h <<_ACEOF
9303 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9304 _ACEOF
9305
9306 if test $ac_cv_have_decl_sys_siglist != yes; then
9307 # For Tru64, at least:
9308 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9309
9310 "
9311 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9312 ac_have_decl=1
9313 else
9314 ac_have_decl=0
9315 fi
9316
9317 cat >>confdefs.h <<_ACEOF
9318 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9319 _ACEOF
9320
9321 if test $ac_cv_have_decl___sys_siglist = yes; then
9322
9323 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9324
9325 fi
9326 fi
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9328 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9329 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9334 #include <sys/types.h>
9335 #include <sys/wait.h>
9336 #ifndef WEXITSTATUS
9337 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9338 #endif
9339 #ifndef WIFEXITED
9340 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9341 #endif
9342
9343 int
9344 main ()
9345 {
9346 int s;
9347 wait (&s);
9348 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9349 ;
9350 return 0;
9351 }
9352 _ACEOF
9353 if ac_fn_c_try_compile "$LINENO"; then :
9354 ac_cv_header_sys_wait_h=yes
9355 else
9356 ac_cv_header_sys_wait_h=no
9357 fi
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359 fi
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9361 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9362 if test $ac_cv_header_sys_wait_h = yes; then
9363
9364 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9365
9366 fi
9367
9368
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9370 $as_echo_n "checking for speed_t... " >&6; }
9371 if test "${emacs_cv_speed_t+set}" = set; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9376 #include <termios.h>
9377 int
9378 main ()
9379 {
9380 speed_t x = 1;
9381 ;
9382 return 0;
9383 }
9384 _ACEOF
9385 if ac_fn_c_try_compile "$LINENO"; then :
9386 emacs_cv_speed_t=yes
9387 else
9388 emacs_cv_speed_t=no
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 fi
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9393 $as_echo "$emacs_cv_speed_t" >&6; }
9394 if test $emacs_cv_speed_t = yes; then
9395
9396 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9397
9398 fi
9399
9400
9401
9402
9403 for ac_header in net/if.h
9404 do :
9405 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9406 #if HAVE_SYS_SOCKET_H
9407 #include <sys/socket.h>
9408 #endif
9409 "
9410 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9411 cat >>confdefs.h <<_ACEOF
9412 #define HAVE_NET_IF_H 1
9413 _ACEOF
9414
9415 fi
9416
9417 done
9418
9419 for ac_header in ifaddrs.h
9420 do :
9421 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9422 #if HAVE_SYS_SOCKET_H
9423 #include <sys/socket.h>
9424 #endif
9425 "
9426 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9427 cat >>confdefs.h <<_ACEOF
9428 #define HAVE_IFADDRS_H 1
9429 _ACEOF
9430
9431 fi
9432
9433 done
9434
9435 for ac_header in net/if_dl.h
9436 do :
9437 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9438 #if HAVE_SYS_SOCKET_H
9439 #include <sys/socket.h>
9440 #endif
9441 "
9442 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9443 cat >>confdefs.h <<_ACEOF
9444 #define HAVE_NET_IF_DL_H 1
9445 _ACEOF
9446
9447 fi
9448
9449 done
9450
9451
9452 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9453 #if HAVE_SYS_SOCKET_H
9454 #include <sys/socket.h>
9455 #endif
9456 #if HAVE_NET_IF_H
9457 #include <net/if.h>
9458 #endif
9459 "
9460 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9461
9462 cat >>confdefs.h <<_ACEOF
9463 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9464 _ACEOF
9465
9466
9467 fi
9468 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9469 #if HAVE_SYS_SOCKET_H
9470 #include <sys/socket.h>
9471 #endif
9472 #if HAVE_NET_IF_H
9473 #include <net/if.h>
9474 #endif
9475 "
9476 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9477
9478 cat >>confdefs.h <<_ACEOF
9479 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9480 _ACEOF
9481
9482
9483 fi
9484 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9485 #if HAVE_SYS_SOCKET_H
9486 #include <sys/socket.h>
9487 #endif
9488 #if HAVE_NET_IF_H
9489 #include <net/if.h>
9490 #endif
9491 "
9492 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9493
9494 cat >>confdefs.h <<_ACEOF
9495 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9496 _ACEOF
9497
9498
9499 fi
9500 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9501 #if HAVE_SYS_SOCKET_H
9502 #include <sys/socket.h>
9503 #endif
9504 #if HAVE_NET_IF_H
9505 #include <net/if.h>
9506 #endif
9507 "
9508 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9509
9510 cat >>confdefs.h <<_ACEOF
9511 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9512 _ACEOF
9513
9514
9515 fi
9516 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9517 #if HAVE_SYS_SOCKET_H
9518 #include <sys/socket.h>
9519 #endif
9520 #if HAVE_NET_IF_H
9521 #include <net/if.h>
9522 #endif
9523 "
9524 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9525
9526 cat >>confdefs.h <<_ACEOF
9527 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9528 _ACEOF
9529
9530
9531 fi
9532 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9533 #if HAVE_SYS_SOCKET_H
9534 #include <sys/socket.h>
9535 #endif
9536 #if HAVE_NET_IF_H
9537 #include <net/if.h>
9538 #endif
9539 "
9540 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9541
9542 cat >>confdefs.h <<_ACEOF
9543 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9544 _ACEOF
9545
9546
9547 fi
9548
9549
9550
9551
9552 DEPFLAGS=
9553 MKDEPDIR=":"
9554 deps_frag=deps.mk
9555 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9557 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9558 HAVE_GNU_MAKE=no
9559 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9560 if test "x$testval" != x; then
9561 HAVE_GNU_MAKE=yes
9562 else
9563 ac_enable_autodepend=no
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9566 $as_echo "$HAVE_GNU_MAKE" >&6; }
9567 if test $HAVE_GNU_MAKE = yes; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9569 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9570 SAVE_CFLAGS="$CFLAGS"
9571 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9574
9575 int
9576 main ()
9577 {
9578
9579 ;
9580 return 0;
9581 }
9582 _ACEOF
9583 if ac_fn_c_try_compile "$LINENO"; then :
9584
9585 else
9586 ac_enable_autodepend=no
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 CFLAGS="$SAVE_CFLAGS"
9590 test -f deps.d || ac_enable_autodepend=no
9591 rm -rf deps.d
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9593 $as_echo "$ac_enable_autodepend" >&6; }
9594 fi
9595 if test $ac_enable_autodepend = yes; then
9596 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9597 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9598 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9599 deps_frag=autodeps.mk
9600 fi
9601 fi
9602 deps_frag=$srcdir/src/$deps_frag
9603
9604
9605
9606
9607
9608 lisp_frag=$srcdir/src/lisp.mk
9609
9610
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9613 $as_echo_n "checking for long file names... " >&6; }
9614 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 ac_cv_sys_long_file_names=yes
9618 # Test for long file names in all the places we know might matter:
9619 # . the current directory, where building will happen
9620 # $prefix/lib where we will be installing things
9621 # $exec_prefix/lib likewise
9622 # $TMPDIR if set, where it might want to write temporary files
9623 # /tmp where it might want to write temporary files
9624 # /var/tmp likewise
9625 # /usr/tmp likewise
9626 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9627 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9628 # in the usual case where exec_prefix is '${prefix}'.
9629 case $ac_dir in #(
9630 . | /* | ?:[\\/]*) ;; #(
9631 *) continue;;
9632 esac
9633 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9634 ac_xdir=$ac_dir/cf$$
9635 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9636 ac_tf1=$ac_xdir/conftest9012345
9637 ac_tf2=$ac_xdir/conftest9012346
9638 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9639 ac_cv_sys_long_file_names=no
9640 rm -f -r "$ac_xdir" 2>/dev/null
9641 test $ac_cv_sys_long_file_names = no && break
9642 done
9643 fi
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9645 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9646 if test $ac_cv_sys_long_file_names = yes; then
9647
9648 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9649
9650 fi
9651
9652
9653 #### Choose a window system.
9654
9655 ## We leave window_system equal to none if
9656 ## we end up building without one. Any new window system should
9657 ## set window_system to an appropriate value and add objects to
9658 ## window-system-specific substs.
9659
9660 window_system=none
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9662 $as_echo_n "checking for X... " >&6; }
9663
9664
9665 # Check whether --with-x was given.
9666 if test "${with_x+set}" = set; then :
9667 withval=$with_x;
9668 fi
9669
9670 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9671 if test "x$with_x" = xno; then
9672 # The user explicitly disabled X.
9673 have_x=disabled
9674 else
9675 case $x_includes,$x_libraries in #(
9676 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9677 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9678 $as_echo_n "(cached) " >&6
9679 else
9680 # One or both of the vars are not set, and there is no cached value.
9681 ac_x_includes=no ac_x_libraries=no
9682 rm -f -r conftest.dir
9683 if mkdir conftest.dir; then
9684 cd conftest.dir
9685 cat >Imakefile <<'_ACEOF'
9686 incroot:
9687 @echo incroot='${INCROOT}'
9688 usrlibdir:
9689 @echo usrlibdir='${USRLIBDIR}'
9690 libdir:
9691 @echo libdir='${LIBDIR}'
9692 _ACEOF
9693 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9695 for ac_var in incroot usrlibdir libdir; do
9696 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9697 done
9698 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9699 for ac_extension in a so sl dylib la dll; do
9700 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9701 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9702 ac_im_usrlibdir=$ac_im_libdir; break
9703 fi
9704 done
9705 # Screen out bogus values from the imake configuration. They are
9706 # bogus both because they are the default anyway, and because
9707 # using them would break gcc on systems where it needs fixed includes.
9708 case $ac_im_incroot in
9709 /usr/include) ac_x_includes= ;;
9710 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9711 esac
9712 case $ac_im_usrlibdir in
9713 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9714 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9715 esac
9716 fi
9717 cd ..
9718 rm -f -r conftest.dir
9719 fi
9720
9721 # Standard set of common directories for X headers.
9722 # Check X11 before X11Rn because it is often a symlink to the current release.
9723 ac_x_header_dirs='
9724 /usr/X11/include
9725 /usr/X11R7/include
9726 /usr/X11R6/include
9727 /usr/X11R5/include
9728 /usr/X11R4/include
9729
9730 /usr/include/X11
9731 /usr/include/X11R7
9732 /usr/include/X11R6
9733 /usr/include/X11R5
9734 /usr/include/X11R4
9735
9736 /usr/local/X11/include
9737 /usr/local/X11R7/include
9738 /usr/local/X11R6/include
9739 /usr/local/X11R5/include
9740 /usr/local/X11R4/include
9741
9742 /usr/local/include/X11
9743 /usr/local/include/X11R7
9744 /usr/local/include/X11R6
9745 /usr/local/include/X11R5
9746 /usr/local/include/X11R4
9747
9748 /usr/X386/include
9749 /usr/x386/include
9750 /usr/XFree86/include/X11
9751
9752 /usr/include
9753 /usr/local/include
9754 /usr/unsupported/include
9755 /usr/athena/include
9756 /usr/local/x11r5/include
9757 /usr/lpp/Xamples/include
9758
9759 /usr/openwin/include
9760 /usr/openwin/share/include'
9761
9762 if test "$ac_x_includes" = no; then
9763 # Guess where to find include files, by looking for Xlib.h.
9764 # First, try using that file with no special directory specified.
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 #include <X11/Xlib.h>
9768 _ACEOF
9769 if ac_fn_c_try_cpp "$LINENO"; then :
9770 # We can compile using X headers with no special include directory.
9771 ac_x_includes=
9772 else
9773 for ac_dir in $ac_x_header_dirs; do
9774 if test -r "$ac_dir/X11/Xlib.h"; then
9775 ac_x_includes=$ac_dir
9776 break
9777 fi
9778 done
9779 fi
9780 rm -f conftest.err conftest.$ac_ext
9781 fi # $ac_x_includes = no
9782
9783 if test "$ac_x_libraries" = no; then
9784 # Check for the libraries.
9785 # See if we find them without any special options.
9786 # Don't add to $LIBS permanently.
9787 ac_save_LIBS=$LIBS
9788 LIBS="-lX11 $LIBS"
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9791 #include <X11/Xlib.h>
9792 int
9793 main ()
9794 {
9795 XrmInitialize ()
9796 ;
9797 return 0;
9798 }
9799 _ACEOF
9800 if ac_fn_c_try_link "$LINENO"; then :
9801 LIBS=$ac_save_LIBS
9802 # We can link X programs with no special library path.
9803 ac_x_libraries=
9804 else
9805 LIBS=$ac_save_LIBS
9806 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9807 do
9808 # Don't even attempt the hair of trying to link an X program!
9809 for ac_extension in a so sl dylib la dll; do
9810 if test -r "$ac_dir/libX11.$ac_extension"; then
9811 ac_x_libraries=$ac_dir
9812 break 2
9813 fi
9814 done
9815 done
9816 fi
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819 fi # $ac_x_libraries = no
9820
9821 case $ac_x_includes,$ac_x_libraries in #(
9822 no,* | *,no | *\'*)
9823 # Didn't find X, or a directory has "'" in its name.
9824 ac_cv_have_x="have_x=no";; #(
9825 *)
9826 # Record where we found X for the cache.
9827 ac_cv_have_x="have_x=yes\
9828 ac_x_includes='$ac_x_includes'\
9829 ac_x_libraries='$ac_x_libraries'"
9830 esac
9831 fi
9832 ;; #(
9833 *) have_x=yes;;
9834 esac
9835 eval "$ac_cv_have_x"
9836 fi # $with_x != no
9837
9838 if test "$have_x" != yes; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9840 $as_echo "$have_x" >&6; }
9841 no_x=yes
9842 else
9843 # If each of the values was on the command line, it overrides each guess.
9844 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9845 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9846 # Update the cache value to reflect the command line values.
9847 ac_cv_have_x="have_x=yes\
9848 ac_x_includes='$x_includes'\
9849 ac_x_libraries='$x_libraries'"
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9851 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9852 fi
9853
9854 if test "$no_x" != yes; then
9855 window_system=x11
9856 fi
9857
9858 LD_SWITCH_X_SITE_RPATH=
9859 if test "${x_libraries}" != NONE; then
9860 if test -n "${x_libraries}"; then
9861 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9862 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9863 fi
9864 x_default_search_path=""
9865 x_search_path=${x_libraries}
9866 if test -z "${x_search_path}"; then
9867 x_search_path=/usr/lib
9868 fi
9869 for x_library in `echo ${x_search_path}: | \
9870 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9871 x_search_path="\
9872 ${x_library}/X11/%L/%T/%N%C%S:\
9873 ${x_library}/X11/%l/%T/%N%C%S:\
9874 ${x_library}/X11/%T/%N%C%S:\
9875 ${x_library}/X11/%L/%T/%N%S:\
9876 ${x_library}/X11/%l/%T/%N%S:\
9877 ${x_library}/X11/%T/%N%S"
9878 if test x"${x_default_search_path}" = x; then
9879 x_default_search_path=${x_search_path}
9880 else
9881 x_default_search_path="${x_search_path}:${x_default_search_path}"
9882 fi
9883 done
9884 fi
9885
9886
9887 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9888 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9889 fi
9890
9891 if test x"${x_includes}" = x; then
9892 bitmapdir=/usr/include/X11/bitmaps
9893 else
9894 # accumulate include directories that have X11 bitmap subdirectories
9895 bmd_acc="dummyval"
9896 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9897 if test -d "${bmd}/X11/bitmaps"; then
9898 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9899 fi
9900 if test -d "${bmd}/bitmaps"; then
9901 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9902 fi
9903 done
9904 if test ${bmd_acc} != "dummyval"; then
9905 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9906 fi
9907 fi
9908
9909 HAVE_NS=no
9910 NS_IMPL_COCOA=no
9911 NS_IMPL_GNUSTEP=no
9912 tmp_CPPFLAGS="$CPPFLAGS"
9913 tmp_CFLAGS="$CFLAGS"
9914 CPPFLAGS="$CPPFLAGS -x objective-c"
9915 CFLAGS="$CFLAGS -x objective-c"
9916 GNU_OBJC_CFLAGS=
9917 LIBS_GNUSTEP=
9918 if test "${with_ns}" != no; then
9919 if test "${opsys}" = darwin; then
9920 NS_IMPL_COCOA=yes
9921 ns_appdir=`pwd`/nextstep/Emacs.app
9922 ns_appbindir=${ns_appdir}/Contents/MacOS
9923 ns_appresdir=${ns_appdir}/Contents/Resources
9924 ns_appsrc=Cocoa/Emacs.base
9925 elif test -f $GNUSTEP_CONFIG_FILE; then
9926 NS_IMPL_GNUSTEP=yes
9927 ns_appdir=`pwd`/nextstep/Emacs.app
9928 ns_appbindir=${ns_appdir}
9929 ns_appresdir=${ns_appdir}/Resources
9930 ns_appsrc=GNUstep/Emacs.base
9931 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9932 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9933 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9934 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9935 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9936 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9937 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9938 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9939 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9940 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9941 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9942 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9944 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9945 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
9947 else
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9950 #include <GNUstepBase/GSConfig.h>
9951 int
9952 main ()
9953 {
9954 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9955 1;
9956 #else
9957 fail;
9958 #endif
9959 ;
9960 return 0;
9961 }
9962 _ACEOF
9963 if ac_fn_c_try_compile "$LINENO"; then :
9964 emacs_cv_objc_exceptions=yes
9965 else
9966 emacs_cv_objc_exceptions=no
9967 fi
9968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9969 fi
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9971 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9972 if test $emacs_cv_objc_exceptions = yes; then
9973
9974 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9975
9976 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9977 fi
9978 fi
9979
9980 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9981
9982 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9983 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9984 HAVE_NS=yes
9985 else
9986 as_fn_error "\`--with-ns' was specified, but the include
9987 files are missing or cannot be compiled." "$LINENO" 5
9988 fi
9989
9990
9991
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994 #include <AppKit/AppKit.h>
9995 int
9996 main ()
9997 {
9998
9999 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10000 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10001 ; /* OK */
10002 #else
10003 #error "OSX 10.4 or newer required"
10004 #endif
10005 #endif
10006
10007 ;
10008 return 0;
10009 }
10010 _ACEOF
10011 if ac_fn_c_try_compile "$LINENO"; then :
10012 ns_osx_have_104=yes
10013 else
10014 ns_osx_have_104=no
10015 fi
10016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h. */
10019 #include <Foundation/NSObjCRuntime.h>
10020 int
10021 main ()
10022 {
10023 NSInteger i;
10024 ;
10025 return 0;
10026 }
10027 _ACEOF
10028 if ac_fn_c_try_compile "$LINENO"; then :
10029 ns_have_nsinteger=yes
10030 else
10031 ns_have_nsinteger=no
10032 fi
10033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10034 if test $ns_osx_have_104 = no; then
10035 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
10036 fi
10037 if test $ns_have_nsinteger = yes; then
10038
10039 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10040
10041 fi
10042 fi
10043
10044
10045
10046 INSTALL_ARCH_INDEP_EXTRA=install-etc
10047 ns_self_contained=no
10048 NS_OBJ=
10049 NS_OBJC_OBJ=
10050 if test "${HAVE_NS}" = yes; then
10051 if test "$with_toolkit_scroll_bars" = "no"; then
10052 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10053 fi
10054
10055 window_system=nextstep
10056 # set up packaging dirs
10057 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10058 ns_self_contained=yes
10059 prefix=${ns_appresdir}
10060 exec_prefix=${ns_appbindir}
10061 libexecdir="\${ns_appbindir}/libexec"
10062 archlibdir="\${ns_appbindir}/libexec"
10063 docdir="\${ns_appresdir}/etc"
10064 etcdir="\${ns_appresdir}/etc"
10065 infodir="\${ns_appresdir}/info"
10066 mandir="\${ns_appresdir}/man"
10067 lispdir="\${ns_appresdir}/lisp"
10068 leimdir="\${ns_appresdir}/leim"
10069 INSTALL_ARCH_INDEP_EXTRA=
10070 fi
10071 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10072 fi
10073 CFLAGS="$tmp_CFLAGS"
10074 CPPFLAGS="$tmp_CPPFLAGS"
10075
10076
10077
10078
10079
10080 HAVE_W32=no
10081 W32_OBJ=
10082 W32_LIBS=
10083 EMACSRES=
10084 CLIENTRES=
10085 CLIENTW=
10086 W32_RES_LINK=
10087 EMACS_MANIFEST=
10088 if test "${with_w32}" != no; then
10089 case "${opsys}" in
10090 cygwin)
10091 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10092 if test "x$ac_cv_header_windows_h" = x""yes; then :
10093 HAVE_W32=yes
10094 else
10095 as_fn_error "\`--with-w32' was specified, but windows.h
10096 cannot be found." "$LINENO" 5
10097 fi
10098
10099
10100 ;;
10101 mingw32)
10102 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10103 ;;
10104 *)
10105 as_fn_error "Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10106 ;;
10107 esac
10108 fi
10109
10110 if test "${opsys}" = "mingw32"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10112 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10115
10116 #include <windows.h>
10117 #include <usp10.h>
10118 int
10119 main ()
10120 {
10121 void test(PIMAGE_NT_HEADERS pHeader)
10122 {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);}
10123 ;
10124 return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_c_try_compile "$LINENO"; then :
10128 emacs_cv_w32api=yes
10129 HAVE_W32=yes
10130 else
10131 emacs_cv_w32api=no
10132 fi
10133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10135 $as_echo "$emacs_cv_w32api" >&6; }
10136 if test "${emacs_cv_w32api}" = "no"; then
10137 as_fn_error "the Windows API headers are too old to support this build." "$LINENO" 5
10138 fi
10139 fi
10140
10141 FIRSTFILE_OBJ=
10142 NTDIR=
10143 LIBS_ECLIENT=
10144 LIB_WSOCK32=
10145 NTLIB=
10146 CM_OBJ="cm.o"
10147 XARGS_LIMIT=
10148 if test "${HAVE_W32}" = "yes"; then
10149
10150 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10151
10152 if test -n "$ac_tool_prefix"; then
10153 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10154 set dummy ${ac_tool_prefix}windres; ac_word=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 if test -n "$WINDRES"; then
10161 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10162 else
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10165 do
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 break 2
10173 fi
10174 done
10175 done
10176 IFS=$as_save_IFS
10177
10178 fi
10179 fi
10180 WINDRES=$ac_cv_prog_WINDRES
10181 if test -n "$WINDRES"; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10183 $as_echo "$WINDRES" >&6; }
10184 else
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10187 fi
10188
10189
10190 fi
10191 if test -z "$ac_cv_prog_WINDRES"; then
10192 ac_ct_WINDRES=$WINDRES
10193 # Extract the first word of "windres", so it can be a program name with args.
10194 set dummy windres; ac_word=$2
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10200 if test -n "$ac_ct_WINDRES"; then
10201 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10202 else
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10205 do
10206 IFS=$as_save_IFS
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10210 ac_cv_prog_ac_ct_WINDRES="windres"
10211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10212 break 2
10213 fi
10214 done
10215 done
10216 IFS=$as_save_IFS
10217
10218 fi
10219 fi
10220 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10221 if test -n "$ac_ct_WINDRES"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10223 $as_echo "$ac_ct_WINDRES" >&6; }
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10227 fi
10228
10229 if test "x$ac_ct_WINDRES" = x; then
10230 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
10231 else
10232 case $cross_compiling:$ac_tool_warned in
10233 yes:)
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10236 ac_tool_warned=yes ;;
10237 esac
10238 WINDRES=$ac_ct_WINDRES
10239 fi
10240 else
10241 WINDRES="$ac_cv_prog_WINDRES"
10242 fi
10243
10244 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10245 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10246 EMACSRES="emacs.res"
10247 case "$canonical" in
10248 x86_64-*-*) EMACS_MANIFEST="emacs-x64.manifest" ;;
10249 *) EMACS_MANIFEST="emacs-x86.manifest" ;;
10250 esac
10251 if test "${opsys}" = "cygwin"; then
10252 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10253 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10254 # Tell the linker that emacs.res is an object (which we compile from
10255 # the rc file), not a linker script.
10256 W32_RES_LINK="-Wl,emacs.res"
10257 else
10258 W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10259 W32_LIBS="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10260 W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10261 W32_RES_LINK="\$(EMACSRES)"
10262 CLIENTRES="emacsclient.res"
10263 CLIENTW="emacsclientw\$(EXEEXT)"
10264 FIRSTFILE_OBJ=firstfile.o
10265 NTDIR=nt
10266 CM_OBJ=
10267 LIBS_ECLIENT="-lcomctl32"
10268 LIB_WSOCK32="-lwsock32"
10269 NTLIB="ntlib.$ac_objext"
10270 XARGS_LIMIT="-s 10000"
10271 fi
10272 fi
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288 if test "${HAVE_W32}" = "yes"; then
10289 window_system=w32
10290 with_xft=no
10291 fi
10292
10293 ## $window_system is now set to the window system we will
10294 ## ultimately use.
10295
10296 term_header=
10297 HAVE_X_WINDOWS=no
10298 HAVE_X11=no
10299 USE_X_TOOLKIT=none
10300
10301 case "${window_system}" in
10302 x11 )
10303 HAVE_X_WINDOWS=yes
10304 HAVE_X11=yes
10305 term_header=xterm.h
10306 case "${with_x_toolkit}" in
10307 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10308 motif ) USE_X_TOOLKIT=MOTIF ;;
10309 gtk ) with_gtk=yes
10310 term_header=gtkutil.h
10311 USE_X_TOOLKIT=none ;;
10312 gtk2 ) with_gtk2=yes
10313 term_header=gtkutil.h
10314 USE_X_TOOLKIT=none ;;
10315 gtk3 ) with_gtk3=yes
10316 term_header=gtkutil.h
10317 USE_X_TOOLKIT=none ;;
10318 no ) USE_X_TOOLKIT=none ;;
10319 * ) USE_X_TOOLKIT=maybe ;;
10320 esac
10321 ;;
10322 nextstep )
10323 term_header=nsterm.h
10324 ;;
10325 w32 )
10326 term_header=w32term.h
10327 ;;
10328 esac
10329
10330 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10331 # Extract the first word of "X", so it can be a program name with args.
10332 set dummy X; ac_word=$2
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334 $as_echo_n "checking for $ac_word... " >&6; }
10335 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 if test -n "$HAVE_XSERVER"; then
10339 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10340 else
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10343 do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10348 ac_cv_prog_HAVE_XSERVER="true"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10351 fi
10352 done
10353 done
10354 IFS=$as_save_IFS
10355
10356 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10357 fi
10358 fi
10359 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10360 if test -n "$HAVE_XSERVER"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10362 $as_echo "$HAVE_XSERVER" >&6; }
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10366 fi
10367
10368
10369 if test "$HAVE_XSERVER" = true ||
10370 test -n "$DISPLAY" ||
10371 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10372 as_fn_error "You seem to be running X, but no X development libraries
10373 were found. You should install the relevant development files for X
10374 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10375 sure you have development files for image handling, i.e.
10376 tiff, gif, jpeg, png and xpm.
10377 If you are sure you want Emacs compiled without X window support, pass
10378 --without-x
10379 to configure." "$LINENO" 5
10380 fi
10381 fi
10382
10383 ### If we're using X11, we should use the X menu package.
10384 HAVE_MENUS=no
10385 case ${HAVE_X11} in
10386 yes ) HAVE_MENUS=yes ;;
10387 esac
10388
10389 # Does the opsystem file prohibit the use of the GNU malloc?
10390 # Assume not, until told otherwise.
10391 GNU_MALLOC=yes
10392
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10394 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10395 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400 #include <malloc.h>
10401 static void hook (void) {}
10402 int
10403 main ()
10404 {
10405 malloc_set_state (malloc_get_state ());
10406 __after_morecore_hook = hook;
10407 __malloc_initialize_hook = hook;
10408 ;
10409 return 0;
10410 }
10411 _ACEOF
10412 if ac_fn_c_try_link "$LINENO"; then :
10413 emacs_cv_var_doug_lea_malloc=yes
10414 else
10415 emacs_cv_var_doug_lea_malloc=no
10416 fi
10417 rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419 fi
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10421 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10422 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10423
10424
10425 system_malloc=no
10426 case "$opsys" in
10427 ## darwin ld insists on the use of malloc routines in the System framework.
10428 darwin|sol2-10) system_malloc=yes ;;
10429 esac
10430
10431 if test "${system_malloc}" = "yes"; then
10432
10433 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10434
10435 GNU_MALLOC=no
10436 GNU_MALLOC_reason="
10437 (The GNU allocators don't work with this system configuration.)"
10438 GMALLOC_OBJ=
10439 VMLIMIT_OBJ=
10440 else
10441 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10442 VMLIMIT_OBJ=vm-limit.o
10443
10444 for ac_header in sys/vlimit.h
10445 do :
10446 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10447 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10448 cat >>confdefs.h <<_ACEOF
10449 #define HAVE_SYS_VLIMIT_H 1
10450 _ACEOF
10451
10452 fi
10453
10454 done
10455
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10457 $as_echo_n "checking for data_start... " >&6; }
10458 if test "${emacs_cv_data_start+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10463 extern char data_start[]; char ch;
10464 int
10465 main ()
10466 {
10467 return data_start < &ch;
10468 ;
10469 return 0;
10470 }
10471 _ACEOF
10472 if ac_fn_c_try_link "$LINENO"; then :
10473 emacs_cv_data_start=yes
10474 else
10475 emacs_cv_data_start=no
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 fi
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10481 $as_echo "$emacs_cv_data_start" >&6; }
10482 if test $emacs_cv_data_start = yes; then
10483
10484 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10485
10486 fi
10487 fi
10488
10489
10490
10491 if test "$doug_lea_malloc" = "yes" ; then
10492 if test "$GNU_MALLOC" = yes ; then
10493 GNU_MALLOC_reason="
10494 (Using Doug Lea's new malloc from the GNU C Library.)"
10495 fi
10496
10497 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10498
10499
10500 ## Use mmap directly for allocating larger buffers.
10501 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10502 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10503 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10504 case "$opsys" in
10505 gnu*) REL_ALLOC=no ;;
10506 esac
10507 fi
10508
10509 if test x"${REL_ALLOC}" = x; then
10510 REL_ALLOC=${GNU_MALLOC}
10511 fi
10512
10513 use_mmap_for_buffers=no
10514 case "$opsys" in
10515 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10516 esac
10517
10518
10519
10520
10521
10522
10523
10524
10525 for ac_func in getpagesize
10526 do :
10527 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10528 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10529 cat >>confdefs.h <<_ACEOF
10530 #define HAVE_GETPAGESIZE 1
10531 _ACEOF
10532
10533 fi
10534 done
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10537 $as_echo_n "checking for working mmap... " >&6; }
10538 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10540 else
10541 if test "$cross_compiling" = yes; then :
10542 ac_cv_func_mmap_fixed_mapped=no
10543 else
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 $ac_includes_default
10547 /* malloc might have been renamed as rpl_malloc. */
10548 #undef malloc
10549
10550 /* Thanks to Mike Haertel and Jim Avera for this test.
10551 Here is a matrix of mmap possibilities:
10552 mmap private not fixed
10553 mmap private fixed at somewhere currently unmapped
10554 mmap private fixed at somewhere already mapped
10555 mmap shared not fixed
10556 mmap shared fixed at somewhere currently unmapped
10557 mmap shared fixed at somewhere already mapped
10558 For private mappings, we should verify that changes cannot be read()
10559 back from the file, nor mmap's back from the file at a different
10560 address. (There have been systems where private was not correctly
10561 implemented like the infamous i386 svr4.0, and systems where the
10562 VM page cache was not coherent with the file system buffer cache
10563 like early versions of FreeBSD and possibly contemporary NetBSD.)
10564 For shared mappings, we should conversely verify that changes get
10565 propagated back to all the places they're supposed to be.
10566
10567 Grep wants private fixed already mapped.
10568 The main things grep needs to know about mmap are:
10569 * does it exist and is it safe to write into the mmap'd area
10570 * how to use it (BSD variants) */
10571
10572 #include <fcntl.h>
10573 #include <sys/mman.h>
10574
10575 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10576 char *malloc ();
10577 #endif
10578
10579 /* This mess was copied from the GNU getpagesize.h. */
10580 #ifndef HAVE_GETPAGESIZE
10581 # ifdef _SC_PAGESIZE
10582 # define getpagesize() sysconf(_SC_PAGESIZE)
10583 # else /* no _SC_PAGESIZE */
10584 # ifdef HAVE_SYS_PARAM_H
10585 # include <sys/param.h>
10586 # ifdef EXEC_PAGESIZE
10587 # define getpagesize() EXEC_PAGESIZE
10588 # else /* no EXEC_PAGESIZE */
10589 # ifdef NBPG
10590 # define getpagesize() NBPG * CLSIZE
10591 # ifndef CLSIZE
10592 # define CLSIZE 1
10593 # endif /* no CLSIZE */
10594 # else /* no NBPG */
10595 # ifdef NBPC
10596 # define getpagesize() NBPC
10597 # else /* no NBPC */
10598 # ifdef PAGESIZE
10599 # define getpagesize() PAGESIZE
10600 # endif /* PAGESIZE */
10601 # endif /* no NBPC */
10602 # endif /* no NBPG */
10603 # endif /* no EXEC_PAGESIZE */
10604 # else /* no HAVE_SYS_PARAM_H */
10605 # define getpagesize() 8192 /* punt totally */
10606 # endif /* no HAVE_SYS_PARAM_H */
10607 # endif /* no _SC_PAGESIZE */
10608
10609 #endif /* no HAVE_GETPAGESIZE */
10610
10611 int
10612 main ()
10613 {
10614 char *data, *data2, *data3;
10615 const char *cdata2;
10616 int i, pagesize;
10617 int fd, fd2;
10618
10619 pagesize = getpagesize ();
10620
10621 /* First, make a file with some known garbage in it. */
10622 data = (char *) malloc (pagesize);
10623 if (!data)
10624 return 1;
10625 for (i = 0; i < pagesize; ++i)
10626 *(data + i) = rand ();
10627 umask (0);
10628 fd = creat ("conftest.mmap", 0600);
10629 if (fd < 0)
10630 return 2;
10631 if (write (fd, data, pagesize) != pagesize)
10632 return 3;
10633 close (fd);
10634
10635 /* Next, check that the tail of a page is zero-filled. File must have
10636 non-zero length, otherwise we risk SIGBUS for entire page. */
10637 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10638 if (fd2 < 0)
10639 return 4;
10640 cdata2 = "";
10641 if (write (fd2, cdata2, 1) != 1)
10642 return 5;
10643 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10644 if (data2 == MAP_FAILED)
10645 return 6;
10646 for (i = 0; i < pagesize; ++i)
10647 if (*(data2 + i))
10648 return 7;
10649 close (fd2);
10650 if (munmap (data2, pagesize))
10651 return 8;
10652
10653 /* Next, try to mmap the file at a fixed address which already has
10654 something else allocated at it. If we can, also make sure that
10655 we see the same garbage. */
10656 fd = open ("conftest.mmap", O_RDWR);
10657 if (fd < 0)
10658 return 9;
10659 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10660 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10661 return 10;
10662 for (i = 0; i < pagesize; ++i)
10663 if (*(data + i) != *(data2 + i))
10664 return 11;
10665
10666 /* Finally, make sure that changes to the mapped area do not
10667 percolate back to the file as seen by read(). (This is a bug on
10668 some variants of i386 svr4.0.) */
10669 for (i = 0; i < pagesize; ++i)
10670 *(data2 + i) = *(data2 + i) + 1;
10671 data3 = (char *) malloc (pagesize);
10672 if (!data3)
10673 return 12;
10674 if (read (fd, data3, pagesize) != pagesize)
10675 return 13;
10676 for (i = 0; i < pagesize; ++i)
10677 if (*(data + i) != *(data3 + i))
10678 return 14;
10679 close (fd);
10680 return 0;
10681 }
10682 _ACEOF
10683 if ac_fn_c_try_run "$LINENO"; then :
10684 ac_cv_func_mmap_fixed_mapped=yes
10685 else
10686 ac_cv_func_mmap_fixed_mapped=no
10687 fi
10688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10689 conftest.$ac_objext conftest.beam conftest.$ac_ext
10690 fi
10691
10692 fi
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10694 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10695 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10696
10697 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10698
10699 fi
10700 rm -f conftest.mmap conftest.txt
10701
10702 if test $use_mmap_for_buffers = yes; then
10703
10704 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10705
10706 REL_ALLOC=no
10707 fi
10708
10709 LIBS="$LIBS_SYSTEM $LIBS"
10710
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10712 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10713 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 ac_check_lib_save_LIBS=$LIBS
10717 LIBS="-ldnet $LIBS"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10724 #ifdef __cplusplus
10725 extern "C"
10726 #endif
10727 char dnet_ntoa ();
10728 int
10729 main ()
10730 {
10731 return dnet_ntoa ();
10732 ;
10733 return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 ac_cv_lib_dnet_dnet_ntoa=yes
10738 else
10739 ac_cv_lib_dnet_dnet_ntoa=no
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10744 fi
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10746 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10747 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10748 cat >>confdefs.h <<_ACEOF
10749 #define HAVE_LIBDNET 1
10750 _ACEOF
10751
10752 LIBS="-ldnet $LIBS"
10753
10754 fi
10755
10756
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10758 $as_echo_n "checking for main in -lXbsd... " >&6; }
10759 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 ac_check_lib_save_LIBS=$LIBS
10763 LIBS="-lXbsd $LIBS"
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766
10767
10768 int
10769 main ()
10770 {
10771 return main ();
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"; then :
10777 ac_cv_lib_Xbsd_main=yes
10778 else
10779 ac_cv_lib_Xbsd_main=no
10780 fi
10781 rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10786 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10787 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10788 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10789 fi
10790
10791
10792 LIB_PTHREAD=
10793
10794
10795
10796 if test "$ac_cv_header_pthread_h"; then
10797 if test "$GMALLOC_OBJ" = gmalloc.o; then
10798 emacs_pthread_function=pthread_atfork
10799 else
10800 emacs_pthread_function=pthread_self
10801 fi
10802 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10804 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10805 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 ac_check_lib_save_LIBS=$LIBS
10809 LIBS="-lpthread $LIBS"
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812
10813 /* Override any GCC internal prototype to avoid an error.
10814 Use char because int might match the return type of a GCC
10815 builtin and then its argument prototype would still apply. */
10816 #ifdef __cplusplus
10817 extern "C"
10818 #endif
10819 char $emacs_pthread_function ();
10820 int
10821 main ()
10822 {
10823 return $emacs_pthread_function ();
10824 ;
10825 return 0;
10826 }
10827 _ACEOF
10828 if ac_fn_c_try_link "$LINENO"; then :
10829 eval "$as_ac_Lib=yes"
10830 else
10831 eval "$as_ac_Lib=no"
10832 fi
10833 rm -f core conftest.err conftest.$ac_objext \
10834 conftest$ac_exeext conftest.$ac_ext
10835 LIBS=$ac_check_lib_save_LIBS
10836 fi
10837 eval ac_res=\$$as_ac_Lib
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10839 $as_echo "$ac_res" >&6; }
10840 eval as_val=\$$as_ac_Lib
10841 if test "x$as_val" = x""yes; then :
10842 HAVE_PTHREAD=yes
10843 fi
10844
10845 fi
10846 if test "$HAVE_PTHREAD" = yes; then
10847 case "${canonical}" in
10848 *-hpux*) ;;
10849 *) LIB_PTHREAD="-lpthread"
10850 LIBS="$LIB_PTHREAD $LIBS" ;;
10851 esac
10852
10853 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10854
10855 fi
10856
10857
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10859 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10860 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 ac_check_lib_save_LIBS=$LIBS
10864 LIBS="-lpthreads $LIBS"
10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10867
10868 /* Override any GCC internal prototype to avoid an error.
10869 Use char because int might match the return type of a GCC
10870 builtin and then its argument prototype would still apply. */
10871 #ifdef __cplusplus
10872 extern "C"
10873 #endif
10874 char cma_open ();
10875 int
10876 main ()
10877 {
10878 return cma_open ();
10879 ;
10880 return 0;
10881 }
10882 _ACEOF
10883 if ac_fn_c_try_link "$LINENO"; then :
10884 ac_cv_lib_pthreads_cma_open=yes
10885 else
10886 ac_cv_lib_pthreads_cma_open=no
10887 fi
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10890 LIBS=$ac_check_lib_save_LIBS
10891 fi
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10893 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10894 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10895 cat >>confdefs.h <<_ACEOF
10896 #define HAVE_LIBPTHREADS 1
10897 _ACEOF
10898
10899 LIBS="-lpthreads $LIBS"
10900
10901 fi
10902
10903
10904 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10905 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10906 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10907 ## added to LIBS in configure would never contain the pthreads part,
10908 ## but the value used in Makefiles might. FIXME?
10909 ##
10910 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10911 ## be harmless on older versions of X where it happens to exist.
10912 test "$opsys" = "aix4-2" && \
10913 test $ac_cv_lib_pthreads_cma_open = yes && \
10914 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10915
10916
10917 case ${host_os} in
10918 aix*)
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10920 $as_echo_n "checking for -bbigtoc option... " >&6; }
10921 if test "${gdb_cv_bigtoc+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924
10925 case $GCC in
10926 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10927 *) gdb_cv_bigtoc=-bbigtoc ;;
10928 esac
10929
10930 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10933
10934 int
10935 main ()
10936 {
10937 int i;
10938 ;
10939 return 0;
10940 }
10941 _ACEOF
10942 if ac_fn_c_try_link "$LINENO"; then :
10943
10944 else
10945 gdb_cv_bigtoc=
10946 fi
10947 rm -f core conftest.err conftest.$ac_objext \
10948 conftest$ac_exeext conftest.$ac_ext
10949
10950 fi
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10952 $as_echo "$gdb_cv_bigtoc" >&6; }
10953 ;;
10954 esac
10955
10956 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10957 # used for the tests that follow. We set them back to REAL_CFLAGS and
10958 # REAL_CPPFLAGS later on.
10959
10960 REAL_CFLAGS="$CFLAGS"
10961 REAL_CPPFLAGS="$CPPFLAGS"
10962
10963 if test "${HAVE_X11}" = "yes"; then
10964 DEFS="$C_SWITCH_X_SITE $DEFS"
10965 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10966 LIBS="-lX11 $LIBS"
10967 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10968 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10969
10970 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10971 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10972 # but it's more convenient here to set LD_RUN_PATH since this
10973 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10974 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10975 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10976 export LD_RUN_PATH
10977 fi
10978
10979 if test "${opsys}" = "gnu-linux"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10981 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10984
10985 int
10986 main ()
10987 {
10988 XOpenDisplay ("foo");
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994 xgnu_linux_first_failure=no
10995 else
10996 xgnu_linux_first_failure=yes
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 if test "${xgnu_linux_first_failure}" = "yes"; then
11001 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11002 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11003 OLD_CPPFLAGS="$CPPFLAGS"
11004 OLD_LIBS="$LIBS"
11005 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11006 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11007 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11008 LIBS="$LIBS -b i486-linuxaout"
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11011
11012 int
11013 main ()
11014 {
11015 XOpenDisplay ("foo");
11016 ;
11017 return 0;
11018 }
11019 _ACEOF
11020 if ac_fn_c_try_link "$LINENO"; then :
11021 xgnu_linux_second_failure=no
11022 else
11023 xgnu_linux_second_failure=yes
11024 fi
11025 rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11027 if test "${xgnu_linux_second_failure}" = "yes"; then
11028 # If we get the same failure with -b, there is no use adding -b.
11029 # So take it out. This plays safe.
11030 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11031 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11032 CPPFLAGS="$OLD_CPPFLAGS"
11033 LIBS="$OLD_LIBS"
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11036 else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11038 $as_echo "yes" >&6; }
11039 fi
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042 $as_echo "no" >&6; }
11043 fi
11044 fi
11045
11046 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11047 # header files included from there.
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11049 $as_echo_n "checking for Xkb... " >&6; }
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11052 #include <X11/Xlib.h>
11053 #include <X11/XKBlib.h>
11054 int
11055 main ()
11056 {
11057 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11058 ;
11059 return 0;
11060 }
11061 _ACEOF
11062 if ac_fn_c_try_link "$LINENO"; then :
11063 emacs_xkb=yes
11064 else
11065 emacs_xkb=no
11066 fi
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11070 $as_echo "$emacs_xkb" >&6; }
11071 if test $emacs_xkb = yes; then
11072
11073 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11074
11075 fi
11076
11077 for ac_func in XrmSetDatabase XScreenResourceString \
11078 XScreenNumberOfScreen
11079 do :
11080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11081 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11082 eval as_val=\$$as_ac_var
11083 if test "x$as_val" = x""yes; then :
11084 cat >>confdefs.h <<_ACEOF
11085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11086 _ACEOF
11087
11088 fi
11089 done
11090
11091 fi
11092
11093 if test "${window_system}" = "x11"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11095 $as_echo_n "checking X11 version 6... " >&6; }
11096 if test "${emacs_cv_x11_version_6+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11101 #include <X11/Xlib.h>
11102 int
11103 main ()
11104 {
11105 #if XlibSpecificationRelease < 6
11106 fail;
11107 #endif
11108
11109 ;
11110 return 0;
11111 }
11112 _ACEOF
11113 if ac_fn_c_try_link "$LINENO"; then :
11114 emacs_cv_x11_version_6=yes
11115 else
11116 emacs_cv_x11_version_6=no
11117 fi
11118 rm -f core conftest.err conftest.$ac_objext \
11119 conftest$ac_exeext conftest.$ac_ext
11120 fi
11121
11122 if test $emacs_cv_x11_version_6 = yes; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11124 $as_echo "6 or newer" >&6; }
11125
11126 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11127
11128
11129 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11130
11131 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11132 ## XIM support.
11133 case "$opsys" in
11134 sol2-*) : ;;
11135 *)
11136 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11137
11138 ;;
11139 esac
11140 else
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11142 $as_echo "before 6" >&6; }
11143 fi
11144 fi
11145
11146
11147 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11148 HAVE_RSVG=no
11149 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11150 if test "${with_rsvg}" != "no"; then
11151 RSVG_REQUIRED=2.11.0
11152 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11153
11154
11155 succeeded=no
11156
11157 if test "$PKG_CONFIG" = "no" ; then
11158 :
11159 else
11160 PKG_CONFIG_MIN_VERSION=0.9.0
11161 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11163 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11164
11165 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11166 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11167 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11168 edit_cflags="
11169 s,///*,/,g
11170 s/^/ /
11171 s/ -I/ $isystem/g
11172 s/^ //
11173 "
11174 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11175 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11177 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11178 succeeded=yes
11179 else
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11182 RSVG_CFLAGS=""
11183 RSVG_LIBS=""
11184 ## If we have a custom action on failure, don't print errors, but
11185 ## do set a variable so people can do so. Do it in a subshell
11186 ## to capture any diagnostics in invoking pkg-config.
11187 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11188
11189 fi
11190
11191
11192
11193 else
11194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11196 fi
11197 fi
11198
11199 if test $succeeded = yes; then
11200 HAVE_RSVG=yes
11201 else
11202 :
11203 fi
11204
11205
11206
11207
11208 if test $HAVE_RSVG = yes; then
11209
11210 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11211
11212 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11213 LIBS="$RSVG_LIBS $LIBS"
11214 fi
11215 fi
11216 fi
11217
11218 HAVE_IMAGEMAGICK=no
11219 if test "${HAVE_X11}" = "yes"; then
11220 if test "${with_imagemagick}" != "no"; then
11221 ## 6.2.8 is the earliest version known to work, but earlier versions
11222 ## might work - let us know if you find one.
11223 ## 6.0.7 does not work. See bug#7955.
11224 ## 6.8.2 makes Emacs crash; see Bug#13867.
11225 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
11226
11227 succeeded=no
11228
11229 if test "$PKG_CONFIG" = "no" ; then
11230 :
11231 else
11232 PKG_CONFIG_MIN_VERSION=0.9.0
11233 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11235 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11236
11237 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11238 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11239 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11240 edit_cflags="
11241 s,///*,/,g
11242 s/^/ /
11243 s/ -I/ $isystem/g
11244 s/^ //
11245 "
11246 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11247 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11249 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11250 succeeded=yes
11251 else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11254 IMAGEMAGICK_CFLAGS=""
11255 IMAGEMAGICK_LIBS=""
11256 ## If we have a custom action on failure, don't print errors, but
11257 ## do set a variable so people can do so. Do it in a subshell
11258 ## to capture any diagnostics in invoking pkg-config.
11259 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11260
11261 fi
11262
11263
11264
11265 else
11266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11268 fi
11269 fi
11270
11271 if test $succeeded = yes; then
11272 HAVE_IMAGEMAGICK=yes
11273 else
11274 :
11275 fi
11276
11277
11278
11279
11280 if test $HAVE_IMAGEMAGICK = yes; then
11281
11282 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11283
11284 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11285 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11286 for ac_func in MagickExportImagePixels MagickMergeImageLayers
11287 do :
11288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11289 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11290 eval as_val=\$$as_ac_var
11291 if test "x$as_val" = x""yes; then :
11292 cat >>confdefs.h <<_ACEOF
11293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11294 _ACEOF
11295
11296 fi
11297 done
11298
11299 fi
11300 fi
11301 fi
11302
11303
11304 HAVE_GTK=no
11305 GTK_OBJ=
11306 gtk_term_header=$term_header
11307 check_gtk2=no
11308 gtk3_pkg_errors=
11309 if test "${opsys}" != "mingw32"; then
11310 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11311 GLIB_REQUIRED=2.28
11312 GTK_REQUIRED=3.0
11313 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11314
11315
11316 succeeded=no
11317
11318 if test "$PKG_CONFIG" = "no" ; then
11319 pkg_check_gtk=no
11320 else
11321 PKG_CONFIG_MIN_VERSION=0.9.0
11322 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11324 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11325
11326 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11327 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11328 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11329 edit_cflags="
11330 s,///*,/,g
11331 s/^/ /
11332 s/ -I/ $isystem/g
11333 s/^ //
11334 "
11335 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11336 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11338 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11339 succeeded=yes
11340 else
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342 $as_echo "no" >&6; }
11343 GTK_CFLAGS=""
11344 GTK_LIBS=""
11345 ## If we have a custom action on failure, don't print errors, but
11346 ## do set a variable so people can do so. Do it in a subshell
11347 ## to capture any diagnostics in invoking pkg-config.
11348 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11349
11350 fi
11351
11352
11353
11354 else
11355 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11356 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11357 fi
11358 fi
11359
11360 if test $succeeded = yes; then
11361 pkg_check_gtk=yes
11362 else
11363 pkg_check_gtk=no
11364 fi
11365
11366 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11367 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11368 fi
11369 if test "$pkg_check_gtk" = "yes"; then
11370
11371 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11372
11373 GTK_OBJ=emacsgtkfixed.o
11374 gtk_term_header=gtkutil.h
11375 USE_GTK_TOOLKIT="GTK3"
11376 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11377 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11378 GTK_CFLAGS="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11379 fi
11380 else
11381 check_gtk2=yes
11382 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11383 fi
11384 fi
11385
11386 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11387 GLIB_REQUIRED=2.10
11388 GTK_REQUIRED=2.10
11389 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11390
11391
11392 succeeded=no
11393
11394 if test "$PKG_CONFIG" = "no" ; then
11395 pkg_check_gtk=no
11396 else
11397 PKG_CONFIG_MIN_VERSION=0.9.0
11398 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11400 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11401
11402 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11403 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11404 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11405 edit_cflags="
11406 s,///*,/,g
11407 s/^/ /
11408 s/ -I/ $isystem/g
11409 s/^ //
11410 "
11411 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11412 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11414 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11415 succeeded=yes
11416 else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11419 GTK_CFLAGS=""
11420 GTK_LIBS=""
11421 ## If we have a custom action on failure, don't print errors, but
11422 ## do set a variable so people can do so. Do it in a subshell
11423 ## to capture any diagnostics in invoking pkg-config.
11424 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11425
11426 fi
11427
11428
11429
11430 else
11431 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11432 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11433 fi
11434 fi
11435
11436 if test $succeeded = yes; then
11437 pkg_check_gtk=yes
11438 else
11439 pkg_check_gtk=no
11440 fi
11441
11442 if test "$pkg_check_gtk" = "no" &&
11443 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11444 then
11445 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11446 fi
11447 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11448 fi
11449 fi
11450
11451 if test x"$pkg_check_gtk" = xyes; then
11452
11453
11454
11455 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11456 CFLAGS="$CFLAGS $GTK_CFLAGS"
11457 LIBS="$GTK_LIBS $LIBS"
11458 GTK_COMPILES=no
11459 for ac_func in gtk_main
11460 do :
11461 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11462 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11463 cat >>confdefs.h <<_ACEOF
11464 #define HAVE_GTK_MAIN 1
11465 _ACEOF
11466 GTK_COMPILES=yes
11467 fi
11468 done
11469
11470 if test "${GTK_COMPILES}" != "yes"; then
11471 GTK_OBJ=
11472 if test "$USE_X_TOOLKIT" != "maybe"; then
11473 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11474 fi
11475 else
11476 HAVE_GTK=yes
11477
11478 $as_echo "#define USE_GTK 1" >>confdefs.h
11479
11480 GTK_OBJ="gtkutil.o $GTK_OBJ"
11481 term_header=$gtk_term_header
11482 USE_X_TOOLKIT=none
11483 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11484 :
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11487 closing open displays. This is no problem if you just use
11488 one display, but if you use more than one and close one of them
11489 Emacs may crash." >&5
11490 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11491 closing open displays. This is no problem if you just use
11492 one display, but if you use more than one and close one of them
11493 Emacs may crash." >&2;}
11494 sleep 3
11495 fi
11496 fi
11497
11498 fi
11499
11500
11501
11502 if test "${HAVE_GTK}" = "yes"; then
11503
11504 if test "$with_toolkit_scroll_bars" != no; then
11505 with_toolkit_scroll_bars=yes
11506 fi
11507
11508 HAVE_GTK_FILE_SELECTION=no
11509 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11510 #include <gtk/gtk.h>
11511 "
11512 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11513 HAVE_GTK_FILE_SELECTION=yes
11514 else
11515 HAVE_GTK_FILE_SELECTION=no
11516 fi
11517
11518 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11519 for ac_func in gtk_file_selection_new
11520 do :
11521 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11522 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11523 cat >>confdefs.h <<_ACEOF
11524 #define HAVE_GTK_FILE_SELECTION_NEW 1
11525 _ACEOF
11526
11527 fi
11528 done
11529
11530 fi
11531
11532 HAVE_GTK_HANDLE_BOX=no
11533 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11534 #include <gtk/gtk.h>
11535 "
11536 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11537 HAVE_GTK_HANDLE_BOX=yes
11538 else
11539 HAVE_GTK_HANDLE_BOX=no
11540 fi
11541
11542 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11543 for ac_func in gtk_handle_box_new
11544 do :
11545 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11546 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11547 cat >>confdefs.h <<_ACEOF
11548 #define HAVE_GTK_HANDLE_BOX_NEW 1
11549 _ACEOF
11550
11551 fi
11552 done
11553
11554 fi
11555
11556 HAVE_GTK_TEAROFF_MENU_ITEM=no
11557 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11558 #include <gtk/gtk.h>
11559 "
11560 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11561 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11562 else
11563 HAVE_GTK_TEAROFF_MENU_ITEM=no
11564 fi
11565
11566 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11567 for ac_func in gtk_tearoff_menu_item_new
11568 do :
11569 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11570 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11571 cat >>confdefs.h <<_ACEOF
11572 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11573 _ACEOF
11574
11575 fi
11576 done
11577
11578 fi
11579
11580 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11581 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11582 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11583 gtk_orientable_set_orientation \
11584 gtk_window_set_has_resize_grip
11585 do :
11586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11588 eval as_val=\$$as_ac_var
11589 if test "x$as_val" = x""yes; then :
11590 cat >>confdefs.h <<_ACEOF
11591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11592 _ACEOF
11593
11594 fi
11595 done
11596
11597
11598 term_header=gtkutil.h
11599 fi
11600
11601 HAVE_DBUS=no
11602 DBUS_OBJ=
11603 if test "${with_dbus}" = "yes"; then
11604
11605 succeeded=no
11606
11607 if test "$PKG_CONFIG" = "no" ; then
11608 HAVE_DBUS=no
11609 else
11610 PKG_CONFIG_MIN_VERSION=0.9.0
11611 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11613 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11614
11615 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11616 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11617 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11618 edit_cflags="
11619 s,///*,/,g
11620 s/^/ /
11621 s/ -I/ $isystem/g
11622 s/^ //
11623 "
11624 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11625 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11627 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11628 succeeded=yes
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11632 DBUS_CFLAGS=""
11633 DBUS_LIBS=""
11634 ## If we have a custom action on failure, don't print errors, but
11635 ## do set a variable so people can do so. Do it in a subshell
11636 ## to capture any diagnostics in invoking pkg-config.
11637 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11638
11639 fi
11640
11641
11642
11643 else
11644 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11645 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11646 fi
11647 fi
11648
11649 if test $succeeded = yes; then
11650 HAVE_DBUS=yes
11651 else
11652 HAVE_DBUS=no
11653 fi
11654
11655 if test "$HAVE_DBUS" = yes; then
11656 LIBS="$LIBS $DBUS_LIBS"
11657
11658 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11659
11660 for ac_func in dbus_watch_get_unix_fd \
11661 dbus_type_is_valid \
11662 dbus_validate_bus_name \
11663 dbus_validate_path \
11664 dbus_validate_interface \
11665 dbus_validate_member
11666 do :
11667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11669 eval as_val=\$$as_ac_var
11670 if test "x$as_val" = x""yes; then :
11671 cat >>confdefs.h <<_ACEOF
11672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11673 _ACEOF
11674
11675 fi
11676 done
11677
11678 DBUS_OBJ=dbusbind.o
11679 fi
11680 fi
11681
11682
11683 HAVE_GSETTINGS=no
11684 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11685
11686 succeeded=no
11687
11688 if test "$PKG_CONFIG" = "no" ; then
11689 HAVE_GSETTINGS=no
11690 else
11691 PKG_CONFIG_MIN_VERSION=0.9.0
11692 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11694 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11695
11696 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11697 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11698 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11699 edit_cflags="
11700 s,///*,/,g
11701 s/^/ /
11702 s/ -I/ $isystem/g
11703 s/^ //
11704 "
11705 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11706 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11708 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11709 succeeded=yes
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11713 GSETTINGS_CFLAGS=""
11714 GSETTINGS_LIBS=""
11715 ## If we have a custom action on failure, don't print errors, but
11716 ## do set a variable so people can do so. Do it in a subshell
11717 ## to capture any diagnostics in invoking pkg-config.
11718 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11719
11720 fi
11721
11722
11723
11724 else
11725 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11726 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11727 fi
11728 fi
11729
11730 if test $succeeded = yes; then
11731 HAVE_GSETTINGS=yes
11732 else
11733 HAVE_GSETTINGS=no
11734 fi
11735
11736 if test "$HAVE_GSETTINGS" = "yes"; then
11737
11738 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11739
11740 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11741 SETTINGS_LIBS="$GSETTINGS_LIBS"
11742 fi
11743 fi
11744
11745 HAVE_GCONF=no
11746 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11747
11748 succeeded=no
11749
11750 if test "$PKG_CONFIG" = "no" ; then
11751 HAVE_GCONF=no
11752 else
11753 PKG_CONFIG_MIN_VERSION=0.9.0
11754 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11756 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11757
11758 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11759 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11760 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11761 edit_cflags="
11762 s,///*,/,g
11763 s/^/ /
11764 s/ -I/ $isystem/g
11765 s/^ //
11766 "
11767 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11768 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11770 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11771 succeeded=yes
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11775 GCONF_CFLAGS=""
11776 GCONF_LIBS=""
11777 ## If we have a custom action on failure, don't print errors, but
11778 ## do set a variable so people can do so. Do it in a subshell
11779 ## to capture any diagnostics in invoking pkg-config.
11780 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11781
11782 fi
11783
11784
11785
11786 else
11787 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11788 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11789 fi
11790 fi
11791
11792 if test $succeeded = yes; then
11793 HAVE_GCONF=yes
11794 else
11795 HAVE_GCONF=no
11796 fi
11797
11798 if test "$HAVE_GCONF" = yes; then
11799
11800 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11801
11802 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11803 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11804 fi
11805 fi
11806
11807 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11808
11809 succeeded=no
11810
11811 if test "$PKG_CONFIG" = "no" ; then
11812 HAVE_GOBJECT=no
11813 else
11814 PKG_CONFIG_MIN_VERSION=0.9.0
11815 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11817 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11818
11819 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11820 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11821 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11822 edit_cflags="
11823 s,///*,/,g
11824 s/^/ /
11825 s/ -I/ $isystem/g
11826 s/^ //
11827 "
11828 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11829 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11831 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11832 succeeded=yes
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836 GOBJECT_CFLAGS=""
11837 GOBJECT_LIBS=""
11838 ## If we have a custom action on failure, don't print errors, but
11839 ## do set a variable so people can do so. Do it in a subshell
11840 ## to capture any diagnostics in invoking pkg-config.
11841 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11842
11843 fi
11844
11845
11846
11847 else
11848 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11849 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11850 fi
11851 fi
11852
11853 if test $succeeded = yes; then
11854 HAVE_GOBJECT=yes
11855 else
11856 HAVE_GOBJECT=no
11857 fi
11858
11859 if test "$HAVE_GOBJECT" = "yes"; then
11860 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11861 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11862 fi
11863 SAVE_CFLAGS="$CFLAGS"
11864 SAVE_LIBS="$LIBS"
11865 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11866 LIBS="$SETTINGS_LIBS $LIBS"
11867 for ac_func in g_type_init
11868 do :
11869 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11870 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11871 cat >>confdefs.h <<_ACEOF
11872 #define HAVE_G_TYPE_INIT 1
11873 _ACEOF
11874
11875 fi
11876 done
11877
11878 CFLAGS="$SAVE_CFLAGS"
11879 LIBS="$SAVE_LIBS"
11880 fi
11881
11882
11883
11884
11885 HAVE_LIBSELINUX=no
11886 LIBSELINUX_LIBS=
11887 if test "${with_selinux}" = "yes"; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11889 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11890 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11891 $as_echo_n "(cached) " >&6
11892 else
11893 ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-lselinux $LIBS"
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11897
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 char lgetfilecon ();
11905 int
11906 main ()
11907 {
11908 return lgetfilecon ();
11909 ;
11910 return 0;
11911 }
11912 _ACEOF
11913 if ac_fn_c_try_link "$LINENO"; then :
11914 ac_cv_lib_selinux_lgetfilecon=yes
11915 else
11916 ac_cv_lib_selinux_lgetfilecon=no
11917 fi
11918 rm -f core conftest.err conftest.$ac_objext \
11919 conftest$ac_exeext conftest.$ac_ext
11920 LIBS=$ac_check_lib_save_LIBS
11921 fi
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11923 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11924 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11925 HAVE_LIBSELINUX=yes
11926 else
11927 HAVE_LIBSELINUX=no
11928 fi
11929
11930 if test "$HAVE_LIBSELINUX" = yes; then
11931
11932 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11933
11934 LIBSELINUX_LIBS=-lselinux
11935 fi
11936 fi
11937
11938
11939 HAVE_GNUTLS=no
11940 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11941 if test "${with_gnutls}" = "yes" ; then
11942
11943 succeeded=no
11944
11945 if test "$PKG_CONFIG" = "no" ; then
11946 HAVE_GNUTLS=no
11947 else
11948 PKG_CONFIG_MIN_VERSION=0.9.0
11949 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11951 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11952
11953 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11954 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11955 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11956 edit_cflags="
11957 s,///*,/,g
11958 s/^/ /
11959 s/ -I/ $isystem/g
11960 s/^ //
11961 "
11962 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11963 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11965 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11966 succeeded=yes
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11970 LIBGNUTLS_CFLAGS=""
11971 LIBGNUTLS_LIBS=""
11972 ## If we have a custom action on failure, don't print errors, but
11973 ## do set a variable so people can do so. Do it in a subshell
11974 ## to capture any diagnostics in invoking pkg-config.
11975 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11976
11977 fi
11978
11979
11980
11981 else
11982 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11983 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11984 fi
11985 fi
11986
11987 if test $succeeded = yes; then
11988 HAVE_GNUTLS=yes
11989 else
11990 HAVE_GNUTLS=no
11991 fi
11992
11993 if test "${HAVE_GNUTLS}" = "yes"; then
11994
11995 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11996
11997 fi
11998
11999 OLD_CFLAGS=$CFLAGS
12000 OLD_LIBS=$LIBS
12001 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12002 LIBS="$LIBGNUTLS_LIBS $LIBS"
12003 for ac_func in gnutls_certificate_set_verify_function
12004 do :
12005 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
12006 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
12007 cat >>confdefs.h <<_ACEOF
12008 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
12009 _ACEOF
12010 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
12011 fi
12012 done
12013
12014
12015 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
12016
12017 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
12018
12019 fi
12020
12021 # Windows loads GnuTLS dynamically
12022 if test "${opsys}" = "mingw32"; then
12023 CFLAGS=$OLD_CFLAGS
12024 LIBS=$OLD_LIBS
12025 LIBGNUTLS_LIBS=
12026 fi
12027 fi
12028
12029
12030
12031
12032 NOTIFY_OBJ=
12033 NOTIFY_SUMMARY=no
12034
12035 if test "${with_file_notification}" = "yes"; then
12036 if test "${opsys}" = "mingw32"; then
12037 with_file_notification=w32
12038 else
12039 if test "${with_ns}" != yes; then
12040 with_file_notification=gfile
12041 fi
12042 fi
12043 fi
12044
12045 if test "${with_file_notification}" = "gfile"; then
12046
12047 succeeded=no
12048
12049 if test "$PKG_CONFIG" = "no" ; then
12050 HAVE_GFILENOTIFY=no
12051 else
12052 PKG_CONFIG_MIN_VERSION=0.9.0
12053 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12055 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12056
12057 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12058 GFILENOTIFY_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12059 GFILENOTIFY_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12060 edit_cflags="
12061 s,///*,/,g
12062 s/^/ /
12063 s/ -I/ $isystem/g
12064 s/^ //
12065 "
12066 GFILENOTIFY_CFLAGS=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12067 GFILENOTIFY_LIBS=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12069 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12070 succeeded=yes
12071 else
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12074 GFILENOTIFY_CFLAGS=""
12075 GFILENOTIFY_LIBS=""
12076 ## If we have a custom action on failure, don't print errors, but
12077 ## do set a variable so people can do so. Do it in a subshell
12078 ## to capture any diagnostics in invoking pkg-config.
12079 GFILENOTIFY_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12080
12081 fi
12082
12083
12084
12085 else
12086 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12087 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12088 fi
12089 fi
12090
12091 if test $succeeded = yes; then
12092 HAVE_GFILENOTIFY=yes
12093 else
12094 HAVE_GFILENOTIFY=no
12095 fi
12096
12097 if test "$HAVE_GFILENOTIFY" = "yes"; then
12098
12099 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12100
12101 NOTIFY_OBJ=gfilenotify.o
12102 NOTIFY_SUMMARY="yes -lgio (gfile)"
12103 fi
12104 fi
12105 if test "${with_file_notification}" = "inotify"; then
12106 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12107 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
12108
12109 fi
12110
12111
12112 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12113 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12114 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
12115
12116 fi
12117
12118 if test "$ac_cv_func_inotify_init1" = yes; then
12119
12120 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12121
12122 NOTIFY_OBJ=inotify.o
12123 NOTIFY_SUMMARY="yes -lglibc (inotify)"
12124 fi
12125 fi
12126 fi
12127 if test "${with_file_notification}" = "w32"; then
12128 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12129 if test "x$ac_cv_header_windows_h" = x""yes; then :
12130
12131 fi
12132
12133
12134 if test "$ac_cv_header_windows_h" = yes ; then
12135
12136 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12137
12138 NOTIFY_OBJ=w32notify.o
12139 NOTIFY_SUMMARY="yes (w32)"
12140 fi
12141 fi
12142 if test -n "$NOTIFY_OBJ"; then
12143
12144 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12145
12146 fi
12147
12148
12149
12150
12151 HAVE_XAW3D=no
12152 LUCID_LIBW=
12153 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12154 if test "$with_xaw3d" != no; then
12155 if test "${emacs_cv_xaw3d+set}" = set; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12160
12161 #include <X11/Intrinsic.h>
12162 #include <X11/Xaw3d/Simple.h>
12163 int
12164 main ()
12165 {
12166
12167 ;
12168 return 0;
12169 }
12170 _ACEOF
12171 if ac_fn_c_try_link "$LINENO"; then :
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12173 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12174 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12175 $as_echo_n "(cached) " >&6
12176 else
12177 ac_check_lib_save_LIBS=$LIBS
12178 LIBS="-lXaw3d $LIBS"
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h. */
12181
12182 /* Override any GCC internal prototype to avoid an error.
12183 Use char because int might match the return type of a GCC
12184 builtin and then its argument prototype would still apply. */
12185 #ifdef __cplusplus
12186 extern "C"
12187 #endif
12188 char XawScrollbarSetThumb ();
12189 int
12190 main ()
12191 {
12192 return XawScrollbarSetThumb ();
12193 ;
12194 return 0;
12195 }
12196 _ACEOF
12197 if ac_fn_c_try_link "$LINENO"; then :
12198 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12199 else
12200 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12201 fi
12202 rm -f core conftest.err conftest.$ac_objext \
12203 conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12205 fi
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12207 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12208 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12209 emacs_cv_xaw3d=yes
12210 else
12211 emacs_cv_xaw3d=no
12212 fi
12213
12214 else
12215 emacs_cv_xaw3d=no
12216 fi
12217 rm -f core conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
12219 fi
12220
12221 else
12222 emacs_cv_xaw3d=no
12223 fi
12224 if test $emacs_cv_xaw3d = yes; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12226 $as_echo_n "checking for xaw3d... " >&6; }
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12228 $as_echo "yes; using Lucid toolkit" >&6; }
12229 USE_X_TOOLKIT=LUCID
12230 HAVE_XAW3D=yes
12231 LUCID_LIBW=-lXaw3d
12232
12233 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12234
12235 else
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12237 $as_echo_n "checking for xaw3d... " >&6; }
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12241 $as_echo_n "checking for libXaw... " >&6; }
12242 if test "${emacs_cv_xaw+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247
12248 #include <X11/Intrinsic.h>
12249 #include <X11/Xaw/Simple.h>
12250 int
12251 main ()
12252 {
12253
12254 ;
12255 return 0;
12256 }
12257 _ACEOF
12258 if ac_fn_c_try_link "$LINENO"; then :
12259 emacs_cv_xaw=yes
12260 else
12261 emacs_cv_xaw=no
12262 fi
12263 rm -f core conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 fi
12266
12267 if test $emacs_cv_xaw = yes; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12269 $as_echo "yes; using Lucid toolkit" >&6; }
12270 USE_X_TOOLKIT=LUCID
12271 LUCID_LIBW=-lXaw
12272 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12273 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12274 else
12275 as_fn_error "No X toolkit could be found.
12276 If you are sure you want Emacs compiled without an X toolkit, pass
12277 --with-x-toolkit=no
12278 to configure. Otherwise, install the development libraries for the toolkit
12279 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12280 fi
12281 fi
12282 fi
12283
12284 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12285
12286 LIBXTR6=
12287 if test "${USE_X_TOOLKIT}" != "none"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12289 $as_echo_n "checking X11 toolkit version... " >&6; }
12290 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12291 $as_echo_n "(cached) " >&6
12292 else
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295 #include <X11/Intrinsic.h>
12296 int
12297 main ()
12298 {
12299 #if XtSpecificationRelease < 6
12300 fail;
12301 #endif
12302
12303 ;
12304 return 0;
12305 }
12306 _ACEOF
12307 if ac_fn_c_try_link "$LINENO"; then :
12308 emacs_cv_x11_toolkit_version_6=yes
12309 else
12310 emacs_cv_x11_toolkit_version_6=no
12311 fi
12312 rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314 fi
12315
12316 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12317 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12319 $as_echo "6 or newer" >&6; }
12320
12321 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12322
12323 LIBXTR6="-lSM -lICE"
12324 case "$opsys" in
12325 ## Use libw.a along with X11R6 Xt.
12326 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12327 esac
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12330 $as_echo "before 6" >&6; }
12331 fi
12332
12333 OLDLIBS="$LIBS"
12334 if test x$HAVE_X11XTR6 = xyes; then
12335 LIBS="-lXt -lSM -lICE $LIBS"
12336 else
12337 LIBS="-lXt $LIBS"
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12340 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12341 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 ac_check_lib_save_LIBS=$LIBS
12345 LIBS="-lXmu $LIBS"
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12352 #ifdef __cplusplus
12353 extern "C"
12354 #endif
12355 char XmuConvertStandardSelection ();
12356 int
12357 main ()
12358 {
12359 return XmuConvertStandardSelection ();
12360 ;
12361 return 0;
12362 }
12363 _ACEOF
12364 if ac_fn_c_try_link "$LINENO"; then :
12365 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12366 else
12367 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12368 fi
12369 rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12374 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12375 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12376 cat >>confdefs.h <<_ACEOF
12377 #define HAVE_LIBXMU 1
12378 _ACEOF
12379
12380 LIBS="-lXmu $LIBS"
12381
12382 fi
12383
12384 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12385 fi
12386
12387
12388 LIBXMU=-lXmu
12389 case $opsys in
12390 ## These systems don't supply Xmu.
12391 hpux* | aix4-2 )
12392 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12393 ;;
12394 mingw32 )
12395 LIBXMU=
12396 ;;
12397 esac
12398
12399
12400 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12401 if test "${HAVE_X11}" = "yes"; then
12402 if test "${USE_X_TOOLKIT}" != "none"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12404 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12405 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 ac_check_lib_save_LIBS=$LIBS
12409 LIBS="-lXext $LIBS"
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412
12413 /* Override any GCC internal prototype to avoid an error.
12414 Use char because int might match the return type of a GCC
12415 builtin and then its argument prototype would still apply. */
12416 #ifdef __cplusplus
12417 extern "C"
12418 #endif
12419 char XShapeQueryExtension ();
12420 int
12421 main ()
12422 {
12423 return XShapeQueryExtension ();
12424 ;
12425 return 0;
12426 }
12427 _ACEOF
12428 if ac_fn_c_try_link "$LINENO"; then :
12429 ac_cv_lib_Xext_XShapeQueryExtension=yes
12430 else
12431 ac_cv_lib_Xext_XShapeQueryExtension=no
12432 fi
12433 rm -f core conftest.err conftest.$ac_objext \
12434 conftest$ac_exeext conftest.$ac_ext
12435 LIBS=$ac_check_lib_save_LIBS
12436 fi
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12438 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12439 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12440 cat >>confdefs.h <<_ACEOF
12441 #define HAVE_LIBXEXT 1
12442 _ACEOF
12443
12444 LIBS="-lXext $LIBS"
12445
12446 fi
12447
12448 fi
12449 fi
12450
12451 LIBXP=
12452 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12453 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12454 if test -d /usr/include/openmotif; then
12455 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12456 emacs_cv_openmotif=yes
12457 case "$canonical" in
12458 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12459 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12460 ;;
12461 *)
12462 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12463 esac
12464 else
12465 emacs_cv_openmotif=no
12466 fi
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12468 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12469 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474 #include <Xm/Xm.h>
12475 int
12476 main ()
12477 {
12478 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12479 int x = 5;
12480 #else
12481 Motif version prior to 2.1.
12482 #endif
12483 ;
12484 return 0;
12485 }
12486 _ACEOF
12487 if ac_fn_c_try_compile "$LINENO"; then :
12488 emacs_cv_motif_version_2_1=yes
12489 else
12490 emacs_cv_motif_version_2_1=no
12491 fi
12492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12493 fi
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12495 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12496 if test $emacs_cv_motif_version_2_1 = yes; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12498 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12499 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 ac_check_lib_save_LIBS=$LIBS
12503 LIBS="-lXp $LIBS"
12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12506
12507 /* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
12510 #ifdef __cplusplus
12511 extern "C"
12512 #endif
12513 char XpCreateContext ();
12514 int
12515 main ()
12516 {
12517 return XpCreateContext ();
12518 ;
12519 return 0;
12520 }
12521 _ACEOF
12522 if ac_fn_c_try_link "$LINENO"; then :
12523 ac_cv_lib_Xp_XpCreateContext=yes
12524 else
12525 ac_cv_lib_Xp_XpCreateContext=no
12526 fi
12527 rm -f core conftest.err conftest.$ac_objext \
12528 conftest$ac_exeext conftest.$ac_ext
12529 LIBS=$ac_check_lib_save_LIBS
12530 fi
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12532 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12533 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12534 LIBXP=-lXp
12535 fi
12536
12537 if test x$emacs_cv_openmotif = xyes; then
12538 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12539 fi
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12542 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12543 if test "${emacs_cv_lesstif+set}" = set; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 # We put this in CFLAGS temporarily to precede other -I options
12547 # that might be in CFLAGS temporarily.
12548 # We put this in CPPFLAGS where it precedes the other -I options.
12549 OLD_CPPFLAGS=$CPPFLAGS
12550 OLD_CFLAGS=$CFLAGS
12551 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12552 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12556 int
12557 main ()
12558 {
12559 int x = 5;
12560 ;
12561 return 0;
12562 }
12563 _ACEOF
12564 if ac_fn_c_try_compile "$LINENO"; then :
12565 emacs_cv_lesstif=yes
12566 else
12567 emacs_cv_lesstif=no
12568 fi
12569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 fi
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12572 $as_echo "$emacs_cv_lesstif" >&6; }
12573 if test $emacs_cv_lesstif = yes; then
12574 # Make sure this -I option remains in CPPFLAGS after it is set
12575 # back to REAL_CPPFLAGS.
12576 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12577 # have those other -I options anyway. Ultimately, having this
12578 # directory ultimately in CPPFLAGS will be enough.
12579 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12580 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12581 else
12582 CFLAGS=$OLD_CFLAGS
12583 CPPFLAGS=$OLD_CPPFLAGS
12584 fi
12585 fi
12586 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12587 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12588
12589 else
12590 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12591 fi
12592
12593
12594 fi
12595
12596
12597 USE_TOOLKIT_SCROLL_BARS=no
12598 if test "${with_toolkit_scroll_bars}" != "no"; then
12599 if test "${USE_X_TOOLKIT}" != "none"; then
12600 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12601 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12602
12603 HAVE_XAW3D=no
12604 USE_TOOLKIT_SCROLL_BARS=yes
12605 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12606 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12607
12608 USE_TOOLKIT_SCROLL_BARS=yes
12609 fi
12610 elif test "${HAVE_GTK}" = "yes"; then
12611 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12612
12613 USE_TOOLKIT_SCROLL_BARS=yes
12614 elif test "${HAVE_NS}" = "yes"; then
12615 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12616
12617 USE_TOOLKIT_SCROLL_BARS=yes
12618 elif test "${HAVE_W32}" = "yes"; then
12619 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12620
12621 USE_TOOLKIT_SCROLL_BARS=yes
12622 fi
12623 fi
12624
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12627
12628 #include <X11/Xlib.h>
12629 #include <X11/Xresource.h>
12630 int
12631 main ()
12632 {
12633 XIMProc callback;
12634 ;
12635 return 0;
12636 }
12637 _ACEOF
12638 if ac_fn_c_try_compile "$LINENO"; then :
12639 HAVE_XIM=yes
12640
12641 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12642
12643 else
12644 HAVE_XIM=no
12645 fi
12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647
12648
12649 if test "${with_xim}" != "no"; then
12650
12651 $as_echo "#define USE_XIM 1" >>confdefs.h
12652
12653 fi
12654
12655
12656 if test "${HAVE_XIM}" != "no"; then
12657 late_CFLAGS=$CFLAGS
12658 if test "$GCC" = yes; then
12659 CFLAGS="$CFLAGS --pedantic-errors"
12660 fi
12661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662 /* end confdefs.h. */
12663
12664 #include <X11/Xlib.h>
12665 #include <X11/Xresource.h>
12666 int
12667 main ()
12668 {
12669 Display *display;
12670 XrmDatabase db;
12671 char *res_name;
12672 char *res_class;
12673 XIMProc callback;
12674 XPointer *client_data;
12675 #ifndef __GNUC__
12676 /* If we're not using GCC, it's probably not XFree86, and this is
12677 probably right, but we can't use something like --pedantic-errors. */
12678 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12679 char*, XIMProc, XPointer*);
12680 #endif
12681 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12682 client_data);
12683 ;
12684 return 0;
12685 }
12686 _ACEOF
12687 if ac_fn_c_try_compile "$LINENO"; then :
12688 emacs_cv_arg6_star=yes
12689 fi
12690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 if test "$emacs_cv_arg6_star" = yes; then
12692 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12693
12694 else
12695 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12696
12697 fi
12698 CFLAGS=$late_CFLAGS
12699 fi
12700
12701 ### Start of font-backend (under any platform) section.
12702 # (nothing here yet -- this is a placeholder)
12703 ### End of font-backend (under any platform) section.
12704
12705 ### Start of font-backend (under X11) section.
12706 if test "${HAVE_X11}" = "yes"; then
12707
12708 succeeded=no
12709
12710 if test "$PKG_CONFIG" = "no" ; then
12711 HAVE_FC=no
12712 else
12713 PKG_CONFIG_MIN_VERSION=0.9.0
12714 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12716 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12717
12718 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12719 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12720 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12721 edit_cflags="
12722 s,///*,/,g
12723 s/^/ /
12724 s/ -I/ $isystem/g
12725 s/^ //
12726 "
12727 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12728 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12730 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12731 succeeded=yes
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12735 FONTCONFIG_CFLAGS=""
12736 FONTCONFIG_LIBS=""
12737 ## If we have a custom action on failure, don't print errors, but
12738 ## do set a variable so people can do so. Do it in a subshell
12739 ## to capture any diagnostics in invoking pkg-config.
12740 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12741
12742 fi
12743
12744
12745
12746 else
12747 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12748 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12749 fi
12750 fi
12751
12752 if test $succeeded = yes; then
12753 HAVE_FC=yes
12754 else
12755 HAVE_FC=no
12756 fi
12757
12758
12759 ## Use -lXft if available, unless `--with-xft=no'.
12760 HAVE_XFT=maybe
12761 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12762 with_xft="no";
12763 fi
12764 if test "x${with_xft}" != "xno"; then
12765
12766
12767 succeeded=no
12768
12769 if test "$PKG_CONFIG" = "no" ; then
12770 HAVE_XFT=no
12771 else
12772 PKG_CONFIG_MIN_VERSION=0.9.0
12773 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12775 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12776
12777 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12778 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12779 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12780 edit_cflags="
12781 s,///*,/,g
12782 s/^/ /
12783 s/ -I/ $isystem/g
12784 s/^ //
12785 "
12786 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12787 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12789 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12790 succeeded=yes
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 XFT_CFLAGS=""
12795 XFT_LIBS=""
12796 ## If we have a custom action on failure, don't print errors, but
12797 ## do set a variable so people can do so. Do it in a subshell
12798 ## to capture any diagnostics in invoking pkg-config.
12799 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12800
12801 fi
12802
12803
12804
12805 else
12806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12807 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12808 fi
12809 fi
12810
12811 if test $succeeded = yes; then
12812 :
12813 else
12814 HAVE_XFT=no
12815 fi
12816
12817 ## Because xftfont.c uses XRenderQueryExtension, we also
12818 ## need to link to -lXrender.
12819 HAVE_XRENDER=no
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12821 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12822 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 ac_check_lib_save_LIBS=$LIBS
12826 LIBS="-lXrender $LIBS"
12827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12829
12830 /* Override any GCC internal prototype to avoid an error.
12831 Use char because int might match the return type of a GCC
12832 builtin and then its argument prototype would still apply. */
12833 #ifdef __cplusplus
12834 extern "C"
12835 #endif
12836 char XRenderQueryExtension ();
12837 int
12838 main ()
12839 {
12840 return XRenderQueryExtension ();
12841 ;
12842 return 0;
12843 }
12844 _ACEOF
12845 if ac_fn_c_try_link "$LINENO"; then :
12846 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12847 else
12848 ac_cv_lib_Xrender_XRenderQueryExtension=no
12849 fi
12850 rm -f core conftest.err conftest.$ac_objext \
12851 conftest$ac_exeext conftest.$ac_ext
12852 LIBS=$ac_check_lib_save_LIBS
12853 fi
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12855 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12856 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12857 HAVE_XRENDER=yes
12858 fi
12859
12860 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12861 OLD_CPPFLAGS="$CPPFLAGS"
12862 OLD_CFLAGS="$CFLAGS"
12863 OLD_LIBS="$LIBS"
12864 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12865 CFLAGS="$CFLAGS $XFT_CFLAGS"
12866 XFT_LIBS="-lXrender $XFT_LIBS"
12867 LIBS="$XFT_LIBS $LIBS"
12868 ac_fn_c_check_header_compile "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
12869 "
12870 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12872 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12873 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 ac_check_lib_save_LIBS=$LIBS
12877 LIBS="-lXft $XFT_LIBS $LIBS"
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880
12881 /* Override any GCC internal prototype to avoid an error.
12882 Use char because int might match the return type of a GCC
12883 builtin and then its argument prototype would still apply. */
12884 #ifdef __cplusplus
12885 extern "C"
12886 #endif
12887 char XftFontOpen ();
12888 int
12889 main ()
12890 {
12891 return XftFontOpen ();
12892 ;
12893 return 0;
12894 }
12895 _ACEOF
12896 if ac_fn_c_try_link "$LINENO"; then :
12897 ac_cv_lib_Xft_XftFontOpen=yes
12898 else
12899 ac_cv_lib_Xft_XftFontOpen=no
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12904 fi
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12906 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12907 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12908 HAVE_XFT=yes
12909 fi
12910
12911 fi
12912
12913
12914
12915 if test "${HAVE_XFT}" = "yes"; then
12916
12917 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12918
12919
12920 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12921 else
12922 CPPFLAGS="$OLD_CPPFLAGS"
12923 CFLAGS="$OLD_CFLAGS"
12924 LIBS="$OLD_LIBS"
12925 fi # "${HAVE_XFT}" = "yes"
12926 fi # "$HAVE_XFT" != no
12927 fi # "x${with_xft}" != "xno"
12928
12929 ## We used to allow building with FreeType and without Xft.
12930 ## However, the ftx font backend driver is not in good shape.
12931 if test "$HAVE_XFT" != "yes"; then
12932 HAVE_XFT=no
12933 HAVE_FREETYPE=no
12934 else
12935
12936 succeeded=no
12937
12938 if test "$PKG_CONFIG" = "no" ; then
12939 HAVE_FREETYPE=no
12940 else
12941 PKG_CONFIG_MIN_VERSION=0.9.0
12942 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12944 $as_echo_n "checking for freetype2... " >&6; }
12945
12946 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12947 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12948 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12949 edit_cflags="
12950 s,///*,/,g
12951 s/^/ /
12952 s/ -I/ $isystem/g
12953 s/^ //
12954 "
12955 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12956 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12958 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12959 succeeded=yes
12960 else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962 $as_echo "no" >&6; }
12963 FREETYPE_CFLAGS=""
12964 FREETYPE_LIBS=""
12965 ## If we have a custom action on failure, don't print errors, but
12966 ## do set a variable so people can do so. Do it in a subshell
12967 ## to capture any diagnostics in invoking pkg-config.
12968 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12969
12970 fi
12971
12972
12973
12974 else
12975 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12976 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12977 fi
12978 fi
12979
12980 if test $succeeded = yes; then
12981 HAVE_FREETYPE=yes
12982 else
12983 HAVE_FREETYPE=no
12984 fi
12985
12986
12987 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12988 fi
12989
12990 HAVE_LIBOTF=no
12991 if test "${HAVE_FREETYPE}" = "yes"; then
12992
12993 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12994
12995 if test "${with_libotf}" != "no"; then
12996
12997 succeeded=no
12998
12999 if test "$PKG_CONFIG" = "no" ; then
13000 HAVE_LIBOTF=no
13001 else
13002 PKG_CONFIG_MIN_VERSION=0.9.0
13003 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13005 $as_echo_n "checking for libotf... " >&6; }
13006
13007 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13008 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13009 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13010 edit_cflags="
13011 s,///*,/,g
13012 s/^/ /
13013 s/ -I/ $isystem/g
13014 s/^ //
13015 "
13016 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13017 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13019 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13020 succeeded=yes
13021 else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13024 LIBOTF_CFLAGS=""
13025 LIBOTF_LIBS=""
13026 ## If we have a custom action on failure, don't print errors, but
13027 ## do set a variable so people can do so. Do it in a subshell
13028 ## to capture any diagnostics in invoking pkg-config.
13029 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13030
13031 fi
13032
13033
13034
13035 else
13036 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13037 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13038 fi
13039 fi
13040
13041 if test $succeeded = yes; then
13042 HAVE_LIBOTF=yes
13043 else
13044 HAVE_LIBOTF=no
13045 fi
13046
13047 if test "$HAVE_LIBOTF" = "yes"; then
13048
13049 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13050
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13052 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13053 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 ac_check_lib_save_LIBS=$LIBS
13057 LIBS="-lotf $LIBS"
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060
13061 /* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13064 #ifdef __cplusplus
13065 extern "C"
13066 #endif
13067 char OTF_get_variation_glyphs ();
13068 int
13069 main ()
13070 {
13071 return OTF_get_variation_glyphs ();
13072 ;
13073 return 0;
13074 }
13075 _ACEOF
13076 if ac_fn_c_try_link "$LINENO"; then :
13077 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13078 else
13079 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13080 fi
13081 rm -f core conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13083 LIBS=$ac_check_lib_save_LIBS
13084 fi
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13086 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13087 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13088 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13089 else
13090 HAVE_OTF_GET_VARIATION_GLYPHS=no
13091 fi
13092
13093 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13094
13095 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13096
13097 fi
13098 fi
13099 fi
13100 fi
13101
13102 HAVE_M17N_FLT=no
13103 if test "${HAVE_LIBOTF}" = yes; then
13104 if test "${with_m17n_flt}" != "no"; then
13105
13106 succeeded=no
13107
13108 if test "$PKG_CONFIG" = "no" ; then
13109 HAVE_M17N_FLT=no
13110 else
13111 PKG_CONFIG_MIN_VERSION=0.9.0
13112 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13114 $as_echo_n "checking for m17n-flt... " >&6; }
13115
13116 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13117 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13118 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13119 edit_cflags="
13120 s,///*,/,g
13121 s/^/ /
13122 s/ -I/ $isystem/g
13123 s/^ //
13124 "
13125 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13126 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13128 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13129 succeeded=yes
13130 else
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132 $as_echo "no" >&6; }
13133 M17N_FLT_CFLAGS=""
13134 M17N_FLT_LIBS=""
13135 ## If we have a custom action on failure, don't print errors, but
13136 ## do set a variable so people can do so. Do it in a subshell
13137 ## to capture any diagnostics in invoking pkg-config.
13138 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13139
13140 fi
13141
13142
13143
13144 else
13145 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13146 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13147 fi
13148 fi
13149
13150 if test $succeeded = yes; then
13151 HAVE_M17N_FLT=yes
13152 else
13153 HAVE_M17N_FLT=no
13154 fi
13155
13156 if test "$HAVE_M17N_FLT" = "yes"; then
13157
13158 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13159
13160 fi
13161 fi
13162 fi
13163 else
13164 HAVE_XFT=no
13165 HAVE_FREETYPE=no
13166 HAVE_LIBOTF=no
13167 HAVE_M17N_FLT=no
13168 fi
13169
13170 ### End of font-backend (under X11) section.
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181 ### Use -lXpm if available, unless `--with-xpm=no'.
13182 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13183 HAVE_XPM=no
13184 LIBXPM=
13185 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13186 if test "${with_xpm}" != "no"; then
13187 SAVE_CPPFLAGS="$CPPFLAGS"
13188 SAVE_LDFLAGS="$LDFLAGS"
13189 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
13190 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
13191 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13192 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13194 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13195 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13196 $as_echo_n "(cached) " >&6
13197 else
13198 ac_check_lib_save_LIBS=$LIBS
13199 LIBS="-lXpm $LIBS"
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13202
13203 /* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
13206 #ifdef __cplusplus
13207 extern "C"
13208 #endif
13209 char XpmReadFileToImage ();
13210 int
13211 main ()
13212 {
13213 return XpmReadFileToImage ();
13214 ;
13215 return 0;
13216 }
13217 _ACEOF
13218 if ac_fn_c_try_link "$LINENO"; then :
13219 ac_cv_lib_Xpm_XpmReadFileToImage=yes
13220 else
13221 ac_cv_lib_Xpm_XpmReadFileToImage=no
13222 fi
13223 rm -f core conftest.err conftest.$ac_objext \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13226 fi
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13228 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13229 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
13230 HAVE_XPM=yes
13231 fi
13232
13233 fi
13234
13235
13236 if test "${HAVE_XPM}" = "yes"; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13238 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241 #include "X11/xpm.h"
13242 #ifndef XpmReturnAllocPixels
13243 no_return_alloc_pixels
13244 #endif
13245
13246 _ACEOF
13247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13248 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13249 HAVE_XPM=no
13250 else
13251 HAVE_XPM=yes
13252 fi
13253 rm -f conftest*
13254
13255
13256 if test "${HAVE_XPM}" = "yes"; then
13257 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259 $as_echo "yes" >&6; }
13260 else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13263 CPPFLAGS="$SAVE_CPPFLAGS"
13264 LDFLAGS="$SAVE_LDFLAGS"
13265 fi
13266 fi
13267 fi
13268
13269 if test "${HAVE_XPM}" = "yes"; then
13270
13271 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13272
13273 LIBXPM=-lXpm
13274 fi
13275 fi
13276
13277 if test "${HAVE_X11}" = "yes"; then
13278 if test "${with_xpm}" != "no"; then
13279 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13280 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13282 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13283 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 ac_check_lib_save_LIBS=$LIBS
13287 LIBS="-lXpm -lX11 $LIBS"
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13290
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char XpmReadFileToPixmap ();
13298 int
13299 main ()
13300 {
13301 return XpmReadFileToPixmap ();
13302 ;
13303 return 0;
13304 }
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"; then :
13307 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13308 else
13309 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13310 fi
13311 rm -f core conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
13313 LIBS=$ac_check_lib_save_LIBS
13314 fi
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13316 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13317 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13318 HAVE_XPM=yes
13319 fi
13320
13321 fi
13322
13323
13324 if test "${HAVE_XPM}" = "yes"; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13326 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 #include "X11/xpm.h"
13330 #ifndef XpmReturnAllocPixels
13331 no_return_alloc_pixels
13332 #endif
13333
13334 _ACEOF
13335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13336 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13337 HAVE_XPM=no
13338 else
13339 HAVE_XPM=yes
13340 fi
13341 rm -f conftest*
13342
13343
13344 if test "${HAVE_XPM}" = "yes"; then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13346 $as_echo "yes" >&6; }
13347 else
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 $as_echo "no" >&6; }
13350 fi
13351 fi
13352 fi
13353
13354 if test "${HAVE_XPM}" = "yes"; then
13355
13356 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13357
13358 LIBXPM=-lXpm
13359 fi
13360 fi
13361
13362 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13363 ### slightly different requirements wrt image libraries (it doesn't
13364 ### use -lXpm because it loads the xpm shared library dynamically at
13365 ### run time).
13366 if test "${opsys}" = "mingw32"; then
13367 if test "${with_xpm}" != "no"; then
13368 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13369 #define FOR_MSW 1
13370 "
13371 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13372 HAVE_XPM=yes
13373 else
13374 HAVE_XPM=no
13375 fi
13376
13377
13378 fi
13379
13380 if test "${HAVE_XPM}" = "yes"; then
13381
13382 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13383
13384 fi
13385 fi
13386
13387
13388
13389 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13390 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13391 HAVE_JPEG=no
13392 LIBJPEG=
13393 if test "${opsys}" = "mingw32"; then
13394 if test "${with_jpeg}" != "no"; then
13395 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13396 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13397 HAVE_JPEG=yes
13398 else
13399 HAVE_JPEG=no
13400 fi
13401
13402
13403 fi
13404 if test "${HAVE_JPEG}" = "yes"; then
13405 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13406
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13409 #include <jpeglib.h>
13410 version=JPEG_LIB_VERSION
13411
13412 _ACEOF
13413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13414 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13415 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13416
13417 else
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13419 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13420 HAVE_JPEG=no
13421 fi
13422 rm -f conftest*
13423
13424 fi
13425 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13426 if test "${with_jpeg}" != "no"; then
13427 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13428 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13430 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13431 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-ljpeg $LIBS"
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13442 #ifdef __cplusplus
13443 extern "C"
13444 #endif
13445 char jpeg_destroy_compress ();
13446 int
13447 main ()
13448 {
13449 return jpeg_destroy_compress ();
13450 ;
13451 return 0;
13452 }
13453 _ACEOF
13454 if ac_fn_c_try_link "$LINENO"; then :
13455 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13456 else
13457 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext \
13460 conftest$ac_exeext conftest.$ac_ext
13461 LIBS=$ac_check_lib_save_LIBS
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13464 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13465 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13466 HAVE_JPEG=yes
13467 fi
13468
13469 fi
13470
13471
13472 fi
13473
13474 if test "${HAVE_JPEG}" = "yes"; then
13475 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13476
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479 #include <jpeglib.h>
13480 version=JPEG_LIB_VERSION
13481
13482 _ACEOF
13483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13484 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13485 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13486
13487 else
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13489 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13490 HAVE_JPEG=no
13491 fi
13492 rm -f conftest*
13493
13494 fi
13495 if test "${HAVE_JPEG}" = "yes"; then
13496 LIBJPEG=-ljpeg
13497 fi
13498 fi
13499
13500
13501 ### Use -lpng if available, unless `--with-png=no'.
13502 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13503 HAVE_PNG=no
13504 LIBPNG=
13505 if test "${opsys}" = "mingw32"; then
13506 if test "${with_png}" != "no"; then
13507 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13508 if test "x$ac_cv_header_png_h" = x""yes; then :
13509 HAVE_PNG=yes
13510 else
13511 HAVE_PNG=no
13512 fi
13513
13514
13515 fi
13516 if test "${HAVE_PNG}" = "yes"; then
13517
13518 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13519
13520
13521 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13522 # include <libpng/png.h>
13523 #else
13524 # include <png.h>
13525 #endif
13526
13527 "
13528 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13529
13530 else
13531
13532 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13533
13534 fi
13535
13536 fi
13537 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13538 if test "${with_png}" != "no"; then
13539 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13540 # in /usr/include/libpng.
13541 for ac_header in png.h libpng/png.h
13542 do :
13543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13544 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13545 eval as_val=\$$as_ac_Header
13546 if test "x$as_val" = x""yes; then :
13547 cat >>confdefs.h <<_ACEOF
13548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13549 _ACEOF
13550 break
13551 fi
13552
13553 done
13554
13555 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13557 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13558 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 ac_check_lib_save_LIBS=$LIBS
13562 LIBS="-lpng -lz -lm $LIBS"
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565
13566 /* Override any GCC internal prototype to avoid an error.
13567 Use char because int might match the return type of a GCC
13568 builtin and then its argument prototype would still apply. */
13569 #ifdef __cplusplus
13570 extern "C"
13571 #endif
13572 char png_get_channels ();
13573 int
13574 main ()
13575 {
13576 return png_get_channels ();
13577 ;
13578 return 0;
13579 }
13580 _ACEOF
13581 if ac_fn_c_try_link "$LINENO"; then :
13582 ac_cv_lib_png_png_get_channels=yes
13583 else
13584 ac_cv_lib_png_png_get_channels=no
13585 fi
13586 rm -f core conftest.err conftest.$ac_objext \
13587 conftest$ac_exeext conftest.$ac_ext
13588 LIBS=$ac_check_lib_save_LIBS
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13591 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13592 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13593 HAVE_PNG=yes
13594 fi
13595
13596 fi
13597 fi
13598
13599 if test "${HAVE_PNG}" = "yes"; then
13600
13601 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13602
13603 LIBPNG="-lpng -lz -lm"
13604
13605 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13606 # include <libpng/png.h>
13607 #else
13608 # include <png.h>
13609 #endif
13610
13611 "
13612 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13613
13614 else
13615
13616 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13617
13618 fi
13619
13620 fi
13621 fi
13622
13623
13624 ### Use -ltiff if available, unless `--with-tiff=no'.
13625 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
13626 HAVE_TIFF=no
13627 LIBTIFF=
13628 if test "${opsys}" = "mingw32"; then
13629 if test "${with_tiff}" != "no"; then
13630 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13631 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13632 HAVE_TIFF=yes
13633 else
13634 HAVE_TIFF=no
13635 fi
13636
13637
13638 fi
13639 if test "${HAVE_TIFF}" = "yes"; then
13640
13641 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13642
13643 fi
13644 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13645 if test "${with_tiff}" != "no"; then
13646 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13647 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13648 tifflibs="-lz -lm"
13649 # At least one tiff package requires the jpeg library.
13650 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13652 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13653 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 ac_check_lib_save_LIBS=$LIBS
13657 LIBS="-ltiff $tifflibs $LIBS"
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660
13661 /* Override any GCC internal prototype to avoid an error.
13662 Use char because int might match the return type of a GCC
13663 builtin and then its argument prototype would still apply. */
13664 #ifdef __cplusplus
13665 extern "C"
13666 #endif
13667 char TIFFGetVersion ();
13668 int
13669 main ()
13670 {
13671 return TIFFGetVersion ();
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_c_try_link "$LINENO"; then :
13677 ac_cv_lib_tiff_TIFFGetVersion=yes
13678 else
13679 ac_cv_lib_tiff_TIFFGetVersion=no
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13683 LIBS=$ac_check_lib_save_LIBS
13684 fi
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13686 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13687 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13688 HAVE_TIFF=yes
13689 fi
13690
13691 fi
13692
13693
13694 fi
13695
13696 if test "${HAVE_TIFF}" = "yes"; then
13697
13698 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13699
13700 LIBTIFF=-ltiff
13701 fi
13702 fi
13703
13704
13705 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13706 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
13707 HAVE_GIF=no
13708 LIBGIF=
13709 if test "${opsys}" = "mingw32"; then
13710 if test "${with_gif}" != "no"; then
13711 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13712 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13713 HAVE_GIF=yes
13714 else
13715 HAVE_GIF=no
13716 fi
13717
13718
13719 fi
13720 if test "${HAVE_GIF}" = "yes"; then
13721
13722 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13723
13724 fi
13725 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13726 || test "${HAVE_W32}" = "yes"; then
13727 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13728 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13729 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13730 # Earlier versions can crash Emacs.
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13732 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13733 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13734 $as_echo_n "(cached) " >&6
13735 else
13736 ac_check_lib_save_LIBS=$LIBS
13737 LIBS="-lgif $LIBS"
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13740
13741 /* Override any GCC internal prototype to avoid an error.
13742 Use char because int might match the return type of a GCC
13743 builtin and then its argument prototype would still apply. */
13744 #ifdef __cplusplus
13745 extern "C"
13746 #endif
13747 char EGifPutExtensionLast ();
13748 int
13749 main ()
13750 {
13751 return EGifPutExtensionLast ();
13752 ;
13753 return 0;
13754 }
13755 _ACEOF
13756 if ac_fn_c_try_link "$LINENO"; then :
13757 ac_cv_lib_gif_EGifPutExtensionLast=yes
13758 else
13759 ac_cv_lib_gif_EGifPutExtensionLast=no
13760 fi
13761 rm -f core conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13763 LIBS=$ac_check_lib_save_LIBS
13764 fi
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13766 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13767 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13768 HAVE_GIF=yes
13769 else
13770 HAVE_GIF=maybe
13771 fi
13772
13773 fi
13774
13775
13776
13777 if test "$HAVE_GIF" = yes; then
13778 LIBGIF=-lgif
13779 elif test "$HAVE_GIF" = maybe; then
13780 # If gif_lib.h but no libgif, try libungif.
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13782 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13783 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 ac_check_lib_save_LIBS=$LIBS
13787 LIBS="-lungif $LIBS"
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790
13791 /* Override any GCC internal prototype to avoid an error.
13792 Use char because int might match the return type of a GCC
13793 builtin and then its argument prototype would still apply. */
13794 #ifdef __cplusplus
13795 extern "C"
13796 #endif
13797 char EGifPutExtensionLast ();
13798 int
13799 main ()
13800 {
13801 return EGifPutExtensionLast ();
13802 ;
13803 return 0;
13804 }
13805 _ACEOF
13806 if ac_fn_c_try_link "$LINENO"; then :
13807 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13808 else
13809 ac_cv_lib_ungif_EGifPutExtensionLast=no
13810 fi
13811 rm -f core conftest.err conftest.$ac_objext \
13812 conftest$ac_exeext conftest.$ac_ext
13813 LIBS=$ac_check_lib_save_LIBS
13814 fi
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13816 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13817 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13818 HAVE_GIF=yes
13819 else
13820 HAVE_GIF=no
13821 fi
13822
13823 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13824 fi
13825
13826 if test "${HAVE_GIF}" = "yes"; then
13827
13828 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13829
13830 fi
13831 fi
13832
13833
13834 if test "${HAVE_X11}" = "yes"; then
13835 MISSING=""
13836 WITH_NO=""
13837 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13838 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13839 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13840 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13841 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13842 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13843 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13844 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13845 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13846 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13847
13848 if test "X${MISSING}" != X; then
13849 as_fn_error "The following required libraries were not found:
13850 $MISSING
13851 Maybe some development libraries/packages are missing?
13852 If you don't want to link with them give
13853 $WITH_NO
13854 as options to configure" "$LINENO" 5
13855 fi
13856 fi
13857
13858 ### Use -lgpm if available, unless `--with-gpm=no'.
13859 HAVE_GPM=no
13860 LIBGPM=
13861 if test "${with_gpm}" != "no"; then
13862 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13863 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13865 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13866 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13867 $as_echo_n "(cached) " >&6
13868 else
13869 ac_check_lib_save_LIBS=$LIBS
13870 LIBS="-lgpm $LIBS"
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873
13874 /* Override any GCC internal prototype to avoid an error.
13875 Use char because int might match the return type of a GCC
13876 builtin and then its argument prototype would still apply. */
13877 #ifdef __cplusplus
13878 extern "C"
13879 #endif
13880 char Gpm_Open ();
13881 int
13882 main ()
13883 {
13884 return Gpm_Open ();
13885 ;
13886 return 0;
13887 }
13888 _ACEOF
13889 if ac_fn_c_try_link "$LINENO"; then :
13890 ac_cv_lib_gpm_Gpm_Open=yes
13891 else
13892 ac_cv_lib_gpm_Gpm_Open=no
13893 fi
13894 rm -f core conftest.err conftest.$ac_objext \
13895 conftest$ac_exeext conftest.$ac_ext
13896 LIBS=$ac_check_lib_save_LIBS
13897 fi
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13899 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13900 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13901 HAVE_GPM=yes
13902 fi
13903
13904 fi
13905
13906
13907
13908 if test "${HAVE_GPM}" = "yes"; then
13909
13910 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13911
13912 LIBGPM=-lgpm
13913 fi
13914 fi
13915
13916
13917
13918
13919
13920
13921 GNUSTEP_CFLAGS=
13922 ### Use NeXTstep API to implement GUI.
13923 if test "${HAVE_NS}" = "yes"; then
13924
13925 $as_echo "#define HAVE_NS 1" >>confdefs.h
13926
13927 if test "${NS_IMPL_COCOA}" = "yes"; then
13928
13929 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13930
13931 fi
13932 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13933
13934 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13935
13936 # See also .m.o rule in Makefile.in */
13937 # FIXME: are all these flags really needed? Document here why. */
13938 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13939 ## Extra CFLAGS applied to src/*.m files.
13940 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"
13941 fi
13942 # We also have mouse menus.
13943 HAVE_MENUS=yes
13944 OTHER_FILES=ns-app
13945 fi
13946
13947 if test "${HAVE_W32}" = "yes"; then
13948 HAVE_MENUS=yes
13949 fi
13950
13951 ### Use session management (-lSM -lICE) if available
13952 HAVE_X_SM=no
13953 LIBXSM=
13954 if test "${HAVE_X11}" = "yes"; then
13955 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13956 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13958 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13959 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13962 ac_check_lib_save_LIBS=$LIBS
13963 LIBS="-lSM -lICE $LIBS"
13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13966
13967 /* Override any GCC internal prototype to avoid an error.
13968 Use char because int might match the return type of a GCC
13969 builtin and then its argument prototype would still apply. */
13970 #ifdef __cplusplus
13971 extern "C"
13972 #endif
13973 char SmcOpenConnection ();
13974 int
13975 main ()
13976 {
13977 return SmcOpenConnection ();
13978 ;
13979 return 0;
13980 }
13981 _ACEOF
13982 if ac_fn_c_try_link "$LINENO"; then :
13983 ac_cv_lib_SM_SmcOpenConnection=yes
13984 else
13985 ac_cv_lib_SM_SmcOpenConnection=no
13986 fi
13987 rm -f core conftest.err conftest.$ac_objext \
13988 conftest$ac_exeext conftest.$ac_ext
13989 LIBS=$ac_check_lib_save_LIBS
13990 fi
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13992 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13993 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13994 HAVE_X_SM=yes
13995 fi
13996
13997 fi
13998
13999
14000
14001 if test "${HAVE_X_SM}" = "yes"; then
14002
14003 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14004
14005 LIBXSM="-lSM -lICE"
14006 case "$LIBS" in
14007 *-lSM*) ;;
14008 *) LIBS="$LIBXSM $LIBS" ;;
14009 esac
14010 fi
14011 fi
14012
14013
14014 ### Use XRandr (-lXrandr) if available
14015 HAVE_XRANDR=no
14016 if test "${HAVE_X11}" = "yes"; then
14017 XRANDR_REQUIRED=1.2.2
14018 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
14019
14020 succeeded=no
14021
14022 if test "$PKG_CONFIG" = "no" ; then
14023 HAVE_XRANDR=no
14024 else
14025 PKG_CONFIG_MIN_VERSION=0.9.0
14026 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14028 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14029
14030 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14031 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14032 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14033 edit_cflags="
14034 s,///*,/,g
14035 s/^/ /
14036 s/ -I/ $isystem/g
14037 s/^ //
14038 "
14039 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14040 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14042 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14043 succeeded=yes
14044 else
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 $as_echo "no" >&6; }
14047 XRANDR_CFLAGS=""
14048 XRANDR_LIBS=""
14049 ## If we have a custom action on failure, don't print errors, but
14050 ## do set a variable so people can do so. Do it in a subshell
14051 ## to capture any diagnostics in invoking pkg-config.
14052 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14053
14054 fi
14055
14056
14057
14058 else
14059 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14060 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14061 fi
14062 fi
14063
14064 if test $succeeded = yes; then
14065 HAVE_XRANDR=yes
14066 else
14067 HAVE_XRANDR=no
14068 fi
14069
14070 if test $HAVE_XRANDR = no; then
14071 # Test old way in case pkg-config doesn't have it (older machines).
14072 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14073 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14075 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14076 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 ac_check_lib_save_LIBS=$LIBS
14080 LIBS="-lXrandr $LIBS"
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14083
14084 /* Override any GCC internal prototype to avoid an error.
14085 Use char because int might match the return type of a GCC
14086 builtin and then its argument prototype would still apply. */
14087 #ifdef __cplusplus
14088 extern "C"
14089 #endif
14090 char XRRGetScreenResources ();
14091 int
14092 main ()
14093 {
14094 return XRRGetScreenResources ();
14095 ;
14096 return 0;
14097 }
14098 _ACEOF
14099 if ac_fn_c_try_link "$LINENO"; then :
14100 ac_cv_lib_Xrandr_XRRGetScreenResources=yes
14101 else
14102 ac_cv_lib_Xrandr_XRRGetScreenResources=no
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext \
14105 conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14107 fi
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14109 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14110 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x""yes; then :
14111 HAVE_XRANDR=yes
14112 fi
14113
14114 fi
14115
14116
14117 if test $HAVE_XRANDR = yes; then
14118 XRANDR_LIBS=-lXrandr
14119
14120 fi
14121 fi
14122 if test $HAVE_XRANDR = yes; then
14123 SAVE_CFLAGS="$CFLAGS"
14124 SAVE_LIBS="$LIBS"
14125 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
14126 LIBS="$XRANDR_LIBS $LIBS"
14127 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14128 do :
14129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14131 eval as_val=\$$as_ac_var
14132 if test "x$as_val" = x""yes; then :
14133 cat >>confdefs.h <<_ACEOF
14134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14135 _ACEOF
14136
14137 fi
14138 done
14139
14140 CFLAGS="$SAVE_CFLAGS"
14141 LIBS="$SAVE_LIBS"
14142
14143
14144 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14145
14146 fi
14147 fi
14148
14149 ### Use Xinerama (-lXinerama) if available
14150 HAVE_XINERAMA=no
14151 if test "${HAVE_X11}" = "yes"; then
14152 XINERAMA_REQUIRED=1.0.2
14153 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
14154
14155 succeeded=no
14156
14157 if test "$PKG_CONFIG" = "no" ; then
14158 HAVE_XINERAMA=no
14159 else
14160 PKG_CONFIG_MIN_VERSION=0.9.0
14161 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14163 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14164
14165 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14166 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14167 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14168 edit_cflags="
14169 s,///*,/,g
14170 s/^/ /
14171 s/ -I/ $isystem/g
14172 s/^ //
14173 "
14174 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14175 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14177 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14178 succeeded=yes
14179 else
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14182 XINERAMA_CFLAGS=""
14183 XINERAMA_LIBS=""
14184 ## If we have a custom action on failure, don't print errors, but
14185 ## do set a variable so people can do so. Do it in a subshell
14186 ## to capture any diagnostics in invoking pkg-config.
14187 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14188
14189 fi
14190
14191
14192
14193 else
14194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14196 fi
14197 fi
14198
14199 if test $succeeded = yes; then
14200 HAVE_XINERAMA=yes
14201 else
14202 HAVE_XINERAMA=no
14203 fi
14204
14205 if test $HAVE_XINERAMA = no; then
14206 # Test old way in case pkg-config doesn't have it (older machines).
14207 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14208 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14210 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14211 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 ac_check_lib_save_LIBS=$LIBS
14215 LIBS="-lXinerama $LIBS"
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218
14219 /* Override any GCC internal prototype to avoid an error.
14220 Use char because int might match the return type of a GCC
14221 builtin and then its argument prototype would still apply. */
14222 #ifdef __cplusplus
14223 extern "C"
14224 #endif
14225 char XineramaQueryExtension ();
14226 int
14227 main ()
14228 {
14229 return XineramaQueryExtension ();
14230 ;
14231 return 0;
14232 }
14233 _ACEOF
14234 if ac_fn_c_try_link "$LINENO"; then :
14235 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
14236 else
14237 ac_cv_lib_Xinerama_XineramaQueryExtension=no
14238 fi
14239 rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14241 LIBS=$ac_check_lib_save_LIBS
14242 fi
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14244 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14245 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
14246 HAVE_XINERAMA=yes
14247 fi
14248
14249 fi
14250
14251
14252 if test $HAVE_XINERAMA = yes; then
14253 XINERAMA_LIBS=-lXinerama
14254
14255 fi
14256 fi
14257 if test $HAVE_XINERAMA = yes; then
14258
14259 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14260
14261 fi
14262 fi
14263
14264
14265 ### Use libxml (-lxml2) if available
14266 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14267 HAVE_LIBXML2=no
14268 if test "${with_xml2}" != "no"; then
14269 ### I'm not sure what the version number should be, so I just guessed.
14270
14271 succeeded=no
14272
14273 if test "$PKG_CONFIG" = "no" ; then
14274 HAVE_LIBXML2=no
14275 else
14276 PKG_CONFIG_MIN_VERSION=0.9.0
14277 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14279 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14280
14281 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14282 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14283 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14284 edit_cflags="
14285 s,///*,/,g
14286 s/^/ /
14287 s/ -I/ $isystem/g
14288 s/^ //
14289 "
14290 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14291 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14293 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14294 succeeded=yes
14295 else
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14297 $as_echo "no" >&6; }
14298 LIBXML2_CFLAGS=""
14299 LIBXML2_LIBS=""
14300 ## If we have a custom action on failure, don't print errors, but
14301 ## do set a variable so people can do so. Do it in a subshell
14302 ## to capture any diagnostics in invoking pkg-config.
14303 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14304
14305 fi
14306
14307
14308
14309 else
14310 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14311 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14312 fi
14313 fi
14314
14315 if test $succeeded = yes; then
14316 HAVE_LIBXML2=yes
14317 else
14318 HAVE_LIBXML2=no
14319 fi
14320
14321 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14322 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14323 SAVE_CPPFLAGS="$CPPFLAGS"
14324 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
14325 ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14326 if test "x$ac_cv_header_libxml_HTMLparser_h" = x""yes; then :
14327 ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14328 "
14329 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x""yes; then :
14330 HAVE_LIBXML2=yes
14331 fi
14332
14333 fi
14334
14335
14336 CPPFLAGS="$SAVE_CPPFLAGS"
14337 if test "${HAVE_LIBXML2}" = "yes"; then
14338 LIBXML2_LIBS="-lxml2"
14339 LIBXML2_CFLAGS="-I/usr/include/libxml2"
14340 fi
14341 fi
14342 if test "${HAVE_LIBXML2}" = "yes"; then
14343 if test "${opsys}" != "mingw32"; then
14344 LIBS="$LIBXML2_LIBS $LIBS"
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14346 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14347 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14348 $as_echo_n "(cached) " >&6
14349 else
14350 ac_check_lib_save_LIBS=$LIBS
14351 LIBS="-lxml2 $LIBS"
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14354
14355 /* Override any GCC internal prototype to avoid an error.
14356 Use char because int might match the return type of a GCC
14357 builtin and then its argument prototype would still apply. */
14358 #ifdef __cplusplus
14359 extern "C"
14360 #endif
14361 char htmlReadMemory ();
14362 int
14363 main ()
14364 {
14365 return htmlReadMemory ();
14366 ;
14367 return 0;
14368 }
14369 _ACEOF
14370 if ac_fn_c_try_link "$LINENO"; then :
14371 ac_cv_lib_xml2_htmlReadMemory=yes
14372 else
14373 ac_cv_lib_xml2_htmlReadMemory=no
14374 fi
14375 rm -f core conftest.err conftest.$ac_objext \
14376 conftest$ac_exeext conftest.$ac_ext
14377 LIBS=$ac_check_lib_save_LIBS
14378 fi
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14380 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14381 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14382 HAVE_LIBXML2=yes
14383 else
14384 HAVE_LIBXML2=no
14385 fi
14386
14387 else
14388 LIBXML2_LIBS=""
14389 fi
14390 if test "${HAVE_LIBXML2}" = "yes"; then
14391
14392 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14393
14394 else
14395 LIBXML2_LIBS=""
14396 LIBXML2_CFLAGS=""
14397 fi
14398 fi
14399 fi
14400
14401
14402
14403 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14404 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14405 if test "${opsys}" = "mingw32"; then
14406 emacs_cv_netdb_declares_h_errno=yes
14407 fi
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14409 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14410 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14411 $as_echo_n "(cached) " >&6
14412 else
14413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414 /* end confdefs.h. */
14415 #include <netdb.h>
14416 int
14417 main ()
14418 {
14419 return h_errno;
14420 ;
14421 return 0;
14422 }
14423 _ACEOF
14424 if ac_fn_c_try_link "$LINENO"; then :
14425 emacs_cv_netdb_declares_h_errno=yes
14426 else
14427 emacs_cv_netdb_declares_h_errno=no
14428 fi
14429 rm -f core conftest.err conftest.$ac_objext \
14430 conftest$ac_exeext conftest.$ac_ext
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14433 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14434 if test $emacs_cv_netdb_declares_h_errno = yes; then
14435
14436 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14437
14438 fi
14439
14440 # sqrt and other floating-point functions such as fmod and frexp
14441 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14442 if test "${opsys}" != "mingw32"; then
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14444 $as_echo_n "checking for sqrt in -lm... " >&6; }
14445 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448 ac_check_lib_save_LIBS=$LIBS
14449 LIBS="-lm $LIBS"
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452
14453 /* Override any GCC internal prototype to avoid an error.
14454 Use char because int might match the return type of a GCC
14455 builtin and then its argument prototype would still apply. */
14456 #ifdef __cplusplus
14457 extern "C"
14458 #endif
14459 char sqrt ();
14460 int
14461 main ()
14462 {
14463 return sqrt ();
14464 ;
14465 return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_c_try_link "$LINENO"; then :
14469 ac_cv_lib_m_sqrt=yes
14470 else
14471 ac_cv_lib_m_sqrt=no
14472 fi
14473 rm -f core conftest.err conftest.$ac_objext \
14474 conftest$ac_exeext conftest.$ac_ext
14475 LIBS=$ac_check_lib_save_LIBS
14476 fi
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14478 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14479 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14480 cat >>confdefs.h <<_ACEOF
14481 #define HAVE_LIBM 1
14482 _ACEOF
14483
14484 LIBS="-lm $LIBS"
14485
14486 fi
14487
14488 fi
14489
14490 # Check for mail-locking functions in a "mail" library. Probably this should
14491 # have the same check as for liblockfile below.
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14493 $as_echo_n "checking for maillock in -lmail... " >&6; }
14494 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14495 $as_echo_n "(cached) " >&6
14496 else
14497 ac_check_lib_save_LIBS=$LIBS
14498 LIBS="-lmail $LIBS"
14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14501
14502 /* Override any GCC internal prototype to avoid an error.
14503 Use char because int might match the return type of a GCC
14504 builtin and then its argument prototype would still apply. */
14505 #ifdef __cplusplus
14506 extern "C"
14507 #endif
14508 char maillock ();
14509 int
14510 main ()
14511 {
14512 return maillock ();
14513 ;
14514 return 0;
14515 }
14516 _ACEOF
14517 if ac_fn_c_try_link "$LINENO"; then :
14518 ac_cv_lib_mail_maillock=yes
14519 else
14520 ac_cv_lib_mail_maillock=no
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14524 LIBS=$ac_check_lib_save_LIBS
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14527 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14528 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14529 have_mail=yes
14530 else
14531 have_mail=no
14532 fi
14533
14534 if test $have_mail = yes; then
14535 LIBS_MAIL=-lmail
14536 LIBS="$LIBS_MAIL $LIBS"
14537
14538 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14539
14540 else
14541 LIBS_MAIL=
14542 fi
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14544 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14545 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14546 $as_echo_n "(cached) " >&6
14547 else
14548 ac_check_lib_save_LIBS=$LIBS
14549 LIBS="-llockfile $LIBS"
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14552
14553 /* Override any GCC internal prototype to avoid an error.
14554 Use char because int might match the return type of a GCC
14555 builtin and then its argument prototype would still apply. */
14556 #ifdef __cplusplus
14557 extern "C"
14558 #endif
14559 char maillock ();
14560 int
14561 main ()
14562 {
14563 return maillock ();
14564 ;
14565 return 0;
14566 }
14567 _ACEOF
14568 if ac_fn_c_try_link "$LINENO"; then :
14569 ac_cv_lib_lockfile_maillock=yes
14570 else
14571 ac_cv_lib_lockfile_maillock=no
14572 fi
14573 rm -f core conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext conftest.$ac_ext
14575 LIBS=$ac_check_lib_save_LIBS
14576 fi
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14578 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14579 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14580 have_lockfile=yes
14581 else
14582 have_lockfile=no
14583 fi
14584
14585 if test $have_lockfile = yes; then
14586 LIBS_MAIL=-llockfile
14587 LIBS="$LIBS_MAIL $LIBS"
14588
14589 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14590
14591 else
14592 # If we have the shared liblockfile, assume we must use it for mail
14593 # locking (e.g. Debian). If we couldn't link against liblockfile
14594 # (no liblockfile.a installed), ensure that we don't need to.
14595 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14596 set dummy liblockfile.so; ac_word=$2
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14598 $as_echo_n "checking for $ac_word... " >&6; }
14599 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14600 $as_echo_n "(cached) " >&6
14601 else
14602 if test -n "$liblockfile"; then
14603 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14604 else
14605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14606 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14607 for as_dir in $as_dummy
14608 do
14609 IFS=$as_save_IFS
14610 test -z "$as_dir" && as_dir=.
14611 for ac_exec_ext in '' $ac_executable_extensions; do
14612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14613 ac_cv_prog_liblockfile="yes"
14614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14615 break 2
14616 fi
14617 done
14618 done
14619 IFS=$as_save_IFS
14620
14621 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14622 fi
14623 fi
14624 liblockfile=$ac_cv_prog_liblockfile
14625 if test -n "$liblockfile"; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14627 $as_echo "$liblockfile" >&6; }
14628 else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630 $as_echo "no" >&6; }
14631 fi
14632
14633
14634 if test $ac_cv_prog_liblockfile = yes; then
14635 as_fn_error "Shared liblockfile found but can't link against it.
14636 This probably means that movemail could lose mail.
14637 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14638 fi
14639 fi
14640
14641
14642
14643
14644
14645 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14646 ## interlock access to the mail spool. The alternative is a lock file named
14647 ## /usr/spool/mail/$USER.lock.
14648 mail_lock=no
14649 case "$opsys" in
14650 aix4-2) mail_lock="lockf" ;;
14651
14652 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14653
14654 ## On GNU/Linux systems, both methods are used by various mail programs.
14655 ## I assume most people are using newer mailers that have heard of flock.
14656 ## Change this if you need to.
14657 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14658 ## configure gets the right answers, and that means *NOT* using flock.
14659 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14660 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14661 ## Debian maintainer hasn't provided a clean fix for Emacs.
14662 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14663 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14664 ## correct logic. -- fx
14665 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14666 ## liblockfile is a Free Software replacement for libmail, used on
14667 ## Debian systems and elsewhere. -rfr.
14668 gnu-*)
14669 mail_lock="flock"
14670 if test $have_mail = yes || test $have_lockfile = yes; then
14671 test $ac_cv_header_maillock_h = yes && mail_lock=no
14672 fi
14673 ;;
14674
14675 mingw32)
14676 mail_lock="none-needed" ;;
14677 esac
14678
14679 BLESSMAIL_TARGET=
14680 case "$mail_lock" in
14681 flock)
14682 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14683 ;;
14684
14685 lockf)
14686 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14687 ;;
14688
14689 none-needed) ;;
14690
14691 *) BLESSMAIL_TARGET="need-blessmail" ;;
14692 esac
14693
14694
14695
14696 for ac_func in gethostname \
14697 getrusage get_current_dir_name \
14698 lrand48 \
14699 select getpagesize setlocale \
14700 utimes getrlimit setrlimit shutdown getaddrinfo \
14701 strsignal setitimer \
14702 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14703 gai_strerror mkstemp getline getdelim sync \
14704 difftime posix_memalign \
14705 getpwent endpwent getgrent endgrent \
14706 touchlock \
14707 cfmakeraw cfsetspeed copysign __executable_start log2
14708 do :
14709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14711 eval as_val=\$$as_ac_var
14712 if test "x$as_val" = x""yes; then :
14713 cat >>confdefs.h <<_ACEOF
14714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14715 _ACEOF
14716
14717 fi
14718 done
14719
14720
14721 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14722 ## has a broken `rint' in some library versions including math library
14723 ## version number A.09.05.
14724 ## You can fix the math library by installing patch number PHSS_4630.
14725 ## But we can fix it more reliably for Emacs by just not using rint.
14726 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14727 case $opsys in
14728 hpux*) : ;;
14729 *) for ac_func in random rint
14730 do :
14731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14733 eval as_val=\$$as_ac_var
14734 if test "x$as_val" = x""yes; then :
14735 cat >>confdefs.h <<_ACEOF
14736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14737 _ACEOF
14738
14739 fi
14740 done
14741 ;;
14742 esac
14743
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14745 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14746 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14751
14752 int
14753 main ()
14754 {
14755 __builtin_unwind_init ();
14756 ;
14757 return 0;
14758 }
14759 _ACEOF
14760 if ac_fn_c_try_link "$LINENO"; then :
14761 emacs_cv_func___builtin_unwind_init=yes
14762 else
14763 emacs_cv_func___builtin_unwind_init=no
14764 fi
14765 rm -f core conftest.err conftest.$ac_objext \
14766 conftest$ac_exeext conftest.$ac_ext
14767 fi
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14769 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14770 if test $emacs_cv_func___builtin_unwind_init = yes; then
14771
14772 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14773
14774 fi
14775
14776
14777
14778
14779
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14781 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14782 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14783 $as_echo_n "(cached) " >&6
14784 else
14785 while :; do
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788 #include <sys/types.h> /* for off_t */
14789 #include <stdio.h>
14790 int
14791 main ()
14792 {
14793 int (*fp) (FILE *, off_t, int) = fseeko;
14794 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 if ac_fn_c_try_link "$LINENO"; then :
14800 ac_cv_sys_largefile_source=no; break
14801 fi
14802 rm -f core conftest.err conftest.$ac_objext \
14803 conftest$ac_exeext conftest.$ac_ext
14804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h. */
14806 #define _LARGEFILE_SOURCE 1
14807 #include <sys/types.h> /* for off_t */
14808 #include <stdio.h>
14809 int
14810 main ()
14811 {
14812 int (*fp) (FILE *, off_t, int) = fseeko;
14813 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14814 ;
14815 return 0;
14816 }
14817 _ACEOF
14818 if ac_fn_c_try_link "$LINENO"; then :
14819 ac_cv_sys_largefile_source=1; break
14820 fi
14821 rm -f core conftest.err conftest.$ac_objext \
14822 conftest$ac_exeext conftest.$ac_ext
14823 ac_cv_sys_largefile_source=unknown
14824 break
14825 done
14826 fi
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14828 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14829 case $ac_cv_sys_largefile_source in #(
14830 no | unknown) ;;
14831 *)
14832 cat >>confdefs.h <<_ACEOF
14833 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14834 _ACEOF
14835 ;;
14836 esac
14837 rm -rf conftest*
14838
14839 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14840 # in glibc 2.1.3, but that breaks too many other things.
14841 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14842 if test $ac_cv_sys_largefile_source != unknown; then
14843
14844 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14845
14846 fi
14847
14848
14849 # UNIX98 PTYs.
14850 for ac_func in grantpt
14851 do :
14852 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14853 if test "x$ac_cv_func_grantpt" = x""yes; then :
14854 cat >>confdefs.h <<_ACEOF
14855 #define HAVE_GRANTPT 1
14856 _ACEOF
14857
14858 fi
14859 done
14860
14861
14862 # PTY-related GNU extensions.
14863 for ac_func in getpt posix_openpt
14864 do :
14865 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14866 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14867 eval as_val=\$$as_ac_var
14868 if test "x$as_val" = x""yes; then :
14869 cat >>confdefs.h <<_ACEOF
14870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14871 _ACEOF
14872
14873 fi
14874 done
14875
14876
14877 # Check this now, so that we will NOT find the above functions in ncurses.
14878 # That is because we have not set up to link ncurses in lib-src.
14879 # It's better to believe a function is not available
14880 # than to expect to find it in ncurses.
14881 # Also we need tputs and friends to be able to build at all.
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14883 $as_echo_n "checking for library containing tputs... " >&6; }
14884 # Run a test program that contains a call to tputs, a call that is
14885 # never executed. This tests whether a pre-'main' dynamic linker
14886 # works with the library. It's too much trouble to actually call
14887 # tputs in the test program, due to portability hassles. When
14888 # cross-compiling, assume the test program will run if it links.
14889
14890 if test "${opsys}" = "mingw32"; then
14891 msg='none required'
14892 else
14893 # Maybe curses should be tried earlier?
14894 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14895 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14896 OLIBS=$LIBS
14897 if test -z "$tputs_library"; then
14898 LIBS_TERMCAP=
14899 msg='none required'
14900 else
14901 LIBS_TERMCAP=-l$tputs_library
14902 msg=$LIBS_TERMCAP
14903 LIBS="$LIBS_TERMCAP $LIBS"
14904 fi
14905 if test "$cross_compiling" = yes; then :
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908
14909 extern void tputs (const char *, int, int (*)(int));
14910 int main (int argc, char **argv)
14911 {
14912 if (argc == 10000)
14913 tputs (argv[0], 0, 0);
14914 return 0;
14915 }
14916
14917 _ACEOF
14918 if ac_fn_c_try_link "$LINENO"; then :
14919
14920 else
14921 msg=no
14922 fi
14923 rm -f core conftest.err conftest.$ac_objext \
14924 conftest$ac_exeext conftest.$ac_ext
14925 else
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14928
14929 extern void tputs (const char *, int, int (*)(int));
14930 int main (int argc, char **argv)
14931 {
14932 if (argc == 10000)
14933 tputs (argv[0], 0, 0);
14934 return 0;
14935 }
14936
14937 _ACEOF
14938 if ac_fn_c_try_run "$LINENO"; then :
14939
14940 else
14941 msg=no
14942 fi
14943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14944 conftest.$ac_objext conftest.beam conftest.$ac_ext
14945 fi
14946
14947 LIBS=$OLIBS
14948 if test "X$msg" != Xno; then
14949 break
14950 fi
14951 done
14952 fi
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14954 $as_echo "$msg" >&6; }
14955 if test "X$msg" = Xno; then
14956 as_fn_error "The required function \`tputs' was not found in any library.
14957 The following libraries were tried (in order):
14958 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14959 Please try installing whichever of these libraries is most appropriate
14960 for your system, together with its header files.
14961 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14962 fi
14963
14964 ## Use termcap instead of terminfo?
14965 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14966 TERMINFO=yes
14967 ## FIXME? In the cases below where we unconditionally set
14968 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14969 ## if that was found above to have tputs.
14970 ## Should we use the gnu* logic everywhere?
14971 case "$opsys" in
14972 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14973 ## The ncurses library has been moved out of the System framework in
14974 ## Mac OS X 10.2. So if configure detects it, set the command-line
14975 ## option to use it.
14976 darwin) LIBS_TERMCAP="-lncurses" ;;
14977
14978 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
14979
14980 freebsd)
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14982 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14983 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14984 $as_echo_n "(cached) " >&6
14985 else
14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14987 /* end confdefs.h. */
14988 #include <osreldate.h>
14989 int
14990 main ()
14991 {
14992 #if __FreeBSD_version < 400000
14993 fail;
14994 #endif
14995
14996 ;
14997 return 0;
14998 }
14999 _ACEOF
15000 if ac_fn_c_try_link "$LINENO"; then :
15001 emacs_cv_freebsd_terminfo=yes
15002 else
15003 emacs_cv_freebsd_terminfo=no
15004 fi
15005 rm -f core conftest.err conftest.$ac_objext \
15006 conftest$ac_exeext conftest.$ac_ext
15007 fi
15008
15009
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15011 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15012
15013 if test $emacs_cv_freebsd_terminfo = yes; then
15014 LIBS_TERMCAP="-lncurses"
15015 else
15016 TERMINFO=no
15017 LIBS_TERMCAP="-ltermcap"
15018 fi
15019 ;;
15020
15021 mingw32)
15022 TERMINFO=no
15023 LIBS_TERMCAP=
15024 ;;
15025
15026 netbsd)
15027 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15028 TERMINFO=no
15029 LIBS_TERMCAP="-ltermcap"
15030 fi
15031 ;;
15032
15033 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
15034
15035 ## hpux: Make sure we get select from libc rather than from libcurses
15036 ## because libcurses on HPUX 10.10 has a broken version of select.
15037 ## We used to use -lc -lcurses, but this may be cleaner.
15038 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15039 # set that way, now it uses the default). Isn't this a contradiction?
15040 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15041
15042 esac
15043
15044 TERMCAP_OBJ=tparam.o
15045 if test $TERMINFO = yes; then
15046
15047 $as_echo "#define TERMINFO 1" >>confdefs.h
15048
15049 TERMCAP_OBJ=terminfo.o
15050 fi
15051
15052
15053
15054
15055 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15056 # On Darwin, res_init appears not to be useful: see bug#562 and
15057 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15058 resolv=no
15059
15060 if test $opsys != darwin; then
15061
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15064 #include <netinet/in.h>
15065 #include <arpa/nameser.h>
15066 #include <resolv.h>
15067 int
15068 main ()
15069 {
15070 return res_init();
15071 ;
15072 return 0;
15073 }
15074 _ACEOF
15075 if ac_fn_c_try_link "$LINENO"; then :
15076 have_res_init=yes
15077 else
15078 have_res_init=no
15079 fi
15080 rm -f core conftest.err conftest.$ac_objext \
15081 conftest$ac_exeext conftest.$ac_ext
15082 if test "$have_res_init" = no; then
15083 OLIBS="$LIBS"
15084 LIBS="$LIBS -lresolv"
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15086 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089 #include <netinet/in.h>
15090 #include <arpa/nameser.h>
15091 #include <resolv.h>
15092 int
15093 main ()
15094 {
15095 return res_init();
15096 ;
15097 return 0;
15098 }
15099 _ACEOF
15100 if ac_fn_c_try_link "$LINENO"; then :
15101 have_res_init=yes
15102 else
15103 have_res_init=no
15104 fi
15105 rm -f core conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15108 $as_echo "$have_res_init" >&6; }
15109 if test "$have_res_init" = yes ; then
15110 resolv=yes
15111 fi
15112 LIBS="$OLIBS"
15113 fi
15114
15115 if test "$have_res_init" = yes; then
15116
15117 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15118
15119 fi
15120 fi
15121 # Do we need the Hesiod library to provide the support routines?
15122 LIBHESIOD=
15123 if test "$with_hesiod" != no ; then
15124 # Don't set $LIBS here -- see comments above. FIXME which comments?
15125 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15126 if test "x$ac_cv_func_res_send" = x""yes; then :
15127
15128 else
15129 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15130 if test "x$ac_cv_func___res_send" = x""yes; then :
15131
15132 else
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15134 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15135 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15136 $as_echo_n "(cached) " >&6
15137 else
15138 ac_check_lib_save_LIBS=$LIBS
15139 LIBS="-lresolv $LIBS"
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15142
15143 /* Override any GCC internal prototype to avoid an error.
15144 Use char because int might match the return type of a GCC
15145 builtin and then its argument prototype would still apply. */
15146 #ifdef __cplusplus
15147 extern "C"
15148 #endif
15149 char res_send ();
15150 int
15151 main ()
15152 {
15153 return res_send ();
15154 ;
15155 return 0;
15156 }
15157 _ACEOF
15158 if ac_fn_c_try_link "$LINENO"; then :
15159 ac_cv_lib_resolv_res_send=yes
15160 else
15161 ac_cv_lib_resolv_res_send=no
15162 fi
15163 rm -f core conftest.err conftest.$ac_objext \
15164 conftest$ac_exeext conftest.$ac_ext
15165 LIBS=$ac_check_lib_save_LIBS
15166 fi
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15168 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15169 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15170 resolv=yes
15171 else
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15173 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15174 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15175 $as_echo_n "(cached) " >&6
15176 else
15177 ac_check_lib_save_LIBS=$LIBS
15178 LIBS="-lresolv $LIBS"
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15181
15182 /* Override any GCC internal prototype to avoid an error.
15183 Use char because int might match the return type of a GCC
15184 builtin and then its argument prototype would still apply. */
15185 #ifdef __cplusplus
15186 extern "C"
15187 #endif
15188 char __res_send ();
15189 int
15190 main ()
15191 {
15192 return __res_send ();
15193 ;
15194 return 0;
15195 }
15196 _ACEOF
15197 if ac_fn_c_try_link "$LINENO"; then :
15198 ac_cv_lib_resolv___res_send=yes
15199 else
15200 ac_cv_lib_resolv___res_send=no
15201 fi
15202 rm -f core conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204 LIBS=$ac_check_lib_save_LIBS
15205 fi
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15207 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15208 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15209 resolv=yes
15210 fi
15211
15212 fi
15213
15214 fi
15215
15216 fi
15217
15218 if test "$resolv" = yes ; then
15219 RESOLVLIB=-lresolv
15220 else
15221 RESOLVLIB=
15222 fi
15223 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15224 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15225
15226 else
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15228 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15229 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15230 $as_echo_n "(cached) " >&6
15231 else
15232 ac_check_lib_save_LIBS=$LIBS
15233 LIBS="-lhesiod $RESOLVLIB $LIBS"
15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h. */
15236
15237 /* Override any GCC internal prototype to avoid an error.
15238 Use char because int might match the return type of a GCC
15239 builtin and then its argument prototype would still apply. */
15240 #ifdef __cplusplus
15241 extern "C"
15242 #endif
15243 char hes_getmailhost ();
15244 int
15245 main ()
15246 {
15247 return hes_getmailhost ();
15248 ;
15249 return 0;
15250 }
15251 _ACEOF
15252 if ac_fn_c_try_link "$LINENO"; then :
15253 ac_cv_lib_hesiod_hes_getmailhost=yes
15254 else
15255 ac_cv_lib_hesiod_hes_getmailhost=no
15256 fi
15257 rm -f core conftest.err conftest.$ac_objext \
15258 conftest$ac_exeext conftest.$ac_ext
15259 LIBS=$ac_check_lib_save_LIBS
15260 fi
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15262 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15263 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15264 hesiod=yes
15265 else
15266 :
15267 fi
15268
15269 fi
15270
15271
15272 if test x"$hesiod" = xyes; then
15273
15274 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15275
15276 LIBHESIOD=-lhesiod
15277 fi
15278 fi
15279
15280
15281 # Do we need libresolv (due to res_init or Hesiod)?
15282 if test "$resolv" = yes && test $opsys != darwin; then
15283
15284 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15285
15286 LIBRESOLV=-lresolv
15287 else
15288 LIBRESOLV=
15289 fi
15290
15291
15292 # These tell us which Kerberos-related libraries to use.
15293 COM_ERRLIB=
15294 CRYPTOLIB=
15295 KRB5LIB=
15296 DESLIB=
15297 KRB4LIB=
15298
15299 if test "${with_kerberos}" != no; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15301 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15302 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15303 $as_echo_n "(cached) " >&6
15304 else
15305 ac_check_lib_save_LIBS=$LIBS
15306 LIBS="-lcom_err $LIBS"
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h. */
15309
15310 /* Override any GCC internal prototype to avoid an error.
15311 Use char because int might match the return type of a GCC
15312 builtin and then its argument prototype would still apply. */
15313 #ifdef __cplusplus
15314 extern "C"
15315 #endif
15316 char com_err ();
15317 int
15318 main ()
15319 {
15320 return com_err ();
15321 ;
15322 return 0;
15323 }
15324 _ACEOF
15325 if ac_fn_c_try_link "$LINENO"; then :
15326 ac_cv_lib_com_err_com_err=yes
15327 else
15328 ac_cv_lib_com_err_com_err=no
15329 fi
15330 rm -f core conftest.err conftest.$ac_objext \
15331 conftest$ac_exeext conftest.$ac_ext
15332 LIBS=$ac_check_lib_save_LIBS
15333 fi
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15335 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15336 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15337 have_com_err=yes
15338 else
15339 have_com_err=no
15340 fi
15341
15342 if test $have_com_err = yes; then
15343 COM_ERRLIB=-lcom_err
15344 LIBS="$COM_ERRLIB $LIBS"
15345
15346 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15347
15348 fi
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15350 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15351 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15352 $as_echo_n "(cached) " >&6
15353 else
15354 ac_check_lib_save_LIBS=$LIBS
15355 LIBS="-lcrypto $LIBS"
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358
15359 /* Override any GCC internal prototype to avoid an error.
15360 Use char because int might match the return type of a GCC
15361 builtin and then its argument prototype would still apply. */
15362 #ifdef __cplusplus
15363 extern "C"
15364 #endif
15365 char mit_des_cbc_encrypt ();
15366 int
15367 main ()
15368 {
15369 return mit_des_cbc_encrypt ();
15370 ;
15371 return 0;
15372 }
15373 _ACEOF
15374 if ac_fn_c_try_link "$LINENO"; then :
15375 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15376 else
15377 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15378 fi
15379 rm -f core conftest.err conftest.$ac_objext \
15380 conftest$ac_exeext conftest.$ac_ext
15381 LIBS=$ac_check_lib_save_LIBS
15382 fi
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15384 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15385 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15386 have_crypto=yes
15387 else
15388 have_crypto=no
15389 fi
15390
15391 if test $have_crypto = yes; then
15392 CRYPTOLIB=-lcrypto
15393 LIBS="$CRYPTOLIB $LIBS"
15394
15395 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15396
15397 fi
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15399 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15400 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15401 $as_echo_n "(cached) " >&6
15402 else
15403 ac_check_lib_save_LIBS=$LIBS
15404 LIBS="-lk5crypto $LIBS"
15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15407
15408 /* Override any GCC internal prototype to avoid an error.
15409 Use char because int might match the return type of a GCC
15410 builtin and then its argument prototype would still apply. */
15411 #ifdef __cplusplus
15412 extern "C"
15413 #endif
15414 char mit_des_cbc_encrypt ();
15415 int
15416 main ()
15417 {
15418 return mit_des_cbc_encrypt ();
15419 ;
15420 return 0;
15421 }
15422 _ACEOF
15423 if ac_fn_c_try_link "$LINENO"; then :
15424 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15425 else
15426 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15427 fi
15428 rm -f core conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15430 LIBS=$ac_check_lib_save_LIBS
15431 fi
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15433 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15434 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15435 have_k5crypto=yes
15436 else
15437 have_k5crypto=no
15438 fi
15439
15440 if test $have_k5crypto = yes; then
15441 CRYPTOLIB=-lk5crypto
15442 LIBS="$CRYPTOLIB $LIBS"
15443
15444 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15445
15446 fi
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15448 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15449 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15450 $as_echo_n "(cached) " >&6
15451 else
15452 ac_check_lib_save_LIBS=$LIBS
15453 LIBS="-lkrb5 $LIBS"
15454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455 /* end confdefs.h. */
15456
15457 /* Override any GCC internal prototype to avoid an error.
15458 Use char because int might match the return type of a GCC
15459 builtin and then its argument prototype would still apply. */
15460 #ifdef __cplusplus
15461 extern "C"
15462 #endif
15463 char krb5_init_context ();
15464 int
15465 main ()
15466 {
15467 return krb5_init_context ();
15468 ;
15469 return 0;
15470 }
15471 _ACEOF
15472 if ac_fn_c_try_link "$LINENO"; then :
15473 ac_cv_lib_krb5_krb5_init_context=yes
15474 else
15475 ac_cv_lib_krb5_krb5_init_context=no
15476 fi
15477 rm -f core conftest.err conftest.$ac_objext \
15478 conftest$ac_exeext conftest.$ac_ext
15479 LIBS=$ac_check_lib_save_LIBS
15480 fi
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15482 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15483 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15484 have_krb5=yes
15485 else
15486 have_krb5=no
15487 fi
15488
15489 if test $have_krb5=yes; then
15490 KRB5LIB=-lkrb5
15491 LIBS="$KRB5LIB $LIBS"
15492
15493 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15494
15495 fi
15496 if test "${with_kerberos5}" = no; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15498 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15499 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15500 $as_echo_n "(cached) " >&6
15501 else
15502 ac_check_lib_save_LIBS=$LIBS
15503 LIBS="-ldes425 $LIBS"
15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15506
15507 /* Override any GCC internal prototype to avoid an error.
15508 Use char because int might match the return type of a GCC
15509 builtin and then its argument prototype would still apply. */
15510 #ifdef __cplusplus
15511 extern "C"
15512 #endif
15513 char des_cbc_encrypt ();
15514 int
15515 main ()
15516 {
15517 return des_cbc_encrypt ();
15518 ;
15519 return 0;
15520 }
15521 _ACEOF
15522 if ac_fn_c_try_link "$LINENO"; then :
15523 ac_cv_lib_des425_des_cbc_encrypt=yes
15524 else
15525 ac_cv_lib_des425_des_cbc_encrypt=no
15526 fi
15527 rm -f core conftest.err conftest.$ac_objext \
15528 conftest$ac_exeext conftest.$ac_ext
15529 LIBS=$ac_check_lib_save_LIBS
15530 fi
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15532 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15533 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15534 have_des425=yes
15535 else
15536 have_des425=no
15537 fi
15538
15539 if test $have_des425 = yes; then
15540 DESLIB=-ldes425
15541 LIBS="$DESLIB $LIBS"
15542
15543 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15544
15545 else
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15547 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15548 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15549 $as_echo_n "(cached) " >&6
15550 else
15551 ac_check_lib_save_LIBS=$LIBS
15552 LIBS="-ldes $LIBS"
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555
15556 /* Override any GCC internal prototype to avoid an error.
15557 Use char because int might match the return type of a GCC
15558 builtin and then its argument prototype would still apply. */
15559 #ifdef __cplusplus
15560 extern "C"
15561 #endif
15562 char des_cbc_encrypt ();
15563 int
15564 main ()
15565 {
15566 return des_cbc_encrypt ();
15567 ;
15568 return 0;
15569 }
15570 _ACEOF
15571 if ac_fn_c_try_link "$LINENO"; then :
15572 ac_cv_lib_des_des_cbc_encrypt=yes
15573 else
15574 ac_cv_lib_des_des_cbc_encrypt=no
15575 fi
15576 rm -f core conftest.err conftest.$ac_objext \
15577 conftest$ac_exeext conftest.$ac_ext
15578 LIBS=$ac_check_lib_save_LIBS
15579 fi
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15581 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15582 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15583 have_des=yes
15584 else
15585 have_des=no
15586 fi
15587
15588 if test $have_des = yes; then
15589 DESLIB=-ldes
15590 LIBS="$DESLIB $LIBS"
15591
15592 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15593
15594 fi
15595 fi
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15597 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15598 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15599 $as_echo_n "(cached) " >&6
15600 else
15601 ac_check_lib_save_LIBS=$LIBS
15602 LIBS="-lkrb4 $LIBS"
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15605
15606 /* Override any GCC internal prototype to avoid an error.
15607 Use char because int might match the return type of a GCC
15608 builtin and then its argument prototype would still apply. */
15609 #ifdef __cplusplus
15610 extern "C"
15611 #endif
15612 char krb_get_cred ();
15613 int
15614 main ()
15615 {
15616 return krb_get_cred ();
15617 ;
15618 return 0;
15619 }
15620 _ACEOF
15621 if ac_fn_c_try_link "$LINENO"; then :
15622 ac_cv_lib_krb4_krb_get_cred=yes
15623 else
15624 ac_cv_lib_krb4_krb_get_cred=no
15625 fi
15626 rm -f core conftest.err conftest.$ac_objext \
15627 conftest$ac_exeext conftest.$ac_ext
15628 LIBS=$ac_check_lib_save_LIBS
15629 fi
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15631 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15632 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15633 have_krb4=yes
15634 else
15635 have_krb4=no
15636 fi
15637
15638 if test $have_krb4 = yes; then
15639 KRB4LIB=-lkrb4
15640 LIBS="$KRB4LIB $LIBS"
15641
15642 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15643
15644 else
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15646 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15647 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15648 $as_echo_n "(cached) " >&6
15649 else
15650 ac_check_lib_save_LIBS=$LIBS
15651 LIBS="-lkrb $LIBS"
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h. */
15654
15655 /* Override any GCC internal prototype to avoid an error.
15656 Use char because int might match the return type of a GCC
15657 builtin and then its argument prototype would still apply. */
15658 #ifdef __cplusplus
15659 extern "C"
15660 #endif
15661 char krb_get_cred ();
15662 int
15663 main ()
15664 {
15665 return krb_get_cred ();
15666 ;
15667 return 0;
15668 }
15669 _ACEOF
15670 if ac_fn_c_try_link "$LINENO"; then :
15671 ac_cv_lib_krb_krb_get_cred=yes
15672 else
15673 ac_cv_lib_krb_krb_get_cred=no
15674 fi
15675 rm -f core conftest.err conftest.$ac_objext \
15676 conftest$ac_exeext conftest.$ac_ext
15677 LIBS=$ac_check_lib_save_LIBS
15678 fi
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15680 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15681 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15682 have_krb=yes
15683 else
15684 have_krb=no
15685 fi
15686
15687 if test $have_krb = yes; then
15688 KRB4LIB=-lkrb
15689 LIBS="$KRB4LIB $LIBS"
15690
15691 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15692
15693 fi
15694 fi
15695 fi
15696
15697 if test "${with_kerberos5}" != no; then
15698 for ac_header in krb5.h
15699 do :
15700 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15701 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15702 cat >>confdefs.h <<_ACEOF
15703 #define HAVE_KRB5_H 1
15704 _ACEOF
15705 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15706 "
15707 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15708
15709 cat >>confdefs.h <<_ACEOF
15710 #define HAVE_KRB5_ERROR_TEXT 1
15711 _ACEOF
15712
15713
15714 fi
15715 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15716 "
15717 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15718
15719 cat >>confdefs.h <<_ACEOF
15720 #define HAVE_KRB5_ERROR_E_TEXT 1
15721 _ACEOF
15722
15723
15724 fi
15725
15726 fi
15727
15728 done
15729
15730 else
15731 for ac_header in des.h
15732 do :
15733 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15734 if test "x$ac_cv_header_des_h" = x""yes; then :
15735 cat >>confdefs.h <<_ACEOF
15736 #define HAVE_DES_H 1
15737 _ACEOF
15738
15739 else
15740 for ac_header in kerberosIV/des.h
15741 do :
15742 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15743 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15744 cat >>confdefs.h <<_ACEOF
15745 #define HAVE_KERBEROSIV_DES_H 1
15746 _ACEOF
15747
15748 else
15749 for ac_header in kerberos/des.h
15750 do :
15751 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15752 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15753 cat >>confdefs.h <<_ACEOF
15754 #define HAVE_KERBEROS_DES_H 1
15755 _ACEOF
15756
15757 fi
15758
15759 done
15760
15761 fi
15762
15763 done
15764
15765 fi
15766
15767 done
15768
15769 for ac_header in krb.h
15770 do :
15771 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15772 if test "x$ac_cv_header_krb_h" = x""yes; then :
15773 cat >>confdefs.h <<_ACEOF
15774 #define HAVE_KRB_H 1
15775 _ACEOF
15776
15777 else
15778 for ac_header in kerberosIV/krb.h
15779 do :
15780 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15781 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15782 cat >>confdefs.h <<_ACEOF
15783 #define HAVE_KERBEROSIV_KRB_H 1
15784 _ACEOF
15785
15786 else
15787 for ac_header in kerberos/krb.h
15788 do :
15789 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15790 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15791 cat >>confdefs.h <<_ACEOF
15792 #define HAVE_KERBEROS_KRB_H 1
15793 _ACEOF
15794
15795 fi
15796
15797 done
15798
15799 fi
15800
15801 done
15802
15803 fi
15804
15805 done
15806
15807 fi
15808 for ac_header in com_err.h
15809 do :
15810 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15811 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15812 cat >>confdefs.h <<_ACEOF
15813 #define HAVE_COM_ERR_H 1
15814 _ACEOF
15815
15816 fi
15817
15818 done
15819
15820 fi
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831 for ac_func in $ac_func_list
15832 do :
15833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15834 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15835 eval as_val=\$$as_ac_var
15836 if test "x$as_val" = x""yes; then :
15837 cat >>confdefs.h <<_ACEOF
15838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15839 _ACEOF
15840
15841 fi
15842 done
15843
15844
15845
15846
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15848 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15849 if test "${emacs_cv_localtime_cache+set}" = set; then :
15850 $as_echo_n "(cached) " >&6
15851 else
15852 if test x$ac_cv_func_tzset = xyes; then
15853 if test "$cross_compiling" = yes; then :
15854 # If we have tzset, assume the worst when cross-compiling.
15855 emacs_cv_localtime_cache=yes
15856 else
15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15859 #include <time.h>
15860 char TZ_GMT0[] = "TZ=GMT0";
15861 char TZ_PST8[] = "TZ=PST8";
15862 main()
15863 {
15864 time_t now = time ((time_t *) 0);
15865 int hour_GMT0, hour_unset;
15866 if (putenv (TZ_GMT0) != 0)
15867 exit (1);
15868 hour_GMT0 = localtime (&now)->tm_hour;
15869 unsetenv("TZ");
15870 hour_unset = localtime (&now)->tm_hour;
15871 if (putenv (TZ_PST8) != 0)
15872 exit (1);
15873 if (localtime (&now)->tm_hour == hour_GMT0)
15874 exit (1);
15875 unsetenv("TZ");
15876 if (localtime (&now)->tm_hour != hour_unset)
15877 exit (1);
15878 exit (0);
15879 }
15880 _ACEOF
15881 if ac_fn_c_try_run "$LINENO"; then :
15882 emacs_cv_localtime_cache=no
15883 else
15884 emacs_cv_localtime_cache=yes
15885 fi
15886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15887 conftest.$ac_objext conftest.beam conftest.$ac_ext
15888 fi
15889
15890 else
15891 # If we lack tzset, report that localtime does not cache TZ,
15892 # since we can't invalidate the cache if we don't have tzset.
15893 emacs_cv_localtime_cache=no
15894 fi
15895 fi
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15897 $as_echo "$emacs_cv_localtime_cache" >&6; }
15898 if test $emacs_cv_localtime_cache = yes; then
15899
15900 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15901
15902 fi
15903
15904 ok_so_far=yes
15905 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15906 if test "x$ac_cv_func_socket" = x""yes; then :
15907
15908 else
15909 ok_so_far=no
15910 fi
15911
15912 if test $ok_so_far = yes; then
15913 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15914 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15915
15916 else
15917 ok_so_far=no
15918 fi
15919
15920
15921 fi
15922 if test $ok_so_far = yes; then
15923 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15924 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15925
15926 else
15927 ok_so_far=no
15928 fi
15929
15930
15931 fi
15932 if test $ok_so_far = yes; then
15933
15934 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15935
15936 fi
15937
15938 if test -f /usr/lpp/X11/bin/smt.exp; then
15939
15940 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15941
15942 fi
15943
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15945 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15946 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15948 $as_echo "yes" >&6; }
15949
15950 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15951
15952 else
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954 $as_echo "no" >&6; }
15955 fi
15956
15957 case $canonical in
15958 *-solaris2.4 | *-solaris2.4.*)
15959 : ${ac_cv_func_vfork_works=no};;
15960 esac
15961
15962 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15963 if test "x$ac_cv_type_pid_t" = x""yes; then :
15964
15965 else
15966
15967 cat >>confdefs.h <<_ACEOF
15968 #define pid_t int
15969 _ACEOF
15970
15971 fi
15972
15973 for ac_header in vfork.h
15974 do :
15975 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15976 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15977 cat >>confdefs.h <<_ACEOF
15978 #define HAVE_VFORK_H 1
15979 _ACEOF
15980
15981 fi
15982
15983 done
15984
15985 for ac_func in fork vfork
15986 do :
15987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15988 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15989 eval as_val=\$$as_ac_var
15990 if test "x$as_val" = x""yes; then :
15991 cat >>confdefs.h <<_ACEOF
15992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15993 _ACEOF
15994
15995 fi
15996 done
15997
15998 if test "x$ac_cv_func_fork" = xyes; then
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16000 $as_echo_n "checking for working fork... " >&6; }
16001 if test "${ac_cv_func_fork_works+set}" = set; then :
16002 $as_echo_n "(cached) " >&6
16003 else
16004 if test "$cross_compiling" = yes; then :
16005 ac_cv_func_fork_works=cross
16006 else
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16009 $ac_includes_default
16010 int
16011 main ()
16012 {
16013
16014 /* By Ruediger Kuhlmann. */
16015 return fork () < 0;
16016
16017 ;
16018 return 0;
16019 }
16020 _ACEOF
16021 if ac_fn_c_try_run "$LINENO"; then :
16022 ac_cv_func_fork_works=yes
16023 else
16024 ac_cv_func_fork_works=no
16025 fi
16026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16027 conftest.$ac_objext conftest.beam conftest.$ac_ext
16028 fi
16029
16030 fi
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16032 $as_echo "$ac_cv_func_fork_works" >&6; }
16033
16034 else
16035 ac_cv_func_fork_works=$ac_cv_func_fork
16036 fi
16037 if test "x$ac_cv_func_fork_works" = xcross; then
16038 case $host in
16039 *-*-amigaos* | *-*-msdosdjgpp*)
16040 # Override, as these systems have only a dummy fork() stub
16041 ac_cv_func_fork_works=no
16042 ;;
16043 *)
16044 ac_cv_func_fork_works=yes
16045 ;;
16046 esac
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16048 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16049 fi
16050 ac_cv_func_vfork_works=$ac_cv_func_vfork
16051 if test "x$ac_cv_func_vfork" = xyes; then
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16053 $as_echo_n "checking for working vfork... " >&6; }
16054 if test "${ac_cv_func_vfork_works+set}" = set; then :
16055 $as_echo_n "(cached) " >&6
16056 else
16057 if test "$cross_compiling" = yes; then :
16058 ac_cv_func_vfork_works=cross
16059 else
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 /* Thanks to Paul Eggert for this test. */
16063 $ac_includes_default
16064 #include <sys/wait.h>
16065 #ifdef HAVE_VFORK_H
16066 # include <vfork.h>
16067 #endif
16068 /* On some sparc systems, changes by the child to local and incoming
16069 argument registers are propagated back to the parent. The compiler
16070 is told about this with #include <vfork.h>, but some compilers
16071 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16072 static variable whose address is put into a register that is
16073 clobbered by the vfork. */
16074 static void
16075 #ifdef __cplusplus
16076 sparc_address_test (int arg)
16077 # else
16078 sparc_address_test (arg) int arg;
16079 #endif
16080 {
16081 static pid_t child;
16082 if (!child) {
16083 child = vfork ();
16084 if (child < 0) {
16085 perror ("vfork");
16086 _exit(2);
16087 }
16088 if (!child) {
16089 arg = getpid();
16090 write(-1, "", 0);
16091 _exit (arg);
16092 }
16093 }
16094 }
16095
16096 int
16097 main ()
16098 {
16099 pid_t parent = getpid ();
16100 pid_t child;
16101
16102 sparc_address_test (0);
16103
16104 child = vfork ();
16105
16106 if (child == 0) {
16107 /* Here is another test for sparc vfork register problems. This
16108 test uses lots of local variables, at least as many local
16109 variables as main has allocated so far including compiler
16110 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16111 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16112 reuse the register of parent for one of the local variables,
16113 since it will think that parent can't possibly be used any more
16114 in this routine. Assigning to the local variable will thus
16115 munge parent in the parent process. */
16116 pid_t
16117 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16118 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16119 /* Convince the compiler that p..p7 are live; otherwise, it might
16120 use the same hardware register for all 8 local variables. */
16121 if (p != p1 || p != p2 || p != p3 || p != p4
16122 || p != p5 || p != p6 || p != p7)
16123 _exit(1);
16124
16125 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16126 from child file descriptors. If the child closes a descriptor
16127 before it execs or exits, this munges the parent's descriptor
16128 as well. Test for this by closing stdout in the child. */
16129 _exit(close(fileno(stdout)) != 0);
16130 } else {
16131 int status;
16132 struct stat st;
16133
16134 while (wait(&status) != child)
16135 ;
16136 return (
16137 /* Was there some problem with vforking? */
16138 child < 0
16139
16140 /* Did the child fail? (This shouldn't happen.) */
16141 || status
16142
16143 /* Did the vfork/compiler bug occur? */
16144 || parent != getpid()
16145
16146 /* Did the file descriptor bug occur? */
16147 || fstat(fileno(stdout), &st) != 0
16148 );
16149 }
16150 }
16151 _ACEOF
16152 if ac_fn_c_try_run "$LINENO"; then :
16153 ac_cv_func_vfork_works=yes
16154 else
16155 ac_cv_func_vfork_works=no
16156 fi
16157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16158 conftest.$ac_objext conftest.beam conftest.$ac_ext
16159 fi
16160
16161 fi
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16163 $as_echo "$ac_cv_func_vfork_works" >&6; }
16164
16165 fi;
16166 if test "x$ac_cv_func_fork_works" = xcross; then
16167 ac_cv_func_vfork_works=$ac_cv_func_vfork
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16169 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16170 fi
16171
16172 if test "x$ac_cv_func_vfork_works" = xyes; then
16173
16174 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16175
16176 else
16177
16178 $as_echo "#define vfork fork" >>confdefs.h
16179
16180 fi
16181 if test "x$ac_cv_func_fork_works" = xyes; then
16182
16183 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16184
16185 fi
16186
16187
16188 for ac_func in snprintf
16189 do :
16190 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16191 if test "x$ac_cv_func_snprintf" = x""yes; then :
16192 cat >>confdefs.h <<_ACEOF
16193 #define HAVE_SNPRINTF 1
16194 _ACEOF
16195
16196 fi
16197 done
16198
16199
16200 XGSELOBJ=
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16202 $as_echo_n "checking whether GLib is linked in... " >&6; }
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 #include <glib.h>
16206
16207 int
16208 main ()
16209 {
16210 g_print ("Hello world");
16211 ;
16212 return 0;
16213 }
16214 _ACEOF
16215 if ac_fn_c_try_link "$LINENO"; then :
16216 links_glib=yes
16217 else
16218 links_glib=no
16219 fi
16220 rm -f core conftest.err conftest.$ac_objext \
16221 conftest$ac_exeext conftest.$ac_ext
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16223 $as_echo "$links_glib" >&6; }
16224 if test "${links_glib}" = "yes"; then
16225
16226 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16227
16228 if test "$HAVE_NS" = no;then
16229 XGSELOBJ=xgselect.o
16230 fi
16231 fi
16232
16233
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16235 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16236 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16237 $as_echo_n "(cached) " >&6
16238 else
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16241 #include <langinfo.h>
16242 int
16243 main ()
16244 {
16245 char* cs = nl_langinfo(CODESET);
16246 ;
16247 return 0;
16248 }
16249 _ACEOF
16250 if ac_fn_c_try_link "$LINENO"; then :
16251 emacs_cv_langinfo_codeset=yes
16252 else
16253 emacs_cv_langinfo_codeset=no
16254 fi
16255 rm -f core conftest.err conftest.$ac_objext \
16256 conftest$ac_exeext conftest.$ac_ext
16257
16258 fi
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16260 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16261 if test $emacs_cv_langinfo_codeset = yes; then
16262
16263 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16264
16265 fi
16266
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16268 $as_echo_n "checking for mbstate_t... " >&6; }
16269 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16270 $as_echo_n "(cached) " >&6
16271 else
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16274 $ac_includes_default
16275 # include <wchar.h>
16276 int
16277 main ()
16278 {
16279 mbstate_t x; return sizeof x;
16280 ;
16281 return 0;
16282 }
16283 _ACEOF
16284 if ac_fn_c_try_compile "$LINENO"; then :
16285 ac_cv_type_mbstate_t=yes
16286 else
16287 ac_cv_type_mbstate_t=no
16288 fi
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 fi
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16292 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16293 if test $ac_cv_type_mbstate_t = yes; then
16294
16295 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16296
16297 else
16298
16299 $as_echo "#define mbstate_t int" >>confdefs.h
16300
16301 fi
16302
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16304 $as_echo_n "checking for C restricted array declarations... " >&6; }
16305 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16306 $as_echo_n "(cached) " >&6
16307 else
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h. */
16310 void fred (int x[__restrict]);
16311 int
16312 main ()
16313 {
16314
16315 ;
16316 return 0;
16317 }
16318 _ACEOF
16319 if ac_fn_c_try_compile "$LINENO"; then :
16320 emacs_cv_c_restrict_arr=yes
16321 else
16322 emacs_cv_c_restrict_arr=no
16323 fi
16324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16325 fi
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16327 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16328 if test "$emacs_cv_c_restrict_arr" = yes; then
16329
16330 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16331
16332 fi
16333
16334
16335 if test "${opsys}" != "mingw32"; then
16336
16337 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16338
16339 fi
16340
16341
16342 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16343
16344
16345 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16346 if test "${opsys}" != "mingw32"; then
16347
16348 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16349
16350 fi
16351
16352
16353 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16354
16355
16356
16357
16358
16359 if test "${opsys}" = "mingw32"; then
16360 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16361
16362 else
16363 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16364
16365 fi
16366
16367
16368 if test "${opsys}" = "mingw32"; then
16369 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16370
16371 else
16372 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16373
16374 fi
16375
16376
16377 $as_echo "#define subprocesses 1" >>confdefs.h
16378
16379
16380
16381 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16382
16383
16384
16385
16386 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16387
16388
16389
16390 if test "${opsys}" = "mingw32"; then
16391 $as_echo "#define DEVICE_SEP ':'" >>confdefs.h
16392
16393
16394 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == DEVICE_SEP)" >>confdefs.h
16395
16396
16397
16398 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16399
16400
16401
16402 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16403
16404 else
16405
16406 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16407
16408
16409
16410 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16411
16412
16413
16414 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16415
16416 fi
16417
16418
16419
16420 case $opsys in
16421 aix4-2)
16422 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
16423 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16424
16425 fi
16426 ;;
16427
16428 hpux*)
16429 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16430
16431 ;;
16432 esac
16433
16434
16435 case $opsys in
16436 irix6-5 | sol2* | unixware )
16437
16438 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16439
16440 ;;
16441 esac
16442
16443 emacs_broken_SIGIO=no
16444
16445 case $opsys in
16446 hpux* | irix6-5 | openbsd | sol2* | unixware )
16447 emacs_broken_SIGIO=yes
16448 ;;
16449
16450 aix4-2)
16451
16452 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16453
16454 ;;
16455
16456 freebsd)
16457
16458 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16459
16460 ;;
16461 esac
16462
16463 case $opsys in
16464 gnu-* | sol2-10 )
16465
16466 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16467
16468 ;;
16469 esac
16470
16471 case $opsys in
16472 darwin | dragonfly | freebsd | netbsd | openbsd )
16473
16474 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16475
16476 ;;
16477 esac
16478
16479 case $opsys in
16480 netbsd | openbsd) sound_device="/dev/audio" ;;
16481 *) sound_device="/dev/dsp" ;;
16482 esac
16483
16484
16485 cat >>confdefs.h <<_ACEOF
16486 #define DEFAULT_SOUND_DEVICE "$sound_device"
16487 _ACEOF
16488
16489
16490
16491 case $opsys in
16492 darwin | gnu-linux | gnu-kfreebsd )
16493
16494 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16495
16496 ;;
16497 esac
16498
16499
16500 case $opsys in
16501 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
16502
16503 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16504
16505 ;;
16506 esac
16507
16508
16509
16510
16511
16512
16513
16514
16515 case $opsys in
16516 aix4-2 )
16517 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16518
16519 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16520
16521 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16522
16523 ;;
16524
16525 cygwin )
16526 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16527
16528 $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
16529
16530 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16531
16532 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16533
16534 ;;
16535
16536 darwin )
16537 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16538
16539 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16540
16541 $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
16542
16543 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16544
16545 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16546
16547 ;;
16548
16549 gnu | openbsd )
16550 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16551
16552 ;;
16553
16554 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
16555 if test "x$ac_cv_func_grantpt" = xyes; then
16556
16557 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16558
16559 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16560
16561 $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
16562
16563 if test "x$ac_cv_func_posix_openpt" = xyes; then
16564 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
16565
16566 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16567
16568 elif test "x$ac_cv_func_getpt" = xyes; then
16569 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16570
16571 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16572
16573 else
16574 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16575
16576 fi
16577 else
16578 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16579
16580 fi
16581 ;;
16582
16583 hpux*)
16584 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16585
16586 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16587
16588 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16589
16590 ;;
16591
16592 irix6-5 )
16593 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16594
16595 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16596
16597 $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
16598
16599 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16600
16601 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16602
16603 ;;
16604
16605 sol2* )
16606 $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
16607
16608 ;;
16609
16610 unixware )
16611 $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
16612
16613 ;;
16614 esac
16615
16616
16617 case $opsys in
16618 sol2* | unixware )
16619 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16620
16621 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16622
16623
16624 $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
16625
16626 ;;
16627 esac
16628
16629
16630
16631
16632 case $opsys in
16633 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
16634 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16635
16636 ;;
16637
16638 gnu-linux | gnu-kfreebsd )
16639
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16641 $as_echo_n "checking for signals via characters... " >&6; }
16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h. */
16644
16645 #include <linux/version.h>
16646 #if LINUX_VERSION_CODE < 0x20400
16647 # error "Linux version too old"
16648 #endif
16649
16650 int
16651 main ()
16652 {
16653
16654 ;
16655 return 0;
16656 }
16657 _ACEOF
16658 if ac_fn_c_try_cpp "$LINENO"; then :
16659 emacs_signals_via_chars=yes
16660 else
16661 emacs_signals_via_chars=no
16662 fi
16663 rm -f conftest.err conftest.$ac_ext
16664
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16666 $as_echo "$emacs_signals_via_chars" >&6; }
16667 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16668
16669 ;;
16670 esac
16671
16672
16673
16674
16675 case $opsys in
16676 aix*)
16677 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16678
16679 ;;
16680 hpux*)
16681 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16682
16683 ;;
16684 irix6-5)
16685 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16686
16687 ;;
16688 esac
16689
16690
16691
16692
16693 case $opsys in
16694 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16695 ;;
16696
16697 gnu | dragonfly | freebsd | netbsd | openbsd )
16698
16699 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16700
16701 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16702
16703 ;;
16704
16705 gnu-linux | gnu-kfreebsd )
16706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707 /* end confdefs.h. */
16708
16709 #ifndef __ia64__
16710 # error "not ia64"
16711 #endif
16712
16713 int
16714 main ()
16715 {
16716
16717 ;
16718 return 0;
16719 }
16720 _ACEOF
16721 if ac_fn_c_try_cpp "$LINENO"; then :
16722
16723 $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
16724
16725 fi
16726 rm -f conftest.err conftest.$ac_ext
16727 ;;
16728
16729 hpux*)
16730
16731 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16732
16733 ;;
16734 esac
16735
16736
16737
16738
16739
16740 case $opsys in
16741 gnu-linux | gnu-kfreebsd )
16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743 /* end confdefs.h. */
16744
16745 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16746 || defined __alpha__ || defined __mips__ || defined __s390__ \
16747 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16748 || defined __ia64__ || defined __sh__
16749 /* ok */
16750 #else
16751 # error "setjmp not known to work on this arch"
16752 #endif
16753
16754 int
16755 main ()
16756 {
16757
16758 ;
16759 return 0;
16760 }
16761 _ACEOF
16762 if ac_fn_c_try_cpp "$LINENO"; then :
16763 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16764
16765 fi
16766 rm -f conftest.err conftest.$ac_ext
16767 ;;
16768 esac
16769
16770
16771 if test x$GCC = xyes; then
16772 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16773
16774 else
16775 case $opsys in
16776 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
16777 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16778
16779 ;;
16780 esac
16781 fi
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16783 $as_echo_n "checking for _setjmp... " >&6; }
16784 if test "${emacs_cv_func__setjmp+set}" = set; then :
16785 $as_echo_n "(cached) " >&6
16786 else
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h. */
16789 #include <setjmp.h>
16790 #ifdef __MINGW32__
16791 # define _longjmp longjmp
16792 #endif
16793
16794 int
16795 main ()
16796 {
16797 jmp_buf j;
16798 if (! _setjmp (j))
16799 _longjmp (j, 1);
16800 ;
16801 return 0;
16802 }
16803 _ACEOF
16804 if ac_fn_c_try_link "$LINENO"; then :
16805 emacs_cv_func__setjmp=yes
16806 else
16807 emacs_cv_func__setjmp=no
16808 fi
16809 rm -f core conftest.err conftest.$ac_objext \
16810 conftest$ac_exeext conftest.$ac_ext
16811 fi
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16813 $as_echo "$emacs_cv_func__setjmp" >&6; }
16814 if test $emacs_cv_func__setjmp = yes; then
16815
16816 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16817
16818 else
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16820 $as_echo_n "checking for sigsetjmp... " >&6; }
16821 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16822 $as_echo_n "(cached) " >&6
16823 else
16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825 /* end confdefs.h. */
16826 #include <setjmp.h>
16827
16828 int
16829 main ()
16830 {
16831 sigjmp_buf j;
16832 if (! sigsetjmp (j, 1))
16833 siglongjmp (j, 1);
16834 ;
16835 return 0;
16836 }
16837 _ACEOF
16838 if ac_fn_c_try_link "$LINENO"; then :
16839 emacs_cv_func_sigsetjmp=yes
16840 else
16841 emacs_cv_func_sigsetjmp=no
16842 fi
16843 rm -f core conftest.err conftest.$ac_objext \
16844 conftest$ac_exeext conftest.$ac_ext
16845 fi
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16847 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16848 if test $emacs_cv_func_sigsetjmp = yes; then
16849
16850 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16851
16852 fi
16853 fi
16854
16855 case $opsys in
16856 sol2* | unixware )
16857
16858 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16859
16860 ;;
16861 esac
16862
16863
16864 case $opsys in
16865 hpux* | sol2* )
16866
16867 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16868
16869 ;;
16870 esac
16871
16872
16873
16874
16875
16876
16877
16878
16879 case $opsys in
16880 aix4-2)
16881 $as_echo "#define USG /**/" >>confdefs.h
16882
16883 $as_echo "#define USG5 /**/" >>confdefs.h
16884
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16887
16888 #ifndef _AIX
16889 # error "_AIX not defined"
16890 #endif
16891
16892 int
16893 main ()
16894 {
16895
16896 ;
16897 return 0;
16898 }
16899 _ACEOF
16900 if ac_fn_c_try_cpp "$LINENO"; then :
16901
16902 else
16903
16904 $as_echo "#define _AIX /**/" >>confdefs.h
16905
16906 fi
16907 rm -f conftest.err conftest.$ac_ext
16908 ;;
16909
16910 cygwin)
16911
16912 $as_echo "#define CYGWIN 1" >>confdefs.h
16913
16914 ;;
16915
16916 darwin)
16917
16918 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16919
16920 ;;
16921
16922 gnu-linux | gnu-kfreebsd )
16923 $as_echo "#define USG /**/" >>confdefs.h
16924
16925
16926 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16927
16928 ;;
16929
16930 hpux*)
16931 $as_echo "#define USG /**/" >>confdefs.h
16932
16933 $as_echo "#define USG5 /**/" >>confdefs.h
16934
16935
16936 $as_echo "#define HPUX /**/" >>confdefs.h
16937
16938 ;;
16939
16940 irix6-5)
16941 $as_echo "#define USG /**/" >>confdefs.h
16942
16943 $as_echo "#define USG5 /**/" >>confdefs.h
16944
16945 $as_echo "#define USG5_4 /**/" >>confdefs.h
16946
16947
16948 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16949
16950 ;;
16951
16952 mingw32)
16953 $as_echo "#define DOS_NT /**/" >>confdefs.h
16954
16955
16956 $as_echo "#define WINDOWSNT 1" >>confdefs.h
16957
16958 if test "x$ac_enable_checking" != "x" ; then
16959
16960 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
16961
16962 fi
16963 ;;
16964
16965 sol2*)
16966 $as_echo "#define USG /**/" >>confdefs.h
16967
16968 $as_echo "#define USG5 /**/" >>confdefs.h
16969
16970 $as_echo "#define USG5_4 /**/" >>confdefs.h
16971
16972
16973 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16974
16975 ;;
16976
16977 unixware)
16978 $as_echo "#define USG /**/" >>confdefs.h
16979
16980 $as_echo "#define USG5 /**/" >>confdefs.h
16981
16982 $as_echo "#define USG5_4 /**/" >>confdefs.h
16983
16984 ;;
16985 esac
16986
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16988 $as_echo_n "checking for usable FIONREAD... " >&6; }
16989 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16990 $as_echo_n "(cached) " >&6
16991 else
16992 case $opsys in
16993 aix4-2)
16994 emacs_cv_usable_FIONREAD=no
16995 ;;
16996
16997 mingw32)
16998 emacs_cv_usable_FIONREAD=yes
16999 ;;
17000
17001 *)
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h. */
17004 #include <sys/types.h>
17005 #include <sys/ioctl.h>
17006 #ifdef USG5_4
17007 # include <sys/filio.h>
17008 #endif
17009
17010 int
17011 main ()
17012 {
17013 int foo = ioctl (0, FIONREAD, &foo);
17014 ;
17015 return 0;
17016 }
17017 _ACEOF
17018 if ac_fn_c_try_compile "$LINENO"; then :
17019 emacs_cv_usable_FIONREAD=yes
17020 else
17021 emacs_cv_usable_FIONREAD=no
17022 fi
17023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024 ;;
17025 esac
17026 fi
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17028 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17029 if test $emacs_cv_usable_FIONREAD = yes; then
17030
17031 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17032
17033
17034 if test $emacs_broken_SIGIO = no; then
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17036 $as_echo_n "checking for usable SIGIO... " >&6; }
17037 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17038 $as_echo_n "(cached) " >&6
17039 else
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17042 #include <fcntl.h>
17043 #include <signal.h>
17044
17045 int
17046 main ()
17047 {
17048 int foo = SIGIO | F_SETFL | FASYNC;
17049 ;
17050 return 0;
17051 }
17052 _ACEOF
17053 if ac_fn_c_try_compile "$LINENO"; then :
17054 emacs_cv_usable_SIGIO=yes
17055 else
17056 emacs_cv_usable_SIGIO=no
17057 fi
17058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 fi
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17061 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17062 if test $emacs_cv_usable_SIGIO = yes; then
17063
17064 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17065
17066 fi
17067 fi
17068 fi
17069
17070
17071 case $opsys in
17072 cygwin)
17073
17074 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17075
17076 ;;
17077
17078 hpux11)
17079
17080 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17081
17082 ;;
17083
17084 irix6-5)
17085
17086 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17087
17088 ;;
17089
17090 sol2-10)
17091
17092 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17093
17094 ;;
17095 esac
17096
17097 # Set up the CFLAGS for real compilation, so we can substitute it.
17098 CFLAGS="$REAL_CFLAGS"
17099 CPPFLAGS="$REAL_CPPFLAGS"
17100
17101 ## Hack to detect a buggy GCC version.
17102 if test "x$GCC" = xyes \
17103 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17104 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17105 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17106 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17107 fi
17108
17109 version=$PACKAGE_VERSION
17110
17111 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
17112
17113 cat >>confdefs.h <<_ACEOF
17114 #define COPYRIGHT "$copyright"
17115 _ACEOF
17116
17117
17118
17119 ### Specify what sort of things we'll be editing into Makefile and config.h.
17120 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17121
17122
17123 ## Unused?
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17147 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17148 ## end of LIBX_BASE, but nothing ever set it.
17149
17150
17151
17152
17153 ## Used in lwlib/Makefile.in.
17154
17155
17156
17157
17158
17159
17160
17161
17162 if test -n "${term_header}"; then
17163
17164 cat >>confdefs.h <<_ACEOF
17165 #define TERM_HEADER "${term_header}"
17166 _ACEOF
17167
17168 fi
17169
17170
17171 cat >>confdefs.h <<_ACEOF
17172 #define EMACS_CONFIGURATION "${canonical}"
17173 _ACEOF
17174
17175 emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
17176
17177 cat >>confdefs.h <<_ACEOF
17178 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17179 _ACEOF
17180
17181
17182
17183 case $opsys in
17184 mingw32)
17185 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17186
17187 ;;
17188 esac
17189
17190 XMENU_OBJ=
17191 XOBJ=
17192 FONT_OBJ=
17193 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17194
17195 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17196
17197 XMENU_OBJ=xmenu.o
17198 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17199 FONT_OBJ=xfont.o
17200 if test "$HAVE_XFT" = "yes"; then
17201 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17202 elif test "$HAVE_FREETYPE" = "yes"; then
17203 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17204 fi
17205
17206 fi
17207
17208
17209
17210
17211 WIDGET_OBJ=
17212 MOTIF_LIBW=
17213 if test "${USE_X_TOOLKIT}" != "none" ; then
17214 WIDGET_OBJ=widget.o
17215
17216 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17217
17218 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17219
17220 $as_echo "#define USE_LUCID 1" >>confdefs.h
17221
17222 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17223
17224 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17225
17226 MOTIF_LIBW=-lXm
17227 case "$opsys" in
17228 gnu-linux)
17229 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17230 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17231 ;;
17232
17233 unixware)
17234 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17235 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17236 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17237 ;;
17238
17239 aix4-2)
17240 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17241 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17242 ;;
17243 esac
17244 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17245 fi
17246 fi
17247
17248
17249 TOOLKIT_LIBW=
17250 case "$USE_X_TOOLKIT" in
17251 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17252 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17253 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17254 esac
17255
17256
17257 if test "${opsys}" != "mingw32"; then
17258 if test "$USE_X_TOOLKIT" = "none"; then
17259 LIBXT_OTHER="\$(LIBXSM)"
17260 OLDXMENU_TARGET="really-oldXMenu"
17261 else
17262 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17263 OLDXMENU_TARGET="really-lwlib"
17264 fi
17265 fi
17266
17267
17268 ## The X Menu stuff is present in the X10 distribution, but missing
17269 ## from X11. If we have X10, just use the installed library;
17270 ## otherwise, use our own copy.
17271 if test "${HAVE_X11}" = "yes" ; then
17272
17273 $as_echo "#define HAVE_X11 1" >>confdefs.h
17274
17275
17276 if test "$USE_X_TOOLKIT" = "none"; then
17277 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17278 else
17279 OLDXMENU="\${lwlibdir}/liblw.a"
17280 fi
17281 LIBXMENU="\$(OLDXMENU)"
17282 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17283 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17284 else
17285 ## For a syntactically valid Makefile; not actually used for anything.
17286 ## See comments in src/Makefile.in.
17287 OLDXMENU=nothing
17288 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17289 if test "${HAVE_X_WINDOWS}" = "yes"; then
17290 LIBXMENU="-lXMenu"
17291 else
17292 LIBXMENU=
17293 fi
17294 LIBX_OTHER=
17295 OLDXMENU_DEPS=
17296 fi
17297
17298 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17299 OLDXMENU_TARGET=
17300 OLDXMENU=nothing
17301 LIBXMENU=
17302 OLDXMENU_DEPS=
17303 fi
17304
17305
17306
17307
17308
17309
17310
17311 if test "${HAVE_MENUS}" = "yes" ; then
17312
17313 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17314
17315 fi
17316
17317 if test "${GNU_MALLOC}" = "yes" ; then
17318
17319 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17320
17321 fi
17322
17323 RALLOC_OBJ=
17324 if test "${REL_ALLOC}" = "yes" ; then
17325
17326 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17327
17328
17329 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17330 fi
17331
17332
17333 if test "$opsys" = "cygwin"; then
17334 CYGWIN_OBJ="sheap.o cygw32.o"
17335 ## Cygwin differs because of its unexec().
17336 PRE_ALLOC_OBJ=
17337 POST_ALLOC_OBJ=lastfile.o
17338 elif test "$opsys" = "mingw32"; then
17339 CYGWIN_OBJ=
17340 PRE_ALLOC_OBJ=
17341 POST_ALLOC_OBJ=lastfile.o
17342 else
17343 CYGWIN_OBJ=
17344 PRE_ALLOC_OBJ=lastfile.o
17345 POST_ALLOC_OBJ=
17346 fi
17347
17348
17349
17350
17351 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17352 # it temporarily reverts them to their pre-pkg-config values,
17353 # because gnulib needs to work with both src (which uses the
17354 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17355 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17356 # and it therefore needs to run in an environment where LIBS does not
17357 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17358 # for some package unrelated to lib-src.
17359 SAVE_CFLAGS=$CFLAGS
17360 SAVE_LIBS=$LIBS
17361 CFLAGS=$pre_PKG_CONFIG_CFLAGS
17362 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374 LIBC_FATAL_STDERR_=1
17375 export LIBC_FATAL_STDERR_
17376
17377 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17378 # for constant arguments. Useless!
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17380 $as_echo_n "checking for working alloca.h... " >&6; }
17381 if test "${ac_cv_working_alloca_h+set}" = set; then :
17382 $as_echo_n "(cached) " >&6
17383 else
17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385 /* end confdefs.h. */
17386 #include <alloca.h>
17387 int
17388 main ()
17389 {
17390 char *p = (char *) alloca (2 * sizeof (int));
17391 if (p) return 0;
17392 ;
17393 return 0;
17394 }
17395 _ACEOF
17396 if ac_fn_c_try_link "$LINENO"; then :
17397 ac_cv_working_alloca_h=yes
17398 else
17399 ac_cv_working_alloca_h=no
17400 fi
17401 rm -f core conftest.err conftest.$ac_objext \
17402 conftest$ac_exeext conftest.$ac_ext
17403 fi
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17405 $as_echo "$ac_cv_working_alloca_h" >&6; }
17406 if test $ac_cv_working_alloca_h = yes; then
17407
17408 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17409
17410 fi
17411
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17413 $as_echo_n "checking for alloca... " >&6; }
17414 if test "${ac_cv_func_alloca_works+set}" = set; then :
17415 $as_echo_n "(cached) " >&6
17416 else
17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17419 #ifdef __GNUC__
17420 # define alloca __builtin_alloca
17421 #else
17422 # ifdef _MSC_VER
17423 # include <malloc.h>
17424 # define alloca _alloca
17425 # else
17426 # ifdef HAVE_ALLOCA_H
17427 # include <alloca.h>
17428 # else
17429 # ifdef _AIX
17430 #pragma alloca
17431 # else
17432 # ifndef alloca /* predefined by HP cc +Olibcalls */
17433 char *alloca ();
17434 # endif
17435 # endif
17436 # endif
17437 # endif
17438 #endif
17439
17440 int
17441 main ()
17442 {
17443 char *p = (char *) alloca (1);
17444 if (p) return 0;
17445 ;
17446 return 0;
17447 }
17448 _ACEOF
17449 if ac_fn_c_try_link "$LINENO"; then :
17450 ac_cv_func_alloca_works=yes
17451 else
17452 ac_cv_func_alloca_works=no
17453 fi
17454 rm -f core conftest.err conftest.$ac_objext \
17455 conftest$ac_exeext conftest.$ac_ext
17456 fi
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17458 $as_echo "$ac_cv_func_alloca_works" >&6; }
17459
17460 if test $ac_cv_func_alloca_works = yes; then
17461
17462 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17463
17464 else
17465 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17466 # that cause trouble. Some versions do not even contain alloca or
17467 # contain a buggy version. If you still want to use their alloca,
17468 # use ar to extract alloca.o from them instead of compiling alloca.c.
17469
17470
17471
17472
17473
17474 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17475
17476 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17477
17478
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17480 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17481 if test "${ac_cv_os_cray+set}" = set; then :
17482 $as_echo_n "(cached) " >&6
17483 else
17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17486 #if defined CRAY && ! defined CRAY2
17487 webecray
17488 #else
17489 wenotbecray
17490 #endif
17491
17492 _ACEOF
17493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17494 $EGREP "webecray" >/dev/null 2>&1; then :
17495 ac_cv_os_cray=yes
17496 else
17497 ac_cv_os_cray=no
17498 fi
17499 rm -f conftest*
17500
17501 fi
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17503 $as_echo "$ac_cv_os_cray" >&6; }
17504 if test $ac_cv_os_cray = yes; then
17505 for ac_func in _getb67 GETB67 getb67; do
17506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17507 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17508 eval as_val=\$$as_ac_var
17509 if test "x$as_val" = x""yes; then :
17510
17511 cat >>confdefs.h <<_ACEOF
17512 #define CRAY_STACKSEG_END $ac_func
17513 _ACEOF
17514
17515 break
17516 fi
17517
17518 done
17519 fi
17520
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17522 $as_echo_n "checking stack direction for C alloca... " >&6; }
17523 if test "${ac_cv_c_stack_direction+set}" = set; then :
17524 $as_echo_n "(cached) " >&6
17525 else
17526 if test "$cross_compiling" = yes; then :
17527 ac_cv_c_stack_direction=0
17528 else
17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530 /* end confdefs.h. */
17531 $ac_includes_default
17532 int
17533 find_stack_direction (int *addr, int depth)
17534 {
17535 int dir, dummy = 0;
17536 if (! addr)
17537 addr = &dummy;
17538 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17539 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17540 return dir + dummy;
17541 }
17542
17543 int
17544 main (int argc, char **argv)
17545 {
17546 return find_stack_direction (0, argc + !argv + 20) < 0;
17547 }
17548 _ACEOF
17549 if ac_fn_c_try_run "$LINENO"; then :
17550 ac_cv_c_stack_direction=1
17551 else
17552 ac_cv_c_stack_direction=-1
17553 fi
17554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17555 conftest.$ac_objext conftest.beam conftest.$ac_ext
17556 fi
17557
17558 fi
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17560 $as_echo "$ac_cv_c_stack_direction" >&6; }
17561 cat >>confdefs.h <<_ACEOF
17562 #define STACK_DIRECTION $ac_cv_c_stack_direction
17563 _ACEOF
17564
17565
17566 fi
17567
17568
17569
17570
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17572 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17573 if test "${ac_cv_c_bigendian+set}" = set; then :
17574 $as_echo_n "(cached) " >&6
17575 else
17576 ac_cv_c_bigendian=unknown
17577 # See if we're dealing with a universal compiler.
17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h. */
17580 #ifndef __APPLE_CC__
17581 not a universal capable compiler
17582 #endif
17583 typedef int dummy;
17584
17585 _ACEOF
17586 if ac_fn_c_try_compile "$LINENO"; then :
17587
17588 # Check for potential -arch flags. It is not universal unless
17589 # there are at least two -arch flags with different values.
17590 ac_arch=
17591 ac_prev=
17592 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17593 if test -n "$ac_prev"; then
17594 case $ac_word in
17595 i?86 | x86_64 | ppc | ppc64)
17596 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17597 ac_arch=$ac_word
17598 else
17599 ac_cv_c_bigendian=universal
17600 break
17601 fi
17602 ;;
17603 esac
17604 ac_prev=
17605 elif test "x$ac_word" = "x-arch"; then
17606 ac_prev=arch
17607 fi
17608 done
17609 fi
17610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17611 if test $ac_cv_c_bigendian = unknown; then
17612 # See if sys/param.h defines the BYTE_ORDER macro.
17613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17614 /* end confdefs.h. */
17615 #include <sys/types.h>
17616 #include <sys/param.h>
17617
17618 int
17619 main ()
17620 {
17621 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17622 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17623 && LITTLE_ENDIAN)
17624 bogus endian macros
17625 #endif
17626
17627 ;
17628 return 0;
17629 }
17630 _ACEOF
17631 if ac_fn_c_try_compile "$LINENO"; then :
17632 # It does; now see whether it defined to BIG_ENDIAN or not.
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17635 #include <sys/types.h>
17636 #include <sys/param.h>
17637
17638 int
17639 main ()
17640 {
17641 #if BYTE_ORDER != BIG_ENDIAN
17642 not big endian
17643 #endif
17644
17645 ;
17646 return 0;
17647 }
17648 _ACEOF
17649 if ac_fn_c_try_compile "$LINENO"; then :
17650 ac_cv_c_bigendian=yes
17651 else
17652 ac_cv_c_bigendian=no
17653 fi
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655 fi
17656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17657 fi
17658 if test $ac_cv_c_bigendian = unknown; then
17659 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17662 #include <limits.h>
17663
17664 int
17665 main ()
17666 {
17667 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17668 bogus endian macros
17669 #endif
17670
17671 ;
17672 return 0;
17673 }
17674 _ACEOF
17675 if ac_fn_c_try_compile "$LINENO"; then :
17676 # It does; now see whether it defined to _BIG_ENDIAN or not.
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17679 #include <limits.h>
17680
17681 int
17682 main ()
17683 {
17684 #ifndef _BIG_ENDIAN
17685 not big endian
17686 #endif
17687
17688 ;
17689 return 0;
17690 }
17691 _ACEOF
17692 if ac_fn_c_try_compile "$LINENO"; then :
17693 ac_cv_c_bigendian=yes
17694 else
17695 ac_cv_c_bigendian=no
17696 fi
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 fi
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 fi
17701 if test $ac_cv_c_bigendian = unknown; then
17702 # Compile a test program.
17703 if test "$cross_compiling" = yes; then :
17704 # Try to guess by grepping values from an object file.
17705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17706 /* end confdefs.h. */
17707 short int ascii_mm[] =
17708 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17709 short int ascii_ii[] =
17710 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17711 int use_ascii (int i) {
17712 return ascii_mm[i] + ascii_ii[i];
17713 }
17714 short int ebcdic_ii[] =
17715 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17716 short int ebcdic_mm[] =
17717 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17718 int use_ebcdic (int i) {
17719 return ebcdic_mm[i] + ebcdic_ii[i];
17720 }
17721 extern int foo;
17722
17723 int
17724 main ()
17725 {
17726 return use_ascii (foo) == use_ebcdic (foo);
17727 ;
17728 return 0;
17729 }
17730 _ACEOF
17731 if ac_fn_c_try_compile "$LINENO"; then :
17732 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17733 ac_cv_c_bigendian=yes
17734 fi
17735 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17736 if test "$ac_cv_c_bigendian" = unknown; then
17737 ac_cv_c_bigendian=no
17738 else
17739 # finding both strings is unlikely to happen, but who knows?
17740 ac_cv_c_bigendian=unknown
17741 fi
17742 fi
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 else
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17748 $ac_includes_default
17749 int
17750 main ()
17751 {
17752
17753 /* Are we little or big endian? From Harbison&Steele. */
17754 union
17755 {
17756 long int l;
17757 char c[sizeof (long int)];
17758 } u;
17759 u.l = 1;
17760 return u.c[sizeof (long int) - 1] == 1;
17761
17762 ;
17763 return 0;
17764 }
17765 _ACEOF
17766 if ac_fn_c_try_run "$LINENO"; then :
17767 ac_cv_c_bigendian=no
17768 else
17769 ac_cv_c_bigendian=yes
17770 fi
17771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17772 conftest.$ac_objext conftest.beam conftest.$ac_ext
17773 fi
17774
17775 fi
17776 fi
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17778 $as_echo "$ac_cv_c_bigendian" >&6; }
17779 case $ac_cv_c_bigendian in #(
17780 yes)
17781 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17782 ;; #(
17783 no)
17784 ;; #(
17785 universal)
17786
17787 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17788
17789 ;; #(
17790 *)
17791 as_fn_error "unknown endianness
17792 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17793 esac
17794
17795
17796
17797 GNULIB_CHDIR=0;
17798 GNULIB_CHOWN=0;
17799 GNULIB_CLOSE=0;
17800 GNULIB_DUP=0;
17801 GNULIB_DUP2=0;
17802 GNULIB_DUP3=0;
17803 GNULIB_ENVIRON=0;
17804 GNULIB_EUIDACCESS=0;
17805 GNULIB_FACCESSAT=0;
17806 GNULIB_FCHDIR=0;
17807 GNULIB_FCHOWNAT=0;
17808 GNULIB_FDATASYNC=0;
17809 GNULIB_FSYNC=0;
17810 GNULIB_FTRUNCATE=0;
17811 GNULIB_GETCWD=0;
17812 GNULIB_GETDOMAINNAME=0;
17813 GNULIB_GETDTABLESIZE=0;
17814 GNULIB_GETGROUPS=0;
17815 GNULIB_GETHOSTNAME=0;
17816 GNULIB_GETLOGIN=0;
17817 GNULIB_GETLOGIN_R=0;
17818 GNULIB_GETPAGESIZE=0;
17819 GNULIB_GETUSERSHELL=0;
17820 GNULIB_GROUP_MEMBER=0;
17821 GNULIB_ISATTY=0;
17822 GNULIB_LCHOWN=0;
17823 GNULIB_LINK=0;
17824 GNULIB_LINKAT=0;
17825 GNULIB_LSEEK=0;
17826 GNULIB_PIPE=0;
17827 GNULIB_PIPE2=0;
17828 GNULIB_PREAD=0;
17829 GNULIB_PWRITE=0;
17830 GNULIB_READ=0;
17831 GNULIB_READLINK=0;
17832 GNULIB_READLINKAT=0;
17833 GNULIB_RMDIR=0;
17834 GNULIB_SETHOSTNAME=0;
17835 GNULIB_SLEEP=0;
17836 GNULIB_SYMLINK=0;
17837 GNULIB_SYMLINKAT=0;
17838 GNULIB_TTYNAME_R=0;
17839 GNULIB_UNISTD_H_NONBLOCKING=0;
17840 GNULIB_UNISTD_H_SIGPIPE=0;
17841 GNULIB_UNLINK=0;
17842 GNULIB_UNLINKAT=0;
17843 GNULIB_USLEEP=0;
17844 GNULIB_WRITE=0;
17845 HAVE_CHOWN=1;
17846 HAVE_DUP2=1;
17847 HAVE_DUP3=1;
17848 HAVE_EUIDACCESS=1;
17849 HAVE_FACCESSAT=1;
17850 HAVE_FCHDIR=1;
17851 HAVE_FCHOWNAT=1;
17852 HAVE_FDATASYNC=1;
17853 HAVE_FSYNC=1;
17854 HAVE_FTRUNCATE=1;
17855 HAVE_GETDTABLESIZE=1;
17856 HAVE_GETGROUPS=1;
17857 HAVE_GETHOSTNAME=1;
17858 HAVE_GETLOGIN=1;
17859 HAVE_GETPAGESIZE=1;
17860 HAVE_GROUP_MEMBER=1;
17861 HAVE_LCHOWN=1;
17862 HAVE_LINK=1;
17863 HAVE_LINKAT=1;
17864 HAVE_PIPE=1;
17865 HAVE_PIPE2=1;
17866 HAVE_PREAD=1;
17867 HAVE_PWRITE=1;
17868 HAVE_READLINK=1;
17869 HAVE_READLINKAT=1;
17870 HAVE_SETHOSTNAME=1;
17871 HAVE_SLEEP=1;
17872 HAVE_SYMLINK=1;
17873 HAVE_SYMLINKAT=1;
17874 HAVE_UNLINKAT=1;
17875 HAVE_USLEEP=1;
17876 HAVE_DECL_ENVIRON=1;
17877 HAVE_DECL_FCHDIR=1;
17878 HAVE_DECL_FDATASYNC=1;
17879 HAVE_DECL_GETDOMAINNAME=1;
17880 HAVE_DECL_GETLOGIN_R=1;
17881 HAVE_DECL_GETPAGESIZE=1;
17882 HAVE_DECL_GETUSERSHELL=1;
17883 HAVE_DECL_SETHOSTNAME=1;
17884 HAVE_DECL_TTYNAME_R=1;
17885 HAVE_OS_H=0;
17886 HAVE_SYS_PARAM_H=0;
17887 REPLACE_CHOWN=0;
17888 REPLACE_CLOSE=0;
17889 REPLACE_DUP=0;
17890 REPLACE_DUP2=0;
17891 REPLACE_FCHOWNAT=0;
17892 REPLACE_FTRUNCATE=0;
17893 REPLACE_GETCWD=0;
17894 REPLACE_GETDOMAINNAME=0;
17895 REPLACE_GETLOGIN_R=0;
17896 REPLACE_GETGROUPS=0;
17897 REPLACE_GETPAGESIZE=0;
17898 REPLACE_ISATTY=0;
17899 REPLACE_LCHOWN=0;
17900 REPLACE_LINK=0;
17901 REPLACE_LINKAT=0;
17902 REPLACE_LSEEK=0;
17903 REPLACE_PREAD=0;
17904 REPLACE_PWRITE=0;
17905 REPLACE_READ=0;
17906 REPLACE_READLINK=0;
17907 REPLACE_RMDIR=0;
17908 REPLACE_SLEEP=0;
17909 REPLACE_SYMLINK=0;
17910 REPLACE_TTYNAME_R=0;
17911 REPLACE_UNLINK=0;
17912 REPLACE_UNLINKAT=0;
17913 REPLACE_USLEEP=0;
17914 REPLACE_WRITE=0;
17915 UNISTD_H_HAVE_WINSOCK2_H=0;
17916 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17917
17918
17919
17920 GNULIB_OPENDIR=0;
17921 GNULIB_READDIR=0;
17922 GNULIB_REWINDDIR=0;
17923 GNULIB_CLOSEDIR=0;
17924 GNULIB_DIRFD=0;
17925 GNULIB_FDOPENDIR=0;
17926 GNULIB_SCANDIR=0;
17927 GNULIB_ALPHASORT=0;
17928 HAVE_OPENDIR=1;
17929 HAVE_READDIR=1;
17930 HAVE_REWINDDIR=1;
17931 HAVE_CLOSEDIR=1;
17932 HAVE_DECL_DIRFD=1;
17933 HAVE_DECL_FDOPENDIR=1;
17934 HAVE_FDOPENDIR=1;
17935 HAVE_SCANDIR=1;
17936 HAVE_ALPHASORT=1;
17937 REPLACE_OPENDIR=0;
17938 REPLACE_CLOSEDIR=0;
17939 REPLACE_DIRFD=0;
17940 REPLACE_FDOPENDIR=0;
17941
17942
17943
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17945 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17946 if test "${gl_cv_have_include_next+set}" = set; then :
17947 $as_echo_n "(cached) " >&6
17948 else
17949 rm -rf conftestd1a conftestd1b conftestd2
17950 mkdir conftestd1a conftestd1b conftestd2
17951 cat <<EOF > conftestd1a/conftest.h
17952 #define DEFINED_IN_CONFTESTD1
17953 #include_next <conftest.h>
17954 #ifdef DEFINED_IN_CONFTESTD2
17955 int foo;
17956 #else
17957 #error "include_next doesn't work"
17958 #endif
17959 EOF
17960 cat <<EOF > conftestd1b/conftest.h
17961 #define DEFINED_IN_CONFTESTD1
17962 #include <stdio.h>
17963 #include_next <conftest.h>
17964 #ifdef DEFINED_IN_CONFTESTD2
17965 int foo;
17966 #else
17967 #error "include_next doesn't work"
17968 #endif
17969 EOF
17970 cat <<EOF > conftestd2/conftest.h
17971 #ifndef DEFINED_IN_CONFTESTD1
17972 #error "include_next test doesn't work"
17973 #endif
17974 #define DEFINED_IN_CONFTESTD2
17975 EOF
17976 gl_save_CPPFLAGS="$CPPFLAGS"
17977 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979 /* end confdefs.h. */
17980 #include <conftest.h>
17981 _ACEOF
17982 if ac_fn_c_try_compile "$LINENO"; then :
17983 gl_cv_have_include_next=yes
17984 else
17985 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17988 #include <conftest.h>
17989 _ACEOF
17990 if ac_fn_c_try_compile "$LINENO"; then :
17991 gl_cv_have_include_next=buggy
17992 else
17993 gl_cv_have_include_next=no
17994 fi
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996
17997 fi
17998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17999 CPPFLAGS="$gl_save_CPPFLAGS"
18000 rm -rf conftestd1a conftestd1b conftestd2
18001
18002 fi
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18004 $as_echo "$gl_cv_have_include_next" >&6; }
18005 PRAGMA_SYSTEM_HEADER=
18006 if test $gl_cv_have_include_next = yes; then
18007 INCLUDE_NEXT=include_next
18008 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18009 if test -n "$GCC"; then
18010 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
18011 fi
18012 else
18013 if test $gl_cv_have_include_next = buggy; then
18014 INCLUDE_NEXT=include
18015 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18016 else
18017 INCLUDE_NEXT=include
18018 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
18019 fi
18020 fi
18021
18022
18023
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18025 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18026 if test "${gl_cv_pragma_columns+set}" = set; then :
18027 $as_echo_n "(cached) " >&6
18028 else
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18031
18032 #ifdef __TANDEM
18033 choke me
18034 #endif
18035
18036 _ACEOF
18037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18038 $EGREP "choke me" >/dev/null 2>&1; then :
18039 gl_cv_pragma_columns=yes
18040 else
18041 gl_cv_pragma_columns=no
18042 fi
18043 rm -f conftest*
18044
18045
18046 fi
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18048 $as_echo "$gl_cv_pragma_columns" >&6; }
18049 if test $gl_cv_pragma_columns = yes; then
18050 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
18051 else
18052 PRAGMA_COLUMNS=
18053 fi
18054
18055
18056
18057
18058
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18060 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18061 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18062 $as_echo_n "(cached) " >&6
18063 else
18064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18065 /* end confdefs.h. */
18066 /* On HP-UX before 11.23, strtold returns a struct instead of
18067 long double. Reject implementations like that, by requiring
18068 compatibility with the C99 prototype. */
18069 #include <stdlib.h>
18070 static long double (*p) (char const *, char **) = strtold;
18071 static long double
18072 test (char const *nptr, char **endptr)
18073 {
18074 long double r;
18075 r = strtold (nptr, endptr);
18076 return r;
18077 }
18078 int
18079 main ()
18080 {
18081 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18082 ;
18083 return 0;
18084 }
18085 _ACEOF
18086 if ac_fn_c_try_link "$LINENO"; then :
18087 gl_cv_func_c99_strtold=yes
18088 else
18089 gl_cv_func_c99_strtold=no
18090 fi
18091 rm -f core conftest.err conftest.$ac_objext \
18092 conftest$ac_exeext conftest.$ac_ext
18093 fi
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18095 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18096 if test $gl_cv_func_c99_strtold = yes; then
18097
18098 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18099
18100 fi
18101
18102
18103
18104
18105
18106
18107
18108
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18110 $as_echo_n "checking if environ is properly declared... " >&6; }
18111 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18112 $as_echo_n "(cached) " >&6
18113 else
18114
18115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18116 /* end confdefs.h. */
18117 #if HAVE_UNISTD_H
18118 #include <unistd.h>
18119 #endif
18120 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18121 #include <stdlib.h>
18122
18123 extern struct { int foo; } environ;
18124 int
18125 main ()
18126 {
18127 environ.foo = 1;
18128 ;
18129 return 0;
18130 }
18131 _ACEOF
18132 if ac_fn_c_try_compile "$LINENO"; then :
18133 gt_cv_var_environ_declaration=no
18134 else
18135 gt_cv_var_environ_declaration=yes
18136 fi
18137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18138 fi
18139
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18141 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18142 if test $gt_cv_var_environ_declaration = yes; then
18143
18144 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18145
18146 fi
18147
18148
18149 if test $gt_cv_var_environ_declaration != yes; then
18150 HAVE_DECL_ENVIRON=0
18151 fi
18152
18153
18154
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18156 $as_echo_n "checking for complete errno.h... " >&6; }
18157 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18158 $as_echo_n "(cached) " >&6
18159 else
18160
18161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18162 /* end confdefs.h. */
18163
18164 #include <errno.h>
18165 #if !defined ETXTBSY
18166 booboo
18167 #endif
18168 #if !defined ENOMSG
18169 booboo
18170 #endif
18171 #if !defined EIDRM
18172 booboo
18173 #endif
18174 #if !defined ENOLINK
18175 booboo
18176 #endif
18177 #if !defined EPROTO
18178 booboo
18179 #endif
18180 #if !defined EMULTIHOP
18181 booboo
18182 #endif
18183 #if !defined EBADMSG
18184 booboo
18185 #endif
18186 #if !defined EOVERFLOW
18187 booboo
18188 #endif
18189 #if !defined ENOTSUP
18190 booboo
18191 #endif
18192 #if !defined ENETRESET
18193 booboo
18194 #endif
18195 #if !defined ECONNABORTED
18196 booboo
18197 #endif
18198 #if !defined ESTALE
18199 booboo
18200 #endif
18201 #if !defined EDQUOT
18202 booboo
18203 #endif
18204 #if !defined ECANCELED
18205 booboo
18206 #endif
18207 #if !defined EOWNERDEAD
18208 booboo
18209 #endif
18210 #if !defined ENOTRECOVERABLE
18211 booboo
18212 #endif
18213 #if !defined EILSEQ
18214 booboo
18215 #endif
18216
18217 _ACEOF
18218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18219 $EGREP "booboo" >/dev/null 2>&1; then :
18220 gl_cv_header_errno_h_complete=no
18221 else
18222 gl_cv_header_errno_h_complete=yes
18223 fi
18224 rm -f conftest*
18225
18226
18227 fi
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18229 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18230 if test $gl_cv_header_errno_h_complete = yes; then
18231 ERRNO_H=''
18232 else
18233
18234
18235
18236
18237
18238
18239
18240
18241 if test $gl_cv_have_include_next = yes; then
18242 gl_cv_next_errno_h='<'errno.h'>'
18243 else
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18245 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18246 if test "${gl_cv_next_errno_h+set}" = set; then :
18247 $as_echo_n "(cached) " >&6
18248 else
18249
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18252 #include <errno.h>
18253
18254 _ACEOF
18255 case "$host_os" in
18256 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18257 *) gl_absname_cpp="$ac_cpp" ;;
18258 esac
18259
18260 case "$host_os" in
18261 mingw*)
18262 gl_dirsep_regex='[/\\]'
18263 ;;
18264 *)
18265 gl_dirsep_regex='\/'
18266 ;;
18267 esac
18268 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18269
18270 gl_header_literal_regex=`echo 'errno.h' \
18271 | sed -e "$gl_make_literal_regex_sed"`
18272 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18273 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18274 s|^/[^/]|//&|
18275 p
18276 q
18277 }'
18278 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18279 sed -n "$gl_absolute_header_sed"`'"'
18280
18281
18282 fi
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18284 $as_echo "$gl_cv_next_errno_h" >&6; }
18285 fi
18286 NEXT_ERRNO_H=$gl_cv_next_errno_h
18287
18288 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18289 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18290 gl_next_as_first_directive='<'errno.h'>'
18291 else
18292 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18293 gl_next_as_first_directive=$gl_cv_next_errno_h
18294 fi
18295 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
18296
18297
18298
18299
18300 ERRNO_H='errno.h'
18301 fi
18302
18303 if test -n "$ERRNO_H"; then
18304 GL_GENERATE_ERRNO_H_TRUE=
18305 GL_GENERATE_ERRNO_H_FALSE='#'
18306 else
18307 GL_GENERATE_ERRNO_H_TRUE='#'
18308 GL_GENERATE_ERRNO_H_FALSE=
18309 fi
18310
18311
18312 if test -n "$ERRNO_H"; then
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18314 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18315 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18316 $as_echo_n "(cached) " >&6
18317 else
18318
18319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18321
18322 #include <errno.h>
18323 #ifdef EMULTIHOP
18324 yes
18325 #endif
18326
18327 _ACEOF
18328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18329 $EGREP "yes" >/dev/null 2>&1; then :
18330 gl_cv_header_errno_h_EMULTIHOP=yes
18331 else
18332 gl_cv_header_errno_h_EMULTIHOP=no
18333 fi
18334 rm -f conftest*
18335
18336 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
18337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18338 /* end confdefs.h. */
18339
18340 #define _XOPEN_SOURCE_EXTENDED 1
18341 #include <errno.h>
18342 #ifdef EMULTIHOP
18343 yes
18344 #endif
18345
18346 _ACEOF
18347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18348 $EGREP "yes" >/dev/null 2>&1; then :
18349 gl_cv_header_errno_h_EMULTIHOP=hidden
18350 fi
18351 rm -f conftest*
18352
18353 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
18354 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18355 #define _XOPEN_SOURCE_EXTENDED 1
18356 #include <errno.h>
18357 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18358 #include <stdio.h>
18359 #include <stdlib.h>
18360 "; then :
18361
18362 fi
18363
18364 fi
18365 fi
18366
18367 fi
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18369 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18370 case $gl_cv_header_errno_h_EMULTIHOP in
18371 yes | no)
18372 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
18373 ;;
18374 *)
18375 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
18376 ;;
18377 esac
18378
18379
18380 fi
18381
18382
18383 if test -n "$ERRNO_H"; then
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18385 $as_echo_n "checking for ENOLINK value... " >&6; }
18386 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18387 $as_echo_n "(cached) " >&6
18388 else
18389
18390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391 /* end confdefs.h. */
18392
18393 #include <errno.h>
18394 #ifdef ENOLINK
18395 yes
18396 #endif
18397
18398 _ACEOF
18399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18400 $EGREP "yes" >/dev/null 2>&1; then :
18401 gl_cv_header_errno_h_ENOLINK=yes
18402 else
18403 gl_cv_header_errno_h_ENOLINK=no
18404 fi
18405 rm -f conftest*
18406
18407 if test $gl_cv_header_errno_h_ENOLINK = no; then
18408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h. */
18410
18411 #define _XOPEN_SOURCE_EXTENDED 1
18412 #include <errno.h>
18413 #ifdef ENOLINK
18414 yes
18415 #endif
18416
18417 _ACEOF
18418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18419 $EGREP "yes" >/dev/null 2>&1; then :
18420 gl_cv_header_errno_h_ENOLINK=hidden
18421 fi
18422 rm -f conftest*
18423
18424 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
18425 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18426 #define _XOPEN_SOURCE_EXTENDED 1
18427 #include <errno.h>
18428 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18429 #include <stdio.h>
18430 #include <stdlib.h>
18431 "; then :
18432
18433 fi
18434
18435 fi
18436 fi
18437
18438 fi
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18440 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18441 case $gl_cv_header_errno_h_ENOLINK in
18442 yes | no)
18443 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18444 ;;
18445 *)
18446 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18447 ;;
18448 esac
18449
18450
18451 fi
18452
18453
18454 if test -n "$ERRNO_H"; then
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18456 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18457 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18458 $as_echo_n "(cached) " >&6
18459 else
18460
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18463
18464 #include <errno.h>
18465 #ifdef EOVERFLOW
18466 yes
18467 #endif
18468
18469 _ACEOF
18470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18471 $EGREP "yes" >/dev/null 2>&1; then :
18472 gl_cv_header_errno_h_EOVERFLOW=yes
18473 else
18474 gl_cv_header_errno_h_EOVERFLOW=no
18475 fi
18476 rm -f conftest*
18477
18478 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18481
18482 #define _XOPEN_SOURCE_EXTENDED 1
18483 #include <errno.h>
18484 #ifdef EOVERFLOW
18485 yes
18486 #endif
18487
18488 _ACEOF
18489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18490 $EGREP "yes" >/dev/null 2>&1; then :
18491 gl_cv_header_errno_h_EOVERFLOW=hidden
18492 fi
18493 rm -f conftest*
18494
18495 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18496 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18497 #define _XOPEN_SOURCE_EXTENDED 1
18498 #include <errno.h>
18499 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18500 #include <stdio.h>
18501 #include <stdlib.h>
18502 "; then :
18503
18504 fi
18505
18506 fi
18507 fi
18508
18509 fi
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18511 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18512 case $gl_cv_header_errno_h_EOVERFLOW in
18513 yes | no)
18514 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18515 ;;
18516 *)
18517 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18518 ;;
18519 esac
18520
18521
18522 fi
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533 GNULIB_FCNTL=0;
18534 GNULIB_NONBLOCKING=0;
18535 GNULIB_OPEN=0;
18536 GNULIB_OPENAT=0;
18537 HAVE_FCNTL=1;
18538 HAVE_OPENAT=1;
18539 REPLACE_FCNTL=0;
18540 REPLACE_OPEN=0;
18541 REPLACE_OPENAT=0;
18542
18543
18544 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18545 if test "x$ac_cv_type_mode_t" = x""yes; then :
18546
18547 else
18548
18549 cat >>confdefs.h <<_ACEOF
18550 #define mode_t int
18551 _ACEOF
18552
18553 fi
18554
18555 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18556 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
18557 ac_have_decl=1
18558 else
18559 ac_have_decl=0
18560 fi
18561
18562 cat >>confdefs.h <<_ACEOF
18563 #define HAVE_DECL_FDATASYNC $ac_have_decl
18564 _ACEOF
18565
18566
18567
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18569 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18570 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18571 $as_echo_n "(cached) " >&6
18572 else
18573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574 /* end confdefs.h. */
18575
18576 #include <sys/types.h>
18577 #include <sys/stat.h>
18578 int
18579 main ()
18580 {
18581 struct stat s; s.st_dm_mode;
18582 ;
18583 return 0;
18584 }
18585 _ACEOF
18586 if ac_fn_c_try_compile "$LINENO"; then :
18587 ac_cv_struct_st_dm_mode=yes
18588 else
18589 ac_cv_struct_st_dm_mode=no
18590 fi
18591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18592 fi
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18594 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18595
18596 if test $ac_cv_struct_st_dm_mode = yes; then
18597
18598 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18599
18600 fi
18601
18602
18603 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18604 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
18605 ac_have_decl=1
18606 else
18607 ac_have_decl=0
18608 fi
18609
18610 cat >>confdefs.h <<_ACEOF
18611 #define HAVE_DECL_STRMODE $ac_have_decl
18612 _ACEOF
18613
18614
18615
18616
18617
18618
18619 GNULIB_FCHMODAT=0;
18620 GNULIB_FSTAT=0;
18621 GNULIB_FSTATAT=0;
18622 GNULIB_FUTIMENS=0;
18623 GNULIB_LCHMOD=0;
18624 GNULIB_LSTAT=0;
18625 GNULIB_MKDIRAT=0;
18626 GNULIB_MKFIFO=0;
18627 GNULIB_MKFIFOAT=0;
18628 GNULIB_MKNOD=0;
18629 GNULIB_MKNODAT=0;
18630 GNULIB_STAT=0;
18631 GNULIB_UTIMENSAT=0;
18632 HAVE_FCHMODAT=1;
18633 HAVE_FSTATAT=1;
18634 HAVE_FUTIMENS=1;
18635 HAVE_LCHMOD=1;
18636 HAVE_LSTAT=1;
18637 HAVE_MKDIRAT=1;
18638 HAVE_MKFIFO=1;
18639 HAVE_MKFIFOAT=1;
18640 HAVE_MKNOD=1;
18641 HAVE_MKNODAT=1;
18642 HAVE_UTIMENSAT=1;
18643 REPLACE_FSTAT=0;
18644 REPLACE_FSTATAT=0;
18645 REPLACE_FUTIMENS=0;
18646 REPLACE_LSTAT=0;
18647 REPLACE_MKDIR=0;
18648 REPLACE_MKFIFO=0;
18649 REPLACE_MKNOD=0;
18650 REPLACE_STAT=0;
18651 REPLACE_UTIMENSAT=0;
18652
18653
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18655 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18656 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18657 $as_echo_n "(cached) " >&6
18658 else
18659 rm -f conftest.sym conftest.file
18660 echo >conftest.file
18661 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18662 if test "$cross_compiling" = yes; then :
18663 case "$host_os" in
18664 # Guess yes on glibc systems.
18665 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18666 # If we don't know, assume the worst.
18667 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18668 esac
18669
18670 else
18671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18672 /* end confdefs.h. */
18673 $ac_includes_default
18674 int
18675 main ()
18676 {
18677 struct stat sbuf;
18678 /* Linux will dereference the symlink and fail, as required by
18679 POSIX. That is better in the sense that it means we will not
18680 have to compile and use the lstat wrapper. */
18681 return lstat ("conftest.sym/", &sbuf) == 0;
18682
18683 ;
18684 return 0;
18685 }
18686 _ACEOF
18687 if ac_fn_c_try_run "$LINENO"; then :
18688 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18689 else
18690 gl_cv_func_lstat_dereferences_slashed_symlink=no
18691 fi
18692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18693 conftest.$ac_objext conftest.beam conftest.$ac_ext
18694 fi
18695
18696 else
18697 # If the 'ln -s' command failed, then we probably don't even
18698 # have an lstat function.
18699 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18700 fi
18701 rm -f conftest.sym conftest.file
18702
18703 fi
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18705 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18706 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18707 *yes)
18708
18709 cat >>confdefs.h <<_ACEOF
18710 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18711 _ACEOF
18712
18713 ;;
18714 esac
18715
18716
18717
18718
18719
18720
18721 GNULIB__EXIT=0;
18722 GNULIB_ATOLL=0;
18723 GNULIB_CALLOC_POSIX=0;
18724 GNULIB_CANONICALIZE_FILE_NAME=0;
18725 GNULIB_GETLOADAVG=0;
18726 GNULIB_GETSUBOPT=0;
18727 GNULIB_GRANTPT=0;
18728 GNULIB_MALLOC_POSIX=0;
18729 GNULIB_MBTOWC=0;
18730 GNULIB_MKDTEMP=0;
18731 GNULIB_MKOSTEMP=0;
18732 GNULIB_MKOSTEMPS=0;
18733 GNULIB_MKSTEMP=0;
18734 GNULIB_MKSTEMPS=0;
18735 GNULIB_POSIX_OPENPT=0;
18736 GNULIB_PTSNAME=0;
18737 GNULIB_PTSNAME_R=0;
18738 GNULIB_PUTENV=0;
18739 GNULIB_RANDOM=0;
18740 GNULIB_RANDOM_R=0;
18741 GNULIB_REALLOC_POSIX=0;
18742 GNULIB_REALPATH=0;
18743 GNULIB_RPMATCH=0;
18744 GNULIB_SECURE_GETENV=0;
18745 GNULIB_SETENV=0;
18746 GNULIB_STRTOD=0;
18747 GNULIB_STRTOLL=0;
18748 GNULIB_STRTOULL=0;
18749 GNULIB_SYSTEM_POSIX=0;
18750 GNULIB_UNLOCKPT=0;
18751 GNULIB_UNSETENV=0;
18752 GNULIB_WCTOMB=0;
18753 HAVE__EXIT=1;
18754 HAVE_ATOLL=1;
18755 HAVE_CANONICALIZE_FILE_NAME=1;
18756 HAVE_DECL_GETLOADAVG=1;
18757 HAVE_GETSUBOPT=1;
18758 HAVE_GRANTPT=1;
18759 HAVE_MKDTEMP=1;
18760 HAVE_MKOSTEMP=1;
18761 HAVE_MKOSTEMPS=1;
18762 HAVE_MKSTEMP=1;
18763 HAVE_MKSTEMPS=1;
18764 HAVE_POSIX_OPENPT=1;
18765 HAVE_PTSNAME=1;
18766 HAVE_PTSNAME_R=1;
18767 HAVE_RANDOM=1;
18768 HAVE_RANDOM_H=1;
18769 HAVE_RANDOM_R=1;
18770 HAVE_REALPATH=1;
18771 HAVE_RPMATCH=1;
18772 HAVE_SECURE_GETENV=1;
18773 HAVE_SETENV=1;
18774 HAVE_DECL_SETENV=1;
18775 HAVE_STRTOD=1;
18776 HAVE_STRTOLL=1;
18777 HAVE_STRTOULL=1;
18778 HAVE_STRUCT_RANDOM_DATA=1;
18779 HAVE_SYS_LOADAVG_H=0;
18780 HAVE_UNLOCKPT=1;
18781 HAVE_DECL_UNSETENV=1;
18782 REPLACE_CALLOC=0;
18783 REPLACE_CANONICALIZE_FILE_NAME=0;
18784 REPLACE_MALLOC=0;
18785 REPLACE_MBTOWC=0;
18786 REPLACE_MKSTEMP=0;
18787 REPLACE_PTSNAME=0;
18788 REPLACE_PTSNAME_R=0;
18789 REPLACE_PUTENV=0;
18790 REPLACE_RANDOM_R=0;
18791 REPLACE_REALLOC=0;
18792 REPLACE_REALPATH=0;
18793 REPLACE_SETENV=0;
18794 REPLACE_STRTOD=0;
18795 REPLACE_UNSETENV=0;
18796 REPLACE_WCTOMB=0;
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813 if test $gl_cv_have_include_next = yes; then
18814 gl_cv_next_getopt_h='<'getopt.h'>'
18815 else
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18817 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18818 if test "${gl_cv_next_getopt_h+set}" = set; then :
18819 $as_echo_n "(cached) " >&6
18820 else
18821
18822 if test $ac_cv_header_getopt_h = yes; then
18823
18824
18825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18826 /* end confdefs.h. */
18827 #include <getopt.h>
18828
18829 _ACEOF
18830 case "$host_os" in
18831 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18832 *) gl_absname_cpp="$ac_cpp" ;;
18833 esac
18834
18835 case "$host_os" in
18836 mingw*)
18837 gl_dirsep_regex='[/\\]'
18838 ;;
18839 *)
18840 gl_dirsep_regex='\/'
18841 ;;
18842 esac
18843 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18844
18845 gl_header_literal_regex=`echo 'getopt.h' \
18846 | sed -e "$gl_make_literal_regex_sed"`
18847 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18848 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18849 s|^/[^/]|//&|
18850 p
18851 q
18852 }'
18853 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18854 sed -n "$gl_absolute_header_sed"`'"'
18855 else
18856 gl_cv_next_getopt_h='<'getopt.h'>'
18857 fi
18858
18859
18860 fi
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18862 $as_echo "$gl_cv_next_getopt_h" >&6; }
18863 fi
18864 NEXT_GETOPT_H=$gl_cv_next_getopt_h
18865
18866 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18867 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18868 gl_next_as_first_directive='<'getopt.h'>'
18869 else
18870 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18871 gl_next_as_first_directive=$gl_cv_next_getopt_h
18872 fi
18873 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
18874
18875
18876
18877
18878 if test $ac_cv_header_getopt_h = yes; then
18879 HAVE_GETOPT_H=1
18880 else
18881 HAVE_GETOPT_H=0
18882 fi
18883
18884
18885 gl_replace_getopt=
18886
18887 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18888 for ac_header in getopt.h
18889 do :
18890 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18891 if test "x$ac_cv_header_getopt_h" = x""yes; then :
18892 cat >>confdefs.h <<_ACEOF
18893 #define HAVE_GETOPT_H 1
18894 _ACEOF
18895
18896 else
18897 gl_replace_getopt=yes
18898 fi
18899
18900 done
18901
18902 fi
18903
18904 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18905 for ac_func in getopt_long_only
18906 do :
18907 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18908 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
18909 cat >>confdefs.h <<_ACEOF
18910 #define HAVE_GETOPT_LONG_ONLY 1
18911 _ACEOF
18912
18913 else
18914 gl_replace_getopt=yes
18915 fi
18916 done
18917
18918 fi
18919
18920 if test -z "$gl_replace_getopt"; then
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18922 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18923 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18924 $as_echo_n "(cached) " >&6
18925 else
18926
18927 if test $cross_compiling = no; then
18928 if test "$cross_compiling" = yes; then :
18929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18931 as_fn_error "cannot run test program while cross compiling
18932 See \`config.log' for more details." "$LINENO" 5; }
18933 else
18934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h. */
18936
18937 #include <unistd.h>
18938 #include <stdlib.h>
18939 #include <string.h>
18940
18941 int
18942 main ()
18943 {
18944 static char program[] = "program";
18945 static char a[] = "-a";
18946 static char foo[] = "foo";
18947 static char bar[] = "bar";
18948 char *argv[] = { program, a, foo, bar, NULL };
18949 int c;
18950
18951 c = getopt (4, argv, "ab");
18952 if (!(c == 'a'))
18953 return 1;
18954 c = getopt (4, argv, "ab");
18955 if (!(c == -1))
18956 return 2;
18957 if (!(optind == 2))
18958 return 3;
18959 return 0;
18960 }
18961
18962 _ACEOF
18963 if ac_fn_c_try_run "$LINENO"; then :
18964 gl_cv_func_getopt_posix=maybe
18965 else
18966 gl_cv_func_getopt_posix=no
18967 fi
18968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18969 conftest.$ac_objext conftest.beam conftest.$ac_ext
18970 fi
18971
18972 if test $gl_cv_func_getopt_posix = maybe; then
18973 if test "$cross_compiling" = yes; then :
18974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18976 as_fn_error "cannot run test program while cross compiling
18977 See \`config.log' for more details." "$LINENO" 5; }
18978 else
18979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980 /* end confdefs.h. */
18981
18982 #include <unistd.h>
18983 #include <stdlib.h>
18984 #include <string.h>
18985
18986 int
18987 main ()
18988 {
18989 static char program[] = "program";
18990 static char donald[] = "donald";
18991 static char p[] = "-p";
18992 static char billy[] = "billy";
18993 static char duck[] = "duck";
18994 static char a[] = "-a";
18995 static char bar[] = "bar";
18996 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
18997 int c;
18998
18999 c = getopt (7, argv, "+abp:q:");
19000 if (!(c == -1))
19001 return 4;
19002 if (!(strcmp (argv[0], "program") == 0))
19003 return 5;
19004 if (!(strcmp (argv[1], "donald") == 0))
19005 return 6;
19006 if (!(strcmp (argv[2], "-p") == 0))
19007 return 7;
19008 if (!(strcmp (argv[3], "billy") == 0))
19009 return 8;
19010 if (!(strcmp (argv[4], "duck") == 0))
19011 return 9;
19012 if (!(strcmp (argv[5], "-a") == 0))
19013 return 10;
19014 if (!(strcmp (argv[6], "bar") == 0))
19015 return 11;
19016 if (!(optind == 1))
19017 return 12;
19018 return 0;
19019 }
19020
19021 _ACEOF
19022 if ac_fn_c_try_run "$LINENO"; then :
19023 gl_cv_func_getopt_posix=maybe
19024 else
19025 gl_cv_func_getopt_posix=no
19026 fi
19027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19028 conftest.$ac_objext conftest.beam conftest.$ac_ext
19029 fi
19030
19031 fi
19032 if test $gl_cv_func_getopt_posix = maybe; then
19033 if test "$cross_compiling" = yes; then :
19034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19036 as_fn_error "cannot run test program while cross compiling
19037 See \`config.log' for more details." "$LINENO" 5; }
19038 else
19039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19040 /* end confdefs.h. */
19041
19042 #include <unistd.h>
19043 #include <stdlib.h>
19044 #include <string.h>
19045
19046 int
19047 main ()
19048 {
19049 static char program[] = "program";
19050 static char ab[] = "-ab";
19051 char *argv[3] = { program, ab, NULL };
19052 if (getopt (2, argv, "ab:") != 'a')
19053 return 13;
19054 if (getopt (2, argv, "ab:") != '?')
19055 return 14;
19056 if (optopt != 'b')
19057 return 15;
19058 if (optind != 2)
19059 return 16;
19060 return 0;
19061 }
19062
19063 _ACEOF
19064 if ac_fn_c_try_run "$LINENO"; then :
19065 gl_cv_func_getopt_posix=yes
19066 else
19067 gl_cv_func_getopt_posix=no
19068 fi
19069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19070 conftest.$ac_objext conftest.beam conftest.$ac_ext
19071 fi
19072
19073 fi
19074 else
19075 case "$host_os" in
19076 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
19077 *) gl_cv_func_getopt_posix="guessing yes";;
19078 esac
19079 fi
19080
19081 fi
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19083 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19084 case "$gl_cv_func_getopt_posix" in
19085 *no) gl_replace_getopt=yes ;;
19086 esac
19087 fi
19088
19089 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19091 $as_echo_n "checking for working GNU getopt function... " >&6; }
19092 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19093 $as_echo_n "(cached) " >&6
19094 else
19095 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19096 # optstring is necessary for programs like m4 that have POSIX-mandated
19097 # semantics for supporting options interspersed with files.
19098 # Also, since getopt_long is a GNU extension, we require optind=0.
19099 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19100 # so take care to revert to the correct (non-)export state.
19101 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19102 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19103 xx) gl_had_POSIXLY_CORRECT=exported ;;
19104 x) gl_had_POSIXLY_CORRECT=yes ;;
19105 *) gl_had_POSIXLY_CORRECT= ;;
19106 esac
19107 POSIXLY_CORRECT=1
19108 export POSIXLY_CORRECT
19109 if test "$cross_compiling" = yes; then :
19110 gl_cv_func_getopt_gnu="guessing no"
19111
19112 else
19113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h. */
19115 #include <getopt.h>
19116 #include <stddef.h>
19117 #include <string.h>
19118
19119 #include <stdlib.h>
19120 #if defined __MACH__ && defined __APPLE__
19121 /* Avoid a crash on Mac OS X. */
19122 #include <mach/mach.h>
19123 #include <mach/mach_error.h>
19124 #include <mach/thread_status.h>
19125 #include <mach/exception.h>
19126 #include <mach/task.h>
19127 #include <pthread.h>
19128 /* The exception port on which our thread listens. */
19129 static mach_port_t our_exception_port;
19130 /* The main function of the thread listening for exceptions of type
19131 EXC_BAD_ACCESS. */
19132 static void *
19133 mach_exception_thread (void *arg)
19134 {
19135 /* Buffer for a message to be received. */
19136 struct {
19137 mach_msg_header_t head;
19138 mach_msg_body_t msgh_body;
19139 char data[1024];
19140 } msg;
19141 mach_msg_return_t retval;
19142 /* Wait for a message on the exception port. */
19143 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19144 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19145 if (retval != MACH_MSG_SUCCESS)
19146 abort ();
19147 exit (1);
19148 }
19149 static void
19150 nocrash_init (void)
19151 {
19152 mach_port_t self = mach_task_self ();
19153 /* Allocate a port on which the thread shall listen for exceptions. */
19154 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19155 == KERN_SUCCESS) {
19156 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19157 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19158 MACH_MSG_TYPE_MAKE_SEND)
19159 == KERN_SUCCESS) {
19160 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19161 for us. */
19162 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19163 /* Create the thread listening on the exception port. */
19164 pthread_attr_t attr;
19165 pthread_t thread;
19166 if (pthread_attr_init (&attr) == 0
19167 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19168 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19169 pthread_attr_destroy (&attr);
19170 /* Replace the exception port info for these exceptions with our own.
19171 Note that we replace the exception port for the entire task, not only
19172 for a particular thread. This has the effect that when our exception
19173 port gets the message, the thread specific exception port has already
19174 been asked, and we don't need to bother about it.
19175 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19176 task_set_exception_ports (self, mask, our_exception_port,
19177 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19178 }
19179 }
19180 }
19181 }
19182 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19183 /* Avoid a crash on native Windows. */
19184 #define WIN32_LEAN_AND_MEAN
19185 #include <windows.h>
19186 #include <winerror.h>
19187 static LONG WINAPI
19188 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19189 {
19190 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19191 {
19192 case EXCEPTION_ACCESS_VIOLATION:
19193 case EXCEPTION_IN_PAGE_ERROR:
19194 case EXCEPTION_STACK_OVERFLOW:
19195 case EXCEPTION_GUARD_PAGE:
19196 case EXCEPTION_PRIV_INSTRUCTION:
19197 case EXCEPTION_ILLEGAL_INSTRUCTION:
19198 case EXCEPTION_DATATYPE_MISALIGNMENT:
19199 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19200 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19201 exit (1);
19202 }
19203 return EXCEPTION_CONTINUE_SEARCH;
19204 }
19205 static void
19206 nocrash_init (void)
19207 {
19208 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19209 }
19210 #else
19211 /* Avoid a crash on POSIX systems. */
19212 #include <signal.h>
19213 /* A POSIX signal handler. */
19214 static void
19215 exception_handler (int sig)
19216 {
19217 exit (1);
19218 }
19219 static void
19220 nocrash_init (void)
19221 {
19222 #ifdef SIGSEGV
19223 signal (SIGSEGV, exception_handler);
19224 #endif
19225 #ifdef SIGBUS
19226 signal (SIGBUS, exception_handler);
19227 #endif
19228 }
19229 #endif
19230
19231
19232 int
19233 main ()
19234 {
19235
19236 int result = 0;
19237
19238 nocrash_init();
19239
19240 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19241 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19242 OSF/1 5.1, Solaris 10. */
19243 {
19244 static char conftest[] = "conftest";
19245 static char plus[] = "-+";
19246 char *argv[3] = { conftest, plus, NULL };
19247 opterr = 0;
19248 if (getopt (2, argv, "+a") != '?')
19249 result |= 1;
19250 }
19251 /* This code succeeds on glibc 2.8, mingw,
19252 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19253 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19254 {
19255 static char program[] = "program";
19256 static char p[] = "-p";
19257 static char foo[] = "foo";
19258 static char bar[] = "bar";
19259 char *argv[] = { program, p, foo, bar, NULL };
19260
19261 optind = 1;
19262 if (getopt (4, argv, "p::") != 'p')
19263 result |= 2;
19264 else if (optarg != NULL)
19265 result |= 4;
19266 else if (getopt (4, argv, "p::") != -1)
19267 result |= 6;
19268 else if (optind != 2)
19269 result |= 8;
19270 }
19271 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19272 {
19273 static char program[] = "program";
19274 static char foo[] = "foo";
19275 static char p[] = "-p";
19276 char *argv[] = { program, foo, p, NULL };
19277 optind = 0;
19278 if (getopt (3, argv, "-p") != 1)
19279 result |= 16;
19280 else if (getopt (3, argv, "-p") != 'p')
19281 result |= 16;
19282 }
19283 /* This code fails on glibc 2.11. */
19284 {
19285 static char program[] = "program";
19286 static char b[] = "-b";
19287 static char a[] = "-a";
19288 char *argv[] = { program, b, a, NULL };
19289 optind = opterr = 0;
19290 if (getopt (3, argv, "+:a:b") != 'b')
19291 result |= 32;
19292 else if (getopt (3, argv, "+:a:b") != ':')
19293 result |= 32;
19294 }
19295 /* This code dumps core on glibc 2.14. */
19296 {
19297 static char program[] = "program";
19298 static char w[] = "-W";
19299 static char dummy[] = "dummy";
19300 char *argv[] = { program, w, dummy, NULL };
19301 optind = opterr = 1;
19302 if (getopt (3, argv, "W;") != 'W')
19303 result |= 64;
19304 }
19305 return result;
19306
19307 ;
19308 return 0;
19309 }
19310 _ACEOF
19311 if ac_fn_c_try_run "$LINENO"; then :
19312 gl_cv_func_getopt_gnu=yes
19313 else
19314 gl_cv_func_getopt_gnu=no
19315 fi
19316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19317 conftest.$ac_objext conftest.beam conftest.$ac_ext
19318 fi
19319
19320 case $gl_had_POSIXLY_CORRECT in
19321 exported) ;;
19322 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
19323 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
19324 esac
19325
19326 fi
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19328 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19329 if test "$gl_cv_func_getopt_gnu" != yes; then
19330 gl_replace_getopt=yes
19331 else
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19333 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19334 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19335 $as_echo_n "(cached) " >&6
19336 else
19337 if test "$cross_compiling" = yes; then :
19338 case "$host_os" in
19339 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
19340 *) gl_cv_func_getopt_long_gnu="guessing yes";;
19341 esac
19342
19343 else
19344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19345 /* end confdefs.h. */
19346 #include <getopt.h>
19347 #include <stddef.h>
19348 #include <string.h>
19349
19350 int
19351 main ()
19352 {
19353 static const struct option long_options[] =
19354 {
19355 { "xtremely-",no_argument, NULL, 1003 },
19356 { "xtra", no_argument, NULL, 1001 },
19357 { "xtreme", no_argument, NULL, 1002 },
19358 { "xtremely", no_argument, NULL, 1003 },
19359 { NULL, 0, NULL, 0 }
19360 };
19361 /* This code fails on OpenBSD 5.0. */
19362 {
19363 static char program[] = "program";
19364 static char xtremel[] = "--xtremel";
19365 char *argv[] = { program, xtremel, NULL };
19366 int option_index;
19367 optind = 1; opterr = 0;
19368 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19369 return 1;
19370 }
19371 return 0;
19372
19373 ;
19374 return 0;
19375 }
19376 _ACEOF
19377 if ac_fn_c_try_run "$LINENO"; then :
19378 gl_cv_func_getopt_long_gnu=yes
19379 else
19380 gl_cv_func_getopt_long_gnu=no
19381 fi
19382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19383 conftest.$ac_objext conftest.beam conftest.$ac_ext
19384 fi
19385
19386
19387 fi
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19389 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19390 case "$gl_cv_func_getopt_long_gnu" in
19391 *yes) ;;
19392 *) gl_replace_getopt=yes ;;
19393 esac
19394 fi
19395 fi
19396
19397
19398
19399
19400
19401
19402 REPLACE_GETOPT=0
19403 if test -n "$gl_replace_getopt"; then
19404 REPLACE_GETOPT=1
19405 fi
19406
19407 if test $REPLACE_GETOPT = 1; then
19408
19409 GETOPT_H=getopt.h
19410
19411 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19412
19413
19414
19415 fi
19416
19417 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19418 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
19419 ac_have_decl=1
19420 else
19421 ac_have_decl=0
19422 fi
19423
19424 cat >>confdefs.h <<_ACEOF
19425 #define HAVE_DECL_GETENV $ac_have_decl
19426 _ACEOF
19427
19428 :
19429
19430
19431
19432
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19434 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19435 if test "${ac_cv_c_restrict+set}" = set; then :
19436 $as_echo_n "(cached) " >&6
19437 else
19438 ac_cv_c_restrict=no
19439 # The order here caters to the fact that C++ does not require restrict.
19440 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19443 typedef int * int_ptr;
19444 int foo (int_ptr $ac_kw ip) {
19445 return ip[0];
19446 }
19447 int
19448 main ()
19449 {
19450 int s[1];
19451 int * $ac_kw t = s;
19452 t[0] = 0;
19453 return foo(t)
19454 ;
19455 return 0;
19456 }
19457 _ACEOF
19458 if ac_fn_c_try_compile "$LINENO"; then :
19459 ac_cv_c_restrict=$ac_kw
19460 fi
19461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19462 test "$ac_cv_c_restrict" != no && break
19463 done
19464
19465 fi
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19467 $as_echo "$ac_cv_c_restrict" >&6; }
19468
19469 case $ac_cv_c_restrict in
19470 restrict) ;;
19471 no) $as_echo "#define restrict /**/" >>confdefs.h
19472 ;;
19473 *) cat >>confdefs.h <<_ACEOF
19474 #define restrict $ac_cv_c_restrict
19475 _ACEOF
19476 ;;
19477 esac
19478
19479
19480 GNULIB_GETTIMEOFDAY=0;
19481 HAVE_GETTIMEOFDAY=1;
19482 HAVE_STRUCT_TIMEVAL=1;
19483 HAVE_SYS_TIME_H=1;
19484 REPLACE_GETTIMEOFDAY=0;
19485 REPLACE_STRUCT_TIMEVAL=0;
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502 if test $gl_cv_have_include_next = yes; then
19503 gl_cv_next_sys_time_h='<'sys/time.h'>'
19504 else
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19506 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19507 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19508 $as_echo_n "(cached) " >&6
19509 else
19510
19511 if test $ac_cv_header_sys_time_h = yes; then
19512
19513
19514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19515 /* end confdefs.h. */
19516 #include <sys/time.h>
19517
19518 _ACEOF
19519 case "$host_os" in
19520 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19521 *) gl_absname_cpp="$ac_cpp" ;;
19522 esac
19523
19524 case "$host_os" in
19525 mingw*)
19526 gl_dirsep_regex='[/\\]'
19527 ;;
19528 *)
19529 gl_dirsep_regex='\/'
19530 ;;
19531 esac
19532 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19533
19534 gl_header_literal_regex=`echo 'sys/time.h' \
19535 | sed -e "$gl_make_literal_regex_sed"`
19536 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19537 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19538 s|^/[^/]|//&|
19539 p
19540 q
19541 }'
19542 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19543 sed -n "$gl_absolute_header_sed"`'"'
19544 else
19545 gl_cv_next_sys_time_h='<'sys/time.h'>'
19546 fi
19547
19548
19549 fi
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19551 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19552 fi
19553 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19554
19555 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19557 gl_next_as_first_directive='<'sys/time.h'>'
19558 else
19559 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19560 gl_next_as_first_directive=$gl_cv_next_sys_time_h
19561 fi
19562 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19563
19564
19565
19566
19567
19568 if test $ac_cv_header_sys_time_h != yes; then
19569 HAVE_SYS_TIME_H=0
19570 fi
19571
19572
19573
19574
19575
19576 if test $ac_cv_header_sys_socket_h != yes; then
19577 for ac_header in winsock2.h
19578 do :
19579 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19580 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19581 cat >>confdefs.h <<_ACEOF
19582 #define HAVE_WINSOCK2_H 1
19583 _ACEOF
19584
19585 fi
19586
19587 done
19588
19589 fi
19590 if test "$ac_cv_header_winsock2_h" = yes; then
19591 HAVE_WINSOCK2_H=1
19592 UNISTD_H_HAVE_WINSOCK2_H=1
19593 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19594 else
19595 HAVE_WINSOCK2_H=0
19596 fi
19597
19598
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19600 $as_echo_n "checking for struct timeval... " >&6; }
19601 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19602 $as_echo_n "(cached) " >&6
19603 else
19604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h. */
19606 #if HAVE_SYS_TIME_H
19607 #include <sys/time.h>
19608 #endif
19609 #include <time.h>
19610 #if HAVE_WINSOCK2_H
19611 # include <winsock2.h>
19612 #endif
19613
19614 int
19615 main ()
19616 {
19617 static struct timeval x; x.tv_sec = x.tv_usec;
19618 ;
19619 return 0;
19620 }
19621 _ACEOF
19622 if ac_fn_c_try_compile "$LINENO"; then :
19623 gl_cv_sys_struct_timeval=yes
19624 else
19625 gl_cv_sys_struct_timeval=no
19626 fi
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628
19629 fi
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19631 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19632 if test $gl_cv_sys_struct_timeval != yes; then
19633 HAVE_STRUCT_TIMEVAL=0
19634 else
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19636 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19637 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19638 $as_echo_n "(cached) " >&6
19639 else
19640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19641 /* end confdefs.h. */
19642 #if HAVE_SYS_TIME_H
19643 #include <sys/time.h>
19644 #endif
19645 #include <time.h>
19646 #if HAVE_WINSOCK2_H
19647 # include <winsock2.h>
19648 #endif
19649
19650 int
19651 main ()
19652 {
19653 static struct timeval x;
19654 typedef int verify_tv_sec_type[
19655 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19656 ];
19657
19658 ;
19659 return 0;
19660 }
19661 _ACEOF
19662 if ac_fn_c_try_compile "$LINENO"; then :
19663 gl_cv_sys_struct_timeval_tv_sec=yes
19664 else
19665 gl_cv_sys_struct_timeval_tv_sec=no
19666 fi
19667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19668
19669 fi
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19671 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19672 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19673 REPLACE_STRUCT_TIMEVAL=1
19674 fi
19675 fi
19676
19677
19678
19679
19680
19681
19682
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19684 $as_echo_n "checking for unsigned long long int... " >&6; }
19685 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19686 $as_echo_n "(cached) " >&6
19687 else
19688 ac_cv_type_unsigned_long_long_int=yes
19689 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h. */
19692
19693 /* For now, do not test the preprocessor; as of 2007 there are too many
19694 implementations with broken preprocessors. Perhaps this can
19695 be revisited in 2012. In the meantime, code should not expect
19696 #if to work with literals wider than 32 bits. */
19697 /* Test literals. */
19698 long long int ll = 9223372036854775807ll;
19699 long long int nll = -9223372036854775807LL;
19700 unsigned long long int ull = 18446744073709551615ULL;
19701 /* Test constant expressions. */
19702 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19703 ? 1 : -1)];
19704 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19705 ? 1 : -1)];
19706 int i = 63;
19707 int
19708 main ()
19709 {
19710 /* Test availability of runtime routines for shift and division. */
19711 long long int llmax = 9223372036854775807ll;
19712 unsigned long long int ullmax = 18446744073709551615ull;
19713 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19714 | (llmax / ll) | (llmax % ll)
19715 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19716 | (ullmax / ull) | (ullmax % ull));
19717 ;
19718 return 0;
19719 }
19720
19721 _ACEOF
19722 if ac_fn_c_try_link "$LINENO"; then :
19723
19724 else
19725 ac_cv_type_unsigned_long_long_int=no
19726 fi
19727 rm -f core conftest.err conftest.$ac_objext \
19728 conftest$ac_exeext conftest.$ac_ext
19729 fi
19730 fi
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19732 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19733 if test $ac_cv_type_unsigned_long_long_int = yes; then
19734
19735 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19736
19737 fi
19738
19739
19740
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19742 $as_echo_n "checking for long long int... " >&6; }
19743 if test "${ac_cv_type_long_long_int+set}" = set; then :
19744 $as_echo_n "(cached) " >&6
19745 else
19746 ac_cv_type_long_long_int=yes
19747 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19748 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19749 if test $ac_cv_type_long_long_int = yes; then
19750 if test "$cross_compiling" = yes; then :
19751 :
19752 else
19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19755 #include <limits.h>
19756 #ifndef LLONG_MAX
19757 # define HALF \
19758 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19759 # define LLONG_MAX (HALF - 1 + HALF)
19760 #endif
19761 int
19762 main ()
19763 {
19764 long long int n = 1;
19765 int i;
19766 for (i = 0; ; i++)
19767 {
19768 long long int m = n << i;
19769 if (m >> i != n)
19770 return 1;
19771 if (LLONG_MAX / 2 < m)
19772 break;
19773 }
19774 return 0;
19775 ;
19776 return 0;
19777 }
19778 _ACEOF
19779 if ac_fn_c_try_run "$LINENO"; then :
19780
19781 else
19782 ac_cv_type_long_long_int=no
19783 fi
19784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19785 conftest.$ac_objext conftest.beam conftest.$ac_ext
19786 fi
19787
19788 fi
19789 fi
19790 fi
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19792 $as_echo "$ac_cv_type_long_long_int" >&6; }
19793 if test $ac_cv_type_long_long_int = yes; then
19794
19795 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19796
19797 fi
19798
19799
19800
19801
19802
19803
19804 gl_cv_c_multiarch=no
19805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19806 /* end confdefs.h. */
19807 #ifndef __APPLE_CC__
19808 not a universal capable compiler
19809 #endif
19810 typedef int dummy;
19811
19812 _ACEOF
19813 if ac_fn_c_try_compile "$LINENO"; then :
19814
19815 arch=
19816 prev=
19817 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19818 if test -n "$prev"; then
19819 case $word in
19820 i?86 | x86_64 | ppc | ppc64)
19821 if test -z "$arch" || test "$arch" = "$word"; then
19822 arch="$word"
19823 else
19824 gl_cv_c_multiarch=yes
19825 fi
19826 ;;
19827 esac
19828 prev=
19829 else
19830 if test "x$word" = "x-arch"; then
19831 prev=arch
19832 fi
19833 fi
19834 done
19835
19836 fi
19837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19838 if test $gl_cv_c_multiarch = yes; then
19839 APPLE_UNIVERSAL_BUILD=1
19840 else
19841 APPLE_UNIVERSAL_BUILD=0
19842 fi
19843
19844
19845
19846
19847
19848 if test $ac_cv_type_long_long_int = yes; then
19849 HAVE_LONG_LONG_INT=1
19850 else
19851 HAVE_LONG_LONG_INT=0
19852 fi
19853
19854
19855 if test $ac_cv_type_unsigned_long_long_int = yes; then
19856 HAVE_UNSIGNED_LONG_LONG_INT=1
19857 else
19858 HAVE_UNSIGNED_LONG_LONG_INT=0
19859 fi
19860
19861
19862
19863 if test $ac_cv_header_wchar_h = yes; then
19864 HAVE_WCHAR_H=1
19865 else
19866 HAVE_WCHAR_H=0
19867 fi
19868
19869
19870 if test $ac_cv_header_inttypes_h = yes; then
19871 HAVE_INTTYPES_H=1
19872 else
19873 HAVE_INTTYPES_H=0
19874 fi
19875
19876
19877 if test $ac_cv_header_sys_types_h = yes; then
19878 HAVE_SYS_TYPES_H=1
19879 else
19880 HAVE_SYS_TYPES_H=0
19881 fi
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893 if test $gl_cv_have_include_next = yes; then
19894 gl_cv_next_stdint_h='<'stdint.h'>'
19895 else
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19897 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19898 if test "${gl_cv_next_stdint_h+set}" = set; then :
19899 $as_echo_n "(cached) " >&6
19900 else
19901
19902 if test $ac_cv_header_stdint_h = yes; then
19903
19904
19905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19906 /* end confdefs.h. */
19907 #include <stdint.h>
19908
19909 _ACEOF
19910 case "$host_os" in
19911 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19912 *) gl_absname_cpp="$ac_cpp" ;;
19913 esac
19914
19915 case "$host_os" in
19916 mingw*)
19917 gl_dirsep_regex='[/\\]'
19918 ;;
19919 *)
19920 gl_dirsep_regex='\/'
19921 ;;
19922 esac
19923 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19924
19925 gl_header_literal_regex=`echo 'stdint.h' \
19926 | sed -e "$gl_make_literal_regex_sed"`
19927 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19928 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19929 s|^/[^/]|//&|
19930 p
19931 q
19932 }'
19933 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19934 sed -n "$gl_absolute_header_sed"`'"'
19935 else
19936 gl_cv_next_stdint_h='<'stdint.h'>'
19937 fi
19938
19939
19940 fi
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19942 $as_echo "$gl_cv_next_stdint_h" >&6; }
19943 fi
19944 NEXT_STDINT_H=$gl_cv_next_stdint_h
19945
19946 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19947 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19948 gl_next_as_first_directive='<'stdint.h'>'
19949 else
19950 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19951 gl_next_as_first_directive=$gl_cv_next_stdint_h
19952 fi
19953 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19954
19955
19956
19957
19958 if test $ac_cv_header_stdint_h = yes; then
19959 HAVE_STDINT_H=1
19960 else
19961 HAVE_STDINT_H=0
19962 fi
19963
19964
19965 if test $ac_cv_header_stdint_h = yes; then
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19967 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19968 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
19969 $as_echo_n "(cached) " >&6
19970 else
19971 gl_cv_header_working_stdint_h=no
19972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19973 /* end confdefs.h. */
19974
19975
19976 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19977 #include <stdint.h>
19978 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
19979 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19980 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19981 #endif
19982
19983
19984 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19985 included before <wchar.h>. */
19986 #include <stddef.h>
19987 #include <signal.h>
19988 #if HAVE_WCHAR_H
19989 # include <stdio.h>
19990 # include <time.h>
19991 # include <wchar.h>
19992 #endif
19993
19994
19995 #ifdef INT8_MAX
19996 int8_t a1 = INT8_MAX;
19997 int8_t a1min = INT8_MIN;
19998 #endif
19999 #ifdef INT16_MAX
20000 int16_t a2 = INT16_MAX;
20001 int16_t a2min = INT16_MIN;
20002 #endif
20003 #ifdef INT32_MAX
20004 int32_t a3 = INT32_MAX;
20005 int32_t a3min = INT32_MIN;
20006 #endif
20007 #ifdef INT64_MAX
20008 int64_t a4 = INT64_MAX;
20009 int64_t a4min = INT64_MIN;
20010 #endif
20011 #ifdef UINT8_MAX
20012 uint8_t b1 = UINT8_MAX;
20013 #else
20014 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20015 #endif
20016 #ifdef UINT16_MAX
20017 uint16_t b2 = UINT16_MAX;
20018 #endif
20019 #ifdef UINT32_MAX
20020 uint32_t b3 = UINT32_MAX;
20021 #endif
20022 #ifdef UINT64_MAX
20023 uint64_t b4 = UINT64_MAX;
20024 #endif
20025 int_least8_t c1 = INT8_C (0x7f);
20026 int_least8_t c1max = INT_LEAST8_MAX;
20027 int_least8_t c1min = INT_LEAST8_MIN;
20028 int_least16_t c2 = INT16_C (0x7fff);
20029 int_least16_t c2max = INT_LEAST16_MAX;
20030 int_least16_t c2min = INT_LEAST16_MIN;
20031 int_least32_t c3 = INT32_C (0x7fffffff);
20032 int_least32_t c3max = INT_LEAST32_MAX;
20033 int_least32_t c3min = INT_LEAST32_MIN;
20034 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20035 int_least64_t c4max = INT_LEAST64_MAX;
20036 int_least64_t c4min = INT_LEAST64_MIN;
20037 uint_least8_t d1 = UINT8_C (0xff);
20038 uint_least8_t d1max = UINT_LEAST8_MAX;
20039 uint_least16_t d2 = UINT16_C (0xffff);
20040 uint_least16_t d2max = UINT_LEAST16_MAX;
20041 uint_least32_t d3 = UINT32_C (0xffffffff);
20042 uint_least32_t d3max = UINT_LEAST32_MAX;
20043 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20044 uint_least64_t d4max = UINT_LEAST64_MAX;
20045 int_fast8_t e1 = INT_FAST8_MAX;
20046 int_fast8_t e1min = INT_FAST8_MIN;
20047 int_fast16_t e2 = INT_FAST16_MAX;
20048 int_fast16_t e2min = INT_FAST16_MIN;
20049 int_fast32_t e3 = INT_FAST32_MAX;
20050 int_fast32_t e3min = INT_FAST32_MIN;
20051 int_fast64_t e4 = INT_FAST64_MAX;
20052 int_fast64_t e4min = INT_FAST64_MIN;
20053 uint_fast8_t f1 = UINT_FAST8_MAX;
20054 uint_fast16_t f2 = UINT_FAST16_MAX;
20055 uint_fast32_t f3 = UINT_FAST32_MAX;
20056 uint_fast64_t f4 = UINT_FAST64_MAX;
20057 #ifdef INTPTR_MAX
20058 intptr_t g = INTPTR_MAX;
20059 intptr_t gmin = INTPTR_MIN;
20060 #endif
20061 #ifdef UINTPTR_MAX
20062 uintptr_t h = UINTPTR_MAX;
20063 #endif
20064 intmax_t i = INTMAX_MAX;
20065 uintmax_t j = UINTMAX_MAX;
20066
20067 #include <limits.h> /* for CHAR_BIT */
20068 #define TYPE_MINIMUM(t) \
20069 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20070 #define TYPE_MAXIMUM(t) \
20071 ((t) ((t) 0 < (t) -1 \
20072 ? (t) -1 \
20073 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20074 struct s {
20075 int check_PTRDIFF:
20076 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20077 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20078 ? 1 : -1;
20079 /* Detect bug in FreeBSD 6.0 / ia64. */
20080 int check_SIG_ATOMIC:
20081 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20082 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20083 ? 1 : -1;
20084 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20085 int check_WCHAR:
20086 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20087 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20088 ? 1 : -1;
20089 /* Detect bug in mingw. */
20090 int check_WINT:
20091 WINT_MIN == TYPE_MINIMUM (wint_t)
20092 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20093 ? 1 : -1;
20094
20095 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20096 int check_UINT8_C:
20097 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20098 int check_UINT16_C:
20099 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20100
20101 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20102 #ifdef UINT8_MAX
20103 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20104 #endif
20105 #ifdef UINT16_MAX
20106 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20107 #endif
20108 #ifdef UINT32_MAX
20109 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20110 #endif
20111 #ifdef UINT64_MAX
20112 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20113 #endif
20114 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20115 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20116 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20117 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20118 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20119 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20120 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20121 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20122 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20123 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20124 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20125 };
20126
20127 int
20128 main ()
20129 {
20130
20131 ;
20132 return 0;
20133 }
20134 _ACEOF
20135 if ac_fn_c_try_compile "$LINENO"; then :
20136 if test "$cross_compiling" = yes; then :
20137 gl_cv_header_working_stdint_h=yes
20138
20139 else
20140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20141 /* end confdefs.h. */
20142
20143
20144 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20145 #include <stdint.h>
20146
20147
20148 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20149 included before <wchar.h>. */
20150 #include <stddef.h>
20151 #include <signal.h>
20152 #if HAVE_WCHAR_H
20153 # include <stdio.h>
20154 # include <time.h>
20155 # include <wchar.h>
20156 #endif
20157
20158
20159 #include <stdio.h>
20160 #include <string.h>
20161 #define MVAL(macro) MVAL1(macro)
20162 #define MVAL1(expression) #expression
20163 static const char *macro_values[] =
20164 {
20165 #ifdef INT8_MAX
20166 MVAL (INT8_MAX),
20167 #endif
20168 #ifdef INT16_MAX
20169 MVAL (INT16_MAX),
20170 #endif
20171 #ifdef INT32_MAX
20172 MVAL (INT32_MAX),
20173 #endif
20174 #ifdef INT64_MAX
20175 MVAL (INT64_MAX),
20176 #endif
20177 #ifdef UINT8_MAX
20178 MVAL (UINT8_MAX),
20179 #endif
20180 #ifdef UINT16_MAX
20181 MVAL (UINT16_MAX),
20182 #endif
20183 #ifdef UINT32_MAX
20184 MVAL (UINT32_MAX),
20185 #endif
20186 #ifdef UINT64_MAX
20187 MVAL (UINT64_MAX),
20188 #endif
20189 NULL
20190 };
20191
20192 int
20193 main ()
20194 {
20195
20196 const char **mv;
20197 for (mv = macro_values; *mv != NULL; mv++)
20198 {
20199 const char *value = *mv;
20200 /* Test whether it looks like a cast expression. */
20201 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20202 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20203 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20204 || strncmp (value, "((int)"/*)*/, 6) == 0
20205 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20206 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20207 return mv - macro_values + 1;
20208 }
20209 return 0;
20210
20211 ;
20212 return 0;
20213 }
20214 _ACEOF
20215 if ac_fn_c_try_run "$LINENO"; then :
20216 gl_cv_header_working_stdint_h=yes
20217 fi
20218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20219 conftest.$ac_objext conftest.beam conftest.$ac_ext
20220 fi
20221
20222
20223 fi
20224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20225
20226 fi
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20228 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20229 fi
20230 if test "$gl_cv_header_working_stdint_h" = yes; then
20231 STDINT_H=
20232 else
20233 for ac_header in sys/inttypes.h sys/bitypes.h
20234 do :
20235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20236 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20237 eval as_val=\$$as_ac_Header
20238 if test "x$as_val" = x""yes; then :
20239 cat >>confdefs.h <<_ACEOF
20240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20241 _ACEOF
20242
20243 fi
20244
20245 done
20246
20247 if test $ac_cv_header_sys_inttypes_h = yes; then
20248 HAVE_SYS_INTTYPES_H=1
20249 else
20250 HAVE_SYS_INTTYPES_H=0
20251 fi
20252
20253 if test $ac_cv_header_sys_bitypes_h = yes; then
20254 HAVE_SYS_BITYPES_H=1
20255 else
20256 HAVE_SYS_BITYPES_H=0
20257 fi
20258
20259
20260
20261
20262 if test $APPLE_UNIVERSAL_BUILD = 0; then
20263
20264
20265 for gltype in ptrdiff_t size_t ; do
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20267 $as_echo_n "checking for bit size of $gltype... " >&6; }
20268 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20269 $as_echo_n "(cached) " >&6
20270 else
20271 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20272 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20273 included before <wchar.h>. */
20274 #include <stddef.h>
20275 #include <signal.h>
20276 #if HAVE_WCHAR_H
20277 # include <stdio.h>
20278 # include <time.h>
20279 # include <wchar.h>
20280 #endif
20281
20282 #include <limits.h>"; then :
20283
20284 else
20285 result=unknown
20286 fi
20287
20288 eval gl_cv_bitsizeof_${gltype}=\$result
20289
20290 fi
20291 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20293 $as_echo "$ac_res" >&6; }
20294 eval result=\$gl_cv_bitsizeof_${gltype}
20295 if test $result = unknown; then
20296 result=0
20297 fi
20298 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20299 cat >>confdefs.h <<_ACEOF
20300 #define BITSIZEOF_${GLTYPE} $result
20301 _ACEOF
20302
20303 eval BITSIZEOF_${GLTYPE}=\$result
20304 done
20305
20306
20307 fi
20308
20309
20310 for gltype in sig_atomic_t wchar_t wint_t ; do
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20312 $as_echo_n "checking for bit size of $gltype... " >&6; }
20313 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20314 $as_echo_n "(cached) " >&6
20315 else
20316 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20317 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20318 included before <wchar.h>. */
20319 #include <stddef.h>
20320 #include <signal.h>
20321 #if HAVE_WCHAR_H
20322 # include <stdio.h>
20323 # include <time.h>
20324 # include <wchar.h>
20325 #endif
20326
20327 #include <limits.h>"; then :
20328
20329 else
20330 result=unknown
20331 fi
20332
20333 eval gl_cv_bitsizeof_${gltype}=\$result
20334
20335 fi
20336 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20338 $as_echo "$ac_res" >&6; }
20339 eval result=\$gl_cv_bitsizeof_${gltype}
20340 if test $result = unknown; then
20341 result=0
20342 fi
20343 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20344 cat >>confdefs.h <<_ACEOF
20345 #define BITSIZEOF_${GLTYPE} $result
20346 _ACEOF
20347
20348 eval BITSIZEOF_${GLTYPE}=\$result
20349 done
20350
20351
20352
20353
20354 for gltype in sig_atomic_t wchar_t wint_t ; do
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20356 $as_echo_n "checking whether $gltype is signed... " >&6; }
20357 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20358 $as_echo_n "(cached) " >&6
20359 else
20360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h. */
20362
20363 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20364 included before <wchar.h>. */
20365 #include <stddef.h>
20366 #include <signal.h>
20367 #if HAVE_WCHAR_H
20368 # include <stdio.h>
20369 # include <time.h>
20370 # include <wchar.h>
20371 #endif
20372
20373 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20374 int
20375 main ()
20376 {
20377
20378 ;
20379 return 0;
20380 }
20381 _ACEOF
20382 if ac_fn_c_try_compile "$LINENO"; then :
20383 result=yes
20384 else
20385 result=no
20386 fi
20387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20388 eval gl_cv_type_${gltype}_signed=\$result
20389
20390 fi
20391 eval ac_res=\$gl_cv_type_${gltype}_signed
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20393 $as_echo "$ac_res" >&6; }
20394 eval result=\$gl_cv_type_${gltype}_signed
20395 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20396 if test "$result" = yes; then
20397 cat >>confdefs.h <<_ACEOF
20398 #define HAVE_SIGNED_${GLTYPE} 1
20399 _ACEOF
20400
20401 eval HAVE_SIGNED_${GLTYPE}=1
20402 else
20403 eval HAVE_SIGNED_${GLTYPE}=0
20404 fi
20405 done
20406
20407
20408 gl_cv_type_ptrdiff_t_signed=yes
20409 gl_cv_type_size_t_signed=no
20410 if test $APPLE_UNIVERSAL_BUILD = 0; then
20411
20412
20413 for gltype in ptrdiff_t size_t ; do
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20415 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20416 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20417 $as_echo_n "(cached) " >&6
20418 else
20419 eval gl_cv_type_${gltype}_suffix=no
20420 eval result=\$gl_cv_type_${gltype}_signed
20421 if test "$result" = yes; then
20422 glsufu=
20423 else
20424 glsufu=u
20425 fi
20426 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20427 case $glsuf in
20428 '') gltype1='int';;
20429 l) gltype1='long int';;
20430 ll) gltype1='long long int';;
20431 i64) gltype1='__int64';;
20432 u) gltype1='unsigned int';;
20433 ul) gltype1='unsigned long int';;
20434 ull) gltype1='unsigned long long int';;
20435 ui64)gltype1='unsigned __int64';;
20436 esac
20437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20438 /* end confdefs.h. */
20439
20440 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20441 included before <wchar.h>. */
20442 #include <stddef.h>
20443 #include <signal.h>
20444 #if HAVE_WCHAR_H
20445 # include <stdio.h>
20446 # include <time.h>
20447 # include <wchar.h>
20448 #endif
20449
20450 extern $gltype foo;
20451 extern $gltype1 foo;
20452 int
20453 main ()
20454 {
20455
20456 ;
20457 return 0;
20458 }
20459 _ACEOF
20460 if ac_fn_c_try_compile "$LINENO"; then :
20461 eval gl_cv_type_${gltype}_suffix=\$glsuf
20462 fi
20463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 eval result=\$gl_cv_type_${gltype}_suffix
20465 test "$result" != no && break
20466 done
20467 fi
20468 eval ac_res=\$gl_cv_type_${gltype}_suffix
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20470 $as_echo "$ac_res" >&6; }
20471 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20472 eval result=\$gl_cv_type_${gltype}_suffix
20473 test "$result" = no && result=
20474 eval ${GLTYPE}_SUFFIX=\$result
20475 cat >>confdefs.h <<_ACEOF
20476 #define ${GLTYPE}_SUFFIX $result
20477 _ACEOF
20478
20479 done
20480
20481
20482 fi
20483
20484
20485 for gltype in sig_atomic_t wchar_t wint_t ; do
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20487 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20488 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20489 $as_echo_n "(cached) " >&6
20490 else
20491 eval gl_cv_type_${gltype}_suffix=no
20492 eval result=\$gl_cv_type_${gltype}_signed
20493 if test "$result" = yes; then
20494 glsufu=
20495 else
20496 glsufu=u
20497 fi
20498 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20499 case $glsuf in
20500 '') gltype1='int';;
20501 l) gltype1='long int';;
20502 ll) gltype1='long long int';;
20503 i64) gltype1='__int64';;
20504 u) gltype1='unsigned int';;
20505 ul) gltype1='unsigned long int';;
20506 ull) gltype1='unsigned long long int';;
20507 ui64)gltype1='unsigned __int64';;
20508 esac
20509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510 /* end confdefs.h. */
20511
20512 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20513 included before <wchar.h>. */
20514 #include <stddef.h>
20515 #include <signal.h>
20516 #if HAVE_WCHAR_H
20517 # include <stdio.h>
20518 # include <time.h>
20519 # include <wchar.h>
20520 #endif
20521
20522 extern $gltype foo;
20523 extern $gltype1 foo;
20524 int
20525 main ()
20526 {
20527
20528 ;
20529 return 0;
20530 }
20531 _ACEOF
20532 if ac_fn_c_try_compile "$LINENO"; then :
20533 eval gl_cv_type_${gltype}_suffix=\$glsuf
20534 fi
20535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20536 eval result=\$gl_cv_type_${gltype}_suffix
20537 test "$result" != no && break
20538 done
20539 fi
20540 eval ac_res=\$gl_cv_type_${gltype}_suffix
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20542 $as_echo "$ac_res" >&6; }
20543 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20544 eval result=\$gl_cv_type_${gltype}_suffix
20545 test "$result" = no && result=
20546 eval ${GLTYPE}_SUFFIX=\$result
20547 cat >>confdefs.h <<_ACEOF
20548 #define ${GLTYPE}_SUFFIX $result
20549 _ACEOF
20550
20551 done
20552
20553
20554
20555 if test $BITSIZEOF_WINT_T -lt 32; then
20556 BITSIZEOF_WINT_T=32
20557 fi
20558
20559 STDINT_H=stdint.h
20560 fi
20561
20562 if test -n "$STDINT_H"; then
20563 GL_GENERATE_STDINT_H_TRUE=
20564 GL_GENERATE_STDINT_H_FALSE='#'
20565 else
20566 GL_GENERATE_STDINT_H_TRUE='#'
20567 GL_GENERATE_STDINT_H_FALSE=
20568 fi
20569
20570
20571
20572
20573
20574 GNULIB_IMAXABS=0;
20575 GNULIB_IMAXDIV=0;
20576 GNULIB_STRTOIMAX=0;
20577 GNULIB_STRTOUMAX=0;
20578 HAVE_DECL_IMAXABS=1;
20579 HAVE_DECL_IMAXDIV=1;
20580 HAVE_DECL_STRTOIMAX=1;
20581 HAVE_DECL_STRTOUMAX=1;
20582 REPLACE_STRTOIMAX=0;
20583 INT32_MAX_LT_INTMAX_MAX=1;
20584 INT64_MAX_EQ_LONG_MAX='defined _LP64';
20585 PRI_MACROS_BROKEN=0;
20586 PRIPTR_PREFIX=__PRIPTR_PREFIX;
20587 UINT32_MAX_LT_UINTMAX_MAX=1;
20588 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604 if test $gl_cv_have_include_next = yes; then
20605 gl_cv_next_inttypes_h='<'inttypes.h'>'
20606 else
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20608 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20609 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20610 $as_echo_n "(cached) " >&6
20611 else
20612
20613 if test $ac_cv_header_inttypes_h = yes; then
20614
20615
20616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20617 /* end confdefs.h. */
20618 #include <inttypes.h>
20619
20620 _ACEOF
20621 case "$host_os" in
20622 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20623 *) gl_absname_cpp="$ac_cpp" ;;
20624 esac
20625
20626 case "$host_os" in
20627 mingw*)
20628 gl_dirsep_regex='[/\\]'
20629 ;;
20630 *)
20631 gl_dirsep_regex='\/'
20632 ;;
20633 esac
20634 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20635
20636 gl_header_literal_regex=`echo 'inttypes.h' \
20637 | sed -e "$gl_make_literal_regex_sed"`
20638 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20639 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20640 s|^/[^/]|//&|
20641 p
20642 q
20643 }'
20644 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20645 sed -n "$gl_absolute_header_sed"`'"'
20646 else
20647 gl_cv_next_inttypes_h='<'inttypes.h'>'
20648 fi
20649
20650
20651 fi
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20653 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20654 fi
20655 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
20656
20657 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20658 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20659 gl_next_as_first_directive='<'inttypes.h'>'
20660 else
20661 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20662 gl_next_as_first_directive=$gl_cv_next_inttypes_h
20663 fi
20664 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676 case "$host_os" in
20677 mingw*)
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20679 $as_echo_n "checking for 64-bit off_t... " >&6; }
20680 if test "${gl_cv_type_off_t_64+set}" = set; then :
20681 $as_echo_n "(cached) " >&6
20682 else
20683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20684 /* end confdefs.h. */
20685 #include <sys/types.h>
20686 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20687
20688 int
20689 main ()
20690 {
20691
20692 ;
20693 return 0;
20694 }
20695 _ACEOF
20696 if ac_fn_c_try_compile "$LINENO"; then :
20697 gl_cv_type_off_t_64=yes
20698 else
20699 gl_cv_type_off_t_64=no
20700 fi
20701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20702
20703 fi
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20705 $as_echo "$gl_cv_type_off_t_64" >&6; }
20706 if test $gl_cv_type_off_t_64 = no; then
20707 WINDOWS_64_BIT_OFF_T=1
20708 else
20709 WINDOWS_64_BIT_OFF_T=0
20710 fi
20711 WINDOWS_64_BIT_ST_SIZE=1
20712 ;;
20713 *)
20714 WINDOWS_64_BIT_OFF_T=0
20715 WINDOWS_64_BIT_ST_SIZE=0
20716 ;;
20717 esac
20718
20719
20720
20721
20722 GNULIB_FFSL=0;
20723 GNULIB_FFSLL=0;
20724 GNULIB_MEMCHR=0;
20725 GNULIB_MEMMEM=0;
20726 GNULIB_MEMPCPY=0;
20727 GNULIB_MEMRCHR=0;
20728 GNULIB_RAWMEMCHR=0;
20729 GNULIB_STPCPY=0;
20730 GNULIB_STPNCPY=0;
20731 GNULIB_STRCHRNUL=0;
20732 GNULIB_STRDUP=0;
20733 GNULIB_STRNCAT=0;
20734 GNULIB_STRNDUP=0;
20735 GNULIB_STRNLEN=0;
20736 GNULIB_STRPBRK=0;
20737 GNULIB_STRSEP=0;
20738 GNULIB_STRSTR=0;
20739 GNULIB_STRCASESTR=0;
20740 GNULIB_STRTOK_R=0;
20741 GNULIB_MBSLEN=0;
20742 GNULIB_MBSNLEN=0;
20743 GNULIB_MBSCHR=0;
20744 GNULIB_MBSRCHR=0;
20745 GNULIB_MBSSTR=0;
20746 GNULIB_MBSCASECMP=0;
20747 GNULIB_MBSNCASECMP=0;
20748 GNULIB_MBSPCASECMP=0;
20749 GNULIB_MBSCASESTR=0;
20750 GNULIB_MBSCSPN=0;
20751 GNULIB_MBSPBRK=0;
20752 GNULIB_MBSSPN=0;
20753 GNULIB_MBSSEP=0;
20754 GNULIB_MBSTOK_R=0;
20755 GNULIB_STRERROR=0;
20756 GNULIB_STRERROR_R=0;
20757 GNULIB_STRSIGNAL=0;
20758 GNULIB_STRVERSCMP=0;
20759 HAVE_MBSLEN=0;
20760 HAVE_FFSL=1;
20761 HAVE_FFSLL=1;
20762 HAVE_MEMCHR=1;
20763 HAVE_DECL_MEMMEM=1;
20764 HAVE_MEMPCPY=1;
20765 HAVE_DECL_MEMRCHR=1;
20766 HAVE_RAWMEMCHR=1;
20767 HAVE_STPCPY=1;
20768 HAVE_STPNCPY=1;
20769 HAVE_STRCHRNUL=1;
20770 HAVE_DECL_STRDUP=1;
20771 HAVE_DECL_STRNDUP=1;
20772 HAVE_DECL_STRNLEN=1;
20773 HAVE_STRPBRK=1;
20774 HAVE_STRSEP=1;
20775 HAVE_STRCASESTR=1;
20776 HAVE_DECL_STRTOK_R=1;
20777 HAVE_DECL_STRERROR_R=1;
20778 HAVE_DECL_STRSIGNAL=1;
20779 HAVE_STRVERSCMP=1;
20780 REPLACE_MEMCHR=0;
20781 REPLACE_MEMMEM=0;
20782 REPLACE_STPNCPY=0;
20783 REPLACE_STRDUP=0;
20784 REPLACE_STRSTR=0;
20785 REPLACE_STRCASESTR=0;
20786 REPLACE_STRCHRNUL=0;
20787 REPLACE_STRERROR=0;
20788 REPLACE_STRERROR_R=0;
20789 REPLACE_STRNCAT=0;
20790 REPLACE_STRNDUP=0;
20791 REPLACE_STRNLEN=0;
20792 REPLACE_STRSIGNAL=0;
20793 REPLACE_STRTOK_R=0;
20794 UNDEFINE_STRTOK_R=0;
20795
20796 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20797 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
20798 ac_have_decl=1
20799 else
20800 ac_have_decl=0
20801 fi
20802
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_DECL_MEMRCHR $ac_have_decl
20805 _ACEOF
20806
20807
20808 GNULIB_MKTIME=0;
20809 GNULIB_NANOSLEEP=0;
20810 GNULIB_STRPTIME=0;
20811 GNULIB_TIMEGM=0;
20812 GNULIB_TIME_R=0;
20813 HAVE_DECL_LOCALTIME_R=1;
20814 HAVE_NANOSLEEP=1;
20815 HAVE_STRPTIME=1;
20816 HAVE_TIMEGM=1;
20817 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20818 REPLACE_MKTIME=GNULIB_PORTCHECK;
20819 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20820 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20821
20822 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20823 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
20824 ac_have_decl=1
20825 else
20826 ac_have_decl=0
20827 fi
20828
20829 cat >>confdefs.h <<_ACEOF
20830 #define HAVE_DECL_ALARM $ac_have_decl
20831 _ACEOF
20832
20833
20834 GNULIB_PSELECT=0;
20835 GNULIB_SELECT=0;
20836 HAVE_PSELECT=1;
20837 REPLACE_PSELECT=0;
20838 REPLACE_SELECT=0;
20839
20840
20841
20842
20843
20844
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20846 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20847 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20848 $as_echo_n "(cached) " >&6
20849 else
20850
20851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20852 /* end confdefs.h. */
20853 #include <sys/select.h>
20854 int
20855 main ()
20856 {
20857 struct timeval b;
20858 ;
20859 return 0;
20860 }
20861 _ACEOF
20862 if ac_fn_c_try_compile "$LINENO"; then :
20863 gl_cv_header_sys_select_h_selfcontained=yes
20864 else
20865 gl_cv_header_sys_select_h_selfcontained=no
20866 fi
20867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20870 /* end confdefs.h. */
20871 #include <sys/select.h>
20872 int
20873 main ()
20874 {
20875 int memset; int bzero;
20876 ;
20877 return 0;
20878 }
20879
20880 _ACEOF
20881 if ac_fn_c_try_compile "$LINENO"; then :
20882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20883 /* end confdefs.h. */
20884 #include <sys/select.h>
20885 int
20886 main ()
20887 {
20888
20889 #undef memset
20890 #define memset nonexistent_memset
20891 extern
20892 #ifdef __cplusplus
20893 "C"
20894 #endif
20895 void *memset (void *, int, unsigned long);
20896 #undef bzero
20897 #define bzero nonexistent_bzero
20898 extern
20899 #ifdef __cplusplus
20900 "C"
20901 #endif
20902 void bzero (void *, unsigned long);
20903 fd_set fds;
20904 FD_ZERO (&fds);
20905
20906 ;
20907 return 0;
20908 }
20909
20910 _ACEOF
20911 if ac_fn_c_try_link "$LINENO"; then :
20912
20913 else
20914 gl_cv_header_sys_select_h_selfcontained=no
20915 fi
20916 rm -f core conftest.err conftest.$ac_objext \
20917 conftest$ac_exeext conftest.$ac_ext
20918
20919 fi
20920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921 fi
20922
20923 fi
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20925 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935 if test $gl_cv_have_include_next = yes; then
20936 gl_cv_next_sys_select_h='<'sys/select.h'>'
20937 else
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20939 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20940 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20941 $as_echo_n "(cached) " >&6
20942 else
20943
20944 if test $ac_cv_header_sys_select_h = yes; then
20945
20946
20947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20948 /* end confdefs.h. */
20949 #include <sys/select.h>
20950
20951 _ACEOF
20952 case "$host_os" in
20953 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20954 *) gl_absname_cpp="$ac_cpp" ;;
20955 esac
20956
20957 case "$host_os" in
20958 mingw*)
20959 gl_dirsep_regex='[/\\]'
20960 ;;
20961 *)
20962 gl_dirsep_regex='\/'
20963 ;;
20964 esac
20965 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20966
20967 gl_header_literal_regex=`echo 'sys/select.h' \
20968 | sed -e "$gl_make_literal_regex_sed"`
20969 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20970 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20971 s|^/[^/]|//&|
20972 p
20973 q
20974 }'
20975 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20976 sed -n "$gl_absolute_header_sed"`'"'
20977 else
20978 gl_cv_next_sys_select_h='<'sys/select.h'>'
20979 fi
20980
20981
20982 fi
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
20984 $as_echo "$gl_cv_next_sys_select_h" >&6; }
20985 fi
20986 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
20987
20988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20990 gl_next_as_first_directive='<'sys/select.h'>'
20991 else
20992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20993 gl_next_as_first_directive=$gl_cv_next_sys_select_h
20994 fi
20995 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
20996
20997
20998
20999
21000 if test $ac_cv_header_sys_select_h = yes; then
21001 HAVE_SYS_SELECT_H=1
21002 else
21003 HAVE_SYS_SELECT_H=0
21004 fi
21005
21006
21007
21008
21009
21010 if test $ac_cv_header_sys_socket_h != yes; then
21011 for ac_header in winsock2.h
21012 do :
21013 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21014 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
21015 cat >>confdefs.h <<_ACEOF
21016 #define HAVE_WINSOCK2_H 1
21017 _ACEOF
21018
21019 fi
21020
21021 done
21022
21023 fi
21024 if test "$ac_cv_header_winsock2_h" = yes; then
21025 HAVE_WINSOCK2_H=1
21026 UNISTD_H_HAVE_WINSOCK2_H=1
21027 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21028 else
21029 HAVE_WINSOCK2_H=0
21030 fi
21031
21032
21033
21034
21035
21036
21037
21038
21039 GNULIB_PTHREAD_SIGMASK=0;
21040 GNULIB_RAISE=0;
21041 GNULIB_SIGNAL_H_SIGPIPE=0;
21042 GNULIB_SIGPROCMASK=0;
21043 GNULIB_SIGACTION=0;
21044 HAVE_POSIX_SIGNALBLOCKING=1;
21045 HAVE_PTHREAD_SIGMASK=1;
21046 HAVE_RAISE=1;
21047 HAVE_SIGSET_T=1;
21048 HAVE_SIGINFO_T=1;
21049 HAVE_SIGACTION=1;
21050 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
21051
21052 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
21053
21054 HAVE_SIGHANDLER_T=1;
21055 REPLACE_PTHREAD_SIGMASK=0;
21056 REPLACE_RAISE=0;
21057
21058
21059
21060
21061
21062
21063
21064 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21065 #include <signal.h>
21066 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21067 #include <sys/types.h>
21068
21069 "
21070 if test "x$ac_cv_type_sigset_t" = x""yes; then :
21071
21072 cat >>confdefs.h <<_ACEOF
21073 #define HAVE_SIGSET_T 1
21074 _ACEOF
21075
21076 gl_cv_type_sigset_t=yes
21077 else
21078 gl_cv_type_sigset_t=no
21079 fi
21080
21081 if test $gl_cv_type_sigset_t != yes; then
21082 HAVE_SIGSET_T=0
21083 fi
21084
21085
21086
21087 if test $ac_cv_header_sys_socket_h = no; then
21088 for ac_header in ws2tcpip.h
21089 do :
21090 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21091 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
21092 cat >>confdefs.h <<_ACEOF
21093 #define HAVE_WS2TCPIP_H 1
21094 _ACEOF
21095
21096 fi
21097
21098 done
21099
21100 fi
21101
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21103 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21104 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21105 $as_echo_n "(cached) " >&6
21106 else
21107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21108 /* end confdefs.h. */
21109
21110 #include <stdbool.h>
21111 #ifndef bool
21112 "error: bool is not defined"
21113 #endif
21114 #ifndef false
21115 "error: false is not defined"
21116 #endif
21117 #if false
21118 "error: false is not 0"
21119 #endif
21120 #ifndef true
21121 "error: true is not defined"
21122 #endif
21123 #if true != 1
21124 "error: true is not 1"
21125 #endif
21126 #ifndef __bool_true_false_are_defined
21127 "error: __bool_true_false_are_defined is not defined"
21128 #endif
21129
21130 struct s { _Bool s: 1; _Bool t; } s;
21131
21132 char a[true == 1 ? 1 : -1];
21133 char b[false == 0 ? 1 : -1];
21134 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21135 char d[(bool) 0.5 == true ? 1 : -1];
21136 /* See body of main program for 'e'. */
21137 char f[(_Bool) 0.0 == false ? 1 : -1];
21138 char g[true];
21139 char h[sizeof (_Bool)];
21140 char i[sizeof s.t];
21141 enum { j = false, k = true, l = false * true, m = true * 256 };
21142 /* The following fails for
21143 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21144 _Bool n[m];
21145 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21146 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21147 /* Catch a bug in an HP-UX C compiler. See
21148 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21149 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21150 */
21151 _Bool q = true;
21152 _Bool *pq = &q;
21153
21154 int
21155 main ()
21156 {
21157
21158 bool e = &s;
21159 *pq |= q;
21160 *pq |= ! q;
21161 /* Refer to every declared value, to avoid compiler optimizations. */
21162 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21163 + !m + !n + !o + !p + !q + !pq);
21164
21165 ;
21166 return 0;
21167 }
21168 _ACEOF
21169 if ac_fn_c_try_compile "$LINENO"; then :
21170 ac_cv_header_stdbool_h=yes
21171 else
21172 ac_cv_header_stdbool_h=no
21173 fi
21174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175 fi
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21177 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21178 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21179 if test "x$ac_cv_type__Bool" = x""yes; then :
21180
21181 cat >>confdefs.h <<_ACEOF
21182 #define HAVE__BOOL 1
21183 _ACEOF
21184
21185
21186 fi
21187
21188
21189
21190 REPLACE_NULL=0;
21191 HAVE_WCHAR_T=1;
21192
21193
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21195 $as_echo_n "checking for wchar_t... " >&6; }
21196 if test "${gt_cv_c_wchar_t+set}" = set; then :
21197 $as_echo_n "(cached) " >&6
21198 else
21199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21200 /* end confdefs.h. */
21201 #include <stddef.h>
21202 wchar_t foo = (wchar_t)'\0';
21203 int
21204 main ()
21205 {
21206
21207 ;
21208 return 0;
21209 }
21210 _ACEOF
21211 if ac_fn_c_try_compile "$LINENO"; then :
21212 gt_cv_c_wchar_t=yes
21213 else
21214 gt_cv_c_wchar_t=no
21215 fi
21216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21217 fi
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21219 $as_echo "$gt_cv_c_wchar_t" >&6; }
21220 if test $gt_cv_c_wchar_t = yes; then
21221
21222 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21223
21224 fi
21225
21226
21227 GNULIB_DPRINTF=0;
21228 GNULIB_FCLOSE=0;
21229 GNULIB_FDOPEN=0;
21230 GNULIB_FFLUSH=0;
21231 GNULIB_FGETC=0;
21232 GNULIB_FGETS=0;
21233 GNULIB_FOPEN=0;
21234 GNULIB_FPRINTF=0;
21235 GNULIB_FPRINTF_POSIX=0;
21236 GNULIB_FPURGE=0;
21237 GNULIB_FPUTC=0;
21238 GNULIB_FPUTS=0;
21239 GNULIB_FREAD=0;
21240 GNULIB_FREOPEN=0;
21241 GNULIB_FSCANF=0;
21242 GNULIB_FSEEK=0;
21243 GNULIB_FSEEKO=0;
21244 GNULIB_FTELL=0;
21245 GNULIB_FTELLO=0;
21246 GNULIB_FWRITE=0;
21247 GNULIB_GETC=0;
21248 GNULIB_GETCHAR=0;
21249 GNULIB_GETDELIM=0;
21250 GNULIB_GETLINE=0;
21251 GNULIB_OBSTACK_PRINTF=0;
21252 GNULIB_OBSTACK_PRINTF_POSIX=0;
21253 GNULIB_PCLOSE=0;
21254 GNULIB_PERROR=0;
21255 GNULIB_POPEN=0;
21256 GNULIB_PRINTF=0;
21257 GNULIB_PRINTF_POSIX=0;
21258 GNULIB_PUTC=0;
21259 GNULIB_PUTCHAR=0;
21260 GNULIB_PUTS=0;
21261 GNULIB_REMOVE=0;
21262 GNULIB_RENAME=0;
21263 GNULIB_RENAMEAT=0;
21264 GNULIB_SCANF=0;
21265 GNULIB_SNPRINTF=0;
21266 GNULIB_SPRINTF_POSIX=0;
21267 GNULIB_STDIO_H_NONBLOCKING=0;
21268 GNULIB_STDIO_H_SIGPIPE=0;
21269 GNULIB_TMPFILE=0;
21270 GNULIB_VASPRINTF=0;
21271 GNULIB_VFSCANF=0;
21272 GNULIB_VSCANF=0;
21273 GNULIB_VDPRINTF=0;
21274 GNULIB_VFPRINTF=0;
21275 GNULIB_VFPRINTF_POSIX=0;
21276 GNULIB_VPRINTF=0;
21277 GNULIB_VPRINTF_POSIX=0;
21278 GNULIB_VSNPRINTF=0;
21279 GNULIB_VSPRINTF_POSIX=0;
21280 HAVE_DECL_FPURGE=1;
21281 HAVE_DECL_FSEEKO=1;
21282 HAVE_DECL_FTELLO=1;
21283 HAVE_DECL_GETDELIM=1;
21284 HAVE_DECL_GETLINE=1;
21285 HAVE_DECL_OBSTACK_PRINTF=1;
21286 HAVE_DECL_SNPRINTF=1;
21287 HAVE_DECL_VSNPRINTF=1;
21288 HAVE_DPRINTF=1;
21289 HAVE_FSEEKO=1;
21290 HAVE_FTELLO=1;
21291 HAVE_PCLOSE=1;
21292 HAVE_POPEN=1;
21293 HAVE_RENAMEAT=1;
21294 HAVE_VASPRINTF=1;
21295 HAVE_VDPRINTF=1;
21296 REPLACE_DPRINTF=0;
21297 REPLACE_FCLOSE=0;
21298 REPLACE_FDOPEN=0;
21299 REPLACE_FFLUSH=0;
21300 REPLACE_FOPEN=0;
21301 REPLACE_FPRINTF=0;
21302 REPLACE_FPURGE=0;
21303 REPLACE_FREOPEN=0;
21304 REPLACE_FSEEK=0;
21305 REPLACE_FSEEKO=0;
21306 REPLACE_FTELL=0;
21307 REPLACE_FTELLO=0;
21308 REPLACE_GETDELIM=0;
21309 REPLACE_GETLINE=0;
21310 REPLACE_OBSTACK_PRINTF=0;
21311 REPLACE_PERROR=0;
21312 REPLACE_POPEN=0;
21313 REPLACE_PRINTF=0;
21314 REPLACE_REMOVE=0;
21315 REPLACE_RENAME=0;
21316 REPLACE_RENAMEAT=0;
21317 REPLACE_SNPRINTF=0;
21318 REPLACE_SPRINTF=0;
21319 REPLACE_STDIO_READ_FUNCS=0;
21320 REPLACE_STDIO_WRITE_FUNCS=0;
21321 REPLACE_TMPFILE=0;
21322 REPLACE_VASPRINTF=0;
21323 REPLACE_VDPRINTF=0;
21324 REPLACE_VFPRINTF=0;
21325 REPLACE_VPRINTF=0;
21326 REPLACE_VSNPRINTF=0;
21327 REPLACE_VSPRINTF=0;
21328
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21330 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21331 if test "${ac_cv_struct_tm+set}" = set; then :
21332 $as_echo_n "(cached) " >&6
21333 else
21334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21335 /* end confdefs.h. */
21336 #include <sys/types.h>
21337 #include <time.h>
21338
21339 int
21340 main ()
21341 {
21342 struct tm tm;
21343 int *p = &tm.tm_sec;
21344 return !p;
21345 ;
21346 return 0;
21347 }
21348 _ACEOF
21349 if ac_fn_c_try_compile "$LINENO"; then :
21350 ac_cv_struct_tm=time.h
21351 else
21352 ac_cv_struct_tm=sys/time.h
21353 fi
21354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21355 fi
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21357 $as_echo "$ac_cv_struct_tm" >&6; }
21358 if test $ac_cv_struct_tm = sys/time.h; then
21359
21360 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21361
21362 fi
21363
21364 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21365 #include <$ac_cv_struct_tm>
21366
21367 "
21368 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21369
21370 cat >>confdefs.h <<_ACEOF
21371 #define HAVE_STRUCT_TM_TM_ZONE 1
21372 _ACEOF
21373
21374
21375 fi
21376
21377 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21378
21379 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21380
21381 else
21382 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21383 "
21384 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21385 ac_have_decl=1
21386 else
21387 ac_have_decl=0
21388 fi
21389
21390 cat >>confdefs.h <<_ACEOF
21391 #define HAVE_DECL_TZNAME $ac_have_decl
21392 _ACEOF
21393
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21395 $as_echo_n "checking for tzname... " >&6; }
21396 if test "${ac_cv_var_tzname+set}" = set; then :
21397 $as_echo_n "(cached) " >&6
21398 else
21399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21400 /* end confdefs.h. */
21401 #include <time.h>
21402 #if !HAVE_DECL_TZNAME
21403 extern char *tzname[];
21404 #endif
21405
21406 int
21407 main ()
21408 {
21409 return tzname[0][0];
21410 ;
21411 return 0;
21412 }
21413 _ACEOF
21414 if ac_fn_c_try_link "$LINENO"; then :
21415 ac_cv_var_tzname=yes
21416 else
21417 ac_cv_var_tzname=no
21418 fi
21419 rm -f core conftest.err conftest.$ac_objext \
21420 conftest$ac_exeext conftest.$ac_ext
21421 fi
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21423 $as_echo "$ac_cv_var_tzname" >&6; }
21424 if test $ac_cv_var_tzname = yes; then
21425
21426 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21427
21428 fi
21429 fi
21430
21431
21432 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21433 "
21434 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
21435
21436 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21437
21438 fi
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452 if test $gl_cv_have_include_next = yes; then
21453 gl_cv_next_string_h='<'string.h'>'
21454 else
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21456 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21457 if test "${gl_cv_next_string_h+set}" = set; then :
21458 $as_echo_n "(cached) " >&6
21459 else
21460
21461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21462 /* end confdefs.h. */
21463 #include <string.h>
21464
21465 _ACEOF
21466 case "$host_os" in
21467 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21468 *) gl_absname_cpp="$ac_cpp" ;;
21469 esac
21470
21471 case "$host_os" in
21472 mingw*)
21473 gl_dirsep_regex='[/\\]'
21474 ;;
21475 *)
21476 gl_dirsep_regex='\/'
21477 ;;
21478 esac
21479 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21480
21481 gl_header_literal_regex=`echo 'string.h' \
21482 | sed -e "$gl_make_literal_regex_sed"`
21483 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21484 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21485 s|^/[^/]|//&|
21486 p
21487 q
21488 }'
21489 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21490 sed -n "$gl_absolute_header_sed"`'"'
21491
21492
21493 fi
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21495 $as_echo "$gl_cv_next_string_h" >&6; }
21496 fi
21497 NEXT_STRING_H=$gl_cv_next_string_h
21498
21499 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21500 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21501 gl_next_as_first_directive='<'string.h'>'
21502 else
21503 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21504 gl_next_as_first_directive=$gl_cv_next_string_h
21505 fi
21506 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21517 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
21518 ac_have_decl=1
21519 else
21520 ac_have_decl=0
21521 fi
21522
21523 cat >>confdefs.h <<_ACEOF
21524 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21525 _ACEOF
21526
21527
21528
21529 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21530 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
21531 ac_have_decl=1
21532 else
21533 ac_have_decl=0
21534 fi
21535
21536 cat >>confdefs.h <<_ACEOF
21537 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21538 _ACEOF
21539
21540
21541
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21543 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21544 if test "${ac_cv_header_stat_broken+set}" = set; then :
21545 $as_echo_n "(cached) " >&6
21546 else
21547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21548 /* end confdefs.h. */
21549 #include <sys/types.h>
21550 #include <sys/stat.h>
21551
21552 #if defined S_ISBLK && defined S_IFDIR
21553 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21554 #endif
21555
21556 #if defined S_ISBLK && defined S_IFCHR
21557 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21558 #endif
21559
21560 #if defined S_ISLNK && defined S_IFREG
21561 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21562 #endif
21563
21564 #if defined S_ISSOCK && defined S_IFREG
21565 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21566 #endif
21567
21568 _ACEOF
21569 if ac_fn_c_try_compile "$LINENO"; then :
21570 ac_cv_header_stat_broken=no
21571 else
21572 ac_cv_header_stat_broken=yes
21573 fi
21574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21575 fi
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21577 $as_echo "$ac_cv_header_stat_broken" >&6; }
21578 if test $ac_cv_header_stat_broken = yes; then
21579
21580 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21581
21582 fi
21583
21584
21585
21586
21587
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21589 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21590 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21591 $as_echo_n "(cached) " >&6
21592 else
21593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21594 /* end confdefs.h. */
21595 #include <time.h>
21596
21597 int
21598 main ()
21599 {
21600 static struct timespec x; x.tv_sec = x.tv_nsec;
21601 ;
21602 return 0;
21603 }
21604 _ACEOF
21605 if ac_fn_c_try_compile "$LINENO"; then :
21606 gl_cv_sys_struct_timespec_in_time_h=yes
21607 else
21608 gl_cv_sys_struct_timespec_in_time_h=no
21609 fi
21610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21611 fi
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21613 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21614
21615 TIME_H_DEFINES_STRUCT_TIMESPEC=0
21616 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
21617 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
21618 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21619 TIME_H_DEFINES_STRUCT_TIMESPEC=1
21620 else
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21622 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21623 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21624 $as_echo_n "(cached) " >&6
21625 else
21626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21627 /* end confdefs.h. */
21628 #include <sys/time.h>
21629
21630 int
21631 main ()
21632 {
21633 static struct timespec x; x.tv_sec = x.tv_nsec;
21634 ;
21635 return 0;
21636 }
21637 _ACEOF
21638 if ac_fn_c_try_compile "$LINENO"; then :
21639 gl_cv_sys_struct_timespec_in_sys_time_h=yes
21640 else
21641 gl_cv_sys_struct_timespec_in_sys_time_h=no
21642 fi
21643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644 fi
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21646 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21647 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21648 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
21649 else
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21651 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21652 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21653 $as_echo_n "(cached) " >&6
21654 else
21655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21656 /* end confdefs.h. */
21657 #include <pthread.h>
21658
21659 int
21660 main ()
21661 {
21662 static struct timespec x; x.tv_sec = x.tv_nsec;
21663 ;
21664 return 0;
21665 }
21666 _ACEOF
21667 if ac_fn_c_try_compile "$LINENO"; then :
21668 gl_cv_sys_struct_timespec_in_pthread_h=yes
21669 else
21670 gl_cv_sys_struct_timespec_in_pthread_h=no
21671 fi
21672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21673 fi
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21675 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21676 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21677 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
21678 fi
21679 fi
21680 fi
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696 if test $gl_cv_have_include_next = yes; then
21697 gl_cv_next_time_h='<'time.h'>'
21698 else
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21700 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21701 if test "${gl_cv_next_time_h+set}" = set; then :
21702 $as_echo_n "(cached) " >&6
21703 else
21704
21705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21706 /* end confdefs.h. */
21707 #include <time.h>
21708
21709 _ACEOF
21710 case "$host_os" in
21711 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21712 *) gl_absname_cpp="$ac_cpp" ;;
21713 esac
21714
21715 case "$host_os" in
21716 mingw*)
21717 gl_dirsep_regex='[/\\]'
21718 ;;
21719 *)
21720 gl_dirsep_regex='\/'
21721 ;;
21722 esac
21723 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21724
21725 gl_header_literal_regex=`echo 'time.h' \
21726 | sed -e "$gl_make_literal_regex_sed"`
21727 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21728 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21729 s|^/[^/]|//&|
21730 p
21731 q
21732 }'
21733 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21734 sed -n "$gl_absolute_header_sed"`'"'
21735
21736
21737 fi
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21739 $as_echo "$gl_cv_next_time_h" >&6; }
21740 fi
21741 NEXT_TIME_H=$gl_cv_next_time_h
21742
21743 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21744 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21745 gl_next_as_first_directive='<'time.h'>'
21746 else
21747 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21748 gl_next_as_first_directive=$gl_cv_next_time_h
21749 fi
21750 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21766 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
21767 ac_have_decl=1
21768 else
21769 ac_have_decl=0
21770 fi
21771
21772 cat >>confdefs.h <<_ACEOF
21773 #define HAVE_DECL_UNSETENV $ac_have_decl
21774 _ACEOF
21775
21776
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21778 $as_echo_n "checking whether the utimes function works... " >&6; }
21779 if test "${gl_cv_func_working_utimes+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21781 else
21782
21783 if test "$cross_compiling" = yes; then :
21784 gl_cv_func_working_utimes=no
21785 else
21786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21787 /* end confdefs.h. */
21788
21789 #include <sys/types.h>
21790 #include <sys/stat.h>
21791 #include <fcntl.h>
21792 #include <sys/time.h>
21793 #include <time.h>
21794 #include <unistd.h>
21795 #include <stdlib.h>
21796 #include <stdio.h>
21797 #include <utime.h>
21798
21799 static int
21800 inorder (time_t a, time_t b, time_t c)
21801 {
21802 return a <= b && b <= c;
21803 }
21804
21805 int
21806 main ()
21807 {
21808 int result = 0;
21809 char const *file = "conftest.utimes";
21810 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21811
21812 /* Test whether utimes() essentially works. */
21813 {
21814 struct stat sbuf;
21815 FILE *f = fopen (file, "w");
21816 if (f == NULL)
21817 result |= 1;
21818 else if (fclose (f) != 0)
21819 result |= 1;
21820 else if (utimes (file, timeval) != 0)
21821 result |= 2;
21822 else if (lstat (file, &sbuf) != 0)
21823 result |= 1;
21824 else if (!(sbuf.st_atime == timeval[0].tv_sec
21825 && sbuf.st_mtime == timeval[1].tv_sec))
21826 result |= 4;
21827 if (unlink (file) != 0)
21828 result |= 1;
21829 }
21830
21831 /* Test whether utimes() with a NULL argument sets the file's timestamp
21832 to the current time. Use 'fstat' as well as 'time' to
21833 determine the "current" time, to accommodate NFS file systems
21834 if there is a time skew between the host and the NFS server. */
21835 {
21836 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21837 if (fd < 0)
21838 result |= 1;
21839 else
21840 {
21841 time_t t0, t2;
21842 struct stat st0, st1, st2;
21843 if (time (&t0) == (time_t) -1)
21844 result |= 1;
21845 else if (fstat (fd, &st0) != 0)
21846 result |= 1;
21847 else if (utimes (file, timeval) != 0)
21848 result |= 2;
21849 else if (utimes (file, NULL) != 0)
21850 result |= 8;
21851 else if (fstat (fd, &st1) != 0)
21852 result |= 1;
21853 else if (write (fd, "\n", 1) != 1)
21854 result |= 1;
21855 else if (fstat (fd, &st2) != 0)
21856 result |= 1;
21857 else if (time (&t2) == (time_t) -1)
21858 result |= 1;
21859 else
21860 {
21861 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21862 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21863 if (! (st1.st_atime == st1.st_mtime))
21864 result |= 16;
21865 if (! (m_ok_POSIX || m_ok_NFS))
21866 result |= 32;
21867 }
21868 if (close (fd) != 0)
21869 result |= 1;
21870 }
21871 if (unlink (file) != 0)
21872 result |= 1;
21873 }
21874
21875 /* Test whether utimes() with a NULL argument works on read-only files. */
21876 {
21877 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21878 if (fd < 0)
21879 result |= 1;
21880 else if (close (fd) != 0)
21881 result |= 1;
21882 else if (utimes (file, NULL) != 0)
21883 result |= 64;
21884 if (unlink (file) != 0)
21885 result |= 1;
21886 }
21887
21888 return result;
21889 }
21890
21891 _ACEOF
21892 if ac_fn_c_try_run "$LINENO"; then :
21893 gl_cv_func_working_utimes=yes
21894 else
21895 gl_cv_func_working_utimes=no
21896 fi
21897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21898 conftest.$ac_objext conftest.beam conftest.$ac_ext
21899 fi
21900
21901 fi
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21903 $as_echo "$gl_cv_func_working_utimes" >&6; }
21904
21905 if test $gl_cv_func_working_utimes = yes; then
21906
21907 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21908
21909 fi
21910
21911
21912
21913
21914
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21916 $as_echo_n "checking for struct utimbuf... " >&6; }
21917 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21918 $as_echo_n "(cached) " >&6
21919 else
21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921 /* end confdefs.h. */
21922 #if HAVE_SYS_TIME_H
21923 #include <sys/time.h>
21924 #endif
21925 #include <time.h>
21926 #ifdef HAVE_UTIME_H
21927 #include <utime.h>
21928 #endif
21929
21930 int
21931 main ()
21932 {
21933 static struct utimbuf x; x.actime = x.modtime;
21934 ;
21935 return 0;
21936 }
21937 _ACEOF
21938 if ac_fn_c_try_compile "$LINENO"; then :
21939 gl_cv_sys_struct_utimbuf=yes
21940 else
21941 gl_cv_sys_struct_utimbuf=no
21942 fi
21943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21944 fi
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21946 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21947
21948 if test $gl_cv_sys_struct_utimbuf = yes; then
21949
21950 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
21951
21952 fi
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
21965 $as_echo_n "checking type of array argument to getgroups... " >&6; }
21966 if test "${ac_cv_type_getgroups+set}" = set; then :
21967 $as_echo_n "(cached) " >&6
21968 else
21969 if test "$cross_compiling" = yes; then :
21970 ac_cv_type_getgroups=cross
21971 else
21972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21973 /* end confdefs.h. */
21974 /* Thanks to Mike Rendell for this test. */
21975 $ac_includes_default
21976 #define NGID 256
21977 #undef MAX
21978 #define MAX(x, y) ((x) > (y) ? (x) : (y))
21979
21980 int
21981 main ()
21982 {
21983 gid_t gidset[NGID];
21984 int i, n;
21985 union { gid_t gval; long int lval; } val;
21986
21987 val.lval = -1;
21988 for (i = 0; i < NGID; i++)
21989 gidset[i] = val.gval;
21990 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
21991 gidset);
21992 /* Exit non-zero if getgroups seems to require an array of ints. This
21993 happens when gid_t is short int but getgroups modifies an array
21994 of ints. */
21995 return n > 0 && gidset[n] != val.gval;
21996 }
21997 _ACEOF
21998 if ac_fn_c_try_run "$LINENO"; then :
21999 ac_cv_type_getgroups=gid_t
22000 else
22001 ac_cv_type_getgroups=int
22002 fi
22003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22004 conftest.$ac_objext conftest.beam conftest.$ac_ext
22005 fi
22006
22007 if test $ac_cv_type_getgroups = cross; then
22008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22009 /* end confdefs.h. */
22010 #include <unistd.h>
22011
22012 _ACEOF
22013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22014 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
22015 ac_cv_type_getgroups=gid_t
22016 else
22017 ac_cv_type_getgroups=int
22018 fi
22019 rm -f conftest*
22020
22021 fi
22022 fi
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22024 $as_echo "$ac_cv_type_getgroups" >&6; }
22025
22026 cat >>confdefs.h <<_ACEOF
22027 #define GETGROUPS_T $ac_cv_type_getgroups
22028 _ACEOF
22029
22030
22031
22032
22033 if false; then
22034 GL_COND_LIBTOOL_TRUE=
22035 GL_COND_LIBTOOL_FALSE='#'
22036 else
22037 GL_COND_LIBTOOL_TRUE='#'
22038 GL_COND_LIBTOOL_FALSE=
22039 fi
22040
22041 gl_cond_libtool=false
22042 gl_libdeps=
22043 gl_ltlibdeps=
22044 gl_m4_base='m4'
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054 gl_source_base='lib'
22055
22056
22057 if test $ac_cv_func_alloca_works = no; then
22058 :
22059 fi
22060
22061 # Define an additional variable used in the Makefile substitution.
22062 if test $ac_cv_working_alloca_h = yes; then
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22064 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22065 if test "${gl_cv_rpl_alloca+set}" = set; then :
22066 $as_echo_n "(cached) " >&6
22067 else
22068
22069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22070 /* end confdefs.h. */
22071
22072 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22073 Need own alloca
22074 #endif
22075
22076 _ACEOF
22077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22078 $EGREP "Need own alloca" >/dev/null 2>&1; then :
22079 gl_cv_rpl_alloca=yes
22080 else
22081 gl_cv_rpl_alloca=no
22082 fi
22083 rm -f conftest*
22084
22085
22086 fi
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22088 $as_echo "$gl_cv_rpl_alloca" >&6; }
22089 if test $gl_cv_rpl_alloca = yes; then
22090
22091 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22092
22093 ALLOCA_H=alloca.h
22094 else
22095 ALLOCA_H=
22096 fi
22097 else
22098 ALLOCA_H=alloca.h
22099 fi
22100
22101 if test -n "$ALLOCA_H"; then
22102 GL_GENERATE_ALLOCA_H_TRUE=
22103 GL_GENERATE_ALLOCA_H_FALSE='#'
22104 else
22105 GL_GENERATE_ALLOCA_H_TRUE='#'
22106 GL_GENERATE_ALLOCA_H_FALSE=
22107 fi
22108
22109
22110
22111
22112
22113
22114 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22115 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22116
22117 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22118 # programs in the package would end up linked with that potentially-shared
22119 # library, inducing unnecessary run-time overhead.
22120 LIB_CLOCK_GETTIME=
22121
22122 gl_saved_libs=$LIBS
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22124 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22125 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22126 $as_echo_n "(cached) " >&6
22127 else
22128 ac_func_search_save_LIBS=$LIBS
22129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22130 /* end confdefs.h. */
22131
22132 /* Override any GCC internal prototype to avoid an error.
22133 Use char because int might match the return type of a GCC
22134 builtin and then its argument prototype would still apply. */
22135 #ifdef __cplusplus
22136 extern "C"
22137 #endif
22138 char clock_gettime ();
22139 int
22140 main ()
22141 {
22142 return clock_gettime ();
22143 ;
22144 return 0;
22145 }
22146 _ACEOF
22147 for ac_lib in '' rt posix4; do
22148 if test -z "$ac_lib"; then
22149 ac_res="none required"
22150 else
22151 ac_res=-l$ac_lib
22152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22153 fi
22154 if ac_fn_c_try_link "$LINENO"; then :
22155 ac_cv_search_clock_gettime=$ac_res
22156 fi
22157 rm -f core conftest.err conftest.$ac_objext \
22158 conftest$ac_exeext
22159 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22160 break
22161 fi
22162 done
22163 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22164
22165 else
22166 ac_cv_search_clock_gettime=no
22167 fi
22168 rm conftest.$ac_ext
22169 LIBS=$ac_func_search_save_LIBS
22170 fi
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22172 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22173 ac_res=$ac_cv_search_clock_gettime
22174 if test "$ac_res" != no; then :
22175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22176 test "$ac_cv_search_clock_gettime" = "none required" ||
22177 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
22178 fi
22179
22180 for ac_func in clock_gettime clock_settime
22181 do :
22182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22184 eval as_val=\$$as_ac_var
22185 if test "x$as_val" = x""yes; then :
22186 cat >>confdefs.h <<_ACEOF
22187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22188 _ACEOF
22189
22190 fi
22191 done
22192
22193 LIBS=$gl_saved_libs
22194
22195
22196 :
22197
22198
22199
22200 cat >>confdefs.h <<_ACEOF
22201 #define GNULIB_CLOSE_STREAM 1
22202 _ACEOF
22203
22204
22205
22206
22207 :
22208
22209
22210
22211 :
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231 if test $gl_cv_have_include_next = yes; then
22232 gl_cv_next_dirent_h='<'dirent.h'>'
22233 else
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22235 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22236 if test "${gl_cv_next_dirent_h+set}" = set; then :
22237 $as_echo_n "(cached) " >&6
22238 else
22239
22240 if test $ac_cv_header_dirent_h = yes; then
22241
22242
22243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22244 /* end confdefs.h. */
22245 #include <dirent.h>
22246
22247 _ACEOF
22248 case "$host_os" in
22249 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22250 *) gl_absname_cpp="$ac_cpp" ;;
22251 esac
22252
22253 case "$host_os" in
22254 mingw*)
22255 gl_dirsep_regex='[/\\]'
22256 ;;
22257 *)
22258 gl_dirsep_regex='\/'
22259 ;;
22260 esac
22261 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22262
22263 gl_header_literal_regex=`echo 'dirent.h' \
22264 | sed -e "$gl_make_literal_regex_sed"`
22265 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22266 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22267 s|^/[^/]|//&|
22268 p
22269 q
22270 }'
22271 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22272 sed -n "$gl_absolute_header_sed"`'"'
22273 else
22274 gl_cv_next_dirent_h='<'dirent.h'>'
22275 fi
22276
22277
22278 fi
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22280 $as_echo "$gl_cv_next_dirent_h" >&6; }
22281 fi
22282 NEXT_DIRENT_H=$gl_cv_next_dirent_h
22283
22284 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22285 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22286 gl_next_as_first_directive='<'dirent.h'>'
22287 else
22288 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22289 gl_next_as_first_directive=$gl_cv_next_dirent_h
22290 fi
22291 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
22292
22293
22294
22295
22296 if test $ac_cv_header_dirent_h = yes; then
22297 HAVE_DIRENT_H=1
22298 else
22299 HAVE_DIRENT_H=0
22300 fi
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22312
22313
22314 if test $HAVE_DUP2 = 1; then
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22316 $as_echo_n "checking whether dup2 works... " >&6; }
22317 if test "${gl_cv_func_dup2_works+set}" = set; then :
22318 $as_echo_n "(cached) " >&6
22319 else
22320 if test "$cross_compiling" = yes; then :
22321 case "$host_os" in
22322 mingw*) # on this platform, dup2 always returns 0 for success
22323 gl_cv_func_dup2_works="guessing no" ;;
22324 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
22325 gl_cv_func_dup2_works="guessing no" ;;
22326 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22327 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22328 gl_cv_func_dup2_works="guessing no" ;;
22329 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22330 gl_cv_func_dup2_works="guessing no" ;;
22331 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22332 gl_cv_func_dup2_works="guessing no" ;;
22333 *) gl_cv_func_dup2_works="guessing yes" ;;
22334 esac
22335 else
22336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22337 /* end confdefs.h. */
22338
22339 #include <unistd.h>
22340 #include <fcntl.h>
22341 #include <errno.h>
22342 int
22343 main ()
22344 {
22345 int result = 0;
22346 #ifdef FD_CLOEXEC
22347 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22348 result |= 1;
22349 #endif
22350 if (dup2 (1, 1) == 0)
22351 result |= 2;
22352 #ifdef FD_CLOEXEC
22353 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22354 result |= 4;
22355 #endif
22356 close (0);
22357 if (dup2 (0, 0) != -1)
22358 result |= 8;
22359 /* Many gnulib modules require POSIX conformance of EBADF. */
22360 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22361 result |= 16;
22362 /* Flush out a cygwin core dump. */
22363 if (dup2 (2, -1) != -1 || errno != EBADF)
22364 result |= 32;
22365 return result;
22366
22367 ;
22368 return 0;
22369 }
22370
22371 _ACEOF
22372 if ac_fn_c_try_run "$LINENO"; then :
22373 gl_cv_func_dup2_works=yes
22374 else
22375 gl_cv_func_dup2_works=no
22376 fi
22377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22378 conftest.$ac_objext conftest.beam conftest.$ac_ext
22379 fi
22380
22381
22382 fi
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22384 $as_echo "$gl_cv_func_dup2_works" >&6; }
22385 case "$gl_cv_func_dup2_works" in
22386 *yes) ;;
22387 *)
22388 REPLACE_DUP2=1
22389 ;;
22390 esac
22391 fi
22392
22393
22394 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
22395
22396
22397
22398
22399
22400
22401
22402
22403 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
22404
22405
22406 fi
22407
22408
22409
22410
22411
22412 GNULIB_DUP2=1
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424 GNULIB_ENVIRON=1
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434 LIB_EXECINFO=''
22435 EXECINFO_H='execinfo.h'
22436
22437 if test $ac_cv_header_execinfo_h = yes; then
22438 gl_saved_libs=$LIBS
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22440 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22441 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22442 $as_echo_n "(cached) " >&6
22443 else
22444 ac_func_search_save_LIBS=$LIBS
22445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22446 /* end confdefs.h. */
22447
22448 /* Override any GCC internal prototype to avoid an error.
22449 Use char because int might match the return type of a GCC
22450 builtin and then its argument prototype would still apply. */
22451 #ifdef __cplusplus
22452 extern "C"
22453 #endif
22454 char backtrace_symbols_fd ();
22455 int
22456 main ()
22457 {
22458 return backtrace_symbols_fd ();
22459 ;
22460 return 0;
22461 }
22462 _ACEOF
22463 for ac_lib in '' execinfo; do
22464 if test -z "$ac_lib"; then
22465 ac_res="none required"
22466 else
22467 ac_res=-l$ac_lib
22468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22469 fi
22470 if ac_fn_c_try_link "$LINENO"; then :
22471 ac_cv_search_backtrace_symbols_fd=$ac_res
22472 fi
22473 rm -f core conftest.err conftest.$ac_objext \
22474 conftest$ac_exeext
22475 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22476 break
22477 fi
22478 done
22479 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22480
22481 else
22482 ac_cv_search_backtrace_symbols_fd=no
22483 fi
22484 rm conftest.$ac_ext
22485 LIBS=$ac_func_search_save_LIBS
22486 fi
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22488 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22489 ac_res=$ac_cv_search_backtrace_symbols_fd
22490 if test "$ac_res" != no; then :
22491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22492 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22493 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
22494 fi
22495
22496 LIBS=$gl_saved_libs
22497 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
22498 fi
22499
22500 if test -n "$EXECINFO_H"; then
22501
22502
22503
22504
22505
22506
22507
22508
22509 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
22510
22511 fi
22512
22513
22514
22515 if test -n "$EXECINFO_H"; then
22516 GL_GENERATE_EXECINFO_H_TRUE=
22517 GL_GENERATE_EXECINFO_H_FALSE='#'
22518 else
22519 GL_GENERATE_EXECINFO_H_TRUE='#'
22520 GL_GENERATE_EXECINFO_H_FALSE=
22521 fi
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531 if test $ac_cv_func_faccessat = no; then
22532 HAVE_FACCESSAT=0
22533 fi
22534
22535 if test $HAVE_FACCESSAT = 0; then
22536
22537
22538
22539
22540
22541
22542
22543
22544 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
22545
22546
22547 for ac_func in access
22548 do :
22549 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
22550 if test "x$ac_cv_func_access" = x""yes; then :
22551 cat >>confdefs.h <<_ACEOF
22552 #define HAVE_ACCESS 1
22553 _ACEOF
22554
22555 fi
22556 done
22557
22558
22559 fi
22560
22561
22562 cat >>confdefs.h <<_ACEOF
22563 #define GNULIB_FACCESSAT 1
22564 _ACEOF
22565
22566
22567
22568
22569
22570
22571
22572 GNULIB_FACCESSAT=1
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589 if test $gl_cv_have_include_next = yes; then
22590 gl_cv_next_fcntl_h='<'fcntl.h'>'
22591 else
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22593 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22594 if test "${gl_cv_next_fcntl_h+set}" = set; then :
22595 $as_echo_n "(cached) " >&6
22596 else
22597
22598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22599 /* end confdefs.h. */
22600 #include <fcntl.h>
22601
22602 _ACEOF
22603 case "$host_os" in
22604 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22605 *) gl_absname_cpp="$ac_cpp" ;;
22606 esac
22607
22608 case "$host_os" in
22609 mingw*)
22610 gl_dirsep_regex='[/\\]'
22611 ;;
22612 *)
22613 gl_dirsep_regex='\/'
22614 ;;
22615 esac
22616 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22617
22618 gl_header_literal_regex=`echo 'fcntl.h' \
22619 | sed -e "$gl_make_literal_regex_sed"`
22620 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22621 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22622 s|^/[^/]|//&|
22623 p
22624 q
22625 }'
22626 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22627 sed -n "$gl_absolute_header_sed"`'"'
22628
22629
22630 fi
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22632 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22633 fi
22634 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
22635
22636 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22638 gl_next_as_first_directive='<'fcntl.h'>'
22639 else
22640 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22641 gl_next_as_first_directive=$gl_cv_next_fcntl_h
22642 fi
22643 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659 LIB_FDATASYNC=
22660
22661
22662 if test $ac_cv_have_decl_fdatasync = no; then
22663 HAVE_DECL_FDATASYNC=0
22664 for ac_func in fdatasync
22665 do :
22666 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
22667 if test "x$ac_cv_func_fdatasync" = x""yes; then :
22668 cat >>confdefs.h <<_ACEOF
22669 #define HAVE_FDATASYNC 1
22670 _ACEOF
22671
22672 fi
22673 done
22674
22675 if test $ac_cv_func_fdatasync = no; then
22676 HAVE_FDATASYNC=0
22677 fi
22678 else
22679 gl_saved_libs=$LIBS
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
22681 $as_echo_n "checking for library containing fdatasync... " >&6; }
22682 if test "${ac_cv_search_fdatasync+set}" = set; then :
22683 $as_echo_n "(cached) " >&6
22684 else
22685 ac_func_search_save_LIBS=$LIBS
22686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687 /* end confdefs.h. */
22688
22689 /* Override any GCC internal prototype to avoid an error.
22690 Use char because int might match the return type of a GCC
22691 builtin and then its argument prototype would still apply. */
22692 #ifdef __cplusplus
22693 extern "C"
22694 #endif
22695 char fdatasync ();
22696 int
22697 main ()
22698 {
22699 return fdatasync ();
22700 ;
22701 return 0;
22702 }
22703 _ACEOF
22704 for ac_lib in '' rt posix4; do
22705 if test -z "$ac_lib"; then
22706 ac_res="none required"
22707 else
22708 ac_res=-l$ac_lib
22709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22710 fi
22711 if ac_fn_c_try_link "$LINENO"; then :
22712 ac_cv_search_fdatasync=$ac_res
22713 fi
22714 rm -f core conftest.err conftest.$ac_objext \
22715 conftest$ac_exeext
22716 if test "${ac_cv_search_fdatasync+set}" = set; then :
22717 break
22718 fi
22719 done
22720 if test "${ac_cv_search_fdatasync+set}" = set; then :
22721
22722 else
22723 ac_cv_search_fdatasync=no
22724 fi
22725 rm conftest.$ac_ext
22726 LIBS=$ac_func_search_save_LIBS
22727 fi
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
22729 $as_echo "$ac_cv_search_fdatasync" >&6; }
22730 ac_res=$ac_cv_search_fdatasync
22731 if test "$ac_res" != no; then :
22732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22733 test "$ac_cv_search_fdatasync" = "none required" ||
22734 LIB_FDATASYNC=$ac_cv_search_fdatasync
22735 fi
22736
22737 LIBS=$gl_saved_libs
22738 fi
22739
22740 if test $HAVE_FDATASYNC = 0; then
22741
22742
22743
22744
22745
22746
22747
22748
22749 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
22750
22751 fi
22752
22753
22754
22755
22756
22757 GNULIB_FDATASYNC=1
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22769 #include <dirent.h>
22770
22771 "
22772 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
22773 ac_have_decl=1
22774 else
22775 ac_have_decl=0
22776 fi
22777
22778 cat >>confdefs.h <<_ACEOF
22779 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22780 _ACEOF
22781 if test $ac_have_decl = 1; then :
22782
22783 else
22784 HAVE_DECL_FDOPENDIR=0
22785 fi
22786
22787
22788 if test $ac_cv_func_fdopendir = no; then
22789 HAVE_FDOPENDIR=0
22790 else
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22792 $as_echo_n "checking whether fdopendir works... " >&6; }
22793 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
22794 $as_echo_n "(cached) " >&6
22795 else
22796 if test "$cross_compiling" = yes; then :
22797 case "$host_os" in
22798 # Guess yes on glibc systems.
22799 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
22800 # If we don't know, assume the worst.
22801 *) gl_cv_func_fdopendir_works="guessing no" ;;
22802 esac
22803
22804 else
22805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22806 /* end confdefs.h. */
22807
22808 #include <dirent.h>
22809 #include <fcntl.h>
22810 #include <unistd.h>
22811 #if !HAVE_DECL_FDOPENDIR
22812 extern
22813 # ifdef __cplusplus
22814 "C"
22815 # endif
22816 DIR *fdopendir (int);
22817 #endif
22818
22819 int
22820 main ()
22821 {
22822 int result = 0;
22823 int fd = open ("conftest.c", O_RDONLY);
22824 if (fd < 0) result |= 1;
22825 if (fdopendir (fd)) result |= 2;
22826 if (close (fd)) result |= 4;
22827 return result;
22828 ;
22829 return 0;
22830 }
22831 _ACEOF
22832 if ac_fn_c_try_run "$LINENO"; then :
22833 gl_cv_func_fdopendir_works=yes
22834 else
22835 gl_cv_func_fdopendir_works=no
22836 fi
22837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22838 conftest.$ac_objext conftest.beam conftest.$ac_ext
22839 fi
22840
22841 fi
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
22843 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
22844 case "$gl_cv_func_fdopendir_works" in
22845 *yes) ;;
22846 *)
22847 REPLACE_FDOPENDIR=1
22848 ;;
22849 esac
22850 fi
22851
22852 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
22853
22854
22855
22856
22857
22858
22859
22860
22861 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
22862
22863 fi
22864
22865
22866
22867
22868
22869 GNULIB_FDOPENDIR=1
22870
22871
22872
22873
22874
22875
22876
22877 cat >>confdefs.h <<_ACEOF
22878 #define GNULIB_FDOPENDIR 1
22879 _ACEOF
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889 fp_headers='
22890 # include <stdio.h>
22891 # if HAVE_STDIO_EXT_H
22892 # include <stdio_ext.h>
22893 # endif
22894 '
22895 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
22896 "
22897 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
22898 ac_have_decl=1
22899 else
22900 ac_have_decl=0
22901 fi
22902
22903 cat >>confdefs.h <<_ACEOF
22904 #define HAVE_DECL___FPENDING $ac_have_decl
22905 _ACEOF
22906
22907
22908 if test $ac_cv_func___fpending = no; then
22909
22910
22911
22912
22913
22914
22915
22916
22917 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
22918
22919
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
22921 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
22922 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
22923 $as_echo_n "(cached) " >&6
22924 else
22925
22926 for ac_expr in \
22927 \
22928 '# glibc2' \
22929 'fp->_IO_write_ptr - fp->_IO_write_base' \
22930 \
22931 '# traditional Unix' \
22932 'fp->_ptr - fp->_base' \
22933 \
22934 '# BSD' \
22935 'fp->_p - fp->_bf._base' \
22936 \
22937 '# SCO, Unixware' \
22938 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
22939 \
22940 '# QNX' \
22941 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
22942 \
22943 '# old glibc?' \
22944 'fp->__bufp - fp->__buffer' \
22945 \
22946 '# old glibc iostream?' \
22947 'fp->_pptr - fp->_pbase' \
22948 \
22949 '# emx+gcc' \
22950 'fp->_ptr - fp->_buffer' \
22951 \
22952 '# Minix' \
22953 'fp->_ptr - fp->_buf' \
22954 \
22955 '# Plan9' \
22956 'fp->wp - fp->buf' \
22957 \
22958 '# VMS' \
22959 '(*fp)->_ptr - (*fp)->_base' \
22960 \
22961 '# e.g., DGUX R4.11; the info is not available' \
22962 1 \
22963 ; do
22964
22965 # Skip each embedded comment.
22966 case "$ac_expr" in '#'*) continue;; esac
22967
22968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22969 /* end confdefs.h. */
22970 #include <stdio.h>
22971 int
22972 main ()
22973 {
22974 FILE *fp = stdin; (void) ($ac_expr);
22975 ;
22976 return 0;
22977 }
22978 _ACEOF
22979 if ac_fn_c_try_compile "$LINENO"; then :
22980 fp_done=yes
22981
22982 fi
22983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22984 test "$fp_done" = yes && break
22985 done
22986
22987 ac_cv_sys_pending_output_n_bytes=$ac_expr
22988
22989
22990 fi
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
22992 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
22993
22994 cat >>confdefs.h <<_ACEOF
22995 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
22996 _ACEOF
22997
22998
22999 fi
23000
23001
23002
23003
23004
23005
23006 if test $ac_cv_func_fstatat = no; then
23007 HAVE_FSTATAT=0
23008 else
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23010 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23011 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23012 $as_echo_n "(cached) " >&6
23013 else
23014 if test "$cross_compiling" = yes; then :
23015 case "$host_os" in
23016 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
23017 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
23018 esac
23019
23020 else
23021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23022 /* end confdefs.h. */
23023
23024 #include <fcntl.h>
23025 #include <sys/stat.h>
23026 int
23027 main (void)
23028 {
23029 struct stat a;
23030 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23031 }
23032
23033 _ACEOF
23034 if ac_fn_c_try_run "$LINENO"; then :
23035 gl_cv_func_fstatat_zero_flag=yes
23036 else
23037 gl_cv_func_fstatat_zero_flag=no
23038 fi
23039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23040 conftest.$ac_objext conftest.beam conftest.$ac_ext
23041 fi
23042
23043
23044 fi
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23046 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23047
23048 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23049 *yes+*yes) ;;
23050 *) REPLACE_FSTATAT=1
23051 case $gl_cv_func_fstatat_zero_flag in
23052 *yes)
23053
23054 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23055
23056 ;;
23057 esac
23058 ;;
23059 esac
23060 fi
23061
23062 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
23063
23064
23065
23066
23067
23068
23069
23070
23071 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
23072
23073 fi
23074
23075
23076
23077
23078
23079 GNULIB_FSTATAT=1
23080
23081
23082
23083
23084
23085
23086
23087
23088 if test $ac_cv_func_fsync = no; then
23089 HAVE_FSYNC=0
23090 fi
23091
23092 if test $HAVE_FSYNC = 0; then
23093
23094
23095
23096
23097
23098
23099
23100
23101 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
23102
23103 :
23104 fi
23105
23106
23107
23108
23109
23110 GNULIB_FSYNC=1
23111
23112
23113
23114
23115
23116
23117
23118 # Persuade glibc <stdlib.h> to declare getloadavg().
23119
23120
23121 gl_save_LIBS=$LIBS
23122
23123 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23124 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23125 HAVE_GETLOADAVG=1
23126 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23127 if test "x$ac_cv_func_getloadavg" = x""yes; then :
23128
23129 else
23130 gl_func_getloadavg_done=no
23131
23132 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23133 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23134 # to get the right answer into the cache.
23135 # For kstat on solaris, we need to test for libelf and libkvm to force the
23136 # definition of SVR4 below.
23137 if test $gl_func_getloadavg_done = no; then
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23139 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23140 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23141 $as_echo_n "(cached) " >&6
23142 else
23143 ac_check_lib_save_LIBS=$LIBS
23144 LIBS="-lelf $LIBS"
23145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23146 /* end confdefs.h. */
23147
23148 /* Override any GCC internal prototype to avoid an error.
23149 Use char because int might match the return type of a GCC
23150 builtin and then its argument prototype would still apply. */
23151 #ifdef __cplusplus
23152 extern "C"
23153 #endif
23154 char elf_begin ();
23155 int
23156 main ()
23157 {
23158 return elf_begin ();
23159 ;
23160 return 0;
23161 }
23162 _ACEOF
23163 if ac_fn_c_try_link "$LINENO"; then :
23164 ac_cv_lib_elf_elf_begin=yes
23165 else
23166 ac_cv_lib_elf_elf_begin=no
23167 fi
23168 rm -f core conftest.err conftest.$ac_objext \
23169 conftest$ac_exeext conftest.$ac_ext
23170 LIBS=$ac_check_lib_save_LIBS
23171 fi
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23173 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23174 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
23175 LIBS="-lelf $LIBS"
23176 fi
23177
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23179 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23180 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23181 $as_echo_n "(cached) " >&6
23182 else
23183 ac_check_lib_save_LIBS=$LIBS
23184 LIBS="-lkvm $LIBS"
23185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23186 /* end confdefs.h. */
23187
23188 /* Override any GCC internal prototype to avoid an error.
23189 Use char because int might match the return type of a GCC
23190 builtin and then its argument prototype would still apply. */
23191 #ifdef __cplusplus
23192 extern "C"
23193 #endif
23194 char kvm_open ();
23195 int
23196 main ()
23197 {
23198 return kvm_open ();
23199 ;
23200 return 0;
23201 }
23202 _ACEOF
23203 if ac_fn_c_try_link "$LINENO"; then :
23204 ac_cv_lib_kvm_kvm_open=yes
23205 else
23206 ac_cv_lib_kvm_kvm_open=no
23207 fi
23208 rm -f core conftest.err conftest.$ac_objext \
23209 conftest$ac_exeext conftest.$ac_ext
23210 LIBS=$ac_check_lib_save_LIBS
23211 fi
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23213 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23214 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
23215 LIBS="-lkvm $LIBS"
23216 fi
23217
23218 # Check for the 4.4BSD definition of getloadavg.
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23220 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23221 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23222 $as_echo_n "(cached) " >&6
23223 else
23224 ac_check_lib_save_LIBS=$LIBS
23225 LIBS="-lutil $LIBS"
23226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23227 /* end confdefs.h. */
23228
23229 /* Override any GCC internal prototype to avoid an error.
23230 Use char because int might match the return type of a GCC
23231 builtin and then its argument prototype would still apply. */
23232 #ifdef __cplusplus
23233 extern "C"
23234 #endif
23235 char getloadavg ();
23236 int
23237 main ()
23238 {
23239 return getloadavg ();
23240 ;
23241 return 0;
23242 }
23243 _ACEOF
23244 if ac_fn_c_try_link "$LINENO"; then :
23245 ac_cv_lib_util_getloadavg=yes
23246 else
23247 ac_cv_lib_util_getloadavg=no
23248 fi
23249 rm -f core conftest.err conftest.$ac_objext \
23250 conftest$ac_exeext conftest.$ac_ext
23251 LIBS=$ac_check_lib_save_LIBS
23252 fi
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23254 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23255 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
23256 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
23257 fi
23258
23259 fi
23260
23261 if test $gl_func_getloadavg_done = no; then
23262 # There is a commonly available library for RS/6000 AIX.
23263 # Since it is not a standard part of AIX, it might be installed locally.
23264 gl_getloadavg_LIBS=$LIBS
23265 LIBS="-L/usr/local/lib $LIBS"
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23267 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23268 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23269 $as_echo_n "(cached) " >&6
23270 else
23271 ac_check_lib_save_LIBS=$LIBS
23272 LIBS="-lgetloadavg $LIBS"
23273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23274 /* end confdefs.h. */
23275
23276 /* Override any GCC internal prototype to avoid an error.
23277 Use char because int might match the return type of a GCC
23278 builtin and then its argument prototype would still apply. */
23279 #ifdef __cplusplus
23280 extern "C"
23281 #endif
23282 char getloadavg ();
23283 int
23284 main ()
23285 {
23286 return getloadavg ();
23287 ;
23288 return 0;
23289 }
23290 _ACEOF
23291 if ac_fn_c_try_link "$LINENO"; then :
23292 ac_cv_lib_getloadavg_getloadavg=yes
23293 else
23294 ac_cv_lib_getloadavg_getloadavg=no
23295 fi
23296 rm -f core conftest.err conftest.$ac_objext \
23297 conftest$ac_exeext conftest.$ac_ext
23298 LIBS=$ac_check_lib_save_LIBS
23299 fi
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23301 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23302 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
23303 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
23304 else
23305 LIBS=$gl_getloadavg_LIBS
23306 fi
23307
23308 fi
23309
23310 # Set up the replacement function if necessary.
23311 if test $gl_func_getloadavg_done = no; then
23312 HAVE_GETLOADAVG=0
23313
23314 # Solaris has libkstat which does not require root.
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23316 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23317 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23318 $as_echo_n "(cached) " >&6
23319 else
23320 ac_check_lib_save_LIBS=$LIBS
23321 LIBS="-lkstat $LIBS"
23322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23323 /* end confdefs.h. */
23324
23325 /* Override any GCC internal prototype to avoid an error.
23326 Use char because int might match the return type of a GCC
23327 builtin and then its argument prototype would still apply. */
23328 #ifdef __cplusplus
23329 extern "C"
23330 #endif
23331 char kstat_open ();
23332 int
23333 main ()
23334 {
23335 return kstat_open ();
23336 ;
23337 return 0;
23338 }
23339 _ACEOF
23340 if ac_fn_c_try_link "$LINENO"; then :
23341 ac_cv_lib_kstat_kstat_open=yes
23342 else
23343 ac_cv_lib_kstat_kstat_open=no
23344 fi
23345 rm -f core conftest.err conftest.$ac_objext \
23346 conftest$ac_exeext conftest.$ac_ext
23347 LIBS=$ac_check_lib_save_LIBS
23348 fi
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23350 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23351 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
23352 cat >>confdefs.h <<_ACEOF
23353 #define HAVE_LIBKSTAT 1
23354 _ACEOF
23355
23356 LIBS="-lkstat $LIBS"
23357
23358 fi
23359
23360 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
23361
23362 # AIX has libperfstat which does not require root
23363 if test $gl_func_getloadavg_done = no; then
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23365 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23366 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23367 $as_echo_n "(cached) " >&6
23368 else
23369 ac_check_lib_save_LIBS=$LIBS
23370 LIBS="-lperfstat $LIBS"
23371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23372 /* end confdefs.h. */
23373
23374 /* Override any GCC internal prototype to avoid an error.
23375 Use char because int might match the return type of a GCC
23376 builtin and then its argument prototype would still apply. */
23377 #ifdef __cplusplus
23378 extern "C"
23379 #endif
23380 char perfstat_cpu_total ();
23381 int
23382 main ()
23383 {
23384 return perfstat_cpu_total ();
23385 ;
23386 return 0;
23387 }
23388 _ACEOF
23389 if ac_fn_c_try_link "$LINENO"; then :
23390 ac_cv_lib_perfstat_perfstat_cpu_total=yes
23391 else
23392 ac_cv_lib_perfstat_perfstat_cpu_total=no
23393 fi
23394 rm -f core conftest.err conftest.$ac_objext \
23395 conftest$ac_exeext conftest.$ac_ext
23396 LIBS=$ac_check_lib_save_LIBS
23397 fi
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23399 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23400 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
23401 cat >>confdefs.h <<_ACEOF
23402 #define HAVE_LIBPERFSTAT 1
23403 _ACEOF
23404
23405 LIBS="-lperfstat $LIBS"
23406
23407 fi
23408
23409 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
23410 fi
23411
23412 if test $gl_func_getloadavg_done = no; then
23413 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23414 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
23415 gl_func_getloadavg_done=yes
23416
23417 $as_echo "#define DGUX 1" >>confdefs.h
23418
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23420 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23421 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23422 $as_echo_n "(cached) " >&6
23423 else
23424 ac_check_lib_save_LIBS=$LIBS
23425 LIBS="-ldgc $LIBS"
23426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23427 /* end confdefs.h. */
23428
23429 /* Override any GCC internal prototype to avoid an error.
23430 Use char because int might match the return type of a GCC
23431 builtin and then its argument prototype would still apply. */
23432 #ifdef __cplusplus
23433 extern "C"
23434 #endif
23435 char dg_sys_info ();
23436 int
23437 main ()
23438 {
23439 return dg_sys_info ();
23440 ;
23441 return 0;
23442 }
23443 _ACEOF
23444 if ac_fn_c_try_link "$LINENO"; then :
23445 ac_cv_lib_dgc_dg_sys_info=yes
23446 else
23447 ac_cv_lib_dgc_dg_sys_info=no
23448 fi
23449 rm -f core conftest.err conftest.$ac_objext \
23450 conftest$ac_exeext conftest.$ac_ext
23451 LIBS=$ac_check_lib_save_LIBS
23452 fi
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23454 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23455 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
23456 cat >>confdefs.h <<_ACEOF
23457 #define HAVE_LIBDGC 1
23458 _ACEOF
23459
23460 LIBS="-ldgc $LIBS"
23461
23462 fi
23463
23464 fi
23465
23466
23467 fi
23468 fi
23469 fi
23470
23471
23472 if test "x$gl_save_LIBS" = x; then
23473 GETLOADAVG_LIBS=$LIBS
23474 else
23475 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
23476 fi
23477 LIBS=$gl_save_LIBS
23478
23479
23480 # Test whether the system declares getloadavg. Solaris has the function
23481 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
23482 for ac_header in sys/loadavg.h
23483 do :
23484 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
23485 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
23486 cat >>confdefs.h <<_ACEOF
23487 #define HAVE_SYS_LOADAVG_H 1
23488 _ACEOF
23489
23490 fi
23491
23492 done
23493
23494 if test $ac_cv_header_sys_loadavg_h = yes; then
23495 HAVE_SYS_LOADAVG_H=1
23496 else
23497 HAVE_SYS_LOADAVG_H=0
23498 fi
23499 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
23500 # include <sys/loadavg.h>
23501 #endif
23502 #include <stdlib.h>
23503 "
23504 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
23505
23506 else
23507 HAVE_DECL_GETLOADAVG=0
23508 fi
23509
23510
23511 if test $HAVE_GETLOADAVG = 0; then
23512
23513
23514
23515
23516
23517
23518
23519
23520 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
23521
23522
23523 # Figure out what our getloadavg.c needs.
23524
23525
23526
23527 # On HPUX9, an unprivileged user can get load averages this way.
23528 if test $gl_func_getloadavg_done = no; then
23529 for ac_func in pstat_getdynamic
23530 do :
23531 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
23532 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
23533 cat >>confdefs.h <<_ACEOF
23534 #define HAVE_PSTAT_GETDYNAMIC 1
23535 _ACEOF
23536 gl_func_getloadavg_done=yes
23537 fi
23538 done
23539
23540 fi
23541
23542 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
23543 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
23544 # Irix 4.0.5F has the header but not the library.
23545 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
23546 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
23547 gl_func_getloadavg_done=yes
23548
23549 $as_echo "#define SVR4 1" >>confdefs.h
23550
23551 fi
23552
23553 if test $gl_func_getloadavg_done = no; then
23554 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
23555 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
23556 gl_func_getloadavg_done=yes
23557
23558 $as_echo "#define UMAX 1" >>confdefs.h
23559
23560
23561 $as_echo "#define UMAX4_3 1" >>confdefs.h
23562
23563 fi
23564
23565
23566 fi
23567
23568 if test $gl_func_getloadavg_done = no; then
23569 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
23570 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
23571 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
23572
23573 fi
23574
23575
23576 fi
23577
23578 if test $gl_func_getloadavg_done = no; then
23579 for ac_header in mach/mach.h
23580 do :
23581 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
23582 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
23583 cat >>confdefs.h <<_ACEOF
23584 #define HAVE_MACH_MACH_H 1
23585 _ACEOF
23586
23587 fi
23588
23589 done
23590
23591 fi
23592
23593 for ac_header in nlist.h
23594 do :
23595 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
23596 if test "x$ac_cv_header_nlist_h" = x""yes; then :
23597 cat >>confdefs.h <<_ACEOF
23598 #define HAVE_NLIST_H 1
23599 _ACEOF
23600 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
23601 "
23602 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
23603
23604 cat >>confdefs.h <<_ACEOF
23605 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
23606 _ACEOF
23607
23608
23609 fi
23610
23611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23612 /* end confdefs.h. */
23613 #include <nlist.h>
23614 int
23615 main ()
23616 {
23617 struct nlist x;
23618 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
23619 x.n_un.n_name = "";
23620 #else
23621 x.n_name = "";
23622 #endif
23623 ;
23624 return 0;
23625 }
23626 _ACEOF
23627 if ac_fn_c_try_link "$LINENO"; then :
23628
23629 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
23630
23631 fi
23632 rm -f core conftest.err conftest.$ac_objext \
23633 conftest$ac_exeext conftest.$ac_ext
23634
23635 fi
23636
23637 done
23638
23639 fi
23640
23641
23642
23643
23644
23645 GNULIB_GETLOADAVG=1
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656 if test $REPLACE_GETOPT = 1; then
23657
23658
23659
23660
23661
23662
23663
23664
23665 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23676
23677
23678
23679
23680 GNULIB_GL_UNISTD_H_GETOPT=1
23681 fi
23682
23683
23684
23685
23686
23687
23688
23689 REPLACE_GETOPT=0
23690 if test -n "$gl_replace_getopt"; then
23691 REPLACE_GETOPT=1
23692 fi
23693
23694 if test $REPLACE_GETOPT = 1; then
23695
23696 GETOPT_H=getopt.h
23697
23698 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
23699
23700
23701
23702 fi
23703
23704 if test $REPLACE_GETOPT = 1; then
23705
23706
23707
23708
23709
23710
23711
23712
23713 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23724
23725
23726
23727
23728 GNULIB_GL_UNISTD_H_GETOPT=1
23729 fi
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742 gl_gettimeofday_timezone=void
23743 if test $ac_cv_func_gettimeofday != yes; then
23744 HAVE_GETTIMEOFDAY=0
23745 else
23746
23747
23748
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23750 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23751 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23752 $as_echo_n "(cached) " >&6
23753 else
23754 if test "$cross_compiling" = yes; then :
23755 # When cross-compiling:
23756 case "$host_os" in
23757 # Guess all is fine on glibc systems.
23758 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
23759 # If we don't know, assume the worst.
23760 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
23761 esac
23762
23763 else
23764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23765 /* end confdefs.h. */
23766 #include <string.h>
23767 #include <sys/time.h>
23768 #include <time.h>
23769 #include <stdlib.h>
23770
23771 int
23772 main ()
23773 {
23774
23775 time_t t = 0;
23776 struct tm *lt;
23777 struct tm saved_lt;
23778 struct timeval tv;
23779 lt = localtime (&t);
23780 saved_lt = *lt;
23781 gettimeofday (&tv, NULL);
23782 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23783
23784 ;
23785 return 0;
23786 }
23787 _ACEOF
23788 if ac_fn_c_try_run "$LINENO"; then :
23789 gl_cv_func_gettimeofday_clobber=no
23790 else
23791 gl_cv_func_gettimeofday_clobber=yes
23792 fi
23793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23794 conftest.$ac_objext conftest.beam conftest.$ac_ext
23795 fi
23796
23797 fi
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23799 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23800
23801 case "$gl_cv_func_gettimeofday_clobber" in
23802 *yes)
23803 REPLACE_GETTIMEOFDAY=1
23804
23805
23806 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
23807
23808
23809 $as_echo "#define localtime rpl_localtime" >>confdefs.h
23810
23811
23812
23813 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23814
23815 ;;
23816 esac
23817
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
23819 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
23820 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
23821 $as_echo_n "(cached) " >&6
23822 else
23823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23824 /* end confdefs.h. */
23825 #include <sys/time.h>
23826 struct timeval c;
23827 int gettimeofday (struct timeval *restrict, void *restrict);
23828
23829 int
23830 main ()
23831 {
23832 /* glibc uses struct timezone * rather than the POSIX void *
23833 if _GNU_SOURCE is defined. However, since the only portable
23834 use of gettimeofday uses NULL as the second parameter, and
23835 since the glibc definition is actually more typesafe, it is
23836 not worth wrapping this to get a compliant signature. */
23837 int (*f) (struct timeval *restrict, void *restrict)
23838 = gettimeofday;
23839 int x = f (&c, 0);
23840 return !(x | c.tv_sec | c.tv_usec);
23841
23842 ;
23843 return 0;
23844 }
23845 _ACEOF
23846 if ac_fn_c_try_compile "$LINENO"; then :
23847 gl_cv_func_gettimeofday_posix_signature=yes
23848 else
23849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23850 /* end confdefs.h. */
23851 #include <sys/time.h>
23852 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23853
23854 int
23855 main ()
23856 {
23857
23858 ;
23859 return 0;
23860 }
23861 _ACEOF
23862 if ac_fn_c_try_compile "$LINENO"; then :
23863 gl_cv_func_gettimeofday_posix_signature=almost
23864 else
23865 gl_cv_func_gettimeofday_posix_signature=no
23866 fi
23867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23868 fi
23869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870 fi
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23872 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23873 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
23874 gl_gettimeofday_timezone='struct timezone'
23875 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23876 REPLACE_GETTIMEOFDAY=1
23877 fi
23878 if test $REPLACE_STRUCT_TIMEVAL = 1; then
23879 REPLACE_GETTIMEOFDAY=1
23880 fi
23881
23882 fi
23883
23884 cat >>confdefs.h <<_ACEOF
23885 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
23886 _ACEOF
23887
23888
23889 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
23890
23891
23892
23893
23894
23895
23896
23897
23898 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23899
23900
23901 for ac_header in sys/timeb.h
23902 do :
23903 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
23904 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
23905 cat >>confdefs.h <<_ACEOF
23906 #define HAVE_SYS_TIMEB_H 1
23907 _ACEOF
23908
23909 fi
23910
23911 done
23912
23913 for ac_func in _ftime
23914 do :
23915 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
23916 if test "x$ac_cv_func__ftime" = x""yes; then :
23917 cat >>confdefs.h <<_ACEOF
23918 #define HAVE__FTIME 1
23919 _ACEOF
23920
23921 fi
23922 done
23923
23924
23925 fi
23926
23927
23928
23929
23930
23931 GNULIB_GETTIMEOFDAY=1
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942 if test $ac_cv_func_lstat = yes; then
23943
23944 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
23945 *no)
23946 REPLACE_LSTAT=1
23947 ;;
23948 esac
23949 else
23950 HAVE_LSTAT=0
23951 fi
23952
23953 if test $REPLACE_LSTAT = 1; then
23954
23955
23956
23957
23958
23959
23960
23961
23962 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
23963
23964 :
23965 fi
23966
23967
23968
23969
23970
23971 GNULIB_LSTAT=1
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982 if test $ac_cv_have_decl_memrchr = no; then
23983 HAVE_DECL_MEMRCHR=0
23984 fi
23985
23986 for ac_func in memrchr
23987 do :
23988 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
23989 if test "x$ac_cv_func_memrchr" = x""yes; then :
23990 cat >>confdefs.h <<_ACEOF
23991 #define HAVE_MEMRCHR 1
23992 _ACEOF
23993
23994 fi
23995 done
23996
23997
23998 if test $ac_cv_func_memrchr = no; then
23999
24000
24001
24002
24003
24004
24005
24006
24007 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
24008
24009 :
24010 fi
24011
24012
24013
24014
24015
24016 GNULIB_MEMRCHR=1
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028 if test $APPLE_UNIVERSAL_BUILD = 1; then
24029 # A universal build on Apple Mac OS X platforms.
24030 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24031 # But we need a configuration result that is valid in both modes.
24032 gl_cv_func_working_mktime=no
24033 fi
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24035 $as_echo_n "checking for working mktime... " >&6; }
24036 if test "${gl_cv_func_working_mktime+set}" = set; then :
24037 $as_echo_n "(cached) " >&6
24038 else
24039 if test "$cross_compiling" = yes; then :
24040 gl_cv_func_working_mktime=no
24041 else
24042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043 /* end confdefs.h. */
24044 /* Test program from Paul Eggert and Tony Leneis. */
24045 #include <limits.h>
24046 #include <stdlib.h>
24047 #include <time.h>
24048
24049 #ifdef HAVE_UNISTD_H
24050 # include <unistd.h>
24051 #endif
24052
24053 #if HAVE_DECL_ALARM
24054 # include <signal.h>
24055 #endif
24056
24057 /* Work around redefinition to rpl_putenv by other config tests. */
24058 #undef putenv
24059
24060 static time_t time_t_max;
24061 static time_t time_t_min;
24062
24063 /* Values we'll use to set the TZ environment variable. */
24064 static char *tz_strings[] = {
24065 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24066 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24067 };
24068 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24069
24070 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24071 Based on a problem report from Andreas Jaeger. */
24072 static int
24073 spring_forward_gap ()
24074 {
24075 /* glibc (up to about 1998-10-07) failed this test. */
24076 struct tm tm;
24077
24078 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24079 instead of "TZ=America/Vancouver" in order to detect the bug even
24080 on systems that don't support the Olson extension, or don't have the
24081 full zoneinfo tables installed. */
24082 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24083
24084 tm.tm_year = 98;
24085 tm.tm_mon = 3;
24086 tm.tm_mday = 5;
24087 tm.tm_hour = 2;
24088 tm.tm_min = 0;
24089 tm.tm_sec = 0;
24090 tm.tm_isdst = -1;
24091 return mktime (&tm) != (time_t) -1;
24092 }
24093
24094 static int
24095 mktime_test1 (time_t now)
24096 {
24097 struct tm *lt;
24098 return ! (lt = localtime (&now)) || mktime (lt) == now;
24099 }
24100
24101 static int
24102 mktime_test (time_t now)
24103 {
24104 return (mktime_test1 (now)
24105 && mktime_test1 ((time_t) (time_t_max - now))
24106 && mktime_test1 ((time_t) (time_t_min + now)));
24107 }
24108
24109 static int
24110 irix_6_4_bug ()
24111 {
24112 /* Based on code from Ariel Faigon. */
24113 struct tm tm;
24114 tm.tm_year = 96;
24115 tm.tm_mon = 3;
24116 tm.tm_mday = 0;
24117 tm.tm_hour = 0;
24118 tm.tm_min = 0;
24119 tm.tm_sec = 0;
24120 tm.tm_isdst = -1;
24121 mktime (&tm);
24122 return tm.tm_mon == 2 && tm.tm_mday == 31;
24123 }
24124
24125 static int
24126 bigtime_test (int j)
24127 {
24128 struct tm tm;
24129 time_t now;
24130 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24131 now = mktime (&tm);
24132 if (now != (time_t) -1)
24133 {
24134 struct tm *lt = localtime (&now);
24135 if (! (lt
24136 && lt->tm_year == tm.tm_year
24137 && lt->tm_mon == tm.tm_mon
24138 && lt->tm_mday == tm.tm_mday
24139 && lt->tm_hour == tm.tm_hour
24140 && lt->tm_min == tm.tm_min
24141 && lt->tm_sec == tm.tm_sec
24142 && lt->tm_yday == tm.tm_yday
24143 && lt->tm_wday == tm.tm_wday
24144 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24145 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24146 return 0;
24147 }
24148 return 1;
24149 }
24150
24151 static int
24152 year_2050_test ()
24153 {
24154 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24155 ignoring leap seconds. */
24156 unsigned long int answer = 2527315200UL;
24157
24158 struct tm tm;
24159 time_t t;
24160 tm.tm_year = 2050 - 1900;
24161 tm.tm_mon = 2 - 1;
24162 tm.tm_mday = 1;
24163 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24164 tm.tm_isdst = -1;
24165
24166 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24167 instead of "TZ=America/Vancouver" in order to detect the bug even
24168 on systems that don't support the Olson extension, or don't have the
24169 full zoneinfo tables installed. */
24170 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24171
24172 t = mktime (&tm);
24173
24174 /* Check that the result is either a failure, or close enough
24175 to the correct answer that we can assume the discrepancy is
24176 due to leap seconds. */
24177 return (t == (time_t) -1
24178 || (0 < t && answer - 120 <= t && t <= answer + 120));
24179 }
24180
24181 int
24182 main ()
24183 {
24184 int result = 0;
24185 time_t t, delta;
24186 int i, j;
24187 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24188 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24189
24190 #if HAVE_DECL_ALARM
24191 /* This test makes some buggy mktime implementations loop.
24192 Give up after 60 seconds; a mktime slower than that
24193 isn't worth using anyway. */
24194 signal (SIGALRM, SIG_DFL);
24195 alarm (60);
24196 #endif
24197
24198 time_t_max = (! time_t_signed
24199 ? (time_t) -1
24200 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24201 * 2 + 1));
24202 time_t_min = (! time_t_signed
24203 ? (time_t) 0
24204 : time_t_signed_magnitude
24205 ? ~ (time_t) 0
24206 : ~ time_t_max);
24207
24208 delta = time_t_max / 997; /* a suitable prime number */
24209 for (i = 0; i < N_STRINGS; i++)
24210 {
24211 if (tz_strings[i])
24212 putenv (tz_strings[i]);
24213
24214 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24215 if (! mktime_test (t))
24216 result |= 1;
24217 if ((result & 2) == 0
24218 && ! (mktime_test ((time_t) 1)
24219 && mktime_test ((time_t) (60 * 60))
24220 && mktime_test ((time_t) (60 * 60 * 24))))
24221 result |= 2;
24222
24223 for (j = 1; (result & 4) == 0; j <<= 1)
24224 {
24225 if (! bigtime_test (j))
24226 result |= 4;
24227 if (INT_MAX / 2 < j)
24228 break;
24229 }
24230 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24231 result |= 8;
24232 }
24233 if (! irix_6_4_bug ())
24234 result |= 16;
24235 if (! spring_forward_gap ())
24236 result |= 32;
24237 if (! year_2050_test ())
24238 result |= 64;
24239 return result;
24240 }
24241 _ACEOF
24242 if ac_fn_c_try_run "$LINENO"; then :
24243 gl_cv_func_working_mktime=yes
24244 else
24245 gl_cv_func_working_mktime=no
24246 fi
24247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24248 conftest.$ac_objext conftest.beam conftest.$ac_ext
24249 fi
24250
24251
24252 fi
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24254 $as_echo "$gl_cv_func_working_mktime" >&6; }
24255
24256 if test $gl_cv_func_working_mktime = no; then
24257 REPLACE_MKTIME=1
24258 else
24259 REPLACE_MKTIME=0
24260 fi
24261
24262 if test $REPLACE_MKTIME = 1; then
24263
24264
24265
24266
24267
24268
24269
24270
24271 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24272
24273 :
24274 fi
24275
24276
24277
24278
24279
24280 GNULIB_MKTIME=1
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292 if test $ac_cv_func_pselect = yes; then
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24294 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24295 if test "${gl_cv_sig_pselect+set}" = set; then :
24296 $as_echo_n "(cached) " >&6
24297 else
24298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24299 /* end confdefs.h. */
24300 #include <sys/select.h>
24301
24302 int
24303 main ()
24304 {
24305 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24306 struct timespec const *restrict,
24307 sigset_t const *restrict) = pselect;
24308 return !p;
24309 ;
24310 return 0;
24311 }
24312 _ACEOF
24313 if ac_fn_c_try_link "$LINENO"; then :
24314 gl_cv_sig_pselect=yes
24315 else
24316 gl_cv_sig_pselect=no
24317 fi
24318 rm -f core conftest.err conftest.$ac_objext \
24319 conftest$ac_exeext conftest.$ac_ext
24320 fi
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24322 $as_echo "$gl_cv_sig_pselect" >&6; }
24323
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24325 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24326 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24327 $as_echo_n "(cached) " >&6
24328 else
24329
24330 if test "$cross_compiling" = yes; then :
24331
24332 case "$host_os" in
24333 # Guess yes on glibc systems.
24334 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
24335 # If we don't know, assume the worst.
24336 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
24337 esac
24338
24339 else
24340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24341 /* end confdefs.h. */
24342
24343 #include <sys/types.h>
24344 #include <sys/time.h>
24345 #if HAVE_SYS_SELECT_H
24346 # include <sys/select.h>
24347 #endif
24348 #include <unistd.h>
24349 #include <errno.h>
24350
24351 int
24352 main ()
24353 {
24354
24355 fd_set set;
24356 dup2(0, 16);
24357 FD_ZERO(&set);
24358 FD_SET(16, &set);
24359 close(16);
24360 struct timespec timeout;
24361 timeout.tv_sec = 0;
24362 timeout.tv_nsec = 5000;
24363 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24364
24365 ;
24366 return 0;
24367 }
24368 _ACEOF
24369 if ac_fn_c_try_run "$LINENO"; then :
24370 gl_cv_func_pselect_detects_ebadf=yes
24371 else
24372 gl_cv_func_pselect_detects_ebadf=no
24373 fi
24374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24375 conftest.$ac_objext conftest.beam conftest.$ac_ext
24376 fi
24377
24378
24379 fi
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24381 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24382 case $gl_cv_func_pselect_detects_ebadf in
24383 *yes) ;;
24384 *) REPLACE_PSELECT=1 ;;
24385 esac
24386 fi
24387
24388 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
24389 REPLACE_PSELECT=1
24390 fi
24391
24392 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
24393
24394
24395
24396
24397
24398
24399
24400
24401 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
24402
24403 fi
24404
24405
24406
24407
24408
24409 GNULIB_PSELECT=1
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419 LIB_PTHREAD_SIGMASK=
24420
24421
24422
24423
24424 if test "$gl_threads_api" = posix; then
24425 if test $ac_cv_func_pthread_sigmask = yes; then
24426 :
24427 else
24428 if test -n "$LIBMULTITHREAD"; then
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
24430 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
24431 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
24432 $as_echo_n "(cached) " >&6
24433 else
24434 gl_save_LIBS="$LIBS"
24435 LIBS="$LIBS $LIBMULTITHREAD"
24436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h. */
24438 #include <pthread.h>
24439 #include <signal.h>
24440
24441 int
24442 main ()
24443 {
24444 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
24445 ;
24446 return 0;
24447 }
24448
24449 _ACEOF
24450 if ac_fn_c_try_link "$LINENO"; then :
24451 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
24452 else
24453 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
24454 fi
24455 rm -f core conftest.err conftest.$ac_objext \
24456 conftest$ac_exeext conftest.$ac_ext
24457 LIBS="$gl_save_LIBS"
24458
24459 fi
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
24461 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
24462 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
24463 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
24464 else
24465 HAVE_PTHREAD_SIGMASK=0
24466 fi
24467 else
24468 HAVE_PTHREAD_SIGMASK=0
24469 fi
24470 fi
24471 else
24472 if test $ac_cv_func_pthread_sigmask = yes; then
24473 REPLACE_PTHREAD_SIGMASK=1
24474 else
24475 HAVE_PTHREAD_SIGMASK=0
24476 fi
24477 fi
24478
24479
24480
24481
24482 if test $HAVE_PTHREAD_SIGMASK = 1; then
24483
24484
24485 if test -z "$LIB_PTHREAD_SIGMASK"; then
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
24487 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
24488 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24490 else
24491
24492 if test "$cross_compiling" = yes; then :
24493
24494 case "$host_os" in
24495 freebsd* | hpux* | solaris | solaris2.[2-9]*)
24496 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
24497 *)
24498 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
24499 esac
24500
24501 else
24502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24503 /* end confdefs.h. */
24504
24505 #include <pthread.h>
24506 #include <signal.h>
24507 #include <stddef.h>
24508 int main ()
24509 {
24510 sigset_t set;
24511 sigemptyset (&set);
24512 return pthread_sigmask (1729, &set, NULL) != 0;
24513 }
24514 _ACEOF
24515 if ac_fn_c_try_run "$LINENO"; then :
24516 gl_cv_func_pthread_sigmask_in_libc_works=no
24517 else
24518 gl_cv_func_pthread_sigmask_in_libc_works=yes
24519 fi
24520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24521 conftest.$ac_objext conftest.beam conftest.$ac_ext
24522 fi
24523
24524
24525 fi
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
24527 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
24528 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
24529 *no)
24530 REPLACE_PTHREAD_SIGMASK=1
24531
24532 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
24533
24534 ;;
24535 esac
24536 fi
24537
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
24539 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
24540 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
24541 $as_echo_n "(cached) " >&6
24542 else
24543
24544 gl_save_LIBS="$LIBS"
24545 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
24546 if test "$cross_compiling" = yes; then :
24547 case "$host_os" in
24548 cygwin*)
24549 gl_cv_func_pthread_sigmask_return_works="guessing no";;
24550 *)
24551 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
24552 esac
24553
24554 else
24555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24556 /* end confdefs.h. */
24557
24558 #include <pthread.h>
24559 #include <signal.h>
24560 #include <stddef.h>
24561 int main ()
24562 {
24563 sigset_t set;
24564 sigemptyset (&set);
24565 if (pthread_sigmask (1729, &set, NULL) == -1)
24566 return 1;
24567 return 0;
24568 }
24569 _ACEOF
24570 if ac_fn_c_try_run "$LINENO"; then :
24571 gl_cv_func_pthread_sigmask_return_works=yes
24572 else
24573 gl_cv_func_pthread_sigmask_return_works=no
24574 fi
24575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24576 conftest.$ac_objext conftest.beam conftest.$ac_ext
24577 fi
24578
24579 LIBS="$gl_save_LIBS"
24580
24581 fi
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
24583 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
24584 case "$gl_cv_func_pthread_sigmask_return_works" in
24585 *no)
24586 REPLACE_PTHREAD_SIGMASK=1
24587
24588 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
24589
24590 ;;
24591 esac
24592
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
24594 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
24595 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
24596 $as_echo_n "(cached) " >&6
24597 else
24598
24599 case "$host_os" in
24600 irix*)
24601 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
24602 *)
24603 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
24604 esac
24605 gl_save_LIBS="$LIBS"
24606 LIBS="$LIBS $LIBMULTITHREAD"
24607 if test "$cross_compiling" = yes; then :
24608 :
24609 else
24610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24611 /* end confdefs.h. */
24612
24613 #include <pthread.h>
24614 #include <signal.h>
24615 #include <stdio.h>
24616 #include <stdlib.h>
24617 #include <unistd.h>
24618 static volatile int sigint_occurred;
24619 static void
24620 sigint_handler (int sig)
24621 {
24622 sigint_occurred++;
24623 }
24624 int main ()
24625 {
24626 sigset_t set;
24627 int pid = getpid ();
24628 char command[80];
24629 signal (SIGINT, sigint_handler);
24630 sigemptyset (&set);
24631 sigaddset (&set, SIGINT);
24632 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
24633 return 1;
24634 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
24635 if (!(system (command) == 0))
24636 return 2;
24637 sleep (2);
24638 if (!(sigint_occurred == 0))
24639 return 3;
24640 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
24641 return 4;
24642 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
24643 return 5;
24644 return 0;
24645 }
24646 _ACEOF
24647 if ac_fn_c_try_run "$LINENO"; then :
24648 :
24649 else
24650 gl_cv_func_pthread_sigmask_unblock_works=no
24651 fi
24652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24653 conftest.$ac_objext conftest.beam conftest.$ac_ext
24654 fi
24655
24656 LIBS="$gl_save_LIBS"
24657
24658 fi
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
24660 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
24661 case "$gl_cv_func_pthread_sigmask_unblock_works" in
24662 *no)
24663 REPLACE_PTHREAD_SIGMASK=1
24664
24665 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
24666
24667 ;;
24668 esac
24669 fi
24670
24671 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
24672
24673
24674
24675
24676
24677
24678
24679
24680 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
24681
24682
24683 if test $HAVE_PTHREAD_SIGMASK = 1; then
24684
24685 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
24686
24687 fi
24688
24689 fi
24690
24691
24692
24693
24694
24695 GNULIB_PTHREAD_SIGMASK=1
24696
24697
24698
24699
24700
24701
24702
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
24704 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
24705 if test "${gl_cv_func_svid_putenv+set}" = set; then :
24706 $as_echo_n "(cached) " >&6
24707 else
24708 if test "$cross_compiling" = yes; then :
24709 case "$host_os" in
24710 # Guess yes on glibc systems.
24711 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
24712 # If we don't know, assume the worst.
24713 *) gl_cv_func_svid_putenv="guessing no" ;;
24714 esac
24715
24716 else
24717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24718 /* end confdefs.h. */
24719 $ac_includes_default
24720 int
24721 main ()
24722 {
24723
24724 /* Put it in env. */
24725 if (putenv ("CONFTEST_putenv=val"))
24726 return 1;
24727
24728 /* Try to remove it. */
24729 if (putenv ("CONFTEST_putenv"))
24730 return 2;
24731
24732 /* Make sure it was deleted. */
24733 if (getenv ("CONFTEST_putenv") != 0)
24734 return 3;
24735
24736 return 0;
24737
24738 ;
24739 return 0;
24740 }
24741 _ACEOF
24742 if ac_fn_c_try_run "$LINENO"; then :
24743 gl_cv_func_svid_putenv=yes
24744 else
24745 gl_cv_func_svid_putenv=no
24746 fi
24747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24748 conftest.$ac_objext conftest.beam conftest.$ac_ext
24749 fi
24750
24751
24752 fi
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
24754 $as_echo "$gl_cv_func_svid_putenv" >&6; }
24755 case "$gl_cv_func_svid_putenv" in
24756 *yes) ;;
24757 *)
24758 REPLACE_PUTENV=1
24759 ;;
24760 esac
24761
24762 if test $REPLACE_PUTENV = 1; then
24763
24764
24765
24766
24767
24768
24769
24770
24771 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
24772
24773
24774 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
24775 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
24776 ac_have_decl=1
24777 else
24778 ac_have_decl=0
24779 fi
24780
24781 cat >>confdefs.h <<_ACEOF
24782 #define HAVE_DECL__PUTENV $ac_have_decl
24783 _ACEOF
24784
24785
24786 fi
24787
24788
24789
24790
24791
24792 GNULIB_PUTENV=1
24793
24794
24795
24796
24797
24798
24799 # Check whether --enable-acl was given.
24800 if test "${enable_acl+set}" = set; then :
24801 enableval=$enable_acl;
24802 else
24803 enable_acl=auto
24804 fi
24805
24806
24807 LIB_ACL=
24808 use_acl=0
24809 if test "x$enable_acl" != "xno"; then
24810 for ac_header in sys/acl.h
24811 do :
24812 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
24813 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
24814 cat >>confdefs.h <<_ACEOF
24815 #define HAVE_SYS_ACL_H 1
24816 _ACEOF
24817
24818 fi
24819
24820 done
24821
24822 if test $ac_cv_header_sys_acl_h = yes; then
24823 ac_save_LIBS=$LIBS
24824
24825 if test $use_acl = 0; then
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
24827 $as_echo_n "checking for library containing acl_get_file... " >&6; }
24828 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24829 $as_echo_n "(cached) " >&6
24830 else
24831 ac_func_search_save_LIBS=$LIBS
24832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24833 /* end confdefs.h. */
24834
24835 /* Override any GCC internal prototype to avoid an error.
24836 Use char because int might match the return type of a GCC
24837 builtin and then its argument prototype would still apply. */
24838 #ifdef __cplusplus
24839 extern "C"
24840 #endif
24841 char acl_get_file ();
24842 int
24843 main ()
24844 {
24845 return acl_get_file ();
24846 ;
24847 return 0;
24848 }
24849 _ACEOF
24850 for ac_lib in '' acl pacl; do
24851 if test -z "$ac_lib"; then
24852 ac_res="none required"
24853 else
24854 ac_res=-l$ac_lib
24855 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24856 fi
24857 if ac_fn_c_try_link "$LINENO"; then :
24858 ac_cv_search_acl_get_file=$ac_res
24859 fi
24860 rm -f core conftest.err conftest.$ac_objext \
24861 conftest$ac_exeext
24862 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24863 break
24864 fi
24865 done
24866 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24867
24868 else
24869 ac_cv_search_acl_get_file=no
24870 fi
24871 rm conftest.$ac_ext
24872 LIBS=$ac_func_search_save_LIBS
24873 fi
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
24875 $as_echo "$ac_cv_search_acl_get_file" >&6; }
24876 ac_res=$ac_cv_search_acl_get_file
24877 if test "$ac_res" != no; then :
24878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24879 if test "$ac_cv_search_acl_get_file" != "none required"; then
24880 LIB_ACL=$ac_cv_search_acl_get_file
24881 fi
24882 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
24883 acl_free acl_from_mode acl_from_text \
24884 acl_delete_def_file acl_extended_file \
24885 acl_delete_fd_np acl_delete_file_np \
24886 acl_copy_ext_native acl_create_entry_np \
24887 acl_to_short_text acl_free_text
24888 do :
24889 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24890 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24891 eval as_val=\$$as_ac_var
24892 if test "x$as_val" = x""yes; then :
24893 cat >>confdefs.h <<_ACEOF
24894 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24895 _ACEOF
24896
24897 fi
24898 done
24899
24900 # If the acl_get_file bug is detected, don't enable the ACL support.
24901
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
24903 $as_echo_n "checking for working acl_get_file... " >&6; }
24904 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
24905 $as_echo_n "(cached) " >&6
24906 else
24907 if test "$cross_compiling" = yes; then :
24908 gl_cv_func_working_acl_get_file=cross-compiling
24909 else
24910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24911 /* end confdefs.h. */
24912 #include <sys/types.h>
24913 #include <sys/acl.h>
24914 #include <errno.h>
24915
24916 int
24917 main ()
24918 {
24919 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
24920 return 1;
24921 return 0;
24922
24923 ;
24924 return 0;
24925 }
24926 _ACEOF
24927 if ac_fn_c_try_run "$LINENO"; then :
24928 gl_cv_func_working_acl_get_file=yes
24929 else
24930 gl_cv_func_working_acl_get_file=no
24931 fi
24932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24933 conftest.$ac_objext conftest.beam conftest.$ac_ext
24934 fi
24935
24936 fi
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
24938 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
24939
24940 if test $gl_cv_func_working_acl_get_file = yes; then :
24941 use_acl=1
24942 fi
24943
24944 if test $use_acl = 1; then
24945 for ac_header in acl/libacl.h
24946 do :
24947 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
24948 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
24949 cat >>confdefs.h <<_ACEOF
24950 #define HAVE_ACL_LIBACL_H 1
24951 _ACEOF
24952
24953 fi
24954
24955 done
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965 for ac_func in acl_entries
24966 do :
24967 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
24968 if test "x$ac_cv_func_acl_entries" = x""yes; then :
24969 cat >>confdefs.h <<_ACEOF
24970 #define HAVE_ACL_ENTRIES 1
24971 _ACEOF
24972
24973 else
24974
24975 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24976
24977 fi
24978 done
24979
24980
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
24982 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
24983 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
24984 $as_echo_n "(cached) " >&6
24985 else
24986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24987 /* end confdefs.h. */
24988 #include <sys/types.h>
24989 #include <sys/acl.h>
24990 int type = ACL_FIRST_ENTRY;
24991 int
24992 main ()
24993 {
24994
24995 ;
24996 return 0;
24997 }
24998 _ACEOF
24999 if ac_fn_c_try_compile "$LINENO"; then :
25000 gl_cv_acl_ACL_FIRST_ENTRY=yes
25001 else
25002 gl_cv_acl_ACL_FIRST_ENTRY=no
25003 fi
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005 fi
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25007 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25008 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25009
25010 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25011
25012 fi
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25014 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25015 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25016 $as_echo_n "(cached) " >&6
25017 else
25018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25019 /* end confdefs.h. */
25020 #include <sys/types.h>
25021 #include <sys/acl.h>
25022 int type = ACL_TYPE_EXTENDED;
25023 int
25024 main ()
25025 {
25026
25027 ;
25028 return 0;
25029 }
25030 _ACEOF
25031 if ac_fn_c_try_compile "$LINENO"; then :
25032 gl_cv_acl_ACL_TYPE_EXTENDED=yes
25033 else
25034 gl_cv_acl_ACL_TYPE_EXTENDED=no
25035 fi
25036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25037 fi
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25039 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25040 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25041
25042 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25043
25044 fi
25045 else
25046 LIB_ACL=
25047 fi
25048
25049 fi
25050
25051 fi
25052
25053 if test $use_acl = 0; then
25054 for ac_func in facl
25055 do :
25056 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
25057 if test "x$ac_cv_func_facl" = x""yes; then :
25058 cat >>confdefs.h <<_ACEOF
25059 #define HAVE_FACL 1
25060 _ACEOF
25061
25062 fi
25063 done
25064
25065 if test $ac_cv_func_facl = yes; then
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25067 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25068 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25069 $as_echo_n "(cached) " >&6
25070 else
25071 ac_func_search_save_LIBS=$LIBS
25072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25073 /* end confdefs.h. */
25074
25075 /* Override any GCC internal prototype to avoid an error.
25076 Use char because int might match the return type of a GCC
25077 builtin and then its argument prototype would still apply. */
25078 #ifdef __cplusplus
25079 extern "C"
25080 #endif
25081 char acl_trivial ();
25082 int
25083 main ()
25084 {
25085 return acl_trivial ();
25086 ;
25087 return 0;
25088 }
25089 _ACEOF
25090 for ac_lib in '' sec; do
25091 if test -z "$ac_lib"; then
25092 ac_res="none required"
25093 else
25094 ac_res=-l$ac_lib
25095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25096 fi
25097 if ac_fn_c_try_link "$LINENO"; then :
25098 ac_cv_search_acl_trivial=$ac_res
25099 fi
25100 rm -f core conftest.err conftest.$ac_objext \
25101 conftest$ac_exeext
25102 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25103 break
25104 fi
25105 done
25106 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25107
25108 else
25109 ac_cv_search_acl_trivial=no
25110 fi
25111 rm conftest.$ac_ext
25112 LIBS=$ac_func_search_save_LIBS
25113 fi
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25115 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25116 ac_res=$ac_cv_search_acl_trivial
25117 if test "$ac_res" != no; then :
25118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25119 if test "$ac_cv_search_acl_trivial" != "none required"; then
25120 LIB_ACL=$ac_cv_search_acl_trivial
25121 fi
25122
25123 fi
25124
25125 for ac_func in acl_trivial
25126 do :
25127 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25128 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
25129 cat >>confdefs.h <<_ACEOF
25130 #define HAVE_ACL_TRIVIAL 1
25131 _ACEOF
25132
25133 fi
25134 done
25135
25136 use_acl=1
25137 fi
25138 fi
25139
25140 if test $use_acl = 0; then
25141 for ac_func in getacl
25142 do :
25143 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
25144 if test "x$ac_cv_func_getacl" = x""yes; then :
25145 cat >>confdefs.h <<_ACEOF
25146 #define HAVE_GETACL 1
25147 _ACEOF
25148
25149 fi
25150 done
25151
25152 if test $ac_cv_func_getacl = yes; then
25153 use_acl=1
25154 fi
25155 for ac_header in aclv.h
25156 do :
25157 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25158 "
25159 if test "x$ac_cv_header_aclv_h" = x""yes; then :
25160 cat >>confdefs.h <<_ACEOF
25161 #define HAVE_ACLV_H 1
25162 _ACEOF
25163
25164 fi
25165
25166 done
25167
25168 fi
25169
25170 if test $use_acl = 0; then
25171 for ac_func in aclx_get
25172 do :
25173 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25174 if test "x$ac_cv_func_aclx_get" = x""yes; then :
25175 cat >>confdefs.h <<_ACEOF
25176 #define HAVE_ACLX_GET 1
25177 _ACEOF
25178
25179 fi
25180 done
25181
25182 if test $ac_cv_func_aclx_get = yes; then
25183 use_acl=1
25184 fi
25185 fi
25186
25187 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
25188 for ac_func in statacl
25189 do :
25190 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
25191 if test "x$ac_cv_func_statacl" = x""yes; then :
25192 cat >>confdefs.h <<_ACEOF
25193 #define HAVE_STATACL 1
25194 _ACEOF
25195
25196 fi
25197 done
25198
25199 if test $ac_cv_func_statacl = yes; then
25200 use_acl=1
25201 fi
25202 fi
25203
25204 if test $use_acl = 0; then
25205 for ac_func in aclsort
25206 do :
25207 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
25208 if test "x$ac_cv_func_aclsort" = x""yes; then :
25209 cat >>confdefs.h <<_ACEOF
25210 #define HAVE_ACLSORT 1
25211 _ACEOF
25212
25213 fi
25214 done
25215
25216 if test $ac_cv_func_aclsort = yes; then
25217 use_acl=1
25218 fi
25219 fi
25220
25221 LIBS=$ac_save_LIBS
25222 fi
25223 if test "x$enable_acl$use_acl" = "xyes0"; then
25224 as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
25225 elif test "x$enable_acl$use_acl" = "xauto0"; then
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25227 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25229 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25230 fi
25231 fi
25232
25233
25234 cat >>confdefs.h <<_ACEOF
25235 #define USE_ACL $use_acl
25236 _ACEOF
25237
25238 USE_ACL=$use_acl
25239
25240
25241
25242
25243
25244 if test $ac_cv_func_readlink = no; then
25245 HAVE_READLINK=0
25246 else
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25248 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25249 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25250 $as_echo_n "(cached) " >&6
25251 else
25252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25253 /* end confdefs.h. */
25254 #include <unistd.h>
25255 /* Cause compilation failure if original declaration has wrong type. */
25256 ssize_t readlink (const char *, char *, size_t);
25257 int
25258 main ()
25259 {
25260
25261 ;
25262 return 0;
25263 }
25264 _ACEOF
25265 if ac_fn_c_try_compile "$LINENO"; then :
25266 gl_cv_decl_readlink_works=yes
25267 else
25268 gl_cv_decl_readlink_works=no
25269 fi
25270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25271 fi
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25273 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25275 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25276 if test "${gl_cv_func_readlink_works+set}" = set; then :
25277 $as_echo_n "(cached) " >&6
25278 else
25279 # We have readlink, so assume ln -s works.
25280 ln -s conftest.no-such conftest.link
25281 ln -s conftest.link conftest.lnk2
25282 if test "$cross_compiling" = yes; then :
25283 case "$host_os" in
25284 # Guess yes on glibc systems.
25285 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
25286 # If we don't know, assume the worst.
25287 *) gl_cv_func_readlink_works="guessing no" ;;
25288 esac
25289
25290 else
25291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25292 /* end confdefs.h. */
25293 #include <unistd.h>
25294
25295 int
25296 main ()
25297 {
25298 char buf[20];
25299 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25300 ;
25301 return 0;
25302 }
25303 _ACEOF
25304 if ac_fn_c_try_run "$LINENO"; then :
25305 gl_cv_func_readlink_works=yes
25306 else
25307 gl_cv_func_readlink_works=no
25308 fi
25309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25310 conftest.$ac_objext conftest.beam conftest.$ac_ext
25311 fi
25312
25313 rm -f conftest.link conftest.lnk2
25314 fi
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25316 $as_echo "$gl_cv_func_readlink_works" >&6; }
25317 case "$gl_cv_func_readlink_works" in
25318 *yes)
25319 if test "$gl_cv_decl_readlink_works" != yes; then
25320 REPLACE_READLINK=1
25321 fi
25322 ;;
25323 *)
25324
25325 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25326
25327 REPLACE_READLINK=1
25328 ;;
25329 esac
25330 fi
25331
25332 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25333
25334
25335
25336
25337
25338
25339
25340
25341 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
25342
25343
25344 :
25345
25346 fi
25347
25348
25349
25350
25351
25352 GNULIB_READLINK=1
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362 if test $ac_cv_func_readlinkat = no; then
25363 HAVE_READLINKAT=0
25364 fi
25365
25366 if test $HAVE_READLINKAT = 0; then
25367
25368
25369
25370
25371
25372
25373
25374
25375 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
25376
25377 fi
25378
25379
25380
25381
25382
25383 GNULIB_READLINKAT=1
25384
25385
25386
25387
25388
25389
25390 for ac_func in sig2str
25391 do :
25392 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
25393 if test "x$ac_cv_func_sig2str" = x""yes; then :
25394 cat >>confdefs.h <<_ACEOF
25395 #define HAVE_SIG2STR 1
25396 _ACEOF
25397
25398 fi
25399 done
25400
25401
25402 if test $ac_cv_func_sig2str = no; then
25403
25404
25405
25406
25407
25408
25409
25410
25411 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
25412
25413
25414 :
25415
25416 fi
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428 if test $gl_cv_have_include_next = yes; then
25429 gl_cv_next_signal_h='<'signal.h'>'
25430 else
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25432 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25433 if test "${gl_cv_next_signal_h+set}" = set; then :
25434 $as_echo_n "(cached) " >&6
25435 else
25436
25437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25438 /* end confdefs.h. */
25439 #include <signal.h>
25440
25441 _ACEOF
25442 case "$host_os" in
25443 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25444 *) gl_absname_cpp="$ac_cpp" ;;
25445 esac
25446
25447 case "$host_os" in
25448 mingw*)
25449 gl_dirsep_regex='[/\\]'
25450 ;;
25451 *)
25452 gl_dirsep_regex='\/'
25453 ;;
25454 esac
25455 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25456
25457 gl_header_literal_regex=`echo 'signal.h' \
25458 | sed -e "$gl_make_literal_regex_sed"`
25459 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25460 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25461 s|^/[^/]|//&|
25462 p
25463 q
25464 }'
25465 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25466 sed -n "$gl_absolute_header_sed"`'"'
25467
25468
25469 fi
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25471 $as_echo "$gl_cv_next_signal_h" >&6; }
25472 fi
25473 NEXT_SIGNAL_H=$gl_cv_next_signal_h
25474
25475 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25476 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25477 gl_next_as_first_directive='<'signal.h'>'
25478 else
25479 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25480 gl_next_as_first_directive=$gl_cv_next_signal_h
25481 fi
25482 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
25483
25484
25485
25486
25487
25488 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25489 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25490 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25491 #include <signal.h>
25492
25493 "
25494 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
25495
25496 else
25497 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
25498 fi
25499
25500
25501
25502
25503
25504
25505
25506 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25507 #include <signal.h>
25508
25509 "
25510 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
25511
25512 else
25513 HAVE_SIGHANDLER_T=0
25514 fi
25515
25516
25517
25518
25519 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25520 /* <sys/types.h> is not needed according to POSIX, but the
25521 <sys/socket.h> in i386-unknown-freebsd4.10 and
25522 powerpc-apple-darwin5.5 required it. */
25523 #include <sys/types.h>
25524 #if HAVE_SYS_SOCKET_H
25525 # include <sys/socket.h>
25526 #elif HAVE_WS2TCPIP_H
25527 # include <ws2tcpip.h>
25528 #endif
25529
25530 "
25531 if test "x$ac_cv_type_socklen_t" = x""yes; then :
25532
25533 else
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25535 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25536 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
25537 $as_echo_n "(cached) " >&6
25538 else
25539 # Systems have either "struct sockaddr *" or
25540 # "void *" as the second argument to getpeername
25541 gl_cv_socklen_t_equiv=
25542 for arg2 in "struct sockaddr" void; do
25543 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
25544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25545 /* end confdefs.h. */
25546 #include <sys/types.h>
25547 #include <sys/socket.h>
25548
25549 int getpeername (int, $arg2 *, $t *);
25550 int
25551 main ()
25552 {
25553 $t len;
25554 getpeername (0, 0, &len);
25555 ;
25556 return 0;
25557 }
25558 _ACEOF
25559 if ac_fn_c_try_compile "$LINENO"; then :
25560 gl_cv_socklen_t_equiv="$t"
25561 fi
25562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25563 test "$gl_cv_socklen_t_equiv" != "" && break
25564 done
25565 test "$gl_cv_socklen_t_equiv" != "" && break
25566 done
25567
25568 fi
25569
25570 if test "$gl_cv_socklen_t_equiv" = ""; then
25571 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
25572 fi
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25574 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25575
25576 cat >>confdefs.h <<_ACEOF
25577 #define socklen_t $gl_cv_socklen_t_equiv
25578 _ACEOF
25579
25580 fi
25581
25582
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25584 $as_echo_n "checking for ssize_t... " >&6; }
25585 if test "${gt_cv_ssize_t+set}" = set; then :
25586 $as_echo_n "(cached) " >&6
25587 else
25588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25589 /* end confdefs.h. */
25590 #include <sys/types.h>
25591 int
25592 main ()
25593 {
25594 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25595 return !x;
25596 ;
25597 return 0;
25598 }
25599 _ACEOF
25600 if ac_fn_c_try_compile "$LINENO"; then :
25601 gt_cv_ssize_t=yes
25602 else
25603 gt_cv_ssize_t=no
25604 fi
25605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25606 fi
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25608 $as_echo "$gt_cv_ssize_t" >&6; }
25609 if test $gt_cv_ssize_t = no; then
25610
25611 $as_echo "#define ssize_t int" >>confdefs.h
25612
25613 fi
25614
25615
25616
25617
25618
25619 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>
25620 #include <sys/stat.h>
25621 "
25622 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
25623
25624 cat >>confdefs.h <<_ACEOF
25625 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25626 _ACEOF
25627
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25629 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25630 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
25631 $as_echo_n "(cached) " >&6
25632 else
25633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25634 /* end confdefs.h. */
25635
25636 #include <sys/types.h>
25637 #include <sys/stat.h>
25638 #if HAVE_SYS_TIME_H
25639 # include <sys/time.h>
25640 #endif
25641 #include <time.h>
25642 struct timespec ts;
25643 struct stat st;
25644
25645 int
25646 main ()
25647 {
25648
25649 st.st_atim = ts;
25650
25651 ;
25652 return 0;
25653 }
25654 _ACEOF
25655 if ac_fn_c_try_compile "$LINENO"; then :
25656 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
25657 else
25658 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
25659 fi
25660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 fi
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25663 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25664 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25665
25666 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25667
25668 fi
25669 else
25670 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>
25671 #include <sys/stat.h>
25672 "
25673 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
25674
25675 cat >>confdefs.h <<_ACEOF
25676 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25677 _ACEOF
25678
25679
25680 else
25681 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25682 #include <sys/stat.h>
25683 "
25684 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
25685
25686 cat >>confdefs.h <<_ACEOF
25687 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25688 _ACEOF
25689
25690
25691 else
25692 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>
25693 #include <sys/stat.h>
25694 "
25695 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
25696
25697 cat >>confdefs.h <<_ACEOF
25698 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25699 _ACEOF
25700
25701
25702 fi
25703
25704 fi
25705
25706 fi
25707
25708 fi
25709
25710
25711
25712
25713
25714 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>
25715 #include <sys/stat.h>
25716 "
25717 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
25718
25719 cat >>confdefs.h <<_ACEOF
25720 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
25721 _ACEOF
25722
25723
25724 else
25725 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
25726 #include <sys/stat.h>
25727 "
25728 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
25729
25730 cat >>confdefs.h <<_ACEOF
25731 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
25732 _ACEOF
25733
25734
25735 else
25736 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>
25737 #include <sys/stat.h>
25738 "
25739 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
25740
25741 cat >>confdefs.h <<_ACEOF
25742 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25743 _ACEOF
25744
25745
25746 fi
25747
25748 fi
25749
25750 fi
25751
25752
25753
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25755 $as_echo_n "checking for working stdalign.h... " >&6; }
25756 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
25757 $as_echo_n "(cached) " >&6
25758 else
25759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25760 /* end confdefs.h. */
25761 #include <stdalign.h>
25762 #include <stddef.h>
25763
25764 /* Test that alignof yields a result consistent with offsetof.
25765 This catches GCC bug 52023
25766 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25767 #ifdef __cplusplus
25768 template <class t> struct alignof_helper { char a; t b; };
25769 # define ao(type) offsetof (alignof_helper<type>, b)
25770 #else
25771 # define ao(type) offsetof (struct { char a; type b; }, b)
25772 #endif
25773 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25774 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25775 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25776
25777 /* Test _Alignas only on platforms where gnulib can help. */
25778 #if \
25779 (__GNUC__ || __IBMC__ || __IBMCPP__ \
25780 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
25781 struct alignas_test { char c; char alignas (8) alignas_8; };
25782 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
25783 ? 1 : -1];
25784 #endif
25785
25786 int
25787 main ()
25788 {
25789
25790 ;
25791 return 0;
25792 }
25793 _ACEOF
25794 if ac_fn_c_try_compile "$LINENO"; then :
25795 gl_cv_header_working_stdalign_h=yes
25796 else
25797 gl_cv_header_working_stdalign_h=no
25798 fi
25799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25800 fi
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25802 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25803
25804 if test $gl_cv_header_working_stdalign_h = yes; then
25805 STDALIGN_H=''
25806 else
25807 STDALIGN_H='stdalign.h'
25808 fi
25809
25810
25811 if test -n "$STDALIGN_H"; then
25812 GL_GENERATE_STDALIGN_H_TRUE=
25813 GL_GENERATE_STDALIGN_H_FALSE='#'
25814 else
25815 GL_GENERATE_STDALIGN_H_TRUE='#'
25816 GL_GENERATE_STDALIGN_H_FALSE=
25817 fi
25818
25819
25820
25821 STDARG_H=''
25822 NEXT_STDARG_H='<stdarg.h>'
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
25824 $as_echo_n "checking for va_copy... " >&6; }
25825 if test "${gl_cv_func_va_copy+set}" = set; then :
25826 $as_echo_n "(cached) " >&6
25827 else
25828
25829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25830 /* end confdefs.h. */
25831 #include <stdarg.h>
25832 int
25833 main ()
25834 {
25835
25836 #ifndef va_copy
25837 void (*func) (va_list, va_list) = va_copy;
25838 #endif
25839
25840 ;
25841 return 0;
25842 }
25843 _ACEOF
25844 if ac_fn_c_try_compile "$LINENO"; then :
25845 gl_cv_func_va_copy=yes
25846 else
25847 gl_cv_func_va_copy=no
25848 fi
25849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25850 fi
25851
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
25853 $as_echo "$gl_cv_func_va_copy" >&6; }
25854 if test $gl_cv_func_va_copy = no; then
25855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h. */
25857 #if defined _AIX && !defined __GNUC__
25858 AIX vaccine
25859 #endif
25860
25861 _ACEOF
25862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25863 $EGREP "vaccine" >/dev/null 2>&1; then :
25864 gl_aixcc=yes
25865 else
25866 gl_aixcc=no
25867 fi
25868 rm -f conftest*
25869
25870 if test $gl_aixcc = yes; then
25871 STDARG_H=stdarg.h
25872
25873
25874
25875
25876
25877
25878
25879
25880 if test $gl_cv_have_include_next = yes; then
25881 gl_cv_next_stdarg_h='<'stdarg.h'>'
25882 else
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
25884 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
25885 if test "${gl_cv_next_stdarg_h+set}" = set; then :
25886 $as_echo_n "(cached) " >&6
25887 else
25888
25889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25890 /* end confdefs.h. */
25891 #include <stdarg.h>
25892
25893 _ACEOF
25894 case "$host_os" in
25895 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25896 *) gl_absname_cpp="$ac_cpp" ;;
25897 esac
25898
25899 case "$host_os" in
25900 mingw*)
25901 gl_dirsep_regex='[/\\]'
25902 ;;
25903 *)
25904 gl_dirsep_regex='\/'
25905 ;;
25906 esac
25907 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25908
25909 gl_header_literal_regex=`echo 'stdarg.h' \
25910 | sed -e "$gl_make_literal_regex_sed"`
25911 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25912 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25913 s|^/[^/]|//&|
25914 p
25915 q
25916 }'
25917 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25918 sed -n "$gl_absolute_header_sed"`'"'
25919
25920
25921 fi
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
25923 $as_echo "$gl_cv_next_stdarg_h" >&6; }
25924 fi
25925 NEXT_STDARG_H=$gl_cv_next_stdarg_h
25926
25927 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25928 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25929 gl_next_as_first_directive='<'stdarg.h'>'
25930 else
25931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25932 gl_next_as_first_directive=$gl_cv_next_stdarg_h
25933 fi
25934 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
25935
25936
25937
25938
25939 if test "$gl_cv_next_stdarg_h" = '""'; then
25940 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
25941 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
25942 fi
25943 else
25944
25945 saved_as_echo_n="$as_echo_n"
25946 as_echo_n=':'
25947 if test "${gl_cv_func___va_copy+set}" = set; then :
25948 $as_echo_n "(cached) " >&6
25949 else
25950
25951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25952 /* end confdefs.h. */
25953 #include <stdarg.h>
25954 int
25955 main ()
25956 {
25957
25958 #ifndef __va_copy
25959 error, bail out
25960 #endif
25961
25962 ;
25963 return 0;
25964 }
25965 _ACEOF
25966 if ac_fn_c_try_compile "$LINENO"; then :
25967 gl_cv_func___va_copy=yes
25968 else
25969 gl_cv_func___va_copy=no
25970 fi
25971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25972 fi
25973
25974 as_echo_n="$saved_as_echo_n"
25975
25976 if test $gl_cv_func___va_copy = yes; then
25977
25978 $as_echo "#define va_copy __va_copy" >>confdefs.h
25979
25980 else
25981
25982
25983 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
25984
25985 fi
25986 fi
25987 fi
25988
25989 if test -n "$STDARG_H"; then
25990 GL_GENERATE_STDARG_H_TRUE=
25991 GL_GENERATE_STDARG_H_FALSE='#'
25992 else
25993 GL_GENERATE_STDARG_H_TRUE='#'
25994 GL_GENERATE_STDARG_H_FALSE=
25995 fi
25996
25997
25998
25999
26000
26001
26002 # Define two additional variables used in the Makefile substitution.
26003
26004 if test "$ac_cv_header_stdbool_h" = yes; then
26005 STDBOOL_H=''
26006 else
26007 STDBOOL_H='stdbool.h'
26008 fi
26009
26010 if test -n "$STDBOOL_H"; then
26011 GL_GENERATE_STDBOOL_H_TRUE=
26012 GL_GENERATE_STDBOOL_H_FALSE='#'
26013 else
26014 GL_GENERATE_STDBOOL_H_TRUE='#'
26015 GL_GENERATE_STDBOOL_H_FALSE=
26016 fi
26017
26018
26019 if test "$ac_cv_type__Bool" = yes; then
26020 HAVE__BOOL=1
26021 else
26022 HAVE__BOOL=0
26023 fi
26024
26025
26026
26027
26028
26029 STDDEF_H=
26030 if test $gt_cv_c_wchar_t = no; then
26031 HAVE_WCHAR_T=0
26032 STDDEF_H=stddef.h
26033 fi
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26035 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26036 if test "${gl_cv_decl_null_works+set}" = set; then :
26037 $as_echo_n "(cached) " >&6
26038 else
26039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26040 /* end confdefs.h. */
26041 #include <stddef.h>
26042 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26043
26044 int
26045 main ()
26046 {
26047
26048 ;
26049 return 0;
26050 }
26051 _ACEOF
26052 if ac_fn_c_try_compile "$LINENO"; then :
26053 gl_cv_decl_null_works=yes
26054 else
26055 gl_cv_decl_null_works=no
26056 fi
26057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26058 fi
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26060 $as_echo "$gl_cv_decl_null_works" >&6; }
26061 if test $gl_cv_decl_null_works = no; then
26062 REPLACE_NULL=1
26063 STDDEF_H=stddef.h
26064 fi
26065
26066 if test -n "$STDDEF_H"; then
26067 GL_GENERATE_STDDEF_H_TRUE=
26068 GL_GENERATE_STDDEF_H_FALSE='#'
26069 else
26070 GL_GENERATE_STDDEF_H_TRUE='#'
26071 GL_GENERATE_STDDEF_H_FALSE=
26072 fi
26073
26074 if test -n "$STDDEF_H"; then
26075
26076
26077
26078
26079
26080
26081
26082
26083 if test $gl_cv_have_include_next = yes; then
26084 gl_cv_next_stddef_h='<'stddef.h'>'
26085 else
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26087 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26088 if test "${gl_cv_next_stddef_h+set}" = set; then :
26089 $as_echo_n "(cached) " >&6
26090 else
26091
26092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26093 /* end confdefs.h. */
26094 #include <stddef.h>
26095
26096 _ACEOF
26097 case "$host_os" in
26098 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26099 *) gl_absname_cpp="$ac_cpp" ;;
26100 esac
26101
26102 case "$host_os" in
26103 mingw*)
26104 gl_dirsep_regex='[/\\]'
26105 ;;
26106 *)
26107 gl_dirsep_regex='\/'
26108 ;;
26109 esac
26110 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26111
26112 gl_header_literal_regex=`echo 'stddef.h' \
26113 | sed -e "$gl_make_literal_regex_sed"`
26114 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26115 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26116 s|^/[^/]|//&|
26117 p
26118 q
26119 }'
26120 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26121 sed -n "$gl_absolute_header_sed"`'"'
26122
26123
26124 fi
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26126 $as_echo "$gl_cv_next_stddef_h" >&6; }
26127 fi
26128 NEXT_STDDEF_H=$gl_cv_next_stddef_h
26129
26130 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26132 gl_next_as_first_directive='<'stddef.h'>'
26133 else
26134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26135 gl_next_as_first_directive=$gl_cv_next_stddef_h
26136 fi
26137 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
26138
26139
26140
26141
26142 fi
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155 if test $gl_cv_have_include_next = yes; then
26156 gl_cv_next_stdio_h='<'stdio.h'>'
26157 else
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26159 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26160 if test "${gl_cv_next_stdio_h+set}" = set; then :
26161 $as_echo_n "(cached) " >&6
26162 else
26163
26164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26165 /* end confdefs.h. */
26166 #include <stdio.h>
26167
26168 _ACEOF
26169 case "$host_os" in
26170 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26171 *) gl_absname_cpp="$ac_cpp" ;;
26172 esac
26173
26174 case "$host_os" in
26175 mingw*)
26176 gl_dirsep_regex='[/\\]'
26177 ;;
26178 *)
26179 gl_dirsep_regex='\/'
26180 ;;
26181 esac
26182 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26183
26184 gl_header_literal_regex=`echo 'stdio.h' \
26185 | sed -e "$gl_make_literal_regex_sed"`
26186 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26187 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26188 s|^/[^/]|//&|
26189 p
26190 q
26191 }'
26192 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26193 sed -n "$gl_absolute_header_sed"`'"'
26194
26195
26196 fi
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26198 $as_echo "$gl_cv_next_stdio_h" >&6; }
26199 fi
26200 NEXT_STDIO_H=$gl_cv_next_stdio_h
26201
26202 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26204 gl_next_as_first_directive='<'stdio.h'>'
26205 else
26206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26207 gl_next_as_first_directive=$gl_cv_next_stdio_h
26208 fi
26209 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26210
26211
26212
26213
26214
26215 GNULIB_FSCANF=1
26216
26217
26218 cat >>confdefs.h <<_ACEOF
26219 #define GNULIB_FSCANF 1
26220 _ACEOF
26221
26222
26223 GNULIB_SCANF=1
26224
26225
26226 cat >>confdefs.h <<_ACEOF
26227 #define GNULIB_SCANF 1
26228 _ACEOF
26229
26230
26231 GNULIB_FGETC=1
26232 GNULIB_GETC=1
26233 GNULIB_GETCHAR=1
26234 GNULIB_FGETS=1
26235 GNULIB_FREAD=1
26236
26237
26238 GNULIB_FPRINTF=1
26239 GNULIB_PRINTF=1
26240 GNULIB_VFPRINTF=1
26241 GNULIB_VPRINTF=1
26242 GNULIB_FPUTC=1
26243 GNULIB_PUTC=1
26244 GNULIB_PUTCHAR=1
26245 GNULIB_FPUTS=1
26246 GNULIB_PUTS=1
26247 GNULIB_FWRITE=1
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263 if test $gl_cv_have_include_next = yes; then
26264 gl_cv_next_stdlib_h='<'stdlib.h'>'
26265 else
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26267 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26268 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26269 $as_echo_n "(cached) " >&6
26270 else
26271
26272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26273 /* end confdefs.h. */
26274 #include <stdlib.h>
26275
26276 _ACEOF
26277 case "$host_os" in
26278 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26279 *) gl_absname_cpp="$ac_cpp" ;;
26280 esac
26281
26282 case "$host_os" in
26283 mingw*)
26284 gl_dirsep_regex='[/\\]'
26285 ;;
26286 *)
26287 gl_dirsep_regex='\/'
26288 ;;
26289 esac
26290 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26291
26292 gl_header_literal_regex=`echo 'stdlib.h' \
26293 | sed -e "$gl_make_literal_regex_sed"`
26294 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26295 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26296 s|^/[^/]|//&|
26297 p
26298 q
26299 }'
26300 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26301 sed -n "$gl_absolute_header_sed"`'"'
26302
26303
26304 fi
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26306 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26307 fi
26308 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26309
26310 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26312 gl_next_as_first_directive='<'stdlib.h'>'
26313 else
26314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26315 gl_next_as_first_directive=$gl_cv_next_stdlib_h
26316 fi
26317 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26328
26329
26330
26331
26332
26333
26334
26335 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347 if test "$ac_cv_have_decl_strtoimax" != yes; then
26348 HAVE_DECL_STRTOIMAX=0
26349 fi
26350
26351 if test $ac_cv_func_strtoimax = yes; then
26352 HAVE_STRTOIMAX=1
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26354 $as_echo_n "checking whether strtoimax works... " >&6; }
26355 if test "${gl_cv_func_strtoimax+set}" = set; then :
26356 $as_echo_n "(cached) " >&6
26357 else
26358 if test "$cross_compiling" = yes; then :
26359 case "$host_os" in
26360 # Guess no on AIX 5.
26361 aix5*) gl_cv_func_strtoimax="guessing no" ;;
26362 # Guess yes otherwise.
26363 *) gl_cv_func_strtoimax="guessing yes" ;;
26364 esac
26365
26366 else
26367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26368 /* end confdefs.h. */
26369
26370 #include <errno.h>
26371 #include <string.h>
26372 #include <inttypes.h>
26373 int main ()
26374 {
26375 if (sizeof (intmax_t) > sizeof (int))
26376 {
26377 const char *s = "4294967295";
26378 char *p;
26379 intmax_t res;
26380 errno = 0;
26381 res = strtoimax (s, &p, 10);
26382 if (p != s + strlen (s))
26383 return 1;
26384 if (errno != 0)
26385 return 2;
26386 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26387 return 3;
26388 }
26389 else
26390 {
26391 const char *s = "2147483647";
26392 char *p;
26393 intmax_t res;
26394 errno = 0;
26395 res = strtoimax (s, &p, 10);
26396 if (p != s + strlen (s))
26397 return 1;
26398 if (errno != 0)
26399 return 2;
26400 if (res != 2147483647)
26401 return 3;
26402 }
26403 return 0;
26404 }
26405
26406 _ACEOF
26407 if ac_fn_c_try_run "$LINENO"; then :
26408 gl_cv_func_strtoimax=yes
26409 else
26410 gl_cv_func_strtoimax=no
26411 fi
26412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26413 conftest.$ac_objext conftest.beam conftest.$ac_ext
26414 fi
26415
26416
26417 fi
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
26419 $as_echo "$gl_cv_func_strtoimax" >&6; }
26420 case "$gl_cv_func_strtoimax" in
26421 *no) REPLACE_STRTOIMAX=1 ;;
26422 esac
26423 else
26424 HAVE_STRTOIMAX=0
26425 fi
26426
26427 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26428
26429
26430
26431
26432
26433
26434
26435
26436 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
26437
26438
26439 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
26440 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
26441 ac_have_decl=1
26442 else
26443 ac_have_decl=0
26444 fi
26445
26446 cat >>confdefs.h <<_ACEOF
26447 #define HAVE_DECL_STRTOLL $ac_have_decl
26448 _ACEOF
26449
26450
26451
26452 fi
26453
26454
26455
26456
26457
26458 GNULIB_STRTOIMAX=1
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468 if test "$ac_cv_have_decl_strtoumax" != yes; then
26469 HAVE_DECL_STRTOUMAX=0
26470 fi
26471
26472 if test $ac_cv_func_strtoumax = no; then
26473
26474
26475
26476
26477
26478
26479
26480
26481 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
26482
26483
26484 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
26485 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
26486 ac_have_decl=1
26487 else
26488 ac_have_decl=0
26489 fi
26490
26491 cat >>confdefs.h <<_ACEOF
26492 #define HAVE_DECL_STRTOULL $ac_have_decl
26493 _ACEOF
26494
26495
26496
26497 fi
26498
26499
26500
26501
26502
26503 GNULIB_STRTOUMAX=1
26504
26505
26506
26507
26508
26509
26510
26511 if test $ac_cv_func_symlink = no; then
26512 HAVE_SYMLINK=0
26513 else
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
26515 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
26516 if test "${gl_cv_func_symlink_works+set}" = set; then :
26517 $as_echo_n "(cached) " >&6
26518 else
26519 if test "$cross_compiling" = yes; then :
26520 case "$host_os" in
26521 # Guess yes on glibc systems.
26522 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
26523 # If we don't know, assume the worst.
26524 *) gl_cv_func_symlink_works="guessing no" ;;
26525 esac
26526
26527 else
26528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26529 /* end confdefs.h. */
26530 #include <unistd.h>
26531
26532 int
26533 main ()
26534 {
26535 int result = 0;
26536 if (!symlink ("a", "conftest.link/"))
26537 result |= 1;
26538 if (symlink ("conftest.f", "conftest.lnk2"))
26539 result |= 2;
26540 else if (!symlink ("a", "conftest.lnk2/"))
26541 result |= 4;
26542 return result;
26543
26544 ;
26545 return 0;
26546 }
26547 _ACEOF
26548 if ac_fn_c_try_run "$LINENO"; then :
26549 gl_cv_func_symlink_works=yes
26550 else
26551 gl_cv_func_symlink_works=no
26552 fi
26553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26554 conftest.$ac_objext conftest.beam conftest.$ac_ext
26555 fi
26556
26557 rm -f conftest.f conftest.link conftest.lnk2
26558 fi
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
26560 $as_echo "$gl_cv_func_symlink_works" >&6; }
26561 case "$gl_cv_func_symlink_works" in
26562 *yes) ;;
26563 *)
26564 REPLACE_SYMLINK=1
26565 ;;
26566 esac
26567 fi
26568
26569 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
26570
26571
26572
26573
26574
26575
26576
26577
26578 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
26579
26580 fi
26581
26582
26583
26584
26585
26586 GNULIB_SYMLINK=1
26587
26588
26589
26590
26591
26592
26593
26594
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26596 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26597 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26599 else
26600
26601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26602 /* end confdefs.h. */
26603 #include <sys/select.h>
26604 int
26605 main ()
26606 {
26607 struct timeval b;
26608 ;
26609 return 0;
26610 }
26611 _ACEOF
26612 if ac_fn_c_try_compile "$LINENO"; then :
26613 gl_cv_header_sys_select_h_selfcontained=yes
26614 else
26615 gl_cv_header_sys_select_h_selfcontained=no
26616 fi
26617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26618 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26620 /* end confdefs.h. */
26621 #include <sys/select.h>
26622 int
26623 main ()
26624 {
26625 int memset; int bzero;
26626 ;
26627 return 0;
26628 }
26629
26630 _ACEOF
26631 if ac_fn_c_try_compile "$LINENO"; then :
26632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26633 /* end confdefs.h. */
26634 #include <sys/select.h>
26635 int
26636 main ()
26637 {
26638
26639 #undef memset
26640 #define memset nonexistent_memset
26641 extern
26642 #ifdef __cplusplus
26643 "C"
26644 #endif
26645 void *memset (void *, int, unsigned long);
26646 #undef bzero
26647 #define bzero nonexistent_bzero
26648 extern
26649 #ifdef __cplusplus
26650 "C"
26651 #endif
26652 void bzero (void *, unsigned long);
26653 fd_set fds;
26654 FD_ZERO (&fds);
26655
26656 ;
26657 return 0;
26658 }
26659
26660 _ACEOF
26661 if ac_fn_c_try_link "$LINENO"; then :
26662
26663 else
26664 gl_cv_header_sys_select_h_selfcontained=no
26665 fi
26666 rm -f core conftest.err conftest.$ac_objext \
26667 conftest$ac_exeext conftest.$ac_ext
26668
26669 fi
26670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26671 fi
26672
26673 fi
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26675 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685 if test $gl_cv_have_include_next = yes; then
26686 gl_cv_next_sys_select_h='<'sys/select.h'>'
26687 else
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26689 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26690 if test "${gl_cv_next_sys_select_h+set}" = set; then :
26691 $as_echo_n "(cached) " >&6
26692 else
26693
26694 if test $ac_cv_header_sys_select_h = yes; then
26695
26696
26697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26698 /* end confdefs.h. */
26699 #include <sys/select.h>
26700
26701 _ACEOF
26702 case "$host_os" in
26703 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26704 *) gl_absname_cpp="$ac_cpp" ;;
26705 esac
26706
26707 case "$host_os" in
26708 mingw*)
26709 gl_dirsep_regex='[/\\]'
26710 ;;
26711 *)
26712 gl_dirsep_regex='\/'
26713 ;;
26714 esac
26715 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26716
26717 gl_header_literal_regex=`echo 'sys/select.h' \
26718 | sed -e "$gl_make_literal_regex_sed"`
26719 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26720 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26721 s|^/[^/]|//&|
26722 p
26723 q
26724 }'
26725 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26726 sed -n "$gl_absolute_header_sed"`'"'
26727 else
26728 gl_cv_next_sys_select_h='<'sys/select.h'>'
26729 fi
26730
26731
26732 fi
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
26734 $as_echo "$gl_cv_next_sys_select_h" >&6; }
26735 fi
26736 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
26737
26738 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26740 gl_next_as_first_directive='<'sys/select.h'>'
26741 else
26742 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26743 gl_next_as_first_directive=$gl_cv_next_sys_select_h
26744 fi
26745 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
26746
26747
26748
26749
26750 if test $ac_cv_header_sys_select_h = yes; then
26751 HAVE_SYS_SELECT_H=1
26752 else
26753 HAVE_SYS_SELECT_H=0
26754 fi
26755
26756
26757
26758
26759
26760 if test $ac_cv_header_sys_socket_h != yes; then
26761 for ac_header in winsock2.h
26762 do :
26763 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26764 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
26765 cat >>confdefs.h <<_ACEOF
26766 #define HAVE_WINSOCK2_H 1
26767 _ACEOF
26768
26769 fi
26770
26771 done
26772
26773 fi
26774 if test "$ac_cv_header_winsock2_h" = yes; then
26775 HAVE_WINSOCK2_H=1
26776 UNISTD_H_HAVE_WINSOCK2_H=1
26777 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26778 else
26779 HAVE_WINSOCK2_H=0
26780 fi
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801 if test $gl_cv_have_include_next = yes; then
26802 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26803 else
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26805 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26806 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
26807 $as_echo_n "(cached) " >&6
26808 else
26809
26810 if test $ac_cv_header_sys_stat_h = yes; then
26811
26812
26813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26814 /* end confdefs.h. */
26815 #include <sys/stat.h>
26816
26817 _ACEOF
26818 case "$host_os" in
26819 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26820 *) gl_absname_cpp="$ac_cpp" ;;
26821 esac
26822
26823 case "$host_os" in
26824 mingw*)
26825 gl_dirsep_regex='[/\\]'
26826 ;;
26827 *)
26828 gl_dirsep_regex='\/'
26829 ;;
26830 esac
26831 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26832
26833 gl_header_literal_regex=`echo 'sys/stat.h' \
26834 | sed -e "$gl_make_literal_regex_sed"`
26835 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26836 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26837 s|^/[^/]|//&|
26838 p
26839 q
26840 }'
26841 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26842 sed -n "$gl_absolute_header_sed"`'"'
26843 else
26844 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26845 fi
26846
26847
26848 fi
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26850 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26851 fi
26852 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
26853
26854 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26855 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26856 gl_next_as_first_directive='<'sys/stat.h'>'
26857 else
26858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26859 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
26860 fi
26861 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
26874
26875 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
26876
26877 fi
26878
26879 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26880 #include <sys/stat.h>
26881 "
26882 if test "x$ac_cv_type_nlink_t" = x""yes; then :
26883
26884 else
26885
26886 $as_echo "#define nlink_t int" >>confdefs.h
26887
26888 fi
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
26908 "
26909 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
26910 ac_have_decl=1
26911 else
26912 ac_have_decl=0
26913 fi
26914
26915 cat >>confdefs.h <<_ACEOF
26916 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
26917 _ACEOF
26918
26919 if test $ac_cv_have_decl_localtime_r = no; then
26920 HAVE_DECL_LOCALTIME_R=0
26921 fi
26922
26923
26924 if test $ac_cv_func_localtime_r = yes; then
26925 HAVE_LOCALTIME_R=1
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
26927 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
26928 if test "${gl_cv_time_r_posix+set}" = set; then :
26929 $as_echo_n "(cached) " >&6
26930 else
26931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26932 /* end confdefs.h. */
26933 #include <time.h>
26934 int
26935 main ()
26936 {
26937 /* We don't need to append 'restrict's to the argument types,
26938 even though the POSIX signature has the 'restrict's,
26939 since C99 says they can't affect type compatibility. */
26940 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
26941 if (ptr) return 0;
26942 /* Check the return type is a pointer.
26943 On HP-UX 10 it is 'int'. */
26944 *localtime_r (0, 0);
26945 ;
26946 return 0;
26947 }
26948
26949 _ACEOF
26950 if ac_fn_c_try_compile "$LINENO"; then :
26951 gl_cv_time_r_posix=yes
26952 else
26953 gl_cv_time_r_posix=no
26954 fi
26955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26956
26957 fi
26958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
26959 $as_echo "$gl_cv_time_r_posix" >&6; }
26960 if test $gl_cv_time_r_posix = yes; then
26961 REPLACE_LOCALTIME_R=0
26962 else
26963 REPLACE_LOCALTIME_R=1
26964 fi
26965 else
26966 HAVE_LOCALTIME_R=0
26967 fi
26968
26969 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
26970
26971
26972
26973
26974
26975
26976
26977
26978 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
26979
26980
26981 :
26982
26983 fi
26984
26985
26986
26987
26988
26989 GNULIB_TIME_R=1
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000 LIB_TIMER_TIME=
27001
27002 gl_saved_libs=$LIBS
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27004 $as_echo_n "checking for library containing timer_settime... " >&6; }
27005 if test "${ac_cv_search_timer_settime+set}" = set; then :
27006 $as_echo_n "(cached) " >&6
27007 else
27008 ac_func_search_save_LIBS=$LIBS
27009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27010 /* end confdefs.h. */
27011
27012 /* Override any GCC internal prototype to avoid an error.
27013 Use char because int might match the return type of a GCC
27014 builtin and then its argument prototype would still apply. */
27015 #ifdef __cplusplus
27016 extern "C"
27017 #endif
27018 char timer_settime ();
27019 int
27020 main ()
27021 {
27022 return timer_settime ();
27023 ;
27024 return 0;
27025 }
27026 _ACEOF
27027 for ac_lib in '' rt posix4; do
27028 if test -z "$ac_lib"; then
27029 ac_res="none required"
27030 else
27031 ac_res=-l$ac_lib
27032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27033 fi
27034 if ac_fn_c_try_link "$LINENO"; then :
27035 ac_cv_search_timer_settime=$ac_res
27036 fi
27037 rm -f core conftest.err conftest.$ac_objext \
27038 conftest$ac_exeext
27039 if test "${ac_cv_search_timer_settime+set}" = set; then :
27040 break
27041 fi
27042 done
27043 if test "${ac_cv_search_timer_settime+set}" = set; then :
27044
27045 else
27046 ac_cv_search_timer_settime=no
27047 fi
27048 rm conftest.$ac_ext
27049 LIBS=$ac_func_search_save_LIBS
27050 fi
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27052 $as_echo "$ac_cv_search_timer_settime" >&6; }
27053 ac_res=$ac_cv_search_timer_settime
27054 if test "$ac_res" != no; then :
27055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27056 test "$ac_cv_search_timer_settime" = "none required" ||
27057 LIB_TIMER_TIME=$ac_cv_search_timer_settime
27058 fi
27059
27060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27061 /* end confdefs.h. */
27062
27063 #include <features.h>
27064 #ifdef __GNU_LIBRARY__
27065 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27066 && !defined __UCLIBC__
27067 Thread emulation available
27068 #endif
27069 #endif
27070
27071 _ACEOF
27072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27073 $EGREP "Thread" >/dev/null 2>&1; then :
27074 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
27075 fi
27076 rm -f conftest*
27077
27078 for ac_func in timer_settime
27079 do :
27080 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27081 if test "x$ac_cv_func_timer_settime" = x""yes; then :
27082 cat >>confdefs.h <<_ACEOF
27083 #define HAVE_TIMER_SETTIME 1
27084 _ACEOF
27085
27086 fi
27087 done
27088
27089 LIBS=$gl_saved_libs
27090
27091 :
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104 if test $gl_cv_have_include_next = yes; then
27105 gl_cv_next_unistd_h='<'unistd.h'>'
27106 else
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27108 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27109 if test "${gl_cv_next_unistd_h+set}" = set; then :
27110 $as_echo_n "(cached) " >&6
27111 else
27112
27113 if test $ac_cv_header_unistd_h = yes; then
27114
27115
27116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27117 /* end confdefs.h. */
27118 #include <unistd.h>
27119
27120 _ACEOF
27121 case "$host_os" in
27122 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27123 *) gl_absname_cpp="$ac_cpp" ;;
27124 esac
27125
27126 case "$host_os" in
27127 mingw*)
27128 gl_dirsep_regex='[/\\]'
27129 ;;
27130 *)
27131 gl_dirsep_regex='\/'
27132 ;;
27133 esac
27134 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27135
27136 gl_header_literal_regex=`echo 'unistd.h' \
27137 | sed -e "$gl_make_literal_regex_sed"`
27138 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27139 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27140 s|^/[^/]|//&|
27141 p
27142 q
27143 }'
27144 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27145 sed -n "$gl_absolute_header_sed"`'"'
27146 else
27147 gl_cv_next_unistd_h='<'unistd.h'>'
27148 fi
27149
27150
27151 fi
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27153 $as_echo "$gl_cv_next_unistd_h" >&6; }
27154 fi
27155 NEXT_UNISTD_H=$gl_cv_next_unistd_h
27156
27157 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27158 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27159 gl_next_as_first_directive='<'unistd.h'>'
27160 else
27161 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27162 gl_next_as_first_directive=$gl_cv_next_unistd_h
27163 fi
27164 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
27165
27166
27167
27168
27169 if test $ac_cv_header_unistd_h = yes; then
27170 HAVE_UNISTD_H=1
27171 else
27172 HAVE_UNISTD_H=0
27173 fi
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185 if test $ac_cv_have_decl_unsetenv = no; then
27186 HAVE_DECL_UNSETENV=0
27187 fi
27188 for ac_func in unsetenv
27189 do :
27190 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27191 if test "x$ac_cv_func_unsetenv" = x""yes; then :
27192 cat >>confdefs.h <<_ACEOF
27193 #define HAVE_UNSETENV 1
27194 _ACEOF
27195
27196 fi
27197 done
27198
27199 if test $ac_cv_func_unsetenv = no; then
27200 HAVE_UNSETENV=0
27201 else
27202 HAVE_UNSETENV=1
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27204 $as_echo_n "checking for unsetenv() return type... " >&6; }
27205 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27206 $as_echo_n "(cached) " >&6
27207 else
27208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27209 /* end confdefs.h. */
27210
27211 #undef _BSD
27212 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27213 #include <stdlib.h>
27214 extern
27215 #ifdef __cplusplus
27216 "C"
27217 #endif
27218 int unsetenv (const char *name);
27219
27220 int
27221 main ()
27222 {
27223
27224 ;
27225 return 0;
27226 }
27227 _ACEOF
27228 if ac_fn_c_try_compile "$LINENO"; then :
27229 gt_cv_func_unsetenv_ret='int'
27230 else
27231 gt_cv_func_unsetenv_ret='void'
27232 fi
27233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27234 fi
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27236 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27237 if test $gt_cv_func_unsetenv_ret = 'void'; then
27238
27239 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27240
27241 REPLACE_UNSETENV=1
27242 fi
27243
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27245 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27246 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27247 $as_echo_n "(cached) " >&6
27248 else
27249 if test "$cross_compiling" = yes; then :
27250 case "$host_os" in
27251 # Guess yes on glibc systems.
27252 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27253 # If we don't know, assume the worst.
27254 *) gl_cv_func_unsetenv_works="guessing no" ;;
27255 esac
27256
27257 else
27258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27259 /* end confdefs.h. */
27260
27261 #include <stdlib.h>
27262 #include <errno.h>
27263 extern char **environ;
27264
27265 int
27266 main ()
27267 {
27268
27269 char entry1[] = "a=1";
27270 char entry2[] = "b=2";
27271 char *env[] = { entry1, entry2, NULL };
27272 if (putenv ((char *) "a=1")) return 1;
27273 if (putenv (entry2)) return 2;
27274 entry2[0] = 'a';
27275 unsetenv ("a");
27276 if (getenv ("a")) return 3;
27277 if (!unsetenv ("") || errno != EINVAL) return 4;
27278 entry2[0] = 'b';
27279 environ = env;
27280 if (!getenv ("a")) return 5;
27281 entry2[0] = 'a';
27282 unsetenv ("a");
27283 if (getenv ("a")) return 6;
27284
27285 ;
27286 return 0;
27287 }
27288 _ACEOF
27289 if ac_fn_c_try_run "$LINENO"; then :
27290 gl_cv_func_unsetenv_works=yes
27291 else
27292 gl_cv_func_unsetenv_works=no
27293 fi
27294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27295 conftest.$ac_objext conftest.beam conftest.$ac_ext
27296 fi
27297
27298 fi
27299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27300 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27301 case "$gl_cv_func_unsetenv_works" in
27302 *yes) ;;
27303 *)
27304 REPLACE_UNSETENV=1
27305 ;;
27306 esac
27307 fi
27308
27309 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27310
27311
27312
27313
27314
27315
27316
27317
27318 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
27319
27320
27321
27322
27323
27324 fi
27325
27326
27327
27328
27329
27330 GNULIB_UNSETENV=1
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27344 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27345 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27346 $as_echo_n "(cached) " >&6
27347 else
27348 touch conftest.file
27349 if test "$cross_compiling" = yes; then :
27350 case "$host_os" in
27351 # Guess yes on glibc systems.
27352 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
27353 # If we don't know, assume the worst.
27354 *) gl_cv_func_futimesat_works="guessing no" ;;
27355 esac
27356
27357 else
27358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27359 /* end confdefs.h. */
27360
27361 #include <stddef.h>
27362 #include <sys/times.h>
27363 #include <fcntl.h>
27364
27365 int
27366 main ()
27367 {
27368 int fd = open ("conftest.file", O_RDWR);
27369 if (fd < 0) return 1;
27370 if (futimesat (fd, NULL, NULL)) return 2;
27371
27372 ;
27373 return 0;
27374 }
27375 _ACEOF
27376 if ac_fn_c_try_run "$LINENO"; then :
27377 gl_cv_func_futimesat_works=yes
27378 else
27379 gl_cv_func_futimesat_works=no
27380 fi
27381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27382 conftest.$ac_objext conftest.beam conftest.$ac_ext
27383 fi
27384
27385 rm -f conftest.file
27386 fi
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27388 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27389 case "$gl_cv_func_futimesat_works" in
27390 *yes) ;;
27391 *)
27392
27393 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27394
27395 ;;
27396 esac
27397 fi
27398
27399 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
27400 gl_gnulib_enabled_dosname=false
27401 gl_gnulib_enabled_euidaccess=false
27402 gl_gnulib_enabled_getgroups=false
27403 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
27404 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
27405 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
27406 gl_gnulib_enabled_pathmax=false
27407 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
27408 gl_gnulib_enabled_stat=false
27409 gl_gnulib_enabled_strtoll=false
27410 gl_gnulib_enabled_strtoull=false
27411 gl_gnulib_enabled_verify=false
27412 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
27413 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
27414 {
27415 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27416
27417
27418
27419
27420
27421
27422
27423
27424 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
27425
27426 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
27427 fi
27428 }
27429 func_gl_gnulib_m4code_dosname ()
27430 {
27431 if ! $gl_gnulib_enabled_dosname; then
27432 gl_gnulib_enabled_dosname=true
27433 fi
27434 }
27435 func_gl_gnulib_m4code_euidaccess ()
27436 {
27437 if ! $gl_gnulib_enabled_euidaccess; then
27438
27439
27440
27441
27442
27443 for ac_func in euidaccess
27444 do :
27445 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
27446 if test "x$ac_cv_func_euidaccess" = x""yes; then :
27447 cat >>confdefs.h <<_ACEOF
27448 #define HAVE_EUIDACCESS 1
27449 _ACEOF
27450
27451 fi
27452 done
27453
27454 if test $ac_cv_func_euidaccess = no; then
27455 HAVE_EUIDACCESS=0
27456 fi
27457
27458 if test $HAVE_EUIDACCESS = 0; then
27459
27460
27461
27462
27463
27464
27465
27466
27467 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
27468
27469
27470
27471 for ac_header in libgen.h
27472 do :
27473 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
27474 if test "x$ac_cv_header_libgen_h" = x""yes; then :
27475 cat >>confdefs.h <<_ACEOF
27476 #define HAVE_LIBGEN_H 1
27477 _ACEOF
27478
27479 fi
27480
27481 done
27482
27483
27484 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
27485 if test "x$ac_cv_func_getgroups" = x""yes; then :
27486
27487 fi
27488
27489
27490 # If we don't yet have getgroups, see if it's in -lbsd.
27491 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27492 ac_save_LIBS=$LIBS
27493 if test $ac_cv_func_getgroups = no; then
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27495 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27496 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27497 $as_echo_n "(cached) " >&6
27498 else
27499 ac_check_lib_save_LIBS=$LIBS
27500 LIBS="-lbsd $LIBS"
27501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27502 /* end confdefs.h. */
27503
27504 /* Override any GCC internal prototype to avoid an error.
27505 Use char because int might match the return type of a GCC
27506 builtin and then its argument prototype would still apply. */
27507 #ifdef __cplusplus
27508 extern "C"
27509 #endif
27510 char getgroups ();
27511 int
27512 main ()
27513 {
27514 return getgroups ();
27515 ;
27516 return 0;
27517 }
27518 _ACEOF
27519 if ac_fn_c_try_link "$LINENO"; then :
27520 ac_cv_lib_bsd_getgroups=yes
27521 else
27522 ac_cv_lib_bsd_getgroups=no
27523 fi
27524 rm -f core conftest.err conftest.$ac_objext \
27525 conftest$ac_exeext conftest.$ac_ext
27526 LIBS=$ac_check_lib_save_LIBS
27527 fi
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27529 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27530 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
27531 GETGROUPS_LIB=-lbsd
27532 fi
27533
27534 fi
27535
27536 # Run the program to test the functionality of the system-supplied
27537 # getgroups function only if there is such a function.
27538 if test $ac_cv_func_getgroups = yes; then
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27540 $as_echo_n "checking for working getgroups... " >&6; }
27541 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27542 $as_echo_n "(cached) " >&6
27543 else
27544 if test "$cross_compiling" = yes; then :
27545 case "$host_os" in # ((
27546 # Guess yes on glibc systems.
27547 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
27548 # If we don't know, assume the worst.
27549 *) ac_cv_func_getgroups_works="guessing no" ;;
27550 esac
27551
27552 else
27553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27554 /* end confdefs.h. */
27555 $ac_includes_default
27556 int
27557 main ()
27558 {
27559 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27560 return getgroups (0, 0) == -1;
27561 ;
27562 return 0;
27563 }
27564
27565 _ACEOF
27566 if ac_fn_c_try_run "$LINENO"; then :
27567 ac_cv_func_getgroups_works=yes
27568 else
27569 ac_cv_func_getgroups_works=no
27570 fi
27571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27572 conftest.$ac_objext conftest.beam conftest.$ac_ext
27573 fi
27574
27575
27576 fi
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27578 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27579 else
27580 ac_cv_func_getgroups_works=no
27581 fi
27582 case "$ac_cv_func_getgroups_works" in
27583 *yes)
27584
27585 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27586
27587 ;;
27588 esac
27589 LIBS=$ac_save_LIBS
27590
27591
27592 # Solaris 9 and 10 need -lgen to get the eaccess function.
27593 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
27594 # programs in the package would end up linked with that potentially-shared
27595 # library, inducing unnecessary run-time overhead.
27596 LIB_EACCESS=
27597
27598 gl_saved_libs=$LIBS
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
27600 $as_echo_n "checking for library containing eaccess... " >&6; }
27601 if test "${ac_cv_search_eaccess+set}" = set; then :
27602 $as_echo_n "(cached) " >&6
27603 else
27604 ac_func_search_save_LIBS=$LIBS
27605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27606 /* end confdefs.h. */
27607
27608 /* Override any GCC internal prototype to avoid an error.
27609 Use char because int might match the return type of a GCC
27610 builtin and then its argument prototype would still apply. */
27611 #ifdef __cplusplus
27612 extern "C"
27613 #endif
27614 char eaccess ();
27615 int
27616 main ()
27617 {
27618 return eaccess ();
27619 ;
27620 return 0;
27621 }
27622 _ACEOF
27623 for ac_lib in '' gen; do
27624 if test -z "$ac_lib"; then
27625 ac_res="none required"
27626 else
27627 ac_res=-l$ac_lib
27628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27629 fi
27630 if ac_fn_c_try_link "$LINENO"; then :
27631 ac_cv_search_eaccess=$ac_res
27632 fi
27633 rm -f core conftest.err conftest.$ac_objext \
27634 conftest$ac_exeext
27635 if test "${ac_cv_search_eaccess+set}" = set; then :
27636 break
27637 fi
27638 done
27639 if test "${ac_cv_search_eaccess+set}" = set; then :
27640
27641 else
27642 ac_cv_search_eaccess=no
27643 fi
27644 rm conftest.$ac_ext
27645 LIBS=$ac_func_search_save_LIBS
27646 fi
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
27648 $as_echo "$ac_cv_search_eaccess" >&6; }
27649 ac_res=$ac_cv_search_eaccess
27650 if test "$ac_res" != no; then :
27651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27652 test "$ac_cv_search_eaccess" = "none required" ||
27653 LIB_EACCESS=$ac_cv_search_eaccess
27654 fi
27655
27656 for ac_func in eaccess
27657 do :
27658 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
27659 if test "x$ac_cv_func_eaccess" = x""yes; then :
27660 cat >>confdefs.h <<_ACEOF
27661 #define HAVE_EACCESS 1
27662 _ACEOF
27663
27664 fi
27665 done
27666
27667 LIBS=$gl_saved_libs
27668
27669 fi
27670
27671
27672
27673
27674
27675 GNULIB_EUIDACCESS=1
27676
27677
27678
27679
27680
27681 gl_gnulib_enabled_euidaccess=true
27682 if test $HAVE_EUIDACCESS = 0; then
27683 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
27684 fi
27685 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
27686 if test $HAVE_EUIDACCESS = 0; then
27687 func_gl_gnulib_m4code_stat
27688 fi
27689 fi
27690 }
27691 func_gl_gnulib_m4code_getgroups ()
27692 {
27693 if ! $gl_gnulib_enabled_getgroups; then
27694
27695
27696
27697
27698
27699 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
27700 if test "x$ac_cv_func_getgroups" = x""yes; then :
27701
27702 fi
27703
27704
27705 # If we don't yet have getgroups, see if it's in -lbsd.
27706 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27707 ac_save_LIBS=$LIBS
27708 if test $ac_cv_func_getgroups = no; then
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27710 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27711 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27712 $as_echo_n "(cached) " >&6
27713 else
27714 ac_check_lib_save_LIBS=$LIBS
27715 LIBS="-lbsd $LIBS"
27716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27717 /* end confdefs.h. */
27718
27719 /* Override any GCC internal prototype to avoid an error.
27720 Use char because int might match the return type of a GCC
27721 builtin and then its argument prototype would still apply. */
27722 #ifdef __cplusplus
27723 extern "C"
27724 #endif
27725 char getgroups ();
27726 int
27727 main ()
27728 {
27729 return getgroups ();
27730 ;
27731 return 0;
27732 }
27733 _ACEOF
27734 if ac_fn_c_try_link "$LINENO"; then :
27735 ac_cv_lib_bsd_getgroups=yes
27736 else
27737 ac_cv_lib_bsd_getgroups=no
27738 fi
27739 rm -f core conftest.err conftest.$ac_objext \
27740 conftest$ac_exeext conftest.$ac_ext
27741 LIBS=$ac_check_lib_save_LIBS
27742 fi
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27744 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27745 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
27746 GETGROUPS_LIB=-lbsd
27747 fi
27748
27749 fi
27750
27751 # Run the program to test the functionality of the system-supplied
27752 # getgroups function only if there is such a function.
27753 if test $ac_cv_func_getgroups = yes; then
27754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27755 $as_echo_n "checking for working getgroups... " >&6; }
27756 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27757 $as_echo_n "(cached) " >&6
27758 else
27759 if test "$cross_compiling" = yes; then :
27760 case "$host_os" in # ((
27761 # Guess yes on glibc systems.
27762 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
27763 # If we don't know, assume the worst.
27764 *) ac_cv_func_getgroups_works="guessing no" ;;
27765 esac
27766
27767 else
27768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27769 /* end confdefs.h. */
27770 $ac_includes_default
27771 int
27772 main ()
27773 {
27774 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27775 return getgroups (0, 0) == -1;
27776 ;
27777 return 0;
27778 }
27779
27780 _ACEOF
27781 if ac_fn_c_try_run "$LINENO"; then :
27782 ac_cv_func_getgroups_works=yes
27783 else
27784 ac_cv_func_getgroups_works=no
27785 fi
27786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27787 conftest.$ac_objext conftest.beam conftest.$ac_ext
27788 fi
27789
27790
27791 fi
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27793 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27794 else
27795 ac_cv_func_getgroups_works=no
27796 fi
27797 case "$ac_cv_func_getgroups_works" in
27798 *yes)
27799
27800 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27801
27802 ;;
27803 esac
27804 LIBS=$ac_save_LIBS
27805
27806 if test $ac_cv_func_getgroups != yes; then
27807 HAVE_GETGROUPS=0
27808 else
27809 if test "$ac_cv_type_getgroups" != gid_t \
27810 || { case "$ac_cv_func_getgroups_works" in
27811 *yes) false;;
27812 *) true;;
27813 esac
27814 }; then
27815 REPLACE_GETGROUPS=1
27816
27817 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
27818
27819 else
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
27821 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
27822 if test "${gl_cv_func_getgroups_works+set}" = set; then :
27823 $as_echo_n "(cached) " >&6
27824 else
27825 if test "$cross_compiling" = yes; then :
27826 case "$host_os" in
27827 # Guess yes on glibc systems.
27828 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
27829 # If we don't know, assume the worst.
27830 *) gl_cv_func_getgroups_works="guessing no" ;;
27831 esac
27832
27833 else
27834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27835 /* end confdefs.h. */
27836 $ac_includes_default
27837 int
27838 main ()
27839 {
27840 int size = getgroups (0, 0);
27841 gid_t *list = malloc (size * sizeof *list);
27842 return getgroups (-1, list) != -1;
27843 ;
27844 return 0;
27845 }
27846 _ACEOF
27847 if ac_fn_c_try_run "$LINENO"; then :
27848 gl_cv_func_getgroups_works=yes
27849 else
27850 gl_cv_func_getgroups_works=no
27851 fi
27852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27853 conftest.$ac_objext conftest.beam conftest.$ac_ext
27854 fi
27855
27856 fi
27857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
27858 $as_echo "$gl_cv_func_getgroups_works" >&6; }
27859 case "$gl_cv_func_getgroups_works" in
27860 *yes) ;;
27861 *) REPLACE_GETGROUPS=1 ;;
27862 esac
27863 fi
27864 fi
27865 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
27866
27867 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
27868
27869
27870
27871
27872
27873
27874
27875
27876 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
27877
27878 fi
27879
27880
27881
27882
27883
27884 GNULIB_GETGROUPS=1
27885
27886
27887
27888
27889
27890 gl_gnulib_enabled_getgroups=true
27891 fi
27892 }
27893 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
27894 {
27895 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
27896
27897
27898 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
27899 fi
27900 }
27901 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
27902 {
27903 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
27904
27905
27906
27907
27908
27909 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
27910 if test "x$ac_cv_func_group_member" = x""yes; then :
27911
27912 else
27913
27914 HAVE_GROUP_MEMBER=0
27915
27916 fi
27917
27918
27919 if test $HAVE_GROUP_MEMBER = 0; then
27920
27921
27922
27923
27924
27925
27926
27927
27928 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
27929
27930
27931
27932
27933 fi
27934
27935
27936
27937
27938
27939 GNULIB_GROUP_MEMBER=1
27940
27941
27942
27943
27944
27945 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
27946 if test $HAVE_GROUP_MEMBER = 0; then
27947 func_gl_gnulib_m4code_getgroups
27948 fi
27949 if test $HAVE_GROUP_MEMBER = 0; then
27950 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
27951 fi
27952 fi
27953 }
27954 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
27955 {
27956 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
27957 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
27958 fi
27959 }
27960 func_gl_gnulib_m4code_pathmax ()
27961 {
27962 if ! $gl_gnulib_enabled_pathmax; then
27963
27964
27965
27966 gl_gnulib_enabled_pathmax=true
27967 fi
27968 }
27969 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
27970 {
27971 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
27972 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
27973 fi
27974 }
27975 func_gl_gnulib_m4code_stat ()
27976 {
27977 if ! $gl_gnulib_enabled_stat; then
27978
27979
27980
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
27982 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
27983 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
27984 $as_echo_n "(cached) " >&6
27985 else
27986 if test "$cross_compiling" = yes; then :
27987 case $host_os in
27988 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
27989 *) gl_cv_func_stat_dir_slash="guessing yes";;
27990 esac
27991 else
27992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27993 /* end confdefs.h. */
27994 #include <sys/stat.h>
27995
27996 int
27997 main ()
27998 {
27999 struct stat st; return stat (".", &st) != stat ("./", &st);
28000 ;
28001 return 0;
28002 }
28003 _ACEOF
28004 if ac_fn_c_try_run "$LINENO"; then :
28005 gl_cv_func_stat_dir_slash=yes
28006 else
28007 gl_cv_func_stat_dir_slash=no
28008 fi
28009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28010 conftest.$ac_objext conftest.beam conftest.$ac_ext
28011 fi
28012
28013 fi
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28015 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28017 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28018 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28019 $as_echo_n "(cached) " >&6
28020 else
28021 touch conftest.tmp
28022 # Assume that if we have lstat, we can also check symlinks.
28023 if test $ac_cv_func_lstat = yes; then
28024 ln -s conftest.tmp conftest.lnk
28025 fi
28026 if test "$cross_compiling" = yes; then :
28027 case "$host_os" in
28028 # Guess yes on glibc systems.
28029 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28030 # If we don't know, assume the worst.
28031 *) gl_cv_func_stat_file_slash="guessing no" ;;
28032 esac
28033
28034 else
28035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28036 /* end confdefs.h. */
28037 #include <sys/stat.h>
28038
28039 int
28040 main ()
28041 {
28042 int result = 0;
28043 struct stat st;
28044 if (!stat ("conftest.tmp/", &st))
28045 result |= 1;
28046 #if HAVE_LSTAT
28047 if (!stat ("conftest.lnk/", &st))
28048 result |= 2;
28049 #endif
28050 return result;
28051
28052 ;
28053 return 0;
28054 }
28055 _ACEOF
28056 if ac_fn_c_try_run "$LINENO"; then :
28057 gl_cv_func_stat_file_slash=yes
28058 else
28059 gl_cv_func_stat_file_slash=no
28060 fi
28061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28062 conftest.$ac_objext conftest.beam conftest.$ac_ext
28063 fi
28064
28065 rm -f conftest.tmp conftest.lnk
28066 fi
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28068 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28069 case $gl_cv_func_stat_dir_slash in
28070 *no) REPLACE_STAT=1
28071
28072 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28073 ;;
28074 esac
28075 case $gl_cv_func_stat_file_slash in
28076 *no) REPLACE_STAT=1
28077
28078 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28079 ;;
28080 esac
28081
28082 if test $REPLACE_STAT = 1; then
28083
28084
28085
28086
28087
28088
28089
28090
28091 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28092
28093 :
28094 fi
28095
28096
28097
28098
28099
28100 GNULIB_STAT=1
28101
28102
28103
28104
28105
28106 gl_gnulib_enabled_stat=true
28107 if test $REPLACE_STAT = 1; then
28108 func_gl_gnulib_m4code_dosname
28109 fi
28110 if test $REPLACE_STAT = 1; then
28111 func_gl_gnulib_m4code_pathmax
28112 fi
28113 if test $REPLACE_STAT = 1; then
28114 func_gl_gnulib_m4code_verify
28115 fi
28116 fi
28117 }
28118 func_gl_gnulib_m4code_strtoll ()
28119 {
28120 if ! $gl_gnulib_enabled_strtoll; then
28121
28122
28123
28124 if test "$ac_cv_type_long_long_int" = yes; then
28125 for ac_func in strtoll
28126 do :
28127 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28128 if test "x$ac_cv_func_strtoll" = x""yes; then :
28129 cat >>confdefs.h <<_ACEOF
28130 #define HAVE_STRTOLL 1
28131 _ACEOF
28132
28133 fi
28134 done
28135
28136 if test $ac_cv_func_strtoll = no; then
28137 HAVE_STRTOLL=0
28138 fi
28139 fi
28140
28141 if test $HAVE_STRTOLL = 0; then
28142
28143
28144
28145
28146
28147
28148
28149
28150 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
28151
28152
28153 :
28154
28155 fi
28156
28157
28158
28159
28160
28161 GNULIB_STRTOLL=1
28162
28163
28164
28165
28166
28167 gl_gnulib_enabled_strtoll=true
28168 fi
28169 }
28170 func_gl_gnulib_m4code_strtoull ()
28171 {
28172 if ! $gl_gnulib_enabled_strtoull; then
28173
28174
28175
28176 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28177 for ac_func in strtoull
28178 do :
28179 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
28180 if test "x$ac_cv_func_strtoull" = x""yes; then :
28181 cat >>confdefs.h <<_ACEOF
28182 #define HAVE_STRTOULL 1
28183 _ACEOF
28184
28185 fi
28186 done
28187
28188 if test $ac_cv_func_strtoull = no; then
28189 HAVE_STRTOULL=0
28190 fi
28191 fi
28192
28193 if test $HAVE_STRTOULL = 0; then
28194
28195
28196
28197
28198
28199
28200
28201
28202 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
28203
28204
28205 :
28206
28207 fi
28208
28209
28210
28211
28212
28213 GNULIB_STRTOULL=1
28214
28215
28216
28217
28218
28219 gl_gnulib_enabled_strtoull=true
28220 fi
28221 }
28222 func_gl_gnulib_m4code_verify ()
28223 {
28224 if ! $gl_gnulib_enabled_verify; then
28225 gl_gnulib_enabled_verify=true
28226 fi
28227 }
28228 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
28229 {
28230 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28231 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
28232 fi
28233 }
28234 if test $HAVE_FACCESSAT = 0; then
28235 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28236 fi
28237 if test $HAVE_FACCESSAT = 0; then
28238 func_gl_gnulib_m4code_dosname
28239 fi
28240 if test $HAVE_FACCESSAT = 0; then
28241 func_gl_gnulib_m4code_euidaccess
28242 fi
28243 if test $HAVE_FACCESSAT = 0; then
28244 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28245 fi
28246 if test $HAVE_FDOPENDIR = 0; then
28247 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28248 fi
28249 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28250 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28251 fi
28252 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28253 func_gl_gnulib_m4code_dosname
28254 fi
28255 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28256 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28257 fi
28258 if test $REPLACE_GETOPT = 1; then
28259 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
28260 fi
28261 if test $REPLACE_LSTAT = 1; then
28262 func_gl_gnulib_m4code_dosname
28263 fi
28264 if test $REPLACE_LSTAT = 1; then
28265 func_gl_gnulib_m4code_stat
28266 fi
28267 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
28268 func_gl_gnulib_m4code_stat
28269 fi
28270 if test $HAVE_READLINKAT = 0; then
28271 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28272 fi
28273 if test $HAVE_READLINKAT = 0; then
28274 func_gl_gnulib_m4code_dosname
28275 fi
28276 if test $HAVE_READLINKAT = 0; then
28277 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28278 fi
28279 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
28280 func_gl_gnulib_m4code_strtoll
28281 fi
28282 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
28283 func_gl_gnulib_m4code_verify
28284 fi
28285 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
28286 func_gl_gnulib_m4code_strtoull
28287 fi
28288 if test $ac_cv_func_strtoumax = no; then
28289 func_gl_gnulib_m4code_verify
28290 fi
28291
28292 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28293 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
28294 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
28295 else
28296 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
28297 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
28298 fi
28299
28300 if $gl_gnulib_enabled_dosname; then
28301 gl_GNULIB_ENABLED_dosname_TRUE=
28302 gl_GNULIB_ENABLED_dosname_FALSE='#'
28303 else
28304 gl_GNULIB_ENABLED_dosname_TRUE='#'
28305 gl_GNULIB_ENABLED_dosname_FALSE=
28306 fi
28307
28308 if $gl_gnulib_enabled_euidaccess; then
28309 gl_GNULIB_ENABLED_euidaccess_TRUE=
28310 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
28311 else
28312 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
28313 gl_GNULIB_ENABLED_euidaccess_FALSE=
28314 fi
28315
28316 if $gl_gnulib_enabled_getgroups; then
28317 gl_GNULIB_ENABLED_getgroups_TRUE=
28318 gl_GNULIB_ENABLED_getgroups_FALSE='#'
28319 else
28320 gl_GNULIB_ENABLED_getgroups_TRUE='#'
28321 gl_GNULIB_ENABLED_getgroups_FALSE=
28322 fi
28323
28324 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28325 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
28326 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
28327 else
28328 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
28329 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
28330 fi
28331
28332 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28333 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
28334 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
28335 else
28336 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
28337 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
28338 fi
28339
28340 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28341 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
28342 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
28343 else
28344 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
28345 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
28346 fi
28347
28348 if $gl_gnulib_enabled_pathmax; then
28349 gl_GNULIB_ENABLED_pathmax_TRUE=
28350 gl_GNULIB_ENABLED_pathmax_FALSE='#'
28351 else
28352 gl_GNULIB_ENABLED_pathmax_TRUE='#'
28353 gl_GNULIB_ENABLED_pathmax_FALSE=
28354 fi
28355
28356 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28357 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
28358 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
28359 else
28360 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
28361 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
28362 fi
28363
28364 if $gl_gnulib_enabled_stat; then
28365 gl_GNULIB_ENABLED_stat_TRUE=
28366 gl_GNULIB_ENABLED_stat_FALSE='#'
28367 else
28368 gl_GNULIB_ENABLED_stat_TRUE='#'
28369 gl_GNULIB_ENABLED_stat_FALSE=
28370 fi
28371
28372 if $gl_gnulib_enabled_strtoll; then
28373 gl_GNULIB_ENABLED_strtoll_TRUE=
28374 gl_GNULIB_ENABLED_strtoll_FALSE='#'
28375 else
28376 gl_GNULIB_ENABLED_strtoll_TRUE='#'
28377 gl_GNULIB_ENABLED_strtoll_FALSE=
28378 fi
28379
28380 if $gl_gnulib_enabled_strtoull; then
28381 gl_GNULIB_ENABLED_strtoull_TRUE=
28382 gl_GNULIB_ENABLED_strtoull_FALSE='#'
28383 else
28384 gl_GNULIB_ENABLED_strtoull_TRUE='#'
28385 gl_GNULIB_ENABLED_strtoull_FALSE=
28386 fi
28387
28388 if $gl_gnulib_enabled_verify; then
28389 gl_GNULIB_ENABLED_verify_TRUE=
28390 gl_GNULIB_ENABLED_verify_FALSE='#'
28391 else
28392 gl_GNULIB_ENABLED_verify_TRUE='#'
28393 gl_GNULIB_ENABLED_verify_FALSE=
28394 fi
28395
28396 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28397 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
28398 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
28399 else
28400 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
28401 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
28402 fi
28403
28404 # End of code from modules
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414 gltests_libdeps=
28415 gltests_ltlibdeps=
28416
28417
28418
28419
28420
28421
28422
28423
28424
28425 gl_source_base='tests'
28426 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
28427
28428 gl_module_indicator_condition=$gltests_WITNESS
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439 LIBGNU_LIBDEPS="$gl_libdeps"
28440
28441 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
28442
28443
28444 CFLAGS=$SAVE_CFLAGS
28445 LIBS=$SAVE_LIBS
28446
28447 if test "${opsys}" = "mingw32"; then
28448 CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
28449 # Remove unneeded switches from the value of CC that goes to Makefiles
28450 CC=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
28451 fi
28452
28453 case "$opsys" in
28454 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
28455
28456 darwin)
28457 ## The -headerpad option tells ld (see man page) to leave room at the
28458 ## end of the header for adding load commands. Needed for dumping.
28459 ## 0x690 is the total size of 30 segment load commands (at 56
28460 ## each); under Cocoa 31 commands are required.
28461 if test "$HAVE_NS" = "yes"; then
28462 libs_nsgui="-framework AppKit"
28463 if test "$NS_IMPL_COCOA" = "yes"; then
28464 libs_nsgui="$libs_nsgui -framework IOKit"
28465 fi
28466 headerpad_extra=6C8
28467 else
28468 libs_nsgui=
28469 headerpad_extra=690
28470 fi
28471 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
28472
28473 ## This is here because src/Makefile.in did some extra fiddling around
28474 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
28475 ## LD_SWITCH_SYSTEM_TEMACS instead,
28476 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
28477 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
28478 ;;
28479
28480 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
28481 ## find X at run-time.
28482 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
28483 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
28484 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
28485 ## had different values in configure (in ac_link) and src/Makefile.in.
28486 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
28487 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
28488
28489 mingw32)
28490 ## MinGW64 does not prepend an underscore to symbols, so we must
28491 ## pass a different -entry switch to linker. FIXME: It is better
28492 ## to make the entry points the same by changing unexw32.c.
28493 case "$canonical" in
28494 x86_64-*-*) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
28495 *) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
28496 esac
28497 ;;
28498
28499 openbsd) LD_SWITCH_SYSTEM_TEMACS='-nopie' ;;
28500
28501 *) LD_SWITCH_SYSTEM_TEMACS= ;;
28502 esac
28503
28504 if test x$ac_enable_profiling != x ; then
28505 case $opsys in
28506 *freebsd | gnu-linux) ;;
28507 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
28508 esac
28509 fi
28510
28511
28512
28513 ## MinGW-specific post-link processing of temacs.
28514 TEMACS_POST_LINK=":"
28515 ADDSECTION=
28516 EMACS_HEAPSIZE=
28517 if test "${opsys}" = "mingw32"; then
28518 TEMACS_POST_LINK="\$(MINGW_TEMACS_POST_LINK)"
28519 ADDSECTION="../nt/addsection\$(EXEEXT)"
28520 ## Preload heap size of temacs.exe in MB.
28521 case "$canonical" in
28522 x86_64-*-*) EMACS_HEAPSIZE=42 ;;
28523 *) EMACS_HEAPSIZE=27 ;;
28524 esac
28525 fi
28526
28527
28528
28529
28530
28531 ## Common for all window systems
28532 if test "$window_system" != "none"; then
28533
28534 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
28535
28536 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
28537 fi
28538
28539
28540
28541
28542
28543 #### Report on what we decided to do.
28544 #### Report GTK as a toolkit, even if it doesn't use Xt.
28545 #### It makes printing result more understandable as using GTK sets
28546 #### toolkit_scroll_bars to yes by default.
28547 if test "${HAVE_GTK}" = "yes"; then
28548 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
28549 fi
28550
28551 if test $USE_ACL -ne 0; then
28552 acl_summary="yes $LIB_ACL"
28553 else
28554 acl_summary=no
28555 fi
28556
28557 echo "
28558 Configured for \`${canonical}'.
28559
28560 Where should the build process find the source code? ${srcdir}
28561 What compiler should emacs be built with? ${CC} ${CFLAGS}
28562 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
28563 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
28564 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
28565 What window system should Emacs use? ${window_system}
28566 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
28567
28568 if test -n "${x_includes}"; then
28569 echo " Where do we find X Windows header files? ${x_includes}"
28570 else
28571 echo " Where do we find X Windows header files? Standard dirs"
28572 fi
28573 if test -n "${x_libraries}"; then
28574 echo " Where do we find X Windows libraries? ${x_libraries}"
28575 else
28576 echo " Where do we find X Windows libraries? Standard dirs"
28577 fi
28578
28579 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
28580 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
28581 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
28582 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
28583 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
28584 echo " Does Emacs use -lpng? ${HAVE_PNG}"
28585 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
28586 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
28587
28588 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
28589 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
28590 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
28591 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
28592 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
28593 echo " Does Emacs use access control lists? ${acl_summary}"
28594 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
28595 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
28596 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
28597
28598 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
28599 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
28600 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
28601 echo " Does Emacs use -lxft? ${HAVE_XFT}"
28602
28603 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
28604 echo
28605
28606 if test -n "${EMACSDATA}"; then
28607 echo " Environment variable EMACSDATA set to: $EMACSDATA"
28608 fi
28609 if test -n "${EMACSDOC}"; then
28610 echo " Environment variable EMACSDOC set to: $EMACSDOC"
28611 fi
28612
28613 echo
28614
28615 if test "$HAVE_NS" = "yes"; then
28616 echo
28617 echo "You must run \"${MAKE-make} install\" in order to test the built application.
28618 The installed application will go to nextstep/Emacs.app and can be
28619 run or moved from there."
28620 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
28621 echo "The application will be fully self-contained."
28622 else
28623 echo "The lisp resources for the application will be installed under ${prefix}.
28624 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
28625 to run if these resources are not installed."
28626 fi
28627 echo
28628 fi
28629
28630 if test "${opsys}" = "cygwin"; then
28631 case `uname -r` in
28632 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
28633 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
28634 echo
28635 ;;
28636 esac
28637 fi
28638
28639 # Remove any trailing slashes in these variables.
28640 test "${prefix}" != NONE &&
28641 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
28642 test "${exec_prefix}" != NONE &&
28643 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
28644
28645 if test "$HAVE_NS" = "yes"; then
28646 if test "$NS_IMPL_GNUSTEP" = yes; then
28647 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"
28648
28649 else
28650 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"
28651
28652 fi
28653 fi
28654
28655 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 nt/Makefile"
28656
28657 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 nt/Makefile"
28658
28659
28660 opt_makefile=test/automated/Makefile
28661
28662 if test -f "$srcdir/$opt_makefile.in"; then
28663 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
28664 ac_config_files="$ac_config_files test/automated/Makefile"
28665
28666 fi
28667
28668
28669 opt_makefile=admin/unidata/Makefile
28670
28671 if test -f "$srcdir/$opt_makefile.in"; then
28672 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
28673 ac_config_files="$ac_config_files admin/unidata/Makefile"
28674
28675 fi
28676
28677
28678 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
28679
28680
28681
28682 ac_config_commands="$ac_config_commands mkdirs"
28683
28684
28685 ac_config_commands="$ac_config_commands epaths"
28686
28687
28688 ac_config_commands="$ac_config_commands gdbinit"
28689
28690
28691 cat >confcache <<\_ACEOF
28692 # This file is a shell script that caches the results of configure
28693 # tests run on this system so they can be shared between configure
28694 # scripts and configure runs, see configure's option --config-cache.
28695 # It is not useful on other systems. If it contains results you don't
28696 # want to keep, you may remove or edit it.
28697 #
28698 # config.status only pays attention to the cache file if you give it
28699 # the --recheck option to rerun configure.
28700 #
28701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28703 # following values.
28704
28705 _ACEOF
28706
28707 # The following way of writing the cache mishandles newlines in values,
28708 # but we know of no workaround that is simple, portable, and efficient.
28709 # So, we kill variables containing newlines.
28710 # Ultrix sh set writes to stderr and can't be redirected directly,
28711 # and sets the high bit in the cache file unless we assign to the vars.
28712 (
28713 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28714 eval ac_val=\$$ac_var
28715 case $ac_val in #(
28716 *${as_nl}*)
28717 case $ac_var in #(
28718 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28719 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28720 esac
28721 case $ac_var in #(
28722 _ | IFS | as_nl) ;; #(
28723 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28724 *) { eval $ac_var=; unset $ac_var;} ;;
28725 esac ;;
28726 esac
28727 done
28728
28729 (set) 2>&1 |
28730 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28731 *${as_nl}ac_space=\ *)
28732 # `set' does not quote correctly, so add quotes: double-quote
28733 # substitution turns \\\\ into \\, and sed turns \\ into \.
28734 sed -n \
28735 "s/'/'\\\\''/g;
28736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28737 ;; #(
28738 *)
28739 # `set' quotes correctly as required by POSIX, so do not add quotes.
28740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28741 ;;
28742 esac |
28743 sort
28744 ) |
28745 sed '
28746 /^ac_cv_env_/b end
28747 t clear
28748 :clear
28749 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28750 t end
28751 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28752 :end' >>confcache
28753 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28754 if test -w "$cache_file"; then
28755 test "x$cache_file" != "x/dev/null" &&
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28757 $as_echo "$as_me: updating cache $cache_file" >&6;}
28758 cat confcache >$cache_file
28759 else
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28761 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28762 fi
28763 fi
28764 rm -f confcache
28765
28766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28767 # Let make expand exec_prefix.
28768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28769
28770 DEFS=-DHAVE_CONFIG_H
28771
28772 ac_libobjs=
28773 ac_ltlibobjs=
28774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28775 # 1. Remove the extension, and $U if already installed.
28776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28779 # will be set to the directory where LIBOBJS objects are built.
28780 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28781 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28782 done
28783 LIBOBJS=$ac_libobjs
28784
28785 LTLIBOBJS=$ac_ltlibobjs
28786
28787
28788 if test -n "$EXEEXT"; then
28789 am__EXEEXT_TRUE=
28790 am__EXEEXT_FALSE='#'
28791 else
28792 am__EXEEXT_TRUE='#'
28793 am__EXEEXT_FALSE=
28794 fi
28795
28796 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28797 as_fn_error "conditional \"AMDEP\" was never defined.
28798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28799 fi
28800 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28801 as_fn_error "conditional \"am__fastdepCC\" was never defined.
28802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28803 fi
28804 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
28805 as_fn_error "conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
28806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28807 fi
28808 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28809 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
28810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28811 fi
28812 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28813 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28815 fi
28816
28817 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28818 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28820 fi
28821 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
28822 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
28823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28824 fi
28825 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28826 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
28827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28828 fi
28829 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
28830 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
28831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28832 fi
28833 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
28834 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
28835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28836 fi
28837 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28838 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28840 fi
28841 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28842 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28844 fi
28845 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
28846 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
28847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28848 fi
28849 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
28850 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
28851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28852 fi
28853 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
28854 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
28855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28856 fi
28857 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
28858 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
28859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28860 fi
28861 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
28862 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
28863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28864 fi
28865 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
28866 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
28867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28868 fi
28869 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
28870 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
28871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28872 fi
28873 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
28874 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
28875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28876 fi
28877 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
28878 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
28879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28880 fi
28881 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
28882 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
28883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28884 fi
28885 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
28886 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
28887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28888 fi
28889 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
28890 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
28891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28892 fi
28893 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
28894 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
28895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28896 fi
28897 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
28898 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
28899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28900 fi
28901
28902 gl_libobjs=
28903 gl_ltlibobjs=
28904 if test -n "$gl_LIBOBJS"; then
28905 # Remove the extension.
28906 sed_drop_objext='s/\.o$//;s/\.obj$//'
28907 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28908 gl_libobjs="$gl_libobjs $i.$ac_objext"
28909 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28910 done
28911 fi
28912 gl_LIBOBJS=$gl_libobjs
28913
28914 gl_LTLIBOBJS=$gl_ltlibobjs
28915
28916
28917
28918 gltests_libobjs=
28919 gltests_ltlibobjs=
28920 if test -n "$gltests_LIBOBJS"; then
28921 # Remove the extension.
28922 sed_drop_objext='s/\.o$//;s/\.obj$//'
28923 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28924 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28925 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28926 done
28927 fi
28928 gltests_LIBOBJS=$gltests_libobjs
28929
28930 gltests_LTLIBOBJS=$gltests_ltlibobjs
28931
28932
28933
28934 : ${CONFIG_STATUS=./config.status}
28935 ac_write_fail=0
28936 ac_clean_files_save=$ac_clean_files
28937 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28938 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28939 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28940 as_write_fail=0
28941 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28942 #! $SHELL
28943 # Generated by $as_me.
28944 # Run this file to recreate the current configuration.
28945 # Compiler output produced by configure, useful for debugging
28946 # configure, is in config.log if it exists.
28947
28948 debug=false
28949 ac_cs_recheck=false
28950 ac_cs_silent=false
28951
28952 SHELL=\${CONFIG_SHELL-$SHELL}
28953 export SHELL
28954 _ASEOF
28955 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28956 ## -------------------- ##
28957 ## M4sh Initialization. ##
28958 ## -------------------- ##
28959
28960 # Be more Bourne compatible
28961 DUALCASE=1; export DUALCASE # for MKS sh
28962 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28963 emulate sh
28964 NULLCMD=:
28965 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28966 # is contrary to our usage. Disable this feature.
28967 alias -g '${1+"$@"}'='"$@"'
28968 setopt NO_GLOB_SUBST
28969 else
28970 case `(set -o) 2>/dev/null` in #(
28971 *posix*) :
28972 set -o posix ;; #(
28973 *) :
28974 ;;
28975 esac
28976 fi
28977
28978
28979 as_nl='
28980 '
28981 export as_nl
28982 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28983 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28984 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28985 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28986 # Prefer a ksh shell builtin over an external printf program on Solaris,
28987 # but without wasting forks for bash or zsh.
28988 if test -z "$BASH_VERSION$ZSH_VERSION" \
28989 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28990 as_echo='print -r --'
28991 as_echo_n='print -rn --'
28992 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28993 as_echo='printf %s\n'
28994 as_echo_n='printf %s'
28995 else
28996 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28997 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28998 as_echo_n='/usr/ucb/echo -n'
28999 else
29000 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29001 as_echo_n_body='eval
29002 arg=$1;
29003 case $arg in #(
29004 *"$as_nl"*)
29005 expr "X$arg" : "X\\(.*\\)$as_nl";
29006 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29007 esac;
29008 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29009 '
29010 export as_echo_n_body
29011 as_echo_n='sh -c $as_echo_n_body as_echo'
29012 fi
29013 export as_echo_body
29014 as_echo='sh -c $as_echo_body as_echo'
29015 fi
29016
29017 # The user is always right.
29018 if test "${PATH_SEPARATOR+set}" != set; then
29019 PATH_SEPARATOR=:
29020 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29021 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29022 PATH_SEPARATOR=';'
29023 }
29024 fi
29025
29026
29027 # IFS
29028 # We need space, tab and new line, in precisely that order. Quoting is
29029 # there to prevent editors from complaining about space-tab.
29030 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29031 # splitting by setting IFS to empty value.)
29032 IFS=" "" $as_nl"
29033
29034 # Find who we are. Look in the path if we contain no directory separator.
29035 case $0 in #((
29036 *[\\/]* ) as_myself=$0 ;;
29037 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29038 for as_dir in $PATH
29039 do
29040 IFS=$as_save_IFS
29041 test -z "$as_dir" && as_dir=.
29042 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29043 done
29044 IFS=$as_save_IFS
29045
29046 ;;
29047 esac
29048 # We did not find ourselves, most probably we were run as `sh COMMAND'
29049 # in which case we are not to be found in the path.
29050 if test "x$as_myself" = x; then
29051 as_myself=$0
29052 fi
29053 if test ! -f "$as_myself"; then
29054 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29055 exit 1
29056 fi
29057
29058 # Unset variables that we do not need and which cause bugs (e.g. in
29059 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29060 # suppresses any "Segmentation fault" message there. '((' could
29061 # trigger a bug in pdksh 5.2.14.
29062 for as_var in BASH_ENV ENV MAIL MAILPATH
29063 do eval test x\${$as_var+set} = xset \
29064 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29065 done
29066 PS1='$ '
29067 PS2='> '
29068 PS4='+ '
29069
29070 # NLS nuisances.
29071 LC_ALL=C
29072 export LC_ALL
29073 LANGUAGE=C
29074 export LANGUAGE
29075
29076 # CDPATH.
29077 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29078
29079
29080 # as_fn_error ERROR [LINENO LOG_FD]
29081 # ---------------------------------
29082 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29083 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29084 # script with status $?, using 1 if that was 0.
29085 as_fn_error ()
29086 {
29087 as_status=$?; test $as_status -eq 0 && as_status=1
29088 if test "$3"; then
29089 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29090 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29091 fi
29092 $as_echo "$as_me: error: $1" >&2
29093 as_fn_exit $as_status
29094 } # as_fn_error
29095
29096
29097 # as_fn_set_status STATUS
29098 # -----------------------
29099 # Set $? to STATUS, without forking.
29100 as_fn_set_status ()
29101 {
29102 return $1
29103 } # as_fn_set_status
29104
29105 # as_fn_exit STATUS
29106 # -----------------
29107 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29108 as_fn_exit ()
29109 {
29110 set +e
29111 as_fn_set_status $1
29112 exit $1
29113 } # as_fn_exit
29114
29115 # as_fn_unset VAR
29116 # ---------------
29117 # Portably unset VAR.
29118 as_fn_unset ()
29119 {
29120 { eval $1=; unset $1;}
29121 }
29122 as_unset=as_fn_unset
29123 # as_fn_append VAR VALUE
29124 # ----------------------
29125 # Append the text in VALUE to the end of the definition contained in VAR. Take
29126 # advantage of any shell optimizations that allow amortized linear growth over
29127 # repeated appends, instead of the typical quadratic growth present in naive
29128 # implementations.
29129 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29130 eval 'as_fn_append ()
29131 {
29132 eval $1+=\$2
29133 }'
29134 else
29135 as_fn_append ()
29136 {
29137 eval $1=\$$1\$2
29138 }
29139 fi # as_fn_append
29140
29141 # as_fn_arith ARG...
29142 # ------------------
29143 # Perform arithmetic evaluation on the ARGs, and store the result in the
29144 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29145 # must be portable across $(()) and expr.
29146 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29147 eval 'as_fn_arith ()
29148 {
29149 as_val=$(( $* ))
29150 }'
29151 else
29152 as_fn_arith ()
29153 {
29154 as_val=`expr "$@" || test $? -eq 1`
29155 }
29156 fi # as_fn_arith
29157
29158
29159 if expr a : '\(a\)' >/dev/null 2>&1 &&
29160 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29161 as_expr=expr
29162 else
29163 as_expr=false
29164 fi
29165
29166 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29167 as_basename=basename
29168 else
29169 as_basename=false
29170 fi
29171
29172 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29173 as_dirname=dirname
29174 else
29175 as_dirname=false
29176 fi
29177
29178 as_me=`$as_basename -- "$0" ||
29179 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29180 X"$0" : 'X\(//\)$' \| \
29181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29182 $as_echo X/"$0" |
29183 sed '/^.*\/\([^/][^/]*\)\/*$/{
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
29197 # Avoid depending upon Character Ranges.
29198 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29199 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29200 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29201 as_cr_digits='0123456789'
29202 as_cr_alnum=$as_cr_Letters$as_cr_digits
29203
29204 ECHO_C= ECHO_N= ECHO_T=
29205 case `echo -n x` in #(((((
29206 -n*)
29207 case `echo 'xy\c'` in
29208 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29209 xy) ECHO_C='\c';;
29210 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29211 ECHO_T=' ';;
29212 esac;;
29213 *)
29214 ECHO_N='-n';;
29215 esac
29216
29217 rm -f conf$$ conf$$.exe conf$$.file
29218 if test -d conf$$.dir; then
29219 rm -f conf$$.dir/conf$$.file
29220 else
29221 rm -f conf$$.dir
29222 mkdir conf$$.dir 2>/dev/null
29223 fi
29224 if (echo >conf$$.file) 2>/dev/null; then
29225 if ln -s conf$$.file conf$$ 2>/dev/null; then
29226 as_ln_s='ln -s'
29227 # ... but there are two gotchas:
29228 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29229 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29230 # In both cases, we have to default to `cp -p'.
29231 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29232 as_ln_s='cp -p'
29233 elif ln conf$$.file conf$$ 2>/dev/null; then
29234 as_ln_s=ln
29235 else
29236 as_ln_s='cp -p'
29237 fi
29238 else
29239 as_ln_s='cp -p'
29240 fi
29241 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29242 rmdir conf$$.dir 2>/dev/null
29243
29244
29245 # as_fn_mkdir_p
29246 # -------------
29247 # Create "$as_dir" as a directory, including parents if necessary.
29248 as_fn_mkdir_p ()
29249 {
29250
29251 case $as_dir in #(
29252 -*) as_dir=./$as_dir;;
29253 esac
29254 test -d "$as_dir" || eval $as_mkdir_p || {
29255 as_dirs=
29256 while :; do
29257 case $as_dir in #(
29258 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29259 *) as_qdir=$as_dir;;
29260 esac
29261 as_dirs="'$as_qdir' $as_dirs"
29262 as_dir=`$as_dirname -- "$as_dir" ||
29263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29264 X"$as_dir" : 'X\(//\)[^/]' \| \
29265 X"$as_dir" : 'X\(//\)$' \| \
29266 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29267 $as_echo X"$as_dir" |
29268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29269 s//\1/
29270 q
29271 }
29272 /^X\(\/\/\)[^/].*/{
29273 s//\1/
29274 q
29275 }
29276 /^X\(\/\/\)$/{
29277 s//\1/
29278 q
29279 }
29280 /^X\(\/\).*/{
29281 s//\1/
29282 q
29283 }
29284 s/.*/./; q'`
29285 test -d "$as_dir" && break
29286 done
29287 test -z "$as_dirs" || eval "mkdir $as_dirs"
29288 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29289
29290
29291 } # as_fn_mkdir_p
29292 if mkdir -p . 2>/dev/null; then
29293 as_mkdir_p='mkdir -p "$as_dir"'
29294 else
29295 test -d ./-p && rmdir ./-p
29296 as_mkdir_p=false
29297 fi
29298
29299 if test -x / >/dev/null 2>&1; then
29300 as_test_x='test -x'
29301 else
29302 if ls -dL / >/dev/null 2>&1; then
29303 as_ls_L_option=L
29304 else
29305 as_ls_L_option=
29306 fi
29307 as_test_x='
29308 eval sh -c '\''
29309 if test -d "$1"; then
29310 test -d "$1/.";
29311 else
29312 case $1 in #(
29313 -*)set "./$1";;
29314 esac;
29315 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29316 ???[sx]*):;;*)false;;esac;fi
29317 '\'' sh
29318 '
29319 fi
29320 as_executable_p=$as_test_x
29321
29322 # Sed expression to map a string onto a valid CPP name.
29323 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29324
29325 # Sed expression to map a string onto a valid variable name.
29326 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29327
29328
29329 exec 6>&1
29330 ## ----------------------------------- ##
29331 ## Main body of $CONFIG_STATUS script. ##
29332 ## ----------------------------------- ##
29333 _ASEOF
29334 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29335
29336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29337 # Save the log message, to keep $0 and so on meaningful, and to
29338 # report actual input values of CONFIG_FILES etc. instead of their
29339 # values after options handling.
29340 ac_log="
29341 This file was extended by emacs $as_me 24.3.50, which was
29342 generated by GNU Autoconf 2.65. Invocation command line was
29343
29344 CONFIG_FILES = $CONFIG_FILES
29345 CONFIG_HEADERS = $CONFIG_HEADERS
29346 CONFIG_LINKS = $CONFIG_LINKS
29347 CONFIG_COMMANDS = $CONFIG_COMMANDS
29348 $ $0 $@
29349
29350 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29351 "
29352
29353 _ACEOF
29354
29355 case $ac_config_files in *"
29356 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29357 esac
29358
29359 case $ac_config_headers in *"
29360 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29361 esac
29362
29363
29364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29365 # Files that config.status was made for.
29366 config_files="$ac_config_files"
29367 config_headers="$ac_config_headers"
29368 config_commands="$ac_config_commands"
29369
29370 _ACEOF
29371
29372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29373 ac_cs_usage="\
29374 \`$as_me' instantiates files and other configuration actions
29375 from templates according to the current configuration. Unless the files
29376 and actions are specified as TAGs, all are instantiated by default.
29377
29378 Usage: $0 [OPTION]... [TAG]...
29379
29380 -h, --help print this help, then exit
29381 -V, --version print version number and configuration settings, then exit
29382 --config print configuration, then exit
29383 -q, --quiet, --silent
29384 do not print progress messages
29385 -d, --debug don't remove temporary files
29386 --recheck update $as_me by reconfiguring in the same conditions
29387 --file=FILE[:TEMPLATE]
29388 instantiate the configuration file FILE
29389 --header=FILE[:TEMPLATE]
29390 instantiate the configuration header FILE
29391
29392 Configuration files:
29393 $config_files
29394
29395 Configuration headers:
29396 $config_headers
29397
29398 Configuration commands:
29399 $config_commands
29400
29401 Report bugs to the package provider."
29402
29403 _ACEOF
29404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29405 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29406 ac_cs_version="\\
29407 emacs config.status 24.3.50
29408 configured by $0, generated by GNU Autoconf 2.65,
29409 with options \\"\$ac_cs_config\\"
29410
29411 Copyright (C) 2009 Free Software Foundation, Inc.
29412 This config.status script is free software; the Free Software Foundation
29413 gives unlimited permission to copy, distribute and modify it."
29414
29415 ac_pwd='$ac_pwd'
29416 srcdir='$srcdir'
29417 INSTALL='$INSTALL'
29418 MKDIR_P='$MKDIR_P'
29419 AWK='$AWK'
29420 test -n "\$AWK" || AWK=awk
29421 _ACEOF
29422
29423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29424 # The default lists apply if the user does not specify any file.
29425 ac_need_defaults=:
29426 while test $# != 0
29427 do
29428 case $1 in
29429 --*=*)
29430 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29431 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29432 ac_shift=:
29433 ;;
29434 *)
29435 ac_option=$1
29436 ac_optarg=$2
29437 ac_shift=shift
29438 ;;
29439 esac
29440
29441 case $ac_option in
29442 # Handling of the options.
29443 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29444 ac_cs_recheck=: ;;
29445 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29446 $as_echo "$ac_cs_version"; exit ;;
29447 --config | --confi | --conf | --con | --co | --c )
29448 $as_echo "$ac_cs_config"; exit ;;
29449 --debug | --debu | --deb | --de | --d | -d )
29450 debug=: ;;
29451 --file | --fil | --fi | --f )
29452 $ac_shift
29453 case $ac_optarg in
29454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29455 esac
29456 as_fn_append CONFIG_FILES " '$ac_optarg'"
29457 ac_need_defaults=false;;
29458 --header | --heade | --head | --hea )
29459 $ac_shift
29460 case $ac_optarg in
29461 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29462 esac
29463 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29464 ac_need_defaults=false;;
29465 --he | --h)
29466 # Conflict between --help and --header
29467 as_fn_error "ambiguous option: \`$1'
29468 Try \`$0 --help' for more information.";;
29469 --help | --hel | -h )
29470 $as_echo "$ac_cs_usage"; exit ;;
29471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29472 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29473 ac_cs_silent=: ;;
29474
29475 # This is an error.
29476 -*) as_fn_error "unrecognized option: \`$1'
29477 Try \`$0 --help' for more information." ;;
29478
29479 *) as_fn_append ac_config_targets " $1"
29480 ac_need_defaults=false ;;
29481
29482 esac
29483 shift
29484 done
29485
29486 ac_configure_extra_args=
29487
29488 if $ac_cs_silent; then
29489 exec 6>/dev/null
29490 ac_configure_extra_args="$ac_configure_extra_args --silent"
29491 fi
29492
29493 _ACEOF
29494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29495 if \$ac_cs_recheck; then
29496 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29497 shift
29498 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29499 CONFIG_SHELL='$SHELL'
29500 export CONFIG_SHELL
29501 exec "\$@"
29502 fi
29503
29504 _ACEOF
29505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29506 exec 5>>config.log
29507 {
29508 echo
29509 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29510 ## Running $as_me. ##
29511 _ASBOX
29512 $as_echo "$ac_log"
29513 } >&5
29514
29515 _ACEOF
29516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29517 #
29518 # INIT-COMMANDS
29519 #
29520 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29521 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
29522
29523 _ACEOF
29524
29525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29526
29527 # Handling of arguments.
29528 for ac_config_target in $ac_config_targets
29529 do
29530 case $ac_config_target in
29531 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
29532 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29533 "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" ;;
29534 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
29535 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
29536 "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" ;;
29537 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29538 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29539 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
29540 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
29541 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
29542 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
29543 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
29544 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
29545 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29546 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
29547 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
29548 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
29549 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
29550 "nt/Makefile") CONFIG_FILES="$CONFIG_FILES nt/Makefile" ;;
29551 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
29552 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
29553 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
29554 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
29555 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
29556
29557 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29558 esac
29559 done
29560
29561
29562 # If the user did not use the arguments to specify the items to instantiate,
29563 # then the envvar interface is used. Set only those that are not.
29564 # We use the long form for the default assignment because of an extremely
29565 # bizarre bug on SunOS 4.1.3.
29566 if $ac_need_defaults; then
29567 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29568 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29569 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29570 fi
29571
29572 # Have a temporary directory for convenience. Make it in the build tree
29573 # simply because there is no reason against having it here, and in addition,
29574 # creating and moving files from /tmp can sometimes cause problems.
29575 # Hook for its removal unless debugging.
29576 # Note that there is a small window in which the directory will not be cleaned:
29577 # after its creation but before its name has been assigned to `$tmp'.
29578 $debug ||
29579 {
29580 tmp=
29581 trap 'exit_status=$?
29582 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29583 ' 0
29584 trap 'as_fn_exit 1' 1 2 13 15
29585 }
29586 # Create a (secure) tmp directory for tmp files.
29587
29588 {
29589 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29590 test -n "$tmp" && test -d "$tmp"
29591 } ||
29592 {
29593 tmp=./conf$$-$RANDOM
29594 (umask 077 && mkdir "$tmp")
29595 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29596
29597 # Set up the scripts for CONFIG_FILES section.
29598 # No need to generate them if there are no CONFIG_FILES.
29599 # This happens for instance with `./config.status config.h'.
29600 if test -n "$CONFIG_FILES"; then
29601
29602 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29603 ac_cs_awk_getline=:
29604 ac_cs_awk_pipe_init=
29605 ac_cs_awk_read_file='
29606 while ((getline aline < (F[key])) > 0)
29607 print(aline)
29608 close(F[key])'
29609 ac_cs_awk_pipe_fini=
29610 else
29611 ac_cs_awk_getline=false
29612 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29613 ac_cs_awk_read_file='
29614 print "|#_!!_#|"
29615 print "cat " F[key] " &&"
29616 '$ac_cs_awk_pipe_init
29617 # The final `:' finishes the AND list.
29618 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29619 fi
29620 ac_cr=`echo X | tr X '\015'`
29621 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29622 # But we know of no other shell where ac_cr would be empty at this
29623 # point, so we can use a bashism as a fallback.
29624 if test "x$ac_cr" = x; then
29625 eval ac_cr=\$\'\\r\'
29626 fi
29627 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29628 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29629 ac_cs_awk_cr='\r'
29630 else
29631 ac_cs_awk_cr=$ac_cr
29632 fi
29633
29634 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29635 _ACEOF
29636
29637 # Create commands to substitute file output variables.
29638 {
29639 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29640 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29641 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29642 echo "_ACAWK" &&
29643 echo "_ACEOF"
29644 } >conf$$files.sh &&
29645 . ./conf$$files.sh ||
29646 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29647 rm -f conf$$files.sh
29648
29649 {
29650 echo "cat >conf$$subs.awk <<_ACEOF" &&
29651 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29652 echo "_ACEOF"
29653 } >conf$$subs.sh ||
29654 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29655 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29656 ac_delim='%!_!# '
29657 for ac_last_try in false false false false false :; do
29658 . ./conf$$subs.sh ||
29659 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29660
29661 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29662 if test $ac_delim_n = $ac_delim_num; then
29663 break
29664 elif $ac_last_try; then
29665 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29666 else
29667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29668 fi
29669 done
29670 rm -f conf$$subs.sh
29671
29672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29673 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29674 _ACEOF
29675 sed -n '
29676 h
29677 s/^/S["/; s/!.*/"]=/
29678 p
29679 g
29680 s/^[^!]*!//
29681 :repl
29682 t repl
29683 s/'"$ac_delim"'$//
29684 t delim
29685 :nl
29686 h
29687 s/\(.\{148\}\)..*/\1/
29688 t more1
29689 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29690 p
29691 n
29692 b repl
29693 :more1
29694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29695 p
29696 g
29697 s/.\{148\}//
29698 t nl
29699 :delim
29700 h
29701 s/\(.\{148\}\)..*/\1/
29702 t more2
29703 s/["\\]/\\&/g; s/^/"/; s/$/"/
29704 p
29705 b
29706 :more2
29707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29708 p
29709 g
29710 s/.\{148\}//
29711 t delim
29712 ' <conf$$subs.awk | sed '
29713 /^[^""]/{
29714 N
29715 s/\n//
29716 }
29717 ' >>$CONFIG_STATUS || ac_write_fail=1
29718 rm -f conf$$subs.awk
29719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29720 _ACAWK
29721 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29722 for (key in S) S_is_set[key] = 1
29723 FS = "\a"
29724 \$ac_cs_awk_pipe_init
29725 }
29726 {
29727 line = $ 0
29728 nfields = split(line, field, "@")
29729 substed = 0
29730 len = length(field[1])
29731 for (i = 2; i < nfields; i++) {
29732 key = field[i]
29733 keylen = length(key)
29734 if (S_is_set[key]) {
29735 value = S[key]
29736 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29737 len += length(value) + length(field[++i])
29738 substed = 1
29739 } else
29740 len += 1 + keylen
29741 }
29742 if (nfields == 3 && !substed) {
29743 key = field[2]
29744 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29745 \$ac_cs_awk_read_file
29746 next
29747 }
29748 }
29749 print line
29750 }
29751 \$ac_cs_awk_pipe_fini
29752 _ACAWK
29753 _ACEOF
29754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29755 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29756 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29757 else
29758 cat
29759 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29760 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29761 _ACEOF
29762
29763 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29764 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29765 # trailing colons and then remove the whole line if VPATH becomes empty
29766 # (actually we leave an empty line to preserve line numbers).
29767 if test "x$srcdir" = x.; then
29768 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29769 s/:*\$(srcdir):*/:/
29770 s/:*\${srcdir}:*/:/
29771 s/:*@srcdir@:*/:/
29772 s/^\([^=]*=[ ]*\):*/\1/
29773 s/:*$//
29774 s/^[^=]*=[ ]*$//
29775 }'
29776 fi
29777
29778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29779 fi # test -n "$CONFIG_FILES"
29780
29781 # Set up the scripts for CONFIG_HEADERS section.
29782 # No need to generate them if there are no CONFIG_HEADERS.
29783 # This happens for instance with `./config.status Makefile'.
29784 if test -n "$CONFIG_HEADERS"; then
29785 cat >"$tmp/defines.awk" <<\_ACAWK ||
29786 BEGIN {
29787 _ACEOF
29788
29789 # Transform confdefs.h into an awk script `defines.awk', embedded as
29790 # here-document in config.status, that substitutes the proper values into
29791 # config.h.in to produce config.h.
29792
29793 # Create a delimiter string that does not exist in confdefs.h, to ease
29794 # handling of long lines.
29795 ac_delim='%!_!# '
29796 for ac_last_try in false false :; do
29797 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29798 if test -z "$ac_t"; then
29799 break
29800 elif $ac_last_try; then
29801 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29802 else
29803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29804 fi
29805 done
29806
29807 # For the awk script, D is an array of macro values keyed by name,
29808 # likewise P contains macro parameters if any. Preserve backslash
29809 # newline sequences.
29810
29811 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29812 sed -n '
29813 s/.\{148\}/&'"$ac_delim"'/g
29814 t rset
29815 :rset
29816 s/^[ ]*#[ ]*define[ ][ ]*/ /
29817 t def
29818 d
29819 :def
29820 s/\\$//
29821 t bsnl
29822 s/["\\]/\\&/g
29823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29824 D["\1"]=" \3"/p
29825 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29826 d
29827 :bsnl
29828 s/["\\]/\\&/g
29829 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29830 D["\1"]=" \3\\\\\\n"\\/p
29831 t cont
29832 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29833 t cont
29834 d
29835 :cont
29836 n
29837 s/.\{148\}/&'"$ac_delim"'/g
29838 t clear
29839 :clear
29840 s/\\$//
29841 t bsnlc
29842 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29843 d
29844 :bsnlc
29845 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29846 b cont
29847 ' <confdefs.h | sed '
29848 s/'"$ac_delim"'/"\\\
29849 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29850
29851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29852 for (key in D) D_is_set[key] = 1
29853 FS = "\a"
29854 }
29855 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29856 line = \$ 0
29857 split(line, arg, " ")
29858 if (arg[1] == "#") {
29859 defundef = arg[2]
29860 mac1 = arg[3]
29861 } else {
29862 defundef = substr(arg[1], 2)
29863 mac1 = arg[2]
29864 }
29865 split(mac1, mac2, "(") #)
29866 macro = mac2[1]
29867 prefix = substr(line, 1, index(line, defundef) - 1)
29868 if (D_is_set[macro]) {
29869 # Preserve the white space surrounding the "#".
29870 print prefix "define", macro P[macro] D[macro]
29871 next
29872 } else {
29873 # Replace #undef with comments. This is necessary, for example,
29874 # in the case of _POSIX_SOURCE, which is predefined and required
29875 # on some systems where configure will not decide to define it.
29876 if (defundef == "undef") {
29877 print "/*", prefix defundef, macro, "*/"
29878 next
29879 }
29880 }
29881 }
29882 { print }
29883 _ACAWK
29884 _ACEOF
29885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29886 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29887 fi # test -n "$CONFIG_HEADERS"
29888
29889
29890 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29891 shift
29892 for ac_tag
29893 do
29894 case $ac_tag in
29895 :[FHLC]) ac_mode=$ac_tag; continue;;
29896 esac
29897 case $ac_mode$ac_tag in
29898 :[FHL]*:*);;
29899 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29900 :[FH]-) ac_tag=-:-;;
29901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29902 esac
29903 ac_save_IFS=$IFS
29904 IFS=:
29905 set x $ac_tag
29906 IFS=$ac_save_IFS
29907 shift
29908 ac_file=$1
29909 shift
29910
29911 case $ac_mode in
29912 :L) ac_source=$1;;
29913 :[FH])
29914 ac_file_inputs=
29915 for ac_f
29916 do
29917 case $ac_f in
29918 -) ac_f="$tmp/stdin";;
29919 *) # Look for the file first in the build tree, then in the source tree
29920 # (if the path is not absolute). The absolute path cannot be DOS-style,
29921 # because $ac_f cannot contain `:'.
29922 test -f "$ac_f" ||
29923 case $ac_f in
29924 [\\/$]*) false;;
29925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29926 esac ||
29927 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29928 esac
29929 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29930 as_fn_append ac_file_inputs " '$ac_f'"
29931 done
29932
29933 # Let's still pretend it is `configure' which instantiates (i.e., don't
29934 # use $as_me), people would be surprised to read:
29935 # /* config.h. Generated by config.status. */
29936 configure_input='Generated from '`
29937 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29938 `' by configure.'
29939 if test x"$ac_file" != x-; then
29940 configure_input="$ac_file. $configure_input"
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29942 $as_echo "$as_me: creating $ac_file" >&6;}
29943 fi
29944 # Neutralize special characters interpreted by sed in replacement strings.
29945 case $configure_input in #(
29946 *\&* | *\|* | *\\* )
29947 ac_sed_conf_input=`$as_echo "$configure_input" |
29948 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29949 *) ac_sed_conf_input=$configure_input;;
29950 esac
29951
29952 case $ac_tag in
29953 *:-:* | *:-) cat >"$tmp/stdin" \
29954 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29955 esac
29956 ;;
29957 esac
29958
29959 ac_dir=`$as_dirname -- "$ac_file" ||
29960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29961 X"$ac_file" : 'X\(//\)[^/]' \| \
29962 X"$ac_file" : 'X\(//\)$' \| \
29963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29964 $as_echo X"$ac_file" |
29965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29966 s//\1/
29967 q
29968 }
29969 /^X\(\/\/\)[^/].*/{
29970 s//\1/
29971 q
29972 }
29973 /^X\(\/\/\)$/{
29974 s//\1/
29975 q
29976 }
29977 /^X\(\/\).*/{
29978 s//\1/
29979 q
29980 }
29981 s/.*/./; q'`
29982 as_dir="$ac_dir"; as_fn_mkdir_p
29983 ac_builddir=.
29984
29985 case "$ac_dir" in
29986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29987 *)
29988 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29989 # A ".." for each directory in $ac_dir_suffix.
29990 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29991 case $ac_top_builddir_sub in
29992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29994 esac ;;
29995 esac
29996 ac_abs_top_builddir=$ac_pwd
29997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29998 # for backward compatibility:
29999 ac_top_builddir=$ac_top_build_prefix
30000
30001 case $srcdir in
30002 .) # We are building in place.
30003 ac_srcdir=.
30004 ac_top_srcdir=$ac_top_builddir_sub
30005 ac_abs_top_srcdir=$ac_pwd ;;
30006 [\\/]* | ?:[\\/]* ) # Absolute name.
30007 ac_srcdir=$srcdir$ac_dir_suffix;
30008 ac_top_srcdir=$srcdir
30009 ac_abs_top_srcdir=$srcdir ;;
30010 *) # Relative name.
30011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30012 ac_top_srcdir=$ac_top_build_prefix$srcdir
30013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30014 esac
30015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30016
30017
30018 case $ac_mode in
30019 :F)
30020 #
30021 # CONFIG_FILE
30022 #
30023
30024 case $INSTALL in
30025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30026 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30027 esac
30028 ac_MKDIR_P=$MKDIR_P
30029 case $MKDIR_P in
30030 [\\/$]* | ?:[\\/]* ) ;;
30031 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30032 esac
30033 _ACEOF
30034
30035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30036 # If the template does not know about datarootdir, expand it.
30037 # FIXME: This hack should be removed a few years after 2.60.
30038 ac_datarootdir_hack=; ac_datarootdir_seen=
30039 ac_sed_dataroot='
30040 /datarootdir/ {
30041 p
30042 q
30043 }
30044 /@datadir@/p
30045 /@docdir@/p
30046 /@infodir@/p
30047 /@localedir@/p
30048 /@mandir@/p'
30049 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30050 *datarootdir*) ac_datarootdir_seen=yes;;
30051 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30053 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30054 _ACEOF
30055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30056 ac_datarootdir_hack='
30057 s&@datadir@&$datadir&g
30058 s&@docdir@&$docdir&g
30059 s&@infodir@&$infodir&g
30060 s&@localedir@&$localedir&g
30061 s&@mandir@&$mandir&g
30062 s&\\\${datarootdir}&$datarootdir&g' ;;
30063 esac
30064 _ACEOF
30065
30066 # Neutralize VPATH when `$srcdir' = `.'.
30067 # Shell code in configure.ac might set extrasub.
30068 # FIXME: do we really want to maintain this feature?
30069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30070 ac_sed_extra="$ac_vpsub
30071 $extrasub
30072 _ACEOF
30073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30074 :t
30075 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30076 s|@configure_input@|$ac_sed_conf_input|;t t
30077 s&@top_builddir@&$ac_top_builddir_sub&;t t
30078 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30079 s&@srcdir@&$ac_srcdir&;t t
30080 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30081 s&@top_srcdir@&$ac_top_srcdir&;t t
30082 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30083 s&@builddir@&$ac_builddir&;t t
30084 s&@abs_builddir@&$ac_abs_builddir&;t t
30085 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30086 s&@INSTALL@&$ac_INSTALL&;t t
30087 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30088 $ac_datarootdir_hack
30089 "
30090 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30091 if $ac_cs_awk_getline; then
30092 $AWK -f "$tmp/subs.awk"
30093 else
30094 $AWK -f "$tmp/subs.awk" | $SHELL
30095 fi >$tmp/out \
30096 || as_fn_error "could not create $ac_file" "$LINENO" 5
30097
30098 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30099 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30100 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30102 which seems to be undefined. Please make sure it is defined." >&5
30103 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30104 which seems to be undefined. Please make sure it is defined." >&2;}
30105
30106 rm -f "$tmp/stdin"
30107 case $ac_file in
30108 -) cat "$tmp/out" && rm -f "$tmp/out";;
30109 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30110 esac \
30111 || as_fn_error "could not create $ac_file" "$LINENO" 5
30112 ;;
30113 :H)
30114 #
30115 # CONFIG_HEADER
30116 #
30117 if test x"$ac_file" != x-; then
30118 {
30119 $as_echo "/* $configure_input */" \
30120 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30121 } >"$tmp/config.h" \
30122 || as_fn_error "could not create $ac_file" "$LINENO" 5
30123 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30124 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30125 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30126 else
30127 rm -f "$ac_file"
30128 mv "$tmp/config.h" "$ac_file" \
30129 || as_fn_error "could not create $ac_file" "$LINENO" 5
30130 fi
30131 else
30132 $as_echo "/* $configure_input */" \
30133 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30134 || as_fn_error "could not create -" "$LINENO" 5
30135 fi
30136 # Compute "$ac_file"'s index in $config_headers.
30137 _am_arg="$ac_file"
30138 _am_stamp_count=1
30139 for _am_header in $config_headers :; do
30140 case $_am_header in
30141 $_am_arg | $_am_arg:* )
30142 break ;;
30143 * )
30144 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30145 esac
30146 done
30147 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30148 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30149 X"$_am_arg" : 'X\(//\)[^/]' \| \
30150 X"$_am_arg" : 'X\(//\)$' \| \
30151 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30152 $as_echo X"$_am_arg" |
30153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30154 s//\1/
30155 q
30156 }
30157 /^X\(\/\/\)[^/].*/{
30158 s//\1/
30159 q
30160 }
30161 /^X\(\/\/\)$/{
30162 s//\1/
30163 q
30164 }
30165 /^X\(\/\).*/{
30166 s//\1/
30167 q
30168 }
30169 s/.*/./; q'`/stamp-h$_am_stamp_count
30170 ;;
30171
30172 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30173 $as_echo "$as_me: executing $ac_file commands" >&6;}
30174 ;;
30175 esac
30176
30177
30178 case $ac_file$ac_mode in
30179 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30180 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30181 # are listed without --file. Let's play safe and only enable the eval
30182 # if we detect the quoting.
30183 case $CONFIG_FILES in
30184 *\'*) eval set x "$CONFIG_FILES" ;;
30185 *) set x $CONFIG_FILES ;;
30186 esac
30187 shift
30188 for mf
30189 do
30190 # Strip MF so we end up with the name of the file.
30191 mf=`echo "$mf" | sed -e 's/:.*$//'`
30192 # Check whether this is an Automake generated Makefile or not.
30193 # We used to match only the files named `Makefile.in', but
30194 # some people rename them; so instead we look at the file content.
30195 # Grep'ing the first line is not enough: some people post-process
30196 # each Makefile.in and add a new line on top of each file to say so.
30197 # Grep'ing the whole file is not good either: AIX grep has a line
30198 # limit of 2048, but all sed's we know have understand at least 4000.
30199 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30200 dirpart=`$as_dirname -- "$mf" ||
30201 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30202 X"$mf" : 'X\(//\)[^/]' \| \
30203 X"$mf" : 'X\(//\)$' \| \
30204 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30205 $as_echo X"$mf" |
30206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30207 s//\1/
30208 q
30209 }
30210 /^X\(\/\/\)[^/].*/{
30211 s//\1/
30212 q
30213 }
30214 /^X\(\/\/\)$/{
30215 s//\1/
30216 q
30217 }
30218 /^X\(\/\).*/{
30219 s//\1/
30220 q
30221 }
30222 s/.*/./; q'`
30223 else
30224 continue
30225 fi
30226 # Extract the definition of DEPDIR, am__include, and am__quote
30227 # from the Makefile without running `make'.
30228 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30229 test -z "$DEPDIR" && continue
30230 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30231 test -z "am__include" && continue
30232 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30233 # When using ansi2knr, U may be empty or an underscore; expand it
30234 U=`sed -n 's/^U = //p' < "$mf"`
30235 # Find all dependency output files, they are included files with
30236 # $(DEPDIR) in their names. We invoke sed twice because it is the
30237 # simplest approach to changing $(DEPDIR) to its actual value in the
30238 # expansion.
30239 for file in `sed -n "
30240 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30241 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30242 # Make sure the directory exists.
30243 test -f "$dirpart/$file" && continue
30244 fdir=`$as_dirname -- "$file" ||
30245 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30246 X"$file" : 'X\(//\)[^/]' \| \
30247 X"$file" : 'X\(//\)$' \| \
30248 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30249 $as_echo X"$file" |
30250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30251 s//\1/
30252 q
30253 }
30254 /^X\(\/\/\)[^/].*/{
30255 s//\1/
30256 q
30257 }
30258 /^X\(\/\/\)$/{
30259 s//\1/
30260 q
30261 }
30262 /^X\(\/\).*/{
30263 s//\1/
30264 q
30265 }
30266 s/.*/./; q'`
30267 as_dir=$dirpart/$fdir; as_fn_mkdir_p
30268 # echo "creating $dirpart/$file"
30269 echo '# dummy' > "$dirpart/$file"
30270 done
30271 done
30272 }
30273 ;;
30274 "mkdirs":C)
30275 for dir in etc lisp ; do
30276 test -d ${dir} || mkdir ${dir}
30277 done
30278 ;;
30279 "epaths":C)
30280 echo creating src/epaths.h
30281 if test "${opsys}" = "mingw32"; then
30282 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force-w32
30283 else
30284 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
30285 fi
30286 ;;
30287 "gdbinit":C)
30288 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
30289 echo creating src/.gdbinit
30290 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
30291 fi
30292 ;;
30293
30294 esac
30295 done # for ac_tag
30296
30297
30298 as_fn_exit 0
30299 _ACEOF
30300 ac_clean_files=$ac_clean_files_save
30301
30302 test $ac_write_fail = 0 ||
30303 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30304
30305
30306 # configure is writing to config.log, and then calls config.status.
30307 # config.status does its own redirection, appending to config.log.
30308 # Unfortunately, on DOS this fails, as config.log is still kept open
30309 # by configure, so config.status won't be able to write to it; its
30310 # output is simply discarded. So we exec the FD to /dev/null,
30311 # effectively closing config.log, so it can be properly (re)opened and
30312 # appended to by config.status. When coming back to configure, we
30313 # need to make the FD available again.
30314 if test "$no_create" != yes; then
30315 ac_cs_success=:
30316 ac_config_status_args=
30317 test "$silent" = yes &&
30318 ac_config_status_args="$ac_config_status_args --quiet"
30319 exec 5>/dev/null
30320 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30321 exec 5>>config.log
30322 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30323 # would make configure fail if this is the last instruction.
30324 $ac_cs_success || as_fn_exit $?
30325 fi
30326 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30328 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30329 fi
30330