* dispextern.h (struct face): Use bitfields for 'underline_type'
[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 ns_check_file
608 WINDOW_SYSTEM_OBJ
609 EMACS_HEAPSIZE
610 TEMACS_POST_LINK
611 ADDSECTION
612 LD_SWITCH_SYSTEM_TEMACS
613 LIBGNU_LTLIBDEPS
614 LIBGNU_LIBDEPS
615 gltests_WITNESS
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
617 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
618 gl_GNULIB_ENABLED_tempname_FALSE
619 gl_GNULIB_ENABLED_tempname_TRUE
620 gl_GNULIB_ENABLED_strtoull_FALSE
621 gl_GNULIB_ENABLED_strtoull_TRUE
622 gl_GNULIB_ENABLED_strtoll_FALSE
623 gl_GNULIB_ENABLED_strtoll_TRUE
624 gl_GNULIB_ENABLED_stat_FALSE
625 gl_GNULIB_ENABLED_stat_TRUE
626 gl_GNULIB_ENABLED_secure_getenv_FALSE
627 gl_GNULIB_ENABLED_secure_getenv_TRUE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
629 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
630 gl_GNULIB_ENABLED_pathmax_FALSE
631 gl_GNULIB_ENABLED_pathmax_TRUE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
633 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
635 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
637 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
638 gl_GNULIB_ENABLED_getgroups_FALSE
639 gl_GNULIB_ENABLED_getgroups_TRUE
640 gl_GNULIB_ENABLED_getdtablesize_FALSE
641 gl_GNULIB_ENABLED_getdtablesize_TRUE
642 gl_GNULIB_ENABLED_euidaccess_FALSE
643 gl_GNULIB_ENABLED_euidaccess_TRUE
644 gl_GNULIB_ENABLED_dosname_FALSE
645 gl_GNULIB_ENABLED_dosname_TRUE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
647 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
648 LTLIBINTL
649 LIBINTL
650 LIB_EACCESS
651 WINDOWS_64_BIT_OFF_T
652 HAVE_UNISTD_H
653 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
654 NEXT_UNISTD_H
655 LIB_TIMER_TIME
656 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
657 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
658 TIME_H_DEFINES_STRUCT_TIMESPEC
659 NEXT_AS_FIRST_DIRECTIVE_TIME_H
660 NEXT_TIME_H
661 WINDOWS_64_BIT_ST_SIZE
662 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
663 NEXT_SYS_STAT_H
664 NEXT_AS_FIRST_DIRECTIVE_STRING_H
665 NEXT_STRING_H
666 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
667 NEXT_STDLIB_H
668 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
669 NEXT_STDIO_H
670 REPLACE_VSPRINTF
671 REPLACE_VSNPRINTF
672 REPLACE_VPRINTF
673 REPLACE_VFPRINTF
674 REPLACE_VDPRINTF
675 REPLACE_VASPRINTF
676 REPLACE_TMPFILE
677 REPLACE_STDIO_WRITE_FUNCS
678 REPLACE_STDIO_READ_FUNCS
679 REPLACE_SPRINTF
680 REPLACE_SNPRINTF
681 REPLACE_RENAMEAT
682 REPLACE_RENAME
683 REPLACE_REMOVE
684 REPLACE_PRINTF
685 REPLACE_POPEN
686 REPLACE_PERROR
687 REPLACE_OBSTACK_PRINTF
688 REPLACE_GETLINE
689 REPLACE_GETDELIM
690 REPLACE_FTELLO
691 REPLACE_FTELL
692 REPLACE_FSEEKO
693 REPLACE_FSEEK
694 REPLACE_FREOPEN
695 REPLACE_FPURGE
696 REPLACE_FPRINTF
697 REPLACE_FOPEN
698 REPLACE_FFLUSH
699 REPLACE_FDOPEN
700 REPLACE_FCLOSE
701 REPLACE_DPRINTF
702 HAVE_VDPRINTF
703 HAVE_VASPRINTF
704 HAVE_RENAMEAT
705 HAVE_POPEN
706 HAVE_PCLOSE
707 HAVE_FTELLO
708 HAVE_FSEEKO
709 HAVE_DPRINTF
710 HAVE_DECL_VSNPRINTF
711 HAVE_DECL_SNPRINTF
712 HAVE_DECL_OBSTACK_PRINTF
713 HAVE_DECL_GETLINE
714 HAVE_DECL_GETDELIM
715 HAVE_DECL_FTELLO
716 HAVE_DECL_FSEEKO
717 HAVE_DECL_FPURGE
718 GNULIB_VSPRINTF_POSIX
719 GNULIB_VSNPRINTF
720 GNULIB_VPRINTF_POSIX
721 GNULIB_VPRINTF
722 GNULIB_VFPRINTF_POSIX
723 GNULIB_VFPRINTF
724 GNULIB_VDPRINTF
725 GNULIB_VSCANF
726 GNULIB_VFSCANF
727 GNULIB_VASPRINTF
728 GNULIB_TMPFILE
729 GNULIB_STDIO_H_SIGPIPE
730 GNULIB_STDIO_H_NONBLOCKING
731 GNULIB_SPRINTF_POSIX
732 GNULIB_SNPRINTF
733 GNULIB_SCANF
734 GNULIB_RENAMEAT
735 GNULIB_RENAME
736 GNULIB_REMOVE
737 GNULIB_PUTS
738 GNULIB_PUTCHAR
739 GNULIB_PUTC
740 GNULIB_PRINTF_POSIX
741 GNULIB_PRINTF
742 GNULIB_POPEN
743 GNULIB_PERROR
744 GNULIB_PCLOSE
745 GNULIB_OBSTACK_PRINTF_POSIX
746 GNULIB_OBSTACK_PRINTF
747 GNULIB_GETLINE
748 GNULIB_GETDELIM
749 GNULIB_GETCHAR
750 GNULIB_GETC
751 GNULIB_FWRITE
752 GNULIB_FTELLO
753 GNULIB_FTELL
754 GNULIB_FSEEKO
755 GNULIB_FSEEK
756 GNULIB_FSCANF
757 GNULIB_FREOPEN
758 GNULIB_FREAD
759 GNULIB_FPUTS
760 GNULIB_FPUTC
761 GNULIB_FPURGE
762 GNULIB_FPRINTF_POSIX
763 GNULIB_FPRINTF
764 GNULIB_FOPEN
765 GNULIB_FGETS
766 GNULIB_FGETC
767 GNULIB_FFLUSH
768 GNULIB_FDOPEN
769 GNULIB_FCLOSE
770 GNULIB_DPRINTF
771 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
772 NEXT_STDDEF_H
773 GL_GENERATE_STDDEF_H_FALSE
774 GL_GENERATE_STDDEF_H_TRUE
775 STDDEF_H
776 HAVE_WCHAR_T
777 REPLACE_NULL
778 HAVE__BOOL
779 GL_GENERATE_STDBOOL_H_FALSE
780 GL_GENERATE_STDBOOL_H_TRUE
781 STDBOOL_H
782 GL_GENERATE_STDARG_H_FALSE
783 GL_GENERATE_STDARG_H_TRUE
784 STDARG_H
785 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
786 NEXT_STDARG_H
787 GL_GENERATE_STDALIGN_H_FALSE
788 GL_GENERATE_STDALIGN_H_TRUE
789 STDALIGN_H
790 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
791 NEXT_SIGNAL_H
792 USE_ACL
793 LIB_ACL
794 LIB_PTHREAD_SIGMASK
795 REPLACE_RAISE
796 REPLACE_PTHREAD_SIGMASK
797 HAVE_SIGHANDLER_T
798 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
799 HAVE_STRUCT_SIGACTION_SA_SIGACTION
800 HAVE_SIGACTION
801 HAVE_SIGINFO_T
802 HAVE_SIGSET_T
803 HAVE_RAISE
804 HAVE_PTHREAD_SIGMASK
805 HAVE_POSIX_SIGNALBLOCKING
806 GNULIB_SIGACTION
807 GNULIB_SIGPROCMASK
808 GNULIB_SIGNAL_H_SIGPIPE
809 GNULIB_RAISE
810 GNULIB_PTHREAD_SIGMASK
811 HAVE_SYS_SELECT_H
812 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
813 NEXT_SYS_SELECT_H
814 REPLACE_SELECT
815 REPLACE_PSELECT
816 HAVE_PSELECT
817 GNULIB_SELECT
818 GNULIB_PSELECT
819 REPLACE_TIMEGM
820 REPLACE_NANOSLEEP
821 REPLACE_MKTIME
822 REPLACE_LOCALTIME_R
823 HAVE_TIMEGM
824 HAVE_STRPTIME
825 HAVE_NANOSLEEP
826 HAVE_DECL_LOCALTIME_R
827 GNULIB_TIME_R
828 GNULIB_TIMEGM
829 GNULIB_STRPTIME
830 GNULIB_NANOSLEEP
831 GNULIB_MKTIME
832 UNDEFINE_STRTOK_R
833 REPLACE_STRTOK_R
834 REPLACE_STRSIGNAL
835 REPLACE_STRNLEN
836 REPLACE_STRNDUP
837 REPLACE_STRNCAT
838 REPLACE_STRERROR_R
839 REPLACE_STRERROR
840 REPLACE_STRCHRNUL
841 REPLACE_STRCASESTR
842 REPLACE_STRSTR
843 REPLACE_STRDUP
844 REPLACE_STPNCPY
845 REPLACE_MEMMEM
846 REPLACE_MEMCHR
847 HAVE_STRVERSCMP
848 HAVE_DECL_STRSIGNAL
849 HAVE_DECL_STRERROR_R
850 HAVE_DECL_STRTOK_R
851 HAVE_STRCASESTR
852 HAVE_STRSEP
853 HAVE_STRPBRK
854 HAVE_DECL_STRNLEN
855 HAVE_DECL_STRNDUP
856 HAVE_DECL_STRDUP
857 HAVE_STRCHRNUL
858 HAVE_STPNCPY
859 HAVE_STPCPY
860 HAVE_RAWMEMCHR
861 HAVE_DECL_MEMRCHR
862 HAVE_MEMPCPY
863 HAVE_DECL_MEMMEM
864 HAVE_MEMCHR
865 HAVE_FFSLL
866 HAVE_FFSL
867 HAVE_MBSLEN
868 GNULIB_STRVERSCMP
869 GNULIB_STRSIGNAL
870 GNULIB_STRERROR_R
871 GNULIB_STRERROR
872 GNULIB_MBSTOK_R
873 GNULIB_MBSSEP
874 GNULIB_MBSSPN
875 GNULIB_MBSPBRK
876 GNULIB_MBSCSPN
877 GNULIB_MBSCASESTR
878 GNULIB_MBSPCASECMP
879 GNULIB_MBSNCASECMP
880 GNULIB_MBSCASECMP
881 GNULIB_MBSSTR
882 GNULIB_MBSRCHR
883 GNULIB_MBSCHR
884 GNULIB_MBSNLEN
885 GNULIB_MBSLEN
886 GNULIB_STRTOK_R
887 GNULIB_STRCASESTR
888 GNULIB_STRSTR
889 GNULIB_STRSEP
890 GNULIB_STRPBRK
891 GNULIB_STRNLEN
892 GNULIB_STRNDUP
893 GNULIB_STRNCAT
894 GNULIB_STRDUP
895 GNULIB_STRCHRNUL
896 GNULIB_STPNCPY
897 GNULIB_STPCPY
898 GNULIB_RAWMEMCHR
899 GNULIB_MEMRCHR
900 GNULIB_MEMPCPY
901 GNULIB_MEMMEM
902 GNULIB_MEMCHR
903 GNULIB_FFSLL
904 GNULIB_FFSL
905 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
906 NEXT_INTTYPES_H
907 UINT64_MAX_EQ_ULONG_MAX
908 UINT32_MAX_LT_UINTMAX_MAX
909 PRIPTR_PREFIX
910 PRI_MACROS_BROKEN
911 INT64_MAX_EQ_LONG_MAX
912 INT32_MAX_LT_INTMAX_MAX
913 REPLACE_STRTOUMAX
914 REPLACE_STRTOIMAX
915 HAVE_DECL_STRTOUMAX
916 HAVE_DECL_STRTOIMAX
917 HAVE_DECL_IMAXDIV
918 HAVE_DECL_IMAXABS
919 GNULIB_STRTOUMAX
920 GNULIB_STRTOIMAX
921 GNULIB_IMAXDIV
922 GNULIB_IMAXABS
923 GL_GENERATE_STDINT_H_FALSE
924 GL_GENERATE_STDINT_H_TRUE
925 STDINT_H
926 WINT_T_SUFFIX
927 WCHAR_T_SUFFIX
928 SIG_ATOMIC_T_SUFFIX
929 SIZE_T_SUFFIX
930 PTRDIFF_T_SUFFIX
931 HAVE_SIGNED_WINT_T
932 HAVE_SIGNED_WCHAR_T
933 HAVE_SIGNED_SIG_ATOMIC_T
934 BITSIZEOF_WINT_T
935 BITSIZEOF_WCHAR_T
936 BITSIZEOF_SIG_ATOMIC_T
937 BITSIZEOF_SIZE_T
938 BITSIZEOF_PTRDIFF_T
939 APPLE_UNIVERSAL_BUILD
940 HAVE_SYS_BITYPES_H
941 HAVE_SYS_INTTYPES_H
942 HAVE_STDINT_H
943 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
944 NEXT_STDINT_H
945 HAVE_SYS_TYPES_H
946 HAVE_INTTYPES_H
947 HAVE_WCHAR_H
948 HAVE_UNSIGNED_LONG_LONG_INT
949 HAVE_LONG_LONG_INT
950 HAVE_WINSOCK2_H
951 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
952 NEXT_SYS_TIME_H
953 REPLACE_STRUCT_TIMEVAL
954 REPLACE_GETTIMEOFDAY
955 HAVE_SYS_TIME_H
956 HAVE_STRUCT_TIMEVAL
957 HAVE_GETTIMEOFDAY
958 GNULIB_GETTIMEOFDAY
959 GNULIB_GL_UNISTD_H_GETOPT
960 GETOPT_H
961 HAVE_GETOPT_H
962 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
963 NEXT_GETOPT_H
964 GETLOADAVG_LIBS
965 REPLACE_WCTOMB
966 REPLACE_UNSETENV
967 REPLACE_STRTOD
968 REPLACE_SETENV
969 REPLACE_REALPATH
970 REPLACE_REALLOC
971 REPLACE_RANDOM_R
972 REPLACE_PUTENV
973 REPLACE_PTSNAME_R
974 REPLACE_PTSNAME
975 REPLACE_MKSTEMP
976 REPLACE_MBTOWC
977 REPLACE_MALLOC
978 REPLACE_CANONICALIZE_FILE_NAME
979 REPLACE_CALLOC
980 HAVE_DECL_UNSETENV
981 HAVE_UNLOCKPT
982 HAVE_SYS_LOADAVG_H
983 HAVE_STRUCT_RANDOM_DATA
984 HAVE_STRTOULL
985 HAVE_STRTOLL
986 HAVE_STRTOD
987 HAVE_DECL_SETENV
988 HAVE_SETENV
989 HAVE_SECURE_GETENV
990 HAVE_RPMATCH
991 HAVE_REALPATH
992 HAVE_RANDOM_R
993 HAVE_RANDOM_H
994 HAVE_RANDOM
995 HAVE_PTSNAME_R
996 HAVE_PTSNAME
997 HAVE_POSIX_OPENPT
998 HAVE_MKSTEMPS
999 HAVE_MKSTEMP
1000 HAVE_MKOSTEMPS
1001 HAVE_MKOSTEMP
1002 HAVE_MKDTEMP
1003 HAVE_GRANTPT
1004 HAVE_GETSUBOPT
1005 HAVE_DECL_GETLOADAVG
1006 HAVE_CANONICALIZE_FILE_NAME
1007 HAVE_ATOLL
1008 HAVE__EXIT
1009 GNULIB_WCTOMB
1010 GNULIB_UNSETENV
1011 GNULIB_UNLOCKPT
1012 GNULIB_SYSTEM_POSIX
1013 GNULIB_STRTOULL
1014 GNULIB_STRTOLL
1015 GNULIB_STRTOD
1016 GNULIB_SETENV
1017 GNULIB_SECURE_GETENV
1018 GNULIB_RPMATCH
1019 GNULIB_REALPATH
1020 GNULIB_REALLOC_POSIX
1021 GNULIB_RANDOM_R
1022 GNULIB_RANDOM
1023 GNULIB_PUTENV
1024 GNULIB_PTSNAME_R
1025 GNULIB_PTSNAME
1026 GNULIB_POSIX_OPENPT
1027 GNULIB_MKSTEMPS
1028 GNULIB_MKSTEMP
1029 GNULIB_MKOSTEMPS
1030 GNULIB_MKOSTEMP
1031 GNULIB_MKDTEMP
1032 GNULIB_MBTOWC
1033 GNULIB_MALLOC_POSIX
1034 GNULIB_GRANTPT
1035 GNULIB_GETSUBOPT
1036 GNULIB_GETLOADAVG
1037 GNULIB_CANONICALIZE_FILE_NAME
1038 GNULIB_CALLOC_POSIX
1039 GNULIB_ATOLL
1040 GNULIB__EXIT
1041 REPLACE_UTIMENSAT
1042 REPLACE_STAT
1043 REPLACE_MKNOD
1044 REPLACE_MKFIFO
1045 REPLACE_MKDIR
1046 REPLACE_LSTAT
1047 REPLACE_FUTIMENS
1048 REPLACE_FSTATAT
1049 REPLACE_FSTAT
1050 HAVE_UTIMENSAT
1051 HAVE_MKNODAT
1052 HAVE_MKNOD
1053 HAVE_MKFIFOAT
1054 HAVE_MKFIFO
1055 HAVE_MKDIRAT
1056 HAVE_LSTAT
1057 HAVE_LCHMOD
1058 HAVE_FUTIMENS
1059 HAVE_FSTATAT
1060 HAVE_FCHMODAT
1061 GNULIB_UTIMENSAT
1062 GNULIB_STAT
1063 GNULIB_MKNODAT
1064 GNULIB_MKNOD
1065 GNULIB_MKFIFOAT
1066 GNULIB_MKFIFO
1067 GNULIB_MKDIRAT
1068 GNULIB_LSTAT
1069 GNULIB_LCHMOD
1070 GNULIB_FUTIMENS
1071 GNULIB_FSTATAT
1072 GNULIB_FSTAT
1073 GNULIB_FCHMODAT
1074 LIB_FDATASYNC
1075 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1076 NEXT_FCNTL_H
1077 REPLACE_OPENAT
1078 REPLACE_OPEN
1079 REPLACE_FCNTL
1080 HAVE_OPENAT
1081 HAVE_FCNTL
1082 GNULIB_OPENAT
1083 GNULIB_OPEN
1084 GNULIB_NONBLOCKING
1085 GNULIB_FCNTL
1086 GL_GENERATE_EXECINFO_H_FALSE
1087 GL_GENERATE_EXECINFO_H_TRUE
1088 LIB_EXECINFO
1089 EXECINFO_H
1090 EOVERFLOW_VALUE
1091 EOVERFLOW_HIDDEN
1092 ENOLINK_VALUE
1093 ENOLINK_HIDDEN
1094 EMULTIHOP_VALUE
1095 EMULTIHOP_HIDDEN
1096 GL_GENERATE_ERRNO_H_FALSE
1097 GL_GENERATE_ERRNO_H_TRUE
1098 ERRNO_H
1099 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1100 NEXT_ERRNO_H
1101 HAVE_DIRENT_H
1102 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1103 NEXT_DIRENT_H
1104 PRAGMA_COLUMNS
1105 PRAGMA_SYSTEM_HEADER
1106 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1107 INCLUDE_NEXT
1108 REPLACE_FDOPENDIR
1109 REPLACE_DIRFD
1110 REPLACE_CLOSEDIR
1111 REPLACE_OPENDIR
1112 HAVE_ALPHASORT
1113 HAVE_SCANDIR
1114 HAVE_FDOPENDIR
1115 HAVE_DECL_FDOPENDIR
1116 HAVE_DECL_DIRFD
1117 HAVE_CLOSEDIR
1118 HAVE_REWINDDIR
1119 HAVE_READDIR
1120 HAVE_OPENDIR
1121 GNULIB_ALPHASORT
1122 GNULIB_SCANDIR
1123 GNULIB_FDOPENDIR
1124 GNULIB_DIRFD
1125 GNULIB_CLOSEDIR
1126 GNULIB_REWINDDIR
1127 GNULIB_READDIR
1128 GNULIB_OPENDIR
1129 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1130 UNISTD_H_HAVE_WINSOCK2_H
1131 REPLACE_WRITE
1132 REPLACE_USLEEP
1133 REPLACE_UNLINKAT
1134 REPLACE_UNLINK
1135 REPLACE_TTYNAME_R
1136 REPLACE_SYMLINK
1137 REPLACE_SLEEP
1138 REPLACE_RMDIR
1139 REPLACE_READLINK
1140 REPLACE_READ
1141 REPLACE_PWRITE
1142 REPLACE_PREAD
1143 REPLACE_LSEEK
1144 REPLACE_LINKAT
1145 REPLACE_LINK
1146 REPLACE_LCHOWN
1147 REPLACE_ISATTY
1148 REPLACE_GETPAGESIZE
1149 REPLACE_GETGROUPS
1150 REPLACE_GETLOGIN_R
1151 REPLACE_GETDTABLESIZE
1152 REPLACE_GETDOMAINNAME
1153 REPLACE_GETCWD
1154 REPLACE_FTRUNCATE
1155 REPLACE_FCHOWNAT
1156 REPLACE_DUP2
1157 REPLACE_DUP
1158 REPLACE_CLOSE
1159 REPLACE_CHOWN
1160 HAVE_SYS_PARAM_H
1161 HAVE_OS_H
1162 HAVE_DECL_TTYNAME_R
1163 HAVE_DECL_SETHOSTNAME
1164 HAVE_DECL_GETUSERSHELL
1165 HAVE_DECL_GETPAGESIZE
1166 HAVE_DECL_GETLOGIN_R
1167 HAVE_DECL_GETDOMAINNAME
1168 HAVE_DECL_FDATASYNC
1169 HAVE_DECL_FCHDIR
1170 HAVE_DECL_ENVIRON
1171 HAVE_USLEEP
1172 HAVE_UNLINKAT
1173 HAVE_SYMLINKAT
1174 HAVE_SYMLINK
1175 HAVE_SLEEP
1176 HAVE_SETHOSTNAME
1177 HAVE_READLINKAT
1178 HAVE_READLINK
1179 HAVE_PWRITE
1180 HAVE_PREAD
1181 HAVE_PIPE2
1182 HAVE_PIPE
1183 HAVE_LINKAT
1184 HAVE_LINK
1185 HAVE_LCHOWN
1186 HAVE_GROUP_MEMBER
1187 HAVE_GETPAGESIZE
1188 HAVE_GETLOGIN
1189 HAVE_GETHOSTNAME
1190 HAVE_GETGROUPS
1191 HAVE_GETDTABLESIZE
1192 HAVE_FTRUNCATE
1193 HAVE_FSYNC
1194 HAVE_FDATASYNC
1195 HAVE_FCHOWNAT
1196 HAVE_FCHDIR
1197 HAVE_FACCESSAT
1198 HAVE_EUIDACCESS
1199 HAVE_DUP3
1200 HAVE_DUP2
1201 HAVE_CHOWN
1202 GNULIB_WRITE
1203 GNULIB_USLEEP
1204 GNULIB_UNLINKAT
1205 GNULIB_UNLINK
1206 GNULIB_UNISTD_H_SIGPIPE
1207 GNULIB_UNISTD_H_NONBLOCKING
1208 GNULIB_TTYNAME_R
1209 GNULIB_SYMLINKAT
1210 GNULIB_SYMLINK
1211 GNULIB_SLEEP
1212 GNULIB_SETHOSTNAME
1213 GNULIB_RMDIR
1214 GNULIB_READLINKAT
1215 GNULIB_READLINK
1216 GNULIB_READ
1217 GNULIB_PWRITE
1218 GNULIB_PREAD
1219 GNULIB_PIPE2
1220 GNULIB_PIPE
1221 GNULIB_LSEEK
1222 GNULIB_LINKAT
1223 GNULIB_LINK
1224 GNULIB_LCHOWN
1225 GNULIB_ISATTY
1226 GNULIB_GROUP_MEMBER
1227 GNULIB_GETUSERSHELL
1228 GNULIB_GETPAGESIZE
1229 GNULIB_GETLOGIN_R
1230 GNULIB_GETLOGIN
1231 GNULIB_GETHOSTNAME
1232 GNULIB_GETGROUPS
1233 GNULIB_GETDTABLESIZE
1234 GNULIB_GETDOMAINNAME
1235 GNULIB_GETCWD
1236 GNULIB_FTRUNCATE
1237 GNULIB_FSYNC
1238 GNULIB_FDATASYNC
1239 GNULIB_FCHOWNAT
1240 GNULIB_FCHDIR
1241 GNULIB_FACCESSAT
1242 GNULIB_EUIDACCESS
1243 GNULIB_ENVIRON
1244 GNULIB_DUP3
1245 GNULIB_DUP2
1246 GNULIB_DUP
1247 GNULIB_CLOSE
1248 GNULIB_CHOWN
1249 GNULIB_CHDIR
1250 LIB_CLOCK_GETTIME
1251 GL_GENERATE_BYTESWAP_H_FALSE
1252 GL_GENERATE_BYTESWAP_H_TRUE
1253 BYTESWAP_H
1254 GL_GENERATE_ALLOCA_H_FALSE
1255 GL_GENERATE_ALLOCA_H_TRUE
1256 ALLOCA_H
1257 ALLOCA
1258 GL_COND_LIBTOOL_FALSE
1259 GL_COND_LIBTOOL_TRUE
1260 POST_ALLOC_OBJ
1261 PRE_ALLOC_OBJ
1262 CYGWIN_OBJ
1263 RALLOC_OBJ
1264 OLDXMENU_DEPS
1265 LIBX_OTHER
1266 LIBXMENU
1267 OLDXMENU
1268 OLDXMENU_TARGET
1269 LIBXT_OTHER
1270 TOOLKIT_LIBW
1271 WIDGET_OBJ
1272 XOBJ
1273 XMENU_OBJ
1274 FONT_OBJ
1275 OTHER_FILES
1276 GNU_OBJC_CFLAGS
1277 ns_appsrc
1278 ns_appresdir
1279 ns_appbindir
1280 ns_appdir
1281 X_TOOLKIT_TYPE
1282 GNUSTEP_CFLAGS
1283 C_SWITCH_X_SITE
1284 LD_SWITCH_X_SITE
1285 gameuser
1286 gamedir
1287 bitmapdir
1288 etcdocdir
1289 archlibdir
1290 etcdir
1291 x_default_search_path
1292 lisppath
1293 locallisppath
1294 standardlisppath
1295 leimdir
1296 lispdir
1297 srcdir
1298 canonical
1299 configuration
1300 version
1301 copyright
1302 XGSELOBJ
1303 KRB4LIB
1304 DESLIB
1305 KRB5LIB
1306 CRYPTOLIB
1307 COM_ERRLIB
1308 LIBRESOLV
1309 LIBHESIOD
1310 TERMCAP_OBJ
1311 LIBS_TERMCAP
1312 BLESSMAIL_TARGET
1313 LIBS_MAIL
1314 liblockfile
1315 LIBXML2_LIBS
1316 LIBXML2_CFLAGS
1317 XINERAMA_LIBS
1318 XINERAMA_CFLAGS
1319 XRANDR_LIBS
1320 XRANDR_CFLAGS
1321 LIBXSM
1322 LIBGPM
1323 LIBGIF
1324 LIBTIFF
1325 LIBZ
1326 LIBPNG
1327 LIBJPEG
1328 LIBXPM
1329 M17N_FLT_LIBS
1330 M17N_FLT_CFLAGS
1331 LIBOTF_LIBS
1332 LIBOTF_CFLAGS
1333 FREETYPE_LIBS
1334 FREETYPE_CFLAGS
1335 XFT_LIBS
1336 XFT_CFLAGS
1337 FONTCONFIG_LIBS
1338 FONTCONFIG_CFLAGS
1339 LIBXMU
1340 LIBXTR6
1341 NOTIFY_OBJ
1342 GFILENOTIFY_LIBS
1343 GFILENOTIFY_CFLAGS
1344 LIBGNUTLS_LIBS
1345 LIBGNUTLS_CFLAGS
1346 LIBSELINUX_LIBS
1347 SETTINGS_LIBS
1348 SETTINGS_CFLAGS
1349 GOBJECT_LIBS
1350 GOBJECT_CFLAGS
1351 GCONF_LIBS
1352 GCONF_CFLAGS
1353 GSETTINGS_LIBS
1354 GSETTINGS_CFLAGS
1355 DBUS_OBJ
1356 DBUS_LIBS
1357 DBUS_CFLAGS
1358 GTK_OBJ
1359 GTK_LIBS
1360 GTK_CFLAGS
1361 IMAGEMAGICK_LIBS
1362 IMAGEMAGICK_CFLAGS
1363 RSVG_LIBS
1364 RSVG_CFLAGS
1365 LIB_PTHREAD
1366 VMLIMIT_OBJ
1367 GMALLOC_OBJ
1368 HAVE_XSERVER
1369 XARGS_LIMIT
1370 NTLIB
1371 LIB_WSOCK32
1372 LIBS_ECLIENT
1373 CM_OBJ
1374 NTDIR
1375 FIRSTFILE_OBJ
1376 W32_RES_LINK
1377 CLIENTW
1378 CLIENTRES
1379 UPDATE_MANIFEST
1380 EMACS_MANIFEST
1381 EMACSRES
1382 W32_LIBS
1383 W32_OBJ
1384 WINDRES
1385 NS_OBJC_OBJ
1386 NS_OBJ
1387 ns_self_contained
1388 INSTALL_ARCH_INDEP_EXTRA
1389 LIBS_GNUSTEP
1390 LD_SWITCH_X_SITE_RPATH
1391 XMKMF
1392 DEPFLAGS
1393 MKDEPDIR
1394 CFLAGS_SOUND
1395 ALSA_LIBS
1396 ALSA_CFLAGS
1397 LIBSOUND
1398 PKG_CONFIG
1399 LIB_MATH
1400 LIBS_SYSTEM
1401 C_SWITCH_SYSTEM
1402 UNEXEC_OBJ
1403 C_SWITCH_MACHINE
1404 LD_SWITCH_SYSTEM
1405 CANNOT_DUMP
1406 DOCMISC_W32
1407 INFO_OPTS
1408 INFO_EXT
1409 HAVE_MAKEINFO
1410 PAXCTL
1411 GZIP_PROG
1412 INSTALL_INFO
1413 LN_S_FILEONLY
1414 GNULIB_WARN_CFLAGS
1415 WERROR_CFLAGS
1416 WARN_CFLAGS
1417 RANLIB
1418 ARFLAGS
1419 AR
1420 EGREP
1421 GREP
1422 CPP
1423 BUILDING_FOR_WINDOWSNT_FALSE
1424 BUILDING_FOR_WINDOWSNT_TRUE
1425 am__fastdepCC_FALSE
1426 am__fastdepCC_TRUE
1427 CCDEPMODE
1428 AMDEPBACKSLASH
1429 AMDEP_FALSE
1430 AMDEP_TRUE
1431 am__quote
1432 am__include
1433 DEPDIR
1434 OBJEXT
1435 EXEEXT
1436 ac_ct_CC
1437 CPPFLAGS
1438 LDFLAGS
1439 CFLAGS
1440 CC
1441 host_os
1442 host_vendor
1443 host_cpu
1444 host
1445 build_os
1446 build_vendor
1447 build_cpu
1448 build
1449 PROFILING_CFLAGS
1450 cache_file
1451 am__untar
1452 am__tar
1453 AMTAR
1454 am__leading_dot
1455 SET_MAKE
1456 AWK
1457 mkdir_p
1458 MKDIR_P
1459 INSTALL_STRIP_PROGRAM
1460 STRIP
1461 install_sh
1462 MAKEINFO
1463 AUTOHEADER
1464 AUTOMAKE
1465 AUTOCONF
1466 ACLOCAL
1467 VERSION
1468 PACKAGE
1469 CYGPATH_W
1470 am__isrc
1471 INSTALL_DATA
1472 INSTALL_SCRIPT
1473 INSTALL_PROGRAM
1474 target_alias
1475 host_alias
1476 build_alias
1477 LIBS
1478 ECHO_T
1479 ECHO_N
1480 ECHO_C
1481 DEFS
1482 mandir
1483 localedir
1484 libdir
1485 psdir
1486 pdfdir
1487 dvidir
1488 htmldir
1489 infodir
1490 docdir
1491 oldincludedir
1492 includedir
1493 localstatedir
1494 sharedstatedir
1495 sysconfdir
1496 datadir
1497 datarootdir
1498 libexecdir
1499 sbindir
1500 bindir
1501 program_transform_name
1502 prefix
1503 exec_prefix
1504 PACKAGE_URL
1505 PACKAGE_BUGREPORT
1506 PACKAGE_STRING
1507 PACKAGE_VERSION
1508 PACKAGE_TARNAME
1509 PACKAGE_NAME
1510 PATH_SEPARATOR
1511 SHELL'
1512 ac_subst_files='deps_frag
1513 lisp_frag'
1514 ac_user_opts='
1515 enable_option_checking
1516 with_all
1517 with_pop
1518 with_kerberos
1519 with_kerberos5
1520 with_hesiod
1521 with_mmdf
1522 with_mail_unlink
1523 with_mailhost
1524 with_sound
1525 with_x_toolkit
1526 with_wide_int
1527 with_xpm
1528 with_jpeg
1529 with_tiff
1530 with_gif
1531 with_png
1532 with_rsvg
1533 with_xml2
1534 with_imagemagick
1535 with_xft
1536 with_libotf
1537 with_m17n_flt
1538 with_toolkit_scroll_bars
1539 with_xaw3d
1540 with_xim
1541 with_ns
1542 with_w32
1543 with_gpm
1544 with_dbus
1545 with_gconf
1546 with_gsettings
1547 with_selinux
1548 with_gnutls
1549 with_zlib
1550 with_file_notification
1551 with_makeinfo
1552 with_compress_install
1553 with_pkg_config_prog
1554 with_gameuser
1555 with_gnustep_conf
1556 enable_ns_self_contained
1557 enable_locallisppath
1558 enable_checking
1559 enable_check_lisp_object_type
1560 enable_profiling
1561 enable_autodepend
1562 enable_gtk_deprecation_warnings
1563 enable_dependency_tracking
1564 enable_largefile
1565 enable_gcc_warnings
1566 enable_link_time_optimization
1567 with_x
1568 enable_acl
1569 '
1570 ac_precious_vars='build_alias
1571 host_alias
1572 target_alias
1573 CC
1574 CFLAGS
1575 LDFLAGS
1576 LIBS
1577 CPPFLAGS
1578 CPP
1579 XMKMF'
1580
1581
1582 # Initialize some variables set by options.
1583 ac_init_help=
1584 ac_init_version=false
1585 ac_unrecognized_opts=
1586 ac_unrecognized_sep=
1587 # The variables have the same names as the options, with
1588 # dashes changed to underlines.
1589 cache_file=/dev/null
1590 exec_prefix=NONE
1591 no_create=
1592 no_recursion=
1593 prefix=NONE
1594 program_prefix=NONE
1595 program_suffix=NONE
1596 program_transform_name=s,x,x,
1597 silent=
1598 site=
1599 srcdir=
1600 verbose=
1601 x_includes=NONE
1602 x_libraries=NONE
1603
1604 # Installation directory options.
1605 # These are left unexpanded so users can "make install exec_prefix=/foo"
1606 # and all the variables that are supposed to be based on exec_prefix
1607 # by default will actually change.
1608 # Use braces instead of parens because sh, perl, etc. also accept them.
1609 # (The list follows the same order as the GNU Coding Standards.)
1610 bindir='${exec_prefix}/bin'
1611 sbindir='${exec_prefix}/sbin'
1612 libexecdir='${exec_prefix}/libexec'
1613 datarootdir='${prefix}/share'
1614 datadir='${datarootdir}'
1615 sysconfdir='${prefix}/etc'
1616 sharedstatedir='${prefix}/com'
1617 localstatedir='${prefix}/var'
1618 includedir='${prefix}/include'
1619 oldincludedir='/usr/include'
1620 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1621 infodir='${datarootdir}/info'
1622 htmldir='${docdir}'
1623 dvidir='${docdir}'
1624 pdfdir='${docdir}'
1625 psdir='${docdir}'
1626 libdir='${exec_prefix}/lib'
1627 localedir='${datarootdir}/locale'
1628 mandir='${datarootdir}/man'
1629
1630 ac_prev=
1631 ac_dashdash=
1632 for ac_option
1633 do
1634 # If the previous option needs an argument, assign it.
1635 if test -n "$ac_prev"; then
1636 eval $ac_prev=\$ac_option
1637 ac_prev=
1638 continue
1639 fi
1640
1641 case $ac_option in
1642 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1643 *) ac_optarg=yes ;;
1644 esac
1645
1646 # Accept the important Cygnus configure options, so we can diagnose typos.
1647
1648 case $ac_dashdash$ac_option in
1649 --)
1650 ac_dashdash=yes ;;
1651
1652 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1653 ac_prev=bindir ;;
1654 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1655 bindir=$ac_optarg ;;
1656
1657 -build | --build | --buil | --bui | --bu)
1658 ac_prev=build_alias ;;
1659 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1660 build_alias=$ac_optarg ;;
1661
1662 -cache-file | --cache-file | --cache-fil | --cache-fi \
1663 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1664 ac_prev=cache_file ;;
1665 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1666 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1667 cache_file=$ac_optarg ;;
1668
1669 --config-cache | -C)
1670 cache_file=config.cache ;;
1671
1672 -datadir | --datadir | --datadi | --datad)
1673 ac_prev=datadir ;;
1674 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1675 datadir=$ac_optarg ;;
1676
1677 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1678 | --dataroo | --dataro | --datar)
1679 ac_prev=datarootdir ;;
1680 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1681 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1682 datarootdir=$ac_optarg ;;
1683
1684 -disable-* | --disable-*)
1685 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1686 # Reject names that are not valid shell variable names.
1687 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1688 as_fn_error "invalid feature name: $ac_useropt"
1689 ac_useropt_orig=$ac_useropt
1690 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1691 case $ac_user_opts in
1692 *"
1693 "enable_$ac_useropt"
1694 "*) ;;
1695 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1696 ac_unrecognized_sep=', ';;
1697 esac
1698 eval enable_$ac_useropt=no ;;
1699
1700 -docdir | --docdir | --docdi | --doc | --do)
1701 ac_prev=docdir ;;
1702 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1703 docdir=$ac_optarg ;;
1704
1705 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1706 ac_prev=dvidir ;;
1707 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1708 dvidir=$ac_optarg ;;
1709
1710 -enable-* | --enable-*)
1711 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1712 # Reject names that are not valid shell variable names.
1713 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1714 as_fn_error "invalid feature name: $ac_useropt"
1715 ac_useropt_orig=$ac_useropt
1716 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1717 case $ac_user_opts in
1718 *"
1719 "enable_$ac_useropt"
1720 "*) ;;
1721 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1722 ac_unrecognized_sep=', ';;
1723 esac
1724 eval enable_$ac_useropt=\$ac_optarg ;;
1725
1726 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1727 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1728 | --exec | --exe | --ex)
1729 ac_prev=exec_prefix ;;
1730 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1731 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1732 | --exec=* | --exe=* | --ex=*)
1733 exec_prefix=$ac_optarg ;;
1734
1735 -gas | --gas | --ga | --g)
1736 # Obsolete; use --with-gas.
1737 with_gas=yes ;;
1738
1739 -help | --help | --hel | --he | -h)
1740 ac_init_help=long ;;
1741 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1742 ac_init_help=recursive ;;
1743 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1744 ac_init_help=short ;;
1745
1746 -host | --host | --hos | --ho)
1747 ac_prev=host_alias ;;
1748 -host=* | --host=* | --hos=* | --ho=*)
1749 host_alias=$ac_optarg ;;
1750
1751 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1752 ac_prev=htmldir ;;
1753 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1754 | --ht=*)
1755 htmldir=$ac_optarg ;;
1756
1757 -includedir | --includedir | --includedi | --included | --include \
1758 | --includ | --inclu | --incl | --inc)
1759 ac_prev=includedir ;;
1760 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1761 | --includ=* | --inclu=* | --incl=* | --inc=*)
1762 includedir=$ac_optarg ;;
1763
1764 -infodir | --infodir | --infodi | --infod | --info | --inf)
1765 ac_prev=infodir ;;
1766 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1767 infodir=$ac_optarg ;;
1768
1769 -libdir | --libdir | --libdi | --libd)
1770 ac_prev=libdir ;;
1771 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1772 libdir=$ac_optarg ;;
1773
1774 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1775 | --libexe | --libex | --libe)
1776 ac_prev=libexecdir ;;
1777 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1778 | --libexe=* | --libex=* | --libe=*)
1779 libexecdir=$ac_optarg ;;
1780
1781 -localedir | --localedir | --localedi | --localed | --locale)
1782 ac_prev=localedir ;;
1783 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1784 localedir=$ac_optarg ;;
1785
1786 -localstatedir | --localstatedir | --localstatedi | --localstated \
1787 | --localstate | --localstat | --localsta | --localst | --locals)
1788 ac_prev=localstatedir ;;
1789 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1790 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1791 localstatedir=$ac_optarg ;;
1792
1793 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1794 ac_prev=mandir ;;
1795 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1796 mandir=$ac_optarg ;;
1797
1798 -nfp | --nfp | --nf)
1799 # Obsolete; use --without-fp.
1800 with_fp=no ;;
1801
1802 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1803 | --no-cr | --no-c | -n)
1804 no_create=yes ;;
1805
1806 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1807 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1808 no_recursion=yes ;;
1809
1810 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1811 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1812 | --oldin | --oldi | --old | --ol | --o)
1813 ac_prev=oldincludedir ;;
1814 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1815 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1816 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1817 oldincludedir=$ac_optarg ;;
1818
1819 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1820 ac_prev=prefix ;;
1821 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1822 prefix=$ac_optarg ;;
1823
1824 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1825 | --program-pre | --program-pr | --program-p)
1826 ac_prev=program_prefix ;;
1827 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1828 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1829 program_prefix=$ac_optarg ;;
1830
1831 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1832 | --program-suf | --program-su | --program-s)
1833 ac_prev=program_suffix ;;
1834 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1835 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1836 program_suffix=$ac_optarg ;;
1837
1838 -program-transform-name | --program-transform-name \
1839 | --program-transform-nam | --program-transform-na \
1840 | --program-transform-n | --program-transform- \
1841 | --program-transform | --program-transfor \
1842 | --program-transfo | --program-transf \
1843 | --program-trans | --program-tran \
1844 | --progr-tra | --program-tr | --program-t)
1845 ac_prev=program_transform_name ;;
1846 -program-transform-name=* | --program-transform-name=* \
1847 | --program-transform-nam=* | --program-transform-na=* \
1848 | --program-transform-n=* | --program-transform-=* \
1849 | --program-transform=* | --program-transfor=* \
1850 | --program-transfo=* | --program-transf=* \
1851 | --program-trans=* | --program-tran=* \
1852 | --progr-tra=* | --program-tr=* | --program-t=*)
1853 program_transform_name=$ac_optarg ;;
1854
1855 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1856 ac_prev=pdfdir ;;
1857 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1858 pdfdir=$ac_optarg ;;
1859
1860 -psdir | --psdir | --psdi | --psd | --ps)
1861 ac_prev=psdir ;;
1862 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1863 psdir=$ac_optarg ;;
1864
1865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1866 | -silent | --silent | --silen | --sile | --sil)
1867 silent=yes ;;
1868
1869 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1870 ac_prev=sbindir ;;
1871 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1872 | --sbi=* | --sb=*)
1873 sbindir=$ac_optarg ;;
1874
1875 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1876 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1877 | --sharedst | --shareds | --shared | --share | --shar \
1878 | --sha | --sh)
1879 ac_prev=sharedstatedir ;;
1880 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1881 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1882 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1883 | --sha=* | --sh=*)
1884 sharedstatedir=$ac_optarg ;;
1885
1886 -site | --site | --sit)
1887 ac_prev=site ;;
1888 -site=* | --site=* | --sit=*)
1889 site=$ac_optarg ;;
1890
1891 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1892 ac_prev=srcdir ;;
1893 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1894 srcdir=$ac_optarg ;;
1895
1896 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1897 | --syscon | --sysco | --sysc | --sys | --sy)
1898 ac_prev=sysconfdir ;;
1899 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1900 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1901 sysconfdir=$ac_optarg ;;
1902
1903 -target | --target | --targe | --targ | --tar | --ta | --t)
1904 ac_prev=target_alias ;;
1905 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1906 target_alias=$ac_optarg ;;
1907
1908 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1909 verbose=yes ;;
1910
1911 -version | --version | --versio | --versi | --vers | -V)
1912 ac_init_version=: ;;
1913
1914 -with-* | --with-*)
1915 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1916 # Reject names that are not valid shell variable names.
1917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1918 as_fn_error "invalid package name: $ac_useropt"
1919 ac_useropt_orig=$ac_useropt
1920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1921 case $ac_user_opts in
1922 *"
1923 "with_$ac_useropt"
1924 "*) ;;
1925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1926 ac_unrecognized_sep=', ';;
1927 esac
1928 eval with_$ac_useropt=\$ac_optarg ;;
1929
1930 -without-* | --without-*)
1931 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1932 # Reject names that are not valid shell variable names.
1933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1934 as_fn_error "invalid package name: $ac_useropt"
1935 ac_useropt_orig=$ac_useropt
1936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1937 case $ac_user_opts in
1938 *"
1939 "with_$ac_useropt"
1940 "*) ;;
1941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1942 ac_unrecognized_sep=', ';;
1943 esac
1944 eval with_$ac_useropt=no ;;
1945
1946 --x)
1947 # Obsolete; use --with-x.
1948 with_x=yes ;;
1949
1950 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1951 | --x-incl | --x-inc | --x-in | --x-i)
1952 ac_prev=x_includes ;;
1953 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1954 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1955 x_includes=$ac_optarg ;;
1956
1957 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1958 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1959 ac_prev=x_libraries ;;
1960 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1961 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1962 x_libraries=$ac_optarg ;;
1963
1964 -*) as_fn_error "unrecognized option: \`$ac_option'
1965 Try \`$0 --help' for more information."
1966 ;;
1967
1968 *=*)
1969 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1970 # Reject names that are not valid shell variable names.
1971 case $ac_envvar in #(
1972 '' | [0-9]* | *[!_$as_cr_alnum]* )
1973 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1974 esac
1975 eval $ac_envvar=\$ac_optarg
1976 export $ac_envvar ;;
1977
1978 *)
1979 # FIXME: should be removed in autoconf 3.0.
1980 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1981 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1982 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1983 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1984 ;;
1985
1986 esac
1987 done
1988
1989 if test -n "$ac_prev"; then
1990 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1991 as_fn_error "missing argument to $ac_option"
1992 fi
1993
1994 if test -n "$ac_unrecognized_opts"; then
1995 case $enable_option_checking in
1996 no) ;;
1997 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1998 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1999 esac
2000 fi
2001
2002 # Check all directory arguments for consistency.
2003 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2004 datadir sysconfdir sharedstatedir localstatedir includedir \
2005 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2006 libdir localedir mandir
2007 do
2008 eval ac_val=\$$ac_var
2009 # Remove trailing slashes.
2010 case $ac_val in
2011 */ )
2012 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2013 eval $ac_var=\$ac_val;;
2014 esac
2015 # Be sure to have absolute directory names.
2016 case $ac_val in
2017 [\\/$]* | ?:[\\/]* ) continue;;
2018 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2019 esac
2020 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2021 done
2022
2023 # There might be people who depend on the old broken behavior: `$host'
2024 # used to hold the argument of --host etc.
2025 # FIXME: To remove some day.
2026 build=$build_alias
2027 host=$host_alias
2028 target=$target_alias
2029
2030 # FIXME: To remove some day.
2031 if test "x$host_alias" != x; then
2032 if test "x$build_alias" = x; then
2033 cross_compiling=maybe
2034 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2035 If a cross compiler is detected then cross compile mode will be used." >&2
2036 elif test "x$build_alias" != "x$host_alias"; then
2037 cross_compiling=yes
2038 fi
2039 fi
2040
2041 ac_tool_prefix=
2042 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2043
2044 test "$silent" = yes && exec 6>/dev/null
2045
2046
2047 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2048 ac_ls_di=`ls -di .` &&
2049 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2050 as_fn_error "working directory cannot be determined"
2051 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2052 as_fn_error "pwd does not report name of working directory"
2053
2054
2055 # Find the source files, if location was not specified.
2056 if test -z "$srcdir"; then
2057 ac_srcdir_defaulted=yes
2058 # Try the directory containing this script, then the parent directory.
2059 ac_confdir=`$as_dirname -- "$as_myself" ||
2060 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2061 X"$as_myself" : 'X\(//\)[^/]' \| \
2062 X"$as_myself" : 'X\(//\)$' \| \
2063 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2064 $as_echo X"$as_myself" |
2065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2066 s//\1/
2067 q
2068 }
2069 /^X\(\/\/\)[^/].*/{
2070 s//\1/
2071 q
2072 }
2073 /^X\(\/\/\)$/{
2074 s//\1/
2075 q
2076 }
2077 /^X\(\/\).*/{
2078 s//\1/
2079 q
2080 }
2081 s/.*/./; q'`
2082 srcdir=$ac_confdir
2083 if test ! -r "$srcdir/$ac_unique_file"; then
2084 srcdir=..
2085 fi
2086 else
2087 ac_srcdir_defaulted=no
2088 fi
2089 if test ! -r "$srcdir/$ac_unique_file"; then
2090 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2091 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2092 fi
2093 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2094 ac_abs_confdir=`(
2095 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2096 pwd)`
2097 # When building in place, set srcdir=.
2098 if test "$ac_abs_confdir" = "$ac_pwd"; then
2099 srcdir=.
2100 fi
2101 # Remove unnecessary trailing slashes from srcdir.
2102 # Double slashes in file names in object file debugging info
2103 # mess up M-x gdb in Emacs.
2104 case $srcdir in
2105 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2106 esac
2107 for ac_var in $ac_precious_vars; do
2108 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2109 eval ac_env_${ac_var}_value=\$${ac_var}
2110 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2111 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2112 done
2113
2114 #
2115 # Report the --help message.
2116 #
2117 if test "$ac_init_help" = "long"; then
2118 # Omit some internal or obsolete options to make the list less imposing.
2119 # This message is too long to be a string in the A/UX 3.1 sh.
2120 cat <<_ACEOF
2121 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2122
2123 Usage: $0 [OPTION]... [VAR=VALUE]...
2124
2125 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2126 VAR=VALUE. See below for descriptions of some of the useful variables.
2127
2128 Defaults for the options are specified in brackets.
2129
2130 Configuration:
2131 -h, --help display this help and exit
2132 --help=short display options specific to this package
2133 --help=recursive display the short help of all the included packages
2134 -V, --version display version information and exit
2135 -q, --quiet, --silent do not print \`checking...' messages
2136 --cache-file=FILE cache test results in FILE [disabled]
2137 -C, --config-cache alias for \`--cache-file=config.cache'
2138 -n, --no-create do not create output files
2139 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2140
2141 Installation directories:
2142 --prefix=PREFIX install architecture-independent files in PREFIX
2143 [$ac_default_prefix]
2144 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2145 [PREFIX]
2146
2147 By default, \`make install' will install all the files in
2148 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2149 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2150 for instance \`--prefix=\$HOME'.
2151
2152 For better control, use the options below.
2153
2154 Fine tuning of the installation directories:
2155 --bindir=DIR user executables [EPREFIX/bin]
2156 --sbindir=DIR system admin executables [EPREFIX/sbin]
2157 --libexecdir=DIR program executables [EPREFIX/libexec]
2158 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2159 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2160 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2161 --libdir=DIR object code libraries [EPREFIX/lib]
2162 --includedir=DIR C header files [PREFIX/include]
2163 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2164 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2165 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2166 --infodir=DIR info documentation [DATAROOTDIR/info]
2167 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2168 --mandir=DIR man documentation [DATAROOTDIR/man]
2169 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2170 --htmldir=DIR html documentation [DOCDIR]
2171 --dvidir=DIR dvi documentation [DOCDIR]
2172 --pdfdir=DIR pdf documentation [DOCDIR]
2173 --psdir=DIR ps documentation [DOCDIR]
2174 _ACEOF
2175
2176 cat <<\_ACEOF
2177
2178 Program names:
2179 --program-prefix=PREFIX prepend PREFIX to installed program names
2180 --program-suffix=SUFFIX append SUFFIX to installed program names
2181 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2182
2183 X features:
2184 --x-includes=DIR X include files are in DIR
2185 --x-libraries=DIR X library files are in DIR
2186
2187 System types:
2188 --build=BUILD configure for building on BUILD [guessed]
2189 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2190 _ACEOF
2191 fi
2192
2193 if test -n "$ac_init_help"; then
2194 case $ac_init_help in
2195 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2196 esac
2197 cat <<\_ACEOF
2198
2199 Optional Features:
2200 --disable-option-checking ignore unrecognized --enable/--with options
2201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2203 --disable-ns-self-contained
2204 disable self contained build under NeXTstep
2205 --enable-locallisppath=PATH
2206 directories Emacs should search for lisp files
2207 specific to this site
2208 --enable-checking[=LIST]
2209 enable expensive run-time checks. With LIST, enable
2210 only specific categories of checks. Categories are:
2211 all,yes,no. Flags are: stringbytes, stringoverrun,
2212 stringfreelist, xmallocoverrun, conslist, glyphs
2213 --enable-check-lisp-object-type
2214 enable compile time checks for the Lisp_Object data
2215 type. This is useful for development for catching
2216 certain types of bugs.
2217 --enable-profiling build emacs with low-level, gprof profiling support.
2218 Mainly useful for debugging Emacs itself. May not
2219 work on all platforms. Stops profiler.el working.
2220 --enable-autodepend automatically generate dependencies to .h-files.
2221 Requires GNU Make and Gcc. Enabled if GNU Make and
2222 Gcc is found
2223 --enable-gtk-deprecation-warnings
2224 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2225 --disable-dependency-tracking speeds up one-time build
2226 --enable-dependency-tracking do not reject slow dependency extractors
2227 --disable-largefile omit support for large files
2228 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2229 intended for developers, and may generate false
2230 alarms when used with older or non-GNU development
2231 tools.
2232 --enable-link-time-optimization
2233 build emacs with link-time optimization. This is
2234 supported only for GCC since 4.5.0.
2235 --disable-acl do not support ACLs
2236
2237 Optional Packages:
2238 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2239 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2240 --without-all omit almost all features and build small executable
2241 with minimal dependencies
2242 --without-pop don't support POP mail retrieval with movemail
2243 --with-kerberos support Kerberos-authenticated POP
2244 --with-kerberos5 support Kerberos version 5 authenticated POP
2245 --with-hesiod support Hesiod to get the POP server host
2246 --with-mmdf support MMDF mailboxes
2247 --with-mail-unlink unlink, rather than empty, mail spool after reading
2248 --with-mailhost=HOSTNAME
2249 string giving default POP mail host
2250 --with-sound=VALUE compile with sound support (VALUE one of: yes, alsa,
2251 oss, bsd-ossaudio, no; default yes). Only for
2252 GNU/Linux, FreeBSD, NetBSD, MinGW.
2253 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2254 gtk3, lucid or athena, motif, no)
2255 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2256 --without-xpm don't compile with XPM image support
2257 --without-jpeg don't compile with JPEG image support
2258 --without-tiff don't compile with TIFF image support
2259 --without-gif don't compile with GIF image support
2260 --without-png don't compile with PNG image support
2261 --without-rsvg don't compile with SVG image support
2262 --without-xml2 don't compile with XML parsing support
2263 --without-imagemagick don't compile with ImageMagick image support
2264 --without-xft don't use XFT for anti aliased fonts
2265 --without-libotf don't use libotf for OpenType font support
2266 --without-m17n-flt don't use m17n-flt for text shaping
2267 --without-toolkit-scroll-bars
2268 don't use Motif or Xaw3d scroll bars
2269 --without-xaw3d don't use Xaw3d
2270 --without-xim don't use X11 XIM
2271 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2272 --with-w32 use native MS Windows GUI in a Cygwin build
2273 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2274 console
2275 --without-dbus don't compile with D-Bus support
2276 --without-gconf don't compile with GConf support
2277 --without-gsettings don't compile with GSettings support
2278 --without-selinux don't compile with SELinux support
2279 --without-gnutls don't use -lgnutls for SSL/TLS support
2280 --without-zlib don't compile with zlib decompression support
2281 --with-file-notification=LIB
2282 use a file notification library (LIB one of: yes,
2283 gfile, inotify, w32, no)
2284 --without-makeinfo don't require makeinfo for building manuals
2285 --without-compress-install
2286 don't compress some files (.el, .info, etc.) when
2287 installing. Equivalent to: make GZIP_PROG= install
2288 --with-pkg-config-prog=FILENAME
2289 file name of pkg-config for finding GTK and librsvg
2290 --with-gameuser=USER user for shared game score files
2291 --with-gnustep-conf=FILENAME
2292 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2293 or /etc/GNUstep/GNUstep.conf
2294 --with-x use the X Window System
2295
2296 Some influential environment variables:
2297 CC C compiler command
2298 CFLAGS C compiler flags
2299 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2300 nonstandard directory <lib dir>
2301 LIBS libraries to pass to the linker, e.g. -l<library>
2302 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2303 you have headers in a nonstandard directory <include dir>
2304 CPP C preprocessor
2305 XMKMF Path to xmkmf, Makefile generator for X Window System
2306
2307 Use these variables to override the choices made by `configure' or to help
2308 it to find libraries and programs with nonstandard names/locations.
2309
2310 Report bugs to the package provider.
2311 _ACEOF
2312 ac_status=$?
2313 fi
2314
2315 if test "$ac_init_help" = "recursive"; then
2316 # If there are subdirs, report their specific --help.
2317 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2318 test -d "$ac_dir" ||
2319 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2320 continue
2321 ac_builddir=.
2322
2323 case "$ac_dir" in
2324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2325 *)
2326 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2327 # A ".." for each directory in $ac_dir_suffix.
2328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2329 case $ac_top_builddir_sub in
2330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2332 esac ;;
2333 esac
2334 ac_abs_top_builddir=$ac_pwd
2335 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2336 # for backward compatibility:
2337 ac_top_builddir=$ac_top_build_prefix
2338
2339 case $srcdir in
2340 .) # We are building in place.
2341 ac_srcdir=.
2342 ac_top_srcdir=$ac_top_builddir_sub
2343 ac_abs_top_srcdir=$ac_pwd ;;
2344 [\\/]* | ?:[\\/]* ) # Absolute name.
2345 ac_srcdir=$srcdir$ac_dir_suffix;
2346 ac_top_srcdir=$srcdir
2347 ac_abs_top_srcdir=$srcdir ;;
2348 *) # Relative name.
2349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2350 ac_top_srcdir=$ac_top_build_prefix$srcdir
2351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2352 esac
2353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2354
2355 cd "$ac_dir" || { ac_status=$?; continue; }
2356 # Check for guested configure.
2357 if test -f "$ac_srcdir/configure.gnu"; then
2358 echo &&
2359 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2360 elif test -f "$ac_srcdir/configure"; then
2361 echo &&
2362 $SHELL "$ac_srcdir/configure" --help=recursive
2363 else
2364 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2365 fi || ac_status=$?
2366 cd "$ac_pwd" || { ac_status=$?; break; }
2367 done
2368 fi
2369
2370 test -n "$ac_init_help" && exit $ac_status
2371 if $ac_init_version; then
2372 cat <<\_ACEOF
2373 emacs configure 24.3.50
2374 generated by GNU Autoconf 2.65
2375
2376 Copyright (C) 2009 Free Software Foundation, Inc.
2377 This configure script is free software; the Free Software Foundation
2378 gives unlimited permission to copy, distribute and modify it.
2379 _ACEOF
2380 exit
2381 fi
2382
2383 ## ------------------------ ##
2384 ## Autoconf initialization. ##
2385 ## ------------------------ ##
2386
2387 # ac_fn_c_try_compile LINENO
2388 # --------------------------
2389 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2390 ac_fn_c_try_compile ()
2391 {
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 rm -f conftest.$ac_objext
2394 if { { ac_try="$ac_compile"
2395 case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398 esac
2399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2400 $as_echo "$ac_try_echo"; } >&5
2401 (eval "$ac_compile") 2>conftest.err
2402 ac_status=$?
2403 if test -s conftest.err; then
2404 grep -v '^ *+' conftest.err >conftest.er1
2405 cat conftest.er1 >&5
2406 mv -f conftest.er1 conftest.err
2407 fi
2408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409 test $ac_status = 0; } && {
2410 test -z "$ac_c_werror_flag" ||
2411 test ! -s conftest.err
2412 } && test -s conftest.$ac_objext; then :
2413 ac_retval=0
2414 else
2415 $as_echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418 ac_retval=1
2419 fi
2420 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421 as_fn_set_status $ac_retval
2422
2423 } # ac_fn_c_try_compile
2424
2425 # ac_fn_c_try_cpp LINENO
2426 # ----------------------
2427 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2428 ac_fn_c_try_cpp ()
2429 {
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 if { { ac_try="$ac_cpp conftest.$ac_ext"
2432 case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437 $as_echo "$ac_try_echo"; } >&5
2438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2439 ac_status=$?
2440 if test -s conftest.err; then
2441 grep -v '^ *+' conftest.err >conftest.er1
2442 cat conftest.er1 >&5
2443 mv -f conftest.er1 conftest.err
2444 fi
2445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2446 test $ac_status = 0; } >/dev/null && {
2447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2448 test ! -s conftest.err
2449 }; then :
2450 ac_retval=0
2451 else
2452 $as_echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 ac_retval=1
2456 fi
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2458 as_fn_set_status $ac_retval
2459
2460 } # ac_fn_c_try_cpp
2461
2462 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2463 # -------------------------------------------------------
2464 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2465 # the include files in INCLUDES and setting the cache variable VAR
2466 # accordingly.
2467 ac_fn_c_check_header_mongrel ()
2468 {
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2475 fi
2476 eval ac_res=\$$3
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479 else
2480 # Is the header compilable?
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2482 $as_echo_n "checking $2 usability... " >&6; }
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2485 $4
2486 #include <$2>
2487 _ACEOF
2488 if ac_fn_c_try_compile "$LINENO"; then :
2489 ac_header_compiler=yes
2490 else
2491 ac_header_compiler=no
2492 fi
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2495 $as_echo "$ac_header_compiler" >&6; }
2496
2497 # Is the header present?
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2499 $as_echo_n "checking $2 presence... " >&6; }
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 #include <$2>
2503 _ACEOF
2504 if ac_fn_c_try_cpp "$LINENO"; then :
2505 ac_header_preproc=yes
2506 else
2507 ac_header_preproc=no
2508 fi
2509 rm -f conftest.err conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2511 $as_echo "$ac_header_preproc" >&6; }
2512
2513 # So? What about this header?
2514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2515 yes:no: )
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2517 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2519 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2520 ;;
2521 no:yes:* )
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2523 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2525 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2527 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2529 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2531 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2532 ;;
2533 esac
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2535 $as_echo_n "checking for $2... " >&6; }
2536 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 eval "$3=\$ac_header_compiler"
2540 fi
2541 eval ac_res=\$$3
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544 fi
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2546
2547 } # ac_fn_c_check_header_mongrel
2548
2549 # ac_fn_c_try_run LINENO
2550 # ----------------------
2551 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2552 # that executables *can* be run.
2553 ac_fn_c_try_run ()
2554 {
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 if { { ac_try="$ac_link"
2557 case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560 esac
2561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562 $as_echo "$ac_try_echo"; } >&5
2563 (eval "$ac_link") 2>&5
2564 ac_status=$?
2565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2567 { { case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570 esac
2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 $as_echo "$ac_try_echo"; } >&5
2573 (eval "$ac_try") 2>&5
2574 ac_status=$?
2575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576 test $ac_status = 0; }; }; then :
2577 ac_retval=0
2578 else
2579 $as_echo "$as_me: program exited with status $ac_status" >&5
2580 $as_echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 ac_retval=$ac_status
2584 fi
2585 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2587 as_fn_set_status $ac_retval
2588
2589 } # ac_fn_c_try_run
2590
2591 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2592 # -------------------------------------------------------
2593 # Tests whether HEADER exists and can be compiled using the include files in
2594 # INCLUDES, setting the cache variable VAR accordingly.
2595 ac_fn_c_check_header_compile ()
2596 {
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2599 $as_echo_n "checking for $2... " >&6; }
2600 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2605 $4
2606 #include <$2>
2607 _ACEOF
2608 if ac_fn_c_try_compile "$LINENO"; then :
2609 eval "$3=yes"
2610 else
2611 eval "$3=no"
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615 eval ac_res=\$$3
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617 $as_echo "$ac_res" >&6; }
2618 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2619
2620 } # ac_fn_c_check_header_compile
2621
2622 # ac_fn_c_try_link LINENO
2623 # -----------------------
2624 # Try to link conftest.$ac_ext, and return whether this succeeded.
2625 ac_fn_c_try_link ()
2626 {
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 rm -f conftest.$ac_objext conftest$ac_exeext
2629 if { { ac_try="$ac_link"
2630 case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633 esac
2634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2635 $as_echo "$ac_try_echo"; } >&5
2636 (eval "$ac_link") 2>conftest.err
2637 ac_status=$?
2638 if test -s conftest.err; then
2639 grep -v '^ *+' conftest.err >conftest.er1
2640 cat conftest.er1 >&5
2641 mv -f conftest.er1 conftest.err
2642 fi
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; } && {
2645 test -z "$ac_c_werror_flag" ||
2646 test ! -s conftest.err
2647 } && test -s conftest$ac_exeext && {
2648 test "$cross_compiling" = yes ||
2649 $as_test_x conftest$ac_exeext
2650 }; then :
2651 ac_retval=0
2652 else
2653 $as_echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656 ac_retval=1
2657 fi
2658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2660 # interfere with the next link command; also delete a directory that is
2661 # left behind by Apple's compiler. We do this before executing the actions.
2662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664 as_fn_set_status $ac_retval
2665
2666 } # ac_fn_c_try_link
2667
2668 # ac_fn_c_check_decl LINENO SYMBOL VAR
2669 # ------------------------------------
2670 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2671 ac_fn_c_check_decl ()
2672 {
2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2675 $as_echo_n "checking whether $2 is declared... " >&6; }
2676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2681 $4
2682 int
2683 main ()
2684 {
2685 #ifndef $2
2686 (void) $2;
2687 #endif
2688
2689 ;
2690 return 0;
2691 }
2692 _ACEOF
2693 if ac_fn_c_try_compile "$LINENO"; then :
2694 eval "$3=yes"
2695 else
2696 eval "$3=no"
2697 fi
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 fi
2700 eval ac_res=\$$3
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2702 $as_echo "$ac_res" >&6; }
2703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2704
2705 } # ac_fn_c_check_decl
2706
2707 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2708 # ----------------------------------------------
2709 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2710 ac_fn_c_check_header_preproc ()
2711 {
2712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2714 $as_echo_n "checking for $2... " >&6; }
2715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2720 #include <$2>
2721 _ACEOF
2722 if ac_fn_c_try_cpp "$LINENO"; then :
2723 eval "$3=yes"
2724 else
2725 eval "$3=no"
2726 fi
2727 rm -f conftest.err conftest.$ac_ext
2728 fi
2729 eval ac_res=\$$3
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2731 $as_echo "$ac_res" >&6; }
2732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2733
2734 } # ac_fn_c_check_header_preproc
2735
2736 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2737 # ----------------------------------------------------
2738 # Tries to find if the field MEMBER exists in type AGGR, after including
2739 # INCLUDES, setting cache variable VAR accordingly.
2740 ac_fn_c_check_member ()
2741 {
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2744 $as_echo_n "checking for $2.$3... " >&6; }
2745 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2750 $5
2751 int
2752 main ()
2753 {
2754 static $2 ac_aggr;
2755 if (ac_aggr.$3)
2756 return 0;
2757 ;
2758 return 0;
2759 }
2760 _ACEOF
2761 if ac_fn_c_try_compile "$LINENO"; then :
2762 eval "$4=yes"
2763 else
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2766 $5
2767 int
2768 main ()
2769 {
2770 static $2 ac_aggr;
2771 if (sizeof ac_aggr.$3)
2772 return 0;
2773 ;
2774 return 0;
2775 }
2776 _ACEOF
2777 if ac_fn_c_try_compile "$LINENO"; then :
2778 eval "$4=yes"
2779 else
2780 eval "$4=no"
2781 fi
2782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 fi
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785 fi
2786 eval ac_res=\$$4
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2790
2791 } # ac_fn_c_check_member
2792
2793 # ac_fn_c_check_func LINENO FUNC VAR
2794 # ----------------------------------
2795 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2796 ac_fn_c_check_func ()
2797 {
2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2800 $as_echo_n "checking for $2... " >&6; }
2801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805 /* end confdefs.h. */
2806 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2808 #define $2 innocuous_$2
2809
2810 /* System header to define __stub macros and hopefully few prototypes,
2811 which can conflict with char $2 (); below.
2812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2813 <limits.h> exists even on freestanding compilers. */
2814
2815 #ifdef __STDC__
2816 # include <limits.h>
2817 #else
2818 # include <assert.h>
2819 #endif
2820
2821 #undef $2
2822
2823 /* Override any GCC internal prototype to avoid an error.
2824 Use char because int might match the return type of a GCC
2825 builtin and then its argument prototype would still apply. */
2826 #ifdef __cplusplus
2827 extern "C"
2828 #endif
2829 char $2 ();
2830 /* The GNU C library defines this for functions which it implements
2831 to always fail with ENOSYS. Some functions are actually named
2832 something starting with __ and the normal name is an alias. */
2833 #if defined __stub_$2 || defined __stub___$2
2834 choke me
2835 #endif
2836
2837 int
2838 main ()
2839 {
2840 return $2 ();
2841 ;
2842 return 0;
2843 }
2844 _ACEOF
2845 if ac_fn_c_try_link "$LINENO"; then :
2846 eval "$3=yes"
2847 else
2848 eval "$3=no"
2849 fi
2850 rm -f core conftest.err conftest.$ac_objext \
2851 conftest$ac_exeext conftest.$ac_ext
2852 fi
2853 eval ac_res=\$$3
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2855 $as_echo "$ac_res" >&6; }
2856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2857
2858 } # ac_fn_c_check_func
2859
2860 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2861 # -------------------------------------------
2862 # Tests whether TYPE exists after having included INCLUDES, setting cache
2863 # variable VAR accordingly.
2864 ac_fn_c_check_type ()
2865 {
2866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2868 $as_echo_n "checking for $2... " >&6; }
2869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 eval "$3=no"
2873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2874 /* end confdefs.h. */
2875 $4
2876 int
2877 main ()
2878 {
2879 if (sizeof ($2))
2880 return 0;
2881 ;
2882 return 0;
2883 }
2884 _ACEOF
2885 if ac_fn_c_try_compile "$LINENO"; then :
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2888 $4
2889 int
2890 main ()
2891 {
2892 if (sizeof (($2)))
2893 return 0;
2894 ;
2895 return 0;
2896 }
2897 _ACEOF
2898 if ac_fn_c_try_compile "$LINENO"; then :
2899
2900 else
2901 eval "$3=yes"
2902 fi
2903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 fi
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 fi
2907 eval ac_res=\$$3
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2911
2912 } # ac_fn_c_check_type
2913
2914 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2915 # --------------------------------------------
2916 # Tries to find the compile-time value of EXPR in a program that includes
2917 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2918 # computed
2919 ac_fn_c_compute_int ()
2920 {
2921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2922 if test "$cross_compiling" = yes; then
2923 # Depending upon the size, compute the lo and hi bounds.
2924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2926 $4
2927 int
2928 main ()
2929 {
2930 static int test_array [1 - 2 * !(($2) >= 0)];
2931 test_array [0] = 0
2932
2933 ;
2934 return 0;
2935 }
2936 _ACEOF
2937 if ac_fn_c_try_compile "$LINENO"; then :
2938 ac_lo=0 ac_mid=0
2939 while :; do
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2942 $4
2943 int
2944 main ()
2945 {
2946 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2947 test_array [0] = 0
2948
2949 ;
2950 return 0;
2951 }
2952 _ACEOF
2953 if ac_fn_c_try_compile "$LINENO"; then :
2954 ac_hi=$ac_mid; break
2955 else
2956 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2957 if test $ac_lo -le $ac_mid; then
2958 ac_lo= ac_hi=
2959 break
2960 fi
2961 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2962 fi
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964 done
2965 else
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2968 $4
2969 int
2970 main ()
2971 {
2972 static int test_array [1 - 2 * !(($2) < 0)];
2973 test_array [0] = 0
2974
2975 ;
2976 return 0;
2977 }
2978 _ACEOF
2979 if ac_fn_c_try_compile "$LINENO"; then :
2980 ac_hi=-1 ac_mid=-1
2981 while :; do
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h. */
2984 $4
2985 int
2986 main ()
2987 {
2988 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2989 test_array [0] = 0
2990
2991 ;
2992 return 0;
2993 }
2994 _ACEOF
2995 if ac_fn_c_try_compile "$LINENO"; then :
2996 ac_lo=$ac_mid; break
2997 else
2998 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2999 if test $ac_mid -le $ac_hi; then
3000 ac_lo= ac_hi=
3001 break
3002 fi
3003 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3004 fi
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 done
3007 else
3008 ac_lo= ac_hi=
3009 fi
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 fi
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 # Binary search between lo and hi bounds.
3014 while test "x$ac_lo" != "x$ac_hi"; do
3015 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3018 $4
3019 int
3020 main ()
3021 {
3022 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3023 test_array [0] = 0
3024
3025 ;
3026 return 0;
3027 }
3028 _ACEOF
3029 if ac_fn_c_try_compile "$LINENO"; then :
3030 ac_hi=$ac_mid
3031 else
3032 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3033 fi
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 done
3036 case $ac_lo in #((
3037 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3038 '') ac_retval=1 ;;
3039 esac
3040 else
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3043 $4
3044 static long int longval () { return $2; }
3045 static unsigned long int ulongval () { return $2; }
3046 #include <stdio.h>
3047 #include <stdlib.h>
3048 int
3049 main ()
3050 {
3051
3052 FILE *f = fopen ("conftest.val", "w");
3053 if (! f)
3054 return 1;
3055 if (($2) < 0)
3056 {
3057 long int i = longval ();
3058 if (i != ($2))
3059 return 1;
3060 fprintf (f, "%ld", i);
3061 }
3062 else
3063 {
3064 unsigned long int i = ulongval ();
3065 if (i != ($2))
3066 return 1;
3067 fprintf (f, "%lu", i);
3068 }
3069 /* Do not output a trailing newline, as this causes \r\n confusion
3070 on some platforms. */
3071 return ferror (f) || fclose (f) != 0;
3072
3073 ;
3074 return 0;
3075 }
3076 _ACEOF
3077 if ac_fn_c_try_run "$LINENO"; then :
3078 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3079 else
3080 ac_retval=1
3081 fi
3082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3083 conftest.$ac_objext conftest.beam conftest.$ac_ext
3084 rm -f conftest.val
3085
3086 fi
3087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3088 as_fn_set_status $ac_retval
3089
3090 } # ac_fn_c_compute_int
3091 cat >config.log <<_ACEOF
3092 This file contains any messages produced by compilers while
3093 running configure, to aid debugging if configure makes a mistake.
3094
3095 It was created by emacs $as_me 24.3.50, which was
3096 generated by GNU Autoconf 2.65. Invocation command line was
3097
3098 $ $0 $@
3099
3100 _ACEOF
3101 exec 5>>config.log
3102 {
3103 cat <<_ASUNAME
3104 ## --------- ##
3105 ## Platform. ##
3106 ## --------- ##
3107
3108 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3109 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3110 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3111 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3112 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3113
3114 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3115 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3116
3117 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3118 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3119 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3120 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3121 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3122 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3123 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3124
3125 _ASUNAME
3126
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 $as_echo "PATH: $as_dir"
3133 done
3134 IFS=$as_save_IFS
3135
3136 } >&5
3137
3138 cat >&5 <<_ACEOF
3139
3140
3141 ## ----------- ##
3142 ## Core tests. ##
3143 ## ----------- ##
3144
3145 _ACEOF
3146
3147
3148 # Keep a trace of the command line.
3149 # Strip out --no-create and --no-recursion so they do not pile up.
3150 # Strip out --silent because we don't want to record it for future runs.
3151 # Also quote any args containing shell meta-characters.
3152 # Make two passes to allow for proper duplicate-argument suppression.
3153 ac_configure_args=
3154 ac_configure_args0=
3155 ac_configure_args1=
3156 ac_must_keep_next=false
3157 for ac_pass in 1 2
3158 do
3159 for ac_arg
3160 do
3161 case $ac_arg in
3162 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3164 | -silent | --silent | --silen | --sile | --sil)
3165 continue ;;
3166 *\'*)
3167 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3168 esac
3169 case $ac_pass in
3170 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3171 2)
3172 as_fn_append ac_configure_args1 " '$ac_arg'"
3173 if test $ac_must_keep_next = true; then
3174 ac_must_keep_next=false # Got value, back to normal.
3175 else
3176 case $ac_arg in
3177 *=* | --config-cache | -C | -disable-* | --disable-* \
3178 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3179 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3180 | -with-* | --with-* | -without-* | --without-* | --x)
3181 case "$ac_configure_args0 " in
3182 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3183 esac
3184 ;;
3185 -* ) ac_must_keep_next=true ;;
3186 esac
3187 fi
3188 as_fn_append ac_configure_args " '$ac_arg'"
3189 ;;
3190 esac
3191 done
3192 done
3193 { ac_configure_args0=; unset ac_configure_args0;}
3194 { ac_configure_args1=; unset ac_configure_args1;}
3195
3196 # When interrupted or exit'd, cleanup temporary files, and complete
3197 # config.log. We remove comments because anyway the quotes in there
3198 # would cause problems or look ugly.
3199 # WARNING: Use '\'' to represent an apostrophe within the trap.
3200 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3201 trap 'exit_status=$?
3202 # Save into config.log some information that might help in debugging.
3203 {
3204 echo
3205
3206 cat <<\_ASBOX
3207 ## ---------------- ##
3208 ## Cache variables. ##
3209 ## ---------------- ##
3210 _ASBOX
3211 echo
3212 # The following way of writing the cache mishandles newlines in values,
3213 (
3214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3215 eval ac_val=\$$ac_var
3216 case $ac_val in #(
3217 *${as_nl}*)
3218 case $ac_var in #(
3219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3221 esac
3222 case $ac_var in #(
3223 _ | IFS | as_nl) ;; #(
3224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3225 *) { eval $ac_var=; unset $ac_var;} ;;
3226 esac ;;
3227 esac
3228 done
3229 (set) 2>&1 |
3230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3231 *${as_nl}ac_space=\ *)
3232 sed -n \
3233 "s/'\''/'\''\\\\'\'''\''/g;
3234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3235 ;; #(
3236 *)
3237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3238 ;;
3239 esac |
3240 sort
3241 )
3242 echo
3243
3244 cat <<\_ASBOX
3245 ## ----------------- ##
3246 ## Output variables. ##
3247 ## ----------------- ##
3248 _ASBOX
3249 echo
3250 for ac_var in $ac_subst_vars
3251 do
3252 eval ac_val=\$$ac_var
3253 case $ac_val in
3254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3255 esac
3256 $as_echo "$ac_var='\''$ac_val'\''"
3257 done | sort
3258 echo
3259
3260 if test -n "$ac_subst_files"; then
3261 cat <<\_ASBOX
3262 ## ------------------- ##
3263 ## File substitutions. ##
3264 ## ------------------- ##
3265 _ASBOX
3266 echo
3267 for ac_var in $ac_subst_files
3268 do
3269 eval ac_val=\$$ac_var
3270 case $ac_val in
3271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3272 esac
3273 $as_echo "$ac_var='\''$ac_val'\''"
3274 done | sort
3275 echo
3276 fi
3277
3278 if test -s confdefs.h; then
3279 cat <<\_ASBOX
3280 ## ----------- ##
3281 ## confdefs.h. ##
3282 ## ----------- ##
3283 _ASBOX
3284 echo
3285 cat confdefs.h
3286 echo
3287 fi
3288 test "$ac_signal" != 0 &&
3289 $as_echo "$as_me: caught signal $ac_signal"
3290 $as_echo "$as_me: exit $exit_status"
3291 } >&5
3292 rm -f core *.core core.conftest.* &&
3293 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3294 exit $exit_status
3295 ' 0
3296 for ac_signal in 1 2 13 15; do
3297 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3298 done
3299 ac_signal=0
3300
3301 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3302 rm -f -r conftest* confdefs.h
3303
3304 $as_echo "/* confdefs.h */" > confdefs.h
3305
3306 # Predefined preprocessor variables.
3307
3308 cat >>confdefs.h <<_ACEOF
3309 #define PACKAGE_NAME "$PACKAGE_NAME"
3310 _ACEOF
3311
3312 cat >>confdefs.h <<_ACEOF
3313 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3314 _ACEOF
3315
3316 cat >>confdefs.h <<_ACEOF
3317 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3318 _ACEOF
3319
3320 cat >>confdefs.h <<_ACEOF
3321 #define PACKAGE_STRING "$PACKAGE_STRING"
3322 _ACEOF
3323
3324 cat >>confdefs.h <<_ACEOF
3325 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3326 _ACEOF
3327
3328 cat >>confdefs.h <<_ACEOF
3329 #define PACKAGE_URL "$PACKAGE_URL"
3330 _ACEOF
3331
3332
3333 # Let the site file select an alternate cache file if it wants to.
3334 # Prefer an explicitly selected file to automatically selected ones.
3335 ac_site_file1=NONE
3336 ac_site_file2=NONE
3337 if test -n "$CONFIG_SITE"; then
3338 ac_site_file1=$CONFIG_SITE
3339 elif test "x$prefix" != xNONE; then
3340 ac_site_file1=$prefix/share/config.site
3341 ac_site_file2=$prefix/etc/config.site
3342 else
3343 ac_site_file1=$ac_default_prefix/share/config.site
3344 ac_site_file2=$ac_default_prefix/etc/config.site
3345 fi
3346 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3347 do
3348 test "x$ac_site_file" = xNONE && continue
3349 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3351 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3352 sed 's/^/| /' "$ac_site_file" >&5
3353 . "$ac_site_file"
3354 fi
3355 done
3356
3357 if test -r "$cache_file"; then
3358 # Some versions of bash will fail to source /dev/null (special files
3359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3362 $as_echo "$as_me: loading cache $cache_file" >&6;}
3363 case $cache_file in
3364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3365 *) . "./$cache_file";;
3366 esac
3367 fi
3368 else
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3370 $as_echo "$as_me: creating cache $cache_file" >&6;}
3371 >$cache_file
3372 fi
3373
3374 as_fn_append ac_header_list " sys/systeminfo.h"
3375 as_fn_append ac_header_list " coff.h"
3376 as_fn_append ac_header_list " pty.h"
3377 as_fn_append ac_header_list " sys/resource.h"
3378 as_fn_append ac_header_list " sys/utsname.h"
3379 as_fn_append ac_header_list " pwd.h"
3380 as_fn_append ac_header_list " utmp.h"
3381 as_fn_append ac_header_list " util.h"
3382 as_fn_append ac_header_list " sys/socket.h"
3383 as_fn_append ac_header_list " stdlib.h"
3384 as_fn_append ac_header_list " unistd.h"
3385 as_fn_append ac_header_list " sys/param.h"
3386 as_fn_append ac_header_list " pthread.h"
3387 as_fn_append ac_header_list " malloc/malloc.h"
3388 as_fn_append ac_header_list " maillock.h"
3389 as_fn_append ac_header_list " sys/un.h"
3390 as_fn_append ac_func_list " tzset"
3391 as_fn_append ac_func_list " readlinkat"
3392 as_fn_append ac_header_list " dirent.h"
3393 as_fn_append ac_header_list " execinfo.h"
3394 as_fn_append ac_func_list " faccessat"
3395 as_fn_append ac_func_list " fcntl"
3396 as_fn_append ac_func_list " fdopendir"
3397 as_fn_append ac_header_list " stdio_ext.h"
3398 as_fn_append ac_func_list " fstatat"
3399 as_fn_append ac_func_list " fsync"
3400 gl_getopt_required=GNU
3401 as_fn_append ac_header_list " getopt.h"
3402 as_fn_append ac_func_list " gettimeofday"
3403 as_fn_append ac_func_list " nanotime"
3404 as_fn_append ac_header_list " sys/time.h"
3405 as_fn_append ac_header_list " wchar.h"
3406 as_fn_append ac_header_list " stdint.h"
3407 as_fn_append ac_header_list " inttypes.h"
3408 as_fn_append ac_func_list " lstat"
3409 as_fn_append ac_func_list " mkostemp"
3410 as_fn_append ac_func_list " pipe2"
3411 as_fn_append ac_header_list " sys/select.h"
3412 as_fn_append ac_func_list " pselect"
3413 as_fn_append ac_func_list " pthread_sigmask"
3414 as_fn_append ac_func_list " readlink"
3415 as_fn_append ac_func_list " strtoimax"
3416 as_fn_append ac_func_list " strtoumax"
3417 as_fn_append ac_func_list " symlink"
3418 as_fn_append ac_header_list " sys/stat.h"
3419 as_fn_append ac_func_list " localtime_r"
3420 as_fn_append ac_header_list " utime.h"
3421 as_fn_append ac_func_list " futimes"
3422 as_fn_append ac_func_list " futimesat"
3423 as_fn_append ac_func_list " futimens"
3424 as_fn_append ac_func_list " utimensat"
3425 as_fn_append ac_func_list " lutimes"
3426 as_fn_append ac_func_list " getdtablesize"
3427 as_fn_append ac_func_list " secure_getenv"
3428 # Check that the precious variables saved in the cache have kept the same
3429 # value.
3430 ac_cache_corrupted=false
3431 for ac_var in $ac_precious_vars; do
3432 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3433 eval ac_new_set=\$ac_env_${ac_var}_set
3434 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3435 eval ac_new_val=\$ac_env_${ac_var}_value
3436 case $ac_old_set,$ac_new_set in
3437 set,)
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3439 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3440 ac_cache_corrupted=: ;;
3441 ,set)
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3443 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3444 ac_cache_corrupted=: ;;
3445 ,);;
3446 *)
3447 if test "x$ac_old_val" != "x$ac_new_val"; then
3448 # differences in whitespace do not lead to failure.
3449 ac_old_val_w=`echo x $ac_old_val`
3450 ac_new_val_w=`echo x $ac_new_val`
3451 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3453 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3454 ac_cache_corrupted=:
3455 else
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3457 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3458 eval $ac_var=\$ac_old_val
3459 fi
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3461 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3463 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3464 fi;;
3465 esac
3466 # Pass precious variables to config.status.
3467 if test "$ac_new_set" = set; then
3468 case $ac_new_val in
3469 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3470 *) ac_arg=$ac_var=$ac_new_val ;;
3471 esac
3472 case " $ac_configure_args " in
3473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3474 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3475 esac
3476 fi
3477 done
3478 if $ac_cache_corrupted; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3482 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3483 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3484 fi
3485 ## -------------------- ##
3486 ## Main body of script. ##
3487 ## -------------------- ##
3488
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494
3495
3496
3497 emacs_config_options=
3498 optsep=
3499 for opt in ${1+"$@"} CFLAGS CPPFLAGS LDFLAGS; do
3500 case $opt in
3501 -n | --no-create | --no-recursion)
3502 continue ;;
3503 CFLAGS | CPPFLAGS | LDFLAGS)
3504 eval 'test "${'$opt'+set}" = set' || continue
3505 case " $*" in
3506 *" $opt="*) continue ;;
3507 esac
3508 eval opt=$opt=\$$opt ;;
3509 esac
3510
3511 emacs_shell_specials=$IFS\''"#$&()*;<>?[\\`{|~'
3512 case $opt in
3513 *["$emacs_shell_specials"]*)
3514 case $opt in
3515 *\'*)
3516 emacs_quote_apostrophes="s/'/'\\\\''/g"
3517 opt=`$as_echo "$opt" | sed "$emacs_quote_apostrophes"` ;;
3518 esac
3519 opt="'$opt'"
3520 case $opt in
3521 *['"\\']*)
3522 emacs_quote_for_c='s/["\\]/\\&/g; $!s/$/\\n\\/'
3523 opt=`$as_echo "$opt" | sed "$emacs_quote_for_c"` ;;
3524 esac ;;
3525 esac
3526 as_fn_append emacs_config_options "$optsep$opt"
3527 optsep=' '
3528 done
3529
3530 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3531
3532
3533 ac_aux_dir=
3534 for ac_dir in build-aux "$srcdir"/build-aux; do
3535 for ac_t in install-sh install.sh shtool; do
3536 if test -f "$ac_dir/$ac_t"; then
3537 ac_aux_dir=$ac_dir
3538 ac_install_sh="$ac_aux_dir/$ac_t -c"
3539 break 2
3540 fi
3541 done
3542 done
3543 if test -z "$ac_aux_dir"; then
3544 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3545 fi
3546
3547 # These three variables are undocumented and unsupported,
3548 # and are intended to be withdrawn in a future Autoconf release.
3549 # They can cause serious problems if a builder's source tree is in a directory
3550 # whose full name contains unusual characters.
3551 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3552 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3553 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3554
3555
3556 am__api_version='1.11'
3557
3558 # Find a good install program. We prefer a C program (faster),
3559 # so one script is as good as another. But avoid the broken or
3560 # incompatible versions:
3561 # SysV /etc/install, /usr/sbin/install
3562 # SunOS /usr/etc/install
3563 # IRIX /sbin/install
3564 # AIX /bin/install
3565 # AmigaOS /C/install, which installs bootblocks on floppy discs
3566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3569 # OS/2's system install, which has a completely different semantic
3570 # ./install, which can be erroneously created by make from ./install.sh.
3571 # Reject install programs that cannot install multiple files.
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3573 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3574 if test -z "$INSTALL"; then
3575 if test "${ac_cv_path_install+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 # Account for people who put trailing slashes in PATH elements.
3584 case $as_dir/ in #((
3585 ./ | .// | /[cC]/* | \
3586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3587 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3588 /usr/ucb/* ) ;;
3589 *)
3590 # OSF1 and SCO ODT 3.0 have their own names for install.
3591 # Don't use installbsd from OSF since it installs stuff as root
3592 # by default.
3593 for ac_prog in ginstall scoinst install; do
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3596 if test $ac_prog = install &&
3597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3598 # AIX install. It has an incompatible calling convention.
3599 :
3600 elif test $ac_prog = install &&
3601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3602 # program-specific install script used by HP pwplus--don't use.
3603 :
3604 else
3605 rm -rf conftest.one conftest.two conftest.dir
3606 echo one > conftest.one
3607 echo two > conftest.two
3608 mkdir conftest.dir
3609 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3610 test -s conftest.one && test -s conftest.two &&
3611 test -s conftest.dir/conftest.one &&
3612 test -s conftest.dir/conftest.two
3613 then
3614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3615 break 3
3616 fi
3617 fi
3618 fi
3619 done
3620 done
3621 ;;
3622 esac
3623
3624 done
3625 IFS=$as_save_IFS
3626
3627 rm -rf conftest.one conftest.two conftest.dir
3628
3629 fi
3630 if test "${ac_cv_path_install+set}" = set; then
3631 INSTALL=$ac_cv_path_install
3632 else
3633 # As a last resort, use the slow shell script. Don't cache a
3634 # value for INSTALL within a source directory, because that will
3635 # break other packages using the cache if that directory is
3636 # removed, or if the value is a relative name.
3637 INSTALL=$ac_install_sh
3638 fi
3639 fi
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3641 $as_echo "$INSTALL" >&6; }
3642
3643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3644 # It thinks the first close brace ends the variable substitution.
3645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3646
3647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3648
3649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3650
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3652 $as_echo_n "checking whether build environment is sane... " >&6; }
3653 # Just in case
3654 sleep 1
3655 echo timestamp > conftest.file
3656 # Reject unsafe characters in $srcdir or the absolute working directory
3657 # name. Accept space and tab only in the latter.
3658 am_lf='
3659 '
3660 case `pwd` in
3661 *[\\\"\#\$\&\'\`$am_lf]*)
3662 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3663 esac
3664 case $srcdir in
3665 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3666 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3667 esac
3668
3669 # Do `set' in a subshell so we don't clobber the current shell's
3670 # arguments. Must try -L first in case configure is actually a
3671 # symlink; some systems play weird games with the mod time of symlinks
3672 # (eg FreeBSD returns the mod time of the symlink's containing
3673 # directory).
3674 if (
3675 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3676 if test "$*" = "X"; then
3677 # -L didn't work.
3678 set X `ls -t "$srcdir/configure" conftest.file`
3679 fi
3680 rm -f conftest.file
3681 if test "$*" != "X $srcdir/configure conftest.file" \
3682 && test "$*" != "X conftest.file $srcdir/configure"; then
3683
3684 # If neither matched, then we have a broken ls. This can happen
3685 # if, for instance, CONFIG_SHELL is bash and it inherits a
3686 # broken ls alias from the environment. This has actually
3687 # happened. Such a system could not be considered "sane".
3688 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3689 alias in your environment" "$LINENO" 5
3690 fi
3691
3692 test "$2" = conftest.file
3693 )
3694 then
3695 # Ok.
3696 :
3697 else
3698 as_fn_error "newly created file is older than distributed files!
3699 Check your system clock" "$LINENO" 5
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3702 $as_echo "yes" >&6; }
3703 test "$program_prefix" != NONE &&
3704 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3705 # Use a double $ so make ignores it.
3706 test "$program_suffix" != NONE &&
3707 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3708 # Double any \ or $.
3709 # By default was `s,x,x', remove it if useless.
3710 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3711 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3712
3713 # expand $ac_aux_dir to an absolute path
3714 am_aux_dir=`cd $ac_aux_dir && pwd`
3715
3716 if test x"${MISSING+set}" != xset; then
3717 case $am_aux_dir in
3718 *\ * | *\ *)
3719 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3720 *)
3721 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3722 esac
3723 fi
3724 # Use eval to expand $SHELL
3725 if eval "$MISSING --run true"; then
3726 am_missing_run="$MISSING --run "
3727 else
3728 am_missing_run=
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3730 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3731 fi
3732
3733 if test x"${install_sh}" != xset; then
3734 case $am_aux_dir in
3735 *\ * | *\ *)
3736 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3737 *)
3738 install_sh="\${SHELL} $am_aux_dir/install-sh"
3739 esac
3740 fi
3741
3742 # Installed binaries are usually stripped using `strip' when the user
3743 # run `make install-strip'. However `strip' might not be the right
3744 # tool to use in cross-compilation environments, therefore Automake
3745 # will honor the `STRIP' environment variable to overrule this program.
3746 if test "$cross_compiling" != no; then
3747 if test -n "$ac_tool_prefix"; then
3748 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3749 set dummy ${ac_tool_prefix}strip; ac_word=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if test "${ac_cv_prog_STRIP+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 if test -n "$STRIP"; then
3756 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3765 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3768 fi
3769 done
3770 done
3771 IFS=$as_save_IFS
3772
3773 fi
3774 fi
3775 STRIP=$ac_cv_prog_STRIP
3776 if test -n "$STRIP"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3778 $as_echo "$STRIP" >&6; }
3779 else
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3782 fi
3783
3784
3785 fi
3786 if test -z "$ac_cv_prog_STRIP"; then
3787 ac_ct_STRIP=$STRIP
3788 # Extract the first word of "strip", so it can be a program name with args.
3789 set dummy strip; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 if test -n "$ac_ct_STRIP"; then
3796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3800 do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_ac_ct_STRIP="strip"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809 done
3810 done
3811 IFS=$as_save_IFS
3812
3813 fi
3814 fi
3815 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3816 if test -n "$ac_ct_STRIP"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3818 $as_echo "$ac_ct_STRIP" >&6; }
3819 else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3822 fi
3823
3824 if test "x$ac_ct_STRIP" = x; then
3825 STRIP=":"
3826 else
3827 case $cross_compiling:$ac_tool_warned in
3828 yes:)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831 ac_tool_warned=yes ;;
3832 esac
3833 STRIP=$ac_ct_STRIP
3834 fi
3835 else
3836 STRIP="$ac_cv_prog_STRIP"
3837 fi
3838
3839 fi
3840 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3841
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3843 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3844 if test -z "$MKDIR_P"; then
3845 if test "${ac_cv_path_mkdir+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3850 do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in mkdir gmkdir; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3856 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3857 'mkdir (GNU coreutils) '* | \
3858 'mkdir (coreutils) '* | \
3859 'mkdir (fileutils) '4.1*)
3860 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3861 break 3;;
3862 esac
3863 done
3864 done
3865 done
3866 IFS=$as_save_IFS
3867
3868 fi
3869
3870 test -d ./--version && rmdir ./--version
3871 if test "${ac_cv_path_mkdir+set}" = set; then
3872 MKDIR_P="$ac_cv_path_mkdir -p"
3873 else
3874 # As a last resort, use the slow shell script. Don't cache a
3875 # value for MKDIR_P within a source directory, because that will
3876 # break other packages using the cache if that directory is
3877 # removed, or if the value is a relative name.
3878 MKDIR_P="$ac_install_sh -d"
3879 fi
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3882 $as_echo "$MKDIR_P" >&6; }
3883
3884 mkdir_p="$MKDIR_P"
3885 case $mkdir_p in
3886 [\\/$]* | ?:[\\/]*) ;;
3887 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3888 esac
3889
3890 for ac_prog in gawk mawk nawk awk
3891 do
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy $ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if test "${ac_cv_prog_AWK+set}" = set; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$AWK"; then
3900 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_prog_AWK="$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913 done
3914 done
3915 IFS=$as_save_IFS
3916
3917 fi
3918 fi
3919 AWK=$ac_cv_prog_AWK
3920 if test -n "$AWK"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3922 $as_echo "$AWK" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 fi
3927
3928
3929 test -n "$AWK" && break
3930 done
3931
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3933 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3934 set x ${MAKE-make}
3935 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3936 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 cat >conftest.make <<\_ACEOF
3940 SHELL = /bin/sh
3941 all:
3942 @echo '@@@%%%=$(MAKE)=@@@%%%'
3943 _ACEOF
3944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3945 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3946 *@@@%%%=?*=@@@%%%*)
3947 eval ac_cv_prog_make_${ac_make}_set=yes;;
3948 *)
3949 eval ac_cv_prog_make_${ac_make}_set=no;;
3950 esac
3951 rm -f conftest.make
3952 fi
3953 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3955 $as_echo "yes" >&6; }
3956 SET_MAKE=
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 SET_MAKE="MAKE=${MAKE-make}"
3961 fi
3962
3963 rm -rf .tst 2>/dev/null
3964 mkdir .tst 2>/dev/null
3965 if test -d .tst; then
3966 am__leading_dot=.
3967 else
3968 am__leading_dot=_
3969 fi
3970 rmdir .tst 2>/dev/null
3971
3972 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3973 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3974 # is not polluted with repeated "-I."
3975 am__isrc=' -I$(srcdir)'
3976 # test to see if srcdir already configured
3977 if test -f $srcdir/config.status; then
3978 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3979 fi
3980 fi
3981
3982 # test whether we have cygpath
3983 if test -z "$CYGPATH_W"; then
3984 if (cygpath --version) >/dev/null 2>/dev/null; then
3985 CYGPATH_W='cygpath -w'
3986 else
3987 CYGPATH_W=echo
3988 fi
3989 fi
3990
3991
3992 # Define the identity of the package.
3993 PACKAGE='emacs'
3994 VERSION='24.3.50'
3995
3996
3997 cat >>confdefs.h <<_ACEOF
3998 #define PACKAGE "$PACKAGE"
3999 _ACEOF
4000
4001
4002 cat >>confdefs.h <<_ACEOF
4003 #define VERSION "$VERSION"
4004 _ACEOF
4005
4006 # Some tools Automake needs.
4007
4008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4009
4010
4011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4012
4013
4014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4015
4016
4017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4018
4019
4020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4021
4022 # We need awk for the "check" target. The system "awk" is bad on
4023 # some platforms.
4024 # Always define AMTAR for backward compatibility.
4025
4026 AMTAR=${AMTAR-"${am_missing_run}tar"}
4027
4028 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038 temp_srcdir=`cd "$srcdir"; pwd`
4039
4040 for var in "`pwd`" "$temp_srcdir" "$prefix" "$exec_prefix" \
4041 "$datarootdir" "$bindir" "$datadir" "$sharedstatedir" "$libexecdir"; do
4042
4043 case "$var" in
4044 *[^\ -~]*) as_fn_error "Emacs cannot be built or installed in a directory whose name contains non-ASCII characters: $var" "$LINENO" 5 ;;
4045 esac
4046
4047 done
4048
4049 lispdir='${datadir}/emacs/${version}/lisp'
4050 leimdir='${datadir}/emacs/${version}/leim'
4051 standardlisppath='${lispdir}:${leimdir}'
4052 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
4053 '${datadir}/emacs/site-lisp'
4054 lisppath='${locallisppath}:${standardlisppath}'
4055 etcdir='${datadir}/emacs/${version}/etc'
4056 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
4057 etcdocdir='${datadir}/emacs/${version}/etc'
4058 gamedir='${localstatedir}/games/emacs'
4059
4060
4061 # Check whether --with-all was given.
4062 if test "${with_all+set}" = set; then :
4063 withval=$with_all; with_features=$withval
4064 else
4065 with_features=yes
4066 fi
4067
4068
4069
4070
4071
4072 # Check whether --with-pop was given.
4073 if test "${with_pop+set}" = set; then :
4074 withval=$with_pop;
4075 else
4076 with_pop=$with_features
4077 fi
4078
4079 if test "$with_pop" = yes; then
4080 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4081
4082 fi
4083
4084
4085 # Check whether --with-kerberos was given.
4086 if test "${with_kerberos+set}" = set; then :
4087 withval=$with_kerberos;
4088 else
4089 with_kerberos=no
4090 fi
4091
4092 if test "$with_kerberos" != no; then
4093 $as_echo "#define KERBEROS 1" >>confdefs.h
4094
4095 fi
4096
4097
4098 # Check whether --with-kerberos5 was given.
4099 if test "${with_kerberos5+set}" = set; then :
4100 withval=$with_kerberos5;
4101 else
4102 with_kerberos5=no
4103 fi
4104
4105 if test "${with_kerberos5}" != no; then
4106 if test "${with_kerberos}" = no; then
4107 with_kerberos=yes
4108 $as_echo "#define KERBEROS 1" >>confdefs.h
4109
4110 fi
4111
4112 $as_echo "#define KERBEROS5 1" >>confdefs.h
4113
4114 fi
4115
4116
4117 # Check whether --with-hesiod was given.
4118 if test "${with_hesiod+set}" = set; then :
4119 withval=$with_hesiod;
4120 else
4121 with_hesiod=no
4122 fi
4123
4124 if test "$with_hesiod" != no; then
4125
4126 $as_echo "#define HESIOD 1" >>confdefs.h
4127
4128 fi
4129
4130
4131 # Check whether --with-mmdf was given.
4132 if test "${with_mmdf+set}" = set; then :
4133 withval=$with_mmdf;
4134 else
4135 with_mmdf=no
4136 fi
4137
4138 if test "$with_mmdf" != no; then
4139
4140 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4141
4142 fi
4143
4144
4145 # Check whether --with-mail-unlink was given.
4146 if test "${with_mail_unlink+set}" = set; then :
4147 withval=$with_mail_unlink;
4148 else
4149 with_mail_unlink=no
4150 fi
4151
4152 if test "$with_mail_unlink" != no; then
4153
4154 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4155
4156 fi
4157
4158
4159 # Check whether --with-mailhost was given.
4160 if test "${with_mailhost+set}" = set; then :
4161 withval=$with_mailhost;
4162 cat >>confdefs.h <<_ACEOF
4163 #define MAILHOST "$withval"
4164 _ACEOF
4165
4166 fi
4167
4168
4169
4170 # Check whether --with-sound was given.
4171 if test "${with_sound+set}" = set; then :
4172 withval=$with_sound; case "${withval}" in
4173 yes|no|alsa|oss|bsd-ossaudio) val=$withval ;;
4174 *) as_fn_error "\`--with-sound=$withval' is invalid;
4175 this option's value should be \`yes', \`no', \`alsa', \`oss', or \`bsd-ossaudio'." "$LINENO" 5
4176 ;;
4177 esac
4178 with_sound=$val
4179
4180 else
4181 with_sound=$with_features
4182 fi
4183
4184
4185
4186 # Check whether --with-x-toolkit was given.
4187 if test "${with_x_toolkit+set}" = set; then :
4188 withval=$with_x_toolkit; case "${withval}" in
4189 y | ye | yes ) val=gtk ;;
4190 n | no ) val=no ;;
4191 l | lu | luc | luci | lucid ) val=lucid ;;
4192 a | at | ath | athe | athen | athena ) val=athena ;;
4193 m | mo | mot | moti | motif ) val=motif ;;
4194 g | gt | gtk ) val=gtk ;;
4195 gtk2 ) val=gtk2 ;;
4196 gtk3 ) val=gtk3 ;;
4197 * )
4198 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4199 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4200 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4201 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4202 ;;
4203 esac
4204 with_x_toolkit=$val
4205
4206 fi
4207
4208
4209
4210 # Check whether --with-wide-int was given.
4211 if test "${with_wide_int+set}" = set; then :
4212 withval=$with_wide_int;
4213 else
4214 with_wide_int=no
4215 fi
4216
4217 if test "$with_wide_int" = yes; then
4218
4219 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4220
4221 fi
4222
4223
4224 # Check whether --with-xpm was given.
4225 if test "${with_xpm+set}" = set; then :
4226 withval=$with_xpm;
4227 else
4228 with_xpm=$with_features
4229 fi
4230
4231
4232 # Check whether --with-jpeg was given.
4233 if test "${with_jpeg+set}" = set; then :
4234 withval=$with_jpeg;
4235 else
4236 with_jpeg=$with_features
4237 fi
4238
4239
4240 # Check whether --with-tiff was given.
4241 if test "${with_tiff+set}" = set; then :
4242 withval=$with_tiff;
4243 else
4244 with_tiff=$with_features
4245 fi
4246
4247
4248 # Check whether --with-gif was given.
4249 if test "${with_gif+set}" = set; then :
4250 withval=$with_gif;
4251 else
4252 with_gif=$with_features
4253 fi
4254
4255
4256 # Check whether --with-png was given.
4257 if test "${with_png+set}" = set; then :
4258 withval=$with_png;
4259 else
4260 with_png=$with_features
4261 fi
4262
4263
4264 # Check whether --with-rsvg was given.
4265 if test "${with_rsvg+set}" = set; then :
4266 withval=$with_rsvg;
4267 else
4268 with_rsvg=$with_features
4269 fi
4270
4271
4272 # Check whether --with-xml2 was given.
4273 if test "${with_xml2+set}" = set; then :
4274 withval=$with_xml2;
4275 else
4276 with_xml2=$with_features
4277 fi
4278
4279
4280 # Check whether --with-imagemagick was given.
4281 if test "${with_imagemagick+set}" = set; then :
4282 withval=$with_imagemagick;
4283 else
4284 with_imagemagick=$with_features
4285 fi
4286
4287
4288
4289 # Check whether --with-xft was given.
4290 if test "${with_xft+set}" = set; then :
4291 withval=$with_xft;
4292 else
4293 with_xft=$with_features
4294 fi
4295
4296
4297 # Check whether --with-libotf was given.
4298 if test "${with_libotf+set}" = set; then :
4299 withval=$with_libotf;
4300 else
4301 with_libotf=$with_features
4302 fi
4303
4304
4305 # Check whether --with-m17n-flt was given.
4306 if test "${with_m17n_flt+set}" = set; then :
4307 withval=$with_m17n_flt;
4308 else
4309 with_m17n_flt=$with_features
4310 fi
4311
4312
4313
4314 # Check whether --with-toolkit-scroll-bars was given.
4315 if test "${with_toolkit_scroll_bars+set}" = set; then :
4316 withval=$with_toolkit_scroll_bars;
4317 else
4318 with_toolkit_scroll_bars=$with_features
4319 fi
4320
4321
4322 # Check whether --with-xaw3d was given.
4323 if test "${with_xaw3d+set}" = set; then :
4324 withval=$with_xaw3d;
4325 else
4326 with_xaw3d=$with_features
4327 fi
4328
4329
4330 # Check whether --with-xim was given.
4331 if test "${with_xim+set}" = set; then :
4332 withval=$with_xim;
4333 else
4334 with_xim=$with_features
4335 fi
4336
4337
4338 # Check whether --with-ns was given.
4339 if test "${with_ns+set}" = set; then :
4340 withval=$with_ns;
4341 else
4342 with_ns=no
4343 fi
4344
4345
4346 # Check whether --with-w32 was given.
4347 if test "${with_w32+set}" = set; then :
4348 withval=$with_w32;
4349 else
4350 with_w32=no
4351 fi
4352
4353
4354
4355 # Check whether --with-gpm was given.
4356 if test "${with_gpm+set}" = set; then :
4357 withval=$with_gpm;
4358 else
4359 with_gpm=$with_features
4360 fi
4361
4362
4363 # Check whether --with-dbus was given.
4364 if test "${with_dbus+set}" = set; then :
4365 withval=$with_dbus;
4366 else
4367 with_dbus=$with_features
4368 fi
4369
4370
4371 # Check whether --with-gconf was given.
4372 if test "${with_gconf+set}" = set; then :
4373 withval=$with_gconf;
4374 else
4375 with_gconf=$with_features
4376 fi
4377
4378
4379 # Check whether --with-gsettings was given.
4380 if test "${with_gsettings+set}" = set; then :
4381 withval=$with_gsettings;
4382 else
4383 with_gsettings=$with_features
4384 fi
4385
4386
4387 # Check whether --with-selinux was given.
4388 if test "${with_selinux+set}" = set; then :
4389 withval=$with_selinux;
4390 else
4391 with_selinux=$with_features
4392 fi
4393
4394
4395 # Check whether --with-gnutls was given.
4396 if test "${with_gnutls+set}" = set; then :
4397 withval=$with_gnutls;
4398 else
4399 with_gnutls=$with_features
4400 fi
4401
4402
4403 # Check whether --with-zlib was given.
4404 if test "${with_zlib+set}" = set; then :
4405 withval=$with_zlib;
4406 else
4407 with_zlib=$with_features
4408 fi
4409
4410
4411
4412 # Check whether --with-file-notification was given.
4413 if test "${with_file_notification+set}" = set; then :
4414 withval=$with_file_notification; case "${withval}" in
4415 y | ye | yes ) val=yes ;;
4416 n | no ) val=no ;;
4417 g | gf | gfi | gfil | gfile ) val=gfile ;;
4418 i | in | ino | inot | inoti | inotif | inotify ) val=inotify ;;
4419 w | w3 | w32 ) val=w32 ;;
4420 * ) as_fn_error "\`--with-file-notification=$withval' is invalid;
4421 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4422 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4423 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4424 ;;
4425 esac
4426 with_file_notification=$val
4427
4428 else
4429 with_file_notification=$with_features
4430 fi
4431
4432
4433 ## For the times when you want to build Emacs but don't have
4434 ## a suitable makeinfo, and can live without the manuals.
4435
4436 # Check whether --with-makeinfo was given.
4437 if test "${with_makeinfo+set}" = set; then :
4438 withval=$with_makeinfo;
4439 else
4440 with_makeinfo=$with_features
4441 fi
4442
4443
4444 ## Makefile.in needs the cache file name.
4445
4446
4447 ## This is an option because I do not know if all info/man support
4448 ## compressed files, nor how to test if they do so.
4449
4450 # Check whether --with-compress-install was given.
4451 if test "${with_compress_install+set}" = set; then :
4452 withval=$with_compress_install;
4453 else
4454 with_compress_install=$with_features
4455 fi
4456
4457
4458
4459 # Check whether --with-pkg-config-prog was given.
4460 if test "${with_pkg_config_prog+set}" = set; then :
4461 withval=$with_pkg_config_prog;
4462 fi
4463
4464 if test "X${with_pkg_config_prog}" != X; then
4465 if test "${with_pkg_config_prog}" != yes; then
4466 PKG_CONFIG="${with_pkg_config_prog}"
4467 fi
4468 fi
4469
4470
4471 # Check whether --with-gameuser was given.
4472 if test "${with_gameuser+set}" = set; then :
4473 withval=$with_gameuser;
4474 fi
4475
4476 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4477 && gameuser="${with_gameuser}"
4478 test "X$gameuser" = X && gameuser=games
4479
4480
4481 # Check whether --with-gnustep-conf was given.
4482 if test "${with_gnustep_conf+set}" = set; then :
4483 withval=$with_gnustep_conf;
4484 fi
4485
4486 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4487 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4488 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4489 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4490
4491 # Check whether --enable-ns-self-contained was given.
4492 if test "${enable_ns_self_contained+set}" = set; then :
4493 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4494 else
4495 EN_NS_SELF_CONTAINED=yes
4496 fi
4497
4498
4499 # Check whether --enable-locallisppath was given.
4500 if test "${enable_locallisppath+set}" = set; then :
4501 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4502 locallisppath=
4503 elif test "${enableval}" != "yes"; then
4504 locallisppath=${enableval}
4505 fi
4506 fi
4507
4508
4509 # Check whether --enable-checking was given.
4510 if test "${enable_checking+set}" = set; then :
4511 enableval=$enable_checking; ac_checking_flags="${enableval}"
4512 fi
4513
4514 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4515 for check in $ac_checking_flags
4516 do
4517 case $check in
4518 # these set all the flags to specific states
4519 yes) ac_enable_checking=1 ;;
4520 no) ac_enable_checking= ;
4521 ac_gc_check_stringbytes= ;
4522 ac_gc_check_string_overrun= ;
4523 ac_gc_check_string_free_list= ;
4524 ac_xmalloc_overrun= ;
4525 ac_gc_check_cons_list= ;
4526 ac_glyphs_debug= ;;
4527 all) ac_enable_checking=1 ;
4528 ac_gc_check_stringbytes=1 ;
4529 ac_gc_check_string_overrun=1 ;
4530 ac_gc_check_string_free_list=1 ;
4531 ac_xmalloc_overrun=1 ;
4532 ac_gc_check_cons_list=1 ;
4533 ac_glyphs_debug=1 ;;
4534 # these enable particular checks
4535 stringbytes) ac_gc_check_stringbytes=1 ;;
4536 stringoverrun) ac_gc_check_string_overrun=1 ;;
4537 stringfreelist) ac_gc_check_string_free_list=1 ;;
4538 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4539 conslist) ac_gc_check_cons_list=1 ;;
4540 glyphs) ac_glyphs_debug=1 ;;
4541 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4542 esac
4543 done
4544 IFS="$ac_save_IFS"
4545
4546 if test x$ac_enable_checking != x ; then
4547
4548 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4549
4550 fi
4551 if test x$ac_gc_check_stringbytes != x ; then
4552
4553 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4554
4555 fi
4556 if test x$ac_gc_check_string_overrun != x ; then
4557
4558 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4559
4560 fi
4561 if test x$ac_gc_check_string_free_list != x ; then
4562
4563 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4564
4565 fi
4566 if test x$ac_xmalloc_overrun != x ; then
4567
4568 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4569
4570 fi
4571 if test x$ac_gc_check_cons_list != x ; then
4572
4573 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4574
4575 fi
4576 if test x$ac_glyphs_debug != x ; then
4577
4578 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4579
4580 fi
4581
4582 # Check whether --enable-check-lisp-object-type was given.
4583 if test "${enable_check_lisp_object_type+set}" = set; then :
4584 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4585
4586 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4587
4588 fi
4589 fi
4590
4591
4592
4593 # Check whether --enable-profiling was given.
4594 if test "${enable_profiling+set}" = set; then :
4595 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4596 fi
4597
4598 if test x$ac_enable_profiling != x ; then
4599 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4600 else
4601 PROFILING_CFLAGS=
4602 fi
4603
4604
4605 # Check whether --enable-autodepend was given.
4606 if test "${enable_autodepend+set}" = set; then :
4607 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4608 else
4609 ac_enable_autodepend=yes
4610 fi
4611
4612
4613 # Check whether --enable-gtk-deprecation-warnings was given.
4614 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4615 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4616 fi
4617
4618
4619 #### When building with MinGW inside the MSYS tree, 'pwd' produces
4620 #### directories relative to the root of the MSYS tree,
4621 #### e.g. '/home/user/foo' instead of '/d/MSYS/home/user/foo'. When
4622 #### such a value of srcdir is written to the top-level Makefile, it
4623 #### gets propagated to src/epaths.h, and that causes temacs to fail,
4624 #### because, being a MinGW program that knows nothing of MSYS root
4625 #### substitution, it cannot find the data directory. "pwd -W"
4626 #### produces Windows-style 'd:/foo/bar' absolute directory names, so
4627 #### we use it here to countermand that lossage.
4628 test "$MSYSTEM" = "MINGW32" && abs_srcdir=`(cd "$abs_srcdir"; pwd -W | sed -e 's,^\([A-Za-z]\):,/\1,')`
4629
4630 ### Canonicalize the configuration name.
4631
4632 # Make sure we can run config.sub.
4633 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4634 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4637 $as_echo_n "checking build system type... " >&6; }
4638 if test "${ac_cv_build+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 ac_build_alias=$build_alias
4642 test "x$ac_build_alias" = x &&
4643 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4644 test "x$ac_build_alias" = x &&
4645 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4646 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4647 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4648
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4651 $as_echo "$ac_cv_build" >&6; }
4652 case $ac_cv_build in
4653 *-*-*) ;;
4654 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4655 esac
4656 build=$ac_cv_build
4657 ac_save_IFS=$IFS; IFS='-'
4658 set x $ac_cv_build
4659 shift
4660 build_cpu=$1
4661 build_vendor=$2
4662 shift; shift
4663 # Remember, the first character of IFS is used to create $*,
4664 # except with old shells:
4665 build_os=$*
4666 IFS=$ac_save_IFS
4667 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4671 $as_echo_n "checking host system type... " >&6; }
4672 if test "${ac_cv_host+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test "x$host_alias" = x; then
4676 ac_cv_host=$ac_cv_build
4677 else
4678 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4679 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4680 fi
4681
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4684 $as_echo "$ac_cv_host" >&6; }
4685 case $ac_cv_host in
4686 *-*-*) ;;
4687 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4688 esac
4689 host=$ac_cv_host
4690 ac_save_IFS=$IFS; IFS='-'
4691 set x $ac_cv_host
4692 shift
4693 host_cpu=$1
4694 host_vendor=$2
4695 shift; shift
4696 # Remember, the first character of IFS is used to create $*,
4697 # except with old shells:
4698 host_os=$*
4699 IFS=$ac_save_IFS
4700 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4701
4702
4703 canonical=$host
4704 configuration=${host_alias-${build_alias-$host}}
4705
4706
4707
4708 ### If you add support for a new configuration, add code to this
4709 ### switch statement to recognize your configuration name and select
4710 ### the appropriate operating system file.
4711
4712 ### You would hope that you could choose an s/*.h
4713 ### file based on the operating system portion. However, it turns out
4714 ### that each s/*.h file is pretty manufacturer-specific.
4715 ### So we basically have to have a special case for each
4716 ### configuration name.
4717 ###
4718 ### As far as handling version numbers on operating systems is
4719 ### concerned, make sure things will fail in a fixable way. If
4720 ### /etc/MACHINES doesn't say anything about version numbers, be
4721 ### prepared to handle anything reasonably. If version numbers
4722 ### matter, be sure /etc/MACHINES says something about it.
4723
4724 opsys='' unported=no
4725 case "${canonical}" in
4726
4727 ## GNU/Linux and similar ports
4728 *-*-linux* )
4729 opsys=gnu-linux
4730 ;;
4731
4732 ## FreeBSD ports
4733 *-*-freebsd* )
4734 opsys=freebsd
4735 ;;
4736
4737 ## DragonFly ports
4738 *-*-dragonfly* )
4739 opsys=dragonfly
4740 ;;
4741
4742 ## FreeBSD kernel + glibc based userland
4743 *-*-kfreebsd*gnu* )
4744 opsys=gnu-kfreebsd
4745 ;;
4746
4747 ## NetBSD ports
4748 *-*-netbsd* )
4749 opsys=netbsd
4750 ;;
4751
4752 ## OpenBSD ports
4753 *-*-openbsd* )
4754 opsys=openbsd
4755 ;;
4756
4757 ## Apple Darwin / Mac OS X
4758 *-apple-darwin* )
4759 case "${canonical}" in
4760 i[3456]86-* ) ;;
4761 powerpc-* ) ;;
4762 x86_64-* ) ;;
4763 * ) unported=yes ;;
4764 esac
4765 opsys=darwin
4766 ## Use fink packages if available.
4767 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4768 ## if test -d /sw/include && test -d /sw/lib; then
4769 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4770 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4771 ## fi
4772 ;;
4773
4774 ## Cygwin ports
4775 *-*-cygwin )
4776 opsys=cygwin
4777 ;;
4778
4779 ## HP 9000 series 700 and 800, running HP/UX
4780 hppa*-hp-hpux10.2* )
4781 opsys=hpux10-20
4782 ;;
4783 hppa*-hp-hpux1[1-9]* )
4784 opsys=hpux11
4785 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4786 ;;
4787
4788 ## IBM machines
4789 rs6000-ibm-aix4.[23]* )
4790 opsys=aix4-2
4791 ;;
4792 powerpc-ibm-aix4.[23]* )
4793 opsys=aix4-2
4794 ;;
4795 rs6000-ibm-aix[56]* )
4796 opsys=aix4-2
4797 ;;
4798 powerpc-ibm-aix[56]* )
4799 opsys=aix4-2
4800 ;;
4801
4802 ## Silicon Graphics machines
4803 ## Iris 4D
4804 mips-sgi-irix6.5 )
4805 opsys=irix6-5
4806 # Without defining _LANGUAGE_C, things get masked out in the headers
4807 # so that, for instance, grepping for `free' in stdlib.h fails and
4808 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4809 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4810 ;;
4811
4812 ## Suns
4813 *-sun-solaris* \
4814 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4815 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4816 case "${canonical}" in
4817 i[3456]86-*-* ) ;;
4818 amd64-*-*|x86_64-*-*) ;;
4819 sparc* ) ;;
4820 * ) unported=yes ;;
4821 esac
4822 case "${canonical}" in
4823 *-sunos5.6* | *-solaris2.6* )
4824 opsys=sol2-6
4825 RANLIB="ar -ts"
4826 ;;
4827 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4828 opsys=sol2-6
4829 emacs_check_sunpro_c=yes
4830 ;;
4831 *-sunos5* | *-solaris* )
4832 opsys=sol2-10
4833 emacs_check_sunpro_c=yes
4834 ;;
4835 esac
4836 ## Watch out for a compiler that we know will not work.
4837 case "${canonical}" in
4838 *-solaris* | *-sunos5* )
4839 if [ "x$CC" = x/usr/ucb/cc ]; then
4840 ## /usr/ucb/cc doesn't work;
4841 ## we should find some other compiler that does work.
4842 unset CC
4843 fi
4844 ;;
4845 *) ;;
4846 esac
4847 ;;
4848
4849 ## Intel 386 machines where we don't care about the manufacturer.
4850 i[3456]86-*-* )
4851 case "${canonical}" in
4852 *-darwin* ) opsys=darwin ;;
4853 *-mingw32 )
4854 opsys=mingw32
4855 # MinGW overrides and adds some system headers in nt/inc.
4856 GCC_TEST_OPTIONS="-I $srcdir/nt/inc"
4857 ;;
4858 *-sysv4.2uw* ) opsys=unixware ;;
4859 *-sysv5uw* ) opsys=unixware ;;
4860 *-sysv5OpenUNIX* ) opsys=unixware ;;
4861 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4862 esac
4863 ;;
4864
4865 * )
4866 unported=yes
4867 ;;
4868 esac
4869
4870 ### If the code above didn't choose an operating system, just choose
4871 ### an operating system based on the configuration name. You really
4872 ### only want to use this when you have no idea what the right
4873 ### operating system is; if you know what operating systems a machine
4874 ### runs, it's cleaner to make it explicit in the case statement
4875 ### above.
4876 if test x"${opsys}" = x; then
4877 case "${canonical}" in
4878 *-gnu* ) opsys=gnu ;;
4879 * )
4880 unported=yes
4881 ;;
4882 esac
4883 fi
4884
4885
4886
4887 if test $unported = yes; then
4888 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4889 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4890 fi
4891
4892
4893 #### Choose a compiler.
4894
4895 ac_ext=c
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4902 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if test "${ac_cv_prog_CC+set}" = set; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 if test -n "$CC"; then
4909 ac_cv_prog_CC="$CC" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922 done
4923 done
4924 IFS=$as_save_IFS
4925
4926 fi
4927 fi
4928 CC=$ac_cv_prog_CC
4929 if test -n "$CC"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4931 $as_echo "$CC" >&6; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4935 fi
4936
4937
4938 fi
4939 if test -z "$ac_cv_prog_CC"; then
4940 ac_ct_CC=$CC
4941 # Extract the first word of "gcc", so it can be a program name with args.
4942 set dummy gcc; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -n "$ac_ct_CC"; then
4949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_ac_ct_CC="gcc"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962 done
4963 done
4964 IFS=$as_save_IFS
4965
4966 fi
4967 fi
4968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4969 if test -n "$ac_ct_CC"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4971 $as_echo "$ac_ct_CC" >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976
4977 if test "x$ac_ct_CC" = x; then
4978 CC=""
4979 else
4980 case $cross_compiling:$ac_tool_warned in
4981 yes:)
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984 ac_tool_warned=yes ;;
4985 esac
4986 CC=$ac_ct_CC
4987 fi
4988 else
4989 CC="$ac_cv_prog_CC"
4990 fi
4991
4992 if test -z "$CC"; then
4993 if test -n "$ac_tool_prefix"; then
4994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4995 set dummy ${ac_tool_prefix}cc; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if test "${ac_cv_prog_CC+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -n "$CC"; then
5002 ac_cv_prog_CC="$CC" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 ac_cv_prog_CC="${ac_tool_prefix}cc"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5014 fi
5015 done
5016 done
5017 IFS=$as_save_IFS
5018
5019 fi
5020 fi
5021 CC=$ac_cv_prog_CC
5022 if test -n "$CC"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5024 $as_echo "$CC" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5029
5030
5031 fi
5032 fi
5033 if test -z "$CC"; then
5034 # Extract the first word of "cc", so it can be a program name with args.
5035 set dummy cc; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if test "${ac_cv_prog_CC+set}" = set; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 if test -n "$CC"; then
5042 ac_cv_prog_CC="$CC" # Let the user override the test.
5043 else
5044 ac_prog_rejected=no
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5053 ac_prog_rejected=yes
5054 continue
5055 fi
5056 ac_cv_prog_CC="cc"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064 if test $ac_prog_rejected = yes; then
5065 # We found a bogon in the path, so make sure we never use it.
5066 set dummy $ac_cv_prog_CC
5067 shift
5068 if test $# != 0; then
5069 # We chose a different compiler from the bogus one.
5070 # However, it has the same basename, so the bogon will be chosen
5071 # first if we set CC to just the basename; use the full file name.
5072 shift
5073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5074 fi
5075 fi
5076 fi
5077 fi
5078 CC=$ac_cv_prog_CC
5079 if test -n "$CC"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5081 $as_echo "$CC" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5085 fi
5086
5087
5088 fi
5089 if test -z "$CC"; then
5090 if test -n "$ac_tool_prefix"; then
5091 for ac_prog in cl.exe
5092 do
5093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_CC+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -n "$CC"; then
5101 ac_cv_prog_CC="$CC" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 CC=$ac_cv_prog_CC
5121 if test -n "$CC"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5123 $as_echo "$CC" >&6; }
5124 else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129
5130 test -n "$CC" && break
5131 done
5132 fi
5133 if test -z "$CC"; then
5134 ac_ct_CC=$CC
5135 for ac_prog in cl.exe
5136 do
5137 # Extract the first word of "$ac_prog", so it can be a program name with args.
5138 set dummy $ac_prog; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5142 $as_echo_n "(cached) " >&6
5143 else
5144 if test -n "$ac_ct_CC"; then
5145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154 ac_cv_prog_ac_ct_CC="$ac_prog"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5157 fi
5158 done
5159 done
5160 IFS=$as_save_IFS
5161
5162 fi
5163 fi
5164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5165 if test -n "$ac_ct_CC"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5167 $as_echo "$ac_ct_CC" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5171 fi
5172
5173
5174 test -n "$ac_ct_CC" && break
5175 done
5176
5177 if test "x$ac_ct_CC" = x; then
5178 CC=""
5179 else
5180 case $cross_compiling:$ac_tool_warned in
5181 yes:)
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5184 ac_tool_warned=yes ;;
5185 esac
5186 CC=$ac_ct_CC
5187 fi
5188 fi
5189
5190 fi
5191
5192
5193 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5195 as_fn_error "no acceptable C compiler found in \$PATH
5196 See \`config.log' for more details." "$LINENO" 5; }
5197
5198 # Provide some information about the compiler.
5199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5200 set X $ac_compile
5201 ac_compiler=$2
5202 for ac_option in --version -v -V -qversion; do
5203 { { ac_try="$ac_compiler $ac_option >&5"
5204 case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207 esac
5208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5209 $as_echo "$ac_try_echo"; } >&5
5210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5211 ac_status=$?
5212 if test -s conftest.err; then
5213 sed '10a\
5214 ... rest of stderr output deleted ...
5215 10q' conftest.err >conftest.er1
5216 cat conftest.er1 >&5
5217 fi
5218 rm -f conftest.er1 conftest.err
5219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5220 test $ac_status = 0; }
5221 done
5222
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225
5226 int
5227 main ()
5228 {
5229
5230 ;
5231 return 0;
5232 }
5233 _ACEOF
5234 ac_clean_files_save=$ac_clean_files
5235 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5236 # Try to create an executable without -o first, disregard a.out.
5237 # It will help us diagnose broken compilers, and finding out an intuition
5238 # of exeext.
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5240 $as_echo_n "checking whether the C compiler works... " >&6; }
5241 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5242
5243 # The possible output files:
5244 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5245
5246 ac_rmfiles=
5247 for ac_file in $ac_files
5248 do
5249 case $ac_file in
5250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5251 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5252 esac
5253 done
5254 rm -f $ac_rmfiles
5255
5256 if { { ac_try="$ac_link_default"
5257 case "(($ac_try" in
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5260 esac
5261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5262 $as_echo "$ac_try_echo"; } >&5
5263 (eval "$ac_link_default") 2>&5
5264 ac_status=$?
5265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266 test $ac_status = 0; }; then :
5267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5268 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5269 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5270 # so that the user can short-circuit this test for compilers unknown to
5271 # Autoconf.
5272 for ac_file in $ac_files ''
5273 do
5274 test -f "$ac_file" || continue
5275 case $ac_file in
5276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5277 ;;
5278 [ab].out )
5279 # We found the default executable, but exeext='' is most
5280 # certainly right.
5281 break;;
5282 *.* )
5283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5284 then :; else
5285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5286 fi
5287 # We set ac_cv_exeext here because the later test for it is not
5288 # safe: cross compilers may not add the suffix if given an `-o'
5289 # argument, so we may need to know it at that point already.
5290 # Even if this section looks crufty: it has the advantage of
5291 # actually working.
5292 break;;
5293 * )
5294 break;;
5295 esac
5296 done
5297 test "$ac_cv_exeext" = no && ac_cv_exeext=
5298
5299 else
5300 ac_file=''
5301 fi
5302 if test -z "$ac_file"; then :
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5305 $as_echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5310 { as_fn_set_status 77
5311 as_fn_error "C compiler cannot create executables
5312 See \`config.log' for more details." "$LINENO" 5; }; }
5313 else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5315 $as_echo "yes" >&6; }
5316 fi
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5318 $as_echo_n "checking for C compiler default output file name... " >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5320 $as_echo "$ac_file" >&6; }
5321 ac_exeext=$ac_cv_exeext
5322
5323 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5324 ac_clean_files=$ac_clean_files_save
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5326 $as_echo_n "checking for suffix of executables... " >&6; }
5327 if { { ac_try="$ac_link"
5328 case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331 esac
5332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5333 $as_echo "$ac_try_echo"; } >&5
5334 (eval "$ac_link") 2>&5
5335 ac_status=$?
5336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5337 test $ac_status = 0; }; then :
5338 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5339 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5340 # work properly (i.e., refer to `conftest.exe'), while it won't with
5341 # `rm'.
5342 for ac_file in conftest.exe conftest conftest.*; do
5343 test -f "$ac_file" || continue
5344 case $ac_file in
5345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5346 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5347 break;;
5348 * ) break;;
5349 esac
5350 done
5351 else
5352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5354 as_fn_error "cannot compute suffix of executables: cannot compile and link
5355 See \`config.log' for more details." "$LINENO" 5; }
5356 fi
5357 rm -f conftest conftest$ac_cv_exeext
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5359 $as_echo "$ac_cv_exeext" >&6; }
5360
5361 rm -f conftest.$ac_ext
5362 EXEEXT=$ac_cv_exeext
5363 ac_exeext=$EXEEXT
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 #include <stdio.h>
5367 int
5368 main ()
5369 {
5370 FILE *f = fopen ("conftest.out", "w");
5371 return ferror (f) || fclose (f) != 0;
5372
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 ac_clean_files="$ac_clean_files conftest.out"
5378 # Check that the compiler produces executables we can run. If not, either
5379 # the compiler is broken, or we cross compile.
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5381 $as_echo_n "checking whether we are cross compiling... " >&6; }
5382 if test "$cross_compiling" != yes; then
5383 { { ac_try="$ac_link"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5389 $as_echo "$ac_try_echo"; } >&5
5390 (eval "$ac_link") 2>&5
5391 ac_status=$?
5392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5393 test $ac_status = 0; }
5394 if { ac_try='./conftest$ac_cv_exeext'
5395 { { case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398 esac
5399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5400 $as_echo "$ac_try_echo"; } >&5
5401 (eval "$ac_try") 2>&5
5402 ac_status=$?
5403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5404 test $ac_status = 0; }; }; then
5405 cross_compiling=no
5406 else
5407 if test "$cross_compiling" = maybe; then
5408 cross_compiling=yes
5409 else
5410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5412 as_fn_error "cannot run C compiled programs.
5413 If you meant to cross compile, use \`--host'.
5414 See \`config.log' for more details." "$LINENO" 5; }
5415 fi
5416 fi
5417 fi
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5419 $as_echo "$cross_compiling" >&6; }
5420
5421 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5422 ac_clean_files=$ac_clean_files_save
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5424 $as_echo_n "checking for suffix of object files... " >&6; }
5425 if test "${ac_cv_objext+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430
5431 int
5432 main ()
5433 {
5434
5435 ;
5436 return 0;
5437 }
5438 _ACEOF
5439 rm -f conftest.o conftest.obj
5440 if { { ac_try="$ac_compile"
5441 case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5446 $as_echo "$ac_try_echo"; } >&5
5447 (eval "$ac_compile") 2>&5
5448 ac_status=$?
5449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5450 test $ac_status = 0; }; then :
5451 for ac_file in conftest.o conftest.obj conftest.*; do
5452 test -f "$ac_file" || continue;
5453 case $ac_file in
5454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5456 break;;
5457 esac
5458 done
5459 else
5460 $as_echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5465 as_fn_error "cannot compute suffix of object files: cannot compile
5466 See \`config.log' for more details." "$LINENO" 5; }
5467 fi
5468 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5471 $as_echo "$ac_cv_objext" >&6; }
5472 OBJEXT=$ac_cv_objext
5473 ac_objext=$OBJEXT
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5475 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5476 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481
5482 int
5483 main ()
5484 {
5485 #ifndef __GNUC__
5486 choke me
5487 #endif
5488
5489 ;
5490 return 0;
5491 }
5492 _ACEOF
5493 if ac_fn_c_try_compile "$LINENO"; then :
5494 ac_compiler_gnu=yes
5495 else
5496 ac_compiler_gnu=no
5497 fi
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5500
5501 fi
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5503 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5504 if test $ac_compiler_gnu = yes; then
5505 GCC=yes
5506 else
5507 GCC=
5508 fi
5509 ac_test_CFLAGS=${CFLAGS+set}
5510 ac_save_CFLAGS=$CFLAGS
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5512 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5513 if test "${ac_cv_prog_cc_g+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 ac_save_c_werror_flag=$ac_c_werror_flag
5517 ac_c_werror_flag=yes
5518 ac_cv_prog_cc_g=no
5519 CFLAGS="-g"
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522
5523 int
5524 main ()
5525 {
5526
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 if ac_fn_c_try_compile "$LINENO"; then :
5532 ac_cv_prog_cc_g=yes
5533 else
5534 CFLAGS=""
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537
5538 int
5539 main ()
5540 {
5541
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547
5548 else
5549 ac_c_werror_flag=$ac_save_c_werror_flag
5550 CFLAGS="-g"
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553
5554 int
5555 main ()
5556 {
5557
5558 ;
5559 return 0;
5560 }
5561 _ACEOF
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 ac_cv_prog_cc_g=yes
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 ac_c_werror_flag=$ac_save_c_werror_flag
5571 fi
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5573 $as_echo "$ac_cv_prog_cc_g" >&6; }
5574 if test "$ac_test_CFLAGS" = set; then
5575 CFLAGS=$ac_save_CFLAGS
5576 elif test $ac_cv_prog_cc_g = yes; then
5577 if test "$GCC" = yes; then
5578 CFLAGS="-g -O2"
5579 else
5580 CFLAGS="-g"
5581 fi
5582 else
5583 if test "$GCC" = yes; then
5584 CFLAGS="-O2"
5585 else
5586 CFLAGS=
5587 fi
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5591 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 ac_cv_prog_cc_c89=no
5595 ac_save_CC=$CC
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #include <stdarg.h>
5599 #include <stdio.h>
5600 #include <sys/types.h>
5601 #include <sys/stat.h>
5602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5603 struct buf { int x; };
5604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5605 static char *e (p, i)
5606 char **p;
5607 int i;
5608 {
5609 return p[i];
5610 }
5611 static char *f (char * (*g) (char **, int), char **p, ...)
5612 {
5613 char *s;
5614 va_list v;
5615 va_start (v,p);
5616 s = g (p, va_arg (v,int));
5617 va_end (v);
5618 return s;
5619 }
5620
5621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5622 function prototypes and stuff, but not '\xHH' hex character constants.
5623 These don't provoke an error unfortunately, instead are silently treated
5624 as 'x'. The following induces an error, until -std is added to get
5625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5626 array size at least. It's necessary to write '\x00'==0 to get something
5627 that's true only with -std. */
5628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5629
5630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5631 inside strings and character constants. */
5632 #define FOO(x) 'x'
5633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5634
5635 int test (int i, double x);
5636 struct s1 {int (*f) (int a);};
5637 struct s2 {int (*f) (double a);};
5638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5639 int argc;
5640 char **argv;
5641 int
5642 main ()
5643 {
5644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5645 ;
5646 return 0;
5647 }
5648 _ACEOF
5649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5650 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5651 do
5652 CC="$ac_save_CC $ac_arg"
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 ac_cv_prog_cc_c89=$ac_arg
5655 fi
5656 rm -f core conftest.err conftest.$ac_objext
5657 test "x$ac_cv_prog_cc_c89" != "xno" && break
5658 done
5659 rm -f conftest.$ac_ext
5660 CC=$ac_save_CC
5661
5662 fi
5663 # AC_CACHE_VAL
5664 case "x$ac_cv_prog_cc_c89" in
5665 x)
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5667 $as_echo "none needed" >&6; } ;;
5668 xno)
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5670 $as_echo "unsupported" >&6; } ;;
5671 *)
5672 CC="$CC $ac_cv_prog_cc_c89"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5674 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5675 esac
5676 if test "x$ac_cv_prog_cc_c89" != xno; then :
5677
5678 fi
5679
5680 ac_ext=c
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685 DEPDIR="${am__leading_dot}deps"
5686
5687 ac_config_commands="$ac_config_commands depfiles"
5688
5689
5690 am_make=${MAKE-make}
5691 cat > confinc << 'END'
5692 am__doit:
5693 @echo this is the am__doit target
5694 .PHONY: am__doit
5695 END
5696 # If we don't find an include directive, just comment out the code.
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5698 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5699 am__include="#"
5700 am__quote=
5701 _am_result=none
5702 # First try GNU make style include.
5703 echo "include confinc" > confmf
5704 # Ignore all kinds of additional output from `make'.
5705 case `$am_make -s -f confmf 2> /dev/null` in #(
5706 *the\ am__doit\ target*)
5707 am__include=include
5708 am__quote=
5709 _am_result=GNU
5710 ;;
5711 esac
5712 # Now try BSD make style include.
5713 if test "$am__include" = "#"; then
5714 echo '.include "confinc"' > confmf
5715 case `$am_make -s -f confmf 2> /dev/null` in #(
5716 *the\ am__doit\ target*)
5717 am__include=.include
5718 am__quote="\""
5719 _am_result=BSD
5720 ;;
5721 esac
5722 fi
5723
5724
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5726 $as_echo "$_am_result" >&6; }
5727 rm -f confinc confmf
5728
5729 # Check whether --enable-dependency-tracking was given.
5730 if test "${enable_dependency_tracking+set}" = set; then :
5731 enableval=$enable_dependency_tracking;
5732 fi
5733
5734 if test "x$enable_dependency_tracking" != xno; then
5735 am_depcomp="$ac_aux_dir/depcomp"
5736 AMDEPBACKSLASH='\'
5737 fi
5738 if test "x$enable_dependency_tracking" != xno; then
5739 AMDEP_TRUE=
5740 AMDEP_FALSE='#'
5741 else
5742 AMDEP_TRUE='#'
5743 AMDEP_FALSE=
5744 fi
5745
5746
5747
5748 depcc="$CC" am_compiler_list=
5749
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5751 $as_echo_n "checking dependency style of $depcc... " >&6; }
5752 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5756 # We make a subdir and do the tests there. Otherwise we can end up
5757 # making bogus files that we don't know about and never remove. For
5758 # instance it was reported that on HP-UX the gcc test will end up
5759 # making a dummy file named `D' -- because `-MD' means `put the output
5760 # in D'.
5761 mkdir conftest.dir
5762 # Copy depcomp to subdir because otherwise we won't find it if we're
5763 # using a relative directory.
5764 cp "$am_depcomp" conftest.dir
5765 cd conftest.dir
5766 # We will build objects and dependencies in a subdirectory because
5767 # it helps to detect inapplicable dependency modes. For instance
5768 # both Tru64's cc and ICC support -MD to output dependencies as a
5769 # side effect of compilation, but ICC will put the dependencies in
5770 # the current directory while Tru64 will put them in the object
5771 # directory.
5772 mkdir sub
5773
5774 am_cv_CC_dependencies_compiler_type=none
5775 if test "$am_compiler_list" = ""; then
5776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5777 fi
5778 am__universal=false
5779 case " $depcc " in #(
5780 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5781 esac
5782
5783 for depmode in $am_compiler_list; do
5784 # Setup a source with many dependencies, because some compilers
5785 # like to wrap large dependency lists on column 80 (with \), and
5786 # we should not choose a depcomp mode which is confused by this.
5787 #
5788 # We need to recreate these files for each test, as the compiler may
5789 # overwrite some of them when testing with obscure command lines.
5790 # This happens at least with the AIX C compiler.
5791 : > sub/conftest.c
5792 for i in 1 2 3 4 5 6; do
5793 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5794 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5795 # Solaris 8's {/usr,}/bin/sh.
5796 touch sub/conftst$i.h
5797 done
5798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5799
5800 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5801 # mode. It turns out that the SunPro C++ compiler does not properly
5802 # handle `-M -o', and we need to detect this. Also, some Intel
5803 # versions had trouble with output in subdirs
5804 am__obj=sub/conftest.${OBJEXT-o}
5805 am__minus_obj="-o $am__obj"
5806 case $depmode in
5807 gcc)
5808 # This depmode causes a compiler race in universal mode.
5809 test "$am__universal" = false || continue
5810 ;;
5811 nosideeffect)
5812 # after this tag, mechanisms are not by side-effect, so they'll
5813 # only be used when explicitly requested
5814 if test "x$enable_dependency_tracking" = xyes; then
5815 continue
5816 else
5817 break
5818 fi
5819 ;;
5820 msvisualcpp | msvcmsys)
5821 # This compiler won't grok `-c -o', but also, the minuso test has
5822 # not run yet. These depmodes are late enough in the game, and
5823 # so weak that their functioning should not be impacted.
5824 am__obj=conftest.${OBJEXT-o}
5825 am__minus_obj=
5826 ;;
5827 none) break ;;
5828 esac
5829 if depmode=$depmode \
5830 source=sub/conftest.c object=$am__obj \
5831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5832 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5833 >/dev/null 2>conftest.err &&
5834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5836 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5838 # icc doesn't choke on unknown options, it will just issue warnings
5839 # or remarks (even with -Werror). So we grep stderr for any message
5840 # that says an option was ignored or not supported.
5841 # When given -MP, icc 7.0 and 7.1 complain thusly:
5842 # icc: Command line warning: ignoring option '-M'; no argument required
5843 # The diagnosis changed in icc 8.0:
5844 # icc: Command line remark: option '-MP' not supported
5845 if (grep 'ignoring option' conftest.err ||
5846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5847 am_cv_CC_dependencies_compiler_type=$depmode
5848 break
5849 fi
5850 fi
5851 done
5852
5853 cd ..
5854 rm -rf conftest.dir
5855 else
5856 am_cv_CC_dependencies_compiler_type=none
5857 fi
5858
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5861 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5863
5864 if
5865 test "x$enable_dependency_tracking" != xno \
5866 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5867 am__fastdepCC_TRUE=
5868 am__fastdepCC_FALSE='#'
5869 else
5870 am__fastdepCC_TRUE='#'
5871 am__fastdepCC_FALSE=
5872 fi
5873
5874
5875 if test "x$CC" != xcc; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5877 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5880 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5881 fi
5882 set dummy $CC; ac_cc=`$as_echo "$2" |
5883 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5884 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889
5890 int
5891 main ()
5892 {
5893
5894 ;
5895 return 0;
5896 }
5897 _ACEOF
5898 # Make sure it works both with $CC and with simple cc.
5899 # We do the test twice because some compilers refuse to overwrite an
5900 # existing .o file with -o, though they will create one.
5901 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5902 rm -f conftest2.*
5903 if { { case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5908 $as_echo "$ac_try_echo"; } >&5
5909 (eval "$ac_try") 2>&5
5910 ac_status=$?
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; } &&
5913 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916 esac
5917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5918 $as_echo "$ac_try_echo"; } >&5
5919 (eval "$ac_try") 2>&5
5920 ac_status=$?
5921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5922 test $ac_status = 0; };
5923 then
5924 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5925 if test "x$CC" != xcc; then
5926 # Test first that cc exists at all.
5927 if { ac_try='cc -c conftest.$ac_ext >&5'
5928 { { case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931 esac
5932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5933 $as_echo "$ac_try_echo"; } >&5
5934 (eval "$ac_try") 2>&5
5935 ac_status=$?
5936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; }; }; then
5938 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5939 rm -f conftest2.*
5940 if { { case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5945 $as_echo "$ac_try_echo"; } >&5
5946 (eval "$ac_try") 2>&5
5947 ac_status=$?
5948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5949 test $ac_status = 0; } &&
5950 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5953 esac
5954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5955 $as_echo "$ac_try_echo"; } >&5
5956 (eval "$ac_try") 2>&5
5957 ac_status=$?
5958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5959 test $ac_status = 0; };
5960 then
5961 # cc works too.
5962 :
5963 else
5964 # cc exists but doesn't like -o.
5965 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5966 fi
5967 fi
5968 fi
5969 else
5970 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5971 fi
5972 rm -f core conftest*
5973
5974 fi
5975 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5977 $as_echo "yes" >&6; }
5978 else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981
5982 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5983
5984 fi
5985
5986 # FIXME: we rely on the cache variable name because
5987 # there is no other way.
5988 set dummy $CC
5989 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5990 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5991 if test "$am_t" != yes; then
5992 # Losing compiler, so override with the script.
5993 # FIXME: It is wrong to rewrite CC.
5994 # But if we don't then we get into trouble of one sort or another.
5995 # A longer-term fix would be to have automake use am__CC in this case,
5996 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5997 CC="$am_aux_dir/compile $CC"
5998 fi
5999
6000
6001
6002 if test x$GCC = xyes; then
6003 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6004 else
6005 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6006 fi
6007
6008 if test "x$opsys" = "xmingw32"; then
6009 BUILDING_FOR_WINDOWSNT_TRUE=
6010 BUILDING_FOR_WINDOWSNT_FALSE='#'
6011 else
6012 BUILDING_FOR_WINDOWSNT_TRUE='#'
6013 BUILDING_FOR_WINDOWSNT_FALSE=
6014 fi
6015
6016
6017 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
6018 # as we don't use them.
6019
6020 # Avoid gnulib's threadlib module, as we do threads our own way.
6021
6022
6023 # Initialize gnulib right after choosing the compiler.
6024
6025 ac_ext=c
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6031 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6032 # On Suns, sometimes $CPP names a directory.
6033 if test -n "$CPP" && test -d "$CPP"; then
6034 CPP=
6035 fi
6036 if test -z "$CPP"; then
6037 if test "${ac_cv_prog_CPP+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 # Double quotes because CPP needs to be expanded
6041 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6042 do
6043 ac_preproc_ok=false
6044 for ac_c_preproc_warn_flag in '' yes
6045 do
6046 # Use a header file that comes with gcc, so configuring glibc
6047 # with a fresh cross-compiler works.
6048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6049 # <limits.h> exists even on freestanding compilers.
6050 # On the NeXT, cc -E runs the code through the compiler's parser,
6051 # not just through cpp. "Syntax error" is here to catch this case.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #ifdef __STDC__
6055 # include <limits.h>
6056 #else
6057 # include <assert.h>
6058 #endif
6059 Syntax error
6060 _ACEOF
6061 if ac_fn_c_try_cpp "$LINENO"; then :
6062
6063 else
6064 # Broken: fails on valid input.
6065 continue
6066 fi
6067 rm -f conftest.err conftest.$ac_ext
6068
6069 # OK, works on sane cases. Now check whether nonexistent headers
6070 # can be detected and how.
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #include <ac_nonexistent.h>
6074 _ACEOF
6075 if ac_fn_c_try_cpp "$LINENO"; then :
6076 # Broken: success on invalid input.
6077 continue
6078 else
6079 # Passes both tests.
6080 ac_preproc_ok=:
6081 break
6082 fi
6083 rm -f conftest.err conftest.$ac_ext
6084
6085 done
6086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6087 rm -f conftest.err conftest.$ac_ext
6088 if $ac_preproc_ok; then :
6089 break
6090 fi
6091
6092 done
6093 ac_cv_prog_CPP=$CPP
6094
6095 fi
6096 CPP=$ac_cv_prog_CPP
6097 else
6098 ac_cv_prog_CPP=$CPP
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6101 $as_echo "$CPP" >&6; }
6102 ac_preproc_ok=false
6103 for ac_c_preproc_warn_flag in '' yes
6104 do
6105 # Use a header file that comes with gcc, so configuring glibc
6106 # with a fresh cross-compiler works.
6107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6108 # <limits.h> exists even on freestanding compilers.
6109 # On the NeXT, cc -E runs the code through the compiler's parser,
6110 # not just through cpp. "Syntax error" is here to catch this case.
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #ifdef __STDC__
6114 # include <limits.h>
6115 #else
6116 # include <assert.h>
6117 #endif
6118 Syntax error
6119 _ACEOF
6120 if ac_fn_c_try_cpp "$LINENO"; then :
6121
6122 else
6123 # Broken: fails on valid input.
6124 continue
6125 fi
6126 rm -f conftest.err conftest.$ac_ext
6127
6128 # OK, works on sane cases. Now check whether nonexistent headers
6129 # can be detected and how.
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #include <ac_nonexistent.h>
6133 _ACEOF
6134 if ac_fn_c_try_cpp "$LINENO"; then :
6135 # Broken: success on invalid input.
6136 continue
6137 else
6138 # Passes both tests.
6139 ac_preproc_ok=:
6140 break
6141 fi
6142 rm -f conftest.err conftest.$ac_ext
6143
6144 done
6145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6146 rm -f conftest.err conftest.$ac_ext
6147 if $ac_preproc_ok; then :
6148
6149 else
6150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6152 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6153 See \`config.log' for more details." "$LINENO" 5; }
6154 fi
6155
6156 ac_ext=c
6157 ac_cpp='$CPP $CPPFLAGS'
6158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161
6162
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6164 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6165 if test "${ac_cv_path_GREP+set}" = set; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if test -z "$GREP"; then
6169 ac_path_GREP_found=false
6170 # Loop through the user's path and test for each of PROGNAME-LIST
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6173 do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_prog in grep ggrep; do
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6179 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6180 # Check for GNU ac_path_GREP and select it if it is found.
6181 # Check for GNU $ac_path_GREP
6182 case `"$ac_path_GREP" --version 2>&1` in
6183 *GNU*)
6184 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6185 *)
6186 ac_count=0
6187 $as_echo_n 0123456789 >"conftest.in"
6188 while :
6189 do
6190 cat "conftest.in" "conftest.in" >"conftest.tmp"
6191 mv "conftest.tmp" "conftest.in"
6192 cp "conftest.in" "conftest.nl"
6193 $as_echo 'GREP' >> "conftest.nl"
6194 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6196 as_fn_arith $ac_count + 1 && ac_count=$as_val
6197 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6198 # Best one so far, save it but keep looking for a better one
6199 ac_cv_path_GREP="$ac_path_GREP"
6200 ac_path_GREP_max=$ac_count
6201 fi
6202 # 10*(2^10) chars as input seems more than enough
6203 test $ac_count -gt 10 && break
6204 done
6205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6206 esac
6207
6208 $ac_path_GREP_found && break 3
6209 done
6210 done
6211 done
6212 IFS=$as_save_IFS
6213 if test -z "$ac_cv_path_GREP"; then
6214 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6215 fi
6216 else
6217 ac_cv_path_GREP=$GREP
6218 fi
6219
6220 fi
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6222 $as_echo "$ac_cv_path_GREP" >&6; }
6223 GREP="$ac_cv_path_GREP"
6224
6225
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6227 $as_echo_n "checking for egrep... " >&6; }
6228 if test "${ac_cv_path_EGREP+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6232 then ac_cv_path_EGREP="$GREP -E"
6233 else
6234 if test -z "$EGREP"; then
6235 ac_path_EGREP_found=false
6236 # Loop through the user's path and test for each of PROGNAME-LIST
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_prog in egrep; do
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6245 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6246 # Check for GNU ac_path_EGREP and select it if it is found.
6247 # Check for GNU $ac_path_EGREP
6248 case `"$ac_path_EGREP" --version 2>&1` in
6249 *GNU*)
6250 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6251 *)
6252 ac_count=0
6253 $as_echo_n 0123456789 >"conftest.in"
6254 while :
6255 do
6256 cat "conftest.in" "conftest.in" >"conftest.tmp"
6257 mv "conftest.tmp" "conftest.in"
6258 cp "conftest.in" "conftest.nl"
6259 $as_echo 'EGREP' >> "conftest.nl"
6260 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6262 as_fn_arith $ac_count + 1 && ac_count=$as_val
6263 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6264 # Best one so far, save it but keep looking for a better one
6265 ac_cv_path_EGREP="$ac_path_EGREP"
6266 ac_path_EGREP_max=$ac_count
6267 fi
6268 # 10*(2^10) chars as input seems more than enough
6269 test $ac_count -gt 10 && break
6270 done
6271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6272 esac
6273
6274 $ac_path_EGREP_found && break 3
6275 done
6276 done
6277 done
6278 IFS=$as_save_IFS
6279 if test -z "$ac_cv_path_EGREP"; then
6280 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6281 fi
6282 else
6283 ac_cv_path_EGREP=$EGREP
6284 fi
6285
6286 fi
6287 fi
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6289 $as_echo "$ac_cv_path_EGREP" >&6; }
6290 EGREP="$ac_cv_path_EGREP"
6291
6292
6293
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6296 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6297 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6303
6304 #ifdef __ACK__
6305 Amsterdam
6306 #endif
6307
6308 _ACEOF
6309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6310 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6311 gl_cv_c_amsterdam_compiler=yes
6312 else
6313 gl_cv_c_amsterdam_compiler=no
6314 fi
6315 rm -f conftest*
6316
6317
6318 fi
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6320 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6321 if test -z "$AR"; then
6322 if test $gl_cv_c_amsterdam_compiler = yes; then
6323 AR='cc -c.a'
6324 if test -z "$ARFLAGS"; then
6325 ARFLAGS='-o'
6326 fi
6327 else
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6330 set dummy ${ac_tool_prefix}ar; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if test "${ac_cv_prog_AR+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if test -n "$AR"; then
6337 ac_cv_prog_AR="$AR" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_AR="${ac_tool_prefix}ar"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6349 fi
6350 done
6351 done
6352 IFS=$as_save_IFS
6353
6354 fi
6355 fi
6356 AR=$ac_cv_prog_AR
6357 if test -n "$AR"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6359 $as_echo "$AR" >&6; }
6360 else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6363 fi
6364
6365
6366 fi
6367 if test -z "$ac_cv_prog_AR"; then
6368 ac_ct_AR=$AR
6369 # Extract the first word of "ar", so it can be a program name with args.
6370 set dummy ar; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 if test -n "$ac_ct_AR"; then
6377 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_prog_ac_ct_AR="ar"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394 fi
6395 fi
6396 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6397 if test -n "$ac_ct_AR"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6399 $as_echo "$ac_ct_AR" >&6; }
6400 else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6403 fi
6404
6405 if test "x$ac_ct_AR" = x; then
6406 AR="ar"
6407 else
6408 case $cross_compiling:$ac_tool_warned in
6409 yes:)
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412 ac_tool_warned=yes ;;
6413 esac
6414 AR=$ac_ct_AR
6415 fi
6416 else
6417 AR="$ac_cv_prog_AR"
6418 fi
6419
6420 if test -z "$ARFLAGS"; then
6421 ARFLAGS='cru'
6422 fi
6423 fi
6424 else
6425 if test -z "$ARFLAGS"; then
6426 ARFLAGS='cru'
6427 fi
6428 fi
6429
6430
6431 if test -z "$RANLIB"; then
6432 if test $gl_cv_c_amsterdam_compiler = yes; then
6433 RANLIB=':'
6434 else
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$RANLIB"; then
6444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 RANLIB=$ac_cv_prog_RANLIB
6464 if test -n "$RANLIB"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6466 $as_echo "$RANLIB" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473 fi
6474 if test -z "$ac_cv_prog_RANLIB"; then
6475 ac_ct_RANLIB=$RANLIB
6476 # Extract the first word of "ranlib", so it can be a program name with args.
6477 set dummy ranlib; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test -n "$ac_ct_RANLIB"; then
6484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_ac_ct_RANLIB="ranlib"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6504 if test -n "$ac_ct_RANLIB"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6506 $as_echo "$ac_ct_RANLIB" >&6; }
6507 else
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511
6512 if test "x$ac_ct_RANLIB" = x; then
6513 RANLIB=":"
6514 else
6515 case $cross_compiling:$ac_tool_warned in
6516 yes:)
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519 ac_tool_warned=yes ;;
6520 esac
6521 RANLIB=$ac_ct_RANLIB
6522 fi
6523 else
6524 RANLIB="$ac_cv_prog_RANLIB"
6525 fi
6526
6527 fi
6528 fi
6529
6530
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6532 $as_echo_n "checking for ANSI C header files... " >&6; }
6533 if test "${ac_cv_header_stdc+set}" = set; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 #include <stdlib.h>
6539 #include <stdarg.h>
6540 #include <string.h>
6541 #include <float.h>
6542
6543 int
6544 main ()
6545 {
6546
6547 ;
6548 return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_compile "$LINENO"; then :
6552 ac_cv_header_stdc=yes
6553 else
6554 ac_cv_header_stdc=no
6555 fi
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557
6558 if test $ac_cv_header_stdc = yes; then
6559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 #include <string.h>
6563
6564 _ACEOF
6565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 $EGREP "memchr" >/dev/null 2>&1; then :
6567
6568 else
6569 ac_cv_header_stdc=no
6570 fi
6571 rm -f conftest*
6572
6573 fi
6574
6575 if test $ac_cv_header_stdc = yes; then
6576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #include <stdlib.h>
6580
6581 _ACEOF
6582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6583 $EGREP "free" >/dev/null 2>&1; then :
6584
6585 else
6586 ac_cv_header_stdc=no
6587 fi
6588 rm -f conftest*
6589
6590 fi
6591
6592 if test $ac_cv_header_stdc = yes; then
6593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6594 if test "$cross_compiling" = yes; then :
6595 :
6596 else
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 #include <ctype.h>
6600 #include <stdlib.h>
6601 #if ((' ' & 0x0FF) == 0x020)
6602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6604 #else
6605 # define ISLOWER(c) \
6606 (('a' <= (c) && (c) <= 'i') \
6607 || ('j' <= (c) && (c) <= 'r') \
6608 || ('s' <= (c) && (c) <= 'z'))
6609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6610 #endif
6611
6612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6613 int
6614 main ()
6615 {
6616 int i;
6617 for (i = 0; i < 256; i++)
6618 if (XOR (islower (i), ISLOWER (i))
6619 || toupper (i) != TOUPPER (i))
6620 return 2;
6621 return 0;
6622 }
6623 _ACEOF
6624 if ac_fn_c_try_run "$LINENO"; then :
6625
6626 else
6627 ac_cv_header_stdc=no
6628 fi
6629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6630 conftest.$ac_objext conftest.beam conftest.$ac_ext
6631 fi
6632
6633 fi
6634 fi
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6636 $as_echo "$ac_cv_header_stdc" >&6; }
6637 if test $ac_cv_header_stdc = yes; then
6638
6639 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6640
6641 fi
6642
6643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6644 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6645 inttypes.h stdint.h unistd.h
6646 do :
6647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6648 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6649 "
6650 eval as_val=\$$as_ac_Header
6651 if test "x$as_val" = x""yes; then :
6652 cat >>confdefs.h <<_ACEOF
6653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6654 _ACEOF
6655
6656 fi
6657
6658 done
6659
6660
6661
6662 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6663 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6664 MINIX=yes
6665 else
6666 MINIX=
6667 fi
6668
6669
6670 if test "$MINIX" = yes; then
6671
6672 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6673
6674
6675 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6676
6677
6678 $as_echo "#define _MINIX 1" >>confdefs.h
6679
6680
6681 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6682
6683 fi
6684
6685
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6687 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6688 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6693
6694 # define __EXTENSIONS__ 1
6695 $ac_includes_default
6696 int
6697 main ()
6698 {
6699
6700 ;
6701 return 0;
6702 }
6703 _ACEOF
6704 if ac_fn_c_try_compile "$LINENO"; then :
6705 ac_cv_safe_to_define___extensions__=yes
6706 else
6707 ac_cv_safe_to_define___extensions__=no
6708 fi
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 fi
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6712 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6713 test $ac_cv_safe_to_define___extensions__ = yes &&
6714 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6715
6716 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6717
6718 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6719
6720 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6721
6722 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6723
6724 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6725
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6727 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6728 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 ac_cv_should_define__xopen_source=no
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734
6735 #include <wchar.h>
6736 mbstate_t x;
6737 int
6738 main ()
6739 {
6740
6741 ;
6742 return 0;
6743 }
6744 _ACEOF
6745 if ac_fn_c_try_compile "$LINENO"; then :
6746
6747 else
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750
6751 #define _XOPEN_SOURCE 500
6752 #include <wchar.h>
6753 mbstate_t x;
6754 int
6755 main ()
6756 {
6757
6758 ;
6759 return 0;
6760 }
6761 _ACEOF
6762 if ac_fn_c_try_compile "$LINENO"; then :
6763 ac_cv_should_define__xopen_source=yes
6764 fi
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 fi
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6770 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6771 test $ac_cv_should_define__xopen_source = yes &&
6772 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6773
6774
6775
6776
6777
6778
6779
6780
6781 # Check whether --enable-largefile was given.
6782 if test "${enable_largefile+set}" = set; then :
6783 enableval=$enable_largefile;
6784 fi
6785
6786 if test "$enable_largefile" != no; then
6787
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6789 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6790 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 ac_cv_sys_largefile_CC=no
6794 if test "$GCC" != yes; then
6795 ac_save_CC=$CC
6796 while :; do
6797 # IRIX 6.2 and later do not support large files by default,
6798 # so use the C compiler's -n32 option if that helps.
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 #include <sys/types.h>
6802 /* Check that off_t can represent 2**63 - 1 correctly.
6803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6804 since some C++ compilers masquerading as C compilers
6805 incorrectly reject 9223372036854775807. */
6806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6808 && LARGE_OFF_T % 2147483647 == 1)
6809 ? 1 : -1];
6810 int
6811 main ()
6812 {
6813
6814 ;
6815 return 0;
6816 }
6817 _ACEOF
6818 if ac_fn_c_try_compile "$LINENO"; then :
6819 break
6820 fi
6821 rm -f core conftest.err conftest.$ac_objext
6822 CC="$CC -n32"
6823 if ac_fn_c_try_compile "$LINENO"; then :
6824 ac_cv_sys_largefile_CC=' -n32'; break
6825 fi
6826 rm -f core conftest.err conftest.$ac_objext
6827 break
6828 done
6829 CC=$ac_save_CC
6830 rm -f conftest.$ac_ext
6831 fi
6832 fi
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6834 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6835 if test "$ac_cv_sys_largefile_CC" != no; then
6836 CC=$CC$ac_cv_sys_largefile_CC
6837 fi
6838
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6840 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6841 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 while :; do
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 #include <sys/types.h>
6848 /* Check that off_t can represent 2**63 - 1 correctly.
6849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6850 since some C++ compilers masquerading as C compilers
6851 incorrectly reject 9223372036854775807. */
6852 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6854 && LARGE_OFF_T % 2147483647 == 1)
6855 ? 1 : -1];
6856 int
6857 main ()
6858 {
6859
6860 ;
6861 return 0;
6862 }
6863 _ACEOF
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 ac_cv_sys_file_offset_bits=no; break
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870 #define _FILE_OFFSET_BITS 64
6871 #include <sys/types.h>
6872 /* Check that off_t can represent 2**63 - 1 correctly.
6873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6874 since some C++ compilers masquerading as C compilers
6875 incorrectly reject 9223372036854775807. */
6876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6878 && LARGE_OFF_T % 2147483647 == 1)
6879 ? 1 : -1];
6880 int
6881 main ()
6882 {
6883
6884 ;
6885 return 0;
6886 }
6887 _ACEOF
6888 if ac_fn_c_try_compile "$LINENO"; then :
6889 ac_cv_sys_file_offset_bits=64; break
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 ac_cv_sys_file_offset_bits=unknown
6893 break
6894 done
6895 fi
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6897 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6898 case $ac_cv_sys_file_offset_bits in #(
6899 no | unknown) ;;
6900 *)
6901 cat >>confdefs.h <<_ACEOF
6902 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6903 _ACEOF
6904 ;;
6905 esac
6906 rm -rf conftest*
6907 if test $ac_cv_sys_file_offset_bits = unknown; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6909 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6910 if test "${ac_cv_sys_large_files+set}" = set; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 while :; do
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 #include <sys/types.h>
6917 /* Check that off_t can represent 2**63 - 1 correctly.
6918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6919 since some C++ compilers masquerading as C compilers
6920 incorrectly reject 9223372036854775807. */
6921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6923 && LARGE_OFF_T % 2147483647 == 1)
6924 ? 1 : -1];
6925 int
6926 main ()
6927 {
6928
6929 ;
6930 return 0;
6931 }
6932 _ACEOF
6933 if ac_fn_c_try_compile "$LINENO"; then :
6934 ac_cv_sys_large_files=no; break
6935 fi
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6939 #define _LARGE_FILES 1
6940 #include <sys/types.h>
6941 /* Check that off_t can represent 2**63 - 1 correctly.
6942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6943 since some C++ compilers masquerading as C compilers
6944 incorrectly reject 9223372036854775807. */
6945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6947 && LARGE_OFF_T % 2147483647 == 1)
6948 ? 1 : -1];
6949 int
6950 main ()
6951 {
6952
6953 ;
6954 return 0;
6955 }
6956 _ACEOF
6957 if ac_fn_c_try_compile "$LINENO"; then :
6958 ac_cv_sys_large_files=1; break
6959 fi
6960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 ac_cv_sys_large_files=unknown
6962 break
6963 done
6964 fi
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6966 $as_echo "$ac_cv_sys_large_files" >&6; }
6967 case $ac_cv_sys_large_files in #(
6968 no | unknown) ;;
6969 *)
6970 cat >>confdefs.h <<_ACEOF
6971 #define _LARGE_FILES $ac_cv_sys_large_files
6972 _ACEOF
6973 ;;
6974 esac
6975 rm -rf conftest*
6976 fi
6977
6978
6979 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6980
6981 fi
6982
6983 case $ac_cv_prog_cc_stdc in #(
6984 no) :
6985 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6986 *) :
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6988 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6989 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 ac_cv_prog_cc_c99=no
6993 ac_save_CC=$CC
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 #include <stdarg.h>
6997 #include <stdbool.h>
6998 #include <stdlib.h>
6999 #include <wchar.h>
7000 #include <stdio.h>
7001
7002 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7003 #define debug(...) fprintf (stderr, __VA_ARGS__)
7004 #define showlist(...) puts (#__VA_ARGS__)
7005 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7006 static void
7007 test_varargs_macros (void)
7008 {
7009 int x = 1234;
7010 int y = 5678;
7011 debug ("Flag");
7012 debug ("X = %d\n", x);
7013 showlist (The first, second, and third items.);
7014 report (x>y, "x is %d but y is %d", x, y);
7015 }
7016
7017 // Check long long types.
7018 #define BIG64 18446744073709551615ull
7019 #define BIG32 4294967295ul
7020 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7021 #if !BIG_OK
7022 your preprocessor is broken;
7023 #endif
7024 #if BIG_OK
7025 #else
7026 your preprocessor is broken;
7027 #endif
7028 static long long int bignum = -9223372036854775807LL;
7029 static unsigned long long int ubignum = BIG64;
7030
7031 struct incomplete_array
7032 {
7033 int datasize;
7034 double data[];
7035 };
7036
7037 struct named_init {
7038 int number;
7039 const wchar_t *name;
7040 double average;
7041 };
7042
7043 typedef const char *ccp;
7044
7045 static inline int
7046 test_restrict (ccp restrict text)
7047 {
7048 // See if C++-style comments work.
7049 // Iterate through items via the restricted pointer.
7050 // Also check for declarations in for loops.
7051 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7052 continue;
7053 return 0;
7054 }
7055
7056 // Check varargs and va_copy.
7057 static void
7058 test_varargs (const char *format, ...)
7059 {
7060 va_list args;
7061 va_start (args, format);
7062 va_list args_copy;
7063 va_copy (args_copy, args);
7064
7065 const char *str;
7066 int number;
7067 float fnumber;
7068
7069 while (*format)
7070 {
7071 switch (*format++)
7072 {
7073 case 's': // string
7074 str = va_arg (args_copy, const char *);
7075 break;
7076 case 'd': // int
7077 number = va_arg (args_copy, int);
7078 break;
7079 case 'f': // float
7080 fnumber = va_arg (args_copy, double);
7081 break;
7082 default:
7083 break;
7084 }
7085 }
7086 va_end (args_copy);
7087 va_end (args);
7088 }
7089
7090 int
7091 main ()
7092 {
7093
7094 // Check bool.
7095 _Bool success = false;
7096
7097 // Check restrict.
7098 if (test_restrict ("String literal") == 0)
7099 success = true;
7100 char *restrict newvar = "Another string";
7101
7102 // Check varargs.
7103 test_varargs ("s, d' f .", "string", 65, 34.234);
7104 test_varargs_macros ();
7105
7106 // Check flexible array members.
7107 struct incomplete_array *ia =
7108 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7109 ia->datasize = 10;
7110 for (int i = 0; i < ia->datasize; ++i)
7111 ia->data[i] = i * 1.234;
7112
7113 // Check named initializers.
7114 struct named_init ni = {
7115 .number = 34,
7116 .name = L"Test wide string",
7117 .average = 543.34343,
7118 };
7119
7120 ni.number = 58;
7121
7122 int dynamic_array[ni.number];
7123 dynamic_array[ni.number - 1] = 543;
7124
7125 // work around unused variable warnings
7126 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7127 || dynamic_array[ni.number - 1] != 543);
7128
7129 ;
7130 return 0;
7131 }
7132 _ACEOF
7133 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7134 do
7135 CC="$ac_save_CC $ac_arg"
7136 if ac_fn_c_try_compile "$LINENO"; then :
7137 ac_cv_prog_cc_c99=$ac_arg
7138 fi
7139 rm -f core conftest.err conftest.$ac_objext
7140 test "x$ac_cv_prog_cc_c99" != "xno" && break
7141 done
7142 rm -f conftest.$ac_ext
7143 CC=$ac_save_CC
7144
7145 fi
7146 # AC_CACHE_VAL
7147 case "x$ac_cv_prog_cc_c99" in
7148 x)
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7150 $as_echo "none needed" >&6; } ;;
7151 xno)
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7153 $as_echo "unsupported" >&6; } ;;
7154 *)
7155 CC="$CC $ac_cv_prog_cc_c99"
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7157 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7158 esac
7159 if test "x$ac_cv_prog_cc_c99" != xno; then :
7160 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7161 else
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7164 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 ac_cv_prog_cc_c89=no
7168 ac_save_CC=$CC
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7171 #include <stdarg.h>
7172 #include <stdio.h>
7173 #include <sys/types.h>
7174 #include <sys/stat.h>
7175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7176 struct buf { int x; };
7177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7178 static char *e (p, i)
7179 char **p;
7180 int i;
7181 {
7182 return p[i];
7183 }
7184 static char *f (char * (*g) (char **, int), char **p, ...)
7185 {
7186 char *s;
7187 va_list v;
7188 va_start (v,p);
7189 s = g (p, va_arg (v,int));
7190 va_end (v);
7191 return s;
7192 }
7193
7194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7195 function prototypes and stuff, but not '\xHH' hex character constants.
7196 These don't provoke an error unfortunately, instead are silently treated
7197 as 'x'. The following induces an error, until -std is added to get
7198 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7199 array size at least. It's necessary to write '\x00'==0 to get something
7200 that's true only with -std. */
7201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7202
7203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7204 inside strings and character constants. */
7205 #define FOO(x) 'x'
7206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7207
7208 int test (int i, double x);
7209 struct s1 {int (*f) (int a);};
7210 struct s2 {int (*f) (double a);};
7211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7212 int argc;
7213 char **argv;
7214 int
7215 main ()
7216 {
7217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7218 ;
7219 return 0;
7220 }
7221 _ACEOF
7222 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7223 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7224 do
7225 CC="$ac_save_CC $ac_arg"
7226 if ac_fn_c_try_compile "$LINENO"; then :
7227 ac_cv_prog_cc_c89=$ac_arg
7228 fi
7229 rm -f core conftest.err conftest.$ac_objext
7230 test "x$ac_cv_prog_cc_c89" != "xno" && break
7231 done
7232 rm -f conftest.$ac_ext
7233 CC=$ac_save_CC
7234
7235 fi
7236 # AC_CACHE_VAL
7237 case "x$ac_cv_prog_cc_c89" in
7238 x)
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7240 $as_echo "none needed" >&6; } ;;
7241 xno)
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7243 $as_echo "unsupported" >&6; } ;;
7244 *)
7245 CC="$CC $ac_cv_prog_cc_c89"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7248 esac
7249 if test "x$ac_cv_prog_cc_c89" != xno; then :
7250 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7251 else
7252 ac_cv_prog_cc_stdc=no
7253 fi
7254
7255 fi
7256 ;;
7257 esac
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7259 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7260 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7262 fi
7263
7264 case $ac_cv_prog_cc_stdc in #(
7265 no) :
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7267 $as_echo "unsupported" >&6; } ;; #(
7268 '') :
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7270 $as_echo "none needed" >&6; } ;; #(
7271 *) :
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7273 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7274 esac
7275
7276
7277
7278 # Code from module alloca-opt:
7279 # Code from module allocator:
7280 # Code from module at-internal:
7281 # Code from module binary-io:
7282 # Code from module byteswap:
7283 # Code from module c-ctype:
7284 # Code from module c-strcase:
7285 # Code from module careadlinkat:
7286 # Code from module clock-time:
7287 # Code from module close-stream:
7288 # Code from module count-one-bits:
7289 # Code from module count-trailing-zeros:
7290 # Code from module crypto/md5:
7291 # Code from module crypto/sha1:
7292 # Code from module crypto/sha256:
7293 # Code from module crypto/sha512:
7294 # Code from module dirent:
7295 # Code from module dosname:
7296 # Code from module dtoastr:
7297 # Code from module dtotimespec:
7298 # Code from module dup2:
7299 # Code from module environ:
7300 # Code from module errno:
7301 # Code from module euidaccess:
7302 # Code from module execinfo:
7303 # Code from module extensions:
7304
7305 # Code from module extern-inline:
7306 # Code from module faccessat:
7307 # Code from module fcntl:
7308 # Code from module fcntl-h:
7309 # Code from module fdatasync:
7310 # Code from module fdopendir:
7311 # Code from module filemode:
7312 # Code from module fpending:
7313 # Code from module fstatat:
7314 # Code from module fsync:
7315 # Code from module getdtablesize:
7316 # Code from module getgroups:
7317 # Code from module getloadavg:
7318 # Code from module getopt-gnu:
7319 # Code from module getopt-posix:
7320 # Code from module gettext-h:
7321 # Code from module gettime:
7322 # Code from module gettimeofday:
7323 # Code from module group-member:
7324 # Code from module include_next:
7325 # Code from module intprops:
7326 # Code from module inttypes-incomplete:
7327 # Code from module largefile:
7328
7329 # Code from module lstat:
7330 # Code from module manywarnings:
7331 # Code from module memrchr:
7332 # Code from module mkostemp:
7333 # Code from module mktime:
7334 # Code from module multiarch:
7335 # Code from module nocrash:
7336 # Code from module openat-h:
7337 # Code from module pathmax:
7338 # Code from module pipe2:
7339 # Code from module pselect:
7340 # Code from module pthread_sigmask:
7341 # Code from module putenv:
7342 # Code from module qacl:
7343 # Code from module readlink:
7344 # Code from module readlinkat:
7345 # Code from module root-uid:
7346 # Code from module secure_getenv:
7347 # Code from module sig2str:
7348 # Code from module signal-h:
7349 # Code from module snippet/_Noreturn:
7350 # Code from module snippet/arg-nonnull:
7351 # Code from module snippet/c++defs:
7352 # Code from module snippet/warn-on-use:
7353 # Code from module socklen:
7354 # Code from module ssize_t:
7355 # Code from module stat:
7356 # Code from module stat-time:
7357 # Code from module stdalign:
7358 # Code from module stdarg:
7359
7360
7361
7362 # Code from module stdbool:
7363 # Code from module stddef:
7364 # Code from module stdint:
7365 # Code from module stdio:
7366 # Code from module stdlib:
7367 # Code from module strftime:
7368 # Code from module string:
7369 # Code from module strtoimax:
7370 # Code from module strtoll:
7371 # Code from module strtoull:
7372 # Code from module strtoumax:
7373 # Code from module symlink:
7374 # Code from module sys_select:
7375 # Code from module sys_stat:
7376 # Code from module sys_time:
7377 # Code from module tempname:
7378 # Code from module time:
7379 # Code from module time_r:
7380 # Code from module timer-time:
7381 # Code from module timespec:
7382 # Code from module timespec-add:
7383 # Code from module timespec-sub:
7384 # Code from module u64:
7385 # Code from module unistd:
7386 # Code from module unsetenv:
7387 # Code from module utimens:
7388 # Code from module verify:
7389 # Code from module warnings:
7390 # Code from module xalloc-oversized:
7391
7392
7393 if test "$ac_test_CFLAGS" != set; then
7394 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7395 # if -g3 works and the user does not specify CFLAGS.
7396 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7397 case $CFLAGS in
7398 '-g')
7399 emacs_g3_CFLAGS='-g3';;
7400 '-g -O2')
7401 emacs_g3_CFLAGS='-g3 -O2';;
7402 *)
7403 emacs_g3_CFLAGS='';;
7404 esac
7405 if test -n "$emacs_g3_CFLAGS"; then
7406 emacs_save_CFLAGS=$CFLAGS
7407 CFLAGS=$emacs_g3_CFLAGS
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7409 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7410 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7415
7416 int
7417 main ()
7418 {
7419
7420 ;
7421 return 0;
7422 }
7423 _ACEOF
7424 if ac_fn_c_try_link "$LINENO"; then :
7425 emacs_cv_prog_cc_g3=yes
7426 else
7427 emacs_cv_prog_cc_g3=no
7428 fi
7429 rm -f core conftest.err conftest.$ac_objext \
7430 conftest$ac_exeext conftest.$ac_ext
7431 fi
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7433 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7434 if test $emacs_cv_prog_cc_g3 != yes; then
7435 CFLAGS=$emacs_save_CFLAGS
7436 fi
7437 if test $opsys = mingw32; then
7438 CFLAGS="$CFLAGS -gdwarf-2"
7439 fi
7440 fi
7441
7442 case $CFLAGS in
7443 *-O*) ;;
7444 *)
7445 # No optimization flag was inferred for this non-GCC compiler.
7446 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7447 emacs_save_CFLAGS=$CFLAGS
7448 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7449 CFLAGS=${CFLAGS}-O
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7451 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7452 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457
7458 int
7459 main ()
7460 {
7461
7462 ;
7463 return 0;
7464 }
7465 _ACEOF
7466 if ac_fn_c_try_link "$LINENO"; then :
7467 emacs_cv_prog_cc_o=yes
7468 else
7469 emacs_cv_prog_cc_o=no
7470 fi
7471 rm -f core conftest.err conftest.$ac_objext \
7472 conftest$ac_exeext conftest.$ac_ext
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7475 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7476 if test $emacs_cv_prog_cc_o != yes; then
7477 CFLAGS=$emacs_save_CFLAGS
7478 fi ;;
7479 esac
7480 fi
7481
7482 # Check whether --enable-gcc-warnings was given.
7483 if test "${enable_gcc_warnings+set}" = set; then :
7484 enableval=$enable_gcc_warnings; case $enableval in
7485 yes|no) ;;
7486 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7487 esac
7488 gl_gcc_warnings=$enableval
7489 else
7490 gl_gcc_warnings=no
7491
7492 fi
7493
7494
7495 # Check whether --enable-link-time-optimization was given.
7496 if test "${enable_link_time_optimization+set}" = set; then :
7497 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7499 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7500 ac_lto_supported=no
7501 if test x$GCC = xyes; then
7502 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7503 if test x$CPUS != x; then
7504 LTO="-flto=$CPUS"
7505 else
7506 LTO="-flto"
7507 fi
7508 old_CFLAGS=$CFLAGS
7509 CFLAGS="$CFLAGS $LTO"
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512
7513 int
7514 main ()
7515 {
7516
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 if ac_fn_c_try_compile "$LINENO"; then :
7522 ac_lto_supported=yes
7523 else
7524 ac_lto_supported=no
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 CFLAGS="$old_CFLAGS"
7528 fi
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7530 $as_echo "$ac_lto_supported" >&6; }
7531 if test "$ac_lto_supported" = "yes"; then
7532 CFLAGS="$CFLAGS $LTO"
7533 fi
7534 fi
7535 fi
7536
7537
7538 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7539 # ------------------------------------------------
7540 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7541 # Otherwise, run RUN-IF-NOT-FOUND.
7542
7543
7544 # clang is unduly picky about some things.
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7546 $as_echo_n "checking whether the compiler is clang... " >&6; }
7547 if test "${emacs_cv_clang+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552
7553 #ifndef __clang__
7554 #error "not clang"
7555 #endif
7556
7557 int
7558 main ()
7559 {
7560
7561 ;
7562 return 0;
7563 }
7564 _ACEOF
7565 if ac_fn_c_try_compile "$LINENO"; then :
7566 emacs_cv_clang=yes
7567 else
7568 emacs_cv_clang=no
7569 fi
7570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571 fi
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7573 $as_echo "$emacs_cv_clang" >&6; }
7574
7575 # When compiling with GCC, prefer -isystem to -I when including system
7576 # include files, to avoid generating useless diagnostics for the files.
7577 if test "$gl_gcc_warnings" != yes; then
7578 isystem='-I'
7579 if test "$emacs_cv_clang" = yes
7580 then
7581 # Turn off some warnings if supported.
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7583 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7584 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587
7588 gl_save_compiler_FLAGS="$CFLAGS"
7589 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592
7593 int
7594 main ()
7595 {
7596
7597 ;
7598 return 0;
7599 }
7600 _ACEOF
7601 if ac_fn_c_try_link "$LINENO"; then :
7602 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7603 else
7604 gl_cv_warn_c__Werror__Wunknown_warning_option=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7608 CFLAGS="$gl_save_compiler_FLAGS"
7609
7610 fi
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7612 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7613 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x""yes; then :
7614 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7615 else
7616 gl_unknown_warnings_are_errors=
7617 fi
7618
7619
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7621 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7622 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625
7626 gl_save_compiler_FLAGS="$CFLAGS"
7627 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wswitch"
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630
7631 int
7632 main ()
7633 {
7634
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_link "$LINENO"; then :
7640 gl_cv_warn_c__Wno_switch=yes
7641 else
7642 gl_cv_warn_c__Wno_switch=no
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext \
7645 conftest$ac_exeext conftest.$ac_ext
7646 CFLAGS="$gl_save_compiler_FLAGS"
7647
7648 fi
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7650 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7651 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7652 as_fn_append WARN_CFLAGS " -Wno-switch"
7653 fi
7654
7655
7656
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
7658 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
7659 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662
7663 gl_save_compiler_FLAGS="$CFLAGS"
7664 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667
7668 int
7669 main ()
7670 {
7671
7672 ;
7673 return 0;
7674 }
7675 _ACEOF
7676 if ac_fn_c_try_link "$LINENO"; then :
7677 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
7678 else
7679 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
7680 fi
7681 rm -f core conftest.err conftest.$ac_objext \
7682 conftest$ac_exeext conftest.$ac_ext
7683 CFLAGS="$gl_save_compiler_FLAGS"
7684
7685 fi
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
7687 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
7688 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
7689 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
7690 fi
7691
7692
7693
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-pointer-sign" >&5
7695 $as_echo_n "checking whether C compiler handles -Wno-pointer-sign... " >&6; }
7696 if test "${gl_cv_warn_c__Wno_pointer_sign+set}" = set; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699
7700 gl_save_compiler_FLAGS="$CFLAGS"
7701 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-sign"
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704
7705 int
7706 main ()
7707 {
7708
7709 ;
7710 return 0;
7711 }
7712 _ACEOF
7713 if ac_fn_c_try_link "$LINENO"; then :
7714 gl_cv_warn_c__Wno_pointer_sign=yes
7715 else
7716 gl_cv_warn_c__Wno_pointer_sign=no
7717 fi
7718 rm -f core conftest.err conftest.$ac_objext \
7719 conftest$ac_exeext conftest.$ac_ext
7720 CFLAGS="$gl_save_compiler_FLAGS"
7721
7722 fi
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_pointer_sign" >&5
7724 $as_echo "$gl_cv_warn_c__Wno_pointer_sign" >&6; }
7725 if test "x$gl_cv_warn_c__Wno_pointer_sign" = x""yes; then :
7726 as_fn_append WARN_CFLAGS " -Wno-pointer-sign"
7727 fi
7728
7729
7730 fi
7731 else
7732 isystem='-isystem '
7733
7734 # This, $nw, is the list of warnings we disable.
7735 nw=
7736
7737 case $with_x_toolkit in
7738 lucid | athena | motif)
7739 # Old toolkits mishandle 'const'.
7740 nw="$nw -Wwrite-strings"
7741 ;;
7742 *)
7743
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7745 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7746 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749
7750 gl_save_compiler_FLAGS="$CFLAGS"
7751 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754
7755 int
7756 main ()
7757 {
7758
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 if ac_fn_c_try_link "$LINENO"; then :
7764 gl_cv_warn_c__Werror=yes
7765 else
7766 gl_cv_warn_c__Werror=no
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 CFLAGS="$gl_save_compiler_FLAGS"
7771
7772 fi
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7774 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7775 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7776 as_fn_append WERROR_CFLAGS " -Werror"
7777 fi
7778
7779
7780 ;;
7781 esac
7782
7783
7784 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7785 nw="$nw -Woverlength-strings" # Not a problem these days
7786 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7787 nw="$nw -Wformat-nonliteral" # we do this a lot
7788 nw="$nw -Wvla" # warnings in gettext.h
7789 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7790 nw="$nw -Wswitch-default" # Too many warnings for now
7791 nw="$nw -Winline" # OK to ignore 'inline'
7792 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7793 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7794 # signed overflow has undefined behavior
7795 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7796 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7797 nw="$nw -Wbad-function-cast" # These casts are no worse than others.
7798
7799 # Emacs doesn't care about shadowing; see
7800 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7801 nw="$nw -Wshadow"
7802
7803 # Emacs's use of alloca inhibits protecting the stack.
7804 nw="$nw -Wstack-protector"
7805
7806 # The following line should be removable at some point.
7807 nw="$nw -Wsuggest-attribute=pure"
7808
7809 # This part is merely for shortening the command line,
7810 # since -Wno-FOO needs to be added below regardless.
7811 nw="$nw -Wmissing-field-initializers"
7812 nw="$nw -Wswitch"
7813 nw="$nw -Wtype-limits"
7814 nw="$nw -Wunused-parameter"
7815
7816 if test $emacs_cv_clang = yes; then
7817 nw="$nw -Wcast-align"
7818 fi
7819
7820
7821
7822 if test -n "$GCC"; then
7823
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7825 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7826 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829
7830 gl_save_CFLAGS="$CFLAGS"
7831 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834
7835 int
7836 main ()
7837 {
7838
7839 ;
7840 return 0;
7841 }
7842 _ACEOF
7843 if ac_fn_c_try_compile "$LINENO"; then :
7844 gl_cv_cc_nomfi_supported=yes
7845 else
7846 gl_cv_cc_nomfi_supported=no
7847 fi
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849 CFLAGS="$gl_save_CFLAGS"
7850 fi
7851
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7853 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7854
7855 if test "$gl_cv_cc_nomfi_supported" = yes; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7857 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7858 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861
7862 gl_save_CFLAGS="$CFLAGS"
7863 CFLAGS="$CFLAGS -W -Werror"
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 void f (void)
7867 {
7868 typedef struct { int a; int b; } s_t;
7869 s_t s1 = { 0, };
7870 }
7871
7872 int
7873 main ()
7874 {
7875
7876 ;
7877 return 0;
7878 }
7879 _ACEOF
7880 if ac_fn_c_try_compile "$LINENO"; then :
7881 gl_cv_cc_nomfi_needed=no
7882 else
7883 gl_cv_cc_nomfi_needed=yes
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 CFLAGS="$gl_save_CFLAGS"
7887
7888 fi
7889
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7891 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7892 fi
7893
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7895 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7896 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899
7900 gl_save_CFLAGS="$CFLAGS"
7901 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904
7905 int
7906 main ()
7907 {
7908
7909 ;
7910 return 0;
7911 }
7912 _ACEOF
7913 if ac_fn_c_try_compile "$LINENO"; then :
7914 gl_cv_cc_uninitialized_supported=yes
7915 else
7916 gl_cv_cc_uninitialized_supported=no
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919 CFLAGS="$gl_save_CFLAGS"
7920 fi
7921
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7923 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7924
7925 fi
7926
7927 # List all gcc warning categories.
7928 gl_manywarn_set=
7929 for gl_manywarn_item in \
7930 -W \
7931 -Wabi \
7932 -Waddress \
7933 -Waggressive-loop-optimizations \
7934 -Wall \
7935 -Warray-bounds \
7936 -Wattributes \
7937 -Wbad-function-cast \
7938 -Wbuiltin-macro-redefined \
7939 -Wcast-align \
7940 -Wchar-subscripts \
7941 -Wclobbered \
7942 -Wcomment \
7943 -Wcomments \
7944 -Wcoverage-mismatch \
7945 -Wcpp \
7946 -Wdeprecated \
7947 -Wdeprecated-declarations \
7948 -Wdisabled-optimization \
7949 -Wdiv-by-zero \
7950 -Wdouble-promotion \
7951 -Wempty-body \
7952 -Wendif-labels \
7953 -Wenum-compare \
7954 -Wextra \
7955 -Wformat-contains-nul \
7956 -Wformat-extra-args \
7957 -Wformat-nonliteral \
7958 -Wformat-security \
7959 -Wformat-y2k \
7960 -Wformat-zero-length \
7961 -Wfree-nonheap-object \
7962 -Wignored-qualifiers \
7963 -Wimplicit \
7964 -Wimplicit-function-declaration \
7965 -Wimplicit-int \
7966 -Winit-self \
7967 -Winline \
7968 -Wint-to-pointer-cast \
7969 -Winvalid-memory-model \
7970 -Winvalid-pch \
7971 -Wjump-misses-init \
7972 -Wlogical-op \
7973 -Wmain \
7974 -Wmaybe-uninitialized \
7975 -Wmissing-braces \
7976 -Wmissing-declarations \
7977 -Wmissing-field-initializers \
7978 -Wmissing-include-dirs \
7979 -Wmissing-parameter-type \
7980 -Wmissing-prototypes \
7981 -Wmudflap \
7982 -Wmultichar \
7983 -Wnarrowing \
7984 -Wnested-externs \
7985 -Wnonnull \
7986 -Wnormalized=nfc \
7987 -Wold-style-declaration \
7988 -Wold-style-definition \
7989 -Woverflow \
7990 -Woverlength-strings \
7991 -Woverride-init \
7992 -Wpacked \
7993 -Wpacked-bitfield-compat \
7994 -Wparentheses \
7995 -Wpointer-arith \
7996 -Wpointer-sign \
7997 -Wpointer-to-int-cast \
7998 -Wpragmas \
7999 -Wreturn-local-addr \
8000 -Wreturn-type \
8001 -Wsequence-point \
8002 -Wshadow \
8003 -Wsizeof-pointer-memaccess \
8004 -Wstack-protector \
8005 -Wstrict-aliasing \
8006 -Wstrict-overflow \
8007 -Wstrict-prototypes \
8008 -Wsuggest-attribute=const \
8009 -Wsuggest-attribute=format \
8010 -Wsuggest-attribute=noreturn \
8011 -Wsuggest-attribute=pure \
8012 -Wswitch \
8013 -Wswitch-default \
8014 -Wsync-nand \
8015 -Wsystem-headers \
8016 -Wtrampolines \
8017 -Wtrigraphs \
8018 -Wtype-limits \
8019 -Wuninitialized \
8020 -Wunknown-pragmas \
8021 -Wunsafe-loop-optimizations \
8022 -Wunused \
8023 -Wunused-but-set-parameter \
8024 -Wunused-but-set-variable \
8025 -Wunused-function \
8026 -Wunused-label \
8027 -Wunused-local-typedefs \
8028 -Wunused-macros \
8029 -Wunused-parameter \
8030 -Wunused-result \
8031 -Wunused-value \
8032 -Wunused-variable \
8033 -Wvarargs \
8034 -Wvariadic-macros \
8035 -Wvector-operation-performance \
8036 -Wvla \
8037 -Wvolatile-register-var \
8038 -Wwrite-strings \
8039 -fdiagnostics-show-option \
8040 -funit-at-a-time \
8041 \
8042 ; do
8043 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
8044 done
8045
8046 # Disable specific options as needed.
8047 if test "$gl_cv_cc_nomfi_needed" = yes; then
8048 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
8049 fi
8050
8051 if test "$gl_cv_cc_uninitialized_supported" = no; then
8052 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
8053 fi
8054
8055 ws=$gl_manywarn_set
8056
8057
8058 gl_warn_set=
8059 set x $ws; shift
8060 for gl_warn_item
8061 do
8062 case " $nw " in
8063 *" $gl_warn_item "*)
8064 ;;
8065 *)
8066 gl_warn_set="$gl_warn_set $gl_warn_item"
8067 ;;
8068 esac
8069 done
8070 ws=$gl_warn_set
8071
8072 for w in $ws; do
8073
8074 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
8075 gl_positive="$w"
8076 case $gl_positive in
8077 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
8078 esac
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
8080 $as_echo_n "checking whether C compiler handles $w... " >&6; }
8081 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084
8085 gl_save_compiler_FLAGS="$CFLAGS"
8086 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089
8090 int
8091 main ()
8092 {
8093
8094 ;
8095 return 0;
8096 }
8097 _ACEOF
8098 if ac_fn_c_try_link "$LINENO"; then :
8099 eval "$as_gl_Warn=yes"
8100 else
8101 eval "$as_gl_Warn=no"
8102 fi
8103 rm -f core conftest.err conftest.$ac_objext \
8104 conftest$ac_exeext conftest.$ac_ext
8105 CFLAGS="$gl_save_compiler_FLAGS"
8106
8107 fi
8108 eval ac_res=\$$as_gl_Warn
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8110 $as_echo "$ac_res" >&6; }
8111 eval as_val=\$$as_gl_Warn
8112 if test "x$as_val" = x""yes; then :
8113 as_fn_append WARN_CFLAGS " $w"
8114 fi
8115
8116
8117 done
8118
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
8120 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
8121 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124
8125 gl_save_compiler_FLAGS="$CFLAGS"
8126 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129
8130 int
8131 main ()
8132 {
8133
8134 ;
8135 return 0;
8136 }
8137 _ACEOF
8138 if ac_fn_c_try_link "$LINENO"; then :
8139 gl_cv_warn_c__Wno_missing_field_initializers=yes
8140 else
8141 gl_cv_warn_c__Wno_missing_field_initializers=no
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 CFLAGS="$gl_save_compiler_FLAGS"
8146
8147 fi
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8149 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8150 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
8151 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
8152 fi
8153
8154 # We need this one
8155
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
8157 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8158 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161
8162 gl_save_compiler_FLAGS="$CFLAGS"
8163 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare"
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166
8167 int
8168 main ()
8169 {
8170
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_link "$LINENO"; then :
8176 gl_cv_warn_c__Wno_sign_compare=yes
8177 else
8178 gl_cv_warn_c__Wno_sign_compare=no
8179 fi
8180 rm -f core conftest.err conftest.$ac_objext \
8181 conftest$ac_exeext conftest.$ac_ext
8182 CFLAGS="$gl_save_compiler_FLAGS"
8183
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8186 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8187 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
8188 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
8189 fi
8190
8191 # Too many warnings for now
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8194 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8195 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198
8199 gl_save_compiler_FLAGS="$CFLAGS"
8200 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203
8204 int
8205 main ()
8206 {
8207
8208 ;
8209 return 0;
8210 }
8211 _ACEOF
8212 if ac_fn_c_try_link "$LINENO"; then :
8213 gl_cv_warn_c__Wno_type_limits=yes
8214 else
8215 gl_cv_warn_c__Wno_type_limits=no
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8219 CFLAGS="$gl_save_compiler_FLAGS"
8220
8221 fi
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8223 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8224 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
8225 as_fn_append WARN_CFLAGS " -Wno-type-limits"
8226 fi
8227
8228 # Too many warnings for now
8229
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8231 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8232 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235
8236 gl_save_compiler_FLAGS="$CFLAGS"
8237 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wswitch"
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240
8241 int
8242 main ()
8243 {
8244
8245 ;
8246 return 0;
8247 }
8248 _ACEOF
8249 if ac_fn_c_try_link "$LINENO"; then :
8250 gl_cv_warn_c__Wno_switch=yes
8251 else
8252 gl_cv_warn_c__Wno_switch=no
8253 fi
8254 rm -f core conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
8256 CFLAGS="$gl_save_compiler_FLAGS"
8257
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8260 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8261 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
8262 as_fn_append WARN_CFLAGS " -Wno-switch"
8263 fi
8264
8265 # Too many warnings for now
8266
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8268 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8269 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272
8273 gl_save_compiler_FLAGS="$CFLAGS"
8274 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8277
8278 int
8279 main ()
8280 {
8281
8282 ;
8283 return 0;
8284 }
8285 _ACEOF
8286 if ac_fn_c_try_link "$LINENO"; then :
8287 gl_cv_warn_c__Wno_unused_parameter=yes
8288 else
8289 gl_cv_warn_c__Wno_unused_parameter=no
8290 fi
8291 rm -f core conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
8293 CFLAGS="$gl_save_compiler_FLAGS"
8294
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8297 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8298 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
8299 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
8300 fi
8301
8302 # Too many warnings for now
8303
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8305 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8306 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309
8310 gl_save_compiler_FLAGS="$CFLAGS"
8311 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-nonliteral"
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8314
8315 int
8316 main ()
8317 {
8318
8319 ;
8320 return 0;
8321 }
8322 _ACEOF
8323 if ac_fn_c_try_link "$LINENO"; then :
8324 gl_cv_warn_c__Wno_format_nonliteral=yes
8325 else
8326 gl_cv_warn_c__Wno_format_nonliteral=no
8327 fi
8328 rm -f core conftest.err conftest.$ac_objext \
8329 conftest$ac_exeext conftest.$ac_ext
8330 CFLAGS="$gl_save_compiler_FLAGS"
8331
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8334 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8335 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8336 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8337 fi
8338
8339
8340
8341 # In spite of excluding -Wlogical-op above, it is enabled, as of
8342 # gcc 4.5.0 20090517.
8343
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8345 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8346 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349
8350 gl_save_compiler_FLAGS="$CFLAGS"
8351 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wlogical-op"
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354
8355 int
8356 main ()
8357 {
8358
8359 ;
8360 return 0;
8361 }
8362 _ACEOF
8363 if ac_fn_c_try_link "$LINENO"; then :
8364 gl_cv_warn_c__Wno_logical_op=yes
8365 else
8366 gl_cv_warn_c__Wno_logical_op=no
8367 fi
8368 rm -f core conftest.err conftest.$ac_objext \
8369 conftest$ac_exeext conftest.$ac_ext
8370 CFLAGS="$gl_save_compiler_FLAGS"
8371
8372 fi
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8374 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8375 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8376 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8377 fi
8378
8379
8380
8381 # More things that clang is unduly picky about.
8382 if test $emacs_cv_clang = yes; then
8383
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8385 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8386 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389
8390 gl_save_compiler_FLAGS="$CFLAGS"
8391 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-extra-args"
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8394
8395 int
8396 main ()
8397 {
8398
8399 ;
8400 return 0;
8401 }
8402 _ACEOF
8403 if ac_fn_c_try_link "$LINENO"; then :
8404 gl_cv_warn_c__Wno_format_extra_args=yes
8405 else
8406 gl_cv_warn_c__Wno_format_extra_args=no
8407 fi
8408 rm -f core conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
8410 CFLAGS="$gl_save_compiler_FLAGS"
8411
8412 fi
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8414 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8415 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x""yes; then :
8416 as_fn_append WARN_CFLAGS " -Wno-format-extra-args"
8417 fi
8418
8419
8420
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8422 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8423 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426
8427 gl_save_compiler_FLAGS="$CFLAGS"
8428 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431
8432 int
8433 main ()
8434 {
8435
8436 ;
8437 return 0;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_link "$LINENO"; then :
8441 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
8442 else
8443 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 CFLAGS="$gl_save_compiler_FLAGS"
8448
8449 fi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8451 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8452 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
8453 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
8454 fi
8455
8456
8457
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8459 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8460 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
8462 else
8463
8464 gl_save_compiler_FLAGS="$CFLAGS"
8465 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-command-line-argument"
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468
8469 int
8470 main ()
8471 {
8472
8473 ;
8474 return 0;
8475 }
8476 _ACEOF
8477 if ac_fn_c_try_link "$LINENO"; then :
8478 gl_cv_warn_c__Wno_unused_command_line_argument=yes
8479 else
8480 gl_cv_warn_c__Wno_unused_command_line_argument=no
8481 fi
8482 rm -f core conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8484 CFLAGS="$gl_save_compiler_FLAGS"
8485
8486 fi
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8488 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8489 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x""yes; then :
8490 as_fn_append WARN_CFLAGS " -Wno-unused-command-line-argument"
8491 fi
8492
8493
8494
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8496 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8497 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500
8501 gl_save_compiler_FLAGS="$CFLAGS"
8502 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-value"
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505
8506 int
8507 main ()
8508 {
8509
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 if ac_fn_c_try_link "$LINENO"; then :
8515 gl_cv_warn_c__Wno_unused_value=yes
8516 else
8517 gl_cv_warn_c__Wno_unused_value=no
8518 fi
8519 rm -f core conftest.err conftest.$ac_objext \
8520 conftest$ac_exeext conftest.$ac_ext
8521 CFLAGS="$gl_save_compiler_FLAGS"
8522
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8525 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8526 if test "x$gl_cv_warn_c__Wno_unused_value" = x""yes; then :
8527 as_fn_append WARN_CFLAGS " -Wno-unused-value"
8528 fi
8529
8530
8531 fi
8532
8533
8534 $as_echo "#define lint 1" >>confdefs.h
8535
8536
8537
8538 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8539
8540
8541 # We use a slightly smaller set of warning options for lib/.
8542 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8543 nw=
8544 nw="$nw -Wunused-macros"
8545
8546
8547 gl_warn_set=
8548 set x $WARN_CFLAGS; shift
8549 for gl_warn_item
8550 do
8551 case " $nw " in
8552 *" $gl_warn_item "*)
8553 ;;
8554 *)
8555 gl_warn_set="$gl_warn_set $gl_warn_item"
8556 ;;
8557 esac
8558 done
8559 GNULIB_WARN_CFLAGS=$gl_warn_set
8560
8561
8562 fi
8563
8564
8565
8566
8567
8568
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8570 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8571 rm -f conf$$ conf$$.file
8572
8573 LN_S_FILEONLY='cp -p'
8574
8575 if (echo >conf$$.file) 2>/dev/null; then
8576 if ln -s conf$$.file conf$$ 2>/dev/null; then
8577 LN_S_FILEONLY='ln -s'
8578 elif ln conf$$.file conf$$ 2>/dev/null; then
8579 LN_S_FILEONLY=ln
8580 fi
8581 fi
8582
8583 rm -f conf$$ conf$$.file
8584
8585 if test "$LN_S_FILEONLY" = "ln -s"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8587 $as_echo "yes" >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8590 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8591 fi
8592
8593
8594
8595
8596 if test "$opsys" = "mingw32"; then
8597 LN_S="ln"
8598 fi
8599
8600 # Extract the first word of "install-info", so it can be a program name with args.
8601 set dummy install-info; ac_word=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 case $INSTALL_INFO in
8608 [\\/]* | ?:[\\/]*)
8609 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8610 ;;
8611 *)
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8614 do
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8619 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 break 2
8622 fi
8623 done
8624 done
8625 IFS=$as_save_IFS
8626
8627 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8628 ;;
8629 esac
8630 fi
8631 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8632 if test -n "$INSTALL_INFO"; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8634 $as_echo "$INSTALL_INFO" >&6; }
8635 else
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8638 fi
8639
8640
8641 # Extract the first word of "gzip", so it can be a program name with args.
8642 set dummy gzip; ac_word=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 case $GZIP_PROG in
8649 [\\/]* | ?:[\\/]*)
8650 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8651 ;;
8652 *)
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $PATH
8655 do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8660 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8663 fi
8664 done
8665 done
8666 IFS=$as_save_IFS
8667
8668 ;;
8669 esac
8670 fi
8671 GZIP_PROG=$ac_cv_path_GZIP_PROG
8672 if test -n "$GZIP_PROG"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8674 $as_echo "$GZIP_PROG" >&6; }
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 fi
8679
8680
8681
8682 test $with_compress_install != yes && test -n "$GZIP_PROG" && \
8683 GZIP_PROG=" # $GZIP_PROG # (disabled by configure --without-compress-install)"
8684
8685 if test $opsys = gnu-linux; then
8686 # Extract the first word of "paxctl", so it can be a program name with args.
8687 set dummy paxctl; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 case $PAXCTL in
8694 [\\/]* | ?:[\\/]*)
8695 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8696 ;;
8697 *)
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8700 do
8701 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707 break 2
8708 fi
8709 done
8710 done
8711 IFS=$as_save_IFS
8712
8713 ;;
8714 esac
8715 fi
8716 PAXCTL=$ac_cv_path_PAXCTL
8717 if test -n "$PAXCTL"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8719 $as_echo "$PAXCTL" >&6; }
8720 else
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8723 fi
8724
8725
8726 if test "X$PAXCTL" != X; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8728 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731
8732 int
8733 main ()
8734 {
8735
8736 ;
8737 return 0;
8738 }
8739 _ACEOF
8740 if ac_fn_c_try_link "$LINENO"; then :
8741 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8742 $as_echo "yes" >&6; }
8743 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }; PAXCTL=""; fi
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext \
8747 conftest$ac_exeext conftest.$ac_ext
8748 fi
8749 fi
8750
8751 ## Need makeinfo >= 4.7 (?) to build the manuals.
8752 # Extract the first word of "makeinfo", so it can be a program name with args.
8753 set dummy makeinfo; ac_word=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 case $MAKEINFO in
8760 [\\/]* | ?:[\\/]*)
8761 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8762 ;;
8763 *)
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8766 do
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 break 2
8774 fi
8775 done
8776 done
8777 IFS=$as_save_IFS
8778
8779 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8780 ;;
8781 esac
8782 fi
8783 MAKEINFO=$ac_cv_path_MAKEINFO
8784 if test -n "$MAKEINFO"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8786 $as_echo "$MAKEINFO" >&6; }
8787 else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8790 fi
8791
8792
8793 if test "$MAKEINFO" != "no"; then
8794 case `
8795 $MAKEINFO --version 2> /dev/null |
8796 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8797 ` in
8798 '') MAKEINFO=no;;
8799 esac
8800 fi
8801
8802 ## Makeinfo is unusual. For a released Emacs, the manuals are
8803 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8804 ## therefore in the category of "special tools" not normally required, which
8805 ## configure does not have to check for (eg autoconf itself).
8806 ## In a Bazaar checkout on the other hand, the manuals are not included.
8807 ## So makeinfo is a requirement to build from Bazaar, and configure
8808 ## should test for it as it does for any other build requirement.
8809 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8810 ## with pre-built manuals, from a Bazaar checkout.
8811 HAVE_MAKEINFO=yes
8812
8813 if test "$MAKEINFO" = "no"; then
8814 MAKEINFO=makeinfo
8815 if test "x${with_makeinfo}" = "xno"; then
8816 HAVE_MAKEINFO=no
8817 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8818 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8819 source tree does not seem to have pre-built manuals in the \`info' directory.
8820 Either install a suitable version of makeinfo, or re-run configure
8821 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8822 fi
8823 fi
8824
8825
8826 INFO_EXT=.info
8827 INFO_OPTS=--no-split
8828
8829
8830
8831 if test $opsys = mingw32; then
8832 DOCMISC_W32=efaq-w32
8833 else
8834 DOCMISC_W32=
8835 fi
8836
8837
8838
8839 if test x$GCC = xyes; then
8840 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8841 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8842 else
8843 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8844 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8845 fi
8846
8847
8848 late_LDFLAGS="$LDFLAGS"
8849 if test x$GCC = xyes; then
8850 LDFLAGS_NOCOMBRELOC="-Wl,-znocombreloc"
8851 else
8852 LDFLAGS_NOCOMBRELOC="-znocombreloc"
8853 fi
8854
8855 LDFLAGS="$LDFLAGS $LDFLAGS_NOCOMBRELOC"
8856
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8858 $as_echo_n "checking for -znocombreloc... " >&6; }
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861
8862 int
8863 main ()
8864 {
8865
8866 ;
8867 return 0;
8868 }
8869 _ACEOF
8870 if ac_fn_c_try_link "$LINENO"; then :
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8872 $as_echo "yes" >&6; }
8873 else
8874 LDFLAGS_NOCOMBRELOC=
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876 $as_echo "no" >&6; }
8877 fi
8878 rm -f core conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880
8881 LDFLAGS="$late_LDFLAGS"
8882
8883 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8884 case "$opsys" in
8885 your-opsys-here) CANNOT_DUMP=yes ;;
8886 esac
8887
8888 test "$CANNOT_DUMP" = "yes" && \
8889
8890 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8891
8892
8893
8894
8895
8896 UNEXEC_OBJ=unexelf.o
8897 case "$opsys" in
8898 # MSDOS uses unexcoff.o
8899 aix4-2)
8900 UNEXEC_OBJ=unexaix.o
8901 ;;
8902 cygwin)
8903 UNEXEC_OBJ=unexcw.o
8904 ;;
8905 darwin)
8906 UNEXEC_OBJ=unexmacosx.o
8907 ;;
8908 hpux10-20 | hpux11)
8909 UNEXEC_OBJ=unexhp9k800.o
8910 ;;
8911 mingw32)
8912 UNEXEC_OBJ=unexw32.o
8913 ;;
8914 sol2-10)
8915 # Use the Solaris dldump() function, called from unexsol.c, to dump
8916 # emacs, instead of the generic ELF dump code found in unexelf.c.
8917 # The resulting binary has a complete symbol table, and is better
8918 # for debugging and other observability tools (debuggers, pstack, etc).
8919 #
8920 # If you encounter a problem using dldump(), please consider sending
8921 # a message to the OpenSolaris tools-linking mailing list:
8922 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8923 #
8924 # It is likely that dldump() works with older Solaris too, but this has
8925 # not been tested, so for now this change is for Solaris 10 or newer.
8926 UNEXEC_OBJ=unexsol.o
8927 ;;
8928 esac
8929
8930 LD_SWITCH_SYSTEM=
8931 case "$opsys" in
8932 freebsd|dragonfly)
8933 ## Let `ld' find image libs and similar things in /usr/local/lib.
8934 ## The system compiler, GCC, has apparently been modified to not
8935 ## look there, contrary to what a stock GCC would do.
8936 ### It's not our place to do this. See bug#10313#17.
8937 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8938 :
8939 ;;
8940
8941 gnu-linux)
8942 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8943 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8944 ;;
8945
8946 netbsd)
8947 ### It's not our place to do this. See bug#10313#17.
8948 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8949 :
8950 ;;
8951
8952 openbsd)
8953 ## Han Boetes <han@boetes.org> says this is necessary,
8954 ## otherwise Emacs dumps core on elf systems.
8955 LD_SWITCH_SYSTEM="-Z"
8956 ;;
8957 esac
8958
8959
8960 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8961
8962 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8963 ## which has not been defined yet. When this was handled with cpp,
8964 ## it was expanded to null when configure sourced the s/*.h file.
8965 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8966 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8967 ## (or somesuch), but because it is supposed to go at the _front_
8968 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8969 ## Compare with the gnu-linux case below, which added to the end
8970 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8971 ## LD_SWITCH_SYSTEM_TEMACS.
8972 case "$opsys" in
8973 netbsd|openbsd)
8974 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8975 esac
8976
8977
8978 C_SWITCH_MACHINE=
8979 case $canonical in
8980 alpha*)
8981 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8982 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8983
8984 fi
8985
8986 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8987 ## With ELF, make sure that all common symbols get allocated to in the
8988 ## data section. Otherwise, the dump of temacs may miss variables in
8989 ## the shared library that have been initialized. For example, with
8990 ## GNU libc, __malloc_initialized would normally be resolved to the
8991 ## shared library's .bss section, which is fatal.
8992 if test "x$GCC" = "xyes"; then
8993 C_SWITCH_MACHINE="-fno-common"
8994 else
8995 as_fn_error "Non-GCC compilers are not supported." "$LINENO" 5
8996 fi
8997 else
8998 as_fn_error "Non-ELF systems are not supported since Emacs 24.1." "$LINENO" 5
8999 fi
9000 ;;
9001 esac
9002
9003
9004
9005
9006 C_SWITCH_SYSTEM=
9007 ## Some programs in src produce warnings saying certain subprograms
9008 ## are too complex and need a MAXMEM value greater than 2000 for
9009 ## additional optimization. --nils@exp-math.uni-essen.de
9010 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
9011 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
9012 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM="-mtune=pentium4"
9013 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
9014 ## It is redundant in glibc2, since we define _GNU_SOURCE.
9015
9016
9017
9018 LIBS_SYSTEM=
9019 case "$opsys" in
9020 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
9021 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
9022
9023 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
9024
9025 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
9026
9027 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
9028
9029 ## Motif needs -lgen.
9030 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
9031 esac
9032
9033
9034
9035 ### Make sure subsequent tests use flags consistent with the build flags.
9036
9037 if test x"${OVERRIDE_CPPFLAGS}" != x; then
9038 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
9039 else
9040 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
9041 fi
9042
9043 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
9044
9045 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
9046
9047
9048
9049 LIB_MATH=-lm
9050 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
9051
9052 case $opsys in
9053 cygwin )
9054 LIB_MATH=
9055 ;;
9056 darwin )
9057 ## Adding -lm confuses the dynamic linker, so omit it.
9058 LIB_MATH=
9059 ;;
9060 freebsd | dragonfly )
9061 SYSTEM_TYPE=berkeley-unix
9062 ;;
9063 gnu-linux | gnu-kfreebsd )
9064 ;;
9065 hpux10-20 | hpux11 )
9066 ;;
9067 mingw32 )
9068 LIB_MATH=
9069 SYSTEM_TYPE=windows-nt
9070 ;;
9071 netbsd | openbsd )
9072 SYSTEM_TYPE=berkeley-unix
9073 ;;
9074
9075 sol2* | unixware )
9076 SYSTEM_TYPE=usg-unix-v
9077 ;;
9078
9079 esac
9080
9081
9082
9083 cat >>confdefs.h <<_ACEOF
9084 #define SYSTEM_TYPE "$SYSTEM_TYPE"
9085 _ACEOF
9086
9087
9088
9089 pre_PKG_CONFIG_CFLAGS=$CFLAGS
9090 pre_PKG_CONFIG_LIBS=$LIBS
9091
9092 # Extract the first word of "pkg-config", so it can be a program name with args.
9093 set dummy pkg-config; ac_word=$2
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9095 $as_echo_n "checking for $ac_word... " >&6; }
9096 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 case $PKG_CONFIG in
9100 [\\/]* | ?:[\\/]*)
9101 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9102 ;;
9103 *)
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9106 do
9107 IFS=$as_save_IFS
9108 test -z "$as_dir" && as_dir=.
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9111 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 break 2
9114 fi
9115 done
9116 done
9117 IFS=$as_save_IFS
9118
9119 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9120 ;;
9121 esac
9122 fi
9123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9124 if test -n "$PKG_CONFIG"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9126 $as_echo "$PKG_CONFIG" >&6; }
9127 else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9130 fi
9131
9132
9133
9134
9135
9136 HAVE_SOUND=no
9137 if test "${with_sound}" != "no"; then
9138 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9139 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
9140 do :
9141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9142 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9143 #ifdef __MINGW32__
9144 #define WIN32_LEAN_AND_MEAN
9145 #include <windows.h>
9146 #endif
9147
9148 "
9149 eval as_val=\$$as_ac_Header
9150 if test "x$as_val" = x""yes; then :
9151 cat >>confdefs.h <<_ACEOF
9152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9153 _ACEOF
9154 have_sound_header=yes
9155 fi
9156
9157 done
9158
9159 test "${with_sound}" = "oss" && test "${have_sound_header}" != "yes" && \
9160 as_fn_error "OSS sound support requested but not found." "$LINENO" 5
9161
9162 if test "${with_sound}" = "bsd-ossaudio" || test "${with_sound}" = "yes"; then
9163 # Emulation library used on NetBSD.
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9165 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9166 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 ac_check_lib_save_LIBS=$LIBS
9170 LIBS="-lossaudio $LIBS"
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9173
9174 /* Override any GCC internal prototype to avoid an error.
9175 Use char because int might match the return type of a GCC
9176 builtin and then its argument prototype would still apply. */
9177 #ifdef __cplusplus
9178 extern "C"
9179 #endif
9180 char _oss_ioctl ();
9181 int
9182 main ()
9183 {
9184 return _oss_ioctl ();
9185 ;
9186 return 0;
9187 }
9188 _ACEOF
9189 if ac_fn_c_try_link "$LINENO"; then :
9190 ac_cv_lib_ossaudio__oss_ioctl=yes
9191 else
9192 ac_cv_lib_ossaudio__oss_ioctl=no
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext \
9195 conftest$ac_exeext conftest.$ac_ext
9196 LIBS=$ac_check_lib_save_LIBS
9197 fi
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9199 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9200 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
9201 LIBSOUND=-lossaudio
9202 else
9203 LIBSOUND=
9204 fi
9205
9206 test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \
9207 as_fn_error "bsd-ossaudio sound support requested but not found." "$LINENO" 5
9208 fi
9209
9210
9211 if test "${with_sound}" = "alsa" || test "${with_sound}" = "yes"; then
9212 ALSA_REQUIRED=1.0.0
9213 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
9214
9215 succeeded=no
9216
9217 if test "$PKG_CONFIG" = "no" ; then
9218 HAVE_ALSA=no
9219 else
9220 PKG_CONFIG_MIN_VERSION=0.9.0
9221 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9223 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9224
9225 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9226 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9227 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9228 edit_cflags="
9229 s,///*,/,g
9230 s/^/ /
9231 s/ -I/ $isystem/g
9232 s/^ //
9233 "
9234 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9235 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9237 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9238 succeeded=yes
9239 else
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9242 ALSA_CFLAGS=""
9243 ALSA_LIBS=""
9244 ## If we have a custom action on failure, don't print errors, but
9245 ## do set a variable so people can do so. Do it in a subshell
9246 ## to capture any diagnostics in invoking pkg-config.
9247 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9248
9249 fi
9250
9251
9252
9253 else
9254 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9255 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9256 fi
9257 fi
9258
9259 if test $succeeded = yes; then
9260 HAVE_ALSA=yes
9261 else
9262 HAVE_ALSA=no
9263 fi
9264
9265 if test $HAVE_ALSA = yes; then
9266 SAVE_CFLAGS="$CFLAGS"
9267 SAVE_LIBS="$LIBS"
9268 CFLAGS="$ALSA_CFLAGS $CFLAGS"
9269 LIBS="$ALSA_LIBS $LIBS"
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272 #include <asoundlib.h>
9273 int
9274 main ()
9275 {
9276 snd_lib_error_set_handler (0);
9277 ;
9278 return 0;
9279 }
9280 _ACEOF
9281 if ac_fn_c_try_compile "$LINENO"; then :
9282 emacs_alsa_normal=yes
9283 else
9284 emacs_alsa_normal=no
9285 fi
9286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 if test "$emacs_alsa_normal" != yes; then
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 #include <alsa/asoundlib.h>
9291 int
9292 main ()
9293 {
9294 snd_lib_error_set_handler (0);
9295 ;
9296 return 0;
9297 }
9298 _ACEOF
9299 if ac_fn_c_try_compile "$LINENO"; then :
9300 emacs_alsa_subdir=yes
9301 else
9302 emacs_alsa_subdir=no
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305 if test "$emacs_alsa_subdir" != yes; then
9306 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9307 fi
9308 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9309 fi
9310
9311 CFLAGS="$SAVE_CFLAGS"
9312 LIBS="$SAVE_LIBS"
9313 LIBSOUND="$LIBSOUND $ALSA_LIBS"
9314 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
9315
9316 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9317
9318 elif test "${with_sound}" = "alsa"; then
9319 as_fn_error "ALSA sound support requested but not found." "$LINENO" 5
9320 fi
9321 fi
9322 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9323 case "$opsys" in
9324 gnu-linux|freebsd|netbsd|mingw32)
9325
9326 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9327
9328 HAVE_SOUND=yes
9329 ;;
9330 esac
9331 fi
9332
9333
9334 fi
9335
9336
9337
9338
9339 for ac_header in $ac_header_list
9340 do :
9341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9342 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9343 "
9344 eval as_val=\$$as_ac_Header
9345 if test "x$as_val" = x""yes; then :
9346 cat >>confdefs.h <<_ACEOF
9347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9348 _ACEOF
9349
9350 fi
9351
9352 done
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9373 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9376 #include <sys/personality.h>
9377 int
9378 main ()
9379 {
9380 personality (PER_LINUX32)
9381 ;
9382 return 0;
9383 }
9384 _ACEOF
9385 if ac_fn_c_try_compile "$LINENO"; then :
9386 emacs_cv_personality_linux32=yes
9387 else
9388 emacs_cv_personality_linux32=no
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9392 $as_echo "$emacs_cv_personality_linux32" >&6; }
9393
9394 if test $emacs_cv_personality_linux32 = yes; then
9395
9396 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9397
9398 fi
9399
9400 for ac_header in term.h
9401 do :
9402 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9403 if test "x$ac_cv_header_term_h" = x""yes; then :
9404 cat >>confdefs.h <<_ACEOF
9405 #define HAVE_TERM_H 1
9406 _ACEOF
9407
9408 fi
9409
9410 done
9411
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9413 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9414 if test "${ac_cv_header_time+set}" = set; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419 #include <sys/types.h>
9420 #include <sys/time.h>
9421 #include <time.h>
9422
9423 int
9424 main ()
9425 {
9426 if ((struct tm *) 0)
9427 return 0;
9428 ;
9429 return 0;
9430 }
9431 _ACEOF
9432 if ac_fn_c_try_compile "$LINENO"; then :
9433 ac_cv_header_time=yes
9434 else
9435 ac_cv_header_time=no
9436 fi
9437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9440 $as_echo "$ac_cv_header_time" >&6; }
9441 if test $ac_cv_header_time = yes; then
9442
9443 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9444
9445 fi
9446
9447 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9448
9449 "
9450 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9451 ac_have_decl=1
9452 else
9453 ac_have_decl=0
9454 fi
9455
9456 cat >>confdefs.h <<_ACEOF
9457 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9458 _ACEOF
9459
9460 if test $ac_cv_have_decl_sys_siglist != yes; then
9461 # For Tru64, at least:
9462 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9463
9464 "
9465 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9466 ac_have_decl=1
9467 else
9468 ac_have_decl=0
9469 fi
9470
9471 cat >>confdefs.h <<_ACEOF
9472 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9473 _ACEOF
9474
9475 fi
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9477 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9478 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 #include <sys/types.h>
9484 #include <sys/wait.h>
9485 #ifndef WEXITSTATUS
9486 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9487 #endif
9488 #ifndef WIFEXITED
9489 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9490 #endif
9491
9492 int
9493 main ()
9494 {
9495 int s;
9496 wait (&s);
9497 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9498 ;
9499 return 0;
9500 }
9501 _ACEOF
9502 if ac_fn_c_try_compile "$LINENO"; then :
9503 ac_cv_header_sys_wait_h=yes
9504 else
9505 ac_cv_header_sys_wait_h=no
9506 fi
9507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508 fi
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9510 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9511 if test $ac_cv_header_sys_wait_h = yes; then
9512
9513 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9514
9515 fi
9516
9517
9518
9519
9520
9521 for ac_header in net/if.h
9522 do :
9523 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9524 #if HAVE_SYS_SOCKET_H
9525 #include <sys/socket.h>
9526 #endif
9527 "
9528 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9529 cat >>confdefs.h <<_ACEOF
9530 #define HAVE_NET_IF_H 1
9531 _ACEOF
9532
9533 fi
9534
9535 done
9536
9537 for ac_header in ifaddrs.h
9538 do :
9539 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9540 #if HAVE_SYS_SOCKET_H
9541 #include <sys/socket.h>
9542 #endif
9543 "
9544 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9545 cat >>confdefs.h <<_ACEOF
9546 #define HAVE_IFADDRS_H 1
9547 _ACEOF
9548
9549 fi
9550
9551 done
9552
9553 for ac_header in net/if_dl.h
9554 do :
9555 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9556 #if HAVE_SYS_SOCKET_H
9557 #include <sys/socket.h>
9558 #endif
9559 "
9560 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9561 cat >>confdefs.h <<_ACEOF
9562 #define HAVE_NET_IF_DL_H 1
9563 _ACEOF
9564
9565 fi
9566
9567 done
9568
9569
9570 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9571 #if HAVE_SYS_SOCKET_H
9572 #include <sys/socket.h>
9573 #endif
9574 #if HAVE_NET_IF_H
9575 #include <net/if.h>
9576 #endif
9577 "
9578 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9579
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9582 _ACEOF
9583
9584
9585 fi
9586 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9587 #if HAVE_SYS_SOCKET_H
9588 #include <sys/socket.h>
9589 #endif
9590 #if HAVE_NET_IF_H
9591 #include <net/if.h>
9592 #endif
9593 "
9594 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9595
9596 cat >>confdefs.h <<_ACEOF
9597 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9598 _ACEOF
9599
9600
9601 fi
9602 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9603 #if HAVE_SYS_SOCKET_H
9604 #include <sys/socket.h>
9605 #endif
9606 #if HAVE_NET_IF_H
9607 #include <net/if.h>
9608 #endif
9609 "
9610 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9611
9612 cat >>confdefs.h <<_ACEOF
9613 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9614 _ACEOF
9615
9616
9617 fi
9618 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9619 #if HAVE_SYS_SOCKET_H
9620 #include <sys/socket.h>
9621 #endif
9622 #if HAVE_NET_IF_H
9623 #include <net/if.h>
9624 #endif
9625 "
9626 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9627
9628 cat >>confdefs.h <<_ACEOF
9629 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9630 _ACEOF
9631
9632
9633 fi
9634 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9635 #if HAVE_SYS_SOCKET_H
9636 #include <sys/socket.h>
9637 #endif
9638 #if HAVE_NET_IF_H
9639 #include <net/if.h>
9640 #endif
9641 "
9642 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9643
9644 cat >>confdefs.h <<_ACEOF
9645 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9646 _ACEOF
9647
9648
9649 fi
9650 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9651 #if HAVE_SYS_SOCKET_H
9652 #include <sys/socket.h>
9653 #endif
9654 #if HAVE_NET_IF_H
9655 #include <net/if.h>
9656 #endif
9657 "
9658 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9659
9660 cat >>confdefs.h <<_ACEOF
9661 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9662 _ACEOF
9663
9664
9665 fi
9666
9667
9668
9669
9670 DEPFLAGS=
9671 MKDEPDIR=":"
9672 deps_frag=deps.mk
9673 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9675 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9676 HAVE_GNU_MAKE=no
9677 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9678 if test "x$testval" != x; then
9679 HAVE_GNU_MAKE=yes
9680 else
9681 ac_enable_autodepend=no
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9684 $as_echo "$HAVE_GNU_MAKE" >&6; }
9685 if test $HAVE_GNU_MAKE = yes; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9687 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9688 SAVE_CFLAGS="$CFLAGS"
9689 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692
9693 int
9694 main ()
9695 {
9696
9697 ;
9698 return 0;
9699 }
9700 _ACEOF
9701 if ac_fn_c_try_compile "$LINENO"; then :
9702
9703 else
9704 ac_enable_autodepend=no
9705 fi
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 CFLAGS="$SAVE_CFLAGS"
9708 test -f deps.d || ac_enable_autodepend=no
9709 rm -rf deps.d
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9711 $as_echo "$ac_enable_autodepend" >&6; }
9712 fi
9713 if test $ac_enable_autodepend = yes; then
9714 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9715 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9716 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9717 deps_frag=autodeps.mk
9718 fi
9719 fi
9720 deps_frag=$srcdir/src/$deps_frag
9721
9722
9723
9724
9725
9726 lisp_frag=$srcdir/src/lisp.mk
9727
9728
9729
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9731 $as_echo_n "checking for long file names... " >&6; }
9732 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 ac_cv_sys_long_file_names=yes
9736 # Test for long file names in all the places we know might matter:
9737 # . the current directory, where building will happen
9738 # $prefix/lib where we will be installing things
9739 # $exec_prefix/lib likewise
9740 # $TMPDIR if set, where it might want to write temporary files
9741 # /tmp where it might want to write temporary files
9742 # /var/tmp likewise
9743 # /usr/tmp likewise
9744 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9745 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9746 # in the usual case where exec_prefix is '${prefix}'.
9747 case $ac_dir in #(
9748 . | /* | ?:[\\/]*) ;; #(
9749 *) continue;;
9750 esac
9751 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9752 ac_xdir=$ac_dir/cf$$
9753 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9754 ac_tf1=$ac_xdir/conftest9012345
9755 ac_tf2=$ac_xdir/conftest9012346
9756 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9757 ac_cv_sys_long_file_names=no
9758 rm -f -r "$ac_xdir" 2>/dev/null
9759 test $ac_cv_sys_long_file_names = no && break
9760 done
9761 fi
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9763 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9764 if test $ac_cv_sys_long_file_names = yes; then
9765
9766 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9767
9768 fi
9769
9770
9771 #### Choose a window system.
9772
9773 ## We leave window_system equal to none if
9774 ## we end up building without one. Any new window system should
9775 ## set window_system to an appropriate value and add objects to
9776 ## window-system-specific substs.
9777
9778 window_system=none
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9780 $as_echo_n "checking for X... " >&6; }
9781
9782
9783 # Check whether --with-x was given.
9784 if test "${with_x+set}" = set; then :
9785 withval=$with_x;
9786 fi
9787
9788 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9789 if test "x$with_x" = xno; then
9790 # The user explicitly disabled X.
9791 have_x=disabled
9792 else
9793 case $x_includes,$x_libraries in #(
9794 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9795 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 # One or both of the vars are not set, and there is no cached value.
9799 ac_x_includes=no ac_x_libraries=no
9800 rm -f -r conftest.dir
9801 if mkdir conftest.dir; then
9802 cd conftest.dir
9803 cat >Imakefile <<'_ACEOF'
9804 incroot:
9805 @echo incroot='${INCROOT}'
9806 usrlibdir:
9807 @echo usrlibdir='${USRLIBDIR}'
9808 libdir:
9809 @echo libdir='${LIBDIR}'
9810 _ACEOF
9811 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9812 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9813 for ac_var in incroot usrlibdir libdir; do
9814 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9815 done
9816 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9817 for ac_extension in a so sl dylib la dll; do
9818 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9819 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9820 ac_im_usrlibdir=$ac_im_libdir; break
9821 fi
9822 done
9823 # Screen out bogus values from the imake configuration. They are
9824 # bogus both because they are the default anyway, and because
9825 # using them would break gcc on systems where it needs fixed includes.
9826 case $ac_im_incroot in
9827 /usr/include) ac_x_includes= ;;
9828 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9829 esac
9830 case $ac_im_usrlibdir in
9831 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9832 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9833 esac
9834 fi
9835 cd ..
9836 rm -f -r conftest.dir
9837 fi
9838
9839 # Standard set of common directories for X headers.
9840 # Check X11 before X11Rn because it is often a symlink to the current release.
9841 ac_x_header_dirs='
9842 /usr/X11/include
9843 /usr/X11R7/include
9844 /usr/X11R6/include
9845 /usr/X11R5/include
9846 /usr/X11R4/include
9847
9848 /usr/include/X11
9849 /usr/include/X11R7
9850 /usr/include/X11R6
9851 /usr/include/X11R5
9852 /usr/include/X11R4
9853
9854 /usr/local/X11/include
9855 /usr/local/X11R7/include
9856 /usr/local/X11R6/include
9857 /usr/local/X11R5/include
9858 /usr/local/X11R4/include
9859
9860 /usr/local/include/X11
9861 /usr/local/include/X11R7
9862 /usr/local/include/X11R6
9863 /usr/local/include/X11R5
9864 /usr/local/include/X11R4
9865
9866 /usr/X386/include
9867 /usr/x386/include
9868 /usr/XFree86/include/X11
9869
9870 /usr/include
9871 /usr/local/include
9872 /usr/unsupported/include
9873 /usr/athena/include
9874 /usr/local/x11r5/include
9875 /usr/lpp/Xamples/include
9876
9877 /usr/openwin/include
9878 /usr/openwin/share/include'
9879
9880 if test "$ac_x_includes" = no; then
9881 # Guess where to find include files, by looking for Xlib.h.
9882 # First, try using that file with no special directory specified.
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885 #include <X11/Xlib.h>
9886 _ACEOF
9887 if ac_fn_c_try_cpp "$LINENO"; then :
9888 # We can compile using X headers with no special include directory.
9889 ac_x_includes=
9890 else
9891 for ac_dir in $ac_x_header_dirs; do
9892 if test -r "$ac_dir/X11/Xlib.h"; then
9893 ac_x_includes=$ac_dir
9894 break
9895 fi
9896 done
9897 fi
9898 rm -f conftest.err conftest.$ac_ext
9899 fi # $ac_x_includes = no
9900
9901 if test "$ac_x_libraries" = no; then
9902 # Check for the libraries.
9903 # See if we find them without any special options.
9904 # Don't add to $LIBS permanently.
9905 ac_save_LIBS=$LIBS
9906 LIBS="-lX11 $LIBS"
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 #include <X11/Xlib.h>
9910 int
9911 main ()
9912 {
9913 XrmInitialize ()
9914 ;
9915 return 0;
9916 }
9917 _ACEOF
9918 if ac_fn_c_try_link "$LINENO"; then :
9919 LIBS=$ac_save_LIBS
9920 # We can link X programs with no special library path.
9921 ac_x_libraries=
9922 else
9923 LIBS=$ac_save_LIBS
9924 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9925 do
9926 # Don't even attempt the hair of trying to link an X program!
9927 for ac_extension in a so sl dylib la dll; do
9928 if test -r "$ac_dir/libX11.$ac_extension"; then
9929 ac_x_libraries=$ac_dir
9930 break 2
9931 fi
9932 done
9933 done
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
9937 fi # $ac_x_libraries = no
9938
9939 case $ac_x_includes,$ac_x_libraries in #(
9940 no,* | *,no | *\'*)
9941 # Didn't find X, or a directory has "'" in its name.
9942 ac_cv_have_x="have_x=no";; #(
9943 *)
9944 # Record where we found X for the cache.
9945 ac_cv_have_x="have_x=yes\
9946 ac_x_includes='$ac_x_includes'\
9947 ac_x_libraries='$ac_x_libraries'"
9948 esac
9949 fi
9950 ;; #(
9951 *) have_x=yes;;
9952 esac
9953 eval "$ac_cv_have_x"
9954 fi # $with_x != no
9955
9956 if test "$have_x" != yes; then
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9958 $as_echo "$have_x" >&6; }
9959 no_x=yes
9960 else
9961 # If each of the values was on the command line, it overrides each guess.
9962 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9963 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9964 # Update the cache value to reflect the command line values.
9965 ac_cv_have_x="have_x=yes\
9966 ac_x_includes='$x_includes'\
9967 ac_x_libraries='$x_libraries'"
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9969 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9970 fi
9971
9972 if test "$no_x" != yes; then
9973 window_system=x11
9974 fi
9975
9976 LD_SWITCH_X_SITE_RPATH=
9977 if test "${x_libraries}" != NONE; then
9978 if test -n "${x_libraries}"; then
9979 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9980 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9981 fi
9982 x_default_search_path=""
9983 x_search_path=${x_libraries}
9984 if test -z "${x_search_path}"; then
9985 x_search_path=/usr/lib
9986 fi
9987 for x_library in `echo ${x_search_path}: | \
9988 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9989 x_search_path="\
9990 ${x_library}/X11/%L/%T/%N%C%S:\
9991 ${x_library}/X11/%l/%T/%N%C%S:\
9992 ${x_library}/X11/%T/%N%C%S:\
9993 ${x_library}/X11/%L/%T/%N%S:\
9994 ${x_library}/X11/%l/%T/%N%S:\
9995 ${x_library}/X11/%T/%N%S"
9996 if test x"${x_default_search_path}" = x; then
9997 x_default_search_path=${x_search_path}
9998 else
9999 x_default_search_path="${x_search_path}:${x_default_search_path}"
10000 fi
10001 done
10002 fi
10003
10004
10005 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10006 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
10007 fi
10008
10009 if test x"${x_includes}" = x; then
10010 bitmapdir=/usr/include/X11/bitmaps
10011 else
10012 # accumulate include directories that have X11 bitmap subdirectories
10013 bmd_acc="dummyval"
10014 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10015 if test -d "${bmd}/X11/bitmaps"; then
10016 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10017 fi
10018 if test -d "${bmd}/bitmaps"; then
10019 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10020 fi
10021 done
10022 if test ${bmd_acc} != "dummyval"; then
10023 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10024 fi
10025 fi
10026
10027 HAVE_NS=no
10028 NS_IMPL_COCOA=no
10029 NS_IMPL_GNUSTEP=no
10030 tmp_CPPFLAGS="$CPPFLAGS"
10031 tmp_CFLAGS="$CFLAGS"
10032 CPPFLAGS="$CPPFLAGS -x objective-c"
10033 CFLAGS="$CFLAGS -x objective-c"
10034 GNU_OBJC_CFLAGS=
10035 LIBS_GNUSTEP=
10036 if test "${with_ns}" != no; then
10037 if test "${opsys}" = darwin; then
10038 NS_IMPL_COCOA=yes
10039 ns_appdir=`pwd`/nextstep/Emacs.app
10040 ns_appbindir=${ns_appdir}/Contents/MacOS
10041 ns_appresdir=${ns_appdir}/Contents/Resources
10042 ns_appsrc=Cocoa/Emacs.base
10043 elif test -f $GNUSTEP_CONFIG_FILE; then
10044 NS_IMPL_GNUSTEP=yes
10045 ns_appdir=`pwd`/nextstep/Emacs.app
10046 ns_appbindir=${ns_appdir}
10047 ns_appresdir=${ns_appdir}/Resources
10048 ns_appsrc=GNUstep/Emacs.base
10049 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10050 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10051 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10052 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10053 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10054 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
10055 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10056 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
10057 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10058 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10059 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10060 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10062 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10063 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
10065 else
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068 #include <GNUstepBase/GSConfig.h>
10069 int
10070 main ()
10071 {
10072 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10073 1;
10074 #else
10075 fail;
10076 #endif
10077 ;
10078 return 0;
10079 }
10080 _ACEOF
10081 if ac_fn_c_try_compile "$LINENO"; then :
10082 emacs_cv_objc_exceptions=yes
10083 else
10084 emacs_cv_objc_exceptions=no
10085 fi
10086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087 fi
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10089 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10090 if test $emacs_cv_objc_exceptions = yes; then
10091
10092 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10093
10094 GNU_OBJC_CFLAGS="-fobjc-exceptions"
10095 fi
10096 fi
10097
10098 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
10099
10100 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10101 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10102 HAVE_NS=yes
10103 else
10104 as_fn_error "\`--with-ns' was specified, but the include
10105 files are missing or cannot be compiled." "$LINENO" 5
10106 fi
10107
10108
10109
10110 macfont_file=""
10111 if test "${NS_IMPL_COCOA}" = "yes"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.4 or newer" >&5
10113 $as_echo_n "checking for OSX 10.4 or newer... " >&6; }
10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10116 #include <AppKit/AppKit.h>
10117 int
10118 main ()
10119 {
10120
10121 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10122 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10123 ; /* OK */
10124 #else
10125 #error "OSX 10.4 or newer required"
10126 #endif
10127 #endif
10128
10129 ;
10130 return 0;
10131 }
10132 _ACEOF
10133 if ac_fn_c_try_compile "$LINENO"; then :
10134 ns_osx_have_104=yes
10135 else
10136 ns_osx_have_104=no
10137 fi
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_104" >&5
10140 $as_echo "$ns_osx_have_104" >&6; }
10141
10142 if test $ns_osx_have_104 = no; then
10143 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 or newer" >&5
10146 $as_echo_n "checking for OSX 10.5 or newer... " >&6; }
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 #include <AppKit/AppKit.h>
10150 int
10151 main ()
10152 {
10153
10154 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10155 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
10156 ; /* OK */
10157 #else
10158 #error "OSX 10.5 not found"
10159 #endif
10160 #endif
10161
10162 ;
10163 return 0;
10164 }
10165 _ACEOF
10166 if ac_fn_c_try_compile "$LINENO"; then :
10167 ns_osx_have_105=yes
10168 else
10169 ns_osx_have_105=no
10170 fi
10171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_105" >&5
10173 $as_echo "$ns_osx_have_105" >&6; }
10174 if test $ns_osx_have_105 = yes; then
10175 macfont_file="macfont.o"
10176 fi
10177 fi
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 #include <Foundation/NSObjCRuntime.h>
10181 int
10182 main ()
10183 {
10184 NSInteger i;
10185 ;
10186 return 0;
10187 }
10188 _ACEOF
10189 if ac_fn_c_try_compile "$LINENO"; then :
10190 ns_have_nsinteger=yes
10191 else
10192 ns_have_nsinteger=no
10193 fi
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 if test $ns_have_nsinteger = yes; then
10196
10197 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10198
10199 fi
10200 fi
10201
10202
10203
10204 INSTALL_ARCH_INDEP_EXTRA=install-etc
10205 ns_self_contained=no
10206 NS_OBJ=
10207 NS_OBJC_OBJ=
10208 if test "${HAVE_NS}" = yes; then
10209 if test "$with_toolkit_scroll_bars" = "no"; then
10210 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10211 fi
10212
10213 window_system=nextstep
10214 # set up packaging dirs
10215 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10216 ns_self_contained=yes
10217 prefix=${ns_appresdir}
10218 exec_prefix=${ns_appbindir}
10219 libexecdir="\${ns_appbindir}/libexec"
10220 archlibdir="\${ns_appbindir}/libexec"
10221 etcdocdir="\${ns_appresdir}/etc"
10222 etcdir="\${ns_appresdir}/etc"
10223 infodir="\${ns_appresdir}/info"
10224 mandir="\${ns_appresdir}/man"
10225 lispdir="\${ns_appresdir}/lisp"
10226 leimdir="\${ns_appresdir}/leim"
10227 INSTALL_ARCH_INDEP_EXTRA=
10228 fi
10229
10230 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o $macfont_file"
10231 fi
10232 CFLAGS="$tmp_CFLAGS"
10233 CPPFLAGS="$tmp_CPPFLAGS"
10234
10235
10236
10237
10238
10239 HAVE_W32=no
10240 W32_OBJ=
10241 W32_LIBS=
10242 EMACSRES=
10243 CLIENTRES=
10244 CLIENTW=
10245 W32_RES_LINK=
10246 EMACS_MANIFEST=
10247 UPDATE_MANIFEST=
10248 if test "${with_w32}" != no; then
10249 case "${opsys}" in
10250 cygwin)
10251 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10252 if test "x$ac_cv_header_windows_h" = x""yes; then :
10253 HAVE_W32=yes
10254 else
10255 as_fn_error "\`--with-w32' was specified, but windows.h
10256 cannot be found." "$LINENO" 5
10257 fi
10258
10259
10260 ;;
10261 mingw32)
10262 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10263 ;;
10264 *)
10265 as_fn_error "Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10266 ;;
10267 esac
10268 fi
10269
10270 if test "${opsys}" = "mingw32"; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10272 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275
10276 #include <windows.h>
10277 #include <usp10.h>
10278 int
10279 main ()
10280 {
10281 PIMAGE_NT_HEADERS pHeader;
10282 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10283 ;
10284 return 0;
10285 }
10286 _ACEOF
10287 if ac_fn_c_try_compile "$LINENO"; then :
10288 emacs_cv_w32api=yes
10289 HAVE_W32=yes
10290 else
10291 emacs_cv_w32api=no
10292 fi
10293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10295 $as_echo "$emacs_cv_w32api" >&6; }
10296 if test "${emacs_cv_w32api}" = "no"; then
10297 as_fn_error "the Windows API headers are too old to support this build." "$LINENO" 5
10298 fi
10299 fi
10300
10301 FIRSTFILE_OBJ=
10302 NTDIR=
10303 LIBS_ECLIENT=
10304 LIB_WSOCK32=
10305 NTLIB=
10306 CM_OBJ="cm.o"
10307 XARGS_LIMIT=
10308 if test "${HAVE_W32}" = "yes"; then
10309
10310 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10311
10312 if test -n "$ac_tool_prefix"; then
10313 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10314 set dummy ${ac_tool_prefix}windres; ac_word=$2
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316 $as_echo_n "checking for $ac_word... " >&6; }
10317 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 if test -n "$WINDRES"; then
10321 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10322 else
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324 for as_dir in $PATH
10325 do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10330 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10333 fi
10334 done
10335 done
10336 IFS=$as_save_IFS
10337
10338 fi
10339 fi
10340 WINDRES=$ac_cv_prog_WINDRES
10341 if test -n "$WINDRES"; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10343 $as_echo "$WINDRES" >&6; }
10344 else
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; }
10347 fi
10348
10349
10350 fi
10351 if test -z "$ac_cv_prog_WINDRES"; then
10352 ac_ct_WINDRES=$WINDRES
10353 # Extract the first word of "windres", so it can be a program name with args.
10354 set dummy windres; ac_word=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 if test -n "$ac_ct_WINDRES"; then
10361 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10362 else
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10365 do
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10370 ac_cv_prog_ac_ct_WINDRES="windres"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10373 fi
10374 done
10375 done
10376 IFS=$as_save_IFS
10377
10378 fi
10379 fi
10380 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10381 if test -n "$ac_ct_WINDRES"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10383 $as_echo "$ac_ct_WINDRES" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10387 fi
10388
10389 if test "x$ac_ct_WINDRES" = x; then
10390 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
10391 else
10392 case $cross_compiling:$ac_tool_warned in
10393 yes:)
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10396 ac_tool_warned=yes ;;
10397 esac
10398 WINDRES=$ac_ct_WINDRES
10399 fi
10400 else
10401 WINDRES="$ac_cv_prog_WINDRES"
10402 fi
10403
10404 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10405 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10406 EMACSRES="emacs.res"
10407 case "$canonical" in
10408 x86_64-*-*) EMACS_MANIFEST="emacs-x64.manifest" ;;
10409 *) EMACS_MANIFEST="emacs-x86.manifest" ;;
10410 esac
10411 UPDATE_MANIFEST=update-game-score.exe.manifest
10412 if test "${opsys}" = "cygwin"; then
10413 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10414 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10415 # Tell the linker that emacs.res is an object (which we compile from
10416 # the rc file), not a linker script.
10417 W32_RES_LINK="-Wl,emacs.res"
10418 else
10419 W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10420 W32_LIBS="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10421 W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10422 W32_RES_LINK="\$(EMACSRES)"
10423 CLIENTRES="emacsclient.res"
10424 CLIENTW="emacsclientw\$(EXEEXT)"
10425 FIRSTFILE_OBJ=firstfile.o
10426 NTDIR=nt
10427 CM_OBJ=
10428 LIBS_ECLIENT="-lcomctl32"
10429 LIB_WSOCK32="-lwsock32"
10430 NTLIB="ntlib.$ac_objext"
10431 XARGS_LIMIT="-s 10000"
10432 fi
10433 fi
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450 if test "${HAVE_W32}" = "yes"; then
10451 window_system=w32
10452 with_xft=no
10453 fi
10454
10455 ## $window_system is now set to the window system we will
10456 ## ultimately use.
10457
10458 if test "$window_system" = none && test "$gl_gcc_warnings" = yes; then
10459 # Too many warnings for now.
10460 nw=
10461 nw="$nw -Wsuggest-attribute=const"
10462 nw="$nw -Wsuggest-attribute=noreturn"
10463
10464 gl_warn_set=
10465 set x $WARN_CFLAGS; shift
10466 for gl_warn_item
10467 do
10468 case " $nw " in
10469 *" $gl_warn_item "*)
10470 ;;
10471 *)
10472 gl_warn_set="$gl_warn_set $gl_warn_item"
10473 ;;
10474 esac
10475 done
10476 WARN_CFLAGS=$gl_warn_set
10477
10478
10479
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-variable" >&5
10481 $as_echo_n "checking whether C compiler handles -Wno-unused-variable... " >&6; }
10482 if test "${gl_cv_warn_c__Wno_unused_variable+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485
10486 gl_save_compiler_FLAGS="$CFLAGS"
10487 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-variable"
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10490
10491 int
10492 main ()
10493 {
10494
10495 ;
10496 return 0;
10497 }
10498 _ACEOF
10499 if ac_fn_c_try_link "$LINENO"; then :
10500 gl_cv_warn_c__Wno_unused_variable=yes
10501 else
10502 gl_cv_warn_c__Wno_unused_variable=no
10503 fi
10504 rm -f core conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
10506 CFLAGS="$gl_save_compiler_FLAGS"
10507
10508 fi
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_variable" >&5
10510 $as_echo "$gl_cv_warn_c__Wno_unused_variable" >&6; }
10511 if test "x$gl_cv_warn_c__Wno_unused_variable" = x""yes; then :
10512 as_fn_append WARN_CFLAGS " -Wno-unused-variable"
10513 fi
10514
10515
10516
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-variable" >&5
10518 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-variable... " >&6; }
10519 if test "${gl_cv_warn_c__Wno_unused_but_set_variable+set}" = set; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522
10523 gl_save_compiler_FLAGS="$CFLAGS"
10524 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-variable"
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10527
10528 int
10529 main ()
10530 {
10531
10532 ;
10533 return 0;
10534 }
10535 _ACEOF
10536 if ac_fn_c_try_link "$LINENO"; then :
10537 gl_cv_warn_c__Wno_unused_but_set_variable=yes
10538 else
10539 gl_cv_warn_c__Wno_unused_but_set_variable=no
10540 fi
10541 rm -f core conftest.err conftest.$ac_objext \
10542 conftest$ac_exeext conftest.$ac_ext
10543 CFLAGS="$gl_save_compiler_FLAGS"
10544
10545 fi
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_variable" >&5
10547 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_variable" >&6; }
10548 if test "x$gl_cv_warn_c__Wno_unused_but_set_variable" = x""yes; then :
10549 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-variable"
10550 fi
10551
10552
10553
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-parameter" >&5
10555 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-parameter... " >&6; }
10556 if test "${gl_cv_warn_c__Wno_unused_but_set_parameter+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559
10560 gl_save_compiler_FLAGS="$CFLAGS"
10561 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-parameter"
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564
10565 int
10566 main ()
10567 {
10568
10569 ;
10570 return 0;
10571 }
10572 _ACEOF
10573 if ac_fn_c_try_link "$LINENO"; then :
10574 gl_cv_warn_c__Wno_unused_but_set_parameter=yes
10575 else
10576 gl_cv_warn_c__Wno_unused_but_set_parameter=no
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 CFLAGS="$gl_save_compiler_FLAGS"
10581
10582 fi
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_parameter" >&5
10584 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_parameter" >&6; }
10585 if test "x$gl_cv_warn_c__Wno_unused_but_set_parameter" = x""yes; then :
10586 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-parameter"
10587 fi
10588
10589
10590 fi
10591
10592 term_header=
10593 HAVE_X_WINDOWS=no
10594 HAVE_X11=no
10595 USE_X_TOOLKIT=none
10596
10597 case "${window_system}" in
10598 x11 )
10599 HAVE_X_WINDOWS=yes
10600 HAVE_X11=yes
10601 term_header=xterm.h
10602 case "${with_x_toolkit}" in
10603 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10604 motif ) USE_X_TOOLKIT=MOTIF ;;
10605 gtk ) with_gtk=yes
10606 term_header=gtkutil.h
10607 USE_X_TOOLKIT=none ;;
10608 gtk2 ) with_gtk2=yes
10609 term_header=gtkutil.h
10610 USE_X_TOOLKIT=none ;;
10611 gtk3 ) with_gtk3=yes
10612 term_header=gtkutil.h
10613 USE_X_TOOLKIT=none ;;
10614 no ) USE_X_TOOLKIT=none ;;
10615 * ) USE_X_TOOLKIT=maybe ;;
10616 esac
10617 ;;
10618 nextstep )
10619 term_header=nsterm.h
10620 ;;
10621 w32 )
10622 term_header=w32term.h
10623 ;;
10624 esac
10625
10626 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10627 # Extract the first word of "X", so it can be a program name with args.
10628 set dummy X; ac_word=$2
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10630 $as_echo_n "checking for $ac_word... " >&6; }
10631 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 if test -n "$HAVE_XSERVER"; then
10635 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10636 else
10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10639 do
10640 IFS=$as_save_IFS
10641 test -z "$as_dir" && as_dir=.
10642 for ac_exec_ext in '' $ac_executable_extensions; do
10643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10644 ac_cv_prog_HAVE_XSERVER="true"
10645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10646 break 2
10647 fi
10648 done
10649 done
10650 IFS=$as_save_IFS
10651
10652 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10653 fi
10654 fi
10655 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10656 if test -n "$HAVE_XSERVER"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10658 $as_echo "$HAVE_XSERVER" >&6; }
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10662 fi
10663
10664
10665 if test "$HAVE_XSERVER" = true ||
10666 test -n "$DISPLAY" ||
10667 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10668 as_fn_error "You seem to be running X, but no X development libraries
10669 were found. You should install the relevant development files for X
10670 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10671 sure you have development files for image handling, i.e.
10672 tiff, gif, jpeg, png and xpm.
10673 If you are sure you want Emacs compiled without X window support, pass
10674 --without-x
10675 to configure." "$LINENO" 5
10676 fi
10677 fi
10678
10679 ### We always support menus.
10680 HAVE_MENUS=yes
10681
10682 # Does the opsystem file prohibit the use of the GNU malloc?
10683 # Assume not, until told otherwise.
10684 GNU_MALLOC=yes
10685
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10687 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10688 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10689 $as_echo_n "(cached) " >&6
10690 else
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10693 #include <malloc.h>
10694 static void hook (void) {}
10695 int
10696 main ()
10697 {
10698 malloc_set_state (malloc_get_state ());
10699 __after_morecore_hook = hook;
10700 __malloc_initialize_hook = hook;
10701 ;
10702 return 0;
10703 }
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"; then :
10706 emacs_cv_var_doug_lea_malloc=yes
10707 else
10708 emacs_cv_var_doug_lea_malloc=no
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 fi
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10714 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10715 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10716
10717
10718 system_malloc=no
10719 case "$opsys" in
10720 ## darwin ld insists on the use of malloc routines in the System framework.
10721 darwin|sol2-10) system_malloc=yes ;;
10722 esac
10723
10724 if test "${system_malloc}" = "yes"; then
10725
10726 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10727
10728 GNU_MALLOC=no
10729 GNU_MALLOC_reason="
10730 (The GNU allocators don't work with this system configuration.)"
10731 GMALLOC_OBJ=
10732 VMLIMIT_OBJ=
10733 else
10734 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10735 VMLIMIT_OBJ=vm-limit.o
10736
10737 for ac_header in sys/vlimit.h
10738 do :
10739 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10740 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10741 cat >>confdefs.h <<_ACEOF
10742 #define HAVE_SYS_VLIMIT_H 1
10743 _ACEOF
10744
10745 fi
10746
10747 done
10748
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10750 $as_echo_n "checking for data_start... " >&6; }
10751 if test "${emacs_cv_data_start+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 extern char data_start[]; char ch;
10757 int
10758 main ()
10759 {
10760 return data_start < &ch;
10761 ;
10762 return 0;
10763 }
10764 _ACEOF
10765 if ac_fn_c_try_link "$LINENO"; then :
10766 emacs_cv_data_start=yes
10767 else
10768 emacs_cv_data_start=no
10769 fi
10770 rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
10772 fi
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10774 $as_echo "$emacs_cv_data_start" >&6; }
10775 if test $emacs_cv_data_start = yes; then
10776
10777 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10778
10779 fi
10780 fi
10781
10782
10783
10784 if test "$doug_lea_malloc" = "yes" ; then
10785 if test "$GNU_MALLOC" = yes ; then
10786 GNU_MALLOC_reason="
10787 (Using Doug Lea's new malloc from the GNU C Library.)"
10788 fi
10789
10790 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10791
10792
10793 ## Use mmap directly for allocating larger buffers.
10794 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10795 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10796 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10797 case "$opsys" in
10798 gnu*) REL_ALLOC=no ;;
10799 esac
10800 fi
10801
10802 if test x"${REL_ALLOC}" = x; then
10803 REL_ALLOC=${GNU_MALLOC}
10804 fi
10805
10806 use_mmap_for_buffers=no
10807 case "$opsys" in
10808 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10809 esac
10810
10811
10812
10813
10814
10815
10816
10817
10818 for ac_func in getpagesize
10819 do :
10820 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10821 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10822 cat >>confdefs.h <<_ACEOF
10823 #define HAVE_GETPAGESIZE 1
10824 _ACEOF
10825
10826 fi
10827 done
10828
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10830 $as_echo_n "checking for working mmap... " >&6; }
10831 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 if test "$cross_compiling" = yes; then :
10835 ac_cv_func_mmap_fixed_mapped=no
10836 else
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10839 $ac_includes_default
10840 /* malloc might have been renamed as rpl_malloc. */
10841 #undef malloc
10842
10843 /* Thanks to Mike Haertel and Jim Avera for this test.
10844 Here is a matrix of mmap possibilities:
10845 mmap private not fixed
10846 mmap private fixed at somewhere currently unmapped
10847 mmap private fixed at somewhere already mapped
10848 mmap shared not fixed
10849 mmap shared fixed at somewhere currently unmapped
10850 mmap shared fixed at somewhere already mapped
10851 For private mappings, we should verify that changes cannot be read()
10852 back from the file, nor mmap's back from the file at a different
10853 address. (There have been systems where private was not correctly
10854 implemented like the infamous i386 svr4.0, and systems where the
10855 VM page cache was not coherent with the file system buffer cache
10856 like early versions of FreeBSD and possibly contemporary NetBSD.)
10857 For shared mappings, we should conversely verify that changes get
10858 propagated back to all the places they're supposed to be.
10859
10860 Grep wants private fixed already mapped.
10861 The main things grep needs to know about mmap are:
10862 * does it exist and is it safe to write into the mmap'd area
10863 * how to use it (BSD variants) */
10864
10865 #include <fcntl.h>
10866 #include <sys/mman.h>
10867
10868 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10869 char *malloc ();
10870 #endif
10871
10872 /* This mess was copied from the GNU getpagesize.h. */
10873 #ifndef HAVE_GETPAGESIZE
10874 # ifdef _SC_PAGESIZE
10875 # define getpagesize() sysconf(_SC_PAGESIZE)
10876 # else /* no _SC_PAGESIZE */
10877 # ifdef HAVE_SYS_PARAM_H
10878 # include <sys/param.h>
10879 # ifdef EXEC_PAGESIZE
10880 # define getpagesize() EXEC_PAGESIZE
10881 # else /* no EXEC_PAGESIZE */
10882 # ifdef NBPG
10883 # define getpagesize() NBPG * CLSIZE
10884 # ifndef CLSIZE
10885 # define CLSIZE 1
10886 # endif /* no CLSIZE */
10887 # else /* no NBPG */
10888 # ifdef NBPC
10889 # define getpagesize() NBPC
10890 # else /* no NBPC */
10891 # ifdef PAGESIZE
10892 # define getpagesize() PAGESIZE
10893 # endif /* PAGESIZE */
10894 # endif /* no NBPC */
10895 # endif /* no NBPG */
10896 # endif /* no EXEC_PAGESIZE */
10897 # else /* no HAVE_SYS_PARAM_H */
10898 # define getpagesize() 8192 /* punt totally */
10899 # endif /* no HAVE_SYS_PARAM_H */
10900 # endif /* no _SC_PAGESIZE */
10901
10902 #endif /* no HAVE_GETPAGESIZE */
10903
10904 int
10905 main ()
10906 {
10907 char *data, *data2, *data3;
10908 const char *cdata2;
10909 int i, pagesize;
10910 int fd, fd2;
10911
10912 pagesize = getpagesize ();
10913
10914 /* First, make a file with some known garbage in it. */
10915 data = (char *) malloc (pagesize);
10916 if (!data)
10917 return 1;
10918 for (i = 0; i < pagesize; ++i)
10919 *(data + i) = rand ();
10920 umask (0);
10921 fd = creat ("conftest.mmap", 0600);
10922 if (fd < 0)
10923 return 2;
10924 if (write (fd, data, pagesize) != pagesize)
10925 return 3;
10926 close (fd);
10927
10928 /* Next, check that the tail of a page is zero-filled. File must have
10929 non-zero length, otherwise we risk SIGBUS for entire page. */
10930 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10931 if (fd2 < 0)
10932 return 4;
10933 cdata2 = "";
10934 if (write (fd2, cdata2, 1) != 1)
10935 return 5;
10936 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10937 if (data2 == MAP_FAILED)
10938 return 6;
10939 for (i = 0; i < pagesize; ++i)
10940 if (*(data2 + i))
10941 return 7;
10942 close (fd2);
10943 if (munmap (data2, pagesize))
10944 return 8;
10945
10946 /* Next, try to mmap the file at a fixed address which already has
10947 something else allocated at it. If we can, also make sure that
10948 we see the same garbage. */
10949 fd = open ("conftest.mmap", O_RDWR);
10950 if (fd < 0)
10951 return 9;
10952 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10953 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10954 return 10;
10955 for (i = 0; i < pagesize; ++i)
10956 if (*(data + i) != *(data2 + i))
10957 return 11;
10958
10959 /* Finally, make sure that changes to the mapped area do not
10960 percolate back to the file as seen by read(). (This is a bug on
10961 some variants of i386 svr4.0.) */
10962 for (i = 0; i < pagesize; ++i)
10963 *(data2 + i) = *(data2 + i) + 1;
10964 data3 = (char *) malloc (pagesize);
10965 if (!data3)
10966 return 12;
10967 if (read (fd, data3, pagesize) != pagesize)
10968 return 13;
10969 for (i = 0; i < pagesize; ++i)
10970 if (*(data + i) != *(data3 + i))
10971 return 14;
10972 close (fd);
10973 return 0;
10974 }
10975 _ACEOF
10976 if ac_fn_c_try_run "$LINENO"; then :
10977 ac_cv_func_mmap_fixed_mapped=yes
10978 else
10979 ac_cv_func_mmap_fixed_mapped=no
10980 fi
10981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10982 conftest.$ac_objext conftest.beam conftest.$ac_ext
10983 fi
10984
10985 fi
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10987 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10988 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10989
10990 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10991
10992 fi
10993 rm -f conftest.mmap conftest.txt
10994
10995 if test $use_mmap_for_buffers = yes; then
10996
10997 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10998
10999 REL_ALLOC=no
11000 fi
11001
11002 LIBS="$LIBS_SYSTEM $LIBS"
11003
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
11005 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11006 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-ldnet $LIBS"
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11013
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char dnet_ntoa ();
11021 int
11022 main ()
11023 {
11024 return dnet_ntoa ();
11025 ;
11026 return 0;
11027 }
11028 _ACEOF
11029 if ac_fn_c_try_link "$LINENO"; then :
11030 ac_cv_lib_dnet_dnet_ntoa=yes
11031 else
11032 ac_cv_lib_dnet_dnet_ntoa=no
11033 fi
11034 rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
11036 LIBS=$ac_check_lib_save_LIBS
11037 fi
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11039 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11040 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
11041 cat >>confdefs.h <<_ACEOF
11042 #define HAVE_LIBDNET 1
11043 _ACEOF
11044
11045 LIBS="-ldnet $LIBS"
11046
11047 fi
11048
11049
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
11051 $as_echo_n "checking for main in -lXbsd... " >&6; }
11052 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
11054 else
11055 ac_check_lib_save_LIBS=$LIBS
11056 LIBS="-lXbsd $LIBS"
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11059
11060
11061 int
11062 main ()
11063 {
11064 return main ();
11065 ;
11066 return 0;
11067 }
11068 _ACEOF
11069 if ac_fn_c_try_link "$LINENO"; then :
11070 ac_cv_lib_Xbsd_main=yes
11071 else
11072 ac_cv_lib_Xbsd_main=no
11073 fi
11074 rm -f core conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11077 fi
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
11079 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11080 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
11081 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11082 fi
11083
11084
11085 LIB_PTHREAD=
11086
11087
11088
11089 if test "$ac_cv_header_pthread_h"; then
11090 if test "$GMALLOC_OBJ" = gmalloc.o; then
11091 emacs_pthread_function=pthread_atfork
11092 else
11093 emacs_pthread_function=pthread_self
11094 fi
11095 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
11097 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
11098 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 ac_check_lib_save_LIBS=$LIBS
11102 LIBS="-lpthread $LIBS"
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11105
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 char $emacs_pthread_function ();
11113 int
11114 main ()
11115 {
11116 return $emacs_pthread_function ();
11117 ;
11118 return 0;
11119 }
11120 _ACEOF
11121 if ac_fn_c_try_link "$LINENO"; then :
11122 eval "$as_ac_Lib=yes"
11123 else
11124 eval "$as_ac_Lib=no"
11125 fi
11126 rm -f core conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11128 LIBS=$ac_check_lib_save_LIBS
11129 fi
11130 eval ac_res=\$$as_ac_Lib
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11132 $as_echo "$ac_res" >&6; }
11133 eval as_val=\$$as_ac_Lib
11134 if test "x$as_val" = x""yes; then :
11135 HAVE_PTHREAD=yes
11136 fi
11137
11138 fi
11139 if test "$HAVE_PTHREAD" = yes; then
11140 case "${canonical}" in
11141 *-hpux*) ;;
11142 *) LIB_PTHREAD="-lpthread"
11143 LIBS="$LIB_PTHREAD $LIBS" ;;
11144 esac
11145
11146 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11147
11148 fi
11149
11150
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
11152 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11153 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 ac_check_lib_save_LIBS=$LIBS
11157 LIBS="-lpthreads $LIBS"
11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11160
11161 /* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
11164 #ifdef __cplusplus
11165 extern "C"
11166 #endif
11167 char cma_open ();
11168 int
11169 main ()
11170 {
11171 return cma_open ();
11172 ;
11173 return 0;
11174 }
11175 _ACEOF
11176 if ac_fn_c_try_link "$LINENO"; then :
11177 ac_cv_lib_pthreads_cma_open=yes
11178 else
11179 ac_cv_lib_pthreads_cma_open=no
11180 fi
11181 rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_lib_save_LIBS
11184 fi
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11186 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11187 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
11188 cat >>confdefs.h <<_ACEOF
11189 #define HAVE_LIBPTHREADS 1
11190 _ACEOF
11191
11192 LIBS="-lpthreads $LIBS"
11193
11194 fi
11195
11196
11197 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11198 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11199 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11200 ## added to LIBS in configure would never contain the pthreads part,
11201 ## but the value used in Makefiles might. FIXME?
11202 ##
11203 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11204 ## be harmless on older versions of X where it happens to exist.
11205 test "$opsys" = "aix4-2" && \
11206 test $ac_cv_lib_pthreads_cma_open = yes && \
11207 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11208
11209
11210 case ${host_os} in
11211 aix*)
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11213 $as_echo_n "checking for -bbigtoc option... " >&6; }
11214 if test "${gdb_cv_bigtoc+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217
11218 case $GCC in
11219 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11220 *) gdb_cv_bigtoc=-bbigtoc ;;
11221 esac
11222
11223 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11226
11227 int
11228 main ()
11229 {
11230 int i;
11231 ;
11232 return 0;
11233 }
11234 _ACEOF
11235 if ac_fn_c_try_link "$LINENO"; then :
11236
11237 else
11238 gdb_cv_bigtoc=
11239 fi
11240 rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11242
11243 fi
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11245 $as_echo "$gdb_cv_bigtoc" >&6; }
11246 ;;
11247 esac
11248
11249 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11250 # used for the tests that follow. We set them back to REAL_CFLAGS and
11251 # REAL_CPPFLAGS later on.
11252
11253 REAL_CFLAGS="$CFLAGS"
11254 REAL_CPPFLAGS="$CPPFLAGS"
11255
11256 if test "${HAVE_X11}" = "yes"; then
11257 DEFS="$C_SWITCH_X_SITE $DEFS"
11258 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11259 LIBS="-lX11 $LIBS"
11260 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11261 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11262
11263 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11264 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11265 # but it's more convenient here to set LD_RUN_PATH since this
11266 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11267 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11268 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11269 export LD_RUN_PATH
11270 fi
11271
11272 if test "${opsys}" = "gnu-linux"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11274 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277
11278 int
11279 main ()
11280 {
11281 XOpenDisplay ("foo");
11282 ;
11283 return 0;
11284 }
11285 _ACEOF
11286 if ac_fn_c_try_link "$LINENO"; then :
11287 xgnu_linux_first_failure=no
11288 else
11289 xgnu_linux_first_failure=yes
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext \
11292 conftest$ac_exeext conftest.$ac_ext
11293 if test "${xgnu_linux_first_failure}" = "yes"; then
11294 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11295 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11296 OLD_CPPFLAGS="$CPPFLAGS"
11297 OLD_LIBS="$LIBS"
11298 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11299 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11300 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11301 LIBS="$LIBS -b i486-linuxaout"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11304
11305 int
11306 main ()
11307 {
11308 XOpenDisplay ("foo");
11309 ;
11310 return 0;
11311 }
11312 _ACEOF
11313 if ac_fn_c_try_link "$LINENO"; then :
11314 xgnu_linux_second_failure=no
11315 else
11316 xgnu_linux_second_failure=yes
11317 fi
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 if test "${xgnu_linux_second_failure}" = "yes"; then
11321 # If we get the same failure with -b, there is no use adding -b.
11322 # So take it out. This plays safe.
11323 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11324 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11325 CPPFLAGS="$OLD_CPPFLAGS"
11326 LIBS="$OLD_LIBS"
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11329 else
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11331 $as_echo "yes" >&6; }
11332 fi
11333 else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11336 fi
11337 fi
11338
11339 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11340 # header files included from there.
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11342 $as_echo_n "checking for Xkb... " >&6; }
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345 #include <X11/Xlib.h>
11346 #include <X11/XKBlib.h>
11347 int
11348 main ()
11349 {
11350 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11351 ;
11352 return 0;
11353 }
11354 _ACEOF
11355 if ac_fn_c_try_link "$LINENO"; then :
11356 emacs_xkb=yes
11357 else
11358 emacs_xkb=no
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11363 $as_echo "$emacs_xkb" >&6; }
11364 if test $emacs_xkb = yes; then
11365
11366 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11367
11368 fi
11369
11370 for ac_func in XrmSetDatabase XScreenResourceString \
11371 XScreenNumberOfScreen
11372 do :
11373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11374 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11375 eval as_val=\$$as_ac_var
11376 if test "x$as_val" = x""yes; then :
11377 cat >>confdefs.h <<_ACEOF
11378 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11379 _ACEOF
11380
11381 fi
11382 done
11383
11384 fi
11385
11386 if test "${window_system}" = "x11"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11388 $as_echo_n "checking X11 version 6... " >&6; }
11389 if test "${emacs_cv_x11_version_6+set}" = set; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394 #include <X11/Xlib.h>
11395 int
11396 main ()
11397 {
11398 #if XlibSpecificationRelease < 6
11399 fail;
11400 #endif
11401
11402 ;
11403 return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11407 emacs_cv_x11_version_6=yes
11408 else
11409 emacs_cv_x11_version_6=no
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413 fi
11414
11415 if test $emacs_cv_x11_version_6 = yes; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11417 $as_echo "6 or newer" >&6; }
11418
11419 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11420
11421
11422 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11423
11424 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11425 ## XIM support.
11426 case "$opsys" in
11427 sol2-*) : ;;
11428 *)
11429 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11430
11431 ;;
11432 esac
11433 else
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11435 $as_echo "before 6" >&6; }
11436 fi
11437 fi
11438
11439
11440 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11441 HAVE_RSVG=no
11442 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11443 if test "${with_rsvg}" != "no"; then
11444 RSVG_REQUIRED=2.11.0
11445 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11446
11447
11448 succeeded=no
11449
11450 if test "$PKG_CONFIG" = "no" ; then
11451 :
11452 else
11453 PKG_CONFIG_MIN_VERSION=0.9.0
11454 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11456 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11457
11458 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11459 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11460 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11461 edit_cflags="
11462 s,///*,/,g
11463 s/^/ /
11464 s/ -I/ $isystem/g
11465 s/^ //
11466 "
11467 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11468 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11470 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11471 succeeded=yes
11472 else
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11475 RSVG_CFLAGS=""
11476 RSVG_LIBS=""
11477 ## If we have a custom action on failure, don't print errors, but
11478 ## do set a variable so people can do so. Do it in a subshell
11479 ## to capture any diagnostics in invoking pkg-config.
11480 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11481
11482 fi
11483
11484
11485
11486 else
11487 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11488 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11489 fi
11490 fi
11491
11492 if test $succeeded = yes; then
11493 HAVE_RSVG=yes
11494 else
11495 :
11496 fi
11497
11498
11499
11500
11501 if test $HAVE_RSVG = yes; then
11502
11503 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11504
11505 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11506 LIBS="$RSVG_LIBS $LIBS"
11507 fi
11508 fi
11509 fi
11510
11511 HAVE_IMAGEMAGICK=no
11512 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11513 if test "${with_imagemagick}" != "no"; then
11514 ## 6.2.8 is the earliest version known to work, but earlier versions
11515 ## might work - let us know if you find one.
11516 ## 6.0.7 does not work. See bug#7955.
11517 ## 6.8.2 makes Emacs crash; see Bug#13867.
11518 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
11519
11520 succeeded=no
11521
11522 if test "$PKG_CONFIG" = "no" ; then
11523 :
11524 else
11525 PKG_CONFIG_MIN_VERSION=0.9.0
11526 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11528 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11529
11530 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11531 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11532 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11533 edit_cflags="
11534 s,///*,/,g
11535 s/^/ /
11536 s/ -I/ $isystem/g
11537 s/^ //
11538 "
11539 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11540 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11542 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11543 succeeded=yes
11544 else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11547 IMAGEMAGICK_CFLAGS=""
11548 IMAGEMAGICK_LIBS=""
11549 ## If we have a custom action on failure, don't print errors, but
11550 ## do set a variable so people can do so. Do it in a subshell
11551 ## to capture any diagnostics in invoking pkg-config.
11552 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11553
11554 fi
11555
11556
11557
11558 else
11559 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11560 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11561 fi
11562 fi
11563
11564 if test $succeeded = yes; then
11565 HAVE_IMAGEMAGICK=yes
11566 else
11567 :
11568 fi
11569
11570
11571
11572
11573 if test $HAVE_IMAGEMAGICK = yes; then
11574
11575 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11576
11577 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11578 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11579 for ac_func in MagickExportImagePixels MagickMergeImageLayers
11580 do :
11581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11583 eval as_val=\$$as_ac_var
11584 if test "x$as_val" = x""yes; then :
11585 cat >>confdefs.h <<_ACEOF
11586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11587 _ACEOF
11588
11589 fi
11590 done
11591
11592 fi
11593 fi
11594 fi
11595
11596
11597 HAVE_GTK=no
11598 GTK_OBJ=
11599 gtk_term_header=$term_header
11600 check_gtk2=no
11601 gtk3_pkg_errors=
11602 if test "${opsys}" != "mingw32"; then
11603 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11604 GLIB_REQUIRED=2.28
11605 GTK_REQUIRED=3.0
11606 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11607
11608
11609 succeeded=no
11610
11611 if test "$PKG_CONFIG" = "no" ; then
11612 pkg_check_gtk=no
11613 else
11614 PKG_CONFIG_MIN_VERSION=0.9.0
11615 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11617 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11618
11619 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11620 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11621 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11622 edit_cflags="
11623 s,///*,/,g
11624 s/^/ /
11625 s/ -I/ $isystem/g
11626 s/^ //
11627 "
11628 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11629 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11631 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11632 succeeded=yes
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11636 GTK_CFLAGS=""
11637 GTK_LIBS=""
11638 ## If we have a custom action on failure, don't print errors, but
11639 ## do set a variable so people can do so. Do it in a subshell
11640 ## to capture any diagnostics in invoking pkg-config.
11641 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11642
11643 fi
11644
11645
11646
11647 else
11648 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11649 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11650 fi
11651 fi
11652
11653 if test $succeeded = yes; then
11654 pkg_check_gtk=yes
11655 else
11656 pkg_check_gtk=no
11657 fi
11658
11659 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11660 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11661 fi
11662 if test "$pkg_check_gtk" = "yes"; then
11663
11664 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11665
11666 GTK_OBJ=emacsgtkfixed.o
11667 gtk_term_header=gtkutil.h
11668 USE_GTK_TOOLKIT="GTK3"
11669 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11670 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11671 GTK_CFLAGS="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11672 fi
11673 else
11674 check_gtk2=yes
11675 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11676 fi
11677 fi
11678
11679 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11680 GLIB_REQUIRED=2.10
11681 GTK_REQUIRED=2.10
11682 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11683
11684
11685 succeeded=no
11686
11687 if test "$PKG_CONFIG" = "no" ; then
11688 pkg_check_gtk=no
11689 else
11690 PKG_CONFIG_MIN_VERSION=0.9.0
11691 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11693 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11694
11695 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11696 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11697 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11698 edit_cflags="
11699 s,///*,/,g
11700 s/^/ /
11701 s/ -I/ $isystem/g
11702 s/^ //
11703 "
11704 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11705 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11707 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11708 succeeded=yes
11709 else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11712 GTK_CFLAGS=""
11713 GTK_LIBS=""
11714 ## If we have a custom action on failure, don't print errors, but
11715 ## do set a variable so people can do so. Do it in a subshell
11716 ## to capture any diagnostics in invoking pkg-config.
11717 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11718
11719 fi
11720
11721
11722
11723 else
11724 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11725 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11726 fi
11727 fi
11728
11729 if test $succeeded = yes; then
11730 pkg_check_gtk=yes
11731 else
11732 pkg_check_gtk=no
11733 fi
11734
11735 if test "$pkg_check_gtk" = "no" &&
11736 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11737 then
11738 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11739 fi
11740 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11741 fi
11742 fi
11743
11744 if test x"$pkg_check_gtk" = xyes; then
11745
11746
11747
11748 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11749 CFLAGS="$CFLAGS $GTK_CFLAGS"
11750 LIBS="$GTK_LIBS $LIBS"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11752 $as_echo_n "checking whether GTK compiles... " >&6; }
11753 GTK_COMPILES=no
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 /* Check the Gtk and Glib APIs. */
11757 #include <gtk/gtk.h>
11758 #include <glib-object.h>
11759 static void
11760 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11761 {}
11762
11763 int
11764 main ()
11765 {
11766
11767 GtkSettings *gs = 0;
11768 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11769 strict C prohibits this. Use gtk_main_iteration to test that the
11770 libraries are there. */
11771 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11772 0, 0, 0, G_CALLBACK (callback), 0))
11773 gtk_main_iteration ();
11774
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 if ac_fn_c_try_link "$LINENO"; then :
11780 GTK_COMPILES=yes
11781 fi
11782 rm -f core conftest.err conftest.$ac_objext \
11783 conftest$ac_exeext conftest.$ac_ext
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11785 $as_echo "$GTK_COMPILES" >&6; }
11786 if test "${GTK_COMPILES}" != "yes"; then
11787 GTK_OBJ=
11788 if test "$USE_X_TOOLKIT" != "maybe"; then
11789 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11790 fi
11791 else
11792 HAVE_GTK=yes
11793
11794 $as_echo "#define USE_GTK 1" >>confdefs.h
11795
11796 GTK_OBJ="gtkutil.o $GTK_OBJ"
11797 term_header=$gtk_term_header
11798 USE_X_TOOLKIT=none
11799 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11800 :
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11803 closing open displays. This is no problem if you just use
11804 one display, but if you use more than one and close one of them
11805 Emacs may crash." >&5
11806 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11807 closing open displays. This is no problem if you just use
11808 one display, but if you use more than one and close one of them
11809 Emacs may crash." >&2;}
11810 sleep 3
11811 fi
11812 fi
11813
11814 fi
11815
11816
11817
11818 if test "${HAVE_GTK}" = "yes"; then
11819
11820 if test "$with_toolkit_scroll_bars" != no; then
11821 with_toolkit_scroll_bars=yes
11822 fi
11823
11824 HAVE_GTK_FILE_SELECTION=no
11825 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11826 #include <gtk/gtk.h>
11827 "
11828 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11829 HAVE_GTK_FILE_SELECTION=yes
11830 else
11831 HAVE_GTK_FILE_SELECTION=no
11832 fi
11833
11834 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11835 for ac_func in gtk_file_selection_new
11836 do :
11837 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11838 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11839 cat >>confdefs.h <<_ACEOF
11840 #define HAVE_GTK_FILE_SELECTION_NEW 1
11841 _ACEOF
11842
11843 fi
11844 done
11845
11846 fi
11847
11848 HAVE_GTK_HANDLE_BOX=no
11849 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11850 #include <gtk/gtk.h>
11851 "
11852 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11853 HAVE_GTK_HANDLE_BOX=yes
11854 else
11855 HAVE_GTK_HANDLE_BOX=no
11856 fi
11857
11858 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11859 for ac_func in gtk_handle_box_new
11860 do :
11861 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11862 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11863 cat >>confdefs.h <<_ACEOF
11864 #define HAVE_GTK_HANDLE_BOX_NEW 1
11865 _ACEOF
11866
11867 fi
11868 done
11869
11870 fi
11871
11872 HAVE_GTK_TEAROFF_MENU_ITEM=no
11873 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11874 #include <gtk/gtk.h>
11875 "
11876 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11877 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11878 else
11879 HAVE_GTK_TEAROFF_MENU_ITEM=no
11880 fi
11881
11882 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11883 for ac_func in gtk_tearoff_menu_item_new
11884 do :
11885 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11886 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11887 cat >>confdefs.h <<_ACEOF
11888 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11889 _ACEOF
11890
11891 fi
11892 done
11893
11894 fi
11895
11896 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11897 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11898 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11899 gtk_orientable_set_orientation \
11900 gtk_window_set_has_resize_grip
11901 do :
11902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11904 eval as_val=\$$as_ac_var
11905 if test "x$as_val" = x""yes; then :
11906 cat >>confdefs.h <<_ACEOF
11907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11908 _ACEOF
11909
11910 fi
11911 done
11912
11913
11914 term_header=gtkutil.h
11915 fi
11916
11917 HAVE_DBUS=no
11918 DBUS_OBJ=
11919 if test "${with_dbus}" = "yes"; then
11920
11921 succeeded=no
11922
11923 if test "$PKG_CONFIG" = "no" ; then
11924 HAVE_DBUS=no
11925 else
11926 PKG_CONFIG_MIN_VERSION=0.9.0
11927 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11929 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11930
11931 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11932 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11933 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11934 edit_cflags="
11935 s,///*,/,g
11936 s/^/ /
11937 s/ -I/ $isystem/g
11938 s/^ //
11939 "
11940 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11941 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11943 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11944 succeeded=yes
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11948 DBUS_CFLAGS=""
11949 DBUS_LIBS=""
11950 ## If we have a custom action on failure, don't print errors, but
11951 ## do set a variable so people can do so. Do it in a subshell
11952 ## to capture any diagnostics in invoking pkg-config.
11953 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11954
11955 fi
11956
11957
11958
11959 else
11960 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11961 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11962 fi
11963 fi
11964
11965 if test $succeeded = yes; then
11966 HAVE_DBUS=yes
11967 else
11968 HAVE_DBUS=no
11969 fi
11970
11971 if test "$HAVE_DBUS" = yes; then
11972 LIBS="$LIBS $DBUS_LIBS"
11973
11974 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11975
11976 for ac_func in dbus_watch_get_unix_fd \
11977 dbus_type_is_valid \
11978 dbus_validate_bus_name \
11979 dbus_validate_path \
11980 dbus_validate_interface \
11981 dbus_validate_member
11982 do :
11983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11984 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11985 eval as_val=\$$as_ac_var
11986 if test "x$as_val" = x""yes; then :
11987 cat >>confdefs.h <<_ACEOF
11988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11989 _ACEOF
11990
11991 fi
11992 done
11993
11994 DBUS_OBJ=dbusbind.o
11995 fi
11996 fi
11997
11998
11999 HAVE_GSETTINGS=no
12000 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
12001
12002 succeeded=no
12003
12004 if test "$PKG_CONFIG" = "no" ; then
12005 HAVE_GSETTINGS=no
12006 else
12007 PKG_CONFIG_MIN_VERSION=0.9.0
12008 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
12010 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
12011
12012 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
12013 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
12014 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
12015 edit_cflags="
12016 s,///*,/,g
12017 s/^/ /
12018 s/ -I/ $isystem/g
12019 s/^ //
12020 "
12021 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12022 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12024 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12025 succeeded=yes
12026 else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12029 GSETTINGS_CFLAGS=""
12030 GSETTINGS_LIBS=""
12031 ## If we have a custom action on failure, don't print errors, but
12032 ## do set a variable so people can do so. Do it in a subshell
12033 ## to capture any diagnostics in invoking pkg-config.
12034 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
12035
12036 fi
12037
12038
12039
12040 else
12041 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12042 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12043 fi
12044 fi
12045
12046 if test $succeeded = yes; then
12047 HAVE_GSETTINGS=yes
12048 else
12049 HAVE_GSETTINGS=no
12050 fi
12051
12052 if test "$HAVE_GSETTINGS" = "yes"; then
12053
12054 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12055
12056 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
12057 SETTINGS_LIBS="$GSETTINGS_LIBS"
12058 fi
12059 fi
12060
12061 HAVE_GCONF=no
12062 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12063
12064 succeeded=no
12065
12066 if test "$PKG_CONFIG" = "no" ; then
12067 HAVE_GCONF=no
12068 else
12069 PKG_CONFIG_MIN_VERSION=0.9.0
12070 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12072 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12073
12074 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
12075 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12076 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
12077 edit_cflags="
12078 s,///*,/,g
12079 s/^/ /
12080 s/ -I/ $isystem/g
12081 s/^ //
12082 "
12083 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12084 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12086 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12087 succeeded=yes
12088 else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12091 GCONF_CFLAGS=""
12092 GCONF_LIBS=""
12093 ## If we have a custom action on failure, don't print errors, but
12094 ## do set a variable so people can do so. Do it in a subshell
12095 ## to capture any diagnostics in invoking pkg-config.
12096 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
12097
12098 fi
12099
12100
12101
12102 else
12103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12105 fi
12106 fi
12107
12108 if test $succeeded = yes; then
12109 HAVE_GCONF=yes
12110 else
12111 HAVE_GCONF=no
12112 fi
12113
12114 if test "$HAVE_GCONF" = yes; then
12115
12116 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12117
12118 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12119 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
12120 fi
12121 fi
12122
12123 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
12124
12125 succeeded=no
12126
12127 if test "$PKG_CONFIG" = "no" ; then
12128 HAVE_GOBJECT=no
12129 else
12130 PKG_CONFIG_MIN_VERSION=0.9.0
12131 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
12133 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
12134
12135 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
12136 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
12137 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
12138 edit_cflags="
12139 s,///*,/,g
12140 s/^/ /
12141 s/ -I/ $isystem/g
12142 s/^ //
12143 "
12144 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
12145 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
12147 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
12148 succeeded=yes
12149 else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12152 GOBJECT_CFLAGS=""
12153 GOBJECT_LIBS=""
12154 ## If we have a custom action on failure, don't print errors, but
12155 ## do set a variable so people can do so. Do it in a subshell
12156 ## to capture any diagnostics in invoking pkg-config.
12157 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
12158
12159 fi
12160
12161
12162
12163 else
12164 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12165 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12166 fi
12167 fi
12168
12169 if test $succeeded = yes; then
12170 HAVE_GOBJECT=yes
12171 else
12172 HAVE_GOBJECT=no
12173 fi
12174
12175 if test "$HAVE_GOBJECT" = "yes"; then
12176 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
12177 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
12178 fi
12179 SAVE_CFLAGS="$CFLAGS"
12180 SAVE_LIBS="$LIBS"
12181 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
12182 LIBS="$SETTINGS_LIBS $LIBS"
12183 CFLAGS="$SAVE_CFLAGS"
12184 LIBS="$SAVE_LIBS"
12185 fi
12186
12187
12188
12189
12190 HAVE_LIBSELINUX=no
12191 LIBSELINUX_LIBS=
12192 if test "${with_selinux}" = "yes"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12194 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12195 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 ac_check_lib_save_LIBS=$LIBS
12199 LIBS="-lselinux $LIBS"
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202
12203 /* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply. */
12206 #ifdef __cplusplus
12207 extern "C"
12208 #endif
12209 char lgetfilecon ();
12210 int
12211 main ()
12212 {
12213 return lgetfilecon ();
12214 ;
12215 return 0;
12216 }
12217 _ACEOF
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_lib_selinux_lgetfilecon=yes
12220 else
12221 ac_cv_lib_selinux_lgetfilecon=no
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12228 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12229 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12230 HAVE_LIBSELINUX=yes
12231 else
12232 HAVE_LIBSELINUX=no
12233 fi
12234
12235 if test "$HAVE_LIBSELINUX" = yes; then
12236
12237 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12238
12239 LIBSELINUX_LIBS=-lselinux
12240 fi
12241 fi
12242
12243
12244 HAVE_GNUTLS=no
12245 HAVE_GNUTLS3=no
12246 if test "${with_gnutls}" = "yes" ; then
12247
12248 succeeded=no
12249
12250 if test "$PKG_CONFIG" = "no" ; then
12251 HAVE_GNUTLS3=no
12252 else
12253 PKG_CONFIG_MIN_VERSION=0.9.0
12254 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 3.0.0" >&5
12256 $as_echo_n "checking for gnutls >= 3.0.0... " >&6; }
12257
12258 if "$PKG_CONFIG" --exists "gnutls >= 3.0.0" 2>&5 &&
12259 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 3.0.0" 2>&5` &&
12260 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 3.0.0" 2>&5`; then
12261 edit_cflags="
12262 s,///*,/,g
12263 s/^/ /
12264 s/ -I/ $isystem/g
12265 s/^ //
12266 "
12267 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12268 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12270 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12271 succeeded=yes
12272 else
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275 LIBGNUTLS_CFLAGS=""
12276 LIBGNUTLS_LIBS=""
12277 ## If we have a custom action on failure, don't print errors, but
12278 ## do set a variable so people can do so. Do it in a subshell
12279 ## to capture any diagnostics in invoking pkg-config.
12280 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 3.0.0") 2>&1`
12281
12282 fi
12283
12284
12285
12286 else
12287 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12288 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12289 fi
12290 fi
12291
12292 if test $succeeded = yes; then
12293 HAVE_GNUTLS3=yes
12294 else
12295 HAVE_GNUTLS3=no
12296 fi
12297
12298 if test "${HAVE_GNUTLS3}" = "yes"; then
12299
12300 $as_echo "#define HAVE_GNUTLS3 1" >>confdefs.h
12301
12302 HAVE_GNUTLS="yes"
12303 else
12304
12305 succeeded=no
12306
12307 if test "$PKG_CONFIG" = "no" ; then
12308 HAVE_GNUTLS=no
12309 else
12310 PKG_CONFIG_MIN_VERSION=0.9.0
12311 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12313 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12314
12315 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
12316 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
12317 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
12318 edit_cflags="
12319 s,///*,/,g
12320 s/^/ /
12321 s/ -I/ $isystem/g
12322 s/^ //
12323 "
12324 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12325 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12327 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12328 succeeded=yes
12329 else
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12332 LIBGNUTLS_CFLAGS=""
12333 LIBGNUTLS_LIBS=""
12334 ## If we have a custom action on failure, don't print errors, but
12335 ## do set a variable so people can do so. Do it in a subshell
12336 ## to capture any diagnostics in invoking pkg-config.
12337 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12338
12339 fi
12340
12341
12342
12343 else
12344 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12345 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12346 fi
12347 fi
12348
12349 if test $succeeded = yes; then
12350 HAVE_GNUTLS=yes
12351 else
12352 HAVE_GNUTLS=no
12353 fi
12354
12355 fi
12356 if test "${HAVE_GNUTLS}" = "yes"; then
12357
12358 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12359
12360 fi
12361
12362 # Windows loads GnuTLS dynamically
12363 if test "${opsys}" = "mingw32"; then
12364 LIBGNUTLS_LIBS=
12365 else
12366 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12367 LIBS="$LIBGNUTLS_LIBS $LIBS"
12368 fi
12369 fi
12370
12371
12372
12373
12374 NOTIFY_OBJ=
12375 NOTIFY_SUMMARY=no
12376
12377 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12378 with_file_notification=no
12379 fi
12380
12381 case $with_file_notification,$opsys in
12382 w32,* | yes,mingw32)
12383 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12384 if test "x$ac_cv_header_windows_h" = x""yes; then :
12385
12386 fi
12387
12388
12389 if test "$ac_cv_header_windows_h" = yes ; then
12390
12391 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12392
12393 NOTIFY_OBJ=w32notify.o
12394 NOTIFY_SUMMARY="yes (w32)"
12395 fi ;;
12396 esac
12397
12398 case $with_file_notification,$NOTIFY_OBJ in
12399 gfile, | yes,)
12400
12401 succeeded=no
12402
12403 if test "$PKG_CONFIG" = "no" ; then
12404 HAVE_GFILENOTIFY=no
12405 else
12406 PKG_CONFIG_MIN_VERSION=0.9.0
12407 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12409 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12410
12411 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12412 GFILENOTIFY_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12413 GFILENOTIFY_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12414 edit_cflags="
12415 s,///*,/,g
12416 s/^/ /
12417 s/ -I/ $isystem/g
12418 s/^ //
12419 "
12420 GFILENOTIFY_CFLAGS=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12421 GFILENOTIFY_LIBS=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12423 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12424 succeeded=yes
12425 else
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12428 GFILENOTIFY_CFLAGS=""
12429 GFILENOTIFY_LIBS=""
12430 ## If we have a custom action on failure, don't print errors, but
12431 ## do set a variable so people can do so. Do it in a subshell
12432 ## to capture any diagnostics in invoking pkg-config.
12433 GFILENOTIFY_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12434
12435 fi
12436
12437
12438
12439 else
12440 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12441 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12442 fi
12443 fi
12444
12445 if test $succeeded = yes; then
12446 HAVE_GFILENOTIFY=yes
12447 else
12448 HAVE_GFILENOTIFY=no
12449 fi
12450
12451 if test "$HAVE_GFILENOTIFY" = "yes"; then
12452
12453 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12454
12455 NOTIFY_OBJ=gfilenotify.o
12456 NOTIFY_SUMMARY="yes -lgio (gfile)"
12457 fi ;;
12458 esac
12459
12460 case $with_file_notification,$NOTIFY_OBJ in
12461 inotify, | yes,)
12462 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12463 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
12464
12465 fi
12466
12467
12468 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12469 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12470 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
12471
12472 fi
12473
12474 if test "$ac_cv_func_inotify_init1" = yes; then
12475
12476 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12477
12478 NOTIFY_OBJ=inotify.o
12479 NOTIFY_SUMMARY="yes -lglibc (inotify)"
12480 fi
12481 fi ;;
12482 esac
12483
12484 case $with_file_notification,$NOTIFY_OBJ in
12485 yes,* | no,* | *,?*) ;;
12486 *) as_fn_error "File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12487 esac
12488
12489 if test -n "$NOTIFY_OBJ"; then
12490
12491 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12492
12493 fi
12494
12495
12496
12497
12498 HAVE_XAW3D=no
12499 LUCID_LIBW=
12500 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12501 if test "$with_xaw3d" != no; then
12502 if test "${emacs_cv_xaw3d+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507
12508 #include <X11/Intrinsic.h>
12509 #include <X11/Xaw3d/Simple.h>
12510 int
12511 main ()
12512 {
12513
12514 ;
12515 return 0;
12516 }
12517 _ACEOF
12518 if ac_fn_c_try_link "$LINENO"; then :
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12520 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12521 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-lXaw3d $LIBS"
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char XawScrollbarSetThumb ();
12536 int
12537 main ()
12538 {
12539 return XawScrollbarSetThumb ();
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12546 else
12547 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12548 fi
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 LIBS=$ac_check_lib_save_LIBS
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12554 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12555 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12556 emacs_cv_xaw3d=yes
12557 else
12558 emacs_cv_xaw3d=no
12559 fi
12560
12561 else
12562 emacs_cv_xaw3d=no
12563 fi
12564 rm -f core conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12566 fi
12567
12568 else
12569 emacs_cv_xaw3d=no
12570 fi
12571 if test $emacs_cv_xaw3d = yes; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12573 $as_echo_n "checking for xaw3d... " >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12575 $as_echo "yes; using Lucid toolkit" >&6; }
12576 USE_X_TOOLKIT=LUCID
12577 HAVE_XAW3D=yes
12578 LUCID_LIBW=-lXaw3d
12579
12580 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12581
12582 else
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12584 $as_echo_n "checking for xaw3d... " >&6; }
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12588 $as_echo_n "checking for libXaw... " >&6; }
12589 if test "${emacs_cv_xaw+set}" = set; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12594
12595 #include <X11/Intrinsic.h>
12596 #include <X11/Xaw/Simple.h>
12597 int
12598 main ()
12599 {
12600
12601 ;
12602 return 0;
12603 }
12604 _ACEOF
12605 if ac_fn_c_try_link "$LINENO"; then :
12606 emacs_cv_xaw=yes
12607 else
12608 emacs_cv_xaw=no
12609 fi
12610 rm -f core conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
12612 fi
12613
12614 if test $emacs_cv_xaw = yes; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12616 $as_echo "yes; using Lucid toolkit" >&6; }
12617 USE_X_TOOLKIT=LUCID
12618 LUCID_LIBW=-lXaw
12619 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12620 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12621 else
12622 as_fn_error "No X toolkit could be found.
12623 If you are sure you want Emacs compiled without an X toolkit, pass
12624 --with-x-toolkit=no
12625 to configure. Otherwise, install the development libraries for the toolkit
12626 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12627 fi
12628 fi
12629 fi
12630
12631 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12632
12633 LIBXTR6=
12634 if test "${USE_X_TOOLKIT}" != "none"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12636 $as_echo_n "checking X11 toolkit version... " >&6; }
12637 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 #include <X11/Intrinsic.h>
12643 int
12644 main ()
12645 {
12646 #if XtSpecificationRelease < 6
12647 fail;
12648 #endif
12649
12650 ;
12651 return 0;
12652 }
12653 _ACEOF
12654 if ac_fn_c_try_link "$LINENO"; then :
12655 emacs_cv_x11_toolkit_version_6=yes
12656 else
12657 emacs_cv_x11_toolkit_version_6=no
12658 fi
12659 rm -f core conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12661 fi
12662
12663 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12664 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12666 $as_echo "6 or newer" >&6; }
12667
12668 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12669
12670 LIBXTR6="-lSM -lICE"
12671 case "$opsys" in
12672 ## Use libw.a along with X11R6 Xt.
12673 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12674 esac
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12677 $as_echo "before 6" >&6; }
12678 fi
12679
12680 OLDLIBS="$LIBS"
12681 if test x$HAVE_X11XTR6 = xyes; then
12682 LIBS="-lXt -lSM -lICE $LIBS"
12683 else
12684 LIBS="-lXt $LIBS"
12685 fi
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12687 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12688 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 ac_check_lib_save_LIBS=$LIBS
12692 LIBS="-lXmu $LIBS"
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695
12696 /* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12699 #ifdef __cplusplus
12700 extern "C"
12701 #endif
12702 char XmuConvertStandardSelection ();
12703 int
12704 main ()
12705 {
12706 return XmuConvertStandardSelection ();
12707 ;
12708 return 0;
12709 }
12710 _ACEOF
12711 if ac_fn_c_try_link "$LINENO"; then :
12712 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12713 else
12714 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12715 fi
12716 rm -f core conftest.err conftest.$ac_objext \
12717 conftest$ac_exeext conftest.$ac_ext
12718 LIBS=$ac_check_lib_save_LIBS
12719 fi
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12721 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12722 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12723 cat >>confdefs.h <<_ACEOF
12724 #define HAVE_LIBXMU 1
12725 _ACEOF
12726
12727 LIBS="-lXmu $LIBS"
12728
12729 fi
12730
12731 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12732 fi
12733
12734
12735 LIBXMU=-lXmu
12736 case $opsys in
12737 ## These systems don't supply Xmu.
12738 hpux* | aix4-2 )
12739 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12740 ;;
12741 mingw32 )
12742 LIBXMU=
12743 ;;
12744 esac
12745
12746
12747 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12748 if test "${HAVE_X11}" = "yes"; then
12749 if test "${USE_X_TOOLKIT}" != "none"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12751 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12752 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lXext $LIBS"
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 char XShapeQueryExtension ();
12767 int
12768 main ()
12769 {
12770 return XShapeQueryExtension ();
12771 ;
12772 return 0;
12773 }
12774 _ACEOF
12775 if ac_fn_c_try_link "$LINENO"; then :
12776 ac_cv_lib_Xext_XShapeQueryExtension=yes
12777 else
12778 ac_cv_lib_Xext_XShapeQueryExtension=no
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12783 fi
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12785 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12786 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12787 cat >>confdefs.h <<_ACEOF
12788 #define HAVE_LIBXEXT 1
12789 _ACEOF
12790
12791 LIBS="-lXext $LIBS"
12792
12793 fi
12794
12795 fi
12796 fi
12797
12798 LIBXP=
12799 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12800 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12801 if test -d /usr/include/openmotif; then
12802 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12803 emacs_cv_openmotif=yes
12804 case "$canonical" in
12805 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12806 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12807 ;;
12808 *)
12809 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12810 esac
12811 else
12812 emacs_cv_openmotif=no
12813 fi
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12815 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12816 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821 #include <Xm/Xm.h>
12822 int
12823 main ()
12824 {
12825 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12826 int x = 5;
12827 #else
12828 Motif version prior to 2.1.
12829 #endif
12830 ;
12831 return 0;
12832 }
12833 _ACEOF
12834 if ac_fn_c_try_compile "$LINENO"; then :
12835 emacs_cv_motif_version_2_1=yes
12836 else
12837 emacs_cv_motif_version_2_1=no
12838 fi
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840 fi
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12842 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12843 if test $emacs_cv_motif_version_2_1 = yes; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12845 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12846 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 ac_check_lib_save_LIBS=$LIBS
12850 LIBS="-lXp $LIBS"
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12857 #ifdef __cplusplus
12858 extern "C"
12859 #endif
12860 char XpCreateContext ();
12861 int
12862 main ()
12863 {
12864 return XpCreateContext ();
12865 ;
12866 return 0;
12867 }
12868 _ACEOF
12869 if ac_fn_c_try_link "$LINENO"; then :
12870 ac_cv_lib_Xp_XpCreateContext=yes
12871 else
12872 ac_cv_lib_Xp_XpCreateContext=no
12873 fi
12874 rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12876 LIBS=$ac_check_lib_save_LIBS
12877 fi
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12879 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12880 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12881 LIBXP=-lXp
12882 fi
12883
12884 if test x$emacs_cv_openmotif = xyes; then
12885 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12886 fi
12887 else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12889 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12890 if test "${emacs_cv_lesstif+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 # We put this in CFLAGS temporarily to precede other -I options
12894 # that might be in CFLAGS temporarily.
12895 # We put this in CPPFLAGS where it precedes the other -I options.
12896 OLD_CPPFLAGS=$CPPFLAGS
12897 OLD_CFLAGS=$CFLAGS
12898 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12899 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12902 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12903 int
12904 main ()
12905 {
12906 int x = 5;
12907 ;
12908 return 0;
12909 }
12910 _ACEOF
12911 if ac_fn_c_try_compile "$LINENO"; then :
12912 emacs_cv_lesstif=yes
12913 else
12914 emacs_cv_lesstif=no
12915 fi
12916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12917 fi
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12919 $as_echo "$emacs_cv_lesstif" >&6; }
12920 if test $emacs_cv_lesstif = yes; then
12921 # Make sure this -I option remains in CPPFLAGS after it is set
12922 # back to REAL_CPPFLAGS.
12923 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12924 # have those other -I options anyway. Ultimately, having this
12925 # directory ultimately in CPPFLAGS will be enough.
12926 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12927 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12928 else
12929 CFLAGS=$OLD_CFLAGS
12930 CPPFLAGS=$OLD_CPPFLAGS
12931 fi
12932 fi
12933 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12934 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12935
12936 else
12937 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12938 fi
12939
12940
12941 fi
12942
12943
12944 USE_TOOLKIT_SCROLL_BARS=no
12945 if test "${with_toolkit_scroll_bars}" != "no"; then
12946 if test "${USE_X_TOOLKIT}" != "none"; then
12947 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12948 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12949
12950 HAVE_XAW3D=no
12951 USE_TOOLKIT_SCROLL_BARS=yes
12952 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12953 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12954
12955 USE_TOOLKIT_SCROLL_BARS=yes
12956 fi
12957 elif test "${HAVE_GTK}" = "yes"; then
12958 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12959
12960 USE_TOOLKIT_SCROLL_BARS=yes
12961 elif test "${HAVE_NS}" = "yes"; then
12962 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12963
12964 USE_TOOLKIT_SCROLL_BARS=yes
12965 elif test "${HAVE_W32}" = "yes"; then
12966 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12967
12968 USE_TOOLKIT_SCROLL_BARS=yes
12969 fi
12970 fi
12971
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12974
12975 #include <X11/Xlib.h>
12976 #include <X11/Xresource.h>
12977 int
12978 main ()
12979 {
12980 XIMProc callback;
12981 ;
12982 return 0;
12983 }
12984 _ACEOF
12985 if ac_fn_c_try_compile "$LINENO"; then :
12986 HAVE_XIM=yes
12987
12988 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12989
12990 else
12991 HAVE_XIM=no
12992 fi
12993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994
12995
12996 if test "${with_xim}" != "no"; then
12997
12998 $as_echo "#define USE_XIM 1" >>confdefs.h
12999
13000 fi
13001
13002
13003 if test "${HAVE_XIM}" != "no"; then
13004 late_CFLAGS=$CFLAGS
13005 if test "$GCC" = yes; then
13006 CFLAGS="$CFLAGS --pedantic-errors"
13007 fi
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13010
13011 #include <X11/Xlib.h>
13012 #include <X11/Xresource.h>
13013 int
13014 main ()
13015 {
13016 Display *display;
13017 XrmDatabase db;
13018 char *res_name;
13019 char *res_class;
13020 XIMProc callback;
13021 XPointer *client_data;
13022 #ifndef __GNUC__
13023 /* If we're not using GCC, it's probably not XFree86, and this is
13024 probably right, but we can't use something like --pedantic-errors. */
13025 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13026 char*, XIMProc, XPointer*);
13027 #endif
13028 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13029 client_data);
13030 ;
13031 return 0;
13032 }
13033 _ACEOF
13034 if ac_fn_c_try_compile "$LINENO"; then :
13035 emacs_cv_arg6_star=yes
13036 fi
13037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 if test "$emacs_cv_arg6_star" = yes; then
13039 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
13040
13041 else
13042 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
13043
13044 fi
13045 CFLAGS=$late_CFLAGS
13046 fi
13047
13048 ### Start of font-backend (under any platform) section.
13049 # (nothing here yet -- this is a placeholder)
13050 ### End of font-backend (under any platform) section.
13051
13052 ### Start of font-backend (under X11) section.
13053 if test "${HAVE_X11}" = "yes"; then
13054
13055 succeeded=no
13056
13057 if test "$PKG_CONFIG" = "no" ; then
13058 HAVE_FC=no
13059 else
13060 PKG_CONFIG_MIN_VERSION=0.9.0
13061 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
13063 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13064
13065 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
13066 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
13067 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
13068 edit_cflags="
13069 s,///*,/,g
13070 s/^/ /
13071 s/ -I/ $isystem/g
13072 s/^ //
13073 "
13074 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
13075 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
13077 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
13078 succeeded=yes
13079 else
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13082 FONTCONFIG_CFLAGS=""
13083 FONTCONFIG_LIBS=""
13084 ## If we have a custom action on failure, don't print errors, but
13085 ## do set a variable so people can do so. Do it in a subshell
13086 ## to capture any diagnostics in invoking pkg-config.
13087 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
13088
13089 fi
13090
13091
13092
13093 else
13094 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13095 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13096 fi
13097 fi
13098
13099 if test $succeeded = yes; then
13100 HAVE_FC=yes
13101 else
13102 HAVE_FC=no
13103 fi
13104
13105
13106 ## Use -lXft if available, unless `--with-xft=no'.
13107 HAVE_XFT=maybe
13108 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13109 with_xft="no";
13110 fi
13111 if test "x${with_xft}" != "xno"; then
13112
13113
13114 succeeded=no
13115
13116 if test "$PKG_CONFIG" = "no" ; then
13117 HAVE_XFT=no
13118 else
13119 PKG_CONFIG_MIN_VERSION=0.9.0
13120 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13122 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13123
13124 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
13125 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
13126 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
13127 edit_cflags="
13128 s,///*,/,g
13129 s/^/ /
13130 s/ -I/ $isystem/g
13131 s/^ //
13132 "
13133 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13134 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13136 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13137 succeeded=yes
13138 else
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13141 XFT_CFLAGS=""
13142 XFT_LIBS=""
13143 ## If we have a custom action on failure, don't print errors, but
13144 ## do set a variable so people can do so. Do it in a subshell
13145 ## to capture any diagnostics in invoking pkg-config.
13146 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
13147
13148 fi
13149
13150
13151
13152 else
13153 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13154 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13155 fi
13156 fi
13157
13158 if test $succeeded = yes; then
13159 :
13160 else
13161 HAVE_XFT=no
13162 fi
13163
13164 ## Because xftfont.c uses XRenderQueryExtension, we also
13165 ## need to link to -lXrender.
13166 HAVE_XRENDER=no
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13168 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13169 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13170 $as_echo_n "(cached) " >&6
13171 else
13172 ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-lXrender $LIBS"
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13176
13177 /* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13180 #ifdef __cplusplus
13181 extern "C"
13182 #endif
13183 char XRenderQueryExtension ();
13184 int
13185 main ()
13186 {
13187 return XRenderQueryExtension ();
13188 ;
13189 return 0;
13190 }
13191 _ACEOF
13192 if ac_fn_c_try_link "$LINENO"; then :
13193 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13194 else
13195 ac_cv_lib_Xrender_XRenderQueryExtension=no
13196 fi
13197 rm -f core conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
13199 LIBS=$ac_check_lib_save_LIBS
13200 fi
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13202 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13203 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13204 HAVE_XRENDER=yes
13205 fi
13206
13207 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13208 OLD_CPPFLAGS="$CPPFLAGS"
13209 OLD_CFLAGS="$CFLAGS"
13210 OLD_LIBS="$LIBS"
13211 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13212 CFLAGS="$CFLAGS $XFT_CFLAGS"
13213 XFT_LIBS="-lXrender $XFT_LIBS"
13214 LIBS="$XFT_LIBS $LIBS"
13215 ac_fn_c_check_header_compile "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
13216 "
13217 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13219 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13220 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223 ac_check_lib_save_LIBS=$LIBS
13224 LIBS="-lXft $XFT_LIBS $LIBS"
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13227
13228 /* Override any GCC internal prototype to avoid an error.
13229 Use char because int might match the return type of a GCC
13230 builtin and then its argument prototype would still apply. */
13231 #ifdef __cplusplus
13232 extern "C"
13233 #endif
13234 char XftFontOpen ();
13235 int
13236 main ()
13237 {
13238 return XftFontOpen ();
13239 ;
13240 return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_c_try_link "$LINENO"; then :
13244 ac_cv_lib_Xft_XftFontOpen=yes
13245 else
13246 ac_cv_lib_Xft_XftFontOpen=no
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext \
13249 conftest$ac_exeext conftest.$ac_ext
13250 LIBS=$ac_check_lib_save_LIBS
13251 fi
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13253 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13254 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
13255 HAVE_XFT=yes
13256 fi
13257
13258 fi
13259
13260
13261
13262 if test "${HAVE_XFT}" = "yes"; then
13263
13264 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13265
13266
13267 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13268 else
13269 CPPFLAGS="$OLD_CPPFLAGS"
13270 CFLAGS="$OLD_CFLAGS"
13271 LIBS="$OLD_LIBS"
13272 fi # "${HAVE_XFT}" = "yes"
13273 fi # "$HAVE_XFT" != no
13274 fi # "x${with_xft}" != "xno"
13275
13276 ## We used to allow building with FreeType and without Xft.
13277 ## However, the ftx font backend driver is not in good shape.
13278 if test "$HAVE_XFT" != "yes"; then
13279 HAVE_XFT=no
13280 HAVE_FREETYPE=no
13281 else
13282
13283 succeeded=no
13284
13285 if test "$PKG_CONFIG" = "no" ; then
13286 HAVE_FREETYPE=no
13287 else
13288 PKG_CONFIG_MIN_VERSION=0.9.0
13289 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13291 $as_echo_n "checking for freetype2... " >&6; }
13292
13293 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
13294 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
13295 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
13296 edit_cflags="
13297 s,///*,/,g
13298 s/^/ /
13299 s/ -I/ $isystem/g
13300 s/^ //
13301 "
13302 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13303 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13305 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13306 succeeded=yes
13307 else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13310 FREETYPE_CFLAGS=""
13311 FREETYPE_LIBS=""
13312 ## If we have a custom action on failure, don't print errors, but
13313 ## do set a variable so people can do so. Do it in a subshell
13314 ## to capture any diagnostics in invoking pkg-config.
13315 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
13316
13317 fi
13318
13319
13320
13321 else
13322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13324 fi
13325 fi
13326
13327 if test $succeeded = yes; then
13328 HAVE_FREETYPE=yes
13329 else
13330 HAVE_FREETYPE=no
13331 fi
13332
13333
13334 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
13335 fi
13336
13337 HAVE_LIBOTF=no
13338 if test "${HAVE_FREETYPE}" = "yes"; then
13339
13340 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13341
13342 if test "${with_libotf}" != "no"; then
13343
13344 succeeded=no
13345
13346 if test "$PKG_CONFIG" = "no" ; then
13347 HAVE_LIBOTF=no
13348 else
13349 PKG_CONFIG_MIN_VERSION=0.9.0
13350 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13352 $as_echo_n "checking for libotf... " >&6; }
13353
13354 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13355 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13356 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13357 edit_cflags="
13358 s,///*,/,g
13359 s/^/ /
13360 s/ -I/ $isystem/g
13361 s/^ //
13362 "
13363 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13364 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13366 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13367 succeeded=yes
13368 else
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13371 LIBOTF_CFLAGS=""
13372 LIBOTF_LIBS=""
13373 ## If we have a custom action on failure, don't print errors, but
13374 ## do set a variable so people can do so. Do it in a subshell
13375 ## to capture any diagnostics in invoking pkg-config.
13376 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13377
13378 fi
13379
13380
13381
13382 else
13383 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13384 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13385 fi
13386 fi
13387
13388 if test $succeeded = yes; then
13389 HAVE_LIBOTF=yes
13390 else
13391 HAVE_LIBOTF=no
13392 fi
13393
13394 if test "$HAVE_LIBOTF" = "yes"; then
13395
13396 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13399 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13400 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 ac_check_lib_save_LIBS=$LIBS
13404 LIBS="-lotf $LIBS"
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13407
13408 /* Override any GCC internal prototype to avoid an error.
13409 Use char because int might match the return type of a GCC
13410 builtin and then its argument prototype would still apply. */
13411 #ifdef __cplusplus
13412 extern "C"
13413 #endif
13414 char OTF_get_variation_glyphs ();
13415 int
13416 main ()
13417 {
13418 return OTF_get_variation_glyphs ();
13419 ;
13420 return 0;
13421 }
13422 _ACEOF
13423 if ac_fn_c_try_link "$LINENO"; then :
13424 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13425 else
13426 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13427 fi
13428 rm -f core conftest.err conftest.$ac_objext \
13429 conftest$ac_exeext conftest.$ac_ext
13430 LIBS=$ac_check_lib_save_LIBS
13431 fi
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13433 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13434 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13435 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13436 else
13437 HAVE_OTF_GET_VARIATION_GLYPHS=no
13438 fi
13439
13440 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13441
13442 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13443
13444 fi
13445 fi
13446 fi
13447 fi
13448
13449 HAVE_M17N_FLT=no
13450 if test "${HAVE_LIBOTF}" = yes; then
13451 if test "${with_m17n_flt}" != "no"; then
13452
13453 succeeded=no
13454
13455 if test "$PKG_CONFIG" = "no" ; then
13456 HAVE_M17N_FLT=no
13457 else
13458 PKG_CONFIG_MIN_VERSION=0.9.0
13459 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13461 $as_echo_n "checking for m17n-flt... " >&6; }
13462
13463 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13464 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13465 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13466 edit_cflags="
13467 s,///*,/,g
13468 s/^/ /
13469 s/ -I/ $isystem/g
13470 s/^ //
13471 "
13472 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13473 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13475 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13476 succeeded=yes
13477 else
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13480 M17N_FLT_CFLAGS=""
13481 M17N_FLT_LIBS=""
13482 ## If we have a custom action on failure, don't print errors, but
13483 ## do set a variable so people can do so. Do it in a subshell
13484 ## to capture any diagnostics in invoking pkg-config.
13485 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13486
13487 fi
13488
13489
13490
13491 else
13492 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13493 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13494 fi
13495 fi
13496
13497 if test $succeeded = yes; then
13498 HAVE_M17N_FLT=yes
13499 else
13500 HAVE_M17N_FLT=no
13501 fi
13502
13503 if test "$HAVE_M17N_FLT" = "yes"; then
13504
13505 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13506
13507 fi
13508 fi
13509 fi
13510 else
13511 HAVE_XFT=no
13512 HAVE_FREETYPE=no
13513 HAVE_LIBOTF=no
13514 HAVE_M17N_FLT=no
13515 fi
13516
13517 ### End of font-backend (under X11) section.
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528 ### Use -lXpm if available, unless `--with-xpm=no'.
13529 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13530 HAVE_XPM=no
13531 LIBXPM=
13532 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13533 if test "${with_xpm}" != "no"; then
13534 SAVE_CPPFLAGS="$CPPFLAGS"
13535 SAVE_LDFLAGS="$LDFLAGS"
13536 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
13537 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
13538 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13539 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13541 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13542 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 ac_check_lib_save_LIBS=$LIBS
13546 LIBS="-lXpm $LIBS"
13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13549
13550 /* Override any GCC internal prototype to avoid an error.
13551 Use char because int might match the return type of a GCC
13552 builtin and then its argument prototype would still apply. */
13553 #ifdef __cplusplus
13554 extern "C"
13555 #endif
13556 char XpmReadFileToImage ();
13557 int
13558 main ()
13559 {
13560 return XpmReadFileToImage ();
13561 ;
13562 return 0;
13563 }
13564 _ACEOF
13565 if ac_fn_c_try_link "$LINENO"; then :
13566 ac_cv_lib_Xpm_XpmReadFileToImage=yes
13567 else
13568 ac_cv_lib_Xpm_XpmReadFileToImage=no
13569 fi
13570 rm -f core conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13572 LIBS=$ac_check_lib_save_LIBS
13573 fi
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13575 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13576 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
13577 HAVE_XPM=yes
13578 fi
13579
13580 fi
13581
13582
13583 if test "${HAVE_XPM}" = "yes"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13585 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 #include "X11/xpm.h"
13589 #ifndef XpmReturnAllocPixels
13590 no_return_alloc_pixels
13591 #endif
13592
13593 _ACEOF
13594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13595 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13596 HAVE_XPM=no
13597 else
13598 HAVE_XPM=yes
13599 fi
13600 rm -f conftest*
13601
13602
13603 if test "${HAVE_XPM}" = "yes"; then
13604 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13606 $as_echo "yes" >&6; }
13607 else
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13610 CPPFLAGS="$SAVE_CPPFLAGS"
13611 LDFLAGS="$SAVE_LDFLAGS"
13612 fi
13613 fi
13614 fi
13615
13616 if test "${HAVE_XPM}" = "yes"; then
13617
13618 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13619
13620 LIBXPM=-lXpm
13621 fi
13622 fi
13623
13624 if test "${HAVE_X11}" = "yes"; then
13625 if test "${with_xpm}" != "no"; then
13626 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13627 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13629 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13630 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 ac_check_lib_save_LIBS=$LIBS
13634 LIBS="-lXpm -lX11 $LIBS"
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637
13638 /* Override any GCC internal prototype to avoid an error.
13639 Use char because int might match the return type of a GCC
13640 builtin and then its argument prototype would still apply. */
13641 #ifdef __cplusplus
13642 extern "C"
13643 #endif
13644 char XpmReadFileToPixmap ();
13645 int
13646 main ()
13647 {
13648 return XpmReadFileToPixmap ();
13649 ;
13650 return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_c_try_link "$LINENO"; then :
13654 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13655 else
13656 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13657 fi
13658 rm -f core conftest.err conftest.$ac_objext \
13659 conftest$ac_exeext conftest.$ac_ext
13660 LIBS=$ac_check_lib_save_LIBS
13661 fi
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13663 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13664 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13665 HAVE_XPM=yes
13666 fi
13667
13668 fi
13669
13670
13671 if test "${HAVE_XPM}" = "yes"; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13673 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13676 #include "X11/xpm.h"
13677 #ifndef XpmReturnAllocPixels
13678 no_return_alloc_pixels
13679 #endif
13680
13681 _ACEOF
13682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13683 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13684 HAVE_XPM=no
13685 else
13686 HAVE_XPM=yes
13687 fi
13688 rm -f conftest*
13689
13690
13691 if test "${HAVE_XPM}" = "yes"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13693 $as_echo "yes" >&6; }
13694 else
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13697 fi
13698 fi
13699 fi
13700
13701 if test "${HAVE_XPM}" = "yes"; then
13702
13703 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13704
13705 LIBXPM=-lXpm
13706 fi
13707 fi
13708
13709 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13710 ### slightly different requirements wrt image libraries (it doesn't
13711 ### use -lXpm because it loads the xpm shared library dynamically at
13712 ### run time).
13713 if test "${opsys}" = "mingw32"; then
13714 if test "${with_xpm}" != "no"; then
13715 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13716 #define FOR_MSW 1
13717 "
13718 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13719 HAVE_XPM=yes
13720 else
13721 HAVE_XPM=no
13722 fi
13723
13724
13725 fi
13726
13727 if test "${HAVE_XPM}" = "yes"; then
13728
13729 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13730
13731 fi
13732 fi
13733
13734
13735
13736 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13737 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13738 HAVE_JPEG=no
13739 LIBJPEG=
13740 if test "${opsys}" = "mingw32"; then
13741 if test "${with_jpeg}" != "no"; then
13742 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13743 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13744 HAVE_JPEG=yes
13745 else
13746 HAVE_JPEG=no
13747 fi
13748
13749
13750 fi
13751 if test "${HAVE_JPEG}" = "yes"; then
13752 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13753
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756 #include <jpeglib.h>
13757 version=JPEG_LIB_VERSION
13758
13759 _ACEOF
13760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13761 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13762 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13763
13764 else
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13766 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13767 HAVE_JPEG=no
13768 fi
13769 rm -f conftest*
13770
13771 fi
13772 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13773 if test "${with_jpeg}" != "no"; then
13774 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13775 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13777 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13778 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 ac_check_lib_save_LIBS=$LIBS
13782 LIBS="-ljpeg $LIBS"
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785
13786 /* Override any GCC internal prototype to avoid an error.
13787 Use char because int might match the return type of a GCC
13788 builtin and then its argument prototype would still apply. */
13789 #ifdef __cplusplus
13790 extern "C"
13791 #endif
13792 char jpeg_destroy_compress ();
13793 int
13794 main ()
13795 {
13796 return jpeg_destroy_compress ();
13797 ;
13798 return 0;
13799 }
13800 _ACEOF
13801 if ac_fn_c_try_link "$LINENO"; then :
13802 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13803 else
13804 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13805 fi
13806 rm -f core conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13809 fi
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13811 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13812 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13813 HAVE_JPEG=yes
13814 fi
13815
13816 fi
13817
13818
13819 fi
13820
13821 if test "${HAVE_JPEG}" = "yes"; then
13822 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13823
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #include <jpeglib.h>
13827 version=JPEG_LIB_VERSION
13828
13829 _ACEOF
13830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13831 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13832 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13833
13834 else
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13836 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13837 HAVE_JPEG=no
13838 fi
13839 rm -f conftest*
13840
13841 fi
13842 if test "${HAVE_JPEG}" = "yes"; then
13843 LIBJPEG=-ljpeg
13844 fi
13845 fi
13846
13847
13848 ### Use -lpng if available, unless `--with-png=no'.
13849 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13850 HAVE_PNG=no
13851 LIBPNG=
13852 if test "${opsys}" = "mingw32"; then
13853 if test "${with_png}" != "no"; then
13854 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13855 if test "x$ac_cv_header_png_h" = x""yes; then :
13856 HAVE_PNG=yes
13857 else
13858 HAVE_PNG=no
13859 fi
13860
13861
13862 fi
13863 if test "${HAVE_PNG}" = "yes"; then
13864
13865 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13866
13867
13868 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13869 # include <libpng/png.h>
13870 #else
13871 # include <png.h>
13872 #endif
13873
13874 "
13875 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13876
13877 else
13878
13879 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13880
13881 fi
13882
13883 fi
13884 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13885 if test "${with_png}" != "no"; then
13886 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13887 # in /usr/include/libpng.
13888 for ac_header in png.h libpng/png.h
13889 do :
13890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13892 eval as_val=\$$as_ac_Header
13893 if test "x$as_val" = x""yes; then :
13894 cat >>confdefs.h <<_ACEOF
13895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13896 _ACEOF
13897 break
13898 fi
13899
13900 done
13901
13902 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13904 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13905 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13907 else
13908 ac_check_lib_save_LIBS=$LIBS
13909 LIBS="-lpng -lz -lm $LIBS"
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13912
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 char png_get_channels ();
13920 int
13921 main ()
13922 {
13923 return png_get_channels ();
13924 ;
13925 return 0;
13926 }
13927 _ACEOF
13928 if ac_fn_c_try_link "$LINENO"; then :
13929 ac_cv_lib_png_png_get_channels=yes
13930 else
13931 ac_cv_lib_png_png_get_channels=no
13932 fi
13933 rm -f core conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext conftest.$ac_ext
13935 LIBS=$ac_check_lib_save_LIBS
13936 fi
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13938 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13939 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13940 HAVE_PNG=yes
13941 fi
13942
13943 fi
13944 fi
13945
13946 if test "${HAVE_PNG}" = "yes"; then
13947
13948 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13949
13950 LIBPNG="-lpng -lz -lm"
13951
13952 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13953 # include <libpng/png.h>
13954 #else
13955 # include <png.h>
13956 #endif
13957
13958 "
13959 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13960
13961 else
13962
13963 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13964
13965 fi
13966
13967 fi
13968 fi
13969
13970
13971 HAVE_ZLIB=no
13972 LIBZ=
13973 if test "${with_zlib}" != "no"; then
13974 OLIBS=$LIBS
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13976 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13977 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 ac_func_search_save_LIBS=$LIBS
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13983
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13987 #ifdef __cplusplus
13988 extern "C"
13989 #endif
13990 char inflateEnd ();
13991 int
13992 main ()
13993 {
13994 return inflateEnd ();
13995 ;
13996 return 0;
13997 }
13998 _ACEOF
13999 for ac_lib in '' z; do
14000 if test -z "$ac_lib"; then
14001 ac_res="none required"
14002 else
14003 ac_res=-l$ac_lib
14004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14005 fi
14006 if ac_fn_c_try_link "$LINENO"; then :
14007 ac_cv_search_inflateEnd=$ac_res
14008 fi
14009 rm -f core conftest.err conftest.$ac_objext \
14010 conftest$ac_exeext
14011 if test "${ac_cv_search_inflateEnd+set}" = set; then :
14012 break
14013 fi
14014 done
14015 if test "${ac_cv_search_inflateEnd+set}" = set; then :
14016
14017 else
14018 ac_cv_search_inflateEnd=no
14019 fi
14020 rm conftest.$ac_ext
14021 LIBS=$ac_func_search_save_LIBS
14022 fi
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
14024 $as_echo "$ac_cv_search_inflateEnd" >&6; }
14025 ac_res=$ac_cv_search_inflateEnd
14026 if test "$ac_res" != no; then :
14027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14028 HAVE_ZLIB=yes
14029 fi
14030
14031 LIBS=$OLIBS
14032 case $ac_cv_search_inflateEnd in
14033 -*) LIBZ=$ac_cv_search_inflateEnd ;;
14034 esac
14035 fi
14036 if test "${HAVE_ZLIB}" = "yes"; then
14037
14038 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
14039
14040 ### mingw32 doesn't use -lz, since it loads the library dynamically.
14041 if test "${opsys}" = "mingw32"; then
14042 LIBZ=
14043 fi
14044 fi
14045
14046
14047
14048 ### Use -ltiff if available, unless `--with-tiff=no'.
14049 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
14050 HAVE_TIFF=no
14051 LIBTIFF=
14052 if test "${opsys}" = "mingw32"; then
14053 if test "${with_tiff}" != "no"; then
14054 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14055 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
14056 HAVE_TIFF=yes
14057 else
14058 HAVE_TIFF=no
14059 fi
14060
14061
14062 fi
14063 if test "${HAVE_TIFF}" = "yes"; then
14064
14065 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14066
14067 fi
14068 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
14069 if test "${with_tiff}" != "no"; then
14070 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14071 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
14072 tifflibs="-lz -lm"
14073 # At least one tiff package requires the jpeg library.
14074 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
14076 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14077 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 ac_check_lib_save_LIBS=$LIBS
14081 LIBS="-ltiff $tifflibs $LIBS"
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14088 #ifdef __cplusplus
14089 extern "C"
14090 #endif
14091 char TIFFGetVersion ();
14092 int
14093 main ()
14094 {
14095 return TIFFGetVersion ();
14096 ;
14097 return 0;
14098 }
14099 _ACEOF
14100 if ac_fn_c_try_link "$LINENO"; then :
14101 ac_cv_lib_tiff_TIFFGetVersion=yes
14102 else
14103 ac_cv_lib_tiff_TIFFGetVersion=no
14104 fi
14105 rm -f core conftest.err conftest.$ac_objext \
14106 conftest$ac_exeext conftest.$ac_ext
14107 LIBS=$ac_check_lib_save_LIBS
14108 fi
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14110 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14111 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
14112 HAVE_TIFF=yes
14113 fi
14114
14115 fi
14116
14117
14118 fi
14119
14120 if test "${HAVE_TIFF}" = "yes"; then
14121
14122 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14123
14124 LIBTIFF=-ltiff
14125 fi
14126 fi
14127
14128
14129 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14130 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
14131 HAVE_GIF=no
14132 LIBGIF=
14133 if test "${opsys}" = "mingw32"; then
14134 if test "${with_gif}" != "no"; then
14135 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14136 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
14137 HAVE_GIF=yes
14138 else
14139 HAVE_GIF=no
14140 fi
14141
14142
14143 fi
14144 if test "${HAVE_GIF}" = "yes"; then
14145
14146 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14147
14148 fi
14149 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
14150 || test "${HAVE_W32}" = "yes"; then
14151 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14152 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
14153 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14154 # Earlier versions can crash Emacs, but version 5.0 removes EGifPutExtensionLast.
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GifMakeMapObject in -lgif" >&5
14156 $as_echo_n "checking for GifMakeMapObject in -lgif... " >&6; }
14157 if test "${ac_cv_lib_gif_GifMakeMapObject+set}" = set; then :
14158 $as_echo_n "(cached) " >&6
14159 else
14160 ac_check_lib_save_LIBS=$LIBS
14161 LIBS="-lgif $LIBS"
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164
14165 /* Override any GCC internal prototype to avoid an error.
14166 Use char because int might match the return type of a GCC
14167 builtin and then its argument prototype would still apply. */
14168 #ifdef __cplusplus
14169 extern "C"
14170 #endif
14171 char GifMakeMapObject ();
14172 int
14173 main ()
14174 {
14175 return GifMakeMapObject ();
14176 ;
14177 return 0;
14178 }
14179 _ACEOF
14180 if ac_fn_c_try_link "$LINENO"; then :
14181 ac_cv_lib_gif_GifMakeMapObject=yes
14182 else
14183 ac_cv_lib_gif_GifMakeMapObject=no
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14187 LIBS=$ac_check_lib_save_LIBS
14188 fi
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_GifMakeMapObject" >&5
14190 $as_echo "$ac_cv_lib_gif_GifMakeMapObject" >&6; }
14191 if test "x$ac_cv_lib_gif_GifMakeMapObject" = x""yes; then :
14192 HAVE_GIF=yes
14193 else
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
14195 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
14196 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
14197 $as_echo_n "(cached) " >&6
14198 else
14199 ac_check_lib_save_LIBS=$LIBS
14200 LIBS="-lgif $LIBS"
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14203
14204 /* Override any GCC internal prototype to avoid an error.
14205 Use char because int might match the return type of a GCC
14206 builtin and then its argument prototype would still apply. */
14207 #ifdef __cplusplus
14208 extern "C"
14209 #endif
14210 char EGifPutExtensionLast ();
14211 int
14212 main ()
14213 {
14214 return EGifPutExtensionLast ();
14215 ;
14216 return 0;
14217 }
14218 _ACEOF
14219 if ac_fn_c_try_link "$LINENO"; then :
14220 ac_cv_lib_gif_EGifPutExtensionLast=yes
14221 else
14222 ac_cv_lib_gif_EGifPutExtensionLast=no
14223 fi
14224 rm -f core conftest.err conftest.$ac_objext \
14225 conftest$ac_exeext conftest.$ac_ext
14226 LIBS=$ac_check_lib_save_LIBS
14227 fi
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14229 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14230 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
14231 HAVE_GIF=yes
14232 else
14233 HAVE_GIF=maybe
14234 fi
14235
14236 fi
14237
14238 fi
14239
14240
14241
14242 if test "$HAVE_GIF" = yes; then
14243 LIBGIF=-lgif
14244 elif test "$HAVE_GIF" = maybe; then
14245 # If gif_lib.h but no libgif, try libungif.
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
14247 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
14248 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
14249 $as_echo_n "(cached) " >&6
14250 else
14251 ac_check_lib_save_LIBS=$LIBS
14252 LIBS="-lungif $LIBS"
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14255
14256 /* Override any GCC internal prototype to avoid an error.
14257 Use char because int might match the return type of a GCC
14258 builtin and then its argument prototype would still apply. */
14259 #ifdef __cplusplus
14260 extern "C"
14261 #endif
14262 char EGifPutExtensionLast ();
14263 int
14264 main ()
14265 {
14266 return EGifPutExtensionLast ();
14267 ;
14268 return 0;
14269 }
14270 _ACEOF
14271 if ac_fn_c_try_link "$LINENO"; then :
14272 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14273 else
14274 ac_cv_lib_ungif_EGifPutExtensionLast=no
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278 LIBS=$ac_check_lib_save_LIBS
14279 fi
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14281 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14282 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
14283 HAVE_GIF=yes
14284 else
14285 HAVE_GIF=no
14286 fi
14287
14288 test "$HAVE_GIF" = yes && LIBGIF=-lungif
14289 fi
14290
14291 if test "${HAVE_GIF}" = "yes"; then
14292
14293 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14294
14295 fi
14296 fi
14297
14298
14299 if test "${HAVE_X11}" = "yes"; then
14300 MISSING=""
14301 WITH_NO=""
14302 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14303 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14304 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14305 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14306 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14307 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14308 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14309 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14310 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14311 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14312
14313 if test "X${MISSING}" != X; then
14314 as_fn_error "The following required libraries were not found:
14315 $MISSING
14316 Maybe some development libraries/packages are missing?
14317 If you don't want to link with them give
14318 $WITH_NO
14319 as options to configure" "$LINENO" 5
14320 fi
14321 fi
14322
14323 ### Use -lgpm if available, unless `--with-gpm=no'.
14324 HAVE_GPM=no
14325 LIBGPM=
14326 if test "${with_gpm}" != "no"; then
14327 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14328 if test "x$ac_cv_header_gpm_h" = x""yes; then :
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14330 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14331 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 ac_check_lib_save_LIBS=$LIBS
14335 LIBS="-lgpm $LIBS"
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14338
14339 /* Override any GCC internal prototype to avoid an error.
14340 Use char because int might match the return type of a GCC
14341 builtin and then its argument prototype would still apply. */
14342 #ifdef __cplusplus
14343 extern "C"
14344 #endif
14345 char Gpm_Open ();
14346 int
14347 main ()
14348 {
14349 return Gpm_Open ();
14350 ;
14351 return 0;
14352 }
14353 _ACEOF
14354 if ac_fn_c_try_link "$LINENO"; then :
14355 ac_cv_lib_gpm_Gpm_Open=yes
14356 else
14357 ac_cv_lib_gpm_Gpm_Open=no
14358 fi
14359 rm -f core conftest.err conftest.$ac_objext \
14360 conftest$ac_exeext conftest.$ac_ext
14361 LIBS=$ac_check_lib_save_LIBS
14362 fi
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14364 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14365 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
14366 HAVE_GPM=yes
14367 fi
14368
14369 fi
14370
14371
14372
14373 if test "${HAVE_GPM}" = "yes"; then
14374
14375 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14376
14377 LIBGPM=-lgpm
14378 fi
14379 fi
14380
14381
14382
14383
14384
14385
14386 GNUSTEP_CFLAGS=
14387 ### Use NeXTstep API to implement GUI.
14388 if test "${HAVE_NS}" = "yes"; then
14389
14390 $as_echo "#define HAVE_NS 1" >>confdefs.h
14391
14392 if test "${NS_IMPL_COCOA}" = "yes"; then
14393
14394 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14395
14396 fi
14397 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14398
14399 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14400
14401 # See also .m.o rule in Makefile.in */
14402 # FIXME: are all these flags really needed? Document here why. */
14403 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14404 ## Extra CFLAGS applied to src/*.m files.
14405 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"
14406 fi
14407 OTHER_FILES=ns-app
14408 fi
14409
14410 ### Use session management (-lSM -lICE) if available
14411 HAVE_X_SM=no
14412 LIBXSM=
14413 if test "${HAVE_X11}" = "yes"; then
14414 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14415 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14417 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14418 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14419 $as_echo_n "(cached) " >&6
14420 else
14421 ac_check_lib_save_LIBS=$LIBS
14422 LIBS="-lSM -lICE $LIBS"
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14425
14426 /* Override any GCC internal prototype to avoid an error.
14427 Use char because int might match the return type of a GCC
14428 builtin and then its argument prototype would still apply. */
14429 #ifdef __cplusplus
14430 extern "C"
14431 #endif
14432 char SmcOpenConnection ();
14433 int
14434 main ()
14435 {
14436 return SmcOpenConnection ();
14437 ;
14438 return 0;
14439 }
14440 _ACEOF
14441 if ac_fn_c_try_link "$LINENO"; then :
14442 ac_cv_lib_SM_SmcOpenConnection=yes
14443 else
14444 ac_cv_lib_SM_SmcOpenConnection=no
14445 fi
14446 rm -f core conftest.err conftest.$ac_objext \
14447 conftest$ac_exeext conftest.$ac_ext
14448 LIBS=$ac_check_lib_save_LIBS
14449 fi
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14451 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14452 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
14453 HAVE_X_SM=yes
14454 fi
14455
14456 fi
14457
14458
14459
14460 if test "${HAVE_X_SM}" = "yes"; then
14461
14462 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14463
14464 LIBXSM="-lSM -lICE"
14465 case "$LIBS" in
14466 *-lSM*) ;;
14467 *) LIBS="$LIBXSM $LIBS" ;;
14468 esac
14469 fi
14470 fi
14471
14472
14473 ### Use XRandr (-lXrandr) if available
14474 HAVE_XRANDR=no
14475 if test "${HAVE_X11}" = "yes"; then
14476 XRANDR_REQUIRED=1.2.2
14477 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
14478
14479 succeeded=no
14480
14481 if test "$PKG_CONFIG" = "no" ; then
14482 HAVE_XRANDR=no
14483 else
14484 PKG_CONFIG_MIN_VERSION=0.9.0
14485 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14487 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14488
14489 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14490 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14491 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14492 edit_cflags="
14493 s,///*,/,g
14494 s/^/ /
14495 s/ -I/ $isystem/g
14496 s/^ //
14497 "
14498 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14499 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14501 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14502 succeeded=yes
14503 else
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505 $as_echo "no" >&6; }
14506 XRANDR_CFLAGS=""
14507 XRANDR_LIBS=""
14508 ## If we have a custom action on failure, don't print errors, but
14509 ## do set a variable so people can do so. Do it in a subshell
14510 ## to capture any diagnostics in invoking pkg-config.
14511 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14512
14513 fi
14514
14515
14516
14517 else
14518 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14519 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14520 fi
14521 fi
14522
14523 if test $succeeded = yes; then
14524 HAVE_XRANDR=yes
14525 else
14526 HAVE_XRANDR=no
14527 fi
14528
14529 if test $HAVE_XRANDR = no; then
14530 # Test old way in case pkg-config doesn't have it (older machines).
14531 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14532 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14534 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14535 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14536 $as_echo_n "(cached) " >&6
14537 else
14538 ac_check_lib_save_LIBS=$LIBS
14539 LIBS="-lXrandr $LIBS"
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542
14543 /* Override any GCC internal prototype to avoid an error.
14544 Use char because int might match the return type of a GCC
14545 builtin and then its argument prototype would still apply. */
14546 #ifdef __cplusplus
14547 extern "C"
14548 #endif
14549 char XRRGetScreenResources ();
14550 int
14551 main ()
14552 {
14553 return XRRGetScreenResources ();
14554 ;
14555 return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_c_try_link "$LINENO"; then :
14559 ac_cv_lib_Xrandr_XRRGetScreenResources=yes
14560 else
14561 ac_cv_lib_Xrandr_XRRGetScreenResources=no
14562 fi
14563 rm -f core conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14565 LIBS=$ac_check_lib_save_LIBS
14566 fi
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14568 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14569 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x""yes; then :
14570 HAVE_XRANDR=yes
14571 fi
14572
14573 fi
14574
14575
14576 if test $HAVE_XRANDR = yes; then
14577 XRANDR_LIBS=-lXrandr
14578
14579 fi
14580 fi
14581 if test $HAVE_XRANDR = yes; then
14582 SAVE_CFLAGS="$CFLAGS"
14583 SAVE_LIBS="$LIBS"
14584 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
14585 LIBS="$XRANDR_LIBS $LIBS"
14586 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14587 do :
14588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14589 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14590 eval as_val=\$$as_ac_var
14591 if test "x$as_val" = x""yes; then :
14592 cat >>confdefs.h <<_ACEOF
14593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14594 _ACEOF
14595
14596 fi
14597 done
14598
14599 CFLAGS="$SAVE_CFLAGS"
14600 LIBS="$SAVE_LIBS"
14601
14602
14603 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14604
14605 fi
14606 fi
14607
14608 ### Use Xinerama (-lXinerama) if available
14609 HAVE_XINERAMA=no
14610 if test "${HAVE_X11}" = "yes"; then
14611 XINERAMA_REQUIRED=1.0.2
14612 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
14613
14614 succeeded=no
14615
14616 if test "$PKG_CONFIG" = "no" ; then
14617 HAVE_XINERAMA=no
14618 else
14619 PKG_CONFIG_MIN_VERSION=0.9.0
14620 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14622 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14623
14624 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14625 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14626 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14627 edit_cflags="
14628 s,///*,/,g
14629 s/^/ /
14630 s/ -I/ $isystem/g
14631 s/^ //
14632 "
14633 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14634 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14636 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14637 succeeded=yes
14638 else
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640 $as_echo "no" >&6; }
14641 XINERAMA_CFLAGS=""
14642 XINERAMA_LIBS=""
14643 ## If we have a custom action on failure, don't print errors, but
14644 ## do set a variable so people can do so. Do it in a subshell
14645 ## to capture any diagnostics in invoking pkg-config.
14646 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14647
14648 fi
14649
14650
14651
14652 else
14653 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14654 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14655 fi
14656 fi
14657
14658 if test $succeeded = yes; then
14659 HAVE_XINERAMA=yes
14660 else
14661 HAVE_XINERAMA=no
14662 fi
14663
14664 if test $HAVE_XINERAMA = no; then
14665 # Test old way in case pkg-config doesn't have it (older machines).
14666 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14667 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14669 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14670 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14671 $as_echo_n "(cached) " >&6
14672 else
14673 ac_check_lib_save_LIBS=$LIBS
14674 LIBS="-lXinerama $LIBS"
14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14677
14678 /* Override any GCC internal prototype to avoid an error.
14679 Use char because int might match the return type of a GCC
14680 builtin and then its argument prototype would still apply. */
14681 #ifdef __cplusplus
14682 extern "C"
14683 #endif
14684 char XineramaQueryExtension ();
14685 int
14686 main ()
14687 {
14688 return XineramaQueryExtension ();
14689 ;
14690 return 0;
14691 }
14692 _ACEOF
14693 if ac_fn_c_try_link "$LINENO"; then :
14694 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
14695 else
14696 ac_cv_lib_Xinerama_XineramaQueryExtension=no
14697 fi
14698 rm -f core conftest.err conftest.$ac_objext \
14699 conftest$ac_exeext conftest.$ac_ext
14700 LIBS=$ac_check_lib_save_LIBS
14701 fi
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14703 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14704 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
14705 HAVE_XINERAMA=yes
14706 fi
14707
14708 fi
14709
14710
14711 if test $HAVE_XINERAMA = yes; then
14712 XINERAMA_LIBS=-lXinerama
14713
14714 fi
14715 fi
14716 if test $HAVE_XINERAMA = yes; then
14717
14718 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14719
14720 fi
14721 fi
14722
14723
14724 ### Use libxml (-lxml2) if available
14725 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14726 HAVE_LIBXML2=no
14727 if test "${with_xml2}" != "no"; then
14728 ### I'm not sure what the version number should be, so I just guessed.
14729
14730 succeeded=no
14731
14732 if test "$PKG_CONFIG" = "no" ; then
14733 HAVE_LIBXML2=no
14734 else
14735 PKG_CONFIG_MIN_VERSION=0.9.0
14736 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14738 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14739
14740 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14741 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14742 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14743 edit_cflags="
14744 s,///*,/,g
14745 s/^/ /
14746 s/ -I/ $isystem/g
14747 s/^ //
14748 "
14749 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14750 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14752 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14753 succeeded=yes
14754 else
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14756 $as_echo "no" >&6; }
14757 LIBXML2_CFLAGS=""
14758 LIBXML2_LIBS=""
14759 ## If we have a custom action on failure, don't print errors, but
14760 ## do set a variable so people can do so. Do it in a subshell
14761 ## to capture any diagnostics in invoking pkg-config.
14762 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14763
14764 fi
14765
14766
14767
14768 else
14769 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14770 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14771 fi
14772 fi
14773
14774 if test $succeeded = yes; then
14775 HAVE_LIBXML2=yes
14776 else
14777 HAVE_LIBXML2=no
14778 fi
14779
14780 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14781 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14782 SAVE_CPPFLAGS="$CPPFLAGS"
14783 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
14784 ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14785 if test "x$ac_cv_header_libxml_HTMLparser_h" = x""yes; then :
14786 ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14787 "
14788 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x""yes; then :
14789 HAVE_LIBXML2=yes
14790 fi
14791
14792 fi
14793
14794
14795 CPPFLAGS="$SAVE_CPPFLAGS"
14796 if test "${HAVE_LIBXML2}" = "yes"; then
14797 LIBXML2_LIBS="-lxml2"
14798 LIBXML2_CFLAGS="-I/usr/include/libxml2"
14799 fi
14800 fi
14801 if test "${HAVE_LIBXML2}" = "yes"; then
14802 if test "${opsys}" != "mingw32"; then
14803 LIBS="$LIBXML2_LIBS $LIBS"
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14805 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14806 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14807 $as_echo_n "(cached) " >&6
14808 else
14809 ac_check_lib_save_LIBS=$LIBS
14810 LIBS="-lxml2 $LIBS"
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14813
14814 /* Override any GCC internal prototype to avoid an error.
14815 Use char because int might match the return type of a GCC
14816 builtin and then its argument prototype would still apply. */
14817 #ifdef __cplusplus
14818 extern "C"
14819 #endif
14820 char htmlReadMemory ();
14821 int
14822 main ()
14823 {
14824 return htmlReadMemory ();
14825 ;
14826 return 0;
14827 }
14828 _ACEOF
14829 if ac_fn_c_try_link "$LINENO"; then :
14830 ac_cv_lib_xml2_htmlReadMemory=yes
14831 else
14832 ac_cv_lib_xml2_htmlReadMemory=no
14833 fi
14834 rm -f core conftest.err conftest.$ac_objext \
14835 conftest$ac_exeext conftest.$ac_ext
14836 LIBS=$ac_check_lib_save_LIBS
14837 fi
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14839 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14840 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14841 HAVE_LIBXML2=yes
14842 else
14843 HAVE_LIBXML2=no
14844 fi
14845
14846 else
14847 LIBXML2_LIBS=""
14848 fi
14849 if test "${HAVE_LIBXML2}" = "yes"; then
14850
14851 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14852
14853 else
14854 LIBXML2_LIBS=""
14855 LIBXML2_CFLAGS=""
14856 fi
14857 fi
14858 fi
14859
14860
14861
14862 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14863 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14864 if test "${opsys}" = "mingw32"; then
14865 emacs_cv_netdb_declares_h_errno=yes
14866 fi
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14868 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14869 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14870 $as_echo_n "(cached) " >&6
14871 else
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14874 #include <netdb.h>
14875 int
14876 main ()
14877 {
14878 return h_errno;
14879 ;
14880 return 0;
14881 }
14882 _ACEOF
14883 if ac_fn_c_try_link "$LINENO"; then :
14884 emacs_cv_netdb_declares_h_errno=yes
14885 else
14886 emacs_cv_netdb_declares_h_errno=no
14887 fi
14888 rm -f core conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
14890 fi
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14892 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14893 if test $emacs_cv_netdb_declares_h_errno = yes; then
14894
14895 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14896
14897 fi
14898
14899 # sqrt and other floating-point functions such as fmod and frexp
14900 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14901 if test "${opsys}" != "mingw32"; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14903 $as_echo_n "checking for sqrt in -lm... " >&6; }
14904 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14905 $as_echo_n "(cached) " >&6
14906 else
14907 ac_check_lib_save_LIBS=$LIBS
14908 LIBS="-lm $LIBS"
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14911
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14915 #ifdef __cplusplus
14916 extern "C"
14917 #endif
14918 char sqrt ();
14919 int
14920 main ()
14921 {
14922 return sqrt ();
14923 ;
14924 return 0;
14925 }
14926 _ACEOF
14927 if ac_fn_c_try_link "$LINENO"; then :
14928 ac_cv_lib_m_sqrt=yes
14929 else
14930 ac_cv_lib_m_sqrt=no
14931 fi
14932 rm -f core conftest.err conftest.$ac_objext \
14933 conftest$ac_exeext conftest.$ac_ext
14934 LIBS=$ac_check_lib_save_LIBS
14935 fi
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14937 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14938 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14939 cat >>confdefs.h <<_ACEOF
14940 #define HAVE_LIBM 1
14941 _ACEOF
14942
14943 LIBS="-lm $LIBS"
14944
14945 fi
14946
14947 fi
14948
14949 # Check for mail-locking functions in a "mail" library. Probably this should
14950 # have the same check as for liblockfile below.
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14952 $as_echo_n "checking for maillock in -lmail... " >&6; }
14953 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14954 $as_echo_n "(cached) " >&6
14955 else
14956 ac_check_lib_save_LIBS=$LIBS
14957 LIBS="-lmail $LIBS"
14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14960
14961 /* Override any GCC internal prototype to avoid an error.
14962 Use char because int might match the return type of a GCC
14963 builtin and then its argument prototype would still apply. */
14964 #ifdef __cplusplus
14965 extern "C"
14966 #endif
14967 char maillock ();
14968 int
14969 main ()
14970 {
14971 return maillock ();
14972 ;
14973 return 0;
14974 }
14975 _ACEOF
14976 if ac_fn_c_try_link "$LINENO"; then :
14977 ac_cv_lib_mail_maillock=yes
14978 else
14979 ac_cv_lib_mail_maillock=no
14980 fi
14981 rm -f core conftest.err conftest.$ac_objext \
14982 conftest$ac_exeext conftest.$ac_ext
14983 LIBS=$ac_check_lib_save_LIBS
14984 fi
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14986 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14987 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14988 have_mail=yes
14989 else
14990 have_mail=no
14991 fi
14992
14993 if test $have_mail = yes; then
14994 LIBS_MAIL=-lmail
14995 LIBS="$LIBS_MAIL $LIBS"
14996
14997 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14998
14999 else
15000 LIBS_MAIL=
15001 fi
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
15003 $as_echo_n "checking for maillock in -llockfile... " >&6; }
15004 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
15005 $as_echo_n "(cached) " >&6
15006 else
15007 ac_check_lib_save_LIBS=$LIBS
15008 LIBS="-llockfile $LIBS"
15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15011
15012 /* Override any GCC internal prototype to avoid an error.
15013 Use char because int might match the return type of a GCC
15014 builtin and then its argument prototype would still apply. */
15015 #ifdef __cplusplus
15016 extern "C"
15017 #endif
15018 char maillock ();
15019 int
15020 main ()
15021 {
15022 return maillock ();
15023 ;
15024 return 0;
15025 }
15026 _ACEOF
15027 if ac_fn_c_try_link "$LINENO"; then :
15028 ac_cv_lib_lockfile_maillock=yes
15029 else
15030 ac_cv_lib_lockfile_maillock=no
15031 fi
15032 rm -f core conftest.err conftest.$ac_objext \
15033 conftest$ac_exeext conftest.$ac_ext
15034 LIBS=$ac_check_lib_save_LIBS
15035 fi
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
15037 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
15038 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
15039 have_lockfile=yes
15040 else
15041 have_lockfile=no
15042 fi
15043
15044 if test $have_lockfile = yes; then
15045 LIBS_MAIL=-llockfile
15046 LIBS="$LIBS_MAIL $LIBS"
15047
15048 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
15049
15050 else
15051 # If we have the shared liblockfile, assume we must use it for mail
15052 # locking (e.g. Debian). If we couldn't link against liblockfile
15053 # (no liblockfile.a installed), ensure that we don't need to.
15054 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15055 set dummy liblockfile.so; ac_word=$2
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15057 $as_echo_n "checking for $ac_word... " >&6; }
15058 if test "${ac_cv_prog_liblockfile+set}" = set; then :
15059 $as_echo_n "(cached) " >&6
15060 else
15061 if test -n "$liblockfile"; then
15062 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15063 else
15064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15065 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15066 for as_dir in $as_dummy
15067 do
15068 IFS=$as_save_IFS
15069 test -z "$as_dir" && as_dir=.
15070 for ac_exec_ext in '' $ac_executable_extensions; do
15071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15072 ac_cv_prog_liblockfile="yes"
15073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15074 break 2
15075 fi
15076 done
15077 done
15078 IFS=$as_save_IFS
15079
15080 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15081 fi
15082 fi
15083 liblockfile=$ac_cv_prog_liblockfile
15084 if test -n "$liblockfile"; then
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
15086 $as_echo "$liblockfile" >&6; }
15087 else
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15089 $as_echo "no" >&6; }
15090 fi
15091
15092
15093 if test $ac_cv_prog_liblockfile = yes; then
15094 as_fn_error "Shared liblockfile found but can't link against it.
15095 This probably means that movemail could lose mail.
15096 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
15097 fi
15098 fi
15099
15100
15101
15102
15103
15104 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
15105 ## interlock access to the mail spool. The alternative is a lock file named
15106 ## /usr/spool/mail/$USER.lock.
15107 mail_lock=no
15108 case "$opsys" in
15109 aix4-2) mail_lock="lockf" ;;
15110
15111 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
15112
15113 ## On GNU/Linux systems, both methods are used by various mail programs.
15114 ## I assume most people are using newer mailers that have heard of flock.
15115 ## Change this if you need to.
15116 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
15117 ## configure gets the right answers, and that means *NOT* using flock.
15118 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
15119 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
15120 ## Debian maintainer hasn't provided a clean fix for Emacs.
15121 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
15122 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
15123 ## correct logic. -- fx
15124 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
15125 ## liblockfile is a Free Software replacement for libmail, used on
15126 ## Debian systems and elsewhere. -rfr.
15127 gnu-*)
15128 mail_lock="flock"
15129 if test $have_mail = yes || test $have_lockfile = yes; then
15130 test $ac_cv_header_maillock_h = yes && mail_lock=no
15131 fi
15132 ;;
15133
15134 mingw32)
15135 mail_lock="none-needed" ;;
15136 esac
15137
15138 BLESSMAIL_TARGET=
15139 case "$mail_lock" in
15140 flock)
15141 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
15142 ;;
15143
15144 lockf)
15145 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
15146 ;;
15147
15148 none-needed) ;;
15149
15150 *) BLESSMAIL_TARGET="need-blessmail" ;;
15151 esac
15152
15153
15154
15155 for ac_func in accept4 gethostname \
15156 getrusage get_current_dir_name \
15157 lrand48 \
15158 select getpagesize setlocale \
15159 getrlimit setrlimit shutdown getaddrinfo \
15160 strsignal setitimer \
15161 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
15162 gai_strerror getline getdelim sync \
15163 difftime posix_memalign \
15164 getpwent endpwent getgrent endgrent \
15165 touchlock \
15166 cfmakeraw cfsetspeed copysign __executable_start log2
15167 do :
15168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15169 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15170 eval as_val=\$$as_ac_var
15171 if test "x$as_val" = x""yes; then :
15172 cat >>confdefs.h <<_ACEOF
15173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15174 _ACEOF
15175
15176 fi
15177 done
15178
15179
15180 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
15181 ## has a broken `rint' in some library versions including math library
15182 ## version number A.09.05.
15183 ## You can fix the math library by installing patch number PHSS_4630.
15184 ## But we can fix it more reliably for Emacs by just not using rint.
15185 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
15186 case $opsys in
15187 hpux*) : ;;
15188 *) for ac_func in random rint
15189 do :
15190 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15192 eval as_val=\$$as_ac_var
15193 if test "x$as_val" = x""yes; then :
15194 cat >>confdefs.h <<_ACEOF
15195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15196 _ACEOF
15197
15198 fi
15199 done
15200 ;;
15201 esac
15202
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
15204 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
15205 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
15206 $as_echo_n "(cached) " >&6
15207 else
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209 /* end confdefs.h. */
15210
15211 int
15212 main ()
15213 {
15214 __builtin_unwind_init ();
15215 ;
15216 return 0;
15217 }
15218 _ACEOF
15219 if ac_fn_c_try_link "$LINENO"; then :
15220 emacs_cv_func___builtin_unwind_init=yes
15221 else
15222 emacs_cv_func___builtin_unwind_init=no
15223 fi
15224 rm -f core conftest.err conftest.$ac_objext \
15225 conftest$ac_exeext conftest.$ac_ext
15226 fi
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
15228 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
15229 if test $emacs_cv_func___builtin_unwind_init = yes; then
15230
15231 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
15232
15233 fi
15234
15235
15236
15237
15238
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15240 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15241 if test "${ac_cv_sys_largefile_source+set}" = set; then :
15242 $as_echo_n "(cached) " >&6
15243 else
15244 while :; do
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 #include <sys/types.h> /* for off_t */
15248 #include <stdio.h>
15249 int
15250 main ()
15251 {
15252 int (*fp) (FILE *, off_t, int) = fseeko;
15253 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15254 ;
15255 return 0;
15256 }
15257 _ACEOF
15258 if ac_fn_c_try_link "$LINENO"; then :
15259 ac_cv_sys_largefile_source=no; break
15260 fi
15261 rm -f core conftest.err conftest.$ac_objext \
15262 conftest$ac_exeext conftest.$ac_ext
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15265 #define _LARGEFILE_SOURCE 1
15266 #include <sys/types.h> /* for off_t */
15267 #include <stdio.h>
15268 int
15269 main ()
15270 {
15271 int (*fp) (FILE *, off_t, int) = fseeko;
15272 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15273 ;
15274 return 0;
15275 }
15276 _ACEOF
15277 if ac_fn_c_try_link "$LINENO"; then :
15278 ac_cv_sys_largefile_source=1; break
15279 fi
15280 rm -f core conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 ac_cv_sys_largefile_source=unknown
15283 break
15284 done
15285 fi
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15287 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15288 case $ac_cv_sys_largefile_source in #(
15289 no | unknown) ;;
15290 *)
15291 cat >>confdefs.h <<_ACEOF
15292 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15293 _ACEOF
15294 ;;
15295 esac
15296 rm -rf conftest*
15297
15298 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15299 # in glibc 2.1.3, but that breaks too many other things.
15300 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15301 if test $ac_cv_sys_largefile_source != unknown; then
15302
15303 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15304
15305 fi
15306
15307
15308 # UNIX98 PTYs.
15309 for ac_func in grantpt
15310 do :
15311 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15312 if test "x$ac_cv_func_grantpt" = x""yes; then :
15313 cat >>confdefs.h <<_ACEOF
15314 #define HAVE_GRANTPT 1
15315 _ACEOF
15316
15317 fi
15318 done
15319
15320
15321 # PTY-related GNU extensions.
15322 for ac_func in getpt posix_openpt
15323 do :
15324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15325 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15326 eval as_val=\$$as_ac_var
15327 if test "x$as_val" = x""yes; then :
15328 cat >>confdefs.h <<_ACEOF
15329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15330 _ACEOF
15331
15332 fi
15333 done
15334
15335
15336 # Check this now, so that we will NOT find the above functions in ncurses.
15337 # That is because we have not set up to link ncurses in lib-src.
15338 # It's better to believe a function is not available
15339 # than to expect to find it in ncurses.
15340 # Also we need tputs and friends to be able to build at all.
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15342 $as_echo_n "checking for library containing tputs... " >&6; }
15343 # Run a test program that contains a call to tputs, a call that is
15344 # never executed. This tests whether a pre-'main' dynamic linker
15345 # works with the library. It's too much trouble to actually call
15346 # tputs in the test program, due to portability hassles. When
15347 # cross-compiling, assume the test program will run if it links.
15348
15349 if test "${opsys}" = "mingw32"; then
15350 msg='none required'
15351 else
15352 # Maybe curses should be tried earlier?
15353 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
15354 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
15355 OLIBS=$LIBS
15356 if test -z "$tputs_library"; then
15357 LIBS_TERMCAP=
15358 msg='none required'
15359 else
15360 LIBS_TERMCAP=-l$tputs_library
15361 msg=$LIBS_TERMCAP
15362 LIBS="$LIBS_TERMCAP $LIBS"
15363 fi
15364 if test "$cross_compiling" = yes; then :
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15367
15368 extern void tputs (const char *, int, int (*)(int));
15369 int main (int argc, char **argv)
15370 {
15371 if (argc == 10000)
15372 tputs (argv[0], 0, 0);
15373 return 0;
15374 }
15375
15376 _ACEOF
15377 if ac_fn_c_try_link "$LINENO"; then :
15378
15379 else
15380 msg=no
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 else
15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15387
15388 extern void tputs (const char *, int, int (*)(int));
15389 int main (int argc, char **argv)
15390 {
15391 if (argc == 10000)
15392 tputs (argv[0], 0, 0);
15393 return 0;
15394 }
15395
15396 _ACEOF
15397 if ac_fn_c_try_run "$LINENO"; then :
15398
15399 else
15400 msg=no
15401 fi
15402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15403 conftest.$ac_objext conftest.beam conftest.$ac_ext
15404 fi
15405
15406 LIBS=$OLIBS
15407 if test "X$msg" != Xno; then
15408 break
15409 fi
15410 done
15411 fi
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15413 $as_echo "$msg" >&6; }
15414 if test "X$msg" = Xno; then
15415 as_fn_error "The required function \`tputs' was not found in any library.
15416 The following libraries were tried (in order):
15417 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15418 Please try installing whichever of these libraries is most appropriate
15419 for your system, together with its header files.
15420 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15421 fi
15422
15423 ## Use termcap instead of terminfo?
15424 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15425 TERMINFO=yes
15426 ## FIXME? In the cases below where we unconditionally set
15427 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15428 ## if that was found above to have tputs.
15429 ## Should we use the gnu* logic everywhere?
15430 case "$opsys" in
15431 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15432 ## The ncurses library has been moved out of the System framework in
15433 ## Mac OS X 10.2. So if configure detects it, set the command-line
15434 ## option to use it.
15435 darwin) LIBS_TERMCAP="-lncurses" ;;
15436
15437 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
15438
15439 freebsd)
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15441 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15442 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15443 $as_echo_n "(cached) " >&6
15444 else
15445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h. */
15447 #include <osreldate.h>
15448 int
15449 main ()
15450 {
15451 #if __FreeBSD_version < 400000
15452 fail;
15453 #endif
15454
15455 ;
15456 return 0;
15457 }
15458 _ACEOF
15459 if ac_fn_c_try_link "$LINENO"; then :
15460 emacs_cv_freebsd_terminfo=yes
15461 else
15462 emacs_cv_freebsd_terminfo=no
15463 fi
15464 rm -f core conftest.err conftest.$ac_objext \
15465 conftest$ac_exeext conftest.$ac_ext
15466 fi
15467
15468
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15470 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15471
15472 if test $emacs_cv_freebsd_terminfo = yes; then
15473 LIBS_TERMCAP="-lncurses"
15474 else
15475 TERMINFO=no
15476 LIBS_TERMCAP="-ltermcap"
15477 fi
15478 ;;
15479
15480 mingw32)
15481 TERMINFO=no
15482 LIBS_TERMCAP=
15483 ;;
15484
15485 netbsd)
15486 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15487 TERMINFO=no
15488 LIBS_TERMCAP="-ltermcap"
15489 fi
15490 ;;
15491
15492 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
15493
15494 ## hpux: Make sure we get select from libc rather than from libcurses
15495 ## because libcurses on HPUX 10.10 has a broken version of select.
15496 ## We used to use -lc -lcurses, but this may be cleaner.
15497 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15498 # set that way, now it uses the default). Isn't this a contradiction?
15499 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15500
15501 esac
15502
15503 TERMCAP_OBJ=tparam.o
15504 if test $TERMINFO = yes; then
15505
15506 $as_echo "#define TERMINFO 1" >>confdefs.h
15507
15508 TERMCAP_OBJ=terminfo.o
15509 fi
15510 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15511
15512 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15513
15514 fi
15515
15516
15517
15518
15519 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15520 # On Darwin, res_init appears not to be useful: see bug#562 and
15521 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15522 resolv=no
15523
15524 if test $opsys != darwin; then
15525
15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15527 /* end confdefs.h. */
15528 #include <netinet/in.h>
15529 #include <arpa/nameser.h>
15530 #include <resolv.h>
15531 int
15532 main ()
15533 {
15534 return res_init();
15535 ;
15536 return 0;
15537 }
15538 _ACEOF
15539 if ac_fn_c_try_link "$LINENO"; then :
15540 have_res_init=yes
15541 else
15542 have_res_init=no
15543 fi
15544 rm -f core conftest.err conftest.$ac_objext \
15545 conftest$ac_exeext conftest.$ac_ext
15546 if test "$have_res_init" = no; then
15547 OLIBS="$LIBS"
15548 LIBS="$LIBS -lresolv"
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15550 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15552 /* end confdefs.h. */
15553 #include <netinet/in.h>
15554 #include <arpa/nameser.h>
15555 #include <resolv.h>
15556 int
15557 main ()
15558 {
15559 return res_init();
15560 ;
15561 return 0;
15562 }
15563 _ACEOF
15564 if ac_fn_c_try_link "$LINENO"; then :
15565 have_res_init=yes
15566 else
15567 have_res_init=no
15568 fi
15569 rm -f core conftest.err conftest.$ac_objext \
15570 conftest$ac_exeext conftest.$ac_ext
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15572 $as_echo "$have_res_init" >&6; }
15573 if test "$have_res_init" = yes ; then
15574 resolv=yes
15575 fi
15576 LIBS="$OLIBS"
15577 fi
15578
15579 if test "$have_res_init" = yes; then
15580
15581 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15582
15583 fi
15584 fi
15585 # Do we need the Hesiod library to provide the support routines?
15586 LIBHESIOD=
15587 if test "$with_hesiod" != no ; then
15588 # Don't set $LIBS here -- see comments above. FIXME which comments?
15589 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15590 if test "x$ac_cv_func_res_send" = x""yes; then :
15591
15592 else
15593 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15594 if test "x$ac_cv_func___res_send" = x""yes; then :
15595
15596 else
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15598 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15599 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15600 $as_echo_n "(cached) " >&6
15601 else
15602 ac_check_lib_save_LIBS=$LIBS
15603 LIBS="-lresolv $LIBS"
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606
15607 /* Override any GCC internal prototype to avoid an error.
15608 Use char because int might match the return type of a GCC
15609 builtin and then its argument prototype would still apply. */
15610 #ifdef __cplusplus
15611 extern "C"
15612 #endif
15613 char res_send ();
15614 int
15615 main ()
15616 {
15617 return res_send ();
15618 ;
15619 return 0;
15620 }
15621 _ACEOF
15622 if ac_fn_c_try_link "$LINENO"; then :
15623 ac_cv_lib_resolv_res_send=yes
15624 else
15625 ac_cv_lib_resolv_res_send=no
15626 fi
15627 rm -f core conftest.err conftest.$ac_objext \
15628 conftest$ac_exeext conftest.$ac_ext
15629 LIBS=$ac_check_lib_save_LIBS
15630 fi
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15632 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15633 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15634 resolv=yes
15635 else
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15637 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15638 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 ac_check_lib_save_LIBS=$LIBS
15642 LIBS="-lresolv $LIBS"
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15645
15646 /* Override any GCC internal prototype to avoid an error.
15647 Use char because int might match the return type of a GCC
15648 builtin and then its argument prototype would still apply. */
15649 #ifdef __cplusplus
15650 extern "C"
15651 #endif
15652 char __res_send ();
15653 int
15654 main ()
15655 {
15656 return __res_send ();
15657 ;
15658 return 0;
15659 }
15660 _ACEOF
15661 if ac_fn_c_try_link "$LINENO"; then :
15662 ac_cv_lib_resolv___res_send=yes
15663 else
15664 ac_cv_lib_resolv___res_send=no
15665 fi
15666 rm -f core conftest.err conftest.$ac_objext \
15667 conftest$ac_exeext conftest.$ac_ext
15668 LIBS=$ac_check_lib_save_LIBS
15669 fi
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15671 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15672 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15673 resolv=yes
15674 fi
15675
15676 fi
15677
15678 fi
15679
15680 fi
15681
15682 if test "$resolv" = yes ; then
15683 RESOLVLIB=-lresolv
15684 else
15685 RESOLVLIB=
15686 fi
15687 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15688 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15689
15690 else
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15692 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15693 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15694 $as_echo_n "(cached) " >&6
15695 else
15696 ac_check_lib_save_LIBS=$LIBS
15697 LIBS="-lhesiod $RESOLVLIB $LIBS"
15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15700
15701 /* Override any GCC internal prototype to avoid an error.
15702 Use char because int might match the return type of a GCC
15703 builtin and then its argument prototype would still apply. */
15704 #ifdef __cplusplus
15705 extern "C"
15706 #endif
15707 char hes_getmailhost ();
15708 int
15709 main ()
15710 {
15711 return hes_getmailhost ();
15712 ;
15713 return 0;
15714 }
15715 _ACEOF
15716 if ac_fn_c_try_link "$LINENO"; then :
15717 ac_cv_lib_hesiod_hes_getmailhost=yes
15718 else
15719 ac_cv_lib_hesiod_hes_getmailhost=no
15720 fi
15721 rm -f core conftest.err conftest.$ac_objext \
15722 conftest$ac_exeext conftest.$ac_ext
15723 LIBS=$ac_check_lib_save_LIBS
15724 fi
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15726 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15727 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15728 hesiod=yes
15729 else
15730 :
15731 fi
15732
15733 fi
15734
15735
15736 if test x"$hesiod" = xyes; then
15737 LIBHESIOD=-lhesiod
15738 fi
15739 fi
15740
15741
15742 # Do we need libresolv (due to res_init or Hesiod)?
15743 if test "$resolv" = yes && test $opsys != darwin; then
15744 LIBRESOLV=-lresolv
15745 else
15746 LIBRESOLV=
15747 fi
15748
15749
15750 # These tell us which Kerberos-related libraries to use.
15751 COM_ERRLIB=
15752 CRYPTOLIB=
15753 KRB5LIB=
15754 DESLIB=
15755 KRB4LIB=
15756
15757 if test "${with_kerberos}" != no; then
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15759 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15760 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15761 $as_echo_n "(cached) " >&6
15762 else
15763 ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-lcom_err $LIBS"
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15767
15768 /* Override any GCC internal prototype to avoid an error.
15769 Use char because int might match the return type of a GCC
15770 builtin and then its argument prototype would still apply. */
15771 #ifdef __cplusplus
15772 extern "C"
15773 #endif
15774 char com_err ();
15775 int
15776 main ()
15777 {
15778 return com_err ();
15779 ;
15780 return 0;
15781 }
15782 _ACEOF
15783 if ac_fn_c_try_link "$LINENO"; then :
15784 ac_cv_lib_com_err_com_err=yes
15785 else
15786 ac_cv_lib_com_err_com_err=no
15787 fi
15788 rm -f core conftest.err conftest.$ac_objext \
15789 conftest$ac_exeext conftest.$ac_ext
15790 LIBS=$ac_check_lib_save_LIBS
15791 fi
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15793 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15794 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15795 have_com_err=yes
15796 else
15797 have_com_err=no
15798 fi
15799
15800 if test $have_com_err = yes; then
15801 COM_ERRLIB=-lcom_err
15802 LIBS="$COM_ERRLIB $LIBS"
15803 fi
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15805 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15806 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15807 $as_echo_n "(cached) " >&6
15808 else
15809 ac_check_lib_save_LIBS=$LIBS
15810 LIBS="-lcrypto $LIBS"
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813
15814 /* Override any GCC internal prototype to avoid an error.
15815 Use char because int might match the return type of a GCC
15816 builtin and then its argument prototype would still apply. */
15817 #ifdef __cplusplus
15818 extern "C"
15819 #endif
15820 char mit_des_cbc_encrypt ();
15821 int
15822 main ()
15823 {
15824 return mit_des_cbc_encrypt ();
15825 ;
15826 return 0;
15827 }
15828 _ACEOF
15829 if ac_fn_c_try_link "$LINENO"; then :
15830 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15831 else
15832 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15833 fi
15834 rm -f core conftest.err conftest.$ac_objext \
15835 conftest$ac_exeext conftest.$ac_ext
15836 LIBS=$ac_check_lib_save_LIBS
15837 fi
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15839 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15840 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15841 have_crypto=yes
15842 else
15843 have_crypto=no
15844 fi
15845
15846 if test $have_crypto = yes; then
15847 CRYPTOLIB=-lcrypto
15848 LIBS="$CRYPTOLIB $LIBS"
15849 fi
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15851 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15852 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15853 $as_echo_n "(cached) " >&6
15854 else
15855 ac_check_lib_save_LIBS=$LIBS
15856 LIBS="-lk5crypto $LIBS"
15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15859
15860 /* Override any GCC internal prototype to avoid an error.
15861 Use char because int might match the return type of a GCC
15862 builtin and then its argument prototype would still apply. */
15863 #ifdef __cplusplus
15864 extern "C"
15865 #endif
15866 char mit_des_cbc_encrypt ();
15867 int
15868 main ()
15869 {
15870 return mit_des_cbc_encrypt ();
15871 ;
15872 return 0;
15873 }
15874 _ACEOF
15875 if ac_fn_c_try_link "$LINENO"; then :
15876 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15877 else
15878 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15879 fi
15880 rm -f core conftest.err conftest.$ac_objext \
15881 conftest$ac_exeext conftest.$ac_ext
15882 LIBS=$ac_check_lib_save_LIBS
15883 fi
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15885 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15886 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15887 have_k5crypto=yes
15888 else
15889 have_k5crypto=no
15890 fi
15891
15892 if test $have_k5crypto = yes; then
15893 CRYPTOLIB=-lk5crypto
15894 LIBS="$CRYPTOLIB $LIBS"
15895 fi
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15897 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15898 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15899 $as_echo_n "(cached) " >&6
15900 else
15901 ac_check_lib_save_LIBS=$LIBS
15902 LIBS="-lkrb5 $LIBS"
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905
15906 /* Override any GCC internal prototype to avoid an error.
15907 Use char because int might match the return type of a GCC
15908 builtin and then its argument prototype would still apply. */
15909 #ifdef __cplusplus
15910 extern "C"
15911 #endif
15912 char krb5_init_context ();
15913 int
15914 main ()
15915 {
15916 return krb5_init_context ();
15917 ;
15918 return 0;
15919 }
15920 _ACEOF
15921 if ac_fn_c_try_link "$LINENO"; then :
15922 ac_cv_lib_krb5_krb5_init_context=yes
15923 else
15924 ac_cv_lib_krb5_krb5_init_context=no
15925 fi
15926 rm -f core conftest.err conftest.$ac_objext \
15927 conftest$ac_exeext conftest.$ac_ext
15928 LIBS=$ac_check_lib_save_LIBS
15929 fi
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15931 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15932 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15933 have_krb5=yes
15934 else
15935 have_krb5=no
15936 fi
15937
15938 if test $have_krb5=yes; then
15939 KRB5LIB=-lkrb5
15940 LIBS="$KRB5LIB $LIBS"
15941 fi
15942 if test "${with_kerberos5}" = no; then
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15944 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15945 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15946 $as_echo_n "(cached) " >&6
15947 else
15948 ac_check_lib_save_LIBS=$LIBS
15949 LIBS="-ldes425 $LIBS"
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15952
15953 /* Override any GCC internal prototype to avoid an error.
15954 Use char because int might match the return type of a GCC
15955 builtin and then its argument prototype would still apply. */
15956 #ifdef __cplusplus
15957 extern "C"
15958 #endif
15959 char des_cbc_encrypt ();
15960 int
15961 main ()
15962 {
15963 return des_cbc_encrypt ();
15964 ;
15965 return 0;
15966 }
15967 _ACEOF
15968 if ac_fn_c_try_link "$LINENO"; then :
15969 ac_cv_lib_des425_des_cbc_encrypt=yes
15970 else
15971 ac_cv_lib_des425_des_cbc_encrypt=no
15972 fi
15973 rm -f core conftest.err conftest.$ac_objext \
15974 conftest$ac_exeext conftest.$ac_ext
15975 LIBS=$ac_check_lib_save_LIBS
15976 fi
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15978 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15979 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15980 have_des425=yes
15981 else
15982 have_des425=no
15983 fi
15984
15985 if test $have_des425 = yes; then
15986 DESLIB=-ldes425
15987 LIBS="$DESLIB $LIBS"
15988 else
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15990 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15991 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15992 $as_echo_n "(cached) " >&6
15993 else
15994 ac_check_lib_save_LIBS=$LIBS
15995 LIBS="-ldes $LIBS"
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15998
15999 /* Override any GCC internal prototype to avoid an error.
16000 Use char because int might match the return type of a GCC
16001 builtin and then its argument prototype would still apply. */
16002 #ifdef __cplusplus
16003 extern "C"
16004 #endif
16005 char des_cbc_encrypt ();
16006 int
16007 main ()
16008 {
16009 return des_cbc_encrypt ();
16010 ;
16011 return 0;
16012 }
16013 _ACEOF
16014 if ac_fn_c_try_link "$LINENO"; then :
16015 ac_cv_lib_des_des_cbc_encrypt=yes
16016 else
16017 ac_cv_lib_des_des_cbc_encrypt=no
16018 fi
16019 rm -f core conftest.err conftest.$ac_objext \
16020 conftest$ac_exeext conftest.$ac_ext
16021 LIBS=$ac_check_lib_save_LIBS
16022 fi
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16024 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16025 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
16026 have_des=yes
16027 else
16028 have_des=no
16029 fi
16030
16031 if test $have_des = yes; then
16032 DESLIB=-ldes
16033 LIBS="$DESLIB $LIBS"
16034 fi
16035 fi
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16037 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16038 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
16039 $as_echo_n "(cached) " >&6
16040 else
16041 ac_check_lib_save_LIBS=$LIBS
16042 LIBS="-lkrb4 $LIBS"
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16045
16046 /* Override any GCC internal prototype to avoid an error.
16047 Use char because int might match the return type of a GCC
16048 builtin and then its argument prototype would still apply. */
16049 #ifdef __cplusplus
16050 extern "C"
16051 #endif
16052 char krb_get_cred ();
16053 int
16054 main ()
16055 {
16056 return krb_get_cred ();
16057 ;
16058 return 0;
16059 }
16060 _ACEOF
16061 if ac_fn_c_try_link "$LINENO"; then :
16062 ac_cv_lib_krb4_krb_get_cred=yes
16063 else
16064 ac_cv_lib_krb4_krb_get_cred=no
16065 fi
16066 rm -f core conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16068 LIBS=$ac_check_lib_save_LIBS
16069 fi
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16071 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16072 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
16073 have_krb4=yes
16074 else
16075 have_krb4=no
16076 fi
16077
16078 if test $have_krb4 = yes; then
16079 KRB4LIB=-lkrb4
16080 LIBS="$KRB4LIB $LIBS"
16081 else
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16083 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16084 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
16085 $as_echo_n "(cached) " >&6
16086 else
16087 ac_check_lib_save_LIBS=$LIBS
16088 LIBS="-lkrb $LIBS"
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16091
16092 /* Override any GCC internal prototype to avoid an error.
16093 Use char because int might match the return type of a GCC
16094 builtin and then its argument prototype would still apply. */
16095 #ifdef __cplusplus
16096 extern "C"
16097 #endif
16098 char krb_get_cred ();
16099 int
16100 main ()
16101 {
16102 return krb_get_cred ();
16103 ;
16104 return 0;
16105 }
16106 _ACEOF
16107 if ac_fn_c_try_link "$LINENO"; then :
16108 ac_cv_lib_krb_krb_get_cred=yes
16109 else
16110 ac_cv_lib_krb_krb_get_cred=no
16111 fi
16112 rm -f core conftest.err conftest.$ac_objext \
16113 conftest$ac_exeext conftest.$ac_ext
16114 LIBS=$ac_check_lib_save_LIBS
16115 fi
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16117 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16118 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
16119 have_krb=yes
16120 else
16121 have_krb=no
16122 fi
16123
16124 if test $have_krb = yes; then
16125 KRB4LIB=-lkrb
16126 LIBS="$KRB4LIB $LIBS"
16127 fi
16128 fi
16129 fi
16130
16131 if test "${with_kerberos5}" != no; then
16132 for ac_header in krb5.h
16133 do :
16134 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16135 if test "x$ac_cv_header_krb5_h" = x""yes; then :
16136 cat >>confdefs.h <<_ACEOF
16137 #define HAVE_KRB5_H 1
16138 _ACEOF
16139 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16140 "
16141 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
16142
16143 cat >>confdefs.h <<_ACEOF
16144 #define HAVE_KRB5_ERROR_TEXT 1
16145 _ACEOF
16146
16147
16148 fi
16149 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16150 "
16151 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
16152
16153 cat >>confdefs.h <<_ACEOF
16154 #define HAVE_KRB5_ERROR_E_TEXT 1
16155 _ACEOF
16156
16157
16158 fi
16159
16160 fi
16161
16162 done
16163
16164 else
16165 for ac_header in krb.h
16166 do :
16167 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16168 if test "x$ac_cv_header_krb_h" = x""yes; then :
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_KRB_H 1
16171 _ACEOF
16172
16173 else
16174 for ac_header in kerberosIV/krb.h
16175 do :
16176 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16177 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
16178 cat >>confdefs.h <<_ACEOF
16179 #define HAVE_KERBEROSIV_KRB_H 1
16180 _ACEOF
16181
16182 else
16183 for ac_header in kerberos/krb.h
16184 do :
16185 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16186 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
16187 cat >>confdefs.h <<_ACEOF
16188 #define HAVE_KERBEROS_KRB_H 1
16189 _ACEOF
16190
16191 fi
16192
16193 done
16194
16195 fi
16196
16197 done
16198
16199 fi
16200
16201 done
16202
16203 fi
16204 for ac_header in com_err.h
16205 do :
16206 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16207 if test "x$ac_cv_header_com_err_h" = x""yes; then :
16208 cat >>confdefs.h <<_ACEOF
16209 #define HAVE_COM_ERR_H 1
16210 _ACEOF
16211
16212 fi
16213
16214 done
16215
16216 fi
16217
16218
16219
16220
16221
16222
16223
16224 for ac_header in valgrind/valgrind.h
16225 do :
16226 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
16227 if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
16228 cat >>confdefs.h <<_ACEOF
16229 #define HAVE_VALGRIND_VALGRIND_H 1
16230 _ACEOF
16231
16232 fi
16233
16234 done
16235
16236
16237
16238
16239
16240 for ac_func in $ac_func_list
16241 do :
16242 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16243 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16244 eval as_val=\$$as_ac_var
16245 if test "x$as_val" = x""yes; then :
16246 cat >>confdefs.h <<_ACEOF
16247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16248 _ACEOF
16249
16250 fi
16251 done
16252
16253
16254
16255
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16257 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16258 if test "${emacs_cv_localtime_cache+set}" = set; then :
16259 $as_echo_n "(cached) " >&6
16260 else
16261 if test x$ac_cv_func_tzset = xyes; then
16262 if test "$cross_compiling" = yes; then :
16263 # If we have tzset, assume the worst when cross-compiling.
16264 emacs_cv_localtime_cache=yes
16265 else
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16268 #include <time.h>
16269 char TZ_GMT0[] = "TZ=GMT0";
16270 char TZ_PST8[] = "TZ=PST8";
16271 main()
16272 {
16273 time_t now = time ((time_t *) 0);
16274 int hour_GMT0, hour_unset;
16275 if (putenv (TZ_GMT0) != 0)
16276 exit (1);
16277 hour_GMT0 = localtime (&now)->tm_hour;
16278 unsetenv("TZ");
16279 hour_unset = localtime (&now)->tm_hour;
16280 if (putenv (TZ_PST8) != 0)
16281 exit (1);
16282 if (localtime (&now)->tm_hour == hour_GMT0)
16283 exit (1);
16284 unsetenv("TZ");
16285 if (localtime (&now)->tm_hour != hour_unset)
16286 exit (1);
16287 exit (0);
16288 }
16289 _ACEOF
16290 if ac_fn_c_try_run "$LINENO"; then :
16291 emacs_cv_localtime_cache=no
16292 else
16293 emacs_cv_localtime_cache=yes
16294 fi
16295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16296 conftest.$ac_objext conftest.beam conftest.$ac_ext
16297 fi
16298
16299 else
16300 # If we lack tzset, report that localtime does not cache TZ,
16301 # since we can't invalidate the cache if we don't have tzset.
16302 emacs_cv_localtime_cache=no
16303 fi
16304 fi
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16306 $as_echo "$emacs_cv_localtime_cache" >&6; }
16307 if test $emacs_cv_localtime_cache = yes; then
16308
16309 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16310
16311 fi
16312
16313 ok_so_far=yes
16314 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16315 if test "x$ac_cv_func_socket" = x""yes; then :
16316
16317 else
16318 ok_so_far=no
16319 fi
16320
16321 if test $ok_so_far = yes; then
16322 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16323 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
16324
16325 else
16326 ok_so_far=no
16327 fi
16328
16329
16330 fi
16331 if test $ok_so_far = yes; then
16332 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16333 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
16334
16335 else
16336 ok_so_far=no
16337 fi
16338
16339
16340 fi
16341 if test $ok_so_far = yes; then
16342
16343 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16344
16345 fi
16346
16347 case $canonical in
16348 *-solaris2.4 | *-solaris2.4.*)
16349 : ${ac_cv_func_vfork_works=no};;
16350 esac
16351
16352 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16353 if test "x$ac_cv_type_pid_t" = x""yes; then :
16354
16355 else
16356
16357 cat >>confdefs.h <<_ACEOF
16358 #define pid_t int
16359 _ACEOF
16360
16361 fi
16362
16363 for ac_header in vfork.h
16364 do :
16365 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16366 if test "x$ac_cv_header_vfork_h" = x""yes; then :
16367 cat >>confdefs.h <<_ACEOF
16368 #define HAVE_VFORK_H 1
16369 _ACEOF
16370
16371 fi
16372
16373 done
16374
16375 for ac_func in fork vfork
16376 do :
16377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16378 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16379 eval as_val=\$$as_ac_var
16380 if test "x$as_val" = x""yes; then :
16381 cat >>confdefs.h <<_ACEOF
16382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16383 _ACEOF
16384
16385 fi
16386 done
16387
16388 if test "x$ac_cv_func_fork" = xyes; then
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16390 $as_echo_n "checking for working fork... " >&6; }
16391 if test "${ac_cv_func_fork_works+set}" = set; then :
16392 $as_echo_n "(cached) " >&6
16393 else
16394 if test "$cross_compiling" = yes; then :
16395 ac_cv_func_fork_works=cross
16396 else
16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16399 $ac_includes_default
16400 int
16401 main ()
16402 {
16403
16404 /* By Ruediger Kuhlmann. */
16405 return fork () < 0;
16406
16407 ;
16408 return 0;
16409 }
16410 _ACEOF
16411 if ac_fn_c_try_run "$LINENO"; then :
16412 ac_cv_func_fork_works=yes
16413 else
16414 ac_cv_func_fork_works=no
16415 fi
16416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16417 conftest.$ac_objext conftest.beam conftest.$ac_ext
16418 fi
16419
16420 fi
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16422 $as_echo "$ac_cv_func_fork_works" >&6; }
16423
16424 else
16425 ac_cv_func_fork_works=$ac_cv_func_fork
16426 fi
16427 if test "x$ac_cv_func_fork_works" = xcross; then
16428 case $host in
16429 *-*-amigaos* | *-*-msdosdjgpp*)
16430 # Override, as these systems have only a dummy fork() stub
16431 ac_cv_func_fork_works=no
16432 ;;
16433 *)
16434 ac_cv_func_fork_works=yes
16435 ;;
16436 esac
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16438 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16439 fi
16440 ac_cv_func_vfork_works=$ac_cv_func_vfork
16441 if test "x$ac_cv_func_vfork" = xyes; then
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16443 $as_echo_n "checking for working vfork... " >&6; }
16444 if test "${ac_cv_func_vfork_works+set}" = set; then :
16445 $as_echo_n "(cached) " >&6
16446 else
16447 if test "$cross_compiling" = yes; then :
16448 ac_cv_func_vfork_works=cross
16449 else
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452 /* Thanks to Paul Eggert for this test. */
16453 $ac_includes_default
16454 #include <sys/wait.h>
16455 #ifdef HAVE_VFORK_H
16456 # include <vfork.h>
16457 #endif
16458 /* On some sparc systems, changes by the child to local and incoming
16459 argument registers are propagated back to the parent. The compiler
16460 is told about this with #include <vfork.h>, but some compilers
16461 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16462 static variable whose address is put into a register that is
16463 clobbered by the vfork. */
16464 static void
16465 #ifdef __cplusplus
16466 sparc_address_test (int arg)
16467 # else
16468 sparc_address_test (arg) int arg;
16469 #endif
16470 {
16471 static pid_t child;
16472 if (!child) {
16473 child = vfork ();
16474 if (child < 0) {
16475 perror ("vfork");
16476 _exit(2);
16477 }
16478 if (!child) {
16479 arg = getpid();
16480 write(-1, "", 0);
16481 _exit (arg);
16482 }
16483 }
16484 }
16485
16486 int
16487 main ()
16488 {
16489 pid_t parent = getpid ();
16490 pid_t child;
16491
16492 sparc_address_test (0);
16493
16494 child = vfork ();
16495
16496 if (child == 0) {
16497 /* Here is another test for sparc vfork register problems. This
16498 test uses lots of local variables, at least as many local
16499 variables as main has allocated so far including compiler
16500 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16501 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16502 reuse the register of parent for one of the local variables,
16503 since it will think that parent can't possibly be used any more
16504 in this routine. Assigning to the local variable will thus
16505 munge parent in the parent process. */
16506 pid_t
16507 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16508 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16509 /* Convince the compiler that p..p7 are live; otherwise, it might
16510 use the same hardware register for all 8 local variables. */
16511 if (p != p1 || p != p2 || p != p3 || p != p4
16512 || p != p5 || p != p6 || p != p7)
16513 _exit(1);
16514
16515 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16516 from child file descriptors. If the child closes a descriptor
16517 before it execs or exits, this munges the parent's descriptor
16518 as well. Test for this by closing stdout in the child. */
16519 _exit(close(fileno(stdout)) != 0);
16520 } else {
16521 int status;
16522 struct stat st;
16523
16524 while (wait(&status) != child)
16525 ;
16526 return (
16527 /* Was there some problem with vforking? */
16528 child < 0
16529
16530 /* Did the child fail? (This shouldn't happen.) */
16531 || status
16532
16533 /* Did the vfork/compiler bug occur? */
16534 || parent != getpid()
16535
16536 /* Did the file descriptor bug occur? */
16537 || fstat(fileno(stdout), &st) != 0
16538 );
16539 }
16540 }
16541 _ACEOF
16542 if ac_fn_c_try_run "$LINENO"; then :
16543 ac_cv_func_vfork_works=yes
16544 else
16545 ac_cv_func_vfork_works=no
16546 fi
16547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16548 conftest.$ac_objext conftest.beam conftest.$ac_ext
16549 fi
16550
16551 fi
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16553 $as_echo "$ac_cv_func_vfork_works" >&6; }
16554
16555 fi;
16556 if test "x$ac_cv_func_fork_works" = xcross; then
16557 ac_cv_func_vfork_works=$ac_cv_func_vfork
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16559 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16560 fi
16561
16562 if test "x$ac_cv_func_vfork_works" = xyes; then
16563
16564 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16565
16566 else
16567
16568 $as_echo "#define vfork fork" >>confdefs.h
16569
16570 fi
16571 if test "x$ac_cv_func_fork_works" = xyes; then
16572
16573 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16574
16575 fi
16576
16577
16578 for ac_func in snprintf
16579 do :
16580 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16581 if test "x$ac_cv_func_snprintf" = x""yes; then :
16582 cat >>confdefs.h <<_ACEOF
16583 #define HAVE_SNPRINTF 1
16584 _ACEOF
16585
16586 fi
16587 done
16588
16589
16590 XGSELOBJ=
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16592 $as_echo_n "checking whether GLib is linked in... " >&6; }
16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16595 #include <glib.h>
16596
16597 int
16598 main ()
16599 {
16600 g_print ("Hello world");
16601 ;
16602 return 0;
16603 }
16604 _ACEOF
16605 if ac_fn_c_try_link "$LINENO"; then :
16606 links_glib=yes
16607 else
16608 links_glib=no
16609 fi
16610 rm -f core conftest.err conftest.$ac_objext \
16611 conftest$ac_exeext conftest.$ac_ext
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16613 $as_echo "$links_glib" >&6; }
16614 if test "${links_glib}" = "yes"; then
16615
16616 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16617
16618 if test "$HAVE_NS" = no;then
16619 XGSELOBJ=xgselect.o
16620 fi
16621 fi
16622
16623
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16625 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16626 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16627 $as_echo_n "(cached) " >&6
16628 else
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16631 #include <langinfo.h>
16632 int
16633 main ()
16634 {
16635 char* cs = nl_langinfo(CODESET);
16636 ;
16637 return 0;
16638 }
16639 _ACEOF
16640 if ac_fn_c_try_link "$LINENO"; then :
16641 emacs_cv_langinfo_codeset=yes
16642 else
16643 emacs_cv_langinfo_codeset=no
16644 fi
16645 rm -f core conftest.err conftest.$ac_objext \
16646 conftest$ac_exeext conftest.$ac_ext
16647
16648 fi
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16650 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16651 if test $emacs_cv_langinfo_codeset = yes; then
16652
16653 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16654
16655 fi
16656
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16658 $as_echo_n "checking for mbstate_t... " >&6; }
16659 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16660 $as_echo_n "(cached) " >&6
16661 else
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16664 $ac_includes_default
16665 # include <wchar.h>
16666 int
16667 main ()
16668 {
16669 mbstate_t x; return sizeof x;
16670 ;
16671 return 0;
16672 }
16673 _ACEOF
16674 if ac_fn_c_try_compile "$LINENO"; then :
16675 ac_cv_type_mbstate_t=yes
16676 else
16677 ac_cv_type_mbstate_t=no
16678 fi
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 fi
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16682 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16683 if test $ac_cv_type_mbstate_t = yes; then
16684
16685 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16686
16687 else
16688
16689 $as_echo "#define mbstate_t int" >>confdefs.h
16690
16691 fi
16692
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16694 $as_echo_n "checking for C restricted array declarations... " >&6; }
16695 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16696 $as_echo_n "(cached) " >&6
16697 else
16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16700 void fred (int x[__restrict]);
16701 int
16702 main ()
16703 {
16704
16705 ;
16706 return 0;
16707 }
16708 _ACEOF
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710 emacs_cv_c_restrict_arr=yes
16711 else
16712 emacs_cv_c_restrict_arr=no
16713 fi
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 fi
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16717 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16718 if test "$emacs_cv_c_restrict_arr" = yes; then
16719
16720 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16721
16722 fi
16723
16724
16725 if test "${opsys}" != "mingw32"; then
16726
16727 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16728
16729 fi
16730
16731
16732 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16733
16734
16735 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16736 if test "${opsys}" != "mingw32"; then
16737
16738 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16739
16740 fi
16741
16742
16743 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16744
16745
16746
16747
16748
16749 if test "${opsys}" = "mingw32"; then
16750 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16751
16752 else
16753 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16754
16755 fi
16756
16757
16758 if test "${opsys}" = "mingw32"; then
16759 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16760
16761 else
16762 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16763
16764 fi
16765
16766
16767 $as_echo "#define subprocesses 1" >>confdefs.h
16768
16769
16770
16771 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16772
16773
16774
16775
16776 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16777
16778
16779 if test "${opsys}" = "mingw32"; then
16780
16781 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16782
16783
16784
16785 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16786
16787
16788
16789 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16790
16791 else
16792
16793 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16794
16795
16796
16797 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16798
16799
16800
16801 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16802
16803 fi
16804
16805
16806
16807 case $opsys in
16808 aix4-2)
16809 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
16810 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16811
16812 fi
16813 ;;
16814
16815 hpux*)
16816 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16817
16818 ;;
16819 esac
16820
16821
16822 case $opsys in
16823 irix6-5 | sol2* | unixware )
16824
16825 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16826
16827 ;;
16828 esac
16829
16830 emacs_broken_SIGIO=no
16831
16832 case $opsys in
16833 hpux* | irix6-5 | openbsd | sol2* | unixware )
16834 emacs_broken_SIGIO=yes
16835 ;;
16836
16837 aix4-2)
16838
16839 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16840
16841 ;;
16842
16843 freebsd)
16844
16845 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16846
16847 ;;
16848 esac
16849
16850 case $opsys in
16851 gnu-* | sol2-10 )
16852
16853 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16854
16855 ;;
16856 esac
16857
16858 case $opsys in
16859 darwin | dragonfly | freebsd | netbsd | openbsd )
16860
16861 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16862
16863 ;;
16864 esac
16865
16866 case $opsys in
16867 netbsd | openbsd) sound_device="/dev/audio" ;;
16868 *) sound_device="/dev/dsp" ;;
16869 esac
16870
16871
16872 cat >>confdefs.h <<_ACEOF
16873 #define DEFAULT_SOUND_DEVICE "$sound_device"
16874 _ACEOF
16875
16876
16877
16878 case $opsys in
16879 darwin | gnu-linux | gnu-kfreebsd )
16880
16881 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16882
16883 ;;
16884 esac
16885
16886
16887 case $opsys in
16888 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
16889
16890 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16891
16892 ;;
16893 esac
16894
16895
16896
16897
16898
16899
16900
16901
16902 case $opsys in
16903 aix4-2 )
16904 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16905
16906 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16907
16908 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16909
16910 ;;
16911
16912 cygwin )
16913 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16914
16915 $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
16916
16917 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16918
16919 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16920
16921 ;;
16922
16923 darwin )
16924 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16925
16926 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16927
16928 $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
16929
16930 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16931
16932 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16933
16934 ;;
16935
16936 gnu | openbsd )
16937 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16938
16939 ;;
16940
16941 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
16942 if test "x$ac_cv_func_grantpt" = xyes; then
16943
16944 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16945
16946 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16947
16948 $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) { emacs_close (fd); return -1; } snprintf (pty_name, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16949
16950 if test "x$ac_cv_func_posix_openpt" = xyes; then
16951 $as_echo "#define PTY_OPEN do { fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY); if (fd < 0 && errno == EINVAL) fd = posix_openpt (O_RDWR | O_NOCTTY); } while (0)" >>confdefs.h
16952
16953 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16954
16955 elif test "x$ac_cv_func_getpt" = xyes; then
16956 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16957
16958 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16959
16960 else
16961 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16962
16963 fi
16964 else
16965 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16966
16967 fi
16968 ;;
16969
16970 hpux*)
16971 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16972
16973 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16974
16975 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16976
16977 ;;
16978
16979 irix6-5 )
16980 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16981
16982 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16983
16984 $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
16985
16986 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16987
16988 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16989
16990 ;;
16991
16992 sol2* )
16993 $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, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16994
16995 ;;
16996
16997 unixware )
16998 $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, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16999
17000 ;;
17001 esac
17002
17003
17004 case $opsys in
17005 sol2* | unixware )
17006 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
17007
17008 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
17009
17010
17011 $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
17012
17013 ;;
17014 esac
17015
17016
17017
17018
17019 case $opsys in
17020 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
17021 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
17022
17023 ;;
17024
17025 gnu-linux | gnu-kfreebsd )
17026
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
17028 $as_echo_n "checking for signals via characters... " >&6; }
17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17031
17032 #include <linux/version.h>
17033 #if LINUX_VERSION_CODE < 0x20400
17034 # error "Linux version too old"
17035 #endif
17036
17037 int
17038 main ()
17039 {
17040
17041 ;
17042 return 0;
17043 }
17044 _ACEOF
17045 if ac_fn_c_try_cpp "$LINENO"; then :
17046 emacs_signals_via_chars=yes
17047 else
17048 emacs_signals_via_chars=no
17049 fi
17050 rm -f conftest.err conftest.$ac_ext
17051
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
17053 $as_echo "$emacs_signals_via_chars" >&6; }
17054 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
17055
17056 ;;
17057 esac
17058
17059
17060
17061
17062 case $opsys in
17063 aix*)
17064 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
17065
17066 ;;
17067 hpux*)
17068 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
17069
17070 ;;
17071 irix6-5)
17072 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
17073
17074 ;;
17075 esac
17076
17077
17078
17079
17080 case $opsys in
17081 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
17082 ;;
17083
17084 gnu | dragonfly | freebsd | netbsd | openbsd )
17085
17086 $as_echo "#define TABDLY OXTABS" >>confdefs.h
17087
17088 $as_echo "#define TAB3 OXTABS" >>confdefs.h
17089
17090 ;;
17091
17092 gnu-linux | gnu-kfreebsd )
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095
17096 #ifndef __ia64__
17097 # error "not ia64"
17098 #endif
17099
17100 int
17101 main ()
17102 {
17103
17104 ;
17105 return 0;
17106 }
17107 _ACEOF
17108 if ac_fn_c_try_cpp "$LINENO"; then :
17109
17110 $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
17111
17112 fi
17113 rm -f conftest.err conftest.$ac_ext
17114 ;;
17115
17116 hpux*)
17117
17118 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
17119
17120 ;;
17121 esac
17122
17123
17124
17125
17126
17127 case $opsys in
17128 gnu-linux | gnu-kfreebsd )
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17131
17132 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
17133 || defined __alpha__ || defined __mips__ || defined __s390__ \
17134 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
17135 || defined __ia64__ || defined __sh__
17136 /* ok */
17137 #else
17138 # error "setjmp not known to work on this arch"
17139 #endif
17140
17141 int
17142 main ()
17143 {
17144
17145 ;
17146 return 0;
17147 }
17148 _ACEOF
17149 if ac_fn_c_try_cpp "$LINENO"; then :
17150 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17151
17152 fi
17153 rm -f conftest.err conftest.$ac_ext
17154 ;;
17155 esac
17156
17157
17158 if test x$GCC = xyes; then
17159 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17160
17161 else
17162 case $opsys in
17163 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
17164 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17165
17166 ;;
17167 esac
17168 fi
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
17170 $as_echo_n "checking for _setjmp... " >&6; }
17171 if test "${emacs_cv_func__setjmp+set}" = set; then :
17172 $as_echo_n "(cached) " >&6
17173 else
17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h. */
17176 #include <setjmp.h>
17177 #ifdef __MINGW32__
17178 # define _longjmp longjmp
17179 #endif
17180
17181 int
17182 main ()
17183 {
17184 jmp_buf j;
17185 if (! _setjmp (j))
17186 _longjmp (j, 1);
17187 ;
17188 return 0;
17189 }
17190 _ACEOF
17191 if ac_fn_c_try_link "$LINENO"; then :
17192 emacs_cv_func__setjmp=yes
17193 else
17194 emacs_cv_func__setjmp=no
17195 fi
17196 rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17198 fi
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
17200 $as_echo "$emacs_cv_func__setjmp" >&6; }
17201 if test $emacs_cv_func__setjmp = yes; then
17202
17203 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
17204
17205 else
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
17207 $as_echo_n "checking for sigsetjmp... " >&6; }
17208 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
17209 $as_echo_n "(cached) " >&6
17210 else
17211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17212 /* end confdefs.h. */
17213 #include <setjmp.h>
17214
17215 int
17216 main ()
17217 {
17218 sigjmp_buf j;
17219 if (! sigsetjmp (j, 1))
17220 siglongjmp (j, 1);
17221 ;
17222 return 0;
17223 }
17224 _ACEOF
17225 if ac_fn_c_try_link "$LINENO"; then :
17226 emacs_cv_func_sigsetjmp=yes
17227 else
17228 emacs_cv_func_sigsetjmp=no
17229 fi
17230 rm -f core conftest.err conftest.$ac_objext \
17231 conftest$ac_exeext conftest.$ac_ext
17232 fi
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
17234 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
17235 if test $emacs_cv_func_sigsetjmp = yes; then
17236
17237 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
17238
17239 fi
17240 fi
17241
17242 case $opsys in
17243 sol2* | unixware )
17244
17245 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
17246
17247 ;;
17248 esac
17249
17250
17251 case $opsys in
17252 hpux* | sol2* )
17253
17254 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
17255
17256 ;;
17257 esac
17258
17259
17260
17261
17262
17263
17264
17265 case $opsys in
17266 aix4-2)
17267 $as_echo "#define USG /**/" >>confdefs.h
17268
17269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270 /* end confdefs.h. */
17271
17272 #ifndef _AIX
17273 # error "_AIX not defined"
17274 #endif
17275
17276 int
17277 main ()
17278 {
17279
17280 ;
17281 return 0;
17282 }
17283 _ACEOF
17284 if ac_fn_c_try_cpp "$LINENO"; then :
17285
17286 else
17287
17288 $as_echo "#define _AIX /**/" >>confdefs.h
17289
17290 fi
17291 rm -f conftest.err conftest.$ac_ext
17292 ;;
17293
17294 cygwin)
17295
17296 $as_echo "#define CYGWIN 1" >>confdefs.h
17297
17298 ;;
17299
17300 darwin)
17301
17302 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
17303
17304 ;;
17305
17306 gnu-linux | gnu-kfreebsd )
17307 $as_echo "#define USG /**/" >>confdefs.h
17308
17309
17310 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
17311
17312 ;;
17313
17314 hpux*)
17315 $as_echo "#define USG /**/" >>confdefs.h
17316
17317
17318 $as_echo "#define HPUX /**/" >>confdefs.h
17319
17320 ;;
17321
17322 irix6-5)
17323 $as_echo "#define USG /**/" >>confdefs.h
17324
17325 $as_echo "#define USG5_4 /**/" >>confdefs.h
17326
17327
17328 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
17329
17330 ;;
17331
17332 mingw32)
17333 $as_echo "#define DOS_NT /**/" >>confdefs.h
17334
17335
17336 $as_echo "#define WINDOWSNT 1" >>confdefs.h
17337
17338 if test "x$ac_enable_checking" != "x" ; then
17339
17340 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
17341
17342 fi
17343 ;;
17344
17345 sol2*)
17346 $as_echo "#define USG /**/" >>confdefs.h
17347
17348 $as_echo "#define USG5_4 /**/" >>confdefs.h
17349
17350
17351 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
17352
17353 ;;
17354
17355 unixware)
17356 $as_echo "#define USG /**/" >>confdefs.h
17357
17358 $as_echo "#define USG5_4 /**/" >>confdefs.h
17359
17360 ;;
17361 esac
17362
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
17364 $as_echo_n "checking for usable FIONREAD... " >&6; }
17365 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
17366 $as_echo_n "(cached) " >&6
17367 else
17368 case $opsys in
17369 aix4-2)
17370 emacs_cv_usable_FIONREAD=no
17371 ;;
17372
17373 mingw32)
17374 emacs_cv_usable_FIONREAD=yes
17375 ;;
17376
17377 *)
17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17380 #include <sys/types.h>
17381 #include <sys/ioctl.h>
17382 #ifdef USG5_4
17383 # include <sys/filio.h>
17384 #endif
17385
17386 int
17387 main ()
17388 {
17389 int foo = ioctl (0, FIONREAD, &foo);
17390 ;
17391 return 0;
17392 }
17393 _ACEOF
17394 if ac_fn_c_try_compile "$LINENO"; then :
17395 emacs_cv_usable_FIONREAD=yes
17396 else
17397 emacs_cv_usable_FIONREAD=no
17398 fi
17399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17400 ;;
17401 esac
17402 fi
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17404 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17405 if test $emacs_cv_usable_FIONREAD = yes; then
17406
17407 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17408
17409
17410 if test $emacs_broken_SIGIO = no; then
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17412 $as_echo_n "checking for usable SIGIO... " >&6; }
17413 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17414 $as_echo_n "(cached) " >&6
17415 else
17416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17417 /* end confdefs.h. */
17418 #include <fcntl.h>
17419 #include <signal.h>
17420
17421 int
17422 main ()
17423 {
17424 int foo = SIGIO | F_SETFL | FASYNC;
17425 ;
17426 return 0;
17427 }
17428 _ACEOF
17429 if ac_fn_c_try_compile "$LINENO"; then :
17430 emacs_cv_usable_SIGIO=yes
17431 else
17432 emacs_cv_usable_SIGIO=no
17433 fi
17434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17435 fi
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17437 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17438 if test $emacs_cv_usable_SIGIO = yes; then
17439
17440 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17441
17442 fi
17443 fi
17444 fi
17445
17446
17447 case $opsys in
17448 cygwin)
17449
17450 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17451
17452 ;;
17453
17454 hpux11)
17455
17456 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17457
17458 ;;
17459
17460 irix6-5)
17461
17462 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17463
17464 ;;
17465
17466 sol2-10)
17467
17468 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17469
17470 ;;
17471 esac
17472
17473 # Set up the CFLAGS for real compilation, so we can substitute it.
17474 CFLAGS="$REAL_CFLAGS"
17475 CPPFLAGS="$REAL_CPPFLAGS"
17476
17477 ## Hack to detect a buggy GCC version.
17478 if test "x$GCC" = xyes \
17479 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17480 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17481 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17482 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17483 fi
17484
17485 version=$PACKAGE_VERSION
17486
17487 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
17488
17489 cat >>confdefs.h <<_ACEOF
17490 #define COPYRIGHT "$copyright"
17491 _ACEOF
17492
17493
17494
17495 ### Specify what sort of things we'll be editing into Makefile and config.h.
17496 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17497
17498
17499 ## Unused?
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17523 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17524 ## end of LIBX_BASE, but nothing ever set it.
17525
17526
17527
17528
17529 ## Used in lwlib/Makefile.in.
17530
17531
17532
17533
17534
17535
17536
17537
17538 if test -n "${term_header}"; then
17539
17540 cat >>confdefs.h <<_ACEOF
17541 #define TERM_HEADER "${term_header}"
17542 _ACEOF
17543
17544 fi
17545
17546
17547 cat >>confdefs.h <<_ACEOF
17548 #define EMACS_CONFIGURATION "${canonical}"
17549 _ACEOF
17550
17551
17552 cat >>confdefs.h <<_ACEOF
17553 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17554 _ACEOF
17555
17556
17557
17558 case $opsys in
17559 mingw32)
17560 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17561
17562 ;;
17563 esac
17564
17565 XMENU_OBJ=
17566 XOBJ=
17567 FONT_OBJ=
17568 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17569
17570 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17571
17572 XMENU_OBJ=xmenu.o
17573 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17574 FONT_OBJ=xfont.o
17575 if test "$HAVE_XFT" = "yes"; then
17576 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17577 elif test "$HAVE_FREETYPE" = "yes"; then
17578 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17579 fi
17580
17581 fi
17582
17583
17584
17585
17586 WIDGET_OBJ=
17587 MOTIF_LIBW=
17588 if test "${USE_X_TOOLKIT}" != "none" ; then
17589 WIDGET_OBJ=widget.o
17590
17591 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17592
17593 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17594
17595 $as_echo "#define USE_LUCID 1" >>confdefs.h
17596
17597 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17598
17599 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17600
17601 MOTIF_LIBW=-lXm
17602 case "$opsys" in
17603 gnu-linux)
17604 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17605 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17606 ;;
17607
17608 unixware)
17609 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17610 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17611 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17612 ;;
17613
17614 aix4-2)
17615 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17616 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17617 ;;
17618 esac
17619 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17620 fi
17621 fi
17622
17623
17624 TOOLKIT_LIBW=
17625 case "$USE_X_TOOLKIT" in
17626 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17627 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17628 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17629 esac
17630
17631
17632 if test "${opsys}" != "mingw32"; then
17633 if test "$USE_X_TOOLKIT" = "none"; then
17634 LIBXT_OTHER="\$(LIBXSM)"
17635 OLDXMENU_TARGET="really-oldXMenu"
17636 else
17637 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17638 OLDXMENU_TARGET="really-lwlib"
17639 fi
17640 fi
17641
17642
17643 ## The X Menu stuff is present in the X10 distribution, but missing
17644 ## from X11. If we have X10, just use the installed library;
17645 ## otherwise, use our own copy.
17646 if test "${HAVE_X11}" = "yes" ; then
17647
17648 $as_echo "#define HAVE_X11 1" >>confdefs.h
17649
17650
17651 if test "$USE_X_TOOLKIT" = "none"; then
17652 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17653 else
17654 OLDXMENU="\${lwlibdir}/liblw.a"
17655 fi
17656 LIBXMENU="\$(OLDXMENU)"
17657 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17658 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17659 else
17660 ## For a syntactically valid Makefile; not actually used for anything.
17661 ## See comments in src/Makefile.in.
17662 OLDXMENU=nothing
17663 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17664 if test "${HAVE_X_WINDOWS}" = "yes"; then
17665 LIBXMENU="-lXMenu"
17666 else
17667 LIBXMENU=
17668 fi
17669 LIBX_OTHER=
17670 OLDXMENU_DEPS=
17671 fi
17672
17673 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17674 OLDXMENU_TARGET=
17675 OLDXMENU=nothing
17676 LIBXMENU=
17677 OLDXMENU_DEPS=
17678 fi
17679
17680
17681
17682
17683
17684
17685
17686 if test "${HAVE_MENUS}" = "yes" ; then
17687
17688 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17689
17690 fi
17691
17692 if test "${GNU_MALLOC}" = "yes" ; then
17693
17694 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17695
17696 fi
17697
17698 RALLOC_OBJ=
17699 if test "${REL_ALLOC}" = "yes" ; then
17700
17701 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17702
17703
17704 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17705 fi
17706
17707
17708 if test "$opsys" = "cygwin"; then
17709 CYGWIN_OBJ="sheap.o cygw32.o"
17710 ## Cygwin differs because of its unexec().
17711 PRE_ALLOC_OBJ=
17712 POST_ALLOC_OBJ=lastfile.o
17713 elif test "$opsys" = "mingw32"; then
17714 CYGWIN_OBJ=
17715 PRE_ALLOC_OBJ=
17716 POST_ALLOC_OBJ=lastfile.o
17717 else
17718 CYGWIN_OBJ=
17719 PRE_ALLOC_OBJ=lastfile.o
17720 POST_ALLOC_OBJ=
17721 fi
17722
17723
17724
17725
17726
17727
17728 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17729 # it temporarily reverts them to their pre-pkg-config values,
17730 # because gnulib needs to work with both src (which uses the
17731 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17732 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17733 # and it therefore needs to run in an environment where LIBS does not
17734 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17735 # for some package unrelated to lib-src.
17736 SAVE_CFLAGS=$CFLAGS
17737 SAVE_LIBS=$LIBS
17738 CFLAGS=$pre_PKG_CONFIG_CFLAGS
17739 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751 LIBC_FATAL_STDERR_=1
17752 export LIBC_FATAL_STDERR_
17753
17754 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17755 # for constant arguments. Useless!
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17757 $as_echo_n "checking for working alloca.h... " >&6; }
17758 if test "${ac_cv_working_alloca_h+set}" = set; then :
17759 $as_echo_n "(cached) " >&6
17760 else
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17763 #include <alloca.h>
17764 int
17765 main ()
17766 {
17767 char *p = (char *) alloca (2 * sizeof (int));
17768 if (p) return 0;
17769 ;
17770 return 0;
17771 }
17772 _ACEOF
17773 if ac_fn_c_try_link "$LINENO"; then :
17774 ac_cv_working_alloca_h=yes
17775 else
17776 ac_cv_working_alloca_h=no
17777 fi
17778 rm -f core conftest.err conftest.$ac_objext \
17779 conftest$ac_exeext conftest.$ac_ext
17780 fi
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17782 $as_echo "$ac_cv_working_alloca_h" >&6; }
17783 if test $ac_cv_working_alloca_h = yes; then
17784
17785 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17786
17787 fi
17788
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17790 $as_echo_n "checking for alloca... " >&6; }
17791 if test "${ac_cv_func_alloca_works+set}" = set; then :
17792 $as_echo_n "(cached) " >&6
17793 else
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17796 #ifdef __GNUC__
17797 # define alloca __builtin_alloca
17798 #else
17799 # ifdef _MSC_VER
17800 # include <malloc.h>
17801 # define alloca _alloca
17802 # else
17803 # ifdef HAVE_ALLOCA_H
17804 # include <alloca.h>
17805 # else
17806 # ifdef _AIX
17807 #pragma alloca
17808 # else
17809 # ifndef alloca /* predefined by HP cc +Olibcalls */
17810 char *alloca ();
17811 # endif
17812 # endif
17813 # endif
17814 # endif
17815 #endif
17816
17817 int
17818 main ()
17819 {
17820 char *p = (char *) alloca (1);
17821 if (p) return 0;
17822 ;
17823 return 0;
17824 }
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"; then :
17827 ac_cv_func_alloca_works=yes
17828 else
17829 ac_cv_func_alloca_works=no
17830 fi
17831 rm -f core conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17833 fi
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17835 $as_echo "$ac_cv_func_alloca_works" >&6; }
17836
17837 if test $ac_cv_func_alloca_works = yes; then
17838
17839 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17840
17841 else
17842 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17843 # that cause trouble. Some versions do not even contain alloca or
17844 # contain a buggy version. If you still want to use their alloca,
17845 # use ar to extract alloca.o from them instead of compiling alloca.c.
17846
17847
17848
17849
17850
17851 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17852
17853 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17854
17855
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17857 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17858 if test "${ac_cv_os_cray+set}" = set; then :
17859 $as_echo_n "(cached) " >&6
17860 else
17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17863 #if defined CRAY && ! defined CRAY2
17864 webecray
17865 #else
17866 wenotbecray
17867 #endif
17868
17869 _ACEOF
17870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17871 $EGREP "webecray" >/dev/null 2>&1; then :
17872 ac_cv_os_cray=yes
17873 else
17874 ac_cv_os_cray=no
17875 fi
17876 rm -f conftest*
17877
17878 fi
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17880 $as_echo "$ac_cv_os_cray" >&6; }
17881 if test $ac_cv_os_cray = yes; then
17882 for ac_func in _getb67 GETB67 getb67; do
17883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17884 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17885 eval as_val=\$$as_ac_var
17886 if test "x$as_val" = x""yes; then :
17887
17888 cat >>confdefs.h <<_ACEOF
17889 #define CRAY_STACKSEG_END $ac_func
17890 _ACEOF
17891
17892 break
17893 fi
17894
17895 done
17896 fi
17897
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17899 $as_echo_n "checking stack direction for C alloca... " >&6; }
17900 if test "${ac_cv_c_stack_direction+set}" = set; then :
17901 $as_echo_n "(cached) " >&6
17902 else
17903 if test "$cross_compiling" = yes; then :
17904 ac_cv_c_stack_direction=0
17905 else
17906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907 /* end confdefs.h. */
17908 $ac_includes_default
17909 int
17910 find_stack_direction (int *addr, int depth)
17911 {
17912 int dir, dummy = 0;
17913 if (! addr)
17914 addr = &dummy;
17915 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17916 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17917 return dir + dummy;
17918 }
17919
17920 int
17921 main (int argc, char **argv)
17922 {
17923 return find_stack_direction (0, argc + !argv + 20) < 0;
17924 }
17925 _ACEOF
17926 if ac_fn_c_try_run "$LINENO"; then :
17927 ac_cv_c_stack_direction=1
17928 else
17929 ac_cv_c_stack_direction=-1
17930 fi
17931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17932 conftest.$ac_objext conftest.beam conftest.$ac_ext
17933 fi
17934
17935 fi
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17937 $as_echo "$ac_cv_c_stack_direction" >&6; }
17938 cat >>confdefs.h <<_ACEOF
17939 #define STACK_DIRECTION $ac_cv_c_stack_direction
17940 _ACEOF
17941
17942
17943 fi
17944
17945
17946
17947
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17949 $as_echo_n "checking for unsigned long long int... " >&6; }
17950 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17951 $as_echo_n "(cached) " >&6
17952 else
17953 ac_cv_type_unsigned_long_long_int=yes
17954 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17957
17958 /* For now, do not test the preprocessor; as of 2007 there are too many
17959 implementations with broken preprocessors. Perhaps this can
17960 be revisited in 2012. In the meantime, code should not expect
17961 #if to work with literals wider than 32 bits. */
17962 /* Test literals. */
17963 long long int ll = 9223372036854775807ll;
17964 long long int nll = -9223372036854775807LL;
17965 unsigned long long int ull = 18446744073709551615ULL;
17966 /* Test constant expressions. */
17967 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17968 ? 1 : -1)];
17969 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17970 ? 1 : -1)];
17971 int i = 63;
17972 int
17973 main ()
17974 {
17975 /* Test availability of runtime routines for shift and division. */
17976 long long int llmax = 9223372036854775807ll;
17977 unsigned long long int ullmax = 18446744073709551615ull;
17978 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17979 | (llmax / ll) | (llmax % ll)
17980 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17981 | (ullmax / ull) | (ullmax % ull));
17982 ;
17983 return 0;
17984 }
17985
17986 _ACEOF
17987 if ac_fn_c_try_link "$LINENO"; then :
17988
17989 else
17990 ac_cv_type_unsigned_long_long_int=no
17991 fi
17992 rm -f core conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17994 fi
17995 fi
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17997 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17998 if test $ac_cv_type_unsigned_long_long_int = yes; then
17999
18000 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18001
18002 fi
18003
18004
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18006 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18007 if test "${ac_cv_c_bigendian+set}" = set; then :
18008 $as_echo_n "(cached) " >&6
18009 else
18010 ac_cv_c_bigendian=unknown
18011 # See if we're dealing with a universal compiler.
18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18013 /* end confdefs.h. */
18014 #ifndef __APPLE_CC__
18015 not a universal capable compiler
18016 #endif
18017 typedef int dummy;
18018
18019 _ACEOF
18020 if ac_fn_c_try_compile "$LINENO"; then :
18021
18022 # Check for potential -arch flags. It is not universal unless
18023 # there are at least two -arch flags with different values.
18024 ac_arch=
18025 ac_prev=
18026 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18027 if test -n "$ac_prev"; then
18028 case $ac_word in
18029 i?86 | x86_64 | ppc | ppc64)
18030 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18031 ac_arch=$ac_word
18032 else
18033 ac_cv_c_bigendian=universal
18034 break
18035 fi
18036 ;;
18037 esac
18038 ac_prev=
18039 elif test "x$ac_word" = "x-arch"; then
18040 ac_prev=arch
18041 fi
18042 done
18043 fi
18044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18045 if test $ac_cv_c_bigendian = unknown; then
18046 # See if sys/param.h defines the BYTE_ORDER macro.
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18049 #include <sys/types.h>
18050 #include <sys/param.h>
18051
18052 int
18053 main ()
18054 {
18055 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18056 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18057 && LITTLE_ENDIAN)
18058 bogus endian macros
18059 #endif
18060
18061 ;
18062 return 0;
18063 }
18064 _ACEOF
18065 if ac_fn_c_try_compile "$LINENO"; then :
18066 # It does; now see whether it defined to BIG_ENDIAN or not.
18067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18068 /* end confdefs.h. */
18069 #include <sys/types.h>
18070 #include <sys/param.h>
18071
18072 int
18073 main ()
18074 {
18075 #if BYTE_ORDER != BIG_ENDIAN
18076 not big endian
18077 #endif
18078
18079 ;
18080 return 0;
18081 }
18082 _ACEOF
18083 if ac_fn_c_try_compile "$LINENO"; then :
18084 ac_cv_c_bigendian=yes
18085 else
18086 ac_cv_c_bigendian=no
18087 fi
18088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089 fi
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18091 fi
18092 if test $ac_cv_c_bigendian = unknown; then
18093 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h. */
18096 #include <limits.h>
18097
18098 int
18099 main ()
18100 {
18101 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18102 bogus endian macros
18103 #endif
18104
18105 ;
18106 return 0;
18107 }
18108 _ACEOF
18109 if ac_fn_c_try_compile "$LINENO"; then :
18110 # It does; now see whether it defined to _BIG_ENDIAN or not.
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113 #include <limits.h>
18114
18115 int
18116 main ()
18117 {
18118 #ifndef _BIG_ENDIAN
18119 not big endian
18120 #endif
18121
18122 ;
18123 return 0;
18124 }
18125 _ACEOF
18126 if ac_fn_c_try_compile "$LINENO"; then :
18127 ac_cv_c_bigendian=yes
18128 else
18129 ac_cv_c_bigendian=no
18130 fi
18131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18132 fi
18133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18134 fi
18135 if test $ac_cv_c_bigendian = unknown; then
18136 # Compile a test program.
18137 if test "$cross_compiling" = yes; then :
18138 # Try to guess by grepping values from an object file.
18139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h. */
18141 short int ascii_mm[] =
18142 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18143 short int ascii_ii[] =
18144 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18145 int use_ascii (int i) {
18146 return ascii_mm[i] + ascii_ii[i];
18147 }
18148 short int ebcdic_ii[] =
18149 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18150 short int ebcdic_mm[] =
18151 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18152 int use_ebcdic (int i) {
18153 return ebcdic_mm[i] + ebcdic_ii[i];
18154 }
18155 extern int foo;
18156
18157 int
18158 main ()
18159 {
18160 return use_ascii (foo) == use_ebcdic (foo);
18161 ;
18162 return 0;
18163 }
18164 _ACEOF
18165 if ac_fn_c_try_compile "$LINENO"; then :
18166 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18167 ac_cv_c_bigendian=yes
18168 fi
18169 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18170 if test "$ac_cv_c_bigendian" = unknown; then
18171 ac_cv_c_bigendian=no
18172 else
18173 # finding both strings is unlikely to happen, but who knows?
18174 ac_cv_c_bigendian=unknown
18175 fi
18176 fi
18177 fi
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179 else
18180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18182 $ac_includes_default
18183 int
18184 main ()
18185 {
18186
18187 /* Are we little or big endian? From Harbison&Steele. */
18188 union
18189 {
18190 long int l;
18191 char c[sizeof (long int)];
18192 } u;
18193 u.l = 1;
18194 return u.c[sizeof (long int) - 1] == 1;
18195
18196 ;
18197 return 0;
18198 }
18199 _ACEOF
18200 if ac_fn_c_try_run "$LINENO"; then :
18201 ac_cv_c_bigendian=no
18202 else
18203 ac_cv_c_bigendian=yes
18204 fi
18205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18206 conftest.$ac_objext conftest.beam conftest.$ac_ext
18207 fi
18208
18209 fi
18210 fi
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18212 $as_echo "$ac_cv_c_bigendian" >&6; }
18213 case $ac_cv_c_bigendian in #(
18214 yes)
18215 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18216 ;; #(
18217 no)
18218 ;; #(
18219 universal)
18220
18221 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18222
18223 ;; #(
18224 *)
18225 as_fn_error "unknown endianness
18226 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18227 esac
18228
18229
18230
18231 GNULIB_CHDIR=0;
18232 GNULIB_CHOWN=0;
18233 GNULIB_CLOSE=0;
18234 GNULIB_DUP=0;
18235 GNULIB_DUP2=0;
18236 GNULIB_DUP3=0;
18237 GNULIB_ENVIRON=0;
18238 GNULIB_EUIDACCESS=0;
18239 GNULIB_FACCESSAT=0;
18240 GNULIB_FCHDIR=0;
18241 GNULIB_FCHOWNAT=0;
18242 GNULIB_FDATASYNC=0;
18243 GNULIB_FSYNC=0;
18244 GNULIB_FTRUNCATE=0;
18245 GNULIB_GETCWD=0;
18246 GNULIB_GETDOMAINNAME=0;
18247 GNULIB_GETDTABLESIZE=0;
18248 GNULIB_GETGROUPS=0;
18249 GNULIB_GETHOSTNAME=0;
18250 GNULIB_GETLOGIN=0;
18251 GNULIB_GETLOGIN_R=0;
18252 GNULIB_GETPAGESIZE=0;
18253 GNULIB_GETUSERSHELL=0;
18254 GNULIB_GROUP_MEMBER=0;
18255 GNULIB_ISATTY=0;
18256 GNULIB_LCHOWN=0;
18257 GNULIB_LINK=0;
18258 GNULIB_LINKAT=0;
18259 GNULIB_LSEEK=0;
18260 GNULIB_PIPE=0;
18261 GNULIB_PIPE2=0;
18262 GNULIB_PREAD=0;
18263 GNULIB_PWRITE=0;
18264 GNULIB_READ=0;
18265 GNULIB_READLINK=0;
18266 GNULIB_READLINKAT=0;
18267 GNULIB_RMDIR=0;
18268 GNULIB_SETHOSTNAME=0;
18269 GNULIB_SLEEP=0;
18270 GNULIB_SYMLINK=0;
18271 GNULIB_SYMLINKAT=0;
18272 GNULIB_TTYNAME_R=0;
18273 GNULIB_UNISTD_H_NONBLOCKING=0;
18274 GNULIB_UNISTD_H_SIGPIPE=0;
18275 GNULIB_UNLINK=0;
18276 GNULIB_UNLINKAT=0;
18277 GNULIB_USLEEP=0;
18278 GNULIB_WRITE=0;
18279 HAVE_CHOWN=1;
18280 HAVE_DUP2=1;
18281 HAVE_DUP3=1;
18282 HAVE_EUIDACCESS=1;
18283 HAVE_FACCESSAT=1;
18284 HAVE_FCHDIR=1;
18285 HAVE_FCHOWNAT=1;
18286 HAVE_FDATASYNC=1;
18287 HAVE_FSYNC=1;
18288 HAVE_FTRUNCATE=1;
18289 HAVE_GETDTABLESIZE=1;
18290 HAVE_GETGROUPS=1;
18291 HAVE_GETHOSTNAME=1;
18292 HAVE_GETLOGIN=1;
18293 HAVE_GETPAGESIZE=1;
18294 HAVE_GROUP_MEMBER=1;
18295 HAVE_LCHOWN=1;
18296 HAVE_LINK=1;
18297 HAVE_LINKAT=1;
18298 HAVE_PIPE=1;
18299 HAVE_PIPE2=1;
18300 HAVE_PREAD=1;
18301 HAVE_PWRITE=1;
18302 HAVE_READLINK=1;
18303 HAVE_READLINKAT=1;
18304 HAVE_SETHOSTNAME=1;
18305 HAVE_SLEEP=1;
18306 HAVE_SYMLINK=1;
18307 HAVE_SYMLINKAT=1;
18308 HAVE_UNLINKAT=1;
18309 HAVE_USLEEP=1;
18310 HAVE_DECL_ENVIRON=1;
18311 HAVE_DECL_FCHDIR=1;
18312 HAVE_DECL_FDATASYNC=1;
18313 HAVE_DECL_GETDOMAINNAME=1;
18314 HAVE_DECL_GETLOGIN_R=1;
18315 HAVE_DECL_GETPAGESIZE=1;
18316 HAVE_DECL_GETUSERSHELL=1;
18317 HAVE_DECL_SETHOSTNAME=1;
18318 HAVE_DECL_TTYNAME_R=1;
18319 HAVE_OS_H=0;
18320 HAVE_SYS_PARAM_H=0;
18321 REPLACE_CHOWN=0;
18322 REPLACE_CLOSE=0;
18323 REPLACE_DUP=0;
18324 REPLACE_DUP2=0;
18325 REPLACE_FCHOWNAT=0;
18326 REPLACE_FTRUNCATE=0;
18327 REPLACE_GETCWD=0;
18328 REPLACE_GETDOMAINNAME=0;
18329 REPLACE_GETDTABLESIZE=0;
18330 REPLACE_GETLOGIN_R=0;
18331 REPLACE_GETGROUPS=0;
18332 REPLACE_GETPAGESIZE=0;
18333 REPLACE_ISATTY=0;
18334 REPLACE_LCHOWN=0;
18335 REPLACE_LINK=0;
18336 REPLACE_LINKAT=0;
18337 REPLACE_LSEEK=0;
18338 REPLACE_PREAD=0;
18339 REPLACE_PWRITE=0;
18340 REPLACE_READ=0;
18341 REPLACE_READLINK=0;
18342 REPLACE_RMDIR=0;
18343 REPLACE_SLEEP=0;
18344 REPLACE_SYMLINK=0;
18345 REPLACE_TTYNAME_R=0;
18346 REPLACE_UNLINK=0;
18347 REPLACE_UNLINKAT=0;
18348 REPLACE_USLEEP=0;
18349 REPLACE_WRITE=0;
18350 UNISTD_H_HAVE_WINSOCK2_H=0;
18351 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
18352
18353
18354
18355 GNULIB_OPENDIR=0;
18356 GNULIB_READDIR=0;
18357 GNULIB_REWINDDIR=0;
18358 GNULIB_CLOSEDIR=0;
18359 GNULIB_DIRFD=0;
18360 GNULIB_FDOPENDIR=0;
18361 GNULIB_SCANDIR=0;
18362 GNULIB_ALPHASORT=0;
18363 HAVE_OPENDIR=1;
18364 HAVE_READDIR=1;
18365 HAVE_REWINDDIR=1;
18366 HAVE_CLOSEDIR=1;
18367 HAVE_DECL_DIRFD=1;
18368 HAVE_DECL_FDOPENDIR=1;
18369 HAVE_FDOPENDIR=1;
18370 HAVE_SCANDIR=1;
18371 HAVE_ALPHASORT=1;
18372 REPLACE_OPENDIR=0;
18373 REPLACE_CLOSEDIR=0;
18374 REPLACE_DIRFD=0;
18375 REPLACE_FDOPENDIR=0;
18376
18377
18378
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
18380 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
18381 if test "${gl_cv_have_include_next+set}" = set; then :
18382 $as_echo_n "(cached) " >&6
18383 else
18384 rm -rf conftestd1a conftestd1b conftestd2
18385 mkdir conftestd1a conftestd1b conftestd2
18386 cat <<EOF > conftestd1a/conftest.h
18387 #define DEFINED_IN_CONFTESTD1
18388 #include_next <conftest.h>
18389 #ifdef DEFINED_IN_CONFTESTD2
18390 int foo;
18391 #else
18392 #error "include_next doesn't work"
18393 #endif
18394 EOF
18395 cat <<EOF > conftestd1b/conftest.h
18396 #define DEFINED_IN_CONFTESTD1
18397 #include <stdio.h>
18398 #include_next <conftest.h>
18399 #ifdef DEFINED_IN_CONFTESTD2
18400 int foo;
18401 #else
18402 #error "include_next doesn't work"
18403 #endif
18404 EOF
18405 cat <<EOF > conftestd2/conftest.h
18406 #ifndef DEFINED_IN_CONFTESTD1
18407 #error "include_next test doesn't work"
18408 #endif
18409 #define DEFINED_IN_CONFTESTD2
18410 EOF
18411 gl_save_CPPFLAGS="$CPPFLAGS"
18412 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18415 #include <conftest.h>
18416 _ACEOF
18417 if ac_fn_c_try_compile "$LINENO"; then :
18418 gl_cv_have_include_next=yes
18419 else
18420 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18422 /* end confdefs.h. */
18423 #include <conftest.h>
18424 _ACEOF
18425 if ac_fn_c_try_compile "$LINENO"; then :
18426 gl_cv_have_include_next=buggy
18427 else
18428 gl_cv_have_include_next=no
18429 fi
18430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18431
18432 fi
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434 CPPFLAGS="$gl_save_CPPFLAGS"
18435 rm -rf conftestd1a conftestd1b conftestd2
18436
18437 fi
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18439 $as_echo "$gl_cv_have_include_next" >&6; }
18440 PRAGMA_SYSTEM_HEADER=
18441 if test $gl_cv_have_include_next = yes; then
18442 INCLUDE_NEXT=include_next
18443 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18444 if test -n "$GCC"; then
18445 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
18446 fi
18447 else
18448 if test $gl_cv_have_include_next = buggy; then
18449 INCLUDE_NEXT=include
18450 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18451 else
18452 INCLUDE_NEXT=include
18453 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
18454 fi
18455 fi
18456
18457
18458
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18460 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18461 if test "${gl_cv_pragma_columns+set}" = set; then :
18462 $as_echo_n "(cached) " >&6
18463 else
18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466
18467 #ifdef __TANDEM
18468 choke me
18469 #endif
18470
18471 _ACEOF
18472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18473 $EGREP "choke me" >/dev/null 2>&1; then :
18474 gl_cv_pragma_columns=yes
18475 else
18476 gl_cv_pragma_columns=no
18477 fi
18478 rm -f conftest*
18479
18480
18481 fi
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18483 $as_echo "$gl_cv_pragma_columns" >&6; }
18484 if test $gl_cv_pragma_columns = yes; then
18485 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
18486 else
18487 PRAGMA_COLUMNS=
18488 fi
18489
18490
18491
18492
18493
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18495 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18496 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18497 $as_echo_n "(cached) " >&6
18498 else
18499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500 /* end confdefs.h. */
18501 /* On HP-UX before 11.23, strtold returns a struct instead of
18502 long double. Reject implementations like that, by requiring
18503 compatibility with the C99 prototype. */
18504 #include <stdlib.h>
18505 static long double (*p) (char const *, char **) = strtold;
18506 static long double
18507 test (char const *nptr, char **endptr)
18508 {
18509 long double r;
18510 r = strtold (nptr, endptr);
18511 return r;
18512 }
18513 int
18514 main ()
18515 {
18516 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18517 ;
18518 return 0;
18519 }
18520 _ACEOF
18521 if ac_fn_c_try_link "$LINENO"; then :
18522 gl_cv_func_c99_strtold=yes
18523 else
18524 gl_cv_func_c99_strtold=no
18525 fi
18526 rm -f core conftest.err conftest.$ac_objext \
18527 conftest$ac_exeext conftest.$ac_ext
18528 fi
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18530 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18531 if test $gl_cv_func_c99_strtold = yes; then
18532
18533 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18534
18535 fi
18536
18537
18538
18539
18540
18541
18542
18543
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18545 $as_echo_n "checking if environ is properly declared... " >&6; }
18546 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18547 $as_echo_n "(cached) " >&6
18548 else
18549
18550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18551 /* end confdefs.h. */
18552 #if HAVE_UNISTD_H
18553 #include <unistd.h>
18554 #endif
18555 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18556 #include <stdlib.h>
18557
18558 extern struct { int foo; } environ;
18559 int
18560 main ()
18561 {
18562 environ.foo = 1;
18563 ;
18564 return 0;
18565 }
18566 _ACEOF
18567 if ac_fn_c_try_compile "$LINENO"; then :
18568 gt_cv_var_environ_declaration=no
18569 else
18570 gt_cv_var_environ_declaration=yes
18571 fi
18572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18573 fi
18574
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18576 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18577 if test $gt_cv_var_environ_declaration = yes; then
18578
18579 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18580
18581 fi
18582
18583
18584 if test $gt_cv_var_environ_declaration != yes; then
18585 HAVE_DECL_ENVIRON=0
18586 fi
18587
18588
18589
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18591 $as_echo_n "checking for complete errno.h... " >&6; }
18592 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18593 $as_echo_n "(cached) " >&6
18594 else
18595
18596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18598
18599 #include <errno.h>
18600 #if !defined ETXTBSY
18601 booboo
18602 #endif
18603 #if !defined ENOMSG
18604 booboo
18605 #endif
18606 #if !defined EIDRM
18607 booboo
18608 #endif
18609 #if !defined ENOLINK
18610 booboo
18611 #endif
18612 #if !defined EPROTO
18613 booboo
18614 #endif
18615 #if !defined EMULTIHOP
18616 booboo
18617 #endif
18618 #if !defined EBADMSG
18619 booboo
18620 #endif
18621 #if !defined EOVERFLOW
18622 booboo
18623 #endif
18624 #if !defined ENOTSUP
18625 booboo
18626 #endif
18627 #if !defined ENETRESET
18628 booboo
18629 #endif
18630 #if !defined ECONNABORTED
18631 booboo
18632 #endif
18633 #if !defined ESTALE
18634 booboo
18635 #endif
18636 #if !defined EDQUOT
18637 booboo
18638 #endif
18639 #if !defined ECANCELED
18640 booboo
18641 #endif
18642 #if !defined EOWNERDEAD
18643 booboo
18644 #endif
18645 #if !defined ENOTRECOVERABLE
18646 booboo
18647 #endif
18648 #if !defined EILSEQ
18649 booboo
18650 #endif
18651
18652 _ACEOF
18653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18654 $EGREP "booboo" >/dev/null 2>&1; then :
18655 gl_cv_header_errno_h_complete=no
18656 else
18657 gl_cv_header_errno_h_complete=yes
18658 fi
18659 rm -f conftest*
18660
18661
18662 fi
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18664 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18665 if test $gl_cv_header_errno_h_complete = yes; then
18666 ERRNO_H=''
18667 else
18668
18669
18670
18671
18672
18673
18674
18675
18676 if test $gl_cv_have_include_next = yes; then
18677 gl_cv_next_errno_h='<'errno.h'>'
18678 else
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18680 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18681 if test "${gl_cv_next_errno_h+set}" = set; then :
18682 $as_echo_n "(cached) " >&6
18683 else
18684
18685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686 /* end confdefs.h. */
18687 #include <errno.h>
18688
18689 _ACEOF
18690 case "$host_os" in
18691 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18692 *) gl_absname_cpp="$ac_cpp" ;;
18693 esac
18694
18695 case "$host_os" in
18696 mingw*)
18697 gl_dirsep_regex='[/\\]'
18698 ;;
18699 *)
18700 gl_dirsep_regex='\/'
18701 ;;
18702 esac
18703 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18704
18705 gl_header_literal_regex=`echo 'errno.h' \
18706 | sed -e "$gl_make_literal_regex_sed"`
18707 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18708 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18709 s|^/[^/]|//&|
18710 p
18711 q
18712 }'
18713 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18714 sed -n "$gl_absolute_header_sed"`'"'
18715
18716
18717 fi
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18719 $as_echo "$gl_cv_next_errno_h" >&6; }
18720 fi
18721 NEXT_ERRNO_H=$gl_cv_next_errno_h
18722
18723 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18725 gl_next_as_first_directive='<'errno.h'>'
18726 else
18727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18728 gl_next_as_first_directive=$gl_cv_next_errno_h
18729 fi
18730 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
18731
18732
18733
18734
18735 ERRNO_H='errno.h'
18736 fi
18737
18738 if test -n "$ERRNO_H"; then
18739 GL_GENERATE_ERRNO_H_TRUE=
18740 GL_GENERATE_ERRNO_H_FALSE='#'
18741 else
18742 GL_GENERATE_ERRNO_H_TRUE='#'
18743 GL_GENERATE_ERRNO_H_FALSE=
18744 fi
18745
18746
18747 if test -n "$ERRNO_H"; then
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18749 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18750 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18751 $as_echo_n "(cached) " >&6
18752 else
18753
18754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18755 /* end confdefs.h. */
18756
18757 #include <errno.h>
18758 #ifdef EMULTIHOP
18759 yes
18760 #endif
18761
18762 _ACEOF
18763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18764 $EGREP "yes" >/dev/null 2>&1; then :
18765 gl_cv_header_errno_h_EMULTIHOP=yes
18766 else
18767 gl_cv_header_errno_h_EMULTIHOP=no
18768 fi
18769 rm -f conftest*
18770
18771 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
18772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773 /* end confdefs.h. */
18774
18775 #define _XOPEN_SOURCE_EXTENDED 1
18776 #include <errno.h>
18777 #ifdef EMULTIHOP
18778 yes
18779 #endif
18780
18781 _ACEOF
18782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18783 $EGREP "yes" >/dev/null 2>&1; then :
18784 gl_cv_header_errno_h_EMULTIHOP=hidden
18785 fi
18786 rm -f conftest*
18787
18788 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
18789 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18790 #define _XOPEN_SOURCE_EXTENDED 1
18791 #include <errno.h>
18792 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18793 #include <stdio.h>
18794 #include <stdlib.h>
18795 "; then :
18796
18797 fi
18798
18799 fi
18800 fi
18801
18802 fi
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18804 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18805 case $gl_cv_header_errno_h_EMULTIHOP in
18806 yes | no)
18807 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
18808 ;;
18809 *)
18810 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
18811 ;;
18812 esac
18813
18814
18815 fi
18816
18817
18818 if test -n "$ERRNO_H"; then
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18820 $as_echo_n "checking for ENOLINK value... " >&6; }
18821 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18822 $as_echo_n "(cached) " >&6
18823 else
18824
18825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18826 /* end confdefs.h. */
18827
18828 #include <errno.h>
18829 #ifdef ENOLINK
18830 yes
18831 #endif
18832
18833 _ACEOF
18834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18835 $EGREP "yes" >/dev/null 2>&1; then :
18836 gl_cv_header_errno_h_ENOLINK=yes
18837 else
18838 gl_cv_header_errno_h_ENOLINK=no
18839 fi
18840 rm -f conftest*
18841
18842 if test $gl_cv_header_errno_h_ENOLINK = no; then
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18845
18846 #define _XOPEN_SOURCE_EXTENDED 1
18847 #include <errno.h>
18848 #ifdef ENOLINK
18849 yes
18850 #endif
18851
18852 _ACEOF
18853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18854 $EGREP "yes" >/dev/null 2>&1; then :
18855 gl_cv_header_errno_h_ENOLINK=hidden
18856 fi
18857 rm -f conftest*
18858
18859 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
18860 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18861 #define _XOPEN_SOURCE_EXTENDED 1
18862 #include <errno.h>
18863 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18864 #include <stdio.h>
18865 #include <stdlib.h>
18866 "; then :
18867
18868 fi
18869
18870 fi
18871 fi
18872
18873 fi
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18875 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18876 case $gl_cv_header_errno_h_ENOLINK in
18877 yes | no)
18878 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18879 ;;
18880 *)
18881 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18882 ;;
18883 esac
18884
18885
18886 fi
18887
18888
18889 if test -n "$ERRNO_H"; then
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18891 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18892 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18893 $as_echo_n "(cached) " >&6
18894 else
18895
18896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18897 /* end confdefs.h. */
18898
18899 #include <errno.h>
18900 #ifdef EOVERFLOW
18901 yes
18902 #endif
18903
18904 _ACEOF
18905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18906 $EGREP "yes" >/dev/null 2>&1; then :
18907 gl_cv_header_errno_h_EOVERFLOW=yes
18908 else
18909 gl_cv_header_errno_h_EOVERFLOW=no
18910 fi
18911 rm -f conftest*
18912
18913 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18915 /* end confdefs.h. */
18916
18917 #define _XOPEN_SOURCE_EXTENDED 1
18918 #include <errno.h>
18919 #ifdef EOVERFLOW
18920 yes
18921 #endif
18922
18923 _ACEOF
18924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18925 $EGREP "yes" >/dev/null 2>&1; then :
18926 gl_cv_header_errno_h_EOVERFLOW=hidden
18927 fi
18928 rm -f conftest*
18929
18930 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18931 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18932 #define _XOPEN_SOURCE_EXTENDED 1
18933 #include <errno.h>
18934 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18935 #include <stdio.h>
18936 #include <stdlib.h>
18937 "; then :
18938
18939 fi
18940
18941 fi
18942 fi
18943
18944 fi
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18946 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18947 case $gl_cv_header_errno_h_EOVERFLOW in
18948 yes | no)
18949 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18950 ;;
18951 *)
18952 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18953 ;;
18954 esac
18955
18956
18957 fi
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968 GNULIB_FCNTL=0;
18969 GNULIB_NONBLOCKING=0;
18970 GNULIB_OPEN=0;
18971 GNULIB_OPENAT=0;
18972 HAVE_FCNTL=1;
18973 HAVE_OPENAT=1;
18974 REPLACE_FCNTL=0;
18975 REPLACE_OPEN=0;
18976 REPLACE_OPENAT=0;
18977
18978
18979
18980
18981 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18982 if test "x$ac_cv_type_mode_t" = x""yes; then :
18983
18984 else
18985
18986 cat >>confdefs.h <<_ACEOF
18987 #define mode_t int
18988 _ACEOF
18989
18990 fi
18991
18992 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18993 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
18994 ac_have_decl=1
18995 else
18996 ac_have_decl=0
18997 fi
18998
18999 cat >>confdefs.h <<_ACEOF
19000 #define HAVE_DECL_FDATASYNC $ac_have_decl
19001 _ACEOF
19002
19003
19004
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
19006 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
19007 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
19008 $as_echo_n "(cached) " >&6
19009 else
19010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19011 /* end confdefs.h. */
19012
19013 #include <sys/types.h>
19014 #include <sys/stat.h>
19015 int
19016 main ()
19017 {
19018 struct stat s; s.st_dm_mode;
19019 ;
19020 return 0;
19021 }
19022 _ACEOF
19023 if ac_fn_c_try_compile "$LINENO"; then :
19024 ac_cv_struct_st_dm_mode=yes
19025 else
19026 ac_cv_struct_st_dm_mode=no
19027 fi
19028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19029 fi
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
19031 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
19032
19033 if test $ac_cv_struct_st_dm_mode = yes; then
19034
19035 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
19036
19037 fi
19038
19039
19040 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
19041 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
19042 ac_have_decl=1
19043 else
19044 ac_have_decl=0
19045 fi
19046
19047 cat >>confdefs.h <<_ACEOF
19048 #define HAVE_DECL_STRMODE $ac_have_decl
19049 _ACEOF
19050
19051
19052
19053
19054 GNULIB_FCHMODAT=0;
19055 GNULIB_FSTAT=0;
19056 GNULIB_FSTATAT=0;
19057 GNULIB_FUTIMENS=0;
19058 GNULIB_LCHMOD=0;
19059 GNULIB_LSTAT=0;
19060 GNULIB_MKDIRAT=0;
19061 GNULIB_MKFIFO=0;
19062 GNULIB_MKFIFOAT=0;
19063 GNULIB_MKNOD=0;
19064 GNULIB_MKNODAT=0;
19065 GNULIB_STAT=0;
19066 GNULIB_UTIMENSAT=0;
19067 HAVE_FCHMODAT=1;
19068 HAVE_FSTATAT=1;
19069 HAVE_FUTIMENS=1;
19070 HAVE_LCHMOD=1;
19071 HAVE_LSTAT=1;
19072 HAVE_MKDIRAT=1;
19073 HAVE_MKFIFO=1;
19074 HAVE_MKFIFOAT=1;
19075 HAVE_MKNOD=1;
19076 HAVE_MKNODAT=1;
19077 HAVE_UTIMENSAT=1;
19078 REPLACE_FSTAT=0;
19079 REPLACE_FSTATAT=0;
19080 REPLACE_FUTIMENS=0;
19081 REPLACE_LSTAT=0;
19082 REPLACE_MKDIR=0;
19083 REPLACE_MKFIFO=0;
19084 REPLACE_MKNOD=0;
19085 REPLACE_STAT=0;
19086 REPLACE_UTIMENSAT=0;
19087
19088
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19090 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19091 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19092 $as_echo_n "(cached) " >&6
19093 else
19094 rm -f conftest.sym conftest.file
19095 echo >conftest.file
19096 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19097 if test "$cross_compiling" = yes; then :
19098 case "$host_os" in
19099 # Guess yes on glibc systems.
19100 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19101 # If we don't know, assume the worst.
19102 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19103 esac
19104
19105 else
19106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h. */
19108 $ac_includes_default
19109 int
19110 main ()
19111 {
19112 struct stat sbuf;
19113 /* Linux will dereference the symlink and fail, as required by
19114 POSIX. That is better in the sense that it means we will not
19115 have to compile and use the lstat wrapper. */
19116 return lstat ("conftest.sym/", &sbuf) == 0;
19117
19118 ;
19119 return 0;
19120 }
19121 _ACEOF
19122 if ac_fn_c_try_run "$LINENO"; then :
19123 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19124 else
19125 gl_cv_func_lstat_dereferences_slashed_symlink=no
19126 fi
19127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19128 conftest.$ac_objext conftest.beam conftest.$ac_ext
19129 fi
19130
19131 else
19132 # If the 'ln -s' command failed, then we probably don't even
19133 # have an lstat function.
19134 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
19135 fi
19136 rm -f conftest.sym conftest.file
19137
19138 fi
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19140 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19141 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19142 *yes)
19143
19144 cat >>confdefs.h <<_ACEOF
19145 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19146 _ACEOF
19147
19148 ;;
19149 esac
19150
19151
19152
19153
19154
19155
19156 GNULIB__EXIT=0;
19157 GNULIB_ATOLL=0;
19158 GNULIB_CALLOC_POSIX=0;
19159 GNULIB_CANONICALIZE_FILE_NAME=0;
19160 GNULIB_GETLOADAVG=0;
19161 GNULIB_GETSUBOPT=0;
19162 GNULIB_GRANTPT=0;
19163 GNULIB_MALLOC_POSIX=0;
19164 GNULIB_MBTOWC=0;
19165 GNULIB_MKDTEMP=0;
19166 GNULIB_MKOSTEMP=0;
19167 GNULIB_MKOSTEMPS=0;
19168 GNULIB_MKSTEMP=0;
19169 GNULIB_MKSTEMPS=0;
19170 GNULIB_POSIX_OPENPT=0;
19171 GNULIB_PTSNAME=0;
19172 GNULIB_PTSNAME_R=0;
19173 GNULIB_PUTENV=0;
19174 GNULIB_RANDOM=0;
19175 GNULIB_RANDOM_R=0;
19176 GNULIB_REALLOC_POSIX=0;
19177 GNULIB_REALPATH=0;
19178 GNULIB_RPMATCH=0;
19179 GNULIB_SECURE_GETENV=0;
19180 GNULIB_SETENV=0;
19181 GNULIB_STRTOD=0;
19182 GNULIB_STRTOLL=0;
19183 GNULIB_STRTOULL=0;
19184 GNULIB_SYSTEM_POSIX=0;
19185 GNULIB_UNLOCKPT=0;
19186 GNULIB_UNSETENV=0;
19187 GNULIB_WCTOMB=0;
19188 HAVE__EXIT=1;
19189 HAVE_ATOLL=1;
19190 HAVE_CANONICALIZE_FILE_NAME=1;
19191 HAVE_DECL_GETLOADAVG=1;
19192 HAVE_GETSUBOPT=1;
19193 HAVE_GRANTPT=1;
19194 HAVE_MKDTEMP=1;
19195 HAVE_MKOSTEMP=1;
19196 HAVE_MKOSTEMPS=1;
19197 HAVE_MKSTEMP=1;
19198 HAVE_MKSTEMPS=1;
19199 HAVE_POSIX_OPENPT=1;
19200 HAVE_PTSNAME=1;
19201 HAVE_PTSNAME_R=1;
19202 HAVE_RANDOM=1;
19203 HAVE_RANDOM_H=1;
19204 HAVE_RANDOM_R=1;
19205 HAVE_REALPATH=1;
19206 HAVE_RPMATCH=1;
19207 HAVE_SECURE_GETENV=1;
19208 HAVE_SETENV=1;
19209 HAVE_DECL_SETENV=1;
19210 HAVE_STRTOD=1;
19211 HAVE_STRTOLL=1;
19212 HAVE_STRTOULL=1;
19213 HAVE_STRUCT_RANDOM_DATA=1;
19214 HAVE_SYS_LOADAVG_H=0;
19215 HAVE_UNLOCKPT=1;
19216 HAVE_DECL_UNSETENV=1;
19217 REPLACE_CALLOC=0;
19218 REPLACE_CANONICALIZE_FILE_NAME=0;
19219 REPLACE_MALLOC=0;
19220 REPLACE_MBTOWC=0;
19221 REPLACE_MKSTEMP=0;
19222 REPLACE_PTSNAME=0;
19223 REPLACE_PTSNAME_R=0;
19224 REPLACE_PUTENV=0;
19225 REPLACE_RANDOM_R=0;
19226 REPLACE_REALLOC=0;
19227 REPLACE_REALPATH=0;
19228 REPLACE_SETENV=0;
19229 REPLACE_STRTOD=0;
19230 REPLACE_UNSETENV=0;
19231 REPLACE_WCTOMB=0;
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248 if test $gl_cv_have_include_next = yes; then
19249 gl_cv_next_getopt_h='<'getopt.h'>'
19250 else
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
19252 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
19253 if test "${gl_cv_next_getopt_h+set}" = set; then :
19254 $as_echo_n "(cached) " >&6
19255 else
19256
19257 if test $ac_cv_header_getopt_h = yes; then
19258
19259
19260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19261 /* end confdefs.h. */
19262 #include <getopt.h>
19263
19264 _ACEOF
19265 case "$host_os" in
19266 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19267 *) gl_absname_cpp="$ac_cpp" ;;
19268 esac
19269
19270 case "$host_os" in
19271 mingw*)
19272 gl_dirsep_regex='[/\\]'
19273 ;;
19274 *)
19275 gl_dirsep_regex='\/'
19276 ;;
19277 esac
19278 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19279
19280 gl_header_literal_regex=`echo 'getopt.h' \
19281 | sed -e "$gl_make_literal_regex_sed"`
19282 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19283 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19284 s|^/[^/]|//&|
19285 p
19286 q
19287 }'
19288 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19289 sed -n "$gl_absolute_header_sed"`'"'
19290 else
19291 gl_cv_next_getopt_h='<'getopt.h'>'
19292 fi
19293
19294
19295 fi
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
19297 $as_echo "$gl_cv_next_getopt_h" >&6; }
19298 fi
19299 NEXT_GETOPT_H=$gl_cv_next_getopt_h
19300
19301 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19302 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19303 gl_next_as_first_directive='<'getopt.h'>'
19304 else
19305 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19306 gl_next_as_first_directive=$gl_cv_next_getopt_h
19307 fi
19308 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
19309
19310
19311
19312
19313 if test $ac_cv_header_getopt_h = yes; then
19314 HAVE_GETOPT_H=1
19315 else
19316 HAVE_GETOPT_H=0
19317 fi
19318
19319
19320 gl_replace_getopt=
19321
19322 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19323 for ac_header in getopt.h
19324 do :
19325 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
19326 if test "x$ac_cv_header_getopt_h" = x""yes; then :
19327 cat >>confdefs.h <<_ACEOF
19328 #define HAVE_GETOPT_H 1
19329 _ACEOF
19330
19331 else
19332 gl_replace_getopt=yes
19333 fi
19334
19335 done
19336
19337 fi
19338
19339 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19340 for ac_func in getopt_long_only
19341 do :
19342 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
19343 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
19344 cat >>confdefs.h <<_ACEOF
19345 #define HAVE_GETOPT_LONG_ONLY 1
19346 _ACEOF
19347
19348 else
19349 gl_replace_getopt=yes
19350 fi
19351 done
19352
19353 fi
19354
19355 if test -z "$gl_replace_getopt"; then
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
19357 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
19358 if test "${gl_cv_func_getopt_posix+set}" = set; then :
19359 $as_echo_n "(cached) " >&6
19360 else
19361
19362 if test $cross_compiling = no; then
19363 if test "$cross_compiling" = yes; then :
19364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19366 as_fn_error "cannot run test program while cross compiling
19367 See \`config.log' for more details." "$LINENO" 5; }
19368 else
19369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h. */
19371
19372 #include <unistd.h>
19373 #include <stdlib.h>
19374 #include <string.h>
19375
19376 int
19377 main ()
19378 {
19379 static char program[] = "program";
19380 static char a[] = "-a";
19381 static char foo[] = "foo";
19382 static char bar[] = "bar";
19383 char *argv[] = { program, a, foo, bar, NULL };
19384 int c;
19385
19386 c = getopt (4, argv, "ab");
19387 if (!(c == 'a'))
19388 return 1;
19389 c = getopt (4, argv, "ab");
19390 if (!(c == -1))
19391 return 2;
19392 if (!(optind == 2))
19393 return 3;
19394 return 0;
19395 }
19396
19397 _ACEOF
19398 if ac_fn_c_try_run "$LINENO"; then :
19399 gl_cv_func_getopt_posix=maybe
19400 else
19401 gl_cv_func_getopt_posix=no
19402 fi
19403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19404 conftest.$ac_objext conftest.beam conftest.$ac_ext
19405 fi
19406
19407 if test $gl_cv_func_getopt_posix = maybe; then
19408 if test "$cross_compiling" = yes; then :
19409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19411 as_fn_error "cannot run test program while cross compiling
19412 See \`config.log' for more details." "$LINENO" 5; }
19413 else
19414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h. */
19416
19417 #include <unistd.h>
19418 #include <stdlib.h>
19419 #include <string.h>
19420
19421 int
19422 main ()
19423 {
19424 static char program[] = "program";
19425 static char donald[] = "donald";
19426 static char p[] = "-p";
19427 static char billy[] = "billy";
19428 static char duck[] = "duck";
19429 static char a[] = "-a";
19430 static char bar[] = "bar";
19431 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19432 int c;
19433
19434 c = getopt (7, argv, "+abp:q:");
19435 if (!(c == -1))
19436 return 4;
19437 if (!(strcmp (argv[0], "program") == 0))
19438 return 5;
19439 if (!(strcmp (argv[1], "donald") == 0))
19440 return 6;
19441 if (!(strcmp (argv[2], "-p") == 0))
19442 return 7;
19443 if (!(strcmp (argv[3], "billy") == 0))
19444 return 8;
19445 if (!(strcmp (argv[4], "duck") == 0))
19446 return 9;
19447 if (!(strcmp (argv[5], "-a") == 0))
19448 return 10;
19449 if (!(strcmp (argv[6], "bar") == 0))
19450 return 11;
19451 if (!(optind == 1))
19452 return 12;
19453 return 0;
19454 }
19455
19456 _ACEOF
19457 if ac_fn_c_try_run "$LINENO"; then :
19458 gl_cv_func_getopt_posix=maybe
19459 else
19460 gl_cv_func_getopt_posix=no
19461 fi
19462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19463 conftest.$ac_objext conftest.beam conftest.$ac_ext
19464 fi
19465
19466 fi
19467 if test $gl_cv_func_getopt_posix = maybe; then
19468 if test "$cross_compiling" = yes; then :
19469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19471 as_fn_error "cannot run test program while cross compiling
19472 See \`config.log' for more details." "$LINENO" 5; }
19473 else
19474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19476
19477 #include <unistd.h>
19478 #include <stdlib.h>
19479 #include <string.h>
19480
19481 int
19482 main ()
19483 {
19484 static char program[] = "program";
19485 static char ab[] = "-ab";
19486 char *argv[3] = { program, ab, NULL };
19487 if (getopt (2, argv, "ab:") != 'a')
19488 return 13;
19489 if (getopt (2, argv, "ab:") != '?')
19490 return 14;
19491 if (optopt != 'b')
19492 return 15;
19493 if (optind != 2)
19494 return 16;
19495 return 0;
19496 }
19497
19498 _ACEOF
19499 if ac_fn_c_try_run "$LINENO"; then :
19500 gl_cv_func_getopt_posix=yes
19501 else
19502 gl_cv_func_getopt_posix=no
19503 fi
19504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19505 conftest.$ac_objext conftest.beam conftest.$ac_ext
19506 fi
19507
19508 fi
19509 else
19510 case "$host_os" in
19511 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
19512 *) gl_cv_func_getopt_posix="guessing yes";;
19513 esac
19514 fi
19515
19516 fi
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19518 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19519 case "$gl_cv_func_getopt_posix" in
19520 *no) gl_replace_getopt=yes ;;
19521 esac
19522 fi
19523
19524 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19526 $as_echo_n "checking for working GNU getopt function... " >&6; }
19527 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19528 $as_echo_n "(cached) " >&6
19529 else
19530 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19531 # optstring is necessary for programs like m4 that have POSIX-mandated
19532 # semantics for supporting options interspersed with files.
19533 # Also, since getopt_long is a GNU extension, we require optind=0.
19534 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19535 # so take care to revert to the correct (non-)export state.
19536 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19537 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19538 xx) gl_had_POSIXLY_CORRECT=exported ;;
19539 x) gl_had_POSIXLY_CORRECT=yes ;;
19540 *) gl_had_POSIXLY_CORRECT= ;;
19541 esac
19542 POSIXLY_CORRECT=1
19543 export POSIXLY_CORRECT
19544 if test "$cross_compiling" = yes; then :
19545 gl_cv_func_getopt_gnu="guessing no"
19546
19547 else
19548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h. */
19550 #include <getopt.h>
19551 #include <stddef.h>
19552 #include <string.h>
19553
19554 #include <stdlib.h>
19555 #if defined __MACH__ && defined __APPLE__
19556 /* Avoid a crash on Mac OS X. */
19557 #include <mach/mach.h>
19558 #include <mach/mach_error.h>
19559 #include <mach/thread_status.h>
19560 #include <mach/exception.h>
19561 #include <mach/task.h>
19562 #include <pthread.h>
19563 /* The exception port on which our thread listens. */
19564 static mach_port_t our_exception_port;
19565 /* The main function of the thread listening for exceptions of type
19566 EXC_BAD_ACCESS. */
19567 static void *
19568 mach_exception_thread (void *arg)
19569 {
19570 /* Buffer for a message to be received. */
19571 struct {
19572 mach_msg_header_t head;
19573 mach_msg_body_t msgh_body;
19574 char data[1024];
19575 } msg;
19576 mach_msg_return_t retval;
19577 /* Wait for a message on the exception port. */
19578 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19579 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19580 if (retval != MACH_MSG_SUCCESS)
19581 abort ();
19582 exit (1);
19583 }
19584 static void
19585 nocrash_init (void)
19586 {
19587 mach_port_t self = mach_task_self ();
19588 /* Allocate a port on which the thread shall listen for exceptions. */
19589 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19590 == KERN_SUCCESS) {
19591 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19592 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19593 MACH_MSG_TYPE_MAKE_SEND)
19594 == KERN_SUCCESS) {
19595 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19596 for us. */
19597 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19598 /* Create the thread listening on the exception port. */
19599 pthread_attr_t attr;
19600 pthread_t thread;
19601 if (pthread_attr_init (&attr) == 0
19602 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19603 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19604 pthread_attr_destroy (&attr);
19605 /* Replace the exception port info for these exceptions with our own.
19606 Note that we replace the exception port for the entire task, not only
19607 for a particular thread. This has the effect that when our exception
19608 port gets the message, the thread specific exception port has already
19609 been asked, and we don't need to bother about it.
19610 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19611 task_set_exception_ports (self, mask, our_exception_port,
19612 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19613 }
19614 }
19615 }
19616 }
19617 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19618 /* Avoid a crash on native Windows. */
19619 #define WIN32_LEAN_AND_MEAN
19620 #include <windows.h>
19621 #include <winerror.h>
19622 static LONG WINAPI
19623 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19624 {
19625 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19626 {
19627 case EXCEPTION_ACCESS_VIOLATION:
19628 case EXCEPTION_IN_PAGE_ERROR:
19629 case EXCEPTION_STACK_OVERFLOW:
19630 case EXCEPTION_GUARD_PAGE:
19631 case EXCEPTION_PRIV_INSTRUCTION:
19632 case EXCEPTION_ILLEGAL_INSTRUCTION:
19633 case EXCEPTION_DATATYPE_MISALIGNMENT:
19634 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19635 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19636 exit (1);
19637 }
19638 return EXCEPTION_CONTINUE_SEARCH;
19639 }
19640 static void
19641 nocrash_init (void)
19642 {
19643 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19644 }
19645 #else
19646 /* Avoid a crash on POSIX systems. */
19647 #include <signal.h>
19648 /* A POSIX signal handler. */
19649 static void
19650 exception_handler (int sig)
19651 {
19652 exit (1);
19653 }
19654 static void
19655 nocrash_init (void)
19656 {
19657 #ifdef SIGSEGV
19658 signal (SIGSEGV, exception_handler);
19659 #endif
19660 #ifdef SIGBUS
19661 signal (SIGBUS, exception_handler);
19662 #endif
19663 }
19664 #endif
19665
19666
19667 int
19668 main ()
19669 {
19670
19671 int result = 0;
19672
19673 nocrash_init();
19674
19675 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19676 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19677 OSF/1 5.1, Solaris 10. */
19678 {
19679 static char conftest[] = "conftest";
19680 static char plus[] = "-+";
19681 char *argv[3] = { conftest, plus, NULL };
19682 opterr = 0;
19683 if (getopt (2, argv, "+a") != '?')
19684 result |= 1;
19685 }
19686 /* This code succeeds on glibc 2.8, mingw,
19687 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19688 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19689 {
19690 static char program[] = "program";
19691 static char p[] = "-p";
19692 static char foo[] = "foo";
19693 static char bar[] = "bar";
19694 char *argv[] = { program, p, foo, bar, NULL };
19695
19696 optind = 1;
19697 if (getopt (4, argv, "p::") != 'p')
19698 result |= 2;
19699 else if (optarg != NULL)
19700 result |= 4;
19701 else if (getopt (4, argv, "p::") != -1)
19702 result |= 6;
19703 else if (optind != 2)
19704 result |= 8;
19705 }
19706 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19707 {
19708 static char program[] = "program";
19709 static char foo[] = "foo";
19710 static char p[] = "-p";
19711 char *argv[] = { program, foo, p, NULL };
19712 optind = 0;
19713 if (getopt (3, argv, "-p") != 1)
19714 result |= 16;
19715 else if (getopt (3, argv, "-p") != 'p')
19716 result |= 16;
19717 }
19718 /* This code fails on glibc 2.11. */
19719 {
19720 static char program[] = "program";
19721 static char b[] = "-b";
19722 static char a[] = "-a";
19723 char *argv[] = { program, b, a, NULL };
19724 optind = opterr = 0;
19725 if (getopt (3, argv, "+:a:b") != 'b')
19726 result |= 32;
19727 else if (getopt (3, argv, "+:a:b") != ':')
19728 result |= 32;
19729 }
19730 /* This code dumps core on glibc 2.14. */
19731 {
19732 static char program[] = "program";
19733 static char w[] = "-W";
19734 static char dummy[] = "dummy";
19735 char *argv[] = { program, w, dummy, NULL };
19736 optind = opterr = 1;
19737 if (getopt (3, argv, "W;") != 'W')
19738 result |= 64;
19739 }
19740 return result;
19741
19742 ;
19743 return 0;
19744 }
19745 _ACEOF
19746 if ac_fn_c_try_run "$LINENO"; then :
19747 gl_cv_func_getopt_gnu=yes
19748 else
19749 gl_cv_func_getopt_gnu=no
19750 fi
19751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19752 conftest.$ac_objext conftest.beam conftest.$ac_ext
19753 fi
19754
19755 case $gl_had_POSIXLY_CORRECT in
19756 exported) ;;
19757 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
19758 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
19759 esac
19760
19761 fi
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19763 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19764 if test "$gl_cv_func_getopt_gnu" != yes; then
19765 gl_replace_getopt=yes
19766 else
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19768 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19769 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19770 $as_echo_n "(cached) " >&6
19771 else
19772 if test "$cross_compiling" = yes; then :
19773 case "$host_os" in
19774 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
19775 *) gl_cv_func_getopt_long_gnu="guessing yes";;
19776 esac
19777
19778 else
19779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19780 /* end confdefs.h. */
19781 #include <getopt.h>
19782 #include <stddef.h>
19783 #include <string.h>
19784
19785 int
19786 main ()
19787 {
19788 static const struct option long_options[] =
19789 {
19790 { "xtremely-",no_argument, NULL, 1003 },
19791 { "xtra", no_argument, NULL, 1001 },
19792 { "xtreme", no_argument, NULL, 1002 },
19793 { "xtremely", no_argument, NULL, 1003 },
19794 { NULL, 0, NULL, 0 }
19795 };
19796 /* This code fails on OpenBSD 5.0. */
19797 {
19798 static char program[] = "program";
19799 static char xtremel[] = "--xtremel";
19800 char *argv[] = { program, xtremel, NULL };
19801 int option_index;
19802 optind = 1; opterr = 0;
19803 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19804 return 1;
19805 }
19806 return 0;
19807
19808 ;
19809 return 0;
19810 }
19811 _ACEOF
19812 if ac_fn_c_try_run "$LINENO"; then :
19813 gl_cv_func_getopt_long_gnu=yes
19814 else
19815 gl_cv_func_getopt_long_gnu=no
19816 fi
19817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19818 conftest.$ac_objext conftest.beam conftest.$ac_ext
19819 fi
19820
19821
19822 fi
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19824 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19825 case "$gl_cv_func_getopt_long_gnu" in
19826 *yes) ;;
19827 *) gl_replace_getopt=yes ;;
19828 esac
19829 fi
19830 fi
19831
19832
19833
19834
19835
19836
19837 REPLACE_GETOPT=0
19838 if test -n "$gl_replace_getopt"; then
19839 REPLACE_GETOPT=1
19840 fi
19841
19842 if test $REPLACE_GETOPT = 1; then
19843
19844 GETOPT_H=getopt.h
19845
19846 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19847
19848
19849
19850 fi
19851
19852 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19853 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
19854 ac_have_decl=1
19855 else
19856 ac_have_decl=0
19857 fi
19858
19859 cat >>confdefs.h <<_ACEOF
19860 #define HAVE_DECL_GETENV $ac_have_decl
19861 _ACEOF
19862
19863 :
19864
19865
19866
19867
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19869 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19870 if test "${ac_cv_c_restrict+set}" = set; then :
19871 $as_echo_n "(cached) " >&6
19872 else
19873 ac_cv_c_restrict=no
19874 # The order here caters to the fact that C++ does not require restrict.
19875 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19877 /* end confdefs.h. */
19878 typedef int * int_ptr;
19879 int foo (int_ptr $ac_kw ip) {
19880 return ip[0];
19881 }
19882 int
19883 main ()
19884 {
19885 int s[1];
19886 int * $ac_kw t = s;
19887 t[0] = 0;
19888 return foo(t)
19889 ;
19890 return 0;
19891 }
19892 _ACEOF
19893 if ac_fn_c_try_compile "$LINENO"; then :
19894 ac_cv_c_restrict=$ac_kw
19895 fi
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 test "$ac_cv_c_restrict" != no && break
19898 done
19899
19900 fi
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19902 $as_echo "$ac_cv_c_restrict" >&6; }
19903
19904 case $ac_cv_c_restrict in
19905 restrict) ;;
19906 no) $as_echo "#define restrict /**/" >>confdefs.h
19907 ;;
19908 *) cat >>confdefs.h <<_ACEOF
19909 #define restrict $ac_cv_c_restrict
19910 _ACEOF
19911 ;;
19912 esac
19913
19914
19915 GNULIB_GETTIMEOFDAY=0;
19916 HAVE_GETTIMEOFDAY=1;
19917 HAVE_STRUCT_TIMEVAL=1;
19918 HAVE_SYS_TIME_H=1;
19919 REPLACE_GETTIMEOFDAY=0;
19920 REPLACE_STRUCT_TIMEVAL=0;
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937 if test $gl_cv_have_include_next = yes; then
19938 gl_cv_next_sys_time_h='<'sys/time.h'>'
19939 else
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19941 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19942 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19943 $as_echo_n "(cached) " >&6
19944 else
19945
19946 if test $ac_cv_header_sys_time_h = yes; then
19947
19948
19949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19950 /* end confdefs.h. */
19951 #include <sys/time.h>
19952
19953 _ACEOF
19954 case "$host_os" in
19955 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19956 *) gl_absname_cpp="$ac_cpp" ;;
19957 esac
19958
19959 case "$host_os" in
19960 mingw*)
19961 gl_dirsep_regex='[/\\]'
19962 ;;
19963 *)
19964 gl_dirsep_regex='\/'
19965 ;;
19966 esac
19967 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19968
19969 gl_header_literal_regex=`echo 'sys/time.h' \
19970 | sed -e "$gl_make_literal_regex_sed"`
19971 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19972 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19973 s|^/[^/]|//&|
19974 p
19975 q
19976 }'
19977 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19978 sed -n "$gl_absolute_header_sed"`'"'
19979 else
19980 gl_cv_next_sys_time_h='<'sys/time.h'>'
19981 fi
19982
19983
19984 fi
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19986 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19987 fi
19988 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19989
19990 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19991 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19992 gl_next_as_first_directive='<'sys/time.h'>'
19993 else
19994 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19995 gl_next_as_first_directive=$gl_cv_next_sys_time_h
19996 fi
19997 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19998
19999
20000
20001
20002
20003 if test $ac_cv_header_sys_time_h != yes; then
20004 HAVE_SYS_TIME_H=0
20005 fi
20006
20007
20008
20009
20010
20011 if test $ac_cv_header_sys_socket_h != yes; then
20012 for ac_header in winsock2.h
20013 do :
20014 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20015 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
20016 cat >>confdefs.h <<_ACEOF
20017 #define HAVE_WINSOCK2_H 1
20018 _ACEOF
20019
20020 fi
20021
20022 done
20023
20024 fi
20025 if test "$ac_cv_header_winsock2_h" = yes; then
20026 HAVE_WINSOCK2_H=1
20027 UNISTD_H_HAVE_WINSOCK2_H=1
20028 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
20029 else
20030 HAVE_WINSOCK2_H=0
20031 fi
20032
20033
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
20035 $as_echo_n "checking for struct timeval... " >&6; }
20036 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
20037 $as_echo_n "(cached) " >&6
20038 else
20039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h. */
20041 #if HAVE_SYS_TIME_H
20042 #include <sys/time.h>
20043 #endif
20044 #include <time.h>
20045 #if HAVE_WINSOCK2_H
20046 # include <winsock2.h>
20047 #endif
20048
20049 int
20050 main ()
20051 {
20052 static struct timeval x; x.tv_sec = x.tv_usec;
20053 ;
20054 return 0;
20055 }
20056 _ACEOF
20057 if ac_fn_c_try_compile "$LINENO"; then :
20058 gl_cv_sys_struct_timeval=yes
20059 else
20060 gl_cv_sys_struct_timeval=no
20061 fi
20062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20063
20064 fi
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
20066 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
20067 if test $gl_cv_sys_struct_timeval != yes; then
20068 HAVE_STRUCT_TIMEVAL=0
20069 else
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
20071 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
20072 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
20073 $as_echo_n "(cached) " >&6
20074 else
20075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20076 /* end confdefs.h. */
20077 #if HAVE_SYS_TIME_H
20078 #include <sys/time.h>
20079 #endif
20080 #include <time.h>
20081 #if HAVE_WINSOCK2_H
20082 # include <winsock2.h>
20083 #endif
20084
20085 int
20086 main ()
20087 {
20088 static struct timeval x;
20089 typedef int verify_tv_sec_type[
20090 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
20091 ];
20092
20093 ;
20094 return 0;
20095 }
20096 _ACEOF
20097 if ac_fn_c_try_compile "$LINENO"; then :
20098 gl_cv_sys_struct_timeval_tv_sec=yes
20099 else
20100 gl_cv_sys_struct_timeval_tv_sec=no
20101 fi
20102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20103
20104 fi
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
20106 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
20107 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
20108 REPLACE_STRUCT_TIMEVAL=1
20109 fi
20110 fi
20111
20112
20113
20114
20115
20116
20117
20118
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20120 $as_echo_n "checking for long long int... " >&6; }
20121 if test "${ac_cv_type_long_long_int+set}" = set; then :
20122 $as_echo_n "(cached) " >&6
20123 else
20124 ac_cv_type_long_long_int=yes
20125 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20126 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20127 if test $ac_cv_type_long_long_int = yes; then
20128 if test "$cross_compiling" = yes; then :
20129 :
20130 else
20131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132 /* end confdefs.h. */
20133 #include <limits.h>
20134 #ifndef LLONG_MAX
20135 # define HALF \
20136 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20137 # define LLONG_MAX (HALF - 1 + HALF)
20138 #endif
20139 int
20140 main ()
20141 {
20142 long long int n = 1;
20143 int i;
20144 for (i = 0; ; i++)
20145 {
20146 long long int m = n << i;
20147 if (m >> i != n)
20148 return 1;
20149 if (LLONG_MAX / 2 < m)
20150 break;
20151 }
20152 return 0;
20153 ;
20154 return 0;
20155 }
20156 _ACEOF
20157 if ac_fn_c_try_run "$LINENO"; then :
20158
20159 else
20160 ac_cv_type_long_long_int=no
20161 fi
20162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20163 conftest.$ac_objext conftest.beam conftest.$ac_ext
20164 fi
20165
20166 fi
20167 fi
20168 fi
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20170 $as_echo "$ac_cv_type_long_long_int" >&6; }
20171 if test $ac_cv_type_long_long_int = yes; then
20172
20173 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20174
20175 fi
20176
20177
20178
20179
20180
20181
20182 gl_cv_c_multiarch=no
20183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20184 /* end confdefs.h. */
20185 #ifndef __APPLE_CC__
20186 not a universal capable compiler
20187 #endif
20188 typedef int dummy;
20189
20190 _ACEOF
20191 if ac_fn_c_try_compile "$LINENO"; then :
20192
20193 arch=
20194 prev=
20195 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20196 if test -n "$prev"; then
20197 case $word in
20198 i?86 | x86_64 | ppc | ppc64)
20199 if test -z "$arch" || test "$arch" = "$word"; then
20200 arch="$word"
20201 else
20202 gl_cv_c_multiarch=yes
20203 fi
20204 ;;
20205 esac
20206 prev=
20207 else
20208 if test "x$word" = "x-arch"; then
20209 prev=arch
20210 fi
20211 fi
20212 done
20213
20214 fi
20215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20216 if test $gl_cv_c_multiarch = yes; then
20217 APPLE_UNIVERSAL_BUILD=1
20218 else
20219 APPLE_UNIVERSAL_BUILD=0
20220 fi
20221
20222
20223
20224
20225
20226 if test $ac_cv_type_long_long_int = yes; then
20227 HAVE_LONG_LONG_INT=1
20228 else
20229 HAVE_LONG_LONG_INT=0
20230 fi
20231
20232
20233 if test $ac_cv_type_unsigned_long_long_int = yes; then
20234 HAVE_UNSIGNED_LONG_LONG_INT=1
20235 else
20236 HAVE_UNSIGNED_LONG_LONG_INT=0
20237 fi
20238
20239
20240
20241 if test $ac_cv_header_wchar_h = yes; then
20242 HAVE_WCHAR_H=1
20243 else
20244 HAVE_WCHAR_H=0
20245 fi
20246
20247
20248 if test $ac_cv_header_inttypes_h = yes; then
20249 HAVE_INTTYPES_H=1
20250 else
20251 HAVE_INTTYPES_H=0
20252 fi
20253
20254
20255 if test $ac_cv_header_sys_types_h = yes; then
20256 HAVE_SYS_TYPES_H=1
20257 else
20258 HAVE_SYS_TYPES_H=0
20259 fi
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271 if test $gl_cv_have_include_next = yes; then
20272 gl_cv_next_stdint_h='<'stdint.h'>'
20273 else
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20275 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20276 if test "${gl_cv_next_stdint_h+set}" = set; then :
20277 $as_echo_n "(cached) " >&6
20278 else
20279
20280 if test $ac_cv_header_stdint_h = yes; then
20281
20282
20283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h. */
20285 #include <stdint.h>
20286
20287 _ACEOF
20288 case "$host_os" in
20289 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20290 *) gl_absname_cpp="$ac_cpp" ;;
20291 esac
20292
20293 case "$host_os" in
20294 mingw*)
20295 gl_dirsep_regex='[/\\]'
20296 ;;
20297 *)
20298 gl_dirsep_regex='\/'
20299 ;;
20300 esac
20301 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20302
20303 gl_header_literal_regex=`echo 'stdint.h' \
20304 | sed -e "$gl_make_literal_regex_sed"`
20305 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20306 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20307 s|^/[^/]|//&|
20308 p
20309 q
20310 }'
20311 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20312 sed -n "$gl_absolute_header_sed"`'"'
20313 else
20314 gl_cv_next_stdint_h='<'stdint.h'>'
20315 fi
20316
20317
20318 fi
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20320 $as_echo "$gl_cv_next_stdint_h" >&6; }
20321 fi
20322 NEXT_STDINT_H=$gl_cv_next_stdint_h
20323
20324 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20326 gl_next_as_first_directive='<'stdint.h'>'
20327 else
20328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20329 gl_next_as_first_directive=$gl_cv_next_stdint_h
20330 fi
20331 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20332
20333
20334
20335
20336 if test $ac_cv_header_stdint_h = yes; then
20337 HAVE_STDINT_H=1
20338 else
20339 HAVE_STDINT_H=0
20340 fi
20341
20342
20343 if test $ac_cv_header_stdint_h = yes; then
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20345 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20346 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
20347 $as_echo_n "(cached) " >&6
20348 else
20349 gl_cv_header_working_stdint_h=no
20350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h. */
20352
20353
20354 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20355 #include <stdint.h>
20356 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20357 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20358 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20359 #endif
20360
20361
20362 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20363 included before <wchar.h>. */
20364 #include <stddef.h>
20365 #include <signal.h>
20366 #if HAVE_WCHAR_H
20367 # include <stdio.h>
20368 # include <time.h>
20369 # include <wchar.h>
20370 #endif
20371
20372
20373 #ifdef INT8_MAX
20374 int8_t a1 = INT8_MAX;
20375 int8_t a1min = INT8_MIN;
20376 #endif
20377 #ifdef INT16_MAX
20378 int16_t a2 = INT16_MAX;
20379 int16_t a2min = INT16_MIN;
20380 #endif
20381 #ifdef INT32_MAX
20382 int32_t a3 = INT32_MAX;
20383 int32_t a3min = INT32_MIN;
20384 #endif
20385 #ifdef INT64_MAX
20386 int64_t a4 = INT64_MAX;
20387 int64_t a4min = INT64_MIN;
20388 #endif
20389 #ifdef UINT8_MAX
20390 uint8_t b1 = UINT8_MAX;
20391 #else
20392 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20393 #endif
20394 #ifdef UINT16_MAX
20395 uint16_t b2 = UINT16_MAX;
20396 #endif
20397 #ifdef UINT32_MAX
20398 uint32_t b3 = UINT32_MAX;
20399 #endif
20400 #ifdef UINT64_MAX
20401 uint64_t b4 = UINT64_MAX;
20402 #endif
20403 int_least8_t c1 = INT8_C (0x7f);
20404 int_least8_t c1max = INT_LEAST8_MAX;
20405 int_least8_t c1min = INT_LEAST8_MIN;
20406 int_least16_t c2 = INT16_C (0x7fff);
20407 int_least16_t c2max = INT_LEAST16_MAX;
20408 int_least16_t c2min = INT_LEAST16_MIN;
20409 int_least32_t c3 = INT32_C (0x7fffffff);
20410 int_least32_t c3max = INT_LEAST32_MAX;
20411 int_least32_t c3min = INT_LEAST32_MIN;
20412 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20413 int_least64_t c4max = INT_LEAST64_MAX;
20414 int_least64_t c4min = INT_LEAST64_MIN;
20415 uint_least8_t d1 = UINT8_C (0xff);
20416 uint_least8_t d1max = UINT_LEAST8_MAX;
20417 uint_least16_t d2 = UINT16_C (0xffff);
20418 uint_least16_t d2max = UINT_LEAST16_MAX;
20419 uint_least32_t d3 = UINT32_C (0xffffffff);
20420 uint_least32_t d3max = UINT_LEAST32_MAX;
20421 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20422 uint_least64_t d4max = UINT_LEAST64_MAX;
20423 int_fast8_t e1 = INT_FAST8_MAX;
20424 int_fast8_t e1min = INT_FAST8_MIN;
20425 int_fast16_t e2 = INT_FAST16_MAX;
20426 int_fast16_t e2min = INT_FAST16_MIN;
20427 int_fast32_t e3 = INT_FAST32_MAX;
20428 int_fast32_t e3min = INT_FAST32_MIN;
20429 int_fast64_t e4 = INT_FAST64_MAX;
20430 int_fast64_t e4min = INT_FAST64_MIN;
20431 uint_fast8_t f1 = UINT_FAST8_MAX;
20432 uint_fast16_t f2 = UINT_FAST16_MAX;
20433 uint_fast32_t f3 = UINT_FAST32_MAX;
20434 uint_fast64_t f4 = UINT_FAST64_MAX;
20435 #ifdef INTPTR_MAX
20436 intptr_t g = INTPTR_MAX;
20437 intptr_t gmin = INTPTR_MIN;
20438 #endif
20439 #ifdef UINTPTR_MAX
20440 uintptr_t h = UINTPTR_MAX;
20441 #endif
20442 intmax_t i = INTMAX_MAX;
20443 uintmax_t j = UINTMAX_MAX;
20444
20445 #include <limits.h> /* for CHAR_BIT */
20446 #define TYPE_MINIMUM(t) \
20447 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20448 #define TYPE_MAXIMUM(t) \
20449 ((t) ((t) 0 < (t) -1 \
20450 ? (t) -1 \
20451 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20452 struct s {
20453 int check_PTRDIFF:
20454 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20455 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20456 ? 1 : -1;
20457 /* Detect bug in FreeBSD 6.0 / ia64. */
20458 int check_SIG_ATOMIC:
20459 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20460 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20461 ? 1 : -1;
20462 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20463 int check_WCHAR:
20464 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20465 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20466 ? 1 : -1;
20467 /* Detect bug in mingw. */
20468 int check_WINT:
20469 WINT_MIN == TYPE_MINIMUM (wint_t)
20470 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20471 ? 1 : -1;
20472
20473 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20474 int check_UINT8_C:
20475 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20476 int check_UINT16_C:
20477 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20478
20479 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20480 #ifdef UINT8_MAX
20481 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20482 #endif
20483 #ifdef UINT16_MAX
20484 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20485 #endif
20486 #ifdef UINT32_MAX
20487 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20488 #endif
20489 #ifdef UINT64_MAX
20490 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20491 #endif
20492 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20493 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20494 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20495 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20496 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20497 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20498 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20499 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20500 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20501 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20502 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20503 };
20504
20505 int
20506 main ()
20507 {
20508
20509 ;
20510 return 0;
20511 }
20512 _ACEOF
20513 if ac_fn_c_try_compile "$LINENO"; then :
20514 if test "$cross_compiling" = yes; then :
20515 gl_cv_header_working_stdint_h=yes
20516
20517 else
20518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20519 /* end confdefs.h. */
20520
20521
20522 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20523 #include <stdint.h>
20524
20525
20526 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20527 included before <wchar.h>. */
20528 #include <stddef.h>
20529 #include <signal.h>
20530 #if HAVE_WCHAR_H
20531 # include <stdio.h>
20532 # include <time.h>
20533 # include <wchar.h>
20534 #endif
20535
20536
20537 #include <stdio.h>
20538 #include <string.h>
20539 #define MVAL(macro) MVAL1(macro)
20540 #define MVAL1(expression) #expression
20541 static const char *macro_values[] =
20542 {
20543 #ifdef INT8_MAX
20544 MVAL (INT8_MAX),
20545 #endif
20546 #ifdef INT16_MAX
20547 MVAL (INT16_MAX),
20548 #endif
20549 #ifdef INT32_MAX
20550 MVAL (INT32_MAX),
20551 #endif
20552 #ifdef INT64_MAX
20553 MVAL (INT64_MAX),
20554 #endif
20555 #ifdef UINT8_MAX
20556 MVAL (UINT8_MAX),
20557 #endif
20558 #ifdef UINT16_MAX
20559 MVAL (UINT16_MAX),
20560 #endif
20561 #ifdef UINT32_MAX
20562 MVAL (UINT32_MAX),
20563 #endif
20564 #ifdef UINT64_MAX
20565 MVAL (UINT64_MAX),
20566 #endif
20567 NULL
20568 };
20569
20570 int
20571 main ()
20572 {
20573
20574 const char **mv;
20575 for (mv = macro_values; *mv != NULL; mv++)
20576 {
20577 const char *value = *mv;
20578 /* Test whether it looks like a cast expression. */
20579 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20580 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20581 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20582 || strncmp (value, "((int)"/*)*/, 6) == 0
20583 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20584 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20585 return mv - macro_values + 1;
20586 }
20587 return 0;
20588
20589 ;
20590 return 0;
20591 }
20592 _ACEOF
20593 if ac_fn_c_try_run "$LINENO"; then :
20594 gl_cv_header_working_stdint_h=yes
20595 fi
20596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20597 conftest.$ac_objext conftest.beam conftest.$ac_ext
20598 fi
20599
20600
20601 fi
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603
20604 fi
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20606 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20607 fi
20608 if test "$gl_cv_header_working_stdint_h" = yes; then
20609 STDINT_H=
20610 else
20611 for ac_header in sys/inttypes.h sys/bitypes.h
20612 do :
20613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20614 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20615 eval as_val=\$$as_ac_Header
20616 if test "x$as_val" = x""yes; then :
20617 cat >>confdefs.h <<_ACEOF
20618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20619 _ACEOF
20620
20621 fi
20622
20623 done
20624
20625 if test $ac_cv_header_sys_inttypes_h = yes; then
20626 HAVE_SYS_INTTYPES_H=1
20627 else
20628 HAVE_SYS_INTTYPES_H=0
20629 fi
20630
20631 if test $ac_cv_header_sys_bitypes_h = yes; then
20632 HAVE_SYS_BITYPES_H=1
20633 else
20634 HAVE_SYS_BITYPES_H=0
20635 fi
20636
20637
20638
20639
20640 if test $APPLE_UNIVERSAL_BUILD = 0; then
20641
20642
20643 for gltype in ptrdiff_t size_t ; do
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20645 $as_echo_n "checking for bit size of $gltype... " >&6; }
20646 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20647 $as_echo_n "(cached) " >&6
20648 else
20649 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20650 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20651 included before <wchar.h>. */
20652 #include <stddef.h>
20653 #include <signal.h>
20654 #if HAVE_WCHAR_H
20655 # include <stdio.h>
20656 # include <time.h>
20657 # include <wchar.h>
20658 #endif
20659
20660 #include <limits.h>"; then :
20661
20662 else
20663 result=unknown
20664 fi
20665
20666 eval gl_cv_bitsizeof_${gltype}=\$result
20667
20668 fi
20669 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20671 $as_echo "$ac_res" >&6; }
20672 eval result=\$gl_cv_bitsizeof_${gltype}
20673 if test $result = unknown; then
20674 result=0
20675 fi
20676 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20677 cat >>confdefs.h <<_ACEOF
20678 #define BITSIZEOF_${GLTYPE} $result
20679 _ACEOF
20680
20681 eval BITSIZEOF_${GLTYPE}=\$result
20682 done
20683
20684
20685 fi
20686
20687
20688 for gltype in sig_atomic_t wchar_t wint_t ; do
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20690 $as_echo_n "checking for bit size of $gltype... " >&6; }
20691 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20692 $as_echo_n "(cached) " >&6
20693 else
20694 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20695 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20696 included before <wchar.h>. */
20697 #include <stddef.h>
20698 #include <signal.h>
20699 #if HAVE_WCHAR_H
20700 # include <stdio.h>
20701 # include <time.h>
20702 # include <wchar.h>
20703 #endif
20704
20705 #include <limits.h>"; then :
20706
20707 else
20708 result=unknown
20709 fi
20710
20711 eval gl_cv_bitsizeof_${gltype}=\$result
20712
20713 fi
20714 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20716 $as_echo "$ac_res" >&6; }
20717 eval result=\$gl_cv_bitsizeof_${gltype}
20718 if test $result = unknown; then
20719 result=0
20720 fi
20721 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20722 cat >>confdefs.h <<_ACEOF
20723 #define BITSIZEOF_${GLTYPE} $result
20724 _ACEOF
20725
20726 eval BITSIZEOF_${GLTYPE}=\$result
20727 done
20728
20729
20730
20731
20732 for gltype in sig_atomic_t wchar_t wint_t ; do
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20734 $as_echo_n "checking whether $gltype is signed... " >&6; }
20735 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20736 $as_echo_n "(cached) " >&6
20737 else
20738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h. */
20740
20741 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20742 included before <wchar.h>. */
20743 #include <stddef.h>
20744 #include <signal.h>
20745 #if HAVE_WCHAR_H
20746 # include <stdio.h>
20747 # include <time.h>
20748 # include <wchar.h>
20749 #endif
20750
20751 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20752 int
20753 main ()
20754 {
20755
20756 ;
20757 return 0;
20758 }
20759 _ACEOF
20760 if ac_fn_c_try_compile "$LINENO"; then :
20761 result=yes
20762 else
20763 result=no
20764 fi
20765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766 eval gl_cv_type_${gltype}_signed=\$result
20767
20768 fi
20769 eval ac_res=\$gl_cv_type_${gltype}_signed
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20771 $as_echo "$ac_res" >&6; }
20772 eval result=\$gl_cv_type_${gltype}_signed
20773 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20774 if test "$result" = yes; then
20775 cat >>confdefs.h <<_ACEOF
20776 #define HAVE_SIGNED_${GLTYPE} 1
20777 _ACEOF
20778
20779 eval HAVE_SIGNED_${GLTYPE}=1
20780 else
20781 eval HAVE_SIGNED_${GLTYPE}=0
20782 fi
20783 done
20784
20785
20786 gl_cv_type_ptrdiff_t_signed=yes
20787 gl_cv_type_size_t_signed=no
20788 if test $APPLE_UNIVERSAL_BUILD = 0; then
20789
20790
20791 for gltype in ptrdiff_t size_t ; do
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20793 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20794 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20795 $as_echo_n "(cached) " >&6
20796 else
20797 eval gl_cv_type_${gltype}_suffix=no
20798 eval result=\$gl_cv_type_${gltype}_signed
20799 if test "$result" = yes; then
20800 glsufu=
20801 else
20802 glsufu=u
20803 fi
20804 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20805 case $glsuf in
20806 '') gltype1='int';;
20807 l) gltype1='long int';;
20808 ll) gltype1='long long int';;
20809 i64) gltype1='__int64';;
20810 u) gltype1='unsigned int';;
20811 ul) gltype1='unsigned long int';;
20812 ull) gltype1='unsigned long long int';;
20813 ui64)gltype1='unsigned __int64';;
20814 esac
20815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20816 /* end confdefs.h. */
20817
20818 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20819 included before <wchar.h>. */
20820 #include <stddef.h>
20821 #include <signal.h>
20822 #if HAVE_WCHAR_H
20823 # include <stdio.h>
20824 # include <time.h>
20825 # include <wchar.h>
20826 #endif
20827
20828 extern $gltype foo;
20829 extern $gltype1 foo;
20830 int
20831 main ()
20832 {
20833
20834 ;
20835 return 0;
20836 }
20837 _ACEOF
20838 if ac_fn_c_try_compile "$LINENO"; then :
20839 eval gl_cv_type_${gltype}_suffix=\$glsuf
20840 fi
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842 eval result=\$gl_cv_type_${gltype}_suffix
20843 test "$result" != no && break
20844 done
20845 fi
20846 eval ac_res=\$gl_cv_type_${gltype}_suffix
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20848 $as_echo "$ac_res" >&6; }
20849 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20850 eval result=\$gl_cv_type_${gltype}_suffix
20851 test "$result" = no && result=
20852 eval ${GLTYPE}_SUFFIX=\$result
20853 cat >>confdefs.h <<_ACEOF
20854 #define ${GLTYPE}_SUFFIX $result
20855 _ACEOF
20856
20857 done
20858
20859
20860 fi
20861
20862
20863 for gltype in sig_atomic_t wchar_t wint_t ; do
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20865 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20866 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20867 $as_echo_n "(cached) " >&6
20868 else
20869 eval gl_cv_type_${gltype}_suffix=no
20870 eval result=\$gl_cv_type_${gltype}_signed
20871 if test "$result" = yes; then
20872 glsufu=
20873 else
20874 glsufu=u
20875 fi
20876 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20877 case $glsuf in
20878 '') gltype1='int';;
20879 l) gltype1='long int';;
20880 ll) gltype1='long long int';;
20881 i64) gltype1='__int64';;
20882 u) gltype1='unsigned int';;
20883 ul) gltype1='unsigned long int';;
20884 ull) gltype1='unsigned long long int';;
20885 ui64)gltype1='unsigned __int64';;
20886 esac
20887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h. */
20889
20890 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20891 included before <wchar.h>. */
20892 #include <stddef.h>
20893 #include <signal.h>
20894 #if HAVE_WCHAR_H
20895 # include <stdio.h>
20896 # include <time.h>
20897 # include <wchar.h>
20898 #endif
20899
20900 extern $gltype foo;
20901 extern $gltype1 foo;
20902 int
20903 main ()
20904 {
20905
20906 ;
20907 return 0;
20908 }
20909 _ACEOF
20910 if ac_fn_c_try_compile "$LINENO"; then :
20911 eval gl_cv_type_${gltype}_suffix=\$glsuf
20912 fi
20913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914 eval result=\$gl_cv_type_${gltype}_suffix
20915 test "$result" != no && break
20916 done
20917 fi
20918 eval ac_res=\$gl_cv_type_${gltype}_suffix
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20920 $as_echo "$ac_res" >&6; }
20921 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20922 eval result=\$gl_cv_type_${gltype}_suffix
20923 test "$result" = no && result=
20924 eval ${GLTYPE}_SUFFIX=\$result
20925 cat >>confdefs.h <<_ACEOF
20926 #define ${GLTYPE}_SUFFIX $result
20927 _ACEOF
20928
20929 done
20930
20931
20932
20933 if test $BITSIZEOF_WINT_T -lt 32; then
20934 BITSIZEOF_WINT_T=32
20935 fi
20936
20937 STDINT_H=stdint.h
20938 fi
20939
20940 if test -n "$STDINT_H"; then
20941 GL_GENERATE_STDINT_H_TRUE=
20942 GL_GENERATE_STDINT_H_FALSE='#'
20943 else
20944 GL_GENERATE_STDINT_H_TRUE='#'
20945 GL_GENERATE_STDINT_H_FALSE=
20946 fi
20947
20948
20949
20950
20951
20952 GNULIB_IMAXABS=0;
20953 GNULIB_IMAXDIV=0;
20954 GNULIB_STRTOIMAX=0;
20955 GNULIB_STRTOUMAX=0;
20956 HAVE_DECL_IMAXABS=1;
20957 HAVE_DECL_IMAXDIV=1;
20958 HAVE_DECL_STRTOIMAX=1;
20959 HAVE_DECL_STRTOUMAX=1;
20960 REPLACE_STRTOIMAX=0;
20961 REPLACE_STRTOUMAX=0;
20962 INT32_MAX_LT_INTMAX_MAX=1;
20963 INT64_MAX_EQ_LONG_MAX='defined _LP64';
20964 PRI_MACROS_BROKEN=0;
20965 PRIPTR_PREFIX=__PRIPTR_PREFIX;
20966 UINT32_MAX_LT_UINTMAX_MAX=1;
20967 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983 if test $gl_cv_have_include_next = yes; then
20984 gl_cv_next_inttypes_h='<'inttypes.h'>'
20985 else
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20987 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20988 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20989 $as_echo_n "(cached) " >&6
20990 else
20991
20992 if test $ac_cv_header_inttypes_h = yes; then
20993
20994
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20997 #include <inttypes.h>
20998
20999 _ACEOF
21000 case "$host_os" in
21001 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21002 *) gl_absname_cpp="$ac_cpp" ;;
21003 esac
21004
21005 case "$host_os" in
21006 mingw*)
21007 gl_dirsep_regex='[/\\]'
21008 ;;
21009 *)
21010 gl_dirsep_regex='\/'
21011 ;;
21012 esac
21013 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21014
21015 gl_header_literal_regex=`echo 'inttypes.h' \
21016 | sed -e "$gl_make_literal_regex_sed"`
21017 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21018 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21019 s|^/[^/]|//&|
21020 p
21021 q
21022 }'
21023 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21024 sed -n "$gl_absolute_header_sed"`'"'
21025 else
21026 gl_cv_next_inttypes_h='<'inttypes.h'>'
21027 fi
21028
21029
21030 fi
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
21032 $as_echo "$gl_cv_next_inttypes_h" >&6; }
21033 fi
21034 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
21035
21036 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21037 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21038 gl_next_as_first_directive='<'inttypes.h'>'
21039 else
21040 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21041 gl_next_as_first_directive=$gl_cv_next_inttypes_h
21042 fi
21043 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055 case "$host_os" in
21056 mingw*)
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
21058 $as_echo_n "checking for 64-bit off_t... " >&6; }
21059 if test "${gl_cv_type_off_t_64+set}" = set; then :
21060 $as_echo_n "(cached) " >&6
21061 else
21062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21063 /* end confdefs.h. */
21064 #include <sys/types.h>
21065 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
21066
21067 int
21068 main ()
21069 {
21070
21071 ;
21072 return 0;
21073 }
21074 _ACEOF
21075 if ac_fn_c_try_compile "$LINENO"; then :
21076 gl_cv_type_off_t_64=yes
21077 else
21078 gl_cv_type_off_t_64=no
21079 fi
21080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21081
21082 fi
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
21084 $as_echo "$gl_cv_type_off_t_64" >&6; }
21085 if test $gl_cv_type_off_t_64 = no; then
21086 WINDOWS_64_BIT_OFF_T=1
21087 else
21088 WINDOWS_64_BIT_OFF_T=0
21089 fi
21090 WINDOWS_64_BIT_ST_SIZE=1
21091 ;;
21092 *)
21093 WINDOWS_64_BIT_OFF_T=0
21094 WINDOWS_64_BIT_ST_SIZE=0
21095 ;;
21096 esac
21097
21098
21099
21100
21101 GNULIB_FFSL=0;
21102 GNULIB_FFSLL=0;
21103 GNULIB_MEMCHR=0;
21104 GNULIB_MEMMEM=0;
21105 GNULIB_MEMPCPY=0;
21106 GNULIB_MEMRCHR=0;
21107 GNULIB_RAWMEMCHR=0;
21108 GNULIB_STPCPY=0;
21109 GNULIB_STPNCPY=0;
21110 GNULIB_STRCHRNUL=0;
21111 GNULIB_STRDUP=0;
21112 GNULIB_STRNCAT=0;
21113 GNULIB_STRNDUP=0;
21114 GNULIB_STRNLEN=0;
21115 GNULIB_STRPBRK=0;
21116 GNULIB_STRSEP=0;
21117 GNULIB_STRSTR=0;
21118 GNULIB_STRCASESTR=0;
21119 GNULIB_STRTOK_R=0;
21120 GNULIB_MBSLEN=0;
21121 GNULIB_MBSNLEN=0;
21122 GNULIB_MBSCHR=0;
21123 GNULIB_MBSRCHR=0;
21124 GNULIB_MBSSTR=0;
21125 GNULIB_MBSCASECMP=0;
21126 GNULIB_MBSNCASECMP=0;
21127 GNULIB_MBSPCASECMP=0;
21128 GNULIB_MBSCASESTR=0;
21129 GNULIB_MBSCSPN=0;
21130 GNULIB_MBSPBRK=0;
21131 GNULIB_MBSSPN=0;
21132 GNULIB_MBSSEP=0;
21133 GNULIB_MBSTOK_R=0;
21134 GNULIB_STRERROR=0;
21135 GNULIB_STRERROR_R=0;
21136 GNULIB_STRSIGNAL=0;
21137 GNULIB_STRVERSCMP=0;
21138 HAVE_MBSLEN=0;
21139 HAVE_FFSL=1;
21140 HAVE_FFSLL=1;
21141 HAVE_MEMCHR=1;
21142 HAVE_DECL_MEMMEM=1;
21143 HAVE_MEMPCPY=1;
21144 HAVE_DECL_MEMRCHR=1;
21145 HAVE_RAWMEMCHR=1;
21146 HAVE_STPCPY=1;
21147 HAVE_STPNCPY=1;
21148 HAVE_STRCHRNUL=1;
21149 HAVE_DECL_STRDUP=1;
21150 HAVE_DECL_STRNDUP=1;
21151 HAVE_DECL_STRNLEN=1;
21152 HAVE_STRPBRK=1;
21153 HAVE_STRSEP=1;
21154 HAVE_STRCASESTR=1;
21155 HAVE_DECL_STRTOK_R=1;
21156 HAVE_DECL_STRERROR_R=1;
21157 HAVE_DECL_STRSIGNAL=1;
21158 HAVE_STRVERSCMP=1;
21159 REPLACE_MEMCHR=0;
21160 REPLACE_MEMMEM=0;
21161 REPLACE_STPNCPY=0;
21162 REPLACE_STRDUP=0;
21163 REPLACE_STRSTR=0;
21164 REPLACE_STRCASESTR=0;
21165 REPLACE_STRCHRNUL=0;
21166 REPLACE_STRERROR=0;
21167 REPLACE_STRERROR_R=0;
21168 REPLACE_STRNCAT=0;
21169 REPLACE_STRNDUP=0;
21170 REPLACE_STRNLEN=0;
21171 REPLACE_STRSIGNAL=0;
21172 REPLACE_STRTOK_R=0;
21173 UNDEFINE_STRTOK_R=0;
21174
21175 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
21176 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
21177 ac_have_decl=1
21178 else
21179 ac_have_decl=0
21180 fi
21181
21182 cat >>confdefs.h <<_ACEOF
21183 #define HAVE_DECL_MEMRCHR $ac_have_decl
21184 _ACEOF
21185
21186
21187
21188
21189 GNULIB_MKTIME=0;
21190 GNULIB_NANOSLEEP=0;
21191 GNULIB_STRPTIME=0;
21192 GNULIB_TIMEGM=0;
21193 GNULIB_TIME_R=0;
21194 HAVE_DECL_LOCALTIME_R=1;
21195 HAVE_NANOSLEEP=1;
21196 HAVE_STRPTIME=1;
21197 HAVE_TIMEGM=1;
21198 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
21199 REPLACE_MKTIME=GNULIB_PORTCHECK;
21200 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
21201 REPLACE_TIMEGM=GNULIB_PORTCHECK;
21202
21203 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
21204 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
21205 ac_have_decl=1
21206 else
21207 ac_have_decl=0
21208 fi
21209
21210 cat >>confdefs.h <<_ACEOF
21211 #define HAVE_DECL_ALARM $ac_have_decl
21212 _ACEOF
21213
21214
21215
21216
21217 GNULIB_PSELECT=0;
21218 GNULIB_SELECT=0;
21219 HAVE_PSELECT=1;
21220 REPLACE_PSELECT=0;
21221 REPLACE_SELECT=0;
21222
21223
21224
21225
21226
21227
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21229 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
21230 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
21231 $as_echo_n "(cached) " >&6
21232 else
21233
21234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21235 /* end confdefs.h. */
21236 #include <sys/select.h>
21237 int
21238 main ()
21239 {
21240 struct timeval b;
21241 ;
21242 return 0;
21243 }
21244 _ACEOF
21245 if ac_fn_c_try_compile "$LINENO"; then :
21246 gl_cv_header_sys_select_h_selfcontained=yes
21247 else
21248 gl_cv_header_sys_select_h_selfcontained=no
21249 fi
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21251 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21253 /* end confdefs.h. */
21254 #include <sys/select.h>
21255 int
21256 main ()
21257 {
21258 int memset; int bzero;
21259 ;
21260 return 0;
21261 }
21262
21263 _ACEOF
21264 if ac_fn_c_try_compile "$LINENO"; then :
21265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h. */
21267 #include <sys/select.h>
21268 int
21269 main ()
21270 {
21271
21272 #undef memset
21273 #define memset nonexistent_memset
21274 extern
21275 #ifdef __cplusplus
21276 "C"
21277 #endif
21278 void *memset (void *, int, unsigned long);
21279 #undef bzero
21280 #define bzero nonexistent_bzero
21281 extern
21282 #ifdef __cplusplus
21283 "C"
21284 #endif
21285 void bzero (void *, unsigned long);
21286 fd_set fds;
21287 FD_ZERO (&fds);
21288
21289 ;
21290 return 0;
21291 }
21292
21293 _ACEOF
21294 if ac_fn_c_try_link "$LINENO"; then :
21295
21296 else
21297 gl_cv_header_sys_select_h_selfcontained=no
21298 fi
21299 rm -f core conftest.err conftest.$ac_objext \
21300 conftest$ac_exeext conftest.$ac_ext
21301
21302 fi
21303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304 fi
21305
21306 fi
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
21308 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318 if test $gl_cv_have_include_next = yes; then
21319 gl_cv_next_sys_select_h='<'sys/select.h'>'
21320 else
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
21322 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
21323 if test "${gl_cv_next_sys_select_h+set}" = set; then :
21324 $as_echo_n "(cached) " >&6
21325 else
21326
21327 if test $ac_cv_header_sys_select_h = yes; then
21328
21329
21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21332 #include <sys/select.h>
21333
21334 _ACEOF
21335 case "$host_os" in
21336 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21337 *) gl_absname_cpp="$ac_cpp" ;;
21338 esac
21339
21340 case "$host_os" in
21341 mingw*)
21342 gl_dirsep_regex='[/\\]'
21343 ;;
21344 *)
21345 gl_dirsep_regex='\/'
21346 ;;
21347 esac
21348 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21349
21350 gl_header_literal_regex=`echo 'sys/select.h' \
21351 | sed -e "$gl_make_literal_regex_sed"`
21352 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21353 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21354 s|^/[^/]|//&|
21355 p
21356 q
21357 }'
21358 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21359 sed -n "$gl_absolute_header_sed"`'"'
21360 else
21361 gl_cv_next_sys_select_h='<'sys/select.h'>'
21362 fi
21363
21364
21365 fi
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21367 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21368 fi
21369 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
21370
21371 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21372 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21373 gl_next_as_first_directive='<'sys/select.h'>'
21374 else
21375 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21376 gl_next_as_first_directive=$gl_cv_next_sys_select_h
21377 fi
21378 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
21379
21380
21381
21382
21383 if test $ac_cv_header_sys_select_h = yes; then
21384 HAVE_SYS_SELECT_H=1
21385 else
21386 HAVE_SYS_SELECT_H=0
21387 fi
21388
21389
21390
21391
21392
21393 if test $ac_cv_header_sys_socket_h != yes; then
21394 for ac_header in winsock2.h
21395 do :
21396 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21397 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
21398 cat >>confdefs.h <<_ACEOF
21399 #define HAVE_WINSOCK2_H 1
21400 _ACEOF
21401
21402 fi
21403
21404 done
21405
21406 fi
21407 if test "$ac_cv_header_winsock2_h" = yes; then
21408 HAVE_WINSOCK2_H=1
21409 UNISTD_H_HAVE_WINSOCK2_H=1
21410 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21411 else
21412 HAVE_WINSOCK2_H=0
21413 fi
21414
21415
21416
21417
21418
21419
21420
21421
21422 GNULIB_PTHREAD_SIGMASK=0;
21423 GNULIB_RAISE=0;
21424 GNULIB_SIGNAL_H_SIGPIPE=0;
21425 GNULIB_SIGPROCMASK=0;
21426 GNULIB_SIGACTION=0;
21427 HAVE_POSIX_SIGNALBLOCKING=1;
21428 HAVE_PTHREAD_SIGMASK=1;
21429 HAVE_RAISE=1;
21430 HAVE_SIGSET_T=1;
21431 HAVE_SIGINFO_T=1;
21432 HAVE_SIGACTION=1;
21433 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
21434
21435 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
21436
21437 HAVE_SIGHANDLER_T=1;
21438 REPLACE_PTHREAD_SIGMASK=0;
21439 REPLACE_RAISE=0;
21440
21441
21442
21443
21444
21445
21446
21447 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21448 #include <signal.h>
21449 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21450 #include <sys/types.h>
21451
21452 "
21453 if test "x$ac_cv_type_sigset_t" = x""yes; then :
21454
21455 cat >>confdefs.h <<_ACEOF
21456 #define HAVE_SIGSET_T 1
21457 _ACEOF
21458
21459 gl_cv_type_sigset_t=yes
21460 else
21461 gl_cv_type_sigset_t=no
21462 fi
21463
21464 if test $gl_cv_type_sigset_t != yes; then
21465 HAVE_SIGSET_T=0
21466 fi
21467
21468
21469
21470 if test $ac_cv_header_sys_socket_h = no; then
21471 for ac_header in ws2tcpip.h
21472 do :
21473 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21474 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
21475 cat >>confdefs.h <<_ACEOF
21476 #define HAVE_WS2TCPIP_H 1
21477 _ACEOF
21478
21479 fi
21480
21481 done
21482
21483 fi
21484
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21486 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21487 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21489 else
21490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21491 /* end confdefs.h. */
21492
21493 #include <stdbool.h>
21494 #ifndef bool
21495 "error: bool is not defined"
21496 #endif
21497 #ifndef false
21498 "error: false is not defined"
21499 #endif
21500 #if false
21501 "error: false is not 0"
21502 #endif
21503 #ifndef true
21504 "error: true is not defined"
21505 #endif
21506 #if true != 1
21507 "error: true is not 1"
21508 #endif
21509 #ifndef __bool_true_false_are_defined
21510 "error: __bool_true_false_are_defined is not defined"
21511 #endif
21512
21513 struct s { _Bool s: 1; _Bool t; } s;
21514
21515 char a[true == 1 ? 1 : -1];
21516 char b[false == 0 ? 1 : -1];
21517 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21518 char d[(bool) 0.5 == true ? 1 : -1];
21519 /* See body of main program for 'e'. */
21520 char f[(_Bool) 0.0 == false ? 1 : -1];
21521 char g[true];
21522 char h[sizeof (_Bool)];
21523 char i[sizeof s.t];
21524 enum { j = false, k = true, l = false * true, m = true * 256 };
21525 /* The following fails for
21526 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21527 _Bool n[m];
21528 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21529 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21530 /* Catch a bug in an HP-UX C compiler. See
21531 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21532 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21533 */
21534 _Bool q = true;
21535 _Bool *pq = &q;
21536
21537 int
21538 main ()
21539 {
21540
21541 bool e = &s;
21542 *pq |= q;
21543 *pq |= ! q;
21544 /* Refer to every declared value, to avoid compiler optimizations. */
21545 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21546 + !m + !n + !o + !p + !q + !pq);
21547
21548 ;
21549 return 0;
21550 }
21551 _ACEOF
21552 if ac_fn_c_try_compile "$LINENO"; then :
21553 ac_cv_header_stdbool_h=yes
21554 else
21555 ac_cv_header_stdbool_h=no
21556 fi
21557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558 fi
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21560 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21561 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21562 if test "x$ac_cv_type__Bool" = x""yes; then :
21563
21564 cat >>confdefs.h <<_ACEOF
21565 #define HAVE__BOOL 1
21566 _ACEOF
21567
21568
21569 fi
21570
21571
21572
21573 REPLACE_NULL=0;
21574 HAVE_WCHAR_T=1;
21575
21576
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21578 $as_echo_n "checking for wchar_t... " >&6; }
21579 if test "${gt_cv_c_wchar_t+set}" = set; then :
21580 $as_echo_n "(cached) " >&6
21581 else
21582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21583 /* end confdefs.h. */
21584 #include <stddef.h>
21585 wchar_t foo = (wchar_t)'\0';
21586 int
21587 main ()
21588 {
21589
21590 ;
21591 return 0;
21592 }
21593 _ACEOF
21594 if ac_fn_c_try_compile "$LINENO"; then :
21595 gt_cv_c_wchar_t=yes
21596 else
21597 gt_cv_c_wchar_t=no
21598 fi
21599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 fi
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21602 $as_echo "$gt_cv_c_wchar_t" >&6; }
21603 if test $gt_cv_c_wchar_t = yes; then
21604
21605 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21606
21607 fi
21608
21609
21610 GNULIB_DPRINTF=0;
21611 GNULIB_FCLOSE=0;
21612 GNULIB_FDOPEN=0;
21613 GNULIB_FFLUSH=0;
21614 GNULIB_FGETC=0;
21615 GNULIB_FGETS=0;
21616 GNULIB_FOPEN=0;
21617 GNULIB_FPRINTF=0;
21618 GNULIB_FPRINTF_POSIX=0;
21619 GNULIB_FPURGE=0;
21620 GNULIB_FPUTC=0;
21621 GNULIB_FPUTS=0;
21622 GNULIB_FREAD=0;
21623 GNULIB_FREOPEN=0;
21624 GNULIB_FSCANF=0;
21625 GNULIB_FSEEK=0;
21626 GNULIB_FSEEKO=0;
21627 GNULIB_FTELL=0;
21628 GNULIB_FTELLO=0;
21629 GNULIB_FWRITE=0;
21630 GNULIB_GETC=0;
21631 GNULIB_GETCHAR=0;
21632 GNULIB_GETDELIM=0;
21633 GNULIB_GETLINE=0;
21634 GNULIB_OBSTACK_PRINTF=0;
21635 GNULIB_OBSTACK_PRINTF_POSIX=0;
21636 GNULIB_PCLOSE=0;
21637 GNULIB_PERROR=0;
21638 GNULIB_POPEN=0;
21639 GNULIB_PRINTF=0;
21640 GNULIB_PRINTF_POSIX=0;
21641 GNULIB_PUTC=0;
21642 GNULIB_PUTCHAR=0;
21643 GNULIB_PUTS=0;
21644 GNULIB_REMOVE=0;
21645 GNULIB_RENAME=0;
21646 GNULIB_RENAMEAT=0;
21647 GNULIB_SCANF=0;
21648 GNULIB_SNPRINTF=0;
21649 GNULIB_SPRINTF_POSIX=0;
21650 GNULIB_STDIO_H_NONBLOCKING=0;
21651 GNULIB_STDIO_H_SIGPIPE=0;
21652 GNULIB_TMPFILE=0;
21653 GNULIB_VASPRINTF=0;
21654 GNULIB_VFSCANF=0;
21655 GNULIB_VSCANF=0;
21656 GNULIB_VDPRINTF=0;
21657 GNULIB_VFPRINTF=0;
21658 GNULIB_VFPRINTF_POSIX=0;
21659 GNULIB_VPRINTF=0;
21660 GNULIB_VPRINTF_POSIX=0;
21661 GNULIB_VSNPRINTF=0;
21662 GNULIB_VSPRINTF_POSIX=0;
21663 HAVE_DECL_FPURGE=1;
21664 HAVE_DECL_FSEEKO=1;
21665 HAVE_DECL_FTELLO=1;
21666 HAVE_DECL_GETDELIM=1;
21667 HAVE_DECL_GETLINE=1;
21668 HAVE_DECL_OBSTACK_PRINTF=1;
21669 HAVE_DECL_SNPRINTF=1;
21670 HAVE_DECL_VSNPRINTF=1;
21671 HAVE_DPRINTF=1;
21672 HAVE_FSEEKO=1;
21673 HAVE_FTELLO=1;
21674 HAVE_PCLOSE=1;
21675 HAVE_POPEN=1;
21676 HAVE_RENAMEAT=1;
21677 HAVE_VASPRINTF=1;
21678 HAVE_VDPRINTF=1;
21679 REPLACE_DPRINTF=0;
21680 REPLACE_FCLOSE=0;
21681 REPLACE_FDOPEN=0;
21682 REPLACE_FFLUSH=0;
21683 REPLACE_FOPEN=0;
21684 REPLACE_FPRINTF=0;
21685 REPLACE_FPURGE=0;
21686 REPLACE_FREOPEN=0;
21687 REPLACE_FSEEK=0;
21688 REPLACE_FSEEKO=0;
21689 REPLACE_FTELL=0;
21690 REPLACE_FTELLO=0;
21691 REPLACE_GETDELIM=0;
21692 REPLACE_GETLINE=0;
21693 REPLACE_OBSTACK_PRINTF=0;
21694 REPLACE_PERROR=0;
21695 REPLACE_POPEN=0;
21696 REPLACE_PRINTF=0;
21697 REPLACE_REMOVE=0;
21698 REPLACE_RENAME=0;
21699 REPLACE_RENAMEAT=0;
21700 REPLACE_SNPRINTF=0;
21701 REPLACE_SPRINTF=0;
21702 REPLACE_STDIO_READ_FUNCS=0;
21703 REPLACE_STDIO_WRITE_FUNCS=0;
21704 REPLACE_TMPFILE=0;
21705 REPLACE_VASPRINTF=0;
21706 REPLACE_VDPRINTF=0;
21707 REPLACE_VFPRINTF=0;
21708 REPLACE_VPRINTF=0;
21709 REPLACE_VSNPRINTF=0;
21710 REPLACE_VSPRINTF=0;
21711
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21713 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21714 if test "${ac_cv_struct_tm+set}" = set; then :
21715 $as_echo_n "(cached) " >&6
21716 else
21717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21718 /* end confdefs.h. */
21719 #include <sys/types.h>
21720 #include <time.h>
21721
21722 int
21723 main ()
21724 {
21725 struct tm tm;
21726 int *p = &tm.tm_sec;
21727 return !p;
21728 ;
21729 return 0;
21730 }
21731 _ACEOF
21732 if ac_fn_c_try_compile "$LINENO"; then :
21733 ac_cv_struct_tm=time.h
21734 else
21735 ac_cv_struct_tm=sys/time.h
21736 fi
21737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21738 fi
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21740 $as_echo "$ac_cv_struct_tm" >&6; }
21741 if test $ac_cv_struct_tm = sys/time.h; then
21742
21743 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21744
21745 fi
21746
21747 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21748 #include <$ac_cv_struct_tm>
21749
21750 "
21751 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21752
21753 cat >>confdefs.h <<_ACEOF
21754 #define HAVE_STRUCT_TM_TM_ZONE 1
21755 _ACEOF
21756
21757
21758 fi
21759
21760 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21761
21762 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21763
21764 else
21765 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21766 "
21767 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21768 ac_have_decl=1
21769 else
21770 ac_have_decl=0
21771 fi
21772
21773 cat >>confdefs.h <<_ACEOF
21774 #define HAVE_DECL_TZNAME $ac_have_decl
21775 _ACEOF
21776
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21778 $as_echo_n "checking for tzname... " >&6; }
21779 if test "${ac_cv_var_tzname+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21781 else
21782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21783 /* end confdefs.h. */
21784 #include <time.h>
21785 #if !HAVE_DECL_TZNAME
21786 extern char *tzname[];
21787 #endif
21788
21789 int
21790 main ()
21791 {
21792 return tzname[0][0];
21793 ;
21794 return 0;
21795 }
21796 _ACEOF
21797 if ac_fn_c_try_link "$LINENO"; then :
21798 ac_cv_var_tzname=yes
21799 else
21800 ac_cv_var_tzname=no
21801 fi
21802 rm -f core conftest.err conftest.$ac_objext \
21803 conftest$ac_exeext conftest.$ac_ext
21804 fi
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21806 $as_echo "$ac_cv_var_tzname" >&6; }
21807 if test $ac_cv_var_tzname = yes; then
21808
21809 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21810
21811 fi
21812 fi
21813
21814
21815 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21816 "
21817 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
21818
21819 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21820
21821 fi
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835 if test $gl_cv_have_include_next = yes; then
21836 gl_cv_next_string_h='<'string.h'>'
21837 else
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21839 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21840 if test "${gl_cv_next_string_h+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21842 else
21843
21844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845 /* end confdefs.h. */
21846 #include <string.h>
21847
21848 _ACEOF
21849 case "$host_os" in
21850 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21851 *) gl_absname_cpp="$ac_cpp" ;;
21852 esac
21853
21854 case "$host_os" in
21855 mingw*)
21856 gl_dirsep_regex='[/\\]'
21857 ;;
21858 *)
21859 gl_dirsep_regex='\/'
21860 ;;
21861 esac
21862 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21863
21864 gl_header_literal_regex=`echo 'string.h' \
21865 | sed -e "$gl_make_literal_regex_sed"`
21866 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21867 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21868 s|^/[^/]|//&|
21869 p
21870 q
21871 }'
21872 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21873 sed -n "$gl_absolute_header_sed"`'"'
21874
21875
21876 fi
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21878 $as_echo "$gl_cv_next_string_h" >&6; }
21879 fi
21880 NEXT_STRING_H=$gl_cv_next_string_h
21881
21882 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21883 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21884 gl_next_as_first_directive='<'string.h'>'
21885 else
21886 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21887 gl_next_as_first_directive=$gl_cv_next_string_h
21888 fi
21889 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21900 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
21901 ac_have_decl=1
21902 else
21903 ac_have_decl=0
21904 fi
21905
21906 cat >>confdefs.h <<_ACEOF
21907 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21908 _ACEOF
21909
21910
21911
21912 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21913 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
21914 ac_have_decl=1
21915 else
21916 ac_have_decl=0
21917 fi
21918
21919 cat >>confdefs.h <<_ACEOF
21920 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21921 _ACEOF
21922
21923
21924
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21926 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21927 if test "${ac_cv_header_stat_broken+set}" = set; then :
21928 $as_echo_n "(cached) " >&6
21929 else
21930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21931 /* end confdefs.h. */
21932 #include <sys/types.h>
21933 #include <sys/stat.h>
21934
21935 #if defined S_ISBLK && defined S_IFDIR
21936 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21937 #endif
21938
21939 #if defined S_ISBLK && defined S_IFCHR
21940 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21941 #endif
21942
21943 #if defined S_ISLNK && defined S_IFREG
21944 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21945 #endif
21946
21947 #if defined S_ISSOCK && defined S_IFREG
21948 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21949 #endif
21950
21951 _ACEOF
21952 if ac_fn_c_try_compile "$LINENO"; then :
21953 ac_cv_header_stat_broken=no
21954 else
21955 ac_cv_header_stat_broken=yes
21956 fi
21957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21958 fi
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21960 $as_echo "$ac_cv_header_stat_broken" >&6; }
21961 if test $ac_cv_header_stat_broken = yes; then
21962
21963 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21964
21965 fi
21966
21967
21968
21969
21970
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21972 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21973 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21974 $as_echo_n "(cached) " >&6
21975 else
21976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21977 /* end confdefs.h. */
21978 #include <time.h>
21979
21980 int
21981 main ()
21982 {
21983 static struct timespec x; x.tv_sec = x.tv_nsec;
21984 ;
21985 return 0;
21986 }
21987 _ACEOF
21988 if ac_fn_c_try_compile "$LINENO"; then :
21989 gl_cv_sys_struct_timespec_in_time_h=yes
21990 else
21991 gl_cv_sys_struct_timespec_in_time_h=no
21992 fi
21993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994 fi
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21996 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21997
21998 TIME_H_DEFINES_STRUCT_TIMESPEC=0
21999 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
22000 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
22001 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
22002 TIME_H_DEFINES_STRUCT_TIMESPEC=1
22003 else
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
22005 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
22006 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
22007 $as_echo_n "(cached) " >&6
22008 else
22009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22010 /* end confdefs.h. */
22011 #include <sys/time.h>
22012
22013 int
22014 main ()
22015 {
22016 static struct timespec x; x.tv_sec = x.tv_nsec;
22017 ;
22018 return 0;
22019 }
22020 _ACEOF
22021 if ac_fn_c_try_compile "$LINENO"; then :
22022 gl_cv_sys_struct_timespec_in_sys_time_h=yes
22023 else
22024 gl_cv_sys_struct_timespec_in_sys_time_h=no
22025 fi
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22027 fi
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22029 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22030 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22031 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
22032 else
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
22034 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22035 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
22036 $as_echo_n "(cached) " >&6
22037 else
22038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22039 /* end confdefs.h. */
22040 #include <pthread.h>
22041
22042 int
22043 main ()
22044 {
22045 static struct timespec x; x.tv_sec = x.tv_nsec;
22046 ;
22047 return 0;
22048 }
22049 _ACEOF
22050 if ac_fn_c_try_compile "$LINENO"; then :
22051 gl_cv_sys_struct_timespec_in_pthread_h=yes
22052 else
22053 gl_cv_sys_struct_timespec_in_pthread_h=no
22054 fi
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 fi
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22058 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22059 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22060 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
22061 fi
22062 fi
22063 fi
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079 if test $gl_cv_have_include_next = yes; then
22080 gl_cv_next_time_h='<'time.h'>'
22081 else
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22083 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22084 if test "${gl_cv_next_time_h+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22086 else
22087
22088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22089 /* end confdefs.h. */
22090 #include <time.h>
22091
22092 _ACEOF
22093 case "$host_os" in
22094 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22095 *) gl_absname_cpp="$ac_cpp" ;;
22096 esac
22097
22098 case "$host_os" in
22099 mingw*)
22100 gl_dirsep_regex='[/\\]'
22101 ;;
22102 *)
22103 gl_dirsep_regex='\/'
22104 ;;
22105 esac
22106 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22107
22108 gl_header_literal_regex=`echo 'time.h' \
22109 | sed -e "$gl_make_literal_regex_sed"`
22110 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22111 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22112 s|^/[^/]|//&|
22113 p
22114 q
22115 }'
22116 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22117 sed -n "$gl_absolute_header_sed"`'"'
22118
22119
22120 fi
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22122 $as_echo "$gl_cv_next_time_h" >&6; }
22123 fi
22124 NEXT_TIME_H=$gl_cv_next_time_h
22125
22126 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22127 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22128 gl_next_as_first_directive='<'time.h'>'
22129 else
22130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22131 gl_next_as_first_directive=$gl_cv_next_time_h
22132 fi
22133 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
22149 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
22150 ac_have_decl=1
22151 else
22152 ac_have_decl=0
22153 fi
22154
22155 cat >>confdefs.h <<_ACEOF
22156 #define HAVE_DECL_UNSETENV $ac_have_decl
22157 _ACEOF
22158
22159
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
22161 $as_echo_n "checking whether the utimes function works... " >&6; }
22162 if test "${gl_cv_func_working_utimes+set}" = set; then :
22163 $as_echo_n "(cached) " >&6
22164 else
22165
22166 if test "$cross_compiling" = yes; then :
22167 gl_cv_func_working_utimes=no
22168 else
22169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22170 /* end confdefs.h. */
22171
22172 #include <sys/types.h>
22173 #include <sys/stat.h>
22174 #include <fcntl.h>
22175 #include <sys/time.h>
22176 #include <time.h>
22177 #include <unistd.h>
22178 #include <stdlib.h>
22179 #include <stdio.h>
22180 #include <utime.h>
22181
22182 static int
22183 inorder (time_t a, time_t b, time_t c)
22184 {
22185 return a <= b && b <= c;
22186 }
22187
22188 int
22189 main ()
22190 {
22191 int result = 0;
22192 char const *file = "conftest.utimes";
22193 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
22194
22195 /* Test whether utimes() essentially works. */
22196 {
22197 struct stat sbuf;
22198 FILE *f = fopen (file, "w");
22199 if (f == NULL)
22200 result |= 1;
22201 else if (fclose (f) != 0)
22202 result |= 1;
22203 else if (utimes (file, timeval) != 0)
22204 result |= 2;
22205 else if (lstat (file, &sbuf) != 0)
22206 result |= 1;
22207 else if (!(sbuf.st_atime == timeval[0].tv_sec
22208 && sbuf.st_mtime == timeval[1].tv_sec))
22209 result |= 4;
22210 if (unlink (file) != 0)
22211 result |= 1;
22212 }
22213
22214 /* Test whether utimes() with a NULL argument sets the file's timestamp
22215 to the current time. Use 'fstat' as well as 'time' to
22216 determine the "current" time, to accommodate NFS file systems
22217 if there is a time skew between the host and the NFS server. */
22218 {
22219 int fd = open (file, O_WRONLY|O_CREAT, 0644);
22220 if (fd < 0)
22221 result |= 1;
22222 else
22223 {
22224 time_t t0, t2;
22225 struct stat st0, st1, st2;
22226 if (time (&t0) == (time_t) -1)
22227 result |= 1;
22228 else if (fstat (fd, &st0) != 0)
22229 result |= 1;
22230 else if (utimes (file, timeval) != 0)
22231 result |= 2;
22232 else if (utimes (file, NULL) != 0)
22233 result |= 8;
22234 else if (fstat (fd, &st1) != 0)
22235 result |= 1;
22236 else if (write (fd, "\n", 1) != 1)
22237 result |= 1;
22238 else if (fstat (fd, &st2) != 0)
22239 result |= 1;
22240 else if (time (&t2) == (time_t) -1)
22241 result |= 1;
22242 else
22243 {
22244 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
22245 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
22246 if (! (st1.st_atime == st1.st_mtime))
22247 result |= 16;
22248 if (! (m_ok_POSIX || m_ok_NFS))
22249 result |= 32;
22250 }
22251 if (close (fd) != 0)
22252 result |= 1;
22253 }
22254 if (unlink (file) != 0)
22255 result |= 1;
22256 }
22257
22258 /* Test whether utimes() with a NULL argument works on read-only files. */
22259 {
22260 int fd = open (file, O_WRONLY|O_CREAT, 0444);
22261 if (fd < 0)
22262 result |= 1;
22263 else if (close (fd) != 0)
22264 result |= 1;
22265 else if (utimes (file, NULL) != 0)
22266 result |= 64;
22267 if (unlink (file) != 0)
22268 result |= 1;
22269 }
22270
22271 return result;
22272 }
22273
22274 _ACEOF
22275 if ac_fn_c_try_run "$LINENO"; then :
22276 gl_cv_func_working_utimes=yes
22277 else
22278 gl_cv_func_working_utimes=no
22279 fi
22280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22281 conftest.$ac_objext conftest.beam conftest.$ac_ext
22282 fi
22283
22284 fi
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
22286 $as_echo "$gl_cv_func_working_utimes" >&6; }
22287
22288 if test $gl_cv_func_working_utimes = yes; then
22289
22290 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
22291
22292 fi
22293
22294
22295
22296
22297
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
22299 $as_echo_n "checking for struct utimbuf... " >&6; }
22300 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
22301 $as_echo_n "(cached) " >&6
22302 else
22303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h. */
22305 #if HAVE_SYS_TIME_H
22306 #include <sys/time.h>
22307 #endif
22308 #include <time.h>
22309 #ifdef HAVE_UTIME_H
22310 #include <utime.h>
22311 #endif
22312
22313 int
22314 main ()
22315 {
22316 static struct utimbuf x; x.actime = x.modtime;
22317 ;
22318 return 0;
22319 }
22320 _ACEOF
22321 if ac_fn_c_try_compile "$LINENO"; then :
22322 gl_cv_sys_struct_utimbuf=yes
22323 else
22324 gl_cv_sys_struct_utimbuf=no
22325 fi
22326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22327 fi
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
22329 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
22330
22331 if test $gl_cv_sys_struct_utimbuf = yes; then
22332
22333 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
22334
22335 fi
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
22348 $as_echo_n "checking type of array argument to getgroups... " >&6; }
22349 if test "${ac_cv_type_getgroups+set}" = set; then :
22350 $as_echo_n "(cached) " >&6
22351 else
22352 if test "$cross_compiling" = yes; then :
22353 ac_cv_type_getgroups=cross
22354 else
22355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h. */
22357 /* Thanks to Mike Rendell for this test. */
22358 $ac_includes_default
22359 #define NGID 256
22360 #undef MAX
22361 #define MAX(x, y) ((x) > (y) ? (x) : (y))
22362
22363 int
22364 main ()
22365 {
22366 gid_t gidset[NGID];
22367 int i, n;
22368 union { gid_t gval; long int lval; } val;
22369
22370 val.lval = -1;
22371 for (i = 0; i < NGID; i++)
22372 gidset[i] = val.gval;
22373 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22374 gidset);
22375 /* Exit non-zero if getgroups seems to require an array of ints. This
22376 happens when gid_t is short int but getgroups modifies an array
22377 of ints. */
22378 return n > 0 && gidset[n] != val.gval;
22379 }
22380 _ACEOF
22381 if ac_fn_c_try_run "$LINENO"; then :
22382 ac_cv_type_getgroups=gid_t
22383 else
22384 ac_cv_type_getgroups=int
22385 fi
22386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22387 conftest.$ac_objext conftest.beam conftest.$ac_ext
22388 fi
22389
22390 if test $ac_cv_type_getgroups = cross; then
22391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22392 /* end confdefs.h. */
22393 #include <unistd.h>
22394
22395 _ACEOF
22396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22397 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
22398 ac_cv_type_getgroups=gid_t
22399 else
22400 ac_cv_type_getgroups=int
22401 fi
22402 rm -f conftest*
22403
22404 fi
22405 fi
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22407 $as_echo "$ac_cv_type_getgroups" >&6; }
22408
22409 cat >>confdefs.h <<_ACEOF
22410 #define GETGROUPS_T $ac_cv_type_getgroups
22411 _ACEOF
22412
22413
22414
22415
22416
22417
22418
22419
22420 if false; then
22421 GL_COND_LIBTOOL_TRUE=
22422 GL_COND_LIBTOOL_FALSE='#'
22423 else
22424 GL_COND_LIBTOOL_TRUE='#'
22425 GL_COND_LIBTOOL_FALSE=
22426 fi
22427
22428 gl_cond_libtool=false
22429 gl_libdeps=
22430 gl_ltlibdeps=
22431 gl_m4_base='m4'
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441 gl_source_base='lib'
22442
22443
22444 if test $ac_cv_func_alloca_works = no; then
22445 :
22446 fi
22447
22448 # Define an additional variable used in the Makefile substitution.
22449 if test $ac_cv_working_alloca_h = yes; then
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22451 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22452 if test "${gl_cv_rpl_alloca+set}" = set; then :
22453 $as_echo_n "(cached) " >&6
22454 else
22455
22456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22457 /* end confdefs.h. */
22458
22459 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22460 Need own alloca
22461 #endif
22462
22463 _ACEOF
22464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22465 $EGREP "Need own alloca" >/dev/null 2>&1; then :
22466 gl_cv_rpl_alloca=yes
22467 else
22468 gl_cv_rpl_alloca=no
22469 fi
22470 rm -f conftest*
22471
22472
22473 fi
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22475 $as_echo "$gl_cv_rpl_alloca" >&6; }
22476 if test $gl_cv_rpl_alloca = yes; then
22477
22478 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22479
22480 ALLOCA_H=alloca.h
22481 else
22482 ALLOCA_H=
22483 fi
22484 else
22485 ALLOCA_H=alloca.h
22486 fi
22487
22488 if test -n "$ALLOCA_H"; then
22489 GL_GENERATE_ALLOCA_H_TRUE=
22490 GL_GENERATE_ALLOCA_H_FALSE='#'
22491 else
22492 GL_GENERATE_ALLOCA_H_TRUE='#'
22493 GL_GENERATE_ALLOCA_H_FALSE=
22494 fi
22495
22496
22497
22498 for ac_header in byteswap.h
22499 do :
22500 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
22501 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
22502 cat >>confdefs.h <<_ACEOF
22503 #define HAVE_BYTESWAP_H 1
22504 _ACEOF
22505
22506 BYTESWAP_H=''
22507
22508 else
22509
22510 BYTESWAP_H='byteswap.h'
22511
22512 fi
22513
22514 done
22515
22516
22517 if test -n "$BYTESWAP_H"; then
22518 GL_GENERATE_BYTESWAP_H_TRUE=
22519 GL_GENERATE_BYTESWAP_H_FALSE='#'
22520 else
22521 GL_GENERATE_BYTESWAP_H_TRUE='#'
22522 GL_GENERATE_BYTESWAP_H_FALSE=
22523 fi
22524
22525
22526
22527
22528
22529
22530 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22531 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22532
22533 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22534 # programs in the package would end up linked with that potentially-shared
22535 # library, inducing unnecessary run-time overhead.
22536 LIB_CLOCK_GETTIME=
22537
22538 gl_saved_libs=$LIBS
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22540 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22541 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22542 $as_echo_n "(cached) " >&6
22543 else
22544 ac_func_search_save_LIBS=$LIBS
22545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22546 /* end confdefs.h. */
22547
22548 /* Override any GCC internal prototype to avoid an error.
22549 Use char because int might match the return type of a GCC
22550 builtin and then its argument prototype would still apply. */
22551 #ifdef __cplusplus
22552 extern "C"
22553 #endif
22554 char clock_gettime ();
22555 int
22556 main ()
22557 {
22558 return clock_gettime ();
22559 ;
22560 return 0;
22561 }
22562 _ACEOF
22563 for ac_lib in '' rt posix4; do
22564 if test -z "$ac_lib"; then
22565 ac_res="none required"
22566 else
22567 ac_res=-l$ac_lib
22568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22569 fi
22570 if ac_fn_c_try_link "$LINENO"; then :
22571 ac_cv_search_clock_gettime=$ac_res
22572 fi
22573 rm -f core conftest.err conftest.$ac_objext \
22574 conftest$ac_exeext
22575 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22576 break
22577 fi
22578 done
22579 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22580
22581 else
22582 ac_cv_search_clock_gettime=no
22583 fi
22584 rm conftest.$ac_ext
22585 LIBS=$ac_func_search_save_LIBS
22586 fi
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22588 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22589 ac_res=$ac_cv_search_clock_gettime
22590 if test "$ac_res" != no; then :
22591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22592 test "$ac_cv_search_clock_gettime" = "none required" ||
22593 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
22594 fi
22595
22596 for ac_func in clock_gettime clock_settime
22597 do :
22598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22600 eval as_val=\$$as_ac_var
22601 if test "x$as_val" = x""yes; then :
22602 cat >>confdefs.h <<_ACEOF
22603 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22604 _ACEOF
22605
22606 fi
22607 done
22608
22609 LIBS=$gl_saved_libs
22610
22611
22612 :
22613
22614
22615
22616 cat >>confdefs.h <<_ACEOF
22617 #define GNULIB_CLOSE_STREAM 1
22618 _ACEOF
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629 :
22630
22631
22632
22633 :
22634
22635
22636
22637 :
22638
22639
22640
22641 :
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655 if test $gl_cv_have_include_next = yes; then
22656 gl_cv_next_dirent_h='<'dirent.h'>'
22657 else
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22659 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22660 if test "${gl_cv_next_dirent_h+set}" = set; then :
22661 $as_echo_n "(cached) " >&6
22662 else
22663
22664 if test $ac_cv_header_dirent_h = yes; then
22665
22666
22667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22668 /* end confdefs.h. */
22669 #include <dirent.h>
22670
22671 _ACEOF
22672 case "$host_os" in
22673 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22674 *) gl_absname_cpp="$ac_cpp" ;;
22675 esac
22676
22677 case "$host_os" in
22678 mingw*)
22679 gl_dirsep_regex='[/\\]'
22680 ;;
22681 *)
22682 gl_dirsep_regex='\/'
22683 ;;
22684 esac
22685 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22686
22687 gl_header_literal_regex=`echo 'dirent.h' \
22688 | sed -e "$gl_make_literal_regex_sed"`
22689 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22690 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22691 s|^/[^/]|//&|
22692 p
22693 q
22694 }'
22695 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22696 sed -n "$gl_absolute_header_sed"`'"'
22697 else
22698 gl_cv_next_dirent_h='<'dirent.h'>'
22699 fi
22700
22701
22702 fi
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22704 $as_echo "$gl_cv_next_dirent_h" >&6; }
22705 fi
22706 NEXT_DIRENT_H=$gl_cv_next_dirent_h
22707
22708 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22710 gl_next_as_first_directive='<'dirent.h'>'
22711 else
22712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22713 gl_next_as_first_directive=$gl_cv_next_dirent_h
22714 fi
22715 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
22716
22717
22718
22719
22720 if test $ac_cv_header_dirent_h = yes; then
22721 HAVE_DIRENT_H=1
22722 else
22723 HAVE_DIRENT_H=0
22724 fi
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22736
22737
22738 if test $HAVE_DUP2 = 1; then
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22740 $as_echo_n "checking whether dup2 works... " >&6; }
22741 if test "${gl_cv_func_dup2_works+set}" = set; then :
22742 $as_echo_n "(cached) " >&6
22743 else
22744 if test "$cross_compiling" = yes; then :
22745 case "$host_os" in
22746 mingw*) # on this platform, dup2 always returns 0 for success
22747 gl_cv_func_dup2_works="guessing no" ;;
22748 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
22749 gl_cv_func_dup2_works="guessing no" ;;
22750 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22751 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22752 gl_cv_func_dup2_works="guessing no" ;;
22753 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22754 gl_cv_func_dup2_works="guessing no" ;;
22755 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22756 gl_cv_func_dup2_works="guessing no" ;;
22757 *) gl_cv_func_dup2_works="guessing yes" ;;
22758 esac
22759 else
22760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22761 /* end confdefs.h. */
22762
22763 #include <unistd.h>
22764 #include <fcntl.h>
22765 #include <errno.h>
22766 int
22767 main ()
22768 {
22769 int result = 0;
22770 #ifdef FD_CLOEXEC
22771 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22772 result |= 1;
22773 #endif
22774 if (dup2 (1, 1) == 0)
22775 result |= 2;
22776 #ifdef FD_CLOEXEC
22777 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22778 result |= 4;
22779 #endif
22780 close (0);
22781 if (dup2 (0, 0) != -1)
22782 result |= 8;
22783 /* Many gnulib modules require POSIX conformance of EBADF. */
22784 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22785 result |= 16;
22786 /* Flush out some cygwin core dumps. */
22787 if (dup2 (2, -1) != -1 || errno != EBADF)
22788 result |= 32;
22789 dup2 (2, 255);
22790 dup2 (2, 256);
22791 return result;
22792
22793 ;
22794 return 0;
22795 }
22796
22797 _ACEOF
22798 if ac_fn_c_try_run "$LINENO"; then :
22799 gl_cv_func_dup2_works=yes
22800 else
22801 gl_cv_func_dup2_works=no
22802 fi
22803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22804 conftest.$ac_objext conftest.beam conftest.$ac_ext
22805 fi
22806
22807
22808 fi
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22810 $as_echo "$gl_cv_func_dup2_works" >&6; }
22811 case "$gl_cv_func_dup2_works" in
22812 *yes) ;;
22813 *)
22814 REPLACE_DUP2=1
22815 for ac_func in setdtablesize
22816 do :
22817 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
22818 if test "x$ac_cv_func_setdtablesize" = x""yes; then :
22819 cat >>confdefs.h <<_ACEOF
22820 #define HAVE_SETDTABLESIZE 1
22821 _ACEOF
22822
22823 fi
22824 done
22825
22826 ;;
22827 esac
22828 fi
22829
22830
22831 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
22832
22833
22834
22835
22836
22837
22838
22839
22840 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
22841
22842
22843 fi
22844
22845
22846
22847
22848
22849 GNULIB_DUP2=1
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861 GNULIB_ENVIRON=1
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871 LIB_EXECINFO=''
22872 EXECINFO_H='execinfo.h'
22873
22874 if test $ac_cv_header_execinfo_h = yes; then
22875 gl_saved_libs=$LIBS
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22877 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22878 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22879 $as_echo_n "(cached) " >&6
22880 else
22881 ac_func_search_save_LIBS=$LIBS
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h. */
22884
22885 /* Override any GCC internal prototype to avoid an error.
22886 Use char because int might match the return type of a GCC
22887 builtin and then its argument prototype would still apply. */
22888 #ifdef __cplusplus
22889 extern "C"
22890 #endif
22891 char backtrace_symbols_fd ();
22892 int
22893 main ()
22894 {
22895 return backtrace_symbols_fd ();
22896 ;
22897 return 0;
22898 }
22899 _ACEOF
22900 for ac_lib in '' execinfo; do
22901 if test -z "$ac_lib"; then
22902 ac_res="none required"
22903 else
22904 ac_res=-l$ac_lib
22905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22906 fi
22907 if ac_fn_c_try_link "$LINENO"; then :
22908 ac_cv_search_backtrace_symbols_fd=$ac_res
22909 fi
22910 rm -f core conftest.err conftest.$ac_objext \
22911 conftest$ac_exeext
22912 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22913 break
22914 fi
22915 done
22916 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22917
22918 else
22919 ac_cv_search_backtrace_symbols_fd=no
22920 fi
22921 rm conftest.$ac_ext
22922 LIBS=$ac_func_search_save_LIBS
22923 fi
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22925 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22926 ac_res=$ac_cv_search_backtrace_symbols_fd
22927 if test "$ac_res" != no; then :
22928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22929 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22930 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
22931 fi
22932
22933 LIBS=$gl_saved_libs
22934 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
22935 fi
22936
22937 if test -n "$EXECINFO_H"; then
22938
22939
22940
22941
22942
22943
22944
22945
22946 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
22947
22948 fi
22949
22950
22951
22952 if test -n "$EXECINFO_H"; then
22953 GL_GENERATE_EXECINFO_H_TRUE=
22954 GL_GENERATE_EXECINFO_H_FALSE='#'
22955 else
22956 GL_GENERATE_EXECINFO_H_TRUE='#'
22957 GL_GENERATE_EXECINFO_H_FALSE=
22958 fi
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968 if test $ac_cv_func_faccessat = no; then
22969 HAVE_FACCESSAT=0
22970 fi
22971
22972 if test $HAVE_FACCESSAT = 0; then
22973
22974
22975
22976
22977
22978
22979
22980
22981 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
22982
22983
22984 for ac_func in access
22985 do :
22986 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
22987 if test "x$ac_cv_func_access" = x""yes; then :
22988 cat >>confdefs.h <<_ACEOF
22989 #define HAVE_ACCESS 1
22990 _ACEOF
22991
22992 fi
22993 done
22994
22995
22996 fi
22997
22998
22999 cat >>confdefs.h <<_ACEOF
23000 #define GNULIB_FACCESSAT 1
23001 _ACEOF
23002
23003
23004
23005
23006
23007
23008
23009 GNULIB_FACCESSAT=1
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020 if test $ac_cv_func_fcntl = no; then
23021
23022
23023
23024 if test $ac_cv_func_fcntl = no; then
23025 HAVE_FCNTL=0
23026 else
23027 REPLACE_FCNTL=1
23028 fi
23029
23030 else
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
23032 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
23033 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
23034 $as_echo_n "(cached) " >&6
23035 else
23036 if test "$cross_compiling" = yes; then :
23037 # Guess that it works on glibc systems
23038 case $host_os in #((
23039 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
23040 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
23041 esac
23042 else
23043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23044 /* end confdefs.h. */
23045
23046 #include <fcntl.h>
23047 #include <errno.h>
23048
23049 int
23050 main ()
23051 {
23052 int result = 0;
23053 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
23054 if (errno != EINVAL) result |= 2;
23055 return result;
23056
23057 ;
23058 return 0;
23059 }
23060 _ACEOF
23061 if ac_fn_c_try_run "$LINENO"; then :
23062 gl_cv_func_fcntl_f_dupfd_works=yes
23063 else
23064 gl_cv_func_fcntl_f_dupfd_works=no
23065 fi
23066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23067 conftest.$ac_objext conftest.beam conftest.$ac_ext
23068 fi
23069
23070 fi
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
23072 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
23073 case $gl_cv_func_fcntl_f_dupfd_works in
23074 *yes) ;;
23075 *)
23076
23077
23078 if test $ac_cv_func_fcntl = no; then
23079 HAVE_FCNTL=0
23080 else
23081 REPLACE_FCNTL=1
23082 fi
23083
23084
23085 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
23086 ;;
23087 esac
23088
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
23090 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
23091 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
23092 $as_echo_n "(cached) " >&6
23093 else
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23096
23097 #include <fcntl.h>
23098 #ifndef F_DUPFD_CLOEXEC
23099 choke me
23100 #endif
23101
23102 int
23103 main ()
23104 {
23105
23106 ;
23107 return 0;
23108 }
23109 _ACEOF
23110 if ac_fn_c_try_compile "$LINENO"; then :
23111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23112 /* end confdefs.h. */
23113
23114 #ifdef __linux__
23115 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
23116 it to support the semantics on older kernels that failed with EINVAL. */
23117 choke me
23118 #endif
23119
23120 int
23121 main ()
23122 {
23123
23124 ;
23125 return 0;
23126 }
23127 _ACEOF
23128 if ac_fn_c_try_compile "$LINENO"; then :
23129 gl_cv_func_fcntl_f_dupfd_cloexec=yes
23130 else
23131 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
23132 fi
23133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134 else
23135 gl_cv_func_fcntl_f_dupfd_cloexec=no
23136 fi
23137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23138 fi
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
23140 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
23141 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
23142
23143
23144
23145 if test $ac_cv_func_fcntl = no; then
23146 HAVE_FCNTL=0
23147 else
23148 REPLACE_FCNTL=1
23149 fi
23150
23151 fi
23152 fi
23153
23154
23155 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
23156
23157
23158
23159
23160
23161
23162
23163
23164 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
23165
23166 fi
23167
23168
23169
23170
23171
23172 GNULIB_FCNTL=1
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189 if test $gl_cv_have_include_next = yes; then
23190 gl_cv_next_fcntl_h='<'fcntl.h'>'
23191 else
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23193 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
23194 if test "${gl_cv_next_fcntl_h+set}" = set; then :
23195 $as_echo_n "(cached) " >&6
23196 else
23197
23198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23199 /* end confdefs.h. */
23200 #include <fcntl.h>
23201
23202 _ACEOF
23203 case "$host_os" in
23204 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23205 *) gl_absname_cpp="$ac_cpp" ;;
23206 esac
23207
23208 case "$host_os" in
23209 mingw*)
23210 gl_dirsep_regex='[/\\]'
23211 ;;
23212 *)
23213 gl_dirsep_regex='\/'
23214 ;;
23215 esac
23216 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23217
23218 gl_header_literal_regex=`echo 'fcntl.h' \
23219 | sed -e "$gl_make_literal_regex_sed"`
23220 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23221 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23222 s|^/[^/]|//&|
23223 p
23224 q
23225 }'
23226 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23227 sed -n "$gl_absolute_header_sed"`'"'
23228
23229
23230 fi
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23232 $as_echo "$gl_cv_next_fcntl_h" >&6; }
23233 fi
23234 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
23235
23236 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23237 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23238 gl_next_as_first_directive='<'fcntl.h'>'
23239 else
23240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23241 gl_next_as_first_directive=$gl_cv_next_fcntl_h
23242 fi
23243 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259 LIB_FDATASYNC=
23260
23261
23262 if test $ac_cv_have_decl_fdatasync = no; then
23263 HAVE_DECL_FDATASYNC=0
23264 for ac_func in fdatasync
23265 do :
23266 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
23267 if test "x$ac_cv_func_fdatasync" = x""yes; then :
23268 cat >>confdefs.h <<_ACEOF
23269 #define HAVE_FDATASYNC 1
23270 _ACEOF
23271
23272 fi
23273 done
23274
23275 if test $ac_cv_func_fdatasync = no; then
23276 HAVE_FDATASYNC=0
23277 fi
23278 else
23279 gl_saved_libs=$LIBS
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
23281 $as_echo_n "checking for library containing fdatasync... " >&6; }
23282 if test "${ac_cv_search_fdatasync+set}" = set; then :
23283 $as_echo_n "(cached) " >&6
23284 else
23285 ac_func_search_save_LIBS=$LIBS
23286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23287 /* end confdefs.h. */
23288
23289 /* Override any GCC internal prototype to avoid an error.
23290 Use char because int might match the return type of a GCC
23291 builtin and then its argument prototype would still apply. */
23292 #ifdef __cplusplus
23293 extern "C"
23294 #endif
23295 char fdatasync ();
23296 int
23297 main ()
23298 {
23299 return fdatasync ();
23300 ;
23301 return 0;
23302 }
23303 _ACEOF
23304 for ac_lib in '' rt posix4; do
23305 if test -z "$ac_lib"; then
23306 ac_res="none required"
23307 else
23308 ac_res=-l$ac_lib
23309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23310 fi
23311 if ac_fn_c_try_link "$LINENO"; then :
23312 ac_cv_search_fdatasync=$ac_res
23313 fi
23314 rm -f core conftest.err conftest.$ac_objext \
23315 conftest$ac_exeext
23316 if test "${ac_cv_search_fdatasync+set}" = set; then :
23317 break
23318 fi
23319 done
23320 if test "${ac_cv_search_fdatasync+set}" = set; then :
23321
23322 else
23323 ac_cv_search_fdatasync=no
23324 fi
23325 rm conftest.$ac_ext
23326 LIBS=$ac_func_search_save_LIBS
23327 fi
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
23329 $as_echo "$ac_cv_search_fdatasync" >&6; }
23330 ac_res=$ac_cv_search_fdatasync
23331 if test "$ac_res" != no; then :
23332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23333 test "$ac_cv_search_fdatasync" = "none required" ||
23334 LIB_FDATASYNC=$ac_cv_search_fdatasync
23335 fi
23336
23337 LIBS=$gl_saved_libs
23338 fi
23339
23340 if test $HAVE_FDATASYNC = 0; then
23341
23342
23343
23344
23345
23346
23347
23348
23349 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
23350
23351 fi
23352
23353
23354
23355
23356
23357 GNULIB_FDATASYNC=1
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
23369 #include <dirent.h>
23370
23371 "
23372 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
23373 ac_have_decl=1
23374 else
23375 ac_have_decl=0
23376 fi
23377
23378 cat >>confdefs.h <<_ACEOF
23379 #define HAVE_DECL_FDOPENDIR $ac_have_decl
23380 _ACEOF
23381 if test $ac_have_decl = 1; then :
23382
23383 else
23384 HAVE_DECL_FDOPENDIR=0
23385 fi
23386
23387
23388 if test $ac_cv_func_fdopendir = no; then
23389 HAVE_FDOPENDIR=0
23390 else
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
23392 $as_echo_n "checking whether fdopendir works... " >&6; }
23393 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
23394 $as_echo_n "(cached) " >&6
23395 else
23396 if test "$cross_compiling" = yes; then :
23397 case "$host_os" in
23398 # Guess yes on glibc systems.
23399 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
23400 # If we don't know, assume the worst.
23401 *) gl_cv_func_fdopendir_works="guessing no" ;;
23402 esac
23403
23404 else
23405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23406 /* end confdefs.h. */
23407
23408 #include <dirent.h>
23409 #include <fcntl.h>
23410 #include <unistd.h>
23411 #if !HAVE_DECL_FDOPENDIR
23412 extern
23413 # ifdef __cplusplus
23414 "C"
23415 # endif
23416 DIR *fdopendir (int);
23417 #endif
23418
23419 int
23420 main ()
23421 {
23422 int result = 0;
23423 int fd = open ("conftest.c", O_RDONLY);
23424 if (fd < 0) result |= 1;
23425 if (fdopendir (fd)) result |= 2;
23426 if (close (fd)) result |= 4;
23427 return result;
23428 ;
23429 return 0;
23430 }
23431 _ACEOF
23432 if ac_fn_c_try_run "$LINENO"; then :
23433 gl_cv_func_fdopendir_works=yes
23434 else
23435 gl_cv_func_fdopendir_works=no
23436 fi
23437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23438 conftest.$ac_objext conftest.beam conftest.$ac_ext
23439 fi
23440
23441 fi
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23443 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23444 case "$gl_cv_func_fdopendir_works" in
23445 *yes) ;;
23446 *)
23447 REPLACE_FDOPENDIR=1
23448 ;;
23449 esac
23450 fi
23451
23452 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
23453
23454
23455
23456
23457
23458
23459
23460
23461 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
23462
23463 fi
23464
23465
23466
23467
23468
23469 GNULIB_FDOPENDIR=1
23470
23471
23472
23473
23474
23475
23476
23477 cat >>confdefs.h <<_ACEOF
23478 #define GNULIB_FDOPENDIR 1
23479 _ACEOF
23480
23481
23482
23483
23484
23485
23486
23487
23488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23489 $as_echo_n "checking for __fpending... " >&6; }
23490 if test "${gl_cv_func___fpending+set}" = set; then :
23491 $as_echo_n "(cached) " >&6
23492 else
23493
23494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23495 /* end confdefs.h. */
23496 #include <stdio.h>
23497 #if HAVE_STDIO_EXT_H
23498 # include <stdio_ext.h>
23499 #endif
23500
23501 int
23502 main ()
23503 {
23504 return ! __fpending (stdin);
23505 ;
23506 return 0;
23507 }
23508 _ACEOF
23509 if ac_fn_c_try_link "$LINENO"; then :
23510 gl_cv_func___fpending=yes
23511 else
23512 gl_cv_func___fpending=no
23513 fi
23514 rm -f core conftest.err conftest.$ac_objext \
23515 conftest$ac_exeext conftest.$ac_ext
23516
23517 fi
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23519 $as_echo "$gl_cv_func___fpending" >&6; }
23520
23521 if test $gl_cv_func___fpending = no; then
23522
23523
23524
23525
23526
23527
23528
23529
23530 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
23531
23532
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23534 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23535 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23536 $as_echo_n "(cached) " >&6
23537 else
23538
23539 for ac_expr in \
23540 \
23541 '# glibc2' \
23542 'fp->_IO_write_ptr - fp->_IO_write_base' \
23543 \
23544 '# traditional Unix' \
23545 'fp->_ptr - fp->_base' \
23546 \
23547 '# BSD' \
23548 'fp->_p - fp->_bf._base' \
23549 \
23550 '# SCO, Unixware' \
23551 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23552 \
23553 '# QNX' \
23554 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23555 \
23556 '# old glibc?' \
23557 'fp->__bufp - fp->__buffer' \
23558 \
23559 '# old glibc iostream?' \
23560 'fp->_pptr - fp->_pbase' \
23561 \
23562 '# emx+gcc' \
23563 'fp->_ptr - fp->_buffer' \
23564 \
23565 '# Minix' \
23566 'fp->_ptr - fp->_buf' \
23567 \
23568 '# Plan9' \
23569 'fp->wp - fp->buf' \
23570 \
23571 '# VMS' \
23572 '(*fp)->_ptr - (*fp)->_base' \
23573 \
23574 '# e.g., DGUX R4.11; the info is not available' \
23575 1 \
23576 ; do
23577
23578 # Skip each embedded comment.
23579 case "$ac_expr" in '#'*) continue;; esac
23580
23581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23582 /* end confdefs.h. */
23583 #include <stdio.h>
23584 int
23585 main ()
23586 {
23587 FILE *fp = stdin; (void) ($ac_expr);
23588 ;
23589 return 0;
23590 }
23591 _ACEOF
23592 if ac_fn_c_try_compile "$LINENO"; then :
23593 fp_done=yes
23594
23595 fi
23596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 test "$fp_done" = yes && break
23598 done
23599
23600 ac_cv_sys_pending_output_n_bytes=$ac_expr
23601
23602
23603 fi
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23605 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23606
23607 cat >>confdefs.h <<_ACEOF
23608 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23609 _ACEOF
23610
23611
23612 fi
23613
23614
23615
23616
23617
23618
23619 if test $ac_cv_func_fstatat = no; then
23620 HAVE_FSTATAT=0
23621 else
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23623 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23624 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23625 $as_echo_n "(cached) " >&6
23626 else
23627 if test "$cross_compiling" = yes; then :
23628 case "$host_os" in
23629 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
23630 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
23631 esac
23632
23633 else
23634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23635 /* end confdefs.h. */
23636
23637 #include <fcntl.h>
23638 #include <sys/stat.h>
23639 int
23640 main (void)
23641 {
23642 struct stat a;
23643 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23644 }
23645
23646 _ACEOF
23647 if ac_fn_c_try_run "$LINENO"; then :
23648 gl_cv_func_fstatat_zero_flag=yes
23649 else
23650 gl_cv_func_fstatat_zero_flag=no
23651 fi
23652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23653 conftest.$ac_objext conftest.beam conftest.$ac_ext
23654 fi
23655
23656
23657 fi
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23659 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23660
23661 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23662 *yes+*yes) ;;
23663 *) REPLACE_FSTATAT=1
23664 case $gl_cv_func_fstatat_zero_flag in
23665 *yes)
23666
23667 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23668
23669 ;;
23670 esac
23671 ;;
23672 esac
23673 fi
23674
23675 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
23676
23677
23678
23679
23680
23681
23682
23683
23684 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
23685
23686 fi
23687
23688
23689
23690
23691
23692 GNULIB_FSTATAT=1
23693
23694
23695
23696
23697
23698
23699
23700
23701 if test $ac_cv_func_fsync = no; then
23702 HAVE_FSYNC=0
23703 fi
23704
23705 if test $HAVE_FSYNC = 0; then
23706
23707
23708
23709
23710
23711
23712
23713
23714 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
23715
23716 :
23717 fi
23718
23719
23720
23721
23722
23723 GNULIB_FSYNC=1
23724
23725
23726
23727
23728
23729
23730
23731 # Persuade glibc <stdlib.h> to declare getloadavg().
23732
23733
23734 gl_save_LIBS=$LIBS
23735
23736 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23737 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23738 HAVE_GETLOADAVG=1
23739 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23740 if test "x$ac_cv_func_getloadavg" = x""yes; then :
23741
23742 else
23743 gl_func_getloadavg_done=no
23744
23745 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23746 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23747 # to get the right answer into the cache.
23748 # For kstat on solaris, we need to test for libelf and libkvm to force the
23749 # definition of SVR4 below.
23750 if test $gl_func_getloadavg_done = no; then
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23752 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23753 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23754 $as_echo_n "(cached) " >&6
23755 else
23756 ac_check_lib_save_LIBS=$LIBS
23757 LIBS="-lelf $LIBS"
23758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23759 /* end confdefs.h. */
23760
23761 /* Override any GCC internal prototype to avoid an error.
23762 Use char because int might match the return type of a GCC
23763 builtin and then its argument prototype would still apply. */
23764 #ifdef __cplusplus
23765 extern "C"
23766 #endif
23767 char elf_begin ();
23768 int
23769 main ()
23770 {
23771 return elf_begin ();
23772 ;
23773 return 0;
23774 }
23775 _ACEOF
23776 if ac_fn_c_try_link "$LINENO"; then :
23777 ac_cv_lib_elf_elf_begin=yes
23778 else
23779 ac_cv_lib_elf_elf_begin=no
23780 fi
23781 rm -f core conftest.err conftest.$ac_objext \
23782 conftest$ac_exeext conftest.$ac_ext
23783 LIBS=$ac_check_lib_save_LIBS
23784 fi
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23786 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23787 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
23788 LIBS="-lelf $LIBS"
23789 fi
23790
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23792 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23793 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23794 $as_echo_n "(cached) " >&6
23795 else
23796 ac_check_lib_save_LIBS=$LIBS
23797 LIBS="-lkvm $LIBS"
23798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23799 /* end confdefs.h. */
23800
23801 /* Override any GCC internal prototype to avoid an error.
23802 Use char because int might match the return type of a GCC
23803 builtin and then its argument prototype would still apply. */
23804 #ifdef __cplusplus
23805 extern "C"
23806 #endif
23807 char kvm_open ();
23808 int
23809 main ()
23810 {
23811 return kvm_open ();
23812 ;
23813 return 0;
23814 }
23815 _ACEOF
23816 if ac_fn_c_try_link "$LINENO"; then :
23817 ac_cv_lib_kvm_kvm_open=yes
23818 else
23819 ac_cv_lib_kvm_kvm_open=no
23820 fi
23821 rm -f core conftest.err conftest.$ac_objext \
23822 conftest$ac_exeext conftest.$ac_ext
23823 LIBS=$ac_check_lib_save_LIBS
23824 fi
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23826 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23827 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
23828 LIBS="-lkvm $LIBS"
23829 fi
23830
23831 # Check for the 4.4BSD definition of getloadavg.
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23833 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23834 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23835 $as_echo_n "(cached) " >&6
23836 else
23837 ac_check_lib_save_LIBS=$LIBS
23838 LIBS="-lutil $LIBS"
23839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h. */
23841
23842 /* Override any GCC internal prototype to avoid an error.
23843 Use char because int might match the return type of a GCC
23844 builtin and then its argument prototype would still apply. */
23845 #ifdef __cplusplus
23846 extern "C"
23847 #endif
23848 char getloadavg ();
23849 int
23850 main ()
23851 {
23852 return getloadavg ();
23853 ;
23854 return 0;
23855 }
23856 _ACEOF
23857 if ac_fn_c_try_link "$LINENO"; then :
23858 ac_cv_lib_util_getloadavg=yes
23859 else
23860 ac_cv_lib_util_getloadavg=no
23861 fi
23862 rm -f core conftest.err conftest.$ac_objext \
23863 conftest$ac_exeext conftest.$ac_ext
23864 LIBS=$ac_check_lib_save_LIBS
23865 fi
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23867 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23868 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
23869 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
23870 fi
23871
23872 fi
23873
23874 if test $gl_func_getloadavg_done = no; then
23875 # There is a commonly available library for RS/6000 AIX.
23876 # Since it is not a standard part of AIX, it might be installed locally.
23877 gl_getloadavg_LIBS=$LIBS
23878 LIBS="-L/usr/local/lib $LIBS"
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23880 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23881 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23882 $as_echo_n "(cached) " >&6
23883 else
23884 ac_check_lib_save_LIBS=$LIBS
23885 LIBS="-lgetloadavg $LIBS"
23886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23887 /* end confdefs.h. */
23888
23889 /* Override any GCC internal prototype to avoid an error.
23890 Use char because int might match the return type of a GCC
23891 builtin and then its argument prototype would still apply. */
23892 #ifdef __cplusplus
23893 extern "C"
23894 #endif
23895 char getloadavg ();
23896 int
23897 main ()
23898 {
23899 return getloadavg ();
23900 ;
23901 return 0;
23902 }
23903 _ACEOF
23904 if ac_fn_c_try_link "$LINENO"; then :
23905 ac_cv_lib_getloadavg_getloadavg=yes
23906 else
23907 ac_cv_lib_getloadavg_getloadavg=no
23908 fi
23909 rm -f core conftest.err conftest.$ac_objext \
23910 conftest$ac_exeext conftest.$ac_ext
23911 LIBS=$ac_check_lib_save_LIBS
23912 fi
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23914 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23915 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
23916 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
23917 else
23918 LIBS=$gl_getloadavg_LIBS
23919 fi
23920
23921 fi
23922
23923 # Set up the replacement function if necessary.
23924 if test $gl_func_getloadavg_done = no; then
23925 HAVE_GETLOADAVG=0
23926
23927 # Solaris has libkstat which does not require root.
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23929 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23930 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23931 $as_echo_n "(cached) " >&6
23932 else
23933 ac_check_lib_save_LIBS=$LIBS
23934 LIBS="-lkstat $LIBS"
23935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23936 /* end confdefs.h. */
23937
23938 /* Override any GCC internal prototype to avoid an error.
23939 Use char because int might match the return type of a GCC
23940 builtin and then its argument prototype would still apply. */
23941 #ifdef __cplusplus
23942 extern "C"
23943 #endif
23944 char kstat_open ();
23945 int
23946 main ()
23947 {
23948 return kstat_open ();
23949 ;
23950 return 0;
23951 }
23952 _ACEOF
23953 if ac_fn_c_try_link "$LINENO"; then :
23954 ac_cv_lib_kstat_kstat_open=yes
23955 else
23956 ac_cv_lib_kstat_kstat_open=no
23957 fi
23958 rm -f core conftest.err conftest.$ac_objext \
23959 conftest$ac_exeext conftest.$ac_ext
23960 LIBS=$ac_check_lib_save_LIBS
23961 fi
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23963 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23964 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
23965 cat >>confdefs.h <<_ACEOF
23966 #define HAVE_LIBKSTAT 1
23967 _ACEOF
23968
23969 LIBS="-lkstat $LIBS"
23970
23971 fi
23972
23973 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
23974
23975 # AIX has libperfstat which does not require root
23976 if test $gl_func_getloadavg_done = no; then
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23978 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23979 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23980 $as_echo_n "(cached) " >&6
23981 else
23982 ac_check_lib_save_LIBS=$LIBS
23983 LIBS="-lperfstat $LIBS"
23984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23985 /* end confdefs.h. */
23986
23987 /* Override any GCC internal prototype to avoid an error.
23988 Use char because int might match the return type of a GCC
23989 builtin and then its argument prototype would still apply. */
23990 #ifdef __cplusplus
23991 extern "C"
23992 #endif
23993 char perfstat_cpu_total ();
23994 int
23995 main ()
23996 {
23997 return perfstat_cpu_total ();
23998 ;
23999 return 0;
24000 }
24001 _ACEOF
24002 if ac_fn_c_try_link "$LINENO"; then :
24003 ac_cv_lib_perfstat_perfstat_cpu_total=yes
24004 else
24005 ac_cv_lib_perfstat_perfstat_cpu_total=no
24006 fi
24007 rm -f core conftest.err conftest.$ac_objext \
24008 conftest$ac_exeext conftest.$ac_ext
24009 LIBS=$ac_check_lib_save_LIBS
24010 fi
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
24012 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
24013 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
24014 cat >>confdefs.h <<_ACEOF
24015 #define HAVE_LIBPERFSTAT 1
24016 _ACEOF
24017
24018 LIBS="-lperfstat $LIBS"
24019
24020 fi
24021
24022 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
24023 fi
24024
24025 if test $gl_func_getloadavg_done = no; then
24026 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
24027 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
24028 gl_func_getloadavg_done=yes
24029
24030 $as_echo "#define DGUX 1" >>confdefs.h
24031
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
24033 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
24034 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
24035 $as_echo_n "(cached) " >&6
24036 else
24037 ac_check_lib_save_LIBS=$LIBS
24038 LIBS="-ldgc $LIBS"
24039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24040 /* end confdefs.h. */
24041
24042 /* Override any GCC internal prototype to avoid an error.
24043 Use char because int might match the return type of a GCC
24044 builtin and then its argument prototype would still apply. */
24045 #ifdef __cplusplus
24046 extern "C"
24047 #endif
24048 char dg_sys_info ();
24049 int
24050 main ()
24051 {
24052 return dg_sys_info ();
24053 ;
24054 return 0;
24055 }
24056 _ACEOF
24057 if ac_fn_c_try_link "$LINENO"; then :
24058 ac_cv_lib_dgc_dg_sys_info=yes
24059 else
24060 ac_cv_lib_dgc_dg_sys_info=no
24061 fi
24062 rm -f core conftest.err conftest.$ac_objext \
24063 conftest$ac_exeext conftest.$ac_ext
24064 LIBS=$ac_check_lib_save_LIBS
24065 fi
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
24067 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
24068 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
24069 cat >>confdefs.h <<_ACEOF
24070 #define HAVE_LIBDGC 1
24071 _ACEOF
24072
24073 LIBS="-ldgc $LIBS"
24074
24075 fi
24076
24077 fi
24078
24079
24080 fi
24081 fi
24082 fi
24083
24084
24085 if test "x$gl_save_LIBS" = x; then
24086 GETLOADAVG_LIBS=$LIBS
24087 else
24088 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
24089 fi
24090 LIBS=$gl_save_LIBS
24091
24092
24093 # Test whether the system declares getloadavg. Solaris has the function
24094 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
24095 for ac_header in sys/loadavg.h
24096 do :
24097 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
24098 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
24099 cat >>confdefs.h <<_ACEOF
24100 #define HAVE_SYS_LOADAVG_H 1
24101 _ACEOF
24102
24103 fi
24104
24105 done
24106
24107 if test $ac_cv_header_sys_loadavg_h = yes; then
24108 HAVE_SYS_LOADAVG_H=1
24109 else
24110 HAVE_SYS_LOADAVG_H=0
24111 fi
24112 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
24113 # include <sys/loadavg.h>
24114 #endif
24115 #include <stdlib.h>
24116 "
24117 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
24118
24119 else
24120 HAVE_DECL_GETLOADAVG=0
24121 fi
24122
24123
24124 if test $HAVE_GETLOADAVG = 0; then
24125
24126
24127
24128
24129
24130
24131
24132
24133 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
24134
24135
24136 # Figure out what our getloadavg.c needs.
24137
24138
24139
24140 # On HPUX9, an unprivileged user can get load averages this way.
24141 if test $gl_func_getloadavg_done = no; then
24142 for ac_func in pstat_getdynamic
24143 do :
24144 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
24145 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
24146 cat >>confdefs.h <<_ACEOF
24147 #define HAVE_PSTAT_GETDYNAMIC 1
24148 _ACEOF
24149 gl_func_getloadavg_done=yes
24150 fi
24151 done
24152
24153 fi
24154
24155 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
24156 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
24157 # Irix 4.0.5F has the header but not the library.
24158 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
24159 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
24160 gl_func_getloadavg_done=yes
24161
24162 $as_echo "#define SVR4 1" >>confdefs.h
24163
24164 fi
24165
24166 if test $gl_func_getloadavg_done = no; then
24167 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
24168 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
24169 gl_func_getloadavg_done=yes
24170
24171 $as_echo "#define UMAX 1" >>confdefs.h
24172
24173
24174 $as_echo "#define UMAX4_3 1" >>confdefs.h
24175
24176 fi
24177
24178
24179 fi
24180
24181 if test $gl_func_getloadavg_done = no; then
24182 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
24183 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
24184 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
24185
24186 fi
24187
24188
24189 fi
24190
24191 if test $gl_func_getloadavg_done = no; then
24192 for ac_header in mach/mach.h
24193 do :
24194 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
24195 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
24196 cat >>confdefs.h <<_ACEOF
24197 #define HAVE_MACH_MACH_H 1
24198 _ACEOF
24199
24200 fi
24201
24202 done
24203
24204 fi
24205
24206 for ac_header in nlist.h
24207 do :
24208 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
24209 if test "x$ac_cv_header_nlist_h" = x""yes; then :
24210 cat >>confdefs.h <<_ACEOF
24211 #define HAVE_NLIST_H 1
24212 _ACEOF
24213 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
24214 "
24215 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
24216
24217 cat >>confdefs.h <<_ACEOF
24218 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
24219 _ACEOF
24220
24221
24222 fi
24223
24224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24225 /* end confdefs.h. */
24226 #include <nlist.h>
24227 int
24228 main ()
24229 {
24230 struct nlist x;
24231 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
24232 x.n_un.n_name = "";
24233 #else
24234 x.n_name = "";
24235 #endif
24236 ;
24237 return 0;
24238 }
24239 _ACEOF
24240 if ac_fn_c_try_link "$LINENO"; then :
24241
24242 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
24243
24244 fi
24245 rm -f core conftest.err conftest.$ac_objext \
24246 conftest$ac_exeext conftest.$ac_ext
24247
24248 fi
24249
24250 done
24251
24252 fi
24253
24254
24255
24256
24257
24258 GNULIB_GETLOADAVG=1
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269 if test $REPLACE_GETOPT = 1; then
24270
24271
24272
24273
24274
24275
24276
24277
24278 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24289
24290
24291
24292
24293 GNULIB_GL_UNISTD_H_GETOPT=1
24294 fi
24295
24296
24297
24298
24299
24300
24301
24302 REPLACE_GETOPT=0
24303 if test -n "$gl_replace_getopt"; then
24304 REPLACE_GETOPT=1
24305 fi
24306
24307 if test $REPLACE_GETOPT = 1; then
24308
24309 GETOPT_H=getopt.h
24310
24311 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
24312
24313
24314
24315 fi
24316
24317 if test $REPLACE_GETOPT = 1; then
24318
24319
24320
24321
24322
24323
24324
24325
24326 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24337
24338
24339
24340
24341 GNULIB_GL_UNISTD_H_GETOPT=1
24342 fi
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355 gl_gettimeofday_timezone=void
24356 if test $ac_cv_func_gettimeofday != yes; then
24357 HAVE_GETTIMEOFDAY=0
24358 else
24359
24360
24361
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
24363 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
24364 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
24365 $as_echo_n "(cached) " >&6
24366 else
24367 if test "$cross_compiling" = yes; then :
24368 # When cross-compiling:
24369 case "$host_os" in
24370 # Guess all is fine on glibc systems.
24371 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
24372 # If we don't know, assume the worst.
24373 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
24374 esac
24375
24376 else
24377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24378 /* end confdefs.h. */
24379 #include <string.h>
24380 #include <sys/time.h>
24381 #include <time.h>
24382 #include <stdlib.h>
24383
24384 int
24385 main ()
24386 {
24387
24388 time_t t = 0;
24389 struct tm *lt;
24390 struct tm saved_lt;
24391 struct timeval tv;
24392 lt = localtime (&t);
24393 saved_lt = *lt;
24394 gettimeofday (&tv, NULL);
24395 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
24396
24397 ;
24398 return 0;
24399 }
24400 _ACEOF
24401 if ac_fn_c_try_run "$LINENO"; then :
24402 gl_cv_func_gettimeofday_clobber=no
24403 else
24404 gl_cv_func_gettimeofday_clobber=yes
24405 fi
24406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24407 conftest.$ac_objext conftest.beam conftest.$ac_ext
24408 fi
24409
24410 fi
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
24412 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
24413
24414 case "$gl_cv_func_gettimeofday_clobber" in
24415 *yes)
24416 REPLACE_GETTIMEOFDAY=1
24417
24418
24419 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
24420
24421
24422 $as_echo "#define localtime rpl_localtime" >>confdefs.h
24423
24424
24425
24426 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
24427
24428 ;;
24429 esac
24430
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24432 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24433 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24434 $as_echo_n "(cached) " >&6
24435 else
24436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h. */
24438 #include <sys/time.h>
24439 struct timeval c;
24440 int gettimeofday (struct timeval *restrict, void *restrict);
24441
24442 int
24443 main ()
24444 {
24445 /* glibc uses struct timezone * rather than the POSIX void *
24446 if _GNU_SOURCE is defined. However, since the only portable
24447 use of gettimeofday uses NULL as the second parameter, and
24448 since the glibc definition is actually more typesafe, it is
24449 not worth wrapping this to get a compliant signature. */
24450 int (*f) (struct timeval *restrict, void *restrict)
24451 = gettimeofday;
24452 int x = f (&c, 0);
24453 return !(x | c.tv_sec | c.tv_usec);
24454
24455 ;
24456 return 0;
24457 }
24458 _ACEOF
24459 if ac_fn_c_try_compile "$LINENO"; then :
24460 gl_cv_func_gettimeofday_posix_signature=yes
24461 else
24462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24463 /* end confdefs.h. */
24464 #include <sys/time.h>
24465 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24466
24467 int
24468 main ()
24469 {
24470
24471 ;
24472 return 0;
24473 }
24474 _ACEOF
24475 if ac_fn_c_try_compile "$LINENO"; then :
24476 gl_cv_func_gettimeofday_posix_signature=almost
24477 else
24478 gl_cv_func_gettimeofday_posix_signature=no
24479 fi
24480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24481 fi
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483 fi
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24485 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24486 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
24487 gl_gettimeofday_timezone='struct timezone'
24488 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24489 REPLACE_GETTIMEOFDAY=1
24490 fi
24491 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24492 REPLACE_GETTIMEOFDAY=1
24493 fi
24494
24495 fi
24496
24497 cat >>confdefs.h <<_ACEOF
24498 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24499 _ACEOF
24500
24501
24502 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
24503
24504
24505
24506
24507
24508
24509
24510
24511 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
24512
24513
24514 for ac_header in sys/timeb.h
24515 do :
24516 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24517 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
24518 cat >>confdefs.h <<_ACEOF
24519 #define HAVE_SYS_TIMEB_H 1
24520 _ACEOF
24521
24522 fi
24523
24524 done
24525
24526 for ac_func in _ftime
24527 do :
24528 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
24529 if test "x$ac_cv_func__ftime" = x""yes; then :
24530 cat >>confdefs.h <<_ACEOF
24531 #define HAVE__FTIME 1
24532 _ACEOF
24533
24534 fi
24535 done
24536
24537
24538 fi
24539
24540
24541
24542
24543
24544 GNULIB_GETTIMEOFDAY=1
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555 if test $ac_cv_func_lstat = yes; then
24556
24557 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24558 *no)
24559 REPLACE_LSTAT=1
24560 ;;
24561 esac
24562 else
24563 HAVE_LSTAT=0
24564 fi
24565
24566 if test $REPLACE_LSTAT = 1; then
24567
24568
24569
24570
24571
24572
24573
24574
24575 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24576
24577 :
24578 fi
24579
24580
24581
24582
24583
24584 GNULIB_LSTAT=1
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595 if test $ac_cv_have_decl_memrchr = no; then
24596 HAVE_DECL_MEMRCHR=0
24597 fi
24598
24599 for ac_func in memrchr
24600 do :
24601 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
24602 if test "x$ac_cv_func_memrchr" = x""yes; then :
24603 cat >>confdefs.h <<_ACEOF
24604 #define HAVE_MEMRCHR 1
24605 _ACEOF
24606
24607 fi
24608 done
24609
24610
24611 if test $ac_cv_func_memrchr = no; then
24612
24613
24614
24615
24616
24617
24618
24619
24620 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
24621
24622 :
24623 fi
24624
24625
24626
24627
24628
24629 GNULIB_MEMRCHR=1
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641 if test $ac_cv_func_mkostemp != yes; then
24642 HAVE_MKOSTEMP=0
24643 fi
24644
24645 if test $HAVE_MKOSTEMP = 0; then
24646
24647
24648
24649
24650
24651
24652
24653
24654 gl_LIBOBJS="$gl_LIBOBJS mkostemp.$ac_objext"
24655
24656
24657
24658 fi
24659
24660
24661 cat >>confdefs.h <<_ACEOF
24662 #define GNULIB_MKOSTEMP 1
24663 _ACEOF
24664
24665
24666
24667
24668
24669
24670
24671 GNULIB_MKOSTEMP=1
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683 if test $APPLE_UNIVERSAL_BUILD = 1; then
24684 # A universal build on Apple Mac OS X platforms.
24685 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24686 # But we need a configuration result that is valid in both modes.
24687 gl_cv_func_working_mktime=no
24688 fi
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24690 $as_echo_n "checking for working mktime... " >&6; }
24691 if test "${gl_cv_func_working_mktime+set}" = set; then :
24692 $as_echo_n "(cached) " >&6
24693 else
24694 if test "$cross_compiling" = yes; then :
24695 gl_cv_func_working_mktime=no
24696 else
24697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24698 /* end confdefs.h. */
24699 /* Test program from Paul Eggert and Tony Leneis. */
24700 #include <limits.h>
24701 #include <stdlib.h>
24702 #include <time.h>
24703
24704 #ifdef HAVE_UNISTD_H
24705 # include <unistd.h>
24706 #endif
24707
24708 #if HAVE_DECL_ALARM
24709 # include <signal.h>
24710 #endif
24711
24712 /* Work around redefinition to rpl_putenv by other config tests. */
24713 #undef putenv
24714
24715 static time_t time_t_max;
24716 static time_t time_t_min;
24717
24718 /* Values we'll use to set the TZ environment variable. */
24719 static char *tz_strings[] = {
24720 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24721 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24722 };
24723 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24724
24725 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24726 Based on a problem report from Andreas Jaeger. */
24727 static int
24728 spring_forward_gap ()
24729 {
24730 /* glibc (up to about 1998-10-07) failed this test. */
24731 struct tm tm;
24732
24733 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24734 instead of "TZ=America/Vancouver" in order to detect the bug even
24735 on systems that don't support the Olson extension, or don't have the
24736 full zoneinfo tables installed. */
24737 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24738
24739 tm.tm_year = 98;
24740 tm.tm_mon = 3;
24741 tm.tm_mday = 5;
24742 tm.tm_hour = 2;
24743 tm.tm_min = 0;
24744 tm.tm_sec = 0;
24745 tm.tm_isdst = -1;
24746 return mktime (&tm) != (time_t) -1;
24747 }
24748
24749 static int
24750 mktime_test1 (time_t now)
24751 {
24752 struct tm *lt;
24753 return ! (lt = localtime (&now)) || mktime (lt) == now;
24754 }
24755
24756 static int
24757 mktime_test (time_t now)
24758 {
24759 return (mktime_test1 (now)
24760 && mktime_test1 ((time_t) (time_t_max - now))
24761 && mktime_test1 ((time_t) (time_t_min + now)));
24762 }
24763
24764 static int
24765 irix_6_4_bug ()
24766 {
24767 /* Based on code from Ariel Faigon. */
24768 struct tm tm;
24769 tm.tm_year = 96;
24770 tm.tm_mon = 3;
24771 tm.tm_mday = 0;
24772 tm.tm_hour = 0;
24773 tm.tm_min = 0;
24774 tm.tm_sec = 0;
24775 tm.tm_isdst = -1;
24776 mktime (&tm);
24777 return tm.tm_mon == 2 && tm.tm_mday == 31;
24778 }
24779
24780 static int
24781 bigtime_test (int j)
24782 {
24783 struct tm tm;
24784 time_t now;
24785 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24786 now = mktime (&tm);
24787 if (now != (time_t) -1)
24788 {
24789 struct tm *lt = localtime (&now);
24790 if (! (lt
24791 && lt->tm_year == tm.tm_year
24792 && lt->tm_mon == tm.tm_mon
24793 && lt->tm_mday == tm.tm_mday
24794 && lt->tm_hour == tm.tm_hour
24795 && lt->tm_min == tm.tm_min
24796 && lt->tm_sec == tm.tm_sec
24797 && lt->tm_yday == tm.tm_yday
24798 && lt->tm_wday == tm.tm_wday
24799 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24800 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24801 return 0;
24802 }
24803 return 1;
24804 }
24805
24806 static int
24807 year_2050_test ()
24808 {
24809 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24810 ignoring leap seconds. */
24811 unsigned long int answer = 2527315200UL;
24812
24813 struct tm tm;
24814 time_t t;
24815 tm.tm_year = 2050 - 1900;
24816 tm.tm_mon = 2 - 1;
24817 tm.tm_mday = 1;
24818 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24819 tm.tm_isdst = -1;
24820
24821 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24822 instead of "TZ=America/Vancouver" in order to detect the bug even
24823 on systems that don't support the Olson extension, or don't have the
24824 full zoneinfo tables installed. */
24825 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24826
24827 t = mktime (&tm);
24828
24829 /* Check that the result is either a failure, or close enough
24830 to the correct answer that we can assume the discrepancy is
24831 due to leap seconds. */
24832 return (t == (time_t) -1
24833 || (0 < t && answer - 120 <= t && t <= answer + 120));
24834 }
24835
24836 int
24837 main ()
24838 {
24839 int result = 0;
24840 time_t t, delta;
24841 int i, j;
24842 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24843 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24844
24845 #if HAVE_DECL_ALARM
24846 /* This test makes some buggy mktime implementations loop.
24847 Give up after 60 seconds; a mktime slower than that
24848 isn't worth using anyway. */
24849 signal (SIGALRM, SIG_DFL);
24850 alarm (60);
24851 #endif
24852
24853 time_t_max = (! time_t_signed
24854 ? (time_t) -1
24855 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24856 * 2 + 1));
24857 time_t_min = (! time_t_signed
24858 ? (time_t) 0
24859 : time_t_signed_magnitude
24860 ? ~ (time_t) 0
24861 : ~ time_t_max);
24862
24863 delta = time_t_max / 997; /* a suitable prime number */
24864 for (i = 0; i < N_STRINGS; i++)
24865 {
24866 if (tz_strings[i])
24867 putenv (tz_strings[i]);
24868
24869 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24870 if (! mktime_test (t))
24871 result |= 1;
24872 if ((result & 2) == 0
24873 && ! (mktime_test ((time_t) 1)
24874 && mktime_test ((time_t) (60 * 60))
24875 && mktime_test ((time_t) (60 * 60 * 24))))
24876 result |= 2;
24877
24878 for (j = 1; (result & 4) == 0; j <<= 1)
24879 {
24880 if (! bigtime_test (j))
24881 result |= 4;
24882 if (INT_MAX / 2 < j)
24883 break;
24884 }
24885 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24886 result |= 8;
24887 }
24888 if (! irix_6_4_bug ())
24889 result |= 16;
24890 if (! spring_forward_gap ())
24891 result |= 32;
24892 if (! year_2050_test ())
24893 result |= 64;
24894 return result;
24895 }
24896 _ACEOF
24897 if ac_fn_c_try_run "$LINENO"; then :
24898 gl_cv_func_working_mktime=yes
24899 else
24900 gl_cv_func_working_mktime=no
24901 fi
24902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24903 conftest.$ac_objext conftest.beam conftest.$ac_ext
24904 fi
24905
24906
24907 fi
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24909 $as_echo "$gl_cv_func_working_mktime" >&6; }
24910
24911 if test $gl_cv_func_working_mktime = no; then
24912 REPLACE_MKTIME=1
24913 else
24914 REPLACE_MKTIME=0
24915 fi
24916
24917 if test $REPLACE_MKTIME = 1; then
24918
24919
24920
24921
24922
24923
24924
24925
24926 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24927
24928 :
24929 fi
24930
24931
24932
24933
24934
24935 GNULIB_MKTIME=1
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948 if test $ac_cv_func_pipe2 != yes; then
24949 HAVE_PIPE2=0
24950 fi
24951
24952
24953
24954
24955
24956
24957 GNULIB_PIPE2=1
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968 if test $ac_cv_func_pselect = yes; then
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24970 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24971 if test "${gl_cv_sig_pselect+set}" = set; then :
24972 $as_echo_n "(cached) " >&6
24973 else
24974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24975 /* end confdefs.h. */
24976 #include <sys/select.h>
24977
24978 int
24979 main ()
24980 {
24981 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24982 struct timespec const *restrict,
24983 sigset_t const *restrict) = pselect;
24984 return !p;
24985 ;
24986 return 0;
24987 }
24988 _ACEOF
24989 if ac_fn_c_try_link "$LINENO"; then :
24990 gl_cv_sig_pselect=yes
24991 else
24992 gl_cv_sig_pselect=no
24993 fi
24994 rm -f core conftest.err conftest.$ac_objext \
24995 conftest$ac_exeext conftest.$ac_ext
24996 fi
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24998 $as_echo "$gl_cv_sig_pselect" >&6; }
24999
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
25001 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
25002 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
25003 $as_echo_n "(cached) " >&6
25004 else
25005
25006 if test "$cross_compiling" = yes; then :
25007
25008 case "$host_os" in
25009 # Guess yes on glibc systems.
25010 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
25011 # If we don't know, assume the worst.
25012 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
25013 esac
25014
25015 else
25016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25017 /* end confdefs.h. */
25018
25019 #include <sys/types.h>
25020 #include <sys/time.h>
25021 #if HAVE_SYS_SELECT_H
25022 # include <sys/select.h>
25023 #endif
25024 #include <unistd.h>
25025 #include <errno.h>
25026
25027 int
25028 main ()
25029 {
25030
25031 fd_set set;
25032 dup2(0, 16);
25033 FD_ZERO(&set);
25034 FD_SET(16, &set);
25035 close(16);
25036 struct timespec timeout;
25037 timeout.tv_sec = 0;
25038 timeout.tv_nsec = 5000;
25039 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
25040
25041 ;
25042 return 0;
25043 }
25044 _ACEOF
25045 if ac_fn_c_try_run "$LINENO"; then :
25046 gl_cv_func_pselect_detects_ebadf=yes
25047 else
25048 gl_cv_func_pselect_detects_ebadf=no
25049 fi
25050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25051 conftest.$ac_objext conftest.beam conftest.$ac_ext
25052 fi
25053
25054
25055 fi
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
25057 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
25058 case $gl_cv_func_pselect_detects_ebadf in
25059 *yes) ;;
25060 *) REPLACE_PSELECT=1 ;;
25061 esac
25062 fi
25063
25064 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
25065 REPLACE_PSELECT=1
25066 fi
25067
25068 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
25069
25070
25071
25072
25073
25074
25075
25076
25077 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
25078
25079 fi
25080
25081
25082
25083
25084
25085 GNULIB_PSELECT=1
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095 LIB_PTHREAD_SIGMASK=
25096
25097
25098
25099
25100 if test "$gl_threads_api" = posix; then
25101 if test $ac_cv_func_pthread_sigmask = yes; then
25102 :
25103 else
25104 if test -n "$LIBMULTITHREAD"; then
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
25106 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
25107 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
25108 $as_echo_n "(cached) " >&6
25109 else
25110 gl_save_LIBS="$LIBS"
25111 LIBS="$LIBS $LIBMULTITHREAD"
25112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25113 /* end confdefs.h. */
25114 #include <pthread.h>
25115 #include <signal.h>
25116
25117 int
25118 main ()
25119 {
25120 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
25121 ;
25122 return 0;
25123 }
25124
25125 _ACEOF
25126 if ac_fn_c_try_link "$LINENO"; then :
25127 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
25128 else
25129 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
25130 fi
25131 rm -f core conftest.err conftest.$ac_objext \
25132 conftest$ac_exeext conftest.$ac_ext
25133 LIBS="$gl_save_LIBS"
25134
25135 fi
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
25137 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
25138 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
25139 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
25140 else
25141 HAVE_PTHREAD_SIGMASK=0
25142 fi
25143 else
25144 HAVE_PTHREAD_SIGMASK=0
25145 fi
25146 fi
25147 else
25148 if test $ac_cv_func_pthread_sigmask = yes; then
25149 REPLACE_PTHREAD_SIGMASK=1
25150 else
25151 HAVE_PTHREAD_SIGMASK=0
25152 fi
25153 fi
25154
25155
25156
25157
25158 if test $HAVE_PTHREAD_SIGMASK = 1; then
25159
25160
25161 if test -z "$LIB_PTHREAD_SIGMASK"; then
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
25163 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
25164 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
25165 $as_echo_n "(cached) " >&6
25166 else
25167
25168 if test "$cross_compiling" = yes; then :
25169
25170 case "$host_os" in
25171 freebsd* | hpux* | solaris | solaris2.[2-9]*)
25172 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
25173 *)
25174 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
25175 esac
25176
25177 else
25178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25179 /* end confdefs.h. */
25180
25181 #include <pthread.h>
25182 #include <signal.h>
25183 #include <stddef.h>
25184 int main ()
25185 {
25186 sigset_t set;
25187 sigemptyset (&set);
25188 return pthread_sigmask (1729, &set, NULL) != 0;
25189 }
25190 _ACEOF
25191 if ac_fn_c_try_run "$LINENO"; then :
25192 gl_cv_func_pthread_sigmask_in_libc_works=no
25193 else
25194 gl_cv_func_pthread_sigmask_in_libc_works=yes
25195 fi
25196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25197 conftest.$ac_objext conftest.beam conftest.$ac_ext
25198 fi
25199
25200
25201 fi
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
25203 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
25204 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
25205 *no)
25206 REPLACE_PTHREAD_SIGMASK=1
25207
25208 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
25209
25210 ;;
25211 esac
25212 fi
25213
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
25215 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
25216 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
25217 $as_echo_n "(cached) " >&6
25218 else
25219
25220 gl_save_LIBS="$LIBS"
25221 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
25222 if test "$cross_compiling" = yes; then :
25223 case "$host_os" in
25224 cygwin*)
25225 gl_cv_func_pthread_sigmask_return_works="guessing no";;
25226 *)
25227 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
25228 esac
25229
25230 else
25231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25232 /* end confdefs.h. */
25233
25234 #include <pthread.h>
25235 #include <signal.h>
25236 #include <stddef.h>
25237 int main ()
25238 {
25239 sigset_t set;
25240 sigemptyset (&set);
25241 if (pthread_sigmask (1729, &set, NULL) == -1)
25242 return 1;
25243 return 0;
25244 }
25245 _ACEOF
25246 if ac_fn_c_try_run "$LINENO"; then :
25247 gl_cv_func_pthread_sigmask_return_works=yes
25248 else
25249 gl_cv_func_pthread_sigmask_return_works=no
25250 fi
25251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25252 conftest.$ac_objext conftest.beam conftest.$ac_ext
25253 fi
25254
25255 LIBS="$gl_save_LIBS"
25256
25257 fi
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
25259 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
25260 case "$gl_cv_func_pthread_sigmask_return_works" in
25261 *no)
25262 REPLACE_PTHREAD_SIGMASK=1
25263
25264 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
25265
25266 ;;
25267 esac
25268
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
25270 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
25271 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
25272 $as_echo_n "(cached) " >&6
25273 else
25274
25275 case "$host_os" in
25276 irix*)
25277 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
25278 *)
25279 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
25280 esac
25281 gl_save_LIBS="$LIBS"
25282 LIBS="$LIBS $LIBMULTITHREAD"
25283 if test "$cross_compiling" = yes; then :
25284 :
25285 else
25286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25287 /* end confdefs.h. */
25288
25289 #include <pthread.h>
25290 #include <signal.h>
25291 #include <stdio.h>
25292 #include <stdlib.h>
25293 #include <unistd.h>
25294 static volatile int sigint_occurred;
25295 static void
25296 sigint_handler (int sig)
25297 {
25298 sigint_occurred++;
25299 }
25300 int main ()
25301 {
25302 sigset_t set;
25303 int pid = getpid ();
25304 char command[80];
25305 signal (SIGINT, sigint_handler);
25306 sigemptyset (&set);
25307 sigaddset (&set, SIGINT);
25308 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
25309 return 1;
25310 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
25311 if (!(system (command) == 0))
25312 return 2;
25313 sleep (2);
25314 if (!(sigint_occurred == 0))
25315 return 3;
25316 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
25317 return 4;
25318 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
25319 return 5;
25320 return 0;
25321 }
25322 _ACEOF
25323 if ac_fn_c_try_run "$LINENO"; then :
25324 :
25325 else
25326 gl_cv_func_pthread_sigmask_unblock_works=no
25327 fi
25328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25329 conftest.$ac_objext conftest.beam conftest.$ac_ext
25330 fi
25331
25332 LIBS="$gl_save_LIBS"
25333
25334 fi
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
25336 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
25337 case "$gl_cv_func_pthread_sigmask_unblock_works" in
25338 *no)
25339 REPLACE_PTHREAD_SIGMASK=1
25340
25341 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
25342
25343 ;;
25344 esac
25345 fi
25346
25347 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
25348
25349
25350
25351
25352
25353
25354
25355
25356 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
25357
25358
25359 if test $HAVE_PTHREAD_SIGMASK = 1; then
25360
25361 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
25362
25363 fi
25364
25365 fi
25366
25367
25368
25369
25370
25371 GNULIB_PTHREAD_SIGMASK=1
25372
25373
25374
25375
25376
25377
25378
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
25380 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
25381 if test "${gl_cv_func_svid_putenv+set}" = set; then :
25382 $as_echo_n "(cached) " >&6
25383 else
25384 if test "$cross_compiling" = yes; then :
25385 case "$host_os" in
25386 # Guess yes on glibc systems.
25387 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
25388 # If we don't know, assume the worst.
25389 *) gl_cv_func_svid_putenv="guessing no" ;;
25390 esac
25391
25392 else
25393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25394 /* end confdefs.h. */
25395 $ac_includes_default
25396 int
25397 main ()
25398 {
25399
25400 /* Put it in env. */
25401 if (putenv ("CONFTEST_putenv=val"))
25402 return 1;
25403
25404 /* Try to remove it. */
25405 if (putenv ("CONFTEST_putenv"))
25406 return 2;
25407
25408 /* Make sure it was deleted. */
25409 if (getenv ("CONFTEST_putenv") != 0)
25410 return 3;
25411
25412 return 0;
25413
25414 ;
25415 return 0;
25416 }
25417 _ACEOF
25418 if ac_fn_c_try_run "$LINENO"; then :
25419 gl_cv_func_svid_putenv=yes
25420 else
25421 gl_cv_func_svid_putenv=no
25422 fi
25423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25424 conftest.$ac_objext conftest.beam conftest.$ac_ext
25425 fi
25426
25427
25428 fi
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
25430 $as_echo "$gl_cv_func_svid_putenv" >&6; }
25431 case "$gl_cv_func_svid_putenv" in
25432 *yes) ;;
25433 *)
25434 REPLACE_PUTENV=1
25435 ;;
25436 esac
25437
25438 if test $REPLACE_PUTENV = 1; then
25439
25440
25441
25442
25443
25444
25445
25446
25447 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
25448
25449
25450 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25451 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
25452 ac_have_decl=1
25453 else
25454 ac_have_decl=0
25455 fi
25456
25457 cat >>confdefs.h <<_ACEOF
25458 #define HAVE_DECL__PUTENV $ac_have_decl
25459 _ACEOF
25460
25461
25462 fi
25463
25464
25465
25466
25467
25468 GNULIB_PUTENV=1
25469
25470
25471
25472
25473
25474
25475 # Check whether --enable-acl was given.
25476 if test "${enable_acl+set}" = set; then :
25477 enableval=$enable_acl;
25478 else
25479 enable_acl=auto
25480 fi
25481
25482
25483 LIB_ACL=
25484 use_acl=0
25485 if test "x$enable_acl" != "xno"; then
25486 for ac_header in sys/acl.h
25487 do :
25488 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25489 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
25490 cat >>confdefs.h <<_ACEOF
25491 #define HAVE_SYS_ACL_H 1
25492 _ACEOF
25493
25494 fi
25495
25496 done
25497
25498 if test $ac_cv_header_sys_acl_h = yes; then
25499 ac_save_LIBS=$LIBS
25500
25501 if test $use_acl = 0; then
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25503 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25504 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25505 $as_echo_n "(cached) " >&6
25506 else
25507 ac_func_search_save_LIBS=$LIBS
25508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25509 /* end confdefs.h. */
25510
25511 /* Override any GCC internal prototype to avoid an error.
25512 Use char because int might match the return type of a GCC
25513 builtin and then its argument prototype would still apply. */
25514 #ifdef __cplusplus
25515 extern "C"
25516 #endif
25517 char acl_get_file ();
25518 int
25519 main ()
25520 {
25521 return acl_get_file ();
25522 ;
25523 return 0;
25524 }
25525 _ACEOF
25526 for ac_lib in '' acl pacl; do
25527 if test -z "$ac_lib"; then
25528 ac_res="none required"
25529 else
25530 ac_res=-l$ac_lib
25531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25532 fi
25533 if ac_fn_c_try_link "$LINENO"; then :
25534 ac_cv_search_acl_get_file=$ac_res
25535 fi
25536 rm -f core conftest.err conftest.$ac_objext \
25537 conftest$ac_exeext
25538 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25539 break
25540 fi
25541 done
25542 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25543
25544 else
25545 ac_cv_search_acl_get_file=no
25546 fi
25547 rm conftest.$ac_ext
25548 LIBS=$ac_func_search_save_LIBS
25549 fi
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25551 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25552 ac_res=$ac_cv_search_acl_get_file
25553 if test "$ac_res" != no; then :
25554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25555 if test "$ac_cv_search_acl_get_file" != "none required"; then
25556 LIB_ACL=$ac_cv_search_acl_get_file
25557 fi
25558 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25559 acl_free acl_from_mode acl_from_text \
25560 acl_delete_def_file acl_extended_file \
25561 acl_delete_fd_np acl_delete_file_np \
25562 acl_copy_ext_native acl_create_entry_np \
25563 acl_to_short_text acl_free_text
25564 do :
25565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25566 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25567 eval as_val=\$$as_ac_var
25568 if test "x$as_val" = x""yes; then :
25569 cat >>confdefs.h <<_ACEOF
25570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25571 _ACEOF
25572
25573 fi
25574 done
25575
25576 # If the acl_get_file bug is detected, don't enable the ACL support.
25577
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25579 $as_echo_n "checking for working acl_get_file... " >&6; }
25580 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25581 $as_echo_n "(cached) " >&6
25582 else
25583 gl_cv_func_working_acl_get_file=no
25584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25585 /* end confdefs.h. */
25586 #include <sys/types.h>
25587 #include <sys/acl.h>
25588 #include <errno.h>
25589
25590 int
25591 main ()
25592 {
25593 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25594 return 1;
25595 return 0;
25596
25597 ;
25598 return 0;
25599 }
25600 _ACEOF
25601 if ac_fn_c_try_link "$LINENO"; then :
25602 if test $cross_compiling = yes; then
25603 gl_cv_func_working_acl_get_file="guessing yes"
25604 elif ./conftest$ac_exeext; then
25605 gl_cv_func_working_acl_get_file=yes
25606 fi
25607 fi
25608 rm -f core conftest.err conftest.$ac_objext \
25609 conftest$ac_exeext conftest.$ac_ext
25610 fi
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25612 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25613 if test "$gl_cv_func_working_acl_get_file" != no; then :
25614 use_acl=1
25615 fi
25616
25617 if test $use_acl = 1; then
25618 for ac_header in acl/libacl.h
25619 do :
25620 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25621 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
25622 cat >>confdefs.h <<_ACEOF
25623 #define HAVE_ACL_LIBACL_H 1
25624 _ACEOF
25625
25626 fi
25627
25628 done
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638 for ac_func in acl_entries
25639 do :
25640 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25641 if test "x$ac_cv_func_acl_entries" = x""yes; then :
25642 cat >>confdefs.h <<_ACEOF
25643 #define HAVE_ACL_ENTRIES 1
25644 _ACEOF
25645
25646 else
25647
25648 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25649
25650 fi
25651 done
25652
25653
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25655 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25656 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25657 $as_echo_n "(cached) " >&6
25658 else
25659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25660 /* end confdefs.h. */
25661 #include <sys/types.h>
25662 #include <sys/acl.h>
25663 int type = ACL_FIRST_ENTRY;
25664 int
25665 main ()
25666 {
25667
25668 ;
25669 return 0;
25670 }
25671 _ACEOF
25672 if ac_fn_c_try_compile "$LINENO"; then :
25673 gl_cv_acl_ACL_FIRST_ENTRY=yes
25674 else
25675 gl_cv_acl_ACL_FIRST_ENTRY=no
25676 fi
25677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25678 fi
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25680 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25681 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25682
25683 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25684
25685 fi
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25687 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25688 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25689 $as_echo_n "(cached) " >&6
25690 else
25691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25692 /* end confdefs.h. */
25693 #include <sys/types.h>
25694 #include <sys/acl.h>
25695 int type = ACL_TYPE_EXTENDED;
25696 int
25697 main ()
25698 {
25699
25700 ;
25701 return 0;
25702 }
25703 _ACEOF
25704 if ac_fn_c_try_compile "$LINENO"; then :
25705 gl_cv_acl_ACL_TYPE_EXTENDED=yes
25706 else
25707 gl_cv_acl_ACL_TYPE_EXTENDED=no
25708 fi
25709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25710 fi
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25712 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25713 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25714
25715 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25716
25717 fi
25718 else
25719 LIB_ACL=
25720 fi
25721
25722 fi
25723
25724 fi
25725
25726 if test $use_acl = 0; then
25727 for ac_func in facl
25728 do :
25729 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
25730 if test "x$ac_cv_func_facl" = x""yes; then :
25731 cat >>confdefs.h <<_ACEOF
25732 #define HAVE_FACL 1
25733 _ACEOF
25734
25735 fi
25736 done
25737
25738 if test $ac_cv_func_facl = yes; then
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25740 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25741 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25742 $as_echo_n "(cached) " >&6
25743 else
25744 ac_func_search_save_LIBS=$LIBS
25745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25746 /* end confdefs.h. */
25747
25748 /* Override any GCC internal prototype to avoid an error.
25749 Use char because int might match the return type of a GCC
25750 builtin and then its argument prototype would still apply. */
25751 #ifdef __cplusplus
25752 extern "C"
25753 #endif
25754 char acl_trivial ();
25755 int
25756 main ()
25757 {
25758 return acl_trivial ();
25759 ;
25760 return 0;
25761 }
25762 _ACEOF
25763 for ac_lib in '' sec; do
25764 if test -z "$ac_lib"; then
25765 ac_res="none required"
25766 else
25767 ac_res=-l$ac_lib
25768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25769 fi
25770 if ac_fn_c_try_link "$LINENO"; then :
25771 ac_cv_search_acl_trivial=$ac_res
25772 fi
25773 rm -f core conftest.err conftest.$ac_objext \
25774 conftest$ac_exeext
25775 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25776 break
25777 fi
25778 done
25779 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25780
25781 else
25782 ac_cv_search_acl_trivial=no
25783 fi
25784 rm conftest.$ac_ext
25785 LIBS=$ac_func_search_save_LIBS
25786 fi
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25788 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25789 ac_res=$ac_cv_search_acl_trivial
25790 if test "$ac_res" != no; then :
25791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25792 if test "$ac_cv_search_acl_trivial" != "none required"; then
25793 LIB_ACL=$ac_cv_search_acl_trivial
25794 fi
25795
25796 fi
25797
25798 for ac_func in acl_trivial
25799 do :
25800 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25801 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
25802 cat >>confdefs.h <<_ACEOF
25803 #define HAVE_ACL_TRIVIAL 1
25804 _ACEOF
25805
25806 fi
25807 done
25808
25809 use_acl=1
25810 fi
25811 fi
25812
25813 if test $use_acl = 0; then
25814 for ac_func in getacl
25815 do :
25816 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
25817 if test "x$ac_cv_func_getacl" = x""yes; then :
25818 cat >>confdefs.h <<_ACEOF
25819 #define HAVE_GETACL 1
25820 _ACEOF
25821
25822 fi
25823 done
25824
25825 if test $ac_cv_func_getacl = yes; then
25826 use_acl=1
25827 fi
25828 for ac_header in aclv.h
25829 do :
25830 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25831 "
25832 if test "x$ac_cv_header_aclv_h" = x""yes; then :
25833 cat >>confdefs.h <<_ACEOF
25834 #define HAVE_ACLV_H 1
25835 _ACEOF
25836
25837 fi
25838
25839 done
25840
25841 fi
25842
25843 if test $use_acl = 0; then
25844 for ac_func in aclx_get
25845 do :
25846 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25847 if test "x$ac_cv_func_aclx_get" = x""yes; then :
25848 cat >>confdefs.h <<_ACEOF
25849 #define HAVE_ACLX_GET 1
25850 _ACEOF
25851
25852 fi
25853 done
25854
25855 if test $ac_cv_func_aclx_get = yes; then
25856 use_acl=1
25857 fi
25858 fi
25859
25860 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
25861 for ac_func in statacl
25862 do :
25863 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
25864 if test "x$ac_cv_func_statacl" = x""yes; then :
25865 cat >>confdefs.h <<_ACEOF
25866 #define HAVE_STATACL 1
25867 _ACEOF
25868
25869 fi
25870 done
25871
25872 if test $ac_cv_func_statacl = yes; then
25873 use_acl=1
25874 fi
25875 fi
25876
25877 if test $use_acl = 0; then
25878 for ac_func in aclsort
25879 do :
25880 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
25881 if test "x$ac_cv_func_aclsort" = x""yes; then :
25882 cat >>confdefs.h <<_ACEOF
25883 #define HAVE_ACLSORT 1
25884 _ACEOF
25885
25886 fi
25887 done
25888
25889 if test $ac_cv_func_aclsort = yes; then
25890 use_acl=1
25891 fi
25892 fi
25893
25894 LIBS=$ac_save_LIBS
25895 fi
25896 if test "x$enable_acl$use_acl" = "xyes0"; then
25897 as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
25898 elif test "x$enable_acl$use_acl" = "xauto0"; then
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25900 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25902 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25903 fi
25904 fi
25905
25906
25907 cat >>confdefs.h <<_ACEOF
25908 #define USE_ACL $use_acl
25909 _ACEOF
25910
25911 USE_ACL=$use_acl
25912
25913
25914
25915
25916
25917 if test $ac_cv_func_readlink = no; then
25918 HAVE_READLINK=0
25919 else
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25921 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25922 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25923 $as_echo_n "(cached) " >&6
25924 else
25925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25926 /* end confdefs.h. */
25927 #include <unistd.h>
25928 /* Cause compilation failure if original declaration has wrong type. */
25929 ssize_t readlink (const char *, char *, size_t);
25930 int
25931 main ()
25932 {
25933
25934 ;
25935 return 0;
25936 }
25937 _ACEOF
25938 if ac_fn_c_try_compile "$LINENO"; then :
25939 gl_cv_decl_readlink_works=yes
25940 else
25941 gl_cv_decl_readlink_works=no
25942 fi
25943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25944 fi
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25946 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25948 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25949 if test "${gl_cv_func_readlink_works+set}" = set; then :
25950 $as_echo_n "(cached) " >&6
25951 else
25952 # We have readlink, so assume ln -s works.
25953 ln -s conftest.no-such conftest.link
25954 ln -s conftest.link conftest.lnk2
25955 if test "$cross_compiling" = yes; then :
25956 case "$host_os" in
25957 # Guess yes on glibc systems.
25958 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
25959 # If we don't know, assume the worst.
25960 *) gl_cv_func_readlink_works="guessing no" ;;
25961 esac
25962
25963 else
25964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25965 /* end confdefs.h. */
25966 #include <unistd.h>
25967
25968 int
25969 main ()
25970 {
25971 char buf[20];
25972 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25973 ;
25974 return 0;
25975 }
25976 _ACEOF
25977 if ac_fn_c_try_run "$LINENO"; then :
25978 gl_cv_func_readlink_works=yes
25979 else
25980 gl_cv_func_readlink_works=no
25981 fi
25982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25983 conftest.$ac_objext conftest.beam conftest.$ac_ext
25984 fi
25985
25986 rm -f conftest.link conftest.lnk2
25987 fi
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25989 $as_echo "$gl_cv_func_readlink_works" >&6; }
25990 case "$gl_cv_func_readlink_works" in
25991 *yes)
25992 if test "$gl_cv_decl_readlink_works" != yes; then
25993 REPLACE_READLINK=1
25994 fi
25995 ;;
25996 *)
25997
25998 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25999
26000 REPLACE_READLINK=1
26001 ;;
26002 esac
26003 fi
26004
26005 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
26006
26007
26008
26009
26010
26011
26012
26013
26014 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
26015
26016
26017 :
26018
26019 fi
26020
26021
26022
26023
26024
26025 GNULIB_READLINK=1
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035 if test $ac_cv_func_readlinkat = no; then
26036 HAVE_READLINKAT=0
26037 fi
26038
26039 if test $HAVE_READLINKAT = 0; then
26040
26041
26042
26043
26044
26045
26046
26047
26048 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
26049
26050 fi
26051
26052
26053
26054
26055
26056 GNULIB_READLINKAT=1
26057
26058
26059
26060
26061
26062
26063 for ac_func in sig2str
26064 do :
26065 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
26066 if test "x$ac_cv_func_sig2str" = x""yes; then :
26067 cat >>confdefs.h <<_ACEOF
26068 #define HAVE_SIG2STR 1
26069 _ACEOF
26070
26071 fi
26072 done
26073
26074
26075 if test $ac_cv_func_sig2str = no; then
26076
26077
26078
26079
26080
26081
26082
26083
26084 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
26085
26086
26087 :
26088
26089 fi
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101 if test $gl_cv_have_include_next = yes; then
26102 gl_cv_next_signal_h='<'signal.h'>'
26103 else
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
26105 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
26106 if test "${gl_cv_next_signal_h+set}" = set; then :
26107 $as_echo_n "(cached) " >&6
26108 else
26109
26110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26111 /* end confdefs.h. */
26112 #include <signal.h>
26113
26114 _ACEOF
26115 case "$host_os" in
26116 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26117 *) gl_absname_cpp="$ac_cpp" ;;
26118 esac
26119
26120 case "$host_os" in
26121 mingw*)
26122 gl_dirsep_regex='[/\\]'
26123 ;;
26124 *)
26125 gl_dirsep_regex='\/'
26126 ;;
26127 esac
26128 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26129
26130 gl_header_literal_regex=`echo 'signal.h' \
26131 | sed -e "$gl_make_literal_regex_sed"`
26132 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26133 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26134 s|^/[^/]|//&|
26135 p
26136 q
26137 }'
26138 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26139 sed -n "$gl_absolute_header_sed"`'"'
26140
26141
26142 fi
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
26144 $as_echo "$gl_cv_next_signal_h" >&6; }
26145 fi
26146 NEXT_SIGNAL_H=$gl_cv_next_signal_h
26147
26148 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26150 gl_next_as_first_directive='<'signal.h'>'
26151 else
26152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26153 gl_next_as_first_directive=$gl_cv_next_signal_h
26154 fi
26155 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
26156
26157
26158
26159
26160
26161 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
26162 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
26163 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
26164 #include <signal.h>
26165
26166 "
26167 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
26168
26169 else
26170 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
26171 fi
26172
26173
26174
26175
26176
26177
26178
26179 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
26180 #include <signal.h>
26181
26182 "
26183 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
26184
26185 else
26186 HAVE_SIGHANDLER_T=0
26187 fi
26188
26189
26190
26191
26192 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
26193 /* <sys/types.h> is not needed according to POSIX, but the
26194 <sys/socket.h> in i386-unknown-freebsd4.10 and
26195 powerpc-apple-darwin5.5 required it. */
26196 #include <sys/types.h>
26197 #if HAVE_SYS_SOCKET_H
26198 # include <sys/socket.h>
26199 #elif HAVE_WS2TCPIP_H
26200 # include <ws2tcpip.h>
26201 #endif
26202
26203 "
26204 if test "x$ac_cv_type_socklen_t" = x""yes; then :
26205
26206 else
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
26208 $as_echo_n "checking for socklen_t equivalent... " >&6; }
26209 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
26210 $as_echo_n "(cached) " >&6
26211 else
26212 # Systems have either "struct sockaddr *" or
26213 # "void *" as the second argument to getpeername
26214 gl_cv_socklen_t_equiv=
26215 for arg2 in "struct sockaddr" void; do
26216 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
26217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26218 /* end confdefs.h. */
26219 #include <sys/types.h>
26220 #include <sys/socket.h>
26221
26222 int getpeername (int, $arg2 *, $t *);
26223 int
26224 main ()
26225 {
26226 $t len;
26227 getpeername (0, 0, &len);
26228 ;
26229 return 0;
26230 }
26231 _ACEOF
26232 if ac_fn_c_try_compile "$LINENO"; then :
26233 gl_cv_socklen_t_equiv="$t"
26234 fi
26235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26236 test "$gl_cv_socklen_t_equiv" != "" && break
26237 done
26238 test "$gl_cv_socklen_t_equiv" != "" && break
26239 done
26240
26241 fi
26242
26243 if test "$gl_cv_socklen_t_equiv" = ""; then
26244 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
26245 fi
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
26247 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
26248
26249 cat >>confdefs.h <<_ACEOF
26250 #define socklen_t $gl_cv_socklen_t_equiv
26251 _ACEOF
26252
26253 fi
26254
26255
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26257 $as_echo_n "checking for ssize_t... " >&6; }
26258 if test "${gt_cv_ssize_t+set}" = set; then :
26259 $as_echo_n "(cached) " >&6
26260 else
26261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26262 /* end confdefs.h. */
26263 #include <sys/types.h>
26264 int
26265 main ()
26266 {
26267 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26268 return !x;
26269 ;
26270 return 0;
26271 }
26272 _ACEOF
26273 if ac_fn_c_try_compile "$LINENO"; then :
26274 gt_cv_ssize_t=yes
26275 else
26276 gt_cv_ssize_t=no
26277 fi
26278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26279 fi
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26281 $as_echo "$gt_cv_ssize_t" >&6; }
26282 if test $gt_cv_ssize_t = no; then
26283
26284 $as_echo "#define ssize_t int" >>confdefs.h
26285
26286 fi
26287
26288
26289
26290
26291
26292 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>
26293 #include <sys/stat.h>
26294 "
26295 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
26296
26297 cat >>confdefs.h <<_ACEOF
26298 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26299 _ACEOF
26300
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
26302 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
26303 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
26304 $as_echo_n "(cached) " >&6
26305 else
26306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h. */
26308
26309 #include <sys/types.h>
26310 #include <sys/stat.h>
26311 #if HAVE_SYS_TIME_H
26312 # include <sys/time.h>
26313 #endif
26314 #include <time.h>
26315 struct timespec ts;
26316 struct stat st;
26317
26318 int
26319 main ()
26320 {
26321
26322 st.st_atim = ts;
26323
26324 ;
26325 return 0;
26326 }
26327 _ACEOF
26328 if ac_fn_c_try_compile "$LINENO"; then :
26329 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
26330 else
26331 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
26332 fi
26333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26334 fi
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26336 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26337 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26338
26339 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
26340
26341 fi
26342 else
26343 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>
26344 #include <sys/stat.h>
26345 "
26346 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
26347
26348 cat >>confdefs.h <<_ACEOF
26349 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
26350 _ACEOF
26351
26352
26353 else
26354 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
26355 #include <sys/stat.h>
26356 "
26357 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
26358
26359 cat >>confdefs.h <<_ACEOF
26360 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26361 _ACEOF
26362
26363
26364 else
26365 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>
26366 #include <sys/stat.h>
26367 "
26368 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
26369
26370 cat >>confdefs.h <<_ACEOF
26371 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
26372 _ACEOF
26373
26374
26375 fi
26376
26377 fi
26378
26379 fi
26380
26381 fi
26382
26383
26384
26385
26386
26387 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>
26388 #include <sys/stat.h>
26389 "
26390 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
26391
26392 cat >>confdefs.h <<_ACEOF
26393 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26394 _ACEOF
26395
26396
26397 else
26398 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26399 #include <sys/stat.h>
26400 "
26401 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
26402
26403 cat >>confdefs.h <<_ACEOF
26404 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26405 _ACEOF
26406
26407
26408 else
26409 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>
26410 #include <sys/stat.h>
26411 "
26412 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
26413
26414 cat >>confdefs.h <<_ACEOF
26415 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26416 _ACEOF
26417
26418
26419 fi
26420
26421 fi
26422
26423 fi
26424
26425
26426
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26428 $as_echo_n "checking for working stdalign.h... " >&6; }
26429 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26430 $as_echo_n "(cached) " >&6
26431 else
26432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26433 /* end confdefs.h. */
26434 #include <stdalign.h>
26435 #include <stddef.h>
26436
26437 /* Test that alignof yields a result consistent with offsetof.
26438 This catches GCC bug 52023
26439 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26440 #ifdef __cplusplus
26441 template <class t> struct alignof_helper { char a; t b; };
26442 # define ao(type) offsetof (alignof_helper<type>, b)
26443 #else
26444 # define ao(type) offsetof (struct { char a; type b; }, b)
26445 #endif
26446 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26447 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26448 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26449
26450 /* Test _Alignas only on platforms where gnulib can help. */
26451 #if \
26452 ((defined __cplusplus && 201103 <= __cplusplus) \
26453 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26454 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26455 struct alignas_test { char c; char alignas (8) alignas_8; };
26456 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26457 ? 1 : -1];
26458 #endif
26459
26460 int
26461 main ()
26462 {
26463
26464 ;
26465 return 0;
26466 }
26467 _ACEOF
26468 if ac_fn_c_try_compile "$LINENO"; then :
26469 gl_cv_header_working_stdalign_h=yes
26470 else
26471 gl_cv_header_working_stdalign_h=no
26472 fi
26473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26474 fi
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26476 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26477
26478 if test $gl_cv_header_working_stdalign_h = yes; then
26479 STDALIGN_H=''
26480 else
26481 STDALIGN_H='stdalign.h'
26482 fi
26483
26484
26485 if test -n "$STDALIGN_H"; then
26486 GL_GENERATE_STDALIGN_H_TRUE=
26487 GL_GENERATE_STDALIGN_H_FALSE='#'
26488 else
26489 GL_GENERATE_STDALIGN_H_TRUE='#'
26490 GL_GENERATE_STDALIGN_H_FALSE=
26491 fi
26492
26493
26494
26495 STDARG_H=''
26496 NEXT_STDARG_H='<stdarg.h>'
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26498 $as_echo_n "checking for va_copy... " >&6; }
26499 if test "${gl_cv_func_va_copy+set}" = set; then :
26500 $as_echo_n "(cached) " >&6
26501 else
26502
26503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26504 /* end confdefs.h. */
26505 #include <stdarg.h>
26506 int
26507 main ()
26508 {
26509
26510 #ifndef va_copy
26511 void (*func) (va_list, va_list) = va_copy;
26512 #endif
26513
26514 ;
26515 return 0;
26516 }
26517 _ACEOF
26518 if ac_fn_c_try_compile "$LINENO"; then :
26519 gl_cv_func_va_copy=yes
26520 else
26521 gl_cv_func_va_copy=no
26522 fi
26523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26524 fi
26525
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26527 $as_echo "$gl_cv_func_va_copy" >&6; }
26528 if test $gl_cv_func_va_copy = no; then
26529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26530 /* end confdefs.h. */
26531 #if defined _AIX && !defined __GNUC__
26532 AIX vaccine
26533 #endif
26534
26535 _ACEOF
26536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26537 $EGREP "vaccine" >/dev/null 2>&1; then :
26538 gl_aixcc=yes
26539 else
26540 gl_aixcc=no
26541 fi
26542 rm -f conftest*
26543
26544 if test $gl_aixcc = yes; then
26545 STDARG_H=stdarg.h
26546
26547
26548
26549
26550
26551
26552
26553
26554 if test $gl_cv_have_include_next = yes; then
26555 gl_cv_next_stdarg_h='<'stdarg.h'>'
26556 else
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26558 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26559 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26560 $as_echo_n "(cached) " >&6
26561 else
26562
26563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26564 /* end confdefs.h. */
26565 #include <stdarg.h>
26566
26567 _ACEOF
26568 case "$host_os" in
26569 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26570 *) gl_absname_cpp="$ac_cpp" ;;
26571 esac
26572
26573 case "$host_os" in
26574 mingw*)
26575 gl_dirsep_regex='[/\\]'
26576 ;;
26577 *)
26578 gl_dirsep_regex='\/'
26579 ;;
26580 esac
26581 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26582
26583 gl_header_literal_regex=`echo 'stdarg.h' \
26584 | sed -e "$gl_make_literal_regex_sed"`
26585 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26586 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26587 s|^/[^/]|//&|
26588 p
26589 q
26590 }'
26591 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26592 sed -n "$gl_absolute_header_sed"`'"'
26593
26594
26595 fi
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26597 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26598 fi
26599 NEXT_STDARG_H=$gl_cv_next_stdarg_h
26600
26601 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26602 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26603 gl_next_as_first_directive='<'stdarg.h'>'
26604 else
26605 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26606 gl_next_as_first_directive=$gl_cv_next_stdarg_h
26607 fi
26608 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
26609
26610
26611
26612
26613 if test "$gl_cv_next_stdarg_h" = '""'; then
26614 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
26615 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
26616 fi
26617 else
26618
26619 saved_as_echo_n="$as_echo_n"
26620 as_echo_n=':'
26621 if test "${gl_cv_func___va_copy+set}" = set; then :
26622 $as_echo_n "(cached) " >&6
26623 else
26624
26625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26626 /* end confdefs.h. */
26627 #include <stdarg.h>
26628 int
26629 main ()
26630 {
26631
26632 #ifndef __va_copy
26633 error, bail out
26634 #endif
26635
26636 ;
26637 return 0;
26638 }
26639 _ACEOF
26640 if ac_fn_c_try_compile "$LINENO"; then :
26641 gl_cv_func___va_copy=yes
26642 else
26643 gl_cv_func___va_copy=no
26644 fi
26645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26646 fi
26647
26648 as_echo_n="$saved_as_echo_n"
26649
26650 if test $gl_cv_func___va_copy = yes; then
26651
26652 $as_echo "#define va_copy __va_copy" >>confdefs.h
26653
26654 else
26655
26656
26657 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26658
26659 fi
26660 fi
26661 fi
26662
26663 if test -n "$STDARG_H"; then
26664 GL_GENERATE_STDARG_H_TRUE=
26665 GL_GENERATE_STDARG_H_FALSE='#'
26666 else
26667 GL_GENERATE_STDARG_H_TRUE='#'
26668 GL_GENERATE_STDARG_H_FALSE=
26669 fi
26670
26671
26672
26673
26674
26675
26676 # Define two additional variables used in the Makefile substitution.
26677
26678 if test "$ac_cv_header_stdbool_h" = yes; then
26679 STDBOOL_H=''
26680 else
26681 STDBOOL_H='stdbool.h'
26682 fi
26683
26684 if test -n "$STDBOOL_H"; then
26685 GL_GENERATE_STDBOOL_H_TRUE=
26686 GL_GENERATE_STDBOOL_H_FALSE='#'
26687 else
26688 GL_GENERATE_STDBOOL_H_TRUE='#'
26689 GL_GENERATE_STDBOOL_H_FALSE=
26690 fi
26691
26692
26693 if test "$ac_cv_type__Bool" = yes; then
26694 HAVE__BOOL=1
26695 else
26696 HAVE__BOOL=0
26697 fi
26698
26699
26700
26701
26702
26703 STDDEF_H=
26704 if test $gt_cv_c_wchar_t = no; then
26705 HAVE_WCHAR_T=0
26706 STDDEF_H=stddef.h
26707 fi
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26709 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26710 if test "${gl_cv_decl_null_works+set}" = set; then :
26711 $as_echo_n "(cached) " >&6
26712 else
26713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26714 /* end confdefs.h. */
26715 #include <stddef.h>
26716 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26717
26718 int
26719 main ()
26720 {
26721
26722 ;
26723 return 0;
26724 }
26725 _ACEOF
26726 if ac_fn_c_try_compile "$LINENO"; then :
26727 gl_cv_decl_null_works=yes
26728 else
26729 gl_cv_decl_null_works=no
26730 fi
26731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26732 fi
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26734 $as_echo "$gl_cv_decl_null_works" >&6; }
26735 if test $gl_cv_decl_null_works = no; then
26736 REPLACE_NULL=1
26737 STDDEF_H=stddef.h
26738 fi
26739
26740 if test -n "$STDDEF_H"; then
26741 GL_GENERATE_STDDEF_H_TRUE=
26742 GL_GENERATE_STDDEF_H_FALSE='#'
26743 else
26744 GL_GENERATE_STDDEF_H_TRUE='#'
26745 GL_GENERATE_STDDEF_H_FALSE=
26746 fi
26747
26748 if test -n "$STDDEF_H"; then
26749
26750
26751
26752
26753
26754
26755
26756
26757 if test $gl_cv_have_include_next = yes; then
26758 gl_cv_next_stddef_h='<'stddef.h'>'
26759 else
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26761 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26762 if test "${gl_cv_next_stddef_h+set}" = set; then :
26763 $as_echo_n "(cached) " >&6
26764 else
26765
26766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26767 /* end confdefs.h. */
26768 #include <stddef.h>
26769
26770 _ACEOF
26771 case "$host_os" in
26772 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26773 *) gl_absname_cpp="$ac_cpp" ;;
26774 esac
26775
26776 case "$host_os" in
26777 mingw*)
26778 gl_dirsep_regex='[/\\]'
26779 ;;
26780 *)
26781 gl_dirsep_regex='\/'
26782 ;;
26783 esac
26784 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26785
26786 gl_header_literal_regex=`echo 'stddef.h' \
26787 | sed -e "$gl_make_literal_regex_sed"`
26788 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26789 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26790 s|^/[^/]|//&|
26791 p
26792 q
26793 }'
26794 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26795 sed -n "$gl_absolute_header_sed"`'"'
26796
26797
26798 fi
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26800 $as_echo "$gl_cv_next_stddef_h" >&6; }
26801 fi
26802 NEXT_STDDEF_H=$gl_cv_next_stddef_h
26803
26804 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26805 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26806 gl_next_as_first_directive='<'stddef.h'>'
26807 else
26808 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26809 gl_next_as_first_directive=$gl_cv_next_stddef_h
26810 fi
26811 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
26812
26813
26814
26815
26816 fi
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829 if test $gl_cv_have_include_next = yes; then
26830 gl_cv_next_stdio_h='<'stdio.h'>'
26831 else
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26833 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26834 if test "${gl_cv_next_stdio_h+set}" = set; then :
26835 $as_echo_n "(cached) " >&6
26836 else
26837
26838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26839 /* end confdefs.h. */
26840 #include <stdio.h>
26841
26842 _ACEOF
26843 case "$host_os" in
26844 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26845 *) gl_absname_cpp="$ac_cpp" ;;
26846 esac
26847
26848 case "$host_os" in
26849 mingw*)
26850 gl_dirsep_regex='[/\\]'
26851 ;;
26852 *)
26853 gl_dirsep_regex='\/'
26854 ;;
26855 esac
26856 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26857
26858 gl_header_literal_regex=`echo 'stdio.h' \
26859 | sed -e "$gl_make_literal_regex_sed"`
26860 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26861 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26862 s|^/[^/]|//&|
26863 p
26864 q
26865 }'
26866 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26867 sed -n "$gl_absolute_header_sed"`'"'
26868
26869
26870 fi
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26872 $as_echo "$gl_cv_next_stdio_h" >&6; }
26873 fi
26874 NEXT_STDIO_H=$gl_cv_next_stdio_h
26875
26876 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26877 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26878 gl_next_as_first_directive='<'stdio.h'>'
26879 else
26880 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26881 gl_next_as_first_directive=$gl_cv_next_stdio_h
26882 fi
26883 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26884
26885
26886
26887
26888
26889 GNULIB_FSCANF=1
26890
26891
26892 cat >>confdefs.h <<_ACEOF
26893 #define GNULIB_FSCANF 1
26894 _ACEOF
26895
26896
26897 GNULIB_SCANF=1
26898
26899
26900 cat >>confdefs.h <<_ACEOF
26901 #define GNULIB_SCANF 1
26902 _ACEOF
26903
26904
26905 GNULIB_FGETC=1
26906 GNULIB_GETC=1
26907 GNULIB_GETCHAR=1
26908 GNULIB_FGETS=1
26909 GNULIB_FREAD=1
26910
26911
26912 GNULIB_FPRINTF=1
26913 GNULIB_PRINTF=1
26914 GNULIB_VFPRINTF=1
26915 GNULIB_VPRINTF=1
26916 GNULIB_FPUTC=1
26917 GNULIB_PUTC=1
26918 GNULIB_PUTCHAR=1
26919 GNULIB_FPUTS=1
26920 GNULIB_PUTS=1
26921 GNULIB_FWRITE=1
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937 if test $gl_cv_have_include_next = yes; then
26938 gl_cv_next_stdlib_h='<'stdlib.h'>'
26939 else
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26941 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26942 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26943 $as_echo_n "(cached) " >&6
26944 else
26945
26946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h. */
26948 #include <stdlib.h>
26949
26950 _ACEOF
26951 case "$host_os" in
26952 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26953 *) gl_absname_cpp="$ac_cpp" ;;
26954 esac
26955
26956 case "$host_os" in
26957 mingw*)
26958 gl_dirsep_regex='[/\\]'
26959 ;;
26960 *)
26961 gl_dirsep_regex='\/'
26962 ;;
26963 esac
26964 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26965
26966 gl_header_literal_regex=`echo 'stdlib.h' \
26967 | sed -e "$gl_make_literal_regex_sed"`
26968 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26969 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26970 s|^/[^/]|//&|
26971 p
26972 q
26973 }'
26974 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26975 sed -n "$gl_absolute_header_sed"`'"'
26976
26977
26978 fi
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26980 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26981 fi
26982 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26983
26984 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26986 gl_next_as_first_directive='<'stdlib.h'>'
26987 else
26988 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26989 gl_next_as_first_directive=$gl_cv_next_stdlib_h
26990 fi
26991 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
27002
27003
27004
27005
27006
27007
27008
27009 $as_echo "#define my_strftime nstrftime" >>confdefs.h
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021 if test "$ac_cv_have_decl_strtoimax" != yes; then
27022 HAVE_DECL_STRTOIMAX=0
27023 fi
27024
27025 if test "$ac_cv_func_strtoimax" = yes; then
27026 HAVE_STRTOIMAX=1
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
27028 $as_echo_n "checking whether strtoimax works... " >&6; }
27029 if test "${gl_cv_func_strtoimax+set}" = set; then :
27030 $as_echo_n "(cached) " >&6
27031 else
27032 if test "$cross_compiling" = yes; then :
27033 case "$host_os" in
27034 # Guess no on AIX 5.
27035 aix5*) gl_cv_func_strtoimax="guessing no" ;;
27036 # Guess yes otherwise.
27037 *) gl_cv_func_strtoimax="guessing yes" ;;
27038 esac
27039
27040 else
27041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27042 /* end confdefs.h. */
27043
27044 #include <errno.h>
27045 #include <string.h>
27046 #include <inttypes.h>
27047 int main ()
27048 {
27049 if (sizeof (intmax_t) > sizeof (int))
27050 {
27051 const char *s = "4294967295";
27052 char *p;
27053 intmax_t res;
27054 errno = 0;
27055 res = strtoimax (s, &p, 10);
27056 if (p != s + strlen (s))
27057 return 1;
27058 if (errno != 0)
27059 return 2;
27060 if (res != (intmax_t) 65535 * (intmax_t) 65537)
27061 return 3;
27062 }
27063 else
27064 {
27065 const char *s = "2147483647";
27066 char *p;
27067 intmax_t res;
27068 errno = 0;
27069 res = strtoimax (s, &p, 10);
27070 if (p != s + strlen (s))
27071 return 1;
27072 if (errno != 0)
27073 return 2;
27074 if (res != 2147483647)
27075 return 3;
27076 }
27077 return 0;
27078 }
27079
27080 _ACEOF
27081 if ac_fn_c_try_run "$LINENO"; then :
27082 gl_cv_func_strtoimax=yes
27083 else
27084 gl_cv_func_strtoimax=no
27085 fi
27086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27087 conftest.$ac_objext conftest.beam conftest.$ac_ext
27088 fi
27089
27090
27091 fi
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
27093 $as_echo "$gl_cv_func_strtoimax" >&6; }
27094 case "$gl_cv_func_strtoimax" in
27095 *no) REPLACE_STRTOIMAX=1 ;;
27096 esac
27097 else
27098 if test "$ac_cv_have_decl_strtoimax" = yes; then
27099 # HP-UX 11.11 has "#define strtoimax(...) ..." but no function.
27100 REPLACE_STRTOIMAX=1
27101 fi
27102 HAVE_STRTOIMAX=0
27103 fi
27104
27105 if test $HAVE_DECL_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
27106
27107
27108
27109
27110
27111
27112
27113
27114 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
27115
27116
27117 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
27118 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
27119 ac_have_decl=1
27120 else
27121 ac_have_decl=0
27122 fi
27123
27124 cat >>confdefs.h <<_ACEOF
27125 #define HAVE_DECL_STRTOLL $ac_have_decl
27126 _ACEOF
27127
27128
27129
27130 fi
27131
27132
27133
27134
27135
27136 GNULIB_STRTOIMAX=1
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146 if test "$ac_cv_have_decl_strtoumax" = yes; then
27147 if test "$ac_cv_func_strtoumax" != yes; then
27148 # HP-UX 11.11 has "#define strtoimax(...) ..." but no function.
27149 REPLACE_STRTOUMAX=1
27150 fi
27151 else
27152 HAVE_DECL_STRTOUMAX=0
27153 fi
27154
27155 if test $HAVE_DECL_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; then
27156
27157
27158
27159
27160
27161
27162
27163
27164 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
27165
27166
27167 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
27168 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
27169 ac_have_decl=1
27170 else
27171 ac_have_decl=0
27172 fi
27173
27174 cat >>confdefs.h <<_ACEOF
27175 #define HAVE_DECL_STRTOULL $ac_have_decl
27176 _ACEOF
27177
27178
27179
27180 fi
27181
27182
27183
27184
27185
27186 GNULIB_STRTOUMAX=1
27187
27188
27189
27190
27191
27192
27193
27194 if test $ac_cv_func_symlink = no; then
27195 HAVE_SYMLINK=0
27196 else
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
27198 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
27199 if test "${gl_cv_func_symlink_works+set}" = set; then :
27200 $as_echo_n "(cached) " >&6
27201 else
27202 if test "$cross_compiling" = yes; then :
27203 case "$host_os" in
27204 # Guess yes on glibc systems.
27205 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
27206 # If we don't know, assume the worst.
27207 *) gl_cv_func_symlink_works="guessing no" ;;
27208 esac
27209
27210 else
27211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27212 /* end confdefs.h. */
27213 #include <unistd.h>
27214
27215 int
27216 main ()
27217 {
27218 int result = 0;
27219 if (!symlink ("a", "conftest.link/"))
27220 result |= 1;
27221 if (symlink ("conftest.f", "conftest.lnk2"))
27222 result |= 2;
27223 else if (!symlink ("a", "conftest.lnk2/"))
27224 result |= 4;
27225 return result;
27226
27227 ;
27228 return 0;
27229 }
27230 _ACEOF
27231 if ac_fn_c_try_run "$LINENO"; then :
27232 gl_cv_func_symlink_works=yes
27233 else
27234 gl_cv_func_symlink_works=no
27235 fi
27236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27237 conftest.$ac_objext conftest.beam conftest.$ac_ext
27238 fi
27239
27240 rm -f conftest.f conftest.link conftest.lnk2
27241 fi
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
27243 $as_echo "$gl_cv_func_symlink_works" >&6; }
27244 case "$gl_cv_func_symlink_works" in
27245 *yes) ;;
27246 *)
27247 REPLACE_SYMLINK=1
27248 ;;
27249 esac
27250 fi
27251
27252 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
27253
27254
27255
27256
27257
27258
27259
27260
27261 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
27262
27263 fi
27264
27265
27266
27267
27268
27269 GNULIB_SYMLINK=1
27270
27271
27272
27273
27274
27275
27276
27277
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
27279 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
27280 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
27281 $as_echo_n "(cached) " >&6
27282 else
27283
27284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27285 /* end confdefs.h. */
27286 #include <sys/select.h>
27287 int
27288 main ()
27289 {
27290 struct timeval b;
27291 ;
27292 return 0;
27293 }
27294 _ACEOF
27295 if ac_fn_c_try_compile "$LINENO"; then :
27296 gl_cv_header_sys_select_h_selfcontained=yes
27297 else
27298 gl_cv_header_sys_select_h_selfcontained=no
27299 fi
27300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27301 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
27302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27303 /* end confdefs.h. */
27304 #include <sys/select.h>
27305 int
27306 main ()
27307 {
27308 int memset; int bzero;
27309 ;
27310 return 0;
27311 }
27312
27313 _ACEOF
27314 if ac_fn_c_try_compile "$LINENO"; then :
27315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27316 /* end confdefs.h. */
27317 #include <sys/select.h>
27318 int
27319 main ()
27320 {
27321
27322 #undef memset
27323 #define memset nonexistent_memset
27324 extern
27325 #ifdef __cplusplus
27326 "C"
27327 #endif
27328 void *memset (void *, int, unsigned long);
27329 #undef bzero
27330 #define bzero nonexistent_bzero
27331 extern
27332 #ifdef __cplusplus
27333 "C"
27334 #endif
27335 void bzero (void *, unsigned long);
27336 fd_set fds;
27337 FD_ZERO (&fds);
27338
27339 ;
27340 return 0;
27341 }
27342
27343 _ACEOF
27344 if ac_fn_c_try_link "$LINENO"; then :
27345
27346 else
27347 gl_cv_header_sys_select_h_selfcontained=no
27348 fi
27349 rm -f core conftest.err conftest.$ac_objext \
27350 conftest$ac_exeext conftest.$ac_ext
27351
27352 fi
27353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27354 fi
27355
27356 fi
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
27358 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368 if test $gl_cv_have_include_next = yes; then
27369 gl_cv_next_sys_select_h='<'sys/select.h'>'
27370 else
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
27372 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
27373 if test "${gl_cv_next_sys_select_h+set}" = set; then :
27374 $as_echo_n "(cached) " >&6
27375 else
27376
27377 if test $ac_cv_header_sys_select_h = yes; then
27378
27379
27380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27381 /* end confdefs.h. */
27382 #include <sys/select.h>
27383
27384 _ACEOF
27385 case "$host_os" in
27386 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27387 *) gl_absname_cpp="$ac_cpp" ;;
27388 esac
27389
27390 case "$host_os" in
27391 mingw*)
27392 gl_dirsep_regex='[/\\]'
27393 ;;
27394 *)
27395 gl_dirsep_regex='\/'
27396 ;;
27397 esac
27398 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27399
27400 gl_header_literal_regex=`echo 'sys/select.h' \
27401 | sed -e "$gl_make_literal_regex_sed"`
27402 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27403 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27404 s|^/[^/]|//&|
27405 p
27406 q
27407 }'
27408 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27409 sed -n "$gl_absolute_header_sed"`'"'
27410 else
27411 gl_cv_next_sys_select_h='<'sys/select.h'>'
27412 fi
27413
27414
27415 fi
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27417 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27418 fi
27419 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
27420
27421 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27422 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27423 gl_next_as_first_directive='<'sys/select.h'>'
27424 else
27425 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27426 gl_next_as_first_directive=$gl_cv_next_sys_select_h
27427 fi
27428 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
27429
27430
27431
27432
27433 if test $ac_cv_header_sys_select_h = yes; then
27434 HAVE_SYS_SELECT_H=1
27435 else
27436 HAVE_SYS_SELECT_H=0
27437 fi
27438
27439
27440
27441
27442
27443 if test $ac_cv_header_sys_socket_h != yes; then
27444 for ac_header in winsock2.h
27445 do :
27446 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27447 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
27448 cat >>confdefs.h <<_ACEOF
27449 #define HAVE_WINSOCK2_H 1
27450 _ACEOF
27451
27452 fi
27453
27454 done
27455
27456 fi
27457 if test "$ac_cv_header_winsock2_h" = yes; then
27458 HAVE_WINSOCK2_H=1
27459 UNISTD_H_HAVE_WINSOCK2_H=1
27460 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27461 else
27462 HAVE_WINSOCK2_H=0
27463 fi
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484 if test $gl_cv_have_include_next = yes; then
27485 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27486 else
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27488 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27489 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27490 $as_echo_n "(cached) " >&6
27491 else
27492
27493 if test $ac_cv_header_sys_stat_h = yes; then
27494
27495
27496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27497 /* end confdefs.h. */
27498 #include <sys/stat.h>
27499
27500 _ACEOF
27501 case "$host_os" in
27502 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27503 *) gl_absname_cpp="$ac_cpp" ;;
27504 esac
27505
27506 case "$host_os" in
27507 mingw*)
27508 gl_dirsep_regex='[/\\]'
27509 ;;
27510 *)
27511 gl_dirsep_regex='\/'
27512 ;;
27513 esac
27514 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27515
27516 gl_header_literal_regex=`echo 'sys/stat.h' \
27517 | sed -e "$gl_make_literal_regex_sed"`
27518 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27519 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27520 s|^/[^/]|//&|
27521 p
27522 q
27523 }'
27524 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27525 sed -n "$gl_absolute_header_sed"`'"'
27526 else
27527 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27528 fi
27529
27530
27531 fi
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27533 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27534 fi
27535 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
27536
27537 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27539 gl_next_as_first_directive='<'sys/stat.h'>'
27540 else
27541 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27542 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
27543 fi
27544 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27557
27558 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27559
27560 fi
27561
27562 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27563 #include <sys/stat.h>
27564 "
27565 if test "x$ac_cv_type_nlink_t" = x""yes; then :
27566
27567 else
27568
27569 $as_echo "#define nlink_t int" >>confdefs.h
27570
27571 fi
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27591 "
27592 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
27593 ac_have_decl=1
27594 else
27595 ac_have_decl=0
27596 fi
27597
27598 cat >>confdefs.h <<_ACEOF
27599 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27600 _ACEOF
27601
27602 if test $ac_cv_have_decl_localtime_r = no; then
27603 HAVE_DECL_LOCALTIME_R=0
27604 fi
27605
27606
27607 if test $ac_cv_func_localtime_r = yes; then
27608 HAVE_LOCALTIME_R=1
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27610 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27611 if test "${gl_cv_time_r_posix+set}" = set; then :
27612 $as_echo_n "(cached) " >&6
27613 else
27614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27615 /* end confdefs.h. */
27616 #include <time.h>
27617 int
27618 main ()
27619 {
27620 /* We don't need to append 'restrict's to the argument types,
27621 even though the POSIX signature has the 'restrict's,
27622 since C99 says they can't affect type compatibility. */
27623 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27624 if (ptr) return 0;
27625 /* Check the return type is a pointer.
27626 On HP-UX 10 it is 'int'. */
27627 *localtime_r (0, 0);
27628 ;
27629 return 0;
27630 }
27631
27632 _ACEOF
27633 if ac_fn_c_try_compile "$LINENO"; then :
27634 gl_cv_time_r_posix=yes
27635 else
27636 gl_cv_time_r_posix=no
27637 fi
27638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27639
27640 fi
27641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27642 $as_echo "$gl_cv_time_r_posix" >&6; }
27643 if test $gl_cv_time_r_posix = yes; then
27644 REPLACE_LOCALTIME_R=0
27645 else
27646 REPLACE_LOCALTIME_R=1
27647 fi
27648 else
27649 HAVE_LOCALTIME_R=0
27650 fi
27651
27652 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
27653
27654
27655
27656
27657
27658
27659
27660
27661 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
27662
27663
27664 :
27665
27666 fi
27667
27668
27669
27670
27671
27672 GNULIB_TIME_R=1
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683 LIB_TIMER_TIME=
27684
27685 gl_saved_libs=$LIBS
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27687 $as_echo_n "checking for library containing timer_settime... " >&6; }
27688 if test "${ac_cv_search_timer_settime+set}" = set; then :
27689 $as_echo_n "(cached) " >&6
27690 else
27691 ac_func_search_save_LIBS=$LIBS
27692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27693 /* end confdefs.h. */
27694
27695 /* Override any GCC internal prototype to avoid an error.
27696 Use char because int might match the return type of a GCC
27697 builtin and then its argument prototype would still apply. */
27698 #ifdef __cplusplus
27699 extern "C"
27700 #endif
27701 char timer_settime ();
27702 int
27703 main ()
27704 {
27705 return timer_settime ();
27706 ;
27707 return 0;
27708 }
27709 _ACEOF
27710 for ac_lib in '' rt posix4; do
27711 if test -z "$ac_lib"; then
27712 ac_res="none required"
27713 else
27714 ac_res=-l$ac_lib
27715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27716 fi
27717 if ac_fn_c_try_link "$LINENO"; then :
27718 ac_cv_search_timer_settime=$ac_res
27719 fi
27720 rm -f core conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext
27722 if test "${ac_cv_search_timer_settime+set}" = set; then :
27723 break
27724 fi
27725 done
27726 if test "${ac_cv_search_timer_settime+set}" = set; then :
27727
27728 else
27729 ac_cv_search_timer_settime=no
27730 fi
27731 rm conftest.$ac_ext
27732 LIBS=$ac_func_search_save_LIBS
27733 fi
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27735 $as_echo "$ac_cv_search_timer_settime" >&6; }
27736 ac_res=$ac_cv_search_timer_settime
27737 if test "$ac_res" != no; then :
27738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27739 test "$ac_cv_search_timer_settime" = "none required" ||
27740 LIB_TIMER_TIME=$ac_cv_search_timer_settime
27741 fi
27742
27743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27744 /* end confdefs.h. */
27745
27746 #include <features.h>
27747 #ifdef __GNU_LIBRARY__
27748 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27749 && !defined __UCLIBC__
27750 Thread emulation available
27751 #endif
27752 #endif
27753
27754 _ACEOF
27755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27756 $EGREP "Thread" >/dev/null 2>&1; then :
27757 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
27758 fi
27759 rm -f conftest*
27760
27761 for ac_func in timer_settime
27762 do :
27763 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27764 if test "x$ac_cv_func_timer_settime" = x""yes; then :
27765 cat >>confdefs.h <<_ACEOF
27766 #define HAVE_TIMER_SETTIME 1
27767 _ACEOF
27768
27769 fi
27770 done
27771
27772 LIBS=$gl_saved_libs
27773
27774 :
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787 if test $gl_cv_have_include_next = yes; then
27788 gl_cv_next_unistd_h='<'unistd.h'>'
27789 else
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27791 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27792 if test "${gl_cv_next_unistd_h+set}" = set; then :
27793 $as_echo_n "(cached) " >&6
27794 else
27795
27796 if test $ac_cv_header_unistd_h = yes; then
27797
27798
27799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27800 /* end confdefs.h. */
27801 #include <unistd.h>
27802
27803 _ACEOF
27804 case "$host_os" in
27805 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27806 *) gl_absname_cpp="$ac_cpp" ;;
27807 esac
27808
27809 case "$host_os" in
27810 mingw*)
27811 gl_dirsep_regex='[/\\]'
27812 ;;
27813 *)
27814 gl_dirsep_regex='\/'
27815 ;;
27816 esac
27817 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27818
27819 gl_header_literal_regex=`echo 'unistd.h' \
27820 | sed -e "$gl_make_literal_regex_sed"`
27821 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27822 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27823 s|^/[^/]|//&|
27824 p
27825 q
27826 }'
27827 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27828 sed -n "$gl_absolute_header_sed"`'"'
27829 else
27830 gl_cv_next_unistd_h='<'unistd.h'>'
27831 fi
27832
27833
27834 fi
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27836 $as_echo "$gl_cv_next_unistd_h" >&6; }
27837 fi
27838 NEXT_UNISTD_H=$gl_cv_next_unistd_h
27839
27840 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27841 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27842 gl_next_as_first_directive='<'unistd.h'>'
27843 else
27844 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27845 gl_next_as_first_directive=$gl_cv_next_unistd_h
27846 fi
27847 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
27848
27849
27850
27851
27852 if test $ac_cv_header_unistd_h = yes; then
27853 HAVE_UNISTD_H=1
27854 else
27855 HAVE_UNISTD_H=0
27856 fi
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868 if test $ac_cv_have_decl_unsetenv = no; then
27869 HAVE_DECL_UNSETENV=0
27870 fi
27871 for ac_func in unsetenv
27872 do :
27873 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27874 if test "x$ac_cv_func_unsetenv" = x""yes; then :
27875 cat >>confdefs.h <<_ACEOF
27876 #define HAVE_UNSETENV 1
27877 _ACEOF
27878
27879 fi
27880 done
27881
27882 if test $ac_cv_func_unsetenv = no; then
27883 HAVE_UNSETENV=0
27884 else
27885 HAVE_UNSETENV=1
27886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27887 $as_echo_n "checking for unsetenv() return type... " >&6; }
27888 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27889 $as_echo_n "(cached) " >&6
27890 else
27891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27892 /* end confdefs.h. */
27893
27894 #undef _BSD
27895 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27896 #include <stdlib.h>
27897 extern
27898 #ifdef __cplusplus
27899 "C"
27900 #endif
27901 int unsetenv (const char *name);
27902
27903 int
27904 main ()
27905 {
27906
27907 ;
27908 return 0;
27909 }
27910 _ACEOF
27911 if ac_fn_c_try_compile "$LINENO"; then :
27912 gt_cv_func_unsetenv_ret='int'
27913 else
27914 gt_cv_func_unsetenv_ret='void'
27915 fi
27916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27917 fi
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27919 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27920 if test $gt_cv_func_unsetenv_ret = 'void'; then
27921
27922 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27923
27924 REPLACE_UNSETENV=1
27925 fi
27926
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27928 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27929 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27930 $as_echo_n "(cached) " >&6
27931 else
27932 if test "$cross_compiling" = yes; then :
27933 case "$host_os" in
27934 # Guess yes on glibc systems.
27935 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27936 # If we don't know, assume the worst.
27937 *) gl_cv_func_unsetenv_works="guessing no" ;;
27938 esac
27939
27940 else
27941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27942 /* end confdefs.h. */
27943
27944 #include <stdlib.h>
27945 #include <errno.h>
27946 extern char **environ;
27947
27948 int
27949 main ()
27950 {
27951
27952 char entry1[] = "a=1";
27953 char entry2[] = "b=2";
27954 char *env[] = { entry1, entry2, NULL };
27955 if (putenv ((char *) "a=1")) return 1;
27956 if (putenv (entry2)) return 2;
27957 entry2[0] = 'a';
27958 unsetenv ("a");
27959 if (getenv ("a")) return 3;
27960 if (!unsetenv ("") || errno != EINVAL) return 4;
27961 entry2[0] = 'b';
27962 environ = env;
27963 if (!getenv ("a")) return 5;
27964 entry2[0] = 'a';
27965 unsetenv ("a");
27966 if (getenv ("a")) return 6;
27967
27968 ;
27969 return 0;
27970 }
27971 _ACEOF
27972 if ac_fn_c_try_run "$LINENO"; then :
27973 gl_cv_func_unsetenv_works=yes
27974 else
27975 gl_cv_func_unsetenv_works=no
27976 fi
27977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27978 conftest.$ac_objext conftest.beam conftest.$ac_ext
27979 fi
27980
27981 fi
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27983 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27984 case "$gl_cv_func_unsetenv_works" in
27985 *yes) ;;
27986 *)
27987 REPLACE_UNSETENV=1
27988 ;;
27989 esac
27990 fi
27991
27992 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27993
27994
27995
27996
27997
27998
27999
28000
28001 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
28002
28003
28004
28005
28006
28007 fi
28008
28009
28010
28011
28012
28013 GNULIB_UNSETENV=1
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
28027 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
28028 if test "${gl_cv_func_futimesat_works+set}" = set; then :
28029 $as_echo_n "(cached) " >&6
28030 else
28031 touch conftest.file
28032 if test "$cross_compiling" = yes; then :
28033 case "$host_os" in
28034 # Guess yes on glibc systems.
28035 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
28036 # If we don't know, assume the worst.
28037 *) gl_cv_func_futimesat_works="guessing no" ;;
28038 esac
28039
28040 else
28041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28042 /* end confdefs.h. */
28043
28044 #include <stddef.h>
28045 #include <sys/times.h>
28046 #include <fcntl.h>
28047
28048 int
28049 main ()
28050 {
28051 int fd = open ("conftest.file", O_RDWR);
28052 if (fd < 0) return 1;
28053 if (futimesat (fd, NULL, NULL)) return 2;
28054
28055 ;
28056 return 0;
28057 }
28058 _ACEOF
28059 if ac_fn_c_try_run "$LINENO"; then :
28060 gl_cv_func_futimesat_works=yes
28061 else
28062 gl_cv_func_futimesat_works=no
28063 fi
28064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28065 conftest.$ac_objext conftest.beam conftest.$ac_ext
28066 fi
28067
28068 rm -f conftest.file
28069 fi
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
28071 $as_echo "$gl_cv_func_futimesat_works" >&6; }
28072 case "$gl_cv_func_futimesat_works" in
28073 *yes) ;;
28074 *)
28075
28076 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
28077
28078 ;;
28079 esac
28080 fi
28081
28082 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
28083 gl_gnulib_enabled_dosname=false
28084 gl_gnulib_enabled_euidaccess=false
28085 gl_gnulib_enabled_getdtablesize=false
28086 gl_gnulib_enabled_getgroups=false
28087 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
28088 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
28089 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
28090 gl_gnulib_enabled_pathmax=false
28091 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
28092 gl_gnulib_enabled_secure_getenv=false
28093 gl_gnulib_enabled_stat=false
28094 gl_gnulib_enabled_strtoll=false
28095 gl_gnulib_enabled_strtoull=false
28096 gl_gnulib_enabled_tempname=false
28097 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
28098 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
28099 {
28100 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28101
28102
28103
28104
28105
28106
28107
28108
28109 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
28110
28111 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
28112 fi
28113 }
28114 func_gl_gnulib_m4code_dosname ()
28115 {
28116 if ! $gl_gnulib_enabled_dosname; then
28117 gl_gnulib_enabled_dosname=true
28118 fi
28119 }
28120 func_gl_gnulib_m4code_euidaccess ()
28121 {
28122 if ! $gl_gnulib_enabled_euidaccess; then
28123
28124
28125
28126
28127
28128 for ac_func in euidaccess
28129 do :
28130 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
28131 if test "x$ac_cv_func_euidaccess" = x""yes; then :
28132 cat >>confdefs.h <<_ACEOF
28133 #define HAVE_EUIDACCESS 1
28134 _ACEOF
28135
28136 fi
28137 done
28138
28139 if test $ac_cv_func_euidaccess = no; then
28140 HAVE_EUIDACCESS=0
28141 fi
28142
28143 if test $HAVE_EUIDACCESS = 0; then
28144
28145
28146
28147
28148
28149
28150
28151
28152 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
28153
28154
28155
28156 for ac_header in libgen.h
28157 do :
28158 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
28159 if test "x$ac_cv_header_libgen_h" = x""yes; then :
28160 cat >>confdefs.h <<_ACEOF
28161 #define HAVE_LIBGEN_H 1
28162 _ACEOF
28163
28164 fi
28165
28166 done
28167
28168
28169 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
28170 if test "x$ac_cv_func_getgroups" = x""yes; then :
28171
28172 fi
28173
28174
28175 # If we don't yet have getgroups, see if it's in -lbsd.
28176 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28177 ac_save_LIBS=$LIBS
28178 if test $ac_cv_func_getgroups = no; then
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28180 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28181 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28182 $as_echo_n "(cached) " >&6
28183 else
28184 ac_check_lib_save_LIBS=$LIBS
28185 LIBS="-lbsd $LIBS"
28186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28187 /* end confdefs.h. */
28188
28189 /* Override any GCC internal prototype to avoid an error.
28190 Use char because int might match the return type of a GCC
28191 builtin and then its argument prototype would still apply. */
28192 #ifdef __cplusplus
28193 extern "C"
28194 #endif
28195 char getgroups ();
28196 int
28197 main ()
28198 {
28199 return getgroups ();
28200 ;
28201 return 0;
28202 }
28203 _ACEOF
28204 if ac_fn_c_try_link "$LINENO"; then :
28205 ac_cv_lib_bsd_getgroups=yes
28206 else
28207 ac_cv_lib_bsd_getgroups=no
28208 fi
28209 rm -f core conftest.err conftest.$ac_objext \
28210 conftest$ac_exeext conftest.$ac_ext
28211 LIBS=$ac_check_lib_save_LIBS
28212 fi
28213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28214 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28215 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
28216 GETGROUPS_LIB=-lbsd
28217 fi
28218
28219 fi
28220
28221 # Run the program to test the functionality of the system-supplied
28222 # getgroups function only if there is such a function.
28223 if test $ac_cv_func_getgroups = yes; then
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28225 $as_echo_n "checking for working getgroups... " >&6; }
28226 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28227 $as_echo_n "(cached) " >&6
28228 else
28229 if test "$cross_compiling" = yes; then :
28230 case "$host_os" in # ((
28231 # Guess yes on glibc systems.
28232 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
28233 # If we don't know, assume the worst.
28234 *) ac_cv_func_getgroups_works="guessing no" ;;
28235 esac
28236
28237 else
28238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28239 /* end confdefs.h. */
28240 $ac_includes_default
28241 int
28242 main ()
28243 {
28244 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28245 return getgroups (0, 0) == -1;
28246 ;
28247 return 0;
28248 }
28249
28250 _ACEOF
28251 if ac_fn_c_try_run "$LINENO"; then :
28252 ac_cv_func_getgroups_works=yes
28253 else
28254 ac_cv_func_getgroups_works=no
28255 fi
28256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28257 conftest.$ac_objext conftest.beam conftest.$ac_ext
28258 fi
28259
28260
28261 fi
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28263 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28264 else
28265 ac_cv_func_getgroups_works=no
28266 fi
28267 case "$ac_cv_func_getgroups_works" in
28268 *yes)
28269
28270 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28271
28272 ;;
28273 esac
28274 LIBS=$ac_save_LIBS
28275
28276
28277 # Solaris 9 and 10 need -lgen to get the eaccess function.
28278 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
28279 # programs in the package would end up linked with that potentially-shared
28280 # library, inducing unnecessary run-time overhead.
28281 LIB_EACCESS=
28282
28283 gl_saved_libs=$LIBS
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
28285 $as_echo_n "checking for library containing eaccess... " >&6; }
28286 if test "${ac_cv_search_eaccess+set}" = set; then :
28287 $as_echo_n "(cached) " >&6
28288 else
28289 ac_func_search_save_LIBS=$LIBS
28290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28291 /* end confdefs.h. */
28292
28293 /* Override any GCC internal prototype to avoid an error.
28294 Use char because int might match the return type of a GCC
28295 builtin and then its argument prototype would still apply. */
28296 #ifdef __cplusplus
28297 extern "C"
28298 #endif
28299 char eaccess ();
28300 int
28301 main ()
28302 {
28303 return eaccess ();
28304 ;
28305 return 0;
28306 }
28307 _ACEOF
28308 for ac_lib in '' gen; do
28309 if test -z "$ac_lib"; then
28310 ac_res="none required"
28311 else
28312 ac_res=-l$ac_lib
28313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28314 fi
28315 if ac_fn_c_try_link "$LINENO"; then :
28316 ac_cv_search_eaccess=$ac_res
28317 fi
28318 rm -f core conftest.err conftest.$ac_objext \
28319 conftest$ac_exeext
28320 if test "${ac_cv_search_eaccess+set}" = set; then :
28321 break
28322 fi
28323 done
28324 if test "${ac_cv_search_eaccess+set}" = set; then :
28325
28326 else
28327 ac_cv_search_eaccess=no
28328 fi
28329 rm conftest.$ac_ext
28330 LIBS=$ac_func_search_save_LIBS
28331 fi
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
28333 $as_echo "$ac_cv_search_eaccess" >&6; }
28334 ac_res=$ac_cv_search_eaccess
28335 if test "$ac_res" != no; then :
28336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28337 test "$ac_cv_search_eaccess" = "none required" ||
28338 LIB_EACCESS=$ac_cv_search_eaccess
28339 fi
28340
28341 for ac_func in eaccess
28342 do :
28343 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
28344 if test "x$ac_cv_func_eaccess" = x""yes; then :
28345 cat >>confdefs.h <<_ACEOF
28346 #define HAVE_EACCESS 1
28347 _ACEOF
28348
28349 fi
28350 done
28351
28352 LIBS=$gl_saved_libs
28353
28354 fi
28355
28356
28357
28358
28359
28360 GNULIB_EUIDACCESS=1
28361
28362
28363
28364
28365
28366 gl_gnulib_enabled_euidaccess=true
28367 if test $HAVE_EUIDACCESS = 0; then
28368 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
28369 fi
28370 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
28371 if test $HAVE_EUIDACCESS = 0; then
28372 func_gl_gnulib_m4code_stat
28373 fi
28374 fi
28375 }
28376 func_gl_gnulib_m4code_getdtablesize ()
28377 {
28378 if ! $gl_gnulib_enabled_getdtablesize; then
28379
28380
28381
28382
28383 if test $ac_cv_func_getdtablesize = yes; then
28384 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
28385 # up to an unchangeable hard limit; all other platforms correctly
28386 # require setrlimit before getdtablesize() can report a larger value.
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
28388 $as_echo_n "checking whether getdtablesize works... " >&6; }
28389 if test "${gl_cv_func_getdtablesize_works+set}" = set; then :
28390 $as_echo_n "(cached) " >&6
28391 else
28392 if test "$cross_compiling" = yes; then :
28393 case "$host_os" in
28394 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
28395 gl_cv_func_getdtablesize_works="guessing no" ;;
28396 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
28397 esac
28398 else
28399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28400 /* end confdefs.h. */
28401
28402 #include <unistd.h>
28403 int
28404 main ()
28405 {
28406 int size = getdtablesize();
28407 if (dup2 (0, getdtablesize()) != -1)
28408 return 1;
28409 if (size != getdtablesize())
28410 return 2;
28411
28412 ;
28413 return 0;
28414 }
28415 _ACEOF
28416 if ac_fn_c_try_run "$LINENO"; then :
28417 gl_cv_func_getdtablesize_works=yes
28418 else
28419 gl_cv_func_getdtablesize_works=no
28420 fi
28421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28422 conftest.$ac_objext conftest.beam conftest.$ac_ext
28423 fi
28424
28425
28426 fi
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
28428 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
28429 case "$gl_cv_func_getdtablesize_works" in
28430 *yes) ;;
28431 *) REPLACE_GETDTABLESIZE=1 ;;
28432 esac
28433 else
28434 HAVE_GETDTABLESIZE=0
28435 fi
28436
28437 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
28438
28439
28440
28441
28442
28443
28444
28445
28446 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
28447
28448 :
28449 fi
28450
28451
28452
28453
28454
28455 GNULIB_GETDTABLESIZE=1
28456
28457
28458
28459
28460
28461 gl_gnulib_enabled_getdtablesize=true
28462 fi
28463 }
28464 func_gl_gnulib_m4code_getgroups ()
28465 {
28466 if ! $gl_gnulib_enabled_getgroups; then
28467
28468
28469
28470
28471
28472 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
28473 if test "x$ac_cv_func_getgroups" = x""yes; then :
28474
28475 fi
28476
28477
28478 # If we don't yet have getgroups, see if it's in -lbsd.
28479 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28480 ac_save_LIBS=$LIBS
28481 if test $ac_cv_func_getgroups = no; then
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28483 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28484 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28485 $as_echo_n "(cached) " >&6
28486 else
28487 ac_check_lib_save_LIBS=$LIBS
28488 LIBS="-lbsd $LIBS"
28489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28490 /* end confdefs.h. */
28491
28492 /* Override any GCC internal prototype to avoid an error.
28493 Use char because int might match the return type of a GCC
28494 builtin and then its argument prototype would still apply. */
28495 #ifdef __cplusplus
28496 extern "C"
28497 #endif
28498 char getgroups ();
28499 int
28500 main ()
28501 {
28502 return getgroups ();
28503 ;
28504 return 0;
28505 }
28506 _ACEOF
28507 if ac_fn_c_try_link "$LINENO"; then :
28508 ac_cv_lib_bsd_getgroups=yes
28509 else
28510 ac_cv_lib_bsd_getgroups=no
28511 fi
28512 rm -f core conftest.err conftest.$ac_objext \
28513 conftest$ac_exeext conftest.$ac_ext
28514 LIBS=$ac_check_lib_save_LIBS
28515 fi
28516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28517 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28518 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
28519 GETGROUPS_LIB=-lbsd
28520 fi
28521
28522 fi
28523
28524 # Run the program to test the functionality of the system-supplied
28525 # getgroups function only if there is such a function.
28526 if test $ac_cv_func_getgroups = yes; then
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28528 $as_echo_n "checking for working getgroups... " >&6; }
28529 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28530 $as_echo_n "(cached) " >&6
28531 else
28532 if test "$cross_compiling" = yes; then :
28533 case "$host_os" in # ((
28534 # Guess yes on glibc systems.
28535 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
28536 # If we don't know, assume the worst.
28537 *) ac_cv_func_getgroups_works="guessing no" ;;
28538 esac
28539
28540 else
28541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28542 /* end confdefs.h. */
28543 $ac_includes_default
28544 int
28545 main ()
28546 {
28547 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28548 return getgroups (0, 0) == -1;
28549 ;
28550 return 0;
28551 }
28552
28553 _ACEOF
28554 if ac_fn_c_try_run "$LINENO"; then :
28555 ac_cv_func_getgroups_works=yes
28556 else
28557 ac_cv_func_getgroups_works=no
28558 fi
28559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28560 conftest.$ac_objext conftest.beam conftest.$ac_ext
28561 fi
28562
28563
28564 fi
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28566 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28567 else
28568 ac_cv_func_getgroups_works=no
28569 fi
28570 case "$ac_cv_func_getgroups_works" in
28571 *yes)
28572
28573 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28574
28575 ;;
28576 esac
28577 LIBS=$ac_save_LIBS
28578
28579 if test $ac_cv_func_getgroups != yes; then
28580 HAVE_GETGROUPS=0
28581 else
28582 if test "$ac_cv_type_getgroups" != gid_t \
28583 || { case "$ac_cv_func_getgroups_works" in
28584 *yes) false;;
28585 *) true;;
28586 esac
28587 }; then
28588 REPLACE_GETGROUPS=1
28589
28590 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28591
28592 else
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28594 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28595 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28596 $as_echo_n "(cached) " >&6
28597 else
28598 if test "$cross_compiling" = yes; then :
28599 case "$host_os" in
28600 # Guess yes on glibc systems.
28601 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
28602 # If we don't know, assume the worst.
28603 *) gl_cv_func_getgroups_works="guessing no" ;;
28604 esac
28605
28606 else
28607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28608 /* end confdefs.h. */
28609 $ac_includes_default
28610 int
28611 main ()
28612 {
28613 int size = getgroups (0, 0);
28614 gid_t *list = malloc (size * sizeof *list);
28615 return getgroups (-1, list) != -1;
28616 ;
28617 return 0;
28618 }
28619 _ACEOF
28620 if ac_fn_c_try_run "$LINENO"; then :
28621 gl_cv_func_getgroups_works=yes
28622 else
28623 gl_cv_func_getgroups_works=no
28624 fi
28625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28626 conftest.$ac_objext conftest.beam conftest.$ac_ext
28627 fi
28628
28629 fi
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28631 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28632 case "$gl_cv_func_getgroups_works" in
28633 *yes) ;;
28634 *) REPLACE_GETGROUPS=1 ;;
28635 esac
28636 fi
28637 fi
28638 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
28639
28640 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
28641
28642
28643
28644
28645
28646
28647
28648
28649 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
28650
28651 fi
28652
28653
28654
28655
28656
28657 GNULIB_GETGROUPS=1
28658
28659
28660
28661
28662
28663 gl_gnulib_enabled_getgroups=true
28664 fi
28665 }
28666 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
28667 {
28668 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28669
28670
28671 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
28672 fi
28673 }
28674 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
28675 {
28676 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28677
28678
28679
28680
28681
28682 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
28683 if test "x$ac_cv_func_group_member" = x""yes; then :
28684
28685 else
28686
28687 HAVE_GROUP_MEMBER=0
28688
28689 fi
28690
28691
28692 if test $HAVE_GROUP_MEMBER = 0; then
28693
28694
28695
28696
28697
28698
28699
28700
28701 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
28702
28703
28704
28705
28706 fi
28707
28708
28709
28710
28711
28712 GNULIB_GROUP_MEMBER=1
28713
28714
28715
28716
28717
28718 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
28719 if test $HAVE_GROUP_MEMBER = 0; then
28720 func_gl_gnulib_m4code_getgroups
28721 fi
28722 if test $HAVE_GROUP_MEMBER = 0; then
28723 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28724 fi
28725 fi
28726 }
28727 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
28728 {
28729 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28730 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
28731 fi
28732 }
28733 func_gl_gnulib_m4code_pathmax ()
28734 {
28735 if ! $gl_gnulib_enabled_pathmax; then
28736
28737
28738
28739 gl_gnulib_enabled_pathmax=true
28740 fi
28741 }
28742 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
28743 {
28744 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28745 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
28746 fi
28747 }
28748 func_gl_gnulib_m4code_secure_getenv ()
28749 {
28750 if ! $gl_gnulib_enabled_secure_getenv; then
28751
28752
28753
28754
28755
28756 if test $ac_cv_func_secure_getenv = no; then
28757 HAVE_SECURE_GETENV=0
28758 fi
28759
28760 if test $HAVE_SECURE_GETENV = 0; then
28761
28762
28763
28764
28765
28766
28767
28768
28769 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
28770
28771
28772 for ac_func in __secure_getenv
28773 do :
28774 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28775 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
28776 cat >>confdefs.h <<_ACEOF
28777 #define HAVE___SECURE_GETENV 1
28778 _ACEOF
28779
28780 fi
28781 done
28782
28783 if test $ac_cv_func___secure_getenv = no; then
28784 for ac_func in issetugid
28785 do :
28786 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
28787 if test "x$ac_cv_func_issetugid" = x""yes; then :
28788 cat >>confdefs.h <<_ACEOF
28789 #define HAVE_ISSETUGID 1
28790 _ACEOF
28791
28792 fi
28793 done
28794
28795 fi
28796
28797 fi
28798
28799
28800
28801
28802
28803 GNULIB_SECURE_GETENV=1
28804
28805
28806
28807
28808
28809 gl_gnulib_enabled_secure_getenv=true
28810 fi
28811 }
28812 func_gl_gnulib_m4code_stat ()
28813 {
28814 if ! $gl_gnulib_enabled_stat; then
28815
28816
28817
28818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28819 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28820 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28821 $as_echo_n "(cached) " >&6
28822 else
28823 if test "$cross_compiling" = yes; then :
28824 case $host_os in
28825 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28826 *) gl_cv_func_stat_dir_slash="guessing yes";;
28827 esac
28828 else
28829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28830 /* end confdefs.h. */
28831 #include <sys/stat.h>
28832
28833 int
28834 main ()
28835 {
28836 struct stat st; return stat (".", &st) != stat ("./", &st);
28837 ;
28838 return 0;
28839 }
28840 _ACEOF
28841 if ac_fn_c_try_run "$LINENO"; then :
28842 gl_cv_func_stat_dir_slash=yes
28843 else
28844 gl_cv_func_stat_dir_slash=no
28845 fi
28846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28847 conftest.$ac_objext conftest.beam conftest.$ac_ext
28848 fi
28849
28850 fi
28851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28852 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28854 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28855 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28856 $as_echo_n "(cached) " >&6
28857 else
28858 touch conftest.tmp
28859 # Assume that if we have lstat, we can also check symlinks.
28860 if test $ac_cv_func_lstat = yes; then
28861 ln -s conftest.tmp conftest.lnk
28862 fi
28863 if test "$cross_compiling" = yes; then :
28864 case "$host_os" in
28865 # Guess yes on glibc systems.
28866 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28867 # If we don't know, assume the worst.
28868 *) gl_cv_func_stat_file_slash="guessing no" ;;
28869 esac
28870
28871 else
28872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28873 /* end confdefs.h. */
28874 #include <sys/stat.h>
28875
28876 int
28877 main ()
28878 {
28879 int result = 0;
28880 struct stat st;
28881 if (!stat ("conftest.tmp/", &st))
28882 result |= 1;
28883 #if HAVE_LSTAT
28884 if (!stat ("conftest.lnk/", &st))
28885 result |= 2;
28886 #endif
28887 return result;
28888
28889 ;
28890 return 0;
28891 }
28892 _ACEOF
28893 if ac_fn_c_try_run "$LINENO"; then :
28894 gl_cv_func_stat_file_slash=yes
28895 else
28896 gl_cv_func_stat_file_slash=no
28897 fi
28898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28899 conftest.$ac_objext conftest.beam conftest.$ac_ext
28900 fi
28901
28902 rm -f conftest.tmp conftest.lnk
28903 fi
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28905 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28906 case $gl_cv_func_stat_dir_slash in
28907 *no) REPLACE_STAT=1
28908
28909 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28910 ;;
28911 esac
28912 case $gl_cv_func_stat_file_slash in
28913 *no) REPLACE_STAT=1
28914
28915 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28916 ;;
28917 esac
28918
28919 if test $REPLACE_STAT = 1; then
28920
28921
28922
28923
28924
28925
28926
28927
28928 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28929
28930 :
28931 fi
28932
28933
28934
28935
28936
28937 GNULIB_STAT=1
28938
28939
28940
28941
28942
28943 gl_gnulib_enabled_stat=true
28944 if test $REPLACE_STAT = 1; then
28945 func_gl_gnulib_m4code_dosname
28946 fi
28947 if test $REPLACE_STAT = 1; then
28948 func_gl_gnulib_m4code_pathmax
28949 fi
28950 fi
28951 }
28952 func_gl_gnulib_m4code_strtoll ()
28953 {
28954 if ! $gl_gnulib_enabled_strtoll; then
28955
28956
28957
28958 if test "$ac_cv_type_long_long_int" = yes; then
28959 for ac_func in strtoll
28960 do :
28961 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28962 if test "x$ac_cv_func_strtoll" = x""yes; then :
28963 cat >>confdefs.h <<_ACEOF
28964 #define HAVE_STRTOLL 1
28965 _ACEOF
28966
28967 fi
28968 done
28969
28970 if test $ac_cv_func_strtoll = no; then
28971 HAVE_STRTOLL=0
28972 fi
28973 fi
28974
28975 if test $HAVE_STRTOLL = 0; then
28976
28977
28978
28979
28980
28981
28982
28983
28984 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
28985
28986
28987 :
28988
28989 fi
28990
28991
28992
28993
28994
28995 GNULIB_STRTOLL=1
28996
28997
28998
28999
29000
29001 gl_gnulib_enabled_strtoll=true
29002 fi
29003 }
29004 func_gl_gnulib_m4code_strtoull ()
29005 {
29006 if ! $gl_gnulib_enabled_strtoull; then
29007
29008
29009
29010 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
29011 for ac_func in strtoull
29012 do :
29013 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
29014 if test "x$ac_cv_func_strtoull" = x""yes; then :
29015 cat >>confdefs.h <<_ACEOF
29016 #define HAVE_STRTOULL 1
29017 _ACEOF
29018
29019 fi
29020 done
29021
29022 if test $ac_cv_func_strtoull = no; then
29023 HAVE_STRTOULL=0
29024 fi
29025 fi
29026
29027 if test $HAVE_STRTOULL = 0; then
29028
29029
29030
29031
29032
29033
29034
29035
29036 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
29037
29038
29039 :
29040
29041 fi
29042
29043
29044
29045
29046
29047 GNULIB_STRTOULL=1
29048
29049
29050
29051
29052
29053 gl_gnulib_enabled_strtoull=true
29054 fi
29055 }
29056 func_gl_gnulib_m4code_tempname ()
29057 {
29058 if ! $gl_gnulib_enabled_tempname; then
29059
29060
29061 :
29062
29063
29064 gl_gnulib_enabled_tempname=true
29065 func_gl_gnulib_m4code_secure_getenv
29066 fi
29067 }
29068 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
29069 {
29070 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
29071 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
29072 fi
29073 }
29074 if test $HAVE_FACCESSAT = 0; then
29075 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29076 fi
29077 if test $HAVE_FACCESSAT = 0; then
29078 func_gl_gnulib_m4code_dosname
29079 fi
29080 if test $HAVE_FACCESSAT = 0; then
29081 func_gl_gnulib_m4code_euidaccess
29082 fi
29083 if test $HAVE_FACCESSAT = 0; then
29084 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29085 fi
29086 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
29087 func_gl_gnulib_m4code_getdtablesize
29088 fi
29089 if test $HAVE_FDOPENDIR = 0; then
29090 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29091 fi
29092 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
29093 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29094 fi
29095 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
29096 func_gl_gnulib_m4code_dosname
29097 fi
29098 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
29099 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29100 fi
29101 if test $REPLACE_GETOPT = 1; then
29102 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
29103 fi
29104 if test $REPLACE_LSTAT = 1; then
29105 func_gl_gnulib_m4code_dosname
29106 fi
29107 if test $REPLACE_LSTAT = 1; then
29108 func_gl_gnulib_m4code_stat
29109 fi
29110 if test $HAVE_MKOSTEMP = 0; then
29111 func_gl_gnulib_m4code_tempname
29112 fi
29113 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
29114 func_gl_gnulib_m4code_stat
29115 fi
29116 if test $HAVE_READLINKAT = 0; then
29117 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29118 fi
29119 if test $HAVE_READLINKAT = 0; then
29120 func_gl_gnulib_m4code_dosname
29121 fi
29122 if test $HAVE_READLINKAT = 0; then
29123 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29124 fi
29125 if { test $HAVE_DECL_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
29126 func_gl_gnulib_m4code_strtoll
29127 fi
29128 if { test $HAVE_DECL_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; } && test $ac_cv_type_unsigned_long_long_int = yes; then
29129 func_gl_gnulib_m4code_strtoull
29130 fi
29131
29132 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
29133 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
29134 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
29135 else
29136 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
29137 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
29138 fi
29139
29140 if $gl_gnulib_enabled_dosname; then
29141 gl_GNULIB_ENABLED_dosname_TRUE=
29142 gl_GNULIB_ENABLED_dosname_FALSE='#'
29143 else
29144 gl_GNULIB_ENABLED_dosname_TRUE='#'
29145 gl_GNULIB_ENABLED_dosname_FALSE=
29146 fi
29147
29148 if $gl_gnulib_enabled_euidaccess; then
29149 gl_GNULIB_ENABLED_euidaccess_TRUE=
29150 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
29151 else
29152 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
29153 gl_GNULIB_ENABLED_euidaccess_FALSE=
29154 fi
29155
29156 if $gl_gnulib_enabled_getdtablesize; then
29157 gl_GNULIB_ENABLED_getdtablesize_TRUE=
29158 gl_GNULIB_ENABLED_getdtablesize_FALSE='#'
29159 else
29160 gl_GNULIB_ENABLED_getdtablesize_TRUE='#'
29161 gl_GNULIB_ENABLED_getdtablesize_FALSE=
29162 fi
29163
29164 if $gl_gnulib_enabled_getgroups; then
29165 gl_GNULIB_ENABLED_getgroups_TRUE=
29166 gl_GNULIB_ENABLED_getgroups_FALSE='#'
29167 else
29168 gl_GNULIB_ENABLED_getgroups_TRUE='#'
29169 gl_GNULIB_ENABLED_getgroups_FALSE=
29170 fi
29171
29172 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
29173 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
29174 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
29175 else
29176 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
29177 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
29178 fi
29179
29180 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
29181 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
29182 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
29183 else
29184 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
29185 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
29186 fi
29187
29188 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
29189 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
29190 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
29191 else
29192 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
29193 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
29194 fi
29195
29196 if $gl_gnulib_enabled_pathmax; then
29197 gl_GNULIB_ENABLED_pathmax_TRUE=
29198 gl_GNULIB_ENABLED_pathmax_FALSE='#'
29199 else
29200 gl_GNULIB_ENABLED_pathmax_TRUE='#'
29201 gl_GNULIB_ENABLED_pathmax_FALSE=
29202 fi
29203
29204 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
29205 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
29206 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
29207 else
29208 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
29209 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
29210 fi
29211
29212 if $gl_gnulib_enabled_secure_getenv; then
29213 gl_GNULIB_ENABLED_secure_getenv_TRUE=
29214 gl_GNULIB_ENABLED_secure_getenv_FALSE='#'
29215 else
29216 gl_GNULIB_ENABLED_secure_getenv_TRUE='#'
29217 gl_GNULIB_ENABLED_secure_getenv_FALSE=
29218 fi
29219
29220 if $gl_gnulib_enabled_stat; then
29221 gl_GNULIB_ENABLED_stat_TRUE=
29222 gl_GNULIB_ENABLED_stat_FALSE='#'
29223 else
29224 gl_GNULIB_ENABLED_stat_TRUE='#'
29225 gl_GNULIB_ENABLED_stat_FALSE=
29226 fi
29227
29228 if $gl_gnulib_enabled_strtoll; then
29229 gl_GNULIB_ENABLED_strtoll_TRUE=
29230 gl_GNULIB_ENABLED_strtoll_FALSE='#'
29231 else
29232 gl_GNULIB_ENABLED_strtoll_TRUE='#'
29233 gl_GNULIB_ENABLED_strtoll_FALSE=
29234 fi
29235
29236 if $gl_gnulib_enabled_strtoull; then
29237 gl_GNULIB_ENABLED_strtoull_TRUE=
29238 gl_GNULIB_ENABLED_strtoull_FALSE='#'
29239 else
29240 gl_GNULIB_ENABLED_strtoull_TRUE='#'
29241 gl_GNULIB_ENABLED_strtoull_FALSE=
29242 fi
29243
29244 if $gl_gnulib_enabled_tempname; then
29245 gl_GNULIB_ENABLED_tempname_TRUE=
29246 gl_GNULIB_ENABLED_tempname_FALSE='#'
29247 else
29248 gl_GNULIB_ENABLED_tempname_TRUE='#'
29249 gl_GNULIB_ENABLED_tempname_FALSE=
29250 fi
29251
29252 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
29253 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
29254 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
29255 else
29256 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
29257 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
29258 fi
29259
29260 # End of code from modules
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270 gltests_libdeps=
29271 gltests_ltlibdeps=
29272
29273
29274
29275
29276
29277
29278
29279
29280
29281 gl_source_base='tests'
29282 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
29283
29284 gl_module_indicator_condition=$gltests_WITNESS
29285
29286
29287
29288
29289
29290
29291
29292
29293
29294
29295 LIBGNU_LIBDEPS="$gl_libdeps"
29296
29297 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
29298
29299
29300 CFLAGS=$SAVE_CFLAGS
29301 LIBS=$SAVE_LIBS
29302
29303 if test "${opsys}" = "mingw32"; then
29304 CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I \${abs_top_srcdir}/nt/inc"
29305 # Remove unneeded switches from the value of CC that goes to Makefiles
29306 CC=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
29307 fi
29308
29309 case "$opsys" in
29310 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
29311
29312 darwin)
29313 ## The -headerpad option tells ld (see man page) to leave room at the
29314 ## end of the header for adding load commands. Needed for dumping.
29315 ## 0x690 is the total size of 30 segment load commands (at 56
29316 ## each); under Cocoa 31 commands are required.
29317 if test "$HAVE_NS" = "yes"; then
29318 libs_nsgui="-framework AppKit"
29319 if test "$NS_IMPL_COCOA" = "yes"; then
29320 libs_nsgui="$libs_nsgui -framework IOKit"
29321 fi
29322 headerpad_extra=6C8
29323 else
29324 libs_nsgui=
29325 headerpad_extra=690
29326 fi
29327 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
29328
29329 ## This is here because src/Makefile.in did some extra fiddling around
29330 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
29331 ## LD_SWITCH_SYSTEM_TEMACS instead,
29332 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
29333 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
29334 ;;
29335
29336 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
29337 ## find X at run-time.
29338 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
29339 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
29340 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
29341 ## had different values in configure (in ac_link) and src/Makefile.in.
29342 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
29343 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
29344
29345 mingw32)
29346 ## MinGW64 does not prepend an underscore to symbols, so we must
29347 ## pass a different -entry switch to linker. FIXME: It is better
29348 ## to make the entry points the same by changing unexw32.c.
29349 case "$canonical" in
29350 x86_64-*-*) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
29351 *) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
29352 esac
29353 ;;
29354
29355 openbsd) LD_SWITCH_SYSTEM_TEMACS='-nopie' ;;
29356
29357 *) LD_SWITCH_SYSTEM_TEMACS= ;;
29358 esac
29359
29360 if test x$ac_enable_profiling != x ; then
29361 case $opsys in
29362 *freebsd | gnu-linux) ;;
29363 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
29364 esac
29365 fi
29366
29367 LD_SWITCH_SYSTEM_TEMACS="$LDFLAGS_NOCOMBRELOC $LD_SWITCH_SYSTEM_TEMACS"
29368
29369
29370
29371 ## MinGW-specific post-link processing of temacs.
29372 TEMACS_POST_LINK=":"
29373 ADDSECTION=
29374 EMACS_HEAPSIZE=
29375 if test "${opsys}" = "mingw32"; then
29376 TEMACS_POST_LINK="\$(MINGW_TEMACS_POST_LINK)"
29377 ADDSECTION="../nt/addsection\$(EXEEXT)"
29378 ## Preload heap size of temacs.exe in MB.
29379 case "$canonical" in
29380 x86_64-*-*) EMACS_HEAPSIZE=42 ;;
29381 *) EMACS_HEAPSIZE=27 ;;
29382 esac
29383 fi
29384
29385
29386
29387
29388
29389 ## Common for all window systems
29390 if test "$window_system" != "none"; then
29391
29392 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
29393
29394 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
29395 fi
29396
29397
29398
29399
29400
29401 #### Report on what we decided to do.
29402 #### Report GTK as a toolkit, even if it doesn't use Xt.
29403 #### It makes printing result more understandable as using GTK sets
29404 #### toolkit_scroll_bars to yes by default.
29405 if test "${HAVE_GTK}" = "yes"; then
29406 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
29407 fi
29408
29409 if test $USE_ACL -ne 0; then
29410 acl_summary="yes $LIB_ACL"
29411 else
29412 acl_summary=no
29413 fi
29414
29415 echo "
29416 Configured for \`${canonical}'.
29417
29418 Where should the build process find the source code? ${srcdir}
29419 What compiler should emacs be built with? ${CC} ${CFLAGS}
29420 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
29421 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
29422 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
29423 What window system should Emacs use? ${window_system}
29424 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
29425
29426 if test -n "${x_includes}"; then
29427 echo " Where do we find X Windows header files? ${x_includes}"
29428 else
29429 echo " Where do we find X Windows header files? Standard dirs"
29430 fi
29431 if test -n "${x_libraries}"; then
29432 echo " Where do we find X Windows libraries? ${x_libraries}"
29433 else
29434 echo " Where do we find X Windows libraries? Standard dirs"
29435 fi
29436
29437 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
29438 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
29439 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
29440 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
29441 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
29442 echo " Does Emacs use -lpng? ${HAVE_PNG}"
29443 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
29444 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
29445
29446 echo " Does Emacs support sound? ${HAVE_SOUND}"
29447
29448 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
29449 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
29450 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
29451 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
29452 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
29453 echo " Does Emacs use access control lists? ${acl_summary}"
29454 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
29455 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
29456 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
29457
29458 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
29459 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
29460 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
29461 echo " Does Emacs use -lxft? ${HAVE_XFT}"
29462 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
29463
29464 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
29465 echo
29466
29467 if test -n "${EMACSDATA}"; then
29468 echo " Environment variable EMACSDATA set to: $EMACSDATA"
29469 fi
29470 if test -n "${EMACSDOC}"; then
29471 echo " Environment variable EMACSDOC set to: $EMACSDOC"
29472 fi
29473
29474 echo
29475
29476 if test "$HAVE_NS" = "yes"; then
29477 echo
29478 echo "You must run \"${MAKE-make} install\" in order to test the built application.
29479 The installed application will go to nextstep/Emacs.app and can be
29480 run or moved from there."
29481 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
29482 echo "The application will be fully self-contained."
29483 else
29484 echo "The lisp resources for the application will be installed under ${prefix}.
29485 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
29486 to run if these resources are not installed."
29487 fi
29488 echo
29489 fi
29490
29491 if test "${opsys}" = "cygwin"; then
29492 case `uname -r` in
29493 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29494 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29495 echo
29496 ;;
29497 esac
29498 fi
29499
29500 # Remove any trailing slashes in these variables.
29501 test "${prefix}" != NONE &&
29502 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29503 test "${exec_prefix}" != NONE &&
29504 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29505
29506 if test "$HAVE_NS" = "yes"; then
29507 if test "$NS_IMPL_GNUSTEP" = yes; then
29508 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"
29509
29510 ns_check_file=Resources/Info-gnustep.plist
29511 else
29512 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"
29513
29514 ns_check_file=Contents/Info.plist
29515 fi
29516
29517 fi
29518
29519 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"
29520
29521 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"
29522
29523
29524 opt_makefile=test/automated/Makefile
29525
29526 if test -f "$srcdir/$opt_makefile.in"; then
29527 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29528 ac_config_files="$ac_config_files test/automated/Makefile"
29529
29530 fi
29531
29532
29533 opt_makefile=admin/unidata/Makefile
29534
29535 if test -f "$srcdir/$opt_makefile.in"; then
29536 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29537 ac_config_files="$ac_config_files admin/unidata/Makefile"
29538
29539 fi
29540
29541
29542 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29543
29544
29545
29546 ac_config_commands="$ac_config_commands src/epaths.h"
29547
29548
29549 ac_config_commands="$ac_config_commands src/.gdbinit"
29550
29551
29552 cat >confcache <<\_ACEOF
29553 # This file is a shell script that caches the results of configure
29554 # tests run on this system so they can be shared between configure
29555 # scripts and configure runs, see configure's option --config-cache.
29556 # It is not useful on other systems. If it contains results you don't
29557 # want to keep, you may remove or edit it.
29558 #
29559 # config.status only pays attention to the cache file if you give it
29560 # the --recheck option to rerun configure.
29561 #
29562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29564 # following values.
29565
29566 _ACEOF
29567
29568 # The following way of writing the cache mishandles newlines in values,
29569 # but we know of no workaround that is simple, portable, and efficient.
29570 # So, we kill variables containing newlines.
29571 # Ultrix sh set writes to stderr and can't be redirected directly,
29572 # and sets the high bit in the cache file unless we assign to the vars.
29573 (
29574 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29575 eval ac_val=\$$ac_var
29576 case $ac_val in #(
29577 *${as_nl}*)
29578 case $ac_var in #(
29579 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29581 esac
29582 case $ac_var in #(
29583 _ | IFS | as_nl) ;; #(
29584 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29585 *) { eval $ac_var=; unset $ac_var;} ;;
29586 esac ;;
29587 esac
29588 done
29589
29590 (set) 2>&1 |
29591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29592 *${as_nl}ac_space=\ *)
29593 # `set' does not quote correctly, so add quotes: double-quote
29594 # substitution turns \\\\ into \\, and sed turns \\ into \.
29595 sed -n \
29596 "s/'/'\\\\''/g;
29597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29598 ;; #(
29599 *)
29600 # `set' quotes correctly as required by POSIX, so do not add quotes.
29601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29602 ;;
29603 esac |
29604 sort
29605 ) |
29606 sed '
29607 /^ac_cv_env_/b end
29608 t clear
29609 :clear
29610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29611 t end
29612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29613 :end' >>confcache
29614 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29615 if test -w "$cache_file"; then
29616 test "x$cache_file" != "x/dev/null" &&
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29618 $as_echo "$as_me: updating cache $cache_file" >&6;}
29619 cat confcache >$cache_file
29620 else
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29623 fi
29624 fi
29625 rm -f confcache
29626
29627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29628 # Let make expand exec_prefix.
29629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29630
29631 DEFS=-DHAVE_CONFIG_H
29632
29633 ac_libobjs=
29634 ac_ltlibobjs=
29635 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29636 # 1. Remove the extension, and $U if already installed.
29637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29638 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29640 # will be set to the directory where LIBOBJS objects are built.
29641 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29642 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29643 done
29644 LIBOBJS=$ac_libobjs
29645
29646 LTLIBOBJS=$ac_ltlibobjs
29647
29648
29649 if test -n "$EXEEXT"; then
29650 am__EXEEXT_TRUE=
29651 am__EXEEXT_FALSE='#'
29652 else
29653 am__EXEEXT_TRUE='#'
29654 am__EXEEXT_FALSE=
29655 fi
29656
29657 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29658 as_fn_error "conditional \"AMDEP\" was never defined.
29659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29660 fi
29661 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29662 as_fn_error "conditional \"am__fastdepCC\" was never defined.
29663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29664 fi
29665 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29666 as_fn_error "conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29668 fi
29669 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29670 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
29671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29672 fi
29673 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29674 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29676 fi
29677 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
29678 as_fn_error "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
29679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29680 fi
29681
29682 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29683 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29685 fi
29686 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29687 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29689 fi
29690 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29691 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
29692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29693 fi
29694 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29695 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29697 fi
29698 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29699 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
29700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29701 fi
29702 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29703 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29705 fi
29706 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29707 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29709 fi
29710 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29711 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29713 fi
29714 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29715 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29717 fi
29718 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29719 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29721 fi
29722 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29723 as_fn_error "conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29725 fi
29726 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29727 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29729 fi
29730 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29731 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29733 fi
29734 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29735 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29737 fi
29738 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29739 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29741 fi
29742 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29743 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29745 fi
29746 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29747 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29749 fi
29750 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29751 as_fn_error "conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29753 fi
29754 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29755 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29757 fi
29758 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29759 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29761 fi
29762 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29763 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29765 fi
29766 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29767 as_fn_error "conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29769 fi
29770 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29771 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29773 fi
29774
29775 gl_libobjs=
29776 gl_ltlibobjs=
29777 if test -n "$gl_LIBOBJS"; then
29778 # Remove the extension.
29779 sed_drop_objext='s/\.o$//;s/\.obj$//'
29780 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29781 gl_libobjs="$gl_libobjs $i.$ac_objext"
29782 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
29783 done
29784 fi
29785 gl_LIBOBJS=$gl_libobjs
29786
29787 gl_LTLIBOBJS=$gl_ltlibobjs
29788
29789
29790
29791 gltests_libobjs=
29792 gltests_ltlibobjs=
29793 if test -n "$gltests_LIBOBJS"; then
29794 # Remove the extension.
29795 sed_drop_objext='s/\.o$//;s/\.obj$//'
29796 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29797 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
29798 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
29799 done
29800 fi
29801 gltests_LIBOBJS=$gltests_libobjs
29802
29803 gltests_LTLIBOBJS=$gltests_ltlibobjs
29804
29805
29806
29807 : ${CONFIG_STATUS=./config.status}
29808 ac_write_fail=0
29809 ac_clean_files_save=$ac_clean_files
29810 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29811 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29812 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29813 as_write_fail=0
29814 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29815 #! $SHELL
29816 # Generated by $as_me.
29817 # Run this file to recreate the current configuration.
29818 # Compiler output produced by configure, useful for debugging
29819 # configure, is in config.log if it exists.
29820
29821 debug=false
29822 ac_cs_recheck=false
29823 ac_cs_silent=false
29824
29825 SHELL=\${CONFIG_SHELL-$SHELL}
29826 export SHELL
29827 _ASEOF
29828 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29829 ## -------------------- ##
29830 ## M4sh Initialization. ##
29831 ## -------------------- ##
29832
29833 # Be more Bourne compatible
29834 DUALCASE=1; export DUALCASE # for MKS sh
29835 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29836 emulate sh
29837 NULLCMD=:
29838 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29839 # is contrary to our usage. Disable this feature.
29840 alias -g '${1+"$@"}'='"$@"'
29841 setopt NO_GLOB_SUBST
29842 else
29843 case `(set -o) 2>/dev/null` in #(
29844 *posix*) :
29845 set -o posix ;; #(
29846 *) :
29847 ;;
29848 esac
29849 fi
29850
29851
29852 as_nl='
29853 '
29854 export as_nl
29855 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29856 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29857 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29858 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29859 # Prefer a ksh shell builtin over an external printf program on Solaris,
29860 # but without wasting forks for bash or zsh.
29861 if test -z "$BASH_VERSION$ZSH_VERSION" \
29862 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29863 as_echo='print -r --'
29864 as_echo_n='print -rn --'
29865 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29866 as_echo='printf %s\n'
29867 as_echo_n='printf %s'
29868 else
29869 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29870 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29871 as_echo_n='/usr/ucb/echo -n'
29872 else
29873 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29874 as_echo_n_body='eval
29875 arg=$1;
29876 case $arg in #(
29877 *"$as_nl"*)
29878 expr "X$arg" : "X\\(.*\\)$as_nl";
29879 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29880 esac;
29881 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29882 '
29883 export as_echo_n_body
29884 as_echo_n='sh -c $as_echo_n_body as_echo'
29885 fi
29886 export as_echo_body
29887 as_echo='sh -c $as_echo_body as_echo'
29888 fi
29889
29890 # The user is always right.
29891 if test "${PATH_SEPARATOR+set}" != set; then
29892 PATH_SEPARATOR=:
29893 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29894 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29895 PATH_SEPARATOR=';'
29896 }
29897 fi
29898
29899
29900 # IFS
29901 # We need space, tab and new line, in precisely that order. Quoting is
29902 # there to prevent editors from complaining about space-tab.
29903 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29904 # splitting by setting IFS to empty value.)
29905 IFS=" "" $as_nl"
29906
29907 # Find who we are. Look in the path if we contain no directory separator.
29908 case $0 in #((
29909 *[\\/]* ) as_myself=$0 ;;
29910 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29911 for as_dir in $PATH
29912 do
29913 IFS=$as_save_IFS
29914 test -z "$as_dir" && as_dir=.
29915 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29916 done
29917 IFS=$as_save_IFS
29918
29919 ;;
29920 esac
29921 # We did not find ourselves, most probably we were run as `sh COMMAND'
29922 # in which case we are not to be found in the path.
29923 if test "x$as_myself" = x; then
29924 as_myself=$0
29925 fi
29926 if test ! -f "$as_myself"; then
29927 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29928 exit 1
29929 fi
29930
29931 # Unset variables that we do not need and which cause bugs (e.g. in
29932 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29933 # suppresses any "Segmentation fault" message there. '((' could
29934 # trigger a bug in pdksh 5.2.14.
29935 for as_var in BASH_ENV ENV MAIL MAILPATH
29936 do eval test x\${$as_var+set} = xset \
29937 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29938 done
29939 PS1='$ '
29940 PS2='> '
29941 PS4='+ '
29942
29943 # NLS nuisances.
29944 LC_ALL=C
29945 export LC_ALL
29946 LANGUAGE=C
29947 export LANGUAGE
29948
29949 # CDPATH.
29950 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29951
29952
29953 # as_fn_error ERROR [LINENO LOG_FD]
29954 # ---------------------------------
29955 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29956 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29957 # script with status $?, using 1 if that was 0.
29958 as_fn_error ()
29959 {
29960 as_status=$?; test $as_status -eq 0 && as_status=1
29961 if test "$3"; then
29962 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29963 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29964 fi
29965 $as_echo "$as_me: error: $1" >&2
29966 as_fn_exit $as_status
29967 } # as_fn_error
29968
29969
29970 # as_fn_set_status STATUS
29971 # -----------------------
29972 # Set $? to STATUS, without forking.
29973 as_fn_set_status ()
29974 {
29975 return $1
29976 } # as_fn_set_status
29977
29978 # as_fn_exit STATUS
29979 # -----------------
29980 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29981 as_fn_exit ()
29982 {
29983 set +e
29984 as_fn_set_status $1
29985 exit $1
29986 } # as_fn_exit
29987
29988 # as_fn_unset VAR
29989 # ---------------
29990 # Portably unset VAR.
29991 as_fn_unset ()
29992 {
29993 { eval $1=; unset $1;}
29994 }
29995 as_unset=as_fn_unset
29996 # as_fn_append VAR VALUE
29997 # ----------------------
29998 # Append the text in VALUE to the end of the definition contained in VAR. Take
29999 # advantage of any shell optimizations that allow amortized linear growth over
30000 # repeated appends, instead of the typical quadratic growth present in naive
30001 # implementations.
30002 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30003 eval 'as_fn_append ()
30004 {
30005 eval $1+=\$2
30006 }'
30007 else
30008 as_fn_append ()
30009 {
30010 eval $1=\$$1\$2
30011 }
30012 fi # as_fn_append
30013
30014 # as_fn_arith ARG...
30015 # ------------------
30016 # Perform arithmetic evaluation on the ARGs, and store the result in the
30017 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30018 # must be portable across $(()) and expr.
30019 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30020 eval 'as_fn_arith ()
30021 {
30022 as_val=$(( $* ))
30023 }'
30024 else
30025 as_fn_arith ()
30026 {
30027 as_val=`expr "$@" || test $? -eq 1`
30028 }
30029 fi # as_fn_arith
30030
30031
30032 if expr a : '\(a\)' >/dev/null 2>&1 &&
30033 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30034 as_expr=expr
30035 else
30036 as_expr=false
30037 fi
30038
30039 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30040 as_basename=basename
30041 else
30042 as_basename=false
30043 fi
30044
30045 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30046 as_dirname=dirname
30047 else
30048 as_dirname=false
30049 fi
30050
30051 as_me=`$as_basename -- "$0" ||
30052 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30053 X"$0" : 'X\(//\)$' \| \
30054 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30055 $as_echo X/"$0" |
30056 sed '/^.*\/\([^/][^/]*\)\/*$/{
30057 s//\1/
30058 q
30059 }
30060 /^X\/\(\/\/\)$/{
30061 s//\1/
30062 q
30063 }
30064 /^X\/\(\/\).*/{
30065 s//\1/
30066 q
30067 }
30068 s/.*/./; q'`
30069
30070 # Avoid depending upon Character Ranges.
30071 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30072 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30073 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30074 as_cr_digits='0123456789'
30075 as_cr_alnum=$as_cr_Letters$as_cr_digits
30076
30077 ECHO_C= ECHO_N= ECHO_T=
30078 case `echo -n x` in #(((((
30079 -n*)
30080 case `echo 'xy\c'` in
30081 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30082 xy) ECHO_C='\c';;
30083 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30084 ECHO_T=' ';;
30085 esac;;
30086 *)
30087 ECHO_N='-n';;
30088 esac
30089
30090 rm -f conf$$ conf$$.exe conf$$.file
30091 if test -d conf$$.dir; then
30092 rm -f conf$$.dir/conf$$.file
30093 else
30094 rm -f conf$$.dir
30095 mkdir conf$$.dir 2>/dev/null
30096 fi
30097 if (echo >conf$$.file) 2>/dev/null; then
30098 if ln -s conf$$.file conf$$ 2>/dev/null; then
30099 as_ln_s='ln -s'
30100 # ... but there are two gotchas:
30101 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30102 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30103 # In both cases, we have to default to `cp -p'.
30104 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30105 as_ln_s='cp -p'
30106 elif ln conf$$.file conf$$ 2>/dev/null; then
30107 as_ln_s=ln
30108 else
30109 as_ln_s='cp -p'
30110 fi
30111 else
30112 as_ln_s='cp -p'
30113 fi
30114 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30115 rmdir conf$$.dir 2>/dev/null
30116
30117
30118 # as_fn_mkdir_p
30119 # -------------
30120 # Create "$as_dir" as a directory, including parents if necessary.
30121 as_fn_mkdir_p ()
30122 {
30123
30124 case $as_dir in #(
30125 -*) as_dir=./$as_dir;;
30126 esac
30127 test -d "$as_dir" || eval $as_mkdir_p || {
30128 as_dirs=
30129 while :; do
30130 case $as_dir in #(
30131 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30132 *) as_qdir=$as_dir;;
30133 esac
30134 as_dirs="'$as_qdir' $as_dirs"
30135 as_dir=`$as_dirname -- "$as_dir" ||
30136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30137 X"$as_dir" : 'X\(//\)[^/]' \| \
30138 X"$as_dir" : 'X\(//\)$' \| \
30139 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30140 $as_echo X"$as_dir" |
30141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30142 s//\1/
30143 q
30144 }
30145 /^X\(\/\/\)[^/].*/{
30146 s//\1/
30147 q
30148 }
30149 /^X\(\/\/\)$/{
30150 s//\1/
30151 q
30152 }
30153 /^X\(\/\).*/{
30154 s//\1/
30155 q
30156 }
30157 s/.*/./; q'`
30158 test -d "$as_dir" && break
30159 done
30160 test -z "$as_dirs" || eval "mkdir $as_dirs"
30161 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30162
30163
30164 } # as_fn_mkdir_p
30165 if mkdir -p . 2>/dev/null; then
30166 as_mkdir_p='mkdir -p "$as_dir"'
30167 else
30168 test -d ./-p && rmdir ./-p
30169 as_mkdir_p=false
30170 fi
30171
30172 if test -x / >/dev/null 2>&1; then
30173 as_test_x='test -x'
30174 else
30175 if ls -dL / >/dev/null 2>&1; then
30176 as_ls_L_option=L
30177 else
30178 as_ls_L_option=
30179 fi
30180 as_test_x='
30181 eval sh -c '\''
30182 if test -d "$1"; then
30183 test -d "$1/.";
30184 else
30185 case $1 in #(
30186 -*)set "./$1";;
30187 esac;
30188 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30189 ???[sx]*):;;*)false;;esac;fi
30190 '\'' sh
30191 '
30192 fi
30193 as_executable_p=$as_test_x
30194
30195 # Sed expression to map a string onto a valid CPP name.
30196 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30197
30198 # Sed expression to map a string onto a valid variable name.
30199 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30200
30201
30202 exec 6>&1
30203 ## ----------------------------------- ##
30204 ## Main body of $CONFIG_STATUS script. ##
30205 ## ----------------------------------- ##
30206 _ASEOF
30207 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30208
30209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30210 # Save the log message, to keep $0 and so on meaningful, and to
30211 # report actual input values of CONFIG_FILES etc. instead of their
30212 # values after options handling.
30213 ac_log="
30214 This file was extended by emacs $as_me 24.3.50, which was
30215 generated by GNU Autoconf 2.65. Invocation command line was
30216
30217 CONFIG_FILES = $CONFIG_FILES
30218 CONFIG_HEADERS = $CONFIG_HEADERS
30219 CONFIG_LINKS = $CONFIG_LINKS
30220 CONFIG_COMMANDS = $CONFIG_COMMANDS
30221 $ $0 $@
30222
30223 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30224 "
30225
30226 _ACEOF
30227
30228 case $ac_config_files in *"
30229 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30230 esac
30231
30232 case $ac_config_headers in *"
30233 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30234 esac
30235
30236
30237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30238 # Files that config.status was made for.
30239 config_files="$ac_config_files"
30240 config_headers="$ac_config_headers"
30241 config_commands="$ac_config_commands"
30242
30243 _ACEOF
30244
30245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30246 ac_cs_usage="\
30247 \`$as_me' instantiates files and other configuration actions
30248 from templates according to the current configuration. Unless the files
30249 and actions are specified as TAGs, all are instantiated by default.
30250
30251 Usage: $0 [OPTION]... [TAG]...
30252
30253 -h, --help print this help, then exit
30254 -V, --version print version number and configuration settings, then exit
30255 --config print configuration, then exit
30256 -q, --quiet, --silent
30257 do not print progress messages
30258 -d, --debug don't remove temporary files
30259 --recheck update $as_me by reconfiguring in the same conditions
30260 --file=FILE[:TEMPLATE]
30261 instantiate the configuration file FILE
30262 --header=FILE[:TEMPLATE]
30263 instantiate the configuration header FILE
30264
30265 Configuration files:
30266 $config_files
30267
30268 Configuration headers:
30269 $config_headers
30270
30271 Configuration commands:
30272 $config_commands
30273
30274 Report bugs to the package provider."
30275
30276 _ACEOF
30277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30278 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30279 ac_cs_version="\\
30280 emacs config.status 24.3.50
30281 configured by $0, generated by GNU Autoconf 2.65,
30282 with options \\"\$ac_cs_config\\"
30283
30284 Copyright (C) 2009 Free Software Foundation, Inc.
30285 This config.status script is free software; the Free Software Foundation
30286 gives unlimited permission to copy, distribute and modify it."
30287
30288 ac_pwd='$ac_pwd'
30289 srcdir='$srcdir'
30290 INSTALL='$INSTALL'
30291 MKDIR_P='$MKDIR_P'
30292 AWK='$AWK'
30293 test -n "\$AWK" || AWK=awk
30294 _ACEOF
30295
30296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30297 # The default lists apply if the user does not specify any file.
30298 ac_need_defaults=:
30299 while test $# != 0
30300 do
30301 case $1 in
30302 --*=*)
30303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30304 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30305 ac_shift=:
30306 ;;
30307 *)
30308 ac_option=$1
30309 ac_optarg=$2
30310 ac_shift=shift
30311 ;;
30312 esac
30313
30314 case $ac_option in
30315 # Handling of the options.
30316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30317 ac_cs_recheck=: ;;
30318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30319 $as_echo "$ac_cs_version"; exit ;;
30320 --config | --confi | --conf | --con | --co | --c )
30321 $as_echo "$ac_cs_config"; exit ;;
30322 --debug | --debu | --deb | --de | --d | -d )
30323 debug=: ;;
30324 --file | --fil | --fi | --f )
30325 $ac_shift
30326 case $ac_optarg in
30327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30328 esac
30329 as_fn_append CONFIG_FILES " '$ac_optarg'"
30330 ac_need_defaults=false;;
30331 --header | --heade | --head | --hea )
30332 $ac_shift
30333 case $ac_optarg in
30334 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30335 esac
30336 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30337 ac_need_defaults=false;;
30338 --he | --h)
30339 # Conflict between --help and --header
30340 as_fn_error "ambiguous option: \`$1'
30341 Try \`$0 --help' for more information.";;
30342 --help | --hel | -h )
30343 $as_echo "$ac_cs_usage"; exit ;;
30344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30346 ac_cs_silent=: ;;
30347
30348 # This is an error.
30349 -*) as_fn_error "unrecognized option: \`$1'
30350 Try \`$0 --help' for more information." ;;
30351
30352 *) as_fn_append ac_config_targets " $1"
30353 ac_need_defaults=false ;;
30354
30355 esac
30356 shift
30357 done
30358
30359 ac_configure_extra_args=
30360
30361 if $ac_cs_silent; then
30362 exec 6>/dev/null
30363 ac_configure_extra_args="$ac_configure_extra_args --silent"
30364 fi
30365
30366 _ACEOF
30367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30368 if \$ac_cs_recheck; then
30369 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30370 shift
30371 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30372 CONFIG_SHELL='$SHELL'
30373 export CONFIG_SHELL
30374 exec "\$@"
30375 fi
30376
30377 _ACEOF
30378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30379 exec 5>>config.log
30380 {
30381 echo
30382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30383 ## Running $as_me. ##
30384 _ASBOX
30385 $as_echo "$ac_log"
30386 } >&5
30387
30388 _ACEOF
30389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30390 #
30391 # INIT-COMMANDS
30392 #
30393 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30394 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
30395
30396 _ACEOF
30397
30398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30399
30400 # Handling of arguments.
30401 for ac_config_target in $ac_config_targets
30402 do
30403 case $ac_config_target in
30404 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
30405 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30406 "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" ;;
30407 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
30408 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
30409 "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" ;;
30410 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30411 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
30412 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
30413 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
30414 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
30415 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
30416 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
30417 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
30418 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30419 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
30420 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
30421 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
30422 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
30423 "nt/Makefile") CONFIG_FILES="$CONFIG_FILES nt/Makefile" ;;
30424 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
30425 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
30426 "src/epaths.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/epaths.h" ;;
30427 "src/.gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS src/.gdbinit" ;;
30428
30429 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30430 esac
30431 done
30432
30433
30434 # If the user did not use the arguments to specify the items to instantiate,
30435 # then the envvar interface is used. Set only those that are not.
30436 # We use the long form for the default assignment because of an extremely
30437 # bizarre bug on SunOS 4.1.3.
30438 if $ac_need_defaults; then
30439 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30440 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30441 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30442 fi
30443
30444 # Have a temporary directory for convenience. Make it in the build tree
30445 # simply because there is no reason against having it here, and in addition,
30446 # creating and moving files from /tmp can sometimes cause problems.
30447 # Hook for its removal unless debugging.
30448 # Note that there is a small window in which the directory will not be cleaned:
30449 # after its creation but before its name has been assigned to `$tmp'.
30450 $debug ||
30451 {
30452 tmp=
30453 trap 'exit_status=$?
30454 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30455 ' 0
30456 trap 'as_fn_exit 1' 1 2 13 15
30457 }
30458 # Create a (secure) tmp directory for tmp files.
30459
30460 {
30461 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30462 test -n "$tmp" && test -d "$tmp"
30463 } ||
30464 {
30465 tmp=./conf$$-$RANDOM
30466 (umask 077 && mkdir "$tmp")
30467 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30468
30469 # Set up the scripts for CONFIG_FILES section.
30470 # No need to generate them if there are no CONFIG_FILES.
30471 # This happens for instance with `./config.status config.h'.
30472 if test -n "$CONFIG_FILES"; then
30473
30474 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30475 ac_cs_awk_getline=:
30476 ac_cs_awk_pipe_init=
30477 ac_cs_awk_read_file='
30478 while ((getline aline < (F[key])) > 0)
30479 print(aline)
30480 close(F[key])'
30481 ac_cs_awk_pipe_fini=
30482 else
30483 ac_cs_awk_getline=false
30484 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30485 ac_cs_awk_read_file='
30486 print "|#_!!_#|"
30487 print "cat " F[key] " &&"
30488 '$ac_cs_awk_pipe_init
30489 # The final `:' finishes the AND list.
30490 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30491 fi
30492 ac_cr=`echo X | tr X '\015'`
30493 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30494 # But we know of no other shell where ac_cr would be empty at this
30495 # point, so we can use a bashism as a fallback.
30496 if test "x$ac_cr" = x; then
30497 eval ac_cr=\$\'\\r\'
30498 fi
30499 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30500 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30501 ac_cs_awk_cr='\r'
30502 else
30503 ac_cs_awk_cr=$ac_cr
30504 fi
30505
30506 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30507 _ACEOF
30508
30509 # Create commands to substitute file output variables.
30510 {
30511 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30512 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30513 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30514 echo "_ACAWK" &&
30515 echo "_ACEOF"
30516 } >conf$$files.sh &&
30517 . ./conf$$files.sh ||
30518 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30519 rm -f conf$$files.sh
30520
30521 {
30522 echo "cat >conf$$subs.awk <<_ACEOF" &&
30523 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30524 echo "_ACEOF"
30525 } >conf$$subs.sh ||
30526 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30527 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30528 ac_delim='%!_!# '
30529 for ac_last_try in false false false false false :; do
30530 . ./conf$$subs.sh ||
30531 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30532
30533 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30534 if test $ac_delim_n = $ac_delim_num; then
30535 break
30536 elif $ac_last_try; then
30537 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30538 else
30539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30540 fi
30541 done
30542 rm -f conf$$subs.sh
30543
30544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30545 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30546 _ACEOF
30547 sed -n '
30548 h
30549 s/^/S["/; s/!.*/"]=/
30550 p
30551 g
30552 s/^[^!]*!//
30553 :repl
30554 t repl
30555 s/'"$ac_delim"'$//
30556 t delim
30557 :nl
30558 h
30559 s/\(.\{148\}\)..*/\1/
30560 t more1
30561 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30562 p
30563 n
30564 b repl
30565 :more1
30566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30567 p
30568 g
30569 s/.\{148\}//
30570 t nl
30571 :delim
30572 h
30573 s/\(.\{148\}\)..*/\1/
30574 t more2
30575 s/["\\]/\\&/g; s/^/"/; s/$/"/
30576 p
30577 b
30578 :more2
30579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30580 p
30581 g
30582 s/.\{148\}//
30583 t delim
30584 ' <conf$$subs.awk | sed '
30585 /^[^""]/{
30586 N
30587 s/\n//
30588 }
30589 ' >>$CONFIG_STATUS || ac_write_fail=1
30590 rm -f conf$$subs.awk
30591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30592 _ACAWK
30593 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30594 for (key in S) S_is_set[key] = 1
30595 FS = "\a"
30596 \$ac_cs_awk_pipe_init
30597 }
30598 {
30599 line = $ 0
30600 nfields = split(line, field, "@")
30601 substed = 0
30602 len = length(field[1])
30603 for (i = 2; i < nfields; i++) {
30604 key = field[i]
30605 keylen = length(key)
30606 if (S_is_set[key]) {
30607 value = S[key]
30608 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30609 len += length(value) + length(field[++i])
30610 substed = 1
30611 } else
30612 len += 1 + keylen
30613 }
30614 if (nfields == 3 && !substed) {
30615 key = field[2]
30616 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30617 \$ac_cs_awk_read_file
30618 next
30619 }
30620 }
30621 print line
30622 }
30623 \$ac_cs_awk_pipe_fini
30624 _ACAWK
30625 _ACEOF
30626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30627 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30628 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30629 else
30630 cat
30631 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30632 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30633 _ACEOF
30634
30635 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30636 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30637 # trailing colons and then remove the whole line if VPATH becomes empty
30638 # (actually we leave an empty line to preserve line numbers).
30639 if test "x$srcdir" = x.; then
30640 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30641 s/:*\$(srcdir):*/:/
30642 s/:*\${srcdir}:*/:/
30643 s/:*@srcdir@:*/:/
30644 s/^\([^=]*=[ ]*\):*/\1/
30645 s/:*$//
30646 s/^[^=]*=[ ]*$//
30647 }'
30648 fi
30649
30650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30651 fi # test -n "$CONFIG_FILES"
30652
30653 # Set up the scripts for CONFIG_HEADERS section.
30654 # No need to generate them if there are no CONFIG_HEADERS.
30655 # This happens for instance with `./config.status Makefile'.
30656 if test -n "$CONFIG_HEADERS"; then
30657 cat >"$tmp/defines.awk" <<\_ACAWK ||
30658 BEGIN {
30659 _ACEOF
30660
30661 # Transform confdefs.h into an awk script `defines.awk', embedded as
30662 # here-document in config.status, that substitutes the proper values into
30663 # config.h.in to produce config.h.
30664
30665 # Create a delimiter string that does not exist in confdefs.h, to ease
30666 # handling of long lines.
30667 ac_delim='%!_!# '
30668 for ac_last_try in false false :; do
30669 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30670 if test -z "$ac_t"; then
30671 break
30672 elif $ac_last_try; then
30673 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30674 else
30675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30676 fi
30677 done
30678
30679 # For the awk script, D is an array of macro values keyed by name,
30680 # likewise P contains macro parameters if any. Preserve backslash
30681 # newline sequences.
30682
30683 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30684 sed -n '
30685 s/.\{148\}/&'"$ac_delim"'/g
30686 t rset
30687 :rset
30688 s/^[ ]*#[ ]*define[ ][ ]*/ /
30689 t def
30690 d
30691 :def
30692 s/\\$//
30693 t bsnl
30694 s/["\\]/\\&/g
30695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30696 D["\1"]=" \3"/p
30697 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30698 d
30699 :bsnl
30700 s/["\\]/\\&/g
30701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30702 D["\1"]=" \3\\\\\\n"\\/p
30703 t cont
30704 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30705 t cont
30706 d
30707 :cont
30708 n
30709 s/.\{148\}/&'"$ac_delim"'/g
30710 t clear
30711 :clear
30712 s/\\$//
30713 t bsnlc
30714 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30715 d
30716 :bsnlc
30717 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30718 b cont
30719 ' <confdefs.h | sed '
30720 s/'"$ac_delim"'/"\\\
30721 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30722
30723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30724 for (key in D) D_is_set[key] = 1
30725 FS = "\a"
30726 }
30727 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30728 line = \$ 0
30729 split(line, arg, " ")
30730 if (arg[1] == "#") {
30731 defundef = arg[2]
30732 mac1 = arg[3]
30733 } else {
30734 defundef = substr(arg[1], 2)
30735 mac1 = arg[2]
30736 }
30737 split(mac1, mac2, "(") #)
30738 macro = mac2[1]
30739 prefix = substr(line, 1, index(line, defundef) - 1)
30740 if (D_is_set[macro]) {
30741 # Preserve the white space surrounding the "#".
30742 print prefix "define", macro P[macro] D[macro]
30743 next
30744 } else {
30745 # Replace #undef with comments. This is necessary, for example,
30746 # in the case of _POSIX_SOURCE, which is predefined and required
30747 # on some systems where configure will not decide to define it.
30748 if (defundef == "undef") {
30749 print "/*", prefix defundef, macro, "*/"
30750 next
30751 }
30752 }
30753 }
30754 { print }
30755 _ACAWK
30756 _ACEOF
30757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30758 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30759 fi # test -n "$CONFIG_HEADERS"
30760
30761
30762 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30763 shift
30764 for ac_tag
30765 do
30766 case $ac_tag in
30767 :[FHLC]) ac_mode=$ac_tag; continue;;
30768 esac
30769 case $ac_mode$ac_tag in
30770 :[FHL]*:*);;
30771 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30772 :[FH]-) ac_tag=-:-;;
30773 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30774 esac
30775 ac_save_IFS=$IFS
30776 IFS=:
30777 set x $ac_tag
30778 IFS=$ac_save_IFS
30779 shift
30780 ac_file=$1
30781 shift
30782
30783 case $ac_mode in
30784 :L) ac_source=$1;;
30785 :[FH])
30786 ac_file_inputs=
30787 for ac_f
30788 do
30789 case $ac_f in
30790 -) ac_f="$tmp/stdin";;
30791 *) # Look for the file first in the build tree, then in the source tree
30792 # (if the path is not absolute). The absolute path cannot be DOS-style,
30793 # because $ac_f cannot contain `:'.
30794 test -f "$ac_f" ||
30795 case $ac_f in
30796 [\\/$]*) false;;
30797 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30798 esac ||
30799 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30800 esac
30801 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30802 as_fn_append ac_file_inputs " '$ac_f'"
30803 done
30804
30805 # Let's still pretend it is `configure' which instantiates (i.e., don't
30806 # use $as_me), people would be surprised to read:
30807 # /* config.h. Generated by config.status. */
30808 configure_input='Generated from '`
30809 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30810 `' by configure.'
30811 if test x"$ac_file" != x-; then
30812 configure_input="$ac_file. $configure_input"
30813 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30814 $as_echo "$as_me: creating $ac_file" >&6;}
30815 fi
30816 # Neutralize special characters interpreted by sed in replacement strings.
30817 case $configure_input in #(
30818 *\&* | *\|* | *\\* )
30819 ac_sed_conf_input=`$as_echo "$configure_input" |
30820 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30821 *) ac_sed_conf_input=$configure_input;;
30822 esac
30823
30824 case $ac_tag in
30825 *:-:* | *:-) cat >"$tmp/stdin" \
30826 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30827 esac
30828 ;;
30829 esac
30830
30831 ac_dir=`$as_dirname -- "$ac_file" ||
30832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30833 X"$ac_file" : 'X\(//\)[^/]' \| \
30834 X"$ac_file" : 'X\(//\)$' \| \
30835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30836 $as_echo X"$ac_file" |
30837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30838 s//\1/
30839 q
30840 }
30841 /^X\(\/\/\)[^/].*/{
30842 s//\1/
30843 q
30844 }
30845 /^X\(\/\/\)$/{
30846 s//\1/
30847 q
30848 }
30849 /^X\(\/\).*/{
30850 s//\1/
30851 q
30852 }
30853 s/.*/./; q'`
30854 as_dir="$ac_dir"; as_fn_mkdir_p
30855 ac_builddir=.
30856
30857 case "$ac_dir" in
30858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30859 *)
30860 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30861 # A ".." for each directory in $ac_dir_suffix.
30862 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30863 case $ac_top_builddir_sub in
30864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30866 esac ;;
30867 esac
30868 ac_abs_top_builddir=$ac_pwd
30869 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30870 # for backward compatibility:
30871 ac_top_builddir=$ac_top_build_prefix
30872
30873 case $srcdir in
30874 .) # We are building in place.
30875 ac_srcdir=.
30876 ac_top_srcdir=$ac_top_builddir_sub
30877 ac_abs_top_srcdir=$ac_pwd ;;
30878 [\\/]* | ?:[\\/]* ) # Absolute name.
30879 ac_srcdir=$srcdir$ac_dir_suffix;
30880 ac_top_srcdir=$srcdir
30881 ac_abs_top_srcdir=$srcdir ;;
30882 *) # Relative name.
30883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30884 ac_top_srcdir=$ac_top_build_prefix$srcdir
30885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30886 esac
30887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30888
30889
30890 case $ac_mode in
30891 :F)
30892 #
30893 # CONFIG_FILE
30894 #
30895
30896 case $INSTALL in
30897 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30898 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30899 esac
30900 ac_MKDIR_P=$MKDIR_P
30901 case $MKDIR_P in
30902 [\\/$]* | ?:[\\/]* ) ;;
30903 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30904 esac
30905 _ACEOF
30906
30907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30908 # If the template does not know about datarootdir, expand it.
30909 # FIXME: This hack should be removed a few years after 2.60.
30910 ac_datarootdir_hack=; ac_datarootdir_seen=
30911 ac_sed_dataroot='
30912 /datarootdir/ {
30913 p
30914 q
30915 }
30916 /@datadir@/p
30917 /@docdir@/p
30918 /@infodir@/p
30919 /@localedir@/p
30920 /@mandir@/p'
30921 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30922 *datarootdir*) ac_datarootdir_seen=yes;;
30923 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30925 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30926 _ACEOF
30927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30928 ac_datarootdir_hack='
30929 s&@datadir@&$datadir&g
30930 s&@docdir@&$docdir&g
30931 s&@infodir@&$infodir&g
30932 s&@localedir@&$localedir&g
30933 s&@mandir@&$mandir&g
30934 s&\\\${datarootdir}&$datarootdir&g' ;;
30935 esac
30936 _ACEOF
30937
30938 # Neutralize VPATH when `$srcdir' = `.'.
30939 # Shell code in configure.ac might set extrasub.
30940 # FIXME: do we really want to maintain this feature?
30941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30942 ac_sed_extra="$ac_vpsub
30943 $extrasub
30944 _ACEOF
30945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30946 :t
30947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30948 s|@configure_input@|$ac_sed_conf_input|;t t
30949 s&@top_builddir@&$ac_top_builddir_sub&;t t
30950 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30951 s&@srcdir@&$ac_srcdir&;t t
30952 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30953 s&@top_srcdir@&$ac_top_srcdir&;t t
30954 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30955 s&@builddir@&$ac_builddir&;t t
30956 s&@abs_builddir@&$ac_abs_builddir&;t t
30957 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30958 s&@INSTALL@&$ac_INSTALL&;t t
30959 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30960 $ac_datarootdir_hack
30961 "
30962 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30963 if $ac_cs_awk_getline; then
30964 $AWK -f "$tmp/subs.awk"
30965 else
30966 $AWK -f "$tmp/subs.awk" | $SHELL
30967 fi >$tmp/out \
30968 || as_fn_error "could not create $ac_file" "$LINENO" 5
30969
30970 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30971 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30972 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30974 which seems to be undefined. Please make sure it is defined." >&5
30975 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30976 which seems to be undefined. Please make sure it is defined." >&2;}
30977
30978 rm -f "$tmp/stdin"
30979 case $ac_file in
30980 -) cat "$tmp/out" && rm -f "$tmp/out";;
30981 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30982 esac \
30983 || as_fn_error "could not create $ac_file" "$LINENO" 5
30984 ;;
30985 :H)
30986 #
30987 # CONFIG_HEADER
30988 #
30989 if test x"$ac_file" != x-; then
30990 {
30991 $as_echo "/* $configure_input */" \
30992 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30993 } >"$tmp/config.h" \
30994 || as_fn_error "could not create $ac_file" "$LINENO" 5
30995 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30996 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30997 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30998 else
30999 rm -f "$ac_file"
31000 mv "$tmp/config.h" "$ac_file" \
31001 || as_fn_error "could not create $ac_file" "$LINENO" 5
31002 fi
31003 else
31004 $as_echo "/* $configure_input */" \
31005 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31006 || as_fn_error "could not create -" "$LINENO" 5
31007 fi
31008 # Compute "$ac_file"'s index in $config_headers.
31009 _am_arg="$ac_file"
31010 _am_stamp_count=1
31011 for _am_header in $config_headers :; do
31012 case $_am_header in
31013 $_am_arg | $_am_arg:* )
31014 break ;;
31015 * )
31016 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31017 esac
31018 done
31019 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31020 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31021 X"$_am_arg" : 'X\(//\)[^/]' \| \
31022 X"$_am_arg" : 'X\(//\)$' \| \
31023 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31024 $as_echo X"$_am_arg" |
31025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31026 s//\1/
31027 q
31028 }
31029 /^X\(\/\/\)[^/].*/{
31030 s//\1/
31031 q
31032 }
31033 /^X\(\/\/\)$/{
31034 s//\1/
31035 q
31036 }
31037 /^X\(\/\).*/{
31038 s//\1/
31039 q
31040 }
31041 s/.*/./; q'`/stamp-h$_am_stamp_count
31042 ;;
31043
31044 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31045 $as_echo "$as_me: executing $ac_file commands" >&6;}
31046 ;;
31047 esac
31048
31049
31050 case $ac_file$ac_mode in
31051 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31052 # Autoconf 2.62 quotes --file arguments for eval, but not when files
31053 # are listed without --file. Let's play safe and only enable the eval
31054 # if we detect the quoting.
31055 case $CONFIG_FILES in
31056 *\'*) eval set x "$CONFIG_FILES" ;;
31057 *) set x $CONFIG_FILES ;;
31058 esac
31059 shift
31060 for mf
31061 do
31062 # Strip MF so we end up with the name of the file.
31063 mf=`echo "$mf" | sed -e 's/:.*$//'`
31064 # Check whether this is an Automake generated Makefile or not.
31065 # We used to match only the files named `Makefile.in', but
31066 # some people rename them; so instead we look at the file content.
31067 # Grep'ing the first line is not enough: some people post-process
31068 # each Makefile.in and add a new line on top of each file to say so.
31069 # Grep'ing the whole file is not good either: AIX grep has a line
31070 # limit of 2048, but all sed's we know have understand at least 4000.
31071 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31072 dirpart=`$as_dirname -- "$mf" ||
31073 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31074 X"$mf" : 'X\(//\)[^/]' \| \
31075 X"$mf" : 'X\(//\)$' \| \
31076 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31077 $as_echo X"$mf" |
31078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31079 s//\1/
31080 q
31081 }
31082 /^X\(\/\/\)[^/].*/{
31083 s//\1/
31084 q
31085 }
31086 /^X\(\/\/\)$/{
31087 s//\1/
31088 q
31089 }
31090 /^X\(\/\).*/{
31091 s//\1/
31092 q
31093 }
31094 s/.*/./; q'`
31095 else
31096 continue
31097 fi
31098 # Extract the definition of DEPDIR, am__include, and am__quote
31099 # from the Makefile without running `make'.
31100 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31101 test -z "$DEPDIR" && continue
31102 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31103 test -z "am__include" && continue
31104 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31105 # When using ansi2knr, U may be empty or an underscore; expand it
31106 U=`sed -n 's/^U = //p' < "$mf"`
31107 # Find all dependency output files, they are included files with
31108 # $(DEPDIR) in their names. We invoke sed twice because it is the
31109 # simplest approach to changing $(DEPDIR) to its actual value in the
31110 # expansion.
31111 for file in `sed -n "
31112 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31113 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31114 # Make sure the directory exists.
31115 test -f "$dirpart/$file" && continue
31116 fdir=`$as_dirname -- "$file" ||
31117 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31118 X"$file" : 'X\(//\)[^/]' \| \
31119 X"$file" : 'X\(//\)$' \| \
31120 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31121 $as_echo X"$file" |
31122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31123 s//\1/
31124 q
31125 }
31126 /^X\(\/\/\)[^/].*/{
31127 s//\1/
31128 q
31129 }
31130 /^X\(\/\/\)$/{
31131 s//\1/
31132 q
31133 }
31134 /^X\(\/\).*/{
31135 s//\1/
31136 q
31137 }
31138 s/.*/./; q'`
31139 as_dir=$dirpart/$fdir; as_fn_mkdir_p
31140 # echo "creating $dirpart/$file"
31141 echo '# dummy' > "$dirpart/$file"
31142 done
31143 done
31144 }
31145 ;;
31146 "src/epaths.h":C)
31147 if test "${opsys}" = "mingw32"; then
31148 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force-w32
31149 else
31150 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
31151 fi
31152 ;;
31153 "src/.gdbinit":C)
31154 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
31155 echo "source $ac_abs_top_srcdir/src/.gdbinit" > src/.gdbinit
31156 fi
31157 ;;
31158
31159 esac
31160 done # for ac_tag
31161
31162
31163 as_fn_exit 0
31164 _ACEOF
31165 ac_clean_files=$ac_clean_files_save
31166
31167 test $ac_write_fail = 0 ||
31168 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31169
31170
31171 # configure is writing to config.log, and then calls config.status.
31172 # config.status does its own redirection, appending to config.log.
31173 # Unfortunately, on DOS this fails, as config.log is still kept open
31174 # by configure, so config.status won't be able to write to it; its
31175 # output is simply discarded. So we exec the FD to /dev/null,
31176 # effectively closing config.log, so it can be properly (re)opened and
31177 # appended to by config.status. When coming back to configure, we
31178 # need to make the FD available again.
31179 if test "$no_create" != yes; then
31180 ac_cs_success=:
31181 ac_config_status_args=
31182 test "$silent" = yes &&
31183 ac_config_status_args="$ac_config_status_args --quiet"
31184 exec 5>/dev/null
31185 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31186 exec 5>>config.log
31187 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31188 # would make configure fail if this is the last instruction.
31189 $ac_cs_success || as_fn_exit $?
31190 fi
31191 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31193 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31194 fi
31195